:root {
    --ink: #1d2146;
    --muted: #6d7682;
    --line: #dfe8e2;
    --field: #359957;
    --field-dark: #247a43;
    --accent: #56c87d;
    --surface: #ffffff;
    --soft: #f6faf8;
}

body {
    background: var(--soft);
    color: var(--ink);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.site-shell {
    min-height: 100vh;
    background:
        radial-gradient(circle at 18% 12%, rgba(86,200,125,.24), transparent 30%),
        radial-gradient(circle at 82% 4%, rgba(53,153,87,.16), transparent 24%),
        linear-gradient(180deg, rgba(255,255,255,.96), rgba(246,250,248,1));
}

.app-nav {
    background: rgba(255,255,255,.92);
    border-bottom: 1px solid rgba(16,32,26,.08);
    backdrop-filter: blur(12px);
}

.brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--field), var(--accent));
    display: inline-grid;
    place-items: center;
    color: #fff;
    font-weight: 800;
    object-fit: cover;
    box-shadow: 0 0 0 1px rgba(255,255,255,.8), 0 8px 18px rgba(53,153,87,.22);
}

.brand-wordmark {
    width: 164px;
    max-width: 100%;
    height: auto;
    display: block;
}

.sidebar .brand-wordmark {
    width: 222px;
}

.turf-hero-logo {
    width: 76px;
    height: 76px;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: 0 0 0 1px rgba(255,255,255,.9), 0 14px 30px rgba(53,153,87,.18);
}

.hero-band {
    padding: 48px 0 28px;
}

.hero-title {
    font-size: clamp(2rem, 4vw, 4.2rem);
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.02;
}

.hero-copy {
    max-width: 680px;
    color: #46524c;
    font-size: 1.05rem;
}

.booking-panel,
.admin-panel,
.toolbar-card {
    background: rgba(255,255,255,.96);
    border: 1px solid rgba(53,153,87,.12);
    border-radius: 8px;
    box-shadow: 0 18px 50px rgba(9,45,30,.10);
}

.booking-panel {
    padding: 20px;
}

.booking-workspace {
    align-items: start;
}

.booking-toolbar {
    background: linear-gradient(180deg, #fff, #fbfcfa);
    border: 1px solid rgba(16,32,26,.08);
    border-radius: 8px;
    padding: 10px;
    box-shadow: inset 0 -1px 0 rgba(53,153,87,.06);
}

.booking-sidebar {
    display: grid;
    gap: 14px;
}

.toolbar-card {
    padding: 14px;
}

.admin-panel {
    padding: 18px;
}

.dashboard-main {
    min-width: 0;
}

.slot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 10px;
}

.date-stepper {
    --date-control-height: 48px;
    display: grid;
    grid-template-columns: var(--date-control-height) minmax(180px, 1fr) var(--date-control-height);
    gap: 8px;
    align-items: center;
    max-width: 390px;
}

.date-stepper .form-control {
    height: var(--date-control-height);
    min-height: var(--date-control-height);
}

.date-stepper .btn {
    align-items: center;
    border-color: #cfdcd4;
    color: var(--field-dark);
    display: inline-flex;
    height: var(--date-control-height);
    justify-content: center;
    min-height: var(--date-control-height);
    padding-left: 0;
    padding-right: 0;
    width: var(--date-control-height);
}

.date-stepper .btn:hover,
.date-stepper .btn:focus {
    background: rgba(53,153,87,.10);
    border-color: var(--field);
    color: var(--field-dark);
}

.date-stepper .btn:disabled {
    background: #eef1ed;
    border-color: #dce5df;
    color: #a2ada6;
    opacity: 1;
    cursor: not-allowed;
}

.date-nav-btn::before {
    border-right: 2px solid currentColor;
    border-top: 2px solid currentColor;
    content: "";
    display: block;
    height: 11px;
    width: 11px;
}

.date-nav-prev::before {
    transform: rotate(-135deg);
}

.date-nav-next::before {
    transform: rotate(45deg);
}

.slot-card {
    min-height: 110px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px;
    background: #fff;
    text-align: left;
    transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.slot-card:not(:disabled):hover,
.slot-card.active {
    border-color: var(--field);
    box-shadow: 0 10px 24px rgba(53,153,87,.16);
    transform: translateY(-1px);
}

.slot-card:disabled {
    opacity: .55;
    background: #eef1ed;
}

.slot-time {
    font-weight: 800;
    display: block;
}

.slot-price {
    color: var(--field-dark);
    font-weight: 700;
}

.slot-state-badge {
    border-radius: 999px;
    display: inline-flex;
    font-size: .78rem;
    font-weight: 800;
    margin-top: 10px;
    padding: 5px 10px;
}

.slot-state-available {
    background: rgba(53,153,87,.12);
    border: 1px solid rgba(53,153,87,.22);
    color: var(--field-dark);
}

.slot-state-booked {
    background: #fff3cd;
    border: 1px solid #f3d27a;
    color: #8a6500;
}

.slot-state-otp_pending {
    background: #fff7e8;
    border: 1px solid #f4c36b;
    color: #8a5200;
}

.slot-state-payment_pending {
    background: #e8f1ff;
    border: 1px solid #99bff7;
    color: #0f4f96;
}

.slot-state-blocked {
    background: #f8d7da;
    border: 1px solid #efadb5;
    color: #842029;
}

.booking-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(112px, 1fr));
    gap: 6px;
    flex: 1 1 540px;
}

.step-pill {
    align-items: center;
    background: #f3f8f5;
    border: 1px solid transparent;
    border-radius: 8px;
    color: #66756e;
    display: flex;
    font-size: .9rem;
    font-weight: 800;
    gap: 8px;
    justify-content: center;
    min-height: 44px;
    padding: 8px 12px;
    position: relative;
    transition: background-color .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
}

.step-pill span {
    align-items: center;
    background: rgba(109,118,130,.12);
    border-radius: 999px;
    display: inline-flex;
    font-size: .78rem;
    height: 24px;
    justify-content: center;
    min-width: 24px;
}

.step-pill.active {
    background: #fff;
    box-shadow: 0 8px 22px rgba(53,153,87,.14);
    color: var(--field-dark);
    border-color: var(--field);
}

.step-pill.active span {
    background: var(--field);
    color: #fff;
}

.summary-box {
    background: linear-gradient(180deg, #fbfdfb, #f5faf7);
    border: 1px solid rgba(53,153,87,.16);
    border-radius: 8px;
    box-shadow: inset 4px 0 0 rgba(53,153,87,.18);
    padding: 14px 16px;
}

.form-stage {
    background: linear-gradient(180deg, #ffffff, #fbfdfb);
    border: 1px solid rgba(16,32,26,.10);
    border-radius: 8px;
    box-shadow: 0 10px 24px rgba(9,45,30,.05);
    padding: 18px;
}

.form-stage .row {
    --bs-gutter-x: .9rem;
    --bs-gutter-y: .9rem;
}

.customer-stage {
    opacity: .74;
    transition: border-color .18s ease, box-shadow .18s ease, opacity .18s ease, background-color .18s ease;
}

.customer-stage.is-ready {
    background: linear-gradient(180deg, #ffffff, #f6fff9);
    border-color: rgba(53,153,87,.52);
    box-shadow: 0 14px 34px rgba(53,153,87,.18), inset 4px 0 0 var(--field);
    opacity: 1;
}

.customer-stage.is-ready .form-stage-title {
    color: var(--field-dark);
}

.customer-stage.attention-pulse {
    animation: customerPulse 1.15s ease;
}

.next-step-hint {
    background: #e9f9ee;
    border: 1px solid rgba(53,153,87,.24);
    border-radius: 8px;
    color: #183f2a;
    margin-bottom: 14px;
    padding: 12px 14px;
}

.next-step-kicker {
    color: var(--field-dark);
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .05em;
    margin-bottom: 2px;
    text-transform: uppercase;
}

.stage-confirmation {
    background: #ecfdf3;
    border: 1px solid rgba(53,153,87,.30);
    border-radius: 8px;
    box-shadow: 0 12px 24px rgba(53,153,87,.12);
    padding: 14px 16px;
}

.stage-confirmation-title {
    color: var(--field-dark);
    font-weight: 900;
}

.stage-confirmation-copy {
    color: #334a3d;
    margin-top: 2px;
}

.form-stage-muted {
    background: #fbfcfa;
}

.form-stage-title {
    align-items: center;
    color: var(--field-dark);
    display: flex;
    font-size: .84rem;
    font-weight: 800;
    letter-spacing: .04em;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.form-label {
    color: #26372f;
    font-size: .86rem;
    font-weight: 800;
    margin-bottom: 7px;
}

.form-control,
.form-select {
    background-color: #fbfdfb;
    border-color: #d4e1d9;
    border-radius: 8px;
    border-width: 1px;
    min-height: 44px;
    padding: .62rem .78rem;
    transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}

.form-control:hover,
.form-select:hover {
    border-color: #b8d5c3;
}

.form-control:focus,
.form-select:focus {
    background-color: #fff;
    border-color: var(--field);
    box-shadow: 0 0 0 .22rem rgba(53,153,87,.14);
}

.form-control::placeholder {
    color: #9aa8a1;
}

textarea.form-control {
    min-height: 104px;
    resize: vertical;
}

.form-text {
    color: #6c7771;
    font-size: .82rem;
    margin-top: 6px;
}

.booking-actions {
    display: grid;
    gap: 8px;
}

.booking-actions .btn {
    font-weight: 700;
    min-height: 48px;
}

.booking-success {
    align-items: flex-start;
    background: linear-gradient(135deg, #e9f9ee, #ffffff);
    border: 1px solid rgba(53,153,87,.32);
    border-radius: 8px;
    box-shadow: 0 18px 34px rgba(53,153,87,.16);
    color: #183f2a;
    display: flex;
    gap: 14px;
    margin-top: 16px;
    padding: 18px;
}

.booking-success.d-none {
    display: none !important;
}

.success-mark {
    align-items: center;
    background: var(--field);
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    flex: 0 0 38px;
    font-size: 1.25rem;
    font-weight: 900;
    height: 38px;
    justify-content: center;
    line-height: 1;
}

.success-title {
    color: var(--field-dark);
    font-size: 1.12rem;
    font-weight: 900;
    line-height: 1.25;
}

.success-copy {
    color: #334a3d;
    margin-top: 3px;
}

.success-meta {
    color: #607067;
    font-size: .9rem;
    margin-top: 8px;
}

.success-meta-line + .success-meta-line {
    margin-top: 3px;
}

.credit-warning-strip {
    align-items: center;
    background: #fff8e1;
    border: 1px solid #f2d27b;
    border-radius: 8px;
    color: #6b4b00;
    display: flex;
    gap: 14px;
    justify-content: space-between;
    padding: 14px 16px;
}

.metric-label {
    align-items: center;
    display: inline-flex;
    gap: 6px;
}

.metric-help {
    align-items: center;
    background: rgba(53,153,87,.10);
    border: 1px solid rgba(53,153,87,.20);
    border-radius: 999px;
    color: var(--field-dark);
    cursor: help;
    display: inline-flex;
    font-size: .72rem;
    font-weight: 900;
    height: 18px;
    justify-content: center;
    line-height: 1;
    width: 18px;
}

@keyframes customerPulse {
    0% { transform: translateY(0); }
    35% { transform: translateY(-2px); box-shadow: 0 18px 42px rgba(53,153,87,.24), inset 4px 0 0 var(--field); }
    100% { transform: translateY(0); }
}

.admin-panel.row {
    align-items: end;
    margin-left: 0;
    margin-right: 0;
    row-gap: 16px;
}

.admin-panel.row > [class*="col-"] {
    min-width: 0;
}

.admin-panel .row {
    --bs-gutter-x: .95rem;
    --bs-gutter-y: 1rem;
}

.admin-panel .form-label,
.toolbar-card .form-label {
    color: #31463b;
    font-size: .82rem;
    letter-spacing: .01em;
    margin-bottom: 6px;
}

.admin-panel .form-control,
.admin-panel .form-select,
.toolbar-card .form-control,
.toolbar-card .form-select {
    background-color: #fbfdfb;
    width: 100%;
}

.toolbar-card {
    align-items: end !important;
    row-gap: 12px !important;
}

.toolbar-card > div {
    flex: 1 1 190px;
    min-width: min(100%, 190px);
}

.toolbar-card .btn {
    white-space: nowrap;
}

.admin-panel .form-check {
    align-items: center;
    background: #fbfdfb;
    border: 1px solid rgba(16,32,26,.08);
    border-radius: 8px;
    display: flex;
    gap: 8px;
    min-height: 42px;
    padding: 10px 12px;
}

.admin-panel .form-check-input {
    flex: 0 0 auto;
    margin: 0;
}

.admin-panel .form-check-label,
.admin-panel .form-check {
    color: #334a3d;
    font-weight: 700;
}

.form-control[type="file"] {
    padding-bottom: .52rem;
    padding-top: .52rem;
}

.report-actions {
    padding: 16px;
}

.report-account-name {
    overflow-wrap: anywhere;
}

.report-download-btn,
.report-email-btn {
    width: 100%;
    white-space: nowrap;
}

.report-email-form .row {
    --bs-gutter-x: .5rem;
    --bs-gutter-y: .5rem;
}

.report-email-form .form-control {
    min-height: 42px;
}

.payment-bkash-field {
    transition: opacity .16s ease;
}

.admin-panel.table-responsive {
    padding: 12px;
}

.admin-panel.table-responsive .table {
    margin-bottom: 0;
}

.table .form-control,
.table .form-select {
    background-color: #fff;
    min-width: 138px;
}

.table .form-control-sm {
    min-height: 38px;
    padding-bottom: .45rem;
    padding-top: .45rem;
}

.table td:last-child .btn,
.table td:last-child form {
    margin-bottom: 4px;
}

.admin-panel .btn,
.toolbar-card .btn {
    font-weight: 700;
    min-height: 42px;
}

.btn-primary {
    --bs-btn-bg: var(--field);
    --bs-btn-border-color: var(--field);
    --bs-btn-hover-bg: var(--field-dark);
    --bs-btn-hover-border-color: var(--field-dark);
}

.btn-warning {
    --bs-btn-bg: var(--accent);
    --bs-btn-border-color: var(--accent);
}

.table thead th {
    color: #607067;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.status-badge {
    border-radius: 999px;
    padding: .35rem .6rem;
    font-weight: 700;
    font-size: .78rem;
}

.status-pending_otp { background: #fff3cd; color: #8a6500; }
.status-payment_pending { background: #dff3ff; color: #075985; }
.status-payment_verification { background: #ede9fe; color: #5b21b6; }
.status-confirmed { background: #d8f3dc; color: #166534; }
.status-rejected,
.status-cancelled { background: #f8d7da; color: #842029; }

.sidebar {
    background: linear-gradient(180deg, #1d2146, #247a43);
    min-height: 100vh;
}

.sidebar a {
    color: rgba(255,255,255,.76);
    border-radius: 8px;
    display: block;
    padding: 10px 12px;
    text-decoration: none;
}

.sidebar a.active,
.sidebar a:hover {
    background: rgba(255,255,255,.10);
    color: #fff;
}

@media (max-width: 767px) {
    .sidebar {
        min-height: auto;
        position: sticky;
        top: 0;
        z-index: 20;
        padding: 12px !important;
    }

    .sidebar .mb-4 {
        margin-bottom: 10px !important;
    }

    .sidebar nav {
        display: flex !important;
        flex-wrap: wrap;
        gap: 8px;
        align-items: center;
        overflow-x: visible;
        padding-bottom: 0;
    }

    .sidebar nav a,
    .sidebar nav .small {
        width: auto;
        flex: 0 0 auto;
        max-width: 100%;
        border: 1px solid rgba(255,255,255,.16);
        border-radius: 999px;
        background: rgba(255,255,255,.08);
        color: rgba(255,255,255,.86);
        font-size: .86rem;
        font-weight: 700;
        line-height: 1.1;
        padding: 9px 11px;
        white-space: nowrap;
    }

    .sidebar nav a.active,
    .sidebar nav a:hover {
        background: #fff;
        border-color: #fff;
        color: var(--ink);
    }

    .sidebar nav .small {
        color: #d6f8de !important;
        background: rgba(36,122,67,.46);
    }

    .hero-band {
        padding-top: 28px;
    }

    .dashboard-main {
        padding: 16px !important;
    }

    .admin-panel,
    .toolbar-card {
        padding: 14px;
    }

    .admin-panel.row {
        --bs-gutter-x: 0;
        --bs-gutter-y: 12px;
    }

    .admin-panel.row > [class*="col-"] {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .toolbar-card {
        align-items: stretch !important;
    }

    .toolbar-card > div,
    .toolbar-card .btn {
        flex: 1 1 100%;
        width: 100%;
    }

    .admin-panel .btn,
    .toolbar-card .btn {
        width: 100%;
    }

    .report-actions .report-email-form .row > [class*="col-"] {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .admin-panel .d-flex.align-items-end,
    .admin-panel .d-flex.justify-content-end {
        align-items: stretch !important;
        justify-content: stretch !important;
    }

    .admin-panel .d-flex.gap-1,
    .admin-panel .d-flex.gap-2 {
        flex-wrap: wrap;
    }

    .admin-panel .form-check {
        width: 100%;
    }

    .credit-warning-strip {
        align-items: stretch;
        flex-direction: column;
    }
}

@media (max-width: 575px) {
    .booking-panel {
        padding: 14px;
    }

    .booking-toolbar {
        padding: 12px;
    }

    .date-stepper {
        --date-control-height: 46px;
        grid-template-columns: var(--date-control-height) minmax(0, 1fr) var(--date-control-height);
        max-width: 100%;
    }

    .booking-tabs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }

    .step-pill {
        text-align: center;
        padding: 8px;
    }

    .form-stage {
        padding: 14px;
    }

    .form-label {
        font-size: .84rem;
    }

    .form-control,
    .form-select {
        min-height: 46px;
    }

    .btn-lg {
        --bs-btn-padding-y: .65rem;
        --bs-btn-font-size: 1rem;
    }
}
