/* ================================================================
   RIMURO GENERATOR — interface inspirada no Rimuro Dashboard
   Tema: ink (escuro) + accent violet + glassmorphism
   ================================================================ */

/* Em URLs de site criado (/{ID}/{nome}) o gerador fica oculto até o
   JS trocar o documento pela página pública — sem flash do gerador. */
html.is-public body {
  visibility: hidden;
}

:root {
  color-scheme: dark;
  /* ink palette (RGB) */
  --ink-950: 7 7 13;
  --ink-900: 11 11 20;
  --ink-850: 16 16 28;
  --ink-800: 21 21 31;
  --ink-700: 30 30 43;
  --ink-600: 42 42 59;
  /* accent (violet) */
  --accent-300: 196 181 253;
  --accent-400: 167 139 250;
  --accent-500: 139 92 246;
  --accent-600: 124 58 237;
  --pop: 244 114 182;
  /* semantic */
  --accent: rgb(var(--accent-500));
  --bg: rgb(var(--ink-950));
  --surface: rgb(var(--ink-850));
  --surface-2: rgb(var(--ink-800));
  --surface-3: rgb(var(--ink-700));
  --border: rgb(255 255 255 / 0.08);
  --border-strong: rgb(255 255 255 / 0.14);
  --text: rgb(244 244 245);
  --text-strong: rgb(255 255 255);
  --text-muted: rgb(161 161 170); /* zinc-400 */
  --text-faint: rgb(113 113 122); /* zinc-500 */
  --shadow: rgb(0 0 0 / 0.6);
  --radius: 1rem;
  --font-sans: 'DM Sans', system-ui, -apple-system, sans-serif;
  --font-display: 'Space Grotesk', 'DM Sans', system-ui, sans-serif;
}

/* ============ TEMA CLARO ============ */
:root[data-theme="light"] {
  color-scheme: light;
  --ink-950: 248 249 252;
  --ink-900: 255 255 255;
  --ink-850: 255 255 255;
  --ink-800: 240 241 247;
  --ink-700: 226 228 238;
  --ink-600: 210 213 227;
  --accent-300: 124 58 237;
  --accent-400: 124 58 237;
  --accent-500: 139 92 246;
  --accent-600: 109 64 219;
  --pop: 217 70 156;
  --border: rgb(23 23 41 / 0.1);
  --border-strong: rgb(23 23 41 / 0.18);
  --text: rgb(24 24 33);
  --text-strong: rgb(10 10 16);
  --text-muted: rgb(82 84 100);
  --text-faint: rgb(118 120 138);
  --shadow: rgb(23 23 41 / 0.18);
}

/* ============ tema escuro explícito ============ */
:root[data-theme="dark"] {
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  background-image: radial-gradient(ellipse 60% 40% at 50% -10%, rgb(var(--accent-500) / 0.14), transparent 70%);
  background-attachment: fixed;
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.min-w-0 { min-width: 0; }
.text-muted { color: var(--text-muted); }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

svg { display: inline-block; }

/* ================================================================
   SIDEBAR
   ================================================================ */
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  width: 264px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--border);
  background: rgb(var(--ink-900) / 0.6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.sidebar__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px;
}

.logo {
  flex: 0 0 auto;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  filter: drop-shadow(0 6px 18px -6px rgb(var(--accent-500) / 0.7));
}
.logo svg { width: 40px; height: 40px; display: block; }

.sidebar__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--text-strong);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar__subtitle {
  font-size: 11px;
  color: var(--text-faint);
  margin-top: 2px;
}

.sidebar__nav {
  flex: 1;
  margin-top: 4px;
  padding: 0 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--text-muted);
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-item:hover { background: rgb(var(--ink-700) / 0.5); color: var(--text); }
.nav-item.is-active {
  background: rgb(var(--accent-500) / 0.14);
  color: var(--text-strong);
  box-shadow: inset 0 0 0 1px rgb(var(--accent-500) / 0.25);
}

.nav-item__icon {
  flex: 0 0 auto;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: rgb(var(--ink-700) / 0.5);
  color: rgb(var(--accent-400));
}
.nav-item__icon svg { width: 18px; height: 18px; }

.nav-item__label { display: block; font-size: 14px; font-weight: 500; }
.nav-item__hint { display: block; font-size: 11px; color: var(--text-faint); margin-top: 1px; }

.sidebar__footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
}

.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: rgb(110 231 183);
  background: rgb(16 185 129 / 0.1);
  border: 1px solid rgb(16 185 129 / 0.2);
  padding: 4px 10px;
  border-radius: 999px;
}
.badge-status__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 8px #34d399;
}

.sidebar__version { font-size: 11px; color: var(--text-faint); margin-top: 10px; }

/* ================================================================
   MAIN
   ================================================================ */
.main {
  margin-left: 264px;
  padding: 0 28px 48px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 0 22px;
}
.topbar__title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-strong);
}
.topbar__subtitle { font-size: 14px; color: var(--text-muted); margin-top: 4px; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 500;
  color: rgb(var(--accent-300));
  background: rgb(var(--accent-500) / 0.12);
  border: 1px solid rgb(var(--accent-500) / 0.25);
  padding: 7px 14px;
  border-radius: 999px;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgb(var(--ink-800) / 0.6);
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.theme-toggle:hover {
  border-color: rgb(var(--accent-500) / 0.5);
  color: var(--text-strong);
  background: rgb(var(--accent-500) / 0.1);
}
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
:root[data-theme="light"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: none; }

/* ---------- dock de temas (canto inferior direito) ---------- */
.theme-dock {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 8px;
  background: rgb(var(--ink-850) / 0.8);
  border: 1px solid var(--border);
  border-radius: 16px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 18px 40px -14px rgb(0 0 0 / 0.6);
}

/* ---------- seletor de tema do gerador ---------- */
.gen-theme-pop {
  position: fixed;
  right: 20px;
  bottom: 92px;
  z-index: 120;
  min-width: 240px;
  padding: 16px;
  background: rgb(var(--ink-850));
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 24px 60px -18px rgb(0 0 0 / 0.8);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}
.gen-theme-pop.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.gen-theme-pop__title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  margin-bottom: 12px;
}
.gen-theme-pop__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.gen-theme-swatch {
  width: 30px;
  height: 30px;
  margin: 0 auto;
  border-radius: 50%;
  background: var(--sw);
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
  transition: transform 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
}
.gen-theme-swatch:hover { transform: scale(1.15); }
.gen-theme-swatch.is-active {
  border-color: #fff;
  box-shadow: 0 0 0 2px var(--sw), 0 4px 12px rgb(0 0 0 / 0.5);
}

/* ================================================================
   CARDS / GRID
   ================================================================ */
.grid-gen {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}

.card {
  background: rgb(var(--ink-850) / 0.8);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 10px 30px -15px var(--shadow);
}

.card__head { margin-bottom: 18px; }
.card__title { font-family: var(--font-display); font-size: 17px; font-weight: 600; color: var(--text-strong); }
.card__desc { font-size: 13px; color: var(--text-muted); margin-top: 3px; }

/* ================================================================
   FORM
   ================================================================ */
#gen-form { display: flex; flex-direction: column; gap: 18px; }

/* Upload zone */
.upload-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 190px;
  padding: 24px;
  text-align: center;
  cursor: pointer;
  background: rgb(var(--ink-800) / 0.5);
  border: 2px dashed var(--border-strong);
  border-radius: 14px;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.upload-zone:hover, .upload-zone.dragover {
  border-color: rgb(var(--accent-500) / 0.7);
  background: rgb(var(--accent-500) / 0.06);
}
.upload-zone.has-file {
  border-style: solid;
  border-color: rgb(var(--accent-500) / 0.8);
  background: rgb(var(--accent-500) / 0.08);
}

.upload-zone__icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: rgb(var(--accent-500) / 0.15);
  color: rgb(var(--accent-400));
  transition: transform 0.15s ease;
}
.upload-zone__icon svg { width: 26px; height: 26px; }
.upload-zone:hover .upload-zone__icon, .upload-zone.dragover .upload-zone__icon { transform: translateY(-2px); }

.upload-zone strong { font-size: 15px; font-weight: 600; color: var(--text); }
.upload-zone .text-muted { font-size: 13px; }

/* Field */
.field { display: flex; flex-direction: column; gap: 7px; }
.field__label { font-size: 13px; font-weight: 600; color: var(--text); }
.field__hint { font-size: 12px; color: var(--text-faint); }

.link-input {
  display: flex;
  align-items: center;
  gap: 0;
  background: rgb(var(--ink-800));
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.link-input:focus-within {
  border-color: rgb(var(--accent-500) / 0.7);
  box-shadow: 0 0 0 3px rgb(var(--accent-500) / 0.2);
}
.link-input__prefix {
  flex: 0 0 auto;
  font-size: 14px;
  color: var(--text-faint);
  padding: 12px 0 12px 14px;
  white-space: nowrap;
}
.link-input__field {
  flex: 1 1 auto;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: none;
  padding: 12px 14px 12px 8px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
}
.link-input__field::placeholder { color: var(--text-faint); }

/* Button */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  padding: 13px 18px;
  border: 0;
  border-radius: 12px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary {
  background: linear-gradient(135deg, rgb(var(--accent-500)), rgb(var(--accent-600)));
  color: #fff;
  box-shadow: 0 8px 22px -8px rgb(var(--accent-500) / 0.8);
}
.btn--primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px -8px rgb(var(--accent-500) / 0.9);
}
.btn--primary:active:not(:disabled) { transform: translateY(0) scale(0.99); }
.btn--primary:disabled { opacity: 0.4; cursor: not-allowed; }

/* ================================================================
   PREVIEW WINDOW
   ================================================================ */
.preview-window {
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: rgb(var(--ink-900) / 0.6);
}
.preview-window__bar {
  display: flex;
  gap: 7px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: rgb(var(--ink-700) / 0.3);
}
.preview-window__bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.preview-window__bar i:nth-child(2) { background: #febc2e; }
.preview-window__bar i:nth-child(3) { background: #28c840; }

.preview-window__body {
  padding: 36px 24px;
  text-align: center;
}

.preview-icon {
  width: 72px; height: 72px;
  margin: 0 auto;
  display: grid; place-items: center;
  border-radius: 20px;
  background: linear-gradient(160deg, rgb(var(--accent-500) / 0.2), rgb(var(--pop) / 0.12));
  border: 1px solid rgb(var(--accent-500) / 0.3);
  color: rgb(var(--accent-300));
}
.preview-icon svg { width: 36px; height: 36px; }

.preview-window__status {
  margin-top: 18px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgb(var(--accent-400));
}
.preview-window__title {
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--text-strong);
}
.preview-window__btn {
  margin-top: 20px;
  padding: 12px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgb(var(--accent-500)), rgb(var(--accent-600)));
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 8px 22px -8px rgb(var(--accent-500) / 0.8);
}
.preview-window__url {
  margin-top: 14px;
  font-size: 12px;
  color: var(--text-faint);
}

/* ================================================================
   PAGES (navegação)
   ================================================================ */
.page { display: none; }
.page.is-active { display: block; animation: fadeUp 0.3s ease both; }

.empty-state { text-align: center; padding: 40px 20px; }
.empty-state__icon {
  width: 56px; height: 56px;
  margin: 0 auto 14px;
  display: grid; place-items: center;
  border-radius: 16px;
  background: rgb(var(--ink-700) / 0.5);
  color: var(--text-faint);
}
.empty-state__icon svg { width: 26px; height: 26px; }
.empty-state__title { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 4px; }

.grid-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card--step { position: relative; padding: 26px 22px; }
.card--step .card__title { margin-bottom: 6px; }
.step-num {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 11px;
  background: linear-gradient(135deg, rgb(var(--accent-500)), rgb(var(--pop)));
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: 14px;
  box-shadow: 0 6px 16px -6px rgb(var(--accent-500) / 0.7);
}

/* ---------- my links list ---------- */
.link-list { display: flex; flex-direction: column; gap: 10px; }

.link-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: rgb(var(--ink-800) / 0.6);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.link-row:hover { border-color: rgb(var(--accent-500) / 0.4); background: rgb(var(--ink-800)); }

.link-row__icon {
  flex: 0 0 auto;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: rgb(var(--accent-500) / 0.14);
  color: rgb(var(--accent-400));
}
.link-row__icon svg { width: 18px; height: 18px; }

.link-row__body { flex: 1 1 auto; min-width: 0; }
.link-row__name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.link-row__url {
  font-size: 12px;
  color: var(--text-faint);
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.link-row__copy {
  flex: 0 0 auto;
  background: rgb(var(--ink-700));
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 9px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.link-row__copy:hover { background: rgb(var(--accent-500) / 0.4); border-color: rgb(var(--accent-500) / 0.5); }

.link-row__enter {
  flex: 0 0 auto;
  background: rgb(var(--accent-500));
  border: 1px solid rgb(var(--accent-500));
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 9px;
  cursor: pointer;
  transition: background 0.15s ease, filter 0.15s ease;
}
.link-row__enter:hover { background: rgb(var(--accent-400)); filter: brightness(1.06); }

.link-row__edit {
  flex: 0 0 auto;
  width: 34px; height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--text-faint);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.link-row__edit svg { width: 16px; height: 16px; }
.link-row__edit:hover {
  background: rgb(var(--accent-500) / 0.14);
  color: rgb(var(--accent-400));
  border-color: rgb(var(--accent-500) / 0.4);
}

.link-row__delete {
  flex: 0 0 auto;
  width: 34px; height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--text-faint);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.link-row__delete svg { width: 16px; height: 16px; }
.link-row__delete:hover {
  background: rgb(239 68 68 / 0.14);
  color: rgb(248 113 113);
  border-color: rgb(239 68 68 / 0.4);
}

.limit-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  margin-bottom: 14px;
  background: rgb(var(--accent-500) / 0.08);
  border: 1px solid rgb(var(--accent-500) / 0.22);
  border-radius: 12px;
  font-size: 12.5px;
  color: var(--text-muted);
}
.limit-bar__fill {
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: rgb(var(--ink-700));
  overflow: hidden;
}
.limit-bar__fill i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgb(var(--accent-500)), rgb(var(--pop)));
  transition: width 0.3s ease;
}
.limit-bar__count { font-weight: 600; color: var(--text-strong); white-space: nowrap; }

/* ================================================================
   GENERATED PAGE (clone madium.net)
   Paleta: Dark #0D0D0D / Surface #161616 / Gold #F5A623
   ================================================================ */
.dl-page {
  --gold:        #F5A623;
  --gold-dim:    #C4851A;
  --gold-glow:   rgba(245,166,35,0.18);
  --gold-glow2:  rgba(245,166,35,0.08);
  --bg:          #0D0D0D;
  --surface:     #161616;
  --surface2:    #1E1E1E;
  --surface3:    #262626;
  --border:      rgba(255,255,255,0.07);
  --border-gold: rgba(245,166,35,0.3);
  --text:        #F0F0F0;
  --text-muted:  #8A8A8A;
  --text-sub:    #5A5A5A;
  --green:       #4ADE80;
  --radius:      12px;
  --radius-lg:   20px;
  --transition:  0.25s cubic-bezier(.4,0,.2,1);

  position: fixed;
  inset: 0;
  z-index: 50;
  overflow-y: auto;
  scroll-behavior: smooth;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  animation: fadeUp 0.35s ease both;
}

.dl-page ::-webkit-scrollbar { width: 6px; }
.dl-page ::-webkit-scrollbar-track { background: var(--bg); }
.dl-page ::-webkit-scrollbar-thumb { background: var(--surface3); border-radius: 99px; }
.dl-page ::-webkit-scrollbar-thumb:hover { background: var(--gold-dim); }
.dl-page ::selection { background: var(--gold); color: var(--bg); }

.dl-page h1, .dl-page h2, .dl-page h3, .dl-page h4, .dl-page h5, .dl-page h6 {
  font-weight: 700; line-height: 1.25; letter-spacing: -0.02em; color: var(--text);
}
.dl-page h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.dl-page h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.dl-page h3 { font-size: 1.25rem; }
.dl-page p { color: var(--text-muted); }
.dl-page a { text-decoration: none; color: inherit; }
.dl-page img { max-width: 100%; height: auto; display: block; }

.dl-container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.dl-section    { padding: 80px 0; }
.dl-section--sm { padding: 52px 0; }

.dl-gold { color: var(--gold); }
.dl-text-muted { color: var(--text-muted); }
.dl-text-green { color: var(--green); }
.dl-flex { display: flex; align-items: center; gap: 8px; }

/* ---- NAVIGATION ---- */
.dl-nav {
  position: sticky; top: 0; z-index: 999;
  padding: 0 24px;
  height: 64px;
  display: flex; align-items: center;
  background: rgba(13,13,13,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.dl-nav__inner {
  max-width: 1100px; margin: 0 auto; width: 100%;
  display: flex; align-items: center; justify-content: space-between;
}
.dl-nav__brand {
  font-size: 1.4rem; font-weight: 800; letter-spacing: -0.03em;
  color: var(--gold);
  display: flex; align-items: center; gap: 10px;
}
.dl-nav__logo {
  width: 32px; height: 32px;
  background: var(--gold);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 0.85rem; color: var(--bg);
}
.dl-nav__links {
  display: flex; align-items: center; gap: 6px;
  list-style: none; margin: 0; padding: 0;
}
.dl-nav__links a {
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.9rem; font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition), background var(--transition);
}
.dl-nav__links a:hover,
.dl-nav__links a.active { color: var(--text); background: var(--surface2); }
.dl-nav__links a.active { color: var(--gold); }
.dl-nav__cta {
  background: var(--gold);
  color: var(--bg) !important;
  font-weight: 600 !important;
  padding: 8px 18px !important;
}
.dl-nav__cta:hover { background: var(--gold-dim) !important; color: var(--bg) !important; }
.dl-nav__toggle { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.dl-nav__toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--text); margin: 5px 0;
  transition: transform var(--transition), opacity var(--transition);
  border-radius: 2px;
}

/* ---- HERO ---- */
.dl-hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding-top: 64px;
  position: relative;
  overflow: hidden;
}
.dl-hero > .dl-container { width: 100%; }
.dl-hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% -10%, rgba(245,166,35,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 80% 80%, rgba(245,166,35,0.05) 0%, transparent 60%);
  pointer-events: none;
}
.dl-hero__grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 60px; align-items: center;
  padding: 60px 0;
}
.dl-hero__mockup-col { min-width: 0; }
.dl-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gold-glow2);
  border: 1px solid var(--border-gold);
  padding: 5px 14px; border-radius: 99px;
  font-size: 0.8rem; font-weight: 600;
  color: var(--gold); letter-spacing: 0.04em;
  margin-bottom: 20px;
  text-transform: uppercase;
}
.dl-badge::before {
  content: ''; width: 6px; height: 6px;
  background: var(--gold); border-radius: 50%;
  animation: pulse-dot 1.8s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}
.dl-title { margin-bottom: 18px; }
.dl-title span { color: var(--gold); }
.dl-subtitle {
  font-size: 1.1rem; color: var(--text-muted);
  margin-bottom: 36px; max-width: 480px;
}
.dl-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.dl-stats {
  display: flex; gap: 28px; margin-top: 40px;
  padding-top: 32px; border-top: 1px solid var(--border);
}
.dl-stat__val {
  font-size: 1.6rem; font-weight: 800;
  color: var(--gold); letter-spacing: -0.03em;
}
.dl-stat__label { font-size: 0.8rem; color: var(--text-sub); font-weight: 500; margin-top: 2px; }

.dl-mockup {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.04);
}
.dl-mockup__bar {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px;
  background: var(--surface2);
  border-bottom: 1px solid var(--border);
}
.dl-mockup__dot { width: 10px; height: 10px; border-radius: 50%; }
.dl-mockup__body {
  padding: 64px 40px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.dl-mockup__icon {
  width: 84px; height: 84px;
  border-radius: 22px;
  background: var(--gold-glow2);
  border: 1px solid var(--border-gold);
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 8px;
}
.dl-mockup__icon svg { width: 44px; height: 44px; }
.dl-mockup__img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 22px;
  border: 1px solid var(--border-gold);
  box-shadow: 0 10px 26px -8px var(--gold-glow);
  margin-bottom: 8px;
}
.dl-mockup__name { font-size: 1.05rem; font-weight: 700; color: var(--text); }
.dl-mockup__size { font-size: 0.85rem; color: var(--text-sub); }

/* ---- BUTTONS ---- */
.dl-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 26px;
  border-radius: 10px;
  font-size: 0.95rem; font-weight: 600;
  cursor: pointer; border: none;
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
}
.dl-btn--primary {
  background: var(--gold);
  color: var(--bg);
}
.dl-btn--primary:hover {
  background: #FFB83A;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--gold-glow), 0 0 0 3px rgba(245,166,35,0.15);
}
.dl-btn--primary:active { transform: translateY(0); }
.dl-btn--lg { padding: 15px 34px; font-size: 1.05rem; border-radius: 12px; }
.dl-btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.dl-meta {
  font-size: 0.78rem; color: var(--text-sub);
  display: flex; align-items: center; gap: 8px;
}
.dl-meta svg { width: 14px; height: 14px; opacity: 0.5; }

/* ---- SECTION HEADERS ---- */
.dl-section__header { margin-bottom: 52px; }
.dl-section__header--center { text-align: center; }
.dl-eyebrow {
  display: inline-block;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 10px;
}
.dl-section__title { margin-bottom: 14px; }
.dl-section__title span { color: var(--gold); }
.dl-section__desc { color: var(--text-muted); max-width: 560px; }
.dl-section__header--center .dl-section__desc { margin: 0 auto; }

/* ---- FEATURES ---- */
.dl-features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.dl-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  position: relative; overflow: hidden;
}
.dl-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.3), 0 0 0 1px rgba(245,166,35,0.12);
}
.dl-card__icon {
  width: 48px; height: 48px;
  background: var(--gold-glow2);
  border: 1px solid var(--border-gold);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  font-size: 1.4rem;
}
.dl-card__title { font-size: 1.05rem; margin-bottom: 8px; }
.dl-card__desc { font-size: 0.9rem; color: var(--text-muted); }
.dl-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-glow), transparent);
  opacity: 0; transition: opacity var(--transition);
}
.dl-card:hover::before { opacity: 1; }

/* ---- INSTALL STEPS ---- */
.dl-steps { display: flex; flex-direction: column; gap: 0; }
.dl-step { display: flex; gap: 20px; position: relative; padding-bottom: 32px; }
.dl-step:last-child { padding-bottom: 0; }
.dl-step__line { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; }
.dl-step__num {
  width: 36px; height: 36px;
  background: var(--gold);
  color: var(--bg);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.85rem; flex-shrink: 0;
  box-shadow: 0 0 0 4px var(--gold-glow2);
}
.dl-step__connector {
  flex: 1; width: 1px;
  background: linear-gradient(180deg, var(--gold-dim) 0%, transparent 100%);
  margin-top: 6px; opacity: 0.3;
}
.dl-step:last-child .dl-step__connector { display: none; }
.dl-step__body { padding-top: 4px; padding-bottom: 4px; }
.dl-step__title { font-size: 1.05rem; margin-bottom: 6px; }
.dl-step__desc { font-size: 0.9rem; color: var(--text-muted); }

/* ---- SPECS TABLE ---- */
.dl-table-wrap {
  max-width: 600px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.dl-specs-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.dl-specs-table th, .dl-specs-table td {
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.dl-specs-table th {
  font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-sub);
  background: var(--surface2);
}
.dl-specs-table tr:last-child td { border-bottom: none; }
.dl-specs-table td:first-child { color: var(--text-muted); font-weight: 500; }
.dl-specs-table td:last-child { color: var(--text); }
.dl-specs-table tr:hover td { background: var(--surface2); }

/* ---- BENCHMARKS ---- */
.dl-bench-badges { display: flex; flex-direction: column; gap: 12px; margin-top: 32px; }
.dl-badge-chip {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em;
  text-transform: uppercase; padding: 3px 10px;
  border-radius: 5px;
}
.dl-badge-chip--gold { background: var(--gold-glow); color: var(--gold); border: 1px solid rgba(245,166,35,0.25); }
.dl-badge-chip--green { background: rgba(74,222,128,0.1); color: var(--green); border: 1px solid rgba(74,222,128,0.2); }
.dl-bench-items { display: flex; flex-direction: column; gap: 20px; }
.dl-bench-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.dl-bench-label { font-size: 0.9rem; font-weight: 600; color: var(--text); }
.dl-bench-val { font-size: 0.9rem; font-weight: 700; color: var(--gold); }
.dl-bench-track {
  height: 8px; background: var(--surface3);
  border-radius: 99px; overflow: hidden;
}
.dl-bench-fill {
  height: 100%; border-radius: 99px;
  background: linear-gradient(90deg, var(--gold-dim), var(--gold));
}
.dl-bench-fill--green { background: linear-gradient(90deg, #22c55e, #4ade80); }

/* ---- NOTICE ---- */
.dl-notice {
  display: flex; gap: 14px; padding: 18px 20px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  font-size: 0.9rem;
  margin-top: 24px;
}
.dl-notice__icon { flex-shrink: 0; color: var(--gold); margin-top: 2px; }
.dl-notice p { color: var(--text-muted); margin: 0; }

/* ---- FAQ ---- */
.dl-faq__list { display: flex; flex-direction: column; gap: 8px; max-width: 780px; margin: 0 auto; }
.dl-faq__item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition);
}
.dl-faq__item.open { border-color: var(--border-gold); }
.dl-faq__btn {
  width: 100%; text-align: left; background: none; border: none;
  padding: 20px 24px;
  display: flex; justify-content: space-between; align-items: center;
  cursor: pointer; gap: 16px;
  font-family: inherit;
}
.dl-faq__q { font-size: 0.95rem; font-weight: 600; color: var(--text); }
.dl-faq__icon {
  width: 24px; height: 24px; flex-shrink: 0;
  border: 1px solid var(--border);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
  color: var(--text-muted);
}
.dl-faq__item.open .dl-faq__icon {
  background: var(--gold); border-color: var(--gold); color: var(--bg);
  transform: rotate(45deg);
}
.dl-faq__body { display: none; padding: 0 24px 20px; font-size: 0.9rem; color: var(--text-muted); }
.dl-faq__item.open .dl-faq__body { display: block; }

/* ---- CHANGELOG ---- */
.dl-changelog { display: flex; flex-direction: column; gap: 28px; max-width: 780px; margin: 0 auto; text-align: left; }
.dl-entry {
  background: var(--surface);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius);
  overflow: hidden;
}
.dl-entry__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px;
  background: var(--surface2);
  border-bottom: 1px solid var(--border);
  gap: 12px; flex-wrap: wrap;
}
.dl-entry__version { font-size: 1rem; font-weight: 700; color: var(--gold); }
.dl-entry__date { font-size: 0.8rem; color: var(--text-sub); }
.dl-entry__body { padding: 20px 24px; }
.dl-entry__section { margin-bottom: 16px; }
.dl-entry__section:last-child { margin-bottom: 0; }
.dl-entry__section-title {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-sub);
  margin-bottom: 10px;
}
.dl-entry__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.dl-entry__list li {
  display: flex; gap: 10px;
  font-size: 0.875rem; color: var(--text-muted);
}
.dl-entry__list li::before {
  content: '•'; color: var(--gold); flex-shrink: 0; font-weight: 700;
}

/* ---- QUICK FIXES ---- */
.dl-fixes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
}
.dl-fix {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.dl-fix h3 { font-size: 1rem; margin-bottom: 8px; }
.dl-fix p { font-size: 0.9rem; }

/* ---- DOWNLOAD CTA ---- */
.dl-cta-box {
  background: var(--surface);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 56px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.dl-cta-box::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 80% at 50% 50%, var(--gold-glow2) 0%, transparent 70%);
  pointer-events: none;
}
.dl-cta-box > * { position: relative; }
.dl-cta-box .dl-section__title { margin-bottom: 14px; }
.dl-cta-box > .dl-text-muted { margin-bottom: 32px; }
.dl-cta-actions {
  display: flex; flex-direction: column; gap: 14px;
  justify-content: center; align-items: center;
  position: relative;
}
.dl-copy {
  width: 100%;
  max-width: 460px;
  display: flex; align-items: center; gap: 8px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 6px;
}
.dl-copy code {
  flex: 1; min-width: 0;
  font-size: 0.78rem; color: var(--text-sub);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  text-align: left; padding-left: 10px;
}
.dl-copy button {
  flex: 0 0 auto;
  background: var(--gold);
  border: none;
  color: var(--bg);
  font-size: 0.78rem; font-weight: 700;
  padding: 9px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: background var(--transition);
}
.dl-copy button:hover { background: #FFB83A; }

/* ---- FOOTER ---- */
.dl-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 52px 0 28px;
}
.dl-footer__inner {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
}
.dl-footer__brand-name {
  font-size: 1.3rem; font-weight: 800; color: var(--gold);
  letter-spacing: -0.03em; margin-bottom: 12px;
}
.dl-footer__brand-desc { font-size: 0.875rem; color: var(--text-sub); max-width: 280px; }
.dl-footer__col-title {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text-sub);
  margin-bottom: 16px;
}
.dl-footer__links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.dl-footer__links a { font-size: 0.875rem; color: var(--text-muted); transition: color var(--transition); }
.dl-footer__links a:hover { color: var(--gold); }
.dl-footer__bottom {
  margin-top: 48px; padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
}
.dl-footer__copy { font-size: 0.8rem; color: var(--text-sub); }
.dl-footer__copy a { color: var(--text-muted); transition: color var(--transition); }
.dl-footer__copy a:hover { color: var(--gold); }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .dl-hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .dl-hero__mockup-col { order: -1; }
  .dl-footer__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .dl-container { padding: 0 16px; }
  .dl-section { padding: 56px 0; }
  .dl-nav__links {
    display: none; flex-direction: column; position: fixed; top: 64px; left: 0; right: 0; bottom: 0;
    background: var(--bg); padding: 24px; gap: 4px; z-index: 998;
  }
  .dl-nav__links.open { display: flex; }
  .dl-nav__links a { font-size: 1.1rem; padding: 12px 16px; }
  .dl-nav__toggle { display: block; }
  .dl-footer__inner { grid-template-columns: 1fr; gap: 32px; }
  .dl-stats { flex-wrap: wrap; gap: 20px; }
  .dl-footer__bottom { flex-direction: column; text-align: center; }
  .dl-hero__grid { grid-template-columns: 1fr; }
}

/* ================================================================
   CUSTOMIZER (editar site criado)
   ================================================================ */
.customizer {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgb(5 5 9 / 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.customizer__panel {
  width: 100%;
  max-width: 560px;
  max-height: 88vh;
  overflow-y: auto;
  background: rgb(var(--ink-850));
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 30px 80px -20px rgb(0 0 0 / 0.8);
  animation: fadeUp 0.3s ease both;
}
.customizer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
}
.customizer__head h3 { font-family: var(--font-display); font-size: 17px; font-weight: 600; color: var(--text-strong); }
.customizer__close {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  background: rgb(var(--ink-700));
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--text-muted);
  font-size: 18px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.customizer__close:hover { background: rgb(239 68 68 / 0.15); color: rgb(248 113 113); }
.customizer__grid { padding: 22px; display: flex; flex-direction: column; gap: 18px; }
.customizer__label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  margin-bottom: 10px;
}
.customizer__field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.customizer__field label { font-size: 13px; font-weight: 500; color: var(--text-muted); }
.customizer__field input[type="text"],
.customizer__field textarea {
  width: 100%;
  background: rgb(var(--ink-800));
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  outline: none;
  resize: vertical;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.customizer__field input[type="text"]:focus,
.customizer__field textarea:focus {
  border-color: rgb(var(--accent-500) / 0.7);
  box-shadow: 0 0 0 3px rgb(var(--accent-500) / 0.2);
}
.customizer__color { display: flex; align-items: center; gap: 8px; }
.customizer__color input[type="color"] {
  width: 40px; height: 40px;
  padding: 3px;
  background: rgb(var(--ink-800));
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
}
.customizer__color input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
.customizer__color input[type="color"]::-webkit-color-swatch { border: 0; border-radius: 7px; }
.customizer__color input[type="text"] {
  flex: 1;
  background: rgb(var(--ink-800));
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 9px 12px;
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  outline: none;
}
.customizer__themes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.customizer__theme {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 6px 10px;
  background: rgb(var(--ink-800));
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 12px;
  line-height: 1.2;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.customizer__theme:hover { border-color: var(--border-strong); color: var(--text); }
.customizer__theme.is-selected {
  border-color: var(--accent-500);
  background: rgb(var(--accent-500) / 0.12);
  color: var(--text-strong);
  box-shadow: 0 0 0 3px rgb(var(--accent-500) / 0.18);
}
.customizer__swatch {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.15), 0 2px 6px rgb(0 0 0 / 0.4);
}
.customizer__theme-label { text-align: center; }

/* ---------- foto do arquivo ---------- */
.customizer__image {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}
.customizer__image-btn {
  flex: 0 0 auto;
  width: 92px;
  height: 92px;
  padding: 0;
  overflow: hidden;
  background: rgb(var(--ink-800));
  border: 1px dashed var(--border-strong);
  border-radius: 14px;
  color: var(--text-muted);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.customizer__image-btn:hover {
  border-color: rgb(var(--accent-500) / 0.6);
  background: rgb(var(--accent-500) / 0.08);
}
.customizer__image-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.customizer__image-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  line-height: 1.3;
  text-align: center;
  padding: 6px;
}
.customizer__image-placeholder svg { width: 22px; height: 22px; }
.customizer__image-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  background: rgb(0 0 0 / 0.65);
  border: 1px solid var(--border);
  border-radius: 7px;
  color: #fff;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease;
}
.customizer__image-remove:hover { background: rgb(239 68 68 / 0.85); }
.customizer__actions {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}
.customizer__actions .btn--primary { flex: 1; width: auto; }
.btn--ghost-custom {
  flex: 1;
  width: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgb(var(--ink-700));
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.btn--ghost-custom:hover { border-color: rgb(var(--accent-500) / 0.5); background: rgb(var(--accent-500) / 0.1); }
.btn--ghost-custom:disabled { opacity: 0.5; cursor: not-allowed; }

/* ================================================================
   TOAST
   ================================================================ */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: min(92vw, 420px);
  padding: 12px 18px;
  border-radius: 14px;
  background: rgb(var(--ink-800) / 0.95);
  border: 1px solid rgb(var(--accent-500) / 0.4);
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 20px 50px -12px var(--shadow);
  backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ================================================================
   ANIMATIONS
   ================================================================ */
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1024px) {
  .grid-gen, .grid-steps { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .sidebar {
    position: fixed;
    inset: auto 0 0 0;
    width: 100%;
    height: auto;
    flex-direction: row;
    align-items: center;
    border-right: 0;
    border-top: 1px solid var(--border);
    background: rgb(var(--ink-900) / 0.92);
    padding: 8px 12px;
  }
  .sidebar__brand { display: none; }
  .sidebar__nav { flex-direction: row; padding: 0; gap: 4px; }
  .nav-item { flex: 1; justify-content: center; padding: 8px; }
  .nav-item__hint { display: none; }
  .nav-item__icon { width: 32px; height: 32px; }
  .sidebar__footer { display: none; }

  .main { margin-left: 0; padding: 0 16px 90px; }
  .topbar { flex-direction: column; align-items: flex-start; padding: 20px 0 16px; }
}
