[hidden] { display: none !important; }
:root {
  --kp-green: #0e6b5c;
  --kp-green-dark: #094a40;
  --kp-green-50: #e8f4f1;
  --kp-gold: #e2a33a;
  --kp-gold-50: #fdf4e3;
  --ink: #17201e;
  --ink-2: #4c5856;
  --ink-3: #7d8886;
  --line: #e4e8e6;
  --line-2: #d3d9d7;
  --bg: #f6f7f5;
  --card: #ffffff;
  --danger: #c2412d;
  --danger-50: #fcece9;
  --warn: #a86a06;
  --warn-50: #fdf3e0;
  --ok: #1f7a4d;
  --ok-50: #e7f5ec;
  --radius: 10px;
  --radius-lg: 14px;
  --shadow: 0 1px 2px rgba(16, 24, 22, .05), 0 4px 16px rgba(16, 24, 22, .04);
  --sidebar: 248px;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font-size: 14.5px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: var(--kp-green); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; letter-spacing: -.01em; }
h1 { font-size: 22px; font-weight: 750; }
h2 { font-size: 17px; font-weight: 700; }
h3 { font-size: 15px; font-weight: 700; }
p { margin: 0; }
small, .muted { color: var(--ink-3); }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; background: #eef1f0; padding: 2px 6px; border-radius: 5px; }
img { max-width: 100%; }

/* ---------- Layout ---------- */
.app { display: grid; grid-template-columns: var(--sidebar) 1fr; min-height: 100vh; }
.sidebar { background: #10221f; color: #c9d6d3; padding: 18px 14px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 18px; overflow-y: auto; }
.brandmark { display: flex; align-items: center; gap: 10px; padding: 4px 8px; color: #fff; font-weight: 800; font-size: 18px; letter-spacing: -.02em; }
.brandmark:hover { text-decoration: none; }
.brandmark .logo-dot { width: 32px; height: 32px; border-radius: 9px; background: var(--kp-gold); display: grid; place-items: center; color: #10221f; font-weight: 900; font-size: 15px; }
.brandmark span b { color: var(--kp-gold); font-weight: 800; }
.tenant-switch select { width: 100%; background: #1a302c; color: #fff; border: 1px solid #2a4440; border-radius: 9px; padding: 9px 10px; font: inherit; font-size: 13.5px; }
.tenant-switch label { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #7f9a95; margin: 0 4px 6px; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-title { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #6f8a85; margin: 14px 10px 6px; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; color: #c9d6d3; font-weight: 550; font-size: 14px; }
.nav a:hover { background: #1a302c; color: #fff; text-decoration: none; }
.nav a.active { background: var(--kp-green); color: #fff; }
.nav svg { width: 18px; height: 18px; flex: none; opacity: .9; }
.sidebar-foot { margin-top: auto; border-top: 1px solid #223935; padding-top: 12px; font-size: 13px; }
.sidebar-foot .who { color: #fff; font-weight: 650; }
.sidebar-foot .who small { display: block; color: #7f9a95; font-weight: 500; }
.sidebar-foot form { margin-top: 8px; }
.sidebar-foot button { background: none; border: 0; color: #9fb5b0; padding: 0; cursor: pointer; font: inherit; font-size: 13px; }
.sidebar-foot button:hover { color: #fff; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { display: none; }
.content { padding: 28px 32px 60px; max-width: 1280px; width: 100%; }
.content.wide { max-width: none; padding: 0; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head p { color: var(--ink-2); margin-top: 4px; }

/* ---------- Components ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.card-body { padding: 20px; }
.card-head { padding: 16px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.grid { display: grid; gap: 16px; }
.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)); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.spacer { flex: 1; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 16px; border-radius: 9px; border: 1px solid transparent; font: inherit; font-weight: 650; font-size: 14px; cursor: pointer; line-height: 1.2; white-space: nowrap; transition: background .15s, border-color .15s, color .15s; }
.btn:hover { text-decoration: none; }
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--kp-green); color: #fff; }
.btn-primary:hover { background: var(--kp-green-dark); }
.btn-gold { background: var(--kp-gold); color: #2b1d04; }
.btn-gold:hover { background: #cf912a; }
.btn-ghost { background: #fff; border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink-3); }
.btn-danger { background: #fff; border-color: #efc6bf; color: var(--danger); }
.btn-danger:hover { background: var(--danger-50); }
.btn-sm { padding: 6px 11px; font-size: 13px; border-radius: 8px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.link-btn { background: none; border: 0; color: var(--kp-green); padding: 0; font: inherit; cursor: pointer; }
.link-btn.danger { color: var(--danger); }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .label { font-weight: 650; font-size: 13px; color: var(--ink); }
.field .hint { font-size: 12.5px; color: var(--ink-3); }
.input, .select, .textarea { width: 100%; border: 1px solid var(--line-2); background: #fff; border-radius: 9px; padding: 9px 12px; font: inherit; font-size: 14px; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--kp-green); box-shadow: 0 0 0 3px rgba(14, 107, 92, .14); }
.textarea { min-height: 90px; resize: vertical; }
.textarea.code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; line-height: 1.5; min-height: 260px; tab-size: 2; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.check { display: flex; align-items: center; gap: 8px; font-size: 14px; }

.alert { padding: 12px 14px; border-radius: 10px; font-size: 14px; border: 1px solid; margin-bottom: 18px; }
.alert-success { background: var(--ok-50); border-color: #bfe3cd; color: #14532f; }
.alert-error { background: var(--danger-50); border-color: #efc6bf; color: #7d2516; }
.alert-warning { background: var(--warn-50); border-color: #f0d6a3; color: #6e4604; }
.alert-info { background: var(--kp-green-50); border-color: #bfdcd5; color: #0b4c42; }

.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 650; background: #eef1f0; color: var(--ink-2); }
.badge-queued { background: #eef1f0; color: #4c5856; }
.badge-processing { background: var(--warn-50); color: var(--warn); }
.badge-done { background: var(--ok-50); color: var(--ok); }
.badge-failed { background: var(--danger-50); color: var(--danger); }
.badge-gold { background: var(--kp-gold-50); color: #8a5a0c; }
.badge-green { background: var(--kp-green-50); color: var(--kp-green); }
.badge-processing::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: .3; } }

.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); font-weight: 650; padding: 10px 16px; border-bottom: 1px solid var(--line); background: #fafbfa; }
.table td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table-wrap { overflow-x: auto; }

.stat { padding: 18px 20px; }
.stat .k { font-size: 12.5px; color: var(--ink-3); font-weight: 600; }
.stat .v { font-size: 26px; font-weight: 800; letter-spacing: -.02em; margin-top: 4px; }
.stat .s { font-size: 12.5px; color: var(--ink-2); margin-top: 2px; }

.empty { text-align: center; padding: 48px 20px; color: var(--ink-2); }
.empty h3 { margin-bottom: 6px; color: var(--ink); }
.empty .btn { margin-top: 14px; }

/* ---------- Template picker ---------- */
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.chip { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; color: var(--ink-2); font-weight: 600; font-size: 13px; }
.chip:hover { text-decoration: none; border-color: var(--ink-3); }
.chip.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.tpl-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.tpl-card:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(16, 24, 22, .09); }
.tpl-thumb { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: #eef1f0; }
.tpl-thumb iframe { position: absolute; top: 0; left: 0; width: 1080px; height: 1080px; border: 0; transform-origin: 0 0; pointer-events: none; }
.tpl-info { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.tpl-info p { font-size: 13px; color: var(--ink-2); }
.tpl-info form { margin-top: auto; padding-top: 8px; }

/* ---------- Design list ---------- */
.design-list .title { font-weight: 650; color: var(--ink); }

/* ---------- Editor ---------- */
.editor { display: grid; grid-template-columns: 400px 1fr; height: 100vh; }
.editor-panel { background: #fff; border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.editor-head { padding: 14px 18px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.editor-head .crumb { font-size: 12.5px; color: var(--ink-3); display: flex; gap: 6px; align-items: center; }
.editor-head .title-input { border: 1px solid transparent; font-weight: 750; font-size: 17px; padding: 4px 6px; margin-left: -6px; border-radius: 7px; width: 100%; font-family: inherit; color: var(--ink); }
.editor-head .title-input:hover { border-color: var(--line); }
.editor-head .title-input:focus { outline: none; border-color: var(--kp-green); }
.editor-fields { flex: 1; overflow-y: auto; padding: 16px 18px 24px; display: flex; flex-direction: column; gap: 16px; }
.editor-foot { border-top: 1px solid var(--line); padding: 14px 18px; display: flex; flex-direction: column; gap: 10px; background: #fafbfa; }
.save-state { font-size: 12.5px; color: var(--ink-3); }
.save-state.dirty { color: var(--warn); }
.editor-stage { display: flex; flex-direction: column; min-width: 0; background: #e9ecea; background-image: radial-gradient(#d6dbd8 1px, transparent 1px); background-size: 18px 18px; }
.stage-bar { display: flex; align-items: center; gap: 10px; padding: 12px 20px; background: rgba(255, 255, 255, .85); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.size-tabs { display: flex; background: #eef1f0; border-radius: 10px; padding: 3px; gap: 2px; }
.size-tabs button { border: 0; background: none; padding: 6px 12px; border-radius: 8px; font: inherit; font-size: 13px; font-weight: 650; color: var(--ink-2); cursor: pointer; }
.size-tabs button.active { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }
.stage { flex: 1; display: grid; place-items: center; padding: 28px; min-height: 0; overflow: hidden; position: relative; }
.frame-wrap { position: relative; box-shadow: 0 18px 50px rgba(16, 24, 22, .22); border-radius: 4px; overflow: hidden; background: #fff; }
.frame-wrap iframe { position: absolute; top: 0; left: 0; border: 0; transform-origin: 0 0; background: #fff; }
.stage-loading { position: absolute; top: 14px; right: 18px; font-size: 12px; color: var(--ink-3); opacity: 0; transition: opacity .2s; }
.stage-loading.on { opacity: 1; }

.img-field { display: flex; gap: 12px; align-items: center; }
.img-field .preview { width: 64px; height: 64px; border-radius: 9px; border: 1px dashed var(--line-2); background: #f4f6f5 center/cover no-repeat; flex: none; display: grid; place-items: center; color: var(--ink-3); font-size: 11px; }
.img-field .actions { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.img-field input[type=file] { display: none; }
.color-field { display: flex; gap: 8px; align-items: center; }
.color-field input[type=color] { width: 44px; height: 38px; border: 1px solid var(--line-2); border-radius: 9px; padding: 3px; background: #fff; cursor: pointer; }

.render-box { display: flex; flex-direction: column; gap: 10px; }
.render-box .formats { display: flex; gap: 6px; }
.render-box .formats label { flex: 1; }
.render-box .formats input { display: none; }
.render-box .formats span { display: block; text-align: center; padding: 7px 0; border: 1px solid var(--line-2); border-radius: 8px; font-weight: 650; font-size: 13px; cursor: pointer; background: #fff; }
.render-box .formats input:checked + span { border-color: var(--kp-green); background: var(--kp-green-50); color: var(--kp-green); }
.render-sizes { display: flex; gap: 6px; flex-wrap: wrap; font-size: 13px; }
.render-sizes label { display: flex; align-items: center; gap: 5px; padding: 5px 9px; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; }

.toast-area { position: fixed; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 10px; z-index: 100; max-width: 360px; }
.toast { background: #10221f; color: #fff; padding: 12px 14px; border-radius: 12px; box-shadow: 0 12px 32px rgba(0, 0, 0, .25); font-size: 13.5px; display: flex; gap: 12px; align-items: center; animation: slidein .2s ease-out; }
.toast img { width: 46px; height: 46px; object-fit: cover; border-radius: 7px; background: #fff; }
.toast a { color: var(--kp-gold); font-weight: 700; }
.toast.error { background: #6e1f13; }
@keyframes slidein { from { transform: translateY(10px); opacity: 0; } }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.g-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; }
.g-thumb { aspect-ratio: 1 / 1; background: #eef1f0 center/contain no-repeat; display: grid; place-items: center; color: var(--ink-3); font-size: 13px; position: relative; }
.g-thumb .fmt { position: absolute; top: 8px; left: 8px; }
.g-body { padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.g-body .t { font-weight: 650; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-body .m { font-size: 12px; color: var(--ink-3); }
.g-actions { display: flex; gap: 6px; padding: 0 14px 14px; flex-wrap: wrap; }

/* ---------- Brand ---------- */
.brand-preview { border-radius: var(--radius-lg); padding: 24px; color: #fff; display: flex; flex-direction: column; gap: 14px; min-height: 220px; justify-content: space-between; }
.brand-preview .logo { height: 46px; width: auto; object-fit: contain; align-self: flex-start; }
.brand-preview h3 { font-size: 26px; line-height: 1.1; }
.swatches { display: flex; gap: 8px; }
.swatches span { width: 28px; height: 28px; border-radius: 8px; border: 2px solid rgba(255, 255, 255, .7); }
.logo-slot { display: flex; gap: 14px; align-items: center; }
.logo-slot .box { width: 110px; height: 70px; border: 1px dashed var(--line-2); border-radius: 10px; display: grid; place-items: center; padding: 8px; flex: none; }
.logo-slot .box.dark { background: #1d2a28; }
.logo-slot .box img { max-height: 100%; max-width: 100%; object-fit: contain; }

/* ---------- Auth ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.auth-art { background: #10221f; color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth-art::after { content: ''; position: absolute; width: 520px; height: 520px; right: -160px; bottom: -160px; border-radius: 50%; border: 70px solid rgba(226, 163, 58, .14); }
.auth-art h1 { font-size: 40px; line-height: 1.1; max-width: 460px; font-weight: 800; letter-spacing: -.03em; }
.auth-art h1 em { font-style: normal; color: var(--kp-gold); }
.auth-art p { color: #a9bdb8; max-width: 420px; margin-top: 14px; font-size: 15.5px; }
.auth-art .pills { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 26px; }
.auth-art .pills span { border: 1px solid #2f4b46; padding: 6px 12px; border-radius: 999px; font-size: 13px; color: #d4e0dd; }
.auth-form { display: grid; place-items: center; padding: 40px 24px; }
.auth-form .box { width: 100%; max-width: 400px; }
.auth-form.wide .box { max-width: 640px; }
.auth-form h2 { font-size: 24px; margin-bottom: 6px; }

.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: 13.5px; }
.checklist li { display: flex; gap: 8px; align-items: center; }
.checklist .ok { color: var(--ok); font-weight: 800; }
.checklist .no { color: var(--danger); font-weight: 800; }
.checklist .opt { color: var(--warn); font-weight: 800; }
.secret { font-family: ui-monospace, Menlo, monospace; background: #10221f; color: #f6d79a; padding: 12px 14px; border-radius: 10px; word-break: break-all; font-size: 13px; }
pre.secret { white-space: pre-wrap; }

.error-page { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 24px; }
.error-page .code { font-size: 64px; font-weight: 800; color: var(--kp-green); letter-spacing: -.04em; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .editor { grid-template-columns: 340px 1fr; }
}
@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: 270px; z-index: 50; transform: translateX(-100%); transition: transform .2s; }
  body.nav-open .sidebar { transform: none; box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .4); }
  .topbar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: #10221f; color: #fff; position: sticky; top: 0; z-index: 40; }
  .topbar button { background: none; border: 0; color: #fff; padding: 4px; cursor: pointer; }
  .topbar .brandmark { font-size: 16px; padding: 0; }
  .content { padding: 20px 16px 48px; }
  .grid-2, .grid-3, .form-grid { grid-template-columns: 1fr; }
  .editor { grid-template-columns: 1fr; height: auto; }
  .editor-panel { border-right: 0; order: 2; }
  .editor-stage { order: 1; min-height: 52vh; }
  .stage-bar { padding: 10px 12px; }
  .size-tabs { max-width: 100%; overflow-x: auto; }
  .size-tabs button { white-space: nowrap; }
  .topbar .brandmark { gap: 0; }
  .editor-fields { overflow: visible; }
  .auth { grid-template-columns: 1fr; }
  .auth-art { display: none; }
}

/* ---------- v2: modal, AI, gallery, audio, progress, billing, social ---------- */
.modal-backdrop { position: fixed; inset: 0; background: rgba(12, 20, 18, .55); z-index: 200; display: grid; place-items: center; padding: 20px; animation: fadein .15s; }
.modal { background: #fff; border-radius: var(--radius-lg); width: 100%; max-width: 560px; max-height: calc(100vh - 40px); display: flex; flex-direction: column; box-shadow: 0 24px 60px rgba(0, 0, 0, .3); }
.modal.wide { max-width: 820px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.modal-x { background: none; border: 0; font-size: 26px; line-height: 1; cursor: pointer; color: var(--ink-3); padding: 0 4px; }
.modal-body { padding: 18px 20px 20px; overflow-y: auto; }
@keyframes fadein { from { opacity: 0; } }
.asset-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.asset-tile { aspect-ratio: 1; border: 1px solid var(--line); border-radius: 10px; background: #eef1f0 center/cover no-repeat; cursor: pointer; }
.asset-tile:hover { outline: 3px solid var(--kp-green); outline-offset: 1px; }
.asset-list { display: flex; flex-direction: column; gap: 6px; }
.asset-row { display: flex; justify-content: space-between; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; background: #fff; cursor: pointer; font: inherit; text-align: left; }
.asset-row:hover { border-color: var(--kp-green); }
.ai-panel { background: var(--kp-gold-50); border: 1px solid #f0d6a3; border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.ai-panel[hidden] { display: none; }
.audio-field { display: flex; flex-direction: column; gap: 8px; }
.audio-field input[type=file] { display: none; }
.audio-field .audio-name { font-size: 13px; color: var(--ink-2); padding: 8px 10px; background: #f4f6f5; border-radius: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.audio-field audio { width: 100%; height: 36px; }
.toast-link { display: inline-block; margin-right: 12px; margin-top: 2px; color: var(--kp-gold) !important; font-weight: 700; background: none; border: 0; padding: 0; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; }
.progress { height: 8px; background: #eef1f0; border-radius: 999px; overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--kp-green); border-radius: 999px; transition: width .4s; }
.progress.warn span { background: var(--kp-gold); }
.progress.danger span { background: var(--danger); }
.check.disabled { opacity: .5; }
.g-thumb video { width: 100%; height: 100%; object-fit: contain; background: #10221f; }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.plan-card { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; background: #fff; display: flex; flex-direction: column; gap: 10px; position: relative; }
.plan-card.current { border-color: var(--kp-green); box-shadow: 0 0 0 3px rgba(14, 107, 92, .12); }
.plan-card .price { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.plan-card .price small { font-size: 13px; font-weight: 500; color: var(--ink-3); }
.plan-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: 13.5px; color: var(--ink-2); }
.plan-card ul li::before { content: '✓'; color: var(--kp-green); font-weight: 800; margin-right: 8px; }
.plan-card form { margin-top: auto; }
.usage-row { display: grid; grid-template-columns: 130px 1fr 110px; gap: 12px; align-items: center; font-size: 13.5px; }
.platform-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: #eef1f0; color: var(--ink-2); }
.platform-instagram { background: #fbe9f1; color: #a2245a; }
.platform-facebook { background: #e7effc; color: #1b4fa8; }
.platform-threads { background: #ececec; color: #1a1a1a; }
.platform-whatsapp { background: #e4f6ea; color: #17733e; }
.platform-demo { background: var(--kp-gold-50); color: #8a5a0c; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.tabs a { padding: 10px 14px; font-weight: 650; color: var(--ink-2); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a:hover { text-decoration: none; color: var(--ink); }
.tabs a.active { color: var(--kp-green); border-bottom-color: var(--kp-green); }
.invoice-amount { font-size: 34px; font-weight: 800; letter-spacing: -.02em; color: var(--kp-green); }
.invoice-amount mark { background: var(--kp-gold-50); color: #8a5a0c; padding: 0 4px; border-radius: 6px; }
@media (max-width: 860px) { .usage-row { grid-template-columns: 1fr; gap: 4px; } }
.plan-card .price small { white-space: nowrap; }
.qris-auto { border-color: #bfdcd5; }
.qris-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 24px; align-items: center; }
.qris-box { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.qris-code { width: 260px; height: 260px; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: 14px; display: grid; place-items: center; }
.qris-code svg { width: 100%; height: 100%; }
.qris-timer { font-weight: 700; color: var(--kp-green); font-variant-numeric: tabular-nums; }
.qris-amount { display: flex; flex-direction: column; gap: 6px; }
@media (max-width: 860px) { .qris-grid { grid-template-columns: 1fr; } .qris-box { order: -1; } }
