@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Fira+Code:wght@400;500;700&display=swap');

/* ═══════════════════════════════════════
   LIZIER · SVG→AM · Minimalist Teal
   ─────────────────────────────────────
   Primary:  #00C9A7  (teal)
   Surface:  #FFFFFF
   Surface2: #F7FAFA
   Border:   #E2ECEB
   Text:     #111827
   Muted:    #6B7280
   ═══════════════════════════════════════ */
:root {
  --primary:    #00C9A7;
  --primary-dk: #00a889;
  --primary-lt: rgba(0,201,167,.08);
  --teal:       #00C9A7;
  --teal-dk:    #00a889;
  --teal-glow:  0 4px 20px rgba(0,201,167,.25);
  --teal-glow-lg: 0 8px 32px rgba(0,201,167,.30);
  --yellow:     #F7B731;
  --red:        #FA3E3E;
  --green:      #31C48D;
  --surface:    #FFFFFF;
  --surface-2:  #F7FAFA;
  --surface-3:  #EEF6F5;
  --border:     #D4E9E6;
  --border-2:   #EEF6F5;
  --text:       #111827;
  --text-2:     #1F2937;
  --muted:      #6B7280;
  --muted-2:    #9CA3AF;
  --radius-sm:  6px;
  --radius:     10px;
  --radius-lg:  16px;
  --radius-xl:  20px;
  --shadow-sm:  0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow:     0 4px 16px rgba(0,0,0,.06), 0 2px 4px rgba(0,0,0,.03);
  --shadow-lg:  0 8px 28px rgba(0,0,0,.08), 0 4px 8px rgba(0,0,0,.03);
  --shadow-xl:  0 16px 48px rgba(0,0,0,.10), 0 8px 16px rgba(0,0,0,.04);
  --transition: .18s cubic-bezier(.25,.46,.45,.94);
  --font:       'Plus Jakarta Sans', system-ui, sans-serif;
  --font-code:  'Fira Code', 'JetBrains Mono', monospace;
}

*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0 }
html { font-size: 15px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth }
body {
  font-family: var(--font);
  background: var(--surface-2);
  color: var(--text-2);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ══ TOPBAR ══════════════════════════════ */
.topbar {
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-2);
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 1px 0 var(--border-2);
}
.logo-wrap { display: flex; align-items: center; gap: 8px; text-decoration: none }
.logo-mark { height: 32px; flex-shrink: 0; display: flex; align-items: center }

.topbar-nav { margin-left: auto; display: flex; align-items: center; gap: 2px }
.nav-a {
  font-size: 13px; font-weight: 600; color: var(--muted);
  text-decoration: none; padding: 6px 14px; border-radius: 100px;
  transition: all var(--transition); white-space: nowrap;
}
.nav-a:hover {
  color: var(--primary); background: var(--primary-lt);
}
.nav-donate {
  background: var(--primary); color: #fff;
  border-radius: 100px; padding: 7px 16px;
  font-size: 13px; font-weight: 700; text-decoration: none;
  transition: all var(--transition); white-space: nowrap;
  box-shadow: var(--teal-glow);
}
.nav-donate:hover {
  background: var(--teal-dk);
  transform: translateY(-1px);
  box-shadow: var(--teal-glow-lg);
}

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; background: none; border: none; margin-left: auto }
.hamburger span { width: 20px; height: 2px; background: var(--text-2); border-radius: 2px; transition: var(--transition) }

@media(max-width:640px) {
  .hamburger { display: flex }
  .topbar { padding: 0 16px }
  .topbar-nav {
    position: fixed; top: 60px; left: 0; right: 0;
    background: var(--surface); flex-direction: column; align-items: stretch;
    padding: 12px 16px 20px; gap: 4px;
    border-bottom: 1px solid var(--border-2); display: none; z-index: 199;
    box-shadow: var(--shadow-lg);
  }
  .topbar-nav.open { display: flex }
  .nav-a { padding: 12px 16px; border-radius: var(--radius); font-size: 14px }
  .nav-donate { text-align: center; padding: 12px 16px; font-size: 14px; border-radius: var(--radius); margin-top: 4px }
}

/* ══ HERO — White Minimalist ════════════ */
.hero {
  background: var(--surface);
  padding: 64px 24px 56px;
  text-align: left;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border-2);
}

/* Subtle teal radial glow behind hero content */
.hero::before {
  content: '';
  position: absolute;
  top: -40%; left: 50%;
  transform: translateX(-50%);
  width: 700px; height: 500px;
  background: radial-gradient(ellipse at center, rgba(0,201,167,.09) 0%, transparent 70%);
  pointer-events: none;
}
/* Bottom fade */
.hero::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--primary); background: var(--primary-lt);
  border: 1px solid rgba(0,201,167,.25);
  padding: 4px 14px; border-radius: 100px; margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(24px, 7.5vw, 52px); font-weight: 800;
  color: var(--text); line-height: 1.15; margin-bottom: 18px;
  letter-spacing: -1px;
  word-break: break-word;
}
.hero h1 .at { color: var(--primary) }
.hero h1 .ay { color: var(--yellow) }

.hero-sub {
  font-size: 14px; color: var(--muted);
  margin-bottom: 36px; line-height: 1.7;
  max-width: 460px;
}
.hero-sub strong { color: var(--text-2); font-weight: 600 }

.hero-btns { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; flex-wrap: wrap; position: relative }

/* Primary CTA — teal with glow */
.hero-upload-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--primary); color: #fff;
  font-size: 14px; font-weight: 700;
  border: none; padding: 13px 26px; border-radius: 100px;
  box-shadow: var(--teal-glow);
  cursor: pointer; transition: all var(--transition);
  letter-spacing: .2px; font-family: var(--font);
}
.hero-upload-btn:hover {
  background: var(--teal-dk);
  transform: translateY(-2px);
  box-shadow: var(--teal-glow-lg);
}
.hero-upload-btn svg { width: 18px; height: 18px }

/* Secondary — outlined minimal */
.hero-code-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); color: var(--text-2);
  font-size: 13px; font-weight: 600;
  border: 1.5px solid var(--border); padding: 12px 20px; border-radius: 100px;
  cursor: pointer; transition: all var(--transition);
  font-family: var(--font-code);
}
.hero-code-btn:hover {
  border-color: var(--primary); color: var(--primary);
  background: var(--primary-lt);
  box-shadow: 0 0 0 3px rgba(0,201,167,.1);
}
.hero-code-btn svg { width: 14px; height: 14px }

.hero-guide-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); color: var(--muted);
  font-size: 13px; font-weight: 600;
  border: 1.5px solid var(--border); padding: 12px 20px; border-radius: 100px;
  cursor: pointer; transition: all var(--transition); font-family: var(--font);
}
.hero-guide-btn:hover {
  border-color: var(--yellow); color: #B8860B;
  background: rgba(247,183,49,.07);
}
.hero-guide-btn svg { width: 14px; height: 14px }

.hero-note { font-size: 11px; color: var(--muted-2); margin-top: 16px; font-style: italic }

/* ══ GUIDE PANEL ══ */
.guide-panel {
  background: var(--surface); border-bottom: 1px solid var(--border-2);
  display: none; animation: slideDown .2s ease;
}
.guide-panel.open { display: block }
.guide-panel-inner { max-width: 960px; margin: 0 auto; padding: 28px 24px 32px }
@keyframes slideDown { from { opacity: 0; transform: translateY(-8px) } to { opacity: 1; transform: none } }

/* ══ CODE INPUT PANEL ══ */
.code-input-panel {
  background: var(--surface); border-bottom: 1px solid var(--border-2);
  padding: 20px 24px; display: none; animation: slideDown .2s ease;
}
.code-input-panel.open { display: block }
.code-input-panel-inner { max-width: 960px; margin: 0 auto }
.code-input-panel textarea {
  width: 100%; height: 140px;
  background: var(--surface-2); border: 1.5px solid var(--border);
  border-radius: var(--radius); color: var(--text-2);
  font-family: var(--font-code); font-size: 12px;
  padding: 12px 14px; resize: vertical; line-height: 1.6; outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.code-input-panel textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0,201,167,.12);
}
.code-panel-hint { font-size: 11px; color: var(--muted); margin-top: 8px; font-weight: 500 }

/* ══ WRAP ══ */
.wrap { max-width: 960px; margin: 0 auto; padding: 0 16px }

/* ══ APP SECTION ══ */
#app { padding: 28px 0 0 }

/* ══ UPLOAD PROMPT ══ */
.upload-prompt {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 60px 24px;
  background: var(--surface);
  border: 1.5px dashed var(--border);
  border-radius: var(--radius-xl);
  margin: 24px 0;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
}
.upload-prompt:hover, .upload-prompt.drag-over {
  border-color: var(--primary);
  background: var(--primary-lt);
  box-shadow: 0 0 0 4px rgba(0,201,167,.1), var(--teal-glow);
}
.upload-prompt input[type=file] {
  position: absolute; inset: 0; opacity: 0;
  cursor: pointer; width: 100%; height: 100%;
}
.up-icon {
  width: 64px; height: 64px; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(0,201,167,.12), rgba(0,201,167,.06));
  border: 1px solid rgba(0,201,167,.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; margin-bottom: 20px;
}
.up-title { font-size: 18px; font-weight: 700; color: var(--text-2); margin-bottom: 6px }
.up-sub { font-size: 13px; color: var(--muted); margin-bottom: 20px }
.up-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--primary); color: #fff;
  font-size: 13px; font-weight: 600; border: none;
  padding: 10px 22px; border-radius: 100px; cursor: pointer;
  transition: all var(--transition);
  box-shadow: var(--teal-glow);
  pointer-events: none; font-family: var(--font);
}
.up-or { font-size: 11px; color: var(--muted-2); margin: 12px 0 }
.up-paste-hint { font-size: 12px; color: var(--muted) }
.up-paste-hint kbd {
  display: inline-block; background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 4px; padding: 1px 6px; font-family: var(--font-code); font-size: 11px;
}

/* ══ APP CONTENT ══ */
.app-content { display: none }
.app-content.visible { display: block; animation: fadeIn .25s ease }
@keyframes fadeIn { from { opacity: 0; transform: translateY(12px) } to { opacity: 1; transform: none } }

.main-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 20px;
  align-items: start;
}
@media(max-width:820px) { .main-grid { grid-template-columns: 1fr } }

/* ══ CARD ══ */
.card {
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow var(--transition), border-color var(--transition);
}
.card:hover {
  box-shadow: var(--shadow), 0 0 0 1px rgba(0,201,167,.1);
  border-color: rgba(0,201,167,.2);
}

.card-head {
  padding: 13px 18px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--border-2);
  background: var(--surface-2);
}
.card-title {
  font-size: 11px; font-weight: 700; color: var(--muted);
  letter-spacing: .8px; text-transform: uppercase;
  display: flex; align-items: center; gap: 8px;
}
.card-title-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--primary); flex-shrink: 0;
}
.card-body { padding: 16px 18px }

/* ══ INPUTS ══ */
.field-label {
  display: block; font-size: 11px; font-weight: 600;
  color: var(--muted); letter-spacing: .5px; margin-bottom: 6px; text-transform: uppercase;
}
input[type=number], input[type=text], textarea, select {
  width: 100%;
  background: var(--surface-2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-2); font-family: var(--font-code); font-size: 12px;
  padding: 8px 12px; outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  -webkit-appearance: none; appearance: none;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0,201,167,.1);
  background: var(--surface);
}
select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B7280' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px;
}
select option { background: var(--surface) }
textarea { height: 120px; resize: vertical; line-height: 1.5; font-size: 11px }

.row-2 { display: flex; gap: 10px }
.row-2 .col { flex: 1; min-width: 0 }
.opt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px }
@media(max-width:480px) { .opt-grid { grid-template-columns: 1fr } .row-2 { flex-direction: column } }

/* ══ TOGGLE ROW ══ */
.toggle-row {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 0; border-bottom: 1px solid var(--border-2);
}
.toggle-row:last-child { border-bottom: none; padding-bottom: 0 }
.toggle-row label { font-size: 13px; color: var(--text-2); cursor: pointer; font-weight: 500; flex: 1 }
input[type=checkbox] { accent-color: var(--primary); width: 16px; height: 16px; cursor: pointer; flex-shrink: 0 }

/* ══ COLOR ROW ══ */
.color-row { display: flex; gap: 10px; align-items: center; margin-bottom: 10px }
input[type=color] {
  width: 36px; height: 32px; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); padding: 2px; background: var(--surface); cursor: pointer;
}
.color-label { font-size: 12px; color: var(--muted); font-weight: 500 }

/* ══ SECTION DIVIDER ══ */
.section-sep {
  font-size: 10px; letter-spacing: 1px; text-transform: uppercase;
  color: var(--muted-2); margin: 14px 0 10px;
  display: flex; align-items: center; gap: 8px;
}
.section-sep::after { content: ''; flex: 1; height: 1px; background: var(--border-2) }

/* ══ CANVAS PRESETS ══ */
.canvas-presets { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px }
.cp {
  padding: 5px 13px; font-size: 12px; font-weight: 600;
  border: 1.5px solid var(--border); border-radius: 100px;
  background: var(--surface-2); color: var(--muted);
  cursor: pointer; transition: all var(--transition);
  font-family: var(--font); white-space: nowrap;
}
.cp:hover {
  border-color: var(--primary); color: var(--primary);
  background: var(--primary-lt);
  box-shadow: 0 0 0 2px rgba(0,201,167,.1);
}
.cp.active {
  background: var(--primary); color: #fff;
  border-color: var(--primary);
  box-shadow: var(--teal-glow);
}
.custom-dims { display: none; gap: 10px; margin-bottom: 12px }
.custom-dims.show { display: flex }

/* ══ UPLOADED FILE NAME ══ */
.upload-file-name {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-code); font-size: 11px; color: var(--primary);
  background: var(--primary-lt); border: 1px solid rgba(0,201,167,.25);
  padding: 6px 12px; border-radius: var(--radius); max-width: 100%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  cursor: pointer; transition: all var(--transition);
}
.upload-file-name:hover {
  background: rgba(0,201,167,.14);
  box-shadow: 0 0 0 2px rgba(0,201,167,.15);
}

/* ══ PREVIEW AREA ══ */
.preview-wrapper { display: flex; flex-direction: column; gap: 16px }

#previewArea {
  background: #0D1117;
  border-radius: var(--radius);
  height: 320px; position: relative; overflow: hidden;
  cursor: grab; user-select: none;
  border: 1px solid var(--border-2);
  transition: box-shadow var(--transition);
}
#previewArea:hover {
  box-shadow: 0 0 0 2px rgba(0,201,167,.2), var(--teal-glow);
}
@media(max-width:480px) { #previewArea { height: 240px } }
#previewArea.dragging { cursor: grabbing }

#svgViewport {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  transform-origin: center center; will-change: transform;
  display: flex; align-items: center; justify-content: center;
}
#svgViewport svg {
  width: 100%; height: 100%; max-width: 100%; max-height: 100%;
  object-fit: contain; pointer-events: none;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,.4));
}
#previewPlaceholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: rgba(255,255,255,.2); font-size: 12px; line-height: 2;
  pointer-events: none; text-align: center; font-weight: 500;
}
#previewPlaceholder .icon { font-size: 32px; opacity: .25; margin-bottom: 8px }

.pv-bar {
  position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
  display: none; gap: 2px; align-items: center;
  background: rgba(0,0,0,.55); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 100px; padding: 4px 8px; z-index: 5;
}
.pv-bar button {
  background: none; border: none; color: rgba(255,255,255,.75);
  width: 28px; height: 28px; border-radius: 50%; cursor: pointer;
  font-size: 16px; display: flex; align-items: center; justify-content: center;
  transition: all var(--transition); font-family: monospace;
}
.pv-bar button:hover { background: var(--primary); color: #fff }
.pv-zoom-val {
  font-family: var(--font-code); font-size: 11px;
  color: rgba(255,255,255,.5); min-width: 38px; text-align: center; font-weight: 600;
}

/* ══ LAYER LIST ══ */
#layerList { display: flex; flex-direction: column; gap: 2px; max-height: 280px; overflow-y: auto }

.layer-group-wrap { display: flex; flex-direction: column; gap: 1px }
.layer-group-head {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 10px; border-radius: var(--radius-sm);
  background: var(--surface-2); cursor: pointer;
  transition: all var(--transition); user-select: none;
}
.layer-group-head:hover {
  background: var(--primary-lt);
  color: var(--primary);
}
.layer-group-label {
  font-size: 11px; font-weight: 700; color: var(--text-2);
  flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-family: var(--font-code);
}
.layer-group-count { font-size: 10px; color: var(--muted-2); font-weight: 600; flex-shrink: 0 }
.layer-group-chevron { font-size: 10px; color: var(--muted-2); flex-shrink: 0; transition: transform var(--transition) }
.layer-group-head.collapsed .layer-group-chevron { transform: rotate(-90deg) }
.layer-group-children { padding-left: 16px; display: flex; flex-direction: column; gap: 1px }
.layer-group-head.collapsed ~ .layer-group-children { display: none }

.layer-item {
  display: flex; align-items: center; gap: 8px;
  background: transparent; border: 1px solid transparent;
  border-radius: var(--radius-sm); padding: 6px 10px;
  font-size: 11px; cursor: default;
  transition: all var(--transition);
}
.layer-item:hover {
  background: var(--primary-lt);
  border-color: rgba(0,201,167,.2);
}
.layer-swatch { width: 11px; height: 11px; border-radius: 2px; border: 1px solid rgba(0,0,0,.1); flex-shrink: 0 }
.layer-name { flex: 1; font-family: var(--font-code); color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; font-weight: 500 }
.layer-tag {
  font-size: 9px; color: var(--primary); background: var(--primary-lt);
  padding: 1px 6px; border-radius: 4px; flex-shrink: 0;
  font-family: var(--font-code); font-weight: 700;
  border: 1px solid rgba(0,201,167,.2);
}
.layer-info { color: var(--muted-2); font-size: 9px; flex-shrink: 0; font-family: var(--font-code) }

/* ══ STATS ══ */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  margin-top: 20px;
}
@media(max-width:500px) { .stats { grid-template-columns: repeat(2, 1fr) } }
.stat-card {
  background: var(--surface); border: 1px solid var(--border-2);
  border-radius: var(--radius-lg); padding: 16px;
  box-shadow: var(--shadow-sm); transition: all var(--transition); text-align: center;
}
.stat-card:hover {
  box-shadow: var(--shadow), var(--teal-glow);
  border-color: rgba(0,201,167,.25);
  transform: translateY(-2px);
}
.stat-val { font-size: 26px; font-weight: 800; color: var(--primary); line-height: 1 }
.stat-key { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .8px; margin-top: 4px; font-weight: 600 }

/* ══ CONVERT BAR ══ */
.convert-bar {
  display: flex; gap: 10px; align-items: center;
  background: var(--surface); border: 1px solid var(--border-2);
  border-radius: var(--radius-xl); padding: 14px 18px;
  box-shadow: var(--shadow); margin-top: 20px;
}
.btn-convert {
  flex: 1; background: var(--primary); color: #fff;
  font-size: 14px; font-weight: 700; letter-spacing: .3px;
  border: none; border-radius: 100px;
  padding: 14px 24px; cursor: pointer; transition: all var(--transition);
  font-family: var(--font); box-shadow: var(--teal-glow);
  position: relative; overflow: hidden;
}
.btn-convert:hover:not(:disabled) {
  background: var(--teal-dk);
  transform: translateY(-1px);
  box-shadow: var(--teal-glow-lg);
}
.btn-convert:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none }
.btn-convert.loading { pointer-events: none }
.btn-convert.loading::after {
  content: ''; position: absolute; top: 0; left: -100%; width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.22), transparent);
  animation: shimmer .9s infinite;
}
@keyframes shimmer { to { left: 150% } }

.btn-clear {
  background: var(--surface-2); color: var(--muted);
  border: 1.5px solid var(--border); border-radius: 100px;
  padding: 14px 20px; cursor: pointer; font-size: 13px; font-weight: 600;
  font-family: var(--font); transition: all var(--transition); min-width: 48px;
}
.btn-clear:hover { background: #FFF2F2; color: var(--red); border-color: rgba(250,62,62,.3) }

/* ══ OUTPUT ══ */
#resBox { margin-top: 20px; display: none }
.out-card {
  background: #0D1117; border: 1px solid rgba(0,201,167,.15);
  border-radius: var(--radius-xl); overflow: hidden;
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(0,201,167,.08);
}
.out-head {
  padding: 14px 20px; display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 10px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  background: rgba(0,201,167,.04);
}
.out-status { font-size: 12px; color: var(--primary); font-weight: 700; font-family: var(--font-code) }
.mini-btns { display: flex; gap: 8px; flex-wrap: wrap }
.mini-btn {
  padding: 7px 16px; font-size: 11px; border-radius: 100px;
  cursor: pointer; font-weight: 700; font-family: var(--font); transition: all var(--transition);
}
.btn-copy {
  background: rgba(255,255,255,.07); color: rgba(255,255,255,.65);
  border: 1px solid rgba(255,255,255,.12);
}
.btn-copy:hover { background: rgba(255,255,255,.12); color: #fff }
.btn-dl {
  background: var(--yellow); color: #1C2B33; border: none;
  box-shadow: 0 2px 8px rgba(247,183,49,.3);
}
.btn-dl:hover { background: #f0ac20; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(247,183,49,.4) }

#outputXml {
  background: #0D1117; padding: 18px 20px;
  white-space: pre-wrap; font-family: var(--font-code); font-size: 11px;
  max-height: 360px; overflow-y: auto; color: #6ee7b7; line-height: 1.7;
}
#outputXml::-webkit-scrollbar { width: 4px }
#outputXml::-webkit-scrollbar-thumb { background: rgba(0,201,167,.25); border-radius: 2px }

/* ══ INFO BADGES ══ */
.info-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10px; padding: 2px 9px; border-radius: 100px;
  font-family: var(--font-code); font-weight: 600; border: 1px solid;
}
.info-ai { background: rgba(247,183,49,.1); color: #8A6C00; border-color: rgba(247,183,49,.35) }
.info-ok { background: var(--primary-lt); color: #00856D; border-color: rgba(0,201,167,.3) }

/* ══ HINT BOX ══ */
#svgHintBox {
  display: none; background: #FFFBEB; border: 1px solid rgba(247,183,49,.3);
  border-radius: var(--radius); padding: 10px 14px;
  margin-bottom: 10px; font-size: 11px; color: var(--text-2); font-weight: 500;
  line-height: 1.6;
}

/* ══ STEPS ══ */
.steps { display: flex; flex-direction: column; margin-top: 20px }
.step { display: flex; gap: 16px; padding: 0 0 28px; position: relative }
.step::before { content: ''; position: absolute; left: 17px; top: 40px; bottom: 0; width: 1px; background: var(--border-2) }
.step:last-child::before { display: none }
.snum {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px; position: relative; z-index: 1;
}
.s1 { background: var(--primary); color: #fff; box-shadow: var(--teal-glow) }
.s2 { background: var(--text-2); color: #fff }
.s3 { background: var(--yellow); color: #1C2B33 }
.s4 { background: var(--surface-2); color: var(--text-2); border: 2px solid var(--border) }
.stepcon { flex: 1; padding-top: 6px }
.stitle { font-size: 14px; font-weight: 700; color: var(--text-2); margin-bottom: 4px }
.sbody { font-size: 12px; color: var(--muted); line-height: 1.7 }
.sbody strong { color: var(--text-2); font-weight: 600 }
.stip {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; color: var(--text-2); background: var(--surface-2);
  border: 1px solid var(--border); border-radius: 100px;
  padding: 3px 10px; margin-top: 8px; font-weight: 600;
}

/* ══ FEATURES ══ */
.sdiv { height: 1px; background: var(--border-2); margin: 48px 0 0 }
.gsec { padding: 40px 0 0 }
.sec-label {
  display: inline-block; font-size: 10px; font-weight: 700; color: var(--primary);
  letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 10px;
  background: var(--primary-lt); border: 1px solid rgba(0,201,167,.2);
  padding: 3px 12px; border-radius: 100px;
}
.sec-title { font-size: clamp(20px, 3vw, 28px); font-weight: 800; color: var(--text-2); margin-bottom: 6px; letter-spacing: -.5px }
.sec-desc { font-size: 13px; color: var(--muted); max-width: 560px; line-height: 1.6 }
.fg { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 24px }
@media(max-width:540px) { .fg { grid-template-columns: 1fr } }
.fc {
  background: var(--surface); border: 1px solid var(--border-2);
  border-radius: var(--radius-lg); padding: 20px;
  box-shadow: var(--shadow-sm); transition: all var(--transition);
  display: flex; flex-direction: column;
}
.fc:hover {
  box-shadow: var(--shadow), 0 0 0 1px rgba(0,201,167,.15), var(--teal-glow);
  border-color: rgba(0,201,167,.25);
  transform: translateY(-2px);
}
.fi { font-size: 22px; margin-bottom: 10px }
.ft { font-size: 13px; font-weight: 700; color: var(--text-2); margin-bottom: 4px }
.fb { font-size: 12px; color: var(--muted); line-height: 1.65; flex: 1 }
.ftag {
  display: inline-block; font-size: 10px; font-weight: 700;
  padding: 2px 10px; border-radius: 100px; margin-top: 12px; align-self: flex-start;
}
.tnew { background: var(--primary-lt); color: #00856D; border: 1px solid rgba(0,201,167,.25) }
.tcore { background: var(--surface-2); color: var(--muted); border: 1px solid var(--border) }
.tnested { background: rgba(247,183,49,.1); color: #8A6C00; border: 1px solid rgba(247,183,49,.3) }

/* ══ FAQ ══ */
.faq { display: flex; flex-direction: column; margin-top: 20px }
.faqi { border-bottom: 1px solid var(--border-2) }
.faqq {
  padding: 16px 0; font-size: 14px; font-weight: 600; color: var(--text-2);
  cursor: pointer; display: flex; justify-content: space-between;
  align-items: center; gap: 12px; user-select: none; transition: color var(--transition);
}
.faqq:hover { color: var(--primary) }
.faqi_ {
  font-size: 16px; color: var(--muted); flex-shrink: 0;
  transition: transform .2s; font-weight: 700;
  width: 24px; height: 24px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--surface-2);
  border: 1px solid var(--border);
}
.faqa { font-size: 13px; color: var(--muted); padding-bottom: 16px; line-height: 1.8; display: none }
.faqa.open { display: block }
.faqi_.open { transform: rotate(45deg); background: var(--primary-lt); border-color: rgba(0,201,167,.3); color: var(--primary) }

/* ══ DONASI BANNER ══ */
.donasi-banner {
  margin: 40px 0 0;
  background: linear-gradient(135deg, var(--primary-lt), rgba(0,201,167,.04));
  border: 1px solid rgba(0,201,167,.2); border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  padding: 24px 28px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.donasi-text { flex: 1; min-width: 200px }
.donasi-title { font-size: 16px; font-weight: 700; color: var(--text-2); margin-bottom: 4px }
.donasi-sub { font-size: 12px; color: var(--muted) }
.donasi-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--primary); color: #fff; font-size: 13px; font-weight: 700;
  border: none; border-radius: 100px; padding: 12px 22px; text-decoration: none;
  box-shadow: var(--teal-glow); transition: all var(--transition);
  white-space: nowrap; font-family: var(--font);
}
.donasi-btn:hover {
  background: var(--teal-dk);
  transform: translateY(-2px);
  box-shadow: var(--teal-glow-lg);
}

/* ══ FOOTER ══ */
.footer {
  background: var(--text); margin-top: 64px;
  padding: 48px 24px 28px;
  border-top: 1px solid rgba(255,255,255,.06);
}
.fi2 { max-width: 960px; margin: 0 auto; display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; align-items: start }
@media(max-width:640px) { .fi2 { grid-template-columns: 1fr 1fr; gap: 28px } }
@media(max-width:380px) { .fi2 { grid-template-columns: 1fr } }
.fbd { font-size: 12px; color: rgba(255,255,255,.35); line-height: 1.7; max-width: 200px }
.fsoc { display: flex; gap: 10px; margin-top: 16px }
.sb {
  width: 40px; height: 40px; border-radius: var(--radius);
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.45); text-decoration: none; transition: all var(--transition);
}
.sb:hover { background: var(--primary); border-color: var(--primary); color: #fff; transform: translateY(-2px); box-shadow: var(--teal-glow) }
.sb svg { width: 17px; height: 17px }
.fct { font-size: 10px; font-weight: 700; color: rgba(255,255,255,.25); letter-spacing: 1.2px; text-transform: uppercase; margin-bottom: 14px }
.fl2 { display: block; font-size: 12px; color: rgba(255,255,255,.38); text-decoration: none; margin-bottom: 10px; transition: color var(--transition); font-weight: 500; word-break: break-all }
.fl2:hover { color: var(--primary) }
.fbot { max-width: 960px; margin: 32px auto 0; border-top: 1px solid rgba(255,255,255,.06); padding-top: 20px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px }
.fcp { font-size: 11px; color: rgba(255,255,255,.2); font-weight: 500 }
.fvr { font-family: var(--font-code); font-size: 10px; color: rgba(255,255,255,.15) }

/* ══ SCROLLBAR ══ */
::-webkit-scrollbar { width: 4px }
::-webkit-scrollbar-track { background: transparent }
::-webkit-scrollbar-thumb { background: rgba(0,201,167,.25); border-radius: 4px }

/* ══ RESPONSIVE ══ */
@media(max-width:480px) {
  .wrap { padding: 0 12px }
  .topbar { padding: 0 14px }
  .convert-bar { flex-direction: column }
  .btn-convert, .btn-clear { width: 100% }
  .hero { padding: 44px 16px 40px }
}

/* ══ OPACITY SLIDER ══ */
.opacity-row { display: flex; align-items: center; gap: 10px; margin-top: 4px }
.opacity-row input[type=range] {
  flex: 1; height: 4px; accent-color: var(--primary);
  cursor: pointer; background: var(--surface-3); border-radius: 4px;
  border: none; box-shadow: none; padding: 0; outline: none;
}
.opacity-row input[type=number] { width: 64px; flex: none; text-align: center }

/* ══ LAYER CONTROLS ══ */
.layer-controls { display: flex; gap: 6px; align-items: center }
.layer-ctrl-btn {
  background: none; border: 1px solid var(--border); color: var(--muted);
  cursor: pointer; font-size: 10px; font-family: var(--font); font-weight: 700;
  padding: 3px 10px; border-radius: 100px; transition: all var(--transition);
}
.layer-ctrl-btn:hover {
  border-color: var(--primary); color: var(--primary);
  background: var(--primary-lt);
  box-shadow: 0 0 0 2px rgba(0,201,167,.1);
}
/* ══ UI FIX v2: Hero redesign ══ */

/* Upload primary — full width on mobile, left-aligned */
.hero-upload-primary {
  width: 100%;
  max-width: 280px;
  justify-content: center;
  font-size: 15px;
  padding: 14px 28px;
}

/* Paste Kode — teks link kecil dengan garis bawah, bukan button */
.hero-paste-link {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 12px;
  font-family: var(--font);
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition);
}
.hero-paste-link:hover {
  color: var(--primary);
}

/* Secondary actions row */
.hero-secondary-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Upload prompt — clean drop zone, no duplicate CTA */
.upload-prompt {
  min-height: 160px;
  cursor: pointer;
}
.upload-prompt .up-sub {
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}

/* Mobile hero — left align everything */
@media (max-width: 640px) {
  .hero {
    padding: 44px 20px 40px;
    text-align: left;
  }
  .hero-eyebrow { display: none; }
  .hero h1 { font-size: clamp(22px, 8vw, 36px); }
  .hero-upload-primary { max-width: 100%; }
  .hero-secondary-actions { justify-content: flex-start; }
}
