/* =========================================================================
   Brush Converter Classic Stepper - Studio Dark Transparent Glass Edition
   100% Transparent Glass, Bold High-Contrast Typography & 3D Brush Motion
   ========================================================================= */

:root {
  --bg: #07070b;
  --card: transparent;
  --ink: #ffffff;
  --muted: #cbd5e1;
  --line: rgba(255, 255, 255, 0.14);
  --brand: #fb923c;
  --brand-d: #ea580c;
  --brand-l: rgba(251, 146, 60, 0.22);
  --ok: #4ade80;
  --ok-l: rgba(74, 222, 128, 0.20);
  --warn: #fbbf24;
  --warn-l: rgba(251, 191, 36, 0.20);
  --err: #f87171;
  --err-l: rgba(248, 113, 113, 0.20);
  --r: 20px;
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--bg);
  background-image: 
    radial-gradient(at 15% 15%, rgba(99, 102, 241, 0.10) 0px, transparent 55%),
    radial-gradient(at 85% 25%, rgba(251, 146, 60, 0.12) 0px, transparent 60%),
    radial-gradient(at 50% 85%, rgba(168, 85, 247, 0.06) 0px, transparent 55%);
  color: var(--ink);
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* 3D background canvas stays fixed in back */
#bg-3d-canvas {
  position: fixed !important;
  inset: 0 !important;
  z-index: 0 !important;
  pointer-events: none !important;
}

/* Page content sits in front */
nav, header, .wrap, main, footer, .stepper {
  position: relative;
  z-index: 10;
}

a {
  color: var(--brand);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
}

a:hover {
  color: #fdba74;
}

/* ---------- Top Navbar ---------- */
nav.top-nav {
  position: sticky;
  top: 0;
  background: rgba(7, 7, 11, 0.20);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  z-index: 100;
}

.nav-in {
  max-width: 1100px;
  margin: auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 18px;
  color: #fff;
  letter-spacing: -0.3px;
}

.brand-row .logo-icon {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: linear-gradient(135deg, #fb923c, #ea580c);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(251, 146, 60, 0.35);
}

.brand-row span {
  color: var(--brand);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(8px);
  padding: 4px 6px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-links a {
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 450;
  padding: 5px 14px;
  border-radius: 999px;
  transition: all 0.15s ease;
}

.nav-links a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.nav-links a.active {
  color: #fff;
  font-weight: 500;
  background: rgba(251, 146, 60, 0.18);
  border: 1px solid rgba(251, 146, 60, 0.35);
}

.nav-link-btn {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 6px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  transition: all 0.15s;
}

.nav-link-btn:hover {
  border-color: var(--brand);
  color: #fff;
  background: rgba(251, 146, 60, 0.1);
}

.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Hero Section (Header) ---------- */
.hero {
  padding: 38px 0 24px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(30px, 5vw, 42px);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 10px;
  letter-spacing: -0.6px;
  color: #ffffff;
}

.subtitle {
  font-size: clamp(15px, 2vw, 17px);
  font-weight: 400;
  color: var(--muted);
  margin: 0 0 14px;
}

/* ---------- 100% Transparent Glass Stepper ---------- */
.stepper {
  position: sticky;
  top: 64px;
  z-index: 50;
  margin: 10px auto 26px;
}

.stepper ol {
  list-style: none;
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 6px 10px;
  background: rgba(7, 7, 11, 0.35);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  overflow-x: auto;
}

.stepper li {
  flex: 1;
  min-width: max-content;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  transition: all 0.15s ease;
}

.stepper li span {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 600;
}

.stepper li.active {
  background: rgba(251, 146, 60, 0.18);
  color: #ffffff;
  border: 1px solid rgba(251, 146, 60, 0.35);
}

.stepper li.active span {
  background: var(--brand);
  color: #000;
  border-color: var(--brand);
}

.stepper li.done {
  color: #ffffff;
}

.stepper li.done span {
  background: #22c55e;
  border-color: #22c55e;
  color: #000;
}

/* ---------- Step Cards (100% Transparent Glass) ---------- */
main {
  padding-bottom: 60px;
}

.card {
  background: transparent;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: 30px;
  margin-bottom: 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  scroll-margin-top: 140px;
  transition: all 0.25s ease;
}

.card:hover {
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.card.locked {
  opacity: 0.38;
  pointer-events: none;
}

.card-head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.card-head h2 {
  margin: 0;
  font-size: 19px;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: -0.2px;
}

.card-head p {
  margin: 3px 0 0;
  font-weight: 400;
  color: #94a3b8;
}

.card-head .push {
  margin-left: auto;
}

.num {
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(251, 146, 60, 0.16);
  border: 1px solid rgba(251, 146, 60, 0.35);
  color: var(--brand);
  font-weight: 600;
  font-size: 14px;
}

.muted {
  color: #94a3b8;
  font-size: 14px;
  font-weight: 400;
}

/* ---------- Buttons (Refined & Minimal) ---------- */
.btn {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.03);
  color: #ffffff;
  font: inherit;
  font-weight: 500;
  padding: 9px 18px;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: all 0.15s ease;
}

.btn:hover {
  border-color: rgba(251, 146, 60, 0.4);
  background: rgba(251, 146, 60, 0.10);
  color: #fff;
}

.btn.primary {
  background: linear-gradient(135deg, #fb923c 0%, #ea580c 100%);
  border-color: transparent;
  color: #000000;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(251, 146, 60, 0.35);
}

.btn.primary:hover {
  background: linear-gradient(135deg, #f97316 0%, #c2410c 100%);
  color: #000;
}

.btn.ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.14);
}

.btn.small {
  padding: 7px 15px;
  font-size: 13.5px;
}

.btn.big {
  padding: 14px 28px;
  font-size: 17px;
  border-radius: 14px;
}

.btn:disabled, .btn[aria-disabled=true] {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

/* ---------- Dropzone (100% Transparent Glass) ---------- */
.dropzone {
  border: 2px dashed rgba(251, 146, 60, 0.45);
  border-radius: var(--r);
  background: transparent;
  text-align: center;
  padding: 40px 20px;
  color: var(--brand);
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.dropzone.drag {
  background: rgba(251, 146, 60, 0.12);
  border-color: #ffffff;
  transform: scale(1.015);
  box-shadow: 0 0 35px rgba(251, 146, 60, 0.35);
}

.dz-title {
  color: #ffffff;
  font-weight: 550;
  font-size: 19px;
}

.dropzone .btn {
  margin-top: 10px;
}

/* ---------- Progress Bar ---------- */
.bar {
  height: 10px;
  background: rgba(255, 255, 255, 0.10);
  border-radius: 99px;
  overflow: hidden;
  flex: 1;
}

.bar.tall {
  height: 14px;
}

.bar i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #fb923c, #f59e0b);
  border-radius: 99px;
  transition: width 0.25s ease;
  box-shadow: 0 0 16px rgba(251, 146, 60, 0.8);
}

.progress-row {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-top: 18px;
}

/* ---------- File Lists & Chips ---------- */
.filelist {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.file {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(4px);
}

.file-top {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.file-name {
  font-weight: 550;
  color: #ffffff;
  word-break: break-all;
}

.chip {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 550;
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.chip.ok {
  background: rgba(34, 197, 94, 0.20);
  border-color: rgba(34, 197, 94, 0.5);
  color: #4ade80;
}

.chip.warn {
  background: rgba(245, 158, 11, 0.20);
  border-color: rgba(245, 158, 11, 0.5);
  color: #fde68a;
}

.chip.err {
  background: rgba(239, 68, 68, 0.20);
  border-color: rgba(239, 68, 68, 0.5);
  color: #fca5a5;
}

.chip.brand {
  background: rgba(251, 146, 60, 0.22);
  border-color: rgba(251, 146, 60, 0.5);
  color: var(--brand);
}

.icon-btn {
  border: 0;
  background: transparent;
  color: #cbd5e1;
  cursor: pointer;
  font-size: 15px;
  padding: 5px 10px;
  border-radius: 8px;
  transition: all 0.15s;
}

.icon-btn:hover {
  background: rgba(239, 68, 68, 0.25);
  color: #fca5a5;
}

/* ---------- Target App Selection Grid ---------- */
.appgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.appcard {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.02);
  border-radius: 14px;
  padding: 18px;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.2s ease;
  position: relative;
}

.appcard:hover {
  border-color: rgba(251, 146, 60, 0.55);
  background: rgba(251, 146, 60, 0.06);
  transform: translateY(-2px);
}

.appcard.sel {
  border-color: var(--brand);
  background: rgba(251, 146, 60, 0.20);
  box-shadow: 0 0 20px rgba(251, 146, 60, 0.35);
}

.appcard.sel::after {
  content: "✓";
  position: absolute;
  top: 10px;
  right: 12px;
  font-weight: 600;
  font-size: 16px;
  color: var(--brand);
}

.appcard .ico {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.appcard b {
  font-size: 16px;
  font-weight: 550;
  color: #ffffff;
}

.appcard small {
  color: #cbd5e1;
  font-weight: 400;
  font-size: 13px;
  line-height: 1.4;
}

/* ---------- Format Selection Cards ---------- */
.formats {
  display: grid;
  gap: 12px;
}

.fmt {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 16px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.02);
  transition: all 0.15s ease;
}

.fmt:hover {
  border-color: rgba(251, 146, 60, 0.45);
  background: rgba(251, 146, 60, 0.05);
}

.fmt.sel {
  border-color: var(--brand);
  background: rgba(251, 146, 60, 0.16);
  box-shadow: 0 0 18px rgba(251, 146, 60, 0.25);
}

.fmt input {
  margin-top: 4px;
  accent-color: var(--brand);
  width: 18px;
  height: 18px;
}

.fmt .ft {
  font-weight: 550;
  font-size: 15px;
  color: #ffffff;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.fmt .fd {
  font-size: 13.5px;
  font-weight: 400;
  color: #cbd5e1;
  margin-top: 4px;
}

/* ---------- Rebrand Form Inputs ---------- */
.brandbox {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px dashed rgba(255, 255, 255, 0.16);
}

.brandbox .grid2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 14px 0;
}

.field {
  display: grid;
  gap: 6px;
  font-weight: 500;
  font-size: 13.5px;
  color: #ffffff;
}

.brandbox input[type=text],
#productBox textarea,
input[type=file] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
  font: inherit;
  font-weight: 500;
}

.brandbox input[type=text]:focus,
#productBox textarea:focus {
  border-color: var(--brand);
  outline: none;
  background: rgba(251, 146, 60, 0.08);
  box-shadow: 0 0 14px rgba(251, 146, 60, 0.35);
}

.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  cursor: pointer;
  color: #ffffff;
  font-weight: 550;
}

.check input {
  margin-top: 5px;
  width: 18px;
  height: 18px;
  accent-color: var(--brand);
}

.check small {
  display: block;
  color: #cbd5e1;
  font-weight: 400;
  margin-top: 2px;
}

/* ---------- Log Console ---------- */
.log {
  list-style: none;
  margin: 14px 0 0;
  padding: 14px;
  background: rgba(0, 0, 0, 0.65);
  color: #e2e8f0;
  border-radius: 12px;
  font: 13.5px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  max-height: 240px;
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.log li.warn { color: #fde68a; font-weight: 500; }
.log li.err { color: #fca5a5; font-weight: 500; }
.log li.ok { color: #86efac; font-weight: 500; }

/* ---------- Brush Thumbnails & Previews (Step 5) ---------- */
.brushgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  margin-top: 14px;
  max-height: 560px;
  overflow: auto;
  padding: 2px;
}

.bcard {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  position: relative;
  transition: all 0.15s ease;
}

.bcard:hover {
  border-color: rgba(251, 146, 60, 0.55);
  background: rgba(251, 146, 60, 0.06);
}

.bcard input {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 18px;
  height: 18px;
  accent-color: var(--brand);
}

.thumb {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 8px;
  aspect-ratio: 1/1;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.stroke {
  aspect-ratio: 640/170;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 8px;
  overflow: hidden;
}

.stroke img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.bname {
  font-size: 13.5px;
  font-weight: 550;
  color: #ffffff;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.bmeta {
  font-size: 12px;
  color: #cbd5e1;
  font-weight: 400;
}

/* ---------- Downloads (Step 6) ---------- */
.downloads {
  display: grid;
  gap: 12px;
}

.dl {
  display: flex;
  gap: 14px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 14px 18px;
  flex-wrap: wrap;
  background: rgba(255, 255, 255, 0.02);
}

.dl:hover {
  border-color: rgba(251, 146, 60, 0.55);
  background: rgba(251, 146, 60, 0.04);
}

.dl .nm {
  font-weight: 550;
  color: #ffffff;
  word-break: break-all;
  flex: 1;
  min-width: 180px;
}

/* ---------- Toast Notification ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  background: rgba(15, 17, 26, 0.95);
  border: 1px solid rgba(251, 146, 60, 0.6);
  color: #ffffff;
  padding: 14px 22px;
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(251, 146, 60, 0.35);
  font-weight: 550;
  z-index: 1000;
  max-width: 90vw;
}

/* ---------- Footer ---------- */
footer.foot {
  padding: 44px 20px 60px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
}

#footNote {
  color: #cbd5e1;
  font-size: 13.5px;
  font-weight: 400;
  max-width: 780px;
  margin: 0 auto;
  line-height: 1.6;
}

/* =========================================================================
   Cross-Device Responsive Media Queries (Mobile, Tablet, Desktop)
   ========================================================================= */

@media (max-width: 860px) {
  nav.top-nav {
    position: relative;
  }
  .nav-in {
    padding: 10px 16px;
    flex-wrap: wrap;
    gap: 12px;
  }
  .brand-row {
    font-size: 18px;
  }
  .nav-links {
    order: 3;
    width: 100%;
    justify-content: space-around;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 4px;
    margin-top: 2px;
  }
  .nav-links a {
    padding: 6px 12px;
    font-size: 13.5px;
  }
  .stepper {
    top: 10px;
  }
  .card {
    padding: 22px 18px;
  }
  .appgrid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
  }
}

@media (max-width: 640px) {
  .wrap {
    padding: 0 14px;
  }
  .hero {
    padding: 28px 0 20px;
  }
  .hero h1 {
    font-size: 30px;
  }
  .subtitle {
    font-size: 15px;
  }
  .card {
    padding: 18px 14px;
    border-radius: 16px;
  }
  .card-head {
    gap: 12px;
  }
  .card-head h2 {
    font-size: 19px;
  }
  .num {
    width: 32px;
    height: 32px;
    font-size: 14.5px;
  }
  .stepper ol {
    padding: 6px 8px;
    gap: 4px;
  }
  .stepper li {
    padding: 6px 10px;
    font-size: 12.5px;
  }
  .btn.big {
    width: 100%;
    padding: 12px 18px;
    font-size: 15.5px;
  }
  .btnrow {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }
  .appgrid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .appcard {
    padding: 12px;
  }
  .appcard b {
    font-size: 14.5px;
  }
  .appcard .ico {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }
  .brandbox .grid2 {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .brushgrid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  }
}

@media (max-width: 400px) {
  .appgrid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================================
   Light / Dark Mode Suite for Classic Stepper ([data-theme="light"])
   ========================================================================= */

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

.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 13px;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  line-height: 1;
}

.theme-toggle-btn:hover {
  color: var(--brand);
  border-color: rgba(251, 146, 60, 0.45);
  background: rgba(251, 146, 60, 0.1);
  transform: translateY(-1px);
}

.theme-toggle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle-btn .icon-moon {
  display: inline-block;
  color: #fb923c;
}
.theme-toggle-btn .icon-sun {
  display: none;
  color: #ea580c;
}

[data-theme="light"] {
  --bg: #f8fafc;
  --card: rgba(255, 255, 255, 0.94);
  --ink: #0f172a;
  --muted: #475569;
  --line: rgba(15, 23, 42, 0.12);
  --brand: #ea580c;
  --brand-d: #c2410c;
  --brand-l: rgba(234, 88, 12, 0.12);
}

[data-theme="light"] body {
  background-color: var(--bg);
  background-image: 
    radial-gradient(at 15% 15%, rgba(99, 102, 241, 0.06) 0px, transparent 55%),
    radial-gradient(at 85% 25%, rgba(234, 88, 12, 0.08) 0px, transparent 60%);
  color: var(--ink);
}

[data-theme="light"] #bg-3d-canvas {
  opacity: 0.30;
}

[data-theme="light"] .top-nav {
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(15, 23, 42, 0.09);
}

[data-theme="light"] .brand-row {
  color: #0f172a;
}

[data-theme="light"] .nav-links a {
  color: #64748b;
}

[data-theme="light"] .nav-links a:hover {
  color: #0f172a;
}

[data-theme="light"] .nav-links a.active {
  color: var(--brand);
}

[data-theme="light"] .nav-link-btn {
  color: #334155;
  border-color: rgba(15, 23, 42, 0.15);
  background: rgba(15, 23, 42, 0.03);
}

[data-theme="light"] .card {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(15, 23, 42, 0.11);
  box-shadow: 0 14px 38px rgba(15, 23, 42, 0.06);
}

[data-theme="light"] .appcard {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.1);
  color: #0f172a;
}

[data-theme="light"] .appcard.sel {
  border-color: var(--brand);
  background: rgba(234, 88, 12, 0.08);
}

[data-theme="light"] .dropzone {
  background: rgba(248, 250, 252, 0.7);
  border-color: rgba(15, 23, 42, 0.22);
}

[data-theme="light"] .input,
[data-theme="light"] input[type="text"],
[data-theme="light"] textarea {
  background: #ffffff !important;
  border-color: rgba(15, 23, 42, 0.16) !important;
  color: #0f172a !important;
}

[data-theme="light"] .theme-toggle-btn {
  background: rgba(15, 23, 42, 0.04);
  border-color: rgba(15, 23, 42, 0.15);
  color: #475569;
}

[data-theme="light"] .theme-toggle-btn .icon-moon {
  display: none;
}

[data-theme="light"] .theme-toggle-btn .icon-sun {
  display: inline-block;
}
