/* ============================================================
   CHSuiteLiteLite Lite  —  style.css
   Dark techno / game-tool aesthetic
   Fonts: Rajdhani (headings), Outfit (body), JetBrains Mono (code)
   ============================================================ */

:root {
  --bg:          #09080f;
  --panel:       #0f0d1a;
  --card:        #141220;
  --card2:       #1a172a;
  --border:      #2a2545;
  --border2:     #3a3560;
  --accent:      #6c3bff;
  --accent-dim:  #3d2299;
  --accent2:     #ff3b8a;
  --accent3:     #00d4aa;
  --text:        #e8e4ff;
  --text-dim:    #5c5580;
  --text-mid:    #9893c0;
  --success:     #22c55e;
  --warn:        #f59e0b;
  --error:       #ef4444;
  --nav-w:       220px;
  --radius:      10px;
  --radius-sm:   6px;
}

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

html { color-scheme: dark; }

html, body {
  height: 100%;
  background:
    radial-gradient(ellipse 80% 80% at 50% 50%, #3d0a2e 0%, #1a0520 35%, #0a0010 65%, #000000 100%);
  color: var(--text);
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  overflow: hidden;
}

/* ── Ambient background ──────────────────────────────────────── */
.bg-grid { display: none; }
.bg-glow { display: none; }

/* ── Shell layout ─────────────────────────────────────────────── */
.shell {
  position: relative; z-index: 1;
  display: flex; height: 100vh; overflow: hidden;
}

/* ── Sidebar ──────────────────────────────────────────────────── */
.sidebar {
  width: var(--nav-w); min-width: var(--nav-w);
  background: var(--panel);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  padding: 1.25rem 0.75rem;
  gap: 0.5rem;
  overflow-y: auto; overflow-x: hidden;
  transition: width 0.25s ease, min-width 0.25s ease, padding 0.25s ease;
  flex-shrink: 0;
}

/* ── Sidebar toggle button ────────────────────────────────────── */
.sidebar-toggle {
  background: none; border: none;
  color: var(--text-mid);
  cursor: pointer;
  padding: 5px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: color 0.15s, background 0.15s;
}
.sidebar-toggle:hover { color: var(--text); background: rgba(255,255,255,0.06); }

/* ── Collapsed desktop sidebar (icon strip) ───────────────────── */
.sidebar.collapsed {
  width: 54px; min-width: 54px;
  padding: 1.25rem 0.4rem;
}
.sidebar.collapsed .brand-icon,
.sidebar.collapsed .brand-text { display: none; }
.sidebar.collapsed .sidebar-brand { padding-bottom: 1.25rem; justify-content: center; }
.sidebar.collapsed .nav-btn { justify-content: center; padding: 0.6rem; }
.sidebar.collapsed .nav-btn-label { display: none; }
.sidebar.collapsed .sidebar-footer { display: none; }
.sidebar.collapsed .nav-group { gap: 4px; }

/* ── Overlay (mobile) ─────────────────────────────────────────── */
.sidebar-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 100;
}
.sidebar-overlay.active { display: block; }

/* ── Mobile floating open button ──────────────────────────────── */
.mobile-fab {
  display: none; position: fixed;
  top: 0.85rem; left: 0.85rem; z-index: 90;
  background: var(--panel); border: 1px solid var(--border);
  color: var(--text-mid); border-radius: var(--radius-sm);
  padding: 0.5rem; cursor: pointer;
  align-items: center; justify-content: center;
  transition: color 0.15s, border-color 0.15s;
  box-shadow: 0 2px 12px rgba(0,0,0,0.4);
}
.mobile-fab:hover { color: var(--text); border-color: var(--border2); }

/* ── Mobile breakpoint ────────────────────────────────────────── */
@media (max-width: 768px) {
  html, body { overflow: auto; }

  .shell { flex-direction: column; height: auto; min-height: 100vh; }

  .sidebar {
    position: fixed; left: 0; top: 0; bottom: 0; z-index: 110;
    width: var(--nav-w) !important; min-width: var(--nav-w) !important;
    transform: translateX(0);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 1.25rem 0.75rem !important;
  }
  .sidebar.collapsed {
    transform: translateX(calc(-1 * var(--nav-w)));
  }
  .sidebar.collapsed .brand-icon,
  .sidebar.collapsed .brand-text,
  .sidebar.collapsed .nav-btn-label,
  .sidebar.collapsed .sidebar-footer { display: revert; }
  .sidebar.collapsed .nav-btn { justify-content: flex-start; padding: 0.6rem 0.75rem; }
  .sidebar.collapsed .sidebar-brand { justify-content: flex-start; padding-bottom: 1.25rem; }

  .mobile-fab { display: flex; }
  .mobile-fab.hidden { display: none; }

  .content { padding: 6rem 1.25rem 2rem; overflow-y: visible; }
  .page-header { padding-top: 1.5rem; }
}

.sidebar-brand {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.5rem 0.5rem 1.25rem;
}
.brand-icon { flex-shrink: 0; }
.brand-text  { display: flex; flex-direction: column; line-height: 1.1; }
.brand-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.3rem; font-weight: 700;
  color: var(--text);
  letter-spacing: 0.03em;
}
.brand-sub {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.7rem; font-weight: 600;
  color: var(--accent2);
  text-transform: uppercase; letter-spacing: 0.15em;
  margin-top: -2px;
}

.nav-group { display: flex; flex-direction: column; gap: 2px; flex: 1; }

.nav-btn {
  display: flex; align-items: center; gap: 0.6rem;
  width: 100%; padding: 0.6rem 0.75rem;
  background: transparent; border: none;
  border-radius: var(--radius-sm);
  color: var(--text-mid);
  font-family: 'Outfit', sans-serif; font-size: 0.875rem; font-weight: 500;
  cursor: pointer; text-align: left;
  transition: background 0.15s, color 0.15s;
}
.nav-btn:hover { background: #1e1a30; color: var(--text); }
.nav-btn.active {
  background: rgba(108,59,255,0.15);
  color: var(--text);
  box-shadow: inset 3px 0 0 var(--accent);
}
.nav-icon { width: 16px; height: 16px; flex-shrink: 0; }

.sidebar-footer { padding-top: 1rem; border-top: 1px solid var(--border); }

.social-links { display: flex; gap: 0.75rem; }
.social-link {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-mid);
  transition: all 0.15s;
  overflow: hidden;
}
.social-link img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}
.social-link:hover {
  background: var(--card2); border-color: var(--border2);
  color: var(--text);
  transform: translateY(-1px);
}

.about-full-version-link {
  grid-column: 1 / -1;
  text-align: center;
  margin-top: 0.5rem;
}
.about-full-version-link a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: color 0.15s;
}
.about-full-version-link a:hover {
  color: var(--accent2);
  text-decoration: underline;
}

/* Note preview wrapper */
.note-preview-images {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  margin-bottom: 1.5rem;
  padding: 1rem 1rem 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: visible;
}

/* ── Custom Color Picker ──────────────────────────────────────── */
.ccp-popup {
  position: fixed;
  z-index: 9999;
  background: #1e1230;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.7);
  width: 244px;
  user-select: none;
}

.ccp-sv-wrap {
  position: relative;
  width: 220px;
  height: 160px;
  border-radius: 7px;
  overflow: hidden;
  cursor: crosshair;
  margin-bottom: 10px;
}
.ccp-sv-canvas {
  display: block;
  width: 220px;
  height: 160px;
  border-radius: 7px;
}
.ccp-sv-cursor {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.5);
  transform: translate(-50%, -50%);
  pointer-events: none;
  top: 0; left: 0;
}

.ccp-hue-wrap {
  position: relative;
  width: 220px;
  height: 14px;
  border-radius: 7px;
  overflow: visible;
  margin-bottom: 10px;
  cursor: pointer;
}
.ccp-hue-canvas {
  display: block;
  width: 220px;
  height: 14px;
  border-radius: 7px;
}
.ccp-hue-cursor {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.5);
  top: -2px;
  transform: translateX(-50%);
  pointer-events: none;
}

.ccp-inputs {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ccp-preview-swatch {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.15);
  flex-shrink: 0;
}

.ccp-hex-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  flex: 1.2;
}

.ccp-hex-input {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 5px;
  color: var(--text-hi, #fff);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  padding: 4px 6px;
  width: 100%;
  text-align: center;
  outline: none;
  transition: border-color 0.15s;
}
.ccp-hex-input:focus {
  border-color: var(--accent, #6c3bff);
}

.ccp-rgb-wrap {
  display: flex;
  gap: 4px;
  flex: 1.8;
}
.ccp-rgb-field {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  flex: 1;
}
.ccp-rgb-input {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 5px;
  color: var(--text-hi, #fff);
  font-size: 0.7rem;
  padding: 4px 2px;
  width: 100%;
  text-align: center;
  outline: none;
  -moz-appearance: textfield;
  transition: border-color 0.15s;
}
.ccp-rgb-input::-webkit-inner-spin-button,
.ccp-rgb-input::-webkit-outer-spin-button { -webkit-appearance: none; }
.ccp-rgb-input:focus { border-color: var(--accent, #6c3bff); }

.ccp-input-label {
  font-size: 0.58rem;
  color: var(--text-dim, #888);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.mc-preview-container {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
}
#mc-preview-canvas {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  background: #000;
  display: block;
  margin: 0 auto;
}

.pyodide-status {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.4rem 0.5rem;
  font-size: 0.75rem; color: var(--text-dim);
}
.status-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--text-dim); flex-shrink: 0;
  transition: background 0.3s;
}
.status-dot.loading  { background: var(--warn); animation: pulse 1.2s ease-in-out infinite; }
.status-dot.ready    { background: var(--success); }
.status-dot.error    { background: var(--error); }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }

/* ── Main content area ────────────────────────────────────────── */
.content {
  flex: 1; overflow-y: auto;
  padding: 2rem 2.5rem;
}

/* ── Tabs ─────────────────────────────────────────────────────── */
.tab-panel { display: none; animation: fadeIn 0.2s ease; }
.tab-panel.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ── Page header ──────────────────────────────────────────────── */
.page-header { margin-bottom: 2rem; }
.page-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 2.2rem; font-weight: 700;
  line-height: 1.1; letter-spacing: 0.02em;
  color: var(--text);
}
.accent-text {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.page-desc { margin-top: 0.4rem; color: var(--text-mid); font-size: 0.9rem; }

/* ── About grid ───────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem; margin-bottom: 1.5rem;
}
.tool-card {
  display: block; text-decoration: none;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  transition: border-color 0.2s, transform 0.15s, box-shadow 0.2s;
  position: relative; overflow: hidden;
}
.tool-card:hover {
  border-color: var(--border2);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}
.tool-card-icon {
  width: 44px; height: 44px;
  background: color-mix(in srgb, var(--c) 15%, transparent);
  border: 1px solid color-mix(in srgb, var(--c) 30%, transparent);
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
  color: var(--c);
}
.tool-card-icon svg { width: 22px; height: 22px; }
.tool-card h3 {
  font-family: 'Rajdhani', sans-serif; font-size: 1.1rem; font-weight: 700;
  color: var(--text); margin-bottom: 0.4rem; letter-spacing: 0.02em;
}
.tool-card p { font-size: 0.85rem; color: var(--text-mid); line-height: 1.5; }
.tool-card-arrow {
  position: absolute; top: 1.25rem; right: 1.25rem;
  color: var(--text-dim); font-size: 1.1rem;
  transition: transform 0.2s, color 0.2s;
}
.tool-card:hover .tool-card-arrow { transform: translateX(3px); color: var(--accent); }

.about-note {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: rgba(108,59,255,0.07);
  border: 1px solid rgba(108,59,255,0.2);
  border-radius: var(--radius-sm);
  color: var(--text-mid); font-size: 0.82rem;
}

/* ── Tool body ────────────────────────────────────────────────── */
.tool-body { max-width: 700px; }

.form-row { margin-bottom: 1.25rem; }
.form-row-inline { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }

.form-label {
  display: block; margin-bottom: 0.4rem;
  font-size: 0.82rem; font-weight: 600;
  color: var(--text-mid); text-transform: uppercase; letter-spacing: 0.07em;
}
.form-hint { font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--text-dim); }
.form-label-sm { font-size: 0.78rem; font-weight: 600; color: var(--text-mid); text-transform: uppercase; letter-spacing: 0.07em; display: block; margin-bottom: 0.25rem; }

.form-input, .form-select {
  width: 100%; padding: 0.6rem 0.75rem;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text); font-family: 'Outfit', sans-serif; font-size: 0.9rem;
  outline: none; transition: border-color 0.15s;
}
.form-input:focus, .form-select:focus { border-color: var(--accent); }
.form-input::placeholder { color: var(--text-dim); }
.form-select option { background: var(--card2); }

.form-input-sm {
  width: 110px; padding: 0.45rem 0.6rem;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text); font-family: 'Outfit', sans-serif; font-size: 0.85rem;
  outline: none; transition: border-color 0.15s;
}
.form-input-sm:focus { border-color: var(--accent); }

.inline-field { display: flex; flex-direction: column; }

/* ── Buttons ──────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.55rem 1.1rem; border: none; border-radius: var(--radius-sm);
  font-family: 'Outfit', sans-serif; font-size: 0.875rem; font-weight: 600;
  cursor: pointer; transition: all 0.15s; white-space: nowrap;
}
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 12px rgba(108,59,255,0.35);
}
.btn-primary:not(:disabled):hover {
  background: #7d4fff;
  box-shadow: 0 4px 20px rgba(108,59,255,0.5);
  transform: translateY(-1px);
}
.btn-accent {
  background: var(--accent2);
  color: #fff;
  box-shadow: 0 2px 12px rgba(255,59,138,0.35);
}
.btn-accent:hover { background: #ff5c9a; transform: translateY(-1px); }
.btn-ghost {
  background: transparent; border: 1px solid var(--border2);
  color: var(--text-mid);
}
.btn-ghost:hover { background: var(--card2); color: var(--text); }
.btn-sm { padding: 0.35rem 0.7rem; font-size: 0.8rem; }

/* ── Drop zone ────────────────────────────────────────────────── */
.drop-zone {
  border: 2px dashed var(--border2);
  border-radius: var(--radius);
  padding: 2rem; text-align: center;
  color: var(--text-dim); cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  font-size: 0.875rem;
}
.drop-zone:hover, .drop-zone.drag-over {
  border-color: var(--accent);
  background: rgba(108,59,255,0.05);
  color: var(--text-mid);
}
.drop-zone u { color: var(--accent); text-decoration: none; }
.drop-zone-sm { padding: 1rem 1.5rem; flex-direction: row; justify-content: center; }
.drop-zone-sm svg { flex-shrink: 0; }

.file-pill {
  display: inline-flex; align-items: center; gap: 0.4rem;
  margin-top: 0.5rem; padding: 0.3rem 0.7rem;
  background: rgba(0,212,170,0.1); border: 1px solid rgba(0,212,170,0.25);
  border-radius: 20px; font-size: 0.8rem; color: var(--accent3);
}
.file-pill svg { width: 12px; height: 12px; }
.hidden { display: none !important; }

/* ── Toggle group ─────────────────────────────────────────────── */
.toggle-group {
  display: inline-flex;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 3px; gap: 3px;
}
.toggle-btn {
  padding: 0.4rem 1rem; border: none; border-radius: 5px;
  background: transparent; color: var(--text-dim);
  font-family: 'Outfit', sans-serif; font-size: 0.85rem; font-weight: 500;
  cursor: pointer; transition: all 0.15s;
}
.toggle-btn.active {
  background: var(--accent); color: #fff;
  box-shadow: 0 1px 8px rgba(108,59,255,0.4);
}
.toggle-btn:not(.active):hover { color: var(--text); }

/* ── Checkbox labels ──────────────────────────────────────────── */
.checkbox-label {
  display: flex; align-items: center; gap: 0.4rem; cursor: pointer;
  font-size: 0.875rem; color: var(--text-mid);
  user-select: none;
}
.checkbox-label input[type="checkbox"] {
  appearance: none; width: 15px; height: 15px;
  border: 1px solid var(--border2); border-radius: 3px;
  background: var(--card); cursor: pointer;
  position: relative; transition: all 0.15s;
}
.checkbox-label input[type="checkbox"]:checked {
  background: var(--accent); border-color: var(--accent);
}
.checkbox-label input[type="checkbox"]:checked::after {
  content: ''; position: absolute; top: 2px; left: 4px;
  width: 5px; height: 8px;
  border: 1.5px solid #fff; border-top: none; border-left: none;
  transform: rotate(45deg);
}

/* ── Color stops ──────────────────────────────────────────────── */
.color-stop-list { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.5rem; }
.color-stop {
  display: flex; align-items: center; gap: 0.4rem;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 0.3rem 0.5rem;
}
.ng-color-swatch {
  width: 28px; height: 28px; border-radius: 5px;
  border: 2px solid rgba(255,255,255,0.18);
  cursor: pointer; padding: 0; outline: none; flex-shrink: 0;
  transition: border-color 0.15s, transform 0.1s;
}
.ng-color-swatch:hover  { border-color: rgba(255,255,255,0.45); transform: scale(1.08); }
.ng-color-swatch:focus  { border-color: var(--accent); }
.color-hex { font-family: 'JetBrains Mono', monospace; font-size: 0.78rem; color: var(--text-mid); }
.color-remove {
  background: none; border: none; color: var(--text-dim);
  cursor: pointer; font-size: 1rem; line-height: 1;
  padding: 0 2px; transition: color 0.15s;
}
.color-remove:hover { color: var(--error); }

/* ── Letter grid (per-letter mode) ───────────────────────────── */
.letter-grid { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.75rem 0; }
.letter-cell {
  display: flex; flex-direction: column; align-items: center; gap: 0.3rem;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 0.5rem 0.6rem;
  min-width: 52px;
}
.letter-cell-char {
  font-family: 'JetBrains Mono', monospace; font-size: 1.1rem; font-weight: 700;
  color: var(--text);
}
.letter-cell .ng-color-swatch {
  width: 32px; height: 22px; border-radius: 4px;
}
.letter-cell-hex { font-family: 'JetBrains Mono', monospace; font-size: 0.65rem; color: var(--text-dim); }

/* ── Name gen preview ─────────────────────────────────────────── */
.ng-preview-bar {
  padding: 0.75rem 1rem;
  background: #000; border-radius: var(--radius-sm);
  font-size: 1.4rem; font-weight: 700;
  text-align: center; margin-bottom: 0.75rem;
  min-height: 3rem; letter-spacing: 0.03em;
  font-family: 'Rajdhani', sans-serif;
}

/* ── Output areas ─────────────────────────────────────────────── */
.output-area {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1rem;
  margin-top: 1rem;
}
.output-header {
  display: flex; align-items: center; gap: 0.4rem;
  font-family: 'Rajdhani', sans-serif; font-size: 0.85rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--accent3); margin-bottom: 0.75rem;
}

.code-block-wrap { position: relative; }
.code-block {
  font-family: 'JetBrains Mono', monospace; font-size: 0.78rem;
  line-height: 1.6; color: var(--text-mid);
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 0.75rem 1rem;
  white-space: pre-wrap; word-break: break-all;
  max-height: 200px; overflow-y: auto;
}
.copy-btn {
  position: absolute; top: 0.5rem; right: 0.5rem;
  display: flex; align-items: center; gap: 0.3rem;
  padding: 0.3rem 0.6rem;
  background: var(--card2); border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'Outfit', sans-serif; font-size: 0.75rem; font-weight: 600;
  color: var(--text-mid); cursor: pointer;
  transition: all 0.15s;
}
.copy-btn:hover { background: var(--border); color: var(--text); }
.copy-btn.copied { color: var(--success); border-color: var(--success); }

/* ── Clone Hero Mobile guide ──────────────────────────────────── */
.accordion {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}
.accordion-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1rem 1.25rem;
  background: none;
  border: none;
  color: var(--text);
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s;
}
.accordion-header:hover { background: rgba(255,255,255,0.04); }
.accordion-chevron {
  flex-shrink: 0;
  color: var(--text-mid);
  transition: transform 0.25s ease;
}
.accordion-item.open .accordion-chevron { transform: rotate(180deg); }
.accordion-body {
  display: none;
  padding: 0 1.25rem 1.25rem;
}
.accordion-item.open .accordion-body { display: block; }

.guide-section {
  margin-bottom: 1.5rem;
}
.guide-section:last-child { margin-bottom: 0; }
.guide-section-title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent2);
  margin-bottom: 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border);
}
.guide-steps {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.guide-step {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.88rem;
  color: var(--text-mid);
  line-height: 1.55;
}
.guide-step-num {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-dim);
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}
.guide-step a {
  color: var(--accent2);
  text-decoration: none;
}
.guide-step a:hover { text-decoration: underline; }
.guide-note {
  font-size: 0.82rem;
  color: var(--text-dim);
  background: var(--card2);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 0.6rem 0.85rem;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.guide-sub-section {
  margin-top: 0.5rem;
}
.guide-sub-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-mid);
  margin-bottom: 0.5rem;
}
.guide-sub-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.35rem;
}

.about-mobile-guide {
  margin-top: 1.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.about-mobile-guide-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.25rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-mid);
  border-bottom: 1px solid var(--border);
}
.about-mobile-guide .accordion {
  margin-bottom: 0;
}
.about-mobile-guide .accordion-item {
  border: none;
  border-radius: 0;
  border-bottom: 1px solid var(--border);
}
.about-mobile-guide .accordion-item:last-child {
  border-bottom: none;
}

/* ── NoteGen section tabs ─────────────────────────────────────── */
.section-tabs {
  display: flex; gap: 2px; flex-wrap: wrap;
  border-bottom: 1px solid var(--border); margin-bottom: 1.25rem;
}
.section-tab {
  padding: 0.5rem 1rem; border: none;
  background: transparent; color: var(--text-dim);
  font-family: 'Outfit', sans-serif; font-size: 0.85rem; font-weight: 500;
  cursor: pointer; border-bottom: 2px solid transparent;
  margin-bottom: -1px; transition: all 0.15s;
}
.section-tab:hover { color: var(--text); }
.section-tab.active { color: var(--accent); border-bottom-color: var(--accent); }

/* ── Color editor ─────────────────────────────────────────────── */
.color-editor { display: flex; flex-direction: column; gap: 1.25rem; }
.color-group { }
.color-group-title {
  font-family: 'Rajdhani', sans-serif; font-size: 0.8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text-dim); margin-bottom: 0.6rem;
  padding-bottom: 0.3rem; border-bottom: 1px solid var(--border);
}
.color-rows { display: flex; flex-direction: column; gap: 0.35rem; }
.color-row {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.3rem 0.5rem;
  border-radius: var(--radius-sm);
  transition: background 0.1s;
}
.color-row:hover { background: var(--card2); }
.color-row-swatch {
  width: 26px; height: 26px; border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.1); cursor: pointer;
  flex-shrink: 0; outline: none;
}
.color-row-label {
  flex: 1; font-size: 0.83rem; color: var(--text-mid);
}
.color-row-hex {
  font-family: 'JetBrains Mono', monospace; font-size: 0.75rem; color: var(--text-dim);
  width: 72px; text-align: right;
}

/* ── Toast ────────────────────────────────────────────────────── */
.toast {
  position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%) translateY(80px);
  background: var(--card2); border: 1px solid var(--border2);
  padding: 0.6rem 1.25rem; border-radius: 20px;
  font-size: 0.85rem; color: var(--text);
  z-index: 9999; pointer-events: none;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.25s;
  opacity: 0;
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

/* ── Scrollbar ────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-dim); }

/* ── CH Version Checker ───────────────────────────────────────── */
.ch-version-checker {
  margin-top: 0.85rem;
}
.ch-version-btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.8rem;
}
.ch-version-btn:disabled { opacity: 0.55; cursor: not-allowed; }
@keyframes spin { to { transform: rotate(360deg); } }
.spin { animation: spin 0.8s linear infinite; }

.ch-version-result {
  margin-top: 0.65rem;
  display: flex; flex-wrap: wrap; gap: 0.6rem;
}
.vc-card {
  background: var(--card2); border: 1px solid var(--border2);
  border-radius: 8px; padding: 0.65rem 0.9rem;
  min-width: 220px; flex: 1;
}
.vc-card-header {
  display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.55rem;
}
.vc-tag {
  font-family: 'JetBrains Mono', monospace; font-size: 0.8rem;
  color: var(--text); font-weight: 600;
}
.vc-badge {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.04em;
  padding: 0.15em 0.55em; border-radius: 4px; text-transform: uppercase;
}
.vc-badge-release { background: rgba(108,59,255,0.25); color: #a080ff; }
.vc-badge-ptb     { background: rgba(255,59,138,0.2);  color: #ff80b3; }
.vc-card-actions { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.vc-dl-btn {
  font-size: 0.78rem; padding: 0.3rem 0.75rem;
  display: inline-flex; align-items: center; gap: 0.35rem;
}
.vc-error {
  font-size: 0.82rem; color: var(--text-dim);
  padding: 0.5rem 0.75rem; background: var(--card2);
  border: 1px solid var(--border2); border-radius: 6px;
}
.vc-error a { color: var(--accent); text-decoration: none; }
