@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:     #FAE965;
  --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 — Dribbble-style ═════════════ */
.topbar {
  background: #16213D;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid rgba(255,255,255,.08);
  padding: 0 20px;
  height: 58px;
  display: flex;
  align-items: center;
  gap: 10px;
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 20px rgba(0,0,0,.4);
}

/* Logo */
.logo-wrap {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex: 1;
}

/* Nav links desktop */
.topbar-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
}
.nav-a {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,.65);
  text-decoration: none;
  padding: 6px 13px;
  border-radius: 100px;
  transition: all var(--transition);
  white-space: nowrap;
}
.nav-a:hover {
  color: #fff;
  background: rgba(255,255,255,.09);
}

/* Right side: contact + donate */
.topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.nav-contact {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,.7);
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  padding: 0 14px;
  height: 36px;
  border-radius: 100px;
  border: 1.5px solid rgba(255,255,255,.18);
  transition: all var(--transition);
  white-space: nowrap;
}
.nav-contact:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.nav-donate {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary);
  color: #fff;
  border-radius: 100px;
  padding: 0 16px;
  height: 36px;
  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 — 3 garis, kiri */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
  flex-shrink: 0;
  order: -1;
}
.hamburger span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: rgba(255,255,255,.85);
transition: var(--transition);
}
.hamburger span:nth-child(1) { width: 22px;
}
.hamburger span:nth-child(2) { width: 16px;
}
.hamburger span:nth-child(3) { width: 22px;
}
.hamburger.open span:nth-child(1) { width: 22px;
transform: translateY(7px) rotate(45deg);
}
.hamburger.open span:nth-child(2) { opacity: 0;
}
.hamburger.open span:nth-child(3) { width: 22px;
transform: translateY(-7px) rotate(-45deg);
}

/* Desktop: nav links visible, hamburger hidden */
@media(min-width:641px) {
  .hamburger { display: none;
}
  .topbar-nav { display: flex;
}
}

/* Mobile: hamburger visible, nav links hidden (in drawer) */
@media(max-width:640px) {
  .hamburger { display: flex;
}
  .topbar { padding: 0 14px;
}
  .topbar-nav { display: none;
} /* desktop nav hidden;
links are in drawer */
  .nav-contact-label { display: none;
}
  .nav-contact { padding: 0 10px;
}
}

/* ── OVERLAY ─────────────────────────── */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 198;
}
.nav-overlay.open { display: block; 
}

/* ── DRAWER ──────────────────────────── */
.nav-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(280px, 82vw);
  background: #111d33;
  z-index: 199;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  box-shadow: 4px 0 32px rgba(0,0,0,.45);
}
.nav-drawer.open { transform: translateX(0);
}

.nav-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  height: 58px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  flex-shrink: 0;
}
.nav-drawer-close {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  border: none;
  color: rgba(255,255,255,.7);
  cursor: pointer;
  font-size: .85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .18s;
}
.nav-drawer-close:hover { 
  background: rgba(255,255,255,.2);
}

.nav-drawer-body { flex: 1;
  overflow-y: auto;
  padding: 8px 0;
}
.nav-drawer-link {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 18px;
  font-size: .93rem;
  font-weight: 500;
  color: rgba(255,255,255,.72);
  text-decoration: none;
  transition: background .15s, color .15s;
}
.nav-drawer-link svg { flex-shrink: 0;
opacity: .6;
}
.nav-drawer-link:hover {
  background: rgba(255,255,255,.07);
  color: #fff;
}
.nav-drawer-link:hover svg { opacity: 1;
}
.nav-drawer-divider {
  height: 1px;
  background: rgba(255,255,255,.07);
  margin: 6px 16px;
}

.nav-drawer-footer {
  padding: 14px 16px;
  border-top: 1px solid rgba(255,255,255,.07);
flex-shrink: 0;
}
.nav-drawer-footer .nav-donate {
  width: 100%;
  justify-content: center;
  height: 42px;
  font-size: .9rem;
}

/* ══ HERO — White Minimalist ════════════ */
.hero {
  background: var(--surface);
  padding: 64px 24px 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border-2);
  transition: box-shadow .2s, border-color .2s;
  display: flex;
  flex-direction: column;
  alight-items: center;
}
/* Drag-over visual feedback — redirect dari uploadPrompt yg sudah hidden */
.hero.drag-over {
  box-shadow: inset 0 0 0 3px var(--primary), 0 0 32px rgba(0,201,167,.12);
  border-bottom-color: var(--primary);
}
.hero.drag-over::before {
  background: radial-gradient(ellipse at center, rgba(0,201,167,.18) 0%, transparent 70%);
}

/* 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;
  margin-left: auto;
  margin-right: auto;
}
.hero-sub strong { color: var(--text-2);
font-weight: 600 }

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

/* 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 20px }

/* ══ 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: 2 kolom — kiri Preview+Layer, kanan Settings ── */
.main-grid {
  display: flex;
  flex-direction: row;
  gap: 20px;
  align-items: start;
}

/* Preview + Layer → KIRI, ambil sisa ruang */
.preview-wrapper {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Settings → KANAN, lebar tetap 340px */
.settings-stack {
  width: 340px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.settings-stack > .card {
  width: 100%;
}

/* ── Tablet/Mobile: single column ── */
@media(max-width:820px) {
  .main-grid {
    flex-direction: column;
  }
  .preview-wrapper,
  .settings-stack {
    width: 100%;
  }
}

/* ══ 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;
flex-direction: column;
gap: 10px;
margin-bottom: 12px }
.custom-dims.show { display: flex }

/* ── SVG Size info badge ── */
.svg-size-info {
  font-family: var(--font-code);
font-size: 11px;
font-weight: 600;
  color: var(--primary);
background: var(--primary-lt);
  border: 1px solid rgba(0,201,167,.25);
  border-radius: var(--radius-sm);
padding: 4px 10px;
  margin-bottom: 10px;
display: inline-block;
}

/* ── Custom toggle row ── */
.custom-toggle-row {
  display: flex;
align-items: center;
gap: 9px;
  margin-bottom: 10px;
}
.custom-toggle-label {
  font-size: 12px;
font-weight: 600;
color: var(--muted);
}
/* Toggle switch */
.toggle-switch {
  position: relative;
display: inline-flex;
  width: 36px;
height: 20px;
flex-shrink: 0;
}
.toggle-switch input { opacity: 0;
width: 0;
height: 0;
position: absolute;
}
.toggle-thumb {
  position: absolute;
inset: 0;
  background: var(--border);
border-radius: 100px;
  cursor: pointer;
transition: background var(--transition);
}
.toggle-thumb::after {
  content: '';
position: absolute;
  top: 3px;
left: 3px;
  width: 14px;
height: 14px;
  background: #fff;
border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,.18);
  transition: transform var(--transition);
}
.toggle-switch input:checked + .toggle-thumb {
  background: var(--primary);
}
.toggle-switch input:checked + .toggle-thumb::after {
  transform: translateX(16px);
}

/* ══ 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 ══ */

#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: 10px 20px;
font-size: 12px;
border-radius: 100px;
  cursor: pointer;
font-weight: 700;
font-family: var(--font);
transition: all var(--transition);
}
@media(max-width:640px) {
  .mini-btn { padding: 12px 18px;
font-size: 13px;
flex: 1;
text-align: center }
  .mini-btns { width: 100% }
}
.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(250,233,101,.3);
}
.btn-dl:hover { background: #f0d84a;
transform: translateY(-1px);
box-shadow: 0 4px 12px rgba(250,233,101,.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(250,233,101,.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(250,233,101,.3) }

/* ══ FEATURE SLIDESHOW ══ */
.fs-wrap { margin-top: 20px;
position: relative;
overflow: hidden }
.fs-track {
  display: flex;
gap: 10px;
  transition: transform .45s cubic-bezier(.4,0,.2,1);
  will-change: transform;
  cursor: grab;
user-select: none;
}
.fs-track:active { cursor: grabbing }

/* kartu compact: ikon + judul + tag saja */
.fs-card {
  min-width: 140px;
max-width: 140px;
  flex-shrink: 0;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  padding: 14px 12px 12px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  display: flex;
flex-direction: column;
align-items: flex-start;
gap: 6px;
  transition: border-color .2s, box-shadow .2s, transform .2s;
  overflow: hidden;
}
.fs-card:hover {
  border-color: rgba(0,201,167,.35);
  box-shadow: var(--shadow), var(--teal-glow);
  transform: translateY(-2px);
}
.fs-card.fs-open {
  min-width: 140px;
max-width: 140px;
  border-color: rgba(0,201,167,.4);
  box-shadow: var(--shadow), var(--teal-glow);
}

/* ikon svg inline (custom) */
.fs-icon {
  width: 28px;
height: 28px;
  display: flex;
align-items: center;
justify-content: center;
  background: var(--primary-lt);
  border-radius: 8px;
flex-shrink: 0;
  color: var(--primary);
/* currentColor untuk inline svg — tidak berlaku untuk mask */
}
.fs-icon svg { width: 16px;
height: 16px;
fill: var(--primary) }
/* icon svg inline — warna ikut currentColor dari .fs-icon */
.fs-icon-img {
  width: 20px;
height: 20px;
  display: flex;
align-items: center;
justify-content: center;
}
.fs-icon-img svg {
  width: 20px;
height: 20px;
  color: var(--primary);
  fill: none;
}

.fs-title { font-size: 11px;
font-weight: 700;
color: var(--text-2);
line-height: 1.3 }

/* deskripsi: tersembunyi, muncul saat diklik */
.fs-desc {
  font-size: 11px;
color: var(--muted);
line-height: 1.6;
  max-height: 0;
overflow: hidden;
  opacity: 0;
  transition: max-height .35s cubic-bezier(.4,0,.2,1), opacity .25s ease, margin .25s;
  margin-top: 0;
}
.fs-card.fs-open .fs-desc {
  max-height: 120px;
  opacity: 1;
  margin-top: 2px;
}

/* dots */
.fs-dots {
  display: flex;
gap: 5px;
justify-content: center;
margin-top: 14px;
}
.fs-dot {
  width: 5px;
height: 5px;
border-radius: 50%;
  background: var(--border);
border: none;
cursor: pointer;
padding: 0;
  transition: all .2s;
}
.fs-dot.active { background: var(--primary);
width: 14px;
border-radius: 3px }

/* ══ 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: #16213D;
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 }
}

/* ══ 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;
}
}

/* ══ Bug Fixes: Hint box & Toast ══ */

/* Hint box — dua state: warning (merah) & success (hijau auto-stroke) */
#svgHintBox {
  font-size: 12px;
  padding: 9px 12px;
  border-radius: 8px;
  border: 1px solid rgba(245,158,11,.3);
  background: rgba(245,158,11,.07);
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.5;
  display: none;
}
#svgHintBox code {
  font-family: var(--font-code, monospace);
  font-size: 11px;
  background: rgba(0,0,0,.08);
  padding: 1px 5px;
  border-radius: 4px;
}

/* Toast mobile-safe */
#_lizToast {
  /* Dynamic sizing on very narrow screens */
  max-width: min(340px, 90vw);
}

/* logo-text deprecated — pakai logo-nav-word */

/* ══ LOGO VIDEO — 450×200 (2.25:1) ══ */
.logo-nav-video {
  /* tinggi 48px → lebar = 48 * (450/200) = 48 * 2.25 = 108px */
  height: 48px;
  width: 108px;
  overflow: hidden;
  border-radius: 4px;
  flex-shrink: 0;
  position: relative;
}
.logo-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: transparent;
  position: absolute;
  top: 0;
  left: 0;
}

/* ══ FOOTER LOGO WORD: LI[svg]IER ══ */
.footer-logo-word {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-bottom: 12px;
}
.fl-letter {
  font-family: var(--font);
  font-size: 20px;
  font-weight: 800;
  color: rgba(255,255,255,.7);
  letter-spacing: 2px;
}
.fl-icon {
  display: flex;
  align-items: center;
  margin: 0 1px;
}

/* ══ FOOTER LOGO VIDEO ══ */
.footer-logo-video-wrap {
  /* tinggi 40px → lebar = 40 * 2.25 = 90px (rasio 450×200) */
  height: 52px;
  /* dari 40px */
  width: 117px;
  /* 52 * 2.25 */
  overflow: hidden;
  border-radius: 4px;
  position: relative;
  margin-bottom: 12px;
  margin-left: -8px;
}
.footer-logo-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  margin-top: -8px;
  display: block;
  background: transparent;
}

/* ══ OUTPUT BOX — dark code editor style ══ */
.out-card {
  background: #0D1117 !important;
  border: 1px solid rgba(34,202,179,.18) !important;
  border-radius: 14px !important;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,.28), 0 0 0 1px rgba(34,202,179,.08) !important;
}
.out-head {
  background: #161b22 !important;
  border-bottom: 1px solid rgba(255,255,255,.06) !important;
  padding: 12px 16px !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex-wrap: nowrap !important;
}
/* Macbook traffic lights */
.out-head::before {
  content: '';
  display: flex;
  width: 52px;
  height: 12px;
  background:
    radial-gradient(circle 6px at 6px 6px, #FF5F56 100%, transparent 0),
    radial-gradient(circle 6px at 24px 6px, #FFBD2E 100%, transparent 0),
    radial-gradient(circle 6px at 42px 6px, #27C93F 100%, transparent 0);
  flex-shrink: 0;
}
.out-filename {
  font-family: var(--font-code);
  font-size: 12px;
  color: rgba(255,255,255,.45);
  flex: 1;
  text-align: center;
}
.out-status {
  font-family: var(--font-code);
  font-size: 11px;
  color: #22cab3;
  font-weight: 700;
}
.mini-btns {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
.btn-copy {
  background: rgba(255,255,255,.07) !important;
  color: rgba(255,255,255,.6) !important;
  border: 1px solid rgba(255,255,255,.1) !important;
  font-size: 12px !important;
  padding: 10px 20px !important;
  border-radius: 100px !important;
}
.btn-copy:hover { background: rgba(255,255,255,.13) !important;
color: #fff !important }
.btn-dl {
  background: var(--yellow) !important;
  color: #1C2B33 !important;
  font-size: 12px !important;
  padding: 10px 20px !important;
  border-radius: 100px !important;
  border: none !important;
}

/* XML output text — syntax coloring sederhana */
#outputXml {
  background: #0D1117 !important;
  color: #6ee7b7 !important;
  font-family: var(--font-code) !important;
  font-size: 11px !important;
  padding: 20px !important;
  max-height: 380px !important;
  overflow-y: auto !important;
  white-space: pre-wrap !important;
  line-height: 1.75 !important;
}
#outputXmlWrap { position: relative }

/* Placeholder saat XML kosong */
.xml-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  padding: 40px 20px;
  min-height: 160px;
}
#outputXml:not(:empty) ~ .xml-placeholder,
.xml-placeholder.hidden { display: none !important }

/* ══ NAV LOGO WORD: Li[svg]ier ══ */
.logo-nav-word {
  display: flex;
  align-items: center;
  gap: 1px;
  text-decoration: none;
}
.logo-nav-letter {
  font-family: var(--font);
  font-size: 20px;
  font-weight: 800;
  color: var(--text-2);
  letter-spacing: -.5px;
  line-height: 1;
}
.logo-nav-icon {
  display: flex;
  align-items: center;
  margin: 0 0px;
  position: relative;
  top: 0px;
}

/* ══ HERO yellow — lebih gelap khusus di teks hero (bg putih) ══ */
.hero h1 .ay-hero {
  color: #C8950A !important;
}

/* ══ OUT STATUS BAR — row di bawah macOS header ══ */
.out-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(0,201,167,.04);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.out-status-bar .out-status {
  font-size: 11px;
  font-family: var(--font-code);
  color: #22cab3;
  font-weight: 700;
  flex: 1;
}
.out-status-bar .mini-btns {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
@media(max-width:640px) {
  .out-status-bar {
    flex-direction: column;
   align-items: stretch;
 }
  .out-status-bar .mini-btns {
    width: 100%;
 }
  .out-status-bar .mini-btn {
    flex: 1;
   text-align: center;
 }
}