/* ==========================================================================
   GT7 SVG VECTORIZER – MODERN GLASSMORPHISM DARK UI
   Brand Palette derived from GT7-Vectorizer-Rounded.png:
   - Deep Carbon Obsidian: #080b10 / #0e131c / #151c28
   - GT Electric Blue:     #1e6bff / #3b82f6 / #60a5fa
   - GT Racing Red:        #e11d2a / #ef4444
   - Chrome Silver:        #f8fafc / #cbd5e1 / #94a3b8
   - GT7 Status Emerald:   #10b981 / #14b8a6
   - Strictly NO gold accents.
   ========================================================================== */

:root {
  --bg-deep: #070a0f;
  --bg-base: #0c1018;
  --bg-elevated: rgba(18, 25, 38, 0.74);
  --bg-subpanel: rgba(25, 34, 50, 0.56);
  --bg-input: rgba(10, 14, 22, 0.78);
  --bg-modal: rgba(13, 18, 28, 0.88);

  --glass-border: rgba(255, 255, 255, 0.085);
  --glass-border-strong: rgba(255, 255, 255, 0.16);
  --glass-highlight: rgba(255, 255, 255, 0.04);
  --glass-blur: blur(20px);

  --gt-blue: #1e6bff;
  --gt-blue-hover: #357bff;
  --gt-blue-soft: rgba(30, 107, 255, 0.18);
  --gt-blue-glow: rgba(30, 107, 255, 0.38);

  --gt-red: #e11d2a;
  --gt-red-hover: #f02836;
  --gt-red-soft: rgba(225, 29, 42, 0.18);

  --gt-emerald: #10b981;
  --gt-emerald-hover: #059669;
  --gt-emerald-soft: rgba(16, 185, 129, 0.18);

  --gt-cyan: #06b6d4;
  --gt-cyan-soft: rgba(6, 182, 212, 0.18);

  --text-primary: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-muted: #8b9bb4;

  --radius-xl: 18px;
  --radius-lg: 14px;
  --radius-md: 10px;
  --radius-sm: 8px;

  --shadow-glass: 0 18px 45px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  --shadow-subtle: 0 8px 24px rgba(0, 0, 0, 0.35);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  --transition-fast: 160ms cubic-bezier(0.22, 1, 0.36, 1);
  --transition-smooth: 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

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

[hidden] {
  display: none !important;
}

html,
body {
  height: 100%;
  background-color: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
}

/* Ambient Background Glows */
.ambient-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 14% 12%, rgba(30, 107, 255, 0.13), transparent 42%),
    radial-gradient(circle at 86% 18%, rgba(225, 29, 42, 0.09), transparent 38%),
    radial-gradient(circle at 50% 90%, rgba(30, 107, 255, 0.07), transparent 48%),
    linear-gradient(180deg, #070a0f 0%, #0b1019 100%);
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(95px);
  opacity: 0.35;
}

.orb-blue {
  width: 480px;
  height: 480px;
  top: -140px;
  left: -100px;
  background: rgba(30, 107, 255, 0.28);
}

.orb-red {
  width: 420px;
  height: 420px;
  bottom: -140px;
  right: -80px;
  background: rgba(225, 29, 42, 0.2);
}

/* Reusable Glass Surfaces */
.glass-panel {
  background: var(--bg-elevated);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-glass);
}

.glass-subpanel {
  background: var(--bg-subpanel);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
}

/* Icons */
.icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.icon-sm {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.icon-xs {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.icon-lg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.icon-accent {
  width: 22px;
  height: 22px;
  color: var(--gt-blue);
  flex-shrink: 0;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.app-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 20px;
  border-top: none;
  border-left: none;
  border-right: none;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  user-select: none;
}

.brand-logo {
  height: 52px;
  width: 52px;
  border-radius: 50%;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.55));
  transition: transform var(--transition-fast);
}

.header-brand:hover .brand-logo {
  transform: scale(1.03);
}

.brand-titles {
  display: flex;
  flex-direction: column;
}

.brand-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-name {
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.brand-badge {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--gt-blue-soft);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.35);
}

.brand-subtitle {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(8, 12, 19, 0.65);
  padding: 5px;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
}

.nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 9px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.nav-pill:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.nav-pill.active {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(30, 107, 255, 0.9), rgba(23, 82, 204, 0.9));
  border-color: rgba(96, 165, 250, 0.4);
  box-shadow: 0 4px 14px rgba(30, 107, 255, 0.35);
}

.nav-tag-soon {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-icon-glass {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid var(--glass-border-strong);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-icon-glass:hover {
  background: rgba(30, 107, 255, 0.18);
  border-color: rgba(96, 165, 250, 0.45);
}

/* ==========================================================================
   MAIN SECTIONS & EDITOR LAYOUT
   ========================================================================== */
.app-main {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 14px 18px;
}

.app-section {
  display: none;
  flex: 1;
}

.app-section.active {
  display: flex;
  flex-direction: column;
  animation: fadeIn 200ms ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.editor-layout {
  display: grid;
  grid-template-columns: 390px 1fr;
  gap: 16px;
  flex: 1;
  min-height: calc(100vh - 145px);
}

/* ==========================================================================
   LEFT SIDEBAR (TOOLS & PARAMETERS)
   ========================================================================== */
.editor-sidebar {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-xl);
  overflow: hidden;
  max-height: calc(100vh - 140px);
}

.sidebar-top {
  padding: 14px 16px 10px;
  border-bottom: 1px solid var(--glass-border);
}

.segmented-control {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: rgba(7, 10, 15, 0.72);
  padding: 5px;
  border-radius: 11px;
  border: 1px solid var(--glass-border);
}

.seg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 10px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.seg-btn:hover {
  color: var(--text-primary);
}

.seg-btn.active {
  background: linear-gradient(135deg, var(--gt-blue), #1554d1);
  color: #ffffff;
  box-shadow: 0 3px 12px rgba(30, 107, 255, 0.35);
}

.sidebar-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 12px 16px;
}

.sidebar-scroll::-webkit-scrollbar {
  width: 6px;
}

.sidebar-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 999px;
}

.tool-panel {
  display: none;
  flex-direction: column;
  gap: 11px;
}

.tool-panel.active {
  display: flex;
}

.control-card {
  background: rgba(12, 17, 26, 0.62);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 12px 14px;
}

.control-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.control-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.control-label strong {
  color: #ffffff;
  font-weight: 700;
}

.step-buttons {
  display: flex;
  gap: 8px;
}

.btn-step {
  width: 28px;
  height: 26px;
  border-radius: 7px;
  border: 1px solid var(--glass-border-strong);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-step:hover {
  background: var(--gt-blue);
  border-color: var(--gt-blue-hover);
}

/* Range Sliders */
.gt-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  outline: none;
  cursor: pointer;
}

.gt-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid var(--gt-blue);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  transition: transform 120ms ease;
}

.gt-slider::-webkit-slider-thumb:hover {
  transform: scale(1.14);
}

.gt-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid var(--gt-blue);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  cursor: pointer;
}

.slider-scale {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Detected Color Palette Swatches */
.palette-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 9px;
  min-height: 18px;
}

.palette-swatch {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.35);
}

/* Sample Loader Chips */
.sample-loader-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}

.sample-label {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.btn-chip {
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid var(--glass-border-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.73rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-chip:hover {
  background: var(--gt-blue-soft);
  color: #ffffff;
  border-color: rgba(96, 165, 250, 0.45);
}

/* Switches */
.switches-card {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}

.switch-row input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.switch-text {
  display: flex;
  flex-direction: column;
}

.switch-title {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-primary);
}

.switch-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.gt-switch {
  position: relative;
  width: 44px;
  height: 24px;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  border: 1px solid var(--glass-border-strong);
  flex-shrink: 0;
  transition: background var(--transition-fast), border-color var(--transition-fast);
}

.gt-switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
  transition: transform var(--transition-fast);
}

.switch-row input:checked + .gt-switch {
  background: var(--gt-blue);
  border-color: rgba(96, 165, 250, 0.5);
}

.switch-row input:checked + .gt-switch.switch-emerald {
  background: var(--gt-emerald);
  border-color: rgba(52, 211, 153, 0.5);
}

.switch-row input:checked + .gt-switch.switch-red {
  background: var(--gt-red);
  border-color: rgba(248, 113, 113, 0.5);
}

.switch-row input:checked + .gt-switch::after {
  transform: translateX(20px);
}

/* Text Generator Layer Controls */
.layer-tabs-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  background: rgba(8, 12, 18, 0.72);
  padding: 5px;
  border-radius: 10px;
  border: 1px solid var(--glass-border);
}

.layer-tab {
  padding: 7px 8px;
  border-radius: 7px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.layer-tab.active {
  background: rgba(30, 107, 255, 0.25);
  color: #ffffff;
  border: 1px solid rgba(96, 165, 250, 0.45);
}

.layer-editor {
  display: none;
  flex-direction: column;
  gap: 10px;
}

.layer-editor.active {
  display: flex;
}

.field-label {
  display: block;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 5px;
}

.gt-input,
.gt-textarea {
  width: 100%;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border-strong);
  background: var(--bg-input);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.88rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.gt-input:focus,
.gt-textarea:focus {
  outline: none;
  border-color: var(--gt-blue);
  box-shadow: 0 0 0 3px var(--gt-blue-soft);
}

.font-color-row {
  display: grid;
  grid-template-columns: 1fr 112px;
  gap: 8px;
  margin-top: 10px;
}

.btn-font-select {
  width: 100%;
  justify-content: space-between;
  padding: 8px 10px;
  font-size: 0.82rem;
}

.font-btn-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.color-picker-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border-strong);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.color-picker-btn input[type="color"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.slider-group {
  margin-bottom: 10px;
}

.slider-group:last-child {
  margin-bottom: 0;
}

.btn-micro-reset {
  padding: 2px 7px;
  border-radius: 5px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.7rem;
  cursor: pointer;
}

.btn-micro-reset:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

.mt-12 {
  margin-top: 12px;
}

/* Sidebar Sticky Footer (Stats & Export) */
.sidebar-footer {
  padding: 12px 16px 14px;
  border-top: 1px solid var(--glass-border);
  background: rgba(9, 13, 21, 0.84);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stats-box {
  background: rgba(16, 23, 36, 0.9);
  border: 1px solid var(--glass-border-strong);
  border-radius: var(--radius-md);
  padding: 10px 12px;
}

.stats-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.stats-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.stats-value {
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
}

.stats-progress-track {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
  margin: 7px 0;
}

.stats-progress-bar {
  height: 100%;
  border-radius: 999px;
  background: var(--gt-emerald);
  transition: width 220ms ease, background-color 220ms ease;
}

.stats-subrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.74rem;
}

.stats-status {
  font-weight: 600;
  color: var(--text-secondary);
}

.stats-limit {
  color: var(--text-muted);
}

/* Status color modifiers (No gold!) */
.stats-value.status-ok,
.stats-status.status-ok {
  color: #34d399;
}

.stats-value.status-split,
.stats-status.status-split {
  color: #38bdf8;
}

.stats-value.status-over,
.stats-status.status-over {
  color: #f87171;
}

.btn-export {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 48px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(52, 211, 153, 0.45);
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(16, 185, 129, 0.3);
  transition: all var(--transition-fast);
}

.btn-export:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(16, 185, 129, 0.42);
  filter: brightness(1.06);
}

.sidebar-help-teaser {
  background: rgba(30, 107, 255, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.28);
  border-radius: 8px;
  padding: 7px 10px;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.75rem;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.sidebar-help-teaser strong {
  color: #60a5fa;
}

.sidebar-help-teaser:hover {
  background: rgba(30, 107, 255, 0.2);
  border-color: rgba(96, 165, 250, 0.5);
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(96, 165, 250, 0.45);
  background: linear-gradient(135deg, var(--gt-blue) 0%, #1550c8 100%);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(30, 107, 255, 0.3);
  transition: all var(--transition-fast);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--gt-blue-hover) 0%, #1d5fe0 100%);
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border-strong);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28);
}

.btn-full {
  width: 100%;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.78rem;
  border-radius: 8px;
}

/* ==========================================================================
   WORKSPACE / PREVIEW AREA
   ========================================================================== */
.editor-workspace {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-xl);
  overflow: hidden;
  min-height: 540px;
}

.workspace-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--glass-border);
  background: rgba(10, 14, 22, 0.65);
}

.view-mode-group {
  display: inline-flex;
  gap: 6px;
  background: rgba(6, 9, 14, 0.75);
  padding: 4px;
  border-radius: 9px;
  border: 1px solid var(--glass-border);
}

.view-tab {
  padding: 6px 14px;
  border-radius: 7px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.view-tab.active {
  background: var(--gt-blue);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(30, 107, 255, 0.35);
}

.text-mode-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(30, 107, 255, 0.14);
  border: 1px solid rgba(96, 165, 250, 0.3);
  color: #93c5fd;
  font-size: 0.8rem;
  font-weight: 600;
}

.zoom-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-zoom {
  padding: 6px 11px;
  border-radius: 7px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-zoom:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.btn-zoom.active {
  background: rgba(30, 107, 255, 0.24);
  border-color: rgba(96, 165, 250, 0.5);
  color: #ffffff;
}

.zoom-divider {
  width: 1px;
  height: 20px;
  background: var(--glass-border-strong);
  margin: 0 4px;
}

.btn-zoom-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}

.btn-zoom-icon:hover {
  background: var(--gt-blue);
}

.zoom-readout {
  min-width: 48px;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-secondary);
}

/* Center Stage & Checkerboard */
.checkerboard-bg {
  background-color: #141923;
  background-image:
    linear-gradient(45deg, #1b2230 25%, transparent 25%),
    linear-gradient(-45deg, #1b2230 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #1b2230 75%),
    linear-gradient(-45deg, transparent 75%, #1b2230 75%);
  background-size: 24px 24px;
  background-position: 0 0, 0 12px, 12px -12px, -12px 0;
}

.workspace-stage {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
  padding: 20px;
}

.workspace-stage.drag-over {
  outline: 2px dashed var(--gt-blue);
  outline-offset: -12px;
  background-color: rgba(30, 107, 255, 0.12);
}

/* Empty Dropzone */
.dropzone-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.dropzone-card {
  max-width: 480px;
  width: 100%;
  padding: 38px 28px;
  text-align: center;
  border: 1px dashed rgba(148, 163, 184, 0.35);
  cursor: pointer;
  transition: all var(--transition-smooth);
}

.dropzone-card:hover {
  border-color: var(--gt-blue);
  background: rgba(30, 107, 255, 0.08);
  transform: translateY(-2px);
}

.dropzone-icon-wrap {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 16px;
  background: var(--gt-blue-soft);
  border: 1px solid rgba(96, 165, 250, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #60a5fa;
}

.dropzone-icon {
  width: 32px;
  height: 32px;
}

.dropzone-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: #ffffff;
}

.dropzone-subtitle {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 18px;
}

.dropzone-badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.spec-badge {
  font-size: 0.74rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
}

/* Paused Image Vectorizer Info Box & Stage Card (True Glassmorphism) */
.seg-badge-paused {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(230, 36, 41, 0.22);
  border: 1px solid rgba(230, 36, 41, 0.45);
  color: #fca5a5;
  margin-left: 2px;
}

.status-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f87171;
  box-shadow: 0 0 8px rgba(248, 113, 113, 0.85);
  display: inline-block;
  flex-shrink: 0;
}

.paused-info-box {
  position: relative;
  overflow: hidden;
  padding: 18px 16px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at top right, rgba(230, 36, 41, 0.16), transparent 55%),
    radial-gradient(circle at bottom left, rgba(30, 107, 255, 0.18), transparent 60%),
    rgba(19, 27, 42, 0.68);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.paused-info-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.paused-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(230, 36, 41, 0.18);
  border: 1px solid rgba(248, 113, 113, 0.42);
  color: #fecaca;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.paused-version-tag {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(30, 107, 255, 0.18);
  border: 1px solid rgba(96, 165, 250, 0.35);
  color: #93c5fd;
}

.paused-info-title {
  font-size: 0.98rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.3;
}

.paused-info-text {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.paused-info-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
}

.controls-paused-disabled {
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 0.36;
  pointer-events: none;
  user-select: none;
  filter: grayscale(0.35);
}

.dropzone-paused-card {
  position: relative;
  overflow: hidden;
  max-width: 550px;
  padding: 38px 34px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 18% 15%, rgba(30, 107, 255, 0.22), transparent 52%),
    radial-gradient(circle at 85% 85%, rgba(230, 36, 41, 0.18), transparent 52%),
    rgba(16, 23, 36, 0.72);
  backdrop-filter: blur(26px) saturate(170%);
  -webkit-backdrop-filter: blur(26px) saturate(170%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.62),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  cursor: default;
}

.dropzone-paused-card:hover {
  transform: none;
  border-color: rgba(255, 255, 255, 0.22);
  background:
    radial-gradient(circle at 18% 15%, rgba(30, 107, 255, 0.24), transparent 52%),
    radial-gradient(circle at 85% 85%, rgba(230, 36, 41, 0.2), transparent 52%),
    rgba(16, 23, 36, 0.75);
}

.paused-stage-glow {
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 260px;
  height: 120px;
  background: radial-gradient(circle, rgba(30, 107, 255, 0.28), transparent 70%);
  pointer-events: none;
}

.paused-stage-top-bar {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.paused-stage-icon-wrap {
  background: linear-gradient(135deg, rgba(30, 107, 255, 0.22), rgba(230, 36, 41, 0.18));
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  color: #93c5fd;
}

.paused-stage-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #e2e8f0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.paused-feature-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 22px;
}

.paused-stage-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
}

.paused-stage-buttons > button {
  margin: 3px;
}

/* Preview Viewport */
.preview-viewport {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
}

.preview-transform-box {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: width 150ms ease, height 150ms ease;
}

.preview-media,
.preview-svg-holder svg {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.45));
}

/* Interactive Text Stage */
.text-stage-viewport {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  touch-action: none;
}

.text-canvas-wrapper {
  width: 100%;
  height: 100%;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  position: relative;
}

.text-canvas-wrapper:active {
  cursor: grabbing;
}

.text-live-svg-stage {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.text-live-svg-stage svg {
  max-width: 92%;
  max-height: 88%;
  width: auto;
  height: auto;
  overflow: visible;
  filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.5));
}

/* Processing Overlay */
.processing-overlay {
  position: absolute;
  inset: 0;
  background: rgba(7, 10, 15, 0.55);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 15;
}

.processing-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 24px;
  border-radius: var(--radius-lg);
  font-weight: 700;
  color: #ffffff;
}

.spinner {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--gt-blue);
  animation: spin 0.75s linear infinite;
}

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

/* Bottom Quality Notice Bar */
.workspace-notice-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  background: rgba(9, 13, 21, 0.82);
  border-top: 1px solid var(--glass-border);
  color: var(--text-muted);
  font-size: 0.78rem;
}

.notice-icon {
  width: 16px;
  height: 16px;
  color: #60a5fa;
  flex-shrink: 0;
}

/* ==========================================================================
   COMMUNITY SECTIONS: DECAL-HILFE, LIBRARY PREVIEW & SUPPORT
   ========================================================================== */
.content-container {
  max-width: 1220px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 8px 0 28px;
}

.narrow-container {
  max-width: 780px;
}

.section-hero {
  padding: 28px 32px;
  border-radius: var(--radius-xl);
}

.hero-badge {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--gt-blue-soft);
  color: #60a5fa;
  border: 1px solid rgba(96, 165, 250, 0.35);
  margin-bottom: 12px;
}

.section-title {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  color: #ffffff;
}

.section-lead {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 820px;
  margin-bottom: 22px;
}

.hero-lead-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 24px;
  align-items: start;
}

.hero-prose {
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: var(--text-secondary);
  font-size: 0.96rem;
}

.highlight-paragraph {
  color: #ffffff;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 10px 14px;
  border-left: 3px solid var(--gt-blue);
  background: rgba(30, 107, 255, 0.1);
  border-radius: 0 8px 8px 0;
}

.hero-examples-card {
  padding: 20px;
}

.subpanel-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: #ffffff;
}

.accepted-sources-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.accepted-sources-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.source-icon {
  font-size: 1.35rem;
  line-height: 1;
  padding-top: 2px;
}

.accepted-sources-list strong {
  display: block;
  font-size: 0.88rem;
  color: #ffffff;
}

.accepted-sources-list span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Two Column Help Layout */
.help-two-col {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 20px;
  align-items: start;
}

.info-card,
.contact-card {
  padding: 26px 28px;
  border-radius: var(--radius-xl);
}

.card-header-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.card-header-row h2 {
  font-size: 1.25rem;
  font-weight: 800;
}

.guidelines-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 22px;
}

.guidelines-list li {
  position: relative;
  padding-left: 22px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.guidelines-list li::before {
  content: "•";
  position: absolute;
  left: 6px;
  color: var(--gt-blue);
  font-weight: 900;
}

/* Inline Coffee Box (No Gold Accents) */
.inline-coffee-box {
  padding: 18px 20px;
  border: 1px solid rgba(59, 130, 246, 0.28);
}

.inline-coffee-box h3 {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: #ffffff;
}

.inline-coffee-box p {
  font-size: 0.84rem;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.btn-coffee,
.btn-coffee-large,
.btn-coffee-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(96, 165, 250, 0.45);
  background: linear-gradient(135deg, rgba(30, 107, 255, 0.25), rgba(6, 182, 212, 0.22));
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.btn-coffee {
  padding: 9px 16px;
  font-size: 0.86rem;
}

.btn-coffee-large {
  padding: 13px 26px;
  font-size: 1rem;
  box-shadow: 0 8px 24px rgba(30, 107, 255, 0.28);
}

.btn-coffee-sm {
  padding: 6px 13px;
  font-size: 0.8rem;
  border-radius: 8px;
}

.btn-coffee:hover,
.btn-coffee-large:hover,
.btn-coffee-sm:hover {
  background: linear-gradient(135deg, rgba(30, 107, 255, 0.45), rgba(6, 182, 212, 0.38));
  transform: translateY(-1px);
}

.config-hint {
  margin-top: 10px;
  font-size: 0.76rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px dashed var(--glass-border-strong);
}

/* Contact & Upload Form */
.config-status-banner {
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.35);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 16px;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.banner-title {
  font-weight: 700;
  color: #38bdf8;
  margin-bottom: 4px;
}

.help-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hp-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

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

.upload-drop-area {
  border: 1px dashed rgba(148, 163, 184, 0.4);
  border-radius: var(--radius-md);
  padding: 18px;
  text-align: center;
  background: rgba(10, 14, 22, 0.55);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.upload-drop-area:hover {
  border-color: var(--gt-blue);
  background: rgba(30, 107, 255, 0.08);
}

.upload-prompt-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  font-size: 0.86rem;
}

.upload-prompt-inner small {
  color: var(--text-muted);
  font-size: 0.74rem;
}

.upload-file-summary {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.file-ok-badge {
  background: var(--gt-emerald-soft);
  color: #34d399;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
}

.file-summary-name {
  font-weight: 700;
  color: #ffffff;
  font-size: 0.86rem;
}

.file-summary-size {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.btn-remove-file {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--glass-border-strong);
  background: rgba(225, 29, 42, 0.2);
  color: #f87171;
  cursor: pointer;
}

.checkbox-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  cursor: pointer;
}

.checkbox-consent input {
  margin-top: 3px;
  accent-color: var(--gt-blue);
}

.form-feedback {
  padding: 12px 14px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
}

.form-feedback.error {
  background: rgba(225, 29, 42, 0.16);
  border: 1px solid rgba(248, 113, 113, 0.45);
  color: #fca5a5;
}

.form-feedback.success {
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(52, 211, 153, 0.45);
  color: #6ee7b7;
}

/* ==========================================================================
   DECAL LIBRARY PREVIEW SECTION (Section 7)
   ========================================================================== */
.library-toolbar-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding: 14px 18px;
  margin-bottom: 22px;
}

.library-search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 260px;
  background: var(--bg-input);
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid var(--glass-border);
}

.gt-input-clean {
  width: 100%;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.86rem;
}

.library-category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.lib-pill {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
}

.lib-pill.active {
  background: var(--gt-blue-soft);
  color: #60a5fa;
  border-color: rgba(96, 165, 250, 0.4);
}

.library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
}

.decal-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform var(--transition-fast);
}

.decal-card:hover {
  transform: translateY(-3px);
}

.decal-card-preview {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  border-bottom: 1px solid var(--glass-border);
}

.decal-card-preview img {
  max-width: 100%;
  max-height: 140px;
  object-fit: contain;
}

.upcoming-emblem-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.kanji-badge {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.78);
}

.sub-badge {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #60a5fa;
}

.decal-card-body {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.decal-card-tags {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.tag-cat {
  color: #60a5fa;
}

.tag-size {
  color: #34d399;
}

.decal-card-title {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 6px;
  color: #ffffff;
}

.decal-card-desc {
  font-size: 0.83rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  flex: 1;
}

.decal-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}

/* ==========================================================================
   SUPPORT SECTION (Buy Me a Coffee)
   ========================================================================== */
.support-hero-card {
  padding: 36px 32px;
  border-radius: var(--radius-xl);
  text-align: center;
}

.coffee-icon-badge {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 18px;
  background: var(--gt-blue-soft);
  border: 1px solid rgba(96, 165, 250, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.9rem;
}

.support-prose {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 580px;
  margin: 0 auto 24px;
  color: var(--text-secondary);
  font-size: 0.98rem;
}

.support-cta-area {
  margin-bottom: 28px;
}

.fairness-note {
  padding: 20px 24px;
  text-align: left;
}

.fairness-note h3 {
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: #ffffff;
}

.fairness-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.86rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.app-footer {
  position: relative;
  z-index: 10;
  padding: 16px 24px;
  border-bottom: none;
  border-left: none;
  border-right: none;
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-col-brand {
  display: flex;
  flex-direction: column;
}

.footer-title {
  font-weight: 800;
  font-size: 0.9rem;
  color: #ffffff;
}

.footer-copy {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.footer-col-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-link {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.footer-link:hover {
  color: #60a5fa;
}

.footer-col-support {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-support-text {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   GLASS POPUPS / MODALS (Welcome & Font Picker)
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(5, 8, 14, 0.76);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop[hidden] {
  display: none !important;
}

.glass-modal {
  background: var(--bg-modal);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border-strong);
  border-radius: 22px;
  box-shadow: 0 28px 75px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalPop 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes modalPop {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.welcome-modal {
  max-width: 760px;
}

.font-modal {
  max-width: 620px;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 26px;
  border-bottom: 1px solid var(--glass-border);
}

.modal-brand-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.modal-logo {
  height: 56px;
  width: 56px;
  border-radius: 50%;
  object-fit: contain;
}

.modal-eyebrow {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #60a5fa;
}

.modal-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
}

.btn-modal-close {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  font-size: 1rem;
  cursor: pointer;
}

.btn-modal-close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.modal-body {
  padding: 22px 26px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.modal-intro {
  font-size: 0.94rem;
  color: var(--text-secondary);
}

.modal-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 4px;
}

.modal-info-block {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.modal-info-full {
  grid-column: 1 / -1;
  border-color: rgba(59, 130, 246, 0.3);
}

.modal-info-block h3 {
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffffff;
}

.modal-info-block p {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 14px;
  padding: 16px 26px;
  border-top: 1px solid var(--glass-border);
  background: rgba(8, 12, 19, 0.65);
}

/* Font Modal Specifics */
.font-modal-toolbar {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.font-custom-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.font-list-container {
  max-height: 330px;
  overflow-y: auto;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  background: rgba(8, 12, 18, 0.72);
  display: flex;
  flex-direction: column;
}

.font-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.font-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.font-item.selected {
  background: var(--gt-blue-soft);
  border-left: 3px solid var(--gt-blue);
}

.font-item-name {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-primary);
}

.font-item-preview {
  font-size: 1.05rem;
  color: var(--text-secondary);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 120;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast-msg {
  padding: 12px 18px;
  border-radius: 12px;
  background: rgba(14, 20, 32, 0.94);
  border: 1px solid var(--glass-border-strong);
  box-shadow: var(--shadow-glass);
  color: #ffffff;
  font-size: 0.86rem;
  font-weight: 600;
  animation: fadeIn 180ms ease-out;
}

/* ==========================================================================
   RESPONSIVE DESIGN (DESKTOP, TABLET, SMARTPHONE)
   ========================================================================== */
@media (max-width: 1120px) {
  .editor-layout {
    grid-template-columns: 340px 1fr;
  }
  .hero-lead-grid,
  .help-two-col {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 880px) {
  .app-header {
    flex-wrap: wrap;
    padding: 10px 14px;
  }
  .header-nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    justify-content: flex-start;
  }
  .editor-layout {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .editor-sidebar {
    max-height: none;
    order: 2;
  }
  .editor-workspace {
    order: 1;
    min-height: 400px;
  }
  .modal-info-grid,
  .form-row-two {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 540px) {
  .app-main {
    padding: 10px;
  }
  .brand-subtitle {
    display: none;
  }
  .workspace-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .zoom-controls {
    justify-content: space-between;
    flex-wrap: wrap;
  }
  .section-hero,
  .info-card,
  .contact-card,
  .support-hero-card {
    padding: 20px 16px;
  }
  .modal-footer {
    flex-direction: column-reverse;
  }
  .modal-footer button {
    width: 100%;
  }
}
