/* ============================================
   Mridha Cricket Ground - Admin Panel
   ============================================ */
@import url('https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css');

:root {
    --color-primary: #0a1628;
    --color-primary-light: #1e3a5f;
    --color-gold: #d4af37;
    --login-pink: #f9b4af;
    --login-pink-light: #ffd4d1;
    --login-pink-dark: #ff8e8b;
    --login-dark-bg: #0f172a;
    --login-dark-bg-light: #1e293b;
    --login-dark-accent: #3b82f6;
    --color-success: #10b981;
    --color-danger: #ef4444;
    --color-warning: #f59e0b;
    --color-info: #3b82f6;
    --color-white: #ffffff;
    --color-gray-50: #f9fafb;
    --color-gray-100: #f3f4f6;
    --color-gray-200: #e5e7eb;
    --color-gray-300: #d1d5db;
    --color-gray-600: #4b5563;
    --color-gray-700: #374151;
    --color-gray-800: #1f2937;
    --color-gray-900: #111827;
}

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

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--color-gray-50);
    color: var(--color-gray-900);
    line-height: 1.6;
}

/* ============================================
   LOGIN PAGE - Dark mode theme
   ============================================ */

.login-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    background: var(--login-dark-bg);
}

.login-page-top {
    height: 38vh;
    min-height: 200px;
    background: var(--login-dark-bg);
    position: relative;
    overflow: hidden;
}

.login-matrix-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.login-page-pattern {
    position: absolute;
    inset: 0;
    z-index: 1;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(30, 41, 59, 0.8) 0%, transparent 40%);
    opacity: 0.6;
    pointer-events: none;
}

.login-developer-credit {
    position: absolute;
    top: max(1.5rem, env(safe-area-inset-top));
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.login-developer-logo {
    height: 32px;
    width: auto;
    object-fit: contain;
}

.login-developer-text {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    font-family: 'Orbitron', sans-serif;
}

.login-page-bottom {
    flex: 1;
    background: radial-gradient(circle at top left, #1f2937 0%, #020617 60%);
    border-radius: 32px 32px 0 0;
    margin-top: -24px;
    position: relative;
    z-index: 1;
    padding: 2.5rem 1.5rem 2rem;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.4);
}

.login-form-wrap {
    max-width: 400px;
    margin: 0 auto;
}

.login-logo-wrap {
    position: relative;
    display: flex;
    justify-content: center;
    margin-top: -70px;
    margin-bottom: 0.5rem;
}

.login-logo-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(201, 162, 39, 0.5);
}

.login-signin-card {
    background:
        radial-gradient(circle at top left, rgba(56, 189, 248, 0.18), transparent 55%),
        linear-gradient(145deg, rgba(15, 23, 42, 0.92), rgba(2, 6, 23, 0.92));
    border-radius: 20px;
    padding: 1.75rem 1.5rem;
    border: none;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow:
        0 22px 55px rgba(2, 6, 23, 0.85);
}

.login-heading {
    font-size: 1.75rem;
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 0.25rem;
    letter-spacing: -0.02em;
}

.login-subtitle {
    font-size: 0.8125rem;
    color: #94a3b8;
    margin-bottom: 1.5rem;
}

.login-heading-underline {
    position: relative;
}

.login-heading-underline::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 2px;
    width: 100%;
    height: 3px;
    background: var(--login-dark-accent);
    border-radius: 2px;
}

.login-form .alert-error {
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.3);
    font-size: 0.875rem;
}

.login-form-group {
    margin-bottom: 1.25rem;
}

.login-form-group label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #cbd5e1;
    margin-bottom: 0.5rem;
}

.login-input-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    background: transparent;
    border-radius: 0;
    border: none;
    border-bottom: 1px solid rgba(148, 163, 184, 0.6);
    box-shadow: none;
    transition: border-color 0.2s, transform 0.15s;
}

.login-input-wrap:focus-within {
    border-bottom-color: #38bdf8;
    transform: translateY(-1px);
}

.login-input-icon {
    color: #64748b;
    font-size: 1.125rem;
    flex-shrink: 0;
}

.login-input-wrap input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    font-size: 0.9375rem;
    background: transparent;
    color: #f8fafc;
}

.login-input-wrap input::placeholder {
    color: #9ca3af;
}

.login-password-toggle {
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 0.25rem;
    flex-shrink: 0;
}

.login-password-toggle:hover {
    color: #94a3b8;
}

.login-form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.login-remember {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: #cbd5e1;
    cursor: pointer;
}

.login-remember input {
    display: none;
}

.login-checkbox {
    width: 18px;
    height: 18px;
    border: 2px solid #475569;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s, background 0.2s;
}

.login-remember input:checked + .login-checkbox {
    background: var(--login-dark-accent);
    border-color: var(--login-dark-accent);
}

.login-remember input:checked + .login-checkbox::after {
    content: '✓';
    color: white;
    font-size: 11px;
}

.login-forgot {
    font-size: 0.8125rem;
    color: var(--login-dark-accent);
    text-decoration: none;
}

.login-forgot:hover {
    text-decoration: underline;
}

.login-btn {
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, var(--login-dark-accent) 0%, #2563eb 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.login-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.login-signup {
    text-align: center;
    margin-top: 1.5rem;
    margin-bottom: 0;
    font-size: 0.8125rem;
    color: #94a3b8;
}

.login-signup a {
    color: var(--login-dark-accent);
    font-weight: 600;
    text-decoration: none;
}

.login-signup a:hover {
    text-decoration: underline;
}

.login-back-home-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.6);
    color: #e5e7eb;
    margin-right: 0.5rem;
    transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}

.login-back-home-icon i {
    font-size: 1rem;
}

.login-back-home-icon:hover {
    background: rgba(15, 23, 42, 0.9);
    border-color: var(--login-dark-accent);
    color: var(--login-dark-accent);
    transform: translateY(-1px);
}

.login-back-home-icon--top {
    position: absolute;
    top: 50%;
    right: -6rem;
    transform: translateY(-50%);
}

/* Login page - mobile responsive */
@media (max-width: 480px) {
    .login-page-top {
        height: 35vh;
        min-height: 160px;
    }

    .login-developer-credit {
        top: 1rem;
    }

    .login-developer-logo {
        height: 26px;
    }

    .login-developer-text {
        font-size: 0.65rem;
    }

    .login-page-bottom {
        padding: 1.5rem 1rem calc(1.5rem + env(safe-area-inset-bottom));
        margin-top: -20px;
        border-radius: 24px 24px 0 0;
    }

    .login-form-wrap {
        max-width: 100%;
        padding: 0;
    }

    .login-signin-card {
        padding: 1.25rem 1rem;
        border-radius: 16px;
    }

    .login-logo-wrap {
        margin-top: -55px;
        margin-bottom: 0.5rem;
    }

    .login-logo-img {
        width: 80px;
        height: 80px;
    }

    .login-heading {
        font-size: 1.5rem;
    }

    .login-subtitle {
        font-size: 0.75rem;
        margin-bottom: 1.25rem;
    }

    .login-input-wrap {
        padding: 0.625rem 0.875rem;
    }

    .login-input-wrap input {
        font-size: 16px; /* prevents zoom on iOS */
    }

    .login-form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        margin-bottom: 1.25rem;
    }

    .login-btn {
        padding: 0.75rem 1.25rem;
    }

    .login-signup {
        margin-top: 1.25rem;
        font-size: 0.8125rem;
    }
}

@media (max-width: 360px) {
    .login-developer-text {
        font-size: 0.6rem;
    }

    .login-signin-card {
        padding: 1rem 0.875rem;
    }

    .login-logo-img {
        width: 70px;
        height: 70px;
    }

    .login-logo-wrap {
        margin-top: -45px;
    }

    .login-heading {
        font-size: 1.35rem;
    }

    .login-subtitle {
        font-size: 0.6875rem;
    }
}

/* ============================================
   SIDEBAR
   ============================================ */

.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 260px;
    background: var(--color-primary);
    color: var(--color-white);
    padding: 0;
    overflow-y: auto;
    z-index: 1000;
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header h2 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.sidebar-header p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

.sidebar-nav {
    padding: 1rem 0;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
}

.nav-item.active {
    background: rgba(255, 255, 255, 0.15);
    color: var(--color-white);
    border-left-color: var(--color-gold);
}

.nav-item--logout {
    margin-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
}

.nav-icon {
    font-size: 1.25rem;
    width: 24px;
    text-align: center;
}

/* ============================================
   MAIN CONTENT
   ============================================ */

.main-content {
    margin-left: 260px;
    min-height: 100vh;
}

.content-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.content-header h1 {
    font-size: 2rem;
    color: var(--color-gray-900);
}

.content-header p {
    color: var(--color-gray-600);
    margin-top: 0.25rem;
}

.form-hint {
    display: block;
    font-size: 0.75rem;
    color: var(--color-gray-500);
}

.form-hint--error {
    color: #dc2626 !important;
}

.form-hint--success {
    color: #16a34a !important;
}

.checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9rem;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--color-primary);
    order: -1;
}

.content-header--gradient {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: var(--color-white);
    padding: 1.75rem 2rem;
    border-radius: 20px;
    box-shadow: 0 18px 45px rgba(59, 130, 246, 0.18);
    margin-bottom: 2.5rem;
}

.content-header--gradient h1 {
    color: inherit;
    margin: 0;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.content-header--gradient p {
    color: rgba(255, 255, 255, 0.85);
    margin-top: 0.5rem;
}

/* ============================================
   CARDS
   ============================================ */

.card {
    background: var(--color-white);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

.card h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--color-gray-900);
}

/* ============================================
   STATS GRID
   ============================================ */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.75rem;
}

.stat-card {
    background: var(--color-white);
    border-radius: 12px;
    padding: 1.1rem 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
}

.stat-icon--blue {
    background: rgba(59, 130, 246, 0.1);
}

.stat-icon--green {
    background: rgba(16, 185, 129, 0.1);
}

.stat-icon--orange {
    background: rgba(245, 158, 11, 0.1);
}

.stat-icon--red {
    background: rgba(239, 68, 68, 0.1);
}

.stat-content h3 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-gray-900);
    margin-bottom: 0.25rem;
}

.stat-content p {
    color: var(--color-gray-600);
    font-size: 0.8rem;
}

/* ============================================
   FORMS
   ============================================ */

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--color-gray-700);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--color-gray-300);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(10, 22, 40, 0.1);
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.filters {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: flex-end;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-group input,
.filter-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--color-gray-300);
    border-radius: 8px;
    font-family: inherit;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}

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

.btn-primary:hover {
    background: var(--color-primary-light);
}

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

.btn-secondary:hover {
    background: #2563eb;
}

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

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

.btn-outline {
    background: transparent;
    color: var(--color-gray-700);
    border: 1px solid var(--color-gray-300);
}

.btn-outline:hover {
    background: var(--color-gray-50);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* ============================================
   TABLES
   ============================================ */

.table-responsive {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead {
    background: var(--color-gray-50);
}

.data-table th {
    padding: 0.875rem;
    text-align: left;
    font-weight: 600;
    color: var(--color-gray-700);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.data-table td {
    padding: 0.875rem;
    border-top: 1px solid var(--color-gray-200);
}

.data-table tbody tr:hover {
    background: var(--color-gray-50);
}

.text-center {
    text-align: center;
}

/* ============================================
   BADGES
   ============================================ */

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-available {
    background: rgba(16, 185, 129, 0.1);
    color: var(--color-success);
}

.badge-booked {
    background: rgba(239, 68, 68, 0.1);
    color: var(--color-danger);
}

.badge-pending {
    background: rgba(245, 158, 11, 0.15);
    color: #b45309;
}

.badge-partial {
    background: rgba(16, 185, 129, 0.15);
    color: var(--color-success);
}

.badge-paid {
    background: rgba(16, 185, 129, 0.15);
    color: var(--color-success);
}

.badge-on_hold {
    background: rgba(245, 158, 11, 0.15);
    color: #b45309;
}

.badge-cancelled {
    background: rgba(107, 114, 128, 0.2);
    color: #4b5563;
}

.badge-refunded {
    background: rgba(107, 114, 128, 0.2);
    color: #4b5563;
}

/* ============================================
   ALERTS
   ============================================ */

.alert {
    padding: 1rem 1.25rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9375rem;
    font-weight: 500;
}

.alert-success {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 10000;
    padding: 0.6rem 1rem;
    min-width: 220px;
    max-width: 340px;
    font-size: 0.8rem;
    font-weight: 500;
    gap: 0.5rem;
    background: var(--color-white);
    color: #047857;
    border: 1px solid rgba(16, 185, 129, 0.25);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
    animation: alertSlideIn 0.4s ease-out;
    transition: opacity 0.35s ease, transform 0.4s ease-out;
}

@keyframes alertSlideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.alert-success::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2310b981'%3E%3Cpath d='M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zm-3.97-3.03a.75.75 0 0 0-1.08.022L7.477 9.417 5.384 7.323a.75.75 0 0 0-1.06 1.06L6.97 11.03a.75.75 0 0 0 1.079-.02l3.992-4.99a.75.75 0 0 0-.01-1.05z'/%3E%3C/svg%3E") no-repeat center;
}

.alert-success.alert--fade-out {
    opacity: 0;
    transform: translateX(100%);
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--color-danger);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* ============================================
   SLOT RELEASE & ADD BOOKING
   ============================================ */

/* Slot Release - Calendar Date Picker */

.slot-release-card {
    background: var(--color-white);
    border-radius: 0;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 1.5rem;
    max-width: 420px;
}

.slot-release-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: var(--color-white);
}

.slot-release-header h2 {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
}

.slot-release-close {
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    color: var(--color-white);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: background 0.2s;
}

.slot-release-close:hover {
    background: rgba(255, 255, 255, 0.25);
}

.slot-release-calendar {
    padding: 0.5rem 0.5rem;
}

.calendar-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.calendar-nav-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: var(--color-gray-100);
    color: var(--color-gray-700);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: background 0.2s, color 0.2s;
}

.calendar-nav-btn:hover {
    background: var(--color-gray-200);
    color: var(--color-primary);
}

.calendar-month-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-gray-900);
}

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

.calendar-weekdays span {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-gray-500);
}

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

.slot-date-cell {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    min-height: 36px;
    border: 1px solid transparent;
    background: transparent;
}

.slot-date-cell--empty {
    visibility: hidden;
    pointer-events: none;
}

.slot-date-cell--other-month {
    color: var(--color-gray-400);
}

.slot-date-cell--current {
    color: var(--color-gray-700);
}

.slot-date-cell--weekend {
    background: rgba(254, 243, 199, 0.65);
}

/* Slot Release: released (has price) vs not yet released */
.slot-date-cell--has-price {
    background: rgba(209, 250, 229, 0.85);
    color: #065f46;
}

.slot-date-cell--has-price:hover {
    background: rgba(167, 243, 208, 0.95);
}

.slot-date-cell--no-price {
    background: rgba(243, 244, 246, 0.8);
    color: #6b7280;
}

.slot-date-cell--no-price:hover {
    background: rgba(229, 231, 235, 0.95);
}

.slot-date-cell--weekend.slot-date-cell--has-price {
    background: rgba(167, 243, 208, 0.7);
}

.slot-date-cell--weekend.slot-date-cell--no-price {
    background: rgba(229, 231, 235, 0.75);
}

/* Add Booking: status colors matching booking calendar */
.slot-date-cell--past {
    background: rgba(243, 244, 246, 0.7);
    color: #6b7280;
    cursor: not-allowed;
}

.slot-date-cell--available {
    background: rgba(209, 250, 229, 0.85);
    color: #374151;
}

.slot-date-cell--available:hover {
    background: rgba(167, 243, 208, 0.95);
}

.slot-date-cell--partial {
    background: rgba(254, 243, 199, 0.85);
    color: #374151;
}

.slot-date-cell--partial:hover {
    background: rgba(253, 230, 138, 0.95);
}

.slot-date-cell--full {
    background: rgba(254, 226, 226, 0.85);
    color: #374151;
    cursor: not-allowed;
}

.slot-date-cell--unreleased {
    background: rgba(229, 231, 235, 0.9);
    color: #6b7280;
    cursor: not-allowed;
}

.slot-date-cell--today {
    border: 2px solid rgba(212, 175, 55, 0.6);
    box-shadow: 0 4px 14px rgba(201, 162, 39, 0.2);
}

.slot-date-cell--disabled {
    cursor: not-allowed;
    pointer-events: auto;
}

/* Selected state - base style for slot-release calendar */
.slot-date-cell--selected {
    background: rgba(59, 130, 246, 0.2);
    color: var(--color-primary);
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

/* Override for add-booking calendar (when combined with status classes) */
.slot-date-cell--selected.slot-date-cell--available,
.slot-date-cell--selected.slot-date-cell--partial {
    background: rgba(59, 130, 246, 0.2);
    color: var(--color-primary);
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

.slot-date-cell--selected.slot-date-cell--available:hover,
.slot-date-cell--selected.slot-date-cell--partial:hover {
    background: rgba(59, 130, 246, 0.3);
}

.slot-date-cell--selected.slot-date-cell--range {
    background: rgba(59, 130, 246, 0.25);
}

.slot-date-cell--current:hover:not(.slot-date-cell--empty),
.slot-date-cell--other-month:hover:not(.slot-date-cell--empty) {
    background: var(--color-gray-100);
}

.slot-date-cell--selected:hover {
    background: rgba(59, 130, 246, 0.3);
}

/* Slot Release legend */
.slot-release-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    margin-top: 1rem;
    padding-top: 0.5rem;
    padding-left: 1rem;
    padding-bottom: 0.5rem;
    border-top: 1px solid var(--color-gray-200);
}

.slot-release-legend .legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    color: var(--color-gray-600);
}

.slot-release-legend .legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.slot-release-legend .legend-dot--has-price {
    background: #10b981;
}

.slot-release-legend .legend-dot--no-price {
    background: #9ca3af;
}

.slot-release-legend .legend-dot--selected {
    background: #3b82f6;
}

.slot-release-legend .legend-dot--past {
    background: #9ca3af;
}

.add-booking-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    padding-left: 1rem;
    border-top: 1px solid var(--color-gray-200);
}

.add-booking-legend .legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    color: var(--color-gray-600);
}

.add-booking-legend .legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.add-booking-legend .legend-dot--available {
    background: #10b981;
}

.add-booking-legend .legend-dot--unreleased {
    background: #9ca3af;
}

.add-booking-legend .legend-dot--partial {
    background: #f59e0b;
}

.add-booking-legend .legend-dot--full {
    background: #ef4444;
}

.add-booking-legend .legend-dot--today {
    background: rgba(212, 175, 55, 0.8);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.4);
}

.add-booking-legend .legend-dot--past {
    background: #9ca3af;
}

.slot-release-hint {
    font-size: 0.75rem;
    color: var(--color-gray-500);
    margin: 0.5rem 0 0;
}

.slot-release-prices {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--color-gray-200);
}

.price-row label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-gray-700);
    margin-bottom: 0.35rem;
}

.price-row input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--color-gray-300);
    border-radius: 8px;
    font-size: 0.9rem;
}

.slot-release-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--color-gray-200);
    background: var(--color-gray-50);
}

/* Recent Slot Prices - responsive, mobile-friendly */
.recent-slots-card {
    overflow: hidden;
    border-radius: 0;
}

.recent-slots-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--color-gray-200);
}

.recent-slots-header h2 {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
}

.recent-slots-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.recent-slots-nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid var(--color-gray-300);
    border-radius: 8px;
    background: var(--color-white);
    color: var(--color-gray-700);
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.recent-slots-nav-btn:hover:not(:disabled) {
    background: var(--color-gray-100);
    border-color: var(--color-gray-400);
    color: var(--color-primary);
}

.recent-slots-nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.recent-slots-nav-btn i {
    font-size: 1.1rem;
}

.recent-slots-page-info {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-gray-600);
    min-width: 3.5rem;
    text-align: center;
}

.recent-slots-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.recent-slots-table th,
.recent-slots-table td {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
}

.recent-slots-table th {
    font-size: 0.8rem;
}

@media (max-width: 600px) {
    .recent-slots-header {
        padding: 0.875rem 1rem;
    }

    .recent-slots-header h2 {
        font-size: 1rem;
    }

    .recent-slots-nav-btn {
        width: 34px;
        height: 34px;
    }

    .recent-slots-nav-btn i {
        font-size: 1rem;
    }

    .recent-slots-page-info {
        font-size: 0.85rem;
    }

    .recent-slots-table th,
    .recent-slots-table td {
        padding: 0.6rem 0.75rem;
        font-size: 0.8125rem;
    }

    .recent-slots-table th {
        font-size: 0.75rem;
    }
}

/* Bookings page - match add-booking layout */
.bookings-card.slot-release-card {
    max-width: none;
    margin-bottom: 1.5rem;
}

.bookings-card .slot-release-header .btn {
    background: rgba(255, 255, 255, 0.95);
    color: var(--color-primary);
    border: none;
    padding: 0.4rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    transition: background 0.2s, color 0.2s;
}

.bookings-card .slot-release-header .btn:hover {
    background: var(--color-white);
    color: var(--color-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.edit-booking-card .slot-release-header .slot-release-header-back {
    background: rgba(255, 255, 255, 0.2);
    color: var(--color-white);
    border-color: rgba(255, 255, 255, 0.5);
}

.edit-booking-card .slot-release-header .slot-release-header-back:hover {
    background: rgba(255, 255, 255, 0.95);
    color: var(--color-primary);
    border-color: transparent;
}

.bookings-filters.pt-form,
.bookings-search-wrap.pt-form {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--color-gray-200);
}

.bookings-search-wrap.pt-form .form-group input {
    width: 100%;
    padding: 0.4rem 0.6rem;
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: 8px;
    font-size: 0.9rem;
    background: linear-gradient(135deg, rgba(249, 250, 251, 0.95) 0%, rgba(255, 255, 255, 1) 100%);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.bookings-search-wrap.pt-form .form-group input:focus {
    outline: none;
    border-color: rgba(59, 130, 246, 0.45);
    box-shadow: 0 1px 3px rgba(59, 130, 246, 0.15);
}

.bookings-filters-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 0.75rem 1rem;
    align-items: end;
}

.bookings-filters .form-group {
    margin-bottom: 0;
}

.bookings-filters .form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-gray-700);
    margin-bottom: 0.35rem;
}

.bookings-filters .form-group input,
.bookings-filters .form-group select {
    width: 100%;
    padding: 0.4rem 0.6rem;
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: 8px;
    font-size: 0.9rem;
    background: linear-gradient(135deg, rgba(249, 250, 251, 0.95) 0%, rgba(255, 255, 255, 1) 100%);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.bookings-filters .form-group input:focus,
.bookings-filters .form-group select:focus {
    outline: none;
    border-color: rgba(59, 130, 246, 0.45);
    box-shadow: 0 1px 3px rgba(59, 130, 246, 0.15);
}

.bookings-filters-actions .bookings-filters-btns {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.bookings-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.bookings-table th,
.bookings-table td {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
}

.bookings-table th {
    font-size: 0.8rem;
    font-weight: 600;
}

.bookings-table .pt-actions-cell {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Mobile: compact card layout */
.bookings-mobile-list {
    display: none;
    padding: 0 0.5rem 0.5rem;
}

.bookings-mobile-empty {
    text-align: center;
    color: var(--color-gray-500);
    font-size: 0.9rem;
    padding: 1.5rem;
}

/* =========================
   Modern Booking Card
========================= */

.bookings-mobile-list .booking-card-modern,
.bookings-mobile-card {
    background: white;
    border-radius: 16px;
    padding: 10px 8px 10px 8px;
    margin-bottom: 16px;
    box-shadow: 0px 10px 12px rgba(120, 55, 155, 0.25);
}

.booking-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.booking-card-header--overdue {
    background: rgba(239, 68, 68, 0.12);
    margin: -16px -16px 12px -16px;
    padding: 12px 16px;
    border-radius: 16px 16px 0 0;
}

.booking-id {
    font-weight: 700;
    font-size: 16px;
    color: var(--color-gray-900);
}

.booking-card-header--overdue .booking-id {
    color: #ef4444;
}

.booking-status {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 50px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.booking-status .bi-circle-fill {
    font-size: 6px;
}

.booking-status.booked { background: #fee2e2; color: #ef4444; }
.booking-status.on_hold { background: #fef3c7; color: #d97706; }
.booking-status.cancelled { background: #f3f4f6; color: #6b7280; }
.booking-status.completed { background: #dcfce7; color: #16a34a; }

.booking-main-info { margin-bottom: 14px; }

.booking-main-info .info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
}

.booking-main-info .info-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--color-gray-700);
}

.booking-main-info .info-item.full { width: 100%; }

.booking-main-info .info-item i {
    color: var(--color-gray-500);
    font-size: 14px;
}

.payment-summary {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 14px;
}

.payment-box {
    display: flex;
    gap: 8px;
    padding: 2px 8px 2px 8px;
    border-radius: 10px;
    background: #f9fafb;
    align-items: center;
}

.payment-box.total { background: #eff6ff; }
.payment-box.advance { background: #fff7ed; }
.payment-box.paid { background: #ecfdf5; }
.payment-box.due { background: #fef2f2; }

.payment-box > i { font-size: 16px; flex-shrink: 0; }
.payment-box.total > i { color: #2563eb; }
.payment-box.advance > i { color: #ea580c; }
.payment-box.paid > i { color: #16a34a; }
.payment-box.due > i { color: #ef4444; }

.payment-box > div { display: flex; flex-direction: column; gap: 2px; }
.payment-box small { font-size: 11px; font-weight: 600; color: var(--color-gray-600); display: block; }
.payment-box strong { font-size: 14px; font-weight: 700; color: var(--color-gray-900); }

.booking-actions {
    display: flex;
    gap: 4px;
}

.booking-actions .btn-edit,
.booking-actions .btn-pay {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
    font-size: 14px;
}

.booking-actions .btn-edit { background: #e0e7ff; color: #4338ca; }
.booking-actions .btn-pay { background: #0f172a; color: white; }

.booking-id-overdue {
    background: rgba(239, 68, 68, 0.12) !important;
    color: #ef4444;
    font-weight: 700;
}

@media (max-width: 600px) {
    .payment-summary { grid-template-columns: 1fr 1fr; }
}

/* =========================
   Player Cards
========================= */

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

.player-card-modern {
    background: white;
    border-radius: 16px;
    padding: 10px;
    margin-bottom: 10px;
    box-shadow: 0px 10px 12px rgba(120, 55, 155, 0.25);
    transition: transform 0.2s, box-shadow 0.2s;
}

.player-card-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.player-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f0f0;
}

.player-card-avatar {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f9fafb;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.player-avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 24px;
}

.player-card-name h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--color-gray-900);
    line-height: 1.3;
}

.player-card-name {
    display: flex;
    align-items: center;
    gap: 6px;
}

.verify-badge-btn {
    border: none;
    background: transparent;
    padding: 2px 4px;
    border-radius: 999px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #1877f2;
    transition: background-color 0.2s, color 0.2s, transform 0.1s;
}

.verify-badge-btn i {
    font-size: 14px;
}

.verify-badge-btn:hover {
    background: rgba(24, 119, 242, 0.08);
}

.player-card-modern.is-verified .player-card-name h3 {
    color: #111827;
}

.player-card-modern.is-verified .verify-badge-btn {
    background: #1877f2;
    color: #ffffff;
}

.player-card-modern.is-verified .verify-badge-btn i {
    color: #ffffff;
}

/* Generic verified badge icon (blue, Facebook-style) */
.verified-badge-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 4px;
}

.verified-badge-icon i {
    color: #1877f2 !important;
    font-size: 13px;
}

.player-main-info {
    margin-bottom: 8px;
}

.player-main-info .info-row {
    margin-bottom: 4px;
}

.player-main-info .info-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: var(--color-gray-700);
}

.player-main-info .info-item i {
    color: var(--color-gray-500);
    font-size: 14px;
    width: 18px;
    flex-shrink: 0;
}

.player-actions {
    display: flex;
    gap: 6px;
    padding-top: 8px;
    border-top: 1px solid #f0f0f0;
}

.player-actions .btn-edit,
.player-actions .btn-delete,
.player-actions .btn-verify {
    flex: 1;
    padding: 8px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.2s;
}

.player-actions .btn-verify {
    background: rgba(24, 119, 242, 0.10);
    color: #1877f2;
}

.player-actions .btn-verify:hover {
    background: rgba(24, 119, 242, 0.16);
}

.player-actions .btn-edit {
    background: #e0e7ff;
    color: #4338ca;
}

.player-actions .btn-edit:hover {
    background: #c7d2fe;
}

.player-actions .btn-delete {
    background: #fee2e2;
    color: #dc2626;
}

.player-actions .btn-delete:hover {
    background: #fecaca;
}

.player-delete-form {
    flex: 0;
    margin: 0;
}

/* =========================
   Team Cards
========================= */

.teams-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.team-card-modern {
    background: white;
    border-radius: 16px;
    padding: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s, box-shadow 0.2s;
    text-align: left;
}

.team-card-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.team-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.team-card-logo {
    width: 80px;
    height: 80px;
    margin: 0 8px 0 0;
    border-radius: 8px;
    overflow: hidden;
    background: #f9fafb;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #e5e7eb;
}

.team-card-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-logo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 32px;
}

.team-card-name h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--color-gray-900);
    line-height: 1.3;
}

.team-card-name {
    display: flex;
    align-items: center;
    gap: 6px;
}

.team-card-modern.is-verified .team-card-name h3 {
    color: #111827;
}

.team-card-modern.is-verified .verify-badge-btn {
    background: #1877f2;
    color: #ffffff;
}

.team-card-modern.is-verified .verify-badge-btn i {
    color: #ffffff;
}

/* Team cards reuse the generic verified badge styles */

.team-actions {
    display: flex;
    gap: 6px;
    padding-top: 8px;
    border-top: 1px solid #f0f0f0;
}

.team-actions .btn-edit,
.team-actions .btn-delete,
.team-actions .btn-verify {
    flex: 1;
    padding: 8px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.2s;
}

.team-actions .btn-verify {
    background: rgba(24, 119, 242, 0.10);
    color: #1877f2;
}

.team-actions .btn-verify:hover {
    background: rgba(24, 119, 242, 0.16);
}
.team-actions .btn-edit {
    background: #e0e7ff;
    color: #4338ca;
}

.team-actions .btn-edit:hover {
    background: #c7d2fe;
}

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

.team-actions .btn-delete:hover {
    background: #fecaca;
}

.team-delete-form {
    flex: 0;
    margin: 0;
}

@media (max-width: 768px) {
    .players-card-grid,
    .teams-card-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .bookings-filters-grid {
        grid-template-columns: 1fr 1fr;
    }

    .bookings-filters-actions {
        grid-column: 1 / -1;
    }
}

@media (max-width: 600px) {
    .bookings-filters-grid {
        grid-template-columns: 1fr;
    }

    .bookings-card .slot-release-header {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .bookings-card .slot-release-header .btn {
        align-self: flex-start;
    }

    .bookings-table-wrap {
        display: none;
    }

    .bookings-mobile-list {
        display: block;
    }

    .bookings-table th,
    .bookings-table td {
        padding: 0.6rem 0.75rem;
        font-size: 0.8125rem;
    }

    .bookings-table th {
        font-size: 0.75rem;
    }
}

/* ============================================
   PLAYERS & TEAMS MANAGEMENT
   ============================================ */

.pt-header-tabs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3.5rem;
}

.pt-header-tab {
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
    font-size: 1.125rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: color 0.2s;
}

.pt-header-tab:hover {
    color: rgba(255, 255, 255, 0.9);
}

.pt-header-tab.active {
    color: var(--color-white);
}

.pt-header-sep {
    color: rgba(255, 255, 255, 0.5);
    font-weight: 400;
    user-select: none;
}

.pt-tab-panel--hidden {
    display: none;
}

/* Players & Teams - full-width, no detached card (mobile-friendly on all screens) */
.pt-management-card.slot-release-card {
    max-width: none;
    border-radius: 0;
    box-shadow: none;
    margin-bottom: 1.5rem;
}

.pt-management-card .slot-release-header {
    border-radius: 0;
}

.text-muted {
    color: var(--color-gray-600);
}

.pt-card-body {
    padding: 1rem 1.25rem;
}

.pt-setup-list {
    margin: 0.5rem 0 0 1rem;
    padding: 0;
}

.pt-setup-list li {
    margin-bottom: 0.35rem;
}

.pt-form {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--color-gray-200);
}

.pt-form .form-group {
    margin-bottom: 0.75rem;
}

.pt-form .form-group:last-child {
    margin-bottom: 0;
}

.pt-form .form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-gray-700);
    margin-bottom: 0.35rem;
}

.pt-form .form-group input,
.pt-form .form-group select {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--color-gray-300);
    border-radius: 8px;
    font-size: 0.9rem;
}

/* Player form inputs - light gradient, blue-tinted borders, shadow, less padding */
#pt-panel-players .pt-form .form-group input[type="text"],
#pt-panel-players .pt-form .form-group input[type="email"],
#pt-panel-players .pt-form .form-group input[type="tel"] {
    padding: 0.4rem 0.6rem;
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(249, 250, 251, 0.95) 0%, rgba(255, 255, 255, 1) 100%);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    font-size: 0.9rem;
}

#pt-panel-players .pt-form .form-group input[type="text"]:focus,
#pt-panel-players .pt-form .form-group input[type="email"]:focus,
#pt-panel-players .pt-form .form-group input[type="tel"]:focus {
    outline: none;
    border-color: rgba(59, 130, 246, 0.45);
    box-shadow: 0 1px 3px rgba(59, 130, 246, 0.15);
}

#pt-panel-players .pt-form .form-group label .required,
#editPlayerModal .pt-form .form-group label .required,
#editTeamModal .pt-form .form-group label .required {
    color: var(--color-danger);
}

/* Edit Player modal - same look as Add Player form */
#editPlayerModal .pt-form .form-group input[type="text"],
#editPlayerModal .pt-form .form-group input[type="email"],
#editPlayerModal .pt-form .form-group input[type="tel"],
#editTeamModal .pt-form .form-group input[type="text"],
#editTeamModal .pt-form .form-group input[type="email"],
#editTeamModal .pt-form .form-group input[type="tel"] {
    padding: 0.4rem 0.6rem;
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(249, 250, 251, 0.95) 0%, rgba(255, 255, 255, 1) 100%);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    font-size: 0.9rem;
}

#editPlayerModal .pt-form .form-group input[type="text"]:focus,
#editPlayerModal .pt-form .form-group input[type="email"]:focus,
#editPlayerModal .pt-form .form-group input[type="tel"]:focus,
#editTeamModal .pt-form .form-group input[type="text"]:focus,
#editTeamModal .pt-form .form-group input[type="email"]:focus,
#editTeamModal .pt-form .form-group input[type="tel"]:focus {
    outline: none;
    border-color: rgba(59, 130, 246, 0.45);
    box-shadow: 0 1px 3px rgba(59, 130, 246, 0.15);
}

#pt-panel-players .pt-form .form-group input[type="file"],
#editPlayerModal .pt-form .form-group input[type="file"],
#editTeamModal .pt-form .form-group input[type="file"] {
    padding: 0.4rem 0.6rem;
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(249, 250, 251, 0.95) 0%, rgba(255, 255, 255, 1) 100%);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    font-size: 0.85rem;
}

/* Teams form inputs - light gradient, blue-tinted borders, shadow, less padding */
#pt-panel-teams .pt-form .form-group input[type="text"] {
    padding: 0.4rem 0.6rem;
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(249, 250, 251, 0.95) 0%, rgba(255, 255, 255, 1) 100%);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    font-size: 0.9rem;
}

#pt-panel-teams .pt-form .form-group input[type="text"]:focus {
    outline: none;
    border-color: rgba(59, 130, 246, 0.45);
    box-shadow: 0 1px 3px rgba(59, 130, 246, 0.15);
}

#pt-panel-teams .pt-form .form-group input[type="file"] {
    padding: 0.4rem 0.6rem;
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(249, 250, 251, 0.95) 0%, rgba(255, 255, 255, 1) 100%);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    font-size: 0.85rem;
}

.pt-form-row,
.pt-form-grid {
    display: grid;
    grid-template-columns: 1fr;
}

.pt-form-group--full {
    grid-column: 1 / -1;
}

.pt-list-search-wrap {
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid var(--color-gray-200);
    background: var(--color-gray-50);
}

.pt-list-search-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-gray-700);
    margin-bottom: 0.35rem;
}

.pt-list-search-input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--color-gray-300);
    border-radius: 8px;
    font-size: 0.9rem;
}

.pt-list-search-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.pt-table th,
.pt-table td {
    padding: 0.65rem 0.75rem;
    font-size: 0.875rem;
}

.pt-table th {
    font-size: 0.8rem;
}

.pt-thumb {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
    display: inline-block;
}

.pt-thumb--placeholder {
    background: var(--color-gray-200);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--color-gray-500);
}

/* Players list - card layout (mobile-friendly on all screens) */
#pt-panel-players .pt-table {
    display: block;
}

#pt-panel-players .pt-table thead {
    display: none;
}

#pt-panel-players .pt-table tbody {
    display: block;
}

#pt-panel-players .pt-player-row {
    display: block;
    position: relative;
    padding: 0.65rem 0.75rem;
    margin-bottom: 0.6rem;
    background: linear-gradient(135deg, rgba(249, 250, 251, 0.98) 0%, rgba(255, 255, 255, 1) 100%);
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

#pt-panel-players .pt-player-row:last-child {
    margin-bottom: 0;
}

#pt-panel-players .pt-player-row td {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0;
    font-size: 0.875rem;
    border: none;
}

#pt-panel-players .pt-player-row td:not(:first-child) {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

#pt-panel-players .pt-player-row td::before {
    content: attr(data-label);
    font-weight: 600;
    font-size: 0.75rem;
    color: var(--color-gray-600);
    min-width: 4rem;
    flex-shrink: 0;
}

#pt-panel-players .pt-player-row td[data-label=""]::before {
    display: none;
}

#pt-panel-players .pt-player-row td[data-label=""] {
    padding-bottom: 0.5rem;
    padding-right: 5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

#pt-panel-players .pt-player-row td.pt-actions-cell {
    position: absolute;
    top: 0.65rem;
    right: 0.75rem;
    border-top: none;
    padding: 0;
    margin: 0;
}

#pt-panel-players .pt-player-row td.pt-actions-cell::before {
    display: none;
}

#pt-panel-players .pt-player-card-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#pt-panel-players .pt-player-name {
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--color-gray-900);
}

#pt-panel-players .pt-player-row .pt-thumb,
#pt-panel-players .pt-player-row .pt-thumb--placeholder {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
}

/* ============================================
   PLAYERS & TEAMS - DESKTOP
   ============================================ */

@media (min-width: 900px) {
    .pt-header-tab {
        font-size: 1.1875rem;
    }

    .pt-form {
        padding: 1.25rem 1.5rem;
    }

    .pt-form .form-group label {
        font-size: 0.8125rem;
        margin-bottom: 0.4rem;
    }

    .pt-list-search-wrap {
        padding: 0.75rem 1.5rem;
    }

    .pt-list-wrap {
        padding: 1.25rem 1.5rem;
    }

    #pt-panel-players .pt-player-row {
        padding: 0.75rem 1rem;
    }

    #pt-panel-players .pt-player-row td.pt-actions-cell {
        top: 0.75rem;
        right: 1rem;
    }

    #pt-panel-players .pt-player-row td {
        font-size: 0.9375rem;
    }

    #pt-panel-players .pt-player-name {
        font-size: 1rem;
    }

    #pt-panel-players .pt-player-row .pt-thumb,
    #pt-panel-players .pt-player-row .pt-thumb--placeholder {
        width: 44px;
        height: 44px;
    }

    #pt-panel-teams .pt-table th,
    #pt-panel-teams .pt-table td {
        padding: 0.75rem 1rem;
        font-size: 0.9375rem;
    }
}

@media (max-width: 768px) {
    .pt-form-group--full {
        grid-column: 1;
    }
}

@media (max-width: 600px) {
    .pt-header-tab {
        font-size: 1rem;
    }

    .pt-form,
    .pt-list-wrap {
        padding: 0.875rem 0.8rem;
    }

    #pt-panel-players .pt-player-row {
        padding: 0.55rem 0.65rem;
        margin-bottom: 0.5rem;
    }

    #pt-panel-players .pt-player-row td.pt-actions-cell {
        top: 0.55rem;
        right: 0.65rem;
    }

    #pt-panel-players .pt-player-row td[data-label=""] {
        padding-right: 4.5rem;
    }

    #pt-panel-players .pt-player-row td {
        padding: 0.3rem 0;
        font-size: 0.8125rem;
    }

    #pt-panel-players .pt-player-name {
        font-size: 0.875rem;
    }

    #pt-panel-players .pt-player-row .pt-thumb,
    #pt-panel-players .pt-player-row .pt-thumb--placeholder {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .pt-table th,
    .pt-table td {
        padding: 0.5rem 0.6rem;
        font-size: 0.8125rem;
    }

    .pt-table th {
        font-size: 0.75rem;
    }

    .pt-thumb,
    .pt-thumb--placeholder {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
}

.add-booking-fields {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--color-gray-200);
}

.add-booking-fields.pt-form .pt-form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

.add-booking-fields.pt-form .form-group {
    margin-bottom: 0;
}

.add-booking-fields.pt-form .form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-gray-700);
    margin-bottom: 0.35rem;
}

.add-booking-fields.pt-form .form-group label.checkbox-label {
    display: inline-flex;
}

.add-booking-fields.pt-form .form-group label.checkbox-label span {
    white-space: nowrap;
}

.add-booking-fields.pt-form .form-group label .required {
    color: var(--color-danger);
}

/* Add booking inputs - match players-teams style: blue-tinted borders, gradient, shadow */
.add-booking-fields.pt-form .form-group input[type="text"],
.add-booking-fields.pt-form .form-group input[type="email"],
.add-booking-fields.pt-form .form-group input[type="tel"] {
    width: 100%;
    padding: 0.4rem 0.6rem;
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(249, 250, 251, 0.95) 0%, rgba(255, 255, 255, 1) 100%);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    font-size: 0.9rem;
}

.add-booking-fields.pt-form .form-group input[type="text"]:focus,
.add-booking-fields.pt-form .form-group input[type="email"]:focus,
.add-booking-fields.pt-form .form-group input[type="tel"]:focus {
    outline: none;
    border-color: rgba(59, 130, 246, 0.45);
    box-shadow: 0 1px 3px rgba(59, 130, 246, 0.15);
}

.add-booking-fields.pt-form .form-group select {
    width: 100%;
    padding: 0.4rem 0.6rem;
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(249, 250, 251, 0.95) 0%, rgba(255, 255, 255, 1) 100%);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    font-size: 0.9rem;
}

.add-booking-fields.pt-form .form-group select:focus {
    outline: none;
    border-color: rgba(59, 130, 246, 0.45);
    box-shadow: 0 1px 3px rgba(59, 130, 246, 0.15);
}

.add-booking-fields.pt-form .form-hint {
    font-size: 0.75rem;
    color: var(--color-gray-500);
    margin-top: 0.25rem;
}

/* Add team fields show/hide animation */
.add-team-fields-animate {
    display: grid;
    grid-template-rows: 1fr;
    max-height: 280px;
    opacity: 1;
    overflow: visible;
    transition: max-height 0.35s ease-out, opacity 0.25s ease-out;
}

.add-team-fields-animate.collapsed {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
    margin-bottom: 0;
    overflow: hidden;
}

.add-team-fields-animate .form-group {
    margin-bottom: 0.75rem;
}

.add-team-fields-animate .form-group:last-child {
    margin-bottom: 0;
}

@media (min-width: 640px) {
    .add-booking-fields.pt-form .pt-form-grid {
        grid-template-columns: 1fr 1fr;
    }

    .add-booking-fields.pt-form .form-group.pt-form-group--full {
        grid-column: 1 / -1;
    }
}

.customer-search-group,
.team-search-group {
    position: relative;
}

.customer-search-results {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 0.5rem);
    background: var(--color-white);
    border-radius: 14px;
    border: 1px solid var(--color-gray-200);
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.14);
    padding: 0.25rem 0;
    max-height: 260px;
    overflow-y: auto;
    z-index: 30;
    display: none;
}

.customer-search-results.is-visible {
    display: block;
}

.customer-search-option {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    align-items: flex-start;
    padding: 0.65rem 0.85rem;
    background: transparent;
    border: none;
    text-align: left;
    font-size: 0.85rem;
    color: var(--color-gray-800);
    cursor: pointer;
    border-radius: 10px;
    transition: background 0.15s ease, color 0.15s ease;
}

.customer-search-option:hover,
.customer-search-option:focus {
    background: rgba(59, 130, 246, 0.1);
    color: var(--color-primary);
    outline: none;
}

.customer-search-option strong {
    font-weight: 600;
    font-size: 0.9rem;
}

.customer-search-option span {
    font-size: 0.75rem;
    color: var(--color-gray-500);
}

/* Customer search option - with photo (details left, photo right) */
.customer-search-option--with-photo {
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
}

.customer-search-option--with-photo .customer-search-option__details {
    flex: 1;
}

.customer-search-option__img {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.customer-search-option__placeholder {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    background: var(--color-gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--color-gray-500);
    flex-shrink: 0;
}

.customer-search-option__details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    align-items: flex-start;
    flex: 1;
    min-width: 0;
}

/* Team search option - image + name */
.team-search-option {
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
}

.team-search-option__img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.team-search-option__placeholder {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--color-gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--color-gray-500);
    flex-shrink: 0;
}

.customer-search-empty,
.customer-search-error,
.customer-search-loading {
    padding: 0.75rem 0.85rem;
    font-size: 0.8rem;
    color: var(--color-gray-500);
}

.selected-slots-summary {
    margin-top: 1rem;
    padding: 1rem 1.25rem;
    border: 1px solid var(--color-gray-200);
    border-radius: 14px;
    background: var(--color-gray-50);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.selected-slots-summary h3 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-gray-800);
}

.selected-slots-summary-list {
    list-style: none;
    margin: 0.75rem 0 0;
    padding: 0;
    display: grid;
    gap: 0.75rem;
}

.selected-slots-summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.75rem;
    border-radius: 10px;
    background: var(--color-white);
    border: 1px solid rgba(148, 163, 184, 0.25);
    cursor: pointer;
    width: 100%;
    text-align: left;
    outline: none;
}

.selected-slots-summary-item strong {
    font-size: 0.95rem;
    color: var(--color-gray-800);
}

.selected-slots-summary-item:focus {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
}

.selected-slot-tags {
    display: inline-flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.selected-slot-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.35rem 0.6rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(59, 130, 246, 0.12);
    color: var(--color-primary);
}

.selected-slots-empty {
    margin: 0;
    font-size: 0.85rem;
    color: var(--color-gray-500);
}

.selected-slots-summary .btn-link {
    margin-top: 0.75rem;
}

.admin-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1200;
}

.admin-modal.is-visible {
    display: flex;
}

.admin-modal--payment.is-visible .admin-modal__dialog--payment {
    animation: paymentModalIn 0.3s ease-out forwards;
}

@keyframes paymentModalIn {
    from {
        opacity: 0;
        transform: scale(0.96) translateY(-8px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.admin-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
}

.admin-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(420px, 92vw);
    background: var(--color-white);
    border-radius: 16px;
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.2);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.pt-modal-dialog {
    width: min(500px, 92vw);
}

.pt-modal-body .pt-form-grid,
.pt-modal-body .pt-form-row {
    display: grid;
    gap: 0.75rem;
}

.pt-modal-body .pt-form-grid {
    grid-template-columns: 1fr 1fr;
}

.pt-modal-body .pt-form-group--full {
    grid-column: 1 / -1;
}

.pt-modal-body .pt-form-row {
    grid-template-columns: 1fr 1fr;
}

.pt-actions-cell {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.pt-actions-cell .btn {
    padding: 0.35rem 0.5rem;
}

.pt-delete-form {
    display: inline;
}

.admin-modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.1rem 1.5rem;
    border-bottom: 1px solid var(--color-gray-200);
}

.admin-modal__header h2 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-gray-900);
}

.admin-modal__close {
    border: none;
    background: transparent;
    color: var(--color-gray-500);
    font-size: 1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    transition: background 0.2s ease, color 0.2s ease;
}

.admin-modal__close:hover {
    background: rgba(59, 130, 246, 0.1);
    color: var(--color-primary);
}

.admin-modal__body {
    display: flex;
    flex-direction: column;
    padding: 0.5rem 1rem;
    gap: 1rem;
}

.admin-modal__subtitle {
    margin: 0;
    font-size: 0.9rem;
    color: var(--color-gray-600);
}

.modal-slot-options {
    display: grid;
    gap: 0.75rem;
}

.modal-slot-option {
    position: relative;
    display: flex;
    gap: 0.9rem;
    align-items: center;
    padding: 0.9rem 1rem;
    border-radius: 14px;
    background: var(--color-gray-50);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.modal-slot-option::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 14px;
    padding: 1px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 40%, rgba(255, 255, 255, 0.5) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    pointer-events: none;
}

.modal-slot-option:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.12);
}

.modal-slot-option.is-disabled {
    cursor: not-allowed;
    opacity: 0.6;
    background: var(--color-gray-100);
    box-shadow: none;
}

.modal-slot-option.is-disabled:hover {
    transform: none;
}

.modal-slot-option.is-disabled::before {
    background: linear-gradient(135deg, rgba(148, 163, 184, 0.6) 0%, rgba(203, 213, 225, 0.6) 100%);
}

.modal-slot-option input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--color-primary);
}

.modal-slot-option span {
    display: flex;
    flex-direction: column;
}

.modal-slot-option strong {
    font-size: 0.95rem;
    color: var(--color-gray-800);
}

.modal-slot-option small {
    font-size: 0.75rem;
    color: var(--color-gray-500);
}

.modal-slot-option input:disabled + span strong {
    color: var(--color-gray-400);
}

.modal-slot-option input:disabled + span small {
    color: var(--color-gray-300);
}

.modal-slot-option .modal-slot-main {
    flex: 1;
}

.modal-slot-option .modal-slot-price {
    margin-left: auto;
    align-self: flex-start;
    padding: 0.3rem 1rem;
    border-radius: 8px;
    background: rgba(16, 185, 129, 0.12);
    color: #047857;
    font-size: 1rem;
    font-weight: 600;
    min-width: 80px;
    text-align: center;
}

.modal-slot-option.is-disabled .modal-slot-price {
    background: var(--color-gray-200);
    color: var(--color-gray-500);
}

.modal-slot-hint {
    margin: 0;
    font-size: 0.8rem;
    color: var(--color-gray-500);
}

/* Edit booking - slot options */
.edit-slot-options {
    margin-top: 0.25rem;
}

.edit-slot-hint {
    margin: 0;
    font-size: 0.85rem;
}

.edit-slot-options-list {
    display: grid;
    gap: 0.75rem;
}

.edit-slot-option {
    position: relative;
    display: flex;
    gap: 0.9rem;
    align-items: center;
    padding: 0.9rem 1rem;
    border-radius: 14px;
    background: var(--color-gray-50);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 2px solid transparent;
}

.edit-slot-option::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    padding: 1px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 40%, rgba(255, 255, 255, 0.5) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.edit-slot-option:hover:not(.is-disabled) {
    transform: translateY(-1px);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.12);
}

.edit-slot-option.is-selected {
    background: rgba(59, 130, 246, 0.08);
    border-color: rgba(59, 130, 246, 0.5);
}

.edit-slot-option.is-disabled {
    cursor: not-allowed;
    opacity: 0.7;
    background: var(--color-gray-100);
}

.edit-slot-option.is-disabled:hover {
    transform: none;
}

.edit-slot-option.is-disabled::before {
    background: linear-gradient(135deg, rgba(148, 163, 184, 0.6) 0%, rgba(203, 213, 225, 0.6) 100%);
}

.edit-slot-option input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--color-primary);
}

.edit-slot-option span {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.edit-slot-option strong {
    font-size: 0.95rem;
    color: var(--color-gray-800);
}

.edit-slot-option .edit-slot-status {
    font-size: 0.75rem;
    color: var(--color-gray-500);
}

.edit-slot-option.is-disabled .edit-slot-status {
    color: var(--color-gray-400);
}

.admin-modal__footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--color-gray-200);
    background: var(--color-gray-50);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s;
    }

    .main-content {
        margin-left: 0;
        padding: 0;
    }

    .slot-release-card {
        max-width: none;
        border-radius: 0;
        margin-bottom: 1.5rem;
    }

    .slot-release-header {
        border-radius: 0;
    }

    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.9rem;
    }

    .filters {
        flex-direction: column;
    }

    .filter-group {
        min-width: 100%;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }

    .stat-card {
        padding: 0.85rem 0.75rem;
    }

    .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 1.3rem;
    }

    .stat-content h3 {
        font-size: 1.3rem;
    }

    .stat-content p {
        font-size: 0.75rem;
    }
}

/* Payment modal - modern design with generous padding */
.admin-modal__dialog--payment {
    width: min(440px, 94vw);
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25), 0 0 0 1px rgba(15, 23, 42, 0.05);
    border-radius: 20px;
}

.admin-modal__header--payment {
    padding: 1rem 1.5rem 0.875rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.admin-modal__header--payment .admin-modal__title {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.admin-modal__body--payment {
    padding: 1rem 1.5rem;
    gap: 0.1rem;
}

.admin-modal__subtitle--payment {
    font-size: 0.9375rem;
    line-height: 1.55;
    color: var(--color-gray-600);
}

.payment-modal-due {
    margin: 0;
    padding: 0.875rem 1.125rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, 0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.payment-modal-due__label {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-gray-600);
}

.payment-modal-due__amount {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--color-gray-900);
    letter-spacing: -0.02em;
}

.payment-modal__form-group {
    margin: 0;
}

.payment-modal__form-group label {
    font-weight: 600;
    font-size: 0.9375rem;
    margin-bottom: 0.375rem;
    display: block;
}

.payment-modal__input {
    margin-top: 0;
    padding: 0.75rem 0.875rem;
    font-size: 1rem;
    border-radius: 10px;
    border: 1px solid var(--color-gray-300);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.payment-modal__input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.payment-modal__input::placeholder {
    color: var(--color-gray-400);
}

.payment-modal__input select {
    width: 100%;
    background-color: white;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23334155' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.payment-modal__input textarea {
    width: 100%;
    resize: vertical;
    min-height: 70px;
    font-family: inherit;
    line-height: 1.5;
}

.payment-modal__form-group .form-hint {
    margin-top: 0.375rem;
    font-size: 0.8125rem;
}

.payment-modal__error {
    margin: 0;
    padding: 0.625rem 0.875rem;
    border-radius: 8px;
}

.admin-modal__footer--payment {
    padding: 0.875rem 1.5rem 1rem;
    gap: 0.75rem;
    background: #fafbfc;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.admin-modal__footer--payment .btn {
    padding: 0.625rem 1.25rem;
    font-weight: 600;
    border-radius: 10px;
}

/* Payment Image Upload */
.payment-image-upload-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

.payment-image-upload-btn {
    padding: 0.625rem 1rem;
    font-size: 0.9375rem;
    border-radius: 8px;
    cursor: pointer;
}

.payment-image-filename {
    font-size: 0.875rem;
    color: var(--color-gray-600);
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.payment-image-remove-btn {
    padding: 0.375rem 0.5rem;
    font-size: 0.875rem;
    border-radius: 6px;
}

.payment-image-preview {
    margin-top: 0.75rem;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--color-gray-200);
    max-width: 300px;
}

.payment-image-preview-img {
    width: 100%;
    height: auto;
    display: block;
}

.booking-payment-details {
    white-space: nowrap;
    font-size: 0.875rem;
}
.pt-actions-cell .btn { margin-right: 0.35rem; }

/* Transaction Record Button */
.btn-info {
    background-color: #0ea5e9;
    color: white;
    border: none;
}

.btn-info:hover {
    background-color: #0284c7;
    color: white;
}

.btn-trx {
    background-color: #0ea5e9;
    color: white;
    border: none;
    padding: 0.5rem 0.875rem;
    border-radius: 8px;
}

.btn-whatsapp,
.btn-sm.btn-whatsapp {
    font-size: 0.875rem;
    text-decoration: none;
}

.btn-whatsapp:hover {
    background-color: #20ba5a;
    color: white;
    transform: translateY(-1px);
}

.btn-whatsapp:active {
    transform: translateY(0);
}

.booking-actions .btn-whatsapp {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #25d366;
    color: white;
}

.booking-actions .btn-whatsapp:hover {
    background: #20ba5a;
    color: white;
}

/* WhatsApp confirmation modal (add-booking) */
.admin-modal__dialog--whatsapp {
    width: min(480px, 94vw);
    border-radius: 16px;
}
.whatsapp-confirm-text {
    margin: 0 0 0.75rem;
    color: var(--color-gray-700);
    line-height: 1.5;
}
.whatsapp-confirm-customer {
    margin: 0;
    font-weight: 600;
    color: var(--color-gray-900);
    font-size: 1rem;
}

/* WhatsApp Options Modal (bookings.php) */
.admin-modal--whatsapp.is-visible {
    display: flex;
}

.admin-modal__dialog--whatsapp {
    width: min(600px, 94vw);
    max-width: 600px;
    border-radius: 16px;
}

.admin-modal__header--whatsapp {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.admin-modal__body--whatsapp {
    padding: 0.5rem;
}

.whatsapp-options-subtitle {
    margin: 0 0 1.25rem;
    color: var(--color-gray-600);
    font-size: 0.9375rem;
    text-align: center;
}

.whatsapp-options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.whatsapp-option-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    background: white;
    border: 2px solid var(--color-gray-200);
    border-radius: 12px;
    color: var(--color-gray-700);
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.whatsapp-option-btn:hover {
    background: #f8fafc;
    border-color: #25d366;
    color: #25d366;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.15);
}

.whatsapp-option-btn:active {
    transform: translateY(0);
}

.whatsapp-option-btn i {
    font-size: 1.75rem;
    color: inherit;
}

.whatsapp-option-btn span {
    display: block;
}

.whatsapp-option-btn--cancel {
    grid-column: 1 / -1;
    background: #fef2f2;
    border-color: #fecaca;
    color: #dc2626;
}

.whatsapp-option-btn--cancel:hover {
    background: #fee2e2;
    border-color: #dc2626;
    color: #991b1b;
}

@media (max-width: 640px) {
    .whatsapp-options-grid {
        grid-template-columns: 1fr;
    }
    
    .whatsapp-option-btn--cancel {
        grid-column: 1;
    }
}

.btn-trx:hover {
    background-color: #0284c7;
    color: white;
}

/* Transaction History Modal */
.admin-modal__dialog--trx {
    width: min(600px, 94vw);
    max-height: 85vh;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25), 0 0 0 1px rgba(15, 23, 42, 0.05);
    border-radius: 20px;
}

.admin-modal__header--trx {
    padding: 1rem 1.5rem 0.875rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.admin-modal__body--trx {
    padding: 0.5rem 0.7rem;
    max-height: calc(85vh - 140px);
    overflow-y: auto;
}

.admin-modal__footer--trx {
    padding: 0.875rem 1.5rem 1rem;
    gap: 0.75rem;
    background: #fafbfc;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.trx-modal-booking-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 10px;
    margin-bottom: 1rem;
    font-size: 0.9375rem;
}

.trx-modal-booking-label {
    font-weight: 600;
    color: var(--color-gray-600);
}

.trx-modal-booking-code {
    font-weight: 700;
    color: var(--color-gray-900);
    font-family: 'Courier New', monospace;
}

.trx-history-loading,
.trx-history-empty {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--color-gray-500);
}

.trx-history-loading .loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--color-gray-200);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.trx-history-empty i {
    font-size: 3rem;
    color: var(--color-gray-300);
    margin-bottom: 0.5rem;
    display: block;
}

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

.trx-item {
    background: white;
    border: 1px solid var(--color-gray-200);
    border-radius: 12px;
    padding: 0.5rem;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.trx-item:hover {
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
    border-color: var(--color-gray-300);
}

.trx-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    gap: 1rem;
}

.trx-item-type {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.trx-type-badge {
    display: inline-block;
    padding: 0.25rem 0.625rem;
    border-radius: 6px;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.trx-type-advance .trx-type-badge {
    background-color: #fef3c7;
    color: #92400e;
}

.trx-type-payment .trx-type-badge {
    background-color: #d1fae5;
    color: #065f46;
}

.trx-type-refund .trx-type-badge {
    background-color: #fee2e2;
    color: #991b1b;
}

.trx-item-amount {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-gray-900);
}

.trx-item-date {
    font-size: 0.875rem;
    color: var(--color-gray-500);
    white-space: nowrap;
}

.trx-item-details {
    display: flex;
    flex-direction: column;
    padding-top: 0.75rem;
    border-top: 1px solid var(--color-gray-100);
}

.trx-detail-row {
    display: flex;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.trx-detail-label {
    font-weight: 600;
    color: var(--color-gray-600);
    min-width: 90px;
}

.trx-detail-value {
    color: var(--color-gray-700);
    flex: 1;
}

.trx-history-error {
    margin: 0;
    padding: 0.625rem 0.875rem;
    border-radius: 8px;
}

.trx-item-content-wrapper {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.trx-item-main {
    flex: 1;
    min-width: 0;
}

.trx-item-image-wrapper {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid var(--color-gray-200);
    background: var(--color-gray-50);
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.2s ease;
    margin-top: 2.8rem;
    align-self: flex-start;
}

.trx-item-image-wrapper:hover {
    border-color: var(--color-primary);
    transform: scale(1.02);
}

.trx-item-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Transaction Image Modal */
.admin-modal__dialog--image {
    width: min(90vw, 800px);
    max-width: 90vw;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25), 0 0 0 1px rgba(15, 23, 42, 0.05);
    border-radius: 20px;
}

.admin-modal__header--image {
    padding: 1rem 1.5rem 0.875rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.admin-modal__body--image {
    padding: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--color-gray-50);
}

.trx-image-modal-img {
    max-width: 100%;
    max-height: 70vh;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
    cursor: zoom-in;
}

/* ============================================
   DASHBOARD - Modern admin overview
   ============================================ */

.dashboard-wrap {
    padding: 1.5rem 1.75rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.dashboard-header {
    margin-bottom: 1.75rem;
}

.dashboard-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-gray-900);
    letter-spacing: -0.02em;
    margin-bottom: 0.25rem;
}

.dashboard-subtitle {
    font-size: 0.9375rem;
    color: var(--color-gray-600);
}

/* Mobile-only key metrics strip (hidden on desktop) */
.dash-mobile-strip {
    display: none;
}

.dashboard-section {
    margin-bottom: 1.75rem;
}

.dash-section-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-gray-800);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

/* ---- Summary cards grid ---- */
.dash-cards {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
}

.dash-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(249, 250, 251, 0.98));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 1.25rem;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dash-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: 16px 16px 0 0;
}

.dash-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08), 0 1px 3px rgba(15, 23, 42, 0.04);
}

.dash-card--bookings::before { background: linear-gradient(90deg, #3b82f6, #60a5fa); }
.dash-card--today::before { background: linear-gradient(90deg, #10b981, #34d399); }
.dash-card--revenue::before { background: linear-gradient(90deg, #d4af37, #e5c558); }
.dash-card--due::before { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.dash-card--advance::before { background: linear-gradient(90deg, #8b5cf6, #a78bfa); }
.dash-card--completed::before { background: linear-gradient(90deg, #0ea5e9, #38bdf8); }

.dash-card__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
}

.dash-card--bookings .dash-card__icon { background: rgba(59, 130, 246, 0.15); color: #3b82f6; }
.dash-card--today .dash-card__icon { background: rgba(16, 185, 129, 0.15); color: #10b981; }
.dash-card--revenue .dash-card__icon { background: rgba(212, 175, 55, 0.2); color: #b8962e; }
.dash-card--due .dash-card__icon { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
.dash-card--advance .dash-card__icon { background: rgba(139, 92, 246, 0.15); color: #8b5cf6; }
.dash-card--completed .dash-card__icon { background: rgba(14, 165, 233, 0.15); color: #0ea5e9; }

.dash-card__value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-gray-900);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.dash-card__label {
    font-size: 0.8125rem;
    color: var(--color-gray-600);
    font-weight: 500;
}

/* ---- Dashboard grid (payment + status side by side) ---- */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

/* ---- Payment summary panel ---- */
.dash-payment-panel {
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98));
    backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.dash-payment-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.dash-payment-item {
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
}

.dash-payment-item__label {
    display: block;
    font-size: 0.8125rem;
    color: var(--color-gray-600);
    margin-bottom: 0.35rem;
}

.dash-payment-item__value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-gray-900);
}

.dash-payment-item--paid {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(16, 185, 129, 0.06));
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.dash-payment-item--paid .dash-payment-item__value { color: #059669; }

.dash-payment-item--advance {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.12), rgba(139, 92, 246, 0.06));
    border: 1px solid rgba(139, 92, 246, 0.25);
}

.dash-payment-item--advance .dash-payment-item__value { color: #6d28d9; }

.dash-payment-item--due {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(245, 158, 11, 0.06));
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.dash-payment-item--due .dash-payment-item__value { color: #d97706; }

.dash-progress-wrap {
    margin-top: 0.5rem;
}

.dash-progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--color-gray-600);
    margin-bottom: 0.5rem;
}

.dash-progress-bar {
    height: 10px;
    background: rgba(245, 158, 11, 0.2);
    border-radius: 999px;
    overflow: hidden;
}

.dash-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #34d399);
    border-radius: 999px;
    transition: width 0.4s ease;
}

/* ---- Booking status overview ---- */
.dash-status-panel {
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98));
    backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.dash-status-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

.dash-status-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    background: var(--color-gray-50);
    border: 1px solid var(--color-gray-200);
}

.dash-status-item__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.dash-status-item--pending .dash-status-item__dot { background: #f59e0b; }
.dash-status-item--confirmed .dash-status-item__dot { background: #3b82f6; }
.dash-status-item--completed .dash-status-item__dot { background: #10b981; }
.dash-status-item--cancelled .dash-status-item__dot { background: #e42323; }

.dash-status-item__label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-gray-700);
}

.dash-status-item__count {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-gray-900);
    margin-left: auto;
}

/* ---- Recent bookings ---- */
.dash-recent-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.dash-link {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-info);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.dash-link:hover {
    color: var(--color-primary-light);
}

.dash-recent {
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98));
    backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.dash-recent-table-wrap {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid var(--color-gray-200);
}

.dash-recent-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9375rem;
}

.dash-recent-table th {
    text-align: left;
    padding: 0.75rem 1rem;
    background: var(--color-gray-50);
    color: var(--color-gray-600);
    font-weight: 600;
    border-bottom: 1px solid var(--color-gray-200);
}

.dash-recent-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--color-gray-100);
}

.dash-recent-table tbody tr:hover {
    background: rgba(59, 130, 246, 0.04);
}

.dash-recent-id {
    font-weight: 600;
    color: var(--color-gray-800);
}

.dash-recent-match {
    color: var(--color-gray-700);
}

.dash-recent-date {
    color: var(--color-gray-600);
    font-size: 0.875rem;
}

.dash-badge {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.dash-badge--pending { background: rgba(245, 158, 11, 0.15); color: #b45309; }
.dash-badge--partial { background: rgba(59, 130, 246, 0.15); color: #2563eb; }
.dash-badge--paid { background: rgba(16, 185, 129, 0.15); color: #059669; }
.dash-badge--refunded { background: var(--color-gray-200); color: var(--color-gray-600); }

.dash-recent-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.dash-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.75rem;
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.dash-btn--view {
    background: rgba(59, 130, 246, 0.12);
    color: #2563eb;
}

.dash-btn--view:hover {
    background: rgba(59, 130, 246, 0.2);
    color: #1d4ed8;
}

.dash-btn--pay {
    background: rgba(16, 185, 129, 0.12);
    color: #059669;
}

.dash-btn--pay:hover {
    background: rgba(16, 185, 129, 0.2);
    color: #047857;
}

.dash-recent-empty {
    text-align: center;
    color: var(--color-gray-500);
    padding: 1.5rem !important;
}

/* Recent bookings: mobile cards (hidden by default) */
.dash-recent-cards {
    display: none;
}

.dash-recent-card {
    background: var(--color-white);
    border: 1px solid var(--color-gray-200);
    border-radius: 14px;
    padding: 1rem;
    margin-bottom: 0.75rem;
}

.dash-recent-card:last-child {
    margin-bottom: 0;
}

.dash-recent-card__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.dash-recent-card__match {
    font-weight: 500;
    color: var(--color-gray-800);
    margin-bottom: 0.25rem;
    font-size: 0.9375rem;
}

.dash-recent-card__date {
    font-size: 0.8125rem;
    color: var(--color-gray-600);
    margin-bottom: 0.75rem;
}

.dash-recent-card__actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* ---- Revenue chart placeholder ---- */
.dash-chart-panel {
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98));
    backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.dash-chart-container {
    min-height: 220px;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.8) 0%, rgba(241, 245, 249, 0.6) 100%);
    border: 2px dashed var(--color-gray-300);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.dash-chart-placeholder-text {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-gray-600);
    margin: 0;
}

.dash-chart-placeholder-hint {
    font-size: 0.8125rem;
    color: var(--color-gray-500);
    margin: 0;
}

/* ============================================
   DASHBOARD V2 - SaaS-style, insight-driven
   ============================================ */

.dash-v2 .dashboard-header {
    margin-bottom: 1.25rem;
}

.dash-v2 .dashboard-subtitle {
    color: var(--color-gray-600);
    font-size: 0.875rem;
}

/* Glass card base */
.dash-card-glass {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(248, 250, 252, 0.95));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05), 0 1px 3px rgba(15, 23, 42, 0.04);
    border: 1px solid rgba(226, 232, 240, 0.7);
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dash-card-glass::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.4), rgba(14, 165, 233, 0.3));
    border-radius: 16px 16px 0 0;
}

.dash-card-glass:hover {
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.07), 0 1px 3px rgba(15, 23, 42, 0.04);
}

.dash-card-glass__title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-gray-800);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dash-card-glass__title i {
    color: var(--color-info);
    font-size: 1.1rem;
}

.dash-card-glass__link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-info);
    text-decoration: none;
    margin-top: 0.75rem;
}

.dash-card-glass__link:hover {
    color: var(--color-primary-light);
}

/* Grid */
.dash-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

/* Financial summary - single source */
.dash-finance__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.dash-finance__item {
    padding: 0.875rem;
    border-radius: 12px;
    text-align: center;
}

.dash-finance__item--paid {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.05));
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.dash-finance__item--paid .dash-finance__value { color: #059669; }

.dash-finance__item--advance {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(139, 92, 246, 0.05));
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.dash-finance__item--advance .dash-finance__value { color: #6d28d9; }

.dash-finance__item--due {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(245, 158, 11, 0.05));
    border: 1px solid rgba(245, 158, 11, 0.25);
}

.dash-finance__item--due .dash-finance__value { color: #d97706; }

.dash-finance__label {
    display: block;
    font-size: 0.75rem;
    color: var(--color-gray-600);
    margin-bottom: 0.25rem;
}

.dash-finance__value {
    font-size: 1.25rem;
    font-weight: 700;
}

.dash-finance__progress {
    margin-top: 0.5rem;
}

.dash-finance__progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--color-gray-600);
    margin-bottom: 0.4rem;
}

.dash-finance__progress-bar {
    height: 8px;
    background: rgba(245, 158, 11, 0.15);
    border-radius: 999px;
    overflow: hidden;
}

.dash-finance__progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #34d399);
    border-radius: 999px;
    transition: width 0.35s ease;
}

/* Today activity */
.dash-today__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

.dash-today__item {
    text-align: center;
    padding: 0.6rem;
    border-radius: 12px;
    background: rgba(248, 250, 252, 0.8);
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: background 0.2s, border-color 0.2s;
}

.dash-today__item:hover {
    background: rgba(241, 245, 249, 0.9);
    border-color: rgba(203, 213, 225, 0.9);
}

.dash-today__item i {
    display: block;
    font-size: 1.25rem;
    color: var(--color-info);
    margin-bottom: 0.35rem;
}

.dash-today__value {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-gray-900);
}

.dash-today__label {
    font-size: 0.6875rem;
    color: var(--color-gray-500);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* Pending payment alert */
.dash-pending__content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}

.dash-pending__stat {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.dash-pending__count,
.dash-pending__amount {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-gray-900);
}

.dash-pending__label {
    font-size: 0.75rem;
    color: var(--color-gray-600);
}

.dash-pending__action {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.dash-pending__action:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}

.dash-pending--alert::before {
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.6), rgba(239, 68, 68, 0.4));
}

/* Ground utilization */
.dash-util__content {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.dash-util__stats {
    font-size: 0.875rem;
    color: var(--color-gray-600);
    min-width: 100px;
}

.dash-util__stats strong {
    color: var(--color-gray-900);
}

.dash-util__bar {
    flex: 1;
    min-width: 120px;
    height: 10px;
    background: var(--color-gray-200);
    border-radius: 999px;
    overflow: hidden;
}

.dash-util__fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #0ea5e9);
    border-radius: 999px;
    transition: width 0.4s ease;
}

.dash-util__pct {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-gray-800);
    min-width: 2.5rem;
    text-align: right;
}

/* Upcoming timeline */
.dash-timeline__list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.dash-timeline__item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    flex-wrap: wrap;
}

.dash-timeline__item:last-of-type {
    border-bottom: none;
}

.dash-timeline__match {
    flex: 1;
    min-width: 0;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-gray-800);
}

.dash-timeline__match em {
    font-style: normal;
    color: var(--color-gray-500);
    margin: 0 0.25rem;
}

.dash-timeline__meta {
    font-size: 0.8125rem;
    color: var(--color-gray-500);
}

.dash-timeline__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.65rem;
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 600;
    background: rgba(59, 130, 246, 0.12);
    color: #2563eb;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.dash-timeline__btn:hover {
    background: rgba(59, 130, 246, 0.2);
    color: #1d4ed8;
}

.dash-timeline__empty {
    font-size: 0.875rem;
    color: var(--color-gray-500);
    margin: 0;
}

/* Quick actions */
.dash-actions__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
}

.dash-actions__btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 0.85rem;
    border-radius: 12px;
    background: rgba(248, 250, 252, 0.9);
    border: 1px solid rgba(226, 232, 240, 0.9);
    color: var(--color-gray-700);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.dash-actions__btn:hover {
    background: rgba(241, 245, 249, 0.95);
    border-color: rgba(148, 163, 184, 0.8);
    transform: translateY(-1px);
}

.dash-actions__btn i {
    font-size: 1.1rem;
    color: var(--color-info);
}

/* Recent activity */
.dash-activity__list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 280px;
    overflow-y: auto;
}

.dash-activity__item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
    font-size: 0.875rem;
}

.dash-activity__item:last-child {
    border-bottom: none;
}

.dash-activity__item i {
    margin-top: 0.15rem;
    font-size: 1rem;
    flex-shrink: 0;
}

.dash-activity__item--booking_created i { color: #3b82f6; }
.dash-activity__item--payment i { color: #10b981; }
.dash-activity__item--cancelled i { color: var(--color-gray-400); }

.dash-activity__text {
    display: block;
    font-weight: 500;
    color: var(--color-gray-800);
}

.dash-activity__meta {
    font-size: 0.75rem;
    color: var(--color-gray-500);
}

.dash-activity__empty {
    font-size: 0.875rem;
    color: var(--color-gray-500);
    margin: 0;
}

/* Top teams */
.dash-teams__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.dash-teams__item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
}

.dash-teams__item:last-child {
    border-bottom: none;
}

.dash-teams__rank {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(14, 165, 233, 0.15));
    color: var(--color-info);
    font-size: 0.8125rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dash-teams__name {
    flex: 1;
    min-width: 0;
    font-weight: 500;
    color: var(--color-gray-800);
    font-size: 0.9375rem;
}

.dash-teams__count {
    font-size: 0.8125rem;
    color: var(--color-gray-500);
}

.dash-teams__empty {
    font-size: 0.875rem;
    color: var(--color-gray-500);
    margin: 0;
}

/* Dashboard V2 responsive */
@media (max-width: 1024px) {
    .dash-grid-2 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .dash-v2 .dashboard-wrap {
        padding: 0.75rem;
        padding-left: max(0.75rem, env(safe-area-inset-left));
        padding-right: max(0.75rem, env(safe-area-inset-right));
    }

    .dash-card-glass {
        padding: 1rem;
        margin-bottom: 1rem;
        border-radius: 14px;
    }

    .dash-finance__grid {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }

    .dash-finance__item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: left;
        padding: 0.65rem 0.85rem;
    }

    .dash-finance__label {
        margin-bottom: 0;
    }

    .dash-today__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .dash-today__item {
        padding: 0.5rem;
    }

    .dash-today__value {
        font-size: 1rem;
    }

    .dash-pending__content {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .dash-pending__action {
        width: 100%;
        justify-content: center;
    }

    .dash-util__content {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }

    .dash-util__bar {
        min-width: 0;
    }

    .dash-timeline__item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .dash-timeline__btn {
        align-self: flex-start;
    }

    .dash-actions__grid {
        grid-template-columns: 1fr;
    }

    .dash-activity__list {
        max-height: 220px;
    }
}

@media (max-width: 480px) {
    .dash-today__grid {
        grid-template-columns: 1fr;
    }
}

/* ---- Dashboard responsive ---- */
@media (max-width: 1200px) {
    .dash-cards {
        grid-template-columns: repeat(3, 1fr);
    }

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

/* Tablet: slightly tighter */
@media (max-width: 900px) {
    .dashboard-wrap {
        padding: 1.25rem 1rem 1.5rem;
    }

    .dashboard-section {
        margin-bottom: 1.25rem;
    }

    .dash-section-title {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }

    .dash-payment-panel,
    .dash-status-panel,
    .dash-recent,
    .dash-chart-panel {
        padding: 1.25rem;
        border-radius: 16px;
    }

    .dash-payment-item {
        padding: 0.875rem;
    }

    .dash-payment-item__value {
        font-size: 1.1rem;
    }

    .dash-status-item {
        padding: 0.6rem 0.875rem;
    }

    .dash-status-item__label {
        font-size: 0.8125rem;
    }
}

/* Mobile: compact layout + show key metrics strip */
@media (max-width: 768px) {
    .dashboard-wrap {
        padding: 0.75rem 0.75rem 1.25rem;
        padding-left: max(0.75rem, env(safe-area-inset-left));
        padding-right: max(0.75rem, env(safe-area-inset-right));
        padding-bottom: max(1.25rem, env(safe-area-inset-bottom));
    }

    .dashboard-header {
        margin-bottom: 1rem;
    }

    .dashboard-title {
        font-size: 1.35rem;
        margin-bottom: 0.15rem;
    }

    .dashboard-subtitle {
        display: none;
    }

    /* Mobile strip: 4 key metrics in one row */
    .dash-mobile-strip {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 0.5rem;
        margin-top: 0.75rem;
        padding: 0.6rem 0;
        border-radius: 12px;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(248, 250, 252, 0.95));
        border: 1px solid rgba(226, 232, 240, 0.9);
        box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
    }

    .dash-mobile-strip__item {
        text-align: center;
        padding: 0.4rem 0.25rem;
    }

    .dash-mobile-strip__value {
        display: block;
        font-size: 0.9375rem;
        font-weight: 700;
        color: var(--color-gray-900);
        line-height: 1.2;
    }

    .dash-mobile-strip__label {
        font-size: 0.6875rem;
        font-weight: 600;
        color: var(--color-gray-500);
        text-transform: uppercase;
        letter-spacing: 0.02em;
    }

    .dashboard-section {
        margin-bottom: 1rem;
    }

    .dash-section-cards {
        margin-bottom: 0.875rem;
    }

    .dash-section-title {
        font-size: 0.9375rem;
        margin-bottom: 0.6rem;
    }

    .dash-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .dash-card {
        padding: 0.6rem 0.65rem;
        border-radius: 12px;
    }

    .dash-card::before {
        height: 2px;
        border-radius: 12px 12px 0 0;
    }

    .dash-card__icon {
        width: 32px;
        height: 32px;
        font-size: 1rem;
        margin-bottom: 0.4rem;
    }

    .dash-card__value {
        font-size: 1.05rem;
    }

    .dash-card__label {
        font-size: 0.6875rem;
        line-height: 1.2;
    }

    .dashboard-grid {
        gap: 1rem;
    }

    .dash-payment-panel,
    .dash-status-panel,
    .dash-recent,
    .dash-chart-panel {
        padding: 0.5rem 0.3rem;
        border-radius: 14px;
    }

    .dash-payment-cards {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
        margin-bottom: 0.875rem;
    }

    .dash-payment-item {
        padding: 0.6rem 0.4rem;
        border-radius: 10px;
    }

    .dash-payment-item__label {
        font-size: 0.6875rem;
        margin-bottom: 0.2rem;
    }

    .dash-payment-item__value {
        font-size: 0.9375rem;
    }

    .dash-progress-wrap {
        margin-top: 0.35rem;
    }

    .dash-progress-labels {
        font-size: 0.6875rem;
        margin-bottom: 0.35rem;
    }

    .dash-progress-bar {
        height: 8px;
    }

    .dash-status-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.5rem;
    }

    .dash-status-item {
        padding: 0.5rem 0.4rem;
        border-radius: 10px;
        flex-direction: column;
        align-items: center;
        gap: 0.25rem;
        text-align: center;
    }

    .dash-status-item__dot {
        width: 6px;
        height: 6px;
    }

    .dash-status-item__label {
        font-size: 0.9rem;
    }

    .dash-status-item__count {
        font-size: 0.9375rem;
        margin-left: 0;
    }

    .dash-recent-header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 0.75rem;
    }

    .dash-link {
        font-size: 0.8125rem;
    }

    .dash-recent-table-wrap {
        display: none;
    }

    .dash-recent-cards {
        display: block;
    }

    .dash-recent-card {
        padding: 0.75rem;
        border-radius: 12px;
        margin-bottom: 0.5rem;
    }

    .dash-recent-card__top {
        margin-bottom: 0.35rem;
    }

    .dash-recent-id {
        font-size: 0.8125rem;
    }

    .dash-recent-card__match {
        font-size: 0.8125rem;
        margin-bottom: 0.2rem;
        line-height: 1.3;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .dash-recent-card__date {
        font-size: 0.75rem;
        margin-bottom: 0.6rem;
        color: var(--color-gray-600);
        display: flex;
        align-items: center;
        gap: 0.35rem;
    }

    .dash-recent-card__date-icon {
        font-size: 0.75rem;
        opacity: 0.8;
        flex-shrink: 0;
    }

    .dash-recent-card__actions {
        gap: 0.4rem;
    }

    .dash-btn {
        padding: 0.45rem 0.65rem;
        font-size: 0.75rem;
        min-height: 44px;
        min-width: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.35rem;
    }

    .dash-btn i {
        font-size: 0.875rem;
    }

    .dash-badge {
        padding: 0.2rem 0.5rem;
        font-size: 0.6875rem;
    }

    .dash-chart-container {
        min-height: 160px;
        border-radius: 12px;
        padding: 0.75rem;
    }

    .dash-chart-placeholder-text {
        font-size: 0.8125rem;
    }

    .dash-chart-placeholder-hint {
        font-size: 0.75rem;
    }
}

/* Small phones: extra compact */
@media (max-width: 480px) {
    .dashboard-wrap {
        padding: 0.5rem 0.6rem 1rem;
    }

    .dashboard-title {
        font-size: 1.2rem;
    }

    .dash-mobile-strip {
        gap: 0.35rem;
        margin-top: 0.6rem;
        padding: 0.5rem 0.25rem;
    }

    .dash-mobile-strip__value {
        font-size: 0.875rem;
    }

    .dash-mobile-strip__label {
        font-size: 0.625rem;
    }

    .dash-cards {
        gap: 0.4rem;
    }

    .dash-card {
        padding: 0.4rem 0.5rem;
    }

    .dash-card__icon {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
    }

    .dash-card__value {
        font-size: 0.95rem;
    }

    .dash-card__label {
        font-size: 0.8rem;
    }

    .dash-payment-cards {
        grid-template-columns: 1fr;
        gap: 0.4rem;
    }

    .dash-payment-item {
        padding: 0.5rem 0.6rem;
        flex-direction: row;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .dash-payment-item__label {
        margin-bottom: 0;
    }

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

    .dash-status-item {
        flex-direction: row;
        justify-content: flex-start;
        text-align: left;
        padding: 0.1rem 0.6rem;
    }

    .dash-status-item__count {
        margin-left: auto;
    }

    .dash-recent-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.35rem;
    }

    .dash-recent-card {
        padding: 0.65rem;
    }
}

/* Very small screens (e.g. 360px) */
@media (max-width: 380px) {
    .dash-mobile-strip {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.4rem;
    }

    .dash-mobile-strip__item:nth-child(1) { order: 1; }
    .dash-mobile-strip__item:nth-child(2) { order: 2; }
    .dash-mobile-strip__item:nth-child(3) { order: 3; }
    .dash-mobile-strip__item:nth-child(4) { order: 4; }
}
