/* ═══════════════════════════════════════════════════════════
   HYDRA DIGITAL INTELLIGENCE — Deep Search
   Palette drawn from brand key art: pure black + electric cyan
   ═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Chakra+Petch:wght@400;500;600;700&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
    --void:         #000000;
    --bg-root:      #030509;
    --bg-surface:   #060b13;
    --bg-card:      #080e18;
    --bg-elevated:  #0d1622;
    --bg-input:     #060c15;
    --border:       #0f2231;
    --border-bright:#164055;
    --cyan:         #04fff9;
    --cyan-bright:  #5cfffb;
    --cyan-dim:     #06b8b4;
    --cyan-deep:    #037c79;
    --cyan-glow:    rgba(4, 255, 249, .12);
    --cyan-glow-mid:rgba(4, 255, 249, .22);
    --blue:         #1e9fff;
    --blue-deep:    #0a4d80;
    --text-primary: #e6f4f6;
    --text-secondary: #7fa3ad;
    --text-muted:   #4a6470;
    --text-dim:     #2f4650;
    --green:        #00e5a0;
    --amber:        #ffb020;
    --red:          #ff3b5c;
    --purple:       #a06bff;
    --radius:       8px;
    --radius-lg:    14px;
    --font-display: 'Chakra Petch', sans-serif;
    --font-body:    'Inter', system-ui, sans-serif;
    --font-mono:    'JetBrains Mono', monospace;
    --shadow:       0 8px 32px rgba(0,0,0,.6);
    --shadow-cyan:  0 0 24px rgba(4, 255, 249, .15);
    --transition:   .2s cubic-bezier(.4, 0, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; scroll-behavior: smooth; }
body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--void); color: var(--text-primary);
    min-height: 100vh; line-height: 1.6;
    -webkit-font-smoothing: antialiased; position: relative; overflow-x: hidden;
}
body::before {
    content: ''; position: fixed; inset: 0; z-index: 0;
    background-image:
        linear-gradient(rgba(4, 255, 249, .025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(4, 255, 249, .025) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 70% 0%, #000 40%, transparent 100%);
    mask-image: radial-gradient(ellipse 80% 60% at 70% 0%, #000 40%, transparent 100%);
    pointer-events: none;
}
body::after {
    content: ''; position: fixed; top: -20%; right: -10%; z-index: 0;
    width: 60vw; height: 60vw; max-width: 800px; max-height: 800px;
    background: radial-gradient(circle, var(--cyan-glow) 0%, transparent 65%);
    pointer-events: none; opacity: .6;
}
.container { max-width: 1000px; margin: 0 auto; padding: 0 20px; position: relative; z-index: 1; }
.mono { font-family: 'JetBrains Mono', monospace; }
.display-font { font-family: 'Chakra Petch', sans-serif; }

.topbar { position: sticky; top: 0; z-index: 100; background: rgba(3, 5, 9, .85); backdrop-filter: blur(16px); border-bottom: 1px solid var(--border); padding: 12px 0; }
.topbar::after { content: ''; position: absolute; bottom: -1px; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--cyan-dim), transparent); opacity: .4; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 11px; font-family: 'Chakra Petch', sans-serif; font-weight: 700; font-size: 1.15rem; color: var(--text-primary); text-decoration: none; letter-spacing: .02em; }
.brand-icon { width: 36px; height: 36px; border-radius: 8px; background: linear-gradient(135deg, var(--bg-elevated), var(--void)); border: 1px solid var(--cyan-deep); display: flex; align-items: center; justify-content: center; color: var(--cyan); box-shadow: inset 0 0 12px rgba(4,255,249,.15), 0 0 12px rgba(4,255,249,.1); }
.brand-name .accent { color: var(--cyan); }
.topbar-right { display: flex; align-items: center; gap: 10px; position: relative; }
.credit-badge { display: flex; align-items: center; gap: 7px; background: var(--bg-elevated); border: 1px solid var(--cyan-deep); border-radius: 8px; padding: 6px 14px; font-size: .85rem; font-weight: 600; color: var(--cyan); cursor: pointer; transition: var(--transition); font-family: 'JetBrains Mono', monospace; }
.credit-badge:hover { border-color: var(--cyan); box-shadow: 0 0 16px rgba(4,255,249,.2); }
.credit-badge .icon { filter: drop-shadow(0 0 4px var(--cyan)); }
.user-avatar { width: 36px; height: 36px; border-radius: 8px; background: linear-gradient(135deg, var(--cyan-deep), var(--blue-deep)); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .82rem; color: var(--void); cursor: pointer; transition: var(--transition); font-family: 'Chakra Petch', sans-serif; border: 1px solid var(--cyan-dim); }
.user-avatar:hover { box-shadow: 0 0 16px rgba(4,255,249,.3); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 10px 22px; border-radius: var(--radius); border: 1px solid transparent; font-family: 'Chakra Petch', sans-serif; font-size: .88rem; font-weight: 600; cursor: pointer; transition: var(--transition); text-decoration: none; line-height: 1.4; letter-spacing: .02em; position: relative; overflow: hidden; }
.btn-primary { background: linear-gradient(135deg, var(--cyan-dim), var(--cyan-deep)); color: var(--void); border-color: var(--cyan); }
.btn-primary:hover { background: linear-gradient(135deg, var(--cyan), var(--cyan-dim)); box-shadow: 0 4px 20px rgba(4,255,249,.35); transform: translateY(-1px); }
.btn-secondary { background: var(--bg-elevated); color: var(--text-primary); border-color: var(--border-bright); }
.btn-secondary:hover { border-color: var(--cyan-dim); color: var(--cyan); }
.btn-ghost { background: transparent; color: var(--text-secondary); border: none; padding: 7px 12px; }
.btn-ghost:hover { color: var(--cyan); background: var(--cyan-glow); }
.btn-danger { background: var(--red); color: #fff; }
.btn-sm { padding: 6px 14px; font-size: .8rem; }
.btn-lg { padding: 13px 30px; font-size: 1rem; }
.btn:disabled { opacity: .35; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

.card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; position: relative; }
.card.hud::before, .card.hud::after { content: ''; position: absolute; width: 14px; height: 14px; border-color: var(--cyan-dim); pointer-events: none; }
.card.hud::before { top: 8px; left: 8px; border-top: 2px solid; border-left: 2px solid; border-top-left-radius: 4px; }
.card.hud::after { bottom: 8px; right: 8px; border-bottom: 2px solid; border-right: 2px solid; border-bottom-right-radius: 4px; }
.card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; gap: 10px; flex-wrap: wrap; }
.card-title { font-family: 'Chakra Petch', sans-serif; font-weight: 700; font-size: 1.05rem; letter-spacing: .01em; }
.card + .card { margin-top: 16px; }
.eyebrow { font-family: 'JetBrains Mono', monospace; font-size: .7rem; text-transform: uppercase; letter-spacing: .2em; color: var(--cyan-dim); display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.eyebrow::before { content: ''; width: 20px; height: 1px; background: var(--cyan-dim); }

.form-group { margin-bottom: 16px; }
.form-label { display: block; margin-bottom: 6px; font-size: .82rem; font-weight: 600; color: var(--text-secondary); }
.form-input { width: 100%; padding: 11px 14px; background: var(--bg-input); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text-primary); font-family: inherit; font-size: .92rem; transition: var(--transition); }
.form-input:focus { outline: none; border-color: var(--cyan-dim); box-shadow: 0 0 0 3px var(--cyan-glow); }
.form-input::placeholder { color: var(--text-muted); }
.form-hint { margin-top: 4px; font-size: .76rem; color: var(--text-muted); }

.type-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-bottom: 16px; }
.type-option { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 15px 8px; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius); cursor: pointer; transition: var(--transition); font-size: .78rem; color: var(--text-secondary); text-align: center; font-family: 'Chakra Petch', sans-serif; font-weight: 500; position: relative; overflow: hidden; }
.type-option::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 50% 0%, var(--cyan-glow), transparent 70%); opacity: 0; transition: var(--transition); }
.type-option:hover { border-color: var(--cyan-deep); color: var(--text-primary); }
.type-option:hover::after { opacity: 1; }
.type-option.active { border-color: var(--cyan); color: var(--cyan); box-shadow: inset 0 0 16px rgba(4,255,249,.1); }
.type-option.active::after { opacity: 1; }
.type-option .icon { font-size: 1.35rem; position: relative; z-index: 1; }
.type-option span:last-child { position: relative; z-index: 1; }

.search-bar { display: flex; gap: 8px; }
.search-bar .form-input { flex: 1; }

.result-empty, .result-error { text-align: center; padding: 32px 16px; color: var(--text-muted); font-size: .92rem; }
.result-error { color: var(--red); }
.record-card { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 10px; transition: var(--transition); position: relative; }
.record-card::before { content: ''; position: absolute; left: 0; top: 12px; bottom: 12px; width: 2px; background: var(--cyan-deep); border-radius: 2px; }
.record-card:hover { border-color: var(--border-bright); }
.record-card:hover::before { background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.record-header { font-family: 'Chakra Petch', sans-serif; font-weight: 600; font-size: .88rem; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding-left: 8px; }
.record-source { font-family: 'JetBrains Mono', monospace; font-size: .7rem; background: var(--cyan-glow); color: var(--cyan); padding: 2px 8px; border-radius: 4px; font-weight: 500; border: 1px solid var(--cyan-deep); }
.record-body { display: grid; gap: 4px; padding-left: 8px; }
.record-field { display: grid; grid-template-columns: 140px 1fr; gap: 8px; font-size: .82rem; padding: 4px 0; border-bottom: 1px solid rgba(4,255,249,.05); }
.field-name { color: var(--text-muted); font-weight: 500; word-break: break-word; }
.field-value { font-family: 'JetBrains Mono', monospace; font-size: .78rem; color: var(--cyan-bright); word-break: break-all; }

.analysis-card { background: var(--bg-card); border: 1px solid var(--border-bright); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-cyan); }
.analysis-header { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; background: linear-gradient(135deg, var(--bg-elevated), var(--bg-card)); border-bottom: 1px solid var(--border); }
.analysis-header h3 { font-family: 'Chakra Petch', sans-serif; font-size: 1rem; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.analysis-header h3::before { content: '◈'; color: var(--cyan); }
.analysis-time { font-size: .74rem; color: var(--text-muted); font-family: 'JetBrains Mono', monospace; }
.analysis-query { display: grid; grid-template-columns: 90px 1fr; gap: 7px 12px; padding: 16px 20px; border-bottom: 1px solid var(--border); font-size: .85rem; }
.analysis-query .label { color: var(--text-muted); font-weight: 500; font-family: 'JetBrains Mono', monospace; font-size: .78rem; }
.analysis-query .value { color: var(--text-primary); }
.risk-meter { padding: 22px 20px; text-align: center; }
.risk-score-display { display: flex; align-items: baseline; justify-content: center; gap: 5px; margin-bottom: 14px; }
.score-number { font-size: 3rem; font-weight: 700; font-family: 'Chakra Petch', sans-serif; line-height: 1; text-shadow: 0 0 20px currentColor; }
.score-max { font-size: 1rem; color: var(--text-muted); font-family: 'JetBrains Mono', monospace; }
.risk-bar-container { height: 8px; background: var(--bg-input); border-radius: 4px; overflow: hidden; margin-bottom: 10px; border: 1px solid var(--border); }
.risk-bar { height: 100%; border-radius: 4px; transition: width .8s cubic-bezier(.4,0,.2,1); box-shadow: 0 0 12px currentColor; }
.risk-critical .score-number, .risk-bar.risk-critical { color: var(--red); background: var(--red); }
.risk-high .score-number, .risk-bar.risk-high { color: #ff7a18; background: #ff7a18; }
.risk-medium .score-number, .risk-bar.risk-medium { color: var(--amber); background: var(--amber); }
.risk-low .score-number, .risk-bar.risk-low { color: var(--cyan); background: var(--cyan); }
.risk-minimal .score-number, .risk-bar.risk-minimal { color: var(--green); background: var(--green); }
.risk-label { font-family: 'Chakra Petch', sans-serif; font-weight: 700; font-size: .9rem; letter-spacing: .1em; }
.analysis-breakdown { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1px; background: var(--border); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.breakdown-item { display: flex; justify-content: space-between; padding: 11px 16px; background: var(--bg-card); font-size: .8rem; }
.breakdown-item span:first-child { color: var(--text-muted); }
.breakdown-item span:last-child { font-family: 'JetBrains Mono', monospace; font-weight: 600; color: var(--cyan); }
.analysis-details { padding: 16px 20px; }
.detail-row { display: flex; align-items: center; gap: 9px; padding: 7px 0; font-size: .85rem; color: var(--text-secondary); }
.detail-row .icon { font-size: 1rem; flex-shrink: 0; }
.detail-row.danger { color: var(--red); }
.detail-row.warn { color: var(--amber); }
.detail-row.safe { color: var(--green); }
.recommendations { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.recommendations h4 { font-family: 'Chakra Petch', sans-serif; font-size: .88rem; font-weight: 700; margin-bottom: 10px; color: var(--cyan); }
.rec-item { padding: 7px 0 7px 18px; font-size: .82rem; color: var(--text-secondary); position: relative; }
.rec-item::before { content: '▸'; position: absolute; left: 0; color: var(--cyan); }

.pagination { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 16px; }
.page-info { font-size: .82rem; color: var(--text-muted); font-family: 'JetBrains Mono', monospace; }

.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: .82rem; }
.data-table th { text-align: left; padding: 11px 12px; background: var(--bg-elevated); color: var(--cyan-dim); font-weight: 600; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; border-bottom: 1px solid var(--border); font-family: 'JetBrains Mono', monospace; }
.data-table td { padding: 11px 12px; border-bottom: 1px solid rgba(4,255,249,.04); color: var(--text-secondary); }
.data-table tr:hover td { background: var(--cyan-glow); }

.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.8); backdrop-filter: blur(6px); z-index: 200; align-items: center; justify-content: center; padding: 20px; }
.modal-overlay.active { display: flex; }
.modal { background: var(--bg-card); border: 1px solid var(--border-bright); border-radius: var(--radius-lg); padding: 28px; width: 100%; max-width: 460px; max-height: 90vh; overflow-y: auto; animation: modalIn .25s cubic-bezier(.4,0,.2,1); box-shadow: var(--shadow), var(--shadow-cyan); position: relative; }
@keyframes modalIn { from { opacity: 0; transform: scale(.96) translateY(12px); } }
.modal-title { font-family: 'Chakra Petch', sans-serif; font-size: 1.15rem; font-weight: 700; margin-bottom: 20px; }
.modal-close { position: absolute; top: 20px; right: 20px; background: none; border: none; color: var(--text-muted); font-size: 1.3rem; cursor: pointer; padding: 4px; line-height: 1; transition: var(--transition); }
.modal-close:hover { color: var(--cyan); }

.toast-container { position: fixed; bottom: 20px; right: 20px; z-index: 300; display: flex; flex-direction: column; gap: 8px; }
.toast { padding: 13px 20px; border-radius: var(--radius); font-size: .85rem; font-weight: 500; box-shadow: var(--shadow); animation: toastIn .3s ease; max-width: 380px; border: 1px solid; backdrop-filter: blur(8px); }
@keyframes toastIn { from { opacity: 0; transform: translateX(40px); } }
.toast-success { background: rgba(0,229,160,.15); border-color: var(--green); color: var(--green); }
.toast-error { background: rgba(255,59,92,.15); border-color: var(--red); color: var(--red); }
.toast-warning { background: rgba(255,176,32,.15); border-color: var(--amber); color: var(--amber); }
.toast-info { background: var(--cyan-glow); border-color: var(--cyan-dim); color: var(--cyan); }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 20px; overflow-x: auto; }
.tab { padding: 11px 18px; font-family: 'Chakra Petch', sans-serif; font-size: .85rem; font-weight: 600; color: var(--text-muted); cursor: pointer; border-bottom: 2px solid transparent; transition: var(--transition); white-space: nowrap; }
.tab:hover { color: var(--text-primary); }
.tab.active { color: var(--cyan); border-color: var(--cyan); text-shadow: 0 0 12px rgba(4,255,249,.4); }
.tab-panel { display: none; animation: fadeIn .3s ease; }
.tab-panel.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } }

.faq-item { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 10px; overflow: hidden; transition: var(--transition); background: var(--bg-card); }
.faq-item.open { border-color: var(--cyan-deep); }
.faq-q { display: flex; align-items: center; gap: 12px; padding: 16px 18px; cursor: pointer; font-family: 'Chakra Petch', sans-serif; font-weight: 600; font-size: .95rem; user-select: none; transition: var(--transition); }
.faq-q:hover { background: var(--cyan-glow); }
.faq-q .faq-icon { font-size: 1.2rem; }
.faq-q .faq-arrow { margin-left: auto; color: var(--cyan-dim); transition: transform .25s; font-size: .9rem; }
.faq-item.open .faq-arrow { transform: rotate(180deg); color: var(--cyan); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s cubic-bezier(.4,0,.2,1); }
.faq-item.open .faq-a { max-height: 1400px; }
.faq-a-inner { padding: 0 18px 18px 18px; font-size: .87rem; color: var(--text-secondary); }
.faq-a-inner p { margin-bottom: 10px; }
.faq-a-inner .faq-h { font-family: 'Chakra Petch', sans-serif; font-weight: 600; color: var(--cyan); margin: 14px 0 8px; font-size: .9rem; }
.faq-a-inner .faq-li { padding: 5px 0 5px 18px; position: relative; }
.faq-a-inner .faq-li::before { content: '▸'; position: absolute; left: 0; color: var(--cyan-dim); }
.faq-a-inner .faq-warn { background: rgba(255,176,32,.08); border-left: 2px solid var(--amber); padding: 10px 14px; border-radius: 4px; margin: 12px 0; color: var(--amber); }
.faq-a-inner strong { color: var(--text-primary); }

.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 6px; font-size: .72rem; font-weight: 600; font-family: 'JetBrains Mono', monospace; }
.badge-pending { background: rgba(255,176,32,.12); color: var(--amber); border: 1px solid rgba(255,176,32,.3); }
.badge-paid { background: rgba(0,229,160,.12); color: var(--green); border: 1px solid rgba(0,229,160,.3); }
.badge-failed { background: rgba(255,59,92,.12); color: var(--red); border: 1px solid rgba(255,59,92,.3); }

.spinner { width: 36px; height: 36px; border: 3px solid var(--border); border-top-color: var(--cyan); border-radius: 50%; animation: spin .7s linear infinite; margin: 0 auto; box-shadow: 0 0 12px rgba(4,255,249,.2); }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-state { text-align: center; padding: 40px 16px; color: var(--text-muted); }

.hero { text-align: center; padding: 70px 0 44px; position: relative; }
.hero-eyebrow { font-family: 'JetBrains Mono', monospace; font-size: .78rem; letter-spacing: .25em; text-transform: uppercase; color: var(--cyan-dim); margin-bottom: 18px; }
.hero-title { font-family: 'Chakra Petch', sans-serif; font-size: 2.6rem; font-weight: 700; line-height: 1.12; margin-bottom: 16px; letter-spacing: -.01em; }
.hero-title .gradient { background: linear-gradient(120deg, var(--cyan-bright), var(--cyan) 40%, var(--blue)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-sub { color: var(--text-secondary); font-size: 1.08rem; max-width: 540px; margin: 0 auto 30px; }
.hero-stats { display: flex; justify-content: center; gap: 40px; margin-top: 36px; flex-wrap: wrap; }
.stat { text-align: center; }
.stat-num { font-family: 'Chakra Petch', sans-serif; font-size: 1.7rem; font-weight: 700; color: var(--cyan); text-shadow: 0 0 20px rgba(4,255,249,.3); }
.stat-label { font-size: .74rem; color: var(--text-muted); margin-top: 2px; font-family: 'JetBrains Mono', monospace; text-transform: uppercase; letter-spacing: .08em; }
.feature-card { position: relative; overflow: hidden; }
.feature-card .feat-icon { width: 44px; height: 44px; border-radius: 10px; background: var(--bg-elevated); border: 1px solid var(--cyan-deep); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; margin-bottom: 14px; box-shadow: inset 0 0 12px rgba(4,255,249,.1); }
.feature-card h3 { font-family: 'Chakra Petch', sans-serif; font-size: 1.05rem; margin-bottom: 8px; }

.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-sm { font-size: .82rem; }
.text-xs { font-size: .74rem; }
.mt-2 { margin-top: 12px; } .mt-3 { margin-top: 20px; }
.mb-2 { margin-bottom: 12px; } .mb-3 { margin-bottom: 20px; }
.hidden { display: none !important; }
.w-full { width: 100%; }
.section { padding: 24px 0; }
.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--border-bright), transparent); margin: 20px 0; }
.empty-state { text-align: center; padding: 40px 16px; color: var(--text-muted); }
.empty-state .icon { font-size: 2rem; margin-bottom: 8px; display: block; opacity: .5; }

@media (max-width: 640px) {
    html { font-size: 14px; }
    .container { padding: 0 14px; }
    .card { padding: 16px; }
    .type-grid { grid-template-columns: repeat(2, 1fr); }
    .hero { padding: 48px 0 32px; }
    .hero-title { font-size: 1.9rem; }
    .hero-stats { gap: 24px; }
    .search-bar { flex-direction: column; }
    .record-field { grid-template-columns: 100px 1fr; }
    .analysis-breakdown { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ═══════════════════════════════════════════════════════════
   ICON SIZING & METRICS (referenced by index.html SVG sprite)
   ═══════════════════════════════════════════════════════════ */
.tab-ico { vertical-align: -3px; margin-right: 7px; color: currentColor; }
.type-ico { color: currentColor; }
svg use { color: inherit; }
.btn svg { vertical-align: -2px; }

.metric-lg { font-family: var(--font-display); font-size: 2.2rem; font-weight: 700; color: var(--cyan); text-shadow: 0 0 20px rgba(4,255,249,.3); line-height: 1.1; }
.metric-md { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; line-height: 1.2; }

/* ═══════════════════════════════════════════════════════════
   CHECKOUT WIZARD (multi-step)
   ═══════════════════════════════════════════════════════════ */
.wizard { width: 100%; max-width: 520px; }
.wizard-steps { display: flex; align-items: center; justify-content: center; gap: 0; margin-bottom: 24px; }
.wstep { display: flex; align-items: center; gap: 8px; }
.wstep-dot { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--border-bright); display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: .8rem; font-weight: 600; color: var(--text-muted); transition: var(--transition); flex-shrink: 0; }
.wstep.active .wstep-dot { border-color: var(--cyan); color: var(--cyan); box-shadow: 0 0 12px rgba(4,255,249,.3); }
.wstep.done .wstep-dot { border-color: var(--cyan-deep); background: var(--cyan-deep); color: var(--void); }
.wstep-label { font-size: .74rem; color: var(--text-muted); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; }
.wstep.active .wstep-label { color: var(--cyan); }
.wstep-line { width: 32px; height: 2px; background: var(--border-bright); margin: 0 8px; transition: var(--transition); }
.wstep-line.done { background: var(--cyan-deep); }

.wizard-body { min-height: 200px; }
.wizard-title { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; margin-bottom: 4px; }
.wizard-sub { font-size: .82rem; color: var(--text-muted); margin-bottom: 18px; }

/* Credit amount step */
.credit-amount-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.credit-opt { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 10px; text-align: center; cursor: pointer; transition: var(--transition); position: relative; }
.credit-opt:hover { border-color: var(--cyan-deep); transform: translateY(-2px); }
.credit-opt.selected { border-color: var(--cyan); box-shadow: inset 0 0 16px rgba(4,255,249,.1); }
.credit-opt-badge { position: absolute; top: -1px; right: -1px; background: var(--cyan); color: var(--void); font-size: .6rem; font-weight: 700; padding: 2px 8px; border-bottom-left-radius: 6px; font-family: var(--font-mono); }
.credit-opt-num { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--text-primary); }
.credit-opt-price { font-family: var(--font-mono); font-size: .78rem; color: var(--cyan); margin-top: 3px; }
.credit-opt.selected .credit-opt-num { color: var(--cyan); }

/* Payment method step */
.pay-group { margin-bottom: 16px; }
.pay-group-title { font-family: var(--font-mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-muted); margin-bottom: 8px; }
.pay-method { display: flex; align-items: center; gap: 12px; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; cursor: pointer; transition: var(--transition); margin-bottom: 8px; }
.pay-method:hover { border-color: var(--cyan-deep); }
.pay-method.selected { border-color: var(--cyan); box-shadow: inset 0 0 14px rgba(4,255,249,.08); }
.pay-method-radio { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--border-bright); flex-shrink: 0; position: relative; transition: var(--transition); }
.pay-method.selected .pay-method-radio { border-color: var(--cyan); }
.pay-method.selected .pay-method-radio::after { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 6px var(--cyan); }
.pay-method-info { flex: 1; }
.pay-method-name { font-weight: 600; font-size: .9rem; }
.pay-method-desc { font-size: .74rem; color: var(--text-muted); margin-top: 1px; }

/* Review step */
.review-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--border); font-size: .9rem; }
.review-row:last-of-type { border-bottom: none; }
.review-label { color: var(--text-muted); }
.review-value { font-weight: 600; }
.review-total { display: flex; justify-content: space-between; align-items: center; padding: 16px; background: var(--bg-elevated); border-radius: var(--radius); margin-top: 12px; }
.review-total-label { font-family: var(--font-display); font-weight: 600; }
.review-total-value { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; color: var(--cyan); }

/* Result step */
.checkout-result-icon { width: 56px; height: 56px; border-radius: 50%; background: var(--cyan-glow); border: 1px solid var(--cyan-deep); display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; color: var(--cyan); }

.wizard-nav { display: flex; gap: 10px; margin-top: 22px; }
.wizard-nav .btn { flex: 1; }

/* Info box */
.info-box { padding: 14px 16px; border-radius: var(--radius); margin-bottom: 16px; font-size: .85rem; line-height: 1.55; }
.info-box.warn { background: rgba(255,176,32,.08); border: 1px solid rgba(255,176,32,.25); color: var(--amber); }
.info-box strong { color: var(--text-primary); }
.contact-box { text-align: center; padding: 14px; background: var(--bg-input); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 16px; }
.contact-box-label { font-size: .7rem; color: var(--text-muted); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 6px; }
.contact-box-value { font-family: var(--font-mono); color: var(--cyan); font-size: .95rem; word-break: break-all; }

@media (max-width: 640px) {
    .credit-amount-grid { grid-template-columns: repeat(2, 1fr); }
    .wstep-label { display: none; }
    .metric-lg { font-size: 1.8rem; }
    .metric-md { font-size: 1.3rem; }
}

/* ═══════════════════════════════════════════════════════════
   STATUS DOTS (analysis detail rows — replaces emoji icons)
   ═══════════════════════════════════════════════════════════ */
.dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; display: inline-block; }
.dot-red { background: var(--red); box-shadow: 0 0 6px var(--red); }
.dot-amber { background: var(--amber); box-shadow: 0 0 6px var(--amber); }
.dot-green { background: var(--green); box-shadow: 0 0 6px var(--green); }
.dot-cyan { background: var(--cyan); box-shadow: 0 0 6px var(--cyan); }

/* FAQ icon/arrow now wrap SVG */
.faq-icon { display: inline-flex; align-items: center; color: var(--cyan); }
.faq-arrow { display: inline-flex; align-items: center; }

/* ═══════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════ */
.site-footer { border-top: 1px solid var(--border); margin-top: 48px; padding: 28px 0; position: relative; z-index: 1; background: var(--bg-root); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-brand { font-family: var(--font-display); font-weight: 600; font-size: .9rem; color: var(--text-secondary); }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: var(--text-muted); text-decoration: none; font-size: .85rem; transition: var(--transition); }
.footer-links a:hover { color: var(--cyan); }
.footer-copy { margin-top: 14px; font-size: .74rem; color: var(--text-dim); font-family: var(--font-mono); }

/* ── AGREE CHECKBOX (registrasi) ── */
.agree-check { display: flex; align-items: flex-start; gap: 9px; margin-bottom: 16px; font-size: .8rem; color: var(--text-secondary); line-height: 1.5; cursor: pointer; }
.agree-check input[type="checkbox"] { margin-top: 2px; width: 16px; height: 16px; flex-shrink: 0; accent-color: var(--cyan); cursor: pointer; }
.agree-check a { color: var(--cyan); text-decoration: none; }
.agree-check a:hover { text-decoration: underline; }

/* ── LEGAL MODAL ── */
.legal-modal { max-width: 640px; text-align: left; }
.legal-updated { font-family: var(--font-mono); font-size: .74rem; color: var(--text-muted); margin-bottom: 16px; }
.legal-intro { font-size: .88rem; color: var(--text-secondary); margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.legal-body { max-height: 55vh; overflow-y: auto; padding-right: 8px; }
.legal-section { margin-bottom: 22px; }
.legal-section h3 { font-family: var(--font-display); font-size: .95rem; font-weight: 700; color: var(--cyan); margin-bottom: 10px; }
.legal-section p { font-size: .85rem; color: var(--text-secondary); margin-bottom: 10px; line-height: 1.65; }
.legal-section strong { color: var(--text-primary); }
.legal-li { position: relative; padding: 5px 0 5px 18px; font-size: .85rem; color: var(--text-secondary); line-height: 1.6; }
.legal-li::before { content: '▸'; position: absolute; left: 0; color: var(--cyan-dim); }
.legal-body::-webkit-scrollbar { width: 6px; }
.legal-body::-webkit-scrollbar-track { background: var(--bg-input); border-radius: 3px; }
.legal-body::-webkit-scrollbar-thumb { background: var(--cyan-deep); border-radius: 3px; }
