/* ==========================================================================
   Booking Lapangan — gaya utama (publik + admin)
   ========================================================================== */

:root {
    --green-950: #08251a;
    --green-900: #0d3b2a;
    --green-800: #0f4d36;
    --green-700: #146b49;
    --green-600: #1a8057;
    --lime: #c9f27a;
    --lime-soft: #ebf8cf;
    --cream: #f5f2e8;
    --cream-2: #eeeadd;
    --paper: #fffdf8;
    --ink: #14251d;
    --muted: #67736b;
    --line: #e1dccb;
    --clay: #c96a3d;
    --warn: #a86d16;
    --danger: #b4453a;
    --purple: #7152a3;
    --radius: 18px;
    --radius-lg: 26px;
    --shadow: 0 24px 60px -36px rgba(8, 37, 26, .45);
    --font-body: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
    --font-display: Georgia, "Times New Roman", serif;
}

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

html {
    scroll-behavior: smooth;
}

#jadwal,
#pesan,
#harga,
#cara {
    scroll-margin-top: 92px;
}

body {
    margin: 0;
    background: var(--cream);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, p, dl, dd, figure {
    margin: 0;
}

h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.08;
    letter-spacing: -.02em;
}

a {
    color: inherit;
    text-decoration: none;
}

img, svg {
    display: block;
    max-width: 100%;
}

button, input, select, textarea {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

code, .mono {
    font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
}

.icon {
    width: 18px;
    height: 18px;
    flex: none;
}

::selection {
    background: var(--lime);
    color: var(--green-950);
}

:focus-visible {
    outline: 2px solid var(--clay);
    outline-offset: 3px;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -80px;
    z-index: 100;
    background: var(--green-900);
    color: #fff;
    padding: 10px 18px;
    border-radius: 999px;
    transition: top .2s ease;
}

.skip-link:focus {
    top: 16px;
}

.container {
    width: min(1180px, calc(100% - 48px));
    margin-inline: auto;
}

.container--narrow {
    width: min(760px, calc(100% - 40px));
}

/* --------------------------------------------------------------------------
   Tombol
   -------------------------------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 12px 22px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
    transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

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

.btn--primary {
    background: var(--green-800);
    color: #fff;
    box-shadow: 0 10px 24px -14px rgba(8, 37, 26, .8);
}

.btn--primary:hover {
    background: var(--green-700);
}

.btn--ghost {
    background: transparent;
    border-color: rgba(20, 37, 29, .22);
    color: var(--ink);
}

.btn--ghost:hover {
    background: rgba(20, 37, 29, .05);
    border-color: rgba(20, 37, 29, .35);
}

.btn--danger-ghost {
    background: transparent;
    border-color: rgba(180, 69, 58, .35);
    color: var(--danger);
}

.btn--danger-ghost:hover {
    background: rgba(180, 69, 58, .08);
}

.btn--small {
    padding: 9px 16px;
    font-size: 13px;
    gap: 6px;
}

.btn--tiny {
    padding: 6px 11px;
    font-size: 12px;
    gap: 4px;
}

.btn--lg {
    padding: 15px 26px;
    font-size: 15px;
}

.btn--block {
    width: 100%;
}

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

.btn.is-disabled {
    opacity: .45;
    pointer-events: none;
}

.btn:disabled {
    opacity: .45;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* --------------------------------------------------------------------------
   Header publik
   -------------------------------------------------------------------------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(245, 242, 232, .88);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(20, 37, 29, .08);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 78px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex: none;
    border-radius: 50%;
    background: var(--green-800);
    color: var(--lime);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
}

.brand-mark .icon {
    width: 24px;
    height: 24px;
}

.brand-mark--light {
    background: rgba(255, 255, 255, .08);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand-text strong {
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 500;
    letter-spacing: -.01em;
}

.brand-text small {
    font-size: 10px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--muted);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 26px;
    font-size: 14px;
    font-weight: 500;
}

.main-nav > a:not(.btn):not(.nav-admin) {
    position: relative;
    padding: 4px 0;
    color: #34443b;
}

.main-nav > a:not(.btn):not(.nav-admin)::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 2px;
    background: var(--green-700);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .2s ease;
}

.main-nav > a:not(.btn):not(.nav-admin):hover::after {
    transform: scaleX(1);
}

.nav-admin {
    font-size: 12px;
    color: var(--muted);
    border-left: 1px solid rgba(20, 37, 29, .15);
    padding-left: 20px;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.nav-admin:hover {
    color: var(--green-800);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
    position: relative;
    padding: 72px 0 56px;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(600px 380px at 88% 12%, rgba(201, 242, 122, .35), transparent 70%),
        radial-gradient(500px 320px at 2% 100%, rgba(201, 106, 61, .12), transparent 70%);
    pointer-events: none;
}

.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 48px;
    align-items: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--green-700);
}

.eyebrow--light {
    color: var(--lime);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green-600);
    box-shadow: 0 0 0 0 rgba(26, 128, 87, .5);
    animation: pulse 2.4s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(26, 128, 87, .45); }
    70% { box-shadow: 0 0 0 9px rgba(26, 128, 87, 0); }
    100% { box-shadow: 0 0 0 0 rgba(26, 128, 87, 0); }
}

.hero h1 {
    margin: 20px 0 22px;
    font-size: clamp(48px, 6.2vw, 78px);
    line-height: .96;
    letter-spacing: -.035em;
}

.hero h1 em {
    font-style: italic;
    color: var(--green-700);
}

.lede {
    max-width: 460px;
    font-size: 17px;
    color: #4e5c53;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 30px 0 38px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    max-width: 520px;
    padding-top: 22px;
    border-top: 1px solid rgba(20, 37, 29, .14);
}

.hero-stats dt {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted);
}

.hero-stats dd {
    margin-top: 4px;
    font-size: 19px;
    font-weight: 700;
    letter-spacing: -.02em;
}

.hero-stats dd span {
    font-size: 11px;
    font-weight: 500;
    color: var(--muted);
    letter-spacing: 0;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    min-height: 470px;
    align-items: center;
}

.court-poster {
    position: relative;
    width: min(340px, 88%);
    aspect-ratio: .78;
    padding: 18px;
    border-radius: 26px;
    background:
        radial-gradient(420px 260px at 70% 0%, rgba(201, 242, 122, .22), transparent 65%),
        linear-gradient(165deg, #104d36 0%, #08251a 100%);
    box-shadow: 0 40px 70px -38px rgba(8, 37, 26, .85), inset 0 0 0 1px rgba(255, 255, 255, .08);
    transform: rotate(-3deg);
    overflow: hidden;
}

.court-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
    background-size: 26px 26px;
    pointer-events: none;
}

.poster-head,
.poster-foot {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: rgba(255, 255, 255, .62);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
}

.poster-mark .icon {
    width: 18px;
    height: 18px;
    color: var(--lime);
}

.court-lines {
    position: absolute;
    inset: 52px 20px 58px;
    width: calc(100% - 40px);
    height: calc(100% - 110px);
    z-index: 1;
}

.poster-ball {
    position: absolute;
    right: 42px;
    bottom: 96px;
    z-index: 3;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: radial-gradient(circle at 32% 28%, #efffc4, #b9e85e 70%);
    box-shadow: 0 18px 28px -12px rgba(0, 0, 0, .55);
}

.poster-ball::before,
.poster-ball::after {
    content: "";
    position: absolute;
    inset: 6px;
    border: 1.5px solid rgba(13, 59, 42, .45);
    border-radius: 50%;
}

.poster-ball::before {
    clip-path: polygon(0 0, 55% 0, 45% 100%, 0 100%);
}

.poster-ball::after {
    clip-path: polygon(55% 0, 100% 0, 100% 100%, 45% 100%);
}

.float-ticket {
    position: absolute;
    left: -6px;
    bottom: 18px;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px 12px 12px;
    background: var(--paper);
    border-radius: 16px;
    box-shadow: 0 24px 44px -24px rgba(8, 37, 26, .55);
    transform: rotate(2deg);
}

.float-ticket__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: var(--lime);
    color: var(--green-900);
}

.float-ticket div {
    display: flex;
    flex-direction: column;
    line-height: 1.35;
}

.float-ticket strong {
    font-size: 13px;
    letter-spacing: -.01em;
}

.float-ticket div span {
    font-size: 10px;
    color: var(--muted);
}

.float-ticket__status {
    margin-left: 4px;
    padding: 3px 8px;
    border-radius: 999px;
    background: var(--lime-soft);
    color: var(--green-700);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Marquee
   -------------------------------------------------------------------------- */

.marquee {
    overflow: hidden;
    padding: 14px 0;
    background: var(--green-900);
    color: rgba(255, 255, 255, .82);
    border-block: 1px solid rgba(255, 255, 255, .08);
}

.marquee-track {
    display: flex;
    align-items: center;
    gap: 22px;
    width: max-content;
    animation: marquee 38s linear infinite;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .22em;
    text-transform: uppercase;
    white-space: nowrap;
}

.marquee-dot {
    color: var(--lime);
    font-size: 7px;
}

@keyframes marquee {
    to { transform: translateX(-33.333%); }
}

/* --------------------------------------------------------------------------
   Section umum
   -------------------------------------------------------------------------- */

.section {
    padding: 86px 0;
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 34px;
}

.section-head h2 {
    margin: 10px 0 8px;
    font-size: clamp(32px, 4vw, 46px);
}

.section-head p {
    max-width: 520px;
    font-size: 15px;
    color: var(--muted);
}

.week-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: none;
    padding: 6px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex: none;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 11px;
    background: transparent;
    color: var(--ink);
    transition: background .18s ease, border-color .18s ease, color .18s ease;
}

.icon-btn:hover {
    background: var(--cream);
    border-color: var(--line);
}

.icon-btn.is-disabled {
    opacity: .3;
    pointer-events: none;
}

.icon-btn--wa {
    background: var(--lime-soft);
    color: var(--green-800);
}

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

.icon-btn--danger:hover {
    background: rgba(180, 69, 58, .08);
}

.icon-btn.is-copied {
    background: var(--lime);
    color: var(--green-900);
}

.week-label {
    display: flex;
    flex-direction: column;
    min-width: 186px;
    padding: 0 6px;
    line-height: 1.25;
}

.week-label strong {
    font-size: 13px;
    letter-spacing: -.01em;
}

.week-label span {
    font-size: 10px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .1em;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--green-700);
}

.text-link .icon {
    width: 15px;
    height: 15px;
    transition: transform .18s ease;
}

.text-link:hover .icon {
    transform: translateX(3px);
}

/* --------------------------------------------------------------------------
   Jadwal
   -------------------------------------------------------------------------- */

.schedule-card {
    padding: 24px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.schedule-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.court-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 5px;
    background: var(--cream);
    border-radius: 14px;
}

.court-tab {
    display: flex;
    flex-direction: column;
    padding: 9px 18px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.25;
    transition: background .18s ease, color .18s ease;
}

.court-tab span {
    font-size: 10px;
    font-weight: 500;
    color: var(--muted);
}

.court-tab:hover {
    background: rgba(255, 255, 255, .7);
}

.court-tab.is-active {
    background: var(--green-800);
    color: #fff;
}

.court-tab.is-active span {
    color: rgba(255, 255, 255, .68);
}

.legend {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 11px;
    color: var(--muted);
    flex-wrap: wrap;
}

.legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.legend-dot--free { background: var(--green-600); }
.legend-dot--booked { background: #a8a294; }
.legend-dot--past { background: #d8d2c1; }

.table-hint {
    display: none;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
    font-size: 10px;
    color: var(--muted);
}

.table-hint .icon {
    width: 13px;
    height: 13px;
}

.table-wrap {
    overflow-x: auto;
    padding-bottom: 4px;
}

.schedule-table {
    width: 100%;
    min-width: 720px;
    border-collapse: separate;
    border-spacing: 5px;
}

.schedule-table th {
    font-weight: 500;
}

.schedule-table thead th {
    padding: 8px 4px 12px;
    text-align: center;
    border-bottom: 1px solid var(--line);
}

.schedule-table thead th.is-today {
    background: linear-gradient(180deg, var(--lime-soft), transparent);
    border-radius: 10px 10px 0 0;
}

.schedule-table .day-name {
    display: block;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted);
}

.schedule-table .day-date {
    display: block;
    margin: 2px 0;
    font-family: var(--font-display);
    font-size: 21px;
    line-height: 1;
}

.schedule-table .day-month {
    display: block;
    font-size: 9px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .08em;
}

.schedule-table .time-col {
    width: 58px;
    position: sticky;
    left: 0;
    z-index: 2;
    background: var(--paper);
    font-size: 11px;
    font-weight: 600;
    color: var(--muted);
    text-align: left;
    padding-left: 4px;
    font-variant-numeric: tabular-nums;
}

.schedule-table tbody th.time-col {
    padding-block: 6px;
}

.schedule-table tbody tr:first-child th.time-col {
    border-radius: 8px 0 0 0;
}

.slot-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    width: 100%;
    min-height: 46px;
    padding: 5px 4px;
    border: 1px solid transparent;
    border-radius: 9px;
    background: transparent;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .01em;
    transition: transform .14s ease, background .14s ease, border-color .14s ease, color .14s ease;
}

.slot-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.slot-cell--free {
    background: #eff7e7;
    border-color: #dceccf;
    color: var(--green-700);
    cursor: pointer;
}

.slot-cell--free .slot-dot {
    background: var(--green-600);
}

.slot-cell--free:hover {
    background: var(--green-800);
    border-color: var(--green-800);
    color: #fff;
    transform: translateY(-2px);
}

.slot-cell--free:hover .slot-dot {
    background: var(--lime);
}

.slot-cell--booked {
    background: #ece8dd;
    color: #8d8779;
    cursor: not-allowed;
}

.slot-cell--booked .slot-dot {
    background: #a8a294;
}

.slot-cell--past,
.slot-cell--closed {
    background: #f3f0e7;
    color: #b3ac9b;
    cursor: not-allowed;
}

.slot-cell--past .slot-dot,
.slot-cell--closed .slot-dot {
    background: #d8d2c1;
}

.schedule-table td.is-today {
    background: rgba(201, 242, 122, .09);
}

.schedule-table td {
    padding: 0;
    border-radius: 9px;
}

.schedule-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.schedule-info {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    color: var(--muted);
}

.schedule-info .icon {
    width: 15px;
    height: 15px;
    color: var(--green-600);
}

.empty-card {
    padding: 60px 24px;
    text-align: center;
    background: var(--paper);
    border: 1px dashed var(--line);
    border-radius: var(--radius-lg);
}

.empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    margin-bottom: 16px;
    border-radius: 50%;
    background: var(--lime-soft);
    color: var(--green-800);
}

.empty-icon .icon {
    width: 26px;
    height: 26px;
}

.empty-card h3 {
    font-size: 24px;
    margin-bottom: 6px;
}

.empty-card p {
    color: var(--muted);
    font-size: 14px;
}

/* --------------------------------------------------------------------------
   Seksi booking
   -------------------------------------------------------------------------- */

.section--booking {
    position: relative;
    padding: 90px 0;
    background:
        radial-gradient(700px 420px at 92% 0%, rgba(201, 242, 122, .16), transparent 60%),
        radial-gradient(600px 400px at 0% 100%, rgba(201, 106, 61, .12), transparent 60%),
        var(--green-950);
    color: #f4f1e7;
    overflow: hidden;
}

.section--booking::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(circle at 70% 30%, #000, transparent 75%);
    pointer-events: none;
}

.booking-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 28px;
    align-items: start;
}

.booking-form-card {
    padding: 34px;
    background: var(--paper);
    border-radius: var(--radius-lg);
    color: var(--ink);
    box-shadow: 0 40px 80px -50px #000;
}

.booking-form-card h2 {
    margin: 10px 0 8px;
    font-size: clamp(30px, 3.2vw, 40px);
}

.form-lede {
    margin-bottom: 22px;
    font-size: 13px;
    color: var(--muted);
}

.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}

.field > span {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
}

.field > span em {
    font-style: normal;
    font-weight: 500;
    letter-spacing: .02em;
    text-transform: none;
    color: #9a9484;
}

.field > span small,
.field small {
    display: block;
    margin-top: 2px;
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
    color: var(--muted);
}

.field input,
.field select,
.field textarea {
    width: 100%;
    min-height: 46px;
    padding: 11px 13px;
    background: #f8f6ee;
    border: 1px solid #e4dfd0;
    border-radius: 12px;
    font-size: 14px;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.field textarea {
    resize: vertical;
    min-height: 64px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    background: #fff;
    border-color: var(--green-600);
    box-shadow: 0 0 0 3px rgba(26, 128, 87, .12);
}

.field input::placeholder,
.field textarea::placeholder {
    color: #aaa494;
}

.slot-picker {
    margin: 0 0 16px;
    padding: 0;
    border: 0;
}

.slot-picker legend {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    margin-bottom: 9px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
}

.slot-picker legend small {
    font-size: 9px;
    font-weight: 500;
    letter-spacing: .01em;
    text-transform: none;
    color: #9a9484;
}

.slot-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.slot-btn {
    padding: 11px 6px;
    background: #f3f1e7;
    border: 1px solid #e4dfd0;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    transition: background .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}

.slot-btn:hover:not(:disabled) {
    border-color: var(--green-600);
    transform: translateY(-1px);
}

.slot-btn.is-selected {
    background: var(--green-800);
    border-color: var(--green-800);
    color: #fff;
}

.slot-btn:disabled {
    background: #eeece3;
    color: #b1ab9b;
    text-decoration: line-through;
    cursor: not-allowed;
}

.slot-btn small {
    display: block;
    font-size: 9px;
    font-weight: 500;
    text-decoration: none;
    opacity: .8;
}

.hint {
    margin-top: 8px;
    font-size: 11px;
    color: var(--muted);
}

.hint.is-error {
    color: var(--danger);
}

.fineprint {
    margin-top: 12px;
    font-size: 10.5px;
    line-height: 1.5;
    color: #8b8576;
}

.booking-summary {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: sticky;
    top: 100px;
}

.summary-card {
    padding: 28px;
    background: linear-gradient(150deg, #f8f5e9, #eee9d8);
    border-radius: var(--radius-lg);
    color: var(--ink);
    box-shadow: 0 40px 80px -50px #000;
}

.summary-label {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--muted);
}

.summary-card h3 {
    margin: 8px 0 18px;
    font-size: 30px;
    line-height: 1;
}

.summary-list {
    display: grid;
    gap: 10px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(20, 37, 29, .13);
}

.summary-list div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
}

.summary-list dt {
    font-size: 11px;
    color: var(--muted);
}

.summary-list dd {
    font-size: 12px;
    font-weight: 600;
    text-align: right;
}

.summary-total {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 18px 0 14px;
}

.summary-total span {
    font-size: 11px;
    color: var(--muted);
}

.summary-total strong {
    font-family: var(--font-display);
    font-size: 30px;
    font-weight: 400;
    letter-spacing: -.02em;
}

.summary-note {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, .6);
    border-radius: 10px;
    font-size: 10.5px;
    color: var(--muted);
}

.summary-note .icon {
    width: 15px;
    height: 15px;
    color: var(--green-700);
}

.help-card {
    padding: 22px 24px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: var(--radius);
    color: #e9e5d8;
}

.help-card h4 {
    margin-bottom: 4px;
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 400;
}

.help-card p {
    margin-bottom: 14px;
    font-size: 12px;
    color: rgba(255, 255, 255, .55);
}

.help-card .btn--ghost {
    border-color: rgba(255, 255, 255, .25);
    color: #fff;
}

.help-card .btn--ghost:hover {
    background: rgba(255, 255, 255, .08);
}

.help-card .fineprint {
    color: rgba(255, 255, 255, .45);
}

/* --------------------------------------------------------------------------
   Harga
   -------------------------------------------------------------------------- */

.price-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.price-card {
    position: relative;
    padding: 30px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.price-card::after {
    content: "";
    position: absolute;
    right: -70px;
    bottom: -90px;
    width: 220px;
    height: 220px;
    border: 1px solid rgba(20, 37, 29, .08);
    border-radius: 50%;
    pointer-events: none;
}

.price-card:hover {
    transform: translateY(-4px);
    border-color: #cfc9b5;
    box-shadow: var(--shadow);
}

.price-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.court-number {
    font-family: var(--font-display);
    font-size: 15px;
    color: var(--clay);
    letter-spacing: .06em;
}

.price-badge {
    padding: 5px 10px;
    background: var(--cream);
    border-radius: 999px;
    font-size: 10px;
    font-weight: 600;
    color: var(--muted);
    letter-spacing: .04em;
}

.price-card h3 {
    font-size: 30px;
}

.price-value {
    margin: 10px 0 22px;
    font-family: var(--font-display);
    font-size: 42px;
    line-height: 1;
    letter-spacing: -.02em;
}

.price-value span {
    margin-left: 6px;
    font-family: var(--font-body);
    font-size: 11px;
    color: var(--muted);
    letter-spacing: 0;
}

.price-features {
    display: grid;
    gap: 8px;
    margin-bottom: 24px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.price-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #4f5c54;
}

.price-features .icon {
    width: 14px;
    height: 14px;
    color: var(--green-600);
}

/* --------------------------------------------------------------------------
   Cara booking
   -------------------------------------------------------------------------- */

.section--steps {
    background: var(--cream-2);
    border-block: 1px solid var(--line);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.step-card {
    position: relative;
    padding: 30px 26px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.step-num {
    position: absolute;
    top: 18px;
    right: 22px;
    font-family: var(--font-display);
    font-size: 46px;
    line-height: 1;
    color: rgba(20, 37, 29, .08);
}

.step-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 22px;
    border-radius: 14px;
    background: var(--lime-soft);
    color: var(--green-800);
}

.step-icon .icon {
    width: 22px;
    height: 22px;
}

.step-card h3 {
    margin-bottom: 8px;
    font-size: 24px;
}

.step-card p {
    font-size: 13px;
    color: var(--muted);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
    padding: 64px 0 24px;
    background: var(--green-950);
    color: rgba(255, 255, 255, .72);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.footer-brand .brand-mark {
    margin-bottom: 16px;
}

.footer-brand h3 {
    margin-bottom: 8px;
    color: #fff;
    font-size: 26px;
}

.footer-brand p {
    max-width: 320px;
    font-size: 13px;
    color: rgba(255, 255, 255, .5);
}

.footer-col h4 {
    margin-bottom: 14px;
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--lime);
}

.footer-col p {
    margin-bottom: 7px;
    font-size: 12.5px;
    line-height: 1.6;
}

.footer-col a {
    color: #fff;
    border-bottom: 1px solid rgba(201, 242, 122, .4);
}

.footer-col a:hover {
    color: var(--lime);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding-top: 22px;
    font-size: 11px;
    color: rgba(255, 255, 255, .4);
}

.footer-bottom a {
    color: rgba(255, 255, 255, .6);
}

.footer-bottom a:hover {
    color: var(--lime);
}

/* --------------------------------------------------------------------------
   Alert
   -------------------------------------------------------------------------- */

.alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    margin-bottom: 16px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: 12.5px;
    line-height: 1.55;
}

.alert .icon {
    width: 17px;
    height: 17px;
    margin-top: 1px;
}

.alert strong {
    display: block;
    margin-bottom: 2px;
}

.alert ul {
    margin: 5px 0 0;
    padding-left: 16px;
    list-style: disc;
}

.alert code {
    padding: 1px 4px;
    background: rgba(0, 0, 0, .06);
    border-radius: 4px;
    font-size: 11px;
}

.alert--error {
    background: #fbecea;
    border-color: #f0cdc8;
    color: #8c2f27;
}

.alert--warn {
    background: #fbf3df;
    border-color: #eeddb4;
    color: #7d5510;
}

.alert--success {
    background: #eaf6e4;
    border-color: #d2e9c6;
    color: #2c6124;
}

.alert--info {
    background: #edf3f0;
    border-color: #d5e3db;
    color: #33564a;
}

/* --------------------------------------------------------------------------
   Halaman sukses
   -------------------------------------------------------------------------- */

.success-section {
    padding: 56px 0 90px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 22px;
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
}

.back-link:hover {
    color: var(--green-700);
}

.back-link .icon {
    width: 15px;
    height: 15px;
}

.success-card {
    padding: 40px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    text-align: center;
}

.success-card--empty {
    padding: 64px 32px;
}

.success-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 66px;
    height: 66px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: var(--lime);
    color: var(--green-900);
    box-shadow: 0 14px 30px -16px rgba(26, 128, 87, .7);
}

.success-icon .icon {
    width: 30px;
    height: 30px;
    stroke-width: 2.2;
}

.success-icon--muted {
    background: var(--cream-2);
    color: var(--muted);
    box-shadow: none;
}

.success-card h1 {
    margin: 4px 0 12px;
    font-size: clamp(32px, 4vw, 44px);
}

.code-row {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 6px 0 2px;
    padding: 7px 8px 7px 14px;
    background: var(--cream);
    border: 1px dashed #cfc9b5;
    border-radius: 10px;
}

.code-row code {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .06em;
}

.code-row .icon-btn {
    width: 30px;
    height: 30px;
    border-radius: 8px;
}

.success-lede {
    max-width: 480px;
    margin: 0 auto;
    font-size: 13.5px;
    color: var(--muted);
}

.status-line {
    margin: 18px 0 24px;
}

.detail-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    margin: 0 auto 26px;
    max-width: 560px;
    text-align: left;
    border-top: 1px solid var(--line);
}

.detail-list div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 4px;
    border-bottom: 1px solid var(--line);
}

.detail-list div:nth-child(odd) {
    padding-right: 18px;
}

.detail-list div:nth-child(even) {
    padding-left: 18px;
    border-left: 1px solid var(--line);
}

.detail-list dt {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
}

.detail-list dd {
    font-size: 12.5px;
    font-weight: 600;
    text-align: right;
}

.detail-list__total dd {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 400;
}

.success-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 8px;
}

.success-actions .alert {
    max-width: 520px;
    text-align: left;
}

.success-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    text-align: left;
}

.success-steps div {
    display: flex;
    gap: 10px;
}

.success-steps span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    flex: none;
    border-radius: 50%;
    background: var(--lime-soft);
    color: var(--green-800);
    font-size: 10px;
    font-weight: 700;
}

.success-steps p {
    font-size: 11px;
    line-height: 1.5;
    color: var(--muted);
}

/* ==========================================================================
   ADMIN
   ========================================================================== */

.admin-body {
    background: #f2efe6;
    min-height: 100vh;
}

.admin-shell {
    display: grid;
    grid-template-columns: 252px minmax(0, 1fr);
    min-height: 100vh;
}

.admin-sidebar {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    height: 100vh;
    padding: 22px 16px;
    background: var(--green-950);
    color: rgba(255, 255, 255, .7);
}

.brand--admin {
    padding: 4px 8px 22px;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.brand--admin .brand-text strong {
    color: #fff;
    font-size: 16px;
    line-height: 1.15;
    max-width: 166px;
    max-height: 2.4em;
    overflow: hidden;
    word-break: break-word;
}

.brand--admin .brand-text small {
    margin-top: 2px;
    color: rgba(255, 255, 255, .4);
}

.admin-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 18px 0;
}

.admin-nav__link {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, .65);
    transition: background .16s ease, color .16s ease;
}

.admin-nav__link .icon {
    width: 17px;
    height: 17px;
    opacity: .8;
}

.admin-nav__link:hover {
    background: rgba(255, 255, 255, .06);
    color: #fff;
}

.admin-nav__link.is-active {
    background: rgba(201, 242, 122, .12);
    color: var(--lime);
}

.admin-nav__link.is-active .icon {
    opacity: 1;
}

.nav-badge {
    margin-left: auto;
    min-width: 20px;
    padding: 1px 6px;
    border-radius: 999px;
    background: var(--clay);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    text-align: center;
}

.admin-sidebar__foot {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, .1);
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 0 8px;
    font-size: 11px;
    color: rgba(255, 255, 255, .5);
}

.sidebar-link:hover {
    color: var(--lime);
}

.sidebar-link .icon {
    width: 13px;
    height: 13px;
    transform: rotate(180deg);
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .04);
}

.avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex: none;
    border-radius: 9px;
    background: var(--lime);
    color: var(--green-900);
    font-weight: 700;
    font-size: 13px;
}

.sidebar-user div {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
    min-width: 0;
}

.sidebar-user strong {
    font-size: 11.5px;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user small {
    font-size: 9.5px;
    color: rgba(255, 255, 255, .4);
}

.sidebar-logout {
    display: flex;
    align-items: center;
    gap: 7px;
    width: 100%;
    padding: 8px;
    background: none;
    border: 0;
    border-radius: 8px;
    color: rgba(255, 255, 255, .5);
    font-size: 11px;
    text-align: left;
}

.sidebar-logout:hover {
    background: rgba(255, 255, 255, .05);
    color: #fff;
}

.sidebar-logout .icon {
    width: 14px;
    height: 14px;
}

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

.admin-topbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    padding: 28px 34px 22px;
    border-bottom: 1px solid var(--line);
}

.admin-topbar h1 {
    font-size: 30px;
    line-height: 1.1;
}

.admin-topbar p {
    margin-top: 5px;
    font-size: 12px;
    color: var(--muted);
}

.admin-topbar__meta {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.topbar-date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    color: var(--muted);
}

.topbar-date .icon {
    width: 14px;
    height: 14px;
}

.admin-content {
    padding: 26px 34px 60px;
    max-width: 1420px;
}

/* Statistik */

.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 22px;
}

.stat-card {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    padding: 18px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 16px;
}

.stat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex: none;
    border-radius: 11px;
    background: var(--cream);
    color: var(--green-800);
}

.stat-icon .icon {
    width: 19px;
    height: 19px;
}

.stat-card--warn .stat-icon {
    background: #fbf0d8;
    color: var(--warn);
}

.stat-card--ok .stat-icon {
    background: var(--lime-soft);
    color: var(--green-700);
}

.stat-card > div {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.25;
}

.stat-label {
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
}

.stat-card strong {
    margin: 3px 0;
    font-family: var(--font-display);
    font-size: 30px;
    font-weight: 400;
    letter-spacing: -.02em;
    font-variant-numeric: lining-nums tabular-nums;
}

.stat-card .stat-value-sm {
    font-size: 21px;
}

.stat-sub {
    font-size: 9.5px;
    color: #918b7c;
}

/* Panel */

.panel {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 18px;
    margin-bottom: 18px;
    overflow: hidden;
}

.panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--line);
}

.panel-head h2 {
    font-size: 21px;
    letter-spacing: -.01em;
}

.panel-head p {
    margin-top: 2px;
    font-size: 11px;
    color: var(--muted);
}

.panel-body {
    padding: 20px;
}

.count-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
    border-radius: 999px;
    background: #fbf0d8;
    color: var(--warn);
    font-size: 11px;
    font-weight: 700;
}

.dash-grid {
    display: grid;
    grid-template-columns: 1.35fr .85fr;
    gap: 18px;
    align-items: start;
}

/* Daftar booking */

.booking-list {
    display: flex;
    flex-direction: column;
}

.booking-item {
    display: grid;
    grid-template-columns: 60px minmax(0, 1fr) 108px auto;
    align-items: center;
    gap: 14px;
    padding: 13px 18px;
    border-bottom: 1px solid #eeeadf;
}

.booking-item:last-child {
    border-bottom: 0;
}

.booking-time {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.booking-time strong {
    font-size: 15px;
    font-variant-numeric: tabular-nums;
}

.booking-time span {
    margin-top: 2px;
    font-size: 9px;
    color: var(--muted);
}

.booking-detail {
    min-width: 0;
}

.booking-title {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.booking-title strong {
    font-size: 13px;
    letter-spacing: -.01em;
}

.booking-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 12px;
    margin-top: 4px;
    font-size: 9.5px;
    color: var(--muted);
}

.booking-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.booking-meta .icon {
    width: 12px;
    height: 12px;
    opacity: .65;
}

.booking-meta .mono {
    font-size: 9px;
    letter-spacing: .02em;
    color: #a8a190;
}

.booking-money {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.3;
    text-align: right;
}

.booking-money strong {
    font-size: 12px;
}

.booking-money span {
    font-size: 9px;
    color: var(--muted);
}

.booking-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.booking-actions .icon-btn {
    width: 30px;
    height: 30px;
    border-radius: 8px;
}

.booking-actions .icon-btn .icon {
    width: 15px;
    height: 15px;
}

.inline-form {
    display: inline-flex;
    margin: 0;
}

.booking-item--blocked {
    background: #faf7f1;
}

.booking-list--full .booking-item {
    padding-block: 15px;
}

/* Badge status */

.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .02em;
    line-height: 1.5;
    white-space: nowrap;
}

.badge::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
    opacity: .7;
}

.badge--warn { background: #fbf0d8; color: #8c5e10; }
.badge--ok { background: #e9f5df; color: #2f6427; }
.badge--info { background: #e8f0f7; color: #325c7a; }
.badge--danger { background: #fbe9e7; color: #973a30; }
.badge--muted { background: #efede4; color: #7c776a; }
.badge--purple { background: #f0eaf9; color: #614392; }

/* Filter & toolbar */

.filter-bar {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    flex-wrap: wrap;
    padding: 14px 16px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 16px;
    margin-bottom: 12px;
}

.field--compact {
    margin-bottom: 0;
    min-width: 140px;
}

.field--compact > span {
    font-size: 9px;
    margin-bottom: 2px;
}

.field--compact input,
.field--compact select {
    min-height: 38px;
    padding: 7px 10px;
    font-size: 12px;
    border-radius: 9px;
}

.field--grow {
    flex: 1;
    min-width: 190px;
}

.check-inline {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding-bottom: 9px;
    font-size: 11px;
    color: var(--muted);
    cursor: pointer;
    user-select: none;
}

.check-inline input {
    width: 15px;
    height: 15px;
    accent-color: var(--green-700);
}

.check-inline--box {
    padding: 10px 12px;
    background: #f8f6ee;
    border: 1px solid #e4dfd0;
    border-radius: 10px;
    align-self: flex-end;
    margin-bottom: 14px;
    min-height: 44px;
}

.filter-actions {
    display: flex;
    gap: 6px;
    padding-bottom: 0;
}

.list-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 11px;
    color: var(--muted);
}

/* Form admin */

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

.stack-form .form-row {
    gap: 12px;
}

.stack-form .field {
    margin-bottom: 13px;
}

.stack-form .btn {
    align-self: flex-start;
    margin-top: 4px;
}

.manual-panel > summary {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    cursor: pointer;
    list-style: none;
    font-size: 13px;
    font-weight: 600;
}

.manual-panel > summary::-webkit-details-marker {
    display: none;
}

.manual-panel > summary span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.manual-panel > summary small {
    font-size: 10.5px;
    font-weight: 400;
    color: var(--muted);
}

.manual-panel[open] > summary {
    border-bottom: 1px solid var(--line);
}

.manual-step {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    flex-wrap: wrap;
    padding-bottom: 18px;
    margin-bottom: 18px;
    border-bottom: 1px dashed var(--line);
}

.manual-step .field {
    margin-bottom: 0;
    min-width: 160px;
}

.manual-form .form-row {
    margin-top: 4px;
}

.manual-context {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
    padding: 10px 14px;
    background: var(--cream);
    border-radius: 10px;
    font-size: 11px;
    color: var(--muted);
}

.manual-context strong {
    font-size: 13px;
    color: var(--ink);
}

.slot-check-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 7px;
    margin-bottom: 16px;
}

.slot-check {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    min-height: 46px;
    padding: 6px;
    background: #f6f4ea;
    border: 1px solid #e4dfd0;
    border-radius: 9px;
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
}

.slot-check input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.slot-check small {
    font-size: 8px;
    font-weight: 500;
    color: #9b9484;
}

.slot-check:has(input:checked) {
    background: var(--green-800);
    border-color: var(--green-800);
    color: #fff;
}

.slot-check:has(input:checked) small {
    color: rgba(255, 255, 255, .7);
}

.slot-check.is-disabled {
    opacity: .45;
    cursor: not-allowed;
    text-decoration: line-through;
}

.slot-check.is-disabled small {
    text-decoration: none;
}

/* Lapangan */

.court-admin-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}

.court-editor {
    margin-bottom: 0;
}

.court-editor .panel-head {
    align-items: center;
}

.court-editor .panel-head h2 {
    font-size: 20px;
}

.court-editor .panel-head p {
    font-size: 10px;
}

.court-editor form {
    padding: 18px 20px 20px;
}

.court-editor__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 4px;
}

/* Pengaturan */

.settings-grid {
    display: grid;
    grid-template-columns: 1.3fr .8fr;
    gap: 18px;
    align-items: start;
}

.settings-side {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.settings-grid .panel form {
    padding: 0 20px 20px;
}

.settings-grid .panel .panel-head + form {
    padding-top: 18px;
}

.settings-side .panel form {
    padding: 0 20px 20px;
}

.info-list {
    display: grid;
    gap: 0;
    padding: 4px 20px 12px;
}

.info-list div {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 8px 0;
    border-bottom: 1px solid #efebe0;
    font-size: 11.5px;
}

.info-list dt {
    color: var(--muted);
}

.info-list dd {
    font-weight: 600;
    text-align: right;
}

.settings-side .alert {
    margin: 0 20px 20px;
}

.panel-backup {
    padding: 0 20px 20px;
}

.panel-backup .fineprint {
    margin-top: 6px;
}

/* Empty state */

.empty-state {
    padding: 44px 24px;
    text-align: center;
}

.empty-state > .icon {
    width: 30px;
    height: 30px;
    margin: 0 auto 10px;
    color: #b9b2a0;
}

.empty-state h3 {
    margin-bottom: 3px;
    font-size: 20px;
}

.empty-state p {
    font-size: 11.5px;
    color: var(--muted);
}

.empty-state--sm {
    padding: 28px 20px;
}

/* --------------------------------------------------------------------------
   Halaman login / setup
   -------------------------------------------------------------------------- */

.auth-body {
    min-height: 100vh;
    background:
        radial-gradient(700px 500px at 80% 0%, rgba(201, 242, 122, .14), transparent 60%),
        linear-gradient(160deg, #0d3b2a, #08251a);
    color: var(--ink);
}

.auth-shell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 40px 20px;
}

.auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
    color: #fff;
    font-family: var(--font-display);
    font-size: 20px;
}

.auth-brand .brand-mark {
    background: rgba(255, 255, 255, .1);
}

.auth-card {
    width: min(420px, 100%);
    padding: 34px;
    background: var(--paper);
    border-radius: 24px;
    box-shadow: 0 40px 80px -40px #000;
}

.auth-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-bottom: 18px;
    border-radius: 13px;
    background: var(--lime-soft);
    color: var(--green-800);
}

.auth-icon .icon {
    width: 21px;
    height: 21px;
}

.auth-card h1 {
    font-size: 30px;
    line-height: 1.1;
}

.auth-card > p {
    margin: 8px 0 20px;
    font-size: 12.5px;
    color: var(--muted);
}

.auth-form .field {
    margin-bottom: 13px;
}

.auth-form .btn {
    margin-top: 4px;
}

.auth-note {
    margin-top: 16px !important;
    margin-bottom: 0 !important;
    font-size: 10px !important;
    color: #9b9484 !important;
    text-align: center;
}

.auth-foot {
    margin-top: 20px;
    font-size: 11px;
    color: rgba(255, 255, 255, .45);
}

.auth-foot a:hover {
    color: var(--lime);
}

/* --------------------------------------------------------------------------
   Responsif
   -------------------------------------------------------------------------- */

@media (max-width: 1080px) {
    .hero h1 {
        font-size: clamp(46px, 6vw, 66px);
    }

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

    .booking-summary {
        position: static;
        display: grid;
        grid-template-columns: 1.2fr .8fr;
        align-items: stretch;
    }

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

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

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

@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .hero-copy {
        max-width: 620px;
    }

    .hero-visual {
        min-height: 400px;
    }

    .court-poster {
        width: 300px;
    }

    .section {
        padding: 64px 0;
    }

    .section-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
    }

    .main-nav {
        gap: 14px;
    }

    .main-nav > a:not(.btn):not(.nav-admin):not(.nav-cta) {
        display: none;
    }

    .admin-shell {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: static;
        height: auto;
        flex-direction: row;
        align-items: center;
        gap: 14px;
        padding: 12px 16px;
        overflow-x: auto;
    }

    .brand--admin {
        padding: 0 14px 0 0;
        border-bottom: 0;
        border-right: 1px solid rgba(255, 255, 255, .1);
    }

    .brand--admin .brand-text small {
        display: none;
    }

    .brand--admin .brand-mark {
        width: 34px;
        height: 34px;
    }

    .brand--admin .brand-mark .icon {
        width: 19px;
        height: 19px;
    }

    .admin-nav {
        flex-direction: row;
        padding: 0;
        gap: 2px;
    }

    .admin-nav__link {
        padding: 8px 10px;
        white-space: nowrap;
    }

    .admin-nav__link .icon {
        width: 18px;
        height: 18px;
    }

    .admin-sidebar__foot {
        margin: 0 0 0 auto;
        flex-direction: row;
        align-items: center;
        gap: 8px;
        border: 0;
        padding: 0;
    }

    .sidebar-link,
    .sidebar-user div {
        display: none;
    }

    .sidebar-user {
        padding: 0;
        background: none;
    }

    .sidebar-user .avatar {
        width: 30px;
        height: 30px;
    }

    .sidebar-logout {
        width: auto;
        padding: 6px 8px;
        font-size: 0;
    }

    .sidebar-logout .icon {
        width: 16px;
        height: 16px;
    }

    .admin-topbar {
        padding: 22px 20px 18px;
    }

    .admin-content {
        padding: 20px 20px 50px;
    }

    .court-admin-grid {
        grid-template-columns: 1fr;
    }

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

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

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 720px) {
    .container {
        width: calc(100% - 32px);
    }

    .header-inner {
        min-height: 66px;
    }

    .brand-text strong {
        font-size: 16px;
    }

    .brand-text small {
        font-size: 8px;
    }

    .brand-mark {
        width: 36px;
        height: 36px;
    }

    .brand-mark .icon {
        width: 20px;
        height: 20px;
    }

    .nav-cta {
        padding: 8px 14px;
        font-size: 12px;
    }

    .nav-admin {
        display: none;
    }

    .hero {
        padding: 46px 0 40px;
    }

    .hero h1 {
        font-size: clamp(42px, 12vw, 58px);
    }

    .lede {
        font-size: 15px;
    }

    .hero-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
    }

    .hero-stats dd {
        font-size: 15px;
    }

    .hero-visual {
        min-height: 390px;
    }

    .court-poster {
        width: 260px;
    }

    .float-ticket {
        left: 0;
        bottom: 4px;
    }

    .section {
        padding: 54px 0;
    }

    .section-head h2 {
        font-size: 34px;
    }

    .schedule-card {
        padding: 16px;
        border-radius: 20px;
    }

    .schedule-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .legend {
        font-size: 10px;
    }

    .table-hint {
        display: flex;
    }

    .week-nav {
        width: 100%;
        justify-content: space-between;
    }

    .week-label {
        min-width: 0;
        flex: 1;
    }

    .booking-form-card {
        padding: 24px 20px;
    }

    .slot-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

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

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

    .price-value {
        font-size: 36px;
    }

    .detail-list {
        grid-template-columns: 1fr;
    }

    .detail-list div:nth-child(odd),
    .detail-list div:nth-child(even) {
        padding-inline: 0;
        border-left: 0;
    }

    .success-card {
        padding: 28px 20px;
    }

    .success-steps {
        grid-template-columns: 1fr;
    }

    .success-actions {
        flex-direction: column;
    }

    .success-actions .btn {
        width: 100%;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .booking-item {
        grid-template-columns: 52px minmax(0, 1fr);
        grid-template-areas:
            "time detail"
            "money money"
            "actions actions";
        gap: 8px 12px;
        padding: 14px 16px;
    }

    .booking-time {
        grid-area: time;
    }

    .booking-detail {
        grid-area: detail;
    }

    .booking-money {
        grid-area: money;
        flex-direction: row;
        align-items: baseline;
        gap: 8px;
        justify-content: flex-start;
        text-align: left;
    }

    .booking-actions {
        grid-area: actions;
        justify-content: flex-start;
        padding-top: 4px;
    }

    .filter-bar {
        align-items: stretch;
    }

    .field--compact,
    .field--grow {
        flex: 1 1 150px;
    }

    .check-inline {
        padding-bottom: 0;
        min-height: 38px;
    }

    .slot-check-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .admin-topbar {
        flex-direction: column;
        gap: 12px;
    }

    .admin-topbar__meta {
        justify-content: flex-start;
    }

    .stat-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .stat-card {
        padding: 14px;
        gap: 10px;
    }

    .stat-icon {
        width: 32px;
        height: 32px;
    }

    .stat-card strong {
        font-size: 25px;
    }

    .stat-card .stat-value-sm {
        font-size: 17px;
    }

    .admin-nav__link span:not(.nav-badge) {
        display: none;
    }

    .admin-nav__link {
        padding: 8px;
    }

    .auth-card {
        padding: 26px 22px;
    }

    .manual-step {
        align-items: stretch;
        flex-direction: column;
    }

    .manual-step .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
    }

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

    .hero-stats div:last-child {
        display: none;
    }

    .hero-visual {
        min-height: 350px;
    }

    .court-poster {
        width: 230px;
    }

    .float-ticket {
        padding: 9px 12px 9px 9px;
        gap: 9px;
    }

    .float-ticket__icon {
        width: 32px;
        height: 32px;
    }

    .float-ticket div span {
        font-size: 9px;
    }

    .float-ticket__status {
        display: none;
    }

    .slot-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .slot-check-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .booking-title {
        align-items: flex-start;
        flex-direction: column;
        gap: 3px;
    }

    .admin-sidebar {
        gap: 8px;
    }

    .brand--admin .brand-text {
        display: none;
    }

    .brand--admin {
        padding-right: 8px;
    }
}

@media (max-width: 380px) {
    .brand-text small {
        display: none;
    }

    .brand-text strong {
        font-size: 15px;
    }

    .nav-cta {
        padding: 8px 12px;
        font-size: 11px;
    }

    .hero h1 {
        font-size: 40px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
}
