/* ═══════════════════════════════════════════════════════════════
   BoxCricket — White & Navy Blue Theme
   ═══════════════════════════════════════════════════════════════ */

:root {
    --navy: #0B2545;
    --navy-dark: #061838;
    --navy-light: #1B3A6B;
    --blue: #134074;
    --accent: #5E9ED6;
    --accent-light: #8DA9C4;
    --white: #FFFFFF;
    --bg: #F8FAFC;
    --bg-alt: #EEF2F7;
    --text: #0B2545;
    --text-muted: #4A5B75;
    --text-light: #64748B;
    --border: #E2E8F0;
    --gray-100: #F1F5F9;
    --gray-200: #E2E8F0;
    --gray-300: #CBD5E1;
    --green-50: #ECFDF5;
    --green-100: #D1FAE5;
    --green-300: #6EE7B7;
    --green-400: #34D399;
    --green-500: #10b981;
    --green-600: #059669;
    --green-700: #047857;
    --green-800: #065F46;
    --green-900: #064E3B;
    --red-50: #FEF2F2;
    --red-500: #EF4444;
    --red-700: #B91C1C;
    --yellow-50: #FFFBEB;
    --yellow-500: #F59E0B;
    --yellow-700: #B45309;
    --blue-50: #EFF6FF;
    --blue-500: #3B82F6;
    --blue-700: #1D4ED8;
    --lime: #a3e635;
    --shadow: 0 2px 8px rgba(11,37,69,0.08);
    --shadow-lg: 0 10px 30px rgba(11,37,69,0.15);
    --radius: 8px;
    --radius-sm: 6px;
    --radius-lg: 16px;
    --font-head: 'Inter', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 14px;
}
a { color: var(--navy); text-decoration: none; transition: all 0.2s; }
a:hover { color: var(--accent); }
ul { list-style: none; }

/* NAVBAR */
.navbar { background: var(--white); border-bottom: 1px solid var(--border); padding: 16px 0; position: sticky; top: 0; z-index: 100; box-shadow: var(--shadow); }
.nav-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.logo { font-size: 22px; font-weight: 800; color: var(--navy); display: flex; align-items: center; gap: 8px; }
.logo svg { width: 28px; height: 28px; fill: var(--navy); }
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a { font-weight: 500; color: var(--text); font-size: 14px; }
.nav-links a:hover { color: var(--navy); }

/* BUTTONS */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 20px; border-radius: var(--radius); font-weight: 600; font-size: 14px; cursor: pointer; border: none; transition: all 0.2s; text-decoration: none; font-family: inherit; white-space: nowrap; }
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--navy-dark); color: var(--white); transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.btn-outline { background: transparent; color: var(--navy); border: 2px solid var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-white { background: var(--white); color: var(--navy); }
.btn-white:hover { background: var(--bg-alt); }
.btn-danger { background: var(--red-500); color: var(--white); }
.btn-danger:hover { background: var(--red-700); color: var(--white); }
.btn-success { background: var(--green-500); color: var(--white); }
.btn-success:hover { background: var(--green-700); color: var(--white); }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-block { width: 100%; padding: 14px; }

/* HERO */
.hero { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%); color: var(--white); padding: 80px 24px 100px; text-align: center; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: -50%; right: -20%; width: 600px; height: 600px; background: radial-gradient(circle, var(--accent) 0%, transparent 70%); opacity: 0.15; pointer-events: none; }
.hero-content { max-width: 900px; margin: 0 auto; position: relative; z-index: 1; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.1); backdrop-filter: blur(10px); padding: 8px 16px; border-radius: 50px; font-size: 13px; font-weight: 500; margin-bottom: 24px; border: 1px solid rgba(255,255,255,0.2); }
.hero-badge svg { width: 16px; height: 16px; fill: var(--white); }
.hero h1 { font-size: 56px; font-weight: 800; line-height: 1.1; margin-bottom: 20px; letter-spacing: -1px; }
.hero h1 span { color: var(--accent); }
.hero p { font-size: 18px; color: rgba(255,255,255,0.85); margin-bottom: 40px; max-width: 600px; margin-left: auto; margin-right: auto; }
.search-card { background: var(--white); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-lg); max-width: 800px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: 12px; align-items: end; }
.search-field { text-align: left; }
.search-field label { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--text-light); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.5px; }
.search-field label svg { width: 14px; height: 14px; fill: var(--text-light); }
.search-field input, .search-field select { width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 14px; color: var(--text); background: var(--white); }
.search-field input:focus, .search-field select:focus { outline: none; border-color: var(--navy); }
.hero-stats { display: flex; justify-content: center; gap: 48px; margin-top: 60px; flex-wrap: wrap; }
.stat { text-align: center; }
.stat-value { font-size: 36px; font-weight: 800; color: var(--white); line-height: 1; margin-bottom: 4px; }
.stat-label { font-size: 13px; color: rgba(255,255,255,0.7); text-transform: uppercase; letter-spacing: 0.5px; }

/* SECTIONS */
section { padding: 80px 24px; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 { font-size: 40px; font-weight: 800; color: var(--navy); margin-bottom: 12px; letter-spacing: -0.5px; }
.section-header p { font-size: 16px; color: var(--text-light); }

/* HOW IT WORKS */
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.how-card { background: var(--white); padding: 40px 28px; border-radius: var(--radius-lg); text-align: center; border: 1px solid var(--border); position: relative; transition: all 0.3s; }
.how-card:hover { border-color: var(--navy); transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.how-number { position: absolute; top: 16px; right: 20px; font-size: 48px; font-weight: 800; color: var(--bg-alt); line-height: 1; }
.how-icon { width: 64px; height: 64px; background: var(--navy); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
.how-icon svg { width: 32px; height: 32px; fill: var(--white); }
.how-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 10px; color: var(--navy); }
.how-card p { color: var(--text-light); font-size: 14px; }

/* ═══════════════════════════════════════════════════════════════
   GROUND CARDS — UNIFORM HORIZONTAL IMAGES
   ═══════════════════════════════════════════════════════════════ */

.grounds-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.ground-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}
.ground-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--navy);
}

/* CARD IMAGE - UNIFORM HORIZONTAL SIZE FOR ALL CARDS */
.ground-card .card-image {
    position: relative;
    width: 100%;
    height: 200px;                    /* fixed horizontal rectangle */
    overflow: hidden;
    background: linear-gradient(135deg, var(--navy), var(--navy-light));
    flex-shrink: 0;
}

.ground-card .card-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;     /* crop and fill - no distortion */
    object-position: center !important;
    display: block;
    transition: transform 0.4s;
}
.ground-card:hover .card-image img {
    transform: scale(1.04);
}

.ground-card .card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    color: var(--navy);
    padding: 5px 11px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(11, 37, 69, 0.12);
    letter-spacing: 0.2px;
}
.ground-card .card-badge.badge-type.instant {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
}
.ground-card .card-badge.badge-type.approval {
    background: rgba(255, 255, 255, 0.95);
    color: var(--navy);
}
.ground-card .card-badge.badge-featured {
    background: rgba(255, 255, 255, 0.95);
    color: #b45309;
}

.ground-card .save-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(11, 37, 69, 0.12);
    transition: all 0.2s;
}
.ground-card .save-btn:hover {
    background: #fff;
    transform: scale(1.08);
}
.ground-card .save-btn i {
    color: var(--navy);
    font-size: 16px;
}
.ground-card .save-btn.saved i {
    color: #ef4444;
}

/* CARD BODY — clean compact layout */
.ground-card .card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.ground-card .card-location {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}
.ground-card .card-location i {
    color: var(--green-600, #059669);
    font-size: 13px;
}

.ground-card .card-title {
    font-family: var(--font-head, inherit);
    font-size: 17px;
    font-weight: 800;
    line-height: 1.25;
    margin: 0;
    color: var(--navy);
}
.ground-card .card-title a {
    color: inherit;
    text-decoration: none;
}
.ground-card .card-title a:hover {
    color: var(--green-600, #059669);
}

/* Meta row: rating + players (clock removed for simplicity) */
.ground-card .card-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 12.5px;
    color: var(--text-muted);
    flex-wrap: wrap;
    margin-top: 2px;
}
.ground-card .card-meta > div {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}
.ground-card .card-meta .rating {
    color: var(--text);
}
.ground-card .card-meta .rating i {
    color: #f59e0b;
}
.ground-card .card-meta .rating strong {
    color: var(--navy);
    font-weight: 700;
}
.ground-card .card-meta .rating span {
    color: var(--text-muted);
}
.ground-card .card-meta .capacity i {
    color: var(--green-600, #059669);
}
.ground-card .card-meta > div:nth-child(3) {
    /* Hide opening hours by default, show on larger cards */
    display: none;
}

/* Amenities — minimal subtle tags, max 3-4 visible */
.ground-card .amenities-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
    max-height: 30px;
    overflow: hidden;
}
.ground-card .amenity-tag {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px 9px;
    background: var(--gray-50, #f8fafc);
    color: var(--text);
    border: 1px solid var(--gray-200, #e2e8f0);
    border-radius: 50px;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
    text-transform: capitalize;
    line-height: 1.4;
}
.ground-card .amenity-tag i {
    font-size: 10px;
}

/* Footer: price + CTA */
.ground-card .card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 12px;
    margin-top: auto;
    border-top: 1px solid var(--gray-100, #f1f5f9);
}
.ground-card .card-footer .price {
    display: flex;
    flex-direction: column;
    gap: 0;
    line-height: 1.1;
    min-width: 0;
}
.ground-card .card-footer .price-label {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.ground-card .card-footer .price-value {
    font-family: var(--font-head, inherit);
    font-size: 22px;
    font-weight: 800;
    color: var(--navy);
    display: inline-flex;
    align-items: baseline;
    gap: 2px;
}
.ground-card .card-footer .price-unit {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
    margin-left: 2px;
}
.ground-card .card-footer .btn {
    flex-shrink: 0;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 8px;
}
.ground-card .card-footer .btn::after {
    content: " →";
    margin-left: 2px;
}

/* Legacy .ground-image class (fallback) */
.ground-image {
    height: 200px;
    width: 100%;
    overflow: hidden;
    background: linear-gradient(135deg, var(--navy), var(--navy-light));
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ground-image img { width: 100%; height: 100%; object-fit: cover; }
.ground-image svg { width: 60px; height: 60px; fill: rgba(255,255,255,0.3); }

.ground-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--white);
    color: var(--navy);
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
}
.ground-badge svg { width: 12px; height: 12px; fill: var(--navy); }

.ground-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.ground-body h3 { font-size: 18px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }

.ground-location {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-light);
    font-size: 13px;
    margin-bottom: 14px;
}
.ground-location svg { width: 14px; height: 14px; fill: var(--text-light); }

.ground-amenities { display: flex; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.amenity {
    font-size: 11px;
    background: var(--bg-alt);
    color: var(--navy);
    padding: 4px 10px;
    border-radius: 50px;
    font-weight: 500;
}

.ground-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 14px;
    border-top: 1px solid var(--border);
    margin-top: auto;
}
.ground-price { font-size: 20px; font-weight: 800; color: var(--navy); }
.ground-price span { font-size: 12px; color: var(--text-light); font-weight: 400; }

/* CITIES */
.cities-section { background: var(--bg-alt); }
.cities-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; }
.city-card { background: var(--white); padding: 20px; border-radius: var(--radius); text-align: center; border: 1px solid var(--border); transition: all 0.2s; }
.city-card:hover { background: var(--navy); color: var(--white); transform: translateY(-2px); }
.city-card h4 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.city-card p { font-size: 12px; opacity: 0.7; }

/* CTA */
.cta-section { background: var(--navy); color: var(--white); text-align: center; padding: 80px 24px; }
.cta-section h2 { font-size: 36px; font-weight: 800; margin-bottom: 16px; color: var(--white); }
.cta-section p { font-size: 16px; color: rgba(255,255,255,0.8); margin-bottom: 30px; max-width: 500px; margin-left: auto; margin-right: auto; }

/* FOOTER */
.footer { background: var(--navy-dark); color: var(--white); padding: 60px 24px 20px; }
.footer-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer-col h4 { color: var(--white); font-size: 16px; font-weight: 700; margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: rgba(255,255,255,0.7); font-size: 14px; }
.footer-col a:hover { color: var(--white); }
.footer-col p { color: rgba(255,255,255,0.7); font-size: 14px; line-height: 1.7; }
.footer-logo { color: var(--white); font-size: 22px; font-weight: 800; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.footer-logo svg { width: 28px; height: 28px; fill: var(--white); }
.footer-bottom { text-align: center; padding-top: 30px; margin-top: 30px; border-top: 1px solid rgba(255,255,255,0.1); color: rgba(255,255,255,0.5); font-size: 13px; }

/* ═══════════════════════════════════════════════════════════════
   DASHBOARD LAYOUT
   ═══════════════════════════════════════════════════════════════ */

.dashboard-layout { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; background: var(--bg); }
.sidebar { background: var(--navy); color: var(--white); padding: 24px 0; position: sticky; top: 80px; height: calc(100vh - 80px); overflow-y: auto; align-self: start; }
.sidebar-section-title { padding: 14px 24px 6px; color: rgba(255,255,255,0.4); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin: 0; }
.sidebar-menu { list-style: none; margin-bottom: 10px; }
.sidebar-menu li { margin: 0; }
.sidebar-menu li a { display: flex; align-items: center; gap: 12px; padding: 10px 24px; color: rgba(255,255,255,0.7); font-size: 14px; font-weight: 500; transition: all 0.2s; text-decoration: none; }
.sidebar-menu li a:hover, .sidebar-menu li a.active { background: rgba(255,255,255,0.08); color: var(--white); border-left: 3px solid var(--accent); padding-left: 21px; }
.sidebar-menu li a i { font-size: 16px; width: 18px; }

.dashboard-main { padding: 32px; background: var(--bg); min-width: 0; }

.page-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; flex-wrap: wrap; gap: 16px; }
.page-header h1 { font-size: 28px; font-weight: 800; color: var(--navy); margin: 0; }

/* COMPACT STAT CARDS */
.stats-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 24px; }
.stat-card { background: var(--white); padding: 16px 18px; border-radius: var(--radius); border: 1px solid var(--border); position: relative; display: flex; align-items: center; gap: 12px; transition: all 0.2s; text-decoration: none; color: inherit; }
.stat-card:hover { border-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-1px); color: inherit; }
a.stat-card { cursor: pointer; }
a.stat-card::after { content: "→"; position: absolute; top: 12px; right: 14px; font-size: 14px; color: var(--text-light); opacity: 0; transition: opacity .2s, transform .2s; font-weight: 700; }
a.stat-card:hover::after { opacity: 1; transform: translateX(2px); color: var(--navy); }
a.stat-card:hover .stat-card-value { color: var(--navy); }

/* ═══════════════════════════════════════════════════════════
   Featured toggle (admin-only star button)
   ═══════════════════════════════════════════════════════════ */
.featured-toggle {
    background: transparent;
    border: 1.5px solid var(--border);
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted, #64748B);
    font-size: 16px;
    transition: all 0.18s;
    padding: 0;
}
.featured-toggle:hover {
    border-color: #f59e0b;
    background: #fef3c7;
    color: #f59e0b;
    transform: scale(1.08);
}
.featured-toggle.is-featured {
    background: #fef3c7;
    border-color: #f59e0b;
    color: #f59e0b;
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.15);
}
.featured-toggle.is-featured:hover {
    background: #fde68a;
}
.stat-card-icon { width: 40px; height: 40px; background: var(--bg-alt); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.stat-card-value { font-size: 22px; font-weight: 800; color: var(--navy); line-height: 1.1; margin: 0; }
.stat-card-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.3px; font-weight: 600; margin-top: 2px; line-height: 1.2; }
.stat-card-change { font-size: 10px; color: var(--text-light); margin-top: 2px; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 24px; }

/* TABLES */
.table-wrapper { background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--border); overflow: hidden; margin-bottom: 20px; }
.table-wrapper table { width: 100%; border-collapse: collapse; }
.table-wrapper thead { background: var(--bg-alt); }
.table-wrapper th { text-align: left; padding: 14px 16px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--navy); border-bottom: 1px solid var(--border); }
.table-wrapper td { padding: 14px 16px; font-size: 14px; border-bottom: 1px solid var(--border); color: var(--text); vertical-align: middle; }
.table-wrapper tbody tr:last-child td { border-bottom: none; }
.table-wrapper tbody tr:hover { background: var(--bg); }

/* STATUS BADGES */
.status-badge { display: inline-block; padding: 4px 10px; border-radius: 50px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.3px; white-space: nowrap; }
.status-badge.approved, .status-badge.active { background: var(--green-50); color: var(--green-700); }
.status-badge.pending, .status-badge.payment_submitted { background: var(--yellow-50); color: var(--yellow-700); }
.status-badge.rejected, .status-badge.suspended, .status-badge.inactive { background: var(--red-50); color: var(--red-700); }
.status-badge.cancelled { background: var(--gray-100); color: var(--text-muted); }
.status-badge.completed { background: var(--blue-50); color: var(--blue-700); }
.status-badge.refunded { background: var(--gray-100); color: var(--text-muted); }
.status-badge.pending_approval { background: var(--yellow-50); color: var(--yellow-700); }

/* FORM CONTROLS */
.form-control { width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 14px; font-family: inherit; color: var(--text); background: var(--white); transition: border 0.2s; }
.form-control:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(11,37,69,0.08); }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%234A5B75' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }

/* CARDS */
.card { background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--border); padding: 24px; margin-bottom: 20px; }
.card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.card-title { font-size: 18px; font-weight: 700; color: var(--navy); margin: 0; }

/* AUTH */
.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 40px 20px; background: linear-gradient(135deg, var(--navy), var(--navy-light)); }
.auth-card { background: var(--white); border-radius: var(--radius-lg); padding: 48px 40px; max-width: 440px; width: 100%; box-shadow: var(--shadow-lg); }
.auth-card h2 { color: var(--navy); font-size: 28px; font-weight: 800; margin-bottom: 8px; text-align: center; }
.auth-card p.subtitle { text-align: center; color: var(--text-light); margin-bottom: 32px; font-size: 14px; }

.form-group { margin-bottom: 20px; }
.form-group label, .form-label { display: block; font-size: 13px; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 14px; font-family: inherit; color: var(--text); background: var(--white); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(11,37,69,0.1); }
.form-group .help-text, .form-error { font-size: 12px; color: var(--red-500); margin-top: 4px; }
.form-card { background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--border); padding: 20px; }

.auth-footer { text-align: center; margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--border); color: var(--text-light); font-size: 14px; }
.auth-footer a { color: var(--navy); font-weight: 600; }

/* ALERTS */
.alert-wrap { max-width: 1200px; margin: 20px auto 0; padding: 0 24px; }
.alert { padding: 12px 16px; border-radius: var(--radius); margin-bottom: 16px; font-size: 14px; display: flex; align-items: center; gap: 10px; }
.alert svg { width: 18px; height: 18px; flex-shrink: 0; }
.alert i { font-size: 18px; flex-shrink: 0; }
.alert-success { background: #d1fae5; color: #065f46; }
.alert-error { background: #fee2e2; color: #991b1b; }
.alert-info { background: #dbeafe; color: #1e40af; }

/* SLOT CALENDAR */
.slot-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 10px 10px 10px;
    font-size: 13px;
    position: relative;
    transition: all 0.2s;
}
.slot-item:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.slot-item input[type="checkbox"] {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 16px;
    height: 16px;
    accent-color: var(--green-600);
    cursor: pointer;
    z-index: 2;
}
.slot-item .slot-time { font-weight: 700; font-size: 14px; color: var(--navy); margin-bottom: 4px; }
.slot-item .slot-price { font-size: 13px; color: var(--text-muted); margin-bottom: 4px; font-weight: 600; }
.slot-item .slot-status { font-size: 11px; color: var(--text-light); margin-bottom: 6px; }
.slot-item.blocked-slot { background: var(--red-50); border-color: #fecaca; }
.slot-item.booked { background: var(--blue-50); border-color: #bfdbfe; }
.slot-item.held { background: var(--yellow-50); border-color: #fde68a; }
.slot-item.payment_submitted { background: #fef3c7; border-color: #fcd34d; }

.cal-cell { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px; min-height: 72px; cursor: pointer; transition: all 0.2s; }
.cal-cell:hover { border-color: var(--navy); box-shadow: var(--shadow); }

/* UPLOAD AREA */
.upload-area {
    border: 2px dashed var(--border);
    padding: 24px;
    text-align: center;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s;
}
.upload-area:hover { border-color: var(--navy); background: var(--bg-alt); }
.upload-area i { font-size: 32px; color: var(--navy); }
.upload-area p { margin-top: 8px; color: var(--text-muted); font-size: 13px; }

/* RESPONSIVE */
@media (max-width: 1024px) {
    .dashboard-layout { grid-template-columns: 220px 1fr; }
    .stats-cards { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
}
@media (max-width: 768px) {
    .hero h1 { font-size: 36px; }
    .section-header h2 { font-size: 28px; }
    .how-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .search-card { grid-template-columns: 1fr; }
    .hero-stats { gap: 24px; }
    .dashboard-layout { grid-template-columns: 1fr; }
    .sidebar { display: none; }
    .nav-links { display: none; }
    .page-header { flex-direction: column; align-items: flex-start; }
    .stats-cards { grid-template-columns: repeat(2, 1fr); }
    .grounds-grid { grid-template-columns: 1fr; }
    .ground-card .card-image { height: 180px; }
}

/* Unavailable slot styling (box closed outside operating hours) */
.slot-item.unavailable-slot {
    background: #f3f4f6;
    border-color: #d1d5db;
    opacity: 0.65;
    cursor: not-allowed;
}
.slot-item.unavailable-slot .slot-time,
.slot-item.unavailable-slot .slot-price {
    color: #6b7280;
}
.slot-item.unavailable-slot .slot-status {
    color: #9ca3af;
    font-weight: 600;
}
