/* =====================================================================
   GioCloud design system
   ===================================================================== */
:root {
  --primary: #0069ff;
  --primary-600: color-mix(in srgb, var(--primary) 88%, #000);
  --primary-700: color-mix(in srgb, var(--primary) 75%, #000);
  --primary-50: color-mix(in srgb, var(--primary) 7%, #fff);
  --primary-100: color-mix(in srgb, var(--primary) 14%, #fff);
  --navy: #031b4e;
  --navy-2: #0b2a63;
  --ink: #0d1b2e;
  --text: #24324a;
  --muted: #5b6b82;
  --faint: #8a98ad;
  --line: #e3e8f0;
  --line-2: #eef2f7;
  --bg: #f5f7fb;
  --surface: #ffffff;
  --success: #0ca678;
  --success-bg: #e6f8f1;
  --warning: #d97706;
  --warning-bg: #fff6e6;
  --danger: #e03131;
  --danger-bg: #fdecec;
  --info: #1c7ed6;
  --info-bg: #e8f3fd;
  --neutral-bg: #eef1f6;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(13, 27, 46, .06);
  --shadow: 0 1px 3px rgba(13, 27, 46, .06), 0 6px 18px rgba(13, 27, 46, .06);
  --shadow-lg: 0 18px 50px rgba(3, 27, 78, .16);
  --sidebar-w: 248px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 14px; line-height: 1.55; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
body.public { background: #fff; font-size: 15px; }
h1, h2, h3, h4, h5 { color: var(--ink); line-height: 1.25; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: 28px; } h2 { font-size: 22px; } h3 { font-size: 17px; } h4 { font-size: 15px; }
p { margin: 0 0 1em; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-700); }
img { max-width: 100%; }
hr, .divider { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }
code, .mono { font-family: var(--mono); font-size: .92em; }
code.code { background: var(--line-2); padding: 2px 6px; border-radius: 4px; color: var(--ink); }
small { font-size: 12px; }
::selection { background: var(--primary-100); }

.icon { width: 18px; height: 18px; stroke-width: 2; flex-shrink: 0; vertical-align: middle; }
.icon-xs { width: 14px; height: 14px; }
.icon-lg { width: 24px; height: 24px; }
i[data-lucide] { display: inline-block; width: 18px; height: 18px; }

/* ---------- utilities ---------- */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 760px; }
.flex { display: flex; } .flex-col { flex-direction: column; } .flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; } .items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; } .justify-center { justify-content: center; } .justify-end { justify-content: flex-end; }
.gap-1 { gap: 4px; } .gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; } .gap-5 { gap: 24px; } .gap-6 { gap: 32px; }
.mt-0 { margin-top: 0 !important; } .mt-1 { margin-top: 4px; } .mt-2 { margin-top: 8px; } .mt-3 { margin-top: 12px; } .mt-4 { margin-top: 16px; } .mt-5 { margin-top: 24px; } .mt-6 { margin-top: 32px; }
.mb-0 { margin-bottom: 0 !important; } .mb-1 { margin-bottom: 4px; } .mb-2 { margin-bottom: 8px; } .mb-3 { margin-bottom: 12px; } .mb-4 { margin-bottom: 16px; } .mb-5 { margin-bottom: 24px; } .mb-6 { margin-bottom: 32px; }
.ml-auto { margin-left: auto; } .w-full { width: 100%; }
.text-center { text-align: center; } .text-right { text-align: right; } .text-left { text-align: left; }
.text-muted { color: var(--muted); } .text-faint { color: var(--faint); }
.text-sm { font-size: 13px; } .text-xs { font-size: 12px; } .text-lg { font-size: 17px; }
.text-success { color: var(--success); } .text-danger { color: var(--danger) !important; } .text-warning { color: var(--warning); } .text-primary { color: var(--primary); }
.fw-500 { font-weight: 500; } .fw-600 { font-weight: 600; } .fw-700 { font-weight: 700; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hidden { display: none !important; }
.nowrap { white-space: nowrap; }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-sidebar { grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); }
@media (max-width: 1080px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-sidebar { grid-template-columns: 1fr; } }
@media (max-width: 860px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 38px; padding: 0 16px; border-radius: var(--radius-sm); border: 1px solid transparent; font: 600 14px/1 var(--font); cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, color .15s, box-shadow .15s, transform .05s; text-decoration: none; user-select: none; }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn.disabled { opacity: .55; cursor: not-allowed; pointer-events: none; }
.btn .icon { width: 16px; height: 16px; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-600); color: #fff; box-shadow: 0 4px 14px color-mix(in srgb, var(--primary) 35%, transparent); }
.btn-secondary { background: #fff; color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-secondary:hover { border-color: #c9d2e0; background: #fafbfd; color: var(--ink); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary-50); color: var(--primary-700); }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { background: var(--line-2); color: var(--ink); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #c92a2a; color: #fff; }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: #099268; color: #fff; }
.btn-warning { background: #f59f00; color: #1f1300; }
.btn-warning:hover { background: #e08e00; color: #1f1300; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn-lg { height: 48px; padding: 0 24px; font-size: 15px; border-radius: 8px; }
.btn-block { width: 100%; }
.btn-icon { width: 38px; padding: 0; }
.btn-icon.btn-sm { width: 32px; }
.btn-group { display: inline-flex; flex-wrap: wrap; gap: 8px; }
.btn.is-loading { position: relative; color: transparent !important; }
.btn.is-loading::after { content: ''; position: absolute; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255,255,255,.5); border-top-color: #fff; animation: spin .7s linear infinite; }
.btn-secondary.is-loading::after, .btn-ghost.is-loading::after, .btn-outline.is-loading::after { border-color: var(--line); border-top-color: var(--primary); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- forms ---------- */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-weight: 600; font-size: 13px; color: var(--ink); margin-bottom: 6px; }
.form-label .req { color: var(--danger); }
.form-control { display: block; width: 100%; height: 40px; padding: 8px 12px; font: 400 14px/1.4 var(--font); color: var(--ink); background: #fff; border: 1px solid #cfd8e3; border-radius: var(--radius-sm); transition: border-color .15s, box-shadow .15s; appearance: none; -webkit-appearance: none; }
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-100); }
.form-control::placeholder { color: var(--faint); }
.form-control[readonly], .form-control:disabled { background: #f7f9fc; color: var(--muted); }
textarea.form-control { height: auto; min-height: 96px; resize: vertical; padding: 10px 12px; }
textarea.form-control.mono { font-family: var(--mono); font-size: 12.5px; }
select.form-control { padding-right: 34px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235b6b82' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
select.form-control[multiple] { height: auto; min-height: 120px; background-image: none; padding-right: 12px; }
input[type=color].form-control { padding: 4px; width: 56px; cursor: pointer; }
input[type=file].form-control { height: auto; padding: 7px 10px; }
.form-control.is-invalid { border-color: var(--danger); }
.form-hint { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.form-error { font-size: 12.5px; color: var(--danger); margin-top: 6px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 16px; }
@media (max-width: 640px) { .form-row, .form-row-3 { grid-template-columns: 1fr; } }
.input-group { display: flex; align-items: stretch; }
.input-group > .form-control { border-radius: 0; flex: 1; min-width: 0; }
.input-group > :first-child { border-top-left-radius: var(--radius-sm); border-bottom-left-radius: var(--radius-sm); }
.input-group > :last-child { border-top-right-radius: var(--radius-sm); border-bottom-right-radius: var(--radius-sm); }
.input-group > .input-addon { display: flex; align-items: center; padding: 0 12px; background: #f3f6fa; border: 1px solid #cfd8e3; color: var(--muted); font-size: 13px; white-space: nowrap; }
.input-group > .input-addon:first-child { border-right: 0; }
.input-group > .input-addon:last-child { border-left: 0; }
.input-group > .btn { border-radius: 0; height: auto; }
.input-group > .btn:last-child { border-top-right-radius: var(--radius-sm); border-bottom-right-radius: var(--radius-sm); }
.form-check { display: flex; align-items: flex-start; gap: 9px; cursor: pointer; font-size: 14px; margin-bottom: 10px; }
.form-check input { width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--primary); flex-shrink: 0; }
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 500; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch .slider { position: relative; width: 40px; height: 22px; background: #cbd4e1; border-radius: 22px; transition: background .2s; flex-shrink: 0; }
.switch .slider::before { content: ''; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; background: #fff; border-radius: 50%; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .2s; }
.switch input:checked + .slider { background: var(--primary); }
.switch input:checked + .slider::before { transform: translateX(18px); }
.switch input:focus-visible + .slider { box-shadow: 0 0 0 3px var(--primary-100); }
.form-actions { display: flex; align-items: center; gap: 10px; justify-content: flex-end; padding-top: 16px; margin-top: 8px; border-top: 1px solid var(--line-2); }
.form-section-title { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 26px 0 14px; }

/* ---------- cards ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); margin-bottom: 20px; min-width: 0; }
.grid > .card { margin-bottom: 0; }
.card-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line-2); flex-wrap: wrap; }
.card-title { font-size: 15px; font-weight: 700; color: var(--ink); margin: 0; display: flex; align-items: center; gap: 8px; }
.card-title .icon { color: var(--primary); }
.card-subtitle { font-size: 13px; color: var(--muted); margin: 2px 0 0; }
.card-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.card-body { padding: 20px; }
.card-footer { padding: 14px 20px; border-top: 1px solid var(--line-2); background: #fbfcfe; border-radius: 0 0 var(--radius) var(--radius); }
.card-flush .card-body { padding: 0; }
.card-flush .table-wrap { border: 0; border-radius: 0; }

/* ---------- tables ---------- */
.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; padding: 11px 16px; background: #f8fafc; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 13px 16px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table-hover tbody tr:hover { background: #f9fbff; }
.table-compact th, .table-compact td { padding: 8px 12px; }
.table .cell-main { font-weight: 600; color: var(--ink); display: block; }
.table .cell-sub { font-size: 12.5px; color: var(--muted); display: block; margin-top: 1px; }
.table .table-actions { text-align: right; white-space: nowrap; }
.table .table-actions .btn + .btn, .table .table-actions form + form, .table .table-actions .btn + form, .table .table-actions form + .btn { margin-left: 6px; }
.table .table-actions form { display: inline; }
.table tfoot td { font-weight: 600; background: #fbfcfe; }
.table input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--primary); }

/* ---------- badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 1.5; white-space: nowrap; background: var(--neutral-bg); color: #4a5a72; }
.badge-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-success { background: var(--success-bg); color: #087f5b; }
.badge-warning { background: var(--warning-bg); color: #b25e05; }
.badge-danger { background: var(--danger-bg); color: #c92a2a; }
.badge-info { background: var(--info-bg); color: #1864ab; }
.badge-primary { background: var(--primary-100); color: var(--primary-700); }
.badge-neutral { background: var(--neutral-bg); color: #4a5a72; }
.badge-info .badge-dot { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .3; } }

/* ---------- alerts & toasts ---------- */
.alert { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid; font-size: 14px; margin-bottom: 16px; }
.alert > .icon { margin-top: 1px; }
.alert > div { flex: 1; }
.alert-success { background: var(--success-bg); border-color: #b2ebd5; color: #0b6b4f; }
.alert-danger { background: var(--danger-bg); border-color: #f8c7c7; color: #a51d1d; }
.alert-warning { background: var(--warning-bg); border-color: #fde2b5; color: #8a4b05; }
.alert-info { background: var(--info-bg); border-color: #c5e0f9; color: #14558f; }
.alert-close { background: none; border: 0; font-size: 20px; line-height: 1; cursor: pointer; color: inherit; opacity: .6; padding: 0 2px; }
.alert-close:hover { opacity: 1; }
.flash-stack { position: fixed; top: 16px; right: 16px; z-index: 1200; width: min(420px, calc(100vw - 32px)); }
.flash-stack .alert { box-shadow: var(--shadow-lg); animation: slidein .25s ease; }
@keyframes slidein { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.toast-stack { position: fixed; bottom: 20px; right: 20px; z-index: 1300; display: flex; flex-direction: column; gap: 8px; width: min(380px, calc(100vw - 40px)); }
.toast { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 8px; background: var(--ink); color: #fff; box-shadow: var(--shadow-lg); font-size: 14px; animation: slidein .2s ease; }
.toast-success { background: #087f5b; } .toast-error { background: #c92a2a; } .toast-warning { background: #b25e05; }

/* ---------- stats ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; margin-bottom: 20px; }
.stat-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden; }
.stat-icon { width: 38px; height: 38px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; background: var(--primary-50); color: var(--primary); margin-bottom: 12px; }
.stat-icon.success { background: var(--success-bg); color: var(--success); }
.stat-icon.warning { background: var(--warning-bg); color: var(--warning); }
.stat-icon.danger { background: var(--danger-bg); color: var(--danger); }
.stat-label { font-size: 13px; color: var(--muted); font-weight: 500; }
.stat-value { font-size: 26px; font-weight: 800; color: var(--ink); letter-spacing: -.02em; line-height: 1.2; margin-top: 2px; }
.stat-sub { font-size: 12.5px; color: var(--faint); margin-top: 4px; }

/* ---------- key/values ---------- */
dl.kv { margin: 0; display: grid; gap: 0; }
dl.kv > div { display: grid; grid-template-columns: minmax(120px, 38%) 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
dl.kv > div:last-child { border-bottom: 0; }
dl.kv dt { color: var(--muted); font-size: 13px; }
dl.kv dd { margin: 0; color: var(--ink); font-weight: 500; word-break: break-word; }

/* ---------- tabs ---------- */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { display: inline-flex; align-items: center; gap: 7px; padding: 11px 14px; font: 600 14px var(--font); color: var(--muted); border: 0; background: none; border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer; white-space: nowrap; }
.tab:hover { color: var(--ink); }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab .icon { width: 16px; height: 16px; }
[data-tab-panel] { display: none; }
[data-tab-panel].active { display: block; }

/* ---------- option cards (create flow) ---------- */
.option-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.option-grid-sm { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.option-card { position: relative; display: block; cursor: pointer; }
.option-card > input { position: absolute; opacity: 0; pointer-events: none; }
.option-card-body { height: 100%; border: 1.5px solid var(--line); border-radius: var(--radius); background: #fff; padding: 16px; transition: border-color .15s, box-shadow .15s, background .15s; position: relative; }
.option-card:hover .option-card-body { border-color: #b8c6da; }
.option-card > input:checked + .option-card-body { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-100); background: var(--primary-50); }
.option-card > input:checked + .option-card-body::after { content: ''; position: absolute; top: 10px; right: 10px; width: 18px; height: 18px; border-radius: 50%; background: var(--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/11px no-repeat; }
.option-card > input:disabled + .option-card-body { opacity: .45; cursor: not-allowed; }
.option-card > input:focus-visible + .option-card-body { box-shadow: 0 0 0 3px var(--primary-100); }
.option-title { font-weight: 700; color: var(--ink); font-size: 14.5px; }
.option-sub { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.option-price { font-size: 18px; font-weight: 800; color: var(--ink); margin-top: 10px; letter-spacing: -.01em; }
.option-price small { font-size: 12px; color: var(--muted); font-weight: 500; }
.os-card .option-card-body { text-align: center; padding: 18px 12px; }
.os-logo { width: 44px; height: 44px; border-radius: 12px; margin: 0 auto 10px; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 18px; background: #5b6b82; }
.os-logo::before { content: attr(data-letter); }
.os-ubuntu { background: linear-gradient(135deg, #e95420, #c34113); }
.os-debian { background: linear-gradient(135deg, #d70a53, #a80030); }
.os-centos { background: linear-gradient(135deg, #932279, #262577); }
.os-rocky { background: linear-gradient(135deg, #10b981, #047857); }
.os-alma { background: linear-gradient(135deg, #0f4266, #ffcb12); }
.os-fedora { background: linear-gradient(135deg, #51a2da, #294172); }
.os-windows { background: linear-gradient(135deg, #00a4ef, #0067b8); }
.os-other { background: linear-gradient(135deg, #64748b, #334155); }
.os-logo:not([data-letter])::before { content: 'L'; }
.os-ubuntu:not([data-letter])::before { content: 'U'; }
.os-debian:not([data-letter])::before { content: 'D'; }
.os-centos:not([data-letter])::before { content: 'C'; }
.os-rocky:not([data-letter])::before { content: 'R'; }
.os-alma:not([data-letter])::before, .os-almalinux:not([data-letter])::before { content: 'A'; }
.os-fedora:not([data-letter])::before { content: 'F'; }
.os-windows:not([data-letter])::before { content: '⊞'; font-size: 22px; }
.os-almalinux { background: linear-gradient(135deg, #0f4266, #ffcb12); }
.pricing-toggle .pp-save { color: var(--success); font-size: 11.5px; margin-left: 4px; font-weight: 700; }

.create-section { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 18px; }
.create-section-title { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 700; color: var(--ink); margin: 0 0 4px; }
.create-section-title + p, .create-section-desc { color: var(--muted); font-size: 13.5px; margin: 0 0 16px; }
.step-num { width: 26px; height: 26px; border-radius: 50%; background: var(--primary); color: #fff; font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.summary-card { position: sticky; top: 84px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.summary-card h3 { font-size: 15px; margin-bottom: 14px; }
.summary-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; font-size: 13.5px; border-bottom: 1px dashed var(--line); }
.summary-row span:first-child { color: var(--muted); }
.summary-row span:last-child { font-weight: 600; color: var(--ink); text-align: right; }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0 16px; }
.summary-total span:first-child { font-weight: 600; }
.summary-total span:last-child { font-size: 24px; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }

/* ---------- progress / meters ---------- */
.progress { height: 8px; background: var(--line-2); border-radius: 99px; overflow: hidden; }
.progress-bar { height: 100%; background: var(--primary); border-radius: 99px; transition: width .6s ease; }
.progress-success .progress-bar, .progress-bar.progress-success { background: var(--success); }
.progress-warning .progress-bar, .progress-bar.progress-warning { background: #f59f00; }
.progress-danger .progress-bar, .progress-bar.progress-danger { background: var(--danger); }
.progress-indeterminate .progress-bar { width: 40% !important; animation: indet 1.4s ease-in-out infinite; }
@keyframes indet { 0% { transform: translateX(-100%); } 100% { transform: translateX(260%); } }
.meter { margin-bottom: 14px; }
.meter-label { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 6px; color: var(--muted); }
.meter-label strong { color: var(--ink); }

/* ---------- resource list ---------- */
.resource-list { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.resource-row { display: flex; align-items: center; gap: 16px; padding: 14px 18px; border-bottom: 1px solid var(--line-2); color: var(--text); transition: background .12s; }
.resource-row:last-child { border-bottom: 0; }
.resource-row:hover { background: #f9fbff; color: var(--text); }
.resource-icon { width: 38px; height: 38px; border-radius: 9px; background: var(--primary-50); color: var(--primary); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.resource-main { flex: 1; min-width: 0; }
.resource-name { font-weight: 700; color: var(--ink); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.resource-meta { font-size: 12.5px; color: var(--muted); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.resource-cols { display: flex; gap: 28px; font-size: 13px; color: var(--muted); }
.resource-cols strong { display: block; color: var(--ink); font-weight: 600; }
.resource-status { flex-shrink: 0; min-width: 110px; text-align: right; }
@media (max-width: 860px) { .resource-cols { display: none; } }

/* ---------- copy field / console ---------- */
.copy-field { display: flex; gap: 0; }
.copy-field .form-control { border-top-right-radius: 0; border-bottom-right-radius: 0; font-family: var(--mono); font-size: 13px; }
.copy-field .btn { border-top-left-radius: 0; border-bottom-left-radius: 0; height: 40px; }
.copy-field .btn + .btn { border-radius: 0; }
.copy-field .btn:last-child { border-top-right-radius: var(--radius-sm); border-bottom-right-radius: var(--radius-sm); }
.copy-field .form-control + .btn { margin-left: -1px; }
pre.console { background: #0b1220; color: #d1e3ff; font-family: var(--mono); font-size: 12.5px; line-height: 1.6; padding: 16px; border-radius: var(--radius-sm); overflow: auto; max-height: 460px; margin: 0; white-space: pre-wrap; word-break: break-word; }
pre.console .c-prompt { color: #4ade80; }
pre.console .c-err { color: #fca5a5; }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; z-index: 1100; background: rgba(8, 18, 38, .55); display: none; align-items: flex-start; justify-content: center; padding: 6vh 16px; overflow-y: auto; backdrop-filter: blur(2px); }
.modal.open { display: flex; animation: fadein .15s ease; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
.modal-dialog { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: 100%; max-width: 520px; animation: pop .18s ease; }
.modal-dialog.modal-lg { max-width: 820px; }
@keyframes pop { from { transform: translateY(10px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line-2); }
.modal-title { margin: 0; font-size: 17px; }
.modal-close { background: none; border: 0; font-size: 24px; line-height: 1; color: var(--faint); cursor: pointer; padding: 0 4px; }
.modal-close:hover { color: var(--ink); }
.modal-body { padding: 22px; }
.modal-footer { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 22px; border-top: 1px solid var(--line-2); background: #fbfcfe; border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
body.modal-open { overflow: hidden; }

/* ---------- dropdown ---------- */
.dropdown-menu { display: none; position: absolute; z-index: 900; min-width: 220px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 6px; margin-top: 6px; }
.dropdown-menu.open { display: block; animation: pop .12s ease; }
.dropdown-menu-right { right: 0; }
.dropdown-menu-block { left: 0; right: 0; }
.dropdown-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border-radius: 6px; color: var(--text); font: 500 14px var(--font); background: none; border: 0; text-align: left; cursor: pointer; }
.dropdown-item:hover { background: var(--line-2); color: var(--ink); }
.dropdown-item .icon { color: var(--muted); }
.dropdown-item span { display: flex; flex-direction: column; }
.dropdown-item small { color: var(--muted); font-weight: 400; }
.dropdown-divider { height: 1px; background: var(--line-2); margin: 6px 0; }
[data-dropdown-toggle] { position: relative; }

/* ---------- empty state ---------- */
.empty-state { text-align: center; padding: 48px 24px; }
.empty-icon { width: 64px; height: 64px; border-radius: 18px; margin: 0 auto 16px; background: var(--primary-50); color: var(--primary); display: flex; align-items: center; justify-content: center; }
.empty-icon .icon, .empty-icon i[data-lucide] { width: 30px; height: 30px; }
.empty-state h3 { margin-bottom: 6px; }
.empty-state p { color: var(--muted); max-width: 420px; margin: 0 auto 18px; }

/* ---------- pagination ---------- */
.pagination { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; padding: 14px 16px; }
.pagination-info { margin-right: auto; color: var(--muted); font-size: 13px; }
.page-link { min-width: 32px; height: 32px; padding: 0 8px; display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; border: 1px solid var(--line); background: #fff; color: var(--text); font-size: 13px; font-weight: 600; }
.page-link:hover { border-color: var(--primary); color: var(--primary); }
.page-link.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ---------- timeline / chat ---------- */
.timeline { position: relative; padding-left: 22px; }
.timeline::before { content: ''; position: absolute; left: 6px; top: 4px; bottom: 4px; width: 2px; background: var(--line); }
.timeline-item { position: relative; padding-bottom: 16px; }
.timeline-dot { position: absolute; left: -22px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--primary); }
.timeline-body { font-size: 13.5px; }
.timeline-body small { color: var(--muted); display: block; }
.chat { display: flex; flex-direction: column; gap: 14px; }
.chat-msg { max-width: 82%; align-self: flex-end; background: var(--primary-50); border: 1px solid var(--primary-100); border-radius: 14px 14px 4px 14px; padding: 12px 16px; }
.chat-msg.staff { align-self: flex-start; background: #fff; border-color: var(--line); border-radius: 14px 14px 14px 4px; }
.chat-meta { font-size: 12px; color: var(--muted); margin-bottom: 6px; display: flex; gap: 8px; align-items: center; }
.chat-meta strong { color: var(--ink); }
.chat-body { white-space: pre-wrap; word-break: break-word; font-size: 14px; }

/* =====================================================================
   App shell (client / admin / developer)
   ===================================================================== */
.app-shell { display: flex; min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--sidebar-w); background: var(--navy); color: #c3cfe4; display: flex; flex-direction: column; z-index: 1000; transition: transform .25s ease; }
.area-admin .sidebar { background: #0a1730; }
.area-developer .sidebar { background: #10131c; }
.sidebar-top { padding: 18px 18px 12px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sidebar-create { padding: 6px 14px 10px; position: relative; }
.sidebar-create .dropdown-menu { left: 14px; right: 14px; }
.sidebar-nav { flex: 1; overflow-y: auto; padding: 4px 10px 16px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.15) transparent; }
.nav-section { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #6f82a6; padding: 16px 10px 6px; }
.nav-item { display: flex; align-items: center; gap: 11px; padding: 8px 10px; margin: 1px 0; border-radius: 7px; color: #c3cfe4; font-weight: 500; font-size: 14px; transition: background .12s, color .12s; }
.nav-item:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav-item.active { background: color-mix(in srgb, var(--primary) 28%, transparent); color: #fff; box-shadow: inset 3px 0 0 var(--primary); }
.nav-item .icon { width: 17px; height: 17px; opacity: .9; }
.nav-count { margin-left: auto; background: var(--primary); color: #fff; font-size: 11px; font-weight: 700; border-radius: 99px; padding: 1px 7px; }
.sidebar-footer { padding: 14px 18px; border-top: 1px solid rgba(255,255,255,.07); font-size: 12px; color: #7f91b3; }
.sidebar-footer .powered-by strong { color: #c3cfe4; }
.area-pill { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 3px 8px; border-radius: 5px; background: rgba(255,255,255,.1); color: #fff; }
.area-pill-developer { background: #7c3aed; }
.area-pill-admin { background: var(--primary); }
.app-main { flex: 1; min-width: 0; margin-left: var(--sidebar-w); display: flex; flex-direction: column; min-height: 100vh; }
.topbar { position: sticky; top: 0; z-index: 800; height: 62px; background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 14px; padding: 0 28px; }
.topbar-burger { display: none; background: none; border: 0; cursor: pointer; padding: 6px; color: var(--ink); }
.topbar-search { flex: 1; max-width: 440px; display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; background: var(--bg); border: 1px solid transparent; border-radius: 8px; color: var(--muted); transition: border-color .15s, background .15s; }
.topbar-search:focus-within { background: #fff; border-color: var(--primary); }
.topbar-search input { flex: 1; border: 0; background: transparent; font: 14px var(--font); color: var(--ink); outline: none; min-width: 0; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.topbar-balance { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 13px; color: var(--ink); padding: 6px 10px; border-radius: 7px; background: var(--primary-50); }
.topbar-balance .icon { color: var(--primary); width: 16px; height: 16px; }
.topbar-user { position: relative; }
.avatar-btn { display: flex; align-items: center; gap: 10px; background: none; border: 0; cursor: pointer; padding: 4px 6px; border-radius: 8px; color: var(--muted); }
.avatar-btn:hover { background: var(--line-2); }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), #7c3aed); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; flex-shrink: 0; }
.avatar-meta { display: flex; flex-direction: column; text-align: left; line-height: 1.25; }
.avatar-meta strong { color: var(--ink); font-size: 13.5px; }
.avatar-meta small { color: var(--muted); font-size: 12px; }
.topbar-user .dropdown-menu { right: 0; }
.page { flex: 1; padding: 28px; width: 100%; max-width: 1440px; }
.app-footer { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 16px 28px; font-size: 12.5px; color: var(--faint); border-top: 1px solid var(--line); }
.page-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.page-title { font-size: 26px; font-weight: 800; margin: 0; letter-spacing: -.02em; }
.page-subtitle { color: var(--muted); margin: 6px 0 0; font-size: 14px; }
.page-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.back-link { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--muted); margin-bottom: 8px; font-weight: 500; }
.back-link:hover { color: var(--primary); }
.sidebar-backdrop { display: none; }

@media (max-width: 960px) {
  .sidebar { transform: translateX(-100%); box-shadow: var(--shadow-lg); }
  body.sidebar-open .sidebar { transform: none; }
  body.sidebar-open .sidebar-backdrop { display: block; position: fixed; inset: 0; z-index: 999; background: rgba(8,18,38,.45); }
  .app-main { margin-left: 0; }
  .topbar { padding: 0 16px; }
  .topbar-burger { display: inline-flex; }
  .avatar-meta { display: none; }
  .page { padding: 20px 16px; }
  .topbar-search { max-width: none; }
}
@media (max-width: 560px) { .topbar-balance { display: none; } .page-title { font-size: 22px; } }

/* ---------- brand ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; font-size: 19px; letter-spacing: -.02em; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 32px; height: 32px; border-radius: 9px; background: linear-gradient(135deg, var(--primary), #00c2ff); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 17px; font-weight: 800; box-shadow: 0 4px 12px color-mix(in srgb, var(--primary) 40%, transparent); }
.brand-light, .brand-light:hover { color: #fff; }
.brand-logo-img { height: 32px; width: auto; display: block; }
.powered-by { font-size: 12px; color: var(--faint); }
.powered-by strong { font-weight: 600; color: var(--muted); }

/* =====================================================================
   Public / marketing
   ===================================================================== */
.site-header { position: sticky; top: 0; z-index: 900; background: rgba(255,255,255,.9); backdrop-filter: saturate(1.5) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s, background .2s; }
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header-dark { background: rgba(3, 27, 78, .0); position: absolute; left: 0; right: 0; }
.site-header-dark.scrolled { position: fixed; background: rgba(3, 27, 78, .92); border-bottom-color: rgba(255,255,255,.08); }
.site-header-dark .site-nav-link, .site-header-dark .brand { color: #fff; }
.site-header-dark .nav-burger { color: #fff; }
.site-header-inner { height: 68px; display: flex; align-items: center; gap: 28px; }
.site-nav { display: flex; align-items: center; gap: 4px; flex: 1; }
.site-nav-item { position: relative; }
.site-nav-link { display: inline-flex; align-items: center; gap: 4px; padding: 8px 12px; border-radius: 6px; font: 500 15px var(--font); color: var(--text); background: none; border: 0; cursor: pointer; }
.site-nav-link:hover { color: var(--primary); }
.site-header-dark .site-nav-link:hover { color: #9cc3ff; }
.site-header-actions { display: flex; align-items: center; gap: 8px; }
.mega-menu { display: none; position: absolute; top: calc(100% + 8px); left: 0; width: 380px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 8px; }
.mega-menu.open, .has-mega:hover .mega-menu { display: block; }
.has-mega::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 10px; }
.mega-item { display: flex; gap: 12px; padding: 12px; border-radius: 10px; color: var(--text); }
.mega-item:hover { background: var(--bg); color: var(--text); }
.mega-item strong { display: block; color: var(--ink); }
.mega-item small { color: var(--muted); font-size: 13px; }
.mega-icon { width: 38px; height: 38px; border-radius: 10px; background: var(--primary-50); color: var(--primary); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.nav-burger { display: none; background: none; border: 0; cursor: pointer; padding: 6px; color: var(--ink); }
@media (max-width: 900px) {
  .site-nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: #fff; border-bottom: 1px solid var(--line); padding: 12px 16px 18px; box-shadow: var(--shadow); }
  .site-nav.open { display: flex; }
  .site-header-dark .site-nav .site-nav-link { color: var(--text); }
  .mega-menu { position: static; width: auto; box-shadow: none; border: 0; padding: 0 0 0 8px; }
  .nav-burger { display: inline-flex; }
  .site-header-actions .site-nav-link { display: none; }
}

.section { padding: 88px 0; }
.section-sm { padding: 56px 0; }
.section-alt { background: var(--bg); }
.section-dark { background: radial-gradient(1200px 500px at 80% -10%, rgba(0, 105, 255, .35), transparent 60%), var(--navy); color: #c6d4ee; }
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: #fff; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-head h2 { font-size: 38px; font-weight: 800; letter-spacing: -.025em; margin-bottom: 14px; }
.section-head p { font-size: 17px; color: var(--muted); }
.section-dark .section-head p { color: #a9bbdc; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--primary); margin-bottom: 12px; }
.section-dark .eyebrow { color: #6fb1ff; }

.hero { position: relative; overflow: hidden; background: radial-gradient(900px 520px at 85% 10%, rgba(0, 105, 255, .45), transparent 60%), radial-gradient(700px 400px at 0% 100%, rgba(0, 194, 255, .18), transparent 60%), var(--navy); color: #c6d4ee; padding: 150px 0 100px; }
.hero::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 75%); pointer-events: none; }
.hero-inner { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 99px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); color: #dce7ff; font-size: 13px; font-weight: 500; margin-bottom: 22px; }
.hero-badge b { background: var(--primary); color: #fff; padding: 2px 9px; border-radius: 99px; font-size: 12px; }
.hero-title { font-size: 56px; line-height: 1.05; font-weight: 800; letter-spacing: -.035em; color: #fff; margin-bottom: 20px; }
.hero-title em { font-style: normal; background: linear-gradient(90deg, #4da3ff, #00d4ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { font-size: 18px; color: #b3c3e0; max-width: 560px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-actions .btn-secondary { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.2); box-shadow: none; }
.hero-actions .btn-secondary:hover { background: rgba(255,255,255,.14); color: #fff; }
.hero-visual { position: relative; }
@media (max-width: 960px) { .hero { padding: 120px 0 72px; } .hero-inner { grid-template-columns: 1fr; } .hero-title { font-size: 40px; } .section { padding: 64px 0; } .section-head h2 { font-size: 30px; } }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .feature-grid { grid-template-columns: 1fr; } }
.feature-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #d3dceb; }
.feature-card h3 { font-size: 17px; margin: 0 0 8px; }
.feature-card p { color: var(--muted); margin: 0; font-size: 14.5px; }
.feature-icon { width: 46px; height: 46px; border-radius: 12px; background: var(--primary-50); color: var(--primary); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.section-dark .feature-card { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.1); }
.section-dark .feature-card p { color: #a9bbdc; }
.section-dark .feature-icon { background: rgba(0,105,255,.2); color: #7db8ff; }

.pricing-toggle { display: inline-flex; padding: 4px; border-radius: 99px; background: var(--line-2); border: 1px solid var(--line); gap: 2px; flex-wrap: wrap; justify-content: center; }
.pricing-toggle button, .pricing-toggle label { border: 0; background: none; padding: 8px 16px; border-radius: 99px; font: 600 13.5px var(--font); color: var(--muted); cursor: pointer; }
.pricing-toggle .active, .pricing-toggle input:checked + span { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.pricing-toggle .save { color: var(--success); font-size: 11.5px; margin-left: 4px; }
.pricing-table { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.pricing-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; padding: 14px 20px; background: #f8fafc; border-bottom: 1px solid var(--line); }
.pricing-table td { padding: 16px 20px; border-bottom: 1px solid var(--line-2); font-size: 15px; color: var(--ink); }
.pricing-table tr:last-child td { border-bottom: 0; }
.pricing-table tr:hover td { background: #f9fbff; }
.pricing-table .price { font-weight: 800; font-size: 17px; }
.pricing-table .price small { font-weight: 500; color: var(--muted); font-size: 12.5px; }

.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.plan-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px 24px; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.plan-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.plan-card.featured { border: 2px solid var(--primary); box-shadow: 0 16px 40px color-mix(in srgb, var(--primary) 18%, transparent); }
.plan-card.featured::before { content: attr(data-ribbon); position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--primary); color: #fff; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 4px 12px; border-radius: 99px; white-space: nowrap; }
.plan-card.featured:not([data-ribbon])::before { content: 'Populer'; }
.plan-name { font-size: 15px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.plan-price { font-size: 36px; font-weight: 800; color: var(--ink); letter-spacing: -.03em; margin: 10px 0 4px; line-height: 1.1; }
.plan-price small { font-size: 14px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan-specs { list-style: none; padding: 0; margin: 18px 0 24px; flex: 1; }
.plan-specs li { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 14.5px; color: var(--text); border-bottom: 1px dashed var(--line-2); }
.plan-specs li:last-child { border-bottom: 0; }
.plan-specs .icon { color: var(--primary); width: 16px; height: 16px; }
.plan-cta { margin-top: auto; }

.logo-cloud { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 40px; opacity: .75; }
.stat-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat-band-item { text-align: center; }
.stat-band-item strong { display: block; font-size: 40px; font-weight: 800; color: var(--ink); letter-spacing: -.03em; line-height: 1.1; }
.section-dark .stat-band-item strong { color: #fff; }
.stat-band-item span { color: var(--muted); font-size: 14.5px; }
@media (max-width: 760px) { .stat-band { grid-template-columns: repeat(2, 1fr); } }

.cta-band { border-radius: 24px; padding: 56px; background: radial-gradient(600px 300px at 90% 0%, rgba(0,194,255,.35), transparent 60%), linear-gradient(135deg, var(--primary), #0041b8); color: #e2edff; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; box-shadow: 0 24px 60px color-mix(in srgb, var(--primary) 30%, transparent); }
.cta-band h2 { color: #fff; font-size: 32px; margin-bottom: 8px; letter-spacing: -.02em; }
.cta-band p { margin: 0; font-size: 16px; }
.cta-band .btn-secondary { background: #fff; color: var(--primary); border: 0; }
@media (max-width: 640px) { .cta-band { padding: 32px 24px; } .cta-band h2 { font-size: 24px; } }

.faq { max-width: 820px; margin: 0 auto; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; margin-bottom: 10px; overflow: hidden; }
.faq-item summary { list-style: none; cursor: pointer; padding: 18px 22px; font-weight: 600; color: var(--ink); font-size: 15.5px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 22px; color: var(--primary); font-weight: 400; transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-body { padding: 0 22px 18px; color: var(--muted); }

.domain-search { display: flex; gap: 0; background: #fff; border-radius: 14px; padding: 6px; box-shadow: var(--shadow-lg); max-width: 720px; margin: 0 auto; border: 1px solid var(--line); }
.domain-search input { flex: 1; border: 0; outline: none; font: 500 17px var(--font); padding: 0 16px; min-width: 0; color: var(--ink); background: transparent; }
.domain-search .btn { height: 50px; padding: 0 26px; }
.tld-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 20px; }
.tld-chip { display: inline-flex; align-items: baseline; gap: 8px; padding: 8px 14px; border-radius: 99px; background: #fff; border: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }
.tld-chip strong { color: var(--ink); font-size: 15px; }
.section-dark .tld-chip { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); color: #a9bbdc; }
.section-dark .tld-chip strong { color: #fff; }

.prose { color: var(--text); font-size: 15.5px; line-height: 1.75; }
.prose h1, .prose h2, .prose h3 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin-bottom: .4em; }
.prose a { text-decoration: underline; }
.page-hero { padding: 64px 0 48px; background: var(--bg); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: 40px; font-weight: 800; letter-spacing: -.03em; }
.page-hero p { color: var(--muted); font-size: 17px; max-width: 640px; }

.terminal { background: #0b1220; border-radius: 14px; box-shadow: 0 30px 80px rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.08); overflow: hidden; font-family: var(--mono); font-size: 13px; }
.terminal-bar { display: flex; gap: 7px; padding: 12px 14px; background: rgba(255,255,255,.04); border-bottom: 1px solid rgba(255,255,255,.06); }
.terminal-bar span { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.terminal-bar span:nth-child(2) { background: #febc2e; }
.terminal-bar span:nth-child(3) { background: #28c840; }
.terminal-body { padding: 18px 20px; color: #cfe0ff; line-height: 1.8; white-space: pre-wrap; }
.terminal-body .t-g { color: #4ade80; } .terminal-body .t-b { color: #7db8ff; } .terminal-body .t-m { color: #6b7d99; } .terminal-body .t-y { color: #fcd34d; }

.site-main { min-height: 50vh; }
.site-footer { background: var(--navy); color: #a9bbdc; padding: 64px 0 28px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid h4 { color: #fff; font-size: 14px; margin-bottom: 14px; }
.footer-grid a { display: block; color: #a9bbdc; padding: 4px 0; }
.footer-grid a:hover { color: #fff; }
.footer-brand p { margin: 14px 0; max-width: 320px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.08); margin-top: 40px; padding-top: 22px; font-size: 13px; }
.site-footer .powered-by { color: #8ea2c6; }
.site-footer .powered-by strong { color: #fff; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ---------- auth ---------- */
.auth-wrap { display: grid; grid-template-columns: minmax(360px, 44%) 1fr; min-height: 100vh; }
.auth-side { background: radial-gradient(700px 400px at 100% 0%, rgba(0,105,255,.5), transparent 60%), var(--navy); color: #b3c3e0; padding: 40px 48px; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; position: relative; overflow: hidden; }
.auth-side::after { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 40px 40px; pointer-events: none; }
.auth-side > * { position: relative; z-index: 1; }
.auth-side-copy h2 { color: #fff; font-size: 34px; font-weight: 800; letter-spacing: -.03em; line-height: 1.15; }
.auth-side-copy p { font-size: 16px; }
.auth-points { list-style: none; padding: 0; margin: 24px 0 0; }
.auth-points li { display: flex; gap: 10px; align-items: center; padding: 6px 0; color: #dbe6fb; }
.auth-points .icon { color: #4ade80; }
.auth-side .powered-by { color: #8ea2c6; }
.auth-side .powered-by strong { color: #fff; }
.auth-main { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 24px; background: #fff; }
.auth-card { width: 100%; max-width: 420px; }
.auth-title { font-size: 28px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 6px; }
.auth-sub { color: var(--muted); margin-bottom: 28px; }
.auth-alt { text-align: center; margin-top: 22px; color: var(--muted); font-size: 14px; }
.auth .flash-stack { position: static; width: 100%; max-width: 420px; margin-bottom: 8px; }
@media (max-width: 860px) { .auth-wrap { grid-template-columns: 1fr; } .auth-side { display: none; } }

.maintenance-wrap, .error-page { min-height: 70vh; display: flex; align-items: center; justify-content: center; }
.maintenance-wrap { min-height: 100vh; background: var(--bg); padding: 24px; }
.maintenance-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 40px; max-width: 520px; text-align: center; box-shadow: var(--shadow); }
.maintenance-card .brand { margin-bottom: 24px; }
.error-code { font-size: 96px; font-weight: 800; letter-spacing: -.05em; line-height: 1; background: linear-gradient(135deg, var(--primary), #00c2ff); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 12px; }

/* ---------- misc components ---------- */
.info-box { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--radius); background: var(--primary-50); border: 1px solid var(--primary-100); color: var(--text); font-size: 13.5px; }
.info-box .icon { color: var(--primary); margin-top: 2px; }
.list-plain { list-style: none; padding: 0; margin: 0; }
.list-plain li { padding: 8px 0; border-bottom: 1px solid var(--line-2); }
.list-plain li:last-child { border-bottom: 0; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 6px; background: var(--line-2); font-size: 12.5px; color: var(--text); font-weight: 500; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--faint); }
.dot-success { background: var(--success); box-shadow: 0 0 0 3px var(--success-bg); }
.dot-danger { background: var(--danger); box-shadow: 0 0 0 3px var(--danger-bg); }
.dot-warning { background: #f59f00; box-shadow: 0 0 0 3px var(--warning-bg); }
.qr-box { display: inline-flex; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.qr-box img, .qr-box canvas { display: block; }
.amount-big { font-size: 30px; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--primary); animation: spin .7s linear infinite; display: inline-block; vertical-align: middle; }
.chart-box { position: relative; height: 240px; }
.skeleton { background: linear-gradient(90deg, #eef2f7 25%, #f6f8fb 37%, #eef2f7 63%); background-size: 400% 100%; animation: shimmer 1.4s ease infinite; border-radius: 6px; }
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

@media print {
  .sidebar, .topbar, .app-footer, .page-actions, .no-print, .flash-stack { display: none !important; }
  .app-main { margin: 0; }
  body { background: #fff; }
}
