﻿/* =========================================================
   KameraKita â€” Global UI
   Gaya: Neo-Brutalist Modern Tech Editorial
   Sumber kebenaran: /DESIGN.md (v1.1.0)
   Dipakai oleh: login, register, detail produk, booking,
   pembayaran, kuitansi, pesanan, dan seluruh panel admin.
   ========================================================= */

* { box-sizing: border-box; }

:root {
    /* ---------- Permukaan ---------- */
    --white: #ffffff;
    --surface: #ffffff;
    --ice: #f4f8ff;
    --navy: #061326;

    /* ---------- Brand ---------- */
    --blue: #0055ff;
    --blue-dark: #0044cc;
    --blue2: #0055ff;
    --cyan: #38bdf8;

    /* ---------- Teks ---------- */
    --ink: #0a192f;
    --body: #475569;
    --muted: #475569;
    --crisp: #f8fafc;

    /* ---------- Garis ---------- */
    --line: #dbeafe;
    --line-strong: #bfdbfe;
    --soft: #f4f8ff;
    --bg: #ffffff;

    /* ---------- Status (hanya untuk status, bukan dekorasi) ---------- */
    --green: #17a673;
    --green-ink: #047857;
    --green-bg: #ecfdf5;
    --green-line: #a7f3d0;
    --amber-ink: #b45309;
    --amber-bg: #fffbeb;
    --amber-line: #fde68a;
    --red-ink: #b91c1c;
    --red-bg: #fef2f2;
    --red-line: #fecaca;

    /* ---------- Tipografi ---------- */
    --display: 'Space Grotesk', 'Plus Jakarta Sans', system-ui, sans-serif;
    --sans: 'Inter', 'Plus Jakarta Sans', system-ui, sans-serif;
    --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;

    /* ---------- Radius ---------- */
    --radius-lg: 12px;
    --radius-card: 8px;
    --radius-btn: 8px;
    --radius-sm: 6px;

    /* ---------- Elevation ---------- */
    --shadow-card: 0 18px 40px -22px rgba(6, 19, 38, 0.22);
    --shadow-panel: 0 24px 60px -24px rgba(6, 19, 38, 0.18);
    --shadow-hard: 6px 6px 0 rgba(0, 85, 255, 0.14);
    --shadow-nav: 0 10px 30px -18px rgba(6, 19, 38, 0.35);

    /* ---------- Motion ---------- */
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

html { scroll-behavior: smooth; }

body {
    display: flex;
    flex-direction: column;
    margin: 0;
    min-height: 100vh;
    background: var(--surface);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

main { flex: 1 0 auto; }

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s var(--ease);
}

img { max-width: 100%; }

h1, h2, h3, h4, h5, h6, p, figure { margin: 0; }

.ri { vertical-align: middle; }

.container {
    width: 100%;
    max-width: 1240px;
    margin-inline: auto;
    padding-inline: clamp(18px, 4vw, 56px);
}


/* =========================================================
   1. SITE HEADER â€” floating capsule
   ========================================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    padding: 12px clamp(18px, 4vw, 56px) 10px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0));
    isolation: isolate;
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    height: 64px;
    padding: 0 10px 0 18px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    box-shadow: var(--shadow-nav);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    font-family: var(--display);
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--ink);
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: var(--radius-card);
    background: var(--blue);
    color: var(--white);
    font-family: var(--display);
    font-size: 15px;
    font-weight: 700;
    box-shadow: 3px 3px 0 rgba(56, 189, 248, 0.45);
}

.brand-light { font-weight: 600; color: var(--body); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-left: auto;
    margin-right: 0;
    font-size: 13px;
    font-weight: 500;
    color: var(--body);
}

.nav-links a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    white-space: nowrap;
    transition: background 0.3s var(--ease), color 0.3s var(--ease);
}

.nav-links a:hover { background: var(--ice); color: var(--ink); }

.nav-links a i { font-size: 15px; }

.nav-user {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-right: 10px;
    padding-left: 10px;
    font-family: var(--mono);
    font-size: 9.5px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--body);
}

.nav-user i { color: var(--blue); font-size: 13px; }

.menu-toggle {
    display: none;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    background: var(--surface);
    color: var(--ink);
    font-size: 20px;
    cursor: pointer;
    transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}

.menu-toggle:hover { border-color: var(--blue); color: var(--blue); }


/* =========================================================
   2. BUTTONS
   ========================================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    height: 46px;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: var(--radius-btn);
    background: transparent;
    font-family: var(--sans);
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition: transform 0.45s var(--ease), background 0.3s var(--ease),
        color 0.3s var(--ease), border-color 0.3s var(--ease),
        box-shadow 0.45s var(--ease);
}

.btn i { font-size: 16px; transition: transform 0.45s var(--ease); }

.btn-primary {
    background: var(--blue);
    color: var(--white);
    box-shadow: 0 10px 24px -10px rgba(0, 85, 255, 0.6);
}

.btn-primary:hover {
    background: var(--blue-dark);
    transform: translateY(-2px);
    box-shadow: 0 16px 30px -12px rgba(0, 85, 255, 0.65);
}

.btn-primary:hover i { transform: translateX(3px); }

.btn-outline {
    border-color: var(--line);
    background: var(--surface);
    color: var(--ink);
}

.btn-outline:hover {
    border-color: var(--blue);
    color: var(--blue);
    transform: translateY(-2px);
}

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

.btn-light:hover {
    background: var(--crisp);
    transform: translateY(-2px);
}

.btn-small { height: 38px; padding: 0 16px; font-size: 12px; }
.btn-small i { font-size: 14px; }

.btn-full { width: 100%; }

.btn-disabled {
    background: var(--ice);
    color: #8fa3bf;
    border-color: var(--line);
    cursor: not-allowed;
    box-shadow: none;
}

.btn:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 3px;
}


/* =========================================================
   3. TIPOGRAFI UMUM
   ========================================================= */

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-family: var(--mono);
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 0.16em;
    line-height: 1.4;
    text-transform: uppercase;
    color: var(--blue);
}

.eyebrow::before {
    content: "";
    width: 8px;
    height: 8px;
    flex: 0 0 auto;
    background: currentColor;
    box-shadow: 0 0 0 3px rgba(0, 85, 255, 0.14);
}

.eyebrow i { display: none; }

.muted { font-size: 14px; line-height: 1.7; color: var(--body); }

.small { font-size: 12px; }

.auth-form-wrap h1,
.booking-form-card h1,
.page-section h1,
.booking-page-heading h1,
.detail-copy h1,
.receipt-head h1,
.admin-heading h1 {
    font-family: var(--display);
    font-weight: 700;
    font-size: clamp(1.9rem, 3.6vw, 2.6rem);
    line-height: 1.02;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    color: var(--ink);
}

.booking-page-heading h1 { margin-top: 12px; }

.detail-copy h1 { margin: 14px 0 12px; }


/* =========================================================
   4. ALERTS
   ========================================================= */

.alert {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 16px 0;
    padding: 13px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.55;
}

.alert i { font-size: 17px; flex: 0 0 auto; }

.alert-success {
    background: var(--green-bg);
    border-color: var(--green-line);
    color: var(--green-ink);
}

.alert-error {
    background: var(--red-bg);
    border-color: var(--red-line);
    color: var(--red-ink);
}

/* Notifikasi flash â€” kartu terpusat di layar */
.flash-popup {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: grid;
    place-items: center;
    padding: 20px;
}

.flash-popup-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(6, 19, 38, 0.34);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    animation: flashBackdropIn 0.25s var(--ease) both;
}

.flash-popup-card {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: start;
    gap: 14px;
    width: min(440px, 100%);
    padding: 22px 20px 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-panel);
    overflow: hidden;
    animation: flashCardIn 0.32s var(--ease) both;
}

.flash-popup-card:focus { outline: none; }

.flash-popup-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 21px;
}

.flash-popup-card--success .flash-popup-icon {
    background: var(--green-bg);
    color: var(--green-ink);
    box-shadow: inset 0 0 0 1px var(--green-line);
}

.flash-popup-card--error .flash-popup-icon {
    background: var(--red-bg);
    color: var(--red-ink);
    box-shadow: inset 0 0 0 1px var(--red-line);
}

.flash-popup-title {
    margin: 0;
    font-family: var(--display);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    color: var(--ink);
}

.flash-popup-message {
    margin: 5px 0 0;
    font-size: 13.5px;
    line-height: 1.65;
    color: var(--body);
}

.flash-popup-close {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    margin: -4px -4px 0 0;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    background: var(--surface);
    color: var(--body);
    font-size: 16px;
    cursor: pointer;
    transition: border-color 0.25s var(--ease), background 0.25s var(--ease),
        color 0.25s var(--ease);
}

.flash-popup-close:hover {
    border-color: var(--line-strong);
    background: var(--ice);
    color: var(--ink);
}

.flash-popup-progress {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    transform-origin: left center;
    animation: flashProgress var(--flash-duration, 6s) linear both;
}

.flash-popup-card--success .flash-popup-progress { background: var(--green-ink); }
.flash-popup-card--error .flash-popup-progress { background: var(--red-ink); }

.flash-popup-card.is-paused .flash-popup-progress { animation-play-state: paused; }

.flash-popup.is-closing .flash-popup-card { animation: flashCardOut 0.2s ease both; }
.flash-popup.is-closing .flash-popup-backdrop { animation: flashBackdropOut 0.2s ease both; }
.flash-popup.is-closing .flash-popup-progress { animation-play-state: paused; }

body.is-flash-open { overflow: hidden; }

@keyframes flashBackdropIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes flashBackdropOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes flashCardIn {
    from { opacity: 0; transform: translateY(10px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes flashCardOut {
    from { opacity: 1; transform: translateY(0) scale(1); }
    to { opacity: 0; transform: translateY(6px) scale(0.98); }
}

@keyframes flashProgress {
    from { transform: scaleX(1); }
    to { transform: scaleX(0); }
}

@media (max-width: 560px) {
    .flash-popup { padding: 16px; }
    .flash-popup-card { padding: 18px 16px 20px; gap: 12px; }
    .flash-popup-icon { width: 38px; height: 38px; font-size: 19px; }
    .flash-popup-title { font-size: 14px; }
    .flash-popup-message { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
    .flash-popup-backdrop,
    .flash-popup-card { animation: none; }
    .flash-popup-progress { display: none; }
}

/* Tanpa JavaScript: tampil sebagai banner inline, bukan lapisan modal */
html.no-js .flash-popup { position: static; display: block; padding: 0; }
html.no-js .flash-popup-backdrop,
html.no-js .flash-popup-close,
html.no-js .flash-popup-progress { display: none; }
html.no-js .flash-popup-card {
    width: min(760px, calc(100% - 32px));
    margin: 16px auto;
}


/* =========================================================
   5. AUTH â€” login & register
   ========================================================= */

.auth-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 96px);
    padding: clamp(28px, 5vw, 64px) clamp(16px, 4vw, 56px);
    background: var(--ice);
    overflow: clip;
    isolation: isolate;
}

.auth-section::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(var(--line) 1px, transparent 1px),
        linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 64px 64px;
    opacity: 0.55;
    -webkit-mask-image: radial-gradient(90% 80% at 50% 30%, #000, transparent 80%);
    mask-image: radial-gradient(90% 80% at 50% 30%, #000, transparent 80%);
}

.auth-card {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    width: 100%;
    max-width: 1000px;
    min-height: 540px;
    margin: 0 auto;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-panel);
    overflow: hidden;
}

.auth-side {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(30px, 4vw, 52px);
    background: var(--navy);
    color: var(--crisp);
    overflow: clip;
}

.auth-side::after {
    content: "";
    position: absolute;
    right: -110px;
    bottom: -120px;
    width: 280px;
    height: 280px;
    border: 1px solid rgba(248, 250, 252, 0.14);
    border-radius: 50%;
    box-shadow: 0 0 0 36px rgba(56, 189, 248, 0.05), 0 0 0 72px rgba(56, 189, 248, 0.03);
    pointer-events: none;
}

.auth-side .eyebrow { color: var(--cyan); }
.auth-side .eyebrow::before { box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2); }

.auth-side h2 {
    margin: 20px 0;
    font-family: var(--display);
    font-size: clamp(24px, 2.6vw, 32px);
    font-weight: 700;
    line-height: 1.06;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    color: var(--white);
}

.auth-side p { font-size: 13.5px; line-height: 1.75; color: #b9c8e4; }

.auth-side-note {
    margin-top: 46px;
    padding-top: 18px;
    border-top: 1px solid rgba(248, 250, 252, 0.14);
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.08em;
    line-height: 1.7;
    text-transform: uppercase;
    color: var(--cyan);
}

.auth-form-wrap {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(28px, 4vw, 48px);
}

.auth-form-wrap h1 { font-size: clamp(1.7rem, 3vw, 2.2rem); }

.auth-form-wrap p.muted { margin-top: 8px; }

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    align-self: flex-start;
    margin-bottom: 26px;
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--body);
    transition: color 0.3s var(--ease);
}

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

.auth-switch {
    margin-top: 22px;
    font-size: 12.5px;
    color: var(--body);
    text-align: center;
}

.auth-switch a {
    font-weight: 600;
    color: var(--blue);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.auth-switch a:hover { color: var(--blue-dark); }


/* =========================================================
   6. FORM
   ========================================================= */

.form-stack { display: grid; gap: 16px; margin-top: 24px; }

.form-stack label,
.admin-product-form label {
    display: grid;
    gap: 7px;
    font-family: var(--mono);
    font-size: 9.5px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--body);
}

.form-stack input,
.admin-product-form input,
.admin-product-form textarea,
.admin-product-form select,
.inline-form select,
.payment-filter input[type="search"],
.payment-filter select {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-btn);
    outline: 0;
    background: var(--surface);
    font-family: var(--sans);
    font-size: 14px;
    color: var(--ink);
    transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.admin-product-form textarea {
    height: auto;
    min-height: 96px;
    padding: 12px 14px;
    line-height: 1.65;
    resize: vertical;
}

.form-stack input::placeholder,
.admin-product-form input::placeholder,
.admin-product-form textarea::placeholder {
    color: #8fa3bf;
}

.form-stack input:focus,
.admin-product-form input:focus,
.admin-product-form textarea:focus,
.admin-product-form select:focus,
.inline-form select:focus,
.payment-filter input:focus,
.payment-filter select:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(0, 85, 255, 0.12);
}

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


/* =========================================================
   7. DETAIL PRODUK
   ========================================================= */

.detail-section,
.booking-section,
.page-section {
    padding-top: clamp(28px, 4vw, 48px);
    padding-bottom: clamp(56px, 7vw, 88px);
}

.detail-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: clamp(28px, 5vw, 64px);
    align-items: center;
    margin-top: 26px;
}

.detail-image {
    height: clamp(300px, 42vw, 470px);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--ice);
    overflow: hidden;
    box-shadow: var(--shadow-panel);
}

.detail-image img { width: 100%; height: 100%; object-fit: cover; }

.detail-price {
    margin-bottom: 20px;
    font-family: var(--display);
    font-size: clamp(1.5rem, 2.4vw, 1.9rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--blue);
}

.detail-price small {
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--body);
}

.detail-copy > p {
    margin-bottom: 18px;
    font-size: 14.5px;
    line-height: 1.75;
    color: var(--body);
}

.detail-stock {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 20px 0;
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--green-ink);
}

.detail-stock i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 3px rgba(23, 166, 115, 0.16);
}

.detail-note {
    margin-top: 16px;
    font-size: 12.5px;
    line-height: 1.7;
    color: var(--body);
}

.detail-note i { color: var(--blue); }


/* =========================================================
   8. BOOKING & PEMBAYARAN
   ========================================================= */

.booking-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 18px;
    align-items: start;
    margin-top: 26px;
}

.booking-form-card,
.booking-summary,
.admin-panel,
.pay-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    background: var(--surface);
    padding: clamp(20px, 2.6vw, 28px);
    transition: border-color 0.3s var(--ease), box-shadow 0.45s var(--ease);
}

.booking-form-card:hover,
.booking-summary:hover,
.admin-panel:hover {
    border-color: var(--line-strong);
    box-shadow: var(--shadow-card);
}

.booking-form-card h1 { margin-top: 12px; font-size: clamp(1.7rem, 3vw, 2.1rem); }

.booking-form-card p.muted { margin-top: 8px; }

.price-estimate {
    display: grid;
    gap: 5px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    background: var(--ice);
}

.price-estimate span,
.price-estimate small {
    font-family: var(--mono);
    font-size: 9.5px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--body);
}

.price-estimate small { letter-spacing: 0.02em; text-transform: none; }

.price-estimate strong {
    font-family: var(--display);
    font-size: clamp(1.3rem, 2.2vw, 1.7rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--blue);
}

.booking-summary img {
    width: 100%;
    height: 185px;
    margin-bottom: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    object-fit: cover;
    background: var(--ice);
}

.booking-summary h3 {
    margin: 8px 0;
    font-family: var(--display);
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.25;
    color: var(--ink);
}

.summary-price {
    margin: 12px 0 18px;
    font-family: var(--display);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--blue);
}

.summary-price small {
    font-family: var(--mono);
    font-size: 9.5px;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--body);
}

.summary-line {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    padding: 11px 0;
    border-top: 1px solid var(--line);
    font-size: 12.5px;
    color: var(--body);
}

.summary-line strong { color: var(--ink); font-weight: 600; }

.booking-summary > p.muted { margin-top: 14px; }
.booking-summary > p.muted i { color: var(--blue); }

/* --- Pembayaran --- */

.pay-card { padding: clamp(22px, 3vw, 32px); }

.pay-head h1 { margin: 10px 0 8px; }

.pay-head p {
    max-width: 48ch;
    font-size: 13.5px;
    line-height: 1.7;
    color: var(--body);
}

.pay-head strong { color: var(--ink); }

.pay-form { display: grid; gap: 16px; margin-top: 22px; }

.pay-methods { display: grid; gap: 9px; }

.pay-method {
    position: relative;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 13px 15px;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    background: var(--surface);
    cursor: pointer;
    transition: border-color 0.3s var(--ease), background 0.3s var(--ease),
        box-shadow 0.3s var(--ease), transform 0.45s var(--ease);
}

.pay-method:hover {
    border-color: var(--line-strong);
    background: var(--ice);
    transform: translateY(-1px);
}

.pay-method input { position: absolute; width: 1px; height: 1px; opacity: 0; }

.pay-method:has(input:checked) {
    border-color: var(--blue);
    background: var(--ice);
    box-shadow: 0 0 0 3px rgba(0, 85, 255, 0.1);
}

.pay-method:focus-within { outline: 2px solid var(--blue); outline-offset: 2px; }

.pay-method-icon {
    display: grid;
    place-items: center;
    flex: 0 0 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    background: var(--surface);
    color: var(--blue);
    font-size: 20px;
    transition: background 0.3s var(--ease), color 0.3s var(--ease),
        border-color 0.3s var(--ease);
}

.pay-method:has(input:checked) .pay-method-icon {
    background: var(--blue);
    border-color: var(--blue);
    color: var(--white);
}

.pay-method-text { display: grid; gap: 2px; flex: 1; min-width: 0; }

.pay-method-text strong {
    font-family: var(--sans);
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ink);
}

.pay-method-text small { font-size: 11.5px; color: var(--body); }

.pay-method-radio {
    display: grid;
    place-items: center;
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    border: 1px solid #cfd9e8;
    border-radius: 50%;
    background: var(--surface);
    transition: border-color 0.3s var(--ease);
}

.pay-method-radio::after {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--blue);
    transform: scale(0);
    transition: transform 0.3s var(--ease);
}

.pay-method:has(input:checked) .pay-method-radio { border-color: var(--blue); }
.pay-method:has(input:checked) .pay-method-radio::after { transform: scale(1); }

.pay-note {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 13px 15px;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    background: var(--ice);
    font-size: 12px;
    line-height: 1.65;
    color: var(--body);
}

.pay-note i { color: var(--blue); font-size: 15px; line-height: 1.5; }

.pay-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    background: var(--ice);
}

.pay-total-label { display: grid; gap: 3px; }

.pay-total-label span {
    font-family: var(--mono);
    font-size: 9.5px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--body);
}

.pay-total-label small { font-size: 11px; color: var(--body); }

.pay-total strong {
    font-family: var(--display);
    font-size: clamp(1.3rem, 2.2vw, 1.6rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--blue);
}

.pay-submit { padding: 15px 20px; }

.pay-summary img { height: 200px; }
.pay-summary .summary-price { margin: 10px 0 16px; }

.pay-lines { display: grid; }

.pay-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 11px 0;
    border-top: 1px solid var(--line);
    font-size: 12.5px;
    color: var(--body);
}

.pay-line strong {
    font-weight: 600;
    color: var(--ink);
    text-align: right;
}

.pay-summary-note {
    display: flex;
    gap: 8px;
    margin-top: 14px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    background: var(--ice);
    font-size: 12px;
    line-height: 1.65;
    color: var(--body);
}

.pay-summary-note i { color: var(--green-ink); font-size: 14px; line-height: 1.5; }
.pay-summary-note strong { color: var(--ink); }


/* =========================================================
   9. TABEL & STATUS
   ========================================================= */

.table-wrap {
    margin-top: 18px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

table {
    width: 100%;
    border-collapse: collapse;
    white-space: nowrap;
}

th {
    padding: 12px 15px;
    border-bottom: 1px solid var(--line);
    background: var(--ice);
    font-family: var(--mono);
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-align: left;
    color: var(--body);
}

td {
    padding: 14px 15px;
    border-bottom: 1px solid var(--line);
    font-size: 12.5px;
    color: var(--body);
    vertical-align: middle;
}

tbody tr { transition: background 0.3s var(--ease); }
tbody tr:hover { background: #fbfdff; }
tbody tr:last-child td { border-bottom: 0; }

td strong { color: var(--ink); font-weight: 600; }

.table-product { display: flex; align-items: center; gap: 10px; }

.table-product img {
    flex-shrink: 0;
    width: 44px;
    height: 38px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    object-fit: cover;
    background: var(--ice);
}

.table-product strong { font-size: 12.5px; color: var(--ink); }

.table-sub {
    display: block;
    margin-top: 3px;
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.04em;
    color: var(--body);
}

.table-action {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--blue);
}

.table-action:hover { color: var(--blue-dark); text-decoration: underline; text-underline-offset: 3px; }

.danger-text { color: var(--red-ink); }
.danger-text:hover { color: #991b1b; }

.admin-panel table td i { margin-right: 5px; color: var(--body); }

.status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 9px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    font-family: var(--mono);
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1.3;
    white-space: nowrap;
}

.status i { font-size: 11px; }

.status-pending { background: var(--amber-bg); border-color: var(--amber-line); color: var(--amber-ink); }
.status-confirmed { background: var(--ice); border-color: var(--line-strong); color: var(--blue); }
.status-completed,
.status-paid { background: var(--green-bg); border-color: var(--green-line); color: var(--green-ink); }
.status-cancelled,
.status-failed { background: var(--red-bg); border-color: var(--red-line); color: var(--red-ink); }
.status-refunded { background: var(--ice); border-color: var(--line-strong); color: var(--ink); }
.status-unpaid { background: var(--surface); border-color: var(--line); color: var(--body); }

.lp2-step-tag {
    display: inline-block;
    padding: 5px 9px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--ice);
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--body);
}


/* =========================================================
   10. EMPTY STATE
   ========================================================= */

.empty-state {
    padding: clamp(40px, 6vw, 64px) 20px;
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius-card);
    background: var(--surface);
    text-align: center;
    color: var(--body);
}

.empty-icon {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    margin: 0 auto 14px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--ice);
    color: var(--blue);
    font-size: 24px;
}

.empty-state h3 {
    margin: 0 0 6px;
    font-family: var(--display);
    font-size: 19px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--ink);
}

.empty-state p {
    margin: 0 0 20px;
    font-size: 13px;
    line-height: 1.7;
}


/* =========================================================
   11. ADMIN SHELL
   ========================================================= */

.admin-layout {
    display: flex;
    min-height: 100vh;
    background: var(--ice);
}

.admin-sidebar {
    display: flex;
    flex-direction: column;
    width: 250px;
    min-width: 250px;
    padding: 24px 16px;
    border-radius: 0 var(--radius-lg) 0 0;
    background: var(--navy);
    color: var(--crisp);
    box-shadow: 8px 0 32px -22px rgba(6, 19, 38, 0.55);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 40px;
    padding: 0 8px;
    font-family: var(--display);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--white);
}

.sidebar-brand > span:last-child span { color: var(--cyan); }

.sidebar-logo {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: var(--radius-card);
    background: var(--blue);
    color: var(--white);
    font-size: 16px;
    box-shadow: 3px 3px 0 rgba(56, 189, 248, 0.45);
}

.sidebar-label {
    margin: 0 0 12px;
    padding: 0 12px;
    font-family: var(--mono);
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(248, 250, 252, 0.55);
}

.sidebar-menu { display: grid; gap: 3px; }

.sidebar-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 11px 13px;
    border-radius: var(--radius-card);
    font-size: 13px;
    font-weight: 500;
    color: #b9c8e4;
    transition: background 0.3s var(--ease), color 0.3s var(--ease);
}

.sidebar-link > i {
    flex-shrink: 0;
    width: 20px;
    font-size: 17px;
    text-align: center;
}

.sidebar-link span { flex: 1; min-width: 0; }

.sidebar-link:hover { background: rgba(255, 255, 255, 0.08); color: var(--white); }

.sidebar-link.active {
    background: rgba(0, 85, 255, 0.22);
    color: var(--white);
}

.sidebar-link.active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    bottom: 10px;
    width: 2px;
    border-radius: 2px;
    background: var(--cyan);
}

.sidebar-bottom {
    display: grid;
    gap: 3px;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid rgba(248, 250, 252, 0.14);
}

.logout-link:hover { background: rgba(185, 28, 28, 0.28); color: #fecaca; }

.admin-main {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
}

/* Footer admin berada di dalam kolom konten agar sidebar navy penuh ke bawah */
.admin-main > .footer {
    margin-top: auto;
    padding-inline: 0;
}

.admin-main > .footer .container {
    max-width: none;
    padding-inline: clamp(18px, 3vw, 34px);
}

.admin-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 84px;
    padding: 16px clamp(18px, 3vw, 34px);
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.admin-topbar h2 {
    margin: 0 0 4px;
    font-family: var(--display);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: var(--ink);
}

.admin-topbar p { font-size: 12.5px; color: var(--body); }

.admin-profile { display: flex; align-items: center; gap: 10px; }

.admin-avatar {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--ice);
    color: var(--blue);
    font-size: 20px;
}

.admin-profile div { display: grid; gap: 2px; }

.admin-profile strong { font-size: 12.5px; font-weight: 600; color: var(--ink); }

.admin-profile small {
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--body);
}

.admin-content { padding: clamp(20px, 3vw, 34px) clamp(18px, 3vw, 34px) 56px; }

.admin-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
}

.admin-heading h1 {
    margin-top: 10px;
    font-size: clamp(1.6rem, 2.8vw, 2.2rem);
}

.admin-heading p.muted { margin-top: 7px; max-width: 56ch; }

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

.stat-card {
    display: grid;
    gap: 6px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    background: var(--surface);
    transition: transform 0.45s var(--ease), border-color 0.3s var(--ease),
        box-shadow 0.45s var(--ease);
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: var(--blue);
    box-shadow: var(--shadow-hard);
}

.stat-icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    margin-bottom: 8px;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    background: var(--ice);
    color: var(--blue);
    font-size: 19px;
}

.stat-card small {
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--body);
}

.stat-card strong {
    font-family: var(--display);
    font-size: clamp(1.6rem, 2.6vw, 2.1rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1;
    color: var(--ink);
}

.stat-card span { font-size: 11.5px; color: var(--body); }

.admin-panel { margin-top: 18px; }

.panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 4px;
}

.admin-panel h2,
.panel-heading h2 {
    font-family: var(--display);
    font-size: 15.5px;
    font-weight: 700;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    color: var(--ink);
}

.panel-heading h2 i { margin-right: 7px; color: var(--blue); }

.panel-heading > span {
    font-family: var(--mono);
    font-size: 9.5px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--body);
}

.panel-heading a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--blue);
}

.panel-heading a:hover { color: var(--blue-dark); }

.form-panel { margin-bottom: 18px; }

.admin-product-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 18px;
}

.full-field { grid-column: 1 / -1; }

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

.inline-form select {
    width: auto;
    min-width: 120px;
    height: 36px;
    padding: 0 10px;
    font-size: 12px;
}


/* =========================================================
   12. KUITANSI
   ========================================================= */

.receipt-section {
    padding-top: clamp(28px, 4vw, 48px);
    padding-bottom: clamp(48px, 6vw, 80px);
}

.receipt {
    max-width: 640px;
    margin: 0 auto;
    padding: clamp(22px, 4vw, 36px);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-panel);
}

.receipt-head {
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
    text-align: center;
}

.receipt-icon {
    display: grid;
    place-items: center;
    width: 60px;
    height: 60px;
    margin: 0 auto 14px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--ice);
    color: var(--blue);
    font-size: 27px;
    box-shadow: 0 0 0 6px rgba(0, 85, 255, 0.06);
}

.receipt-head h1 {
    margin-bottom: 6px;
    font-size: clamp(1.5rem, 3vw, 1.9rem);
}

.receipt-head p { font-size: 12.5px; line-height: 1.65; color: var(--body); }

.receipt-ref {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 14px;
    padding: 7px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--ice);
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.06em;
    color: var(--blue);
}

.receipt-product {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0 6px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    background: var(--ice);
}

.receipt-product img {
    width: 52px;
    height: 46px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    object-fit: cover;
}

.receipt-product div { display: grid; gap: 3px; }

.receipt-product strong { font-size: 13px; font-weight: 600; color: var(--ink); }

.receipt-product span { font-size: 11px; color: var(--body); }

.receipt-body { padding-top: 4px; }

.receipt-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
    font-size: 12.5px;
    color: var(--body);
}

.receipt-row:last-child { border-bottom: 0; }

.receipt-row strong {
    max-width: 62%;
    font-weight: 600;
    color: var(--ink);
    text-align: right;
}

.receipt-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 16px;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    background: var(--ice);
}

.receipt-total span {
    font-family: var(--mono);
    font-size: 9.5px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--body);
}

.receipt-total strong {
    font-family: var(--display);
    font-size: clamp(1.3rem, 2.4vw, 1.6rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--blue);
}

.receipt-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 9px;
    margin-top: 24px;
}

.receipt-actions .btn { height: 42px; padding: 0 17px; font-size: 12.5px; }

.receipt-foot {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    font-family: var(--mono);
    font-size: 9.5px;
    letter-spacing: 0.04em;
    line-height: 1.9;
    text-align: center;
    color: var(--body);
}

.receipt-foot strong { color: var(--ink); }


/* =========================================================
   13. FILTER ADMIN PEMBAYARAN
   ========================================================= */

.payment-filter {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 16px 0 2px;
}

.payment-filter input[type="search"] { flex: 1 1 240px; min-width: 0; }

.payment-filter select { width: auto; min-width: 150px; }

.payment-actions { display: grid; gap: 7px; justify-items: start; }
.payment-actions .inline-form { width: 100%; }


/* =========================================================
   14. FOOTER
   ========================================================= */

.footer {
    padding: 26px 0 40px;
    border-top: 1px solid var(--line);
    background: var(--surface);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.footer p {
    max-width: 40ch;
    font-size: 12.5px;
    line-height: 1.65;
    color: var(--body);
}

.footer small {
    font-family: var(--mono);
    font-size: 9.5px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--body);
}

.brand-footer { font-size: 17px; }
.brand-footer .brand-mark { width: 26px; height: 26px; font-size: 13px; }


/* =========================================================
   15. RESPONSIF
   ========================================================= */

@media (max-width: 900px) {
    .admin-sidebar {
        width: 210px;
        min-width: 210px;
        border-radius: 0 var(--radius-lg) 0 0;
    }

    .admin-content { padding: 24px 20px 48px; }
    .admin-topbar { padding: 14px 20px; }
    .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .detail-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 860px) {
    .auth-card { grid-template-columns: 1fr; min-height: 0; }
    .auth-side { min-height: 210px; padding: 28px; }
    .auth-side h2 { font-size: 24px; margin: 12px 0; }
    .auth-side-note { margin-top: 18px; }
    .auth-form-wrap { padding: 28px 24px 32px; }
    .auth-section { padding: 24px 16px 48px; }
    .booking-layout { grid-template-columns: 1fr; }
    .admin-heading { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 760px) {
    .site-header { padding-top: 10px; }
    .nav-wrap { height: 58px; padding: 0 8px 0 14px; }
    .menu-toggle { display: grid; }
    .nav-links { display: none; }

    .nav-links.open {
        position: absolute;
        top: 72px;
        left: clamp(16px, 4vw, 56px);
        right: clamp(16px, 4vw, 56px);
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        margin: 0;
        padding: 12px;
        border: 1px solid var(--line);
        border-radius: var(--radius-lg);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        box-shadow: var(--shadow-card);
    }

    .nav-links.open a { height: 44px; border-radius: var(--radius-card); }
    .nav-links.open .nav-user { padding: 8px 14px; margin-right: 0; }
    .nav-links.open .btn { width: 100%; margin-top: 4px; }

    .footer-inner { flex-direction: column; align-items: flex-start; gap: 14px; }

    .receipt-actions .btn { flex: 1 1 auto; }
}

@media (max-width: 620px) {
    .admin-layout { flex-direction: column; }

    .admin-sidebar {
        width: 100%;
        min-width: 0;
        padding: 14px;
        border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    }

    .sidebar-brand { margin-bottom: 14px; }

    .sidebar-menu {
        display: flex;
        flex-wrap: wrap;
        gap: 4px;
        padding-bottom: 2px;
    }

    .sidebar-link { white-space: nowrap; padding: 10px 12px; }

    .sidebar-bottom {
        display: flex;
        gap: 6px;
        margin-top: 12px;
        padding-top: 10px;
    }

    .admin-topbar { flex-wrap: wrap; padding: 14px 16px; }
    .admin-content { padding: 20px 16px 40px; }

    .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .stat-card { padding: 14px; }

    .admin-product-form { grid-template-columns: 1fr; }
    .full-field { grid-column: auto; }
    .inline-form { flex-direction: column; align-items: stretch; }
    .inline-form select { width: 100%; }

    .payment-filter select { flex: 1 1 100%; width: 100%; }

    .pay-total { flex-direction: column; align-items: flex-start; gap: 8px; }

    .detail-copy h1 { font-size: 1.7rem; }
    .detail-image { height: 280px; }
}

@media (max-width: 480px) {
    .auth-side { display: none; }
    .auth-card { border-radius: var(--radius-card); }
    .auth-form-wrap { padding: 24px 20px 28px; }

    .receipt { padding: 20px 16px; }
    .receipt-row { font-size: 12px; }
    .receipt-total { flex-direction: column; align-items: flex-start; gap: 6px; }

    .footer-inner { gap: 12px; }
    .footer small { line-height: 1.6; }
}


/* =========================================================
   16. PRINT â€” kuitansi
   ========================================================= */

@media print {
    .site-header,
    .footer,
    .receipt-actions,
    .nav-links { display: none !important; }

    body { background: #fff; }

    .receipt-section { padding: 0; }

    .receipt {
        max-width: 100%;
        padding: 0;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .receipt-total,
    .receipt-product {
        background: var(--ice) !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}


/* =========================================================
   17. REDUCED MOTION
   ========================================================= */

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

    .btn,
    .stat-card,
    .admin-panel,
    .booking-form-card,
    .booking-summary,
    .pay-method,
    .pay-method-icon,
    .pay-method-radio,
    .sidebar-link,
    .nav-links a,
    tbody tr { transition: none; }

    .btn-primary:hover,
    .btn-outline:hover,
    .btn-light:hover,
    .stat-card:hover,
    .pay-method:hover { transform: none; }

    .btn-primary:hover i { transform: none; }
}

/* =========================================================
   18. TEMA TERANG / GELAP
   ========================================================= */

:root { color-scheme: light; }

html[data-theme="dark"] {
    color-scheme: dark;

    /* Permukaan & teks */
    --surface: #0b1526;
    --bg: #0b1526;
    --ice: #101c31;
    --soft: #101c31;
    --navy: #050b17;
    --ink: #e8f0fc;
    --body: #a6b7d4;
    --muted: #a6b7d4;
    --crisp: #f8fafc;
    --line: #1e2d47;
    --line-strong: #2e4166;

    /* Aksen sedikit lebih terang agar terbaca di latar gelap */
    --blue: #3d85ff;
    --blue-dark: #2a72e8;
    --blue2: #3d85ff;

    /* Status */
    --green-ink: #34d399;
    --green-bg: rgba(23, 166, 115, 0.14);
    --green-line: rgba(52, 211, 153, 0.32);
    --amber-ink: #fbbf24;
    --amber-bg: rgba(180, 83, 9, 0.16);
    --amber-line: rgba(251, 191, 36, 0.32);
    --red-ink: #f87171;
    --red-bg: rgba(185, 28, 28, 0.16);
    --red-line: rgba(248, 113, 113, 0.32);

    /* Elevation */
    --shadow-card: 0 18px 40px -22px rgba(0, 0, 0, 0.65);
    --shadow-panel: 0 24px 60px -24px rgba(0, 0, 0, 0.7);
    --shadow-nav: 0 10px 30px -18px rgba(0, 0, 0, 0.8);
}

html[data-theme="dark"] body { background: var(--surface); color: var(--ink); }

html[data-theme="dark"] .site-header {
    background: linear-gradient(180deg, rgba(11, 21, 38, 0.96), rgba(11, 21, 38, 0));
}

html[data-theme="dark"] .nav-wrap,
html[data-theme="dark"] .admin-topbar {
    background: rgba(11, 21, 38, 0.88);
}

html[data-theme="dark"] tbody tr:hover { background: rgba(61, 133, 255, 0.07); }

html[data-theme="dark"] .nav-links.open { background: rgba(11, 21, 38, 0.98); }

html[data-theme="dark"] .btn-primary { color: var(--white); }
html[data-theme="dark"] .btn-outline:hover { background: rgba(61, 133, 255, 0.08); }

html[data-theme="dark"] .auth-side { color: var(--crisp); }

html[data-theme="dark"] .detail-image { background: var(--ice); }

html[data-theme="dark"] img { color-scheme: normal; }


/* ── Tombol pengubah tema ── */
.theme-toggle {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    border-radius: var(--radius-card);
    background: var(--surface);
    color: var(--ink);
    font-size: 17px;
    line-height: 1;
    cursor: pointer;
    transition: border-color 0.3s var(--ease), color 0.3s var(--ease),
        background 0.3s var(--ease), transform 0.3s var(--ease);
}

.theme-toggle:hover {
    border-color: var(--blue);
    color: var(--blue);
    transform: translateY(-1px);
}

.theme-toggle:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.admin-profile .theme-toggle { flex: 0 0 auto; }

@media (max-width: 760px) {
    .nav-links.open .theme-toggle { width: 100%; height: 44px; }
}


/* ── Cetak selalu terang ── */
@media print {
    html[data-theme="dark"] {
        --surface: #ffffff;
        --ice: #f4f8ff;
        --ink: #0a192f;
        --body: #475569;
        --line: #dbeafe;
    }

    html[data-theme="dark"] body { background: #fff; }
}
