@font-face {
    font-family: 'Aiva';
    src: url('/assets/font/aiva_light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Aiva';
    src: url('/assets/font/aiva_regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Aiva';
    src: url('/assets/font/aiva_medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Aiva';
    src: url('/assets/font/aiva_bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
/* ============================================================
   Ai Poster — STYLES UNTUK MOBILE POTRAIT  ( <= 768px )
   Seluruh isi file dibungkus dalam satu @media query.
   ============================================================ */

@media (max-width: 768px) {

  /* ----------------------------------------------------------
     ROOT / TOKENS
     ---------------------------------------------------------- */
  :root {
    /* Brand (override custom buat_desain_furnitur look) */
    --brand:        #24a2fb;
    --brand-2:      #07E3AD;
    --brand-soft:   #FFF7ED;

    /* Accent (mobile pakai warna lebih pop) */
    --accent-pink:  #ff2fcb;
    --accent-purple:#15F4FF;
    --accent-yellow:#FFCB00;
    --accent-cyan:  #07E3AD;

    --font-size-step-title: 0.7rem;

    /* Neutrals */
    --bg:            #FAF7F2;
    --surface:       #FFFFFF;
    --surface-2:     #F5F1EA;
    --border:        #E7E2D9;
    --border-strong: #CFC9BD;

    /* Text */
    --ink:           #0C0A09;
    --ink-2:         #44403C;
    --ink-muted:     #78716C;
    --ink-inverse:   #FAFAF9;

    /* States */
    --success: #16A34A;
    --danger:  #DC2626;
    --warning: #D97706;

    /* Radius */
    --r-sm: 8px;
    --r-md: 12px;
    --r-lg: 16px;
    --r-xl: 22px;

    /* Shadow */
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 4px 16px -2px rgba(15, 23, 42, 0.08), 0 2px 4px -1px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 18px 40px -12px rgba(15, 23, 42, 0.18), 0 6px 18px -8px rgba(15, 23, 42, 0.08);

    /* Type */
    --font: "Aiva", system-ui, sans-serif;
  }

  *, *::before, *::after { box-sizing: border-box; }
  html, body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    height: 100vh;
  }
  body {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.5;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: flex;
    flex-direction: column;
  }

  button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
  }
  button { cursor: pointer; border: 0; background: none; }
  a { color: var(--brand); text-decoration: none; }
  a:hover { text-decoration: underline; }

  .desktop-header { display: none !important; }
  .mobile-bottom-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: linear-gradient(120deg, #9d00ff, #1c75ff, #6197ff, #22b8ff);
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.15);
  }
  .panel-toggle-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(90deg, #ff00cc, #ff9701);
    border: none;
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
  }
  .mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    background: #24a2fb;
    border: none;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    cursor: pointer;
  }

  .mobile-side-panel-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgb(255 255 255 / 75%);
    z-index: 5999;
    backdrop-filter: blur(4px);
  }
  .mobile-side-panel-overlay.open { display: block; }

  .mobile-side-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 90%;
    height: 100%;
    background: #ffffff;
    z-index: 6000;
    transform: translateX(-110%);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    height: auto;
    max-height: 100%;
  }
  .mobile-side-panel.open { transform: translateX(0); }

  .mobile-side-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    background: #5eb3f9;
    font-size: 1.2rem;
    color: #fff;
  }
  .panel-close-menu-btn {
    position: absolute;
    top: 50%;
    left: 100%;
    transform: translateY(-50%);
    width: 20px;
    height: 80px;
    background: #5eb3f9;
    border: none;
    border-radius: 0 8px 8px 0;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    line-height: 1.1;
  }
  .mobile-side-content {
    flex: 1;
    overflow-y: auto;
  }
  .mobile-menu-group-title {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    font-size: 15px;
    color: #333;
    border-bottom: 1px solid #dbdada;
    gap: 12px;
  }
  .mobile-submenu {
    display: none;
    background: #f9f9f9;
  }
  .mobile-submenu.open { display: block; }
  .mobile-submenu a {
    display: block;
    padding: 12px 16px 12px 30px;
    color: #054087;
    text-decoration: none;
    background: #b6d2ff;
    border-bottom: 1px solid #ffffff;
  }
  .mobile-submenu a:last-child { border-bottom: none; }

  .app {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 0;
    max-width: 100%;
    overflow: hidden;
  }
  .preview {
    display: flex;
    flex-direction: column;
    overflow: visible;
    height: calc(100vh - 50px);
    background: var(--surface-2);
    order: 1;
  }
  .wizard {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    border-radius: 20px 20px 0 0;
    z-index: 1000;
    transform: translateY(110%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 90vh;
    overflow-y: auto;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: #ffffff;
    padding: 20px 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 22px;
  }
  .wizard.active { transform: translateY(0); }

  .panel-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
  }
  .panel-overlay.active { display: block; }

.disclaimer {
    text-align: center;
    font-size: 0.75rem;
    color: #0c0a09;
    padding: 6px 0;
    flex-shrink: 0;
}

  .step-indicator-wrapper {
    width: 100%;
    margin-bottom: 20px;
  }
  .step-indicator {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #ffffff;
    padding: 8px 8px 2px 8px;
  }
  .step-item {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .step-item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 15px;
    right: -50%;
    width: 100%;
    height: 2px;
    background: transparent;
    z-index: 1;
  }
  .step-item.completed::after {
    background: transparent;
  }
  .step-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    margin-bottom: 5px;
    position: relative;
    z-index: 2;
    background-color: rgb(108, 209, 239);
    color: #ffffff;
    font-weight: 600;
  }
  .step-item.active .step-number {
    background: rgb(108, 209, 239);
    color: #fff;
    border-color: transparent;
  }
  .step-title {
    font-size: 0.8rem;
    color: #434343;
  }
  .step-item.active .step-title {
    background: linear-gradient(90deg, var(--accent-yellow), #d24aff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 600;
  }

  @keyframes spin-glow {
    0%   { transform: translate(-50%, -50%) rotate(0deg);   filter: drop-shadow(0 0 4px rgba(255, 65, 108, 0.3)); }
    50%  {                                                  filter: drop-shadow(0 0 8px rgba(138, 43, 226, 0.5)); }
    100% { transform: translate(-50%, -50%) rotate(360deg); filter: drop-shadow(0 0 4px rgba(255, 65, 108, 0.3)); }
  }
  .step-item.active .step-number::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, #04b4f9 120deg, #f705ff 240deg, #FFE408 360deg);
    -webkit-mask: radial-gradient(farthest-side, transparent calc(50% - 1.5px), #000 calc(50% - 1.5px));
            mask: radial-gradient(farthest-side, transparent calc(50% - 1.5px), #000 calc(50% - 1.5px));
    transform: translate(-50%, -50%);
    animation: spin-glow 1.2s linear infinite;
    z-index: -1;
  }

  /* ----------------------------------------------------------
     STEP CONTAINER
     ---------------------------------------------------------- */
  .step { display: none; flex-direction: column; gap: 22px; }
  .step.is-active { display: flex; }

  .step-head .eyebrow {
    margin: 0 0 6px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--brand-2);
  }
  .step-head h1 {
    margin: 0;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: #24a2fb;
    text-wrap: pretty;
  }
  .step-head .sub {
    margin: 8px 0 0;
    color: #0c0a09;
    font-size: 14px;
  }

  /* ----------------------------------------------------------
     TYPE CARDS (Step 1)
     ---------------------------------------------------------- */
  .type-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .type-card {
    text-align: left;
    background: #bceffd;
    border-radius: 15px;
    padding: 16px;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    column-gap: 16px;
    row-gap: 4px;
    transition: border-color 120ms ease, transform 120ms ease, box-shadow 120ms ease;
  }
  .type-card:hover {
    border-color: var(--border-strong);
    box-shadow: var(--shadow-md);
  }
  .type-card[aria-checked="true"] {
    border-color: var(--brand);
    box-shadow: var(--shadow-md), inset 0 0 0 2px var(--brand);
  }
  .type-icon {
    grid-row: 1 / 3;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--brand-soft);
    color: var(--brand-2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .type-card[aria-checked="true"] .type-icon {
    background: var(--brand);
    color: #fff;
  }
  .type-title { font-weight: 700; font-size: 16px; color: var(--ink); }
  .type-desc  { font-size: 13px; color: #0c0a09; }

  /* ----------------------------------------------------------
     AI RATIO SELECTOR
     ---------------------------------------------------------- */
  .ai-ratio-selector {
    background: #c0d1ff;
    padding: 15px;
    border-radius: 12px;
    margin-top: 20px;
    border: 1px solid #b6d2ff;
  }
  .ai-ratio-options {
    display: flex;
    gap: 8px;
  }
  .ai-ratio-option-btn {
    flex: 1;
    background: #fff;
    border: 1px solid #ccc;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    color: var(--brand);
    font-weight: 500;
  }
  .ai-ratio-option-btn.active,
  .ai-ratio-option-btn.is-on {
    background: var(--brand);
    color: #ffffff;
  }

  /* ----------------------------------------------------------
     FORM (Step 2)
     ---------------------------------------------------------- */
  .form { display: flex; flex-direction: column; }

  .autofill-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    background: linear-gradient(135deg, var(--brand-soft), color-mix(in srgb, var(--brand-soft) 60%, var(--surface)));
    border: 1.5px dashed color-mix(in srgb, var(--brand-2) 50%, var(--border));
    border-radius: var(--r-lg);
  }
  .autofill-info {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
  }
  .autofill-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--surface);
    color: var(--brand-2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }
  .autofill-info > div { display: flex; flex-direction: column; min-width: 0; }
  .autofill-info strong { font-size: 14.5px; font-weight: 700; color: var(--ink); line-height: 1.2; }
  .autofill-info span  { font-size: 13px; color: var(--ink-2); margin-top: 2px; line-height: 1.35; }

  .btn-sm {
    padding: 8px 14px;
    font-size: 13.5px;
    flex-shrink: 0;
    white-space: nowrap;
  }

  /* Library shuffle button */
  .lib-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-left: 8px;
    padding: 4px 10px;
    font-size: 0.8rem;
    font-weight: 500;
    color: #d77f00;
    background: #ffffff;
    border: 1.5px solid color-mix(in srgb, var(--brand-2) 40%, var(--border));
    border-radius: 999px;
    cursor: pointer;
    font-family: inherit;
    transition: background 120ms, color 120ms, border-color 120ms, transform 80ms, box-shadow 120ms;
    letter-spacing: 0.02em;
  }
  .lib-btn::before { content: "🎲"; font-size: 12px; line-height: 1; }
  .lib-btn:hover {
    background: #d77f00;
    color: #fff;
    border-color: #ffffff00;
    transform: translateY(-1px);
  }
  .lib-btn:active { transform: translateY(0); }
  .lib-btn-inline { margin-left: 10px; padding: 8px 12px; }
  .lib-btn:not(.lib-btn-inline) { font-size: 0; }
  .lib-btn:not(.lib-btn-inline)::before { font-size: 13px; }
  .lib-btn:not(.lib-btn-inline)::after {
    content: "Isi dengan Acak";
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    margin-left: 4px;
  }

  .form-hint {
    margin: 0 0 -4px;
    font-size: 12.5px;
    color: var(--ink-muted);
    line-height: 1.45;
  }
  .form-group {
    border: 1px solid #e2e8f000;
    border-radius: var(--r-lg);
    background: var(--surface);
    padding: 18px;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
  .form-group legend {
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #24a2fb;
    padding: 0 8px;
    background: var(--surface);
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
  }
  .form-group[hidden] { display: none; }
  .form-group > textarea {
    width: 100%;
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: var(--r-md);
    padding: 11px 13px;
    font-size: 14.5px;
    font-family: inherit;
    color: var(--ink);
    line-height: 1.55;
    resize: vertical;
    transition: border-color 100ms, background 100ms, box-shadow 100ms;
  }
  .form-group > textarea::placeholder { color: #B8B2A4; }
  .form-group > textarea:focus {
    outline: none;
    border-color: var(--brand);
    background: var(--surface);
    box-shadow: 0 0 0 4px rgba(15, 23, 42, 0.08);
  }

  .field { display: flex; flex-direction: column; gap: 6px; }
  .field-label { font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
  .field input,
  .field select,
  .field textarea {
    width: 100%;
    background: var(--bg);
    border: 1px solid #797979;
    border-radius: var(--r-md);
    padding: 11px 13px;
    font-size: 15px;
    color: var(--ink);
    transition: border-color 100ms, background 100ms, box-shadow 100ms;
    resize: vertical;
  }
  .field select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 38px !important;
    background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 24 24" width="20" height="20" fill="none" stroke="%23333333" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><polyline points="6 9 12 15 18 9"></polyline></svg>') !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    background-size: 16px !important;
  }
  .field input::placeholder,
  .field textarea::placeholder { color: #B8B2A4; }
  .field input:focus,
  .field select:focus,
  .field textarea:focus {
    outline: none;
    border-color: var(--brand);
    background: var(--surface);
    box-shadow: 0 0 0 4px rgba(15, 23, 42, 0.08);
  }
  @keyframes fieldFlash {
    0%   { background: var(--brand-soft); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-2) 30%, transparent); }
    100% { background: var(--bg);          box-shadow: 0 0 0 0 transparent; }
  }
  .field-flash,
  .form-group textarea.field-flash,
  .form-group > textarea.field-flash { animation: fieldFlash 380ms ease-out; }

  .field-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* ----------------------------------------------------------
     LIBRARY FIELDS (Step 3) — checkbox + judul + tombol acak + dropdown
     ---------------------------------------------------------- */
  .lib-fields { display: flex; flex-direction: column; gap: 14px; }
  .lib-field-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 4px;
  }
  .lib-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 700;
    font-size: 13.5px;
    color: var(--ink);
    user-select: none;
    flex: 1;
    min-width: 0;
  }
  .lib-toggle input[type="checkbox"] {
    appearance: auto;
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
    margin: 0;
  }
  .lib-toggle span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.25;
  }
  .lib-field.is-disabled .lib-toggle span {
    text-decoration: line-through;
    color: var(--ink-muted);
  }
  .lib-select {
    width: 100%;
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: var(--r-md);
    padding: 10px 12px;
    font-size: 13.5px;
    color: var(--ink);
    font-family: inherit;
    cursor: pointer;
    line-height: 1.4;
    transition: border-color 100ms, background 100ms, box-shadow 100ms;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 38px !important;
    background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 24 24" width="20" height="20" fill="none" stroke="%23333333" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><polyline points="6 9 12 15 18 9"></polyline></svg>') !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    background-size: 16px !important;
  }
  .lib-select:focus {
    outline: none;
    border-color: var(--brand);
    background: var(--surface);
    box-shadow: 0 0 0 4px rgba(15, 23, 42, 0.08);
  }
  .lib-field.is-disabled .lib-select {
    opacity: 0.5;
    pointer-events: none;
  }
  .lib-input {
    width: 100%;
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: var(--r-md);
    padding: 10px 12px;
    font-size: 13.5px;
    color: var(--ink);
    font-family: inherit;
    line-height: 1.4;
    transition: border-color 100ms, background 100ms;
  }
  .lib-input::placeholder {
    color: #999;
    font-size: 12.5px;
  }
  .lib-input:focus {
    outline: none;
    border-color: var(--brand);
    background: var(--surface);
    box-shadow: 0 0 0 4px rgba(15, 23, 42, 0.08);
  }
  .lib-field.is-disabled .lib-input {
    opacity: 0.5;
    pointer-events: none;
  }
  .lib-textarea {
    resize: vertical;
    min-height: 44px;
    max-height: 120px;
  }
  .lib-char-counter {
    text-align: right;
    font-size: 11.5px;
    color: #999;
    margin-top: 3px;
    transition: color 200ms;
  }
  .lib-char-counter.is-near {
    color: #e6a700;
  }
  .lib-char-counter.is-max {
    color: #e53935;
    font-weight: 600;
  }

  /* ----------------------------------------------------------
     STYLE CARDS (Step 3) — 50 preset
     Layout default sekali di sini; tiap style cuma override warna.
     ---------------------------------------------------------- */
  .style-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    max-height: 56vh;
    overflow-y: auto;
    padding: 4px 10px 4px 4px;
    margin: -4px -10px -4px -4px;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: var(--border-strong) transparent;
  }
  .style-grid::-webkit-scrollbar { width: 8px; }
  .style-grid::-webkit-scrollbar-track { background: transparent; }
  .style-grid::-webkit-scrollbar-thumb {
    background: var(--border-strong);
    border-radius: 4px;
    border: 2px solid transparent;
    background-clip: padding-box;
  }

  .style-card {
    text-align: left;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--r-lg);
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: border-color 120ms, box-shadow 120ms;
  }
  .style-card:hover {
    border-color: var(--border-strong);
    box-shadow: var(--shadow-md);
  }
  .style-card[aria-checked="true"] {
    border-color: var(--brand);
    box-shadow: var(--shadow-md), inset 0 0 0 2px var(--brand);
  }
  .style-preview {
    aspect-ratio: 1 / 1;
    width: 100%;
    border-radius: var(--r-md);
    position: relative;
    overflow: hidden;
    display: block;
  }
  .style-preview .sp-stripe,
  .style-preview .sp-block,
  .style-preview .sp-dot { position: absolute; }

  /* Layout default untuk semua style-preview */
  .style-preview .sp-stripe  { top: 0; left: 0; right: 0; height: 28%; }
  .style-preview .sp-block-1 { left: 12%; bottom: 14%; width: 62%; height: 14%; border-radius: 3px; }
  .style-preview .sp-block-2 { left: 12%; bottom: 32%; width: 42%; height: 8%;  border-radius: 2px; }
  .style-preview .sp-dot     { right: 12%; top: 36%; width: 20%; height: 20%; border-radius: 50%; }

  .style-name { font-weight: 700; font-size: 13.5px; padding: 0 4px; }
  .style-desc { font-size: 11.5px; color: var(--ink-muted); padding: 0 4px 4px; }

  /* — Modern: white + blue accent (layout unik) */
  .style-modern { background: #F5F8FC; }
  .style-modern .sp-stripe  { height: 22%; background: #1E40AF; }
  .style-modern .sp-block-1 { width: 60%; background: #0F172A; }
  .style-modern .sp-block-2 { width: 40%; background: #94A3B8; bottom: 32%; }
  .style-modern .sp-dot     { top: 32%; width: 18%; height: 18%; background: #3B82F6; }

  /* — Warm Natural */
  .style-warm { background: #EFE6D9; }
  .style-warm .sp-stripe  { height: 30%; background: #A0633E; }
  .style-warm .sp-block-1 { width: 70%; height: 12%; background: #3F2A1A; }
  .style-warm .sp-block-2 { width: 45%; bottom: 30%; background: #8C6748; }
  .style-warm .sp-dot     { top: 38%; width: 22%; height: 22%; border-radius: 4px; background: #D4A373; }

  /* — Bold */
  .style-bold { background: #FFEDD5; }
  .style-bold .sp-stripe  { height: 38%; background: #F97316; }
  .style-bold .sp-block-1 { left: 10%; width: 55%; height: 18%; bottom: 12%; background: #0C0A09; }
  .style-bold .sp-block-2 { left: 10%; width: 30%; bottom: 36%; background: #FACC15; }
  .style-bold .sp-dot     {
    right: 8%; top: 8%; width: 28%; height: 28%;
    background: #FACC15; transform: rotate(-12deg);
  }

  /* — Minimal: B&W (layout total beda) */
  .style-minimal { background: #FFFFFF; border: 1px solid #E5E5E5; }
  .style-minimal .sp-stripe  { top: 14%; left: 12%; right: auto; width: 30%; height: 4%; background: #0C0A09; }
  .style-minimal .sp-block-1 { left: 12%; top: 24%; bottom: auto; width: 60%; height: 10%; background: #0C0A09; border-radius: 1px; }
  .style-minimal .sp-block-2 { left: 12%; bottom: 12%; width: 40%; height: 5%; background: #737373; border-radius: 1px; }
  .style-minimal .sp-dot     { right: 10%; top: auto; bottom: 10%; width: 12%; height: 12%; background: #DC2626; border-radius: 0; }

  /* — Sunset (radial bg) */
  .style-sunset { background: radial-gradient(120% 90% at 30% 20%, #FFD9A8 0%, #FF8BA0 55%, #5B2A86 100%); }
  .style-sunset .sp-stripe  { height: 0; }
  .style-sunset .sp-block-1 { width: 64%; background: rgba(62, 15, 47, 0.85); }
  .style-sunset .sp-block-2 { background: rgba(255, 224, 192, 0.85); }
  .style-sunset .sp-dot     { right: 14%; top: 14%; width: 32%; height: 32%;
                              background: radial-gradient(circle, #FFEB99 0%, #FF8C42 70%, transparent 100%); }

  /* — Art Deco */
  .style-artdeco { background: #1A1A1A; }
  .style-artdeco .sp-stripe  {
    height: 22%;
    background: linear-gradient(135deg, #D4AF37 25%, #1A1A1A 25%, #1A1A1A 50%, #D4AF37 50%, #D4AF37 75%, #1A1A1A 75%);
    background-size: 16px 16px;
  }
  .style-artdeco .sp-block-1 { left: 22%; top: 32%; bottom: auto; width: 56%; height: 14%; background: #FFFFFF; border-radius: 1px; }
  .style-artdeco .sp-block-2 { left: 28%; bottom: 22%; width: 44%; height: 6%;  background: #D4AF37; border-radius: 1px; }
  .style-artdeco .sp-dot     {
    left: 50%; right: auto; top: auto; bottom: 8%; width: 16%; height: 16%;
    transform: translateX(-50%) rotate(45deg);
    background: #D4AF37; border-radius: 2px;
  }

  /* — Brutalist */
  .style-brutalist { background: #FFFFFF; }
  .style-brutalist .sp-stripe  { height: 10%; background: #000; }
  .style-brutalist .sp-block-1 { left: 8%; top: 18%; bottom: auto; width: 84%; height: 38%; background: #000; border-radius: 0; }
  .style-brutalist .sp-block-2 { left: 8%; bottom: 18%; width: 60%; height: 8%; background: #000; border-radius: 0; }
  .style-brutalist .sp-dot     { right: 8%; top: auto; bottom: 8%; width: 16%; height: 12%; background: #FF1F1F; border-radius: 0; }

  /* — Sisanya: layout default, hanya override warna */
  .style-luxury        { background: #0C0A09; }
  .style-luxury .sp-stripe  { background: #C9A961; }
  .style-luxury .sp-block-1 { background: #E5C77F; }
  .style-luxury .sp-block-2 { background: #6B5E45; }
  .style-luxury .sp-dot     { background: #F4D88B; }

  .style-pastel        { background: #FFE5EC; }
  .style-pastel .sp-stripe  { background: #FFB8C8; }
  .style-pastel .sp-block-1 { background: #7E2D5A; }
  .style-pastel .sp-block-2 { background: #F4A7B9; }
  .style-pastel .sp-dot     { background: #FB8FA8; }

  .style-industrial    { background: #3A3935; }
  .style-industrial .sp-stripe  { background: #1A1815; }
  .style-industrial .sp-block-1 { background: #D9D5CB; }
  .style-industrial .sp-block-2 { background: #88857F; }
  .style-industrial .sp-dot     { background: #B65E3C; }

  .style-tropical      { background: #E8F5E9; }
  .style-tropical .sp-stripe  { background: #2E7D32; }
  .style-tropical .sp-block-1 { background: #1B5E20; }
  .style-tropical .sp-block-2 { background: #66BB6A; }
  .style-tropical .sp-dot     { background: #FFC107; }

  .style-vintage       { background: #F4E8D0; }
  .style-vintage .sp-stripe  { background: #8B5A2B; }
  .style-vintage .sp-block-1 { background: #3E2723; }
  .style-vintage .sp-block-2 { background: #A1887F; }
  .style-vintage .sp-dot     { background: #C0392B; }

  .style-scandi        { background: #FAFAF7; border: 1px solid #EEEAE2; }
  .style-scandi .sp-stripe  { background: #D7C3A1; }
  .style-scandi .sp-block-1 { background: #2C2C2C; }
  .style-scandi .sp-block-2 { background: #B8B5A8; }
  .style-scandi .sp-dot     { background: #7A8471; }

  .style-japandi       { background: #EAE5DC; }
  .style-japandi .sp-stripe  { background: #3E3933; }
  .style-japandi .sp-block-1 { background: #1F1B16; }
  .style-japandi .sp-block-2 { background: #8F8779; }
  .style-japandi .sp-dot     { background: #C7A77F; }

  .style-urban         { background: #0F1B2A; }
  .style-urban .sp-stripe  { background: #C9A961; }
  .style-urban .sp-block-1 { background: #FFFFFF; }
  .style-urban .sp-block-2 { background: #5C7898; }
  .style-urban .sp-dot     { background: #C9A961; }

  .style-rustic        { background: #FAF1E0; }
  .style-rustic .sp-stripe  { background: #8B6F47; }
  .style-rustic .sp-block-1 { background: #5A3E2B; }
  .style-rustic .sp-block-2 { background: #C9A875; }
  .style-rustic .sp-dot     { background: #A6582E; }

  .style-coastal       { background: #E3F2FD; }
  .style-coastal .sp-stripe  { background: #4A90B8; }
  .style-coastal .sp-block-1 { background: #1B3A52; }
  .style-coastal .sp-block-2 { background: #A3C7DE; }
  .style-coastal .sp-dot     { background: #F5E6C8; }

  .style-mint          { background: #D4F1E5; }
  .style-mint .sp-stripe  { background: #2D6A4F; }
  .style-mint .sp-block-1 { background: #1B4332; }
  .style-mint .sp-block-2 { background: #74C69D; }
  .style-mint .sp-dot     { background: #52B788; }

  .style-forest        { background: #1B3328; }
  .style-forest .sp-stripe  { background: #52796F; }
  .style-forest .sp-block-1 { background: #F1E8D6; }
  .style-forest .sp-block-2 { background: #84A98C; }
  .style-forest .sp-dot     { background: #CAD2C5; }

  .style-mediterranean { background: #FAF3E7; }
  .style-mediterranean .sp-stripe  { background: #C65D2E; }
  .style-mediterranean .sp-block-1 { background: #2C5F7C; }
  .style-mediterranean .sp-block-2 { background: #D4A574; }
  .style-mediterranean .sp-dot     { background: #FFFFFF; box-shadow: 0 0 0 2px rgba(0,0,0,0.06) inset; }

  .style-noir          { background: #0A0A0A; }
  .style-noir .sp-stripe  { background: #E8E8E8; }
  .style-noir .sp-block-1 { background: #F5F5F5; }
  .style-noir .sp-block-2 { background: #6B6B6B; }
  .style-noir .sp-dot     { background: #D4AF37; }

  .style-neon          { background: #0D0221; }
  .style-neon .sp-stripe  { background: #FF006E; }
  .style-neon .sp-block-1 { background: #00F5FF; }
  .style-neon .sp-block-2 { background: #FFFFFF; }
  .style-neon .sp-dot     { background: #FB5607; }

  .style-desert        { background: #EAD9C0; }
  .style-desert .sp-stripe  { background: #C8956D; }
  .style-desert .sp-block-1 { background: #3B5A3A; }
  .style-desert .sp-block-2 { background: #7B6347; }
  .style-desert .sp-dot     { background: #D4783D; }

  .style-autumn        { background: #FAE8D4; }
  .style-autumn .sp-stripe  { background: #C4521C; }
  .style-autumn .sp-block-1 { background: #7A6B2A; }
  .style-autumn .sp-block-2 { background: #8B3A1E; }
  .style-autumn .sp-dot     { background: #D4882B; }

  .style-spring        { background: #FFEEF2; }
  .style-spring .sp-stripe  { background: #F4A1B8; }
  .style-spring .sp-block-1 { background: #7DBF7D; }
  .style-spring .sp-block-2 { background: #5A8C5A; }
  .style-spring .sp-dot     { background: #FFC76D; }

  .style-swiss         { background: #FFFFFF; }
  .style-swiss .sp-stripe  { background: #E63946; }
  .style-swiss .sp-block-1 { background: #1A1A1A; }
  .style-swiss .sp-block-2 { background: #888888; }
  .style-swiss .sp-dot     { background: #E63946; }

  .style-bauhaus       { background: #F4EAD5; }
  .style-bauhaus .sp-stripe  { background: #E63946; }
  .style-bauhaus .sp-block-1 { background: #FFD60A; }
  .style-bauhaus .sp-block-2 { background: #0353A4; }
  .style-bauhaus .sp-dot     { background: #1A1A1A; }

  .style-memphis       { background: #F8E9F0; }
  .style-memphis .sp-stripe  { background: #FF6B9D; }
  .style-memphis .sp-block-1 { background: #FFDA22; }
  .style-memphis .sp-block-2 { background: #1A1A1A; }
  .style-memphis .sp-dot     { background: #06BEE1; }

  .style-y2k           { background: #1A0033; }
  .style-y2k .sp-stripe  { background: #D4D8E0; }
  .style-y2k .sp-block-1 { background: #FF1493; }
  .style-y2k .sp-block-2 { background: #E6E6FF; }
  .style-y2k .sp-dot     { background: #00FFFF; }

  .style-blueprint     { background: #0F4C75; }
  .style-blueprint .sp-stripe  { background: #FFFFFF; }
  .style-blueprint .sp-block-1 { background: #BBE1FA; }
  .style-blueprint .sp-block-2 { background: #3282B8; }
  .style-blueprint .sp-dot     { background: #FFFFFF; }

  .style-clay          { background: #F4E1C8; }
  .style-clay .sp-stripe  { background: #B8693E; }
  .style-clay .sp-block-1 { background: #6E4C2F; }
  .style-clay .sp-block-2 { background: #D49F73; }
  .style-clay .sp-dot     { background: #3F2E1F; }

  .style-velvet        { background: #3D0A1A; }
  .style-velvet .sp-stripe  { background: #7B1E3C; }
  .style-velvet .sp-block-1 { background: #E8B4B8; }
  .style-velvet .sp-block-2 { background: #C9988F; }
  .style-velvet .sp-dot     { background: #F5E1C8; }

  .style-obsidian      { background: #0B0B14; }
  .style-obsidian .sp-stripe  { background: #7B2CBF; }
  .style-obsidian .sp-block-1 { background: #E0AAFF; }
  .style-obsidian .sp-block-2 { background: #9D4EDD; }
  .style-obsidian .sp-dot     { background: #C77DFF; }

  .style-honey         { background: #FAEBD7; }
  .style-honey .sp-stripe  { background: #D4A574; }
  .style-honey .sp-block-1 { background: #8B5A2B; }
  .style-honey .sp-block-2 { background: #F4D03F; }
  .style-honey .sp-dot     { background: #704214; }

  .style-emerald       { background: #0A2818; }
  .style-emerald .sp-stripe  { background: #0F5132; }
  .style-emerald .sp-block-1 { background: #D4AF37; }
  .style-emerald .sp-block-2 { background: #1A7741; }
  .style-emerald .sp-dot     { background: #F4E4BC; }

  .style-dusk          { background: #1B1B3A; }
  .style-dusk .sp-stripe  { background: #693668; }
  .style-dusk .sp-block-1 { background: #A663CC; }
  .style-dusk .sp-block-2 { background: #3E2C77; }
  .style-dusk .sp-dot     { background: #FF9F1C; }

  .style-dawn          { background: #FFE5D9; }
  .style-dawn .sp-stripe  { background: #FFB5A7; }
  .style-dawn .sp-block-1 { background: #E0B0FF; }
  .style-dawn .sp-block-2 { background: #F4978E; }
  .style-dawn .sp-dot     { background: #6A4C93; }

  .style-moss          { background: #3A4F2C; }
  .style-moss .sp-stripe  { background: #7A8450; }
  .style-moss .sp-block-1 { background: #C7B68C; }
  .style-moss .sp-block-2 { background: #5A6B3E; }
  .style-moss .sp-dot     { background: #D2B48C; }

  .style-linen         { background: #F5F1E8; }
  .style-linen .sp-stripe  { background: #D4C5A9; }
  .style-linen .sp-block-1 { background: #8B7355; }
  .style-linen .sp-block-2 { background: #E8DEC5; }
  .style-linen .sp-dot     { background: #6B5D3F; }

  .style-cobalt        { background: #FFFFFF; }
  .style-cobalt .sp-stripe  { background: #0047AB; }
  .style-cobalt .sp-block-1 { background: #001F54; }
  .style-cobalt .sp-block-2 { background: #5B8BD9; }
  .style-cobalt .sp-dot     { background: #F4D35E; }

  .style-rosegold      { background: #F8E1D6; }
  .style-rosegold .sp-stripe  { background: #E8B4A0; }
  .style-rosegold .sp-block-1 { background: #C7826C; }
  .style-rosegold .sp-block-2 { background: #F0D6CC; }
  .style-rosegold .sp-dot     { background: #8B4544; }

  .style-midnight      { background: #0F1A2E; }
  .style-midnight .sp-stripe  { background: #2E4057; }
  .style-midnight .sp-block-1 { background: #C0C5CE; }
  .style-midnight .sp-block-2 { background: #4A6585; }
  .style-midnight .sp-dot     { background: #E8ECEF; }

  .style-saffron       { background: #F5DEB3; }
  .style-saffron .sp-stripe  { background: #E8983E; }
  .style-saffron .sp-block-1 { background: #8B4513; }
  .style-saffron .sp-block-2 { background: #FFC857; }
  .style-saffron .sp-dot     { background: #3E2723; }

  .style-burgundy      { background: #F5EBE0; }
  .style-burgundy .sp-stripe  { background: #722F37; }
  .style-burgundy .sp-block-1 { background: #3E0F18; }
  .style-burgundy .sp-block-2 { background: #D4B5A0; }
  .style-burgundy .sp-dot     { background: #A0303E; }

  .style-sage          { background: #F1EDE3; }
  .style-sage .sp-stripe  { background: #9CAF88; }
  .style-sage .sp-block-1 { background: #5A6F4C; }
  .style-sage .sp-block-2 { background: #C9D4BF; }
  .style-sage .sp-dot     { background: #E0D5B7; }

  .style-denim         { background: #F4EAD5; }
  .style-denim .sp-stripe  { background: #3D5A80; }
  .style-denim .sp-block-1 { background: #293241; }
  .style-denim .sp-block-2 { background: #7B9ACC; }
  .style-denim .sp-dot     { background: #EE6C4D; }

  .style-graphite      { background: #E8E4D9; }
  .style-graphite .sp-stripe  { background: #3A3A3A; }
  .style-graphite .sp-block-1 { background: #1A1A1A; }
  .style-graphite .sp-block-2 { background: #8B8680; }
  .style-graphite .sp-dot     { background: #C9A961; }

  .style-terrazzo      { background: #F5F2EC; }
  .style-terrazzo .sp-stripe  { background: #FF6B6B; }
  .style-terrazzo .sp-block-1 { background: #4ECDC4; }
  .style-terrazzo .sp-block-2 { background: #FFE66D; }
  .style-terrazzo .sp-dot     { background: #1A535C; }

  .style-aurora        { background: #0A1929; }
  .style-aurora .sp-stripe  { background: #7DF9FF; }
  .style-aurora .sp-block-1 { background: #9D4EDD; }
  .style-aurora .sp-block-2 { background: #3DDC97; }
  .style-aurora .sp-dot     { background: #E8E6FF; }

  .style-lemon         { background: #FFFBE6; }
  .style-lemon .sp-stripe  { background: #FFE45E; }
  .style-lemon .sp-block-1 { background: #5A9367; }
  .style-lemon .sp-block-2 { background: #D4D75E; }
  .style-lemon .sp-dot     { background: #FF6B35; }

  /* ----------------------------------------------------------
     BUTTONS
     ---------------------------------------------------------- */
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: var(--r-md);
    font-weight: 700;
    font-size: 14.5px;
    border: 1.5px solid transparent;
    transition: transform 80ms, background 120ms, border-color 120ms, color 120ms, box-shadow 120ms;
    text-decoration: none;
    white-space: nowrap;
  }
  .btn:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(15, 23, 42, 0.15); }
  .btn:active { transform: translateY(1px); }
  .btn[disabled], .btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
  }
  .btn-primary {
    background: var(--brand);
    color: #fff;
    border-color: var(--brand);
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
  }
  .btn-primary:hover { background: #1E293B; }

  /* Tombol "Bikin Poster" — gradien merah → oranye */
  #generate-btn.btn-primary {
    background: linear-gradient(90deg, #ef2b2b, #ff6a00, #ff9701);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 14px -4px rgba(239, 43, 43, 0.55);
  }
  #generate-btn.btn-primary:hover {
    background: linear-gradient(90deg, #d61f1f, #f25c00, #f48a00);
    filter: brightness(1.04);
  }
  #generate-btn.btn-primary:disabled,
  #generate-btn.btn-primary[disabled] {
    background: linear-gradient(90deg, #ef2b2b, #ff6a00, #ff9701);
  }
  .btn-secondary,
  .btn-ghost {
    background: #d3d2d2;
    color: var(--ink-2);
    border-color: #ffffff00;
  }
  .btn-secondary:hover,
  .btn-ghost:hover { background: var(--surface); color: var(--ink); }

  /* ----------------------------------------------------------
     STEP NAV — menempel di setiap step (tidak sticky/melayang)
     ---------------------------------------------------------- */
  .step-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-top: 1px solid var(--border);
  }
  .step-nav .hint { font-size: 11.5px; color: var(--ink-muted); flex: 1; text-align: left; }

  .step-nav .btn { border-radius: 25px; }

  /* ----------------------------------------------------------
     PREVIEW PANE
     ---------------------------------------------------------- */
  .preview-frame {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    min-height: 0;
  }
  .poster-canvas {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 1 / 1;
    background: var(--surface);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: aspect-ratio 220ms ease;
  }
  .poster-canvas[data-ratio="9:16"] { aspect-ratio: 9 / 16; }
  .poster-canvas[data-ratio="16:9"] { aspect-ratio: 16 / 9; }

  .poster-placeholder,
  .poster-loading,
  .poster-error {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    text-align: center;
    gap: 6px;
  }
  .poster-canvas [hidden] { display: none !important; }

  .poster-placeholder { color: var(--ink-muted); }
  .poster-placeholder .ph-stack { display: flex; flex-direction: column; align-items: center; gap: 8px; }
  .poster-placeholder .ph-icon  { color: #9b9b9b; }
  .poster-placeholder .ph-title { font-weight: 700; font-size: 15px; color: #858585; margin: 4px 0 0; }
  .poster-placeholder .ph-sub   { margin: 0; font-size: 13px; max-width: 280px; }
  .poster-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

  .poster-loading p { margin: 0; font-weight: 600; color: var(--ink-2); font-size: 14.5px; }
  .poster-loading .loading-sub { font-weight: 500; font-size: 13px; color: var(--ink-muted); }
  .spinner {
    width: 42px; height: 42px;
    border-radius: 50%;
    border: 3px solid var(--border);
    border-top-color: var(--brand);
    animation: spin 0.9s linear infinite;
    margin-bottom: 10px;
  }
  @keyframes spin { to { transform: rotate(360deg); } }

  .poster-error .err-icon {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: #FEF2F2;
    color: var(--danger);
    font-weight: 800;
    font-size: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
  }
  .poster-error .err-title { font-weight: 700; color: var(--ink); margin: 0; }
  .poster-error .err-msg   { color: var(--ink-muted); font-size: 13.5px; margin: 0 0 12px; max-width: 320px; }

  /* ----------------------------------------------------------
     RESULT ACTIONS (Step 4)
     ---------------------------------------------------------- */
  .result-actions { display: flex; flex-wrap: wrap; gap: 8px; }
  .result-actions .btn { flex: 1 1 calc(50% - 4px); }

  .prompt-debug {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 12px 14px;
    font-size: 13px;
  }
  .prompt-debug summary { cursor: pointer; font-weight: 600; color: var(--ink-2); }
  .prompt-debug pre {
    margin: 10px 0 0;
    padding: 12px;
    background: var(--bg);
    border-radius: 8px;
    white-space: pre-wrap;
    word-break: break-word;
    font-family: ui-monospace, "SF Mono", Menlo, monospace;
    font-size: 12px;
    color: var(--ink-2);
    line-height: 1.55;
  }

  /* ----------------------------------------------------------
     TWEAK: VIBE PRESETS
     ---------------------------------------------------------- */
  :root[data-vibe="studio"] {
    --brand:        #24a2fb;
    --brand-2:      #3B82F6;
    --brand-soft:   #DBEAFE;
    --bg:           #F8FAFC;
    --surface:      #FFFFFF;
    --surface-2:    #F1F5F9;
    --border:       #E2E8F0;
    --border-strong:#CBD5E1;
    --ink:          #0F172A;
    --ink-2:        #334155;
    --ink-muted:    #64748B;
  }
  :root[data-vibe="studio"] .preview {
    background:
      radial-gradient(120% 80% at 50% 0%, rgba(59, 130, 246, 0.08), transparent 60%),
      var(--surface-2);
  }
  :root[data-vibe="promo"] {
    --brand:        #FACC15;
    --brand-2:      #F97316;
    --brand-soft:   rgba(250, 204, 21, 0.14);
    --bg:           #0C0A09;
    --surface:      #1C1917;
    --surface-2:    #18120E;
    --border:       #3F3D38;
    --border-strong:#57534E;
    --ink:          #FAFAF9;
    --ink-2:        #E7E5E4;
    --ink-muted:    #A8A29E;
    --ink-inverse:  #0C0A09;
  }
  :root[data-vibe="promo"] .preview {
    background:
      radial-gradient(120% 80% at 50% 0%, rgba(250, 204, 21, 0.10), transparent 60%),
      var(--surface-2);
  }
  :root[data-vibe="promo"] .btn-primary {
    background: var(--brand);
    color: #0C0A09;
    border-color: var(--brand);
  }
  :root[data-vibe="promo"] .btn-primary:hover { background: #EAB308; }
  :root[data-vibe="promo"] .type-card[aria-checked="true"],
  :root[data-vibe="promo"] .style-card[aria-checked="true"] {
    border-color: var(--brand);
    box-shadow: var(--shadow-md), inset 0 0 0 2px var(--brand);
  }
  :root[data-vibe="promo"] .type-card[aria-checked="true"] .type-icon {
    background: var(--brand);
    color: #0C0A09;
  }
  :root[data-vibe="promo"] .field input,
  :root[data-vibe="promo"] .field select,
  :root[data-vibe="promo"] .field textarea,
  :root[data-vibe="promo"] .form-group > textarea {
    background: var(--bg);
    color: var(--ink);
  }
  :root[data-vibe="promo"] .field input::placeholder,
  :root[data-vibe="promo"] .field textarea::placeholder,
  :root[data-vibe="promo"] .form-group > textarea::placeholder { color: #6B655E; }
  :root[data-vibe="promo"] .field input:focus,
  :root[data-vibe="promo"] .field select:focus,
  :root[data-vibe="promo"] .field textarea:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(250, 204, 21, 0.18);
  }
  :root[data-vibe="promo"] .style-minimal { background: #1F1B17; border-color: #2A2624; }
  :root[data-vibe="promo"] .style-minimal .sp-stripe,
  :root[data-vibe="promo"] .style-minimal .sp-block-1 { background: #FAFAF9; }
  :root[data-vibe="promo"] .style-minimal .sp-block-2 { background: #78716C; }

  /* ----------------------------------------------------------
     TWEAK: CORNER GEOMETRY
     ---------------------------------------------------------- */
  :root[data-corner="sharp"] {
    --r-sm: 2px; --r-md: 4px; --r-lg: 6px; --r-xl: 8px;
    --shadow-sm: 0 0 0 1px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 1px 2px rgba(15, 23, 42, 0.06), 0 0 0 1px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 6px 18px -8px rgba(15, 23, 42, 0.14), 0 0 0 1px rgba(15, 23, 42, 0.05);
  }
  :root[data-corner="sharp"] .btn { font-weight: 400;}

  :root[data-corner="pill"] {
    --r-sm: 10px; --r-md: 18px; --r-lg: 26px; --r-xl: 32px;
  }
  :root[data-corner="pill"] .btn { border-radius: 999px; }

  /* ----------------------------------------------------------
     TWEAK: DENSITY
     ---------------------------------------------------------- */
  :root[data-density="compact"] .step { gap: 16px; }
  :root[data-density="compact"] .step-head h1 { font-size: 22px; }
  :root[data-density="compact"] .step-head .sub { font-size: 0.8rem; }
  :root[data-density="compact"] .type-card { padding: 14px; }
  :root[data-density="compact"] .type-icon { width: 40px; height: 40px; }
  :root[data-density="compact"] .type-title { font-size: 15.5px; }
  :root[data-density="compact"] .type-desc  { font-size: 12.5px; }
  :root[data-density="compact"] .form-group { background: #bceffd; padding: 14px; gap: 10px; }
  :root[data-density="compact"] .field input,
  :root[data-density="compact"] .field select,
  :root[data-density="compact"] .field textarea { padding: 12px 11px; font-size: 1rem; }
  :root[data-density="compact"] .btn { padding: 10px 14px; font-size: 1.1rem; }
  :root[data-density="compact"] .preview-frame { padding: 12px; }
  :root[data-density="compact"] .style-card { padding: 9px; }

  :root[data-density="spacious"] .step { gap: 30px; }
  :root[data-density="spacious"] .step-head h1 { font-size: 28px; letter-spacing: -0.025em; }
  :root[data-density="spacious"] .step-head .sub { font-size: 15px; margin-top: 12px; }
  :root[data-density="spacious"] .type-card { padding: 22px; gap: 18px; }
  :root[data-density="spacious"] .type-icon { width: 52px; height: 52px; border-radius: 14px; }
  :root[data-density="spacious"] .type-title { font-size: 17px; }
  :root[data-density="spacious"] .type-desc  { font-size: 13.5px; }
  :root[data-density="spacious"] .form-group { padding: 22px; gap: 16px; }
  :root[data-density="spacious"] .field input,
  :root[data-density="spacious"] .field select,
  :root[data-density="spacious"] .field textarea { padding: 13px 15px; font-size: 15px; }
  :root[data-density="spacious"] .btn { padding: 14px 22px; font-size: 15px; }
  :root[data-density="spacious"] .preview-frame { padding: 24px; }
  :root[data-density="spacious"] .style-card { padding: 14px; }

  /* ----------------------------------------------------------
     TWEAKS PANEL
     ---------------------------------------------------------- */
  .tweaks-panel {
    position: fixed;
    right: 12px;
    bottom: 70px;
    z-index: 9999;
    width: calc(100vw - 24px);
    max-width: 320px;
    max-height: calc(100vh - 90px);
    background: rgba(255, 255, 255, 0.94);
    -webkit-backdrop-filter: blur(24px) saturate(1.5);
            backdrop-filter: blur(24px) saturate(1.5);
    color: #0C0A09;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 16px;
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.6) inset,
      0 20px 50px -12px rgba(0, 0, 0, 0.28),
      0 4px 16px rgba(0, 0, 0, 0.06);
    font-family: var(--font);
    font-size: 13px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  .twk-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 10px 12px 16px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.07);
    cursor: move;
    user-select: none;
    touch-action: none;
  }
  .twk-head strong { font-size: 13.5px; font-weight: 700; color: #0C0A09; }
  .twk-close {
    width: 26px; height: 26px;
    border-radius: 7px;
    font-size: 17px;
    line-height: 1;
    color: rgba(12, 10, 9, 0.55);
    background: transparent;
    border: 0;
    cursor: pointer;
    font-family: inherit;
  }
  .twk-close:hover { background: rgba(0, 0, 0, 0.06); color: #0C0A09; }
  .twk-body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow-y: auto;
  }
  .tweaks-panel .twk-row {
    display: flex;
    flex-direction: column;
    gap: 7px;
    position: static;
  }
  .tweaks-panel .twk-row > label {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(12, 10, 9, 0.55);
    margin: 0;
  }
  .tweaks-panel .twk-row small {
    font-size: 11.5px;
    color: rgba(12, 10, 9, 0.5);
    line-height: 1.45;
  }
  .twk-seg {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3px;
    padding: 3px;
    background: rgba(15, 23, 42, 0.06);
    border-radius: 9px;
  }
  .twk-seg button {
    background: transparent;
    border: 0;
    padding: 7px 6px;
    font-size: 12px;
    font-weight: 600;
    color: rgba(12, 10, 9, 0.7);
    border-radius: 6px;
    cursor: pointer;
    font-family: inherit;
    transition: background 100ms, color 100ms, box-shadow 100ms;
  }
  .twk-seg button:hover {
    background: rgba(255, 255, 255, 0.7);
    color: #0C0A09;
  }
  .twk-seg button.is-on {
    background: #FFFFFF;
    color: #0C0A09;
    box-shadow:
      0 1px 2px rgba(0, 0, 0, 0.06),
      0 0 0 0.5px rgba(15, 23, 42, 0.08);
  }
  .twk-reset {
    margin-top: 2px;
    font-size: 12px;
    font-weight: 600;
    color: rgba(12, 10, 9, 0.6);
    padding: 8px 12px;
    border-radius: 8px;
    background: transparent;
    border: 1px solid rgba(15, 23, 42, 0.1);
    cursor: pointer;
    font-family: inherit;
    align-self: stretch;
  }
  .twk-reset:hover { background: rgba(0, 0, 0, 0.04); color: #0C0A09; }


/* ===== ANIMASI HACKER GENERATE ===== */
.loader-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(5px);
}
.loader-overlay.show { display: flex; }

.animasi-generate-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 90vw;
    max-width: 600px;
}

.loader {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    var(--accent-cyan) 0deg,
    var(--accent-pink) 90deg,
    var(--accent-purple) 180deg,
    var(--accent-yellow) 270deg,
    var(--accent-cyan) 360deg
  );
  -webkit-mask: radial-gradient(farthest-side, transparent 56%, #000 57%);
  mask: radial-gradient(farthest-side, transparent 56%, #000 57%);
  animation: spin 1s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.animasi-teks-container {
    width: 100%;
    height: 78px;
    overflow: hidden;
    position: relative;
    border-top: 1px solid var(--border-color);
    padding-top: 10px;
}

.animasi-teks-line {
    color: #D0D0D0;
    font-size: 11px;
    line-height: 26px;
    height: 26px;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    position: absolute;
    width: 100%;
    left: 0;
    transition: top 0.3s ease-out, opacity 0.3s ease-out;
}

.animasi-typing-cursor {
    display: inline-block;
    width: 8px;
    height: 12px;
    background: #00FF00;
    margin-left: 2px;
    animation: blink 1s steps(2) infinite;
    vertical-align: text-bottom;
}

@keyframes blink { 50% { opacity: 0; } }


}
/* ===== end @media (max-width: 768px) ===== */
