/* ============================================================
   Veyra — landing page styles
   ============================================================ */

:root {
  --bg: #07070d;
  --bg-soft: #0d0d18;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #ecedf5;
  --text-dim: #9a9bb2;
  --text-faint: #6c6d86;

  --accent: #ff7a18;      /* orange      */
  --accent-2: #ffae3b;    /* amber       */
  --accent-3: #ff4d12;    /* deep orange */
  --grad: linear-gradient(120deg, var(--accent-3), var(--accent) 55%, var(--accent-2));

  --radius: 16px;
  --radius-lg: 24px;
  --maxw: 1120px;
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.7);
  --accent-rgb: 255, 122, 24;
  --amber-rgb: 255, 174, 59;

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}
.container.narrow { max-width: 780px; }

/* ---------- Background decoration ---------- */
.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 80%);
  z-index: -2;
  pointer-events: none;
}
.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.5;
  z-index: -1;
  pointer-events: none;
}
.glow-1 {
  width: 600px; height: 600px;
  top: -200px; left: -150px;
  background: radial-gradient(circle, rgba(255, 122, 24, 0.55), transparent 70%);
}
.glow-2 {
  width: 540px; height: 540px;
  top: 200px; right: -180px;
  background: radial-gradient(circle, rgba(255, 77, 18, 0.42), transparent 70%);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}
.btn-lg { padding: 15px 28px; font-size: 1.02rem; }

.btn-primary {
  background: var(--grad);
  color: #0a0a12;
  box-shadow: 0 8px 30px -8px rgba(255, 122, 24, 0.7);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px -8px rgba(255, 122, 24, 0.85);
}
.btn-ghost {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-ghost:hover {
  background: var(--surface-2);
  transform: translateY(-2px);
}

/* ---------- Navbar ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.25s ease, border-color 0.25s ease, backdrop-filter 0.25s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(8, 8, 16, 0.75);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}
.brand-mark {
  width: 26px; height: 26px;
  border-radius: 8px;
  background: var(--grad);
  box-shadow: 0 0 20px -2px rgba(255, 122, 24, 0.8);
  position: relative;
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 4px;
  background: var(--bg);
}
.brand-logo {
  width: 38px;
  height: 38px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 0 12px rgba(255, 122, 24, 0.4));
}
.nav-links {
  display: flex;
  gap: 30px;
  font-size: 0.95rem;
  color: var(--text-dim);
}
.nav-links a { transition: color 0.16s ease; }
.nav-links a:hover { color: var(--text); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

/* ---------- Hero ---------- */
.hero {
  padding: 150px 0 80px;
  text-align: center;
}
.hero-inner { display: flex; flex-direction: column; align-items: center; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.85rem;
  color: var(--text-dim);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 28px;
}
.pulse-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 0 0 rgba(255, 174, 59, 0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 174, 59, 0.6); }
  70% { box-shadow: 0 0 0 9px rgba(255, 174, 59, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 174, 59, 0); }
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: 22px;
}
.gradient-text {
  background: linear-gradient(120deg, var(--accent), var(--accent-2) 60%, var(--accent-3));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub {
  max-width: 620px;
  color: var(--text-dim);
  font-size: clamp(1rem, 2.2vw, 1.18rem);
  margin-bottom: 36px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 60px;
}

.hero-stats {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  justify-content: center;
}
.stat { display: flex; flex-direction: column; align-items: center; }
.stat-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2rem;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-label { font-size: 0.85rem; color: var(--text-faint); }

/* ---------- Console mockup ---------- */
.console {
  margin: 70px auto 0;
  max-width: 760px;
  background: linear-gradient(180deg, rgba(20, 20, 34, 0.9), rgba(12, 12, 22, 0.9));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  text-align: left;
}
.console-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 18px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border);
}
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.red { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green { background: #28c840; }
.console-title {
  margin-left: 12px;
  font-size: 0.82rem;
  color: var(--text-faint);
  font-family: var(--font-display);
}
.console-body {
  padding: 22px 24px;
  font-family: "SFMono-Regular", "Consolas", "Liberation Mono", monospace;
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--text);
  overflow-x: auto;
}
.c-dim { color: var(--text-faint); }
.c-ok { color: #28c840; }
.c-accent { color: var(--accent-2); }
.c-prompt { color: var(--accent); font-weight: 600; }
.c-type { color: var(--text); }
.cursor { animation: blink 1.1s steps(1) infinite; color: var(--accent-2); }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.015);
  padding: 18px 0;
  margin-top: 40px;
}
.marquee-track {
  display: flex;
  gap: 28px;
  width: max-content;
  animation: scroll 22s linear infinite;
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--text-dim);
  white-space: nowrap;
}
.marquee-track span { font-size: 1.05rem; }
@keyframes scroll {
  to { transform: translateX(-50%); }
}

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}
.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent-2);
  margin-bottom: 14px;
}
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.section-head p { color: var(--text-dim); font-size: 1.05rem; }

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  background: var(--surface-2);
}

/* Features */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-icon {
  width: 52px; height: 52px;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  border-radius: 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  margin-bottom: 18px;
}
.feature h3 {
  font-family: var(--font-display);
  font-size: 1.18rem;
  margin-bottom: 8px;
}
.feature p { color: var(--text-dim); font-size: 0.96rem; }

/* Steps */
.steps {
  display: flex;
  align-items: stretch;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.step {
  flex: 1;
  min-width: 230px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
}
.step-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.step h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 12px 0 8px;
}
.step p { color: var(--text-dim); font-size: 0.96rem; }
.step-line {
  align-self: center;
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  opacity: 0.5;
}

/* CTA panel */
.cta-panel {
  position: relative;
  text-align: center;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(20, 18, 40, 0.7), rgba(10, 10, 20, 0.7));
  padding: 70px 32px;
  overflow: hidden;
}
.cta-glow {
  position: absolute;
  top: -120px; left: 50%;
  transform: translateX(-50%);
  width: 480px; height: 280px;
  background: radial-gradient(circle, rgba(255, 122, 24, 0.45), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}
.cta-panel h2 {
  position: relative;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 4.5vw, 2.8rem);
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.cta-panel p {
  position: relative;
  color: var(--text-dim);
  max-width: 520px;
  margin: 0 auto 30px;
  font-size: 1.05rem;
}
.cta-actions {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}
.cta-meta { color: var(--text-faint); font-size: 0.9rem; }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4px 22px;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.faq-item[open] { border-color: var(--border-strong); background: var(--surface-2); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.5rem;
  color: var(--accent-2);
  transition: transform 0.25s ease;
  line-height: 1;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
  color: var(--text-dim);
  padding: 0 0 20px;
  font-size: 0.98rem;
}

/* Community */
.community-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.community-single { max-width: 460px; margin: 0 auto; }
.community-single .community-card { align-items: center; text-align: center; padding: 40px 34px; }
.community-single .community-icon { margin-left: auto; margin-right: auto; width: 58px; height: 58px; font-size: 1.6rem; }
.community-card { display: flex; flex-direction: column; }
.community-icon {
  width: 50px; height: 50px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  font-size: 1.4rem;
  margin-bottom: 16px;
  border: 1px solid var(--border);
}
.community-icon.discord { background: rgba(255, 122, 24, 0.15); color: #ffb877; }
.community-icon.telegram { background: rgba(255, 174, 59, 0.15); color: var(--accent-2); }
.community-icon.x { background: rgba(255, 255, 255, 0.08); color: #fff; }
.community-card h3 { font-family: var(--font-display); font-size: 1.18rem; margin-bottom: 6px; }
.community-card p { color: var(--text-dim); font-size: 0.95rem; margin-bottom: 18px; }
.community-link {
  margin-top: auto;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--accent-2);
  transition: gap 0.2s;
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.012);
  padding: 64px 0 30px;
  margin-top: 40px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 2fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}
.footer-brand p {
  color: var(--text-dim);
  margin-top: 16px;
  max-width: 320px;
  font-size: 0.95rem;
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  margin-bottom: 14px;
}
.footer-col a {
  display: block;
  color: var(--text-dim);
  font-size: 0.92rem;
  padding: 5px 0;
  transition: color 0.16s;
}
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 24px;
  color: var(--text-faint);
  font-size: 0.85rem;
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .feature-grid, .community-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .nav.open .nav-links {
    display: flex;
    position: absolute;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(8, 8, 16, 0.96);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    padding: 10px 24px 20px;
  }
  .nav.open .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--border); }
  .hero { padding: 120px 0 60px; }
  .hero-stats { gap: 28px; }
  .feature-grid, .community-grid { grid-template-columns: 1fr; }
  .step-line { display: none; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 460px) {
  .footer-cols { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   Interactive app preview (VeyraHub)
   ============================================================ */
.app {
  --app-bg: #0c0b0a;
  --app-bg-2: #0f0d0b;
  --app-panel: rgba(255, 150, 60, 0.03);
  --app-border: rgba(255, 140, 50, 0.22);
  --app-border-soft: rgba(255, 255, 255, 0.06);
  --app-orange: #ff7a18;
  --app-orange-2: #ff8f2b;
  --app-text: #e9e4de;
  --app-dim: #8a7f74;
  --app-head: #c47b3c;

  max-width: 880px;
  margin: 0 auto;
  background: var(--app-bg);
  border: 1px solid var(--app-border-soft);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--app-text);
  user-select: none;
}

.app-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: linear-gradient(180deg, #131110, #0d0b0a);
  border-bottom: 1px solid var(--app-border-soft);
}
.app-brand { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.app-logo { width: 20px; height: 20px; object-fit: contain; }
.app-user { text-align: right; line-height: 1.15; }
.app-user-emote { display: block; font-size: 12px; color: var(--app-text); }
.app-user-role { display: block; font-size: 12px; color: var(--app-orange); }

.app-body { display: flex; min-height: 466px; }

.app-sidebar {
  width: 175px;
  flex-shrink: 0;
  background: var(--app-bg-2);
  border-right: 1px solid var(--app-border);
  display: flex;
  flex-direction: column;
  padding: 14px 12px;
}
.app-nav { display: flex; flex-direction: column; gap: 2px; }
.cat { color: var(--app-orange); font-size: 12px; margin: 12px 4px 4px; }
.cat:first-child { margin-top: 0; }
.app-tab {
  text-align: left;
  background: none;
  border: 0;
  color: var(--app-dim);
  padding: 7px 12px;
  border-radius: 7px;
  cursor: pointer;
  font: inherit;
  transition: background 0.15s, color 0.15s;
}
.app-tab:hover { color: var(--app-text); background: rgba(255, 255, 255, 0.04); }
.app-tab.is-active {
  background: linear-gradient(180deg, var(--app-orange-2), var(--app-orange));
  color: #1a0f06;
  font-weight: 600;
  box-shadow: 0 4px 14px -4px rgba(255, 122, 24, 0.7);
}
.app-sidebar-foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 4px 0;
  color: var(--app-dim);
  font-size: 12px;
}
.app-sidebar-foot .build { color: var(--app-orange); }

.app-content { flex: 1; padding: 16px; overflow: auto; min-width: 0; }
.app-page { display: none; }
.app-page.is-active { display: block; animation: appfade 0.25s ease; }
@keyframes appfade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.subtabs { display: flex; gap: 8px; margin-bottom: 14px; }
.subtab {
  flex: 0 0 auto;
  padding: 8px 22px;
  border-radius: 7px;
  cursor: pointer;
  font: inherit;
  background: #16130f;
  border: 1px solid var(--app-border-soft);
  color: var(--app-dim);
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.subtab:hover { color: var(--app-text); }
.subtab.is-active {
  background: linear-gradient(180deg, var(--app-orange-2), var(--app-orange));
  color: #1a0f06;
  border-color: transparent;
  font-weight: 600;
}
.subpanel { display: none; }
.subpanel.is-active { display: block; }

.cols { display: grid; gap: 14px; }
.cols-2 { grid-template-columns: 1fr 1fr; }

.card-panel {
  border: 1px solid var(--app-border);
  border-radius: 8px;
  padding: 12px 14px;
  background: var(--app-panel);
  margin-bottom: 14px;
}
.cols .card-panel { margin-bottom: 0; }
.card-panel.narrow { max-width: 440px; }

.phead {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--app-head);
  font-size: 12px;
  letter-spacing: 0.02em;
  margin: 14px 0 10px;
}
.phead:first-child { margin-top: 2px; }
.phead::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--app-border), transparent);
}

.ck { display: flex; align-items: center; gap: 9px; padding: 5px 0; cursor: pointer; color: var(--app-text); }
.app input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1px solid rgba(255, 140, 50, 0.35);
  background: #1b1510;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.12s, border-color 0.12s;
}
.app input[type="checkbox"]:checked {
  background: var(--app-orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a0f06' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
  border-color: var(--app-orange);
}

.kb {
  font-size: 11px;
  color: var(--app-orange);
  background: rgba(255, 122, 24, 0.1);
  border: 1px solid rgba(255, 122, 24, 0.3);
  border-radius: 5px;
  padding: 2px 8px;
  margin-left: 4px;
}
.kb-btn { display: inline-block; cursor: pointer; margin: 0 0 10px; }
.kline { color: var(--app-text); padding: 4px 0; }
.kline.dim { color: var(--app-dim); }

.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.app input[type="color"] {
  -webkit-appearance: none;
  appearance: none;
  width: 46px;
  height: 18px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
}
.app input[type="color"]::-webkit-color-swatch-wrapper { padding: 2px; }
.app input[type="color"]::-webkit-color-swatch { border: none; border-radius: 2px; }
.app input[type="color"]::-moz-color-swatch { border: none; border-radius: 2px; }
.sw-pair { display: flex; gap: 4px; }

.srow { padding: 8px 0; }
.srow-top { display: flex; justify-content: space-between; margin-bottom: 8px; }
.srow-top .sval { color: var(--app-orange); }
.sld {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 10px;
  border-radius: 6px;
  background: #241a12;
  outline: none;
  cursor: pointer;
}
.sld::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--app-orange);
  box-shadow: 0 0 8px rgba(255, 122, 24, 0.6);
  cursor: pointer;
}
.sld::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--app-orange);
  cursor: pointer;
}

.field { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.field-label { color: var(--app-text); }
.dd, .tin {
  width: 100%;
  background: #1b1510;
  color: var(--app-text);
  border: 1px solid var(--app-border);
  border-radius: 6px;
  padding: 9px 10px;
  font: inherit;
  cursor: pointer;
}
.tin { cursor: text; margin-top: 4px; }
.dd:focus, .tin:focus { outline: none; border-color: var(--app-orange); }

.app-btn {
  margin-top: 10px;
  padding: 8px 16px;
  background: #1b1510;
  color: var(--app-text);
  border: 1px solid var(--app-border);
  border-radius: 6px;
  cursor: pointer;
  font: inherit;
  transition: background 0.15s, border-color 0.15s;
}
.app-btn:hover { background: rgba(255, 122, 24, 0.12); border-color: var(--app-orange); }
.btn-wide { width: 100%; }
.btn-unload { width: 100%; color: var(--app-orange); background: rgba(255, 122, 24, 0.08); }
.btn-unload:hover { background: rgba(255, 122, 24, 0.18); }

.pill-btn {
  background: #2a2620;
  color: var(--app-dim);
  border: 1px solid var(--app-border-soft);
  border-radius: 5px;
  padding: 3px 12px;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
}
.pill-btn:hover { color: var(--app-text); }

.savebox {
  border: 1px solid var(--app-orange);
  border-radius: 8px;
  min-height: 220px;
  color: var(--app-dim);
  padding: 12px;
  background: rgba(255, 122, 24, 0.03);
}

.app-note { text-align: center; color: var(--text-faint); font-size: 0.85rem; margin-top: 16px; }

@media (max-width: 720px) {
  .app-body { flex-direction: column; min-height: 0; }
  .app-sidebar {
    width: 100%;
    flex-direction: row;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid var(--app-border);
    padding: 10px;
  }
  .app-nav { flex-direction: row; align-items: center; gap: 6px; }
  .cat, .app-sidebar-foot { display: none; }
  .app-tab { white-space: nowrap; }
  .cols-2 { grid-template-columns: 1fr; }
}
