/* ============================================================
   Logo Generator Pro — Dark UI (WordPress-hardened)
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Syne:wght@700;800&display=swap');

/* ── hard reset scoped to our wrapper ── */
#lgp-app { all: initial; display: block; }
#lgp-app *, #lgp-app *::before, #lgp-app *::after {
  box-sizing: border-box !important;
  margin: 0; padding: 0;
}
#lgp-app img { max-width: none; }

#lgp-app {
  --bg:       #0c0c14;
  --surface:  #111119;
  --card:     #181824;
  --bdr:      rgba(255,255,255,.07);
  --bdr2:     rgba(255,255,255,.13);
  --txt:      #eeeef6;
  --muted:    rgba(255,255,255,.42);
  --muted2:   rgba(255,255,255,.22);
  --accent:   #7c5cfc;
  --blue:     #4f8cff;
  --grad:     linear-gradient(135deg,#7c5cfc,#4f8cff);
  --gsoft:    rgba(124,92,252,.14);
  --green:    #22c55e;
  --r1: 6px; --r2: 10px; --r3: 14px; --r4: 20px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-size: 14px;
  line-height: 1.5;
  color: var(--txt);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  display: block;
  width: 100%;
}

/* ── typography resets ── */
#lgp-app h1, #lgp-app h2, #lgp-app h3,
#lgp-app h4, #lgp-app h5, #lgp-app h6 {
  font-family: inherit; font-weight: inherit;
  line-height: inherit; color: inherit;
  margin: 0; padding: 0;
}
#lgp-app p { margin: 0; padding: 0; }
#lgp-app a { color: inherit; text-decoration: none; }
#lgp-app button { font-family: inherit; }
#lgp-app input, #lgp-app select, #lgp-app textarea {
  font-family: inherit; font-size: inherit;
}

/* ════════════════════════════════════════════════════
   HERO
════════════════════════════════════════════════════ */
.lgp-hero {
  display: block;
  text-align: center;
  padding: 56px 32px 48px;
  background:
    radial-gradient(ellipse 70% 50% at 50% -5%, rgba(124,92,252,.3) 0%, transparent 65%),
    radial-gradient(ellipse 40% 30% at 85% 40%, rgba(79,140,255,.15) 0%, transparent 60%),
    var(--bg);
  position: relative; overflow: hidden;
}
.lgp-hero::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23fff' fill-opacity='.012'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
}

.lgp-hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--bdr2); border-radius: 40px;
  padding: 7px 20px; font-size: 10px; font-weight: 700;
  letter-spacing: 1.1px; color: var(--muted);
  margin-bottom: 24px; background: rgba(255,255,255,.03);
  text-transform: uppercase; position: relative;
}
.lgp-hero-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); flex-shrink: 0;
  box-shadow: 0 0 10px rgba(124,92,252,.9);
  animation: lgp-pulse 2.2s ease infinite;
}
@keyframes lgp-pulse { 0%,100%{opacity:1} 50%{opacity:.35} }

.lgp-hero-title {
  font-family: 'Syne', sans-serif !important;
  font-size: clamp(34px, 5vw, 66px) !important;
  font-weight: 800 !important; line-height: 1.06 !important;
  letter-spacing: -.028em; margin-bottom: 16px; color: #fff !important;
  position: relative;
}
.lgp-hero-accent { color: var(--accent) !important; }

.lgp-hero-sub {
  font-size: 15px; color: var(--muted); line-height: 1.7;
  max-width: 400px; margin: 0 auto 28px; position: relative;
}

.lgp-hero-pills {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 10px; position: relative;
}
.lgp-hero-pill {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid var(--bdr2); border-radius: 40px;
  padding: 7px 16px; font-size: 12px; font-weight: 500;
  color: var(--muted); background: rgba(255,255,255,.03);
}

/* ════════════════════════════════════════════════════
   SHELL  (centred max-width wrapper)
════════════════════════════════════════════════════ */
.lgp-shell {
  display: block;
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 32px 56px;
}

/* ════════════════════════════════════════════════════
   BODY GRID
════════════════════════════════════════════════════ */
.lgp-body {
  display: grid !important;
  grid-template-columns: 230px 1fr;
  gap: 20px;
  align-items: start;
}

/* ════════════════════════════════════════════════════
   SIDEBAR
════════════════════════════════════════════════════ */
.lgp-sidebar {
  display: block;
  background: var(--surface);
  border: 1px solid var(--bdr);
  border-radius: var(--r3);
  position: sticky;
  top: 24px;
  overflow: visible;  /* NOT hidden — prevents clipping */
}

.lgp-sidebar-header {
  display: flex; align-items: center; gap: 7px;
  padding: 13px 15px;
  border-bottom: 1px solid var(--bdr);
  font-size: 9px; font-weight: 800; letter-spacing: 1.3px;
  text-transform: uppercase; color: var(--muted2);
}

/* step tabs */
.lgp-step-tabs {
  display: flex; flex-direction: column;
  padding: 8px; gap: 2px;
}
.lgp-step-tab {
  display: flex !important; align-items: center; gap: 10px;
  width: 100%; padding: 9px 10px; border-radius: var(--r1);
  background: transparent; border: none; cursor: pointer;
  font-family: inherit; text-align: left;
  transition: background .15s; color: var(--txt);
}
.lgp-step-tab:hover { background: rgba(255,255,255,.05); }
.lgp-step-tab.active {
  background: var(--gsoft);
  border: 1px solid rgba(124,92,252,.22) !important;
}
.lgp-step-num {
  width: 22px; height: 22px; border-radius: 50%;
  border: 1.5px solid var(--bdr2);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; color: var(--muted);
  flex-shrink: 0; transition: all .2s;
  min-width: 22px;
}
.lgp-step-tab.active .lgp-step-num {
  background: var(--grad); color: #fff; border-color: transparent;
  box-shadow: 0 0 10px rgba(124,92,252,.5);
}
.lgp-step-tab.done .lgp-step-num {
  background: var(--green); color: #fff; border-color: transparent;
}
.lgp-step-name {
  font-size: 12px; font-weight: 500; color: var(--muted); line-height: 1;
}
.lgp-step-tab.active .lgp-step-name { color: var(--txt); font-weight: 600; }

/* sidebar divider */
.lgp-sb-divider { height: 1px; background: var(--bdr); margin: 4px 8px; }

/* sidebar accordion sections */
.lgp-sb-section { display: block; border-top: 1px solid var(--bdr); }
.lgp-sb-section-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 15px; cursor: pointer; user-select: none;
}
.lgp-sb-section-head span {
  font-size: 9px; font-weight: 800; letter-spacing: 1px;
  text-transform: uppercase; color: var(--muted2);
}
.lgp-sb-chevron {
  width: 13px; height: 13px; color: var(--muted2);
  transition: transform .2s; flex-shrink: 0;
}
.lgp-sb-section.open .lgp-sb-chevron { transform: rotate(180deg); }

/* KEY FIX: sections default to hidden, open shows them */
.lgp-sb-body { display: none !important; padding: 0 10px 12px; }
.lgp-sb-section.open > .lgp-sb-body { display: block !important; }

/* logo canvas */
.lgp-canvas {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 5px;
  width: 100%; border-radius: var(--r2);
  background: #15152a; border: 1px solid var(--bdr2);
  min-height: 130px; padding: 16px 12px;
  position: relative; overflow: hidden; transition: background .3s;
}
.lgp-canvas-glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 70% 55% at 50% 0%, rgba(124,92,252,.2), transparent);
}
.lgp-canvas-icon { font-size: 30px; line-height: 1; position: relative; z-index: 1; }
.lgp-canvas-name {
  font-size: 16px; font-weight: 700; color: var(--accent);
  position: relative; z-index: 1; text-align: center; line-height: 1.2;
  transition: all .3s;
}
.lgp-canvas-slogan {
  font-size: 8px; color: rgba(255,255,255,.3);
  letter-spacing: 1.5px; text-transform: uppercase;
  position: relative; z-index: 1;
}

/* variant boxes */
.lgp-variants { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin-top: 8px; }
.lgp-var {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 1px;
  border-radius: var(--r1); height: 38px;
  font-size: 9px; font-weight: 700;
  border: 1px solid transparent; cursor: pointer;
  transition: border-color .15s;
}
.lgp-var:hover { border-color: var(--accent); }
.lgp-vn { font-size: 9px; font-weight: 700; }
.lgp-vs { font-size: 7px; opacity: .45; font-weight: 400; }

/* config summary */
.lgp-config-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,.04);
  font-size: 10px;
}
.lgp-config-row:last-child { border-bottom: none; }
.lgp-config-key { color: var(--muted); }
.lgp-config-val {
  font-weight: 600; color: var(--txt);
  max-width: 95px; text-align: right;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.lgp-sb-generate {
  padding: 10px; border-top: 1px solid var(--bdr);
}

/* ════════════════════════════════════════════════════
   MAIN PANEL
════════════════════════════════════════════════════ */
.lgp-main {
  display: flex !important; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--bdr);
  border-radius: var(--r3);
  overflow: visible;    /* KEY: was hidden — caused invisible content */
  min-height: 500px;
}

/* panel header */
.lgp-ph {
  display: flex; align-items: flex-start;
  justify-content: space-between; gap: 12px;
  padding: 20px 22px 16px;
  border-bottom: 1px solid var(--bdr);
  border-radius: var(--r3) var(--r3) 0 0;
  background: rgba(255,255,255,.018);
  flex-shrink: 0;
}
.lgp-ph-title { font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 3px; }
.lgp-ph-sub   { font-size: 11px; color: var(--muted); }

/* panel body */
.lgp-pb {
  display: block;
  padding: 20px 22px;
  overflow-y: auto;
  flex: 1;
  min-height: 320px;
  max-height: 520px;
}
.lgp-pb::-webkit-scrollbar { width: 4px; }
.lgp-pb::-webkit-scrollbar-track { background: transparent; }
.lgp-pb::-webkit-scrollbar-thumb { background: rgba(255,255,255,.09); border-radius: 4px; }

/* step pages — hidden by default, active shows */
.lgp-page { display: none !important; }
.lgp-page.active { display: block !important; }

/* panel footer */
.lgp-pf {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 12px 22px;
  border-top: 1px solid var(--bdr);
  border-radius: 0 0 var(--r3) var(--r3);
  background: rgba(255,255,255,.01);
  gap: 12px; flex-shrink: 0;
}
.lgp-pf-counter { font-size: 11px; color: var(--muted); white-space: nowrap; flex: 1; text-align: center; }

/* ════════════════════════════════════════════════════
   INDUSTRY GRID
════════════════════════════════════════════════════ */
.lgp-ind-grid {
  display: grid !important;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}
.lgp-ind-card {
  display: flex !important; flex-direction: column;
  align-items: center; gap: 7px;
  border: 1px solid var(--bdr); border-radius: var(--r2);
  padding: 13px 5px 10px;
  cursor: pointer; transition: all .18s;
  background: var(--card); text-align: center;
}
.lgp-ind-card:hover {
  border-color: var(--accent);
  background: rgba(124,92,252,.1);
  transform: translateY(-2px);
}
.lgp-ind-card.selected {
  border-color: var(--accent);
  background: rgba(124,92,252,.18);
  box-shadow: 0 0 0 1px rgba(124,92,252,.3);
}
.lgp-ind-card svg { width: 22px; height: 22px; fill: rgba(255,255,255,.3); transition: fill .18s; }
.lgp-ind-card:hover svg, .lgp-ind-card.selected svg { fill: #a78bfa; }
.lgp-ind-card span { font-size: 9px; color: var(--muted); font-weight: 500; line-height: 1.25; }
.lgp-ind-card.selected span { color: #c4b5fd; }

/* ════════════════════════════════════════════════════
   FORM ELEMENTS
════════════════════════════════════════════════════ */
.lgp-frow { display: block; margin-bottom: 18px; }
.lgp-label {
  display: flex; align-items: center; gap: 6px;
  font-size: 10px; font-weight: 700; letter-spacing: .7px;
  text-transform: uppercase; color: var(--muted);
  margin-bottom: 8px;
}
.lgp-input {
  display: block; width: 100%;
  border: 1px solid var(--bdr2); border-radius: var(--r1);
  padding: 11px 14px; font-family: inherit;
  font-size: 14px; font-weight: 500;
  color: var(--txt); background: var(--card); outline: none;
  transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none; appearance: none;
}
.lgp-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(124,92,252,.15);
}
.lgp-input::placeholder { color: rgba(255,255,255,.18); }

.lgp-pills { display: flex; flex-wrap: wrap; gap: 7px; }
.lgp-pill {
  display: inline-block; padding: 6px 14px; border-radius: 40px;
  font-size: 12px; font-weight: 500; cursor: pointer;
  border: 1px solid var(--bdr2); color: var(--muted);
  background: var(--card); user-select: none; transition: all .15s;
}
.lgp-pill:hover { border-color: var(--accent); color: #c4b5fd; }
.lgp-pill.selected { border-color: var(--accent); background: rgba(124,92,252,.2); color: #c4b5fd; }

.lgp-layout-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; }
.lgp-layout-card {
  border: 1px solid var(--bdr); border-radius: var(--r2);
  overflow: hidden; cursor: pointer; transition: all .15s; background: var(--card);
}
.lgp-layout-card:hover, .lgp-layout-card.selected { border-color: var(--accent); }
.lgp-layout-card.selected { background: rgba(124,92,252,.12); }
.lgp-layout-prev {
  height: 54px; display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.02); gap: 4px; font-size: 11px; color: var(--muted);
}
.lgp-layout-lbl { font-size: 9px; color: var(--muted); text-align: center; padding: 6px; font-weight: 500; }
.lgp-layout-card.selected .lgp-layout-lbl { color: #c4b5fd; }

/* section divider label */
.lgp-div {
  display: flex; align-items: center; gap: 10px;
  font-size: 9px; font-weight: 800; color: var(--muted2);
  text-transform: uppercase; letter-spacing: .9px;
  margin: 20px 0 12px;
}
.lgp-div::after { content: ''; flex: 1; height: 1px; background: var(--bdr); }

/* ════════════════════════════════════════════════════
   COLORS
════════════════════════════════════════════════════ */
.lgp-palette-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.lgp-palette {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 9px 10px; border-radius: var(--r1);
  border: 1px solid var(--bdr); cursor: pointer;
  transition: all .15s; background: var(--card);
}
.lgp-palette:hover, .lgp-palette.selected {
  border-color: var(--accent); background: rgba(124,92,252,.1);
}
.lgp-palette-dots { display: flex; gap: 3px; }
.lgp-pd { width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgba(255,255,255,.08); }
.lgp-palette span { font-size: 9px; color: var(--muted); font-weight: 500; }

.lgp-custom-cp { display: flex; gap: 20px; flex-wrap: wrap; align-items: flex-end; margin-top: 10px; }
.lgp-custom-cp label { font-size: 9px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 6px; }
input[type=color].lgp-cp {
  display: block; width: 38px; height: 38px;
  border-radius: 50%; border: 2px solid var(--bdr2);
  padding: 3px; cursor: pointer; background: none;
  -webkit-appearance: none;
}

.lgp-bg-vars { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.lgp-bg-var {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 2px;
  border-radius: var(--r1); height: 48px; min-width: 80px;
  padding: 0 14px; font-size: 11px; font-weight: 700; cursor: pointer;
  border: 1px solid var(--bdr); transition: border-color .15s;
}
.lgp-bg-var:hover, .lgp-bg-var.selected { border-color: var(--accent); }
.lgp-bg-var span { font-size: 8px; font-weight: 400; opacity: .5; }

/* ════════════════════════════════════════════════════
   FONTS
════════════════════════════════════════════════════ */
.lgp-font-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.lgp-font-card {
  border: 1px solid var(--bdr); border-radius: var(--r2);
  padding: 13px 12px; cursor: pointer; transition: all .15s; background: var(--card);
}
.lgp-font-card:hover, .lgp-font-card.selected {
  border-color: var(--accent); background: rgba(124,92,252,.1);
}
.lgp-font-prev { font-size: 26px; margin-bottom: 4px; line-height: 1; color: #fff; display: block; }
.lgp-font-nm   { font-size: 10px; color: var(--muted); font-weight: 500; }
.lgp-font-card.selected .lgp-font-nm { color: #c4b5fd; }

.lgp-tc-row { display: flex; gap: 6px; flex-wrap: wrap; }
.lgp-tc-btn {
  border: 1px solid var(--bdr); background: var(--card);
  border-radius: var(--r1); padding: 7px 14px;
  font-family: inherit; font-size: 12px; font-weight: 500;
  color: var(--muted); cursor: pointer; transition: all .15s;
}
.lgp-tc-btn.selected { border-color: var(--accent); background: rgba(124,92,252,.18); color: #c4b5fd; }

.lgp-slider-row { display: flex; align-items: center; gap: 10px; }
.lgp-slider-row .sm { font-size: 9px; color: var(--muted); white-space: nowrap; }
input[type=range].lgp-slider { flex: 1; accent-color: var(--accent); }
.lgp-slider-val { font-size: 11px; font-weight: 700; color: var(--accent); min-width: 34px; text-align: right; }

/* ════════════════════════════════════════════════════
   SYMBOLS
════════════════════════════════════════════════════ */
.lgp-sym-grid { display: grid; grid-template-columns: repeat(6,1fr); gap: 8px; }
.lgp-sym-card {
  display: flex; flex-direction: column;
  align-items: center; gap: 5px;
  border: 1px solid var(--bdr); border-radius: var(--r2);
  padding: 11px 4px; cursor: pointer; transition: all .18s;
  text-align: center; background: var(--card);
}
.lgp-sym-card:hover {
  border-color: var(--accent); background: rgba(124,92,252,.1); transform: translateY(-1px);
}
.lgp-sym-card.selected {
  border-color: var(--accent); background: rgba(124,92,252,.2);
  box-shadow: 0 0 0 1px rgba(124,92,252,.28);
}
.lgp-sym-em { font-size: 20px; line-height: 1; display: block; }
.lgp-sym-card span { font-size: 8px; color: var(--muted); font-weight: 500; }
.lgp-sym-card.selected span { color: #c4b5fd; }

.lgp-style-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.lgp-style-card {
  border: 1px solid var(--bdr); border-radius: var(--r2);
  overflow: hidden; cursor: pointer; transition: all .15s; background: var(--card);
}
.lgp-style-card:hover, .lgp-style-card.selected { border-color: var(--accent); }
.lgp-style-prev { height: 64px; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; }
.lgp-style-lbl { font-size: 10px; color: var(--muted); text-align: center; padding: 7px; font-weight: 500; }
.lgp-style-card.selected .lgp-style-lbl { color: #c4b5fd; }

/* ════════════════════════════════════════════════════
   ADVANCED
════════════════════════════════════════════════════ */
.lgp-adv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.lgp-adv-card {
  display: flex; gap: 10px; align-items: flex-start;
  border: 1px solid var(--bdr); border-radius: var(--r2);
  padding: 13px; cursor: pointer; transition: all .15s; background: var(--card);
}
.lgp-adv-card:hover, .lgp-adv-card.selected {
  border-color: var(--accent); background: rgba(124,92,252,.1);
}
.lgp-adv-card.lgp-off { opacity: .28; cursor: not-allowed; pointer-events: none; }
.lgp-adv-ic {
  width: 34px; height: 34px; border-radius: var(--r1);
  background: rgba(255,255,255,.06);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 16px; min-width: 34px;
}
.lgp-adv-title { font-size: 11px; font-weight: 600; margin-bottom: 3px; color: var(--txt); }
.lgp-adv-desc  { font-size: 10px; color: var(--muted); line-height: 1.45; }
.lgp-badge { display: inline-block; font-size: 7px; font-weight: 800; padding: 2px 5px; border-radius: 4px; margin-left: 4px; text-transform: uppercase; vertical-align: middle; }
.lgp-badge-ai  { background: rgba(124,92,252,.22); color: #c4b5fd; }
.lgp-badge-new { background: rgba(34,197,94,.18); color: #86efac; }
.lgp-badge-off { background: rgba(255,255,255,.07); color: var(--muted); }

.lgp-tgl-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 0; border-bottom: 1px solid var(--bdr); gap: 12px;
}
.lgp-tgl-row:last-child { border-bottom: none; }
.lgp-tgl-row strong { display: block; font-size: 12px; font-weight: 600; color: var(--txt); }
.lgp-tgl-row p { margin: 2px 0 0; font-size: 10px; color: var(--muted); }
.lgp-tgl { position: relative; width: 34px; height: 18px; flex-shrink: 0; min-width: 34px; }
.lgp-tgl input { opacity: 0; width: 0; height: 0; position: absolute; }
.lgp-tgl-sl {
  position: absolute; inset: 0;
  background: rgba(255,255,255,.1); border-radius: 18px;
  cursor: pointer; transition: background .2s;
}
.lgp-tgl-sl::before {
  content: ''; position: absolute;
  width: 12px; height: 12px; left: 3px; top: 3px;
  background: rgba(255,255,255,.65); border-radius: 50%;
  transition: transform .2s; box-shadow: 0 1px 4px rgba(0,0,0,.5);
}
.lgp-tgl input:checked + .lgp-tgl-sl { background: var(--accent); }
.lgp-tgl input:checked + .lgp-tgl-sl::before { transform: translateX(16px); background: #fff; }

/* ════════════════════════════════════════════════════
   BUTTONS
════════════════════════════════════════════════════ */
.lgp-btn {
  display: inline-flex !important; align-items: center; gap: 6px;
  border: none; cursor: pointer; font-family: inherit;
  font-size: 13px; font-weight: 600;
  border-radius: var(--r1); padding: 9px 18px;
  transition: all .15s; line-height: 1; white-space: nowrap;
  text-decoration: none;
}
.lgp-btn-out {
  background: rgba(255,255,255,.05);
  border: 1px solid var(--bdr2) !important; color: var(--txt);
}
.lgp-btn-out:hover { background: rgba(255,255,255,.09); }
.lgp-btn-pri { background: var(--grad); color: #fff !important; box-shadow: 0 3px 14px rgba(124,92,252,.35); }
.lgp-btn-pri:hover { box-shadow: 0 4px 20px rgba(124,92,252,.55); opacity: .92; }

.lgp-btn-ai {
  display: inline-flex !important; align-items: center; gap: 5px;
  background: rgba(124,92,252,.18); color: #c4b5fd;
  border: 1px solid rgba(124,92,252,.35) !important;
  font-size: 11px; padding: 7px 13px; border-radius: var(--r1);
  cursor: pointer; font-family: inherit; font-weight: 600;
  transition: all .15s; white-space: nowrap;
}
.lgp-btn-ai:hover { background: rgba(124,92,252,.32); border-color: var(--accent) !important; }
.lgp-btn-ai:disabled { opacity: .38; cursor: not-allowed; }

.lgp-btn-gen {
  display: inline-flex !important; align-items: center; gap: 7px;
  background: var(--grad); color: #fff !important;
  border: none !important; border-radius: var(--r1);
  padding: 10px 20px; font-family: inherit;
  font-size: 13px; font-weight: 700; cursor: pointer;
  transition: all .15s; box-shadow: 0 3px 16px rgba(124,92,252,.4);
  white-space: nowrap;
}
.lgp-btn-gen:hover { opacity: .9; transform: translateY(-1px); box-shadow: 0 5px 24px rgba(124,92,252,.55); }
.lgp-btn-gen-full { width: 100%; justify-content: center; padding: 11px 16px; }

/* ════════════════════════════════════════════════════
   AI RESULT AREAS
════════════════════════════════════════════════════ */
.lgp-ai-res { display: block; margin-top: 12px; }
.lgp-ai-loading {
  display: flex; align-items: center; gap: 8px;
  font-size: 11px; color: var(--muted); padding: 12px;
}
.lgp-spin {
  width: 15px; height: 15px; flex-shrink: 0;
  border: 2px solid rgba(255,255,255,.08); border-top-color: var(--accent);
  border-radius: 50%; animation: lgp-spin .7s linear infinite;
}
@keyframes lgp-spin { to { transform: rotate(360deg); } }

.lgp-ai-vars { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.lgp-ai-var-card { border: 1px solid var(--bdr); border-radius: var(--r2); overflow: hidden; cursor: pointer; transition: all .15s; background: var(--card); }
.lgp-ai-var-card:hover, .lgp-ai-var-card.selected { border-color: var(--accent); }
.lgp-ai-var-prev { height: 76px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 8px; }
.lgp-ai-var-foot { font-size: 9px; color: var(--muted); padding: 5px 10px; border-top: 1px solid var(--bdr); line-height: 1.4; }

.lgp-ai-fonts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.lgp-ai-font-card { border: 1px solid var(--bdr); border-radius: var(--r2); padding: 11px; cursor: pointer; transition: all .15s; background: var(--card); }
.lgp-ai-font-card:hover, .lgp-ai-font-card.selected { border-color: var(--accent); background: rgba(124,92,252,.09); }
.lgp-ai-font-prev { font-size: 20px; margin-bottom: 3px; color: #fff; display: block; }
.lgp-ai-font-info { font-size: 10px; color: var(--muted); }
.lgp-ai-font-info strong { color: var(--txt); display: block; font-size: 11px; margin-bottom: 1px; }

/* ════════════════════════════════════════════════════
   DOWNLOAD MODAL
════════════════════════════════════════════════════ */
.lgp-modal-bg {
  position: fixed; inset: 0; background: rgba(0,0,0,.8);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  z-index: 99999; display: flex; align-items: center; justify-content: center;
  animation: lgp-fi .2s ease;
}
@keyframes lgp-fi { from{opacity:0} to{opacity:1} }
.lgp-modal {
  background: var(--card); border: 1px solid var(--bdr2);
  border-radius: var(--r4); width: 480px; max-width: 95vw;
  box-shadow: 0 28px 72px rgba(0,0,0,.7); overflow: hidden;
}
.lgp-modal-hd {
  padding: 22px 24px 18px; border-bottom: 1px solid var(--bdr);
  background: linear-gradient(135deg,rgba(124,92,252,.1),rgba(79,140,255,.05));
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
}
.lgp-modal-hd h3 { font-size: 17px !important; font-weight: 700; color: #fff; margin-bottom: 4px; }
.lgp-modal-hd p  { font-size: 12px; color: var(--muted); }
.lgp-modal-x {
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(255,255,255,.08); border: 1px solid var(--bdr);
  cursor: pointer; color: var(--muted); font-size: 14px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.lgp-modal-bd { padding: 22px 24px; }
.lgp-ad-wrap { border-radius: var(--r2); background: rgba(255,255,255,.03); border: 1px dashed var(--bdr2); margin-bottom: 16px; min-height: 90px; display: flex; align-items: center; justify-content: center; }
.lgp-ad-ph { text-align: center; color: var(--muted); font-size: 12px; padding: 20px; }
.lgp-countdown { text-align: center; padding: 11px; margin-bottom: 14px; font-size: 12px; font-weight: 700; color: #c4b5fd; background: rgba(124,92,252,.13); border: 1px solid rgba(124,92,252,.26); border-radius: var(--r1); }
.lgp-dl-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.lgp-dl-btn {
  border: 1px solid var(--bdr2); border-radius: var(--r2);
  padding: 13px 8px; display: flex; flex-direction: column;
  align-items: center; gap: 5px; cursor: pointer; transition: all .15s;
  background: var(--surface); font-family: inherit;
  font-size: 11px; font-weight: 600; color: var(--txt);
}
.lgp-dl-btn:hover { border-color: var(--accent); background: rgba(124,92,252,.12); }
.lgp-dl-btn:disabled { opacity: .28; cursor: not-allowed; }
.lgp-dl-ic { font-size: 22px; }

/* ════════════════════════════════════════════════════
   TOAST
════════════════════════════════════════════════════ */
.lgp-toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%);
  background: var(--card); border: 1px solid var(--bdr2);
  color: var(--txt); border-radius: var(--r2);
  padding: 11px 22px; font-size: 13px; font-weight: 500;
  opacity: 0; pointer-events: none; transition: opacity .3s; z-index: 999999;
  font-family: 'Inter', sans-serif; box-shadow: 0 8px 32px rgba(0,0,0,.6);
  white-space: nowrap;
}
.lgp-toast.show { opacity: 1; }

/* ════════════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════════════ */
@media (max-width: 1000px) {
  .lgp-body { grid-template-columns: 1fr !important; }
  .lgp-sidebar { position: static; }
  .lgp-shell { padding: 20px 20px 40px; }
  .lgp-ind-grid { grid-template-columns: repeat(4,1fr) !important; }
  .lgp-sym-grid { grid-template-columns: repeat(4,1fr) !important; }
}
@media (max-width: 680px) {
  .lgp-shell { padding: 16px 16px 32px; }
  .lgp-hero  { padding: 40px 16px 36px; }
  .lgp-hero-title { font-size: 30px !important; }
  .lgp-ind-grid { grid-template-columns: repeat(3,1fr) !important; }
  .lgp-font-grid, .lgp-style-grid { grid-template-columns: repeat(2,1fr) !important; }
  .lgp-adv-grid { grid-template-columns: 1fr !important; }
  .lgp-ph, .lgp-pb, .lgp-pf { padding-left: 14px !important; padding-right: 14px !important; }
}
