        :root {
            /* Brand colours */
            --tennis-green: #2C5F2D;
            --tennis-yellow: #F7E018;
            --court-tan: #D4A574;
            --pure-white: #FFFFFF;
            --off-white: #F8F9FA;
            --dark: #1A1A1A;
            --shadow: rgba(0, 0, 0, 0.15);
            --gradient-1: linear-gradient(135deg, #2C5F2D 0%, #4A8B3D 100%);
            --gradient-2: linear-gradient(135deg, #F7E018 0%, #FFD700 100%);

            /* Semantic colour tokens */
            --color-success: #2E7D32;
            --color-success-bg: #E8F5E9;
            --color-error: #C62828;
            --color-error-bg: #FFEBEE;
            --color-warning: #E65100;
            --color-warning-bg: #FFF3E0;
            --color-info: #1565C0;
            --color-info-bg: #E3F2FD;
            --color-neutral-100: #F8F9FA;
            --color-neutral-200: #E0E0E0;
            --color-neutral-600: #666666;
            --color-neutral-900: #1A1A1A;

            /* Font sizes - all 16px minimum for iOS */
            --font-sm: 16px;
            --font-base: 18px;
            --font-lg: 20px;
            --font-xl: 22px;
            --font-2xl: 24px;
        }
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            -webkit-tap-highlight-color: transparent;
        }
        
        body {
            font-family: 'DM Sans', sans-serif;
            background: var(--off-white);
            color: var(--dark);
            overflow-x: hidden;
            -webkit-font-smoothing: antialiased;
            -webkit-text-size-adjust: 100%;
            min-height: 100vh;
            padding-bottom: 80px;
            font-size: var(--font-base);
            line-height: 1.6;
            overscroll-behavior: none;
        }
        
        /* Ensure minimum font sizes on iOS to prevent auto-zoom */
        input, select, textarea, button {
            font-size: var(--font-base) !important;
            -webkit-text-size-adjust: 100%;
        }
        
        /* Header */
      .app-header {
    background: var(--pure-white);
    padding: 12px 16px;
    position: relative;
    overflow: hidden;
    border-bottom: 4px solid var(--tennis-green);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

        .header-actions {
            display: flex;
            align-items: center;
            gap: 2px;
            flex-shrink: 0;
        }

        .header-icon-btn {
            background: none;
            border: none;
            cursor: pointer;
            padding: 12px;
            border-radius: 8px;
            line-height: 1;
            transition: background 0.2s;
            min-width: 44px;
            min-height: 44px;
            color: var(--tennis-green);
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .header-icon-btn--sm {
            padding: 12px;
        }

        .header-icon-btn:active {
            background: rgba(44, 95, 45, 0.1);
        }

        @media (hover: hover) {
            .header-icon-btn:hover {
                background: rgba(44, 95, 45, 0.1);
            }
        }

        .header-icon-btn.active {
            background: rgba(44, 95, 45, 0.15);
        }

        /* Touch tap feedback — fires on all devices */
        .nav-tab:active       { background: rgba(44, 95, 45, 0.12); }
        .btn:active           { opacity: 0.82; transform: scale(0.98); }
        .poll-option:active   { transform: scale(0.96); opacity: 0.88; }
        .checkbox-item:active { border-color: var(--tennis-green); background: rgba(44, 95, 45, 0.08); }

        
        .app-header::before {
            display: none;
			content: '';
            position: absolute;
            top: -50%;
            right: -10%;
            width: 300px;
            height: 300px;
            background: radial-gradient(circle, rgba(247, 224, 24, 0.2) 0%, transparent 70%);
            border-radius: 50%;
        }
        
        .app-logo {
            font-family: 'Bebas Neue', sans-serif;
			background: white;
            font-size: 32px;
            color: var(--tennis-green);
            letter-spacing: 2px;
            position: relative;
            z-index: 1;
        }

.app-logo img {
    max-height: 60px;
    height: auto;
    width: auto;
    display: block;
}

        
        .app-logo span {
            color: var(--tennis-yellow);
        }
        
        .header-subtitle {
            /*color: rgba(255, 255, 255, 0.85);*/
			color: var(--tennis-green);
            font-size: var(--font-sm);
            margin-top: 5px;
            position: relative;
            z-index: 1;
        }
        
        /* Navigation Tabs - Bottom Mobile Style */
        .nav-tabs {
            display: flex;
            background: var(--pure-white);
            border-top: 2px solid #E0E0E0;
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            z-index: 1000;
            box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
            padding-bottom: env(safe-area-inset-bottom);
        }
        
        .nav-tab {
            flex: 1;
            padding: 12px 8px;
            text-align: center;
            font-weight: 600;
            font-size: 14px;
            color: #666;
            border: none;
            background: none;
            cursor: pointer;
            transition: all 0.3s;
            position: relative;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 4px;
            min-height: 60px;
        }
        
        .nav-tab .icon {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 24px;
            height: 24px;
        }
        
        .nav-tab.active {
            color: var(--tennis-green);
            background: rgba(44, 95, 45, 0.05);
        }
        
        .nav-tab.active::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: var(--tennis-green);
        }
        
        /* Content Sections */
        .content-section {
            display: none;
            padding: 20px;
            padding-bottom: 100px;
            animation: fadeIn 0.4s;
            min-height: calc(100vh - 140px);
        }
        
        .content-section.active {
            display: block;
        }
        
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }
        
        /* Forms */
        .form-group {
            margin-bottom: 20px;
        }
        
        .form-label {
            display: block;
            font-weight: 600;
            font-size: 17px;
            margin-bottom: 10px;
            color: var(--dark);
        }
        
        .form-input,
        .form-select {
            width: 100%;
            padding: 18px 20px;
            border: 2px solid #E0E0E0;
            border-radius: 12px;
            font-size: 18px;
            font-family: 'DM Sans', sans-serif;
            transition: all 0.3s;
            background: var(--pure-white);
            min-height: 58px;
        }
        
        .form-input:focus,
        .form-select:focus {
            outline: none;
            border-color: var(--tennis-green);
            box-shadow: 0 0 0 4px rgba(44, 95, 45, 0.1);
        }
        
        /* Multi-select Checkboxes */
        .checkbox-group {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }
        
        .checkbox-item {
            display: flex;
            align-items: center;
            padding: 16px;
            background: var(--pure-white);
            border: 2px solid #E0E0E0;
            border-radius: 10px;
            cursor: pointer;
            transition: all 0.3s;
            min-height: 58px;
        }
        
        @media (hover: hover) {
            .checkbox-item:hover {
                border-color: var(--tennis-green);
                background: rgba(44, 95, 45, 0.05);
            }
        }
        
        .checkbox-item input[type="checkbox"] {
            margin-right: 16px;
            width: 24px;
            height: 24px;
            cursor: pointer;
        }
        
        .checkbox-item label {
            cursor: pointer;
            flex: 1;
            font-size: 16px;
        }
        
        /* Buttons */
        .btn {
            padding: 20px 28px;
            border: none;
            border-radius: 16px;
            font-weight: 700;
            font-size: 18px;
            cursor: pointer;
            transition: all 0.3s;
            font-family: 'DM Sans', sans-serif;
            width: 100%;
            min-height: 60px;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
        }
        
        .btn-primary {
            background: var(--gradient-1);
            color: var(--pure-white);
            box-shadow: 0 4px 12px rgba(44, 95, 45, 0.3);
        }
        
        @media (hover: hover) {
            .btn-primary:hover {
                transform: translateY(-2px);
                box-shadow: 0 6px 20px rgba(44, 95, 45, 0.4);
            }
        }
        
        .btn-secondary {
            background: var(--gradient-2);
            color: var(--dark);
            box-shadow: 0 4px 12px rgba(247, 224, 24, 0.3);
        }
        
        .btn-danger {
            background: #E53E3E;
            color: var(--pure-white);
            box-shadow: 0 4px 12px rgba(229, 62, 62, 0.3);
        }
        
        .btn-outline {
            background: transparent;
            color: var(--tennis-green);
            border: 2px solid var(--tennis-green);
        }
        
        /* Cards */
        .card {
            background: var(--pure-white);
            border-radius: 16px;
            padding: 20px;
            margin-bottom: 16px;
            box-shadow: 0 2px 8px var(--shadow);
        }
        
        .card-header {
            font-weight: 700;
            font-size: 22px;
            margin-bottom: 16px;
            color: var(--tennis-green);
        }
        
        /* Admin User List */
        .user-list,
        .session-list {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }
        
        .user-item,
        .session-item {
            background: var(--pure-white);
            border: 2px solid #E0E0E0;
            border-radius: 12px;
            padding: 16px;
        }
        
        .user-name,
        .session-name {
            font-weight: 700;
            font-size: 18px;
            margin-bottom: 8px;
        }
        
        .user-details,
        .session-details {
            font-size: 17px;
            color: #666;
            margin-bottom: 12px;
            line-height: 1.6;
        }
        
        .badge {
            display: inline-block;
            padding: 6px 14px;
            border-radius: 20px;
            font-size: var(--font-sm);
            font-weight: 600;
            margin-right: 8px;
            margin-bottom: 8px;
        }
        
        .badge-approved {
            background: var(--color-success);
            color: white;
        }

        .badge-pending {
            background: var(--tennis-yellow);
            color: var(--dark);
        }

        .badge-club {
            background: var(--tennis-yellow);
            color: var(--dark);
        }

        .badge-2nd {
            background: #A5D6A7;
            color: var(--dark);
        }

        .badge-1st {
            background: var(--tennis-green);
            color: white;
        }
        
        /* WhatsApp Mockup */
        .whatsapp-mockup {
            background: #E5DDD5;
            border-radius: 16px;
            overflow: hidden;
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
        }
        
        .whatsapp-header {
            background: #075E54;
            color: white;
            padding: 16px;
            display: flex;
            align-items: center;
            gap: 12px;
        }
        
        .whatsapp-avatar {
            width: 40px;
            height: 40px;
            background: var(--tennis-yellow);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            color: var(--dark);
        }
        
        .whatsapp-title {
            font-weight: 600;
            font-size: 16px;
        }
        
        .whatsapp-chat {
            padding: 20px;
            max-height: min(500px, 60vh);
            overflow-y: auto;
            -webkit-overflow-scrolling: touch;
        }
        
        .whatsapp-message {
            background: white;
            padding: 16px 18px;
            border-radius: 8px;
            margin-bottom: 12px;
            max-width: 90%;
            box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
        }
        
        .whatsapp-message.sent {
            background: #DCF8C6;
            margin-left: auto;
        }
        
        .whatsapp-message.poll-message {
            transition: all 0.2s ease;
        }
        
        @media (hover: hover) {
            .whatsapp-message.poll-message:hover {
                transform: translateY(-2px);
                box-shadow: 0 4px 8px rgba(44, 95, 45, 0.2);
            }
        }
        
        .message-header {
            font-weight: 700;
            font-size: 16px;
            margin-bottom: 8px;
            color: var(--tennis-green);
        }
        
        .message-text {
            font-size: var(--font-sm);
            line-height: 1.6;
            margin-bottom: 12px;
        }
        
        .poll-options {
            display: flex;
            gap: 10px;
        }
        
        .poll-option {
            flex: 1;
            padding: 16px;
            border-radius: 8px;
            border: none;
            font-weight: 600;
            font-size: 16px;
            cursor: pointer;
            transition: all 0.3s;
            min-height: 54px;
        }
        
        .poll-option.yes {
            background: #48BB78;
            color: white;
        }
        
        .poll-option.no {
            background: #E53E3E;
            color: white;
        }
        
        @media (hover: hover) {
            .poll-option:hover {
                transform: scale(1.05);
            }
        }
        
        .message-time {
            font-size: 12px;
            color: #999;
            text-align: right;
            margin-top: 4px;
        }
        
        /* Matches Display */
        .round-section {
            margin-bottom: 30px;
        }
        
        .round-header {
            font-family: 'Bebas Neue', sans-serif;
            font-size: 28px;
            color: var(--tennis-green);
            margin-bottom: 16px;
            letter-spacing: 1px;
        }
        
        .match-card {
            background: var(--pure-white);
            border-radius: 12px;
            padding: 16px;
            margin-bottom: 12px;
            border-left: 4px solid var(--tennis-green);
            box-shadow: 0 2px 8px var(--shadow);
        }
        
        .court-label {
            font-weight: 700;
            color: var(--tennis-green);
            margin-bottom: 8px;
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 17px;
        }
        
        .match-type {
            background: var(--tennis-yellow);
            padding: 6px 14px;
            border-radius: 20px;
            font-size: 14px;
            font-weight: 600;
        }
        
        .players-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 12px;
            margin-top: 12px;
        }
        
        .player-card {
            background: var(--off-white);
            padding: 14px;
            border-radius: 8px;
            text-align: center;
        }
        
        .player-name {
            font-weight: 600;
            font-size: 16px;
        }
        
        .player-standard {
            font-size: var(--font-sm);
            color: #666;
            margin-top: 4px;
        }
        
        .waitlist-section {
            background: var(--color-warning-bg);
            border-radius: 12px;
            padding: 16px;
            margin-top: 20px;
            border-left: 4px solid var(--color-warning);
        }

        .waitlist-header {
            font-weight: 700;
            font-size: 16px;
            margin-bottom: 12px;
            color: var(--color-warning);
        }
        
        /* Success Message */
        .success-message {
            background: var(--color-success-bg);
            color: var(--color-success);
            border: 1px solid #A5D6A7;
            padding: 16px;
            border-radius: 12px;
            margin-bottom: 20px;
            text-align: center;
            font-weight: 600;
        }
        
        /* Loading */
        .loading {
            text-align: center;
            padding: 40px;
            color: #666;
        }
        
        .loading::after {
            content: '...';
            animation: dots 1.5s infinite;
        }
        
        @keyframes dots {
            0%, 20% { content: '.'; }
            40% { content: '..'; }
            60%, 100% { content: '...'; }
        }
        
        /* Responsive */
        @media (max-width: 480px) {
            .players-grid {
                grid-template-columns: 1fr;
            }
        }
        
        .empty-state {
            text-align: center;
            padding: 40px 20px;
            color: #999;
            font-size: 17px;
        }
        
        .empty-icon {
            font-size: 48px;
            margin-bottom: 16px;
        }

/* Frequency and Match Format Badge Styles */

.badge-frequency {
    background: var(--gradient-1);
    color: white;
}

.badge-format {
    background: linear-gradient(135deg, #00695C 0%, #00897B 100%);
    color: white;
}

/* ── Semantic Banner Components ───────────────────────────── */

.info-banner {
    padding: 14px 16px;
    background: var(--color-info-bg);
    border-left: 4px solid var(--color-info);
    border-radius: 8px;
    color: var(--color-info);
    font-size: var(--font-sm);
    line-height: 1.5;
}

.warning-banner {
    padding: 14px 16px;
    background: var(--color-warning-bg);
    border-left: 4px solid var(--color-warning);
    border-radius: 8px;
    color: var(--color-warning);
    font-size: var(--font-sm);
    line-height: 1.5;
}

.error-banner {
    padding: 14px 16px;
    background: var(--color-error-bg);
    border-left: 4px solid var(--color-error);
    border-radius: 8px;
    color: var(--color-error);
    font-size: var(--font-sm);
    line-height: 1.5;
    font-weight: 600;
}

.success-banner {
    padding: 14px 16px;
    background: var(--color-success-bg);
    border-left: 4px solid var(--color-success);
    border-radius: 8px;
    color: var(--color-success);
    font-size: var(--font-sm);
    line-height: 1.5;
}

/* ── Form Hint Text ───────────────────────────────────────── */

.form-hint {
    color: var(--color-neutral-600);
    font-size: var(--font-sm);
    margin-top: 6px;
    display: block;
    line-height: 1.5;
}

/* ── Modal Overlay & Content ──────────────────────────────── */

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1000;
    overflow-y: auto;
    padding: 20px;
}

.modal-content {
    background: white;
    border-radius: 16px;
    padding: 24px;
    max-width: 500px;
    margin: 0 auto;
    position: relative;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--color-neutral-600);
    line-height: 1;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.2s;
}

.modal-close:hover {
    background: var(--color-neutral-100);
}

/* ── Profile Avatar ───────────────────────────────────────── */

.profile-avatar {
    width: 72px;
    height: 72px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 28px;
    color: white;
    letter-spacing: 1px;
    margin: 0 auto 20px;
}

/* ── Profile Field Layout ─────────────────────────────────── */

.profile-fields-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.profile-field {
    margin-bottom: 16px;
}

.profile-field-label {
    font-weight: 600;
    color: var(--color-neutral-600);
    font-size: var(--font-sm);
    display: block;
    margin-bottom: 4px;
}

.profile-field-value {
    font-size: var(--font-base);
    font-weight: 700;
    color: var(--dark);
}

.profile-field-value--normal {
    font-weight: 400;
}

/* ── Danger Zone Card ─────────────────────────────────────── */

.card--danger {
    border: 2px solid #FFCDD2;
}

.card-header--danger {
    color: var(--color-error);
}

/* ── Success Message (updated to use semantic tokens) ─────── */
