@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

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

:root {
    /* Sporty bright palette — sky blue + cricket-ball orange over a bright pitch */
    --primary-color: #0ea5e9;      /* vibrant sky blue */
    --primary-dark: #0369a1;
    --primary-light: #38bdf8;
    --electric-lime: #38bdf8;      /* accent stripe (now blue) */
    --ball-orange: #ff6b35;        /* cricket ball / CTA */
    --floodlight: #facc15;         /* bright yellow */
    --secondary-color: #ff6b35;
    --accent-gold: #facc15;
    --fresh-green: #38bdf8;
    --sunset-orange: #ff6b35;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --dark-bg: #0a1420;
    --light-bg: #15263a;
    --card-bg: rgba(10, 20, 32, 0.62);
    --text-dark: #f0f9ff;
    --text-light: #94a3b8;
    --border-color: #1e3a52;
}

body {
    font-family: 'Outfit', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background:
        radial-gradient(circle at 15% 20%, rgba(163, 230, 53, 0.10), transparent 38%),
        radial-gradient(circle at 85% 15%, rgba(255, 107, 53, 0.10), transparent 36%),
        radial-gradient(circle at 50% 100%, rgba(34, 197, 94, 0.14), transparent 50%),
        linear-gradient(160deg, #041209 0%, #06301a 35%, #074d29 60%, #04150b 100%);
    background-attachment: fixed;
    color: #ecfdf5;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Generic utility: hide any element with the .hidden class */
.hidden {
    display: none !important;
}

/* Policy links (login page footer) */
.policy-links {
    position: relative;
    z-index: 3;
    text-align: center;
    margin-top: 22px;
    font-size: 0.82rem;
    color: #94a3b8;
}

.policy-links a {
    color: #cbd5e1;
    text-decoration: none;
    margin: 0 2px;
}

.policy-links a:hover {
    color: #38bdf8;
    text-decoration: underline;
}

/* Login Section Styles */
.login-section {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    min-height: 100vh;
    padding: 28px 34px 44px;
    background:
        linear-gradient(135deg, rgba(4, 12, 22, 0.86) 0%, rgba(8, 28, 48, 0.72) 50%, rgba(10, 40, 66, 0.62) 100%),
        url('assets/ground_image.png') center / cover no-repeat;
}

.login-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(3, 10, 20, 0.55) 0%, rgba(8, 30, 52, 0.32) 50%, rgba(56, 189, 248, 0.06) 100%),
        radial-gradient(circle at 72% 28%, rgba(56, 189, 248, 0.10), transparent 42%);
    pointer-events: none;
    z-index: 0;
}

.login-section.hidden {
    display: none;
}

.login-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 430px;
    scroll-margin-top: 120px;
}

.corner-player-logo {
    position: absolute;
    top: 24px;
    z-index: 4;
    width: clamp(76px, 7vw, 112px);
    height: clamp(76px, 7vw, 112px);
    object-fit: contain;
    border-radius: 22px;
    box-shadow: 0 18px 38px rgba(6, 33, 68, 0.22);
    background: rgba(255, 255, 255, 0.96);
}

.corner-player-logo-left {
    left: clamp(18px, 3vw, 52px);
}

.corner-player-logo-right {
    right: clamp(18px, 3vw, 52px);
}

.landing-nav {
    position: relative;
    z-index: 3;
    width: min(1200px, 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 46px;
    padding: 12px 18px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.14);
    box-shadow: 0 18px 44px rgba(6, 33, 68, 0.18);
    backdrop-filter: blur(14px);
}

.nav-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-family: 'Oswald', 'Arial Narrow', sans-serif;
    font-size: clamp(0.95rem, 1.6vw, 1.18rem);
    font-weight: 800;
    letter-spacing: 0.8px;
}

.nav-brand img {
    width: 42px;
    height: 42px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #ffd447;
    box-shadow: 0 0 16px rgba(77, 248, 255, 0.4);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links a {
    color: #f8fbff;
    text-decoration: none;
    padding: 9px 13px;
    border-radius: 999px;
    font-weight: 700;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
    color: #04223a;
    background: #ffffff;
    transform: translateY(-1px);
}

.nav-links a.nav-login-btn {
    background: linear-gradient(90deg, #0ea5e9, #38bdf8);
    color: #04223a;
}

.nav-links a.nav-login-btn:hover {
    background: linear-gradient(90deg, #0284c7, #0ea5e9);
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(14, 165, 233, 0.4);
}

.landing-hero {
    position: relative;
    z-index: 2;
    width: min(1200px, 100%);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 430px);
    align-items: center;
    gap: clamp(30px, 5vw, 68px);
    min-height: calc(100vh - 210px);
}

.hero-copy {
    position: relative;
    z-index: 2;
    color: #ffffff;
    padding: 8px 0 20px;
}

.landing-hero > .login-container {
    justify-self: end;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    margin-bottom: 18px;
    padding: 7px 16px;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.14);
    border: 1px solid rgba(56, 189, 248, 0.4);
    color: #7dd3fc;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    font-size: 0.74rem;
    backdrop-filter: blur(6px);
}

.hero-copy h1 {
    max-width: 640px;
    font-family: 'Oswald', 'Arial Narrow', sans-serif;
    font-size: clamp(2.5rem, 4.4vw, 4.2rem);
    line-height: 1.02;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #ffffff;
    text-shadow: 0 0 34px rgba(14, 165, 233, 0.4), 0 10px 28px rgba(2, 12, 24, 0.6);
}

.hero-copy h1 .accent,
.hero-eyebrow {
    color: #38bdf8;
}

.hero-text {
    max-width: 560px;
    margin: 18px 0 24px;
    color: #e9f7ff;
    font-size: 1.04rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 32px;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 20px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 900;
    letter-spacing: 0.2px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-btn:hover,
.hero-btn:focus-visible {
    transform: translateY(-2px);
}

.hero-btn-primary {
    color: #06210f;
    text-transform: uppercase;
    background: linear-gradient(90deg, #22c55e, #a3e635, #facc15);
    box-shadow: 0 18px 36px rgba(34, 197, 94, 0.35);
}

.hero-btn-secondary {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.38);
    background: rgba(255, 255, 255, 0.13);
    backdrop-filter: blur(10px);
}

/* Benefit list (replaces image feature cards) */
.hero-benefits {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 22px;
    max-width: 640px;
    margin: 26px 0 30px;
}

.hero-benefits li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.hb-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    background: rgba(56, 189, 248, 0.14);
    border: 1px solid rgba(56, 189, 248, 0.3);
}

.hero-benefits li div {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.hero-benefits strong {
    color: #f0f9ff;
    font-size: 0.96rem;
    font-weight: 700;
    line-height: 1.2;
}

.hero-benefits span {
    color: #cbd5e1;
    font-size: 0.82rem;
    margin-top: 2px;
}

/* Legacy image-stream decoration (kept subtle / mostly hidden) */
.ground-image-stream {
    position: absolute;
    top: 170px;
    bottom: auto;
    width: min(22vw, 280px);
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    gap: 28px;
    pointer-events: none;
    z-index: 1;
    opacity: 0.62;
}

.ground-image-stream-left {
    left: max(-120px, -7vw);
}

.ground-image-stream-right {
    right: max(-120px, -7vw);
}

.ground-image-stream img {
    width: clamp(170px, 20vw, 280px);
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 18px;
    border: 2px solid rgba(255, 255, 255, 0.62);
    box-shadow: 0 20px 50px rgba(6, 33, 68, 0.2), 0 0 32px rgba(14, 165, 233, 0.16);
    opacity: 1;
}

.ground-image-stream-left img {
    animation: groundSlideFromLeft 9s ease-in-out infinite;
}

.ground-image-stream-right img {
    align-self: flex-end;
    animation: groundSlideFromRight 9s ease-in-out infinite;
}

.ground-image-stream img:nth-child(2) {
    animation-delay: 1.6s;
    object-position: center;
    opacity: 0.82;
}

.ground-image-stream img:nth-child(3) {
    animation-delay: 3.2s;
    object-position: bottom;
    opacity: 0.86;
}

@keyframes groundSlideFromLeft {
    0%, 100% {
        transform: translateX(-42px) scale(0.94);
    }
    50% {
        transform: translateX(34px) scale(1);
    }
}

@keyframes groundSlideFromRight {
    0%, 100% {
        transform: translateX(42px) scale(0.94);
    }
    50% {
        transform: translateX(-34px) scale(1);
    }
}

.login-box, .signup-box {
    background:
        linear-gradient(155deg, rgba(10, 22, 36, 0.96), rgba(8, 16, 26, 0.93)),
        radial-gradient(circle at top left, rgba(56, 189, 248, 0.18), transparent 40%),
        radial-gradient(circle at bottom right, rgba(255, 107, 53, 0.14), transparent 38%);
    padding: 34px;
    border-radius: 20px;
    border: 1.5px solid rgba(56, 189, 248, 0.42);
    box-shadow: 0 0 42px rgba(56, 189, 248, 0.18), 0 28px 60px rgba(0, 0, 0, 0.4), inset 0 0 28px rgba(56, 189, 248, 0.06);
    border-top: 3px solid var(--electric-lime);
    animation: slideUp 0.5s ease;
}

.signup-box {
    display: none;
}

.signup-box.visible {
    display: block;
}

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

.login-box h1 {
    text-align: center;
    color: #38bdf8;
    margin-bottom: 8px;
    font-size: 1.45rem;
    font-family: 'Oswald', 'Arial Narrow', sans-serif;
    letter-spacing: 0.6px;
    text-shadow: 0 0 18px rgba(0, 194, 255, 0.5), 0 0 28px rgba(255, 79, 216, 0.28);
}

/* Logo Container */
.logo-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.home-logo-link {
    color: inherit;
    text-decoration: none;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.home-logo-link:hover,
.home-logo-link:focus-visible {
    transform: translateY(-1px);
    filter: brightness(1.12);
}

.home-logo-link:focus-visible {
    outline: 2px solid rgba(34, 211, 238, 0.75);
    outline-offset: 6px;
    border-radius: 12px;
}

.cricket-logo {
    width: 116px;
    height: 116px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid rgba(77, 248, 255, 0.9);
    box-shadow: 0 0 0 7px rgba(255, 212, 71, 0.18), 0 0 34px rgba(0, 194, 255, 0.48), 0 16px 32px rgba(0, 0, 0, 0.42);
    background: #07142b;
    filter: saturate(1.22) contrast(1.04);
    animation: logoPulse 3s ease-in-out infinite;
}

@keyframes logoPulse {
    0%, 100% { box-shadow: 0 0 0 7px rgba(255, 212, 71, 0.18), 0 0 34px rgba(0, 194, 255, 0.48), 0 16px 32px rgba(0, 0, 0, 0.42); }
    50% { box-shadow: 0 0 0 10px rgba(255, 79, 216, 0.16), 0 0 48px rgba(77, 248, 255, 0.68), 0 16px 32px rgba(0, 0, 0, 0.42); }
}

.login-subtitle {
    text-align: center;
    color: #c7d7ff;
    margin-bottom: 22px;
    font-size: 0.9rem;
}

/* Form Content */
.tab-content {
    display: block;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

.otp-info {
    text-align: center;
    color: #10b981;
    font-size: 0.9rem;
    padding: 10px;
    margin: 10px 0;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 8px;
    border-left: 3px solid #10b981;
}

/* OTP Verification Section */
#otpVerificationSection {
    animation: slideDown 0.4s ease;
}

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

#otpVerificationSection.hidden {
    display: none;
}

.signup-box h2 {
    text-align: center;
    color: #38bdf8;
    margin-bottom: 25px;
}

.login-box .form-group,
.signup-box .form-group {
    margin-bottom: 18px;
}

.login-box label,
.signup-box label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #38bdf8;
}

.otp-module {
    margin-top: 18px;
    padding: 18px 18px 20px;
    border-radius: 16px;
    border: 1px solid rgba(77, 248, 255, 0.2);
    background:
        linear-gradient(160deg, rgba(6, 22, 45, 0.7), rgba(7, 36, 58, 0.62)),
        radial-gradient(circle at top right, rgba(45, 240, 143, 0.14), transparent 38%);
    box-shadow: inset 0 0 24px rgba(77, 248, 255, 0.05), 0 16px 28px rgba(0, 0, 0, 0.16);
}

.login-box input,
.signup-box input {
    width: 100%;
    padding: 12px;
    border: 1.5px solid rgba(77, 248, 255, 0.28);
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(7, 20, 43, 0.86), rgba(24, 29, 82, 0.76));
    color: #e0e7ff;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.login-box input:focus,
.signup-box input:focus {
    outline: none;
    border-color: #ffd447;
    box-shadow: 0 0 24px rgba(255, 212, 71, 0.28), 0 0 36px rgba(0, 194, 255, 0.18);
}

.btn-login {
    width: 100%;
    margin-top: 10px;
}

.login-footer {
    text-align: center;
    margin-top: 24px;
    color: var(--text-light);
    font-size: 1.12rem;
    font-weight: 700;
}

.link-btn {
    background: none;
    border: none;
    color: #38bdf8;
    cursor: pointer;
    font-weight: 800;
    text-decoration: underline;
    padding: 0;
    font-size: 1.08rem;
}

.link-btn:hover {
    opacity: 0.8;
    color: #ffd447;
}

.form-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 20px;
}

.form-actions .btn {
    margin: 0;
}

.login-message {
    margin-top: 20px;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    display: none;
    font-weight: 600;
}

.login-message.error {
    display: block;
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.login-message.success {
    display: block;
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

/* Email Verification Section */
#emailVerifySection {
    margin-top: 16px;
}

.verify-info-box {
    background: rgba(45, 240, 143, 0.07);
    border: 1px solid rgba(45, 240, 143, 0.25);
    border-radius: 14px;
    padding: 20px 18px;
    text-align: center;
    margin-bottom: 18px;
}

.verify-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

.verify-info-box p {
    color: #94a3b8;
    font-size: 0.88rem;
    margin: 2px 0;
}

.verify-email-display {
    color: #2df08f !important;
    font-weight: 700 !important;
    font-size: 0.92rem !important;
    word-break: break-all;
}

.verify-sub {
    font-size: 0.78rem !important;
    color: #475569 !important;
    margin-top: 6px !important;
}

/* Forgot password link + section */
.login-forgot {
    text-align: right;
    margin: -8px 0 14px;
}

.login-forgot .link-btn {
    font-size: 0.82rem;
    color: #94a3b8;
}

.login-forgot .link-btn:hover {
    color: #38bdf8;
}

.forgot-sub {
    color: #94a3b8;
    font-size: 0.86rem;
    text-align: center;
    margin-bottom: 16px;
}

/* App Section */
.app-section {
    display: block;
    position: relative;
    min-height: 100vh;
    background:
        linear-gradient(160deg, rgba(8, 15, 26, 0.40) 0%, rgba(8, 15, 26, 0.28) 50%, rgba(8, 15, 26, 0.46) 100%),
        url('assets/ground_image.png') center center / cover no-repeat fixed;
}

.app-section.hidden {
    display: none;
}

/* Notification Bell */
.notification-bell {
    position: relative;
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    transition: all 0.3s ease;
    line-height: 1;
}

.notification-bell:hover {
    background: rgba(34, 211, 238, 0.1);
    transform: scale(1.1);
}

.notification-count {
    position: absolute;
    top: 2px;
    right: 2px;
    background: #ef4444;
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.5);
}

.notification-count.zero {
    display: none;
}

/* Upcoming Bookings Section */
.upcoming-section {
    background: linear-gradient(160deg, rgba(10, 20, 32, 0.80), rgba(8, 16, 26, 0.74));
    padding: 25px 30px;
    border-radius: 20px;
    border: 1.5px solid rgba(56, 189, 248, 0.22);
    box-shadow: 0 0 40px rgba(56, 189, 248, 0.06), 0 12px 30px rgba(0, 0, 0, 0.45);
    margin-bottom: 30px;
    animation: slideUp 0.5s ease;
}

.upcoming-section.collapsed .upcoming-body {
    display: none;
}

/* Full-width upcoming body */
.upcoming-body {
    display: block;
}

/* Header right cluster: range tabs + hide toggle */
.upcoming-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Date navigation */
.avail-date-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.avail-nav-btn {
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: #38bdf8;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.78rem;
    transition: background 0.18s, transform 0.18s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avail-nav-btn:hover {
    background: rgba(56, 189, 248, 0.25);
    transform: translateY(-1px);
}

.avail-date-input {
    background: rgba(8, 16, 26, 0.85);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: #e2e8f0;
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 0.82rem;
    cursor: pointer;
    outline: none;
    color-scheme: dark;
}

.avail-date-input:focus {
    border-color: rgba(56, 189, 248, 0.6);
}

.avail-today-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #cbd5e1;
    border-radius: 8px;
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.18s;
}

.avail-today-btn:hover {
    background: rgba(56, 189, 248, 0.18);
    color: #fff;
    border-color: rgba(56, 189, 248, 0.4);
}

.avail-range-tabs {
    display: flex;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 10px;
    padding: 3px;
    gap: 3px;
}

.avail-range-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 7px;
    cursor: pointer;
    transition: all 0.18s;
    white-space: nowrap;
}

.avail-range-btn:hover { color: #e2e8f0; }

.avail-range-btn.active {
    background: linear-gradient(90deg, #0ea5e9, #38bdf8);
    color: #04223a;
}

/* Legend */
.avail-legend {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 12px;
    font-size: 0.76rem;
    color: #94a3b8;
    flex-wrap: wrap;
}

.avail-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.avail-dot {
    width: 11px;
    height: 11px;
    border-radius: 3px;
    display: inline-block;
}

.avail-dot.free { background: rgba(34, 197, 94, 0.4); border: 1px solid rgba(34, 197, 94, 0.7); }
.avail-dot.booked { background: rgba(244, 63, 94, 0.45); border: 1px solid rgba(244, 63, 94, 0.7); }

.avail-legend-hint {
    margin-left: auto;
    font-style: italic;
    opacity: 0.7;
}

/* Grid wrapper — horizontal scroll */
.availability-grid-wrapper {
    overflow-x: auto;
    border-radius: 12px;
    scrollbar-width: thin;
    scrollbar-color: rgba(56, 189, 248, 0.3) transparent;
}

.availability-grid-wrapper::-webkit-scrollbar { height: 7px; }
.availability-grid-wrapper::-webkit-scrollbar-thumb { background: rgba(56, 189, 248, 0.3); border-radius: 4px; }

.avail-table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    min-width: 760px;
}

/* Header cells */
.avail-corner,
.avail-day {
    background: rgba(8, 16, 26, 0.95);
    padding: 9px 10px;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 2;
}

.avail-corner {
    left: 0;
    z-index: 3;
    text-align: left;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #64748b;
    font-weight: 700;
    min-width: 130px;
}

.avail-day {
    min-width: 110px;
    border-left: 1px solid rgba(255, 255, 255, 0.05);
}

.avail-day .avail-dow {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #94a3b8;
    text-transform: uppercase;
}

.avail-day .avail-date {
    display: block;
    font-size: 0.78rem;
    color: #cbd5e1;
    margin-top: 1px;
}

.avail-day.avail-weekend .avail-dow { color: #fbbf24; }

.avail-day.avail-today {
    background: linear-gradient(180deg, rgba(14, 165, 233, 0.25), rgba(8, 16, 26, 0.95));
}
.avail-day.avail-today .avail-dow { color: #38bdf8; }

/* Ground (row header) — sticky left */
.avail-ground {
    position: sticky;
    left: 0;
    z-index: 1;
    background: rgba(10, 20, 32, 0.97);
    padding: 12px 12px;
    font-weight: 700;
    font-size: 0.86rem;
    color: #f0f9ff;
    border-left: 3px solid #38bdf8;
    white-space: nowrap;
    min-width: 130px;
}

.avail-ground-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    margin-right: 7px;
    vertical-align: middle;
}

/* Cells */
.avail-cell {
    padding: 6px;
    border-left: 1px solid rgba(255, 255, 255, 0.04);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    vertical-align: top;
}

.avail-cell.avail-today-col {
    background: rgba(14, 165, 233, 0.06);
}

.avail-slot {
    font-size: 0.72rem;
    padding: 4px 7px;
    border-radius: 6px;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 130px;
}

.avail-slot:last-child { margin-bottom: 0; }

.avail-slot b {
    font-weight: 800;
    margin-right: 4px;
    opacity: 0.85;
}

.avail-slot.free {
    background: rgba(34, 197, 94, 0.10);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #86efac;
}

.avail-slot.booked {
    background: rgba(244, 63, 94, 0.16);
    border: 1px solid rgba(244, 63, 94, 0.45);
    color: #fda4af;
    font-weight: 600;
}

.avail-slot.fd {
    background: rgba(168, 85, 247, 0.20);
    border-color: rgba(168, 85, 247, 0.5);
    color: #e9d5ff;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    font-weight: 700;
}

/* Empty state */
.avail-empty {
    text-align: center;
    padding: 36px 16px;
    color: #64748b;
}
.avail-empty-icon { font-size: 2.4rem; display: block; margin-bottom: 8px; opacity: 0.5; }

/* Legacy 2×2 panel (kept for safety, unused) */
.upcoming-list-panel {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    align-items: start;
}

/* Next Match Spotlight */
.upcoming-spotlight {
    background: linear-gradient(145deg, rgba(13, 59, 31, 0.65), rgba(6, 22, 10, 0.85));
    border: 1.5px solid rgba(45, 240, 143, 0.3);
    border-radius: 14px;
    padding: 20px 18px;
    box-shadow: 0 0 30px rgba(45, 240, 143, 0.1), inset 0 0 20px rgba(45, 240, 143, 0.04);
    display: flex;
    align-items: stretch;
}

.spotlight-inner {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.spotlight-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: #2df08f;
    text-transform: uppercase;
}

.spotlight-badge-pill {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    width: fit-content;
}

.badge-today    { background: rgba(239,68,68,0.2);  color: #fca5a5; border: 1px solid rgba(239,68,68,0.4); }
.badge-tomorrow { background: rgba(251,191,36,0.2); color: #fde68a; border: 1px solid rgba(251,191,36,0.4); }
.badge-week     { background: rgba(99,102,241,0.2); color: #c7d2fe; border: 1px solid rgba(99,102,241,0.4); }

.spotlight-team-name {
    font-family: 'Oswald', 'Arial Narrow', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 0 20px rgba(45, 240, 143, 0.4);
    line-height: 1.2;
    margin-top: 4px;
}

.spotlight-details {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 6px;
}

.spotlight-detail-row {
    font-size: 0.9rem;
    color: #94a3b8;
}

.spotlight-more {
    margin-top: auto;
    font-size: 0.8rem;
    color: #2df08f;
    opacity: 0.75;
    padding-top: 10px;
    border-top: 1px solid rgba(45, 240, 143, 0.15);
}

.spotlight-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 8px;
    opacity: 0.5;
    text-align: center;
}

.spotlight-empty-icon  { font-size: 2.5rem; }
.spotlight-empty-text  { font-size: 1rem; font-weight: 600; color: #e0e7ff; }
.spotlight-empty-sub   { font-size: 0.8rem; color: #94a3b8; }

/* Header center date display */
.header-center {
    text-align: right;
    padding: 4px 22px 4px 0;
    border-right: 1px solid rgba(77, 248, 255, 0.16);
}

.header-date-day {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    color: #2df08f;
    text-transform: uppercase;
}

.header-date-full {
    font-size: 0.82rem;
    color: #94a3b8;
    margin-top: 2px;
}

.upcoming-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    gap: 16px;
    flex-wrap: wrap;
}

.upcoming-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.upcoming-header h2 {
    color: #38bdf8;
    font-family: 'Oswald', 'Arial Narrow', sans-serif;
    font-size: 1.1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-shadow: 0 0 12px rgba(34, 197, 94, 0.2);
    white-space: nowrap;
}

.upcoming-ground-filter {
    background-color: rgba(15, 23, 41, 0.7);
    /* clear blue chevron so it's obviously a dropdown */
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path d='M2 4l4 4 4-4' stroke='%2338bdf8' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border: 1px solid rgba(56, 189, 248, 0.45);
    color: #e0e7ff;
    border-radius: 10px;
    padding: 7px 32px 7px 14px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s;
}

.upcoming-ground-filter:hover {
    border-color: rgba(56, 189, 248, 0.7);
}

.upcoming-ground-filter:focus {
    border-color: rgba(34, 211, 238, 0.6);
}

.upcoming-ground-filter option {
    background: #0f1729;
    color: #e0e7ff;
}

.next-week-label {
    background: rgba(139, 92, 246, 0.15);
    color: #c4b5fd;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

/* Weekend section label colors */
.weekend-label {
    background: rgba(45, 240, 143, 0.15);
    color: #6ee7b7;
    border: 1px solid rgba(45, 240, 143, 0.3);
}

.next-weekend-label {
    background: rgba(139, 92, 246, 0.15);
    color: #c4b5fd;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

/* Date suffix in label (e.g. "· 6 Jun") */
.ul-date {
    font-weight: 600;
    opacity: 0.7;
    font-size: 0.92em;
    margin-left: 2px;
}

.toggle-upcoming {
    background: rgba(34, 211, 238, 0.1);
    border: 1px solid rgba(34, 211, 238, 0.3);
    color: #38bdf8;
    padding: 6px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.toggle-upcoming:hover {
    background: rgba(34, 211, 238, 0.2);
}

.upcoming-row {
    background: rgba(0, 0, 0, 0.22);
    border-radius: 14px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: border-color 0.2s;
}

.upcoming-row:hover {
    border-color: rgba(34, 211, 238, 0.2);
}

.upcoming-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    padding: 5px 10px;
    border-radius: 6px;
    white-space: nowrap;
    text-align: center;
    width: fit-content;
}

.today-label {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.tomorrow-label {
    background: rgba(251, 191, 36, 0.15);
    color: #fde68a;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.week-label {
    background: rgba(59, 130, 246, 0.15);
    color: #93c5fd;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.upcoming-cards {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    max-height: 260px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(34, 211, 238, 0.2) transparent;
}

.upcoming-cards::-webkit-scrollbar {
    width: 4px;
}

.upcoming-cards::-webkit-scrollbar-thumb {
    background: rgba(34, 211, 238, 0.25);
    border-radius: 4px;
}

.upcoming-card {
    background: rgba(10, 20, 32, 0.55);
    border: 1px solid rgba(56, 189, 248, 0.12);
    border-left: 3px solid #38bdf8; /* overridden per-ground by JS */
    border-radius: 9px;
    padding: 8px 12px;
    flex-shrink: 0;
    transition: all 0.18s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    overflow: hidden;
}

.upcoming-card:hover {
    background: rgba(10, 20, 32, 0.8);
    transform: translateX(2px);
}

.upcoming-card .uc-ground {
    font-size: 0.82rem;
    font-weight: 700;
    flex-shrink: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.upcoming-card .uc-team {
    color: #e2e8f0;
    font-weight: 600;
    font-size: 0.82rem;
    flex-shrink: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.upcoming-card .uc-dot {
    color: #475569;
    flex-shrink: 0;
}

.upcoming-card .uc-time {
    color: #fbbf24;
    font-size: 0.76rem;
    font-weight: 600;
    margin-left: auto;
    flex-shrink: 0;
    padding-left: 6px;
}

/* Count badge on label */
.uc-count {
    background: rgba(255,255,255,0.18);
    border-radius: 10px;
    padding: 1px 7px;
    font-size: 0.7rem;
    margin-left: 5px;
    font-weight: 700;
    vertical-align: middle;
}

/* Empty state */
.no-upcoming-state {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 4px;
    color: #475569;
    font-size: 0.82rem;
    font-style: italic;
}

.no-upcoming-icon {
    font-size: 1rem;
    opacity: 0.5;
}

.no-upcoming {
    color: #64748b;
    font-style: italic;
    font-size: 0.9rem;
    padding: 8px 0;
}

.app-section.hidden {
    display: none;
}

.container {
    max-width: 100%;
    margin: 0;
    padding: 12px 24px;
}

/* Header */
.header {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at top right, rgba(255, 107, 53, 0.18), transparent 38%),
        radial-gradient(circle at 12% 50%, rgba(56, 189, 248, 0.16), transparent 40%),
        linear-gradient(115deg, #0b1a2b 0%, #122a42 48%, #0c1c2e 100%);
    margin-bottom: 16px;
    padding: 14px 24px;
    border-radius: 16px;
    border: 1px solid rgba(56, 189, 248, 0.35);
    box-shadow: 0 4px 24px rgba(56, 189, 248, 0.18), 0 8px 20px rgba(0, 0, 0, 0.45);
    border-top: 3px solid var(--primary-light);
}

.header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        125deg,
        rgba(34, 211, 238, 0.03) 0,
        rgba(34, 211, 238, 0.03) 2px,
        transparent 2px,
        transparent 14px
    );
    pointer-events: none;
}

.header::after {
    content: '';
    position: absolute;
    width: 160px;
    height: 160px;
    right: -50px;
    top: -70px;
    border-radius: 50%;
    border: 1px solid rgba(34, 211, 238, 0.12);
    box-shadow: 0 0 40px rgba(34, 211, 238, 0.12), inset 0 0 30px rgba(34, 211, 238, 0.06);
    pointer-events: none;
}

.header-top {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    color: white;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
    min-width: 0;
}

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

.header-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

/* Header "+ Add" button (opens the Quick Add modal) */
.header-add-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    height: 36px;
    padding: 0 16px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, #0ea5e9, #38bdf8);
    color: #04223a;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(14, 165, 233, 0.4);
    transition: transform 0.18s, box-shadow 0.18s;
    flex-shrink: 0;
    white-space: nowrap;
}

.header-add-btn .hab-plus {
    font-size: 1.2rem;
    line-height: 1;
}

.header-add-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(14, 165, 233, 0.55);
}

/* Logout button inside the profile modal */
.btn-logout-modal {
    width: 100%;
    background: linear-gradient(90deg, #ea580c 0%, #ff6b35 100%);
    color: #fff;
}

/* Quick Add chooser tiles (inside modal) */
.quick-add-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quick-add-tile {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: #e2e8f0;
    border-radius: 14px;
    padding: 16px 18px;
    font-size: 1.02rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.18s, transform 0.18s, border-color 0.18s;
}

.quick-add-tile:hover {
    background: rgba(56, 189, 248, 0.18);
    border-color: rgba(56, 189, 248, 0.6);
    transform: translateY(-2px);
}

.quick-add-tile .qa-ico {
    font-size: 1.5rem;
}

/* ==================== HAMBURGER + SIDE DRAWER ==================== */
.menu-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 38px;
    padding: 0 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 10px;
    cursor: pointer;
    flex-shrink: 0;
    transition: border-color 0.18s, background 0.18s;
}

.menu-btn span {
    display: block;
    height: 2.5px;
    width: 100%;
    background: #38bdf8;
    border-radius: 2px;
}

.menu-btn:hover {
    border-color: rgba(56, 189, 248, 0.55);
    background: rgba(56, 189, 248, 0.12);
}

.drawer-overlay {
    position: fixed;
    inset: 0;
    z-index: 9500;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(2px);
    display: flex;
    justify-content: flex-end;
}

.drawer-overlay.hidden { display: none; }

.drawer {
    width: min(84vw, 320px);
    height: 100%;
    background: linear-gradient(160deg, #0b1a2b, #08121e);
    border-left: 1px solid rgba(56, 189, 248, 0.25);
    box-shadow: -12px 0 40px rgba(0, 0, 0, 0.55);
    display: flex;
    flex-direction: column;
    padding: 18px;
    animation: drawerIn 0.25s ease;
}

@keyframes drawerIn {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

.drawer-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(56, 189, 248, 0.15);
    margin-bottom: 12px;
}

.drawer-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0ea5e9, #38bdf8);
    color: #04223a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.drawer-who { flex: 1; min-width: 0; }
.drawer-name { font-weight: 700; color: #f0f9ff; font-size: 1rem; }
.drawer-email { font-size: 0.78rem; color: #94a3b8; word-break: break-all; }

.drawer-close {
    background: rgba(255, 255, 255, 0.06);
    border: none;
    color: #94a3b8;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.18s, color 0.18s;
}

.drawer-close:hover { background: rgba(239, 68, 68, 0.25); color: #fff; }

.drawer-menu { display: flex; flex-direction: column; gap: 4px; }

.drawer-menu button {
    display: flex;
    align-items: center;
    gap: 12px;
    background: transparent;
    border: none;
    color: #e2e8f0;
    text-align: left;
    padding: 13px 12px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}

.drawer-menu button span { font-size: 1.2rem; width: 24px; text-align: center; }
.drawer-menu button:hover { background: rgba(56, 189, 248, 0.14); color: #fff; }
.drawer-menu .dm-logout { color: #fca5a5; }
.drawer-menu .dm-logout:hover { background: rgba(239, 68, 68, 0.18); color: #fff; }

.drawer-sep { height: 1px; background: rgba(255, 255, 255, 0.07); margin: 8px 0; }

/* Welcome / onboarding */
.welcome-text {
    color: #cbd5e1;
    font-size: 0.95rem;
    line-height: 1.55;
    margin-bottom: 18px;
}

/* ==================== QUICK-ADD MODALS ==================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(3, 10, 6, 0.72);
    backdrop-filter: blur(4px);
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: modalFade 0.2s ease;
}

.modal-overlay.hidden {
    display: none;
}

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

.modal-box {
    background: linear-gradient(160deg, rgba(12, 24, 38, 0.98), rgba(8, 16, 26, 0.98));
    border: 1px solid rgba(56, 189, 248, 0.28);
    border-radius: 18px;
    padding: 24px;
    width: 100%;
    max-width: 440px;
    max-height: 88vh;
    overflow-y: auto;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
    animation: modalPop 0.22s ease;
    scrollbar-width: thin;
    scrollbar-color: rgba(56, 189, 248, 0.3) transparent;
}

.modal-box::-webkit-scrollbar { width: 6px; }
.modal-box::-webkit-scrollbar-thumb { background: rgba(56, 189, 248, 0.3); border-radius: 4px; }

/* Existing-items list inside a modal */
.modal-list-wrap {
    margin-top: 20px;
    border-top: 1px solid rgba(56, 189, 248, 0.15);
    padding-top: 16px;
}

.modal-list-title {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #64748b;
    font-weight: 700;
    margin-bottom: 12px;
}

/* Booking hint under the panel title */
.booking-hint {
    font-size: 0.82rem;
    color: #94a3b8;
    margin: -8px 0 18px;
    background: rgba(56, 189, 248, 0.06);
    border: 1px solid rgba(56, 189, 248, 0.15);
    border-radius: 10px;
    padding: 9px 12px;
}

.booking-hint strong { color: #38bdf8; }

/* Team card delete */
.team-card-delete {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    padding: 5px 8px;
    cursor: pointer;
    font-size: 0.8rem;
    align-self: flex-start;
    transition: background 0.18s;
}

.team-card-delete:hover { background: rgba(239, 68, 68, 0.3); }

.modal-box.hidden {
    display: none;
}

@keyframes modalPop {
    from { opacity: 0; transform: scale(0.94) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

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

.modal-head h3 {
    font-family: 'Oswald', 'Arial Narrow', sans-serif;
    font-size: 1.25rem;
    color: #2df08f;
}

.modal-close {
    background: rgba(255, 255, 255, 0.06);
    border: none;
    color: #94a3b8;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.95rem;
    transition: background 0.2s, color 0.2s;
}

.modal-close:hover {
    background: rgba(239, 68, 68, 0.25);
    color: #fff;
}

/* ==================== PROFILE TRIGGER (header) ==================== */
.profile-trigger {
    display: flex;
    align-items: center;
    gap: 9px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    padding: 4px 14px 4px 4px;
    cursor: pointer;
    transition: background 0.18s, border-color 0.18s;
}

.profile-trigger:hover {
    background: rgba(56, 189, 248, 0.16);
    border-color: rgba(56, 189, 248, 0.4);
}

.profile-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0ea5e9, #38bdf8);
    color: #04223a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.profile-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #38bdf8;
    white-space: nowrap;
}

/* ==================== PROFILE MODAL ==================== */
.profile-info {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 4px;
}

.profile-big-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0ea5e9, #38bdf8);
    color: #04223a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.8rem;
    flex-shrink: 0;
}

.profile-fields {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.profile-field {
    display: flex;
    flex-direction: column;
}

.profile-field-label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #64748b;
    font-weight: 700;
}

.profile-field-value {
    font-size: 0.95rem;
    color: #f0f9ff;
    word-break: break-all;
}

.profile-divider {
    height: 1px;
    background: rgba(56, 189, 248, 0.15);
    margin: 20px 0 16px;
}

.profile-section-title {
    font-family: 'Oswald', sans-serif;
    font-size: 1.05rem;
    color: #38bdf8;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 14px;
}

.profile-message {
    min-height: 18px;
    font-size: 0.85rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.profile-message.error { color: #fca5a5; }
.profile-message.success { color: #6ee7b7; }

.header-logo {
    width: 38px;
    height: 38px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid rgba(255, 212, 71, 0.9);
    box-shadow: 0 0 12px rgba(77, 248, 255, 0.35);
    filter: saturate(1.2) contrast(1.04);
    flex-shrink: 0;
}

.header-brand h1 {
    font-family: 'Oswald', 'Arial Narrow', sans-serif;
    font-size: 1.35rem;
    margin-bottom: 0;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 0 18px rgba(163, 230, 53, 0.45), 0 2px 6px rgba(0, 0, 0, 0.5);
    font-weight: 700;
    color: #38bdf8;
}

.header-top > div:first-child h1 {
    font-family: 'Oswald', 'Arial Narrow', sans-serif;
    font-size: 1.35rem;
    margin-bottom: 0;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 0 18px rgba(163, 230, 53, 0.45), 0 2px 6px rgba(0, 0, 0, 0.5);
    font-weight: 700;
    color: #38bdf8;
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
}

.header-user {
    display: flex;
    align-items: center;
    gap: 14px;
    justify-content: flex-end;
}

.header-user p {
    margin-bottom: 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: #22c55e;
    text-shadow: 0 0 16px rgba(34, 211, 238, 0.3);
    white-space: nowrap;
}

.btn-logout {
    padding: 7px 16px;
    font-size: 0.82rem;
    white-space: nowrap;
    border-radius: 999px;
    background: linear-gradient(90deg, #ea580c 0%, #ff6b35 100%);
    box-shadow: 0 0 16px rgba(255, 107, 53, 0.3);
}

/* Main Content */
.main-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

/* Grounds Management Section - Hidden */
.grounds-management-section {
    display: none;
}

/* Form Section */
.booking-form-section {
    background: linear-gradient(160deg, rgba(15, 23, 41, 0.7), rgba(20, 34, 62, 0.6));
    padding: 35px;
    border-radius: 20px;
    border: 1.5px solid rgba(34, 211, 238, 0.2);
    box-shadow: 0 0 50px rgba(34, 211, 238, 0.08), 0 20px 40px rgba(0, 0, 0, 0.5), inset 0 0 30px rgba(34, 211, 238, 0.04);
}

/* Tabs Container */
.tabs-container {
    width: 100%;
}

.tab-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(99, 102, 241, 0.22);
}

.tab-btn {
    padding: 12px 20px;
    background: transparent;
    border: 1px solid transparent;
    border-bottom: 3px solid transparent;
    border-radius: 10px 10px 0 0;
    cursor: pointer;
    font-weight: 600;
    color: #64748b;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    color: #38bdf8;
}

.tab-btn.active {
    color: #22c55e;
    border-color: rgba(34, 211, 238, 0.3);
    border-bottom-color: #06b6d4;
    background: linear-gradient(180deg, rgba(34, 211, 238, 0.12), rgba(34, 211, 238, 0.06));
    box-shadow: 0 0 30px rgba(34, 211, 238, 0.1), inset 0 -2px 8px rgba(34, 211, 238, 0.06);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

/* Teams List */
.teams-list {
    display: none;
}

.team-item {
    background: linear-gradient(135deg, #fef3c7 0%, #fcd34d 100%);
    padding: 15px;
    margin-bottom: 12px;
    border-radius: 10px;
    border-left: 5px solid var(--warning-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.team-info h4 {
    color: var(--text-dark);
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.team-info p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 3px;
}

.team-actions {
    display: flex;
    gap: 8px;
}

.btn-delete-team {
    background-color: var(--danger-color);
    color: white;
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.btn-delete-team:hover {
    background-color: #dc2626;
}

.no-teams {
    text-align: center;
    padding: 20px;
    color: var(--text-light);
}

.ground-item {
    background: linear-gradient(135deg, rgba(20, 34, 62, 0.7), rgba(30, 41, 82, 0.65));
    padding: 18px;
    margin-bottom: 14px;
    border-radius: 14px;
    border-left: 4px solid #06b6d4;
    border: 1px solid rgba(34, 211, 238, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 0 25px rgba(34, 211, 238, 0.06), inset 0 0 15px rgba(34, 211, 238, 0.04);
}

.ground-item:hover {
    border-color: rgba(34, 211, 238, 0.4);
    box-shadow: 0 0 40px rgba(34, 211, 238, 0.15), inset 0 0 20px rgba(34, 211, 238, 0.08);
    transform: translateX(4px);
}

.ground-info h4 {
    color: #38bdf8;
    margin-bottom: 5px;
    font-size: 1.1rem;
    text-shadow: 0 0 10px rgba(34, 211, 238, 0.2);
}

.ground-info p {
    color: #94a3b8;
    font-size: 0.9rem;
    margin-bottom: 3px;
}

.ground-actions {
    display: flex;
    gap: 8px;
}

.btn-delete-ground {
    background-color: var(--danger-color);
    color: white;
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.btn-delete-ground:hover {
    background-color: #dc2626;
}

.no-grounds {
    text-align: center;
    padding: 20px;
    color: var(--text-light);
}

.optional {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: normal;
}

/* Grounds Management Section */
.grounds-management-section {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid rgba(129, 140, 248, 0.28);
    box-shadow: 0 18px 36px rgba(30, 41, 59, 0.22);
}

.grounds-management-section h2 {
    margin-bottom: 25px;
    color: var(--text-dark);
    font-size: 1.5rem;
    font-family: 'Oswald', 'Arial Narrow', sans-serif;
}

.grounds-list {
    margin-top: 25px;
    max-height: 400px;
    overflow-y: auto;
}

.grounds-list-tab {
    margin-top: 20px;
    max-height: 350px;
    overflow-y: auto;
}

.booking-form-section h2 {
    margin-bottom: 28px;
    color: #1f2937;
    font-size: 1.65rem;
    font-family: 'Oswald', 'Arial Narrow', sans-serif;
    letter-spacing: 0.8px;
    font-weight: 700;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #86efac;
    letter-spacing: 0.3px;
    text-shadow: 0 0 8px rgba(34, 197, 94, 0.2);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 13px 15px;
    border: 1.5px solid rgba(34, 197, 94, 0.28);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(6, 28, 16, 0.85), rgba(10, 39, 22, 0.75));
    color: #ecfdf5;
    font-size: 1rem;
    transition: all 0.25s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18), 0 0 22px rgba(163, 230, 53, 0.15);
}

.form-group select option {
    background: #06301a;
    color: #ecfdf5;
    padding: 10px;
}

.form-group input::placeholder {
    color: rgba(148, 163, 184, 0.6);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #ffd447;
    box-shadow: 0 0 30px rgba(255, 212, 71, 0.24), 0 0 34px rgba(0, 194, 255, 0.16), inset 0 2px 4px rgba(0, 0, 0, 0.3);
    transform: translateY(-1px);
}

/* Buttons */
.btn {
    padding: 13px 26px;
    border: none;
    border-radius: 12px;
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(100deg, #0369a1 0%, #0ea5e9 50%, #38bdf8 100%);
    color: #04223a;
    width: 100%;
    box-shadow: 0 10px 26px rgba(14, 165, 233, 0.38);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: translateX(-100%);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 16px 34px rgba(14, 165, 233, 0.48), 0 0 24px rgba(56, 189, 248, 0.3);
}

.btn-primary:hover::before {
    animation: shimmer 0.6s ease-in-out;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.btn-secondary {
    background: linear-gradient(100deg, #ea580c 0%, #ff6b35 100%);
    color: #fff;
    box-shadow: 0 10px 24px rgba(255, 107, 53, 0.3);
}

.btn-secondary:hover {
    background: linear-gradient(100deg, #c2410c 0%, #ea580c 100%);
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 16px 32px rgba(255, 107, 53, 0.42);
}

.btn-danger {
    background-color: var(--danger-color);
    color: white;
}

.btn-danger:hover {
    background-color: #dc2626;
}

.btn-delete {
    background-color: var(--danger-color);
    color: white;
    padding: 8px 16px;
    font-size: 0.9rem;
    width: auto;
}

/* Bookings Display Section */
.bookings-display-section {
    background: linear-gradient(160deg, rgba(15, 23, 41, 0.7), rgba(20, 34, 62, 0.6));
    padding: 35px;
    border-radius: 20px;
    border: 1.5px solid rgba(34, 211, 238, 0.2);
    box-shadow: 0 0 50px rgba(34, 211, 238, 0.08), 0 20px 40px rgba(0, 0, 0, 0.5), inset 0 0 30px rgba(34, 211, 238, 0.04);
}

.bookings-display-section h2 {
    margin-bottom: 24px;
    color: #38bdf8;
    font-size: 1.7rem;
    font-family: 'Oswald', 'Arial Narrow', sans-serif;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 700;
}

.filters {
    grid-column: 1 / -1;
    margin-bottom: 25px;
}

.filter-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 11px 18px;
    border: 1.5px solid rgba(34, 211, 238, 0.2);
    background: linear-gradient(180deg, rgba(20, 34, 62, 0.8), rgba(15, 23, 41, 0.75));
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    color: #94a3b8;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 0 20px rgba(34, 211, 238, 0.04);
}

.filter-btn:hover {
    border-color: #06b6d4;
    color: #38bdf8;
    background: linear-gradient(180deg, rgba(25, 45, 75, 0.9), rgba(20, 34, 62, 0.85));
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(34, 211, 238, 0.12);
}

.filter-btn.active {
    background: linear-gradient(90deg, #06b6d4 0%, #0891b2 100%);
    color: #f0f9ff;
    border-color: #06b6d4;
    box-shadow: 0 0 40px rgba(34, 211, 238, 0.3), 0 12px 24px rgba(34, 211, 238, 0.2);
}

/* Bookings Grid */
.bookings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.booking-card {
    background: linear-gradient(155deg, rgba(15, 23, 41, 0.8) 0%, rgba(20, 34, 62, 0.75) 100%);
    padding: 24px;
    border-radius: 16px;
    border-left: 5px solid #06b6d4;
    border: 1px solid rgba(34, 211, 238, 0.2);
    box-shadow: 0 0 40px rgba(34, 211, 238, 0.1), 0 16px 32px rgba(0, 0, 0, 0.4), inset 0 0 20px rgba(34, 211, 238, 0.04);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

.booking-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.08), transparent 40%);
    border-radius: 16px;
    pointer-events: none;
}

.booking-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 0 60px rgba(34, 211, 238, 0.2), 0 20px 40px rgba(34, 211, 238, 0.15), inset 0 0 20px rgba(34, 211, 238, 0.06);
    border-color: rgba(34, 211, 238, 0.4);
}

.booking-card.ground1 {
    border-left-color: #22c55e;
}

.booking-card.ground2 {
    border-left-color: #38bdf8;
}

.booking-card.ground3 {
    border-left-color: #06b6d4;
}

.booking-card h3 {
    color: #38bdf8;
    margin-bottom: 2px;
    font-size: 1.25rem;
    font-family: 'Oswald', 'Arial Narrow', sans-serif;
    text-shadow: 0 0 10px rgba(34, 211, 238, 0.2);
}

.booking-ground {
    color: #7dd3fc;
    margin-bottom: 14px;
    font-size: 0.95rem;
    text-shadow: 0 0 10px rgba(34, 211, 238, 0.2);
}

.booking-main-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.booking-pill {
    background: linear-gradient(135deg, rgba(20, 34, 62, 0.9), rgba(30, 41, 82, 0.85));
    border: 1px solid rgba(34, 211, 238, 0.25);
    border-radius: 12px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    box-shadow: 0 0 20px rgba(34, 211, 238, 0.08), inset 0 0 15px rgba(34, 211, 238, 0.06);
    transition: all 0.3s ease;
}

.booking-pill:hover {
    border-color: rgba(34, 211, 238, 0.5);
    box-shadow: 0 0 30px rgba(34, 211, 238, 0.15), inset 0 0 20px rgba(34, 211, 238, 0.1);
}

.booking-pill .booking-label {
    width: auto;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.7rem;
    color: #38bdf8;
    font-weight: 700;
    text-shadow: 0 0 8px rgba(34, 211, 238, 0.2);
}

.booking-pill .booking-value {
    color: #e0f2fe;
    font-weight: 700;
}

.booking-detail {
    display: flex;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.booking-label {
    font-weight: 600;
    color: var(--text-dark);
    width: 100px;
}

.booking-value {
    color: var(--text-light);
    flex: 1;
}

.booking-actions {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

.btn-delete {
    flex: 1;
    background: linear-gradient(90deg, #dc2626, #ef4444);
    box-shadow: 0 10px 18px rgba(239, 68, 68, 0.2);
}

/* No Bookings Message */
.no-bookings {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-light);
}

.no-bookings p {
    font-size: 1.1rem;
}

/* Footer */
.footer {
    background: linear-gradient(160deg, rgba(15, 23, 41, 0.7), rgba(20, 34, 62, 0.65));
    padding: 30px;
    border-radius: 18px;
    border: 1px solid rgba(34, 211, 238, 0.15);
    box-shadow: 0 0 40px rgba(34, 211, 238, 0.06), 0 15px 30px rgba(0, 0, 0, 0.4);
    text-align: center;
}

.footer {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.footer-text {
    width: 100%;
    margin-top: 15px;
    color: #64748b;
    font-size: 0.9rem;
}

/* Success Message */
.success-message {
    background-color: #d1fae5;
    color: #065f46;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid var(--secondary-color);
    display: none;
}

.success-message.show {
    display: block;
    animation: slideIn 0.3s ease;
}

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

/* Error Message */
.error-message {
    background-color: #fee2e2;
    color: #991b1b;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid var(--danger-color);
    display: none;
}

.error-message.show {
    display: block;
    animation: slideIn 0.3s ease;
}

/* Two-Column Booking & Calendar Layout */
.booking-calendar-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

/* Owner view has no manual-booking column — bookings manager spans full width */
.booking-calendar-section.single-col {
    grid-template-columns: 1fr;
}

.booking-column {
    background: linear-gradient(160deg, rgba(10, 20, 32, 0.82), rgba(8, 16, 26, 0.74));
    padding: 35px;
    border-radius: 20px;
    border: 1.5px solid rgba(56, 189, 248, 0.22);
    box-shadow: 0 0 50px rgba(56, 189, 248, 0.07), 0 20px 40px rgba(0, 0, 0, 0.5), inset 0 0 30px rgba(56, 189, 248, 0.04);
    border-top: 3px solid var(--electric-lime);
}

.booking-column h2 {
    margin-bottom: 24px;
    color: #38bdf8;
    font-size: 1.7rem;
    font-family: 'Oswald', 'Arial Narrow', sans-serif;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 700;
    text-shadow: 0 0 15px rgba(34, 197, 94, 0.3);
}

.booking-form-wrapper {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid rgba(34, 211, 238, 0.15);
}

.booking-form-wrapper h3 {
    color: #22c55e;
    margin-bottom: 20px;
    font-size: 1.35rem;
    font-family: 'Oswald', 'Arial Narrow', sans-serif;
    text-shadow: 0 0 10px rgba(34, 211, 238, 0.15);
}

.calendar-column {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* ==================== BOOKINGS MANAGER ==================== */
.bookings-manager {
    background: linear-gradient(160deg, rgba(10, 20, 32, 0.82), rgba(8, 16, 26, 0.74));
    padding: 24px;
    border-radius: 18px;
    border: 1.5px solid rgba(56, 189, 248, 0.22);
    border-top: 3px solid var(--electric-lime);
    box-shadow: 0 0 50px rgba(56, 189, 248, 0.07), 0 20px 40px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.bm-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.bm-header h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    color: #38bdf8;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.bm-export {
    display: flex;
    gap: 8px;
}

.bm-export-btn {
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.35);
    color: #38bdf8;
    border-radius: 9px;
    padding: 7px 14px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.18s;
    white-space: nowrap;
}

.bm-export-btn:hover {
    background: rgba(56, 189, 248, 0.25);
    transform: translateY(-1px);
}

/* Export date-range bar */
.bm-export-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding-top: 14px;
    margin-top: 4px;
    border-top: 1px solid rgba(56, 189, 248, 0.15);
}

.bm-export-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bm-date {
    background: rgba(8, 16, 26, 0.85);
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 8px;
    padding: 6px 8px;
    color: #e2e8f0;
    font-size: 0.78rem;
    outline: none;
    color-scheme: dark;
    cursor: pointer;
}

.bm-date:focus { border-color: rgba(56, 189, 248, 0.55); }

.bm-export-to { color: #64748b; font-size: 0.8rem; }

/* Slim insights line (next to title) */
.bm-stats-line {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
}

.bm-stat-item {
    font-size: 0.8rem;
    color: #94a3b8;
    white-space: nowrap;
}

.bm-stat-item b {
    color: #38bdf8;
    font-family: 'Oswald', sans-serif;
    font-size: 1.05rem;
    margin-right: 3px;
}

/* Controls: search + date range in one row */
.bm-controls {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.bm-search {
    flex: 1;
    min-width: 150px;
    background: rgba(8, 16, 26, 0.85);
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 9px;
    padding: 9px 12px;
    color: #e2e8f0;
    font-size: 0.85rem;
    outline: none;
}

.bm-search:focus { border-color: rgba(56, 189, 248, 0.55); }

.bm-range {
    display: flex;
    align-items: center;
    gap: 6px;
}

.bm-range-sep { color: #64748b; }

.bm-date {
    background: rgba(8, 16, 26, 0.85);
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 8px;
    padding: 7px 9px;
    color: #e2e8f0;
    font-size: 0.78rem;
    outline: none;
    color-scheme: dark;
    cursor: pointer;
}

.bm-date:focus { border-color: rgba(56, 189, 248, 0.55); }

/* Quick presets */
.bm-presets {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.bm-preset {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #94a3b8;
    border-radius: 20px;
    padding: 5px 14px;
    font-size: 0.76rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.18s;
}

.bm-preset:hover { color: #e2e8f0; border-color: rgba(56, 189, 248, 0.4); }

.bm-preset.active {
    background: rgba(56, 189, 248, 0.18);
    color: #38bdf8;
    border-color: rgba(56, 189, 248, 0.5);
}

/* Footer: count + export */
.bm-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid rgba(56, 189, 248, 0.15);
    flex-wrap: wrap;
}

.bm-count {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 600;
}

/* List */
.bm-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 420px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(56, 189, 248, 0.3) transparent;
    padding-right: 4px;
}

.bm-list::-webkit-scrollbar { width: 5px; }
.bm-list::-webkit-scrollbar-thumb { background: rgba(56, 189, 248, 0.3); border-radius: 4px; }

.bm-row {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-left: 3px solid #38bdf8;
    border-radius: 10px;
    padding: 10px 12px;
    transition: background 0.18s;
}

.bm-row:hover { background: rgba(0, 0, 0, 0.4); }

.bm-row.bm-past { opacity: 0.55; }

.bm-row-main { flex: 1; min-width: 0; }

.bm-row-team {
    font-weight: 700;
    font-size: 0.92rem;
    color: #f0f9ff;
}

.bm-row-sub {
    font-size: 0.78rem;
    color: #94a3b8;
    margin-top: 2px;
}

.bm-row-contact {
    font-size: 0.74rem;
    color: #64748b;
    margin-top: 3px;
}

.bm-row-delete {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    padding: 6px 9px;
    cursor: pointer;
    font-size: 0.85rem;
    flex-shrink: 0;
    transition: background 0.18s;
}

.bm-row-delete:hover { background: rgba(239, 68, 68, 0.3); }

.bm-empty {
    text-align: center;
    padding: 30px 16px;
    color: #64748b;
    font-style: italic;
    font-size: 0.9rem;
}

/* Calendar Widget */
.calendar-widget {
    background: linear-gradient(160deg, rgba(10, 20, 32, 0.82), rgba(8, 16, 26, 0.74));
    padding: 25px;
    border-radius: 15px;
    border: 1.5px solid rgba(56, 189, 248, 0.22);
    box-shadow: 0 0 50px rgba(56, 189, 248, 0.07), 0 20px 40px rgba(0, 0, 0, 0.5);
    border-top: 3px solid var(--electric-lime);
}

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

.calendar-header h3 {
    color: #38bdf8;
    font-family: 'Oswald', 'Arial Narrow', sans-serif;
    font-size: 1.35rem;
    text-shadow: 0 0 10px rgba(34, 211, 238, 0.15);
}

.calendar-nav {
    background: linear-gradient(90deg, #06b6d4 0%, #0891b2 100%);
    color: #0a0e27;
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(34, 211, 238, 0.2);
    font-family: 'Oswald', 'Arial Narrow', sans-serif;
}

.calendar-nav:hover {
    background: linear-gradient(90deg, #0891b2 0%, #06d6ff 100%);
    box-shadow: 0 0 30px rgba(34, 211, 238, 0.4);
    transform: translateY(-2px);
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    margin-bottom: 15px;
}

.weekday {
    text-align: center;
    color: #38bdf8;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 10px 5px;
    font-family: 'Oswald', 'Arial Narrow', sans-serif;
    text-shadow: 0 0 8px rgba(34, 211, 238, 0.15);
}

.calendar-dates {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.calendar-date {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(15, 23, 41, 0.5);
    color: #94a3b8;
    cursor: pointer;
    border: 1px solid rgba(34, 211, 238, 0.1);
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.95rem;
}

.calendar-date:hover:not(.disabled):not(.other-month) {
    background: rgba(34, 211, 238, 0.15);
    border-color: rgba(34, 211, 238, 0.3);
    box-shadow: 0 0 15px rgba(34, 211, 238, 0.1);
}

.calendar-date.today {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.3), rgba(34, 211, 238, 0.2));
    border-color: rgba(34, 211, 238, 0.5);
    color: #38bdf8;
    font-weight: 700;
}

.calendar-date.selected {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    color: #0a0e27;
    border-color: #38bdf8;
    box-shadow: 0 0 25px rgba(34, 211, 238, 0.4);
    font-weight: 700;
}

.calendar-date.has-booking {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(168, 85, 247, 0.1));
    border-color: rgba(139, 92, 246, 0.4);
    color: #d8b4fe;
}

.calendar-date.has-booking.selected {
    background: linear-gradient(135deg, #8b5cf6, #a855f7);
    color: #0a0e27;
    box-shadow: 0 0 25px rgba(139, 92, 246, 0.4);
}

.calendar-date.other-month {
    color: #475569;
    pointer-events: none;
}

.calendar-date.disabled {
    cursor: not-allowed;
    opacity: 0.4;
    color: #64748b;
}

.calendar-date.weekend:not(.other-month):not(.disabled) {
    color: #fbbf24;
}

/* Bookings Display in Calendar Column */
.calendar-column .bookings-display-section {
    background: linear-gradient(160deg, rgba(15, 23, 41, 0.7), rgba(20, 34, 62, 0.6));
    padding: 35px;
    border-radius: 20px;
    border: 1.5px solid rgba(34, 211, 238, 0.2);
    box-shadow: 0 0 50px rgba(34, 211, 238, 0.08), 0 20px 40px rgba(0, 0, 0, 0.5), inset 0 0 30px rgba(34, 211, 238, 0.04);
    flex: 1;
}

.calendar-column .bookings-display-section h2 {
    margin-bottom: 24px;
    color: #38bdf8;
    font-size: 1.65rem;
    font-family: 'Oswald', 'Arial Narrow', sans-serif;
    letter-spacing: 0.8px;
    font-weight: 700;
    text-shadow: 0 0 15px rgba(34, 211, 238, 0.2);
}

#selectedDateDisplay {
    color: #22c55e;
    font-weight: 700;
    text-shadow: 0 0 8px rgba(34, 211, 238, 0.2);
}

/* Team Search Styles */
#teamSearch {
    width: 100%;
}

.team-search-results {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: linear-gradient(155deg, rgba(15, 23, 41, 0.98), rgba(20, 34, 62, 0.95));
    border: 1px solid rgba(34, 211, 238, 0.3);
    border-top: none;
    border-radius: 0 0 10px 10px;
    max-height: 250px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
    margin-top: -5px;
}

.team-search-item {
    padding: 12px 16px;
    cursor: pointer;
    color: #e0e7ff;
    border-bottom: 1px solid rgba(34, 211, 238, 0.1);
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.team-search-item:hover {
    background: rgba(34, 211, 238, 0.15);
    color: #38bdf8;
    padding-left: 20px;
}

.selected-team-display {
    background: rgba(15, 23, 41, 0.5);
    border: 1px solid rgba(34, 211, 238, 0.2);
    border-radius: 10px;
    padding: 15px;
    margin-top: 8px;
    min-height: 50px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.selected-team-display.empty {
    justify-content: flex-start;
}

.selected-team-display .team-info {
    color: #38bdf8;
    font-weight: 600;
    flex: 1;
    min-width: 150px;
}

.selected-team-display .team-contact {
    color: #94a3b8;
    font-size: 0.9rem;
    width: 100%;
}

.selected-team-display .team-captain {
    color: #94a3b8;
    font-size: 0.9rem;
    width: 100%;
}

.selected-team-display .clear-team {
    background: rgba(239, 68, 68, 0.1);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.selected-team-display .clear-team:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.5);
}

/* Voice Assistant */
.voice-assistant {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding: 16px;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.08), rgba(139, 92, 246, 0.08));
    border: 1px solid rgba(34, 211, 238, 0.2);
    border-radius: 12px;
}

.voice-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #06b6d4, #8b5cf6);
    border: none;
    border-radius: 30px;
    color: white;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
}

.voice-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(6, 182, 212, 0.4);
}

.voice-btn.listening {
    background: linear-gradient(135deg, #ef4444, #f97316);
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.4);
    animation: voicePulseBtn 1.5s ease-in-out infinite;
}

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

.voice-icon {
    font-size: 1.2rem;
}

.voice-text {
    font-family: 'Oswald', sans-serif;
}

.voice-status {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #38bdf8;
    font-size: 0.9rem;
    font-weight: 500;
}

.voice-status.hidden {
    display: none;
}

.voice-pulse {
    width: 10px;
    height: 10px;
    background: #ef4444;
    border-radius: 50%;
    animation: voiceDot 1s ease-in-out infinite;
}

@keyframes voiceDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.7); }
}

.voice-hint {
    width: 100%;
    margin: 8px 0 0;
    color: #64748b;
    font-size: 0.8rem;
    font-style: italic;
}

/* ==================== TAB EMPTY STATE ==================== */
.tab-empty {
    text-align: center;
    padding: 30px 16px;
    color: #64748b;
}

.tab-empty-icon {
    font-size: 2.4rem;
    opacity: 0.4;
    margin-bottom: 8px;
}

.tab-empty p {
    font-size: 0.9rem;
    font-style: italic;
}

/* ==================== TEAM CARDS ==================== */
.team-card-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 6px;
}

.team-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    padding: 12px 14px;
    transition: transform 0.18s, border-color 0.18s;
}

.team-card:hover {
    transform: translateY(-3px);
    border-color: rgba(34, 211, 238, 0.3);
}

.team-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.05rem;
    flex-shrink: 0;
}

.team-card-body {
    min-width: 0;
    flex: 1;
}

.team-card-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: #e0e7ff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.team-card-detail {
    font-size: 0.76rem;
    color: #94a3b8;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.team-card-stat {
    font-size: 0.72rem;
    color: #2df08f;
    font-weight: 600;
    margin-top: 4px;
}

/* ==================== GROUND CARDS ==================== */
.ground-card-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 6px;
}

.ground-card {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-top: 3px solid #22d3ee;
    border-radius: 14px;
    padding: 14px;
    transition: transform 0.18s, box-shadow 0.18s;
}

.ground-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

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

.ground-card-icon {
    font-size: 1.5rem;
}

.ground-card-delete {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    padding: 4px 8px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: background 0.2s;
}

.ground-card-delete:hover {
    background: rgba(239, 68, 68, 0.28);
}

.ground-card-name {
    font-weight: 700;
    font-size: 1rem;
    color: #e0e7ff;
    margin-top: 8px;
}

.ground-card-location {
    font-size: 0.8rem;
    color: #94a3b8;
    margin-top: 4px;
}

.ground-card-stats {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.ground-stat {
    flex: 1;
    text-align: center;
    font-size: 0.72rem;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    padding: 6px 4px;
}

.ground-stat strong {
    display: block;
    font-size: 1.1rem;
}

.ground-stat.upcoming strong {
    color: #2df08f;
}

.ground-stat.total strong {
    color: #38bdf8;
}

/* ==================== BOOKING FORM ==================== */
.booking-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.btn-book {
    margin-top: 4px;
}

/* Live booking preview */
.booking-preview {
    background: linear-gradient(145deg, rgba(13, 59, 31, 0.5), rgba(6, 22, 10, 0.7));
    border: 1px solid rgba(45, 240, 143, 0.25);
    border-radius: 14px;
    padding: 16px;
    margin: 6px 0 14px;
}

.booking-preview.hidden {
    display: none;
}

.bp-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: #2df08f;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.bp-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.bp-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 0.84rem;
}

.bp-filled {
    background: rgba(45, 240, 143, 0.08);
    color: #e0e7ff;
}

.bp-empty {
    background: rgba(255, 255, 255, 0.03);
    color: #475569;
    font-style: italic;
}

.bp-icon {
    flex-shrink: 0;
}

.bp-value {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bp-ready {
    margin-top: 12px;
    text-align: center;
    color: #2df08f;
    font-weight: 700;
    font-size: 0.9rem;
}

.bp-progress {
    margin-top: 12px;
    text-align: center;
    color: #64748b;
    font-size: 0.8rem;
}

/* ==================== SLOT PICKER ==================== */
.slot-picker {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 6px;
}

.slot-hint {
    grid-column: 1 / -1;
    color: #64748b;
    font-size: 0.85rem;
    font-style: italic;
    padding: 12px 0;
}

.slot-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
    padding: 14px 10px;
    border-radius: 14px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.15s, border-color 0.15s, background 0.15s;
    user-select: none;
}

.slot-available {
    background: rgba(45, 240, 143, 0.07);
    border-color: rgba(45, 240, 143, 0.25);
}

.slot-available:hover {
    background: rgba(45, 240, 143, 0.14);
    border-color: rgba(45, 240, 143, 0.5);
    transform: translateY(-2px);
}

.slot-selected {
    background: rgba(45, 240, 143, 0.2) !important;
    border-color: #2df08f !important;
    box-shadow: 0 0 16px rgba(45, 240, 143, 0.25);
}

.slot-booked {
    background: rgba(239, 68, 68, 0.07);
    border-color: rgba(239, 68, 68, 0.2);
    opacity: 0.65;
    cursor: not-allowed;
}

.slot-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
}

.slot-info {
    flex: 1;
}

.slot-label {
    font-weight: 700;
    font-size: 0.95rem;
    color: #e0e7ff;
}

.slot-time {
    font-size: 0.8rem;
    color: #94a3b8;
    margin-top: 2px;
}

.slot-status {
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

/* ==================== TOAST NOTIFICATION ==================== */
#toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    box-shadow: 0 8px 32px rgba(0,0,0,0.35);
    pointer-events: auto;
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    max-width: 340px;
}

.toast.toast-success {
    background: linear-gradient(135deg, #14b86b 0%, #0d9f5a 100%);
    border-left: 4px solid #2df08f;
}

.toast.toast-error {
    background: linear-gradient(135deg, #ef4444 0%, #c53030 100%);
    border-left: 4px solid #ff6b6b;
}

/* ---- Ground fee / advance inputs + share booking link ---- */
.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.form-hint {
    font-size: 0.8rem;
    color: #94a3b8;
    margin: 4px 0 12px;
    line-height: 1.4;
}
.ground-card-fee {
    margin-top: 8px;
    font-size: 0.82rem;
    color: #4ade80;
    font-weight: 600;
}
.ground-card-fee.muted-fee {
    color: #94a3b8;
    font-weight: 500;
}
.ground-share-btn {
    margin-top: 10px;
    width: 100%;
    padding: 9px;
    border: 1px solid var(--primary-light, #38bdf8);
    border-radius: 9px;
    background: rgba(56, 189, 248, 0.1);
    color: var(--primary-light, #38bdf8);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}
.ground-share-btn:hover {
    background: rgba(56, 189, 248, 0.2);
}
.bm-paid-badge {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    color: #4ade80;
    background: rgba(74, 222, 128, 0.12);
    border: 1px solid rgba(74, 222, 128, 0.35);
    border-radius: 6px;
    padding: 1px 6px;
    margin-left: 4px;
    vertical-align: middle;
}
.bm-wa {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    color: #25D366;
    text-decoration: none;
    margin-left: 8px;
    white-space: nowrap;
}
.bm-wa:hover { text-decoration: underline; }
.ground-card-actions {
    display: flex;
    gap: 4px;
}
.ground-card-edit {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    opacity: 0.75;
}
.ground-card-edit:hover { opacity: 1; }
.block-slot-checks {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.block-slot-checks .chk {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    color: #e2e8f0;
    cursor: pointer;
    margin: 0;
    font-weight: 500;
}
.block-slot-checks .chk input {
    width: auto;
    margin: 0;
}
#blockGround {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid rgba(148,163,184,0.3);
    background: #0a1420;
    color: #e2e8f0;
    font-size: 1rem;
}
.handle-box {
    background: rgba(56, 189, 248, 0.06);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 12px;
}
.handle-box > label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #cbd5e1;
    margin-bottom: 8px;
}
.handle-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.handle-prefix {
    font-size: 0.8rem;
    color: #94a3b8;
    white-space: nowrap;
}
.handle-row input {
    flex: 1;
    min-width: 100px;
    padding: 9px 12px;
    border-radius: 9px;
    border: 1px solid rgba(148,163,184,0.3);
    background: #0a1420;
    color: #e2e8f0;
    font-size: 0.95rem;
}
.handle-save {
    padding: 9px 16px !important;
    width: auto !important;
    font-size: 0.9rem;
}
.handle-preview {
    margin-top: 8px;
    font-size: 0.78rem;
    color: #94a3b8;
    word-break: break-all;
}
.handle-preview strong { color: #38bdf8; }
.qr-box {
    margin-top: 12px;
    text-align: center;
}
.qr-box img {
    width: 220px;
    height: 220px;
    background: #fff;
    border-radius: 12px;
    padding: 8px;
}
.qr-box .btn { margin-top: 10px; }
.admin-sub {
    font-size: 0.78rem;
    color: #94a3b8;
}

/* Google Sign-In on the login card */
.google-signin {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 6px 0 4px;
}
#googleBtnContainer {
    display: flex;
    justify-content: center;
    min-height: 40px;
}
.google-signin-msg {
    font-size: 0.8rem;
    color: #94a3b8;
    margin-top: 6px;
    min-height: 1em;
    text-align: center;
}
.login-or {
    display: flex;
    align-items: center;
    text-align: center;
    color: #64748b;
    font-size: 0.78rem;
    margin: 14px 0;
}
.login-or::before,
.login-or::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(148, 163, 184, 0.25);
}
.login-or span { padding: 0 12px; }
.login-hint {
    text-align: center;
    font-size: 0.82rem;
    color: #94a3b8;
    margin: 16px 4px 4px;
    line-height: 1.5;
}

.toast.toast-show {
    opacity: 1;
    transform: translateX(0);
}

.toast.toast-hide {
    opacity: 0;
    transform: translateX(60px);
}

.voice-hint em {
    color: #94a3b8;
}

.voice-feedback {
    width: 100%;
    margin-top: 10px;
    padding: 10px 14px;
    background: rgba(15, 23, 41, 0.6);
    border: 1px solid rgba(34, 211, 238, 0.15);
    border-radius: 8px;
    color: #e0e7ff;
    font-size: 0.85rem;
    line-height: 1.4;
}

.voice-feedback .vf-label {
    color: #64748b;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.voice-feedback .vf-transcript {
    color: #38bdf8;
}

/* Responsive Design */
@media (max-width: 1180px) {
    .landing-nav,
    .landing-hero {
        width: min(980px, 100%);
    }

    .landing-hero {
        grid-template-columns: minmax(0, 1fr) minmax(340px, 400px);
        gap: 30px;
    }

    .hero-copy h1 {
        font-size: clamp(2.25rem, 4.5vw, 3.5rem);
    }

    .hero-benefits {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .ground-image-stream {
        opacity: 0.38;
    }
}

/* ==================== MOBILE FLOATING ACTION BUTTON ==================== */
.fab-wrap {
    display: none; /* desktop hidden — shown on mobile via media query */
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 9000;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.fab-main {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #0ea5e9, #38bdf8);
    color: #04223a;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(14, 165, 233, 0.45);
    transition: transform 0.25s;
}

.fab-wrap.open .fab-main { transform: rotate(45deg); }

.fab-menu {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
    opacity: 0;
    transform: translateY(10px) scale(0.9);
    pointer-events: none;
    transition: opacity 0.2s, transform 0.2s;
}

.fab-wrap.open .fab-menu {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.fab-action {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(10, 20, 32, 0.97);
    border: 1px solid rgba(56, 189, 248, 0.45);
    color: #e2e8f0;
    padding: 10px 16px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
    white-space: nowrap;
}

.fab-action span { font-size: 1.1rem; }

@media (max-width: 768px) {
    .fab-wrap { display: flex; }
}

@media (max-width: 900px) {
    .upcoming-body {
        grid-template-columns: 1fr; /* spotlight below list on tablet */
    }

    .upcoming-list-panel {
        grid-template-columns: repeat(2, 1fr); /* keep 2-col on tablet */
    }

    .booking-calendar-section {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    /* Stack booking ground+date columns */
    .booking-two-col {
        grid-template-columns: 1fr;
        gap: 0;
    }

    /* Booking preview single column */
    .bp-grid {
        grid-template-columns: 1fr;
    }

    /* Slot cards stay 3-across but more compact */
    .slot-card {
        padding: 12px 6px;
    }

    .slot-label {
        font-size: 0.82rem;
    }

    .slot-status {
        font-size: 0.68rem;
    }

    .corner-player-logo {
        top: 12px;
        width: 54px;
        height: 54px;
    }

    .login-section {
        justify-content: flex-start;
        padding: 16px;
    }

    .landing-nav {
        margin-bottom: 22px;
        flex-direction: column;
        border-radius: 18px;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .landing-hero {
        grid-template-columns: 1fr;
        gap: 24px;
        min-height: auto;
    }

    .landing-hero > .login-container {
        justify-self: center;
    }

    .hero-copy {
        text-align: center;
        padding: 4px 0 0;
    }

    .hero-eyebrow {
        justify-content: center;
    }

    .hero-copy h1,
    .hero-text {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-benefits {
        grid-template-columns: 1fr;
        text-align: left;
        margin-left: auto;
        margin-right: auto;
    }

    .ground-image-stream {
        opacity: 0.18;
        width: 36vw;
    }

    .ground-image-stream img {
        width: 220px;
    }

    .booking-calendar-section {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .calendar-widget {
        padding: 20px;
    }

    .calendar-dates {
        gap: 6px;
    }

    .calendar-weekdays {
        gap: 6px;
    }

    .calendar-date {
        font-size: 0.85rem;
    }

    .calendar-header h3 {
        font-size: 1.15rem;
    }

    .main-content {
        grid-template-columns: 1fr;
    }

    /* Header — clean compact app-bar on mobile (no overlap) */
    .header {
        padding: 10px 14px;
    }

    .header-top {
        gap: 10px;
    }

    .header-left {
        flex: 1;
        min-width: 0;       /* let the title shrink instead of overlapping */
        gap: 8px;
    }

    .header-brand {
        min-width: 0;
        gap: 8px;
    }

    /* Brand title shows on mobile now (room freed by removing bell + logout) */
    .header-brand h1 {
        display: block;
        font-size: 0.9rem;
        letter-spacing: 0.3px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .header-center,
    .header-quick-actions {
        display: none;
    }

    .header {
        padding: 8px 12px;   /* tighter — removes the top empty strip */
    }

    .header-logo {
        width: 32px;
        height: 32px;
    }

    /* "+ Add" stays compact on mobile */
    .header-add-btn {
        padding: 0 12px;
        font-size: 0.82rem;
        height: 32px;
    }

    .header-right {
        flex-shrink: 0;     /* controls keep their size, never collapse */
        gap: 6px;
    }

    .header-user {
        gap: 6px;
    }

    .header-user p,
    .profile-name {
        display: none;
    }

    .profile-trigger {
        padding: 3px;
    }

    .profile-avatar {
        width: 28px;
        height: 28px;
        font-size: 0.85rem;
    }

    .notification-bell {
        font-size: 1.05rem;
        padding: 4px;
    }

    /* Logout → icon-only on mobile to save space */
    .btn-logout {
        padding: 8px 10px;
        font-size: 0;
    }

    .btn-logout::after {
        content: '🚪';
        font-size: 1.05rem;
    }

    /* Tighter sections on mobile (less empty space) */
    .upcoming-section {
        padding: 14px 12px;
        margin-bottom: 16px;
    }

    .main-content {
        gap: 16px;
        margin-bottom: 20px;
    }

    .upcoming-header {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        margin-bottom: 12px;
    }

    /* Title left + "Your Grounds" dropdown right, on one line */
    .upcoming-header-left {
        width: 100%;
        justify-content: space-between;
        flex-wrap: nowrap;
        gap: 10px;
    }

    .upcoming-header h2 {
        font-size: 0.95rem;
        letter-spacing: 0.5px;
    }

    .upcoming-header-right {
        justify-content: flex-start;
    }

    .avail-legend {
        margin-bottom: 8px;
    }

    .avail-legend-hint {
        display: none;
    }

    .avail-range-btn {
        padding: 5px 9px;
        font-size: 0.72rem;
    }

    .avail-corner,
    .avail-ground {
        min-width: 100px;
    }

    /* Bookings manager stats → 2 columns on mobile */
    .bm-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .bm-stat-wide {
        grid-column: span 2;
    }

    /* Tabs — horizontal scrollable row instead of stacked column */
    .tab-buttons {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        gap: 6px;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .tab-buttons::-webkit-scrollbar {
        display: none;
    }

    .tab-btn {
        white-space: nowrap;
        flex-shrink: 0;
        padding: 8px 14px;
        font-size: 0.82rem;
    }

    /* Slot picker — stacked on mobile */
    .slot-picker {
        gap: 8px;
    }

    .slot-card {
        padding: 12px 14px;
    }

    /* General */
    .bookings-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .login-box, .signup-box {
        padding: 24px 18px;
    }

    .form-actions {
        grid-template-columns: 1fr;
    }

    .booking-main-info {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 8px 12px;
    }

    .upcoming-section,
    .form-container,
    .calendar-widget {
        padding: 16px 14px;
    }
}

@media (max-width: 480px) {
    .corner-player-logo {
        display: none;
    }

    .ground-image-stream {
        display: none;
    }

    .landing-nav {
        padding: 10px;
    }

    .nav-links a {
        padding: 7px 10px;
        font-size: 0.88rem;
    }

    .hero-copy h1 {
        font-size: 2.25rem;
    }

    .hero-text {
        font-size: 0.98rem;
    }

    .hero-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .container {
        padding: 10px;
    }

    .booking-form-section,
    .bookings-display-section,
    .grounds-management-section,
    .footer {
        padding: 20px;
    }

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

    .subtitle {
        font-size: 1rem;
    }

    .login-section {
        padding: 10px;
    }

    .login-box, .signup-box {
        padding: 20px;
    }

    .cricket-logo {
        width: 70px;
        height: 70px;
    }

    .login-box h1 {
        font-size: 1.5rem;
    }

    .header-brand h1 {
        font-size: 1.1rem;
        letter-spacing: 0.5px;
    }

    .header-logo {
        width: 38px;
        height: 38px;
    }

    /* Tabs stay as horizontal scrollable row */
    .tab-buttons {
        flex-direction: row;
        overflow-x: auto;
    }

    .tab-btn {
        width: auto;
        flex-shrink: 0;
    }

    /* Touch-friendly button minimum size */
    .btn, .tab-btn, .slot-card, .calendar-nav, .pagination-btn {
        min-height: 44px;
    }

    .slot-card {
        min-height: auto;
    }

    /* Notification bell bigger tap target */
    .notification-bell {
        padding: 10px;
    }

    /* Welcome name in header — show abbreviated on small phones */
    .header-user p {
        display: none;
    }

    /* Upcoming section compact on small phone */
    .upcoming-list-panel {
        grid-template-columns: 1fr;
    }

    .upcoming-section {
        padding: 12px;
    }

    .spotlight-team-name {
        font-size: 1.2rem;
    }
}
