/* ============================================================================
 * PETA HATI: KENALI DIRIMU DAN KENALI ORANG TERKASIHMU — ANDRIFO MEDIA
 * Palet Editorial Dewasa Soft + Mode Terang & Mode Gelap (Arang Hangat)
 * ============================================================================ */

:root {
  --bg-page: #F2EEE7;
  --bg-shell: #FCF9F4;
  --bg-card: #FFFFFF;
  --bg-soft: #F5F0E7;
  --bg-header: rgba(252, 249, 244, 0.94);
  --bg-overlay: rgba(252, 249, 244, 0.72);

  --ink: #242A2E;
  --ink-muted: #5F676E;
  --border: #E4DDD0;

  /* Accent Utama: Deep Sage Teal */
  --accent: #3D6B63;
  --accent-dark: #2C504A;
  --accent-soft: #EDF3F1;
  --accent-shadow: rgba(61, 107, 99, 0.22);

  /* Highlight CTA: Warm Honey */
  --gold: #B07D3A;
  --gold-dark: #8F632A;
  --gold-soft: #FBF6EC;
  --gold-border: #E8D7BA;

  /* 4 Temperamen (Palet Editorial Dewasa Soft) */
  --k-color: #A85549;
  --k-bg: #F8F1EF;
  --k-border: #E6CFCB;

  --s-color: #B07D3A;
  --s-bg: #FBF6EC;
  --s-border: #E9DABF;

  --m-color: #445E7D;
  --m-bg: #F0F4F8;
  --m-border: #CCD8E6;

  --p-color: #497363;
  --p-bg: #EFF5F2;
  --p-border: #C9DDD4;

  --btn-sec-bg: #2E373D;
  --btn-sec-ink: #FCF9F4;
  --pill-neutral-bg: rgba(36, 42, 46, 0.07);
  --radar-grid: #D5CEC2;
  --radar-axis: #E4DDD0;
  --radar-label: #4C545B;

  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 2px 10px rgba(36, 42, 46, 0.045);
  --shadow-md: 0 10px 28px rgba(36, 42, 46, 0.075);
}

/* Mode Gelap: Arang Hangat (Nyaman Dibaca Malam Hari) */
[data-theme="dark"] {
  --bg-page: #151412;
  --bg-shell: #1E1C19;
  --bg-card: #262320;
  --bg-soft: #2E2A26;
  --bg-header: rgba(30, 28, 25, 0.94);
  --bg-overlay: rgba(30, 28, 25, 0.78);

  --ink: #EDE7DD;
  --ink-muted: #A9A196;
  --border: #3B3630;

  --accent: #5D968C;
  --accent-dark: #7CB4AA;
  --accent-soft: rgba(93, 150, 140, 0.18);
  --accent-shadow: rgba(0, 0, 0, 0.35);

  --gold: #C8944F;
  --gold-dark: #DFB071;
  --gold-soft: rgba(176, 125, 58, 0.16);
  --gold-border: #4D3D27;

  --k-color: #D98A7E;
  --k-bg: rgba(168, 85, 73, 0.17);
  --k-border: rgba(217, 138, 126, 0.32);

  --s-color: #D8A762;
  --s-bg: rgba(176, 125, 58, 0.17);
  --s-border: rgba(216, 167, 98, 0.32);

  --m-color: #88A8CE;
  --m-bg: rgba(68, 94, 125, 0.22);
  --m-border: rgba(136, 168, 206, 0.32);

  --p-color: #7FB29E;
  --p-bg: rgba(73, 115, 99, 0.20);
  --p-border: rgba(127, 178, 158, 0.32);

  --btn-sec-bg: #36322D;
  --btn-sec-ink: #EDE7DD;
  --pill-neutral-bg: rgba(237, 231, 221, 0.10);
  --radar-grid: #4A443C;
  --radar-axis: #3B3630;
  --radar-label: #C9C1B6;

  --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 12px 30px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg-page);
  color: var(--ink);
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.58;
  transition: background-color 0.22s ease, color 0.22s ease;
}

.app-shell {
  max-width: 480px;
  min-height: 100vh;
  margin: 0 auto;
  background: var(--bg-shell);
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.08);
  transition: background-color 0.22s ease;
}

.hidden {
  display: none !important;
}

/* Sticky App Header + Theme Switcher */
.app-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--bg-header);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.top-bar {
  padding: 11px 16px 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.brand-badge {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #3D6B63 0%, #497363 100%);
  color: #FCF9F4;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.4px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

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

.brand-title {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.15;
  color: var(--ink);
}

.brand-sub {
  font-size: 11px;
  color: var(--ink-muted);
  font-weight: 600;
  letter-spacing: 0.2px;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.vip-pill {
  background: var(--p-bg);
  color: var(--p-color);
  border: 1px solid var(--p-border);
  font-size: 11px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 999px;
}

.btn-header-vip {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--ink);
  font-family: inherit;
  font-weight: 700;
  font-size: 12.5px;
  padding: 7px 12px;
  border-radius: 999px;
  cursor: pointer;
}

/* Sakelar Mode Terang / Mode Gelap */
.theme-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 16px 9px;
  border-top: 1px dashed var(--border);
}

.theme-bar-caption {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-muted);
}

.theme-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 10px;
  cursor: pointer;
  font-family: inherit;
  color: var(--ink-muted);
  transition: border-color 0.15s ease, background-color 0.2s ease;
}

.theme-switch:hover {
  border-color: var(--accent);
}

.theme-opt {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-muted);
  transition: color 0.18s ease;
}

.theme-opt.active {
  color: var(--accent-dark);
}

.theme-switch-track {
  width: 34px;
  height: 18px;
  border-radius: 999px;
  background: var(--border);
  position: relative;
  transition: background-color 0.2s ease;
  flex-shrink: 0;
}

.theme-switch-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  position: absolute;
  top: 2px;
  left: 2px;
  transition: transform 0.2s ease, background-color 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

[data-theme="dark"] .theme-switch-track {
  background: var(--accent-soft);
  border: 1px solid var(--accent);
}

[data-theme="dark"] .theme-switch-thumb {
  transform: translateX(15px);
  top: 1px;
}

/* VIP Sticky Sub-Nav */
.vip-nav {
  position: sticky;
  top: 100px;
  z-index: 25;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 6px 8px;
  gap: 4px;
}

.vip-nav-btn {
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-muted);
  padding: 8px 4px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.vip-nav-btn.active {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

/* Main Content & Screens */
.main-content {
  flex: 1;
  padding: 16px;
}

.screen {
  display: none;
  animation: fadeSlide 0.2s ease-out;
}

.screen.active {
  display: block;
}

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

/* Landing Hero */
.hero-card {
  background: linear-gradient(165deg, var(--bg-card) 0%, var(--bg-soft) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 18px;
  box-shadow: var(--shadow-md);
  text-align: center;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-dark);
  background: var(--accent-soft);
  border: 1px solid rgba(61, 107, 99, 0.18);
  padding: 4px 11px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.hero-title {
  margin: 0 0 10px;
  font-family: "Fraunces", Georgia, serif;
  font-size: 24px;
  line-height: 1.24;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--ink);
}

.hero-desc {
  margin: 0 0 16px;
  color: var(--ink-muted);
  font-size: 14.5px;
}

.color-dots-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-bottom: 18px;
}

.chip-color {
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
}

.chip-k { background: var(--k-bg); color: var(--k-color); border-color: var(--k-border); }
.chip-s { background: var(--s-bg); color: var(--s-color); border-color: var(--s-border); }
.chip-m { background: var(--m-bg); color: var(--m-color); border-color: var(--m-border); }
.chip-p { background: var(--p-bg); color: var(--p-color); border-color: var(--p-border); }

.hero-note {
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--ink-muted);
}

.feature-preview-grid {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mini-feat-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
  box-shadow: var(--shadow-sm);
}

.mini-feat-icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  font-size: 18px;
}

.mini-feat-card h3 {
  margin: 0 0 3px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
}

.mini-feat-card p {
  margin: 0;
  font-size: 13px;
  color: var(--ink-muted);
}

.returning-banner {
  margin-top: 14px;
  background: var(--p-bg);
  border: 1px solid var(--p-border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.muted-sm {
  margin: 2px 0 0;
  font-size: 12.5px;
  color: var(--ink-muted);
}

/* Buttons */
.btn-primary,
.btn-secondary,
.btn-outline,
.btn-cta-gold,
.btn-ghost {
  font-family: inherit;
  font-weight: 700;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: transform 0.1s, opacity 0.15s, background 0.15s, border-color 0.15s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 44px;
  padding: 10px 16px;
  font-size: 14.5px;
  border: none;
}

.btn-primary:active,
.btn-secondary:active,
.btn-cta-gold:active {
  transform: scale(0.98);
}

.btn-primary {
  background: #3D6B63;
  color: #FCF9F4;
  box-shadow: 0 6px 16px var(--accent-shadow);
}

.btn-primary:hover {
  background: #325952;
}

.btn-secondary {
  background: var(--btn-sec-bg);
  color: var(--btn-sec-ink);
}

.btn-outline {
  background: var(--bg-card);
  color: var(--ink);
  border: 1px solid var(--border);
}

.btn-cta-gold {
  display: block;
  background: linear-gradient(135deg, #9E6E31 0%, #B07D3A 100%);
  color: #FCF9F4;
  padding: 14px 16px;
  box-shadow: 0 8px 20px rgba(176, 125, 58, 0.22);
  line-height: 1.3;
}

.btn-cta-gold small {
  font-weight: 500;
  font-size: 12px;
  opacity: 0.92;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  padding: 8px 10px;
  min-height: 38px;
}

.btn-lg {
  min-height: 50px;
  font-size: 15.5px;
}

.btn-sm {
  min-height: 36px;
  padding: 6px 12px;
  font-size: 13px;
}

.btn-block {
  width: 100%;
}

.btn-link-center {
  background: transparent;
  border: none;
  color: var(--accent-dark);
  font-family: inherit;
  font-weight: 700;
  font-size: 13.5px;
  margin: 12px auto 0;
  display: block;
  cursor: pointer;
  padding: 6px;
}

.text-muted {
  color: var(--ink-muted);
}

/* Quiz */
.quiz-header {
  margin-bottom: 14px;
}

.quiz-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.quiz-mode-pill {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--accent-dark);
  background: var(--accent-soft);
  padding: 4px 10px;
  border-radius: 999px;
}

.quiz-counter {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-muted);
}

.progress-track {
  height: 8px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #3D6B63, #B07D3A);
  transition: width 0.25s ease;
}

.quiz-round-label {
  margin: 8px 0 0;
  font-size: 12.5px;
  color: var(--ink-muted);
  font-weight: 600;
}

.quiz-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 16px;
  box-shadow: var(--shadow-sm);
}

.quiz-question {
  margin: 0 0 14px;
  font-family: "Fraunces", Georgia, serif;
  font-size: 17.5px;
  line-height: 1.4;
  font-weight: 700;
  color: var(--ink);
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quiz-option-btn {
  width: 100%;
  text-align: left;
  background: var(--bg-soft);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 13px 14px;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.48;
  color: var(--ink);
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, transform 0.08s;
}

.quiz-option-btn:hover {
  border-color: var(--accent);
}

.quiz-option-btn.selected {
  background: var(--accent-soft);
  border-color: var(--accent);
  font-weight: 700;
}

.quiz-footer-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
}

/* Generic Card & Forms */
.card-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 16px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 14px;
}

.gate-card {
  text-align: center;
}

.gate-icon {
  font-size: 30px;
  margin-bottom: 6px;
}

.section-title {
  margin: 0 0 6px;
  font-family: "Fraunces", Georgia, serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
}

.section-sub {
  margin: 0 0 14px;
  font-size: 13.5px;
  color: var(--ink-muted);
}

.card-subtitle {
  margin: 0 0 12px;
  font-size: 15.5px;
  font-weight: 800;
  color: var(--ink);
}

.stack-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-group label,
.clue-item label {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
}

input[type="text"],
select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
}

input[type="text"]::placeholder {
  color: var(--ink-muted);
  opacity: 0.75;
}

input[type="text"]:focus,
select:focus {
  outline: none;
  border-color: var(--accent);
}

.field-hint {
  font-size: 11.5px;
  color: var(--ink-muted);
}

.error-text {
  margin: 4px 0 0;
  font-size: 12.5px;
  color: var(--k-color);
  font-weight: 600;
}

/* Character Share Card (PNG Export Target) */
.character-share-card {
  border-radius: var(--radius-lg);
  padding: 20px 16px;
  border: 1.5px solid var(--border);
  background: var(--bg-card);
  box-shadow: var(--shadow-md);
  margin-bottom: 14px;
}

.character-share-card.theme-K {
  border-color: var(--k-border);
  background: linear-gradient(175deg, var(--k-bg) 0%, var(--bg-card) 48%);
}
.character-share-card.theme-S {
  border-color: var(--s-border);
  background: linear-gradient(175deg, var(--s-bg) 0%, var(--bg-card) 48%);
}
.character-share-card.theme-M {
  border-color: var(--m-border);
  background: linear-gradient(175deg, var(--m-bg) 0%, var(--bg-card) 48%);
}
.character-share-card.theme-P {
  border-color: var(--p-border);
  background: linear-gradient(175deg, var(--p-bg) 0%, var(--bg-card) 48%);
}

.share-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.share-card-label {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.7px;
  color: var(--ink-muted);
}

.share-user-pill {
  font-size: 11.5px;
  font-weight: 700;
  background: var(--pill-neutral-bg);
  color: var(--ink);
  padding: 3px 10px;
  border-radius: 999px;
}

.share-type-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.share-type-emoji {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  font-size: 26px;
}

.share-type-title {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.22;
  color: var(--ink);
}

.share-type-tagline {
  margin: 3px 0 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-muted);
}

.share-section h4,
.share-blindspot-box h4 {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--ink);
}

.share-bullet-list {
  margin: 0 0 12px;
  padding-left: 18px;
  font-size: 13.5px;
  color: var(--ink);
}

.share-bullet-list li {
  margin-bottom: 5px;
}

.share-blindspot-box {
  background: var(--k-bg);
  border: 1px solid var(--k-border);
  border-radius: var(--radius-md);
  padding: 12px 13px;
  margin-bottom: 14px;
}

.share-blindspot-box h4 {
  color: var(--k-color);
}

.share-blindspot-box p {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink);
}

.share-card-footer {
  border-top: 1px dashed var(--border);
  padding-top: 10px;
  display: flex;
  justify-content: space-between;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--ink-muted);
}

.action-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.action-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

/* Blurred Preview Upsell */
.locked-upsell-wrap {
  background: var(--bg-card);
  border: 1.5px solid var(--gold-border);
  border-radius: var(--radius-lg);
  padding: 18px 16px;
  box-shadow: var(--shadow-md);
}

.upsell-header {
  text-align: center;
  margin-bottom: 12px;
}

.upsell-badge {
  display: inline-block;
  background: var(--gold-soft);
  color: var(--gold-dark);
  border: 1px solid var(--gold-border);
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 6px;
}

.upsell-header h3 {
  margin: 0 0 4px;
  font-family: "Fraunces", Georgia, serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}

.upsell-header p {
  margin: 0;
  font-size: 13px;
  color: var(--ink-muted);
}

.blurred-preview-box {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 14px;
  overflow: hidden;
  background: var(--bg-soft);
}

.blur-dummy-content {
  filter: blur(5px);
  user-select: none;
  opacity: 0.7;
}

.blur-bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 700;
}

.blur-bar {
  height: 10px;
  border-radius: 999px;
  background: var(--k-color);
}

.w70 { width: 70%; }
.w55 { width: 55%; background: var(--m-color); }
.w30 { width: 30%; background: var(--s-color); }

.blur-card-lines p {
  margin: 8px 0 0;
  font-size: 12.5px;
}

.blur-lock-overlay {
  position: absolute;
  inset: 0;
  background: var(--bg-overlay);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.lock-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: grid;
  place-items: center;
  font-size: 20px;
  margin-bottom: 6px;
}

.blur-lock-overlay p {
  margin: 0;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--ink);
}

.upsell-imagine-box {
  background: var(--accent-soft);
  border: 1px solid var(--border);
  border-left: 3.5px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 13px 14px;
  margin-bottom: 14px;
}

.upsell-imagine-box h4 {
  margin: 0 0 8px;
  font-family: "Fraunces", Georgia, serif;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--accent-dark);
}

.upsell-imagine-box ul {
  margin: 0;
  padding-left: 17px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 13px;
  line-height: 1.48;
  color: var(--ink);
}

.upsell-includes-label {
  font-size: 14.5px;
  font-weight: 800;
  text-align: center;
  color: var(--ink);
  margin: 4px 0 11px;
  line-height: 1.35;
}

.upsell-checklist {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: var(--ink);
}

/* VIP Profile Radar & Percentages */
.vip-tag-sm {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 800;
  background: var(--p-bg);
  color: var(--p-color);
  border: 1px solid var(--p-border);
  padding: 3px 9px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.radar-layout {
  display: grid;
  grid-template-columns: 145px 1fr;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.radar-svg-wrap svg {
  width: 100%;
  height: auto;
  display: block;
}

.pct-bars-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.pct-row-head {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  font-weight: 700;
  margin-bottom: 2px;
  color: var(--ink);
}

.pct-track {
  height: 7px;
  background: var(--pill-neutral-bg);
  border-radius: 999px;
  overflow: hidden;
}

.pct-fill {
  height: 100%;
  border-radius: 999px;
}

.pct-fill.K { background: var(--k-color); }
.pct-fill.S { background: var(--s-color); }
.pct-fill.M { background: var(--m-color); }
.pct-fill.P { background: var(--p-color); }

.vip-combo-desc {
  margin: 0 0 12px;
  font-size: 13.5px;
  color: var(--ink);
  background: var(--bg-soft);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

/* Radar Baca Orang Lain */
.mode-toggle-pills {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.toggle-pill {
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  padding: 9px 8px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--bg-soft);
  color: var(--ink-muted);
  cursor: pointer;
}

.toggle-pill.active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-dark);
}

.clues-box {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.clue-preview-pill {
  background: var(--bg-card);
  border: 1px dashed var(--accent);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  font-size: 13px;
  text-align: center;
  color: var(--ink);
}

.profiles-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.profile-item-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  box-shadow: var(--shadow-sm);
}

.profile-item-info h4 {
  margin: 0 0 2px;
  font-size: 14.5px;
  font-weight: 800;
  color: var(--ink);
}

.profile-item-meta {
  font-size: 12px;
  color: var(--ink-muted);
  font-weight: 600;
}

.profile-item-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-icon-del {
  background: var(--k-bg);
  color: var(--k-color);
  border: 1px solid var(--k-border);
  border-radius: 8px;
  width: 34px;
  height: 36px;
  cursor: pointer;
  font-weight: 800;
}

/* Decoder 48 Matriks */
.decoder-top-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
}

.lens-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 12px;
}

.lens-tabs.lens-tabs-4 {
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 460px) {
  .lens-tabs.lens-tabs-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.lens-btn {
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  padding: 10px 6px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--bg-soft);
  color: var(--ink-muted);
  cursor: pointer;
}

.lens-btn.active {
  background: #3D6B63;
  border-color: #3D6B63;
  color: #FCF9F4;
}

.matrix-picker-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 8px;
  align-items: end;
}

.picker-col label {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-muted);
  margin-bottom: 4px;
}

.picker-x {
  font-weight: 800;
  color: var(--ink-muted);
  padding-bottom: 11px;
}

.quick-profiles-strip {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
}

.quick-strip-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-muted);
  margin-bottom: 6px;
}

.quick-strip-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.quick-chip-btn {
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--ink);
  cursor: pointer;
}

.quick-chip-btn:hover {
  border-color: var(--accent);
}

/* Matrix Result */
.matrix-hero-summary {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
}

.matrix-combo-tag {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 800;
  color: var(--accent-dark);
  background: var(--accent-soft);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.matrix-julukan {
  margin: 0 0 8px;
  font-family: "Fraunces", Georgia, serif;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
}

.matrix-ringkasan {
  margin: 0;
  font-size: 14px;
  color: var(--ink);
}

.warning-10s-card {
  background: var(--k-bg);
  border: 1.5px solid var(--k-border);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 14px;
}

.warning-10s-head {
  font-size: 13px;
  font-weight: 800;
  color: var(--k-color);
  margin-bottom: 8px;
}

.warning-10s-list {
  margin: 0;
  padding-left: 18px;
  font-size: 13.5px;
  color: var(--ink);
}

.warning-10s-list li {
  margin-bottom: 6px;
}

/* 6 Situation Tabs */
.sit-tabs-prompt {
  font-size: 12.5px;
  color: var(--accent-dark);
  background: var(--accent-soft);
  border: 1px dashed var(--accent);
  border-radius: var(--radius-sm);
  padding: 8px 11px;
  margin-bottom: 10px;
  text-align: center;
}

.situation-tabs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.sit-tab-btn {
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  padding: 11px 10px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  border-bottom: 2.5px solid var(--border);
  background: var(--bg-soft);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  line-height: 1.25;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.08s ease, border-color 0.15s ease, background 0.15s ease;
}

.sit-tab-btn:hover {
  border-color: var(--accent);
  background: var(--bg-card);
}

.sit-tab-btn:active {
  transform: translateY(1px);
}

.sit-tab-arrow {
  font-size: 13px;
  opacity: 0.55;
  flex-shrink: 0;
}

.sit-tab-btn.active {
  background: #3D6B63;
  border-color: #2C504A;
  color: #FCF9F4;
  box-shadow: 0 4px 12px var(--accent-shadow);
}

.sit-tab-btn.active .sit-tab-arrow {
  opacity: 1;
}

/* Penunjuk Halaman E-book PDF (Profilku & 64 Panduan) */
.pdf-page-guide-box {
  margin: 14px 0;
  padding: 13px 14px;
  background: var(--gold-soft);
  border: 1px solid var(--gold-border);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-md);
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink);
}

.pdf-page-guide-head {
  font-weight: 800;
  color: var(--gold-dark);
  margin-bottom: 5px;
  font-size: 13px;
}

.pdf-page-guide-box ul {
  margin: 0 0 8px;
  padding-left: 18px;
}

.pdf-page-guide-box li {
  margin-bottom: 4px;
}

.pdf-page-guide-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--accent-dark);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 12px;
  cursor: pointer;
}

.pdf-page-guide-link:hover {
  border-color: var(--accent);
}

.situation-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

.tab-block {
  margin-bottom: 14px;
}

.tab-block:last-child {
  margin-bottom: 0;
}

.tab-block-title {
  margin: 0 0 6px;
  font-size: 12.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.35px;
  color: var(--accent-dark);
}

.tab-block-title.good { color: var(--p-color); }
.tab-block-title.bad { color: var(--k-color); }

.tab-list {
  margin: 0;
  padding-left: 18px;
  font-size: 13.5px;
  color: var(--ink);
}

.tab-list li {
  margin-bottom: 6px;
}

.quote-box {
  background: var(--bg-soft);
  border-left: 4px solid var(--accent);
  padding: 11px 12px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 13.5px;
  font-style: italic;
  color: var(--ink);
}

/* Bridge Card & Rich PDF List */
.ebook-bridge-card {
  margin-top: 16px;
  background: var(--accent-soft);
  border: 1.5px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

.bridge-eyebrow {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.7px;
  color: var(--accent-dark);
  margin-bottom: 4px;
}

.ebook-bridge-card h3 {
  margin: 0 0 6px;
  font-family: "Fraunces", Georgia, serif;
  font-size: 17px;
  line-height: 1.28;
  color: var(--ink);
}

.ebook-bridge-card p {
  margin: 0 0 12px;
  font-size: 13.5px;
  color: var(--ink-muted);
}

.pdf-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pdf-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 15px;
  background: var(--bg-soft);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pdf-card-top {
  display: flex;
  align-items: flex-start;
  gap: 13px;
}

.pdf-mini-cover {
  width: 74px;
  height: 102px;
  flex-shrink: 0;
  border-radius: 8px;
  padding: 7px 6px;
  background: linear-gradient(170deg, #FCF9F4 0%, #EFE8DC 100%);
  border: 1px solid #DFD7C8;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  color: #242A2E;
}

.pdf-mini-cover::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: #3D6B63;
}

.pdf-mini-cover.cov-utama::before { background: #3D6B63; }
.pdf-mini-cover.cov-anak::before { background: #B07D3A; }
.pdf-mini-cover.cov-mertua::before { background: #445E7D; }
.pdf-mini-cover.cov-qs::before { background: #497363; }

.cov-badge {
  margin-top: 3px;
  font-size: 7.5px;
  font-weight: 800;
  letter-spacing: 0.4px;
  color: #3D6B63;
}

.cov-ph {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  background: #3D6B63;
  color: #FCF9F4;
  font-family: "Fraunces", Georgia, serif;
  font-size: 10px;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.cov-title {
  font-family: "Fraunces", Georgia, serif;
  font-size: 9.5px;
  line-height: 1.15;
  font-weight: 700;
  color: #1E2427;
}

.cov-pages {
  font-size: 8px;
  font-weight: 700;
  color: #5F676E;
}

.pdf-card-head {
  flex: 1;
}

.pdf-kicker {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--accent-dark);
  background: var(--accent-soft);
  padding: 2px 8px;
  border-radius: 999px;
  margin-bottom: 5px;
}

.pdf-card-head h4 {
  margin: 0 0 4px;
  font-family: "Fraunces", Georgia, serif;
  font-size: 15.5px;
  line-height: 1.25;
  font-weight: 700;
  color: var(--ink);
}

.pdf-lead {
  margin: 0;
  font-size: 12.5px;
  color: var(--ink-muted);
  line-height: 1.45;
}

.pdf-highlights {
  margin: 0;
  padding: 10px 12px 10px 26px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 12.5px;
  color: var(--ink);
  line-height: 1.48;
}

.pdf-highlights li {
  margin-bottom: 5px;
}

.pdf-highlights li:last-child {
  margin-bottom: 0;
}

/* Footer */
.app-footer {
  border-top: 1px solid var(--border);
  padding: 16px;
  text-align: center;
  background: var(--bg-soft);
}

.disclaimer-text {
  margin: 0 0 6px;
  font-size: 11.5px;
  color: var(--ink-muted);
  line-height: 1.45;
}

.footer-brand {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink);
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 14, 12, 0.62);
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 16px;
}

.modal-card {
  width: 100%;
  max-width: 400px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 18px;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--ink);
  font-size: 20px;
  cursor: pointer;
}

.modal-card h3 {
  margin: 0 0 6px;
  font-family: "Fraunces", Georgia, serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}

.modal-sub {
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--ink-muted);
}

/* Toast */
.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--btn-sec-bg);
  color: var(--btn-sec-ink);
  border: 1px solid var(--border);
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  z-index: 80;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
  max-width: 90%;
  text-align: center;
}

/* Consent Checkbox & PDF Security Notice */
input[type="tel"],
input[type="email"] {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
}

input[type="tel"]:focus,
input[type="email"]:focus {
  outline: none;
  border-color: var(--accent);
}

.consent-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 12px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  line-height: 1.48;
  color: var(--ink-muted);
  cursor: pointer;
}

.consent-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--accent);
  flex-shrink: 0;
  cursor: pointer;
}

.pdf-security-notice {
  background: var(--gold-soft);
  border: 1px solid var(--gold-border);
  border-left: 3.5px solid var(--gold);
  border-radius: var(--radius-md);
  padding: 11px 13px;
  margin-bottom: 14px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink);
}

.pdf-btn.disabled-link {
  opacity: 0.55;
  pointer-events: none;
}

/* ============================================================================
 * RESPONSIVE DESKTOP & LAPTOP (ADAPTIF: LEGA DI PC, RAPI DI HP)
 * ============================================================================ */
@media (min-width: 768px) {
  .app-shell {
    max-width: 1040px;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
  }

  .app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
  }

  .top-bar {
    flex: 1;
    padding: 14px 0;
  }

  .theme-bar {
    border-top: none;
    background: transparent;
    padding: 0 0 0 18px;
    margin-left: 12px;
    border-left: 1px solid var(--border);
    gap: 10px;
  }

  .vip-nav {
    top: 65px;
    padding: 8px 28px;
    gap: 10px;
  }

  .vip-nav-btn {
    font-size: 13.5px;
    padding: 10px 14px;
  }

  .main-content {
    padding: 28px 32px 36px;
  }

  /* Hero Desktop */
  .hero-card {
    padding: 38px 42px;
  }

  .hero-title {
    font-size: 32px;
    max-width: 680px;
    margin: 0 auto 12px;
  }

  .hero-desc {
    font-size: 15.5px;
    max-width: 620px;
    margin: 0 auto 20px;
  }

  .hero-cta-btn {
    max-width: 420px;
    margin: 0 auto;
    display: flex;
  }

  .feature-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 22px;
  }

  .mini-feat-card {
    flex-direction: column;
    padding: 18px;
    height: 100%;
  }

  /* Quiz & Lead Gate Centered Comfortable Reading Width */
  #screen-quiz,
  #screen-lead-gate {
    max-width: 660px;
    margin: 0 auto;
  }

  .quiz-card {
    padding: 26px 28px;
  }

  .quiz-question {
    font-size: 19px;
  }

  .quiz-option-btn {
    padding: 15px 18px;
    font-size: 14.5px;
  }

  /* 2-Column Split for Free Result & Radar Orang Dekat */
  .desktop-split-2 {
    display: grid;
    grid-template-columns: 1.04fr 0.96fr;
    gap: 22px;
    align-items: start;
  }

  /* VIP Home Centered Wide */
  #vipEmptyQuizBox,
  #vipProfileResultBox {
    max-width: 780px;
    margin: 0 auto;
  }

  .radar-layout {
    grid-template-columns: 200px 1fr;
    gap: 24px;
  }

  /* 64 Panduan Decoder Wide */
  .decoder-top-box {
    padding: 22px 24px;
  }

  .situation-tabs-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .sit-tab-btn {
    text-align: center;
    padding: 11px 10px;
    font-size: 13px;
  }

  .situation-panel {
    padding: 22px 24px;
  }

  /* Pustaka PDF 2-Column Grid */
  .pdf-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .pdf-card {
    justify-content: space-between;
    height: 100%;
  }

  .app-footer {
    padding: 20px 32px;
  }
}

@media (max-width: 380px) {
  .radar-layout {
    grid-template-columns: 1fr;
  }
  .radar-svg-wrap {
    max-width: 160px;
    margin: 0 auto;
  }
  .form-row-2 {
    grid-template-columns: 1fr;
  }
  .theme-bar-caption {
    display: none;
  }
  .theme-bar {
    justify-content: center;
  }
}
