/* SATU FILE CSS untuk seluruh aplikasi: tokens -> komponen -> website publik -> dashboard/portal -> print. */

/* ######################## base.css ######################## */
/* =====================================================================
   BASE - design tokens, reset, tipografi, utilitas
   Font: Plus Jakarta Sans · Gaya: clean, professional, premium, minimal
   ===================================================================== */
:root {
  /* Brand */
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --primary-active: #3730a3;
  --primary-soft: #eef2ff;
  --primary-soft-2: #e0e7ff;
  --primary-text: #3730a3;
  --primary-ring: rgba(79, 70, 229, 0.28);
  --accent: #06b6d4;
  --accent-2: #8b5cf6;

  /* Neutral (slate) */
  --bg: #f6f7fb;
  --bg-subtle: #f1f3f9;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --surface-3: #f1f5f9;
  --border: #e4e7ef;
  --border-strong: #d3d8e3;
  --text: #0f172a;
  --text-2: #334155;
  --text-muted: #5c667a;
  --text-subtle: #626f83;
  --text-inverse: #ffffff;

  /* Semantik */
  --success: #16a34a; --success-soft: #dcfce7; --success-text: #166534;
  --warning: #d97706; --warning-soft: #fef3c7; --warning-text: #92400e;
  --danger: #dc2626;  --danger-soft: #fee2e2;  --danger-text: #991b1b;
  --info: #0284c7;    --info-soft: #e0f2fe;    --info-text: #075985;
  --purple: #7c3aed;  --purple-soft: #ede9fe;  --purple-text: #5b21b6;
  --neutral: #64748b; --neutral-soft: #f1f5f9; --neutral-text: #334155;

  /* Spasi */
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 20px;
  --space-6: 24px; --space-8: 32px; --space-10: 40px; --space-12: 48px; --space-16: 64px;
  --space-20: 80px; --space-24: 96px;

  /* Radius & bayangan */
  --radius-sm: 6px; --radius: 10px; --radius-lg: 14px; --radius-xl: 20px; --radius-full: 999px;
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.07), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 6px 16px -4px rgba(15, 23, 42, 0.1), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 16px 40px -12px rgba(15, 23, 42, 0.22);
  --shadow-xl: 0 28px 64px -16px rgba(15, 23, 42, 0.3);

  /* Tipografi */
  --font-sans: 'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;
  --text-xs: 12px; --text-sm: 13px; --text-base: 14px; --text-md: 15px; --text-lg: 17px;
  --text-xl: 20px; --text-2xl: 24px; --text-3xl: 30px; --text-4xl: 38px; --text-5xl: 48px; --text-6xl: 60px;

  /* Layout */
  --container: 1200px;
  --sidebar-w: 264px;
  --topbar-h: 64px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --duration: 160ms;
  color-scheme: light;
}

/* ----- Reset ----- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-hover); }
h1, h2, h3, h4, h5, h6 { margin: 0; line-height: 1.25; font-weight: 700; letter-spacing: -0.015em; color: var(--text); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
table { border-collapse: collapse; width: 100%; }
hr { border: 0; border-top: 1px solid var(--border); margin: var(--space-6) 0; }
code, kbd, pre { font-family: var(--font-mono); font-size: 0.92em; }
[hidden] { display: none !important; }
::selection { background: var(--primary-soft-2); color: var(--primary-active); }

:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 4px; }

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

/* ----- Ikon ----- */
.icon { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; vertical-align: middle; }
.icon-xs { width: 14px; height: 14px; }
.icon-sm { width: 16px; height: 16px; }
.icon-lg { width: 22px; height: 22px; }
.icon-xl { width: 28px; height: 28px; }
.icon-2xl { width: 40px; height: 40px; stroke-width: 1.6; }
.spin { animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ----- Utilitas layout ----- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--space-4); }
@media (min-width: 640px) { .container { padding-inline: var(--space-6); } }
.stack { display: flex; flex-direction: column; gap: var(--gap, var(--space-4)); }
.stack-sm { --gap: var(--space-2); }
.stack-lg { --gap: var(--space-8); }
.cluster { display: flex; flex-wrap: wrap; align-items: center; gap: var(--gap, var(--space-3)); }
.row { display: flex; align-items: center; gap: var(--gap, var(--space-3)); }
.between { justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1 1 auto; min-width: 0; }
.grid { display: grid; gap: var(--gap, var(--space-4)); }
.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-auto { grid-template-columns: repeat(auto-fill, minmax(var(--min, 240px), 1fr)); }
@media (max-width: 1024px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); } }
.mt-1 { margin-top: var(--space-1); } .mt-2 { margin-top: var(--space-2); } .mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); } .mt-6 { margin-top: var(--space-6); } .mt-8 { margin-top: var(--space-8); }
.mb-2 { margin-bottom: var(--space-2); } .mb-4 { margin-bottom: var(--space-4); } .mb-6 { margin-bottom: var(--space-6); }
.w-full { width: 100%; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.nowrap { white-space: nowrap; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.muted { color: var(--text-muted); }
.subtle { color: var(--text-subtle); }
.small { font-size: var(--text-sm); }
.xsmall { font-size: var(--text-xs); }
.strong { font-weight: 600; }
.mono { font-family: var(--font-mono); font-size: 0.9em; }
.tabular { font-variant-numeric: tabular-nums; }
.text-success { color: var(--success); } .text-danger { color: var(--danger); } .text-warning { color: var(--warning); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: var(--space-4); top: -48px; z-index: 1000; padding: var(--space-2) var(--space-4); background: var(--text); color: #fff; border-radius: var(--radius); }
.skip-link:focus { top: var(--space-4); color: #fff; }
.divider { height: 1px; background: var(--border); border: 0; margin: var(--space-4) 0; }
.scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ######################## components.css ######################## */
/* =====================================================================
   COMPONENTS - dipakai bersama oleh situs publik, dashboard, dan portal
   ===================================================================== */

/* ----- Button ----- */
.btn {
  --btn-bg: var(--surface); --btn-fg: var(--text); --btn-border: var(--border-strong); --btn-hover: var(--surface-3);
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 38px; padding: 0 var(--space-4);
  font-size: var(--text-sm); font-weight: 600; line-height: 1; white-space: nowrap;
  color: var(--btn-fg); background: var(--btn-bg); border: 1px solid var(--btn-border); border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
  transition: background var(--duration) var(--ease), border-color var(--duration) var(--ease), color var(--duration) var(--ease), box-shadow var(--duration) var(--ease), transform var(--duration) var(--ease);
  text-decoration: none; user-select: none;
}
.btn:hover { background: var(--btn-hover); color: var(--btn-fg); }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled='true'] { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn-primary { --btn-bg: var(--primary); --btn-fg: #fff; --btn-border: var(--primary); --btn-hover: var(--primary-hover); box-shadow: 0 1px 2px rgba(79, 70, 229, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.12); }
.btn-danger { --btn-bg: var(--danger); --btn-fg: #fff; --btn-border: var(--danger); --btn-hover: #b91c1c; }
.btn-success { --btn-bg: var(--success); --btn-fg: #fff; --btn-border: var(--success); --btn-hover: #15803d; }
.btn-soft { --btn-bg: var(--primary-soft); --btn-fg: var(--primary-text); --btn-border: transparent; --btn-hover: var(--primary-soft-2); box-shadow: none; }
.btn-ghost { --btn-bg: transparent; --btn-border: transparent; --btn-hover: var(--surface-3); box-shadow: none; }
.btn-link { --btn-bg: transparent; --btn-border: transparent; --btn-hover: transparent; --btn-fg: var(--primary); box-shadow: none; padding: 0; min-height: auto; }
.btn-link:hover { text-decoration: underline; }
.btn-dark { --btn-bg: var(--text); --btn-fg: #fff; --btn-border: var(--text); --btn-hover: #1e293b; }
.btn-white { --btn-bg: #fff; --btn-fg: var(--text); --btn-border: #fff; --btn-hover: #f1f5f9; }
.btn-sm { min-height: 32px; padding: 0 var(--space-3); font-size: var(--text-xs); border-radius: 8px; }
.btn-lg { min-height: 48px; padding: 0 var(--space-6); font-size: var(--text-md); border-radius: 12px; }
.btn-block { width: 100%; }
.btn-icon { width: 38px; padding: 0; }
.btn-icon.btn-sm { width: 32px; }
.btn .spinner { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin 0.7s linear infinite; }
.btn-group { display: inline-flex; }
.btn-group > .btn { border-radius: 0; margin-left: -1px; }
.btn-group > .btn:first-child { border-radius: var(--radius) 0 0 var(--radius); margin-left: 0; }
.btn-group > .btn:last-child { border-radius: 0 var(--radius) var(--radius) 0; }
.btn-group > .btn[aria-pressed='true'] { background: var(--primary-soft); color: var(--primary-text); border-color: var(--primary-soft-2); z-index: 1; }

/* ----- Form ----- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-label { font-size: var(--text-sm); font-weight: 600; color: var(--text-2); display: flex; align-items: center; gap: 4px; }
.field-label .req { color: var(--danger); font-weight: 700; }
.field-hint { font-size: var(--text-xs); color: var(--text-muted); }
.field-error { font-size: var(--text-xs); color: var(--danger); font-weight: 500; display: flex; align-items: center; gap: 4px; }
.input, .select, .textarea {
  width: 100%; min-height: 40px; padding: 8px 12px;
  font-size: var(--text-base); color: var(--text); background: var(--surface);
  border: 1px solid var(--border-strong); border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
  transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}
.input::placeholder, .textarea::placeholder { color: var(--text-subtle); }
.input:hover, .select:hover, .textarea:hover { border-color: #b9c0cf; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-ring); }
.input:disabled, .select:disabled, .textarea:disabled { background: var(--surface-3); color: var(--text-muted); cursor: not-allowed; }
.input[readonly] { background: var(--surface-2); }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: var(--danger); }
.field.has-error .input:focus, .field.has-error .select:focus, .field.has-error .textarea:focus { box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.18); }
.textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
.select {
  appearance: none; padding-right: 36px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' 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 10px center;
}
.input-sm, .select-sm { min-height: 34px; padding-block: 4px; font-size: var(--text-sm); }
.input-group { position: relative; display: flex; align-items: center; }
.input-group > .icon { position: absolute; left: 12px; color: var(--text-subtle); pointer-events: none; }
.input-group > .input { padding-left: 38px; }
.input-group > .input-suffix { position: absolute; right: 12px; color: var(--text-muted); font-size: var(--text-sm); }
.input-prefix-wrap { display: flex; }
.input-prefix { display: inline-flex; align-items: center; padding: 0 12px; background: var(--surface-3); border: 1px solid var(--border-strong); border-right: 0; border-radius: var(--radius) 0 0 var(--radius); font-size: var(--text-sm); color: var(--text-muted); white-space: nowrap; }
.input-prefix-wrap .input { border-radius: 0 var(--radius) var(--radius) 0; }
.check { display: inline-flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: var(--text-base); color: var(--text-2); line-height: 1.45; }
.check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--primary); flex: none; cursor: pointer; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px 16px; }
.choice-card { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--surface); cursor: pointer; transition: border-color var(--duration), background var(--duration); }
.choice-card:hover { border-color: var(--primary); }
.choice-card:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
.choice-card input { accent-color: var(--primary); margin-top: 3px; }
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: var(--text-sm); }
.switch input { appearance: none; width: 38px; height: 22px; border-radius: 999px; background: var(--border-strong); position: relative; cursor: pointer; transition: background var(--duration); margin: 0; flex: none; }
.switch input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: transform var(--duration) var(--ease); }
.switch input:checked { background: var(--primary); }
.switch input:checked::after { transform: translateX(16px); }
.form-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--space-4); }
.form-grid > .col-12 { grid-column: span 12; } .form-grid > .col-8 { grid-column: span 8; }
.form-grid > .col-6 { grid-column: span 6; } .form-grid > .col-4 { grid-column: span 4; } .form-grid > .col-3 { grid-column: span 3; }
@media (max-width: 720px) { .form-grid > [class*='col-'] { grid-column: span 12; } }
.form-section { grid-column: span 12; padding-top: var(--space-2); }
.form-section-title { font-size: var(--text-md); font-weight: 700; color: var(--text); }
.form-section-desc { font-size: var(--text-sm); color: var(--text-muted); margin-top: 2px; }
.form-actions { display: flex; justify-content: flex-end; gap: var(--space-3); padding-top: var(--space-4); border-top: 1px solid var(--border); margin-top: var(--space-2); flex-wrap: wrap; }
.form-alert { grid-column: span 12; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ----- Badge & chip ----- */
.badge {
  --b-bg: var(--neutral-soft); --b-fg: var(--neutral-text);
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: var(--radius-full);
  font-size: 11.5px; font-weight: 600; line-height: 1.35; white-space: nowrap; background: var(--b-bg); color: var(--b-fg);
}
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0.85; }
.badge.no-dot::before { display: none; }
.badge-success { --b-bg: var(--success-soft); --b-fg: var(--success-text); }
.badge-warning { --b-bg: var(--warning-soft); --b-fg: var(--warning-text); }
.badge-danger { --b-bg: var(--danger-soft); --b-fg: var(--danger-text); }
.badge-info { --b-bg: var(--info-soft); --b-fg: var(--info-text); }
.badge-primary { --b-bg: var(--primary-soft); --b-fg: var(--primary-text); }
.badge-purple { --b-bg: var(--purple-soft); --b-fg: var(--purple-text); }
.badge-neutral { --b-bg: var(--neutral-soft); --b-fg: var(--neutral-text); }
.badge-dark { --b-bg: #1e293b; --b-fg: #fff; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--radius-full); background: var(--surface-3); color: var(--text-2); font-size: var(--text-xs); font-weight: 600; border: 1px solid var(--border); }
.chip-list { display: flex; flex-wrap: wrap; gap: 6px; }
.score { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: var(--text-sm); font-variant-numeric: tabular-nums; }

/* ----- Card ----- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-xs); min-width: 0; }
.card-header { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: var(--space-4) var(--space-5); border-bottom: 1px solid var(--border); }
.card-title { font-size: var(--text-md); font-weight: 700; display: flex; align-items: center; gap: 8px; }
.card-subtitle { font-size: var(--text-sm); color: var(--text-muted); margin-top: 2px; }
.card-body { padding: var(--space-5); }
.card-body.tight { padding: var(--space-4); }
.card-footer { padding: var(--space-3) var(--space-5); border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: var(--space-2); }
.card-flush .card-body { padding: 0; }
.card-hover { transition: box-shadow var(--duration) var(--ease), transform var(--duration) var(--ease), border-color var(--duration); }
.card-hover:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--border-strong); }

/* ----- Stat card ----- */
.stat { display: flex; flex-direction: column; gap: 6px; padding: var(--space-5); }
.stat-top { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); }
.stat-label { font-size: var(--text-sm); color: var(--text-muted); font-weight: 600; }
.stat-icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); }
.stat-icon.tone-success { background: var(--success-soft); color: var(--success); }
.stat-icon.tone-warning { background: var(--warning-soft); color: var(--warning); }
.stat-icon.tone-danger { background: var(--danger-soft); color: var(--danger); }
.stat-icon.tone-info { background: var(--info-soft); color: var(--info); }
.stat-icon.tone-purple { background: var(--purple-soft); color: var(--purple); }
.stat-value { font-size: var(--text-2xl); font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1.15; }
.stat-meta { font-size: var(--text-xs); color: var(--text-muted); display: flex; align-items: center; gap: 4px; }
.stat-meta .up { color: var(--success); font-weight: 700; } .stat-meta .down { color: var(--danger); font-weight: 700; }
a.stat-link { color: inherit; display: block; border-radius: var(--radius-lg); }
a.stat-link:hover .card { border-color: var(--primary-soft-2); box-shadow: var(--shadow-md); }

/* ----- Table ----- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; font-size: var(--text-sm); }
.table th { text-align: left; font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); background: var(--surface-2); padding: 10px 16px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; color: var(--text-2); }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background var(--duration); }
.table tbody tr:hover { background: #fafbff; }
.table tbody tr.clickable { cursor: pointer; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table .actions { text-align: right; white-space: nowrap; width: 1%; }
.table .cell-title { font-weight: 600; color: var(--text); }
.table .cell-sub { font-size: var(--text-xs); color: var(--text-muted); margin-top: 2px; }
.table a.cell-title:hover { color: var(--primary); }
.table th.sortable { cursor: pointer; }
.table th.sortable:hover { color: var(--text); }
.table-compact td { padding: 8px 12px; } .table-compact th { padding: 8px 12px; }
.table tfoot td { font-weight: 700; background: var(--surface-2); color: var(--text); }

/* ----- Toolbar & pagination ----- */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--border); }
.toolbar .input-group { flex: 1 1 240px; max-width: 360px; }
.toolbar .select { width: auto; min-width: 140px; flex: 0 1 auto; }
.toolbar-spacer { flex: 1 1 auto; }
.pagination { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: var(--space-3) var(--space-4); border-top: 1px solid var(--border); font-size: var(--text-sm); color: var(--text-muted); flex-wrap: wrap; }
.pagination .pages { display: flex; gap: 4px; align-items: center; }
.page-btn { min-width: 32px; height: 32px; display: inline-grid; place-items: center; border-radius: 8px; border: 1px solid transparent; background: transparent; font-size: var(--text-sm); font-weight: 600; color: var(--text-2); padding: 0 8px; }
.page-btn:hover:not(:disabled) { background: var(--surface-3); }
.page-btn[aria-current='page'] { background: var(--primary); color: #fff; }
.page-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ----- Tabs ----- */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; font-size: var(--text-sm); font-weight: 600; color: var(--text-muted); border: 0; background: none; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; text-decoration: none; }
.tab:hover { color: var(--text); }
.tab[aria-selected='true'], .tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab .count { font-size: 11px; padding: 1px 7px; border-radius: 999px; background: var(--surface-3); color: var(--text-muted); }
.tab[aria-selected='true'] .count { background: var(--primary-soft); color: var(--primary-text); }
.segmented { display: inline-flex; padding: 3px; background: var(--surface-3); border-radius: 10px; gap: 2px; }
.segmented button, .segmented a { border: 0; background: transparent; padding: 6px 12px; border-radius: 8px; font-size: var(--text-sm); font-weight: 600; color: var(--text-muted); display: inline-flex; align-items: center; gap: 6px; }
.segmented [aria-pressed='true'], .segmented .active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }

/* ----- Alert ----- */
.alert { display: flex; gap: var(--space-3); padding: var(--space-3) var(--space-4); border-radius: var(--radius); border: 1px solid; font-size: var(--text-sm); line-height: 1.5; }
.alert .icon { margin-top: 1px; }
.alert-title { font-weight: 700; margin-bottom: 2px; }
.alert-info { background: var(--info-soft); border-color: #bae6fd; color: var(--info-text); }
.alert-success { background: var(--success-soft); border-color: #bbf7d0; color: var(--success-text); }
.alert-warning { background: var(--warning-soft); border-color: #fde68a; color: var(--warning-text); }
.alert-danger { background: var(--danger-soft); border-color: #fecaca; color: var(--danger-text); }
.alert-neutral { background: var(--surface-2); border-color: var(--border); color: var(--text-2); }

/* ----- Dialog (modal & drawer) ----- */
.dialog-backdrop { position: fixed; inset: 0; z-index: 900; background: rgba(15, 23, 42, 0.45); backdrop-filter: blur(2px); display: flex; align-items: center; justify-content: center; padding: var(--space-4); animation: fade-in 140ms ease-out; }
.dialog { width: 100%; max-width: 560px; max-height: calc(100vh - 32px); display: flex; flex-direction: column; background: var(--surface); border-radius: var(--radius-xl); box-shadow: var(--shadow-xl); animation: pop-in 180ms var(--ease); overflow: hidden; }
.dialog.size-sm { max-width: 420px; } .dialog.size-lg { max-width: 760px; } .dialog.size-xl { max-width: 1000px; }
.dialog-header { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-3); padding: var(--space-5) var(--space-6) var(--space-3); }
.dialog-title { font-size: var(--text-lg); font-weight: 700; }
.dialog-desc { font-size: var(--text-sm); color: var(--text-muted); margin-top: 4px; }
.dialog-body { padding: var(--space-2) var(--space-6) var(--space-6); overflow-y: auto; }
.dialog-footer { display: flex; justify-content: flex-end; gap: var(--space-2); padding: var(--space-4) var(--space-6); border-top: 1px solid var(--border); background: var(--surface-2); flex-wrap: wrap; }
.dialog-backdrop.is-drawer { justify-content: flex-end; align-items: stretch; padding: 0; }
.dialog-backdrop.is-drawer .dialog { max-width: 560px; max-height: none; height: 100%; border-radius: var(--radius-xl) 0 0 var(--radius-xl); animation: slide-in 220ms var(--ease); }
.dialog-backdrop.is-drawer .dialog.size-lg { max-width: 760px; }
.dialog-backdrop.is-drawer .dialog-body { flex: 1; }
@media (max-width: 640px) {
  .dialog-backdrop { align-items: flex-end; padding: 0; }
  .dialog { max-width: none; border-radius: var(--radius-xl) var(--radius-xl) 0 0; max-height: 92vh; }
  .dialog-backdrop.is-drawer .dialog { border-radius: 0; max-width: none; }
}
@keyframes fade-in { from { opacity: 0; } }
@keyframes pop-in { from { opacity: 0; transform: translateY(8px) scale(0.98); } }
@keyframes slide-in { from { transform: translateX(32px); opacity: 0; } }
body.no-scroll { overflow: hidden; }

/* ----- Dropdown ----- */
.dropdown { position: relative; display: inline-flex; }
.dropdown-menu { position: absolute; top: calc(100% + 6px); right: 0; z-index: 800; min-width: 200px; padding: 6px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-lg); display: none; animation: pop-in 140ms var(--ease); }
.dropdown-menu.align-left { right: auto; left: 0; }
.dropdown.open > .dropdown-menu { display: block; }
.dropdown-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; background: none; border-radius: 8px; font-size: var(--text-sm); color: var(--text-2); text-align: left; text-decoration: none; white-space: nowrap; }
.dropdown-item:hover { background: var(--surface-3); color: var(--text); }
.dropdown-item.danger { color: var(--danger); }
.dropdown-item.danger:hover { background: var(--danger-soft); }
.dropdown-sep { height: 1px; background: var(--border); margin: 6px 0; }
.dropdown-header { padding: 8px 10px; font-size: var(--text-xs); color: var(--text-muted); }

/* ----- Toast ----- */
.toast-root { position: fixed; z-index: 1000; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 8px; width: min(380px, calc(100vw - 32px)); pointer-events: none; }
.toast { pointer-events: auto; display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; background: #0f172a; color: #f8fafc; border-radius: 12px; box-shadow: var(--shadow-lg); font-size: var(--text-sm); animation: toast-in 220ms var(--ease); }
.toast .icon { margin-top: 1px; }
.toast.success .icon { color: #4ade80; } .toast.error .icon { color: #f87171; } .toast.info .icon { color: #60a5fa; } .toast.warning .icon { color: #fbbf24; }
.toast-close { margin-left: auto; background: none; border: 0; color: #94a3b8; padding: 0; line-height: 0; }
.toast.leaving { animation: toast-out 180ms ease-in forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(8px); } }

/* ----- Tooltip (CSS) ----- */
[data-tooltip] { position: relative; }
[data-tooltip]::after {
  content: attr(data-tooltip); position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%) translateY(4px);
  padding: 6px 9px; border-radius: 8px; background: #0f172a; color: #fff; font-size: 12px; font-weight: 500; line-height: 1.3; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity 120ms, transform 120ms; z-index: 950;
}
[data-tooltip]:hover::after, [data-tooltip]:focus-visible::after { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ----- Progress ----- */
.progress { height: 8px; width: 100%; background: var(--surface-3); border-radius: 999px; overflow: hidden; }
.progress-bar { height: 100%; background: linear-gradient(90deg, var(--primary), #6366f1); border-radius: inherit; transition: width 400ms var(--ease); }
.progress.success .progress-bar { background: var(--success); } .progress.warning .progress-bar { background: var(--warning); } .progress.danger .progress-bar { background: var(--danger); }
.progress-sm { height: 6px; }
.progress-label { display: flex; justify-content: space-between; font-size: var(--text-xs); color: var(--text-muted); margin-bottom: 6px; font-weight: 600; }
.ring { --size: 56px; --value: 0; width: var(--size); height: var(--size); border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--primary) calc(var(--value) * 1%), var(--surface-3) 0); }
.ring::before { content: attr(data-label); width: calc(var(--size) - 12px); height: calc(var(--size) - 12px); border-radius: 50%; background: var(--surface); display: grid; place-items: center; font-weight: 800; font-size: 13px; }

/* ----- Avatar ----- */
.avatar { --size: 32px; width: var(--size); height: var(--size); border-radius: 50%; display: inline-grid; place-items: center; flex: none; overflow: hidden; font-size: calc(var(--size) * 0.38); font-weight: 700; color: var(--primary-text); background: var(--primary-soft-2); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-sm { --size: 26px; } .avatar-lg { --size: 44px; } .avatar-xl { --size: 64px; }
.avatar-stack { display: inline-flex; } .avatar-stack .avatar { border: 2px solid var(--surface); margin-left: -8px; } .avatar-stack .avatar:first-child { margin-left: 0; }
.user-cell { display: flex; align-items: center; gap: 10px; min-width: 0; }

/* ----- States ----- */
.state { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: var(--space-3); padding: var(--space-12) var(--space-6); color: var(--text-muted); }
.state-icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--surface-3); color: var(--text-subtle); }
.state.error .state-icon { background: var(--danger-soft); color: var(--danger); }
.state-title { font-size: var(--text-md); font-weight: 700; color: var(--text); }
.state-text { font-size: var(--text-sm); max-width: 420px; }
.state.compact { padding: var(--space-8) var(--space-4); }
.skeleton { position: relative; overflow: hidden; background: var(--surface-3); border-radius: 8px; min-height: 12px; }
.skeleton::after { content: ''; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.65), transparent); animation: shimmer 1.3s infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }
.skeleton-row { display: flex; gap: var(--space-4); padding: 14px 16px; border-bottom: 1px solid var(--border); }
.loading-bar { position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 1100; background: linear-gradient(90deg, transparent, var(--primary), transparent); background-size: 50% 100%; background-repeat: no-repeat; animation: loading-bar 1s linear infinite; }
@keyframes loading-bar { from { background-position: -50% 0; } to { background-position: 150% 0; } }

/* ----- Breadcrumb ----- */
.breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: var(--text-xs); color: var(--text-muted); font-weight: 500; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { color: var(--text-subtle); }
.breadcrumb [aria-current='page'] { color: var(--text-2); font-weight: 600; }

/* ----- Description list ----- */
.dl { display: grid; grid-template-columns: minmax(120px, 34%) 1fr; gap: 10px 16px; font-size: var(--text-sm); }
.dl dt { color: var(--text-muted); font-weight: 500; }
.dl dd { margin: 0; color: var(--text); font-weight: 500; min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 520px) { .dl { grid-template-columns: 1fr; gap: 2px 0; } .dl dd { margin-bottom: 10px; } }

/* ----- Timeline (aktivitas) ----- */
.timeline { list-style: none; position: relative; }
.timeline-item { position: relative; display: flex; gap: var(--space-3); padding-bottom: var(--space-5); }
.timeline-item::before { content: ''; position: absolute; left: 15px; top: 34px; bottom: 4px; width: 2px; background: var(--border); }
.timeline-item:last-child::before { display: none; }
.timeline-dot { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--surface-3); color: var(--text-muted); border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--border); }
.timeline-dot.tone-primary { background: var(--primary-soft); color: var(--primary); }
.timeline-dot.tone-success { background: var(--success-soft); color: var(--success); }
.timeline-dot.tone-warning { background: var(--warning-soft); color: var(--warning); }
.timeline-dot.tone-danger { background: var(--danger-soft); color: var(--danger); }
.timeline-dot.tone-info { background: var(--info-soft); color: var(--info); }
.timeline-body { min-width: 0; flex: 1; padding-top: 4px; }
.timeline-title { font-weight: 600; font-size: var(--text-sm); color: var(--text); }
.timeline-meta { font-size: var(--text-xs); color: var(--text-muted); margin-top: 2px; }
.timeline-text { font-size: var(--text-sm); color: var(--text-2); margin-top: 6px; white-space: pre-line; }

/* ----- Stepper (milestone customer) ----- */
.stepper { list-style: none; display: grid; gap: 0; }
.step { display: grid; grid-template-columns: 36px 1fr; gap: var(--space-3); position: relative; padding-bottom: var(--space-5); }
.step::before { content: ''; position: absolute; left: 17px; top: 36px; bottom: 0; width: 2px; background: var(--border); }
.step:last-child::before { display: none; }
.step.done::before { background: var(--success); }
.step-marker { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px; background: var(--surface); border: 2px solid var(--border-strong); color: var(--text-muted); z-index: 1; }
.step.done .step-marker { background: var(--success); border-color: var(--success); color: #fff; }
.step.current .step-marker { border-color: var(--primary); color: var(--primary); box-shadow: 0 0 0 5px var(--primary-ring); }
.step-title { font-weight: 700; color: var(--text); padding-top: 6px; }
.step-meta { font-size: var(--text-xs); color: var(--text-muted); margin-top: 2px; }
.step-desc { font-size: var(--text-sm); color: var(--text-2); margin-top: 4px; }
.steps-h { display: flex; gap: 0; overflow-x: auto; padding-bottom: 4px; }
.steps-h .step-h { flex: 1 0 100px; text-align: center; position: relative; padding-top: 4px; }
.steps-h .step-h::before { content: ''; position: absolute; top: 19px; left: calc(-50% + 18px); width: calc(100% - 36px); height: 2px; background: var(--border); }
.steps-h .step-h:first-child::before { display: none; }
.steps-h .step-h.done::before, .steps-h .step-h.current::before { background: var(--success); }
.steps-h .step-marker { margin: 0 auto 8px; position: relative; }
.steps-h .step-h.done .step-marker { background: var(--success); border-color: var(--success); color: #fff; }
.steps-h .step-h.current .step-marker { border-color: var(--primary); color: var(--primary); box-shadow: 0 0 0 5px var(--primary-ring); }
.steps-h .step-label { font-size: var(--text-xs); font-weight: 600; color: var(--text-2); }

/* ----- Kanban ----- */
.kanban { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(272px, 1fr); gap: var(--space-4); overflow-x: auto; padding-bottom: var(--space-4); align-items: start; }
.kanban-col { background: var(--bg-subtle); border: 1px solid var(--border); border-radius: var(--radius-lg); display: flex; flex-direction: column; max-height: calc(100vh - 230px); min-height: 160px; }
.kanban-col-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.kanban-col-title { font-size: var(--text-sm); font-weight: 700; display: flex; align-items: center; gap: 8px; }
.kanban-col-meta { font-size: var(--text-xs); color: var(--text-muted); font-weight: 600; }
.kanban-list { padding: 10px; display: flex; flex-direction: column; gap: 8px; overflow-y: auto; flex: 1; min-height: 60px; transition: background var(--duration); border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.kanban-list.drag-over { background: var(--primary-soft); }
.kanban-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 12px; box-shadow: var(--shadow-xs); cursor: grab; display: flex; flex-direction: column; gap: 8px; }
.kanban-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.kanban-card.dragging { opacity: 0.5; cursor: grabbing; }
.kanban-card-title { font-weight: 600; font-size: var(--text-sm); color: var(--text); }
.kanban-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: var(--text-xs); color: var(--text-muted); }
.kanban-card .select-sm { min-height: 28px; font-size: 12px; padding: 2px 28px 2px 8px; background-position: right 6px center; }
.kanban-empty { font-size: var(--text-xs); color: var(--text-subtle); text-align: center; padding: 12px; }

/* ----- Calendar ----- */
.calendar { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--border); border-left: 1px solid var(--border); border-radius: 0 0 var(--radius-lg) var(--radius-lg); overflow: hidden; }
.calendar-dow { padding: 8px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); background: var(--surface-2); border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); text-align: center; }
.calendar-day { min-height: 112px; padding: 6px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--surface); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.calendar-day.outside { background: var(--surface-2); }
.calendar-day.outside .calendar-date { color: var(--text-subtle); }
.calendar-date { font-size: 12px; font-weight: 700; color: var(--text-2); width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; }
.calendar-day.today .calendar-date { background: var(--primary); color: #fff; }
.calendar-event { display: block; font-size: 11px; font-weight: 600; padding: 3px 6px; border-radius: 6px; background: var(--primary-soft); color: var(--primary-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.calendar-event.tone-success { background: var(--success-soft); color: var(--success-text); }
.calendar-event.tone-warning { background: var(--warning-soft); color: var(--warning-text); }
.calendar-event.tone-danger { background: var(--danger-soft); color: var(--danger-text); }
.calendar-event.tone-neutral { background: var(--surface-3); color: var(--text-muted); text-decoration: line-through; }
.calendar-more { font-size: 11px; color: var(--text-muted); padding-left: 4px; }
@media (max-width: 720px) { .calendar-day { min-height: 64px; } .calendar-event { font-size: 10px; padding: 2px 4px; } }

/* ----- Line items editor ----- */
.line-items { width: 100%; }
.line-items th { font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); text-align: left; padding: 6px 6px; font-weight: 700; }
.line-items td { padding: 4px 6px; vertical-align: top; }
.line-items .input, .line-items .select { min-height: 36px; font-size: var(--text-sm); }
.line-items .col-qty { width: 90px; } .line-items .col-price { width: 160px; } .line-items .col-amount { width: 150px; text-align: right; font-weight: 600; padding-top: 14px; font-variant-numeric: tabular-nums; }
.line-items .col-del { width: 44px; }
@media (max-width: 720px) {
  .line-items thead { display: none; }
  .line-items tr { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 10px 0; border-bottom: 1px dashed var(--border); }
  .line-items td { padding: 0; }
  .line-items td.col-desc, .line-items td.col-service { grid-column: span 2; }
  .line-items .col-qty, .line-items .col-price, .line-items .col-amount { width: auto; }
}
.totals { margin-left: auto; width: min(360px, 100%); display: grid; gap: 8px; font-size: var(--text-sm); }
.totals-row { display: flex; justify-content: space-between; gap: 12px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.totals-row.grand { font-size: var(--text-lg); font-weight: 800; color: var(--text); padding-top: 8px; border-top: 1px solid var(--border); }

/* ----- Accordion (FAQ) ----- */
.accordion { display: grid; gap: var(--space-3); }
.accordion details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 0 var(--space-5); transition: border-color var(--duration), box-shadow var(--duration); }
.accordion details[open] { border-color: var(--primary-soft-2); box-shadow: var(--shadow-sm); }
.accordion summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding: var(--space-4) 0; font-weight: 600; color: var(--text); }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary .icon { transition: transform var(--duration); color: var(--text-muted); }
.accordion details[open] summary .icon { transform: rotate(180deg); }
.accordion .answer { padding-bottom: var(--space-5); color: var(--text-2); line-height: 1.65; }

/* ----- File upload ----- */
.dropzone { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: var(--space-6); border: 2px dashed var(--border-strong); border-radius: var(--radius-lg); background: var(--surface-2); text-align: center; color: var(--text-muted); cursor: pointer; transition: border-color var(--duration), background var(--duration); }
.dropzone:hover, .dropzone.drag-over { border-color: var(--primary); background: var(--primary-soft); color: var(--primary-text); }
.file-list { display: grid; gap: 6px; margin-top: 8px; }
.file-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); font-size: var(--text-sm); }
.file-item .grow { min-width: 0; }

/* ----- Notifications ----- */
.notif-item { display: flex; gap: 12px; padding: 12px 14px; border-radius: 10px; text-decoration: none; color: inherit; align-items: flex-start; }
.notif-item:hover { background: var(--surface-2); }
.notif-item.unread { background: #f8f9ff; }
.notif-item.unread .notif-title::after { content: ''; display: inline-block; width: 7px; height: 7px; margin-left: 6px; border-radius: 50%; background: var(--primary); vertical-align: middle; }
.notif-icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); flex: none; }
.notif-title { font-size: var(--text-sm); font-weight: 600; color: var(--text); }
.notif-body { font-size: var(--text-xs); color: var(--text-muted); margin-top: 2px; }
.notif-time { font-size: 11px; color: var(--text-subtle); margin-top: 4px; }
.count-dot { position: absolute; top: 4px; right: 4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--danger); color: #fff; font-size: 10.5px; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--surface); }

/* ----- Chat / ticket thread ----- */
.thread { display: flex; flex-direction: column; gap: var(--space-4); }
.msg { display: flex; gap: 10px; max-width: 760px; }
.msg.mine { margin-left: auto; flex-direction: row-reverse; }
.msg-bubble { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 10px 14px; font-size: var(--text-sm); color: var(--text-2); white-space: pre-line; overflow-wrap: anywhere; }
.msg.mine .msg-bubble { background: var(--primary-soft); border-color: var(--primary-soft-2); color: var(--text); }
.msg.internal .msg-bubble { background: var(--warning-soft); border-color: #fde68a; }
.msg-meta { font-size: 11px; color: var(--text-muted); margin-bottom: 4px; }
.msg.mine .msg-meta { text-align: right; }

/* ----- Misc ----- */
.kbd { display: inline-block; padding: 1px 6px; border: 1px solid var(--border-strong); border-bottom-width: 2px; border-radius: 6px; font-size: 11px; font-family: var(--font-mono); color: var(--text-muted); background: var(--surface); }
.empty-dash { color: var(--text-subtle); }
.list-plain { list-style: none; display: grid; gap: 8px; }
.check-list { list-style: none; display: grid; gap: 10px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; color: var(--text-2); }
.check-list li .icon { color: var(--success); margin-top: 2px; }
.temp { display: inline-flex; align-items: center; gap: 6px; }
.color-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: var(--text-xs); color: var(--text-muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.chart-box { position: relative; height: 280px; }
.chart-box.sm { height: 220px; } .chart-box.lg { height: 340px; }
.config-banner { position: sticky; top: 0; z-index: 1200; display: flex; gap: 10px; align-items: center; justify-content: center; padding: 8px 16px; background: #fffbeb; color: #92400e; font-size: 13px; border-bottom: 1px solid #fde68a; text-align: center; }

/* ######################## public.css ######################## */
/* =====================================================================
   PUBLIC SITE - landing page, company profile, katalog, auth pages
   ===================================================================== */
body.public { background: var(--surface); font-size: 16px; }
body.public .container { max-width: 1200px; }

/* ----- Brand ----- */
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; letter-spacing: -0.02em; color: var(--text); text-decoration: none; }
.brand:hover { color: var(--text); }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #4f46e5 0%, #7a6ff0 60%, #6fb7c6 100%); box-shadow: 0 6px 16px -6px rgba(79, 70, 229, 0.55); flex: none; }
.brand-mark svg { width: 24px; height: 24px; }
.brand-name small { display: block; font-size: 11px; font-weight: 600; color: var(--text-muted); letter-spacing: 0; }

/* ----- Header ----- */
.site-header { position: sticky; top: 0; z-index: 500; background: rgba(255, 255, 255, 0.82); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid transparent; transition: border-color var(--duration), box-shadow var(--duration); }
.site-header.scrolled { border-bottom-color: var(--border); box-shadow: 0 6px 24px -18px rgba(15, 23, 42, 0.4); }
.site-header .bar { display: flex; align-items: center; gap: var(--space-6); height: 72px; }
.site-nav { display: flex; align-items: center; gap: 2px; margin-inline: auto; }
.site-nav a { padding: 8px 12px; border-radius: 10px; font-size: 14.5px; font-weight: 600; color: var(--text-2); }
.site-nav a:hover { color: var(--text); background: var(--surface-3); }
.site-nav a[aria-current='page'] { color: var(--primary); background: var(--primary-soft); }
.site-actions { display: flex; align-items: center; gap: var(--space-2); }
.nav-toggle { display: none; }
@media (max-width: 1080px) {
  .site-nav { display: none; }
  .site-actions .hide-mobile { display: none; }
  .nav-toggle { display: inline-flex; margin-left: auto; }
  .site-header.menu-open .site-nav { display: flex; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px; padding: 12px 16px 20px; background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-lg); }
  .site-header.menu-open .site-nav a { padding: 12px 14px; font-size: 16px; }
  .site-header .site-actions { margin-left: 0; }
}

.nav-services { position: relative; }
.nav-services-trigger { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border: 0; border-radius: 10px; background: transparent; color: var(--text-2); font: inherit; font-size: 14.5px; font-weight: 600; cursor: pointer; }
.nav-services-trigger:hover, .nav-services.has-current .nav-services-trigger { background: var(--surface-3); color: var(--primary); }
.nav-services-trigger svg { transition: transform var(--duration); }
.nav-services.open .nav-services-trigger svg { transform: rotate(180deg); }
.nav-services-menu[hidden] { display: none !important; }
.nav-services-menu { position: absolute; z-index: 600; top: calc(100% + 12px); left: 50%; width: min(930px, calc(100vw - 48px)); padding: 16px; transform: translateX(-45%); border: 1px solid var(--border); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-lg); color: var(--text); }
.nav-services-menu .nav-services-all { display: flex; align-items: center; width: max-content; margin: 0 0 12px; padding: 8px 12px; border-radius: 9px; background: var(--primary-soft); color: var(--primary); font-weight: 700; }
.nav-services-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.nav-services-groups section { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 8px; border-radius: 12px; }
.nav-services-groups h3 { margin: 0 0 5px; padding: 0 9px; color: var(--text); font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.site-nav .nav-services-groups section a { display: block; padding: 7px 9px; border-radius: 8px; color: var(--text-2); font-size: 13px; font-weight: 600; }
.site-nav .nav-services-groups section a:hover { background: var(--surface-3); color: var(--primary); }
.site-nav .nav-services-menu .nav-services-highlight { color: var(--primary); font-weight: 800; }
.nav-services-invitation { background: var(--primary-soft); }
.nav-services.has-current .nav-services-trigger[aria-current='page'] { color: var(--primary); }
@media (max-width: 1080px) {
  .site-header.menu-open .site-nav .nav-services { width: 100%; }
  .site-header.menu-open .site-nav .nav-services-trigger { justify-content: space-between; width: 100%; padding: 12px 14px; font-size: 16px; text-align: left; }
  .site-header.menu-open .site-nav .nav-services-menu { position: static; width: 100%; max-height: min(55vh, 560px); margin: 0; padding: 10px; overflow-y: auto; transform: none; border-radius: 12px; box-shadow: none; }
  .site-header.menu-open .site-nav .nav-services-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .site-header.menu-open .site-nav .nav-services-groups section { padding: 5px; }
  .site-header.menu-open .site-nav .nav-services-groups h3 { padding: 4px 8px; font-size: 11px; }
  .site-header.menu-open .site-nav .nav-services-menu .nav-services-groups section a { padding: 8px; font-size: 14px; }
  .site-header.menu-open .site-nav .nav-services-menu .nav-services-all { padding: 9px 12px; font-size: 14px; }
}
@media (max-width: 440px) {
  .site-header.menu-open .site-nav .nav-services-groups { grid-template-columns: 1fr; }
}

/* ----- Digital invitation catalog, public pages, and customer workspace ----- */
.invite-hero { overflow: hidden; padding: 156px 0 84px; color: #e8ecf8; background: radial-gradient(ellipse at 78% 25%, rgba(99,102,241,.28), transparent 38%), linear-gradient(145deg,#101629,#1f2342 70%,#2a2345); }
.invite-hero h1 { max-width: 680px; color: #fff; font-size: clamp(36px,5.4vw,64px); line-height: 1.08; letter-spacing: -.045em; }
.invite-hero .lead-text { max-width: 640px; color: #c7cce0; }
.invite-hero-grid { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(260px,.75fr); align-items: center; gap: 42px; }
.invite-proof { display: flex; flex-wrap: wrap; gap: 10px 18px; color: #d7d9e8; font-size: 13px; }
.invite-proof span { display: inline-flex; align-items: center; gap: 6px; }
.invite-proof .icon { width: 16px; height: 16px; }
.invite-hero-preview { display: grid; place-items: center; min-height: 330px; border: 1px solid rgba(255,255,255,.17); border-radius: 32px; background: radial-gradient(circle at 50% 40%,rgba(255,255,255,.15),transparent 55%),rgba(255,255,255,.04); transform: rotate(2deg); }
.invite-preview-frame { display: flex; width: min(260px,75%); min-height: 330px; flex-direction: column; align-items: center; justify-content: center; gap: 17px; padding: 32px; border: 1px solid rgba(255,255,255,.65); background: linear-gradient(150deg,#fffaf2,#f0e6d2); box-shadow: 0 28px 70px rgba(0,0,0,.25); color: #4c3d30; text-align: center; transform: rotate(-2deg); }
.invite-preview-frame strong { font-family: Georgia,serif; font-size: 32px; font-weight: 500; }
.invite-preview-frame strong i { color: #ae8d58; font-size: 25px; }
.invite-preview-kicker,.invite-template-small { font-size: 9px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; }
.invite-preview-button { padding: 8px 13px; border: 1px solid #a88b5b; border-radius: 99px; font-size: 10px; }
.invite-catalog-tools { display: grid; grid-template-columns: minmax(220px,1.4fr) repeat(2,minmax(150px,.7fr)); gap: 14px; margin: 24px 0 10px; padding: 16px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
.invite-template-grid { align-items: stretch; }
.invite-template-card { overflow: hidden; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-sm); }
.invite-template-art { position: relative; display: grid; min-height: 220px; place-items: center; padding: 22px; background: radial-gradient(circle at 50% 35%,var(--invite-secondary),transparent 65%),var(--invite-bg); color: var(--invite-text); }
.invite-template-style { position: absolute; top: 14px; left: 14px; padding: 5px 9px; border: 1px solid color-mix(in srgb,var(--invite-primary),transparent 75%); border-radius: 99px; background: color-mix(in srgb,var(--invite-bg),transparent 12%); color: var(--invite-primary); font-size: 11px; font-weight: 700; }
.invite-template-cover { display: flex; width: min(220px,90%); min-height: 175px; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 22px; border: 1px solid color-mix(in srgb,var(--invite-accent),transparent 32%); background: color-mix(in srgb,var(--invite-bg),transparent 6%); box-shadow: 0 14px 35px rgba(20,20,20,.08); text-align: center; }
.invite-template-cover strong { font-family: Georgia,serif; font-size: 23px; font-weight: 500; }
.invite-featured { position: absolute; top: 14px; right: 14px; padding: 5px 9px; border-radius: 99px; background: var(--primary); color: white; font-size: 10px; font-weight: 800; }
.invite-template-body { display: flex; flex-direction: column; align-items: stretch; gap: 12px; padding: 18px; }
.invite-template-body h3 { margin: 0; font-size: 18px; }
.invite-template-body p { min-height: 40px; margin: 0; }
.invite-feature-list { display: flex; flex-wrap: wrap; gap: 6px; }
.invite-feature-list span { padding: 4px 8px; border-radius: 99px; background: var(--surface-2); color: var(--text-2); font-size: 11px; }
.invite-benefits { align-items: stretch; }
.invite-benefit { padding: 20px; }
.invite-benefit h3 { margin: 12px 0 7px; font-size: 17px; }
.invite-benefit p { margin: 0; color: var(--text-2); font-size: 13px; }
.invitation-page { min-height: 100vh; background: #f6f4ef; }
.invitation-page #main { min-height: 100vh; }
.invite-rendered { --invite-primary:#52685a; --invite-secondary:#e8eee8; --invite-bg:#fbfcfa; --invite-text:#26352b; --invite-accent:#bea36f; max-width: 900px; margin: 28px auto 72px; overflow: hidden; border: 1px solid color-mix(in srgb,var(--invite-primary),transparent 84%); border-radius: var(--invite-radius,24px); background: var(--invite-bg); box-shadow: 0 30px 90px rgba(36,43,37,.15); color: var(--invite-text); font-family: var(--invite-body-font,Arial,sans-serif); }
.invite-cover { position: relative; display: flex; min-height: min(740px,90vh); flex-direction: column; align-items: center; justify-content: center; gap: 18px; overflow: hidden; padding: 60px 28px; background: radial-gradient(ellipse at center,var(--invite-secondary),var(--invite-bg) 72%); color: var(--invite-text); text-align: center; isolation: isolate; }
.invite-cover::after { position: absolute; z-index: -1; inset: 18px; border: 1px solid color-mix(in srgb,var(--invite-accent),transparent 24%); content: ''; }
.invite-cover-image { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .2; }
.invite-kicker { color: var(--invite-primary); font-size: 11px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; }
.invite-cover h1 { max-width: 760px; margin: 0; font-family: var(--invite-heading-font,Georgia,serif); font-size: clamp(42px,8vw,78px); font-weight: 500; line-height: 1.08; }
.invite-cover h1 span { color: var(--invite-accent); font-size: .75em; font-style: italic; }
.invite-welcome { margin: 0; font-size: 14px; }
.invite-open { margin-top: 12px; padding: 12px 20px; border: 1px solid var(--invite-primary); border-radius: 99px; color: var(--invite-primary); font-size: 13px; font-weight: 700; text-decoration: none; }
.invite-open:hover { background: var(--invite-primary); color: #fff; }
.invite-section { padding: clamp(40px,7vw,76px) clamp(22px,8vw,88px); text-align: center; }
.invite-section:nth-child(even) { background: color-mix(in srgb,var(--invite-secondary),transparent 58%); }
.invite-section h2 { margin: 10px 0 16px; color: var(--invite-primary); font-family: var(--invite-heading-font,Georgia,serif); font-size: clamp(28px,4vw,42px); font-weight: 500; }
.invite-section p { max-width: 650px; margin: 10px auto; color: color-mix(in srgb,var(--invite-text),transparent 18%); line-height: 1.8; white-space: pre-line; }
.invite-section blockquote { max-width: 620px; margin: 28px auto 0; padding: 18px 24px; border-left: 2px solid var(--invite-accent); color: var(--invite-primary); font-family: var(--invite-heading-font,Georgia,serif); font-size: 18px; font-style: italic; }
.invite-people { display: flex; align-items: center; justify-content: center; gap: 28px; }
.invite-people h2 { margin-bottom: 5px; }
.invite-and { color: var(--invite-accent); font-family: var(--invite-heading-font,Georgia,serif); font-size: 36px; }
.invite-story { background: var(--invite-secondary); }
.invite-events,.invite-gift-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,230px),1fr)); gap: 16px; margin-top: 26px; }
.invite-event,.invite-gift-card { padding: 24px; border: 1px solid color-mix(in srgb,var(--invite-primary),transparent 82%); border-radius: 16px; background: var(--invite-bg); }
.invite-event h3 { margin: 14px 0 8px; color: var(--invite-primary); font-family: var(--invite-heading-font,Georgia,serif); font-size: 24px; }
.invite-event strong { display: block; margin-top: 12px; }
.invite-event p { margin: 6px auto; }
.invite-gallery-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(180px,1fr)); gap: 12px; margin-top: 22px; }
.invite-gallery-grid figure { margin: 0; overflow: hidden; border-radius: 12px; background: var(--invite-secondary); }
.invite-gallery-grid img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.invite-gallery-grid figcaption { padding: 8px; font-size: 12px; }
.invite-gift-card { display: grid; gap: 8px; justify-items: center; }
.invite-gift-card code { padding: 7px 10px; border-radius: 8px; background: var(--invite-secondary); font-size: 14px; }
.invite-gift-card p { margin: 0; }
.invite-music audio { max-width: 100%; }
.invite-countdown { display: flex; justify-content: center; gap: 10px; margin-top: 24px; }
.invite-countdown div { display: grid; min-width: 66px; gap: 4px; padding: 10px; border-radius: 10px; background: var(--invite-secondary); }
.invite-countdown strong { color: var(--invite-primary); font-size: 22px; }
.invite-countdown span { font-size: 10px; }
.invite-form { display: grid; max-width: 520px; gap: 13px; margin: 22px auto 0; text-align: left; }
.invite-form label { display: grid; gap: 6px; font-size: 13px; font-weight: 700; }
.invite-form-status { min-height: 20px; text-align: center; }
.invite-messages { display: grid; gap: 10px; }
.invite-messages blockquote { margin: 0 auto; }
.invite-messages cite { display: block; margin-top: 8px; font-size: 12px; font-style: normal; font-weight: 700; }
.invite-share { position: fixed; z-index: 20; right: max(16px,calc((100vw - 940px)/2)); bottom: 18px; display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border: 0; border-radius: 99px; background: var(--invite-primary); box-shadow: 0 10px 28px rgba(0,0,0,.2); color: white; font-weight: 700; cursor: pointer; }
.invite-footer { padding: 36px 20px; background: var(--invite-primary); color: #fff; text-align: center; line-height: 1.9; }
.invite-footer .small { opacity: .76; }
.invite-demo-notice { display: flex; max-width: 900px; align-items: center; justify-content: center; gap: 8px; margin: 16px auto; padding: 10px 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--text-2); font-size: 13px; }
.invite-demo-action { display: flex; justify-content: center; gap: 10px; padding: 0 16px 26px; }
.invite-unavailable { display: grid; min-height: 100vh; place-items: center; padding: 24px; background: #f6f4ef; }
.invite-unavailable-card { display: grid; max-width: 480px; justify-items: center; gap: 12px; padding: 34px; border: 1px solid var(--border); border-radius: 20px; background: var(--surface); text-align: center; }
.invite-dashboard-grid { align-items: stretch; }
.invitation-dashboard-card h2 { margin: 14px 0 5px; }
.invitation-dashboard-card .card-body { display: grid; gap: 10px; }
.invite-dashboard-stats { display: flex; flex-wrap: wrap; gap: 8px 16px; color: var(--text-2); font-size: 12px; }
.invite-dashboard-stats span { display: inline-flex; align-items: center; gap: 5px; }
.invite-dashboard-stats .icon { width: 15px; height: 15px; }
.invite-public-link { overflow-wrap: anywhere; font-size: 13px; }
.invitation-empty { display: grid; min-height: 240px; justify-items: center; align-content: center; gap: 10px; text-align: center; }
.invitation-empty p { max-width: 600px; color: var(--text-2); }
.invite-create-form,.invite-add-guest,.invite-domain-form { display: grid; grid-template-columns: repeat(auto-fit,minmax(180px,1fr)); align-items: end; gap: 12px; margin-top: 18px; }
.invite-editor-form .card-body { padding: clamp(18px,3vw,30px); }
.invite-form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.invite-form-grid label,.invite-create-form label { display: grid; gap: 6px; font-size: 13px; font-weight: 700; }
.invite-form-grid .wide { grid-column: 1/-1; }
.invite-event-editor { min-width: 0; margin: 0; padding: 16px; border: 1px solid var(--border); border-radius: 14px; }
.invite-event-editor legend { font-size: 14px; font-weight: 800; }
.invite-workspace-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.invite-workspace-panel[hidden] { display: none !important; }
.invite-guest-import { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; margin: 18px 0; }
.invite-guest-import .field { min-width: min(100%,300px); }
.invite-table-wrap { width: 100%; margin-top: 18px; overflow-x: auto; }
.invite-bulk-send { margin-top: 16px; padding: 14px; border-radius: 12px; background: var(--surface-2); }
.invite-send-step { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.invite-send-step > div { flex: 1 1 200px; }
.invite-qr-card { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 18px; padding: 16px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.invite-qr-card img { width: 150px; height: 150px; }
.invite-qr-card > div { flex: 1 1 200px; }
.invite-scanner-video { width: min(100%,500px); max-height: 55vh; margin: 16px auto; border-radius: 14px; background: #111; object-fit: cover; }
.invite-checkin-form { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; margin-top: 16px; }
.invite-checkin-form .field { flex: 1 1 280px; }
.invite-moderation-entry { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px; border: 1px solid var(--border); border-radius: 12px; }
.invite-moderation-entry p { margin: 5px 0; }
.invite-domain-status { display: flex; justify-content: space-between; max-width: 400px; padding: 12px 0; }
.invite-domain-form { max-width: 680px; }
@media (max-width: 760px) {
  .invite-hero { padding: 130px 0 64px; }
  .invite-hero-grid { grid-template-columns: 1fr; }
  .invite-hero-preview { display: none; }
  .invite-catalog-tools { grid-template-columns: 1fr; }
  .invite-rendered { margin: 10px auto 76px; border-radius: 0; }
  .invite-cover { min-height: 85vh; }
  .invite-people { flex-direction: column; }
  .invite-and { line-height: 1; }
  .invite-form-grid { grid-template-columns: 1fr; }
  .invite-form-grid .wide { grid-column: auto; }
  .invite-add-guest { grid-template-columns: 1fr 1fr; }
  .invite-add-guest button { grid-column: 1/-1; }
  .invite-moderation-entry { align-items: flex-start; flex-direction: column; }
}
@media print {
  .invite-share,.invite-demo-action,.invite-demo-notice,.site-header,.site-footer { display: none !important; }
  .invite-rendered { max-width: none; margin: 0; border: 0; box-shadow: none; }
}

/* ----- Section ----- */
.section { padding: var(--space-24) 0; position: relative; }
.section-sm { padding: var(--space-16) 0; }
.section-muted { background: var(--surface-2); border-block: 1px solid var(--border); }
.section-dark { background: #0b1020; color: #e2e8f0; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { max-width: 720px; margin: 0 auto var(--space-12); text-align: center; display: grid; gap: var(--space-3); justify-items: center; }
.section-head.left { margin-left: 0; text-align: left; justify-items: start; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--primary-soft); color: var(--primary-text); font-size: 13px; font-weight: 700; letter-spacing: 0.01em; }
.eyebrow.on-dark { background: rgba(255, 255, 255, 0.08); color: #c7d2fe; border: 1px solid rgba(255, 255, 255, 0.12); }
.section-title { font-size: clamp(28px, 4vw, var(--text-4xl)); font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; }
.section-desc { font-size: 17px; color: var(--text-muted); line-height: 1.65; }
.lead-text { font-size: 18px; color: var(--text-2); line-height: 1.7; }
.gradient-text { background: linear-gradient(110deg, var(--primary) 10%, var(--accent-2) 55%, var(--accent) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ----- Hero ----- */
.hero { position: relative; overflow: hidden; padding: var(--space-20) 0 var(--space-24); background: radial-gradient(1200px 520px at 85% -10%, rgba(139, 92, 246, 0.16), transparent 60%), radial-gradient(900px 480px at -10% 20%, rgba(6, 182, 212, 0.12), transparent 60%), #fff; }
.hero::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(15, 23, 42, 0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(15, 23, 42, 0.045) 1px, transparent 1px); background-size: 44px 44px; mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%); pointer-events: none; }
.hero .container { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: var(--space-12); align-items: center; }
.hero h1 { font-size: clamp(36px, 5.4vw, 58px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.08; margin-top: var(--space-5); }
.hero .lead-text { margin-top: var(--space-5); max-width: 560px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-8); }
.hero-points { display: flex; flex-wrap: wrap; gap: var(--space-5); margin-top: var(--space-8); font-size: 14px; color: var(--text-muted); font-weight: 600; }
.hero-points span { display: inline-flex; align-items: center; gap: 8px; }
.hero-points .icon { color: var(--success); }
@media (max-width: 980px) { .hero .container { grid-template-columns: 1fr; } .hero { padding-top: var(--space-12); } }

/* Mockup dashboard (CSS) */
.mockup { position: relative; }
.mockup-window { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: 0 40px 80px -30px rgba(30, 27, 75, 0.35), 0 0 0 8px rgba(255, 255, 255, 0.6); overflow: hidden; transform: perspective(1600px) rotateY(-6deg) rotateX(3deg); }
.mockup-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.mockup-bar i { width: 10px; height: 10px; border-radius: 50%; background: #fca5a5; display: block; }
.mockup-bar i:nth-child(2) { background: #fcd34d; } .mockup-bar i:nth-child(3) { background: #86efac; }
.mockup-url { margin-left: 10px; flex: 1; height: 22px; border-radius: 6px; background: var(--surface); border: 1px solid var(--border); font-size: 11px; color: var(--text-subtle); display: flex; align-items: center; padding: 0 8px; }
.mockup-body { display: grid; grid-template-columns: 120px 1fr; min-height: 340px; }
.mockup-side { background: #0f172a; padding: 14px 10px; display: grid; gap: 8px; align-content: start; }
.mockup-side b { display: block; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.16); }
.mockup-side b.on { background: linear-gradient(90deg, #818cf8, #a78bfa); }
.mockup-side b.w60 { width: 60%; } .mockup-side b.w80 { width: 80%; }
.mockup-main { padding: 16px; display: grid; gap: 12px; align-content: start; }
.mockup-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mockup-kpi { border: 1px solid var(--border); border-radius: 10px; padding: 10px; }
.mockup-kpi small { display: block; font-size: 9px; color: var(--text-muted); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.mockup-kpi strong { font-size: 15px; font-weight: 800; letter-spacing: -0.02em; }
.mockup-kpi em { font-style: normal; font-size: 9px; color: var(--success); font-weight: 700; }
.mockup-chart { border: 1px solid var(--border); border-radius: 10px; padding: 12px; height: 132px; display: flex; align-items: flex-end; gap: 7px; }
.mockup-chart span { flex: 1; border-radius: 5px 5px 2px 2px; background: linear-gradient(180deg, #818cf8, #4f46e5); opacity: 0.9; }
.mockup-chart span:nth-child(even) { background: linear-gradient(180deg, #67e8f9, #06b6d4); }
.mockup-rows { display: grid; gap: 6px; }
.mockup-row { display: flex; align-items: center; gap: 8px; border: 1px solid var(--border); border-radius: 8px; padding: 7px 9px; font-size: 10px; font-weight: 600; color: var(--text-2); }
.mockup-row .pill { margin-left: auto; padding: 2px 7px; border-radius: 99px; font-size: 9px; }
.mockup-float { position: absolute; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 10px 14px; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; animation: float 6s ease-in-out infinite; }
.mockup-float small { display: block; font-size: 11px; color: var(--text-muted); font-weight: 600; }
.mockup-float .ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; }
.mockup-float.f1 { left: -28px; bottom: 36px; } .mockup-float.f2 { right: -18px; top: -20px; animation-delay: -3s; }
@keyframes float { 50% { transform: translateY(-8px); } }
@media (max-width: 980px) { .mockup-window { transform: none; } .mockup-float.f1 { left: 8px; } .mockup-float.f2 { right: 8px; } }
@media (max-width: 520px) { .mockup-body { grid-template-columns: 1fr; } .mockup-side { display: none; } .mockup-float { display: none; } }

/* ----- Trust ----- */
.trust { padding: var(--space-12) 0; border-block: 1px solid var(--border); background: var(--surface-2); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-6); text-align: center; }
.trust-value { font-size: clamp(30px, 4vw, 44px); font-weight: 800; letter-spacing: -0.03em; color: var(--text); font-variant-numeric: tabular-nums; }
.trust-label { font-size: 14px; color: var(--text-muted); font-weight: 600; margin-top: 4px; }
.trust-industries { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-3); margin-top: var(--space-8); }
.trust-industries span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-size: 13px; font-weight: 600; color: var(--text-2); }
@media (max-width: 720px) { .trust-grid { grid-template-columns: repeat(2, 1fr); } }

/* ----- Feature / service cards ----- */
.feature-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-3); transition: border-color var(--duration), box-shadow var(--duration), transform var(--duration); height: 100%; }
.feature-card:hover { border-color: var(--primary-soft-2); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.feature-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, var(--primary-soft), #f5f3ff); color: var(--primary); border: 1px solid var(--primary-soft-2); }
.feature-card h3 { font-size: 19px; }
.feature-card p { color: var(--text-muted); font-size: 15px; line-height: 1.6; }
.feature-links { list-style: none; display: grid; gap: 6px; margin-top: auto; padding-top: var(--space-2); }
.feature-links a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); font-size: 14px; font-weight: 600; color: var(--text-2); }
.feature-links a:hover { background: var(--primary-soft); color: var(--primary-text); }
.service-card { display: flex; flex-direction: column; gap: var(--space-3); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: var(--space-6); color: inherit; transition: border-color var(--duration), box-shadow var(--duration), transform var(--duration); height: 100%; }
.service-card:hover { color: inherit; border-color: var(--primary-soft-2); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.service-card .price { margin-top: auto; padding-top: var(--space-3); border-top: 1px dashed var(--border); display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 14px; color: var(--text-muted); }
.service-card .price strong { font-size: 17px; color: var(--text); }
.filter-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: var(--space-8); }
.filter-pill { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface); font-size: 14px; font-weight: 600; color: var(--text-2); }
.filter-pill:hover { border-color: var(--primary); color: var(--primary); }
.filter-pill[aria-pressed='true'] { background: var(--text); border-color: var(--text); color: #fff; }

/* ----- Process ----- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); counter-reset: step; }
.process-step { position: relative; padding: var(--space-6); border-radius: var(--radius-xl); background: var(--surface); border: 1px solid var(--border); }
.process-step::before { counter-increment: step; content: counter(step, decimal-leading-zero); font-size: 13px; font-weight: 800; color: var(--primary); background: var(--primary-soft); padding: 4px 10px; border-radius: 999px; display: inline-block; margin-bottom: var(--space-3); }
.process-step h3 { font-size: 17px; margin-bottom: 6px; }
.process-step p { font-size: 14.5px; color: var(--text-muted); line-height: 1.6; }
@media (max-width: 980px) { .process { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .process { grid-template-columns: 1fr; } }

/* ----- Portfolio ----- */
.portfolio-hero-proof { display: flex; flex-wrap: wrap; gap: 10px; margin-top: var(--space-6); }
.portfolio-hero-proof span { display: inline-flex; align-items: center; min-height: 34px; padding: 0 12px; border: 1px solid rgba(255,255,255,.17); border-radius: 999px; background: rgba(255,255,255,.07); color: #e5eaf6; font-size: 12px; font-weight: 650; }
.portfolio-explorer { padding: var(--space-6); border: 1px solid var(--border); border-radius: var(--radius-xl); background: var(--surface); box-shadow: var(--shadow-sm); }
.portfolio-filter-block { display: grid; gap: var(--space-3); }
.portfolio-filter-label { font-size: 13px; font-weight: 750; color: var(--text-2); }
.portfolio-explorer .filter-pills { justify-content: flex-start; margin: 0; gap: 9px; }
.portfolio-explorer .filter-pill { min-height: 40px; padding: 7px 13px; }
.portfolio-filter-tools { display: grid; grid-template-columns: minmax(0,1fr) minmax(220px,.45fr); gap: var(--space-4); align-items: end; margin-top: var(--space-5); }
.portfolio-search { width: min(100%, 520px); margin: 0 auto var(--space-3); }
.portfolio-search label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 700; }
.portfolio-search input { width: 100%; min-height: 44px; padding: 10px 14px; color: var(--text); background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-md); }
.portfolio-service-filter { width: 100%; margin-bottom: var(--space-3); }
.portfolio-service-filter label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 700; }
.portfolio-service-filter select { width: 100%; min-height: 44px; padding: 9px 38px 9px 13px; color: var(--text); background-color: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-md); }
.portfolio-result-count { min-height: 1.5em; margin: 0 0 var(--space-5); color: var(--text-muted); text-align: center; font-size: 13px; }
.portfolio-explorer .portfolio-result-count { margin: var(--space-4) 0 0; text-align: left; }
.filter-pill { display: inline-flex; align-items: center; gap: 7px; }
.filter-count { min-width: 1.5em; padding: 1px 5px; border-radius: 999px; background: var(--surface-3); color: var(--text-muted); font-size: 11px; line-height: 1.4; text-align: center; }
.filter-pill[aria-pressed='true'] .filter-count { background: rgba(255,255,255,.2); color: #fff; }
.portfolio-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); overflow: hidden; transition: box-shadow var(--duration), transform var(--duration); height: 100%; }
.portfolio-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.portfolio-thumb { aspect-ratio: 16 / 10; position: relative; overflow: hidden; display: grid; place-items: center; }
.portfolio-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 240ms ease; }
.portfolio-card:hover .portfolio-thumb img { transform: scale(1.035); }
.portfolio-concept-thumb { background: #f4f5fb; }
.portfolio-card-art { --art-accent: #617f70; display: flex; align-items: center; justify-content: center; padding: 14px 8% 10px; background: radial-gradient(ellipse at 18% 20%, #fff 0, transparent 38%), linear-gradient(135deg, #e8eee8, #dce2e9); }
.portfolio-card-art.art-workspace { --art-accent: #6359d8; background: radial-gradient(ellipse at 80% 10%, #e3e0ff 0, transparent 38%), linear-gradient(135deg, #f1f1ff, #e1e7f3); }
.portfolio-card-art.art-mobile { --art-accent: #7068da; background: radial-gradient(ellipse at 50% 28%, #fff 0, transparent 42%), linear-gradient(140deg, #e9e8ff, #e0f1eb); }
.portfolio-card-art.art-store { --art-accent: #986947; background: radial-gradient(ellipse at 80% 14%, #f5e5d0 0, transparent 42%), linear-gradient(140deg, #f3eee4, #e9e0d3); }
.portfolio-art-window { position: relative; width: 100%; height: 100%; min-height: 148px; overflow: hidden; border: 1px solid rgba(37,49,67,.1); border-radius: 8px; background: white; box-shadow: 0 14px 24px rgba(31,43,61,.16); }
.portfolio-art-browser { display: flex; align-items: center; gap: 4px; height: 15px; padding: 0 7px; border-bottom: 1px solid #edf0f3; background: #fbfcfd; }
.portfolio-art-browser > span { width: 4px; height: 4px; border-radius: 50%; background: #ed9789; }
.portfolio-art-browser > span:nth-child(2) { background: #e6bd69; }
.portfolio-art-browser > span:nth-child(3) { background: #70bf92; }
.portfolio-art-browser > i { width: 44%; margin-left: auto; padding: 2px 5px; border-radius: 3px; background: #f0f2f5; color: #9da6b2; font: normal 5px var(--font-sans); text-align: center; }
.portfolio-art-browser > b { margin-left: auto; color: #9da6b2; font-size: 7px; font-weight: 500; }
.portfolio-art-badge { position: absolute; right: 5px; bottom: 5px; padding: 4px 6px; border: 1px solid rgba(255,255,255,.46); border-radius: 999px; background: rgba(27,38,49,.64); color: #fff; font-size: 6px; font-weight: 800; letter-spacing: .08em; }
.portfolio-art-page { position: relative; height: calc(100% - 15px); min-height: 133px; overflow: hidden; background: #faf9f3; }
.portfolio-art-page > header { display: flex; justify-content: space-between; align-items: center; height: 22px; padding: 0 9px; border-bottom: 1px solid #eeece5; color: #445b4d; }
.portfolio-art-page > header b { font: 700 7px Georgia,serif; letter-spacing: .1em; }
.portfolio-art-page > header span { color: #7c877b; font-size: 5px; }
.portfolio-art-copy { position: absolute; z-index: 2; top: 39px; left: 9px; display: grid; gap: 6px; width: 54%; }
.portfolio-art-copy > small { color: #9a7955; font-size: 5px; font-weight: 800; letter-spacing: .11em; }
.portfolio-art-copy > strong { color: #354d40; font: 400 clamp(13px, 2vw, 23px)/1.06 Georgia,serif; }
.portfolio-art-copy > span { max-width: 95%; color: #758075; font-size: 6px; line-height: 1.5; }
.portfolio-art-copy > i { display: inline-block; width: fit-content; margin-top: 2px; padding-bottom: 3px; border-bottom: 1px solid #708574; color: #405b49; font-size: 6px; font-style: normal; font-weight: 700; }
.portfolio-art-scene { position: absolute; top: 30px; right: 7px; width: 40%; height: 71%; overflow: hidden; background: linear-gradient(145deg, #d4ddcd, #b7c3af 55%, #ece0cb); }
.portfolio-art-scene::before { position: absolute; top: 12%; right: 16%; width: 40px; height: 40px; border-radius: 50%; background: #e9c995; content: ''; }
.portfolio-art-scene > span { position: absolute; z-index: 1; right: 22%; bottom: 6%; width: 39%; height: 63%; border-radius: 48% 48% 12% 12%; background: linear-gradient(90deg,#c18655,#f1e7d5 43%,#e7d8bf); box-shadow: 4px 5px 9px #66745a55; transform: rotate(-9deg); }
.portfolio-art-scene > i { position: absolute; z-index: 2; right: 9%; bottom: 3%; color: #526d51; font-size: 29px; font-style: normal; }
.portfolio-art-scene > b { position: absolute; top: 34%; left: 14%; width: 18px; height: 35px; border-radius: 50% 50% 3px 3px; background: #879478; transform: rotate(-15deg); }
.portfolio-art-products { position: absolute; right: 9px; bottom: 6px; left: 9px; display: flex; gap: 5px; }
.portfolio-art-products > i { flex: 1; height: 15px; border-radius: 2px; background: linear-gradient(135deg,#e8ddcc,#d1c1a8); }
.portfolio-art-products > i:nth-child(2) { background: linear-gradient(135deg,#e3e8dd,#bbc8b8); }
.portfolio-art-products > i:nth-child(3) { background: linear-gradient(135deg,#eae3ef,#c9bfd2); }
.portfolio-art-workspace { display: grid; grid-template-columns: 22% 1fr; height: calc(100% - 15px); min-height: 133px; background: #f7f8fb; }
.portfolio-art-workspace > aside { display: grid; align-content: start; gap: 8px; padding: 9px 6px; border-right: 1px solid #e9edf3; background: #fff; }
.portfolio-art-workspace > aside b { display: grid; width: 14px; height: 14px; place-items: center; margin-bottom: 4px; border-radius: 4px; background: #6559dc; color: #fff; font-size: 8px; }
.portfolio-art-workspace > aside i { width: 75%; height: 4px; border-radius: 3px; background: #e4e7ee; }
.portfolio-art-workspace > aside i:first-of-type { background: #bbb5f2; }
.portfolio-art-workspace-main { padding: 10px 11px; }
.portfolio-art-workspace-main > span { color: #959fb0; font-size: 5px; font-weight: 800; letter-spacing: .1em; }
.portfolio-art-workspace-main > strong { display: block; margin-top: 4px; color: #354158; font-size: 10px; }
.portfolio-art-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin-top: 8px; }
.portfolio-art-metrics > i { height: 20px; border: 1px solid #e7eaf0; border-radius: 3px; background: linear-gradient(#fff 55%,#f4f3ff 55%); }
.portfolio-art-chart { display: flex; align-items: end; justify-content: space-around; height: 45px; margin-top: 7px; padding: 4px 8px 0; border: 1px solid #e8ebf1; border-radius: 3px; background: #fff; }
.portfolio-art-chart > i { width: 7%; height: var(--art-height); border-radius: 2px 2px 0 0; background: #a39cf0; }
.portfolio-art-chart > i:nth-child(3n) { background: #80ceb9; }
.portfolio-art-phone { position: relative; display: grid; align-content: start; gap: 7px; width: 42%; height: calc(100% - 22px); min-height: 126px; margin: 9px auto 0; padding: 18px 8px 8px; border: 3px solid #222b3b; border-radius: 13px; background: #fafbff; box-shadow: 0 6px 10px #30394a38; }
.portfolio-art-phone-top { position: absolute; top: 3px; left: 50%; width: 32px; height: 6px; border-radius: 0 0 5px 5px; background: #222b3b; transform: translateX(-50%); }
.portfolio-art-label { color: #929bad; font-size: 5px; font-weight: 800; letter-spacing: .1em; }
.portfolio-art-phone > strong { color: #354158; font-size: 9px; }
.portfolio-art-phone-card { display: grid; gap: 4px; padding: 9px 6px; border-radius: 6px; background: linear-gradient(135deg,#615bd6,#9b8ef0); }
.portfolio-art-phone-card > i { width: 40%; height: 3px; border-radius: 3px; background: #d5d2ff; }
.portfolio-art-phone-card > b { width: 75%; height: 5px; border-radius: 3px; background: #fff; }
.portfolio-art-phone-card > b + b { width: 53%; height: 3px; background: #d5d2ff; }
.portfolio-art-phone-card > span { width: 50%; height: 9px; margin-top: 4px; border-radius: 3px; background: #fff; }
.portfolio-art-phone-row { height: 12px; border: 1px solid #eaedf2; border-radius: 4px; background: linear-gradient(90deg,#e9e6ff 0 15%,#fff 15%); }
.portfolio-art-phone-nav { display: flex; justify-content: space-around; margin-top: auto; }
.portfolio-art-phone-nav > i { width: 7px; height: 7px; border-radius: 50%; background: #a29aeb; }
.portfolio-case-image.portfolio-concept-thumb { padding: clamp(12px, 3vw, 28px); }
.portfolio-case-image.portfolio-concept-thumb img { border-radius: var(--radius-lg); box-shadow: 0 20px 54px -28px rgba(15,23,42,.45); }
.portfolio-card-tags { min-height: 25px; }
.portfolio-concept-disclosure { display: flex; align-items: flex-start; gap: 10px; max-width: 760px; margin-top: var(--space-5); padding: 14px 16px; border: 1px solid rgba(217,119,6,.28); border-radius: var(--radius-lg); background: rgba(255,251,235,.12); color: #ffedbd; font-size: 14px; line-height: 1.65; }
.portfolio-concept-disclosure .icon { flex: none; margin-top: 2px; }
.portfolio-placeholder { display: grid; justify-items: center; gap: 8px; color: rgba(255,255,255,.88); font-size: 12px; }
.portfolio-body { padding: var(--space-5); display: grid; gap: 8px; }
.portfolio-body h3 { font-size: 17px; }
.portfolio-body p { font-size: 14px; color: var(--text-muted); line-height: 1.55; }
.portfolio-result { font-size: 13px; font-weight: 600; color: var(--success-text); background: var(--success-soft); padding: 8px 10px; border-radius: 10px; }
.portfolio-actions { margin-top: auto; padding-top: 4px; }
.portfolio-actions .btn { padding-inline: 0; }
.portfolio-select-btn { gap: 6px; }
.portfolio-select-btn.is-selected { --btn-bg: var(--primary-soft); --btn-fg: var(--primary-text); --btn-border: var(--primary-soft-2); }
.template-selection-dock { position: fixed; z-index: 900; inset: auto 16px 16px; display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); width: min(100% - 32px, 1040px); margin-inline: auto; padding: 14px 18px; border: 1px solid var(--border-strong); border-radius: var(--radius-xl); background: var(--surface); box-shadow: 0 18px 54px rgba(15,23,42,.22); }
.template-selection-dock[hidden] { display: none; }
.template-selection-summary { display: flex; align-items: center; gap: 12px; min-width: 0; }
.template-selection-icon { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); font-weight: 800; }
.template-selection-summary strong { font-size: 14px; }
.template-selection-summary p { max-width: 470px; overflow: hidden; margin: 2px 0 0; color: var(--text-muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.template-selection-actions { display: flex; align-items: center; gap: var(--space-3); flex: none; }
.portfolio-detail-tags { margin-top: var(--space-5); }
.portfolio-detail-hero h1 { margin-top: var(--space-4); }
.portfolio-preview-toolbar { display: flex; align-items: center; gap: 14px; margin-bottom: var(--space-4); }
.portfolio-preview-title { font-size: 14px; font-weight: 750; }
.portfolio-preview-switch { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.portfolio-preview-switch button { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 10px; border: 0; border-radius: 7px; background: transparent; color: var(--text-muted); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.portfolio-preview-switch button[aria-pressed='true'] { background: var(--primary-soft); color: var(--primary-text); }
.portfolio-preview-note { margin-left: auto; color: var(--text-muted); font-size: 12px; }
.portfolio-case-image { max-height: 620px; margin: 0 0 var(--space-10); overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-xl); background: var(--surface-2); }
.portfolio-case-image img { display: block; width: 100%; max-height: 620px; object-fit: cover; }
.portfolio-case-image[data-preview-mode='mobile'] { width: min(100%, 400px); aspect-ratio: 9 / 16; max-height: 690px; margin-inline: auto; padding: 10px; border-radius: 28px; background: #182337; }
.portfolio-case-image[data-preview-mode='mobile'] img { height: 100%; max-height: none; border-radius: 20px; object-fit: cover; object-position: center; }
.portfolio-case-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 320px); gap: var(--space-10); align-items: start; }
.portfolio-case-content { display: grid; gap: var(--space-8); }
.portfolio-case-content h2 { margin-bottom: var(--space-2); font-size: 22px; }
.portfolio-case-content p { color: var(--text-muted); line-height: 1.75; white-space: pre-line; }
.portfolio-case-result { padding: var(--space-5); border: 1px solid var(--success-soft); border-radius: var(--radius-lg); background: var(--success-soft); }
.portfolio-case-result p { display: flex; gap: 8px; align-items: flex-start; color: var(--success-text); font-weight: 600; }
.portfolio-case-aside { position: sticky; top: 100px; display: grid; gap: var(--space-5); padding: var(--space-6); border: 1px solid var(--border); border-radius: var(--radius-xl); background: var(--surface); }
.portfolio-case-aside > div { display: grid; gap: 8px; }
.portfolio-case-label { color: var(--text-muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.portfolio-back-link { margin-top: var(--space-8); }
@media (max-width: 760px) { .portfolio-case-layout { grid-template-columns: 1fr; gap: var(--space-6); } .portfolio-case-aside { position: static; } }
@media (max-width: 640px) {
  .portfolio-explorer { padding: var(--space-4); }
  .portfolio-filter-tools { grid-template-columns: 1fr; gap: 0; }
  .portfolio-explorer .filter-pills { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; padding: 2px 2px 9px; scrollbar-width: thin; }
  .portfolio-explorer .filter-pill { flex: none; }
  .template-selection-dock { inset-inline: 8px; bottom: 8px; width: calc(100% - 16px); flex-direction: column; align-items: stretch; gap: 10px; padding: 12px; }
  .template-selection-summary p { max-width: 100%; }
  .template-selection-actions { justify-content: space-between; }
  .template-selection-actions .btn-primary { flex: 1; }
  .portfolio-preview-toolbar { flex-wrap: wrap; gap: 9px; }
  .portfolio-preview-note { width: 100%; margin-left: 0; }
}

/* ----- Interactive portfolio showcases ----- */
.portfolio-live-demo { max-height: none; padding: 0; overflow: auto; background: #e9edf4; }
.portfolio-live-demo[data-preview-mode='mobile'] { display: flex; flex-direction: column; width: min(100%, 430px); height: min(790px, 88vh); max-height: none; aspect-ratio: auto; margin-inline: auto; padding: 15px; border: 1px solid #293548; border-radius: 32px; background: #172235; }
.demo-window { min-width: 0; overflow: hidden; background: #fff; color: #172238; font-family: var(--font-sans); }
.portfolio-live-demo[data-preview-mode='mobile'] .demo-window { flex: 1; height: auto; min-height: 0; overflow: auto; border-radius: 20px; }
.demo-browser-bar { display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border-bottom: 1px solid #edf0f3; background: #fbfcfd; color: #a0a9b6; font: 10px var(--font-sans); }
.demo-browser-bar > span { width: 7px; height: 7px; border-radius: 50%; background: #f08e83; }
.demo-browser-bar > span:nth-child(2) { background: #ecc06d; }
.demo-browser-bar > span:nth-child(3) { background: #73c89c; }
.demo-browser-bar > div { width: min(44%, 340px); margin-left: auto; padding: 4px 11px; border: 1px solid #edf0f3; border-radius: 5px; background: #fff; text-align: center; }
.demo-browser-bar > b { margin-left: auto; font-size: 12px; font-weight: 500; }
.demo-disclosure { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-top: 1px solid #e3e8ef; background: #fff; color: #667287; font-size: 11px; line-height: 1.5; }
.demo-disclosure > span { display: inline-flex; flex: none; align-items: center; gap: 5px; padding: 5px 8px; border-radius: 999px; background: #fff6df; color: #8a5b08; font-size: 10px; font-weight: 800; }
.demo-store { --store-ink: #253c34; --store-muted: #7c8175; --store-line: #ecebe4; background: #fffefa; color: var(--store-ink); }
.demo-store-nav { display: flex; align-items: center; justify-content: space-between; min-height: 66px; padding: 12px clamp(18px, 4vw, 48px); border-bottom: 1px solid var(--store-line); }
.demo-wordmark { display: grid; color: inherit; font-family: Georgia, serif; font-size: 18px; font-weight: 700; letter-spacing: .1em; }
.demo-wordmark small { margin-top: 3px; color: var(--store-muted); font: 8px var(--font-sans); letter-spacing: .17em; }
.demo-store-nav nav { display: flex; gap: clamp(12px, 3vw, 32px); }
.demo-store-nav nav a, .demo-nav-cta, .demo-cart { color: #59645d; font-size: 11px; font-weight: 650; }
.demo-store-nav nav a:hover, .demo-nav-cta:hover { color: #a26944; }
.demo-nav-cta { padding: 10px 13px; border-radius: 5px; background: #edf1e9; color: #314c3e; }
.demo-cart { padding: 8px 11px; border: 1px solid #dcded5; border-radius: 5px; background: transparent; }
.demo-cart span { display: inline-grid; place-items: center; min-width: 18px; height: 18px; margin-left: 5px; border-radius: 50%; background: #365549; color: #fff; font-size: 10px; }
.demo-store-hero { display: grid; grid-template-columns: minmax(0, .93fr) minmax(250px, 1.07fr); min-height: 340px; padding: 34px clamp(22px, 5vw, 64px); background: #f4f1e9; }
.demo-store-copy { align-self: center; padding: 12px clamp(0px, 2vw, 24px) 12px 0; }
.demo-kicker { display: inline-flex; align-items: center; gap: 7px; color: #92724d; font-size: 9px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.demo-kicker i { width: 6px; height: 6px; border-radius: 50%; background: #c58c52; }
.demo-store-copy h2 { max-width: 390px; margin: 16px 0 12px; color: #32483d; font: 400 clamp(29px, 4vw, 48px)/1.06 Georgia, serif; letter-spacing: -.04em; }
.demo-store-copy p { max-width: 370px; color: #7d7d72; font-size: 12px; line-height: 1.7; }
.demo-store-link { display: inline-flex; align-items: center; gap: 16px; margin-top: 22px; padding-bottom: 7px; border-bottom: 1px solid #809080; color: #385a47; font-size: 11px; font-weight: 750; }
.demo-store-link span { font-size: 15px; }
.demo-inline-feedback { display: block; min-height: 16px; margin-top: 10px; color: #597650; font-size: 10px; }
.demo-store-art { position: relative; display: grid; min-height: 270px; overflow: hidden; place-items: center; background: linear-gradient(145deg, #d8d9c8, #b5c3ad 47%, #e9d6bc); }
.demo-store-art::before { position: absolute; inset: 10% 12%; border: 1px solid rgba(255,255,255,.52); content: ''; }
.demo-store-art::after { position: absolute; right: -7%; bottom: -40%; width: 65%; height: 110%; border-radius: 50%; background: rgba(54,77,62,.17); content: ''; }
.demo-art-sun { position: absolute; top: 15%; right: 22%; width: 90px; height: 90px; border-radius: 50%; background: #e8c990; box-shadow: 0 0 60px rgba(255,250,217,.35); }
.demo-art-object { position: relative; z-index: 1; width: 38%; height: 58%; border-radius: 48% 48% 24% 24% / 30% 30% 12% 12%; background: linear-gradient(110deg, #f4e3c2 0 25%, #bd8051 26% 31%, #f3ead8 32% 100%); box-shadow: 20px 22px 40px rgba(59,68,48,.2); transform: rotate(-7deg); }
.demo-art-object::before { position: absolute; top: 2%; left: 15%; width: 70%; height: 14%; border-radius: 50%; background: #60503e; content: ''; }
.demo-art-leaf { position: absolute; z-index: 2; right: 11%; bottom: 8%; color: #526b4e; font-size: 68px; transform: rotate(-16deg); }
.demo-store-art > span { position: absolute; z-index: 3; bottom: 12px; left: 15px; color: rgba(255,255,255,.92); font-size: 8px; font-weight: 800; letter-spacing: .15em; }
.demo-store-art.is-commerce { background: linear-gradient(135deg, #e9d9c1, #c9b49d 52%, #ead8ca); }
.demo-store-art.is-commerce .demo-art-object { width: 44%; height: 53%; border-radius: 45% 45% 14% 14%; background: linear-gradient(110deg, #415b45 0 19%, #ece3cd 20% 78%, #9b6748 79%); transform: rotate(4deg); }
.demo-store-art.is-commerce .demo-art-object::before { top: -10%; left: 17%; width: 66%; height: 26%; border: 7px solid #415b45; background: transparent; }
.demo-store-products { padding: 26px clamp(22px, 5vw, 64px) 28px; }
.demo-store-section-head { display: flex; align-items: end; justify-content: space-between; gap: 15px; margin-bottom: 15px; }
.demo-store-section-head h3 { margin-top: 5px; color: #32483d; font: 400 22px Georgia, serif; }
.demo-store-section-head > button { border: 0; background: none; color: #5d7564; font: 700 10px var(--font-sans); }
.demo-product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.demo-product-card { min-width: 0; }
.demo-product-art { position: relative; display: grid; min-height: 112px; overflow: hidden; place-items: center; background: linear-gradient(145deg, #e8d9c9, #d1c6b7); }
.demo-product-art::after { position: absolute; right: -14%; bottom: -60%; width: 90%; height: 120%; border-radius: 50%; background: rgba(255,255,255,.28); content: ''; }
.demo-product-art-1 { background: linear-gradient(145deg, #dce0d3, #bac8ba); }
.demo-product-art-2 { background: linear-gradient(145deg, #e4dfe9, #c8c0ce); }
.demo-product-art > span { position: relative; z-index: 1; color: #78644d; font-size: 42px; }
.demo-product-art > small { position: absolute; z-index: 1; right: 8px; bottom: 7px; color: rgba(45,55,48,.65); font-size: 8px; }
.demo-product-info { display: flex; align-items: center; justify-content: space-between; gap: 5px; padding-top: 8px; }
.demo-product-info > div { display: grid; gap: 3px; min-width: 0; }
.demo-product-info strong { overflow: hidden; color: #3d4b40; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.demo-product-info small { color: #899087; font-size: 9px; }
.demo-product-info > button { flex: none; width: 26px; height: 26px; border: 1px solid #d9ded4; border-radius: 50%; background: #fff; color: #385a47; font-size: 16px; }
.demo-product-arrow { color: #819181; font-size: 15px; }
.demo-store-footer { display: flex; justify-content: space-between; gap: 12px; padding: 12px clamp(22px, 5vw, 64px); border-top: 1px solid #ecebe4; color: #8a9087; font-size: 9px; }

.demo-app-window { background: #f6f8fb; }
.demo-dashboard, .demo-system { display: grid; grid-template-columns: 195px minmax(0, 1fr); min-height: 625px; }
.demo-sidebar { position: relative; display: flex; flex-direction: column; gap: 7px; padding: 20px 13px; border-right: 1px solid #e9edf2; background: #fff; }
.demo-app-brand { display: flex; align-items: center; gap: 7px; margin: 0 0 25px 5px; color: #26344c; font-size: 13px; font-weight: 800; }
.demo-app-brand > span:first-child { display: grid; width: 25px; height: 25px; place-items: center; border-radius: 8px; background: #594fe5; color: #fff; font-size: 15px; }
.demo-app-brand > span:last-child { margin-left: -7px; color: #718096; font-weight: 500; }
.demo-sidebar > small { margin: 0 0 6px 7px; color: #9ba5b4; font-size: 8px; font-weight: 800; letter-spacing: .13em; }
.demo-sidebar > button { display: flex; align-items: center; gap: 9px; min-height: 34px; padding: 0 9px; border: 0; border-radius: 7px; background: transparent; color: #768195; text-align: left; font: 600 10px var(--font-sans); }
.demo-sidebar > button.is-active { background: #eeedff; color: #5349d5; }
.demo-sidebar > button i { width: 15px; font-style: normal; text-align: center; }
.demo-sidebar > button b { margin-left: auto; color: #98a2b1; font-size: 9px; }
.demo-sidebar-bottom { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 13px; border-top: 1px solid #edf0f4; }
.demo-sidebar-bottom > div { display: grid; gap: 3px; min-width: 0; }
.demo-sidebar-bottom strong { color: #364257; font-size: 9px; }
.demo-sidebar-bottom small { color: #96a0af; font-size: 8px; }
.demo-sidebar-bottom > span:last-child { margin-left: auto; color: #8893a2; }
.demo-avatar { display: inline-grid; flex: none; width: 27px; height: 27px; place-items: center; border-radius: 50%; background: #fce5dd; color: #a7604b; font-size: 8px; font-weight: 800; }
.demo-avatar.is-violet { background: #e9e5ff; color: #6354c8; }
.demo-avatar.is-green { background: #e1f2e9; color: #40835d; }
.demo-avatar.is-rose { background: #f8e4ed; color: #9d5572; }
.demo-dashboard-main { min-width: 0; padding: 23px clamp(16px, 3vw, 34px); }
.demo-dash-top, .demo-chart-card > header, .demo-table-card > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.demo-dash-top > div > small, .demo-system-header > div > small { color: #9aa5b3; font-size: 8px; font-weight: 800; letter-spacing: .12em; }
.demo-dash-top h2, .demo-system-header h2 { margin-top: 5px; color: #253149; font-size: 19px; }
.demo-date-button { padding: 8px 10px; border: 1px solid #e2e7ed; border-radius: 7px; background: #fff; color: #647084; font: 600 9px var(--font-sans); }
.demo-dash-notice { margin: 15px 0; padding: 8px 10px; border: 1px solid #e6e9fb; border-radius: 6px; background: #f2f3ff; color: #7173a1; font-size: 9px; }
.demo-dash-notice span { margin-right: 5px; color: #655dd5; }
.demo-metric-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.demo-metric-grid article { display: grid; gap: 9px; min-width: 0; padding: 13px; border: 1px solid #e9edf2; border-radius: 9px; background: #fff; }
.demo-metric-grid article > span { display: flex; justify-content: space-between; color: #7e8998; font-size: 9px; }
.demo-metric-grid article > span b { color: #a2abb8; }
.demo-metric-grid article > strong { color: #293750; font-size: 22px; letter-spacing: -.04em; }
.demo-metric-grid article > small { color: #a1aab7; font-size: 8px; white-space: nowrap; }
.demo-metric-grid article > small i { color: #348c66; font-style: normal; font-weight: 800; }
.demo-chart-card, .demo-table-card { margin-top: 12px; padding: 14px; border: 1px solid #e9edf2; border-radius: 9px; background: #fff; }
.demo-chart-card > header strong, .demo-table-card > header strong { display: block; color: #39465b; font-size: 10px; }
.demo-chart-card > header small { display: block; margin-top: 4px; color: #a1aab7; font-size: 8px; }
.demo-chart-card > header button, .demo-table-card > header button { padding: 6px 8px; border: 1px solid #e5e9ef; border-radius: 6px; background: #fff; color: #778396; font: 600 8px var(--font-sans); }
.demo-chart { display: grid; grid-template-columns: 23px minmax(0, 1fr); height: 120px; margin-top: 12px; }
.demo-chart-y { display: flex; flex-direction: column; justify-content: space-between; padding-bottom: 3px; color: #a8b0bc; font-size: 7px; }
.demo-chart-bars { display: flex; align-items: end; justify-content: space-around; gap: 6px; border-bottom: 1px solid #e9edf2; background: repeating-linear-gradient(to bottom, transparent 0 calc(25% - 1px), #f0f2f5 calc(25% - 1px) 25%); }
.demo-chart-bars > span { width: min(5.5%, 19px); height: var(--bar-height); border-radius: 3px 3px 0 0; background: linear-gradient(180deg, #8983f4, #bbb8fa); transition: height 260ms ease; }
.demo-chart-bars > span:nth-child(3n) { background: linear-gradient(180deg, #55bda5, #a2e0cf); }
.demo-chart-x { display: flex; justify-content: space-around; margin: 5px 0 0 23px; color: #a2abb8; font-size: 7px; }
.demo-table-card > header { margin-bottom: 8px; }
.demo-table-row { display: grid; grid-template-columns: 25px minmax(0, 1fr) auto 55px; align-items: center; gap: 8px; padding: 8px 0; border-top: 1px solid #f0f2f5; }
.demo-table-icon { display: grid; width: 23px; height: 23px; place-items: center; border-radius: 6px; background: #fff4dc; color: #bb8835; font-size: 12px; }
.demo-table-icon.is-green { background: #e5f6ed; color: #3b9b6b; }
.demo-table-row > span:nth-child(2) { display: grid; gap: 3px; min-width: 0; }
.demo-table-row b { overflow: hidden; color: #596579; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.demo-table-row small, .demo-table-row time { color: #a2abb7; font-size: 7px; }
.demo-table-row > strong { padding: 4px 6px; border-radius: 999px; background: #fff4db; color: #ad7a26; font-size: 7px; white-space: nowrap; }
.demo-table-row > strong.is-done { background: #e4f5eb; color: #3c8e63; }

.demo-system-main { min-width: 0; padding: 22px clamp(13px, 2.5vw, 28px); }
.demo-system-header { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.demo-system-header h2 { font-size: 18px; }
.demo-system-header p { margin-top: 5px; color: #8792a2; font-size: 9px; }
.demo-new-ticket { flex: none; padding: 9px 11px; border: 0; border-radius: 6px; background: #594fe5; color: #fff; font: 700 9px var(--font-sans); }
.demo-system-tools { display: flex; gap: 7px; margin: 16px 0 12px; }
.demo-system-tools > span { padding: 7px 8px; border: 1px solid #e6eaf0; border-radius: 5px; background: #fff; color: #788497; font-size: 8px; }
.demo-system-tools > .demo-system-tool-end { margin-left: auto; }
.demo-flow-icon { background: #e7e4ff !important; color: #5d50d9 !important; }
.demo-kanban { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; align-items: start; }
.demo-kanban > section { min-width: 0; padding: 8px; border: 1px solid #e9edf2; border-radius: 8px; background: #f8f9fb; }
.demo-kanban > section > header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; color: #657185; font-size: 8px; font-weight: 750; }
.demo-kanban > section > header > b { display: grid; min-width: 18px; height: 18px; place-items: center; border-radius: 5px; background: #e9edf2; color: #7d8898; font-size: 8px; }
.status-dot { display: inline-block; width: 6px; height: 6px; margin-right: 4px; border-radius: 50%; background: #5d85e4; }
.status-dot.is-amber { background: #e4ad4f; }
.status-dot.is-green { background: #59ad7f; }
.demo-ticket { margin-bottom: 7px; padding: 9px; border: 1px solid #e8ebf0; border-radius: 7px; background: #fff; }
.demo-ticket > small { display: block; color: #a0a9b6; font-size: 7px; font-weight: 750; letter-spacing: .06em; }
.demo-ticket > strong { display: block; margin-top: 8px; color: #465267; font-size: 9px; line-height: 1.4; }
.demo-ticket > p { min-height: 27px; margin-top: 5px; color: #929cac; font-size: 8px; line-height: 1.45; }
.demo-ticket > footer { display: flex; align-items: center; gap: 5px; margin-top: 9px; color: #8792a1; font-size: 7px; }
.demo-avatar.mini { width: 18px; height: 18px; font-size: 6px; }
.demo-ticket > footer button { display: grid; width: 20px; height: 20px; place-items: center; margin-left: auto; border: 1px solid #e7eaf0; border-radius: 5px; background: #fff; color: #68758a; }
.demo-ticket.is-complete { opacity: .8; }
.demo-complete-check { margin-left: auto; color: #409368; font-size: 13px; }
.demo-ticket-placeholder { padding: 8px 4px; color: #a1aab7; font-size: 8px; }
.demo-system-feedback { min-height: 27px; padding-top: 9px; color: #8b95a4; font-size: 8px; }

.demo-mobile-stage { display: grid; justify-items: center; gap: 14px; padding: 26px 12px; background: radial-gradient(ellipse at 50% 38%, #fff 0, #e8e9ff 48%, #eef5f1 100%); }
.demo-phone { position: relative; width: min(100%, 320px); min-height: 640px; padding: 7px; border: 5px solid #252c3b; border-radius: 39px; background: #252c3b; box-shadow: 0 22px 50px rgba(34,40,70,.25); }
.demo-phone-notch { position: absolute; z-index: 3; top: 9px; left: 50%; width: 86px; height: 19px; border-radius: 0 0 13px 13px; background: #252c3b; transform: translateX(-50%); }
.demo-phone-screen { display: flex; flex-direction: column; min-height: 626px; overflow: hidden; border-radius: 29px; background: #fafbff; }
.demo-phone-status { display: flex; justify-content: space-between; padding: 8px 17px 0; color: #4c5566; font-size: 8px; font-weight: 800; }
.demo-mobile-header { display: flex; align-items: center; justify-content: space-between; padding: 23px 17px 15px; }
.demo-mobile-header > div { display: grid; gap: 4px; }
.demo-mobile-header small, .demo-mobile-screen-heading > small, .demo-profile-card > small { color: #9aa2b1; font-size: 8px; font-weight: 800; letter-spacing: .1em; }
.demo-mobile-header strong { color: #273249; font-size: 16px; }
.demo-mobile-header strong span { color: #8b7df0; }
.demo-mobile-header > button { width: 30px; height: 30px; border: 1px solid #eceef4; border-radius: 50%; background: #fff; color: #737d91; }
.demo-mobile-content { flex: 1; padding: 0 15px 12px; }
.demo-mobile-card { display: grid; gap: 7px; padding: 16px; border-radius: 15px; background: linear-gradient(135deg, #6159d8, #9487ef); color: #fff; box-shadow: 0 9px 18px rgba(96,87,212,.2); }
.demo-mobile-card > span { color: #e4e0ff; font-size: 8px; font-weight: 800; letter-spacing: .1em; }
.demo-mobile-card > strong { font-size: 15px; }
.demo-mobile-card > small { color: #e1deff; font-size: 9px; }
.demo-mobile-card > button { justify-self: start; margin-top: 4px; padding: 7px 9px; border: 0; border-radius: 6px; background: #fff; color: #554cc4; font-size: 8px; font-weight: 800; }
.demo-mobile-heading { display: flex; justify-content: space-between; align-items: center; margin: 19px 0 9px; }
.demo-mobile-heading > strong, .demo-mobile-screen-heading > strong { color: #39445a; font-size: 12px; }
.demo-mobile-heading > button { border: 0; background: none; color: #746add; font-size: 8px; font-weight: 700; }
.demo-task-row { display: flex; align-items: center; gap: 9px; width: 100%; margin-top: 7px; padding: 10px 9px; border: 1px solid #eceef3; border-radius: 10px; background: #fff; text-align: left; }
.demo-task-row > i { width: 15px; height: 15px; flex: none; border: 1.5px solid #cbd1dc; border-radius: 5px; }
.demo-task-row > span { display: grid; gap: 4px; min-width: 0; }
.demo-task-row b { color: #4d586c; font-size: 9px; }
.demo-task-row small { color: #9ba4b1; font-size: 8px; }
.demo-task-row > em { margin-left: auto; color: #a0a8b5; font-size: 15px; font-style: normal; }
.demo-task-row.is-complete { background: #f0faf5; }
.demo-task-row.is-complete > i { border-color: #50a978; background: #50a978; box-shadow: inset 0 0 0 3px #f0faf5; }
.demo-task-row.is-complete b { color: #71857a; text-decoration: line-through; }
.demo-mobile-note { display: flex; align-items: center; gap: 9px; margin-top: 13px; padding: 11px; border-radius: 9px; background: #f1f0ff; }
.demo-mobile-note > span { color: #7166dc; font-size: 15px; }
.demo-mobile-note > div { display: grid; gap: 3px; }
.demo-mobile-note b { color: #5b58a0; font-size: 8px; }
.demo-mobile-note small { color: #8988ad; font-size: 7px; }
.demo-mobile-screen-heading { display: grid; gap: 6px; margin: 14px 0; }
.demo-mobile-screen-heading > p { color: #9ba4b1; font-size: 9px; }
.demo-profile-card { display: grid; justify-items: center; gap: 8px; padding: 24px 15px; border: 1px solid #eceef3; border-radius: 14px; background: #fff; }
.demo-profile-card > span { display: grid; width: 54px; height: 54px; place-items: center; border-radius: 50%; background: #e8e6ff; color: #655bce; font-size: 14px; font-weight: 800; }
.demo-profile-card > strong { color: #39445a; font-size: 13px; }
.demo-profile-card > p { color: #919aaa; font-size: 9px; }
.demo-profile-card > button { margin-top: 5px; padding: 8px 10px; border: 1px solid #e8eaf0; border-radius: 7px; background: #fff; color: #6258ca; font-size: 8px; font-weight: 700; }
.demo-mobile-tabs { display: flex; justify-content: space-around; padding: 9px 5px 11px; border-top: 1px solid #eceef3; background: #fff; }
.demo-mobile-tabs > button { display: grid; justify-items: center; gap: 3px; border: 0; background: none; color: #9ba3b0; font-size: 7px; }
.demo-mobile-tabs > button > i { font-size: 16px; font-style: normal; }
.demo-mobile-tabs > button.is-active { color: #695fdb; font-weight: 800; }
.demo-mobile-caption { display: flex; align-items: center; gap: 7px; color: #69748a; font-size: 10px; }
.demo-live-dot { width: 7px; height: 7px; border-radius: 50%; background: #42a879; box-shadow: 0 0 0 3px rgba(66,168,121,.14); }

@media (max-width: 700px) {
  .demo-store-nav { min-height: 57px; }
  .demo-store-nav nav { gap: 10px; }
  .demo-store-nav nav a { font-size: 9px; }
  .demo-store-hero { grid-template-columns: 1fr; gap: 20px; padding-block: 24px; }
  .demo-store-copy h2 { max-width: none; font-size: 34px; }
  .demo-store-art { min-height: 205px; }
  .demo-product-art { min-height: 88px; }
  .demo-product-art > span { font-size: 32px; }
  .demo-dashboard, .demo-system { grid-template-columns: 1fr; }
  .demo-dashboard .demo-sidebar, .demo-system .demo-sidebar { display: flex; flex-direction: row; align-items: center; gap: 4px; overflow-x: auto; padding: 8px 10px; border-right: 0; border-bottom: 1px solid #e9edf2; }
  .demo-sidebar > small, .demo-sidebar-bottom { display: none; }
  .demo-app-brand { flex: none; margin: 0 5px 0 0; }
  .demo-sidebar > button { flex: none; white-space: nowrap; }
  .demo-dashboard-main, .demo-system-main { padding: 17px 12px; }
  .demo-metric-grid { gap: 6px; }
  .demo-metric-grid article { padding: 9px 7px; }
  .demo-metric-grid article > span, .demo-metric-grid article > small { font-size: 7px; }
  .demo-metric-grid article > strong { font-size: 17px; }
  .demo-kanban { gap: 5px; }
  .demo-kanban > section { padding: 5px; }
  .demo-ticket { padding: 6px; }
  .demo-ticket > strong { font-size: 8px; }
  .demo-ticket > footer { font-size: 6px; }
}
@media (max-width: 460px) {
  .demo-store-nav nav { display: none; }
  .demo-store-footer { flex-direction: column; }
  .demo-table-row { grid-template-columns: 23px minmax(0, 1fr) auto; }
  .demo-table-row time { display: none; }
  .demo-kanban { grid-template-columns: 1fr; }
  .demo-system-tools > span:nth-child(2), .demo-system-tools > span:nth-child(3) { display: none; }
}
.tone-1 { background: linear-gradient(135deg, #6366f1, #a855f7); } .tone-2 { background: linear-gradient(135deg, #06b6d4, #3b82f6); }
.tone-3 { background: linear-gradient(135deg, #f97316, #ec4899); } .tone-4 { background: linear-gradient(135deg, #10b981, #0ea5e9); }
.tone-5 { background: linear-gradient(135deg, #8b5cf6, #ec4899); } .tone-6 { background: linear-gradient(135deg, #0f172a, #4f46e5); }

/* ----- Pricing ----- */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: var(--space-5); align-items: stretch; }
.price-card { position: relative; display: flex; flex-direction: column; gap: var(--space-4); padding: var(--space-8) var(--space-6); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); }
.price-card.featured { border: 2px solid var(--primary); box-shadow: 0 30px 60px -30px rgba(79, 70, 229, 0.5); }
.price-card .ribbon { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); padding: 4px 12px; border-radius: 999px; background: var(--primary); color: #fff; font-size: 12px; font-weight: 700; white-space: nowrap; }
.price-name { font-size: 18px; font-weight: 800; }
.price-amount { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 7px; font-size: clamp(23px, 2.3vw, 30px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.2; font-variant-numeric: tabular-nums; }
.price-amount .price-value { white-space: nowrap; }
.price-amount small { font-size: 12px; font-weight: 600; color: var(--text-muted); letter-spacing: 0; line-height: 1.4; }
.price-from { font-size: 13px; color: var(--text-muted); font-weight: 600; }
.price-card .check-list { flex: 1; font-size: 14.5px; }

/* ----- Ecosystem ----- */
.eco-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
.eco-item { padding: var(--space-5); border-radius: var(--radius-lg); background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.1); display: flex; gap: var(--space-3); align-items: flex-start; }
.eco-item .icon-wrap { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(129, 140, 248, 0.16); color: #a5b4fc; flex: none; }
.eco-item h3 { font-size: 16px; color: #fff; }
.eco-item p { font-size: 14px; color: #94a3b8; margin-top: 4px; line-height: 1.55; }
@media (max-width: 900px) { .eco-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .eco-grid { grid-template-columns: 1fr; } }

/* ----- CTA ----- */
.cta-band { position: relative; overflow: hidden; border-radius: 28px; padding: var(--space-16) var(--space-8); background: radial-gradient(600px 300px at 10% 0%, rgba(139, 92, 246, 0.5), transparent 60%), radial-gradient(600px 300px at 90% 100%, rgba(6, 182, 212, 0.4), transparent 60%), #111433; color: #fff; text-align: center; display: grid; gap: var(--space-4); justify-items: center; }
.cta-band h2 { color: #fff; font-size: clamp(28px, 4vw, 40px); letter-spacing: -0.03em; max-width: 760px; }
.cta-band p { color: #c7d2fe; font-size: 17px; max-width: 640px; }

/* ----- Page hero (inner pages) ----- */
.page-hero { padding: var(--space-16) 0 var(--space-12); background: radial-gradient(900px 360px at 80% -20%, rgba(139, 92, 246, 0.12), transparent 60%), linear-gradient(180deg, #f8f9ff, #fff); border-bottom: 1px solid var(--border); }
.page-hero h1 { font-size: clamp(32px, 4.6vw, 48px); font-weight: 800; letter-spacing: -0.035em; margin-top: var(--space-4); max-width: 820px; }
.page-hero .lead-text { margin-top: var(--space-4); max-width: 700px; }
.page-hero .breadcrumb { font-size: 13px; }

/* ----- Prose / content ----- */
.prose { max-width: 760px; color: var(--text-2); line-height: 1.75; font-size: 16.5px; }
.prose h2 { font-size: 24px; margin: var(--space-10) 0 var(--space-3); }
.prose h3 { font-size: 19px; margin: var(--space-6) 0 var(--space-2); }
.prose p + p { margin-top: var(--space-4); }
.prose ul { padding-left: 22px; display: grid; gap: 6px; margin: var(--space-3) 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-12); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: var(--space-8); } }
.value-card { padding: var(--space-6); border-radius: var(--radius-xl); border: 1px solid var(--border); background: var(--surface); }
.value-card h3 { font-size: 17px; margin: var(--space-3) 0 6px; }
.value-card p { color: var(--text-muted); font-size: 14.5px; line-height: 1.6; }
.team-card { text-align: center; padding: var(--space-6); border-radius: var(--radius-xl); border: 1px solid var(--border); background: var(--surface); }
.team-card .avatar { margin: 0 auto var(--space-3); }
.team-card h3 { font-size: 16px; } .team-card p { font-size: 13.5px; color: var(--text-muted); }
.tech-cloud { display: flex; flex-wrap: wrap; gap: 10px; }
.tech-cloud span { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font-weight: 600; font-size: 14px; color: var(--text-2); }

/* ----- Service detail ----- */
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: var(--space-10); align-items: start; }
.detail-aside { position: sticky; top: 96px; display: grid; gap: var(--space-4); }
@media (max-width: 980px) { .detail-layout { grid-template-columns: 1fr; } .detail-aside { position: static; } }

/* ----- Lead form (wizard) ----- */
.form-shell { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: var(--space-8); align-items: start; }
.form-side { position: sticky; top: 96px; padding: var(--space-6); border-radius: var(--radius-xl); background: linear-gradient(160deg, #111433, #312e81); color: #e0e7ff; display: grid; gap: var(--space-5); }
.form-side h2 { color: #fff; font-size: 22px; }
.form-side p { color: #c7d2fe; font-size: 15px; line-height: 1.6; }
.form-side .check-list li { color: #e0e7ff; } .form-side .check-list .icon { color: #a5b4fc; }
.wizard-steps { display: flex; gap: 8px; margin-bottom: var(--space-6); flex-wrap: wrap; }
.wizard-step { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; background: var(--surface-3); font-size: 13px; font-weight: 600; color: var(--text-muted); }
.wizard-step b { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); font-size: 12px; color: var(--text-muted); border: 1px solid var(--border); }
.wizard-step.active { background: var(--primary-soft); color: var(--primary-text); }
.wizard-step.active b { background: var(--primary); color: #fff; border-color: var(--primary); }
.wizard-step.done b { background: var(--success); color: #fff; border-color: var(--success); }
@media (max-width: 980px) { .form-shell { grid-template-columns: 1fr; } .form-side { position: static; } }
.success-panel { text-align: center; display: grid; gap: var(--space-4); justify-items: center; padding: var(--space-12) var(--space-6); }
.success-panel .badge-ok { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: var(--success-soft); color: var(--success); }

/* ----- Footer ----- */
.site-footer { background: #0b1020; color: #94a3b8; padding: var(--space-16) 0 var(--space-8); font-size: 14.5px; }
.site-footer .brand { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: var(--space-10); }
.footer-grid h4 { color: #fff; font-size: 14px; margin-bottom: var(--space-4); letter-spacing: 0.02em; }
.footer-grid ul { list-style: none; display: grid; gap: 10px; }
.footer-grid a { color: #94a3b8; }
.footer-grid a:hover { color: #fff; }
.footer-contact { display: grid; gap: 10px; margin-top: var(--space-5); }
.footer-contact span, .footer-contact a { display: inline-flex; gap: 10px; align-items: flex-start; }
.footer-social { display: flex; gap: 10px; margin-top: var(--space-5); }
.footer-social a { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.08); color: #cbd5e1; }
.footer-social a:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-12); padding-top: var(--space-6); border-top: 1px solid rgba(255, 255, 255, 0.08); font-size: 13px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 450; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: #22c55e; color: #fff; box-shadow: 0 12px 28px -8px rgba(34, 197, 94, 0.7); }
.wa-float:hover { color: #fff; transform: translateY(-2px); }
.wa-float .icon { width: 26px; height: 26px; }

/* ----- Auth pages ----- */
body.auth-page { min-height: 100vh; display: grid; place-items: center; padding: var(--space-6) var(--space-4); background: radial-gradient(900px 500px at 100% 0%, rgba(139, 92, 246, 0.14), transparent 60%), radial-gradient(800px 500px at 0% 100%, rgba(6, 182, 212, 0.12), transparent 60%), var(--bg); font-size: 15px; }
.auth-card { width: 100%; max-width: 440px; background: var(--surface); border: 1px solid var(--border); border-radius: 24px; box-shadow: var(--shadow-xl); padding: var(--space-10) var(--space-8); display: grid; gap: var(--space-5); }
.auth-card.wide { max-width: 980px; padding: var(--space-8); }
.auth-card .brand { justify-self: center; }
.auth-title { font-size: 24px; font-weight: 800; text-align: center; letter-spacing: -0.02em; }
.auth-sub { text-align: center; color: var(--text-muted); font-size: 14.5px; margin-top: 6px; }
.btn-google { --btn-bg: #fff; --btn-fg: #1f2937; --btn-border: #d1d5db; --btn-hover: #f9fafb; min-height: 48px; font-size: 15px; }
.btn-google .icon { width: 20px; height: 20px; color: #4285f4; }
.auth-divider { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--text-subtle); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.auth-divider::before, .auth-divider::after { content: ''; height: 1px; flex: 1; background: var(--border); }
.auth-foot { text-align: center; font-size: 13.5px; color: var(--text-muted); }
.auth-roles { display: grid; gap: 8px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); font-size: 13px; color: var(--text-2); }
.auth-roles div { display: flex; gap: 8px; align-items: center; }
.center-loader { display: grid; place-items: center; gap: var(--space-4); text-align: center; color: var(--text-muted); }
.center-loader .spinner-lg { width: 40px; height: 40px; border: 3px solid var(--primary-soft-2); border-top-color: var(--primary); border-radius: 50%; animation: spin 0.8s linear infinite; }
.site-nav .mobile-only { display: none; }
@media (max-width: 1080px) { .site-header.menu-open .site-nav .mobile-only { display: block; } }
.skeleton-card { height: 220px; border-radius: var(--radius-xl); }
.notice-dev { font-size: 12px; color: var(--text-subtle); margin-top: var(--space-3); }

/* =====================================================================
   PREMIUM UPGRADE - hero gelap, glow, bento grid, reveal animation
   ===================================================================== */
body.has-dark-hero .site-header:not(.scrolled):not(.menu-open) { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
body.has-dark-hero .site-header:not(.scrolled):not(.menu-open) .brand,
body.has-dark-hero .site-header:not(.scrolled):not(.menu-open) .site-nav a,
body.has-dark-hero .site-header:not(.scrolled):not(.menu-open) .site-actions .btn-ghost { color: #e2e8f0; }
body.has-dark-hero .site-header:not(.scrolled):not(.menu-open) .site-nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
body.has-dark-hero .site-header:not(.scrolled):not(.menu-open) .site-nav a[aria-current='page'] { background: rgba(255,255,255,.1); color: #fff; }
body.has-dark-hero .site-header { position: fixed; left: 0; right: 0; }

.hero-dark { position: relative; overflow: hidden; color: #cbd5e1; background: #070b1a; padding: 160px 0 120px; isolation: isolate; }
.hero-dark::before { content: ''; position: absolute; inset: 0; z-index: -2; background-image: linear-gradient(rgba(148,163,184,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(148,163,184,.08) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse 80% 70% at 50% 20%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 20%, #000 20%, transparent 75%); }
.hero-dark::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 160px; z-index: -1; background: linear-gradient(180deg, transparent, #070b1a); }
.glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; z-index: -1; animation: drift 18s ease-in-out infinite alternate; }
.glow.g1 { width: 560px; height: 560px; background: #4f46e5; top: -180px; left: -120px; }
.glow.g2 { width: 480px; height: 480px; background: #7c3aed; top: 40px; right: -140px; animation-delay: -6s; opacity: .45; }
.glow.g3 { width: 420px; height: 420px; background: #06b6d4; bottom: -220px; left: 35%; animation-delay: -12s; opacity: .35; }
@keyframes drift { to { transform: translate(60px, 40px) scale(1.1); } }
.hero-dark .container { position: relative; display: grid; grid-template-columns: 1.02fr 1fr; gap: 56px; align-items: center; }
.hero-dark h1 { color: #fff; font-size: clamp(36px, 4.8vw, 56px); font-weight: 800; letter-spacing: -.04em; line-height: 1.04; margin-top: 22px; }
.hero-dark .lead-text { color: #94a3b8; margin-top: 22px; max-width: 560px; font-size: 18.5px; }
.hero-dark .hero-points { color: #94a3b8; }
.hero-dark .hero-points .icon { color: #34d399; }
.pill-new { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); color: #e0e7ff; font-size: 13.5px; font-weight: 600; backdrop-filter: blur(8px); }
.pill-new b { padding: 3px 10px; border-radius: 999px; background: linear-gradient(90deg, #6366f1, #a855f7); color: #fff; font-size: 12px; }
.text-shine { background: linear-gradient(110deg, #a5b4fc 0%, #f0abfc 35%, #67e8f9 70%, #a5b4fc 100%); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 6s linear infinite; }
@keyframes shine { to { background-position: 200% center; } }
.btn-glow { --btn-bg: linear-gradient(90deg,#4f46e5,#7c3aed); background: linear-gradient(90deg, #4f46e5, #7c3aed); color: #fff; border: 0; box-shadow: 0 10px 30px -10px rgba(124,58,237,.8), inset 0 1px 0 rgba(255,255,255,.2); }
.btn-glow:hover { color: #fff; filter: brightness(1.1); background: linear-gradient(90deg, #4f46e5, #7c3aed); }
.btn-glass { --btn-bg: rgba(255,255,255,.06); --btn-fg: #fff; --btn-border: rgba(255,255,255,.16); --btn-hover: rgba(255,255,255,.12); backdrop-filter: blur(8px); box-shadow: none; }
.hero-dark .mockup-window { background: rgba(15,23,42,.6); border-color: rgba(255,255,255,.1); box-shadow: 0 50px 100px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.06), 0 0 80px -20px rgba(99,102,241,.5); backdrop-filter: blur(12px); }
.hero-dark .mockup-bar { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.08); }
.hero-dark .mockup-url { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.08); color: #94a3b8; }
.hero-dark .mockup-main { background: #0b1124; }
.hero-dark .mockup-kpi, .hero-dark .mockup-chart, .hero-dark .mockup-row { border-color: rgba(255,255,255,.08); background: rgba(255,255,255,.03); color: #cbd5e1; }
.hero-dark .mockup-kpi strong { color: #fff; }
.hero-dark .mockup-side { background: #070b1a; border-right: 1px solid rgba(255,255,255,.06); }
.hero-dark .mockup-float { background: rgba(15,23,42,.85); border-color: rgba(255,255,255,.12); color: #fff; backdrop-filter: blur(10px); }
.hero-dark .mockup-float small { color: #94a3b8; }
.mockup-line { position: relative; height: 84px; border: 1px solid rgba(255,255,255,.08); border-radius: 10px; background: rgba(255,255,255,.03); overflow: hidden; }
.mockup-line svg { position: absolute; inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); }
@media (max-width: 980px) { .hero-dark { padding-top: 120px; } .hero-dark .container { grid-template-columns: 1fr; } }

.marquee { position: relative; overflow: hidden; padding: 28px 0; border-top: 1px solid rgba(255,255,255,.06); background: #070b1a; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: marquee 32s linear infinite; }
.marquee-track span { display: inline-flex; align-items: center; gap: 10px; color: #64748b; font-weight: 700; font-size: 16px; white-space: nowrap; }
.marquee-track .icon { color: #818cf8; }
@keyframes marquee { to { transform: translateX(-50%); } }

.stats-band { margin-top: -1px; padding: 56px 0; background: linear-gradient(180deg, #070b1a, #0d1330); }
.stats-band .trust-grid { gap: 20px; }
.stat-glass { padding: 26px 20px; border-radius: 20px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); text-align: center; }
.stat-glass .trust-value { color: #fff; }
.stat-glass .trust-label { color: #94a3b8; }

.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.bento > * { grid-column: span 2; }
.bento > .wide { grid-column: span 3; }
.bento > .tall { grid-row: span 2; }
@media (max-width: 980px) { .bento { grid-template-columns: 1fr 1fr; } .bento > *, .bento > .wide { grid-column: span 1; } .bento > .tall { grid-row: auto; } }
@media (max-width: 600px) { .bento { grid-template-columns: 1fr; } }

.glow-card { position: relative; border-radius: 24px; padding: 28px; background: var(--surface); border: 1px solid var(--border); transition: transform .25s var(--ease), box-shadow .25s var(--ease); overflow: hidden; display: flex; flex-direction: column; gap: 14px; }
.glow-card::before { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: linear-gradient(135deg, rgba(99,102,241,.6), rgba(168,85,247,.2) 40%, transparent 60%, rgba(6,182,212,.5)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .25s; pointer-events: none; }
.glow-card:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -30px rgba(79,70,229,.45); }
.glow-card:hover::before { opacity: 1; }
.glow-card h3 { font-size: 20px; letter-spacing: -.02em; }
.glow-card p { color: var(--text-muted); font-size: 15px; line-height: 1.6; }
.icon-orb { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--orb-a, #6366f1), var(--orb-b, #a855f7)); box-shadow: 0 12px 24px -10px var(--orb-a, #6366f1); }
.orb-cyan { --orb-a: #06b6d4; --orb-b: #3b82f6; } .orb-pink { --orb-a: #ec4899; --orb-b: #f97316; } .orb-green { --orb-a: #10b981; --orb-b: #06b6d4; } .orb-amber { --orb-a: #f59e0b; --orb-b: #ef4444; }
.glow-card .feature-links a { background: var(--surface-2); }
.card-dark { background: radial-gradient(400px 200px at 100% 0%, rgba(124,58,237,.45), transparent 60%), linear-gradient(160deg, #0b1020, #1e1b4b); border-color: rgba(255,255,255,.08); color: #c7d2fe; }
.card-dark h3 { color: #fff; } .card-dark p { color: #a5b4fc; }

.section-head .section-title { font-size: clamp(30px, 4.2vw, 46px); letter-spacing: -.035em; }
.eyebrow-line { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--primary); }
.eyebrow-line::before { content: ''; width: 24px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--primary), var(--accent-2)); }

.timeline-h { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.timeline-h::before { content: ''; position: absolute; top: 26px; left: 6%; right: 6%; height: 2px; background: linear-gradient(90deg, #6366f1, #a855f7, #06b6d4); opacity: .35; }
.tl-step { position: relative; text-align: center; padding: 0 8px; }
.tl-num { width: 54px; height: 54px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 2px solid var(--primary-soft-2); color: var(--primary); font-weight: 800; box-shadow: 0 8px 24px -10px rgba(79,70,229,.5); position: relative; z-index: 1; }
.tl-step h3 { font-size: 17px; margin-bottom: 6px; }
.tl-step p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }
@media (max-width: 900px) { .timeline-h { grid-template-columns: 1fr 1fr; } .timeline-h::before { display: none; } }

.why-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.why-list { display: grid; gap: 16px; }
.why-item { display: flex; gap: 16px; padding: 18px; border-radius: 18px; border: 1px solid var(--border); background: var(--surface); transition: border-color .2s, box-shadow .2s; }
.why-item:hover { border-color: var(--primary-soft-2); box-shadow: var(--shadow-md); }
.why-item h3 { font-size: 16px; } .why-item p { font-size: 14px; color: var(--text-muted); margin-top: 4px; }
.portal-preview { border-radius: 24px; padding: 22px; background: linear-gradient(160deg, #eef2ff, #fdf4ff); border: 1px solid var(--primary-soft-2); box-shadow: var(--shadow-lg); }
.portal-preview .pp-card { background: var(--surface); border-radius: 14px; padding: 14px 16px; border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
@media (max-width: 900px) { .why-grid { grid-template-columns: 1fr; } }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } .marquee-track, .glow, .text-shine { animation: none; } }

/* Inner page hero - gaya gelap konsisten dengan landing */
body.has-dark-hero .page-hero { position: relative; overflow: hidden; isolation: isolate; padding: 150px 0 72px; color: #94a3b8; border-bottom: 0;
  background: radial-gradient(700px 320px at 85% -10%, rgba(124,58,237,.45), transparent 60%), radial-gradient(600px 300px at 0% 100%, rgba(6,182,212,.22), transparent 60%), #070b1a; }
body.has-dark-hero .page-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(148,163,184,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(148,163,184,.07) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse 70% 80% at 50% 0%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 0%, #000 20%, transparent 75%); }
body.has-dark-hero .page-hero h1 { color: #fff; }
body.has-dark-hero .page-hero .lead-text { color: #94a3b8; }
body.has-dark-hero .page-hero .lead-text a { color: #c7d2fe; }
body.has-dark-hero .page-hero .breadcrumb a, body.has-dark-hero .page-hero .breadcrumb span { color: #94a3b8; }
body.has-dark-hero .page-hero .breadcrumb [aria-current='page'] { color: #e2e8f0; }
body.has-dark-hero .page-hero .btn:not(.btn-primary) { --btn-bg: rgba(255,255,255,.06); --btn-fg: #fff; --btn-border: rgba(255,255,255,.16); --btn-hover: rgba(255,255,255,.12); }
body.has-dark-hero .page-hero .skeleton { background: rgba(255,255,255,.08); }
.stack > .eyebrow, .stack > .eyebrow-line { align-self: flex-start; }

/* =====================================================================
   GLASSMORPHISM
   ===================================================================== */
body.public { background: radial-gradient(900px 600px at 100% 30%, rgba(139,92,246,.06), transparent 60%), radial-gradient(800px 600px at 0% 70%, rgba(6,182,212,.06), transparent 60%), #f8f9fc; }
body.public .section-muted { background: linear-gradient(180deg, rgba(238,242,255,.55), rgba(248,250,252,.7)); }

/* Tombol: kaca + highlight + kilau */
body.public .btn { position: relative; overflow: hidden; backdrop-filter: blur(10px) saturate(1.4); -webkit-backdrop-filter: blur(10px) saturate(1.4); }
body.public .btn::after { content: ''; position: absolute; top: 0; left: -120%; width: 60%; height: 100%; background: linear-gradient(110deg, transparent, rgba(255,255,255,.45), transparent); transform: skewX(-20deg); transition: left .6s var(--ease); pointer-events: none; }
body.public .btn:hover::after { left: 140%; }
body.public .btn:not(.btn-primary):not(.btn-glow):not(.btn-white):not(.btn-link):not(.btn-ghost):not(.btn-glass) { --btn-bg: rgba(255,255,255,.55); --btn-border: rgba(255,255,255,.7); --btn-hover: rgba(255,255,255,.8); box-shadow: 0 4px 16px -6px rgba(30,27,75,.18), inset 0 1px 0 rgba(255,255,255,.8); }
body.public .btn-primary, body.public .btn-glow { background: linear-gradient(135deg, rgba(99,102,241,.92), rgba(124,58,237,.92)); border: 1px solid rgba(255,255,255,.25); color: #fff; box-shadow: 0 10px 28px -10px rgba(99,102,241,.75), inset 0 1px 0 rgba(255,255,255,.35), inset 0 -1px 0 rgba(0,0,0,.08); }
body.public .btn-primary:hover, body.public .btn-glow:hover { background: linear-gradient(135deg, rgba(99,102,241,1), rgba(124,58,237,1)); color: #fff; transform: translateY(-1px); box-shadow: 0 16px 34px -12px rgba(99,102,241,.85), inset 0 1px 0 rgba(255,255,255,.4); }
body.public .btn-glass { --btn-bg: rgba(255,255,255,.08); --btn-border: rgba(255,255,255,.22); --btn-hover: rgba(255,255,255,.16); box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 8px 24px -12px rgba(0,0,0,.5); }
body.public .btn-white { --btn-bg: rgba(255,255,255,.88); --btn-border: rgba(255,255,255,.9); box-shadow: 0 10px 30px -12px rgba(0,0,0,.45), inset 0 1px 0 #fff; }

/* Header kaca saat scroll */
.site-header.scrolled { background: rgba(255,255,255,.62); backdrop-filter: blur(18px) saturate(1.8); -webkit-backdrop-filter: blur(18px) saturate(1.8); border-bottom-color: rgba(255,255,255,.6); box-shadow: 0 8px 32px -18px rgba(30,27,75,.35); }

/* Kartu kaca */
.glass, body.public .glow-card, body.public .value-card, body.public .feature-card, body.public .service-card,
body.public .price-card, body.public .portfolio-card, body.public .team-card, body.public .why-item, body.public .process-step {
  background: rgba(255,255,255,.62); border: 1px solid rgba(255,255,255,.75);
  backdrop-filter: blur(16px) saturate(1.5); -webkit-backdrop-filter: blur(16px) saturate(1.5);
  box-shadow: 0 10px 30px -18px rgba(30,27,75,.28), inset 0 1px 0 rgba(255,255,255,.9);
}
body.public .card-dark { background: radial-gradient(400px 200px at 100% 0%, rgba(124,58,237,.45), transparent 60%), linear-gradient(160deg, rgba(11,16,32,.92), rgba(30,27,75,.92)); border-color: rgba(255,255,255,.1); }
body.public .price-card.featured { background: linear-gradient(160deg, rgba(238,242,255,.85), rgba(255,255,255,.7)); border: 1px solid rgba(99,102,241,.45); }
body.public .card { background: rgba(255,255,255,.7); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-color: rgba(255,255,255,.8); }
body.public .accordion details { background: rgba(255,255,255,.6); border-color: rgba(255,255,255,.8); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
body.public .chip { background: rgba(255,255,255,.55); border-color: rgba(255,255,255,.8); backdrop-filter: blur(8px); }
body.public .chip:hover { background: rgba(238,242,255,.9); color: var(--primary-text); }
.filter-pill { background: rgba(255,255,255,.55); border-color: rgba(255,255,255,.8); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: inset 0 1px 0 rgba(255,255,255,.8); }
.filter-pill[aria-pressed='true'] { background: linear-gradient(135deg, rgba(99,102,241,.92), rgba(124,58,237,.92)); border-color: rgba(255,255,255,.3); }

/* Elemen gelap: kaca gelap */
.stat-glass, .eco-item { backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); box-shadow: inset 0 1px 0 rgba(255,255,255,.08); }
.cta-band { box-shadow: 0 30px 80px -30px rgba(79,70,229,.6); }
.cta-band::before { content: ''; position: absolute; inset: 14px; border-radius: 20px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.03); backdrop-filter: blur(4px); pointer-events: none; }
.cta-band > * { position: relative; }
.wa-float { background: rgba(34,197,94,.85); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.35); }
.form-side { box-shadow: 0 24px 60px -24px rgba(49,46,129,.7); }

/* Auth & form card kaca */
body.auth-page .auth-card { background: rgba(255,255,255,.7); border-color: rgba(255,255,255,.85); backdrop-filter: blur(20px) saturate(1.6); -webkit-backdrop-filter: blur(20px) saturate(1.6); }
body.public .input, body.public .select, body.public .textarea, body.auth-page .input { background: rgba(255,255,255,.75); }
@supports not (backdrop-filter: blur(1px)) { body.public .glow-card, body.public .value-card, body.public .card { background: var(--surface); } }
/* Orb dekoratif di belakang konten agar efek kaca terlihat */
body.public main { position: relative; isolation: isolate; }
body.public .section { position: relative; }
body.public .section:not(.section-dark)::before { content: ''; position: absolute; z-index: -1; width: 420px; height: 420px; border-radius: 50%; filter: blur(80px); opacity: .22; pointer-events: none; top: 8%; right: -120px; background: radial-gradient(circle, #8b5cf6, transparent 70%); }
body.public .section:not(.section-dark):nth-of-type(even)::before { right: auto; left: -140px; top: 30%; background: radial-gradient(circle, #06b6d4, transparent 70%); }
body.public .section:not(.section-dark)::after { content: ''; position: absolute; z-index: -1; width: 320px; height: 320px; border-radius: 50%; filter: blur(80px); opacity: .16; pointer-events: none; bottom: 5%; left: 30%; background: radial-gradient(circle, #6366f1, transparent 70%); }
body.public .section { overflow: hidden; }

/* ######################## app.css ######################## */
/* =====================================================================
   APP SHELL - dashboard staff (management & sales) dan customer portal
   Staff: sidebar gelap, data-dense. Portal: terang, mobile-first.
   ===================================================================== */
body.app { background: var(--bg); min-height: 100vh; }
.app-shell { display: flex; min-height: 100vh; }

/* ----- Sidebar ----- */
.sidebar { width: var(--sidebar-w); flex: none; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; background: #0d1224; color: #cbd5e1; border-right: 1px solid #1e2640; z-index: 600; }
.sidebar-brand { display: flex; align-items: center; gap: 10px; height: var(--topbar-h); padding: 0 var(--space-5); border-bottom: 1px solid rgba(255, 255, 255, 0.06); flex: none; }
.sidebar-brand .brand { color: #fff; font-size: 16px; }
.sidebar-brand .brand-name small { color: #8b93b0; }
.sidebar-scroll { flex: 1; overflow-y: auto; padding: var(--space-3) var(--space-3) var(--space-6); scrollbar-width: thin; scrollbar-color: #2a3352 transparent; }
.nav-group { margin-bottom: 2px; }
.nav-link, .nav-parent { display: flex; align-items: center; gap: 11px; width: 100%; padding: 9px 12px; border-radius: 10px; font-size: 13.5px; font-weight: 600; color: #b4bdd6; background: none; border: 0; text-align: left; text-decoration: none; transition: background var(--duration), color var(--duration); }
.nav-link .icon, .nav-parent .icon { width: 18px; height: 18px; color: #7c86a6; }
.nav-link:hover, .nav-parent:hover { background: rgba(255, 255, 255, 0.05); color: #fff; }
.nav-link:hover .icon, .nav-parent:hover .icon { color: #c7d2fe; }
.nav-link.active { background: linear-gradient(90deg, rgba(99, 102, 241, 0.28), rgba(99, 102, 241, 0.08)); color: #fff; box-shadow: inset 2px 0 0 #818cf8; }
.nav-link.active .icon { color: #a5b4fc; }
.nav-parent .chev { margin-left: auto; width: 15px; height: 15px; transition: transform var(--duration); }
.nav-group.open > .nav-parent .chev { transform: rotate(90deg); }
.nav-group.has-active > .nav-parent { color: #fff; }
.nav-children { display: none; padding: 2px 0 6px 21px; margin-left: 9px; border-left: 1px solid #222b47; }
.nav-group.open > .nav-children { display: grid; gap: 1px; }
.nav-children .nav-link { padding: 7px 12px; font-size: 13px; font-weight: 500; }
.nav-children .nav-link.active { box-shadow: none; background: rgba(99, 102, 241, 0.18); }
.nav-badge { margin-left: auto; min-width: 20px; padding: 0 6px; height: 20px; border-radius: 999px; background: #6366f1; color: #fff; font-size: 11px; display: grid; place-items: center; }
.nav-section-label { padding: var(--space-4) 12px 6px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: #5b6482; }
.sidebar-foot { padding: var(--space-3); border-top: 1px solid rgba(255, 255, 255, 0.06); flex: none; }
.sidebar-user { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; color: #e2e8f0; }
.sidebar-user .meta { min-width: 0; }
.sidebar-user .name { font-size: 13px; font-weight: 700; color: #fff; }
.sidebar-user .role { font-size: 11.5px; color: #8b93b0; }
.sidebar-backdrop { display: none; }

/* Portal: sidebar terang */
body.portal .sidebar { background: var(--surface); color: var(--text-2); border-right: 1px solid var(--border); }
body.portal .sidebar-brand { border-bottom-color: var(--border); }
body.portal .sidebar-brand .brand { color: var(--text); }
body.portal .nav-link, body.portal .nav-parent { color: var(--text-2); }
body.portal .nav-link .icon, body.portal .nav-parent .icon { color: var(--text-subtle); }
body.portal .nav-link:hover, body.portal .nav-parent:hover { background: var(--surface-3); color: var(--text); }
body.portal .nav-link.active { background: var(--primary-soft); color: var(--primary-text); box-shadow: inset 2px 0 0 var(--primary); }
body.portal .nav-link.active .icon { color: var(--primary); }
body.portal .nav-group.has-active > .nav-parent { color: var(--text); }
body.portal .nav-children { border-left-color: var(--border); }
body.portal .nav-children .nav-link.active { background: var(--primary-soft); box-shadow: none; }
body.portal .sidebar-foot { border-top-color: var(--border); }
body.portal .sidebar-user { color: var(--text); }
body.portal .sidebar-user .name { color: var(--text); }
body.portal .sidebar-user .role { color: var(--text-muted); }
body.portal .sidebar-scroll { scrollbar-color: var(--border-strong) transparent; }

@media (max-width: 1024px) {
  .sidebar { position: fixed; left: 0; top: 0; transform: translateX(-100%); transition: transform 220ms var(--ease); box-shadow: var(--shadow-xl); }
  body.sidebar-open .sidebar { transform: none; }
  body.sidebar-open .sidebar-backdrop { display: block; position: fixed; inset: 0; z-index: 590; background: rgba(15, 23, 42, 0.45); }
}

/* ----- Main & topbar ----- */
.app-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 400; height: var(--topbar-h); display: flex; align-items: center; gap: var(--space-3); padding: 0 var(--space-6); background: rgba(255, 255, 255, 0.86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.topbar .menu-btn { display: none; }
@media (max-width: 1024px) { .topbar { padding: 0 var(--space-4); } .topbar .menu-btn { display: inline-flex; } }
.global-search { position: relative; flex: 1; max-width: 440px; }
.global-search .input { padding-left: 38px; background: var(--surface-2); border-color: var(--border); box-shadow: none; min-height: 38px; }
.global-search .input:focus { background: var(--surface); }
.global-search > .icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-subtle); }
.global-search .kbd { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); }
.search-results { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 700; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-xl); padding: 6px; max-height: 70vh; overflow-y: auto; }
.search-result { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; color: var(--text-2); }
.search-result:hover, .search-result.active { background: var(--surface-3); color: var(--text); }
.search-result .kind { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); width: 64px; flex: none; }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: var(--space-2); }
.icon-btn { position: relative; width: 38px; height: 38px; border-radius: 10px; display: inline-grid; place-items: center; border: 1px solid transparent; background: none; color: var(--text-2); }
.icon-btn:hover { background: var(--surface-3); color: var(--text); }
.user-menu-btn { display: flex; align-items: center; gap: 8px; padding: 4px 8px 4px 4px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font-size: 13px; font-weight: 600; color: var(--text-2); }
.user-menu-btn:hover { border-color: var(--border-strong); }
.notif-panel { width: min(380px, calc(100vw - 24px)); padding: 0; }
.notif-panel-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.notif-panel-body { max-height: 420px; overflow-y: auto; padding: 6px; }
.notif-panel-foot { padding: 8px; border-top: 1px solid var(--border); text-align: center; }

/* ----- Content ----- */
.content { padding: var(--space-6); flex: 1; min-width: 0; width: 100%; }
body.portal .content { max-width: 1180px; margin: 0 auto; }
@media (max-width: 640px) { .content { padding: var(--space-4); } }
.page-header { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; margin-bottom: var(--space-6); }
.page-header .titles { display: grid; gap: 6px; min-width: 0; }
.page-title { font-size: var(--text-2xl); font-weight: 800; letter-spacing: -0.025em; }
.page-desc { color: var(--text-muted); font-size: var(--text-sm); }
.page-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.page-section { margin-top: var(--space-6); }
.page-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: var(--space-5); align-items: start; }
.page-grid.even { grid-template-columns: 1fr 1fr; }
@media (max-width: 1180px) { .page-grid { grid-template-columns: 1fr; } }
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--space-4); }
.dash-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--space-4); }
.dash-grid > .span-12 { grid-column: span 12; } .dash-grid > .span-8 { grid-column: span 8; } .dash-grid > .span-7 { grid-column: span 7; }
.dash-grid > .span-6 { grid-column: span 6; } .dash-grid > .span-5 { grid-column: span 5; } .dash-grid > .span-4 { grid-column: span 4; }
@media (max-width: 1180px) { .dash-grid > [class*='span-'] { grid-column: span 12; } }
.welcome { display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); flex-wrap: wrap; padding: var(--space-6); border-radius: var(--radius-xl); color: #fff; background: radial-gradient(500px 220px at 100% 0%, rgba(6, 182, 212, 0.35), transparent 60%), linear-gradient(120deg, #312e81, #4f46e5 60%, #7c3aed); box-shadow: 0 24px 48px -28px rgba(79, 70, 229, 0.8); }
.welcome h1, .welcome h2 { color: #fff; font-size: var(--text-2xl); }
.welcome p { color: #e0e7ff; margin-top: 4px; }
.mini-list { display: grid; }
.mini-item { display: flex; align-items: center; gap: var(--space-3); padding: 12px var(--space-5); border-bottom: 1px solid var(--border); color: inherit; }
.mini-item:last-child { border-bottom: 0; }
a.mini-item:hover { background: var(--surface-2); color: inherit; }
.mini-item .grow > div:first-child { font-weight: 600; font-size: var(--text-sm); color: var(--text); }
.mini-item .grow > div + div { font-size: var(--text-xs); color: var(--text-muted); margin-top: 2px; }
.funnel { display: grid; gap: 8px; }
.funnel-row { display: grid; grid-template-columns: 110px 1fr 70px; align-items: center; gap: 10px; font-size: var(--text-sm); }
.funnel-bar { height: 28px; border-radius: 8px; background: linear-gradient(90deg, var(--primary), #818cf8); min-width: 4px; transition: width 500ms var(--ease); }
.funnel-row .label { font-weight: 600; color: var(--text-2); }
.funnel-row .val { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.matrix th, .matrix td { text-align: center; }
.matrix th:first-child, .matrix td:first-child { text-align: left; }
.matrix input { width: 18px; height: 18px; accent-color: var(--primary); }
.matrix .module-row td { background: var(--surface-2); font-weight: 700; text-transform: uppercase; font-size: 11px; letter-spacing: 0.06em; color: var(--text-muted); }

/* ----- Portal bottom nav (mobile) ----- */
.bottom-nav { display: none; }
@media (max-width: 1024px) {
  body.portal .bottom-nav { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; bottom: 0; left: 0; right: 0; z-index: 450; background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(12px); border-top: 1px solid var(--border); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  body.portal .bottom-nav a { display: grid; justify-items: center; gap: 2px; padding: 6px 2px; font-size: 10.5px; font-weight: 600; color: var(--text-muted); border-radius: 10px; }
  body.portal .bottom-nav a.active { color: var(--primary); }
  body.portal .content { padding-bottom: 96px; }
}

/* ----- Boot / blocking states ----- */
.boot { min-height: 100vh; display: grid; place-items: center; padding: var(--space-6); }
.boot-card { text-align: center; display: grid; gap: var(--space-4); justify-items: center; max-width: 440px; }
.boot-card .spinner-lg { width: 40px; height: 40px; border: 3px solid var(--primary-soft-2); border-top-color: var(--primary); border-radius: 50%; animation: spin 0.8s linear infinite; }
.forbidden { max-width: 520px; margin: var(--space-16) auto; }

/* ----- Detail header (lead/customer/project) ----- */
.entity-head { display: flex; gap: var(--space-4); align-items: flex-start; flex-wrap: wrap; padding: var(--space-5); }
.entity-head .grow h2 { font-size: var(--text-xl); }
.entity-meta { display: flex; flex-wrap: wrap; gap: var(--space-4); margin-top: 8px; font-size: var(--text-sm); color: var(--text-muted); }
.entity-meta span { display: inline-flex; align-items: center; gap: 6px; }
.score-breakdown { display: grid; gap: 8px; }
.score-breakdown .row { justify-content: space-between; font-size: var(--text-sm); }
.score-breakdown .pts { font-weight: 700; font-variant-numeric: tabular-nums; }
.score-breakdown .pts.zero { color: var(--text-subtle); }
.inline-form { display: flex; gap: var(--space-2); align-items: flex-end; flex-wrap: wrap; }
.inline-form .field { flex: 1 1 180px; }
.status-select { min-width: 170px; }

/* ######################## print.css ######################## */
/* =====================================================================
   PRINT - invoice & proposal siap cetak / "Save as PDF" dari browser
   ===================================================================== */
@media print {
  @page { size: A4; margin: 14mm; }
  body, body.app { background: #fff !important; font-size: 12px; }
  .sidebar, .topbar, .bottom-nav, .page-actions, .no-print, .toast-root, .sidebar-backdrop, .config-banner { display: none !important; }
  .app-shell, .app-main, .content { display: block !important; padding: 0 !important; margin: 0 !important; max-width: none !important; }
  .card { border: 0 !important; box-shadow: none !important; }
  .doc { padding: 0 !important; }
  a { color: inherit !important; }
  .badge { border: 1px solid #cbd5e1; }
  .print-only { display: block !important; }
}
.print-only { display: none; }
.doc { padding: var(--space-8); }
.doc-head { display: flex; justify-content: space-between; gap: var(--space-6); align-items: flex-start; flex-wrap: wrap; }
.doc-title { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.doc-parties { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); margin: var(--space-8) 0; font-size: var(--text-sm); }
.doc-parties h4 { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 6px; }
.doc-terms { margin-top: var(--space-8); font-size: var(--text-sm); color: var(--text-2); white-space: pre-line; }
@media (max-width: 640px) { .doc-parties { grid-template-columns: 1fr; } .doc { padding: var(--space-5); } }

/* ----- Panel inset (settings, info box) ----- */
.card-inset { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-md, 12px); padding: var(--space-4); }
.card-inset p { margin-top: 4px; }
.code-block { background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: var(--space-4); font: 12px/1.6 var(--font-mono); white-space: pre-wrap; overflow-wrap: anywhere; max-height: 60vh; overflow: auto; }
.notif-list { list-style: none; padding: 6px; display: grid; gap: 2px; }
.card-link { text-decoration: none; color: inherit; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.card-link:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--primary-soft-2); }

/* =====================================================================
   THEME TOGGLE (light / dark)
   ===================================================================== */
.theme-toggle { position: relative; flex: none; width: 38px; height: 38px; padding: 0; border-radius: 10px; display: inline-grid; place-items: center; cursor: pointer;
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--text-2); transition: background var(--duration) var(--ease), color var(--duration) var(--ease), border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease); }
.theme-toggle:hover { color: var(--text); background: var(--surface-3); }
.theme-toggle:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--primary-ring); }
.theme-toggle .icon { grid-area: 1 / 1; width: 18px; height: 18px; transition: transform .4s var(--ease), opacity .25s var(--ease); }
.theme-toggle .icon-sun { opacity: 0; transform: rotate(-90deg) scale(.5); }
[data-theme='dark'] .theme-toggle .icon-sun { opacity: 1; transform: none; color: #fbbf24; }
[data-theme='dark'] .theme-toggle .icon-moon { opacity: 0; transform: rotate(90deg) scale(.5); }
.theme-toggle.spin-once { animation: theme-pop .45s var(--ease); }
@keyframes theme-pop { 40% { transform: scale(.88); } 100% { transform: scale(1); } }
/* di topbar dashboard/portal: tampil seperti icon-btn lainnya */
.theme-toggle.icon-btn { border-color: transparent; background: none; }
.theme-toggle.icon-btn:hover { background: var(--surface-3); }
/* halaman tanpa header (login, onboarding): melayang di kanan atas */
.theme-toggle-floating { position: fixed; top: 16px; right: 16px; z-index: 600; box-shadow: var(--shadow-md); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
/* header publik */
body.public .site-actions .theme-toggle { background: rgba(255,255,255,.55); border-color: rgba(255,255,255,.7); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 4px 16px -6px rgba(30,27,75,.25), inset 0 1px 0 rgba(255,255,255,.8); }
body.has-dark-hero .site-header:not(.scrolled):not(.menu-open) .theme-toggle { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.16); color: #e2e8f0; box-shadow: inset 0 1px 0 rgba(255,255,255,.12); }
body.has-dark-hero .site-header:not(.scrolled):not(.menu-open) .theme-toggle:hover { background: rgba(255,255,255,.12); color: #fff; }
@media (max-width: 1080px) { .site-actions .theme-toggle { order: 2; } .site-actions .nav-toggle { order: 3; margin-left: 0; } .site-header .site-actions { margin-left: auto; } }
@media (prefers-reduced-motion: reduce) { .theme-toggle .icon { transition: none; } .theme-toggle.spin-once { animation: none; } }

/* =====================================================================
   DARK MODE - token + penyesuaian elemen yang memakai warna kaca/terang
   ===================================================================== */
:root[data-theme='dark'] {
  --primary: #6366f1; --primary-hover: #818cf8; --primary-active: #4f46e5;
  --primary-soft: rgba(99, 102, 241, 0.16); --primary-soft-2: rgba(99, 102, 241, 0.3); --primary-text: #c7d2fe; --primary-ring: rgba(129, 140, 248, 0.4);
  --bg: #070b1a; --bg-subtle: #0b1122; --surface: #0f1629; --surface-2: #121a30; --surface-3: #1a2340;
  --border: #1e2943; --border-strong: #2a3757;
  --text: #e8edf6; --text-2: #c3cbdb; --text-muted: #8f9ab0; --text-subtle: #8290a8; --text-inverse: #0b1020;
  --success: #22c55e; --success-soft: rgba(34, 197, 94, 0.14); --success-text: #86efac;
  --warning: #f59e0b; --warning-soft: rgba(245, 158, 11, 0.14); --warning-text: #fcd34d;
  --danger: #ef4444;  --danger-soft: rgba(239, 68, 68, 0.14);  --danger-text: #fca5a5;
  --info: #38bdf8;    --info-soft: rgba(56, 189, 248, 0.14);   --info-text: #7dd3fc;
  --purple: #a78bfa;  --purple-soft: rgba(167, 139, 250, 0.15); --purple-text: #c4b5fd;
  --neutral: #94a3b8; --neutral-soft: rgba(148, 163, 184, 0.12); --neutral-text: #cbd5e1;
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.45), 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 20px -6px rgba(0, 0, 0, 0.55);
  --shadow-lg: 0 18px 44px -12px rgba(0, 0, 0, 0.65);
  --shadow-xl: 0 30px 70px -16px rgba(0, 0, 0, 0.75);
  color-scheme: dark;
}
html { transition: background-color .25s var(--ease); }

/* Latar & section publik */
[data-theme='dark'] body.public { background: radial-gradient(900px 600px at 100% 30%, rgba(139,92,246,.10), transparent 60%), radial-gradient(800px 600px at 0% 70%, rgba(6,182,212,.08), transparent 60%), #070b1a; }
[data-theme='dark'] body.public .section-muted, [data-theme='dark'] .section-muted { background: linear-gradient(180deg, rgba(30,27,75,.32), rgba(15,22,41,.5)); border-color: var(--border); }
[data-theme='dark'] .page-hero { background: radial-gradient(900px 360px at 80% -20%, rgba(139,92,246,.18), transparent 60%), linear-gradient(180deg, #0b1122, #070b1a); }
[data-theme='dark'] .hero { background: radial-gradient(1200px 520px at 85% -10%, rgba(139,92,246,.22), transparent 60%), #070b1a; }

/* Header */
[data-theme='dark'] .site-header, [data-theme='dark'] .site-header.scrolled { background: rgba(7,11,26,.72); border-bottom-color: rgba(255,255,255,.07); box-shadow: 0 8px 32px -18px rgba(0,0,0,.8); }
[data-theme='dark'] .site-header.menu-open .site-nav { background: #0b1122; border-color: var(--border); }
[data-theme='dark'] body.public .site-actions .theme-toggle,
[data-theme='dark'] body.public .btn:not(.btn-primary):not(.btn-glow):not(.btn-white):not(.btn-link):not(.btn-ghost):not(.btn-glass) {
  --btn-bg: rgba(255,255,255,.05); --btn-border: rgba(255,255,255,.12); --btn-hover: rgba(255,255,255,.1); --btn-fg: var(--text);
  background: var(--btn-bg); border-color: var(--btn-border); color: var(--text); box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 6px 18px -10px rgba(0,0,0,.6); }
[data-theme='dark'] body.public .btn::after { background: linear-gradient(110deg, transparent, rgba(255,255,255,.14), transparent); }

/* Kartu kaca → kaca gelap */
[data-theme='dark'] .glass, [data-theme='dark'] body.public .glow-card, [data-theme='dark'] body.public .value-card, [data-theme='dark'] body.public .feature-card,
[data-theme='dark'] body.public .service-card, [data-theme='dark'] body.public .price-card, [data-theme='dark'] body.public .portfolio-card,
[data-theme='dark'] body.public .team-card, [data-theme='dark'] body.public .why-item, [data-theme='dark'] body.public .process-step,
[data-theme='dark'] body.public .card, [data-theme='dark'] body.public .accordion details {
  background: rgba(17,25,46,.58); border-color: rgba(255,255,255,.08); box-shadow: 0 12px 34px -20px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.05); }
[data-theme='dark'] body.public .price-card.featured { background: linear-gradient(160deg, rgba(49,46,129,.55), rgba(17,25,46,.7)); border-color: rgba(129,140,248,.5); }
[data-theme='dark'] body.public .chip, [data-theme='dark'] .filter-pill:not([aria-pressed='true']), [data-theme='dark'] .tech-cloud span, [data-theme='dark'] .trust-industries span {
  background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.1); color: var(--text-2); box-shadow: none; }
[data-theme='dark'] body.public .chip:hover { background: var(--primary-soft); color: var(--primary-text); }
[data-theme='dark'] .feature-icon { background: linear-gradient(135deg, rgba(99,102,241,.22), rgba(139,92,246,.14)); border-color: rgba(129,140,248,.25); color: #a5b4fc; }
[data-theme='dark'] .portal-preview { background: linear-gradient(160deg, rgba(49,46,129,.45), rgba(88,28,135,.25)); border-color: rgba(129,140,248,.25); }
[data-theme='dark'] .portal-preview .pp-card, [data-theme='dark'] .tl-num, [data-theme='dark'] .wizard-step b { background: var(--surface-2); border-color: var(--border-strong); }
[data-theme='dark'] .mockup-window, [data-theme='dark'] .mockup-url, [data-theme='dark'] .mockup-float { background: var(--surface); border-color: var(--border); }

/* Form & auth */
[data-theme='dark'] body.public .input, [data-theme='dark'] body.public .select, [data-theme='dark'] body.public .textarea, [data-theme='dark'] body.auth-page .input { background: rgba(255,255,255,.04); border-color: var(--border-strong); color: var(--text); }
[data-theme='dark'] body.auth-page { background: radial-gradient(900px 500px at 100% 0%, rgba(139,92,246,.2), transparent 60%), radial-gradient(800px 500px at 0% 100%, rgba(6,182,212,.12), transparent 60%), #070b1a; }
[data-theme='dark'] body.auth-page .auth-card { background: rgba(15,22,41,.72); border-color: rgba(255,255,255,.09); }
[data-theme='dark'] .switch input::after { background: #e8edf6; }
[data-theme='dark'] .alert-warning, [data-theme='dark'] .msg.internal .msg-bubble { border-color: rgba(245,158,11,.35); }
[data-theme='dark'] .alert-danger { border-color: rgba(239,68,68,.35); }
[data-theme='dark'] .config-banner { background: #2a1f05; color: #fcd34d; }

/* Dashboard & portal */
[data-theme='dark'] .topbar { background: rgba(7,11,26,.82); border-bottom-color: var(--border); }
[data-theme='dark'] body.portal .sidebar { background: var(--surface); }
[data-theme='dark'] body.portal .bottom-nav { background: rgba(11,17,34,.96); border-top-color: var(--border); }
[data-theme='dark'] .table tbody tr:hover { background: rgba(255,255,255,.03); }
[data-theme='dark'] .notif-item.unread { background: rgba(99,102,241,.1); }
[data-theme='dark'] .skeleton::after { background: linear-gradient(90deg, transparent, rgba(255,255,255,.06), transparent); }
[data-theme='dark'] .global-search .input:focus { background: var(--surface-2); }
[data-theme='dark'] ::selection { background: rgba(129,140,248,.35); }

/* Presisi header di layar kecil + tombol putih tetap berteks gelap di dark mode */
@media (max-width: 1080px) { .site-header .bar { gap: var(--space-3); } .site-actions { gap: 6px; } }
@media (max-width: 420px) { .site-actions .btn-primary { padding: 0 12px; } .brand-name { font-size: 16px; } }
[data-theme='dark'] .btn-white, [data-theme='dark'] body.public .btn-white { --btn-fg: #0f172a; color: #0f172a; }
/* Tombol menu mobile sejajar & senada dengan tombol tema */
.site-actions .nav-toggle { width: 38px; height: 38px; min-height: 38px; padding: 0; border-radius: 10px; }
body.has-dark-hero .site-header:not(.scrolled):not(.menu-open) .nav-toggle { --btn-bg: rgba(255,255,255,.06); --btn-border: rgba(255,255,255,.16); --btn-hover: rgba(255,255,255,.12); --btn-fg: #e2e8f0; background: var(--btn-bg); border: 1px solid var(--btn-border); color: #e2e8f0; }
[data-theme='dark'] .site-actions .nav-toggle { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); color: var(--text); }

/* =====================================================================
   LANGUAGE TOGGLE (ID / EN) - sejajar dengan tombol tema
   ===================================================================== */
.lang-toggle { flex: none; height: 38px; width: 70px; padding: 0 10px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer;
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--text-2); font: 700 13px/1 var(--font-sans); letter-spacing: .04em;
  transition: background var(--duration) var(--ease), color var(--duration) var(--ease), border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease); }
.lang-toggle .icon { width: 17px; height: 17px; flex: none; }
.lang-toggle [data-lang-label] { min-width: 2ch; text-align: left; }
.lang-toggle:hover { color: var(--text); background: var(--surface-3); }
.lang-toggle:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--primary-ring); }
body.public .site-actions .lang-toggle { background: rgba(255,255,255,.55); border-color: rgba(255,255,255,.7); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 4px 16px -6px rgba(30,27,75,.25), inset 0 1px 0 rgba(255,255,255,.8); }
body.has-dark-hero .site-header:not(.scrolled):not(.menu-open) .lang-toggle { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.16); color: #e2e8f0; box-shadow: inset 0 1px 0 rgba(255,255,255,.12); }
body.has-dark-hero .site-header:not(.scrolled):not(.menu-open) .lang-toggle:hover { background: rgba(255,255,255,.12); color: #fff; }
[data-theme='dark'] body.public .site-actions .lang-toggle { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.12); color: var(--text); box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 6px 18px -10px rgba(0,0,0,.6); }

/* Grup tombol melayang (halaman tanpa header) */
.floating-controls { position: fixed; top: 16px; right: 16px; z-index: 600; display: flex; gap: 8px; }
.floating-controls > button { box-shadow: var(--shadow-md); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }

/* Urutan header: [Login] [Get Started] [ID/EN] [tema] [menu] */
.site-nav .nav-cta { color: var(--primary) !important; }
@media (max-width: 1080px) { .site-actions .lang-toggle { order: 1; } .site-actions .header-cta { order: 0; } }
@media (max-width: 480px) {
  .site-actions .header-cta { display: none; }               /* pindah ke menu mobile */
  .lang-toggle { width: 56px; padding: 0 8px; gap: 4px; }
  .lang-toggle .icon { width: 15px; height: 15px; }
}

/* Header desktop presisi: semua item muat di dalam container (1081–1360px) */
@media (min-width: 1081px) {
  .site-header .bar { gap: var(--space-4); }
  .site-nav a { padding: 8px 10px; font-size: 14px; }
}
@media (min-width: 1081px) and (max-width: 1280px) {
  .site-nav a { padding: 8px 7px; font-size: 13.5px; }
  .site-actions { gap: 6px; }
  .site-actions .btn { padding: 0 12px; }
  .lang-toggle { width: 58px; padding: 0 8px; gap: 4px; }
}

/* Formulir registrasi: paket terpilih & akun portal aktif */
.chosen-package { display: flex; align-items: center; gap: 8px; margin-bottom: var(--space-4); padding: 10px 14px; border-radius: 12px; background: var(--primary-soft); border: 1px solid var(--primary-soft-2); color: var(--primary-text); font-weight: 600; font-size: var(--text-sm); }
.portal-ready { max-width: 480px; margin: 4px auto; padding: 14px 16px; border-radius: 14px; background: var(--success-soft); border: 1px solid color-mix(in srgb, var(--success) 30%, transparent); text-align: left; }
.portal-ready-title { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--success-text); }
.portal-ready p { margin-top: 6px; font-size: var(--text-sm); color: var(--text-2); overflow-wrap: anywhere; }

/* ----- Pesanan (portal) ----- */
.section-heading { font-size: var(--text-lg); font-weight: 700; letter-spacing: -0.01em; }
.order-title { font-size: 17px; font-weight: 700; margin-top: 2px; }
.order-steps { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; margin: 4px 0; padding: 0; counter-reset: s; }
.order-steps li { position: relative; display: grid; justify-items: center; gap: 6px; text-align: center; font-size: 11.5px; color: var(--text-muted); }
.order-steps li::before { content: ''; position: absolute; top: 13px; left: calc(-50% + 16px); right: calc(50% + 16px); height: 2px; background: var(--border); }
.order-steps li:first-child::before { display: none; }
.order-steps li.done::before, .order-steps li.current::before { background: var(--primary); }
.order-steps .dot { position: relative; z-index: 1; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 12px; background: var(--surface-3); color: var(--text-muted); border: 2px solid var(--border); }
.order-steps li.done .dot { background: var(--primary); border-color: var(--primary); color: #fff; }
.order-steps li.current .dot { background: var(--surface); border-color: var(--primary); color: var(--primary); box-shadow: 0 0 0 4px var(--primary-ring); }
.order-steps li.current .lbl { color: var(--text); font-weight: 700; }
.order-info { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); font-size: var(--text-sm); color: var(--text-2); }
.order-info .icon { flex: none; margin-top: 2px; color: var(--primary); }
.start-panel { background: linear-gradient(135deg, var(--primary-soft), var(--surface) 70%); border-color: var(--primary-soft-2); }
.start-panel .card-body { display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); flex-wrap: wrap; }
.start-panel h2 { font-size: 20px; margin: 8px 0 4px; }
@media (max-width: 480px) { .order-steps .lbl { font-size: 10.5px; } }
.order-received { display: flex; gap: 10px; align-items: flex-start; max-width: 480px; margin: 0 auto; padding: 12px 14px; border-radius: 14px; background: var(--primary-soft); border: 1px solid var(--primary-soft-2); text-align: left; color: var(--primary-text); }
.order-received .icon { flex: none; margin-top: 3px; }
.order-invoice { display: grid; gap: 8px; padding: 12px; border-radius: 12px; border: 1px dashed var(--border-strong); background: var(--surface); }
.order-invoice.muted { display: flex; align-items: center; gap: 8px; border-style: dashed; }

/* ----- Komisi & link sales, serah terima pesanan, status akun ----- */
.my-link .card-body { display: grid; grid-template-columns: 1fr auto; gap: var(--space-4); align-items: center; }
.my-link-url { font-size: 15px; font-weight: 700; color: var(--primary-text); overflow-wrap: anywhere; }
.my-link-rates { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3); padding-top: var(--space-3); border-top: 1px solid var(--border); }
.my-link-rates > div { display: grid; gap: 2px; }
.my-link-rates strong { font-size: 18px; }
@media (max-width: 640px) { .my-link .card-body { grid-template-columns: 1fr; } }
.review-box { display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); flex-wrap: wrap; padding: 14px 16px; border-radius: 12px; background: var(--success-soft); border: 1px solid color-mix(in srgb, var(--success) 30%, transparent); }
.account-status { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* ----- Kuitansi ----- */
.receipt-doc { position: relative; overflow: hidden; }
.receipt-table { width: 100%; border-collapse: collapse; margin: var(--space-6) 0; font-size: 14px; }
.receipt-table th { width: 190px; text-align: left; vertical-align: top; padding: 10px 12px 10px 0; color: var(--text-muted); font-weight: 600; }
.receipt-table td { padding: 10px 0; border-bottom: 1px dashed var(--border-strong); }
.receipt-amount { font-size: 22px; }
.receipt-words { text-transform: capitalize; }
.receipt-foot { display: flex; justify-content: space-between; gap: var(--space-6); align-items: flex-end; }
.receipt-sign { text-align: center; min-width: 220px; }
.receipt-sign .sign-space { height: 64px; }
.receipt-copy { position: absolute; top: 38%; left: 50%; transform: translate(-50%, -50%) rotate(-18deg); font-size: 96px; font-weight: 800; letter-spacing: .1em; color: rgba(220, 38, 38, .12); pointer-events: none; }
@media print { .no-print { display: none !important; } .receipt-copy { color: rgba(220, 38, 38, .18); } }

/* Produk Groverse & Solusi Bisnis Kopi */
.product-card-art { --art-accent: #4f46e5; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 8px; padding: 18px 20px; background: radial-gradient(ellipse at 85% 10%, #fff 0, transparent 45%), linear-gradient(135deg, #eef0ff, #e3e8f4); text-align: left; }
.product-art-kopi { --art-accent: #3f6b52; background: radial-gradient(ellipse at 85% 10%, #fffdf8 0, transparent 45%), linear-gradient(135deg, #f4f1e8, #e5ebe2); }
.product-art-mark { display: grid; min-width: 40px; height: 40px; padding: 0 8px; place-items: center; border-radius: 999px; background: rgba(255,255,255,.75); color: var(--art-accent); font: 700 17px Georgia, 'Times New Roman', serif; }
.product-card-art strong { color: #1f2a37; font-size: 17px; line-height: 1.2; letter-spacing: -.01em; }
.product-card-art ul { display: flex; flex-wrap: wrap; gap: 5px; margin: 0; padding: 0; list-style: none; }
.product-card-art li { padding: 3px 8px; border: 1px solid rgba(31,42,55,.1); border-radius: 999px; background: rgba(255,255,255,.7); color: #3a4656; font-size: 10.5px; font-weight: 600; }
.product-feature-count { color: var(--primary-text) !important; font-size: 12px !important; font-weight: 700; }
.product-feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin-top: var(--space-3); }
.product-feature-card { display: grid; align-content: start; gap: 8px; padding: var(--space-5); border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.product-feature-number { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; background: var(--primary-soft); color: var(--primary-text); font-weight: 800; font-size: 13px; }
.product-feature-card h3 { font-size: 16px; }
.product-feature-card p { font-size: 14px; line-height: 1.6; }
.product-feature-card ul { display: grid; gap: 4px; margin: 0; padding-left: 18px; color: var(--text-2); font-size: 13.5px; }
.product-feature-card .product-feature-benefit { padding-top: 8px; border-top: 1px solid var(--border); color: var(--text-2); font-size: 13px; }
.product-pricing { display: grid; gap: 10px; margin: var(--space-3) 0 0; }
.product-pricing > div { display: grid; grid-template-columns: 150px 1fr; gap: 12px; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.product-pricing dt { font-weight: 700; }
.product-pricing dd { margin: 0; color: var(--text-muted); }
@media (max-width: 560px) { .product-pricing > div { grid-template-columns: 1fr; gap: 4px; } }
.demo-feature-desc { margin: 12px 0 14px; color: #5f6b7c; font-size: 11px; line-height: 1.6; }
.demo-metric-grid article > strong.demo-feature-element { font-size: 12px; line-height: 1.35; letter-spacing: 0; }
.demo-feature-app .demo-sidebar > button { min-height: 30px; }

/* ============ Etalase Groverse Undangan (pages/public/invitations.js) ============ */
.gu-hero-hp { position: relative; display: flex; justify-content: center; align-items: flex-end; min-height: 420px; }
.gu-hero-hp img { width: 190px; height: auto; border-radius: 26px; border: 6px solid #111827; box-shadow: 0 30px 60px -25px rgba(0,0,0,.6); background: #fff; }
.gu-hero-hp img:nth-child(1) { transform: translateX(40px) rotate(-7deg); }
.gu-hero-hp img:nth-child(2) { position: relative; z-index: 2; width: 220px; }
.gu-hero-hp img:nth-child(3) { transform: translateX(-40px) rotate(7deg); }
.gu-angka-item { display: grid; gap: 2px; text-align: center; padding: var(--space-5); border: 1px solid var(--border); border-radius: var(--radius-xl); background: var(--surface); }
.gu-angka-item strong { font-size: 2rem; line-height: 1.1; }
.gu-angka-item span { color: var(--text-muted, #64748b); }
.gu-model-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: var(--space-5); }
.gu-model { display: grid; gap: var(--space-3); }
.gu-model-hp { display: block; border-radius: 22px; overflow: hidden; border: 5px solid #111827; aspect-ratio: 1 / 2; background: #fff; transition: transform .2s ease; }
.gu-model-hp:hover { transform: translateY(-4px); }
.gu-model-hp img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gu-model-info { display: grid; gap: 6px; }
.gu-tengah { text-align: center; margin-top: var(--space-6); }
.check-list li.gu-tidak { opacity: .55; }
.gu-sub { display: flex; align-items: center; gap: 8px; margin: var(--space-6) 0 var(--space-3); font-size: 1.05rem; }
.gu-tema { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--space-3); }
.gu-tema-item, .gu-ornamen-item { display: grid; gap: 4px; padding: var(--space-3); border: 1px solid var(--border); border-radius: var(--radius-lg, 12px); background: var(--surface); }
.gu-palet { display: flex; height: 34px; border-radius: 8px; overflow: hidden; border: 1px solid var(--border); }
.gu-palet i { flex: 1; }
.gu-ornamen { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: var(--space-3); }
.gu-ornamen-item { justify-items: center; text-align: center; }
.gu-ornamen-gbr { width: 56px; height: 56px; background: var(--primary, #b08d57); -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.gu-lukisan { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--space-4); }
.gu-lukisan figure { margin: 0; display: grid; gap: 6px; }
.gu-lukisan img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 12px; display: block; }
.gu-lukisan figcaption { display: grid; gap: 2px; }
.gu-musik { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--space-3); }
.gu-musik li { display: flex; gap: var(--space-3); align-items: flex-start; padding: var(--space-3); border: 1px solid var(--border); border-radius: var(--radius-lg, 12px); background: var(--surface); }
.gu-musik li > div { display: grid; gap: 2px; min-width: 0; }
.gu-putar { flex: none; width: 38px; height: 38px; padding: 0; border-radius: 50%; justify-content: center; }
.gu-putar[aria-pressed="true"] { background: var(--primary, #2563eb); color: #fff; border-color: transparent; }
@media (max-width: 720px) {
  .gu-hero-hp { min-height: 300px; margin-top: var(--space-6); }
  .gu-hero-hp img { width: 130px; border-width: 4px; border-radius: 18px; }
  .gu-hero-hp img:nth-child(2) { width: 150px; }
  .gu-model-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-4); }
  .gu-angka { grid-template-columns: repeat(2, 1fr); }
  .gu-angka-item { padding: var(--space-4); }
  .gu-angka-item strong { font-size: 1.6rem; }
  .gu-tema, .gu-lukisan { grid-template-columns: repeat(2, 1fr); }
  .gu-ornamen { grid-template-columns: repeat(3, 1fr); }
  .gu-musik { grid-template-columns: 1fr; }
}

/* Template engine undangan: tema dari konfigurasi versi template */
.invite-compact { padding-top: clamp(22px,4vw,40px); padding-bottom: clamp(22px,4vw,40px); }
.invite-align-left { text-align: left; }
.invite-align-left p, .invite-align-left blockquote { margin-left: 0; }
.invite-event, .invite-gift-card, .invite-gallery-grid figure, .invite-countdown div { border-radius: calc(var(--invite-radius,24px) * .66); }
.invite-video { position: relative; max-width: 720px; margin: 22px auto 0; overflow: hidden; border-radius: calc(var(--invite-radius,24px) * .66); background: #000; aspect-ratio: 16/9; }
.invite-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.invite-rendered .invite-btn { border-radius: var(--invite-radius,24px); }
.invite-btn-solid .invite-btn:not(:disabled) { border-color: var(--invite-primary); background: var(--invite-primary); color: #fff; }
.invite-btn-outline .invite-btn:not(:disabled) { border: 1px solid var(--invite-primary); background: transparent; color: var(--invite-primary); }
.invite-btn-soft .invite-btn:not(:disabled) { border-color: transparent; background: var(--invite-secondary); color: var(--invite-primary); }
.invite-rendered .invite-open { border-radius: var(--invite-radius,99px); }

/* Template Builder (dashboard management) */
.tb-layout { display: grid; grid-template-columns: minmax(220px,260px) minmax(0,1fr) minmax(260px,320px); align-items: start; gap: 14px; }
.tb-panel { position: sticky; top: 12px; max-height: calc(100vh - 24px); overflow: auto; padding: 14px; }
.tb-panel-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.tb-section-list { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.tb-section { display: flex; align-items: center; gap: 4px; padding: 4px; border: 1px solid transparent; border-radius: 10px; }
.tb-section.is-selected { border-color: var(--primary); background: var(--primary-soft); }
.tb-section.is-off .tb-section-name { opacity: .5; text-decoration: line-through; }
.tb-section-name { display: flex; flex: 1; min-width: 0; align-items: center; gap: 8px; padding: 6px; border: 0; background: none; color: inherit; font: inherit; font-size: var(--text-sm); text-align: left; cursor: pointer; }
.tb-section-name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tb-section-tools { display: flex; flex: none; align-items: center; gap: 2px; }
.tb-section-tools .btn-icon.btn-sm { width: 26px; min-height: 26px; }
.tb-switch input { width: 30px; height: 18px; }
.tb-switch input::after { top: 2px; left: 2px; width: 14px; height: 14px; }
.tb-switch input:checked::after { transform: translateX(12px); }
.tb-add { display: flex; gap: 6px; margin-top: 12px; }
.tb-add .select { flex: 1; min-width: 0; }
.tb-note { display: flex; gap: 6px; margin-top: 12px; }
.tb-stage { min-width: 0; padding: 0; overflow: hidden; }
.tb-stage-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.tb-devices { display: flex; gap: 4px; }
.tb-validation { font-size: var(--text-xs); }
.tb-warn { display: inline-flex; align-items: center; gap: 6px; color: var(--warning-text); }
.tb-ok { display: inline-flex; align-items: center; gap: 6px; color: var(--success-text); }
.tb-canvas { height: calc(100vh - 210px); min-height: 480px; overflow: auto; padding: 16px; background: var(--surface-2); }
.tb-frame { margin: 0 auto; transition: max-width .2s ease; }
.tb-frame[data-size="desktop"] { max-width: 100%; }
.tb-frame[data-size="tablet"] { max-width: 768px; }
.tb-frame[data-size="mobile"] { max-width: 390px; }
.tb-frame .invite-rendered { margin: 0 auto; }
.tb-frame .invite-cover { min-height: 520px; }
.tb-frame[data-size="mobile"] .invite-people { flex-direction: column; gap: 8px; }
.tb-frame [data-section] { cursor: pointer; }
.tb-frame [data-section]:hover { outline: 2px dashed color-mix(in srgb,var(--primary),transparent 40%); outline-offset: -4px; }
.tb-frame .tb-highlight { outline: 2px solid var(--primary); outline-offset: -4px; }
.tb-tabs { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.tb-tab { padding: 6px 10px; border: 0; border-radius: 8px; background: none; color: var(--text-2); font: inherit; font-size: var(--text-xs); font-weight: 700; cursor: pointer; }
.tb-tab[aria-selected="true"] { background: var(--primary-soft); color: var(--primary-text); }
.tb-props { display: grid; gap: 12px; }
.tb-section-info p { margin: 4px 0; }
.tb-colors { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tb-color { display: grid; gap: 4px; }
.tb-color input[type="color"] { width: 34px; height: 32px; flex: none; padding: 0; border: 1px solid var(--border); border-radius: 8px; background: none; }
.tb-color .input { min-width: 0; }
.tb-fieldset { display: grid; gap: 10px; margin: 0; padding: 12px; border: 1px solid var(--border); border-radius: 12px; }
.tb-fieldset legend { padding: 0 4px; font-size: var(--text-xs); font-weight: 800; }
.tb-versions { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.tb-version { display: flex; width: 100%; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: inherit; font: inherit; text-align: left; cursor: pointer; }
.tb-version .small { flex-basis: 100%; }
.tb-versions .is-selected .tb-version { border-color: var(--primary); }
.tb-subhead { margin: 8px 0 0; font-size: var(--text-sm); }
.tb-history { display: grid; gap: 8px; margin: 0; padding-left: 16px; }
@media (max-width: 1180px) {
  .tb-layout { grid-template-columns: minmax(200px,240px) minmax(0,1fr); }
  .tb-layout > .tb-panel:last-child { position: static; grid-column: 1 / -1; max-height: none; }
}
@media (max-width: 760px) {
  .tb-layout { grid-template-columns: minmax(0,1fr); }
  .tb-panel { position: static; max-height: none; }
  .tb-canvas { height: auto; min-height: 0; padding: 8px; }
  .tb-colors { grid-template-columns: 1fr; }
}
