/* ==========================================================================
   Prayana Lounge · Kuesioner Agen Travel — IAS Hospitality
   Tanpa build step (tidak perlu npm/Vite). Warna mengikuti logo IASH:
   navy, teal, charcoal — dengan aksen sand yang sangat hemat.
   ========================================================================== */

:root {
  --navy: #0b2540;
  --navy-2: #12365c;
  --navy-3: #1b4672;
  --teal: #0e8c8c;
  --teal-600: #0b7475;
  --teal-50: #e8f4f3;
  --teal-100: #cfe8e6;
  --charcoal: #24292e;
  --ink-2: #4a5157;
  --muted: #737a80;
  --line: #e4e1da;
  --line-2: #efece6;
  --paper: #f7f5f0;
  --card: #ffffff;
  --sand: #b8975a;
  --danger: #b42318;
  --danger-50: #fdf1f0;
  --success: #12795b;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(11, 37, 64, .05);
  --shadow: 0 1px 2px rgba(11, 37, 64, .04), 0 8px 24px -12px rgba(11, 37, 64, .14);
  --font-sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;

  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cg fill='none' stroke='%2366c2bd' stroke-opacity='.13' stroke-width='1'%3E%3Crect x='21' y='21' width='30' height='30'/%3E%3Crect x='21' y='21' width='30' height='30' transform='rotate(45 36 36)'/%3E%3Ccircle cx='36' cy='36' r='6'/%3E%3Cpath d='M0 36h9M63 36h9M36 0v9M36 63v9'/%3E%3C/g%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--charcoal);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--teal-600); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hp-field { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Wordmark ---------- */
.wordmark { display: inline-flex; align-items: center; gap: 12px; color: inherit; }
.wordmark:hover { text-decoration: none; }
.wordmark-mark {
  width: 38px; height: 38px; border-radius: 10px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--teal) 0%, #2bb3ad 100%);
  color: #fff; font-weight: 800; font-size: 13px; letter-spacing: .04em;
}
.wordmark-text { display: flex; flex-direction: column; line-height: 1.15; }
.wordmark-text strong { font-size: 14px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; }
.wordmark-text span { font-size: 11.5px; opacity: .72; letter-spacing: .04em; }
.wordmark img { height: 40px; width: auto; }

/* ==========================================================================
   PUBLIC — form agen travel
   ========================================================================== */
.shell { display: grid; grid-template-columns: minmax(360px, 38%) 1fr; min-height: 100vh; }

.brand {
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 48px clamp(32px, 4vw, 64px);
  color: #fff;
  background:
    radial-gradient(120% 70% at 100% 0%, rgba(14, 140, 140, .38) 0%, rgba(14, 140, 140, 0) 60%),
    radial-gradient(90% 60% at 0% 100%, rgba(27, 70, 114, .9) 0%, rgba(27, 70, 114, 0) 70%),
    var(--pattern),
    var(--navy);
  overflow: hidden;
}
.brand::after { /* garis sand tipis di tepi kanan */
  content: ""; position: absolute; top: 0; right: 0; width: 3px; height: 100%;
  background: linear-gradient(180deg, transparent, var(--sand) 30%, var(--sand) 70%, transparent);
  opacity: .55;
}
.brand-body { max-width: 460px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: #9fd8d3;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--sand); }
.brand h1 {
  font-family: var(--font-serif);
  font-weight: 500; font-size: clamp(32px, 3.3vw, 46px); line-height: 1.12;
  letter-spacing: -.01em; margin: 18px 0 18px;
}
.brand h1 em { font-style: italic; color: #8fd3cc; }
.brand-lead { color: rgba(255, 255, 255, .78); font-size: 15.5px; margin: 0 0 32px; }
.brand-facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.brand-facts li { display: flex; gap: 14px; align-items: flex-start; font-size: 14px; color: rgba(255, 255, 255, .86); }
.brand-facts svg { flex: 0 0 auto; margin-top: 2px; color: #7fcdc6; }
.brand-foot { font-size: 12px; color: rgba(255, 255, 255, .5); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

.form-side { padding: 0 clamp(20px, 5vw, 72px) 64px; }
.form-wrap { max-width: 760px; margin: 0 auto; }

.progress {
  position: sticky; top: 0; z-index: 5;
  padding: 22px 0 16px; margin-bottom: 8px;
  background: linear-gradient(180deg, var(--paper) 78%, rgba(247, 245, 240, 0));
}
.progress-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.progress-row strong { color: var(--charcoal); font-weight: 600; }
.progress-track { height: 4px; border-radius: 99px; background: var(--line); overflow: hidden; }
.progress-bar { height: 100%; width: 0; background: linear-gradient(90deg, var(--teal), #3cb8b1); border-radius: inherit; transition: width .35s ease; }

.intro { margin: 8px 0 24px; }
.intro h2 { font-family: var(--font-serif); font-weight: 500; font-size: 28px; margin: 0 0 6px; letter-spacing: -.01em; color: var(--navy); }
.intro p { margin: 0; color: var(--ink-2); }

.alert {
  border-radius: var(--radius-sm); padding: 14px 16px; margin-bottom: 20px;
  font-size: 14px; display: flex; gap: 12px; align-items: flex-start;
}
.alert-danger { background: var(--danger-50); color: var(--danger); border: 1px solid #f3c9c5; }
.alert-success { background: var(--teal-50); color: var(--teal-600); border: 1px solid var(--teal-100); }

.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  padding: clamp(20px, 3vw, 32px); margin-bottom: 20px;
}
.card-head { display: flex; gap: 16px; align-items: baseline; margin-bottom: 22px; }
.card-num { font-family: var(--font-serif); font-size: 15px; color: var(--teal); font-weight: 600; letter-spacing: .04em; }
.card-head h3 { margin: 0; font-size: 18px; font-weight: 700; color: var(--navy); letter-spacing: -.005em; }
.card-head p { margin: 2px 0 0; font-size: 13.5px; color: var(--muted); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field label .req { color: var(--teal); margin-left: 2px; }
.field label .opt { color: var(--muted); font-weight: 400; }
.input, .textarea, .select {
  width: 100%; font: inherit; color: var(--charcoal);
  background: #fff; border: 1px solid #d9d5cc; border-radius: var(--radius-sm);
  padding: 12px 14px; min-height: 48px;
  transition: border-color .15s, box-shadow .15s;
}
.textarea { min-height: 120px; resize: vertical; line-height: 1.55; }
.input::placeholder, .textarea::placeholder { color: #a7acb0; }
.input:hover, .textarea:hover { border-color: #c4bfb4; }
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(14, 140, 140, .14); }
.is-invalid { border-color: var(--danger) !important; }
.error { font-size: 12.5px; color: var(--danger); }
.help { font-size: 12.5px; color: var(--muted); }
.char-count { font-size: 12px; color: var(--muted); text-align: right; }

/* Pertanyaan pilihan ganda */
.q-block { padding: 22px 0; border-top: 1px solid var(--line-2); }
.q-block:first-of-type, .card-head + .q-block { border-top: 0; padding-top: 0; }
.q-block:last-child { padding-bottom: 0; }
.q-title { display: flex; gap: 12px; margin: 0 0 14px; font-size: 15.5px; font-weight: 600; color: var(--charcoal); line-height: 1.45; }
.q-no {
  flex: 0 0 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 700; color: var(--navy); background: var(--line-2);
  transition: background .2s, color .2s;
}
.q-block.is-answered .q-no { background: var(--teal); color: #fff; }
.q-hint { display: block; font-weight: 400; font-size: 13px; color: var(--muted); margin-top: 2px; }
.options { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; padding-left: 38px; }
.option { position: relative; }
.option input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.option-card {
  position: relative;
  display: flex; align-items: center; gap: 12px; height: 100%;
  padding: 14px 30px 14px 14px; border: 1px solid #dcd8cf; border-radius: 12px; background: #fff;
  cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s, transform .15s;
  font-size: 14.5px; font-weight: 500; color: var(--charcoal); line-height: 1.35;
}
.option-letter {
  flex: 0 0 28px; height: 28px; border-radius: 8px;
  display: grid; place-items: center;
  font-size: 12.5px; font-weight: 700; text-transform: uppercase;
  color: var(--navy); background: var(--paper); border: 1px solid var(--line);
  transition: all .15s;
}
.option-check { position: absolute; top: 8px; right: 8px; width: 15px; height: 15px; color: var(--teal); opacity: 0; transform: scale(.6); transition: all .18s; }
.option input:hover + .option-card { border-color: #9ccfcb; }
.option input:focus-visible + .option-card { box-shadow: 0 0 0 4px rgba(14, 140, 140, .18); border-color: var(--teal); }
.option input:checked + .option-card {
  border-color: var(--teal); background: var(--teal-50);
  box-shadow: inset 0 0 0 1px var(--teal);
}
.option input:checked + .option-card .option-letter { background: var(--teal); border-color: var(--teal); color: #fff; }
.option input:checked + .option-card .option-check { opacity: 1; transform: scale(1); }
.q-block.has-error .option-card { border-color: #e9b4ae; }
.q-block .error { display: block; margin: 8px 0 0 38px; }

.submit-bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 8px; }
.privacy { font-size: 12.5px; color: var(--muted); max-width: 400px; display: flex; gap: 10px; }
.privacy svg { flex: 0 0 auto; margin-top: 2px; color: var(--teal); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: inherit; font-weight: 600; font-size: 14.5px;
  border: 1px solid transparent; border-radius: 12px;
  padding: 0 22px; height: 46px; cursor: pointer; text-decoration: none !important;
  transition: background .15s, box-shadow .15s, transform .1s, color .15s, border-color .15s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--navy); color: #fff; box-shadow: 0 10px 24px -12px rgba(11, 37, 64, .6); }
.btn-primary:hover { background: var(--teal-600); }
.btn-primary:disabled { opacity: .6; cursor: wait; }
.btn-lg { height: 54px; padding: 0 30px; font-size: 15px; }
.btn-ghost { background: #fff; color: var(--charcoal); border-color: var(--line); }
.btn-ghost:hover { border-color: #c9c4b9; background: #fbfaf7; }
.btn-danger { background: #fff; color: var(--danger); border-color: #f0c4bf; }
.btn-danger:hover { background: var(--danger-50); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 13px; border-radius: 10px; }
.btn svg { flex: 0 0 auto; }

/* SweetAlert terima kasih — tema IASH */
.swal2-container.swal2-backdrop-show { background: rgba(11, 37, 64, .55); backdrop-filter: blur(3px); }
.iash-swal.swal2-popup {
  width: min(480px, calc(100vw - 32px)); padding: 36px 32px 28px;
  border-radius: 20px; font-family: var(--font-sans); color: var(--charcoal);
  box-shadow: 0 30px 70px -30px rgba(11, 37, 64, .55);
  border-top: 4px solid var(--teal);
}
.iash-swal .swal2-icon.swal2-success { margin-top: 4px; }
.iash-swal .swal2-icon.swal2-success [class^='swal2-success-line'] { background-color: var(--teal); }
.iash-swal .swal2-icon.swal2-success .swal2-success-ring { border-color: rgba(14, 140, 140, .25); }
.iash-swal-title.swal2-title { font-family: var(--font-serif); font-weight: 500; font-size: 28px; color: var(--navy); padding-top: 8px; }
.iash-swal-text.swal2-html-container { font-size: 15px; line-height: 1.6; color: var(--ink-2); margin-top: 10px; }
.iash-swal-footer.swal2-footer { font-size: 13px; color: var(--muted); border-top-color: var(--line-2); }
.iash-swal .swal2-actions { margin-top: 22px; }
.iash-swal .swal2-actions .btn { min-width: 160px; }
.iash-swal .swal2-actions .btn:focus { outline: none; }
.iash-swal .swal2-actions .btn:focus-visible { box-shadow: 0 0 0 4px rgba(14, 140, 140, .28); }

/* ==========================================================================
   BACKOFFICE
   ========================================================================== */
.admin { display: grid; grid-template-columns: 252px 1fr; min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; gap: 28px;
  padding: 26px 18px; color: #fff;
  background: var(--pattern), var(--navy);
}
.sidebar .wordmark { padding: 0 8px; }
.nav { display: flex; flex-direction: column; gap: 4px; }
.nav-label { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .45); padding: 0 12px; margin: 6px 0 6px; }
.nav a {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 10px;
  color: rgba(255, 255, 255, .78); font-size: 14px; font-weight: 500;
}
.nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; text-decoration: none; }
.nav a.active { background: rgba(14, 140, 140, .28); color: #fff; box-shadow: inset 2px 0 0 #5cc8c0; }
.sidebar-foot { margin-top: auto; padding: 14px 12px 0; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13px; }
.sidebar-foot .who { color: #fff; font-weight: 600; }
.sidebar-foot .mail { color: rgba(255, 255, 255, .55); font-size: 12px; overflow: hidden; text-overflow: ellipsis; }
.sidebar-foot button { margin-top: 12px; background: none; border: 1px solid rgba(255, 255, 255, .2); color: rgba(255, 255, 255, .85); border-radius: 9px; padding: 7px 12px; font: inherit; font-size: 12.5px; cursor: pointer; }
.sidebar-foot button:hover { background: rgba(255, 255, 255, .08); }

.main { padding: 28px clamp(20px, 3vw, 40px) 56px; min-width: 0; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.page-head h1 { font-family: var(--font-serif); font-weight: 500; font-size: 28px; margin: 0; color: var(--navy); letter-spacing: -.01em; }
.page-head p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }

.filters { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.filters .field { gap: 4px; }
.filters .field label { font-size: 12px; font-weight: 500; color: var(--muted); }
.filters .input, .filters .select { min-height: 38px; padding: 7px 12px; font-size: 13.5px; border-radius: 10px; }

.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow-sm); }
.kpi-label { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.kpi-value { font-size: 30px; font-weight: 700; color: var(--navy); letter-spacing: -.02em; line-height: 1.2; margin-top: 6px; font-variant-numeric: tabular-nums; }
.kpi-sub { font-size: 12px; color: var(--muted); }

.panels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-bottom: 20px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow-sm); min-width: 0; }
.panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
.panel-head h2 { margin: 0; font-size: 15px; font-weight: 700; color: var(--navy); line-height: 1.4; }
.panel-head .tag { font-size: 11.5px; font-weight: 600; color: var(--teal-600); background: var(--teal-50); border-radius: 99px; padding: 3px 10px; white-space: nowrap; }
.panel-sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }

.bars { display: grid; gap: 14px; }
.bar-row { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: baseline; }
.bar-label { font-size: 13.5px; color: var(--charcoal); display: flex; gap: 8px; align-items: center; }
.bar-label .code { font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--muted); width: 18px; }
.bar-val { font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.bar-val strong { color: var(--charcoal); }
.bar-track { grid-column: 1 / -1; height: 10px; border-radius: 99px; background: var(--line-2); overflow: hidden; }
.bar-fill { height: 100%; border-radius: inherit; background: #9fcfcb; }
.bar-row.is-top .bar-fill { background: var(--teal); }
.bar-row.is-top .bar-label { font-weight: 600; }

.empty { text-align: center; padding: 36px 16px; color: var(--muted); font-size: 14px; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow-sm); }
table.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th { text-align: left; font-weight: 600; font-size: 12px; letter-spacing: .02em; color: var(--muted); background: #fbfaf7; padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 13px 16px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: #fcfbf8; }
.table .num { text-align: center; font-variant-numeric: tabular-nums; }
.table .muted { color: var(--muted); font-size: 12.5px; }
.cell-strong { font-weight: 600; color: var(--charcoal); }

.heat td.num { font-weight: 600; }
.heat th[scope=row] { background: #fff; color: var(--charcoal); font-size: 13px; font-weight: 600; white-space: normal; }

.chip { display: inline-block; font-size: 12px; padding: 3px 9px; border-radius: 99px; background: var(--paper); border: 1px solid var(--line); color: var(--ink-2); white-space: nowrap; }

.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 20px; }
.dl { display: grid; grid-template-columns: 120px 1fr; gap: 12px 16px; margin: 0; font-size: 14px; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.answer { padding: 14px 0; border-top: 1px solid var(--line-2); }
.answer:first-child { border-top: 0; padding-top: 0; }
.answer-q { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.answer-a { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; }
.quote { margin: 0; padding: 16px 18px; background: var(--paper); border-left: 3px solid var(--teal); border-radius: 0 10px 10px 0; font-size: 14.5px; white-space: pre-line; }

.pagination { display: flex; gap: 6px; justify-content: flex-end; align-items: center; margin-top: 18px; flex-wrap: wrap; font-size: 13px; }
.pagination .info { margin-right: auto; color: var(--muted); }
.pagination a, .pagination span.page {
  min-width: 34px; height: 34px; padding: 0 10px; border-radius: 9px;
  display: inline-grid; place-items: center;
  border: 1px solid var(--line); background: #fff; color: var(--charcoal);
}
.pagination a:hover { border-color: var(--teal); text-decoration: none; }
.pagination .current { background: var(--navy); border-color: var(--navy); color: #fff; }
.pagination .disabled { opacity: .4; }

/* Login */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px;
  background: radial-gradient(90% 60% at 100% 0%, rgba(14, 140, 140, .35), transparent 60%), var(--pattern), var(--navy); }
.auth-card { width: 100%; max-width: 420px; background: #fff; border-radius: 18px; padding: 36px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .5); }
.auth-card .wordmark { color: var(--navy); margin-bottom: 28px; }
.auth-card h1 { font-family: var(--font-serif); font-weight: 500; font-size: 26px; margin: 0 0 4px; color: var(--navy); }
.auth-card > p { margin: 0 0 24px; color: var(--muted); font-size: 14px; }
.auth-card form { display: grid; gap: 16px; }
.check { display: flex; gap: 8px; align-items: center; font-size: 13.5px; color: var(--ink-2); }
.check input { accent-color: var(--teal); width: 16px; height: 16px; }


/* ---------- Alert auto-hilang ---------- */
.alert { transition: opacity .4s ease, transform .4s ease, max-height .4s ease, margin .4s ease, padding .4s ease; max-height: 400px; overflow: hidden; }
.alert.is-leaving { opacity: 0; transform: translateY(-6px); max-height: 0; margin: 0; padding-top: 0; padding-bottom: 0; border-width: 0; }

/* ---------- Komponen master (backoffice) ---------- */
.btn-danger-solid { background: var(--danger); color: #fff; }
.btn-danger-solid:hover { background: #912018; }
.iash-swal .swal2-actions { gap: 10px; }

.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; padding: 3px 10px; border-radius: 99px; white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-on { color: var(--success); background: #e7f5ef; }
.badge-off { color: var(--muted); background: var(--line-2); }

.note { font-size: 12.5px; color: var(--muted); margin: 14px 0 0; }

.icon-btn {
  width: 30px; height: 30px; border-radius: 8px; display: inline-grid; place-items: center;
  border: 1px solid var(--line); background: #fff; color: var(--ink-2); cursor: pointer; padding: 0;
  transition: border-color .15s, color .15s, background .15s;
}
.icon-btn:hover:not(:disabled) { border-color: var(--teal); color: var(--teal-600); }
.icon-btn:disabled { opacity: .35; cursor: not-allowed; }
.icon-danger:hover:not(:disabled) { border-color: #f0c4bf; color: var(--danger); background: var(--danger-50); }

.master-list { display: grid; gap: 12px; }
.master-item {
  display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: start;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; box-shadow: var(--shadow-sm);
}
.master-item.is-off { background: #fbfaf7; }
.master-item.is-off .master-title h2, .master-item.is-off .opt-chips { opacity: .6; }
.master-order { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.master-order form { margin: 0; }
.master-num { font-family: var(--font-serif); font-size: 18px; font-weight: 600; color: var(--teal); line-height: 1.4; }
.master-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.master-title h2 { margin: 0; font-size: 15.5px; font-weight: 700; color: var(--navy); line-height: 1.4; }
.master-hint { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.master-meta { font-size: 12px; color: var(--muted); margin-top: 10px; }
.master-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.master-actions form, .row-actions form { margin: 0; }
.row-actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.table tr.row-off td { color: var(--muted); }

.opt-chips { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.opt-chips li { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; padding: 5px 12px 5px 5px; border: 1px solid var(--line); border-radius: 99px; background: #fff; }
.opt-code {
  flex: 0 0 auto; width: 24px; height: 24px; border-radius: 7px;
  display: inline-grid; place-items: center;
  font-size: 11.5px; font-weight: 700; text-transform: uppercase;
  color: var(--navy); background: var(--paper); border: 1px solid var(--line);
}

.form-stack { display: grid; gap: 20px; max-width: 860px; }
.form-stack .panel { margin: 0; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; }
.step-tag { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-600); margin-bottom: 2px; }
.opt-rows { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.opt-row { display: flex; align-items: center; gap: 10px; }
.opt-row .opt-code { width: 30px; height: 30px; font-size: 12.5px; }
.opt-row .input { flex: 1; min-height: 42px; padding: 9px 12px; }
.opt-tools { display: flex; gap: 4px; }

.switch { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; font-size: 14px; color: var(--ink-2); user-select: none; }
.switch input[type=checkbox] { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-track { position: relative; width: 40px; height: 22px; border-radius: 99px; background: #d4d0c7; transition: background .2s; flex: 0 0 auto; }
.switch-track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .2s; }
.switch input:checked + .switch-track { background: var(--teal); }
.switch input:checked + .switch-track::after { transform: translateX(18px); }
.switch input:focus-visible + .switch-track { box-shadow: 0 0 0 4px rgba(14, 140, 140, .2); }

/* ---------- Pilihan lounge (form publik) ---------- */
.lounge-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.lounge-card { align-items: flex-start; padding: 16px 34px 16px 16px; }
.lounge-card .lounge-ico {
  flex: 0 0 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  background: var(--paper); border: 1px solid var(--line); color: var(--navy); transition: all .15s;
}
.lounge-card .lounge-text { display: flex; flex-direction: column; gap: 2px; }
.lounge-card strong { font-size: 14.5px; font-weight: 600; color: var(--charcoal); }
.lounge-card small { font-size: 12.5px; color: var(--muted); font-weight: 400; line-height: 1.45; }
.option input:checked + .lounge-card .lounge-ico { background: var(--teal); border-color: var(--teal); color: #fff; }
.lounge-block .error { display: block; margin-top: 8px; }
.lounge-block.has-error .option-card { border-color: #e9b4ae; }
.iash-swal .swal2-timer-progress-bar { background: var(--teal); height: 3px; }
.iash-swal .swal2-timer-progress-bar-container { border-radius: 0 0 20px 20px; }

/* ---------- Responsif ---------- */
@media (max-width: 1100px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .panels, .detail-grid { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
  .shell { grid-template-columns: 1fr; }
  .brand { position: relative; height: auto; gap: 28px; padding: 28px 22px 32px; }
  .brand::after { display: none; }
  .brand h1 { font-size: 30px; margin: 14px 0 10px; }
  .brand-lead { margin-bottom: 20px; font-size: 14.5px; }
  .brand-facts { grid-template-columns: repeat(3, auto); gap: 10px 18px; }
  .brand-facts li { font-size: 12.5px; gap: 8px; }
  .brand-facts li span small { display: none; }
  .brand-foot { display: none; }
  .admin { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; flex-direction: row; align-items: center; flex-wrap: wrap; gap: 12px; padding: 14px 16px; }
  .sidebar .wordmark-text span { display: none; }
  .nav { flex-direction: row; flex-wrap: wrap; }
  .nav-label { display: none; }
  .sidebar-foot { margin: 0 0 0 auto; border: 0; padding: 0; display: flex; align-items: center; gap: 10px; }
  .sidebar-foot .who, .sidebar-foot .mail { display: none; }
  .sidebar-foot button { margin: 0; }
}
@media (max-width: 640px) {
  .master-item { grid-template-columns: auto 1fr; }
  .master-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .opt-tools .icon-btn[data-move] { display: none; }
  body { font-size: 14.5px; }
  .grid-2 { grid-template-columns: 1fr; }
  .options { padding-left: 0; grid-template-columns: 1fr; }
  .q-block .error { margin-left: 0; }
  .brand-facts { grid-template-columns: 1fr; }
  .submit-bar .btn { width: 100%; }
  .kpis { gap: 10px; }
  .kpi { padding: 14px; }
  .kpi-value { font-size: 24px; }
  .dl { grid-template-columns: 1fr; gap: 2px; }
  .dl dd { margin-bottom: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
