:root {
    --bg-dark: #0d0f1a;
    --bg-med: #141727;
    --bg-light: #212539;
    --border: #2a2f47;
    --primary: #4f46e5;
    --primary-light: #6366f1;
    --text-light: #e0e7ff;
    --text-med: #a5b4fc;
    --text-dark: #374151;
    --shadow-color: rgba(0, 0, 0, 0.2);
    --font-body: 'Inter', sans-serif;
    --font-heading: 'Space Grotesk', sans-serif;
    --green: #34d399;
    --red: #f87171;
    --yellow: #fbbF24;
    --radius-lg: 18px;
    --radius-md: 14px;
    --radius-sm: 10px;
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.14);
    --glass-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.4) 0%, rgba(30, 41, 59, 0.35) 100%),
        url('images/background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: var(--text-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    -webkit-tap-highlight-color: transparent;
}

.app-container {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* --- Main Layout --- */
.sidebar { display: none; }
.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    position: relative;
}
.sidebar-logo-img {
    height: 72px;
    width: auto;
    object-fit: contain;
    display: block;
}

.sidebar-user-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.sidebar-user-name {
    margin: 0;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 700;
    display: block;
}
.main-content {
    width: 100%;
    padding-bottom: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    line-height: 1.4;
}
.page { display: none; animation: fadeIn 0.4s ease-in-out; }
.page.active { display: block; }
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Page Headers --- */
.page-header {
    padding: 1.5rem 1rem;
    background: linear-gradient(160deg, var(--bg-med), var(--bg-dark));
    border-bottom: 1px solid var(--border);
}
.page-title {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}
.page-subtitle { font-size: 0.9rem; color: var(--text-med); }
.page-content { padding: 1rem; }

/* --- Mobile Navigation --- */
.mobile-nav { z-index: 1000; }
.mobile-header {
    background: rgba(13, 15, 26, 0.8);
    backdrop-filter: blur(10px);
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
}
.burger-menu-toggle { order: 0; margin-right: 0.25rem; }
.mobile-header .logo { order: 1; }
.mobile-logo-name {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.mobile-user-name-inline {
    font-weight: 700;
    color: var(--text-light);
    font-size: 0.95rem;
    max-width: 180px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Nascondi il vecchio public menu (icona a destra) */
.public-menu-toggle,
.public-menu-dropdown,
.public-menu-overlay {
    display: none !important;
}
.logo { display: flex; align-items: center; gap: 0.75rem; }
.logo-icon { font-size: 1.5rem; }
.logo-text { font-family: var(--font-heading); font-weight: 700; font-size: 1.1rem; }
.logo-text-group { display: flex; flex-direction: column; line-height: 1.1; }
.mobile-user-name { font-size: 0.75rem; color: var(--text-med); display: none; }

.mobile-bottom-bar {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    display: flex;
    justify-content: space-around;
    background: rgba(13, 15, 26, 0.8);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border);
    padding: 0.5rem 0;
}
.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    color: var(--text-med);
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    transition: color 0.2s, background-color 0.2s;
    border-bottom: 3px solid transparent;
}
.nav-item .icon { font-size: 1.5rem; }
.nav-item.active { color: var(--primary-light); border-bottom-color: var(--primary-light); }

/* --- Shared Components --- */
.org-logo, .match-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: contain;
    background-color: var(--bg-light);
    padding: 2px;
    border: 1px solid var(--border);
}
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-bottom: 1.5rem; }
.stats-grid .stat-card {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 16px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.16);
    color: #0f172a;
    backdrop-filter: blur(10px) saturate(170%);
    -webkit-backdrop-filter: blur(10px) saturate(170%);
}
.stats-grid .stat-card .stat-icon {
    font-size: 1.5rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(99, 102, 241, 0.05));
    padding: 0.75rem;
    border-radius: 10px;
    color: #4f46e5;
    box-shadow: inset 0 0 0 1px rgba(99, 102, 241, 0.18);
}
.stats-grid .stat-card .stat-info h3 { font-size: 1.75rem; font-weight: 700; color: #0f172a; }
.stats-grid .stat-card .stat-info p { font-size: 0.8rem; color: #475569; }
.home-layout { display: flex; flex-direction: column; gap: 1.5rem; }
.section-title { font-family: var(--font-heading); font-size: 1.25rem; margin-bottom: 1rem; }
.home-section {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 16px;
    padding: 1.25rem;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.16);
    backdrop-filter: blur(10px) saturate(170%);
    -webkit-backdrop-filter: blur(10px) saturate(170%);
    color: #0f172a;
}
.home-section .section-title { color: #0f172a; margin-bottom: 0.75rem; }
.list-preview, .grid-preview { display: grid; gap: 0.75rem; }
.list-preview { grid-template-columns: 1fr; }
.grid-preview { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

.skeleton-card {
    width: 100%;
    height: 92px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.06) 0%,
        rgba(255, 255, 255, 0.14) 45%,
        rgba(255, 255, 255, 0.06) 100%
    );
    background-size: 220% 100%;
    animation: shimmer 1.1s ease-in-out infinite;
}

.grid-preview .skeleton-card {
    height: 140px;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.callup-card {
    background: linear-gradient(135deg, rgba(15,23,42,0.08) 0%, rgba(15,23,42,0.03) 100%);
    border: 1px solid rgba(15,23,42,0.08);
    border-radius: 14px;
    padding: 1rem 1.1rem;
    box-shadow: 0 10px 24px rgba(15,23,42,0.12);
}
.callup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.5rem;
}
.callup-label {
    font-size: 0.85rem;
    color: #0f172a;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.callup-team {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
}
.callup-date {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-size: 0.9rem;
    color: #0f172a;
    font-weight: 600;
}
.callup-time {
    font-size: 0.85rem;
    color: #475569;
    font-weight: 500;
}
.callup-match {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 0.6rem;
    color: #0f172a;
}
.callup-vs {
    font-weight: 700;
}
.callup-opponent, .callup-venue {
    font-size: 0.9rem;
    color: #475569;
}
.callup-players {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}
.player-chip {
    background: rgba(59,130,246,0.12);
    color: #0f172a;
    border-radius: 999px;
    padding: 0.35rem 0.7rem;
    font-size: 0.9rem;
    font-weight: 700;
}
.player-chip.more {
    background: rgba(15,23,42,0.08);
    color: #0f172a;
}
.callup-notes {
    margin-top: 0.35rem;
    color: #0f172a;
    font-size: 0.92rem;
    font-weight: 600;
}
.callup-subtitle {
    color: #1f2937;
    font-weight: 700;
    font-size: 0.9rem;
}

.callup-detail-modal h3 {
    margin-bottom: 0.25rem;
}
.callup-detail-sub {
    margin: 0 0 0.5rem 0;
    color: #475569;
}
.callup-detail-match {
    font-weight: 700;
    color: #0f172a;
    margin: 0.25rem 0;
}
.callup-detail-venue {
    color: #475569;
    margin-bottom: 0.5rem;
}
.callup-detail-notes {
    background: rgba(255,255,255,0.6);
    border: 1px solid rgba(0,0,0,0.05);
    padding: 0.75rem;
    border-radius: 10px;
    font-weight: 600;
    color: #0f172a;
}
.callup-detail-list ul {
    margin: 0.5rem 0 0 1rem;
    padding: 0;
}
.callup-detail-list li {
    color: #0f172a;
    font-weight: 700;
    list-style: none;
}
.training-card {
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 12px;
    padding: 0.9rem;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.training-header {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    align-items: flex-start;
}
.training-title {
    font-weight: 800;
    color: #0f172a;
}
.training-date {
    color: #475569;
    font-weight: 600;
}
.training-venue {
    color: #475569;
    font-size: 0.9rem;
}
.training-children {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.training-child-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
    align-items: center;
    padding: 0.35rem 0;
    border-bottom: 1px solid #f1f5f9;
}
.training-child-name { font-weight: 700; color: #0f172a; }
.training-child-status.present { color: #16a34a; font-weight: 700; }
.training-child-status.absent { color: #dc2626; font-weight: 700; }
.training-child-status.pending { color: #64748b; font-weight: 800; }
.training-actions {
    display: flex;
    gap: 0.35rem;
}
.btn-sm {
    padding: 0.35rem 0.6rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #0f172a;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
}
.present-btn {
    background: #ecfdf3;
    color: #166534;
    border: 1px solid #bbf7d0;
}
.absent-btn {
    background: #fff7ed;
    color: #9a3412;
    border: 1px solid #fed7aa;
}
.present-btn.selected {
    background: linear-gradient(135deg, #16a34a, #22c55e);
    color: white;
    border-color: #16a34a;
    box-shadow: 0 6px 16px rgba(22, 163, 74, 0.25);
}
.absent-btn.selected {
    background: linear-gradient(135deg, #dc2626, #ef4444);
    color: white;
    border-color: #dc2626;
    box-shadow: 0 6px 16px rgba(220, 38, 38, 0.25);
}

.parent-toast {
    padding: 0.85rem 1rem;
    border-radius: 12px;
    margin-bottom: 0.75rem;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid transparent;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12);
}
.parent-toast.success {
    background: #ecfdf3;
    color: #166534;
    border-color: #bbf7d0;
}
.parent-toast.error {
    background: #fef2f2;
    color: #b91c1c;
    border-color: #fecdd3;
}

.parent-feedback-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 9999;
    padding: 1rem;
}

.parent-feedback {
    background: white;
    border-radius: 16px;
    padding: 1.1rem 1.2rem 1.3rem;
    width: min(520px, 100%);
    box-shadow: 0 24px 40px rgba(15, 23, 42, 0.18);
    border: 1px solid #e2e8f0;
    animation: slideUp 0.2s ease-out;
}

.parent-feedback.success {
    border-color: #bbf7d0;
}

.parent-feedback.error {
    border-color: #fecdd3;
}

.parent-feedback-title {
    font-weight: 700;
    font-size: 1rem;
    color: #0f172a;
}

.parent-feedback-body {
    color: #475569;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

.parent-feedback-btn {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border-radius: 10px;
    border: none;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: white;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.25);
}

.parent-feedback-btn:active {
    transform: translateY(1px);
}

.parent-feedback-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.4rem;
}

.parent-feedback-icon {
    font-size: 1.2rem;
}

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

@media (min-width: 640px) {
    .training-child-row {
        grid-template-columns: 1.2fr 0.6fr 1fr;
        align-items: center;
    }
    .training-actions {
        justify-content: flex-end;
    }
}

.certificate-card {
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 12px;
    padding: 0.9rem;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.certificate-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
}
.certificate-name { font-weight: 800; color: #0f172a; }
.certificate-team { color: #475569; font-weight: 600; font-size: 0.9rem; min-height: 1.2rem; }
.certificate-status { font-weight: 800; }
.certificate-expiry { color: #0f172a; font-weight: 600; font-size: 0.9rem; }
.certificate-link {
    color: #0f172a;
    font-weight: 700;
    text-decoration: none;
    background: rgba(253, 244, 215, 0.35);
    border: 1px solid rgba(253, 244, 215, 0.6);
    border-radius: 8px;
    padding: 0.4rem 0.6rem;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease;
}
.certificate-link:hover { background: rgba(253, 244, 215, 0.5); transform: translateY(-1px); }
.certificate-link:active { background: rgba(253, 244, 215, 0.6); transform: translateY(0); }
.certificate-card.ok .certificate-status { color: #16a34a; }
.certificate-card.warning .certificate-status { color: #f59e0b; }
.certificate-card.expired .certificate-status { color: #dc2626; }
.certificate-card.missing .certificate-status { color: #ef4444; }

.payment-card {
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 12px;
    padding: 0.9rem;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.payment-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
}
.payment-name { font-weight: 800; color: #0f172a; }
.payment-title { color: #475569; font-weight: 600; font-size: 0.9rem; }
.payment-subtitle { color: #64748b; font-weight: 600; font-size: 0.85rem; }
.payment-status { font-weight: 700; color: #0f172a; }
.payment-card.paid .payment-status { color: #16a34a; }
.payment-card.due .payment-status { color: #f59e0b; }
.payment-card.pending .payment-status { color: #0ea5e9; }
.payment-amounts { color: #0f172a; font-weight: 600; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0.25rem; }
.payment-actions { display: flex; justify-content: flex-end; }
.payment-history-btn, .payment-receipt-btn {
    background: rgba(253, 244, 215, 0.35); /* crema semi-trasparente */
    color: #0f172a;
    border: 1px solid rgba(253, 244, 215, 0.6);
    padding: 0.45rem 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
    box-shadow: none;
}
.payment-history-btn:hover, .payment-receipt-btn:hover { transform: translateY(-1px); background: rgba(253, 244, 215, 0.5); color: #0b172a; }
.payment-history-btn:active, .payment-receipt-btn:active { transform: translateY(0); background: rgba(253, 244, 215, 0.6); color: #0b172a; }
.payment-history-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.75rem; }
.payment-history-title { font-weight: 800; color: #0f172a; font-size: 1.1rem; }
.payment-history-subtitle { color: #f8fafc; font-size: 0.9rem; }
.payment-history-list { display: flex; flex-direction: column; gap: 0.6rem; }
.payment-history-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 10px;
    padding: 0.75rem;
}
.payment-history-main { display: flex; flex-direction: column; gap: 0.15rem; }
.payment-history-fee { font-weight: 800; color: #0f172a; }
.payment-history-meta, .payment-history-date { color: #475569; font-size: 0.9rem; }
.payment-history-actions { display: flex; align-items: center; gap: 0.75rem; }
.payment-history-amount { font-weight: 800; color: #0f172a; }
.payment-receipt-missing { color: #9ca3af; font-weight: 600; }

.payment-child-card {
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 12px;
    padding: 0.9rem;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
    margin-bottom: 0.75rem;
}
.payment-child-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    cursor: pointer;
}
.payment-child-name { font-weight: 800; color: #0f172a; font-size: 1rem; }
.payment-child-team { color: #475569; font-weight: 600; font-size: 0.9rem; }
.payment-child-fees { display: flex; flex-direction: column; gap: 0.5rem; }
.payment-child-toggle { color: #0ea5e9; font-weight: 800; margin-left: 0.5rem; }
.payment-card.payment-card-click { cursor: pointer; }
.callup-detail-list h4 {
    color: #0f172a;
    font-weight: 800;
}
.match-preview-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.14);
}
.match-date { font-size: 0.9rem; color: #1d4ed8; margin-bottom: 0.4rem; font-weight: 700; }
.match-teams-simple { font-weight: 700; color: #0f172a; }
.match-preview-venue { margin-top: 0.35rem; font-size: 0.85rem; color: #475569; }
.team-preview-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    color: #0f172a;
}
.team-preview-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(15, 23, 42, 0.16); }
.team-preview-card h4 { margin: 0; font-size: 1rem; color: #0f172a; }
.team-preview-card span { color: #475569; }
.favorite-star-remove { color: #f59e0b; }
.empty-state { color: #475569; background: rgba(255, 255, 255, 0.82); border-radius: 12px; padding: 0.75rem 1rem; text-align: center; }
.search-bar { position: relative; margin-bottom: 1rem; }
.search-bar input {
    width: 100%;
    padding: 0.85rem 2.75rem 0.85rem 1rem;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: var(--radius-md);
    color: #0f172a;
    font-size: 1rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 14px 26px rgba(15, 23, 42, 0.12);
}
.search-bar input::placeholder { color: #64748b; }
.search-bar input:focus { outline: none; border-color: rgba(99, 102, 241, 0.65); box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.25); }
.search-bar .search-icon { position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); color: #64748b; pointer-events: none; }
.filter-bar { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1rem; }
.filter-bar label { font-size: 0.9rem; color: var(--text-med); }
.filter-bar select {
    width: 100%;
    padding: 0.85rem 1rem;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: var(--radius-md);
    color: #0f172a;
    font-size: 1rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 14px 26px rgba(15, 23, 42, 0.12);
}
.filter-bar select:focus { outline: none; border-color: rgba(99, 102, 241, 0.65); box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.25); }
.matches-tabs {
    display: flex;
    gap: 0.35rem;
    margin-bottom: 1rem;
    padding: 0.25rem;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 999px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 14px 26px rgba(15, 23, 42, 0.12);
}
.tab-btn {
    flex: 1;
    padding: 0.65rem 0.9rem;
    border: none;
    background: transparent;
    color: #475569;
    font-weight: 800;
    cursor: pointer;
    border-radius: 999px;
    transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.tab-btn:active { transform: translateY(1px); }
.tab-btn.active {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.95), rgba(99, 102, 241, 0.95));
    color: #fff;
    box-shadow: 0 10px 18px rgba(79, 70, 229, 0.28);
}
.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: rgba(13, 15, 26, 0.55);
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.14);
    padding: 0.55rem 0.95rem;
    border-radius: 999px;
    font-weight: 800;
    cursor: pointer;
    margin-bottom: 1rem;
    box-shadow: 0 14px 26px rgba(15, 23, 42, 0.14);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.btn-back:hover { border-color: rgba(99, 102, 241, 0.55); }
.btn-back:active { transform: translateY(1px); box-shadow: 0 10px 18px rgba(15, 23, 42, 0.14); }

/* --- Organization & Team Cards --- */
.list-container { display: flex; flex-direction: column; gap: 1.5rem; }
.grid-container { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 640px) {
    .grid-container { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
}
.tournament-card-public {
    border-radius: var(--radius-lg) !important;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14) !important;
    backdrop-filter: blur(10px) saturate(170%);
    -webkit-backdrop-filter: blur(10px) saturate(170%);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.tournament-card-public:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(79, 70, 229, 0.14) !important; }
.organization-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
    backdrop-filter: blur(10px) saturate(170%);
    -webkit-backdrop-filter: blur(10px) saturate(170%);
    color: #0f172a;
}
.org-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.72);
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    cursor: pointer;
}
.org-header:active { transform: translateY(1px); }
.org-accordion > summary { list-style: none; }
.org-accordion > summary::-webkit-details-marker { display: none; }
.org-accordion > summary::marker { content: ""; }
.org-accordion > summary::after {
    content: "⌄";
    margin-left: auto;
    font-size: 1.15rem;
    color: rgba(15, 23, 42, 0.55);
    transform: rotate(0deg);
    transition: transform 0.2s ease, color 0.2s ease;
}
.org-accordion[open] > summary::after { transform: rotate(180deg); color: rgba(15, 23, 42, 0.85); }
.org-header-content { flex: 1; display: flex; align-items: center; gap: 1rem; }
.org-info h3 { font-family: var(--font-heading); font-size: 1.25rem; color: #0f172a; margin-bottom: 0.2rem; }
.org-info p { font-size: 0.9rem; color: #475569; }
.org-teams { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; padding: 1.5rem; }
.team-card-in-org {
    background: rgba(15, 23, 42, 0.04);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: var(--radius-md);
    padding: 1rem;
    display: block;
    position: relative;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 10px 18px rgba(15, 23, 42, 0.08);
    color: #0f172a;
}
.team-card-in-org:hover { border-color: rgba(99, 102, 241, 0.55); transform: translateY(-2px); box-shadow: 0 14px 26px rgba(15, 23, 42, 0.12); }
.team-card-in-org.is-favorite { background: rgba(99, 102, 241, 0.08); border-color: rgba(99, 102, 241, 0.55); box-shadow: 0 14px 26px rgba(79, 70, 229, 0.12); }
.team-accordion > summary { list-style: none; }
.team-accordion > summary::-webkit-details-marker { display: none; }
.team-accordion > summary::marker { content: ""; }
.team-summary::after {
    content: "⌄";
    margin-left: 0.4rem;
    font-size: 1.05rem;
    color: rgba(15, 23, 42, 0.55);
    transform: rotate(0deg);
    transition: transform 0.2s ease, color 0.2s ease;
    flex-shrink: 0;
}
.team-accordion[open] .team-summary::after { transform: rotate(180deg); color: rgba(15, 23, 42, 0.85); }
.favorite-star-btn-small { background: none; border: none; font-size: 1.5rem; cursor: pointer; padding: 0.25rem; color: #64748b; transition: all 0.2s; }
.favorite-star-btn-small:hover { transform: scale(1.2); color: var(--yellow); }
.team-card-in-org.is-favorite .favorite-star-btn-small { color: var(--yellow); }
.team-color-indicator { width: 4px; height: 40px; border-radius: 99px; }
.team-content-compact h4 { font-size: 1rem; margin-bottom: 0.25rem; color: #0f172a; }
.team-content-compact .team-stats { font-size: 0.8rem; color: #475569; display: flex; flex-direction: column; gap: 0.2rem; }

/* --- Match Card --- */
.match-card-public {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: var(--radius-lg);
    margin-bottom: 1rem;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
    position: relative;
    color: #0f172a;
    backdrop-filter: blur(10px) saturate(170%);
    -webkit-backdrop-filter: blur(10px) saturate(170%);
}
.match-card-public::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: rgba(15, 23, 42, 0.12);
}
.match-card-public.upcoming::before { background: linear-gradient(180deg, rgba(16, 185, 129, 0.9), rgba(34, 197, 94, 0.75)); }
.match-card-public.completed::before { background: linear-gradient(180deg, rgba(99, 102, 241, 0.9), rgba(79, 70, 229, 0.75)); }
.match-card-public.has-favorite-team { border-color: rgba(99, 102, 241, 0.55); box-shadow: 0 18px 40px rgba(79, 70, 229, 0.14); }
.match-card-public:hover { border-color: rgba(99, 102, 241, 0.55); transform: translateY(-2px); }
.match-header-public {
    display: flex;
    justify-content: space-between;
    padding: 0.85rem 1.25rem;
    background: rgba(255, 255, 255, 0.72);
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    font-size: 0.85rem;
    color: #475569;
}
.match-content-public { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 1.25rem; gap: 1rem; }
.team-section { display: flex; align-items: center; gap: 1rem; }
.team-section:last-of-type { justify-content: flex-end; text-align: right; }
.team-section h3 { font-size: 1.1rem; font-family: var(--font-heading); color: #0f172a; }

/* --- Player Cards --- */
#players-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.player-card-public {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    text-align: left;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
    color: #0f172a;
    backdrop-filter: blur(10px) saturate(170%);
    -webkit-backdrop-filter: blur(10px) saturate(170%);
}

.player-card-avatar-mini {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1) 0%, rgba(99, 102, 241, 0.05) 100%);
    border: 2px solid rgba(99, 102, 241, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.player-card-avatar-mini svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.player-card-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.player-card-public.is-favorite-team {
    border-color: rgba(99, 102, 241, 0.55);
    box-shadow: 0 18px 40px rgba(79, 70, 229, 0.14);
}

.player-card-public:hover {
    transform: translateY(-2px);
    border-color: rgba(99, 102, 241, 0.55);
    box-shadow: 0 18px 40px rgba(79, 70, 229, 0.16);
}

.player-card-public h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: #0f172a;
    margin: 0;
}



.player-position-badge {
    padding: 0.25rem 0.75rem;
    background: rgba(79, 70, 229, 0.15);
    color: var(--primary-light);
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
}

.player-team {
    font-size: 0.85rem;
    color: #475569;
    font-weight: 700;
}

/* --- Player Detail Modal --- */
.player-detail-modal {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.player-detail-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.player-detail-avatar {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1) 0%, rgba(99, 102, 241, 0.05) 100%);
    border: 3px solid rgba(99, 102, 241, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.player-detail-avatar svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.player-detail-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.player-detail-info h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--text-light);
    margin: 0;
}

.player-detail-team {
    font-size: 1rem;
    color: var(--primary-light);
    font-weight: 600;
    margin: 0;
}

.player-detail-position {
    font-size: 0.9rem;
    color: var(--text-med);
    margin: 0;
}

.player-detail-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.player-detail-stats .stat-card {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1) 0%, rgba(99, 102, 241, 0.05) 100%);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
}

.player-detail-stats .stat-icon {
    font-size: 2rem;
}

.player-detail-stats .stat-value {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-light);
}

.player-detail-stats .stat-label {
    font-size: 0.9rem;
    color: var(--text-med);
    font-weight: 600;
}

.player-detail-experiences {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.player-detail-experiences h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--text-light);
    margin: 0;
}

.experiences-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.experience-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1rem;
    display: flex;
    gap: 1rem;
    align-items: center;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.experience-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-light);
}

.experience-years {
    flex-shrink: 0;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--primary-light);
    padding: 0.5rem 1rem;
    background: rgba(79, 70, 229, 0.15);
    border-radius: 8px;
}

.experience-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.experience-club {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-light);
}

.experience-role {
    font-size: 0.85rem;
    color: var(--text-med);
}

/* ---------- RESPONSIVE MOBILE ---------- */
@media (max-width: 768px) {
    body { background-attachment: scroll; }

    .app-container {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
        min-height: 100dvh;
        overflow: visible;
    }

    .mobile-nav { position: sticky; top: 0; }
    .mobile-header {
        padding-top: calc(0.75rem + env(safe-area-inset-top));
        padding-left: calc(1rem + env(safe-area-inset-left));
        padding-right: calc(1rem + env(safe-area-inset-right));
    }

    .page-header {
        padding: 1rem 0.75rem;
        border-bottom-left-radius: 18px;
        border-bottom-right-radius: 18px;
        box-shadow: 0 14px 30px rgba(15, 23, 42, 0.18);
    }

    .page-content {
        padding: 0.75rem;
        padding-bottom: calc(0.75rem + env(safe-area-inset-bottom));
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid .stat-card {
        justify-content: flex-start;
    }

    .home-layout {
        gap: 1rem;
    }

    .list-container {
        gap: 1rem;
    }

    .org-header-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .org-teams {
        grid-template-columns: 1fr;
        padding: 1rem;
    }

    .match-card-public {
        margin-bottom: 0.75rem;
    }

    .match-header-public {
        flex-direction: column;
        gap: 0.25rem;
        text-align: center;
    }

    .match-content-public {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .team-section,
    .team-section:last-of-type {
        justify-content: center;
        text-align: center;
    }

    .team-section h3 {
        font-size: 1rem;
    }

    #players-list {
        grid-template-columns: 1fr;
    }

    .player-card-public {
        align-items: flex-start;
        text-align: left;
    }

    .matches-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
    }

    .tab-btn {
        flex: 1;
        text-align: center;
    }
}
.team-section .home-label, .team-section .away-label { font-size: 0.8rem; color: #64748b; font-weight: 700; }
.match-score-public { color: #0f172a; }
.match-score-public .vs { font-size: 1.25rem; font-weight: 800; color: #64748b; letter-spacing: 0.02em; }
.match-score-public .score { font-size: 2rem; font-weight: 800; font-family: var(--font-heading); color: inherit; }
.match-card-public.completed .match-score-public { color: var(--primary-light); }
.match-venue, .match-tournament { text-align: center; font-size: 0.9rem; color: #475569; padding: 0 1rem 0.65rem; font-weight: 700; }
.match-actions-bottom { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid rgba(15, 23, 42, 0.08); text-align: center; }
.btn-action { background: linear-gradient(90deg, var(--primary), var(--primary-light)); color: var(--text-light); border: none; padding: 0.75rem 1.5rem; border-radius: 8px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 0.5rem; transition: all 0.2s ease; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); }
.btn-action:hover { transform: translateY(-2px); box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3); }

/* --- Tournament Standings Table --- */
.standings-group-section { background-color: var(--bg-med); border: 1px solid var(--border); border-radius: 12px; margin-bottom: 2rem; overflow: hidden; }
.standings-group-title { font-family: var(--font-heading); font-size: 1.5rem; color: var(--text-light); padding: 1rem 1.5rem; background-color: var(--bg-light); border-bottom: 1px solid var(--border); }
.standings-table-wrapper { overflow-x: auto; }
.standings-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.standings-table th, .standings-table td { padding: 0.75rem 1rem; text-align: center; white-space: nowrap; }
.standings-table th { font-size: 0.75rem; color: var(--text-med); text-transform: uppercase; letter-spacing: 0.05em; }
.standings-header-row { border-bottom: 1px solid var(--border); }
.standings-row { border-bottom: 1px solid var(--border); }
.standings-row:last-child { border-bottom: none; }
.standings-row.pos-1 { border-left: 4px solid var(--green); }
.standings-row.pos-2 { border-left: 4px solid var(--primary-light); }
.standings-row.pos-3 { border-left: 4px solid var(--yellow); }
.standings-row.not-played { opacity: 0.6; }
.standings-table .pos-cell { font-weight: 700; }
.standings-table .team-col, .standings-table .team-cell { text-align: left; }
.standings-table .team-cell .team-name { font-weight: 600; color: var(--text-light); }
.standings-table .team-cell .org-name { font-size: 0.8rem; color: var(--text-med); display: block; }
.standings-table .stat-win { color: var(--green); }
.standings-table .stat-loss { color: var(--red); }
.standings-table .stat-draw { color: var(--text-med); }
.standings-table .stat-pts { font-weight: 700; font-size: 1.1em; color: var(--text-light); }

/* --- Squad & Goals Modal --- */
.squad-modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(13, 15, 26, 0.8); backdrop-filter: blur(8px); z-index: 2000; display: flex; align-items: center; justify-content: center; animation: fadeIn 0.3s; padding: 1rem; }
.squad-modal-content { background-color: var(--bg-med); border: 1px solid var(--border); border-radius: 12px; width: 100%; max-width: 700px; max-height: 90vh; display: flex; flex-direction: column; overflow: hidden; }
.squad-modal-header { padding: 1rem 1.5rem; border-bottom: 1px solid var(--border); }
.squad-modal-header h2 { font-family: var(--font-heading); }
.squad-modal-header .match-teams-title { font-size: 1rem; color: var(--text-med); }
.squad-modal-close { position: absolute; top: 1rem; right: 1rem; background: none; border: none; font-size: 1.5rem; color: var(--text-med); cursor: pointer; }
.squad-modal-body { padding: 1.5rem; overflow-y: auto; display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.squad-team-header { font-family: var(--font-heading); padding-bottom: 0.5rem; margin-bottom: 1rem; border-bottom: 2px solid; }
.squad-team-header.home { border-color: var(--primary-light); }
.squad-team-header.away { border-color: var(--red); }
.squad-list { display: flex; flex-direction: column; gap: 0.5rem; }
.squad-player-item { display: flex; justify-content: space-between; align-items: center; background-color: var(--bg-dark); padding: 0.5rem 1rem; border-radius: 6px; }
.player-goals-badge { font-size: 0.9rem; font-weight: 700; }
.empty-squad-message { text-align: center; color: var(--text-med); padding: 1rem; }

/* --- Public Menu --- */
.public-menu-toggle,
.public-menu-dropdown,
.public-menu-overlay {
    display: none !important;
}

/* --- Children Page --- */
.children-page-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.children-form-card,
.children-list-card {
    background: var(--bg-med);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
}

.children-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
}

.children-form-card h2,
.children-list-card h2 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    color: var(--text-light);
}

.children-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.children-form label {
    font-weight: 600;
    color: var(--text-light);
    display: block;
    margin-bottom: 0.35rem;
}

.children-form input,
.children-form textarea {
    width: 100%;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--bg-dark);
    color: var(--text-light);
    padding: 0.75rem;
    font-size: 1rem;
}

.children-form textarea {
    min-height: 100px;
    resize: vertical;
}

.children-form button {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 0.85rem;
    font-weight: 600;
    cursor: pointer;
}

.child-card {
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    cursor: pointer;
    transition: transform 0.2s, border-color 0.2s;
}

.child-card:hover {
    transform: translateY(-2px);
    border-color: rgba(102, 126, 234, 0.4);
}

.child-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.child-card h3 {
    margin: 0;
    font-size: 1.1rem;
}

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

.child-card-pill {
    background: rgba(102, 126, 234, 0.15);
    color: var(--primary-light);
    border-radius: 999px;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
}

/* --- Child Detail Modal --- */
.child-modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1500;
    padding: 1rem;
}

.child-modal.show {
    display: flex;
}

.child-modal-content {
    background: var(--bg-med);
    border: 1px solid var(--border);
    border-radius: 18px;
    width: min(900px, 100%);
    max-height: 90vh;
    overflow-y: auto;
    padding: 1.5rem;
    position: relative;
}

.child-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.32);
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 999px;
    width: 36px;
    height: 36px;
    color: #f8fafc;
    font-size: 1.25rem;
    cursor: pointer;
    box-shadow: none;
}

.child-modal-body {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.child-detail-header {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.child-detail-header h2 {
    margin: 0;
    color: var(--text-light);
}

.child-detail-header p {
    margin: 0;
    color: var(--text-med);
}

.child-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.child-detail-card {
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1rem;
}

.experiences-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.experience-item {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
}

.experience-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-light);
    font-weight: 600;
}

.experience-item small {
    color: var(--text-med);
}

.experience-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.experience-form input {
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--bg-dark);
    color: var(--text-light);
    padding: 0.6rem;
}

.experience-form button {
    background: var(--primary-light);
    border: none;
    border-radius: 12px;
    padding: 0.6rem;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}

.avatar-builder {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding: 0.5rem;
}

.avatar-workspace {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 1.5rem;
    align-items: start;
}

.avatar-canvas {
    width: 240px;
    position: sticky;
    top: 1rem;
}

.avatar-canvas svg {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.3));
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1) 0%, rgba(99, 102, 241, 0.05) 100%);
    border-radius: 20px;
    padding: 1rem;
    border: 2px solid rgba(99, 102, 241, 0.2);
    transition: all 0.3s ease;
}

.avatar-canvas svg:hover {
    transform: scale(1.02);
    filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.4));
    border-color: rgba(99, 102, 241, 0.4);
}

.photo-avatar {
    width: 100%;
    aspect-ratio: 3 / 4;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 20px;
    padding: 0;
    border: 2px solid rgba(99, 102, 241, 0.2);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
    cursor: grab;
}
.photo-avatar.comic-filter {
    filter:
        saturate(1.8)
        contrast(1.7)
        brightness(1.05)
        sepia(0.25);
    image-rendering: pixelated;
    position: relative;
    isolation: isolate;
}
.photo-avatar.comic-filter::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(255,255,255,0.15), transparent 25%),
                radial-gradient(circle at 80% 30%, rgba(0,0,0,0.08), transparent 35%),
                radial-gradient(circle at 40% 80%, rgba(0,0,0,0.12), transparent 30%);
    mix-blend-mode: overlay;
    pointer-events: none;
}
.photo-avatar.dragging {
    cursor: grabbing;
}
.avatar-photo-upload {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0.75rem;
}
.avatar-photo-upload .upload-btn {
    background: #0ea5e9;
    color: #fff;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    border: none;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(14,165,233,0.25);
}

.avatar-controls {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.avatar-category-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 0.6rem;
}

.avatar-category-btn {
    padding: 0.65rem 0.85rem;
    border-radius: 12px;
    border: 2px solid var(--border);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.04) 100%);
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

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

.avatar-category-btn:hover::before {
    left: 100%;
}

.avatar-category-btn:hover {
    transform: translateY(-2px);
    border-color: rgba(99, 102, 241, 0.5);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(79, 70, 229, 0.1) 100%);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.avatar-category-btn span {
    font-size: 0.82rem;
}

.avatar-category-btn.active {
    border-color: var(--primary-light);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.3) 0%, rgba(79, 70, 229, 0.2) 100%);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2), 0 6px 16px rgba(99, 102, 241, 0.4);
    transform: scale(1.05);
}

.avatar-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    gap: 0.7rem;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-height: 320px;
    overflow-y: auto;
}

.avatar-options-grid::-webkit-scrollbar {
    width: 8px;
}

.avatar-options-grid::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.avatar-options-grid::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.5);
    border-radius: 10px;
}

.avatar-options-grid::-webkit-scrollbar-thumb:hover {
    background: rgba(99, 102, 241, 0.7);
}

.avatar-option {
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 14px;
    padding: 0.65rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.04) 100%);
    color: var(--text-light);
    cursor: pointer;
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
    transition: all 0.2s ease;
    position: relative;
}

.avatar-option:hover {
    transform: translateY(-3px) scale(1.05);
    border-color: rgba(99, 102, 241, 0.6);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(79, 70, 229, 0.15) 100%);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4);
}

.avatar-option.active {
    border-color: var(--primary-light);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.4) 0%, rgba(79, 70, 229, 0.3) 100%);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.3), 0 8px 20px rgba(99, 102, 241, 0.5);
    transform: scale(1.1);
}

.avatar-option.active::after {
    content: '✓';
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: white;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.avatar-option.color {
    height: 54px;
    padding: 0.4rem;
}

.avatar-option.color::before {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.2);
}

.avatar-figure {
    --skin-tone: #f8d7c0;
    width: 190px;
    height: 250px;
    position: relative;
}

.avatar-head,
.avatar-ears,
.avatar-hair,
.avatar-eyes,
.avatar-nose,
.avatar-mouth {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.avatar-head {
    top: 0;
    width: 110px;
    height: 130px;
    border-radius: 60% 60% 45% 45%;
    background: var(--skin-tone);
    z-index: 2;
}

.avatar-ears {
    top: 45px;
    width: 130px;
    height: 60px;
    pointer-events: none;
    z-index: 1;
}

.avatar-ears.avatar-dropzone {
    pointer-events: auto;
}

.avatar-ears::before,
.avatar-ears::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 32px;
    border-radius: 50%;
    background: var(--skin-tone);
}

.avatar-ears::before { left: 5px; }
.avatar-ears::after { right: 5px; }

.avatar-ears.variant-rounded::before,
.avatar-ears.variant-rounded::after {
    height: 36px;
}

.avatar-ears.variant-pointed::before,
.avatar-ears.variant-pointed::after {
    border-radius: 40% 60% 60% 40%;
}

.avatar-ears.variant-wide::before,
.avatar-ears.variant-wide::after {
    width: 24px;
    height: 34px;
}

.avatar-hair {
    top: -60px;
    width: 150px;
    height: 150px;
    border-radius: 60px 60px 30px 30px;
    background: var(--hair-color, #2f2f2f);
    cursor: grab;
    z-index: 4;
}

.avatar-hair.variant-short {
    height: 55px;
    border-radius: 60px 60px 20px 20px;
}

.avatar-hair.variant-curly {
    background: repeating-linear-gradient(90deg, #2f2f2f, #2f2f2f 6px, #3a3a3a 6px, #3a3a3a 12px);
}

.avatar-hair.variant-bangs {
    height: 70px;
    border-radius: 50px 50px 40px 40px;
    background: linear-gradient(180deg, #3a3a3a, #1f1f1f);
}

.avatar-eyes {
    top: 85px;
    width: 70px;
    height: 20px;
    display: flex;
    justify-content: space-between;
    z-index: 3;
}

.avatar-eyes::before,
.avatar-eyes::after {
    content: '';
    width: 20px;
    height: 18px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 45%, var(--eye-color, #1f2937) 0 40%, #fff 45%);
    box-shadow: inset 4px -2px 0 rgba(0, 0, 0, 0.2);
}

.avatar-eyes.variant-wide::before,
.avatar-eyes.variant-wide::after {
    width: 22px;
}

.avatar-eyes.variant-smile::before,
.avatar-eyes.variant-smile::after {
    border-radius: 50% 50% 20% 20%;
}

.avatar-nose {
    top: 105px;
    width: 22px;
    height: 30px;
    border-radius: 55% 55% 45% 45%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.2));
    position: absolute;
    z-index: 3;
}
.avatar-nose.variant-button {
    width: 16px;
    height: 16px;
}

.avatar-nose.variant-classic {
    border-radius: 40% 40% 60% 60%;
    height: 28px;
}

.avatar-mouth {
    position: absolute;
    z-index: 4;
    top: 145px;
    width: 62px;
    height: 22px;
    left: 50%;
    transform: translateX(-50%);
    border-bottom: 4px solid #b91c1c;
    border-radius: 50%;
}

.avatar-mouth.variant-smile {
    border-bottom: 4px solid #ec4899;
}

.avatar-mouth.variant-serious {
    border-bottom: none;
    border-top: 2px solid rgba(255, 255, 255, 0.3);
}

.avatar-mouth.variant-neutral {
    border-bottom: 2px solid rgba(255, 255, 255, 0.35);
    height: 12px;
}

.avatar-mouth.variant-open {
    border-bottom: none;
    height: 22px;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 70%, #9f1239 0 45%, transparent 50%);
}

.avatar-mouth.variant-laugh {
    border-bottom: 6px solid #ec4899;
    height: 24px;
    background: none;
}

.avatar-hair.variant-spiky {
    height: 65px;
    border-radius: 40px 40px 20px 20px;
    background: linear-gradient(180deg, var(--hair-color, #2f2f2f), #1c1c1c);
    clip-path: polygon(10% 60%, 20% 10%, 30% 55%, 40% 5%, 50% 60%, 65% 15%, 75% 55%, 85% 5%, 95% 50%, 95% 100%, 5% 100%);
}

.avatar-hair.variant-bun {
    height: 110px;
    border-radius: 60px 60px 50px 50px;
    background: var(--hair-color, #2f2f2f);
}

.avatar-eyes.variant-sleepy::before,
.avatar-eyes.variant-sleepy::after {
    border-radius: 0 0 50% 50%;
    height: 12px;
    background: var(--eye-color, #1f2937);
}

.avatar-eyes.variant-focused::before,
.avatar-eyes.variant-focused::after {
    box-shadow: inset 6px 0 0 rgba(0, 0, 0, 0.9);
}

.avatar-nose.variant-sharp {
    border-radius: 30% 30% 60% 60%;
    height: 32px;
    width: 12px;
}

.avatar-nose.variant-soft {
    border-radius: 50%;
    height: 18px;
}

.avatar-dropzone {
    width: 100%;
    height: 100%;
    cursor: grab;
}

.avatar-palette {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.avatar-palette {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.palette-group {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.palette-group label {
    width: 100%;
    font-size: 0.85rem;
    color: var(--text-med);
}

.avatar-draggable {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    cursor: grab;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-light);
}

.avatar-draggable:active {
    cursor: grabbing;
}

.avatar-draggable[data-mode="variant"] {
    width: auto;
    min-width: 48px;
    height: 34px;
    padding: 0 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px dashed rgba(255, 255, 255, 0.25);
}

.avatar-draggable[data-mode="variant"]:hover {
    border-color: rgba(255, 255, 255, 0.5);
}

.avatar-draggable[data-mode="color"] {
    border-color: rgba(255, 255, 255, 0.4);
}

@media (max-width: 640px) {
    .child-detail-grid {
        grid-template-columns: 1fr;
    }

    .avatar-workspace {
        grid-template-columns: 1fr;
        justify-items: center;
    }
}

/* --- Desktop & Responsive --- */
@media (min-width: 640px) {
    .squad-modal-body { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 768px) {
    .app-container { display: grid; grid-template-columns: 260px 1fr; }
    .mobile-nav { display: none; }
    .main-content { padding-bottom: 0; }
    .sidebar {
        display: flex;
        flex-direction: column;
        background:
            linear-gradient(to right, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.25) 100%),
            url('images/menu-background.png');
        background-size: cover;
        background-position: center;
        border-right: 1px solid var(--border);
        padding: 1.5rem 1rem;
    }
    .sidebar-header {
        padding: 0 0.5rem 1.5rem 0.5rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    .sidebar-header .logo-text {
        color: white;
        font-weight: 700;
        text-shadow:
            0 3px 10px rgba(0, 0, 0, 1),
            0 2px 6px rgba(0, 0, 0, 1),
            0 1px 3px rgba(0, 0, 0, 1);
    }
    .sidebar-nav { flex-grow: 1; margin-top: 1.5rem; }
    .sidebar-footer {
        margin-top: auto;
        padding: 1rem 0.5rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    .nav-menu { display: flex; flex-direction: column; gap: 0.5rem; }
    .nav-item {
        flex-direction: row;
        gap: 1rem;
        font-size: 1rem;
        padding: 0.75rem 1rem;
        border-radius: 8px;
        border-left: 3px solid transparent;
        border-bottom: none;
        background: transparent;
        backdrop-filter: blur(1px);
        color: white;
        font-weight: 700;
        text-shadow:
            0 3px 10px rgba(0, 0, 0, 1),
            0 2px 6px rgba(0, 0, 0, 1),
            0 1px 3px rgba(0, 0, 0, 1);
    }
    .nav-item.active {
        background: transparent;
        color: white;
        border-left-color: var(--primary);
        border-bottom: none;
    }
    .nav-item:hover {
        background: transparent;
        border-left-color: var(--primary);
    }
    .info-card { background-color: var(--bg-med); padding: 1rem; border-radius: 8px; text-align: center; font-size: 0.8rem; }
    .info-card p { margin-bottom: 0.25rem; }
    .page-header { padding: 2.5rem 2rem; }
    .page-title { font-size: 2.25rem; }
    .page-subtitle { font-size: 1rem; }
    .page-content { padding: 2rem; }
    .stats-grid { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
    .home-layout { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .search-bar input, .filter-bar select { max-width: 400px; }
}
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ===== INSTALL APP BANNER ===== */
.install-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #10b981 0%, #059669 50%, #047857 100%);
    background-size: 200% 200%;
    animation: slideDown 0.4s ease-out, gradientShift 8s ease infinite;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
    z-index: 9999;
    position: relative;
    overflow: hidden;
}

.install-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    animation: pulse 3s ease-in-out infinite;
}

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

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

@keyframes pulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.1);
    }
}

.install-banner-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.install-banner-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

.install-banner-text {
    flex: 1;
    color: white;
}

.install-banner-text strong {
    display: block;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.4;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.install-banner-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-install {
    background: white;
    color: #047857;
    border: none;
    border-radius: 12px;
    padding: 0.875rem 2rem;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    position: relative;
    overflow: hidden;
}

.btn-install::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-install:hover::before {
    width: 300px;
    height: 300px;
}

.btn-install:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.btn-install:active {
    transform: translateY(-1px) scale(1.02);
}

.btn-dismiss {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.btn-dismiss:hover {
    background: rgba(255, 255, 255, 0.3);
}

@media (max-width: 768px) {
    .install-banner-content {
        padding: 0.875rem 1rem;
    }

    .install-banner-icon {
        font-size: 2rem;
    }

    .install-banner-text strong {
        font-size: 1rem;
    }

    .install-banner-text p {
        font-size: 0.8rem;
    }

    .btn-install {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }
}

/* ===== BURGER MENU SLIDE-IN ===== */
.burger-menu-toggle {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.75rem;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.burger-menu-toggle:hover {
    opacity: 0.8;
}

.burger-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9998;
    display: none;
    backdrop-filter: blur(4px);
}

.burger-menu-overlay.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

    .burger-menu-sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        background:
            linear-gradient(to right, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.25) 100%),
            url('images/menu-background.png');
        background-size: cover;
        background-position: center;
        z-index: 9999;
        transition: left 0.3s ease;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
}

.burger-menu-sidebar.active {
    left: 0;
}

.burger-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem;
    border-bottom: 1px solid var(--border);
    background: transparent;
}

.burger-user-box {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.burger-user-logo {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.08);
    padding: 6px;
}

.burger-user-name {
    font-weight: 700;
    color: var(--text-light);
    font-size: 0.95rem;
}

.burger-menu-header h2 {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--text-light);
}

.burger-menu-close {
    background: transparent;
    border: none;
    color: var(--text-light);
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.burger-menu-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.burger-menu-nav {
    flex: 1;
    padding: 1rem 0;
    overflow-y: auto;
    background: transparent;
}

.burger-menu-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    color: white;
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    background: transparent;
}

.burger-menu-item .icon {
    font-size: 1.5rem;
}

.burger-menu-item span:not(.icon) {
    font-size: 1.1rem;
    font-weight: 700;
    text-shadow:
        0 3px 10px rgba(0, 0, 0, 1),
        0 2px 6px rgba(0, 0, 0, 1),
        0 1px 3px rgba(0, 0, 0, 1);
}

.burger-menu-item:hover {
    border-left-color: var(--primary);
}

.burger-menu-item.active {
    border-left-color: var(--primary);
    color: white;
}

.burger-menu-footer {
    padding: 1rem;
    border-top: 1px solid var(--border);
    background: transparent;
}

.burger-menu-user-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.burger-menu-user-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.burger-menu-user-info {
    padding: 1rem;
    text-align: center;
    color: var(--text-light);
}

.burger-menu-user-info p {
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
}

.burger-menu-logout-btn {
    width: 100%;
    padding: 0.75rem;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.burger-menu-logout-btn:hover {
    background: rgba(239, 68, 68, 0.2);
}

/* Hide bottom bar */
.mobile-bottom-bar {
    display: none !important;
}

/* Desktop sidebar user section */
.desktop-user-login-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.desktop-user-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.desktop-user-info {
    padding: 0.75rem;
    text-align: center;
    color: var(--text-light);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-bottom: 0.75rem;
}

.desktop-user-info p {
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
}

.desktop-user-info strong {
    font-size: 1rem;
}

.desktop-logout-btn {
    width: 100%;
    padding: 0.75rem;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.desktop-logout-btn:hover {
    background: rgba(239, 68, 68, 0.2);
}

.desktop-children-btn {
    width: 100%;
    padding: 0.75rem;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-light);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.desktop-children-btn:hover {
    background: rgba(99, 102, 241, 0.2);
}

@media (min-width: 769px) {
    .burger-menu-toggle {
        display: none;
    }
}

/* ===== CALL TO ACTION BANNER ===== */
.cta-banner {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 16px;
    padding: 0;
    margin-bottom: 2rem;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
    overflow: hidden;
    animation: ctaSlideIn 0.6s ease-out;
}

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

.cta-banner-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem 2rem;
}

.cta-banner-icon {
    font-size: 3rem;
    flex-shrink: 0;
    animation: ctaPulse 2s ease-in-out infinite;
}

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

.cta-banner-text {
    flex: 1;
    color: white;
}

.cta-banner-text h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.cta-banner-text p {
    margin: 0;
    font-size: 1rem;
    opacity: 0.95;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.cta-banner-button {
    background: white;
    color: #059669;
    border: none;
    border-radius: 12px;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.cta-banner-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.cta-banner-button:active {
    transform: translateY(-1px) scale(1.02);
}

@media (max-width: 768px) {
    .cta-banner-content {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }

    .cta-banner-icon {
        font-size: 2.5rem;
    }

    .cta-banner-text h3 {
        font-size: 1.25rem;
    }

    .cta-banner-text p {
        font-size: 0.9rem;
    }

    .cta-banner-button {
        width: 100%;
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .sidebar-logo-img {
        height: 52px;
    }
}
.callup-detail-modal {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    background: #ffffff;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}
.callup-detail-header {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}
.child-modal-close {
    font-size: 1.4rem;
    color: #0f172a;
    opacity: 0.85;
}
.callup-detail-logo {
    height: 72px;
    width: auto;
    object-fit: contain;
}
.callup-detail-title {
    margin: 0;
    font-weight: 800;
    color: #0f172a;
    font-size: 1.05rem;
}
.callup-detail-player {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
}
.callup-detail-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.35rem 0.75rem;
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.12);
    border-radius: 10px;
    padding: 0.75rem;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.03);
    color: #0f172a;
    font-weight: 600;
}
