﻿/* ============================================================
   Kostantinopel — main.css
   Tema terinspirasi Sneat (ThemeSelection):
   Public Sans · primary #696CFF · background #F5F5F9.
   Base, komponen, landing page, dan halaman autentikasi.
   ============================================================ */

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

:root {
  --primary: #696CFF;
  --primary-dark: #5E61E6;
  --primary-light: #8789FF;
  --primary-soft: rgba(105, 108, 255, .16);
  --secondary: #8592A3;
  --success: #71DD37;
  --info: #03C3EC;
  --warning: #FFAB00;
  --error: #FF3E1D;
  --ink: #22303E;
  --slate: #3D4A5C;
  --muted: #69727C;
  --bg: #F5F5F9;
  --card: #FFFFFF;
  --border: #DBDADE;
  --ink-rgb: 34, 48, 62;
  --surface-soft: #F5F5F9;
  --scrim: rgba(29, 29, 42, .55);
  --radius: 6px;
  --radius-lg: 8px;
  --shadow: 0 3px 8px rgba(var(--ink-rgb), .12);
  --shadow-lg: 0 4px 16px rgba(var(--ink-rgb), .18);
  color-scheme: light;
}

/* ---------- Palet gelap (mengikuti dark theme Sneat) ---------- */
[data-theme="dark"] {
  --primary: #696CFF;
  --primary-dark: #5E61E6;
  --primary-light: #8789FF;
  --primary-soft: rgba(105, 108, 255, .22);
  --secondary: #8592A3;
  --success: #71DD37;
  --info: #03C3EC;
  --warning: #FFAB00;
  --error: #FF3E1D;
  --ink: #E6E6F1;
  --slate: #C5CBE8;
  --muted: #A2A9CE;
  --bg: #232333;
  --card: #2B2C40;
  --border: #3E4059;
  --ink-rgb: 230, 230, 241;
  --surface-soft: #313246;
  --scrim: rgba(18, 18, 28, .68);
  --shadow: 0 3px 10px rgba(0, 0, 0, .35);
  --shadow-lg: 0 8px 28px rgba(0, 0, 0, .45);
  color-scheme: dark;
}

/* Matikan transisi sesaat saat tema diganti agar warna langsung konsisten */
html.theme-no-transition,
html.theme-no-transition * {
  transition: none !important;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Public Sans', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
img { max-width: 100%; }
h1, h2, h3, h4 { line-height: 1.25; }

/* ============ Tombol ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 9px 16px; border-radius: var(--radius); border: 1px solid transparent;
  font: inherit; font-weight: 500; font-size: 14px; letter-spacing: .02em;
  cursor: pointer; text-decoration: none; transition: all .18s ease; white-space: nowrap;
}
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 4px 10px rgba(105, 108, 255, .3); }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--slate); }
.btn-ghost:hover:not(:disabled) { background: rgba(var(--ink-rgb), .05); color: var(--ink); border-color: var(--border); }
.btn-danger { background: var(--error); color: #fff; }
.btn-danger:hover:not(:disabled) { background: #E6381A; }
.btn-danger-ghost { background: transparent; border-color: rgba(255, 62, 29, .35); color: var(--error); }
.btn-danger-ghost:hover:not(:disabled) { background: rgba(255, 62, 29, .08); }
.btn-light { background: #fff; color: var(--primary); }
.btn-light:hover { background: #F0F0FF; }
.btn-ghost-light { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .3); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .24); }
.btn-sm { padding: 6px 10px; font-size: 13px; border-radius: 6px; }
.btn-block { width: 100%; }

/* ============ Badge ============ */
.badge {
  display: inline-flex; align-items: center; padding: 3px 10px;
  border-radius: 6px; font-size: 12px; font-weight: 600; line-height: 1.5;
}
.badge-green { background: rgba(113, 221, 55, .16); color: #62C52D; }
.badge-amber { background: rgba(255, 171, 0, .16); color: #E69A00; }
.badge-red { background: rgba(255, 62, 29, .16); color: #FF3E1D; }
.badge-blue { background: rgba(3, 195, 236, .16); color: #03AFD4; }
.badge-slate { background: rgba(var(--ink-rgb), .08); color: var(--slate); }
.badge-indigo { background: var(--primary-soft); color: var(--primary); }
.badge-available { background: rgba(113, 221, 55, .16); color: #62C52D; }
.badge-occupied { background: var(--primary-soft); color: var(--primary); }
.badge-maintenance { background: rgba(var(--ink-rgb), .08); color: var(--slate); }
/* Alias status (booking & tagihan) */
.badge-pending, .badge-unpaid { background: rgba(255, 171, 0, .16); color: #E69A00; }
.badge-confirmed { background: rgba(3, 195, 236, .16); color: #03AFD4; }
.badge-checkin, .badge-paid { background: rgba(113, 221, 55, .16); color: #62C52D; }
.badge-checkedout { background: rgba(var(--ink-rgb), .08); color: var(--slate); }
.badge-cancelled, .badge-late { background: rgba(255, 62, 29, .16); color: #FF3E1D; }

/* ============ Kartu & Tabel ============ */
.card {
  background: var(--card); border: 1px solid rgba(var(--ink-rgb), .1);
  border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
.card-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 16px 24px; border-bottom: 1px solid rgba(var(--ink-rgb), .08);
}
.card-head h3 { font-size: 16px; font-weight: 600; }
.card-body { padding: 24px; }
.card-body.no-pad { padding: 0; }
.card-link { font-size: 13px; font-weight: 600; }

.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th {
  text-align: left; font-size: 11.5px; text-transform: uppercase;
  letter-spacing: .05em; color: var(--muted); font-weight: 600;
  padding: 12px 16px; border-bottom: 1px solid rgba(var(--ink-rgb), .1);
  background: rgba(var(--ink-rgb), .02);
}
.table td { padding: 12px 16px; border-bottom: 1px solid rgba(var(--ink-rgb), .08); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr:hover { background: rgba(var(--ink-rgb), .02); }
.table .num { text-align: right; }
.ta-right { text-align: right; }
.cell-main strong { display: block; }
.cell-main span { font-size: 12px; color: var(--muted); }
.cell-muted { color: var(--muted); font-size: 13px; }

/* ============ Form ============ */
.form-field { display: block; margin-bottom: 14px; }
.form-label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 6px; color: var(--slate); }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border);
  border-radius: var(--radius); font: inherit; font-size: 14px; background: var(--card);
  color: var(--ink); transition: border .15s, box-shadow .15s;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(105, 108, 255, .12);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-hint { display: block; margin-top: 4px; font-size: 12px; color: var(--muted); }

/* ============ Empty state ============ */
.empty-state { text-align: center; padding: 48px 20px; color: var(--muted); }
.empty-icon { font-size: 34px; margin-bottom: 10px; }
.empty-state p { font-weight: 600; color: var(--slate); }
.empty-state small { font-size: 13px; }

/* ============ Modal ============ */
.modal-open { overflow: hidden; }
.modal-overlay {
  position: fixed; inset: 0; background: var(--scrim);
  backdrop-filter: blur(2px); display: flex; align-items: center;
  justify-content: center; padding: 20px; z-index: 1000;
  animation: fadeIn .15s ease;
}
.modal-panel {
  background: var(--card); border-radius: var(--radius-lg); width: 100%; max-width: 520px;
  max-height: 90vh; overflow: auto; box-shadow: 0 12px 40px rgba(var(--ink-rgb), .25);
  animation: slideUp .18s ease;
}
.modal-sm { max-width: 420px; }
.modal-lg { max-width: 660px; }
.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px 0;
}
.modal-head h3 { font-size: 17px; font-weight: 600; }
.modal-close {
  background: none; border: none; font-size: 24px; cursor: pointer;
  color: var(--muted); line-height: 1;
}
.modal-close:hover { color: var(--ink); }
.modal-body { padding: 16px 24px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 0 24px 20px; }
.modal-message { font-size: 14px; color: var(--muted); line-height: 1.6; }
.modal-leaving { opacity: 0; transition: opacity .15s; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ============ Toast ============ */
#toast-container {
  position: fixed; right: 20px; bottom: 20px; display: flex;
  flex-direction: column; gap: 10px; z-index: 2000;
}
.toast {
  display: flex; align-items: center; gap: 10px;
  color: #fff; padding: 12px 16px; border-radius: var(--radius);
  font-size: 14px; box-shadow: var(--shadow-lg); animation: slideUp .2s ease; max-width: 380px;
  background: #1D1D2A;
}
.toast-icon {
  display: inline-flex; width: 22px; height: 22px; align-items: center;
  justify-content: center; border-radius: 50%; font-size: 12px; font-weight: 700; flex: none;
}
.toast-success .toast-icon { background: var(--success); }
.toast-error .toast-icon { background: var(--error); }
.toast-info .toast-icon { background: var(--info); }
.toast-out { opacity: 0; transform: translateY(8px); transition: all .3s; }

/* ============================================================
   LANDING PAGE (gaya Sneat: terang, violet, Public Sans)
   ============================================================ */
.landing { background: var(--bg); color: var(--ink); }
.landing a { color: inherit; }

/* --- Navbar --- */
.nav-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 5%; transition: all .2s ease;
  background: color-mix(in srgb, var(--card) 85%, transparent); backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
}
.nav-bar.scrolled { border-bottom-color: rgba(var(--ink-rgb), .08); box-shadow: 0 2px 12px rgba(var(--ink-rgb), .06); }
.brand {
  display: flex; align-items: center; gap: 10px;
  font-size: 18px; font-weight: 700; color: var(--ink); letter-spacing: -.01em;
}
.brand-logo {
  width: 36px; height: 36px; border-radius: 8px; display: inline-flex;
  align-items: center; justify-content: center; color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  box-shadow: 0 4px 12px rgba(105, 108, 255, .35);
}
.brand-logo svg { width: 20px; height: 20px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--muted); transition: color .15s; }
.nav-links a:hover { color: var(--primary); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--border);
  border-radius: 8px; color: var(--slate); padding: 8px; cursor: pointer; font-size: 18px; line-height: 1;
}

/* --- Hero --- */
.hero {
  position: relative; overflow: hidden;
  padding: 150px 5% 90px; text-align: center;
}
.hero::before, .hero::after {
  content: ''; position: absolute; border-radius: 50%; filter: blur(100px); opacity: .35;
}
.hero::before { width: 480px; height: 480px; background: #B9BAFF; top: -180px; left: -120px; }
.hero::after { width: 420px; height: 420px; background: #B3E5FA; bottom: -180px; right: -100px; }
.hero-inner { position: relative; z-index: 1; max-width: 880px; margin: 0 auto; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px;
  border-radius: 6px; font-size: 13px; font-weight: 500;
  background: var(--primary-soft); color: var(--primary);
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(32px, 5.2vw, 56px); font-weight: 700;
  letter-spacing: -.03em; color: var(--ink); margin-bottom: 20px;
}
.hero h1 .grad {
  background: linear-gradient(90deg, var(--primary), var(--info));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p {
  font-size: clamp(15px, 1.6vw, 18px); color: var(--muted);
  max-width: 620px; margin: 0 auto 34px;
}
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-cta .btn { padding: 13px 24px; font-size: 15px; border-radius: var(--radius); }
.hero-stats {
  display: flex; justify-content: center; gap: 48px; flex-wrap: wrap;
  margin-top: 60px; padding: 28px 32px;
  background: var(--card); border: 1px solid rgba(var(--ink-rgb), .08);
  border-radius: var(--radius-lg); box-shadow: var(--shadow);
  max-width: 720px; margin-inline: auto;
}
.hero-stat strong { display: block; font-size: 26px; font-weight: 700; color: var(--ink); }
.hero-stat span { font-size: 13px; color: var(--muted); }

/* --- Section umum --- */
.section { padding: 80px 5%; }
.section-alt { background: var(--card); border-block: 1px solid rgba(var(--ink-rgb), .06); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head .eyebrow {
  display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--primary); margin-bottom: 12px;
}
.section-head h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 700; letter-spacing: -.02em; color: var(--ink); }
.section-head p { color: var(--muted); margin-top: 14px; font-size: 15px; }
.container { max-width: 1180px; margin: 0 auto; }

/* --- Fitur --- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card {
  background: var(--card); border: 1px solid rgba(var(--ink-rgb), .08);
  border-radius: var(--radius-lg); padding: 26px; transition: all .2s ease;
}
.feature-card:hover { transform: translateY(-4px); border-color: rgba(105, 108, 255, .4); box-shadow: var(--shadow); }
.feature-icon {
  width: 46px; height: 46px; border-radius: var(--radius); display: inline-flex;
  align-items: center; justify-content: center; margin-bottom: 16px;
  background: var(--primary-soft); color: var(--primary);
}
.feature-icon svg { width: 22px; height: 22px; }
.feature-card h3 { font-size: 16px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--muted); }

/* --- Tipe properti --- */
.type-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.type-card {
  background: var(--bg); border: 1px solid rgba(var(--ink-rgb), .08);
  border-radius: var(--radius-lg); padding: 26px; text-align: left; transition: all .2s ease;
}
.type-card:hover { transform: translateY(-4px); border-color: rgba(105, 108, 255, .45); background: var(--card); box-shadow: var(--shadow); }
.type-emoji { font-size: 30px; margin-bottom: 14px; display: block; }
.type-card h3 { font-size: 17px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.type-card p { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.type-card ul { list-style: none; }
.type-card li { font-size: 13px; color: var(--slate); padding: 4px 0; display: flex; gap: 8px; }
.type-card li::before { content: '✓'; color: var(--success); font-weight: 700; }

/* --- Cara kerja --- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { text-align: center; padding: 0 12px; }
.step-num {
  width: 52px; height: 52px; border-radius: 50%; margin: 0 auto 18px;
  display: flex; align-items: center; justify-content: center;
  font-size: 19px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  box-shadow: 0 6px 16px rgba(105, 108, 255, .3);
}
.step h3 { font-size: 17px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--muted); }

/* --- Paket --- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.price-card {
  background: var(--card); border: 1px solid rgba(var(--ink-rgb), .08);
  border-radius: var(--radius-lg); padding: 30px; display: flex; flex-direction: column;
  transition: all .2s ease;
}
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.price-card.featured {
  background: linear-gradient(160deg, rgba(105, 108, 255, .1), rgba(3, 195, 236, .05));
  border-color: rgba(105, 108, 255, .5); position: relative;
  transform: scale(1.03);
}
.price-card.featured:hover { transform: scale(1.05) translateY(-4px); }
.price-tag {
  position: absolute; top: -13px; right: 22px; padding: 5px 12px;
  border-radius: 6px; font-size: 11px; font-weight: 700; letter-spacing: .04em;
  background: linear-gradient(90deg, var(--warning), #FF8F00); color: #fff;
}
.price-card h3 { font-size: 18px; font-weight: 600; color: var(--ink); }
.price-card .price-sub { font-size: 13px; color: var(--muted); margin: 6px 0 18px; }
.price-value { margin-bottom: 20px; }
.price-value strong { font-size: 32px; font-weight: 700; color: var(--ink); letter-spacing: -.02em; }
.price-value span { font-size: 14px; color: var(--muted); }
.price-card ul { list-style: none; margin-bottom: 26px; flex: 1; }
.price-card li { font-size: 14px; color: var(--slate); padding: 7px 0; display: flex; gap: 9px; }
.price-card li::before { content: '✓'; color: var(--success); font-weight: 700; }

/* --- CTA & Footer --- */
.cta-section { padding: 80px 5%; text-align: center; position: relative; overflow: hidden; }
.cta-section::before {
  content: ''; position: absolute; width: 520px; height: 520px; border-radius: 50%;
  background: rgba(105, 108, 255, .12); filter: blur(120px); top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.cta-inner { position: relative; z-index: 1; }
.cta-inner h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 700; color: var(--ink); margin-bottom: 14px; letter-spacing: -.02em; }
.cta-inner p { color: var(--muted); margin-bottom: 30px; }

.footer {
  border-top: 1px solid rgba(var(--ink-rgb), .08);
  padding: 32px 5%; display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap; color: var(--muted); font-size: 13px;
  background: var(--card);
}
.footer-links { display: flex; gap: 22px; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--primary); }

/* ============================================================
   HALAMAN AUTENTIKASI (kartu putih di atas #F5F5F9)
   ============================================================ */
.auth-body {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 30px 16px; position: relative; overflow: hidden;
  background: var(--bg);
}
.auth-body::before, .auth-body::after {
  content: ''; position: absolute; border-radius: 50%; filter: blur(100px); opacity: .4;
}
.auth-body::before { width: 460px; height: 460px; background: #C3C4FF; top: -140px; left: -100px; }
.auth-body::after { width: 400px; height: 400px; background: #B3E5FA; bottom: -160px; right: -80px; }
.auth-card {
  position: relative; z-index: 1; width: 100%; max-width: 430px;
  background: var(--card); border: 1px solid rgba(var(--ink-rgb), .08);
  border-radius: var(--radius-lg); padding: 38px 34px;
  box-shadow: 0 12px 40px rgba(var(--ink-rgb), .12);
}
.auth-brand { display: flex; align-items: center; gap: 10px; justify-content: center; margin-bottom: 24px; }
.auth-brand .brand-logo { width: 40px; height: 40px; }
.auth-brand span { font-size: 19px; font-weight: 700; color: var(--ink); }
.auth-card h1 { font-size: 22px; font-weight: 700; color: var(--ink); text-align: center; }
.auth-card .auth-sub { font-size: 14px; color: var(--muted); text-align: center; margin: 8px 0 26px; }
.auth-card .form-label { color: var(--slate); }
.auth-card .form-field input {
  background: var(--card); border-color: var(--border);
  color: var(--ink);
}
.auth-card .form-field input::placeholder { color: #A5ADB8; }
.auth-card .form-field input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(105, 108, 255, .12); }
.auth-error {
  display: none; background: rgba(255, 62, 29, .1); border: 1px solid rgba(255, 62, 29, .35);
  color: var(--error); font-size: 13px; padding: 10px 14px; border-radius: var(--radius); margin-bottom: 16px;
}
.auth-error.show { display: block; }
.auth-alt { text-align: center; margin-top: 20px; font-size: 13px; color: var(--muted); }
.auth-alt a { color: var(--primary); font-weight: 600; }
.auth-alt a:hover { text-decoration: underline; }
.auth-demo {
  margin-top: 20px; padding: 12px 14px; border-radius: var(--radius); font-size: 12.5px;
  background: rgba(113, 221, 55, .1); border: 1px solid rgba(113, 221, 55, .35); color: #4E9A1E;
}
.auth-demo strong { color: #3D7A14; }
.auth-demo a { color: #4E9A1E; font-weight: 600; text-decoration: underline; cursor: pointer; }

/* ============ Responsif ============ */
@media (max-width: 960px) {
  .feature-grid, .steps, .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .type-grid { grid-template-columns: repeat(2, 1fr); }
  .price-card.featured { transform: none; }
  .price-card.featured:hover { transform: translateY(-4px); }
}
@media (max-width: 720px) {
  .nav-links, .nav-actions .btn-ghost { display: none; }
  .nav-toggle { display: block; }
  .nav-bar.menu-open .nav-links {
    display: flex; flex-direction: column; position: absolute; top: 100%;
    left: 0; right: 0; padding: 18px 5%; gap: 14px;
    background: var(--card); border-bottom: 1px solid rgba(var(--ink-rgb), .08);
  }
  .feature-grid, .steps, .pricing-grid, .type-grid { grid-template-columns: 1fr; }
  .hero { padding: 120px 6% 60px; }
  .hero-stats { gap: 24px; padding: 22px; }
  .form-row { grid-template-columns: 1fr; }
  .auth-card { padding: 30px 22px; }
}

/* ============================================================
   PENGALIH TEMA — switch terang / gelap
   ============================================================ */
.theme-switch {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0; border: none; background: none; cursor: pointer; flex: none;
  border-radius: 999px;
}
.theme-switch:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.ts-track {
  position: relative; display: flex; align-items: center; justify-content: space-between;
  inline-size: 58px; block-size: 30px; padding: 0 7px; border-radius: 999px;
  background: rgba(var(--ink-rgb), .1);
  border: 1px solid rgba(var(--ink-rgb), .12);
  color: var(--muted); transition: background .25s ease, border-color .25s ease;
}
.ts-track svg { inline-size: 14px; block-size: 14px; position: relative; z-index: 1; }
.ts-sun { color: #E69A00; }
.ts-moon { color: var(--muted); }
.ts-knob {
  position: absolute; z-index: 0; inset-block-start: 3px; inset-inline-start: 3px;
  inline-size: 22px; block-size: 22px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .28);
  transition: transform .25s cubic-bezier(.4, 0, .2, 1), background .25s ease;
}
[data-theme="dark"] .ts-track {
  background: rgba(105, 108, 255, .28); border-color: rgba(105, 108, 255, .45);
}
[data-theme="dark"] .ts-knob { transform: translateX(28px); background: var(--primary); }
[data-theme="dark"] .ts-sun { color: var(--muted); }
[data-theme="dark"] .ts-moon { color: #fff; }

.auth-theme { position: fixed; inset-block-start: 20px; inset-inline-end: 22px; z-index: 10; }

.theme-setting { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.theme-setting strong { display: block; font-size: 14px; }
.theme-setting .theme-mode { display: block; font-size: 12.5px; color: var(--muted); margin-block-start: 2px; }

/* ============================================================
   PENYESUAIAN MODE GELAP
   ============================================================ */
[data-theme="dark"] .hero::before,
[data-theme="dark"] .hero::after { opacity: .16; }
[data-theme="dark"] .auth-body::before,
[data-theme="dark"] .auth-body::after { opacity: .14; }
[data-theme="dark"] .price-card.featured {
  background: linear-gradient(160deg, rgba(105, 108, 255, .18), rgba(3, 195, 236, .07));
}
[data-theme="dark"] .auth-demo { color: #A5E86F; border-color: rgba(113, 221, 55, .3); }
[data-theme="dark"] .auth-demo strong,
[data-theme="dark"] .auth-demo a { color: #B9EE8A; }
[data-theme="dark"] .btn-light { background: var(--card); }
[data-theme="dark"] .btn-light:hover { background: #34365A; }
[data-theme="dark"] .badge-pending,
[data-theme="dark"] .badge-unpaid { color: #FFBC33; }
[data-theme="dark"] .badge-confirmed { color: #35CFF0; }
[data-theme="dark"] .badge-checkin,
[data-theme="dark"] .badge-paid { color: #8FE86A; }
[data-theme="dark"] .badge-cancelled,
[data-theme="dark"] .badge-late { color: #FF654A; }
[data-theme="dark"] .table th { background: rgba(var(--ink-rgb), .04); }
[data-theme="dark"] ::placeholder { color: #8B93B8; opacity: 1; }
[data-theme="dark"] .modal-panel { box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
[data-theme="dark"] ::-webkit-scrollbar { inline-size: 10px; block-size: 10px; }
[data-theme="dark"] ::-webkit-scrollbar-track { background: transparent; }
[data-theme="dark"] ::-webkit-scrollbar-thumb { background: #4A5072; border-radius: 6px; }
