/* =========================================================
   CYBER PUNK DESIGN SYSTEM (JS FRIENDLY)
   Works with your HTML + jQuery builder controls
========================================================= */
:root{
  /* JS controlled */
  --primary:#00e5ff;
  --bg:#05060b;
  --text:#e8f2ff;
  --radius:14px;

  /* Cyber palette */
  --pink:#ff2bd6;
  --purple:#7c3aed;
  --lime:#b6ff3a;
  --cyan:#00e5ff;
  --amber:#ffb020;

  --muted:rgba(232,242,255,.70);
  --muted2:rgba(232,242,255,.55);

  /* Surfaces */
  --surface:rgba(12,14,26,.72);
  --surface2:rgba(18,20,38,.62);
  --border:rgba(255,255,255,.10);
  --border2:rgba(0,229,255,.22);

  /* Shadows / glow */
  --shadow:0 18px 50px rgba(0,0,0,.55);
  --glow:0 0 18px rgba(0,229,255,.34);
  --glow2:0 0 28px rgba(255,43,214,.26);

  /* Hero (keeps your existing var names too) */
  --hero1:#04050a;
  --hero2:#070a14;
  --grid:rgba(0,229,255,.09);

  --transition:.28s cubic-bezier(.2,.8,.2,1);
}

/* =========================================================
   RESET + BASE
========================================================= */

*{box-sizing:border-box;margin:0;padding:0}
html,body{height:100%}
body{
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  background: radial-gradient(1100px 700px at 20% 10%, rgba(255,43,214,.14), transparent 55%),
              radial-gradient(900px 600px at 90% 20%, rgba(0,229,255,.16), transparent 58%),
              radial-gradient(900px 700px at 60% 95%, rgba(124,58,237,.18), transparent 60%),
              var(--bg);
  color:var(--text);
  overflow-x:hidden;
  transition:var(--transition);
}

#previewWrapper{
  min-height:100vh;
}

/* Subtle animated noise / scanlines */
body::before{
  content:"";
  position:fixed;inset:0;
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(255,255,255,.03) 0px,
      rgba(255,255,255,.03) 1px,
      transparent 2px,
      transparent 6px
    );
  opacity:.12;
  pointer-events:none;
  z-index:0;
}
body::after{
  content:"";
  position:fixed;inset:0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(0,229,255,.07) 1px, transparent 0);
  background-size: 44px 44px;
  opacity:.16;
  pointer-events:none;
  z-index:0;
}

/* keep content above overlays */
#previewWrapper, #builderToggle, #builderPanel { position:relative; z-index:1; }

/* =========================================================
   HEADER (GLASS + NEON)
========================================================= */

.header{
  position:sticky;
  top:0;
  z-index:50;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:16px 44px;
  background:linear-gradient(180deg, rgba(8,10,18,.78), rgba(8,10,18,.58));
  backdrop-filter: blur(14px);
  border-bottom:1px solid rgba(255,255,255,.10);
  box-shadow: 0 8px 28px rgba(0,0,0,.45);
}

.header::before{
  content:"";
  position:absolute;left:0;right:0;bottom:-1px;height:1px;
  background:linear-gradient(90deg, transparent, rgba(0,229,255,.65), rgba(255,43,214,.55), transparent);
  opacity:.9;
}

.logo{
  font-weight:900;
  letter-spacing:.6px;
  font-size:22px;
  color:var(--text);
  text-shadow: 0 0 18px rgba(0,229,255,.22);
}
.logo.editable:focus{ text-shadow: 0 0 22px rgba(0,229,255,.40); }

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

.nav-item{
  text-decoration:none;
  color:rgba(232,242,255,.78);
  font-weight:600;
  font-size:14px;
  padding:10px 12px;
  border-radius: 12px;
  transition:var(--transition);
  position:relative;
}
.nav-item:hover{
  color:var(--text);
  background:rgba(255,255,255,.06);
  box-shadow: inset 0 0 0 1px rgba(0,229,255,.16);
}

/* Header layouts (used by JS) */
.layout-center{
  flex-direction:column;
  gap:10px;
  padding:18px 18px;
}
.layout-minimal .nav{display:none}

/* =========================================================
   HERO (CYBER GRID + GLOW)
========================================================= */

.hero{
  min-height:88vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:96px 20px;
  text-align:center;
  position:relative;
  overflow:hidden;
  background:
    radial-gradient(1000px 600px at 20% 20%, rgba(0,229,255,.18), transparent 60%),
    radial-gradient(900px 560px at 80% 30%, rgba(255,43,214,.16), transparent 62%),
    linear-gradient(140deg, var(--hero1), var(--hero2));
}

.hero::before{
  content:"";
  position:absolute; inset:-2px;
  background:
    linear-gradient(to right, var(--grid) 1px, transparent 1px) 0 0 / 58px 58px,
    linear-gradient(to bottom, var(--grid) 1px, transparent 1px) 0 0 / 58px 58px;
  opacity:.22;
  transform: perspective(700px) rotateX(58deg) translateY(220px);
  transform-origin:center;
}

.hero::after{
  content:"";
  position:absolute;
  width:720px;height:720px;
  right:-240px;top:-240px;
  background: radial-gradient(circle, rgba(0,229,255,.34), transparent 60%);
  filter: blur(70px);
  opacity:.55;
}

#heroContent{
  position:relative;
  max-width:980px;
  width:100%;
}

.hero h1{
  font-size:clamp(38px,5vw,64px);
  line-height:1.06;
  letter-spacing:-1.2px;
  margin-bottom:18px;
  font-weight:950;
  text-shadow: 0 0 24px rgba(0,229,255,.18);
}

.hero p{
  font-size:18px;
  max-width:660px;
  margin: 0 auto 28px;
  color: rgba(232,242,255,.78);
}

#heroButtons{
  display:flex;
  gap:14px;
  justify-content:center;
  flex-wrap:wrap;
}

/* Hero layouts (used by JS) */
.hero-left{
  justify-content:flex-start;
  text-align:left;
  padding-left:120px;
}
.hero-split{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:40px;
  text-align:left;
}

/* =========================================================
   BUTTONS (NEON)
========================================================= */

.btn-primary{
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--primary) 85%, #ffffff 0%), rgba(255,255,255,.06));
  border:1px solid color-mix(in srgb, var(--primary) 65%, transparent);
  color:var(--text);
  padding:14px 28px;
  font-weight:800;
  letter-spacing:.2px;
  border-radius:var(--radius);
  cursor:pointer;
  box-shadow: var(--glow), 0 18px 45px rgba(0,0,0,.38);
  transition:var(--transition);
  position:relative;
  overflow:hidden;
}

.btn-primary::before{
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent);
  transform: translateX(-120%);
  transition: transform .55s ease;
}

.btn-primary:hover{
  transform: translateY(-3px);
  box-shadow: 0 0 22px rgba(0,229,255,.42), 0 22px 60px rgba(0,0,0,.46);
}
.btn-primary:hover::before{
  transform: translateX(120%);
}

.btn-outline{
  background: rgba(255,255,255,.03);
  border:1px solid rgba(255,255,255,.14);
  color:rgba(232,242,255,.88);
  padding:13px 26px;
  font-weight:800;
  border-radius:var(--radius);
  cursor:pointer;
  transition:var(--transition);
  box-shadow: 0 12px 40px rgba(0,0,0,.32);
}
.btn-outline:hover{
  border-color: rgba(255,43,214,.35);
  box-shadow: 0 0 18px rgba(255,43,214,.22), 0 18px 55px rgba(0,0,0,.40);
}

/* Button shape classes used by JS */
.rounded{border-radius:14px}
.square{border-radius:6px}
.pill{border-radius:999px}

/* =========================================================
   SECTIONS
========================================================= */

.section{
  padding:110px 20px;
  text-align:center;
  position:relative;
}

.section::before{
  content:"";
  position:absolute;
  left:50%;
  top:0;
  width:min(980px, 92vw);
  height:1px;
  transform:translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.10), transparent);
}

.section-title{
  font-size:34px;
  font-weight:950;
  letter-spacing:-.7px;
  margin-bottom:44px;
  text-shadow: 0 0 18px rgba(0,229,255,.12);
}

.section.hidden{display:none}

/* =========================================================
   CARDS (GLASS + NEON EDGE)
========================================================= */

.cards-grid{
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap:22px;
}

.card{
  width:320px;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border:1px solid rgba(255,255,255,.12);
  border-radius: calc(var(--radius) + 10px);
  padding:30px;
  box-shadow: 0 18px 55px rgba(0,0,0,.45);
  backdrop-filter: blur(12px);
  transition:var(--transition);
  position:relative;
  overflow:hidden;
}

.card::before{
  content:"";
  position:absolute; inset:-1px;
  background: linear-gradient(120deg, rgba(0,229,255,.25), rgba(255,43,214,.16), rgba(124,58,237,.16));
  opacity:.18;
  filter: blur(18px);
}

.card > *{ position:relative; z-index:1; }

.card:hover{
  transform: translateY(-10px);
  box-shadow: 0 0 26px rgba(0,229,255,.18), 0 25px 70px rgba(0,0,0,.55);
  border-color: rgba(0,229,255,.28);
}

.card h3{
  font-size:20px;
  font-weight:900;
  margin-bottom:10px;
  letter-spacing:-.2px;
}
.card p{
  color: var(--muted);
}

.testimonial-card{
  max-width:560px;
  margin: 0 auto;
}

/* =========================================================
   FORM (CYBER INPUTS)
========================================================= */

#leadForm{
  max-width:520px;
  margin: 0 auto;
  display:flex;
  flex-direction:column;
  gap:14px;
}

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

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

#leadForm input,
#leadForm select,
#leadForm textarea{
  width:100%;
  padding:13px 14px;
  border-radius: calc(var(--radius) - 2px);
  background: rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.14);
  color: var(--text);
  font-family: inherit;
  outline:none;
  transition:var(--transition);
}

#leadForm textarea{
  resize: vertical;
  min-height: 100px;
  font-size: 14px;
  line-height: 1.4;
}

#leadForm input::placeholder,
#leadForm textarea::placeholder{ color: rgba(232,242,255,.45); }

#leadForm input:focus,
#leadForm select:focus,
#leadForm textarea:focus{
  border-color: rgba(0,229,255,.45);
  box-shadow: 0 0 0 3px rgba(0,229,255,.16);
  background: rgba(255,255,255,.06);
}

.form-buttons{
  display:grid;
  grid-template-columns: 2fr 1fr;
  gap:12px;
  margin-top: 8px;
}

@media (max-width: 600px) {
  .form-buttons {
    grid-template-columns: 1fr;
  }
}

#leadForm .btn-primary,
#leadForm .btn-secondary{
  padding:13px 18px;
  border:none;
  border-radius: calc(var(--radius) - 2px);
  font-weight:600;
  cursor:pointer;
  outline:none;
  transition:var(--transition);
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.5px;
}

#leadForm .btn-primary{
  background: linear-gradient(135deg, var(--primary), rgba(0,229,255,.8));
  color: var(--bg);
  box-shadow: 0 0 18px rgba(0,229,255,.35);
}

#leadForm .btn-primary:hover{
  box-shadow: 0 0 28px rgba(0,229,255,.55);
  transform: translateY(-2px);
}

#leadForm .btn-secondary{
  background: rgba(0,229,255,.15);
  color: var(--primary);
  border: 1px solid rgba(0,229,255,.35);
  font-size: 14px;
  text-transform: none;
}

#leadForm .btn-secondary:hover{
  background: rgba(0,229,255,.25);
  box-shadow: 0 0 12px rgba(0,229,255,.25);
  transform: translateY(-2px);
}

/* =========================================================
   EDITABLE (VISUAL + SAFE)
========================================================= */

.editable{
  outline:none;
  border-radius:10px;
  transition:var(--transition);
}

.editable:focus{
  background: rgba(0,229,255,.08);
  box-shadow: inset 0 0 0 1px rgba(0,229,255,.35), 0 0 0 3px rgba(0,229,255,.10);
}
/* =========================================================
   BUILDER PANEL — Cyberpunk UI (v4)
   For the HTML you pasted:
   #builderPanel, #builderTabs, .builder-tab, .builder-content,
   .builder-group, .builder-grid, .builder-field,
   .builder-cards, .builder-card, .builder-switch, .builder-range,
   .builder-btn, .sort-item, etc.
========================================================= */

#builderPanel{
  position:fixed;
  top:14px;
  right:14px;
  width:min(420px, calc(100vw - 28px));
  max-height:calc(100vh - 28px);
  overflow:hidden;
  z-index:9999;

  border-radius:18px;
  border:1px solid rgba(0,229,255,.22);
  background:
    radial-gradient(140% 120% at 10% 0%, rgba(0,229,255,.10), transparent 55%),
    radial-gradient(120% 140% at 100% 20%, rgba(255,0,200,.08), transparent 55%),
    linear-gradient(180deg, rgba(7,10,18,.82), rgba(5,6,11,.88));

  box-shadow:
    0 22px 70px rgba(0,0,0,.58),
    0 0 0 1px rgba(255,255,255,.04) inset;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  transform: translateY(0);
  transition: transform .28s ease, opacity .28s ease;
  color: var(--text, #e8f2ff);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, sans-serif;
}

#builderPanel.closed{
  transform: translateY(10px);
  opacity:0;
  pointer-events:none;
}

/* Nice scroll inside content */
#builderPanel .builder-content{
  overflow:auto;
  max-height:calc(100vh - 28px - 58px);
  padding:14px;
  display:none;
  scrollbar-width: thin;
  scrollbar-color: rgba(0,229,255,.35) rgba(255,255,255,.06);
}
#builderPanel .builder-content.active{ display:block; }

#builderPanel .builder-content::-webkit-scrollbar{ width:10px; }
#builderPanel .builder-content::-webkit-scrollbar-track{
  background: rgba(255,255,255,.05);
  border-radius: 20px;
}
#builderPanel .builder-content::-webkit-scrollbar-thumb{
  background: linear-gradient(180deg, rgba(0,229,255,.50), rgba(255,0,200,.35));
  border: 2px solid rgba(10,12,18,.8);
  border-radius: 20px;
}
#builderPanel .builder-content::-webkit-scrollbar-thumb:hover{
  background: linear-gradient(180deg, rgba(0,229,255,.72), rgba(255,0,200,.55));
}

/* =========================================================
   TOP TABS
========================================================= */
#builderTabs{
  display:flex;
  align-items:center;
  gap:8px;
  padding:10px;
  border-bottom:1px solid rgba(255,255,255,.07);
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(0,229,255,.10), transparent 55%),
    linear-gradient(180deg, rgba(10,12,18,.65), rgba(10,12,18,.35));
  position:sticky;
  top:0;
  z-index:10;
}

#builderTabs .builder-tab{
  appearance:none;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.05);
  color: rgba(232,242,255,.86);
  padding:8px 10px;
  border-radius:12px;
  font-weight:700;
  font-size:12px;
  letter-spacing:.4px;
  cursor:pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
  white-space:nowrap;
}
#builderTabs .builder-tab:hover{
  transform: translateY(-1px);
  border-color: rgba(0,229,255,.32);
}
#builderTabs .builder-tab.active{
  background: linear-gradient(120deg, rgba(0,229,255,.22), rgba(255,0,200,.14));
  border-color: rgba(0,229,255,.45);
  color: #e8f2ff;
  box-shadow: 0 10px 30px rgba(0,229,255,.12);
}

#builderClose{
  margin-left:auto;
  width:38px;
  height:38px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.06);
  color: rgba(232,242,255,.9);
  cursor:pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
#builderClose:hover{
  transform: translateY(-1px);
  border-color: rgba(255,0,200,.35);
  background: rgba(255,0,200,.10);
}

/* =========================================================
   GROUPS / HEADERS
========================================================= */
.builder-group{
  border:1px solid rgba(255,255,255,.07);
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(0,229,255,.06), transparent 55%),
    rgba(255,255,255,.03);
  border-radius:16px;
  padding:12px;
  margin-bottom:12px;
  box-shadow: 0 10px 30px rgba(0,0,0,.22);
}

.builder-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}

.builder-row-head{
  margin-bottom:10px;
}

.builder-title{
  margin:0;
  font-size:13px;
  font-weight:900;
  letter-spacing:.5px;
  text-transform:uppercase;
  color: rgba(232,242,255,.92);
}

.builder-hint{
  font-size:11px;
  color: rgba(138,160,199,.95);
  opacity:.92;
}

.builder-note{
  display:block;
  margin-top:6px;
  font-size:11px;
  color: rgba(138,160,199,.9);
}

.builder-divider{
  height:1px;
  width:100%;
  background: rgba(255,255,255,.08);
  margin:10px 0;
  border-radius:999px;
}

/* =========================================================
   GRID + FIELD
========================================================= */
.builder-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:10px;
  margin-top:10px;
}
@media (max-width: 420px){
  .builder-grid{ grid-template-columns: 1fr; }
}

.builder-field{
  display:flex;
  flex-direction:column;
  gap:6px;
  min-width:0;
}

.builder-field label{
  font-size:12px;
  font-weight:800;
  color: rgba(232,242,255,.92);
}

.builder-field input[type="text"],
.builder-field input[type="email"],
.builder-field input[type="tel"],
.builder-field input[type="url"],
.builder-field select{
  width:100%;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.22);
  color: rgba(232,242,255,.92);
  outline:none;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.builder-field input::placeholder{
  color: rgba(138,160,199,.65);
}

.builder-field input:focus,
.builder-field select:focus{
  border-color: rgba(0,229,255,.45);
  box-shadow: 0 0 0 4px rgba(0,229,255,.10);
}

.builder-field input[type="color"]{
  width:100%;
  height:42px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.20);
  padding:6px;
  cursor:pointer;
}

/* =========================================================
   RANGE UI
========================================================= */
.builder-range{
  display:flex;
  align-items:center;
  gap:10px;
}

.builder-range input[type="range"]{
  width:100%;
  accent-color: var(--primary, #00e5ff);
}

.builder-output{
  min-width:64px;
  text-align:right;
  font-size:12px;
  font-weight:900;
  color: rgba(232,242,255,.95);
  opacity:.95;
}

/* =========================================================
   SWITCH (checkbox)
========================================================= */
.builder-switch{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  user-select:none;
}

.builder-switch input{
  position:absolute;
  opacity:0;
  width:1px;height:1px;
}

.switch-ui{
  width:44px;
  height:26px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.25);
  position:relative;
  flex:0 0 auto;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.05);
}
.switch-ui::after{
  content:"";
  position:absolute;
  top:3px;
  left:3px;
  width:20px;
  height:20px;
  border-radius:999px;
  background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(255,255,255,.65));
  box-shadow: 0 10px 25px rgba(0,0,0,.35);
  transition: transform .18s ease, background .18s ease;
}

.builder-switch input:checked + .switch-ui{
  border-color: rgba(0,229,255,.35);
  background: linear-gradient(120deg, rgba(0,229,255,.22), rgba(255,0,200,.12));
}
.builder-switch input:checked + .switch-ui::after{
  transform: translateX(18px);
  background: linear-gradient(180deg, rgba(0,229,255,.95), rgba(255,0,200,.55));
}

.switch-text{
  font-size:12px;
  font-weight:800;
  color: rgba(232,242,255,.90);
}

/* =========================================================
   CHECK ROWS
========================================================= */
.builder-check{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  margin-top:8px;
}
.builder-check input{
  width:16px;height:16px;
  accent-color: var(--primary, #00e5ff);
}
.builder-check span{
  font-weight:800;
  font-size:12px;
  color: rgba(232,242,255,.92);
}

/* =========================================================
   CARDS (radio/checkbox)
========================================================= */
.builder-cards{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:10px;
  margin-top:10px;
}
@media (max-width: 420px){
  .builder-cards{ grid-template-columns: 1fr; }
}

.builder-card{
  display:flex;
  flex-direction:column;
  gap:8px;
  padding:12px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.10);
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(0,229,255,.07), transparent 55%),
    rgba(0,0,0,.20);
  cursor:pointer;
  position:relative;
  overflow:hidden;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.builder-card:hover{
  transform: translateY(-2px);
  border-color: rgba(0,229,255,.30);
  box-shadow: 0 18px 40px rgba(0,0,0,.30);
}

.builder-card input{
  position:absolute;
  opacity:0;
  pointer-events:none;
}

.builder-card::after{
  content:"";
  position:absolute;
  inset:-2px;
  border-radius:18px;
  background: radial-gradient(800px 220px at 20% 10%, rgba(0,229,255,.10), transparent 55%);
  opacity:.0;
  transition: opacity .18s ease;
  pointer-events:none;
}

.builder-card input:checked ~ .card-badge,
.builder-card input:checked ~ .card-meta,
.builder-card input:checked ~ .card-preview{
  filter: none;
}

.builder-card input:checked + .card-badge{
  /* (works because badge is first after input) */
}

.builder-card input:checked ~ *{
  opacity:1;
}

.builder-card input:checked ~ .card-preview{
  outline: 2px solid rgba(0,229,255,.45);
}

.builder-card input:checked ~ .card-badge{
  color:#e8f2ff;
}

.builder-card:has(input:checked){
  border-color: rgba(0,229,255,.55);
  box-shadow:
    0 18px 60px rgba(0,229,255,.10),
    0 18px 45px rgba(0,0,0,.35);
}
.builder-card:has(input:checked)::after{
  opacity:1;
}

.card-badge{
  font-size:12px;
  font-weight:900;
  letter-spacing:.4px;
  color: rgba(232,242,255,.92);
}

.card-meta{
  font-size:11px;
  color: rgba(138,160,199,.92);
}

.card-preview{
  height:34px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.05);
}

/* Optional preview colors (works when you add data-preview styles) */
.card-preview[data-preview="cyberBlue"]{
  background: linear-gradient(120deg, rgba(0,229,255,.45), rgba(10,12,18,.4));
}
.card-preview[data-preview="neonPink"]{
  background: linear-gradient(120deg, rgba(255,0,200,.42), rgba(10,12,18,.4));
}
.card-preview[data-preview="acidLime"]{
  background: linear-gradient(120deg, rgba(190,255,0,.40), rgba(10,12,18,.4));
}
.card-preview[data-preview="monoTech"]{
  background: linear-gradient(120deg, rgba(255,255,255,.22), rgba(10,12,18,.55));
}

/* =========================================================
   BUTTONS
========================================================= */
.builder-row-actions{
  margin-top:12px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.builder-btn{
  appearance:none;
  border:1px solid rgba(0,229,255,.25);
  background: linear-gradient(120deg, rgba(0,229,255,.18), rgba(255,0,200,.10));
  color: rgba(232,242,255,.95);
  padding:10px 12px;
  border-radius:14px;
  font-weight:900;
  font-size:12px;
  letter-spacing:.4px;
  cursor:pointer;
  transition: transform .15s ease, border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.builder-btn:hover{
  transform: translateY(-1px);
  border-color: rgba(0,229,255,.45);
  box-shadow: 0 16px 40px rgba(0,229,255,.10);
}

.builder-btn:active{
  transform: translateY(0);
}

.builder-btn-ghost{
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
}
.builder-btn-ghost:hover{
  border-color: rgba(255,0,200,.35);
  box-shadow: 0 16px 40px rgba(255,0,200,.10);
}

.builder-btn-glow{
  border-color: rgba(0,229,255,.45);
  box-shadow:
    0 0 0 1px rgba(0,229,255,.08) inset,
    0 24px 60px rgba(0,229,255,.12);
}

/* =========================================================
   SORT (Drag list)
========================================================= */
.builder-sort{
  display:flex;
  flex-direction:column;
  gap:8px;
  margin-top:10px;
}

.sort-item{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.18);
  cursor:grab;
  transition: border-color .15s ease, transform .15s ease;
}

.sort-item:hover{
  transform: translateY(-1px);
  border-color: rgba(0,229,255,.30);
}

.sort-handle{
  width:28px;
  height:28px;
  display:grid;
  place-items:center;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  color: rgba(232,242,255,.92);
  font-weight:900;
}

.sort-name{
  font-weight:900;
  font-size:12px;
  color: rgba(232,242,255,.95);
}

.sort-id{
  margin-left:auto;
  font-size:11px;
  color: rgba(138,160,199,.88);
  opacity:.9;
}

/* =========================================================
   BUILDER TOGGLE (floating settings button)
   Your JS creates #builderToggle if missing.
========================================================= */
#builderToggle{
  position:fixed;
  right:16px;
  bottom:16px;
  width:56px;
  height:56px;
  border-radius:18px;
  border:1px solid rgba(0,229,255,.35);
  background:
    radial-gradient(120% 140% at 30% 10%, rgba(0,229,255,.20), transparent 60%),
    linear-gradient(120deg, rgba(0,229,255,.14), rgba(255,0,200,.12));
  color: rgba(232,242,255,.95);
  font-size:22px;
  cursor:pointer;
  z-index:10000;
  box-shadow:
    0 20px 50px rgba(0,0,0,.55),
    0 0 0 1px rgba(255,255,255,.05) inset;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
#builderToggle:hover{
  transform: translateY(-2px);
  border-color: rgba(0,229,255,.55);
  box-shadow:
    0 26px 70px rgba(0,229,255,.12),
    0 24px 55px rgba(0,0,0,.55);
}
#builderToggle:active{
  transform: translateY(0);
}

/* =========================================================
   SMALL A11Y / FOCUS
========================================================= */
#builderPanel button:focus,
#builderPanel input:focus,
#builderPanel select:focus{
  outline:none;
}

#builderPanel button:focus-visible,
#builderPanel input:focus-visible,
#builderPanel select:focus-visible{
  box-shadow: 0 0 0 4px rgba(0,229,255,.12);
  border-color: rgba(0,229,255,.55);
}

/* =========================================================
   OPTIONAL: reduce motion
========================================================= */
@media (prefers-reduced-motion: reduce){
  #builderPanel,
  #builderTabs .builder-tab,
  .builder-card,
  .builder-btn,
  #builderToggle,
  .sort-item{
    transition:none !important;
  }
}

#darkModeToggle{
  background: linear-gradient(135deg, rgba(124,58,237,.25), rgba(0,229,255,.18));
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 980px){
  .header{padding:14px 16px}
  .nav{gap:10px; flex-wrap:wrap; justify-content:center}
  .hero-left{padding-left:22px}
}

@media (max-width: 768px){
  #builderPanel{width:92vw}
  .hero{padding:84px 14px}
  .section{padding:90px 14px}
  .cards-grid{gap:14px}
  .card{width:min(420px, 92vw)}
  #heroButtons{flex-direction:column}
}

/* =========================================================
   OPTIONAL DARK MODE CLASS (your JS toggles body.dark)
========================================================= */

.dark{
  --bg:#03040a;
  --text:#eaf3ff;
  --muted:rgba(232,242,255,.70);
  --surface:rgba(12,14,26,.72);
}
