@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@600;700;800&display=swap');

:root {
  --bg: oklch(0.982 0 89.9);
  --surface: oklch(1 0 89.9);
  --fg: oklch(0.201 0.043 159);
  --muted: oklch(0.516 0.017 164.2);
  --border: oklch(0.914 0.011 158.8);
  --accent: oklch(0.536 0.152 147.7);
  --brand-deep: oklch(0.362 0.093 152.3);
  --brand-dark: oklch(0.255 0.069 154);
  --brand-soft: oklch(0.952 0.035 151);
  --brand-soft-2: oklch(0.91 0.07 150);
  --warning: oklch(0.816 0.167 79.6);
  --warning-soft: oklch(0.958 0.055 83);
  --danger: oklch(0.539 0.152 27.3);
  --danger-soft: oklch(0.958 0.035 28);
  --info: oklch(0.62 0.13 236);
  --shadow: 0 8px 24px oklch(0.2 0.03 155 / .07);
  --shadow-sm: 0 3px 12px oklch(0.2 0.03 155 / .06);
  --display: "Plus Jakarta Sans", "Noto Sans", sans-serif;
  --body: "DM Sans", "Noto Sans", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--fg); font-family: var(--body); }
body { min-width: 320px; }
button, input, select { font: inherit; }
button, a, input, [role="button"] { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; }
p { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }

.app-shell { width: 100%; min-height: 100dvh; background: var(--surface); position: relative; overflow-x: hidden; }
.status-bar { height: 32px; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; font-size: 12px; font-weight: 700; background: var(--surface); position: sticky; top: 0; z-index: 20; }
.status-icons { display: flex; align-items: center; gap: 6px; }
.status-icons svg { width: 14px; height: 14px; }
.camera-hole { position: absolute; top: 9px; left: 50%; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--fg); z-index: 25; }
.topbar { height: 58px; padding: 0 18px; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 32px; background: color-mix(in oklch, var(--surface) 93%, transparent); backdrop-filter: blur(16px); z-index: 18; border-bottom: 1px solid color-mix(in oklch, var(--border) 55%, transparent); }
.topbar.simple { justify-content: flex-start; gap: 10px; }
.topbar-title { font: 700 17px/1.2 var(--display); letter-spacing: -.02em; }
.topbar-actions { display: flex; align-items: center; gap: 6px; }
.dola-logo { width: 86px; height: 26px; display: block; object-fit: contain; object-position: left center; flex: 0 0 auto; }
.screen { min-height: calc(100dvh - 90px); padding: 18px 18px 104px; }
.screen.centered { display: flex; flex-direction: column; justify-content: center; min-height: calc(100dvh - 32px); padding-top: 40px; }
.screen.without-nav { padding-bottom: 28px; }
.screen-title { margin: 0; font: 800 clamp(25px, 7vw, 32px)/1.12 var(--display); letter-spacing: -.04em; }
.screen-subtitle { margin: 10px 0 0; color: var(--muted); font-size: 15px; line-height: 1.5; max-width: 34ch; }
.eyebrow { margin: 0 0 7px; color: var(--accent); text-transform: uppercase; letter-spacing: .12em; font-size: 11px; font-weight: 800; }
.section-label { margin: 22px 2px 10px; display: flex; justify-content: space-between; align-items: center; color: var(--fg); font-size: 13px; font-weight: 700; }
.section-label a { color: var(--accent); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.muted { color: var(--muted); }
.small { font-size: 12px; line-height: 1.45; }
.strong { font-weight: 700; }

.icon-button { width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; display: grid; place-items: center; cursor: pointer; }
.icon-button:hover { background: var(--brand-soft); color: var(--brand-deep); }
.icon-button svg, .line-icon svg { width: 22px; height: 22px; }
.icon-button:focus-visible, .btn:focus-visible, .option-card:focus-visible, .nav-item:focus-visible, .list-row:focus-visible, input:focus-visible { outline: 3px solid color-mix(in oklch, var(--accent) 45%, white); outline-offset: 2px; }

.hero { position: relative; overflow: hidden; min-height: 226px; padding: 20px; border-radius: 20px; color: white; background: linear-gradient(145deg, var(--brand-dark), var(--brand-deep)); box-shadow: var(--shadow); }
.hero::after { content: ""; position: absolute; width: 200px; height: 200px; right: -72px; top: -64px; border-radius: 50%; border: 24px solid color-mix(in oklch, white 7%, transparent); box-shadow: 0 0 0 24px color-mix(in oklch, white 3%, transparent); }
.hero > * { position: relative; z-index: 1; }
.hero-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hero-state { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; }
.hero-state .signal { width: 8px; height: 8px; border-radius: 50%; background: oklch(0.82 0.19 146); box-shadow: 0 0 0 4px oklch(0.82 0.19 146 / .14); }
.hero-time { margin-top: 18px; font: 800 clamp(34px, 9vw, 44px)/1 var(--display); letter-spacing: -.055em; }
.hero-time-label { margin-top: 5px; opacity: .75; font-size: 12px; }
.hero-meta { margin-top: 18px; display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: end; }
.hero-meta-label { opacity: .7; font-size: 11px; }
.hero-meta-value { margin-top: 3px; font-size: 13px; font-weight: 700; }
.hero .btn { box-shadow: none; }
.status-chip { display: inline-flex; align-items: center; gap: 5px; min-height: 28px; padding: 5px 9px; border-radius: 999px; font-size: 10px; font-weight: 800; background: color-mix(in oklch, white 14%, transparent); color: white; }
.status-chip.light { background: var(--brand-soft); color: var(--brand-deep); }
.status-chip.warning { background: var(--warning-soft); color: oklch(0.48 0.12 70); }
.status-chip.danger { background: var(--danger-soft); color: var(--danger); }
.status-chip.neutral { background: oklch(0.945 0.008 155); color: var(--muted); }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 16px; box-shadow: var(--shadow-sm); }
.card + .card { margin-top: 10px; }
.card.soft { background: var(--brand-soft); border-color: color-mix(in oklch, var(--accent) 16%, var(--border)); box-shadow: none; }
.card.warning { background: var(--warning-soft); border-color: color-mix(in oklch, var(--warning) 28%, var(--border)); box-shadow: none; }
.card.danger { background: var(--danger-soft); border-color: color-mix(in oklch, var(--danger) 20%, var(--border)); box-shadow: none; }
.card-title { margin: 0; font: 700 16px/1.35 var(--display); letter-spacing: -.02em; }
.card-copy { margin: 7px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.card-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.card-leading { display: flex; align-items: center; gap: 12px; min-width: 0; }
.icon-tile { width: 44px; height: 44px; flex: 0 0 auto; border-radius: 14px; display: grid; place-items: center; background: var(--brand-soft); color: var(--accent); }
.icon-tile svg { width: 22px; height: 22px; }
.icon-tile.warning { background: var(--warning-soft); color: oklch(0.57 0.14 75); }
.icon-tile.danger { background: var(--danger-soft); color: var(--danger); }

.shortcut-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.shortcut { min-height: 90px; padding: 12px 8px; border: 1px solid var(--border); background: var(--surface); border-radius: 16px; text-decoration: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; color: var(--fg); font-size: 11px; font-weight: 700; text-align: center; box-shadow: var(--shadow-sm); cursor: pointer; }
.shortcut:hover { border-color: color-mix(in oklch, var(--accent) 44%, var(--border)); background: var(--brand-soft); }
.shortcut svg { width: 23px; height: 23px; color: var(--accent); }

.list { border: 1px solid var(--border); background: var(--surface); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-sm); }
.list-row { min-height: 62px; width: 100%; padding: 10px 14px; display: flex; align-items: center; gap: 12px; border: 0; border-bottom: 1px solid var(--border); background: var(--surface); text-align: left; cursor: pointer; text-decoration: none; }
.list-row:last-child { border-bottom: 0; }
.list-row:hover { background: var(--brand-soft); color: var(--fg); }
.list-row-text { min-width: 0; flex: 1; }
.list-row-title { font-size: 14px; font-weight: 700; }
.list-row-sub { margin-top: 3px; color: var(--muted); font-size: 11px; white-space: normal; }
.list-row-end { margin-left: auto; color: var(--muted); display: flex; align-items: center; gap: 8px; font-size: 12px; }
.list-row-end svg { width: 16px; height: 16px; }

.field { margin-top: 18px; }
.field-label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 700; }
.input-wrap { min-height: 54px; display: flex; align-items: center; gap: 9px; padding: 0 14px; border: 1.5px solid var(--border); border-radius: 14px; background: var(--surface); }
.input-wrap:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in oklch, var(--accent) 14%, transparent); }
.input-wrap input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--fg); font-size: 16px; }
.input-prefix { padding-right: 10px; border-right: 1px solid var(--border); font-weight: 700; }
.helper { margin-top: 8px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.check-row { margin-top: 18px; display: flex; gap: 11px; align-items: flex-start; font-size: 13px; line-height: 1.5; cursor: pointer; }
.check-row input { width: 20px; height: 20px; accent-color: var(--accent); flex: 0 0 auto; }
.otp { display: grid; grid-template-columns: repeat(6, 1fr); gap: 7px; margin-top: 24px; }
.otp input { width: 100%; min-width: 0; height: 52px; border: 1.5px solid var(--border); border-radius: 12px; text-align: center; font: 700 20px/1 var(--display); color: var(--fg); background: var(--surface); }

.btn { min-height: 50px; width: 100%; padding: 0 18px; border-radius: 14px; border: 1px solid transparent; display: inline-flex; justify-content: center; align-items: center; gap: 9px; text-decoration: none; font-weight: 800; font-size: 14px; cursor: pointer; }
.btn.primary { background: var(--accent); color: white; box-shadow: 0 8px 18px oklch(0.4 0.14 148 / .19); }
.btn.primary:hover { background: oklch(0.465 0.142 147.7); color: white; }
.btn.secondary { background: var(--surface); border-color: var(--border); color: var(--fg); }
.btn.secondary:hover { background: var(--brand-soft); border-color: color-mix(in oklch, var(--accent) 25%, var(--border)); color: var(--fg); }
.btn.ghost { background: transparent; color: var(--accent); }
.btn.ghost:hover { background: var(--brand-soft); color: var(--brand-deep); }
.btn.danger { background: var(--danger); color: white; }
.btn.danger:hover { background: oklch(0.47 0.15 27.3); color: white; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.button-stack { display: grid; gap: 9px; margin-top: 24px; }
.sticky-action { position: sticky; bottom: 0; margin: 24px -18px -28px; padding: 12px 18px 18px; background: linear-gradient(to top, var(--surface) 75%, transparent); z-index: 8; }
.text-link { min-height: 44px; display: inline-flex; align-items: center; color: var(--accent); font-size: 13px; font-weight: 700; text-decoration: none; cursor: pointer; }

.option-grid { display: grid; gap: 10px; margin-top: 20px; }
.option-card { width: 100%; min-height: 76px; padding: 14px; border: 1.5px solid var(--border); border-radius: 17px; background: var(--surface); display: flex; align-items: center; gap: 12px; text-align: left; cursor: pointer; }
.option-card:hover { border-color: color-mix(in oklch, var(--accent) 50%, var(--border)); background: var(--brand-soft); color: var(--fg); }
.option-card.selected { border-color: var(--accent); background: var(--brand-soft); box-shadow: 0 0 0 2px color-mix(in oklch, var(--accent) 14%, transparent); }
.option-copy { flex: 1; min-width: 0; }
.option-title { font: 700 15px/1.25 var(--display); }
.option-sub { margin-top: 4px; color: var(--muted); font-size: 12px; }
.radio-dot { width: 20px; height: 20px; border: 2px solid var(--border); border-radius: 50%; flex: 0 0 auto; display: grid; place-items: center; }
.selected .radio-dot { border-color: var(--accent); }
.selected .radio-dot::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }

.plan-card { position: relative; overflow: hidden; }
.plan-card.selected { border-color: var(--accent); background: var(--brand-soft); }
.plan-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.plan-name { font: 800 20px/1.15 var(--display); letter-spacing: -.03em; }
.plan-duration { margin-top: 5px; color: var(--muted); font-size: 12px; }
.plan-price { text-align: right; font: 800 20px/1 var(--display); color: var(--brand-deep); }
.plan-price span { display: block; margin-top: 5px; font: 500 10px/1 var(--body); color: var(--muted); }

.detail-list { margin-top: 18px; padding: 4px 16px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-sm); }
.detail-row { min-height: 52px; padding: 10px 0; border-bottom: 1px solid var(--border); display: grid; grid-template-columns: minmax(108px, .8fr) 1.2fr; gap: 14px; align-items: center; font-size: 13px; }
.detail-row:last-child { border-bottom: 0; }
.detail-label { color: var(--muted); }
.detail-value { text-align: right; font-weight: 700; word-break: break-word; }

.payment-item { display: block; color: inherit; text-decoration: none; }
.payment-top { display: flex; justify-content: space-between; gap: 12px; }
.payment-plan { font: 700 15px/1.3 var(--display); }
.payment-amount { font-weight: 800; }
.payment-meta { margin-top: 8px; display: flex; justify-content: space-between; gap: 12px; align-items: center; color: var(--muted); font-size: 11px; }

.state-center { text-align: center; padding-top: 54px; }
.state-icon { width: 82px; height: 82px; margin: 0 auto 22px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--accent); }
.state-icon svg { width: 38px; height: 38px; }
.state-icon.success { background: var(--brand-soft); color: var(--accent); }
.state-icon.warning { background: var(--warning-soft); color: oklch(0.57 0.14 75); }
.state-icon.danger { background: var(--danger-soft); color: var(--danger); }
.spinner { width: 38px; height: 38px; border: 4px solid color-mix(in oklch, var(--accent) 18%, transparent); border-top-color: var(--accent); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.pulse { animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(.93); opacity: .7; } }

.bottom-nav { position: fixed; left: 0; right: 0; bottom: 0; height: 76px; padding: 7px max(18px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(3, 1fr); background: color-mix(in oklch, var(--surface) 95%, transparent); backdrop-filter: blur(18px); border-top: 1px solid var(--border); z-index: 30; }
.nav-item { min-height: 58px; border: 0; border-radius: 14px; background: transparent; color: var(--muted); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-decoration: none; font-size: 10px; font-weight: 700; cursor: pointer; }
.nav-item:hover { background: var(--brand-soft); color: var(--fg); }
.nav-item.active { color: var(--accent); }
.nav-item svg { width: 21px; height: 21px; }

.sheet-page { min-height: 100dvh; background: oklch(0.2 0.02 155 / .38); display: flex; align-items: flex-end; }
.bottom-sheet { width: 100%; padding: 10px 20px 26px; background: var(--surface); border-radius: 26px 26px 0 0; box-shadow: 0 -18px 50px oklch(0.2 0.02 155 / .18); }
.sheet-handle { width: 38px; height: 4px; margin: 2px auto 18px; border-radius: 999px; background: var(--border); }
.sheet-icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--brand-soft); color: var(--accent); }

.splash { min-height: 100dvh; padding: 32px; display: grid; place-items: center; position: relative; overflow: hidden; background: var(--surface); }
.splash::before { content: ""; position: absolute; width: 340px; height: 340px; border-radius: 50%; background: var(--brand-soft); right: -190px; top: -170px; }
.splash::after { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; border: 42px solid var(--brand-soft); left: -170px; bottom: -170px; }
.splash-brand { position: relative; z-index: 1; text-align: center; }
.splash-logo { width: 176px; margin: 0 auto; }
.splash-logo .dola-logo { width: 176px; height: auto; object-position: center; }
.splash-tagline { margin-top: 18px; color: var(--muted); font-size: 13px; letter-spacing: .04em; }
.progress-bar { height: 5px; margin-top: 16px; border-radius: 99px; overflow: hidden; background: var(--border); }
.progress-bar span { display: block; height: 100%; background: var(--accent); border-radius: inherit; }
.toast { position: fixed; left: 50%; bottom: 92px; max-width: calc(100% - 36px); transform: translateX(-50%) translateY(12px); padding: 11px 14px; border-radius: 12px; background: var(--fg); color: white; font-size: 12px; opacity: 0; pointer-events: none; transition: .2s ease; z-index: 80; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (min-width: 520px) {
  body.screen-page { display: grid; place-items: center; padding: 32px; background: oklch(0.945 0.012 155); }
  body.screen-page .app-shell { width: 390px; min-height: 844px; max-height: 844px; overflow-y: auto; border-radius: 34px; box-shadow: 0 0 0 10px oklch(0.18 0.01 155), 0 26px 80px oklch(0.2 0.02 155 / .24); }
  body.screen-page .bottom-nav { position: sticky; margin-top: -76px; }
}

@media (max-width: 359px) {
  .screen { padding-left: 14px; padding-right: 14px; }
  .hero { padding: 17px; }
  .hero-time { font-size: 32px; }
  .detail-row { grid-template-columns: 96px 1fr; gap: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}
