/* ============================================================
   CourToGo - Court Venue Marketplace Styles
   ============================================================ */

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

.ctg-app {
    --ctg-green:  #3DB87A;
    --ctg-green2: #2ea86a;
    --ctg-black:  #1a1a1a;
    --ctg-mid:    #6b7280;
    --ctg-light:  #f9fafb;
    --ctg-border: #e5e7eb;
    --ctg-white:  #fff;
    --ctg-radius: 12px;
    --ctg-shadow: 0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
    --ctg-shadow-md: 0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.06);

    font-family: 'Inter', -apple-system, sans-serif;
    color: var(--ctg-black);
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

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

/* ── Venues Hero ───────────────────────────────────────────── */
.ctg-venues-hero {
    text-align: center;
    padding: 60px 20px 40px;
}

.ctg-venues-hero h1 {
    font-size: 42px;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 12px;
    color: var(--ctg-black);
}

.ctg-venues-hero p {
    font-size: 17px;
    color: var(--ctg-mid);
    margin-bottom: 28px;
}

.ctg-search-wrap {
    position: relative;
    max-width: 560px;
    margin: 0 auto;
}

.ctg-search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: var(--ctg-mid);
}

#ctg-search {
    width: 100%;
    padding: 14px 16px 14px 46px;
    border: 1.5px solid var(--ctg-border);
    border-radius: 50px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    background: var(--ctg-white);
    box-shadow: var(--ctg-shadow-md);
    transition: border-color 0.2s;
    outline: none;
}

#ctg-search:focus { border-color: var(--ctg-green); }

/* ── Venues Bar ────────────────────────────────────────────── */
.ctg-venues-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 10px;
}

.ctg-venue-count { font-size: 14px; color: var(--ctg-mid); }

.ctg-view-tabs { display: flex; gap: 8px; }

.ctg-view-btn {
    padding: 7px 16px;
    border: 1.5px solid var(--ctg-border);
    border-radius: 20px;
    background: var(--ctg-white);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: all 0.15s;
    color: var(--ctg-mid);
}

.ctg-view-btn.active,
.ctg-view-btn:hover {
    background: var(--ctg-green);
    border-color: var(--ctg-green);
    color: var(--ctg-white);
}

/* ── Section Title ─────────────────────────────────────────── */
.ctg-section-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ctg-section-icon { font-size: 20px; }

/* ── Venues Grid ───────────────────────────────────────────── */
.ctg-venues-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

/* ── Venue Card ────────────────────────────────────────────── */
.ctg-venue-card {
    background: var(--ctg-white);
    border-radius: var(--ctg-radius);
    box-shadow: var(--ctg-shadow);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    border: 1px solid var(--ctg-border);
}

.ctg-venue-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--ctg-shadow-md);
}

.ctg-card-thumb {
    height: 160px;
    background: var(--ctg-light);
    position: relative;
    overflow: hidden;
}

.ctg-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ctg-card-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
}

.ctg-card-avatar {
    position: absolute;
    bottom: -20px;
    left: 16px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 3px solid var(--ctg-white);
    background: var(--ctg-white);
    overflow: hidden;
    box-shadow: var(--ctg-shadow);
}

.ctg-card-avatar img { width: 100%; height: 100%; object-fit: cover; }
.ctg-card-avatar-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 24px; background: var(--ctg-light); }

.ctg-verified-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--ctg-green);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.ctg-card-body {
    padding: 28px 16px 16px;
}

.ctg-card-name {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--ctg-black);
}

.ctg-card-available {
    display: inline-block;
    background: #dcfce7;
    color: #15803d;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 20px;
    margin-bottom: 8px;
}

.ctg-card-location {
    font-size: 13px;
    color: var(--ctg-mid);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.ctg-card-meta {
    display: flex;
    gap: 14px;
    font-size: 13px;
    color: var(--ctg-mid);
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.ctg-card-meta-item { display: flex; align-items: center; gap: 4px; }

.ctg-card-amenities {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}

.ctg-amenity-tag {
    background: var(--ctg-light);
    border: 1px solid var(--ctg-border);
    border-radius: 20px;
    font-size: 11px;
    padding: 3px 10px;
    color: var(--ctg-mid);
    font-weight: 500;
}

.ctg-card-book-btn {
    display: block;
    width: 100%;
    padding: 11px;
    background: var(--ctg-green);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: background 0.15s;
    text-align: center;
    text-decoration: none;
}

.ctg-card-book-btn:hover { background: var(--ctg-green2); color: #fff; text-decoration: none; }

/* ── CTA section ───────────────────────────────────────────── */
.ctg-list-cta { margin: 40px 0; }

.ctg-cta-box {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: var(--ctg-radius);
    padding: 40px;
    text-align: center;
    color: #fff;
}

.ctg-cta-box h3 { font-size: 24px; font-weight: 800; margin-bottom: 10px; }
.ctg-cta-box p  { color: rgba(255,255,255,.7); margin-bottom: 20px; font-size: 15px; }

.ctg-btn-green {
    display: inline-block;
    padding: 12px 28px;
    background: var(--ctg-green);
    color: #fff;
    border-radius: 8px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: background 0.15s;
    border: none;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
}

.ctg-btn-green:hover { background: var(--ctg-green2); color: #fff; text-decoration: none; }

/* ── Pagination ────────────────────────────────────────────── */
.ctg-pagination { display: flex; justify-content: center; gap: 8px; margin: 24px 0 40px; }
.ctg-page-btn { padding: 7px 14px; border: 1.5px solid var(--ctg-border); border-radius: 8px; background: var(--ctg-white); cursor: pointer; font-size: 13px; font-family: 'Inter', sans-serif; }
.ctg-page-btn.active { background: var(--ctg-green); border-color: var(--ctg-green); color: #fff; }

/* ── Venue Page ────────────────────────────────────────────── */
.ctg-back-bar { padding: 16px 0 8px; font-size: 14px; }
.ctg-back-bar a { color: var(--ctg-green); text-decoration: none; font-weight: 600; }

.ctg-venue-hero { margin-bottom: 24px; border-radius: var(--ctg-radius); overflow: hidden; }

.ctg-gallery-strip {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
    height: 280px;
}

.ctg-gallery-thumb {
    background-size: cover;
    background-position: center;
    background-color: var(--ctg-light);
}

.ctg-gallery-strip.single { grid-template-columns: 1fr; }

.ctg-gallery-placeholder {
    height: 220px;
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    border-radius: var(--ctg-radius);
}

.ctg-venue-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 28px;
    align-items: flex-start;
}

.ctg-venue-header {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 20px;
}

.ctg-venue-logo {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--ctg-border);
    flex-shrink: 0;
}

.ctg-venue-name {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 6px;
    letter-spacing: -.5px;
}

.ctg-venue-location { font-size: 14px; color: var(--ctg-mid); margin-bottom: 4px; }
.ctg-maps-link { font-size: 13px; color: var(--ctg-green); font-weight: 600; text-decoration: none; }
.ctg-venue-desc { font-size: 15px; line-height: 1.7; color: #374151; margin-bottom: 24px; }

.ctg-info-section { margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--ctg-border); }
.ctg-info-section:last-child { border-bottom: none; }
.ctg-info-section h3 { font-size: 16px; font-weight: 700; margin-bottom: 12px; }

.ctg-courts-list { display: flex; flex-direction: column; gap: 8px; }

.ctg-court-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--ctg-light);
    border-radius: 8px;
    font-size: 14px;
    border: 1px solid var(--ctg-border);
}

.ctg-court-type { background: #e0f2fe; color: #0369a1; padding: 2px 8px; border-radius: 10px; font-size: 11px; font-weight: 600; }
.ctg-court-rate { margin-left: auto; font-weight: 700; color: var(--ctg-green); }

.ctg-amenities-wrap { display: flex; flex-wrap: wrap; gap: 8px; }

.ctg-pm-card { background: var(--ctg-light); border: 1px solid var(--ctg-border); border-radius: 10px; padding: 14px; margin-bottom: 12px; text-align: center; }
.ctg-pm-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .7px; color: var(--ctg-mid); margin-bottom: 8px; }
.ctg-pm-qr { max-width: 120px; margin: 0 auto 8px; border-radius: 6px; display: block; }
.ctg-pm-number { font-size: 18px; font-weight: 800; color: var(--ctg-green); margin-bottom: 2px; }
.ctg-pm-name { font-size: 13px; color: var(--ctg-mid); }

.ctg-waiver { font-size: 13px; line-height: 1.7; color: var(--ctg-mid); background: var(--ctg-light); padding: 14px; border-radius: 8px; }

/* ── Booking Panel ─────────────────────────────────────────── */
.ctg-booking-panel { position: sticky; top: 20px; }

.ctg-booking-box {
    background: var(--ctg-white);
    border-radius: var(--ctg-radius);
    box-shadow: var(--ctg-shadow-md);
    padding: 20px;
    border: 1px solid var(--ctg-border);
    margin-bottom: 16px;
}

.ctg-booking-box h2 { font-size: 20px; font-weight: 800; margin-bottom: 16px; }

#ctg-user-area { margin-bottom: 14px; }

.ctg-user-bar { display: flex; align-items: center; gap: 8px; font-size: 13px; flex-wrap: wrap; }
.ctg-user-bar .ctg-user-name { font-weight: 600; }

.ctg-date-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--ctg-light);
    border: 1px solid var(--ctg-border);
    border-radius: 8px;
    padding: 8px 12px;
    margin-bottom: 14px;
    font-size: 14px;
    font-weight: 600;
}

.ctg-date-nav button {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: var(--ctg-mid);
    padding: 2px 6px;
    border-radius: 4px;
    transition: all 0.15s;
}

.ctg-date-nav button:hover { background: var(--ctg-border); color: var(--ctg-black); }

.ctg-timetable-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-bottom: 12px; border-radius: 8px; border: 1px solid var(--ctg-border); }

.ctg-timetable-scroll table { width: 100%; border-collapse: collapse; min-width: 400px; }

.ctg-timetable-scroll thead tr { background: var(--ctg-black); color: #fff; }
.ctg-timetable-scroll thead th { padding: 8px 4px; font-size: 11px; font-weight: 600; text-align: center; white-space: nowrap; }
.ctg-timetable-scroll thead th:first-child { text-align: left; padding-left: 10px; width: 90px; font-size: 10px; }
.ctg-timetable-scroll tbody td { border: 1px solid var(--ctg-border); height: 38px; padding: 0; }
.ctg-timetable-scroll tbody td:first-child { font-weight: 600; font-size: 11px; padding: 0 8px; white-space: nowrap; background: var(--ctg-white); position: sticky; left: 0; z-index: 1; border-right: 2px solid var(--ctg-border); }

.ctg-slot { width: 100%; height: 100%; cursor: pointer; background: #f0fdf4; border: none; transition: background 0.1s; }
.ctg-slot:hover     { background: #bbf7d0; color: #1a1a1a;}
.ctg-slot.selected  { background: var(--ctg-black); }
.ctg-slot.booked    { background: var(--ctg-green); cursor: not-allowed; }
.ctg-slot.past      { background: #f3f4f6; cursor: not-allowed; }
.ctg-slot.unavailable { background: #e5e7eb; cursor: not-allowed; }

.ctg-legend { display: flex; gap: 12px; font-size: 11px; color: var(--ctg-mid); margin-bottom: 14px; flex-wrap: wrap; }
.ctg-legend-item { display: flex; align-items: center; gap: 4px; }
.ctg-dot { width: 12px; height: 12px; border-radius: 2px; display: inline-block; }
.ctg-dot.open     { background: #f0fdf4; border: 1px solid #86efac; }
.ctg-dot.selected { background: var(--ctg-black); }
.ctg-dot.booked   { background: var(--ctg-green); }

.ctg-selection-header { font-weight: 700; font-size: 14px; margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--ctg-border); }

.ctg-selection-item { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--ctg-border); font-size: 13px; }
.ctg-selection-item:last-of-type { border-bottom: none; }
.ctg-sel-info .ctg-sel-court { font-weight: 600; }
.ctg-sel-info .ctg-sel-time  { color: var(--ctg-mid); font-size: 12px; }
.ctg-sel-right { display: flex; align-items: center; gap: 8px; }
.ctg-sel-amount { font-weight: 700; color: var(--ctg-green); }
.ctg-sel-remove { background: none; border: none; color: #ccc; cursor: pointer; font-size: 16px; padding: 0; }
.ctg-sel-remove:hover { color: #ef4444; }

.ctg-selection-total { display: flex; justify-content: space-between; font-weight: 700; font-size: 16px; padding: 12px 0 14px; }

.ctg-btn-book {
    display: block;
    width: 100%;
    padding: 12px;
    background: var(--ctg-green);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: background 0.15s;
    text-align: center;
}

.ctg-btn-book:hover { background: var(--ctg-green2); }
.ctg-btn-book:disabled { opacity: 0.6; cursor: not-allowed; }

.ctg-btn-secondary {
    display: block;
    width: 100%;
    padding: 10px;
    background: transparent;
    color: var(--ctg-mid);
    border: 1px solid var(--ctg-border);
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    margin-top: 8px;
    transition: all 0.15s;
}

.ctg-btn-secondary:hover { background: var(--ctg-light); color: var(--ctg-black); }

.ctg-btn-outline {
    padding: 7px 16px;
    background: transparent;
    border: 1.5px solid var(--ctg-border);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    color: var(--ctg-black);
    transition: all 0.15s;
}

.ctg-btn-outline:hover { border-color: #3BB97A; background: #3BB97A; }

/* ── My Bookings ───────────────────────────────────────────── */
.ctg-my-bookings { background: var(--ctg-white); border-radius: var(--ctg-radius); padding: 18px; border: 1px solid var(--ctg-border); box-shadow: var(--ctg-shadow); }
.ctg-my-bookings h3 { font-size: 15px; font-weight: 700; margin-bottom: 14px; }

.ctg-booking-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--ctg-border); font-size: 13px; gap: 8px; flex-wrap: wrap; }
.ctg-booking-row:last-child { border-bottom: none; }
.ctg-booking-court { font-weight: 600; font-size: 14px; }
.ctg-booking-date  { color: var(--ctg-mid); font-size: 12px; }
.ctg-booking-right { display: flex; align-items: center; gap: 8px; }
.ctg-booking-amount { font-weight: 700; font-family: monospace; }

.ctg-badge { display: inline-block; padding: 2px 10px; border-radius: 12px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; }
.ctg-badge-pending   { background: #fef3c7; color: #92400e; }
.ctg-badge-approved  { background: #dcfce7; color: #166534; }
.ctg-badge-cancelled { background: #fee2e2; color: #991b1b; }

.ctg-upload-btn { font-size: 11px; padding: 3px 9px; background: var(--ctg-green); color: #fff; border: none; border-radius: 10px; cursor: pointer; font-weight: 600; }

/* ── Upload Modal ──────────────────────────────────────────── */
.ctg-modal-wrap {
    position: fixed; inset: 0; z-index: 9999;
    display: flex; align-items: center; justify-content: center; padding: 20px;
    background: rgba(0,0,0,.6); backdrop-filter: blur(4px);
}

.ctg-modal-box {
    background: var(--ctg-white); border-radius: 16px; padding: 32px 28px;
    width: 100%; max-width: 460px; max-height: 90vh; overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,.3); position: relative;
    animation: ctgModalIn 0.2s ease;
}

@keyframes ctgModalIn {
    from { transform: translateY(16px) scale(.98); opacity: 0; }
    to   { transform: translateY(0) scale(1); opacity: 1; }
}

.ctg-modal-close { position: absolute; top: 12px; right: 14px; background: none; border: none; font-size: 18px; cursor: pointer; color: var(--ctg-mid); padding: 4px; border-radius: 50%; }
.ctg-modal-close:hover { background: var(--ctg-light); }
.ctg-modal-logo { font-size: 36px; text-align: center; margin-bottom: 8px; }
.ctg-modal-box h2 { font-size: 20px; font-weight: 800; text-align: center; margin-bottom: 4px; }
.ctg-modal-sub { text-align: center; color: var(--ctg-mid); font-size: 13px; margin-bottom: 18px; }

#ctg-upload-summary { background: var(--ctg-light); border-radius: 8px; padding: 12px 14px; margin-bottom: 14px; font-size: 13px; }
.ctg-summary-row { display: flex; justify-content: space-between; padding: 3px 0; }
.ctg-summary-total { border-top: 1px solid var(--ctg-border); margin-top: 5px; padding-top: 5px; font-weight: 700; }

.ctg-drop-zone { border: 2px dashed var(--ctg-border); border-radius: 10px; padding: 24px; text-align: center; cursor: pointer; transition: all 0.2s; margin-bottom: 10px; }
.ctg-drop-zone:hover, .ctg-drop-zone.drag-over { border-color: var(--ctg-green); background: #f0fdf4; }
.ctg-drop-icon { font-size: 28px; margin-bottom: 6px; }
.ctg-drop-zone p { font-size: 13px; color: var(--ctg-mid); }
.ctg-drop-hint { font-size: 11px !important; margin-top: 3px; }
.ctg-upload-label { color: var(--ctg-green); font-weight: 600; cursor: pointer; }

.ctg-upload-progress { margin-bottom: 10px; font-size: 13px; color: var(--ctg-mid); text-align: center; }
.ctg-progress-bar { height: 5px; background: var(--ctg-border); border-radius: 10px; margin-bottom: 8px; overflow: hidden; }
.ctg-progress-fill { height: 100%; background: var(--ctg-green); border-radius: 10px; animation: ctgProgress 1.5s infinite; }
@keyframes ctgProgress { 0% { width: 10%; } 50% { width: 80%; } 100% { width: 95%; } }

.ctg-success-icon { font-size: 48px; text-align: center; margin: 16px 0 10px; }
#ctg-upload-success p { text-align: center; color: var(--ctg-mid); font-size: 14px; margin-bottom: 16px; }

/* ── Auth pages ────────────────────────────────────────────── */
.ctg-auth-wrap { display: flex; justify-content: center; padding: 40px 0; }
.ctg-auth-box { background: var(--ctg-white); border-radius: var(--ctg-radius); padding: 40px 36px; width: 100%; max-width: 460px; box-shadow: var(--ctg-shadow-md); border: 1px solid var(--ctg-border); }
.ctg-auth-logo { font-size: 44px; text-align: center; margin-bottom: 10px; }
.ctg-auth-box h2 { font-size: 26px; font-weight: 800; text-align: center; margin-bottom: 6px; }
.ctg-auth-sub { text-align: center; color: var(--ctg-mid); font-size: 14px; margin-bottom: 24px; }
.ctg-auth-switch { text-align: center; font-size: 13px; color: var(--ctg-mid); margin-top: 16px; }
.ctg-error-box { background: #fef2f2; color: #dc2626; padding: 10px 14px; border-radius: 8px; font-size: 13px; margin-bottom: 16px; border: 1px solid #fecaca; }

/* ── Forms ─────────────────────────────────────────────────── */
.ctg-field { margin-bottom: 14px; }
.ctg-field > label { display: block; font-size: 12px; font-weight: 600; color: var(--ctg-mid); text-transform: uppercase; letter-spacing: .6px; margin-bottom: 5px; }
.ctg-field input, .ctg-field textarea, .ctg-field select {
    width: 100%; padding: 10px 13px; border: 1.5px solid var(--ctg-border);
    border-radius: 8px; font-size: 14px; font-family: 'Inter', sans-serif;
    background: var(--ctg-white); transition: border-color 0.15s; outline: none;
}
.ctg-field input:focus, .ctg-field textarea:focus, .ctg-field select:focus { border-color: var(--ctg-green); }
.ctg-field textarea { resize: vertical; }
.ctg-field-hint { font-size: 12px; color: var(--ctg-mid); margin-top: 4px; margin-bottom: 10px; }
.ctg-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ── Dashboard ─────────────────────────────────────────────── */
.ctg-dashboard { padding-top: 24px; }

.ctg-welcome-banner { background: linear-gradient(135deg, var(--ctg-green), #22c55e); color: #fff; padding: 16px 20px; border-radius: var(--ctg-radius); margin-bottom: 20px; font-weight: 600; font-size: 15px; }

.ctg-dash-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 24px; flex-wrap: wrap; gap: 12px; }
.ctg-dash-header h1 { font-size: 28px; font-weight: 800; margin-bottom: 4px; }
.ctg-dash-header p  { color: var(--ctg-mid); font-size: 14px; }
.ctg-dash-status { display: flex; align-items: center; gap: 10px; }

.ctg-dash-tabs { display: flex; gap: 4px; margin-bottom: 24px; background: var(--ctg-light); border-radius: 10px; padding: 4px; border: 1px solid var(--ctg-border); flex-wrap: wrap; }

.ctg-dash-tab {
    padding: 8px 18px; border: none; border-radius: 8px; background: transparent;
    font-size: 13px; font-weight: 600; cursor: pointer; font-family: 'Inter', sans-serif;
    color: var(--ctg-mid); transition: all 0.15s; white-space: nowrap;
}

.ctg-dash-tab.active { background: var(--ctg-white); color: var(--ctg-black); box-shadow: var(--ctg-shadow); }

.ctg-dash-panel { display: none; }
.ctg-dash-panel.active { display: block; }

.ctg-form-sections { display: flex; flex-direction: column; gap: 0; }

.ctg-form-section { background: var(--ctg-white); border-radius: var(--ctg-radius); padding: 24px; margin-bottom: 16px; border: 1px solid var(--ctg-border); box-shadow: var(--ctg-shadow); }
.ctg-form-section h3 { font-size: 16px; font-weight: 700; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--ctg-border); }

.ctg-save-msg { padding: 10px 16px; border-radius: 8px; font-size: 13px; font-weight: 600; margin-bottom: 12px; }
.ctg-save-msg.success { background: #dcfce7; color: #166534; }
.ctg-save-msg.error   { background: #fee2e2; color: #991b1b; }

/* Amenities grid */
.ctg-amenities-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; }
.ctg-amenity-check { display: flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; padding: 6px 10px; border-radius: 6px; border: 1px solid var(--ctg-border); transition: all 0.15s; }
.ctg-amenity-check:hover { border-color: var(--ctg-green); background: #f0fdf4; }
.ctg-amenity-check input[type=checkbox] { accent-color: var(--ctg-green); }

/* Toggle switches */
.ctg-toggle-row { margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--ctg-border); }
.ctg-toggle-row:last-child { border-bottom: none; margin-bottom: 0; }
.ctg-toggle-label { display: flex; align-items: center; justify-content: space-between; cursor: pointer; gap: 12px; }
.ctg-toggle-info { flex: 1; }
.ctg-toggle-info strong { display: block; font-size: 14px; margin-bottom: 2px; }
.ctg-toggle-info span   { font-size: 12px; color: var(--ctg-mid); }
.ctg-toggle-cb { display: none; }
.ctg-toggle-slider {
    width: 44px; height: 24px; background: var(--ctg-border); border-radius: 12px;
    position: relative; transition: background 0.2s; flex-shrink: 0;
}
.ctg-toggle-slider::after {
    content: ''; position: absolute; width: 18px; height: 18px;
    background: #fff; border-radius: 50%; top: 3px; left: 3px;
    transition: transform 0.2s; box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.ctg-toggle-cb:checked + .ctg-toggle-slider { background: var(--ctg-green); }
.ctg-toggle-cb:checked + .ctg-toggle-slider::after { transform: translateX(20px); }
.ctg-toggle-sub { margin-top: 12px; padding: 12px; background: var(--ctg-light); border-radius: 8px; }
.ctg-toggle-sub label { font-size: 12px; font-weight: 600; color: var(--ctg-mid); display: block; margin-bottom: 4px; }

/* Peak hours */
.ctg-peak-row { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; flex-wrap: wrap; }
.ctg-peak-row input, .ctg-peak-row select { flex: 1; min-width: 80px; padding: 7px 10px; border: 1.5px solid var(--ctg-border); border-radius: 6px; font-size: 13px; font-family: 'Inter', sans-serif; }
.ctg-peak-del { background: none; border: none; color: #ccc; cursor: pointer; font-size: 18px; padding: 0 4px; }
.ctg-peak-del:hover { color: #ef4444; }

/* Courts list */
.ctg-court-row { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; flex-wrap: wrap; }
.ctg-court-name { flex: 2; min-width: 120px; padding: 8px 12px; border: 1.5px solid var(--ctg-border); border-radius: 8px; font-size: 14px; font-family: 'Inter', sans-serif; }
.ctg-court-type { flex: 1; min-width: 100px; padding: 8px 12px; border: 1.5px solid var(--ctg-border); border-radius: 8px; font-size: 14px; font-family: 'Inter', sans-serif; }
.ctg-rate-wrap { display: flex; align-items: center; gap: 4px; flex: 1; min-width: 80px; border: 1.5px solid var(--ctg-border); border-radius: 8px; padding: 0 10px; background: var(--ctg-white); }
.ctg-rate-wrap span { color: var(--ctg-mid); font-size: 14px; }
.ctg-court-rate { border: none; outline: none; width: 100%; padding: 8px 0; font-size: 14px; font-family: 'Inter', sans-serif; }
.ctg-court-del { background: none; border: none; color: #ccc; cursor: pointer; font-size: 18px; flex-shrink: 0; }
.ctg-court-del:hover { color: #ef4444; }

/* Payment method rows */
.ctg-pm-row { background: var(--ctg-light); border: 1px solid var(--ctg-border); border-radius: 10px; padding: 16px; margin-bottom: 12px; }
.ctg-pm-row-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; gap: 10px; }
.ctg-pm-type { flex: 1; padding: 8px 12px; border: 1.5px solid var(--ctg-border); border-radius: 8px; font-size: 14px; font-family: 'Inter', sans-serif; background: var(--ctg-white); }
.ctg-pm-del { background: none; border: 1px solid #fecaca; color: #ef4444; border-radius: 6px; padding: 5px 10px; font-size: 12px; cursor: pointer; font-weight: 600; white-space: nowrap; }
.ctg-pm-name, .ctg-pm-number { width: 100%; margin-bottom: 8px; padding: 8px 12px; border: 1.5px solid var(--ctg-border); border-radius: 8px; font-size: 14px; font-family: 'Inter', sans-serif; background: var(--ctg-white); }
.ctg-pm-qr-wrap { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.ctg-pm-qr-preview { width: 60px; height: 60px; border: 1px solid var(--ctg-border); border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 11px; color: var(--ctg-mid); overflow: hidden; background: var(--ctg-white); }
.ctg-pm-qr-preview img { width: 100%; height: 100%; object-fit: cover; }

/* Profile image upload */
.ctg-img-upload-row { display: flex; align-items: center; gap: 16px; }
.ctg-profile-preview { width: 70px; height: 70px; border-radius: 50%; border: 2px solid var(--ctg-border); overflow: hidden; display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--ctg-mid); background: var(--ctg-light); flex-shrink: 0; }
.ctg-profile-preview img { width: 100%; height: 100%; object-fit: cover; }

/* Gallery grid */
.ctg-gallery-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.ctg-gallery-item { width: 90px; height: 90px; border-radius: 8px; overflow: hidden; position: relative; border: 1px solid var(--ctg-border); }
.ctg-gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.ctg-gallery-del { position: absolute; top: 3px; right: 3px; background: rgba(0,0,0,.6); color: #fff; border: none; border-radius: 50%; width: 20px; height: 20px; font-size: 12px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.ctg-gallery-add { width: 90px; height: 90px; border: 2px dashed var(--ctg-border); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 13px; color: var(--ctg-mid); cursor: pointer; font-weight: 600; transition: all 0.15s; }
.ctg-gallery-add:hover { border-color: var(--ctg-green); color: var(--ctg-green); }

/* Venue bookings table */
.ctg-vb-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ctg-vb-table th { background: var(--ctg-black); color: #fff; padding: 10px 12px; text-align: left; font-size: 12px; }
.ctg-vb-table td { padding: 10px 12px; border-bottom: 1px solid var(--ctg-border); }
.ctg-vb-table tr:last-child td { border-bottom: none; }
.ctg-approve-btn { background: var(--ctg-green); color: #fff; border: none; border-radius: 6px; padding: 4px 10px; font-size: 11px; font-weight: 600; cursor: pointer; margin-right: 4px; }
.ctg-cancel-btn  { background: #ef4444; color: #fff; border: none; border-radius: 6px; padding: 4px 10px; font-size: 11px; font-weight: 600; cursor: pointer; }

/* Misc */
.ctg-loading { padding: 30px; text-align: center; color: var(--ctg-mid); font-size: 14px; }
.ctg-not-found { padding: 60px 20px; text-align: center; }
.ctg-msg-box { background: var(--ctg-light); border: 1px solid var(--ctg-border); border-radius: var(--ctg-radius); padding: 24px; text-align: center; font-size: 14px; color: var(--ctg-mid); margin: 20px 0; }

/* Toast */
.ctg-toast { position: fixed; bottom: 24px; right: 20px; background: var(--ctg-black); color: #141413; padding: 12px 18px; border-radius: 10px; font-size: 14px; z-index: 99999; box-shadow: 0 6px 20px rgba(0,0,0,.3); animation: ctgToast 0.3s ease; max-width: 320px; font-family: 'Inter', sans-serif; }
.ctg-toast.success { border-left: 4px solid var(--ctg-green); }
.ctg-toast.error   { border-left: 4px solid #ef4444; }
@keyframes ctgToast { from { transform: translateX(30px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 900px) {
    .ctg-venue-layout { grid-template-columns: 1fr; }
    .ctg-booking-panel { position: static; }
    .ctg-gallery-strip { grid-template-columns: repeat(3, 1fr); height: 200px; }
}

@media (max-width: 768px) {
    .ctg-venues-hero h1 { font-size: 28px; }
    .ctg-venues-grid { grid-template-columns: 1fr; }
    .ctg-form-row { grid-template-columns: 1fr; }
    .ctg-dash-tabs { overflow-x: auto; }
    .ctg-gallery-strip { grid-template-columns: repeat(2, 1fr); height: 160px; }
    .ctg-cta-box { padding: 24px 20px; }
    .ctg-cta-box h3 { font-size: 20px; }
    .ctg-auth-box { padding: 28px 20px; }
    .ctg-toast { left: 10px; right: 10px; max-width: 100%; }
    .ctg-amenities-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Dashboard Layout ──────────────────────────────────────── */
.ctg-dash-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    min-height: 80vh;
    gap: 0;
    background: var(--ctg-light);
}

/* ── Sidebar Nav ───────────────────────────────────────────── */
.ctg-dash-nav {
    background: var(--ctg-black);
    color: #fff;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 80vh;
    border-radius: var(--ctg-radius) 0 0 var(--ctg-radius);
    overflow: hidden;
}

.ctg-dash-nav-logo {
    padding: 20px 18px 16px;
    font-size: 16px;
    font-weight: 800;
    border-bottom: 1px solid rgba(255,255,255,.08);
    display: flex;
    align-items: center;
    gap: 8px;
}

.ctg-dash-nav-logo span { font-family: 'Inter', sans-serif; }

.ctg-dash-venue-pill {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    background: rgba(255,255,255,.05);
}

.ctg-dash-venue-pill img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,.2); }
.ctg-dash-venue-name { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 140px; }

.ctg-nav-group { padding: 10px 0 4px; }
.ctg-nav-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: rgba(255,255,255,.35); padding: 4px 16px 6px; }

.ctg-nav-item {
    display: block;
    width: 100%;
    text-align: left;
    padding: 9px 16px;
    background: none;
    border: none;
    color: rgba(255,255,255,.7);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: all 0.15s;
    border-radius: 0;
}

.ctg-nav-item:hover { background: rgba(255,255,255,.08); color: #fff; }
.ctg-nav-item.active { background: var(--ctg-green); color: #fff; font-weight: 600; }

.ctg-dash-nav-footer {
    margin-top: auto;
    padding: 16px;
    border-top: 1px solid rgba(255,255,255,.08);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ctg-dash-nav-footer a { color: rgba(255,255,255,.5); font-size: 12px; text-decoration: none; transition: color 0.15s; }
.ctg-dash-nav-footer a:hover { color: #fff; }

/* ── Content Area ──────────────────────────────────────────── */
.ctg-dash-content { padding: 24px 28px; overflow-y: auto; }

.ctg-tab-panel { display: none; }
.ctg-tab-panel.active { display: block; }

.ctg-panel-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 24px; flex-wrap: wrap; gap: 12px; }
.ctg-panel-header h1 { font-size: 26px; font-weight: 800; margin: 0; }
.ctg-panel-header p { color: var(--ctg-mid); font-size: 14px; margin: 4px 0 0; }

/* ── Getting Started ───────────────────────────────────────── */
.ctg-progress-card { background: var(--ctg-white); border-radius: var(--ctg-radius); padding: 18px 20px; margin-bottom: 20px; border: 1px solid var(--ctg-border); box-shadow: var(--ctg-shadow); }
.ctg-progress-label { display: flex; justify-content: space-between; font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.ctg-progress-track { height: 8px; background: var(--ctg-border); border-radius: 10px; overflow: hidden; }
.ctg-progress-fill-bar { height: 100%; background: var(--ctg-green); border-radius: 10px; transition: width 0.6s ease; }

.ctg-steps-list { display: flex; flex-direction: column; gap: 12px; }

.ctg-step {
    background: var(--ctg-white);
    border-radius: var(--ctg-radius);
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid var(--ctg-border);
    box-shadow: var(--ctg-shadow);
    transition: all 0.15s;
}

.ctg-step.done { border-color: #86efac; background: #f0fdf4; }

.ctg-step-check {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--ctg-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
    color: var(--ctg-mid);
}

.ctg-step.done .ctg-step-check { background: var(--ctg-green); color: #fff; }

.ctg-step-content { flex: 1; }
.ctg-step-title { font-size: 14px; font-weight: 700; margin-bottom: 2px; }
.ctg-step-sub   { font-size: 12px; color: var(--ctg-mid); line-height: 1.5; }
.ctg-optional-badge { display: inline-block; background: #fef3c7; color: #92400e; font-size: 10px; font-weight: 700; padding: 1px 8px; border-radius: 10px; margin-left: 6px; vertical-align: middle; }

/* ── Stats Grid ────────────────────────────────────────────── */
.ctg-stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 24px; }

.ctg-stat-card {
    background: var(--ctg-white);
    border-radius: var(--ctg-radius);
    padding: 20px 18px;
    border: 1px solid var(--ctg-border);
    box-shadow: var(--ctg-shadow);
    text-align: center;
}

.ctg-stat-icon  { font-size: 24px; margin-bottom: 8px; }
.ctg-stat-value { font-size: 28px; font-weight: 800; font-family: 'Inter', sans-serif; margin-bottom: 4px; }
.ctg-stat-label { font-size: 12px; color: var(--ctg-mid); font-weight: 500; }

.ctg-overview-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.ctg-activity-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--ctg-border); font-size: 13px; }
.ctg-activity-row:last-child { border-bottom: none; }
.ctg-activity-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.ctg-activity-dot.approved  { background: var(--ctg-green); }
.ctg-activity-dot.pending   { background: #f59e0b; }
.ctg-activity-dot.cancelled { background: #ef4444; }
.ctg-activity-info { flex: 1; }
.ctg-activity-amount { font-weight: 700; color: var(--ctg-green); }

.ctg-slot-bar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 13px; }
.ctg-slot-bar-label { width: 40px; text-align: right; color: var(--ctg-mid); }
.ctg-slot-bar-track { flex: 1; height: 10px; background: var(--ctg-light); border-radius: 5px; overflow: hidden; }
.ctg-slot-bar-fill  { height: 100%; background: var(--ctg-green); border-radius: 5px; }
.ctg-slot-bar-count { width: 24px; font-weight: 600; }

/* ── Inner Tabs ────────────────────────────────────────────── */
.ctg-inner-tabs { display: flex; gap: 4px; margin-bottom: 16px; background: var(--ctg-light); border-radius: 10px; padding: 4px; border: 1px solid var(--ctg-border); width: fit-content; }
.ctg-inner-tab { padding: 7px 18px; border: none; border-radius: 8px; background: transparent; font-size: 13px; font-weight: 600; cursor: pointer; font-family: 'Inter', sans-serif; color: var(--ctg-mid); transition: all 0.15s; }
.ctg-inner-tab.active { background: var(--ctg-white); color: var(--ctg-black); box-shadow: var(--ctg-shadow); }

.ctg-inner-panel { display: none; }
.ctg-inner-panel.active { display: block; }

/* ── Bookings Filters ──────────────────────────────────────── */
.ctg-bookings-filters { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.ctg-search-input { flex: 1; min-width: 200px; padding: 9px 14px; border: 1.5px solid var(--ctg-border); border-radius: 8px; font-size: 14px; font-family: 'Inter', sans-serif; outline: none; }
.ctg-search-input:focus { border-color: var(--ctg-green); }
.ctg-select { padding: 9px 14px; border: 1.5px solid var(--ctg-border); border-radius: 8px; font-size: 13px; font-family: 'Inter', sans-serif; background: var(--ctg-white); outline: none; cursor: pointer; }

/* ── Bookings Table ────────────────────────────────────────── */
.ctg-bk-table { width: 100%; border-collapse: collapse; font-size: 13px; background: var(--ctg-white); border-radius: var(--ctg-radius); overflow: hidden; box-shadow: var(--ctg-shadow); border: 1px solid var(--ctg-border); }
.ctg-bk-table th { background: var(--ctg-black); color: #fff; padding: 10px 12px; text-align: left; font-size: 12px; font-weight: 600; white-space: nowrap; }
.ctg-bk-table td { padding: 10px 12px; border-bottom: 1px solid var(--ctg-border); vertical-align: middle; }
.ctg-bk-table tr:last-child td { border-bottom: none; }
.ctg-bk-table tr:hover td { background: var(--ctg-light); }

/* ── Reschedules ───────────────────────────────────────────── */
.ctg-reschedule-card { background: var(--ctg-white); border-radius: var(--ctg-radius); padding: 16px 18px; margin-bottom: 12px; border: 1px solid var(--ctg-border); box-shadow: var(--ctg-shadow); display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.ctg-reschedule-info { flex: 1; }
.ctg-reschedule-court { font-weight: 700; margin-bottom: 4px; }
.ctg-reschedule-dates { font-size: 13px; color: var(--ctg-mid); }
.ctg-reschedule-arrow { color: var(--ctg-green); font-weight: 700; margin: 0 6px; }
.ctg-reschedule-actions { display: flex; gap: 8px; }
.ctg-approve-resched { background: var(--ctg-green); color: #fff; border: none; border-radius: 6px; padding: 6px 14px; font-size: 12px; font-weight: 700; cursor: pointer; }
.ctg-deny-resched    { background: #ef4444; color: #fff; border: none; border-radius: 6px; padding: 6px 14px; font-size: 12px; font-weight: 700; cursor: pointer; }

/* ── Venue Status Card ─────────────────────────────────────── */
.ctg-venue-status-card { background: var(--ctg-white); border-radius: var(--ctg-radius); padding: 20px; display: flex; justify-content: space-between; align-items: center; border: 1px solid var(--ctg-border); box-shadow: var(--ctg-shadow); gap: 16px; flex-wrap: wrap; }
.ctg-venue-status-left { display: flex; align-items: center; gap: 14px; }
.ctg-venue-status-img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; border: 2px solid var(--ctg-border); }
.ctg-venue-status-left h2 { font-size: 20px; font-weight: 800; margin: 0 0 6px; }
.ctg-venue-status-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--ctg-mid); }
.ctg-venue-status-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.ctg-accepting-toggle { display: flex; align-items: center; gap: 10px; }
.ctg-accepting-label.accepting { color: var(--ctg-green); font-weight: 700; font-size: 13px; }
.ctg-accepting-label.not-accepting { color: #ef4444; font-weight: 700; font-size: 13px; }
#ctg-accepting-label { font-size: 13px; font-weight: 700; }
#ctg-accepting-label.accepting { color: #16a34a; }
#ctg-accepting-label.not-accepting { color: #ef4444; }

/* ── Open Play ─────────────────────────────────────────────── */
.ctg-sessions-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }

.ctg-session-card { background: var(--ctg-white); border-radius: var(--ctg-radius); padding: 16px; border: 1px solid var(--ctg-border); box-shadow: var(--ctg-shadow); }
.ctg-session-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; gap: 8px; }
.ctg-session-header h4 { font-size: 15px; font-weight: 700; margin: 0; }
.ctg-session-actions { display: flex; gap: 6px; flex-shrink: 0; }
.ctg-session-meta { display: flex; flex-wrap: wrap; gap: 10px; font-size: 12px; color: var(--ctg-mid); margin-bottom: 10px; }
.ctg-session-desc { font-size: 13px; color: var(--ctg-mid); margin-bottom: 10px; }
.ctg-session-bar { height: 6px; background: var(--ctg-border); border-radius: 10px; overflow: hidden; }
.ctg-session-bar div { height: 100%; background: var(--ctg-green); border-radius: 10px; transition: width 0.4s; }

.ctg-days-grid { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.ctg-day-check { display: flex; align-items: center; gap: 5px; font-size: 13px; cursor: pointer; padding: 5px 10px; border-radius: 6px; border: 1px solid var(--ctg-border); }
.ctg-day-check:has(input:checked) { border-color: var(--ctg-green); background: #f0fdf4; }

/* ── Block Slots ───────────────────────────────────────────── */
.ctg-block-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--ctg-border); font-size: 13px; gap: 10px; }
.ctg-block-row:last-child { border-bottom: none; }

/* ── Team ──────────────────────────────────────────────────── */
.ctg-manager-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--ctg-border); }
.ctg-manager-row:last-child { border-bottom: none; }
.ctg-manager-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--ctg-green); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 16px; flex-shrink: 0; }
.ctg-manager-info { flex: 1; }
.ctg-manager-info strong { display: block; font-size: 14px; }
.ctg-manager-info span   { font-size: 12px; color: var(--ctg-mid); }

/* ── Profile ───────────────────────────────────────────────── */
.ctg-profile-avatar-big { width: 64px; height: 64px; border-radius: 50%; background: var(--ctg-green); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 800; flex-shrink: 0; }

/* ── Card ──────────────────────────────────────────────────── */
.ctg-card { background: var(--ctg-white); border-radius: var(--ctg-radius); padding: 20px; border: 1px solid var(--ctg-border); box-shadow: var(--ctg-shadow); }
.ctg-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--ctg-border); }
.ctg-card h4 { font-size: 14px; font-weight: 700; margin-bottom: 14px; color: var(--ctg-mid); }

/* ── Empty State ───────────────────────────────────────────── */
.ctg-empty-state { text-align: center; padding: 60px 20px; }
.ctg-empty-icon { font-size: 56px; margin-bottom: 16px; }
.ctg-empty-state h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.ctg-empty-state p  { color: var(--ctg-mid); font-size: 14px; margin-bottom: 20px; }

/* ── Customer bookings table ───────────────────────────────── */
.ctg-my-bk-card { background: var(--ctg-white); border-radius: var(--ctg-radius); padding: 14px 16px; margin-bottom: 10px; border: 1px solid var(--ctg-border); display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.ctg-my-bk-venue { font-weight: 700; font-size: 14px; }
.ctg-my-bk-court { color: var(--ctg-mid); font-size: 13px; }
.ctg-my-bk-date  { font-size: 12px; color: var(--ctg-mid); margin-top: 2px; }
.ctg-my-bk-right { display: flex; align-items: center; gap: 8px; }
.ctg-my-bk-amount { font-weight: 700; }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .ctg-stat-grid { grid-template-columns: repeat(2, 1fr); }
    .ctg-overview-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .ctg-dash-layout { grid-template-columns: 1fr; }
    .ctg-dash-nav { min-height: auto; border-radius: var(--ctg-radius) var(--ctg-radius) 0 0; }
    .ctg-dash-content { padding: 16px; }
    .ctg-stat-grid { grid-template-columns: repeat(2, 1fr); }
    .ctg-sessions-grid { grid-template-columns: 1fr; }
    .ctg-overview-grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════════════
   VENUE PAGE - Matching courtogo.com reference UI
══════════════════════════════════════════════════════════════ */

.ctg-venue-page { padding: 0; }

/* Back bar */
.ctg-back-bar { padding: 16px 0 10px; font-size: 14px; }
.ctg-back-bar a { color: var(--ctg-mid); text-decoration: none; display: flex; align-items: center; gap: 6px; font-weight: 500; }
.ctg-back-bar a:hover { color: var(--ctg-black); }

/* Venue Header */
.ctg-vp-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px 0 16px;
    gap: 16px;
    flex-wrap: wrap;
}

.ctg-vp-header-left { display: flex; align-items: flex-start; gap: 16px; }

.ctg-vp-logo {
    width: 80px; height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--ctg-border);
    flex-shrink: 0;
}

.ctg-vp-header-info h1 { font-size: 26px; font-weight: 800; margin: 0 0 6px; letter-spacing: -.5px; }

.ctg-vp-location {
    display: flex;
    align-items: flex-start;
    gap: 4px;
    font-size: 14px;
    color: var(--ctg-mid);
    line-height: 1.5;
    margin-bottom: 6px;
}

.ctg-vp-location svg { flex-shrink: 0; margin-top: 2px; }
.ctg-vp-desc { font-size: 14px; color: var(--ctg-mid); margin: 0; }

.ctg-vp-header-right { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }

.ctg-vp-available-badge {
    background: var(--ctg-green);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 20px;
}

/* Tabs */
.ctg-vp-tabs {
    display: flex;
    gap: 2px;
    border-bottom: 2px solid var(--ctg-border);
    margin-bottom: 24px;
}

.ctg-vp-tab {
    padding: 10px 20px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    color: var(--ctg-mid);
    transition: all 0.15s;
}

.ctg-vp-tab:hover { background: #3bb97a; color: #ffffff; }
.ctg-vp-tab.active { background: #3bb97a; color: #ffffff; border-bottom-color: var(--ctg-black); }

.ctg-vp-panel { display: none; }
.ctg-vp-panel.active { display: block; }

/* Section title */
.ctg-vp-section-title { font-size: 22px; font-weight: 800; margin: 0 0 6px; }
.ctg-vp-section-sub   { font-size: 14px; color: var(--ctg-mid); margin: 0 0 20px; }

/* Date nav */
.ctg-vp-date-nav {
    display: inline-flex;
    align-items: center;
    gap: 0;
    border: 1.5px solid var(--ctg-border);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 16px;
    background: var(--ctg-white);
}

.ctg-vp-date-nav button {
    background: var(--ctg-white);
    border: none;
    padding: 9px 14px;
    cursor: pointer;
    color: var(--ctg-mid);
    display: flex;
    align-items: center;
    transition: background 0.15s;
}

.ctg-vp-date-nav button:hover { background: var(--ctg-light); }

.ctg-vp-date-display {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    font-size: 14px;
    font-weight: 600;
    border-left: 1.5px solid var(--ctg-border);
    border-right: 1.5px solid var(--ctg-border);
    min-width: 160px;
    justify-content: center;
    overflow: visible;
    position: relative;
    
}

/* Legend */
.ctg-vp-legend {
    display: flex;
    gap: 16px;
    align-items: center;
    font-size: 13px;
    color: var(--ctg-mid);
    margin-bottom: 14px;
    flex-wrap: wrap;
}

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

.ctg-vp-dot {
    width: 14px; height: 14px; border-radius: 3px; display: inline-block;
}

.ctg-vp-dot.available { background: #d1fae5; border: 1px solid #6ee7b7; }
.ctg-vp-dot.selected  { background: var(--ctg-green); }
.ctg-vp-legend-x      { font-size: 13px; }
.ctg-vp-legend-pending { font-size: 13px; }

/* Timetable */
.ctg-vp-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--ctg-border);
    border-radius: 10px;
    margin-bottom: 20px;
    background: var(--ctg-white);
}

.ctg-vp-table-wrap table {
    width: 100%;
    border-collapse: collapse;
    min-width: 500px;
}

.ctg-vp-table-wrap thead th {
    background: var(--ctg-white);
    padding: 12px 16px;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    border-bottom: 2px solid var(--ctg-border);
    white-space: nowrap;
}

.ctg-vp-table-wrap thead th:first-child { text-align: left; width: 110px; }

.ctg-vp-court-header { font-weight: 700; font-size: 14px; display: block; }
.ctg-vp-court-rate   { font-size: 12px; color: var(--ctg-mid); font-weight: 400; }

.ctg-vp-table-wrap tbody td {
    border: 1px solid var(--ctg-border);
    padding: 0;
    height: 52px;
}

.ctg-vp-table-wrap tbody td:first-child {
    font-size: 13px;
    font-weight: 600;
    color: var(--ctg-mid);
    padding: 0 14px;
    white-space: nowrap;
    background: var(--ctg-white);
    border-right: 2px solid var(--ctg-border);
}

/* Slot buttons */
.ctg-slot {
    width: 100%; height: 100%;
    cursor: pointer;
    border: none;
    background: #f0fdf4;
    font-size: 13px;
    font-weight: 500;
    color: #15803d;
    transition: background 0.1s;
    font-family: 'Inter', sans-serif;
}

.ctg-slot:hover     { background: #bbf7d0; }
.ctg-slot.selected  { background: var(--ctg-green); color: #fff; font-weight: 700; }
.ctg-slot.booked    { background: var(--ctg-light); color: var(--ctg-mid); cursor: not-allowed; font-weight: 400; }
.ctg-slot.past      { background: var(--ctg-light); color: #ccc; cursor: not-allowed; }
.ctg-slot.unavailable { background: var(--ctg-light); color: var(--ctg-mid); cursor: not-allowed; }
.ctg-slot.pending   { background: #fb923c !important; color: #fff !important; cursor: not-allowed; }

/* Booking Summary Box */
.ctg-vp-summary-box {
    background: var(--ctg-white);
    border: 1.5px solid var(--ctg-border);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}

.ctg-vp-summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--ctg-border);
}

.ctg-vp-summary-header h3 { font-size: 16px; font-weight: 700; margin: 0; }
.ctg-vp-clear-btn { background: none; border: none; font-size: 13px; color: var(--ctg-mid); cursor: pointer; font-weight: 500; }
.ctg-vp-clear-btn:hover { color: var(--ctg-black); }
.ctg-vp-summary-date { font-size: 14px; color: var(--ctg-mid); margin-bottom: 14px; }

.ctg-vp-summary-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid var(--ctg-border);
    gap: 12px;
}

.ctg-vp-summary-item:last-of-type { border-bottom: none; }

.ctg-vp-si-left h4 { font-size: 15px; font-weight: 700; margin: 0 0 4px; }
.ctg-vp-si-tags { display: flex; gap: 6px; margin-bottom: 4px; flex-wrap: wrap; }
.ctg-vp-si-tag  { background: var(--ctg-light); border: 1px solid var(--ctg-border); border-radius: 20px; font-size: 11px; padding: 2px 10px; color: var(--ctg-mid); }
.ctg-vp-si-time { font-size: 13px; color: var(--ctg-mid); }
.ctg-vp-si-right { text-align: right; }
.ctg-vp-si-amount { font-size: 16px; font-weight: 700; }
.ctg-vp-si-rate   { font-size: 12px; color: var(--ctg-mid); }
.ctg-vp-si-remove { background: none; border: none; color: #ccc; cursor: pointer; font-size: 18px; display: block; margin-top: 4px; }
.ctg-vp-si-remove:hover { color: #ef4444; }

.ctg-vp-summary-subtotal {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--ctg-mid);
    padding: 12px 0 8px;
    border-top: 1px solid var(--ctg-border);
    margin-top: 4px;
}

.ctg-vp-summary-total {
    display: flex;
    justify-content: space-between;
    font-size: 20px;
    font-weight: 800;
    padding-bottom: 16px;
}

.ctg-vp-summary-total span:last-child { color: var(--ctg-green); }

.ctg-vp-book-btn {
    display: block;
    width: 100%;
    padding: 14px;
    background: var(--ctg-green);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: background 0.15s;
}

.ctg-vp-book-btn:hover { background: var(--ctg-green2); }
.ctg-vp-book-btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* Payment section */
.ctg-vp-payment-section { margin-top: 24px; }
.ctg-vp-payment-section h3 { font-size: 16px; font-weight: 700; margin-bottom: 14px; }
.ctg-vp-payment-grid { display: flex; gap: 12px; flex-wrap: wrap; }
.ctg-vp-pm-card { background: var(--ctg-white); border: 1.5px solid var(--ctg-border); border-radius: 10px; padding: 14px; text-align: center; min-width: 140px; }
.ctg-vp-pm-type   { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .7px; color: var(--ctg-mid); margin-bottom: 8px; }
.ctg-vp-pm-qr { width: 80px !important; max-width: 80px !important; height: 80px !important; object-fit: contain; margin: 0 auto 8px; border-radius: 6px; display: block; }
.ctg-vp-pm-number { font-size: 16px; font-weight: 800; color: var(--ctg-green); }
.ctg-vp-pm-name   { font-size: 12px; color: var(--ctg-mid); }

/* About tab */
.ctg-vp-about-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.ctg-vp-about-card { background: var(--ctg-white); border: 1px solid var(--ctg-border); border-radius: 10px; padding: 18px; }
.ctg-vp-about-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 12px; }
.ctg-vp-about-card p { font-size: 14px; color: var(--ctg-mid); margin-bottom: 6px; }
.ctg-vp-about-card a { color: var(--ctg-green); }

/* Photos tab */
.ctg-vp-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.ctg-vp-gallery-item { aspect-ratio: 1; background-size: cover; background-position: center; border-radius: 8px; background-color: var(--ctg-light); }

/* Open play tab */
.ctg-vp-op-card { background: var(--ctg-white); border: 1.5px solid var(--ctg-border); border-radius: 10px; padding: 16px; margin-bottom: 12px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.ctg-vp-op-title { font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.ctg-vp-op-meta  { font-size: 13px; color: var(--ctg-mid); }
.ctg-vp-op-join  { background: var(--ctg-green); color: #fff; border: none; border-radius: 8px; padding: 8px 18px; font-size: 13px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.ctg-vp-op-full  { background: var(--ctg-light); color: var(--ctg-mid); border: none; border-radius: 8px; padding: 8px 18px; font-size: 13px; font-weight: 600; cursor: not-allowed; }

/* Responsive */
@media (max-width: 768px) {
    .ctg-vp-header { flex-direction: column; }
    .ctg-vp-header-right { flex-direction: row; align-items: center; }
    .ctg-vp-tabs { overflow-x: auto; }
    .ctg-vp-about-grid { grid-template-columns: 1fr; }
    .ctg-vp-gallery { grid-template-columns: repeat(2, 1fr); }
}

/* ── Register Hero Section ─────────────────────────────────── */
.ctg-reg-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    min-height: 80vh;
    padding: 60px 0;
}

.ctg-reg-hero-title {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -2px;
    color: var(--ctg-black);
    margin-bottom: 20px;
}

.ctg-reg-hero-brand {
    color: var(--ctg-green);
}

.ctg-reg-hero-sub {
    font-size: 20px;
    color: var(--ctg-mid);
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 520px;
}

.ctg-reg-features {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.ctg-reg-feature {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.ctg-reg-feature-icon {
    width: 36px;
    height: 36px;
    background: #dcfce7;
    color: var(--ctg-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 2px;
}

.ctg-reg-feature-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--ctg-black);
    margin-bottom: 4px;
}

.ctg-reg-feature-desc {
    font-size: 15px;
    color: var(--ctg-mid);
    line-height: 1.5;
}

.ctg-reg-hero-right {
    display: flex;
    justify-content: center;
}

.ctg-reg-hero-right .ctg-auth-box {
    width: 100%;
    max-width: 460px;
}

@media (max-width: 900px) {
    .ctg-reg-hero {
        grid-template-columns: 1fr;
        gap: 40px;
        min-height: auto;
        padding: 40px 0;
    }
    .ctg-reg-hero-title { font-size: 36px; }
    .ctg-reg-hero-sub   { font-size: 16px; }
}

/* ── About Page ─────────────────────────────────────────── */
.ctg-about-page { padding: 0 0 60px; }

.ctg-about-hero {
    padding: 48px 0 36px;
    border-bottom: 1px solid var(--ctg-border);
    margin-bottom: 40px;
}
.ctg-about-hero h1 { font-size: 36px; font-weight: 800; margin: 0 0 10px; letter-spacing: -.5px; }
.ctg-about-hero p  { font-size: 18px; color: var(--ctg-mid); margin: 0; }

.ctg-about-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 40px;
    align-items: start;
}

.ctg-about-section {
    background: var(--ctg-white);
    border: 1px solid var(--ctg-border);
    border-radius: 12px;
    padding: 28px;
    margin-bottom: 20px;
}
.ctg-about-section h2 { font-size: 22px; font-weight: 800; margin: 0 0 16px; padding-bottom: 12px; border-bottom: 2px solid var(--ctg-green); display: inline-block; }
.ctg-about-section h3 { font-size: 15px; font-weight: 700; margin: 20px 0 10px; color: var(--ctg-black); }
.ctg-about-section p  { font-size: 15px; color: var(--ctg-mid); line-height: 1.7; margin-bottom: 12px; }
.ctg-about-section ul { padding-left: 20px; margin: 0 0 12px; }
.ctg-about-section ul li { font-size: 14px; color: var(--ctg-mid); line-height: 1.8; margin-bottom: 4px; }
.ctg-about-section ul li strong { color: var(--ctg-black); }
.ctg-about-section a { color: var(--ctg-green); text-decoration: none; }
.ctg-about-section a:hover { text-decoration: underline; }

.ctg-about-terms { margin-top: 8px; }
.ctg-terms-item { margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--ctg-border); }
.ctg-terms-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.ctg-about-updated { font-size: 13px; color: var(--ctg-mid); font-style: italic; margin-top: 20px; }
.ctg-about-note    { font-size: 13px; color: var(--ctg-mid); background: var(--ctg-light); border-radius: 8px; padding: 12px 16px; line-height: 1.6; }

/* Sidebar */
.ctg-about-contact-card,
.ctg-about-quick-links {
    background: var(--ctg-white);
    border: 1px solid var(--ctg-border);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    position: sticky;
    top: 20px;
}
.ctg-about-contact-card h3,
.ctg-about-quick-links h3 { font-size: 15px; font-weight: 700; margin: 0 0 16px; padding-bottom: 10px; border-bottom: 1px solid var(--ctg-border); }

.ctg-contact-item { margin-bottom: 14px; }
.ctg-contact-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--ctg-mid); margin-bottom: 4px; }
.ctg-contact-item span,
.ctg-contact-item a { font-size: 14px; color: var(--ctg-black); text-decoration: none; line-height: 1.5; display: block; }
.ctg-contact-item a:hover { color: var(--ctg-green); }

.ctg-about-quick-links a { display: block; font-size: 14px; color: var(--ctg-black); text-decoration: none; padding: 8px 0; border-bottom: 1px solid var(--ctg-border); }
.ctg-about-quick-links a:last-child { border-bottom: none; }
.ctg-about-quick-links a:hover { color: var(--ctg-green); }

@media (max-width: 768px) {
    .ctg-about-layout { grid-template-columns: 1fr; }
    .ctg-about-hero h1 { font-size: 26px; }
    .ctg-about-contact-card,
    .ctg-about-quick-links { position: static; }
}