:root {
    --primary-purple: #7839c3;
    --primary-orange: #ff7c1f;
    --primary-blue: #0aacff;
    --primary-yellow: #ffea1e;
    --primary-pink: #f2167c;
    --bg-light: #faf9f6;
    --text-dark: #363636;
    --text-gray: #808080;
    --header-height: 60px;
    --bottom-nav-height: 65px;
}

/* Live Match Indicator */
.live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.live-dot {
    width: 10px;
    height: 10px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse-glow 2s ease-in-out infinite;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Mobile-first base styles */
html {
    height: 100%;
    width: 100%;
    max-width: 100dvw;
    position: fixed;
    overflow: hidden;
    background-color: white;
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    font-size: 16px;
    height: 100dvh;
    width: 100%;
    max-width: 100dvw;
    position: fixed;
    overflow: hidden;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

/* ================================
   GLOBAL TEXT CAPITALIZATION
   ================================ */
/* Apply title capitalization to all text */
body * {
    text-transform: capitalize !important;
}

/* Preserve original case for flash messages and make them selectable */
.flash-messages,
.flash-messages *,
.alert,
.alert *,
div:not([class]) {
    text-transform: none !important;
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    user-select: text !important;
}

/* ================================
   APP HEADER - Clean Modern
   ================================ */
.app-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    border-bottom: 1px solid #f0f0f0;
    transition: transform 0.6s ease-in-out;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.back-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    color: var(--text-gray);
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease;
    padding: 0;
}

.back-button:hover {
    background: #f3f4f6;
    color: var(--primary-purple);
}

.back-button:active {
    transform: scale(0.95);
}

.back-button svg {
    flex-shrink: 0;
}

.app-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
}

.app-logo:hover {
    opacity: 0.8;
}

.app-logo img {
    border-radius: 6px;
}

.header-title h1 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.header-right {
    display: flex;
    align-items: center;
}

.notifications-button {
    background: var(--bg-light);
    border: none;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    border-radius: 20px;
    position: relative;
}

.notifications-button:hover {
    background: #e8e8e8;
}

.notifications-button:active {
    transform: scale(0.95);
}

.notifications-button svg {
    stroke: var(--text-dark);
}

.notification-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: var(--primary-pink);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Notifications Panel */
.notifications-panel {
    position: absolute;
    top: 56px;
    right: 0;
    width: 360px;
    max-width: calc(100dvw - 2rem);
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    z-index: 2000;
    display: none;
    animation: slideDown 0.2s ease-out;
}

.notifications-panel.active {
    display: block;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.notifications-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #f0f0f0;
}

.notifications-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
}

.mark-read-btn {
    background: none;
    border: none;
    color: var(--primary-purple);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.mark-read-btn:hover {
    background-color: var(--bg-light);
}

.notifications-list {
    max-height: 400px;
    overflow-y: auto;
}

.notification-item {
    display: flex;
    gap: 0.875rem;
    padding: 1rem 1.25rem;
    text-decoration: none;
    color: var(--text-dark);
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s;
    position: relative;
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-item:hover {
    background-color: var(--bg-light);
}

.notification-item.unread {
    background-color: #f8f7ff;
}

.notification-item.unread:hover {
    background-color: #f0eeff;
}

.notification-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-icon.purple {
    background-color: rgba(120, 57, 195, 0.1);
}

.notification-icon.purple svg {
    stroke: var(--primary-purple);
}

.notification-icon.orange {
    background-color: rgba(255, 124, 31, 0.1);
}

.notification-icon.orange svg {
    stroke: var(--primary-orange);
}

.notification-icon.blue {
    background-color: rgba(10, 172, 255, 0.1);
}

.notification-icon.blue svg {
    stroke: var(--primary-blue);
}

.notification-icon.pink {
    background-color: rgba(242, 22, 124, 0.1);
}

.notification-icon.pink svg {
    stroke: var(--primary-pink);
}

.notification-icon.yellow {
    background-color: rgba(255, 234, 30, 0.2);
}

.notification-icon.yellow svg {
    stroke: #d4c000;
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-title {
    margin: 0 0 0.25rem 0;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.notification-text {
    margin: 0 0 0.35rem 0;
    font-size: 0.85rem;
    color: var(--text-gray);
    line-height: 1.4;
}

.notification-time {
    font-size: 0.75rem;
    color: var(--text-gray);
    opacity: 0.8;
}

.unread-indicator {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--primary-purple);
    border-radius: 50%;
}

.notifications-footer {
    padding: 0.875rem 1.25rem;
    border-top: 1px solid #f0f0f0;
    text-align: center;
}

.view-all-link {
    color: var(--primary-purple);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.view-all-link:hover {
    background-color: var(--bg-light);
}

/* Match Notification */
.notification-match {
    padding: 0.625rem 0.875rem;
}

.match-notification {
    width: 100%;
    text-align: center;
}

.match-header {
    margin-bottom: 0.4rem;
}

.match-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: #3b82f6;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.match-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.match-row .team-logo {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.match-row .team-name {
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--text-dark);
}

.match-row .match-score {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-dark);
    padding: 0 0.25rem;
}

.match-conf {
    font-size: 0.6rem;
    color: var(--text-gray);
    margin-top: 0.2rem;
}

.notification-match .notification-time {
    margin-top: 0.15rem;
    font-size: 0.65rem;
}

/* Goal Notification */
.notification-goal {
    padding: 0.625rem 0.875rem;
}

.goal-notification {
    width: 100%;
    text-align: center;
}

.goal-header {
    margin-bottom: 0.4rem;
}

.goal-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: #22c55e;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.goal-player {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.4rem;
}

.goal-player .player-photo {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.goal-player .player-name {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-dark);
}

.goal-player .goal-minute {
    font-size: 0.75rem;
    color: var(--text-gray);
}

.goal-player .player-team-logo,
.card-player .player-team-logo {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.goal-match {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.3rem 0;
    background: var(--bg-light);
    border-radius: 4px;
    margin-bottom: 0.3rem;
}

.goal-match .team-logo-sm {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.goal-match .team-abbr {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-dark);
}

.goal-match .goal-score {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-dark);
    padding: 0 0.15rem;
}

.notification-goal .notification-time {
    margin-top: 0.15rem;
    font-size: 0.65rem;
}

/* Card Notification */
.notification-card {
    padding: 0.625rem 0.875rem;
}

.card-notification {
    width: 100%;
    text-align: center;
}

.card-header {
    margin-bottom: 0.4rem;
}

.card-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.card-player {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.4rem;
}

.card-player .player-photo {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.card-player .player-name {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-dark);
}

.card-player .card-minute {
    font-size: 0.75rem;
    color: var(--text-gray);
}

.card-match {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.3rem 0;
    background: var(--bg-light);
    border-radius: 4px;
    margin-bottom: 0.3rem;
}

.card-match .team-logo-sm {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.card-match .team-abbr {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-dark);
}

.card-match .card-score {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-dark);
}

.notification-card .notification-time {
    margin-top: 0.15rem;
    font-size: 0.65rem;
}

/* Push Notification Prompt */
.push-prompt {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background: linear-gradient(135deg, #f8f7ff 0%, #f0eeff 100%);
    border-bottom: 1px solid #e8e5ff;
    position: relative;
}

.push-prompt-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: var(--primary-purple);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.push-prompt-icon svg {
    stroke: white;
}

.push-prompt-text {
    flex: 1;
    min-width: 0;
}

.push-prompt-text strong {
    display: block;
    font-size: 0.9rem;
    color: var(--text-dark);
    margin-bottom: 0.125rem;
}

.push-prompt-text p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-gray);
}

.push-prompt-btn {
    flex-shrink: 0;
    background: var(--primary-purple);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
}

.push-prompt-btn:hover {
    background: #6a2eb8;
}

.push-prompt-btn:active {
    transform: scale(0.98);
}

.push-prompt-dismiss {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--text-gray);
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
    opacity: 0.6;
}

.push-prompt-dismiss:hover {
    opacity: 1;
}

.push-prompt-success,
.push-prompt-error {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.push-prompt-success {
    color: #22c55e;
}

.push-prompt-error {
    color: #ef4444;
}

/* Notifications Badge */
.notifications-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 18px;
    height: 18px;
    background: #ef4444;
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.3);
}

/* Notifications Empty State */
.notifications-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    text-align: center;
}

.notifications-empty svg {
    margin-bottom: 1rem;
    opacity: 0.5;
}

.notifications-empty p {
    margin: 0;
    color: var(--text-gray);
    font-size: 0.95rem;
}

/* Notification Message */
.notification-message {
    margin: 0 0 0.35rem 0;
    font-size: 0.85rem;
    color: var(--text-gray);
    line-height: 1.4;
}

/* ================================
   BOTTOM NAVIGATION - Clean Modern
   ================================ */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    min-height: 50px;
    background: white;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    border-top: 1px solid #f0f0f0;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    padding-top: 0;
    transition: transform 0.6s ease-in-out;
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    text-decoration: none;
    color: var(--text-gray);
    padding: 0.5rem 0.4rem;
    transition: all 0.2s ease;
    position: relative;
    height: 50px;
    box-sizing: border-box;
}

.nav-item svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    transition: all 0.2s ease;
}

.nav-item span {
    font-size: 0.65rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.nav-item:hover {
    color: var(--text-dark);
}

.nav-item.active {
    color: var(--primary-purple);
}

.nav-item.active svg {
    stroke-width: 2.5;
}

.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 3px;
    background: var(--primary-purple);
    border-radius: 3px 3px 0 0;
}

.nav-item:active {
    transform: scale(0.96);
}

/* ================================
   MAIN CONTENT - Mobile
   ================================ */
.app-main {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 50px;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    padding: 0.75rem;
    padding-bottom: 2rem;
    box-sizing: border-box;
}

.app-main > * {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Content Box - Mobile */
.content-box {
    background: white;
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.content-box h2 {
    color: var(--primary-purple);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--primary-orange);
    font-size: 1.5rem;
}

.content-box h3 {
    font-size: 1.25rem;
    margin-top: 1.5rem;
    color: var(--text-dark);
}

.content-box p {
    color: var(--text-gray);
    margin-bottom: 1rem;
}

.content-box ul {
    margin-left: 1.5rem;
}

/* Buttons - Mobile-First Enhanced */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    min-height: 48px;
    text-align: center;
    line-height: 1.2;
    font-family: inherit;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-purple) 0%, #6b2fb8 100%);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #6b2fb8 0%, var(--primary-purple) 100%);
}

.btn-primary:active {
    background: var(--primary-orange);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #0896e6 100%);
    color: white;
    margin-left: 0.5rem;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #0896e6 0%, var(--primary-blue) 100%);
}

.btn-secondary:active {
    background: var(--primary-pink);
}

.btn-danger {
    background: linear-gradient(135deg, #f2167c 0%, #d91468 100%);
    color: white;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #d91468 0%, #f2167c 100%);
}

.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.btn-success:hover {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
}

.btn-warning {
    background: linear-gradient(135deg, var(--primary-orange) 0%, #e66b1c 100%);
    color: white;
}

.btn-warning:hover {
    background: linear-gradient(135deg, #e66b1c 0%, var(--primary-orange) 100%);
}

/* Button size variants */
.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    min-height: 40px;
}

.btn-xs {
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
    min-height: 36px;
}

/* Button group utility */
.btn-group {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.btn-group .btn {
    flex: 0 0 auto;
}

.btn-group-equal .btn {
    flex: 1;
    min-width: 100px;
}

/* Status buttons for match flow */
.btn-status {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    min-height: 44px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-status svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.btn-status-green {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.btn-status-yellow {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.btn-status-red {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.btn-status-blue {
    background: linear-gradient(135deg, #0aacff 0%, #0896e6 100%);
    color: white;
}

.btn-status-purple {
    background: linear-gradient(135deg, #7839c3 0%, #6b2fb8 100%);
    color: white;
}

.btn-status:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Tab buttons */
.tab-btn {
    flex: 1;
    padding: 0.875rem 1rem;
    border: none;
    background: none;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-gray);
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 3px solid transparent;
    min-height: 48px;
}

.tab-btn:hover {
    color: var(--primary-purple);
    background: rgba(120, 57, 195, 0.05);
}

.tab-btn.active {
    color: var(--primary-purple);
    border-bottom-color: var(--primary-purple);
    background: rgba(120, 57, 195, 0.08);
}

/* Mobile-optimized button spacing */
@media (max-width: 768px) {
    .btn {
        min-height: 50px;
        padding: 1rem 1.75rem;
        font-size: 1.05rem;
    }

    .btn + .btn {
        margin-top: 0.75rem;
    }

    .btn-sm {
        min-height: 44px;
        padding: 0.625rem 1rem;
        font-size: 0.9rem;
    }

    .btn-xs {
        min-height: 40px;
        padding: 0.5rem 0.875rem;
        font-size: 0.85rem;
    }

    .btn-group {
        gap: 0.5rem;
    }

    .btn-group .btn {
        flex: 1 1 auto;
        min-width: 0;
    }

    .btn-group-stack .btn {
        flex: 1 1 100%;
    }

    .btn-status {
        min-height: 46px;
        padding: 0.75rem 0.875rem;
        font-size: 0.85rem;
    }

    .btn-status svg {
        width: 16px;
        height: 16px;
    }

    .tab-btn {
        padding: 0.75rem 0.5rem;
        font-size: 0.875rem;
        min-height: 44px;
    }
}

@media (max-width: 479px) {
    .btn-group-equal {
        flex-direction: column;
    }

    .btn-group-equal .btn {
        width: 100%;
    }
}

/* Cards - Mobile */
.card-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin: 1rem 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.card {
    background: white;
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s, box-shadow 0.2s;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.card:active {
    transform: scale(0.98);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.card h3 {
    color: var(--primary-purple);
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.card p {
    color: var(--text-gray);
    margin: 0;
}

/* Form Elements - Mobile */
input, textarea {
    width: 100%;
    padding: 0.875rem;
    margin-bottom: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    min-height: 44px;
    background-color: var(--bg-light);
    transition: border-color 0.3s;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-purple);
    background-color: white;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
}

/* ================================
   TABLET STYLES (768px and up)
   ================================ */
@media (min-width: 768px) {
    /* Header - Tablet */
    .app-header {
        height: 70px;
        padding: 0 2rem;
    }

    .header-title h1 {
        font-size: 1.5rem;
    }

    /* Bottom Nav stays fixed at bottom - Tablet */

    /* Main Content - Tablet */
    .app-main {
        padding: 1.5rem 2rem;
    }

    .content-box {
        padding: 1.75rem;
        margin-bottom: 1.5rem;
        border-radius: 16px;
    }

    .content-box h2 {
        font-size: 1.75rem;
    }

    /* Cards - Tablet */
    .card-container {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.25rem;
        margin: 1.5rem 0;
    }

    .card {
        padding: 1.5rem;
        border-radius: 16px;
    }

    .card:hover {
        transform: translateY(-3px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    }

    .card:active {
        transform: translateY(-3px);
    }

    /* Buttons - Tablet */
    .btn-secondary {
        margin-left: 1rem;
    }

    .btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }
}

/* ================================
   DESKTOP STYLES (1024px and up)
   ================================ */
@media (min-width: 1024px) {
    /* Header - Desktop */
    .app-header {
        height: 80px;
    }

    .header-title h1 {
        font-size: 1.75rem;
    }

    /* Bottom Nav stays at bottom - Desktop */

    /* Main Content - Desktop */
    .app-main {
        padding: 2rem;
    }

    .content-box {
        padding: 2rem;
    }

    .content-box h2 {
        font-size: 2rem;
    }

    /* Cards - Desktop */
    .card-container {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 1.5rem;
        margin: 2rem 0;
    }

    .card:hover {
        transform: translateY(-5px);
    }

    /* Hover effects for desktop */
    .btn:active {
        transform: translateY(0);
    }

    .notifications-button:hover {
        transform: scale(1.05);
    }
}

/* ================================
   LARGE DESKTOP (1440px and up)
   ================================ */
@media (min-width: 1440px) {
    .header-title h1 {
        font-size: 2rem;
    }

    .content-box h2 {
        font-size: 2.25rem;
    }
}

/* ================================
   PWA / Native App Enhancements
   ================================ */
@media (display-mode: standalone) {
    .app-header {
        height: 64px;
        top: env(safe-area-inset-top, 0px);
    }

    .bottom-nav {
        min-height: 50px;
        padding-top: 0;
    }

    .app-main {
        top: calc(64px + env(safe-area-inset-top, 0px));
        bottom: 50px;
    }
}

/* Smooth scrolling */
.app-main {
    scroll-behavior: smooth;
}

/* Pull to refresh indicator space */
.app-main {
    overscroll-behavior-y: contain;
    touch-action: pan-y;
}

/* ================================
   PWA Install Prompt
   ================================ */
.install-prompt {
    position: fixed;
    bottom: calc(var(--bottom-nav-height) + 1rem);
    left: 1rem;
    right: 1rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    padding: 1rem;
    animation: slideUp 0.3s ease-out;
}

.install-prompt-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
}

.install-prompt-content svg {
    flex-shrink: 0;
}

.install-prompt-content > div {
    flex: 1;
}

.install-prompt h3 {
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
    color: var(--text-dark);
}

.install-prompt p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-gray);
}

.install-prompt .btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    min-height: 36px;
    white-space: nowrap;
}

.btn-close {
    position: absolute;
    top: -0.5rem;
    right: -0.5rem;
    background: var(--text-dark);
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.25rem;
    line-height: 1;
    padding: 0;
}

.btn-close:hover {
    background: var(--primary-purple);
}

/* ================================
   Animations
   ================================ */
@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeInOut {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(-10px);
    }
    10% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    90% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(-10px);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* ================================
   Responsive Install Prompt
   ================================ */
@media (min-width: 768px) {
    .install-prompt {
        left: 50%;
        transform: translateX(-50%);
        max-width: 500px;
        bottom: 2rem;
    }
}

@media (min-width: 1024px) {
    .install-prompt {
        bottom: 2rem;
    }
}

/* ================================
   PROFILE PAGE
   ================================ */
.profile-container {
    max-width: 600px;
    margin: 0 auto;
}

.profile-header {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.profile-avatar {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.profile-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0.5rem 0;
}

.profile-email {
    color: var(--text-gray);
    font-size: 0.95rem;
    margin: 0;
}

/* Profile Stats */
.profile-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 1.25rem 0.75rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-purple);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-gray);
    font-weight: 500;
}

/* Profile Menu */
.profile-menu {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.profile-menu-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    text-decoration: none;
    color: var(--text-dark);
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
    min-height: 72px;
}

.profile-menu-item:last-child {
    border-bottom: none;
}

.profile-menu-item:hover {
    background-color: var(--bg-light);
}

.profile-menu-item:active {
    background-color: #f0f0f0;
}

.profile-menu-item svg:first-child {
    flex-shrink: 0;
    stroke: var(--primary-purple);
}

.profile-menu-item.danger svg:first-child {
    stroke: var(--primary-pink);
}

.menu-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.menu-title {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-dark);
}

.menu-subtitle {
    font-size: 0.85rem;
    color: var(--text-gray);
}

.profile-menu-item.danger .menu-title {
    color: var(--primary-pink);
}

.profile-menu-item svg:last-child {
    flex-shrink: 0;
    stroke: var(--text-gray);
}

/* Responsive Profile Styles */
@media (min-width: 768px) {
    .profile-header {
        padding: 2.5rem;
    }

    .profile-name {
        font-size: 1.75rem;
    }

    .profile-stats {
        gap: 1rem;
    }

    .stat-card {
        padding: 1.5rem 1rem;
    }

    .stat-value {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.85rem;
    }

    .profile-menu-item {
        padding: 1.25rem 1.5rem;
    }
}

@media (min-width: 1024px) {
    .profile-header {
        padding: 3rem;
    }

    .profile-name {
        font-size: 2rem;
    }

    .stat-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
        transition: all 0.2s ease;
    }
}

/* ================================
   LOGIN PAGE
   ================================ */
.login-body {
    min-height: 100vh;
    min-height: 100dvh;
    width: 100vw;
    width: 100dvw;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    position: relative;
    overflow-x: hidden;
    margin: 0;
    background: #7839c3;
    background: -webkit-linear-gradient(135deg, #7839c3 0%, #5a71d8 35%, #0aacff 65%, #ff7c1f 100%);
    background: linear-gradient(135deg, #7839c3 0%, #5a71d8 35%, #0aacff 65%, #ff7c1f 100%);
    background-attachment: fixed;
}

.login-body::before {
    content: '';
    position: absolute;
    width: min(400px, 40dvw);
    height: min(400px, 40dvh);
    background: radial-gradient(circle, rgba(255, 234, 30, 0.15) 0%, transparent 70%);
    top: -10dvh;
    right: -10dvw;
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.login-body::after {
    content: '';
    position: absolute;
    width: min(350px, 35dvw);
    height: min(350px, 35dvh);
    background: radial-gradient(circle, rgba(242, 22, 124, 0.15) 0%, transparent 70%);
    bottom: -10dvh;
    left: -10dvw;
    border-radius: 50%;
    animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-20px) scale(1.05);
    }
}

.login-container {
    width: 100%;
    max-width: min(420px, 90dvw);
    max-height: 85dvh;
    position: relative;
    z-index: 1;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: clamp(0.75rem, 2dvh, 2rem);
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.login-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-logo {
    text-align: center;
    margin-bottom: clamp(1rem, 4dvh, 2.5rem);
    animation: fadeIn 0.6s ease-out both;
}

.login-logo img {
    max-width: clamp(140px, 40dvw, 240px);
    width: 100%;
    height: auto;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.login-form h1 {
    font-size: 1.75rem;
    font-weight: 800;
    background: linear-gradient(135deg, #7839c3 0%, #0aacff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 0.5rem 0;
    text-align: center;
    letter-spacing: -0.5px;
}

.login-subtitle {
    text-align: center;
    color: var(--text-gray);
    margin: 0 0 2rem 0;
    font-size: 0.9rem;
    font-weight: 500;
}

.form-group {
    margin-bottom: clamp(0.5rem, 2dvh, 1.25rem);
}

.login-form {
    width: 100%;
    animation: slideInUp 0.5s ease-out 0.2s both;
}

.form-group label {
    display: block;
    margin-bottom: clamp(0.25rem, 0.75dvh, 0.5rem);
    color: white;
    font-weight: 700;
    font-size: clamp(0.7rem, 1.25dvh, 0.875rem);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.form-group input {
    width: 100%;
    padding: clamp(0.5rem, 2dvh, 1rem) clamp(0.75rem, 2.5dvw, 1.25rem);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: clamp(8px, 1.5dvh, 12px);
    font-family: inherit;
    font-size: clamp(0.75rem, 2dvh, 1rem);
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.95);
    margin-bottom: 0;
    font-weight: 500;
    box-sizing: border-box;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.form-group input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.8);
    background-color: white;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15), 0 0 0 3px rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.form-group input::placeholder {
    color: rgba(128, 128, 128, 0.5);
}

.btn-block {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(0.375rem, 1dvw, 0.625rem);
    margin-top: clamp(0.75rem, 2.5dvh, 1.75rem);
    font-size: clamp(0.8125rem, 2dvh, 1.0625rem);
    padding: clamp(0.625rem, 2dvh, 1.125rem);
    border-radius: clamp(8px, 1.5dvh, 12px);
    font-weight: 700;
    background: white;
    color: #7839c3;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.5);
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.btn-block:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
    background: rgba(255, 255, 255, 1);
    border-color: white;
}

.btn-block:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-block svg {
    stroke: currentColor;
}

.error-message {
    background-color: rgba(242, 22, 124, 0.95);
    color: white;
    padding: clamp(0.625rem, 2dvh, 1.125rem) clamp(0.875rem, 2.5dvw, 1.375rem);
    border-radius: clamp(8px, 1.5dvh, 14px);
    margin-bottom: clamp(0.75rem, 2.5dvh, 1.75rem);
    display: flex;
    align-items: center;
    gap: clamp(0.5rem, 1dvw, 0.875rem);
    font-size: clamp(0.75rem, 1.75dvh, 0.9375rem);
    font-weight: 600;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    animation: shake 0.4s, fadeIn 0.3s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.error-message svg {
    flex-shrink: 0;
    stroke: white;
}

.login-footer {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 2px solid rgba(0, 0, 0, 0.05);
    text-align: center;
}

.login-footer p {
    margin: 0.35rem 0;
    font-size: 0.875rem;
    color: var(--text-gray);
}

.login-footer p:first-child {
    margin-bottom: 0.875rem;
    font-weight: 700;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.login-footer strong {
    color: #0aacff;
    font-weight: 700;
}

/* Responsive Login Styles */
@media (min-width: 768px) {
    .login-body {
        padding: clamp(1.25rem, 3dvh, 2.25rem);
    }

    .login-container {
        max-height: 90dvh;
        max-width: clamp(380px, 75dvw, 480px);
        padding: clamp(1.5rem, 3dvh, 2.5rem);
    }

    .login-logo {
        margin-bottom: clamp(1.5rem, 4dvh, 3rem);
    }

    .login-logo img {
        max-width: clamp(180px, 45dvw, 280px);
    }

    .form-group {
        margin-bottom: clamp(0.75rem, 2.5dvh, 1.5rem);
    }

    .form-group label {
        font-size: clamp(0.75rem, 1.5dvh, 0.9375rem);
    }

    .form-group input {
        padding: clamp(0.625rem, 2.25dvh, 1.125rem) clamp(0.875rem, 3dvw, 1.375rem);
        font-size: clamp(0.8125rem, 2dvh, 1.0625rem);
    }

    .btn-block {
        padding: clamp(0.75rem, 2.25dvh, 1.25rem);
        font-size: clamp(0.875rem, 2dvh, 1.125rem);
        margin-top: clamp(1rem, 3dvh, 2rem);
    }

    .error-message {
        padding: clamp(0.75rem, 2dvh, 1.25rem) clamp(0.875rem, 3dvw, 1.5rem);
        font-size: clamp(0.8125rem, 1.75dvh, 1rem);
    }
}

@media (min-width: 1024px) {
    .login-container {
        max-width: clamp(400px, 70dvw, 520px);
        max-height: 90dvh;
        overflow-y: auto;
    }

    .login-logo {
        margin-bottom: clamp(1rem, 2.5dvh, 2rem);
    }

    .login-logo img {
        max-width: clamp(160px, 35dvw, 240px);
    }

    .form-group {
        margin-bottom: clamp(0.625rem, 1.5dvh, 1rem);
    }

    .form-group label {
        font-size: clamp(0.75rem, 1.25dvh, 0.875rem);
    }

    .form-group input {
        padding: clamp(0.625rem, 1.5dvh, 0.875rem) clamp(0.875rem, 2.5dvw, 1.125rem);
        font-size: clamp(0.8125rem, 1.5dvh, 0.9375rem);
    }

    .btn-block {
        padding: clamp(0.75rem, 1.75dvh, 1rem);
        font-size: clamp(0.875rem, 1.5dvh, 1rem);
        margin-top: clamp(0.875rem, 2dvh, 1.25rem);
    }

    .error-message {
        padding: clamp(0.625rem, 1.5dvh, 0.875rem) clamp(0.75rem, 2dvw, 1rem);
        font-size: clamp(0.75rem, 1.25dvh, 0.8125rem);
        margin-bottom: clamp(0.625rem, 1.5dvh, 1rem);
    }
}

/* ================================
   DASHBOARD COMPONENTS
   ================================ */
.dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    width: 100%;
    box-sizing: border-box;
}

/* Welcome Card - Enhanced */
.welcome-card {
    background: linear-gradient(135deg, var(--primary-purple) 0%, #5a71d8 50%, var(--primary-blue) 100%);
    border-radius: 16px;
    padding: 1.5rem 1.25rem;
    margin-bottom: 1.5rem;
    color: white;
    box-shadow: 0 8px 24px rgba(120, 57, 195, 0.25), 0 4px 12px rgba(10, 172, 255, 0.15);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.welcome-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.welcome-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 60%);
    border-radius: 50%;
}

.welcome-card h2 {
    margin: 0 0 0.5rem 0;
    font-size: 1.75rem;
    font-weight: 800;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    letter-spacing: -0.02em;
}

.welcome-card p {
    margin: 0;
    opacity: 0.95;
    font-size: 0.95rem;
    position: relative;
    z-index: 1;
    font-weight: 500;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 0.875rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 0.625rem;
    transition: all 0.2s ease;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.stat-card.clickable {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.stat-card:hover, .stat-card.clickable:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.stat-card.clickable:active {
    transform: translateY(-1px);
}

/* Public stat cards (icon + label only, no number) - center content */
.stat-card.public-stat-card {
    justify-content: center;
    padding: 0.875rem 0.5rem;
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon svg {
    width: 20px;
    height: 20px;
}

.stat-icon.purple {
    background-color: rgba(120, 57, 195, 0.1);
}

.stat-icon.purple svg {
    stroke: var(--primary-purple);
}

.stat-icon.orange {
    background-color: rgba(255, 124, 31, 0.1);
}

.stat-icon.orange svg {
    stroke: var(--primary-orange);
}

.stat-icon.blue {
    background-color: rgba(10, 172, 255, 0.1);
}

.stat-icon.blue svg {
    stroke: var(--primary-blue);
}

.stat-icon.pink {
    background-color: rgba(242, 22, 124, 0.1);
}

.stat-icon.pink svg {
    stroke: var(--primary-pink);
}

.stat-icon.yellow {
    background-color: rgba(255, 234, 30, 0.2);
}

.stat-icon.yellow svg {
    stroke: #d4c000;
}

.stat-content h3 {
    margin: 0 0 0.125rem 0;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.stat-number {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1;
}

/* Section Card */
.section-card {
    background: white;
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.section-card h3 {
    margin: 0 0 1.25rem 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
}

/* Action Grid */
.action-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.action-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.5rem 1rem;
    background: var(--bg-light);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.action-button:hover {
    background: white;
    border-color: var(--primary-purple);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(120, 57, 195, 0.15);
}

.action-button svg {
    stroke: var(--primary-purple);
}

.action-button span {
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
}

/* List Container */
.list-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.list-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.2s ease;
}

.list-item:hover {
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transform: translateX(5px);
}

.list-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.list-icon.purple {
    background-color: rgba(120, 57, 195, 0.1);
}

.list-icon.purple svg {
    stroke: var(--primary-purple);
}

.list-icon.orange {
    background-color: rgba(255, 124, 31, 0.1);
}

.list-icon.orange svg {
    stroke: var(--primary-orange);
}

.list-icon.blue {
    background-color: rgba(10, 172, 255, 0.1);
}

.list-icon.blue svg {
    stroke: var(--primary-blue);
}

.list-icon.pink {
    background-color: rgba(242, 22, 124, 0.1);
}

.list-icon.pink svg {
    stroke: var(--primary-pink);
}

.list-content {
    flex: 1;
    min-width: 0;
}

.list-title {
    margin: 0 0 0.25rem 0;
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-dark);
}

.list-subtitle {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-gray);
}

.list-item > svg:last-child {
    flex-shrink: 0;
    stroke: var(--text-gray);
}

/* Activity List */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.activity-item {
    display: flex;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f0f0f0;
}

.activity-item:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.activity-icon.purple {
    background-color: rgba(120, 57, 195, 0.1);
}

.activity-icon.purple svg {
    stroke: var(--primary-purple);
}

.activity-icon.orange {
    background-color: rgba(255, 124, 31, 0.1);
}

.activity-icon.orange svg {
    stroke: var(--primary-orange);
}

.activity-icon.blue {
    background-color: rgba(10, 172, 255, 0.1);
}

.activity-icon.blue svg {
    stroke: var(--primary-blue);
}

.activity-icon.pink {
    background-color: rgba(242, 22, 124, 0.1);
}

.activity-icon.pink svg {
    stroke: var(--primary-pink);
}

.activity-content {
    flex: 1;
}

.activity-content p {
    margin: 0 0 0.25rem 0;
}

.activity-content strong {
    font-weight: 600;
    color: var(--text-dark);
}

.activity-detail {
    font-size: 0.9rem;
    color: var(--text-gray);
}

.activity-time {
    font-size: 0.8rem;
    color: var(--text-gray);
    opacity: 0.8;
}

/* Match Card */
.match-card {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 1.5rem;
}

.match-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.match-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.team-logo {
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.team-logo svg {
    stroke: var(--primary-purple);
}

.match-team p {
    margin: 0;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
}

.match-vs {
    font-weight: 700;
    color: var(--text-gray);
    padding: 0 1rem;
}

.match-vs p {
    margin: 0;
}

.match-details {
    text-align: center;
}

.match-details p {
    margin: 0.25rem 0;
    color: var(--text-dark);
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--primary-purple);
    text-decoration: none;
    font-weight: 500;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    color: var(--text-gray);
}

/* Page Header */
.page-header {
    margin-bottom: 1.5rem;
}

.page-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 0.5rem 0;
}

.page-header p {
    margin: 0;
    color: var(--text-gray);
    font-size: 1rem;
}

/* Entities Grid */
.entities-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.entity-card {
    background: white;
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.2s ease;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.entity-card:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.entity-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.entity-content {
    flex: 1;
    min-width: 0;
}

.entity-content h3 {
    margin: 0 0 0.25rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
}

.entity-abbreviation {
    margin: 0 0 0.5rem 0;
    font-size: 0.85rem;
    color: var(--text-gray);
    font-weight: 500;
}

.entity-stats {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-gray);
}

/* Conference Stats Grid - Responsive */
.conference-stats {
    display: grid;
    gap: 0.5rem;
    text-align: center;
    width: 100%;
    overflow-x: auto;
}

/* Mobile: 4 columns (POS, GP, GD, PTS - most important) */
@media (max-width: 480px) {
    .conference-stats {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.25rem;
        font-size: 0.65rem;
    }
    .conference-stats > div:nth-child(n+5):not(:nth-child(8)):not(:nth-child(11)) {
        display: none; /* Hide W, D, L, GF, GA, YC, RC on very small screens */
    }
}

/* Small Mobile: 6 columns (POS, GP, W, D, L, PTS) */
@media (min-width: 481px) and (max-width: 640px) {
    .conference-stats {
        grid-template-columns: repeat(6, 1fr);
        gap: 0.35rem;
        font-size: 0.7rem;
    }
    .conference-stats > div:nth-child(n+6):not(:nth-child(11)) {
        display: none; /* Hide GF, GA, GD, YC, RC */
    }
}

/* Tablet: 8 columns (POS, GP, W, D, L, GD, YC, RC hidden, PTS shown) */
@media (min-width: 641px) and (max-width: 900px) {
    .conference-stats {
        grid-template-columns: repeat(8, 1fr);
        gap: 0.4rem;
        font-size: 0.75rem;
    }
    .conference-stats > div:nth-child(9),
    .conference-stats > div:nth-child(10) {
        display: none; /* Hide YC, RC */
    }
}

/* Desktop: All 11 columns */
@media (min-width: 901px) {
    .conference-stats {
        grid-template-columns: repeat(11, 1fr);
        gap: 0.5rem;
        font-size: 0.85rem;
    }
}

.conference-stats > div > div:first-child {
    font-weight: 600;
    color: var(--text-gray);
    font-size: 0.75rem;
}

.conference-stats > div > div:last-child {
    font-weight: 700;
    color: var(--text-dark);
    margin-top: 0.25rem;
}

.entity-arrow {
    flex-shrink: 0;
    stroke: var(--text-gray);
}

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.info-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-size: 1rem;
    color: var(--text-dark);
    font-weight: 500;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 2rem;
    color: var(--text-gray);
    font-style: italic;
}

/* Responsive Dashboard Styles */
@media (min-width: 768px) {
    .welcome-card {
        padding: 3rem 2.5rem;
        border-radius: 24px;
    }

    .welcome-card h2 {
        font-size: 2.25rem;
    }

    .welcome-card p {
        font-size: 1.05rem;
    }

    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }

    .stat-card {
        padding: 1.125rem;
        gap: 0.875rem;
    }

    .stat-icon {
        width: 48px;
        height: 48px;
    }

    .stat-icon svg {
        width: 24px;
        height: 24px;
    }

    .stat-number {
        font-size: 1.75rem;
    }

    .stat-content h3 {
        font-size: 0.75rem;
    }

    .action-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .section-card {
        padding: 2rem;
    }

    .entities-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }

    .info-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .page-header h2 {
        font-size: 2rem;
    }
}

@media (min-width: 1024px) {
    .welcome-card {
        padding: 3.5rem 3rem;
        border-radius: 28px;
    }

    .welcome-card h2 {
        font-size: 2.5rem;
    }

    .welcome-card p {
        font-size: 1.1rem;
    }

    .welcome-card::after {
        width: 200px;
        height: 200px;
    }

    .stat-card {
        padding: 1.5rem;
    }

    .stat-icon {
        width: 64px;
        height: 64px;
    }

    .stat-icon svg {
        width: 28px;
        height: 28px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-content h3 {
        font-size: 0.85rem;
    }

    .entities-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .info-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .page-header h2 {
        font-size: 2.25rem;
    }
}

/* ================================
   SEARCH BAR
   ================================ */
.search-container {
    margin-bottom: 1.5rem;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 3rem;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s;
    background-color: white;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 3px rgba(120, 57, 195, 0.1);
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-gray);
    pointer-events: none;
}

.no-results {
    text-align: center;
    padding: 3rem 1.5rem;
    color: var(--text-gray);
    display: none;
}

.no-results.active {
    display: block;
}

.no-results svg {
    margin: 0 auto 1rem;
}

/* ================================
   LOADING SPINNER
   ================================ */
.loading-spinner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.7);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.loading-spinner.active {
    opacity: 1;
    visibility: visible;
}

.spinner-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(120, 57, 195, 0.2);
    border-top-color: var(--primary-purple);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.spinner-text {
    color: var(--primary-purple);
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Prevent interactions while loading */
body.loading {
    pointer-events: none;
    overflow: hidden;
}

body.loading .loading-spinner {
    pointer-events: all;
}

/* ================================
   IMAGE MODAL POPUP
   ================================ */
.image-modal {
    display: none;
    position: fixed;
    z-index: 10001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease;
}

.image-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-modal-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s ease;
}

.image-modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.5);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.image-modal-close:hover,
.image-modal-close:focus {
    background: rgba(242, 22, 124, 0.8);
    transform: rotate(90deg);
}

.enlargeable-image {
    cursor: pointer;
    transition: all 0.3s ease;
}

.enlargeable-image:hover {
    opacity: 0.85;
    transform: scale(1.02);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoomIn {
    from {
        transform: scale(0.5);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* ================================
   APPROVAL BUTTONS
   ================================ */
.approval-btn {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.approve-btn {
    background: rgba(10, 172, 255, 0.1);
    color: #0aacff;
}

.approve-btn:hover {
    background: #0aacff;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(10, 172, 255, 0.3);
}

.revision-btn {
    background: rgba(255, 124, 31, 0.1);
    color: #ff7c1f;
}

.revision-btn:hover {
    background: #ff7c1f;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 124, 31, 0.3);
}

.reject-btn {
    background: rgba(128, 128, 128, 0.1);
    color: #808080;
}

.reject-btn:hover {
    background: #808080;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(128, 128, 128, 0.3);
}

/* ================================
   MATCH CARDS - MOBILE RESPONSIVE
   ================================ */

/* Match Card Container */
.match-card {
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    transition: all 0.2s ease;
}

.match-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.match-card:active {
    transform: translateY(-1px);
}

/* Match Teams Container - Desktop (3-column: home, score, away) */
.match-teams-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 0;
    width: 100%;
}

/* Match Team Section */
.match-team {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.match-team-home {
    justify-content: flex-start;
}

.match-team-away {
    justify-content: flex-start;
}

/* Match Team Logo */
.match-team-logo {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    overflow: hidden;
    background-color: rgba(120, 57, 195, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Match Team Info */
.match-team-info {
    flex: 1;
}

.match-team-home .match-team-info {
    text-align: left;
}

.match-team-away .match-team-info {
    text-align: left;
}

.match-team-name {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
}

.match-team-details {
    margin: 0.25rem 0 0 0;
    font-size: 0.75rem;
    color: var(--text-gray);
}

/* Match Score Section */
.match-score {
    text-align: center;
    min-width: 100px;
}

.match-score-box {
    padding: 0.5rem 1rem;
    border-radius: 6px;
}

.match-score-unscheduled {
    background: rgba(128, 128, 128, 0.1);
}

.match-score-final {
    background: rgba(242, 22, 124, 0.1);
}

.match-score-live {
    background: rgba(10, 172, 255, 0.1);
}

.match-score-text {
    margin: 0;
    font-size: 0.64rem;
    font-weight: 700;
}

.match-score-unscheduled .match-score-text {
    color: var(--text-gray);
}

.match-score-numbers {
    margin: 0;
    font-size: 1.06rem;
    font-weight: 700;
}

.match-score-final .match-score-numbers {
    color: #f2167c;
}

.match-score-live .match-score-numbers {
    color: #0aacff;
}

.match-score-status {
    margin: 0.25rem 0 0 0;
    font-size: 0.55rem;
    font-weight: 700;
}

.match-score-unscheduled .match-score-status {
    color: var(--text-gray);
}

.match-score-final .match-score-status {
    color: #f2167c;
}

.match-score-live .match-score-status {
    color: #0aacff;
}

/* Match Footer */
.match-footer {
    display: block;
    width: 100%;
    text-align: center;
    padding-top: 1rem;
    margin-top: 1rem;
    border-top: 1px solid #f0f0f0;
    clear: both;
    float: none;
}

.match-id {
    font-size: 0.75rem;
    color: var(--text-gray);
    font-weight: 600;
    display: block;
    width: 100%;
}

/* ================================
   MOBILE RESPONSIVE - MATCH CARDS
   ================================ */

/* Small Mobile: Stack vertically on very small screens */
@media (max-width: 640px) {
    .match-card {
        display: flex !important;
        flex-direction: column !important;
    }

    .match-teams-container {
        flex-direction: column;
        gap: 1rem;
    }

    .match-team {
        width: 100%;
        justify-content: center !important;
    }

    .match-team-home .match-team-info,
    .match-team-away .match-team-info {
        text-align: center;
    }

    .match-score {
        width: 100%;
        min-width: auto;
    }

    .match-team-name {
        font-size: 0.9rem;
    }

    .match-team-details {
        font-size: 0.7rem;
    }

    .match-score-numbers {
        font-size: 1.1rem;
    }

    .match-footer {
        display: block !important;
        width: 100% !important;
    }

    .match-id {
        display: block !important;
        width: 100% !important;
    }
}

/* ================================
   TEAM VIEW PAGE - MATCHES DROPDOWN MOBILE
   ================================ */

@media (max-width: 768px) {
    /* Make matches section compact on mobile */
    #matches-content > div > a > div {
        padding: 0.875rem !important;
    }

    /* Stack match info vertically on mobile */
    #matches-content > div > a > div > div:first-child {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.5rem !important;
        margin-bottom: 0.75rem !important;
    }

    #matches-content > div > a > div > div:first-child > div:first-child {
        flex: 1;
    }

    #matches-content > div > a > div > div:first-child > div > p:first-child {
        font-size: 0.75rem !important;
    }

    #matches-content > div > a > div > div:first-child > div > p:last-child {
        font-size: 0.7rem !important;
    }

    /* Status badge - make smaller and full width */
    #matches-content > div > a > div > div:first-child > span {
        padding: 0.25rem 0.5rem !important;
        font-size: 0.7rem !important;
        width: 100%;
        text-align: center;
    }

    /* Teams grid - stack vertically: Team A, Score, Team B */
    #matches-content > div > a > div > div:last-child {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.5rem !important;
    }

    /* Home Team - Logo + Name on one line */
    #matches-content > div > a > div > div:last-child > div:first-child {
        display: flex !important;
        align-items: center !important;
        gap: 0.5rem !important;
        order: 1;
    }

    #matches-content > div > a > div > div:last-child > div:first-child > div:first-child {
        width: 32px !important;
        height: 32px !important;
        border-radius: 6px !important;
        flex-shrink: 0 !important;
    }

    #matches-content > div > a > div > div:last-child > div:first-child > div:first-child svg {
        width: 18px !important;
        height: 18px !important;
    }

    #matches-content > div > a > div > div:last-child > div:first-child > div:nth-child(2) {
        flex: 1 !important;
        text-align: left !important;
    }

    #matches-content > div > a > div > div:last-child > div:first-child > div:nth-child(2) > p:first-child {
        font-size: 0.9rem !important;
        margin: 0 !important;
    }

    #matches-content > div > a > div > div:last-child > div:first-child > div:nth-child(2) > p:last-child {
        display: none !important;
    }

    /* Score - on its own line, centered */
    #matches-content > div > a > div > div:last-child > div:nth-child(2) {
        order: 2;
        text-align: center !important;
        padding: 0.5rem 0 !important;
    }

    #matches-content > div > a > div > div:last-child > div:nth-child(2) > div {
        font-size: 1.5rem !important;
        font-weight: 700 !important;
    }

    /* Away Team - Logo + Name on one line */
    #matches-content > div > a > div > div:last-child > div:last-child {
        display: flex !important;
        align-items: center !important;
        gap: 0.5rem !important;
        order: 3;
    }

    #matches-content > div > a > div > div:last-child > div:last-child > div:first-child {
        text-align: left !important;
        flex: 1 !important;
        order: 2 !important;
    }

    #matches-content > div > a > div > div:last-child > div:last-child > div:first-child > p:first-child {
        font-size: 0.9rem !important;
        margin: 0 !important;
    }

    #matches-content > div > a > div > div:last-child > div:last-child > div:first-child > p:last-child {
        display: none !important;
    }

    #matches-content > div > a > div > div:last-child > div:last-child > div:last-child {
        width: 32px !important;
        height: 32px !important;
        border-radius: 6px !important;
        flex-shrink: 0 !important;
        order: 1 !important;
    }

    #matches-content > div > a > div > div:last-child > div:last-child > div:last-child svg {
        width: 18px !important;
        height: 18px !important;
    }
}

/* Mobile: Further optimize for small screens */
@media (max-width: 480px) {
    .match-card {
        padding: 1rem !important;
        display: flex !important;
        flex-direction: column !important;
    }

    .match-team-logo {
        width: 32px;
        height: 32px;
    }

    .match-team-logo svg {
        width: 16px;
        height: 16px;
    }

    .match-team-name {
        font-size: 0.85rem;
    }

    .match-team-details {
        font-size: 0.65rem;
    }

    .match-score-box {
        padding: 0.4rem 0.75rem;
    }

    .match-score-numbers {
        font-size: 1rem;
    }

    .match-score-text {
        font-size: 0.7rem;
    }

    .match-score-status {
        font-size: 0.6rem;
    }

    .match-footer {
        display: block !important;
        width: 100% !important;
        margin-top: 1rem !important;
    }

    .match-id {
        display: block !important;
        width: 100% !important;
        text-align: center !important;
    }
}

/* ================================
   CONFERENCE CARDS - MOBILE RESPONSIVE
   ================================ */

/* Make buttons stack on mobile */
@media (max-width: 768px) {
    .entity-card .btn {
        font-size: 0.75rem !important;
        padding: 0.4rem 0.6rem !important;
    }
    
    .entity-card .btn svg {
        width: 12px !important;
        height: 12px !important;
    }
}

@media (max-width: 480px) {
    /* Reduce padding for very small screens */
    .app-header {
        padding: 0 1rem;
    }

    .app-main {
        padding: 0.5rem;
    }

    .welcome-card {
        padding: 1.25rem 1rem;
        border-radius: 12px;
    }

    .section-card {
        padding: 1rem;
        border-radius: 10px;
    }

    .stats-grid {
        gap: 0.75rem;
    }

    .stat-card {
        padding: 1rem;
    }

    .entity-card .btn {
        width: 100%;
        justify-content: center;
    }

    /* Stack action buttons vertically on mobile */
    .entity-card > div:last-child {
        flex-direction: column !important;
        width: 100%;
    }

    .entity-card form {
        width: 100%;
    }

    .entity-card form button {
        width: 100%;
    }

    /* Ensure all containers respect width limits */
    * {
        max-width: 100%;
    }

    /* Tables are handled responsively per template - no horizontal scroll */
    table {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    /* Grid layouts - ensure they don't overflow */
    .stats-grid,
    .action-grid,
    .entities-grid,
    .info-grid {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    /* Match cards and similar elements */
    .match-card,
    .entity-card {
        max-width: 100%;
        box-sizing: border-box;
    }

    /* Override inline grid styles that are too wide for mobile */
    [style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }

    /* Allow 2-column layout for very simple grids */
    .stats-grid[style*="grid-template-columns"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Score display in match view - maintain 3 columns but let them shrink */
    [style*="grid-template-columns: 1fr auto 1fr"] {
        grid-template-columns: 1fr auto 1fr !important;
        gap: 1rem !important;
    }

    /* Reduce gaps in grid layouts */
    [style*="gap: 2rem"] {
        gap: 1rem !important;
    }
}

/* ================================
   MATCH STATUS INDICATORS
   ================================ */

/* Status Indicator Circle */
.status-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 0.5rem;
    animation: pulse 2s ease-in-out infinite;
}

/* Green Glowing Indicator (Live Matches) */
.status-indicator-green {
    background: #00ff00;
    box-shadow: 0 0 8px #00ff00, 0 0 12px #00ff00, 0 0 16px #00ff00;
}

/* Red Glowing Indicator (Suspended) */
.status-indicator-red {
    background: #ff0000;
    box-shadow: 0 0 8px #ff0000, 0 0 12px #ff0000, 0 0 16px #ff0000;
}

/* Pulse Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

/* Suspended Match Score Box */
.match-score-suspended {
    background: rgba(255, 0, 0, 0.1);
}

/* ================================
   LIVE MATCH INDICATOR DOTS
   ================================ */
.live-indicator-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    animation: pulse-live 2s ease-in-out infinite;
}

/* Green - Live (First Half, Second Half, HalfTime) */
.live-indicator-dot.live-green {
    background: #10b981;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
}

/* Orange - Half Time (for public standings compatibility) */
.live-indicator-dot.live-orange {
    background: #ff7c1f;
    box-shadow: 0 0 8px rgba(255, 124, 31, 0.6);
}

/* Red - Suspended */
.live-indicator-dot.live-red {
    background: #f2167c;
    box-shadow: 0 0 8px rgba(242, 22, 124, 0.6);
}

@keyframes pulse-live {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

.match-score-suspended .match-score-numbers {
    color: #ff0000;
}

.match-score-suspended .match-score-status {
    color: #ff0000;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Live Match Status Alignment */
.match-score-live .match-score-status {
    display: flex;
    align-items: center;
    justify-content: center;
}

