:root {
  --bg-dark: #0d0f14;
  --bg-surface: #131720;
  --bg-elevated: #191e2b;
  --bg-card: #161b26;
  --bg-card-hover: #1e2534;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.15);

  /* Paleta Designi */
  --designi-blue: #0066ff;
  --designi-blue-hover: #1a75ff;
  --designi-cyan: #00d4ff;
  --designi-gold: #ffb800;
  --designi-green: #00d68f;
  --designi-pink: #ff2a85;

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
}

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

body {
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  overflow-x: hidden;
  min-height: 100vh;
}

button, input, select {
  font-family: inherit;
}

/* ==========================================================================
   HEADER / NAVBAR REFINADO (CREATIVELAB + DOCK CENTRALIZADO)
   ========================================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 120;
  height: 76px;
  background: rgba(11, 13, 18, 0.9);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
}

.navbar-left {
  display: flex;
  align-items: center;
  justify-self: start;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
  color: #fff;
  transition: transform 0.2s ease;
}

.brand-logo:hover {
  transform: translateY(-1px);
}

.xs-logo-mark,
.xs-monogram {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: radial-gradient(circle at 30% 25%, #1d283a 0%, #0d121c 100%);
  border: 1px solid rgba(0, 212, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: #fff;
  box-shadow:
    0 6px 20px rgba(0, 102, 255, 0.28),
    inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

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

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

.brand-name {
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1;
  color: #ffffff;
}

.brand-highlight {
  background: linear-gradient(90deg, #0088ff, #00d4ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-left: 3px;
}

.brand-version-tag {
  background: rgba(0, 102, 255, 0.18);
  border: 1px solid rgba(0, 102, 255, 0.4);
  color: #60a5fa;
  font-size: 0.6rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 5px;
  letter-spacing: 0.6px;
}

.brand-sub {
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 1.6px;
  color: var(--text-dim);
  margin-top: 4px;
}

/* DOCK CENTRAL */
.nav-center-dock {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(20, 25, 36, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.09);
  padding: 5px;
  border-radius: 14px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 8px 24px rgba(0, 0, 0, 0.35);
}

.nav-dock-item {
  position: relative;
  background: transparent;
  border: 1px solid transparent;
  color: #94a3b8;
  padding: 9px 16px;
  border-radius: 10px;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.nav-dock-item svg {
  width: 16px;
  height: 16px;
}

.nav-dock-item:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.nav-dock-item.active {
  color: #ffffff;
  background: linear-gradient(180deg, #1e293b 0%, #151d2a 100%);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.nav-dock-item.active svg {
  color: var(--designi-cyan);
}

.nav-dock-studio {
  color: #e2e8f0;
}

.nav-dock-studio.active {
  background: linear-gradient(135deg, #0066ff 0%, #0047b3 100%);
  border-color: rgba(0, 212, 255, 0.5);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 102, 255, 0.45);
}

.nav-dock-studio.active svg {
  color: #ffffff;
}

.studio-glow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--designi-cyan);
  box-shadow: 0 0 8px var(--designi-cyan);
}

.badge-studio-pill {
  background: rgba(0, 212, 255, 0.16);
  border: 1px solid rgba(0, 212, 255, 0.4);
  color: var(--designi-cyan);
  font-size: 0.62rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 99px;
}

.nav-dock-studio.active .badge-studio-pill {
  background: #ffffff;
  color: #0052cc;
  border-color: #ffffff;
}

.nav-dock-chevron {
  width: 14px !important;
  height: 14px !important;
  opacity: 0.7;
}

.crown-icon {
  color: var(--designi-gold) !important;
}

.badge-discount-mini {
  background: rgba(0, 214, 143, 0.16);
  border: 1px solid rgba(0, 214, 143, 0.4);
  color: var(--designi-green);
  font-size: 0.62rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 6px;
}

.navbar-right {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 10px;
}

.btn-auth-login {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  padding: 9px 18px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

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

.btn-auth-register {
  background: linear-gradient(180deg, #1a75ff 0%, #005ce6 100%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  padding: 9px 18px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  box-shadow: 0 4px 16px rgba(0, 102, 255, 0.4);
  transition: all 0.2s ease;
}

.btn-auth-register:hover {
  background: linear-gradient(180deg, #3385ff 0%, #0066ff 100%);
  transform: translateY(-1px);
}

.btn-auth-register svg {
  width: 15px;
  height: 15px;
}

/* ==========================================================================
   VIEWS CONTAINER
   ========================================================================== */
.tab-view {
  display: none;
}

.tab-view.active {
  display: block;
  animation: fadeIn 0.22s ease;
}

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

/* ==========================================================================
   ABA 1: HERO & BUSCA (ESTILO DESIGNI)
   ========================================================================== */
.hero-section {
  position: relative;
  padding: 54px 24px 42px;
  text-align: center;
  background: radial-gradient(circle at 50% 0%, #152238 0%, var(--bg-dark) 72%);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 20;
}

.hero-bg-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(135px);
  opacity: 0.22;
  pointer-events: none;
}

.hero-glow-blue { top: -200px; left: 18%; background: var(--designi-blue); }
.hero-glow-indigo { top: -180px; right: 18%; background: var(--designi-cyan); }

.hero-container {
  position: relative;
  z-index: 1;
  max-width: 1140px;
  margin: 0 auto;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 102, 255, 0.12);
  border: 1px solid rgba(0, 102, 255, 0.32);
  padding: 6px 16px;
  border-radius: 99px;
  font-size: 0.82rem;
  color: #cbd5e1;
  margin-bottom: 20px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--designi-green);
  box-shadow: 0 0 10px var(--designi-green);
}

.hero-title {
  font-size: clamp(2.2rem, 4.4vw, 3.4rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.text-gradient-designi {
  background: linear-gradient(90deg, #0066ff 0%, #00d4ff 55%, #38ef7d 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  max-width: 740px;
  margin: 0 auto 28px;
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.6;
}

/* SEARCH BAR & CUSTOM DROPDOWNS */
.search-bar-wrapper {
  max-width: 920px;
  margin: 0 auto 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  padding: 7px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.xs-dropdown {
  position: relative;
  user-select: none;
  z-index: 60;
}

.xs-dropdown-trigger {
  background: linear-gradient(180deg, #1b2130 0%, #141925 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f8fafc;
  padding: 8px 14px 8px 10px;
  border-radius: 11px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 210px;
  transition: all 0.2s ease;
}

.xs-trigger-compact {
  min-width: 190px;
  padding: 7px 12px 7px 9px;
}

.xs-dropdown-trigger:hover {
  border-color: rgba(0, 102, 255, 0.55);
}

.dd-trigger-left {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.dd-icon-box {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(0, 102, 255, 0.16);
  border: 1px solid rgba(0, 102, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--designi-cyan);
}

.dd-icon-box svg { width: 15px; height: 15px; }
.dd-chevron { width: 16px; height: 16px; color: var(--text-muted); transition: transform 0.2s; }
.xs-dropdown.open .dd-chevron { transform: rotate(180deg); color: var(--designi-cyan); }

.xs-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: 290px;
  background: rgba(18, 22, 32, 0.98);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 8px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.97);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 200;
  text-align: left;
}

.xs-dropdown-right .xs-dropdown-menu { left: auto; right: 0; }
.xs-dropdown.open .xs-dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }

.dd-menu-header {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-dim);
  padding: 6px 10px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 6px;
}

.dd-option {
  width: 100%;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 9px 10px;
  color: #e2e8f0;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 11px;
  text-align: left;
}

.dd-option:hover { background: rgba(255, 255, 255, 0.06); }
.dd-option.active { background: rgba(0, 102, 255, 0.16); border-color: rgba(0, 102, 255, 0.4); }

.dd-opt-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.dd-opt-icon svg { width: 17px; height: 17px; }
.dd-opt-icon.icon-blue { background: rgba(0, 102, 255, 0.18); color: #3b82f6; }
.dd-opt-icon.icon-pink { background: rgba(255, 42, 133, 0.18); color: #ff2a85; }
.dd-opt-icon.icon-cyan { background: rgba(0, 212, 255, 0.18); color: #00d4ff; }
.dd-opt-icon.icon-gold { background: rgba(255, 184, 0, 0.18); color: #ffb800; }

.dd-opt-text { display: flex; flex-direction: column; flex: 1; }
.dd-opt-text strong { font-size: 0.83rem; color: #fff; }
.dd-opt-text span { font-size: 0.71rem; color: var(--text-muted); }
.dd-check { width: 16px; height: 16px; color: var(--designi-cyan); opacity: 0; }
.dd-option.active .dd-check { opacity: 1; }

.search-input {
  flex: 1;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 0.95rem;
  padding: 10px;
  outline: none;
}

.search-license-pills {
  display: flex;
  gap: 4px;
  background: #0d1017;
  padding: 4px;
  border-radius: 9px;
}

.lic-pill {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.lic-pill svg { width: 12px; height: 12px; color: var(--designi-gold); }
.lic-pill.active { background: var(--bg-elevated); color: #fff; }

.search-submit-btn {
  background: var(--designi-blue);
  border: none;
  color: #fff;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.search-submit-btn svg { width: 17px; height: 17px; }

.quick-categories-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.qcat-item {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 105px;
}

.qcat-icon {
  width: 54px;
  height: 54px;
  border-radius: 15px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cbd5e1;
  transition: 0.2s;
}
.qcat-icon svg { width: 22px; height: 22px; }
.qcat-highlight { border-color: var(--designi-blue); color: var(--designi-cyan); }
.qcat-item span { font-size: 0.78rem; font-weight: 600; }
.qcat-item:hover .qcat-icon, .qcat-item.active .qcat-icon {
  background: var(--designi-blue);
  border-color: var(--designi-blue);
  color: #fff;
  transform: translateY(-3px);
}

/* ==========================================================================
   HOME WORKFLOW SHOWCASE (PRINT 1 ➜ PRINT 2)
   ========================================================================== */
.catalog-section {
  max-width: 1380px;
  margin: 0 auto;
  padding: 40px 28px 80px;
}

.workflow-showcase-card {
  background: linear-gradient(135deg, #10192b 0%, #0e131d 55%, #0c1f17 100%);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 22px;
  padding: 36px 40px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 36px;
  cursor: pointer;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.workflow-showcase-card:hover {
  transform: translateY(-3px);
  border-color: var(--designi-cyan);
}

.banner-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 102, 255, 0.2);
  border: 1px solid rgba(0, 212, 255, 0.4);
  color: var(--designi-cyan);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 11px;
  border-radius: 99px;
  margin-bottom: 14px;
}
.banner-tag svg { width: 13px; height: 13px; }

.wf-left h2 {
  font-size: 1.85rem;
  font-weight: 800;
  margin-bottom: 12px;
  line-height: 1.2;
}

.wf-left p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 24px;
}

.btn-primary-designi {
  background: var(--designi-blue);
  border: none;
  color: #fff;
  padding: 13px 22px;
  border-radius: 11px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 25px rgba(0, 102, 255, 0.4);
}

.wf-comparison-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.wf-step-box {
  background: #090b10;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  padding: 10px;
  text-align: center;
  width: 210px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55);
}

.wf-step-result {
  border-color: var(--designi-green);
  box-shadow: 0 12px 35px rgba(0, 214, 143, 0.2);
}

.wf-step-tag {
  display: inline-block;
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 6px;
  margin-bottom: 8px;
}

.wf-step-tag.tag-green {
  background: rgba(0, 214, 143, 0.2);
  color: var(--designi-green);
}

.wf-step-box img {
  width: 100%;
  height: 190px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
}

.wf-step-result img {
  background: #05070b;
  object-fit: cover;
}

.wf-arrow-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--designi-blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 20px rgba(0, 102, 255, 0.6);
}

/* CATALOG GRID */
.catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.section-title { font-size: 1.4rem; font-weight: 800; }
.results-counter { font-size: 0.82rem; color: var(--text-muted); }

.assets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 22px;
}

.asset-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.22s ease;
  display: flex;
  flex-direction: column;
}
.asset-card:hover { transform: translateY(-4px); border-color: rgba(0, 102, 255, 0.45); }
.asset-thumb { position: relative; height: 205px; display: flex; align-items: center; justify-content: center; padding: 20px; }
.asset-badge-top { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; justify-content: space-between; z-index: 2; }
.badge-type { background: rgba(13, 15, 20, 0.82); border: 1px solid rgba(255, 255, 255, 0.14); color: #e2e8f0; font-size: 0.68rem; font-weight: 700; padding: 4px 9px; border-radius: 6px; }
.badge-pro { background: var(--designi-gold); color: #090b10; font-size: 0.68rem; font-weight: 800; padding: 4px 9px; border-radius: 6px; }
.badge-free { background: rgba(0, 214, 143, 0.2); border: 1px solid var(--designi-green); color: var(--designi-green); font-size: 0.68rem; font-weight: 800; padding: 4px 9px; border-radius: 6px; }
.card-neon-preview { text-align: center; padding: 16px 24px; border-radius: 14px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.16); }
.card-neon-title { font-size: 1.35rem; font-weight: 800; margin-bottom: 4px; }
.card-neon-sub { font-size: 0.7rem; letter-spacing: 2px; font-weight: 700; }
.asset-body { padding: 16px; display: flex; flex-direction: column; gap: 12px; flex: 1; justify-content: space-between; }
.asset-title { font-size: 0.94rem; font-weight: 700; color: #fff; }
.asset-meta { display: flex; justify-content: space-between; font-size: 0.76rem; color: var(--text-muted); }
.asset-actions { display: flex; gap: 8px; }
.btn-card-studio { flex: 1; background: rgba(0, 102, 255, 0.16); border: 1px solid rgba(0, 102, 255, 0.45); color: #fff; padding: 9px 12px; border-radius: 9px; font-size: 0.8rem; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.btn-card-studio:hover { background: var(--designi-blue); }
.btn-card-download { background: var(--bg-elevated); border: 1px solid var(--border-subtle); color: #fff; padding: 9px 12px; border-radius: 9px; cursor: pointer; }
.btn-card-studio svg, .btn-card-download svg { width: 15px; height: 15px; }

/* ==========================================================================
   ABA 2: GERADOR DE PLACAS & ORÇAMENTO NEON 3D (PRINT 1 ➜ PRINT 2)
   ========================================================================== */
.studio-workspace {
  display: grid;
  grid-template-columns: 375px 1fr 325px;
  height: calc(100vh - 76px);
  min-height: 740px;
  background: #080a0f;
}

.studio-sidebar-left {
  background: var(--bg-surface);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.sidebar-header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar-title-wrap { display: flex; align-items: center; gap: 10px; }
.studio-version-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--designi-green); box-shadow: 0 0 10px var(--designi-green); }
.sidebar-header h2 { font-size: 0.96rem; font-weight: 800; }
.sidebar-header p { font-size: 0.73rem; color: var(--text-muted); }

.btn-reset {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn-reset svg { width: 15px; height: 15px; }

.param-subtabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #0c0e14;
  padding: 5px;
  border-bottom: 1px solid var(--border-subtle);
  gap: 4px;
}

.psub-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 8px 4px;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.psub-btn svg { width: 15px; height: 15px; }
.psub-btn.active { background: var(--designi-blue); color: #fff; }

.studio-controls-scroll {
  padding: 18px;
  overflow-y: auto;
  flex: 1;
}

.param-group-pane { display: none; flex-direction: column; gap: 18px; }
.param-group-pane.active { display: flex; }

.control-group {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.control-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 700;
  color: #e2e8f0;
}
.control-label span { display: inline-flex; align-items: center; gap: 6px; }
.control-label svg { width: 14px; height: 14px; color: var(--designi-blue); }
.label-hint { background: rgba(0, 214, 143, 0.16); color: var(--designi-green); font-size: 0.68rem; padding: 2px 7px; border-radius: 6px; }

/* UPLOAD DROPZONE (PRINT 1) */
.upload-dropzone {
  position: relative;
  height: 145px;
  border-radius: 12px;
  border: 2px dashed rgba(0, 212, 255, 0.45);
  background: #ffffff;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.upload-dropzone img {
  width: 90%;
  height: 90%;
  object-fit: contain;
}

.dropzone-overlay {
  position: absolute;
  inset: 0;
  background: rgba(11, 14, 22, 0.86);
  backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  opacity: 0;
  transition: opacity 0.2s ease;
  color: #fff;
  text-align: center;
  padding: 12px;
}

.upload-dropzone:hover .dropzone-overlay {
  opacity: 1;
}

.dropzone-overlay svg { width: 24px; height: 24px; color: var(--designi-cyan); }
.dropzone-overlay strong { font-size: 0.82rem; }
.dropzone-overlay span { font-size: 0.7rem; color: var(--text-muted); }

.legend-pills {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.leg-pill {
  background: #0b0d13;
  border: 1px solid var(--border-subtle);
  padding: 6px 8px;
  border-radius: 7px;
  font-size: 0.7rem;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  gap: 6px;
}

.dot-black { width: 10px; height: 10px; border-radius: 50%; background: #000; border: 1.5px solid #94a3b8; display: inline-block; }
.dot-white { width: 10px; height: 10px; border-radius: 50%; background: #fff; box-shadow: 0 0 6px #00d4ff; display: inline-block; }

/* SCENARIO CARDS */
.scenario-cards-grid {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.scenario-card {
  background: #0b0d13;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 8px 10px;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 11px;
  text-align: left;
  transition: 0.18s;
}

.scenario-card:hover { border-color: rgba(255, 255, 255, 0.22); }
.scenario-card.active {
  background: rgba(0, 102, 255, 0.16);
  border-color: var(--designi-blue);
}

.scen-swatch {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.swatch-foliage { background: radial-gradient(circle, #15803d 0%, #052e16 100%); }
.swatch-brick { background: repeating-linear-gradient(0deg, #1e293b 0px, #0f172a 8px); }
.swatch-marble { background: linear-gradient(135deg, #1e293b, #090d16, #334155); }
.swatch-wood { background: repeating-linear-gradient(90deg, #5c341d 0px, #2e1608 8px); }
.swatch-concrete { background: #334155; }
.swatch-black { background: #030407; }

.scen-info { display: flex; flex-direction: column; }
.scen-info strong { font-size: 0.8rem; }
.scen-info span { font-size: 0.7rem; color: var(--text-muted); }

.btn-upload-bg {
  margin-top: 6px;
  background: rgba(0, 212, 255, 0.1);
  border: 1px dashed rgba(0, 212, 255, 0.45);
  color: var(--designi-cyan);
  padding: 10px;
  border-radius: 9px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-upload-bg svg { width: 16px; height: 16px; }

/* INPUTS, SLIDERS, SEGMENTED */
.studio-input {
  width: 100%;
  background: #0b0d13;
  border: 1px solid var(--border-strong);
  color: #fff;
  padding: 9px 12px;
  border-radius: 9px;
  font-size: 0.86rem;
  font-weight: 700;
  outline: none;
}
.studio-input:focus { border-color: var(--designi-blue); }
.studio-input-sub { font-size: 0.8rem; font-weight: 500; }

.segmented-control {
  display: grid;
  background: #0b0d13;
  padding: 3px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  gap: 3px;
}

.seg-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 7px 6px;
  border-radius: 6px;
  font-size: 0.73rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.seg-btn svg { width: 13px; height: 13px; }
.seg-btn.active { background: var(--designi-blue); color: #fff; }

.font-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px; }
.font-card { background: #0b0d13; border: 1px solid var(--border-subtle); color: #e2e8f0; padding: 9px 6px; border-radius: 8px; font-size: 0.86rem; cursor: pointer; }
.font-card.active { background: rgba(0, 102, 255, 0.18); border-color: var(--designi-blue); color: #fff; }

.color-swatches { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.color-swatch { position: relative; display: grid; place-items: center; min-width: 0; height: 30px; border-radius: 8px; background: var(--swatch); border: 2px solid rgba(255, 255, 255, 0.25); cursor: pointer; overflow: hidden; }
.color-swatch.active { border-color: #fff; transform: scale(1.08); }
.color-swatch-custom svg { width: 14px; height: 14px; color: #fff; filter: drop-shadow(0 1px 2px #000b); pointer-events: none; }
.color-swatch-custom input { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; opacity: 0; cursor: pointer; }

.slider-row { display: flex; flex-direction: column; gap: 4px; }
.slider-info { display: flex; justify-content: space-between; font-size: 0.75rem; color: var(--text-muted); }
.slider-info strong { color: #fff; }

.studio-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: #0b0d13;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 99px;
  outline: none;
  cursor: pointer;
  margin: 4px 0;
}
.studio-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid var(--designi-blue);
  box-shadow: 0 0 10px rgba(0, 102, 255, 0.7);
  cursor: pointer;
}

.toggle-row { display: flex; align-items: center; justify-content: space-between; font-size: 0.75rem; color: #cbd5e1; margin-top: 4px; }
.switch { position: relative; display: inline-block; width: 38px; height: 20px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider-toggle { position: absolute; cursor: pointer; inset: 0; background-color: #334155; transition: .2s; border-radius: 99px; }
.slider-toggle:before { position: absolute; content: ""; height: 14px; width: 14px; left: 3px; bottom: 3px; background-color: white; transition: .2s; border-radius: 50%; }
.switch input:checked + .slider-toggle { background-color: var(--designi-blue); }
.switch input:checked + .slider-toggle:before { transform: translateX(18px); }

/* ==========================================================================
   PALCO CENTRAL: PRANCHA DE ORÇAMENTO COMERCIAL (IDÊNTICA À PRINT 2!)
   ========================================================================== */
.studio-center-stage {
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.stage-topbar {
  height: 52px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  z-index: 10;
}

.stage-wall-selector,
.stage-camera-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.bar-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.bar-label svg { width: 14px; height: 14px; color: var(--designi-blue); }

.wall-pill,
.cam-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: #cbd5e1;
  padding: 5px 11px;
  border-radius: 7px;
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
}
.wall-pill.active,
.cam-btn.active {
  background: var(--designi-blue);
  border-color: var(--designi-blue);
  color: #fff;
}

.viewport-3d {
  flex: 1;
  position: relative;
  background: radial-gradient(circle at 50% 50%, #131824 0%, #07090e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 20px 72px;
  overflow: auto;
}

.stage-comparison-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  transition: transform 0.2s ease;
}

/* PAINEL ESQUERDO QUANDO EM MODO COMPARATIVO (PRINT 1) */
.before-card-panel {
  width: 320px;
  background: #11151f;
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  padding: 18px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65);
}

.before-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 12px;
}

.before-img-box {
  background: #ffffff;
  border-radius: 12px;
  padding: 16px;
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.before-img-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.before-caption {
  margin-top: 12px;
  font-size: 0.76rem;
  color: var(--text-muted);
}

/* ==========================================================================
   PRANCHA VERTICAL COMERCIAL
   ========================================================================== */
.commercial-sheet-card {
  position: relative;
  width: 410px;
  height: auto;
  aspect-ratio: 410 / 790;
  container-type: inline-size;
  flex: 0 0 auto;
  background: #000000;
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.85),
    0 0 0 1px rgba(255, 255, 255, 0.14);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  user-select: none;
}

/* TEXTURAS DE CENÁRIO DE FUNDO DA PRANCHA */
.sheet-bg-layer {
  position: absolute;
  inset: 0;
  z-index: 1;
  transition: filter 0.2s ease;
}

/* Cenário 1: Jardim Vertical / Buchinho Verde Realista (Igual Print 2!) */
.bg-foliage {
  background-color: #0b3b08;
  background-image:
    linear-gradient(rgba(4, 18, 5, 0.08), rgba(4, 18, 5, 0.08)),
    url('/assets/foliage-photo-v2.jpg');
  background-size: 100% 100%, auto 44%;
  background-position: center, center 42%;
  background-repeat: no-repeat, repeat;
}

/* Cenário 2: Tijolo Escuro */
.bg-brick {
  background-color: #14171f;
  background-image:
    radial-gradient(circle at 50% 46%, rgba(255,255,255,0.06), rgba(0,0,0,0.85)),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.05) 0px, rgba(255,255,255,0.05) 2px, transparent 2px, transparent 28px),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.04) 0px, rgba(255,255,255,0.04) 2px, transparent 2px, transparent 56px);
}

/* Cenário 3: Mármore Nero */
.bg-marble {
  background:
    radial-gradient(circle at 50% 46%, rgba(30, 41, 59, 0.35), rgba(3, 5, 9, 0.92)),
    linear-gradient(125deg, #0f172a 0%, #334155 32%, #090d16 68%, #1e293b 100%);
}

/* Cenário 4: Madeira Ripada */
.bg-wood {
  background: repeating-linear-gradient(
    90deg,
    #452615 0px,
    #452615 16px,
    #1c0f07 16px,
    #1c0f07 22px
  );
}

/* Cenário 5: Concreto */
.bg-concrete {
  background: radial-gradient(circle at 50% 46%, #334155 0%, #0f172a 100%);
}

/* Cenário 6: Preto Infinito */
.bg-black {
  background: #020305;
}

/* Camada de Vinheta Preta Topo & Base (Exatamente como na Print 2) */
.sheet-vignette-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    180deg,
    #000000 0%,
    rgba(0, 0, 0, 0.92) 11%,
    rgba(0, 0, 0, 0.15) 23%,
    rgba(0, 0, 0, 0.05) 58%,
    rgba(0, 0, 0, 0.86) 74%,
    #000000 86%,
    #000000 100%
  );
  pointer-events: none;
}

/* TOPO DA PRANCHA */
.sheet-header {
  position: relative;
  z-index: 5;
  padding: 6cqw 5cqw 0;
  text-align: center;
}

.sheet-area-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 3.4cqw;
  font-weight: 600;
  letter-spacing: 0.8px;
  color: #ffffff;
  text-transform: uppercase;
  margin-bottom: 4.4cqw;
}

.sheet-brand-box {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.02;
}

.sheet-brand-box span {
  font-family: 'Orbitron', 'Montserrat', sans-serif;
  font-size: 4.3cqw;
  font-weight: 900;
  letter-spacing: 1.5px;
  color: transparent;
  -webkit-text-stroke: .27cqw rgba(255, 255, 255, 0.9);
}

/* CENTRO: CANVAS DA PLACA ACRÍLICO + NEON */
.sheet-center-sign-wrap {
  position: absolute;
  top: 24%;
  left: 0;
  right: 0;
  height: 40%;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
}

#neon-processor-canvas {
  width: 100%;
  height: auto;
  max-height: 340px;
  object-fit: contain;
  filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.75));
}

/* MARCA D'ÁGUA LATERAL VERTICAL: "Imagem ilustrativa" */
.sheet-side-watermark {
  position: absolute;
  right: 2%;
  bottom: 22%;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 2.65cqw;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
  letter-spacing: 0.5px;
  z-index: 6;
}

/* RODAPÉ DE ORÇAMENTO E SELOS TÉCNICOS */
.sheet-footer {
  position: absolute;
  top: 77%;
  left: 0;
  right: 0;
  z-index: 5;
  padding: 0 8.5% 4%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sheet-quote-info {
  text-align: left;
  font-family: 'Inter', sans-serif;
  line-height: 1.32;
}

.quote-line-size,
.quote-line-price {
  font-size: 5cqw;
  font-weight: 800;
  color: #ffffff;
}

.quote-line-obs1 {
  font-size: 3.45cqw;
  font-weight: 800;
  color: #ffffff;
  margin-top: 2px;
}

.quote-line-obs2 {
  font-size: 2.7cqw;
  font-weight: 600;
  color: #e2e8f0;
}

/* BARRA TÉCNICA INFERIOR (ACRILSUL + DIAGRAMA 6MM CNC) */
.sheet-tech-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  padding-top: 4px;
}

/* Selo Acrilsul */
.acrilsul-seal {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.acrilsul-word {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: 0.5px;
  line-height: 1;
}

.acril-outline {
  color: transparent;
  -webkit-text-stroke: 1.3px #0088cc;
}

.sul-solid {
  color: #e11d48;
  margin-left: 1px;
}

.acrilsul-bar {
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #0088cc 0%, #0088cc 58%, #e11d48 58%, #e11d48 100%);
  margin: 3px 0;
}

.acrilsul-sub {
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 2.2px;
  color: #0088cc;
}

/* Diagrama 6mm CNC + Silicone */
.cnc-diagram-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.55rem;
  color: #e2e8f0;
  line-height: 1.15;
}

.cnc-top-label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: -6px;
  margin-left: -24px;
}
.cnc-top-label strong { font-size: 0.62rem; color: #fff; }
.cnc-top-label small { font-size: 0.45rem; color: #cbd5e1; }
.cnc-top-label span { font-size: 0.62rem; font-weight: 700; color: #fff; }

.cnc-bottom-row {
  display: flex;
  align-items: flex-end;
  gap: 4px;
}

.cnc-6mm-col {
  display: flex;
  flex-direction: column;
  text-align: left;
}
.cnc-6mm-col strong {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 2px;
}
.cnc-6mm-col span {
  font-size: 0.48rem;
  color: #cbd5e1;
}

.cnc-routed-col {
  max-width: 70px;
  font-size: 0.48rem;
  color: #cbd5e1;
  text-align: left;
  padding-bottom: 4px;
}

/* DOCK FLUTUANTE INFERIOR */
.stage-bottom-dock {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(19, 23, 32, 0.94);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-strong);
  padding: 7px 12px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 20;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.65);
}

.dock-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid transparent;
  color: #cbd5e1;
  padding: 7px 11px;
  border-radius: 8px;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.dock-btn svg { width: 14px; height: 14px; }
.dock-btn.active { background: var(--designi-blue); color: #fff; }
.dock-divider { width: 1px; height: 22px; background: var(--border-subtle); }
.zoom-controls { display: flex; align-items: center; gap: 6px; font-size: 0.78rem; font-weight: 700; }
.zoom-btn { width: 26px; height: 26px; border-radius: 6px; background: var(--bg-elevated); border: 1px solid var(--border-subtle); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.zoom-btn svg { width: 13px; height: 13px; }

/* ==========================================================================
   SIDEBAR DIREITA
   ========================================================================== */
.studio-sidebar-right {
  background: var(--bg-surface);
  border-left: 1px solid var(--border-subtle);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  overflow-y: auto;
}

.panel-title { font-size: 0.88rem; font-weight: 800; display: flex; align-items: center; gap: 6px; }
.panel-title svg { width: 15px; height: 15px; color: var(--designi-blue); }
.panel-subtitle { font-size: 0.73rem; color: var(--text-muted); margin-bottom: 10px; }

.current-input-card {
  background: #0b0d13;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.current-input-card img {
  width: 58px;
  height: 44px;
  object-fit: contain;
  background: #fff;
  border-radius: 6px;
  padding: 3px;
}

.current-input-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.current-input-meta strong { font-size: 0.78rem; color: #fff; }
.current-input-meta span { font-size: 0.68rem; color: var(--text-muted); }

.btn-upload-another {
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  color: #fff;
  padding: 9px 12px;
  border-radius: 9px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.btn-upload-another:hover { border-color: var(--designi-blue); }
.btn-upload-another svg { width: 15px; height: 15px; color: var(--designi-cyan); }

.tech-spec-card { background: #0b0d13; border: 1px solid var(--border-subtle); border-radius: 11px; padding: 13px; }
.spec-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.auto-calc-badge { background: rgba(0, 214, 143, 0.18); color: var(--designi-green); font-size: 0.65rem; font-weight: 800; padding: 2px 6px; border-radius: 4px; }
.spec-list { list-style: none; display: flex; flex-direction: column; gap: 7px; font-size: 0.75rem; }
.spec-list li { display: flex; justify-content: space-between; color: var(--text-muted); padding-bottom: 5px; border-bottom: 1px dashed rgba(255, 255, 255, 0.06); }
.spec-list li strong { color: #e2e8f0; }
.spec-price-row { border-bottom: none !important; padding-top: 4px; font-size: 0.84rem; }
.price-highlight { color: var(--designi-green) !important; font-size: 0.96rem; font-weight: 800; }

.export-actions { display: flex; flex-direction: column; gap: 8px; }
.btn-export-primary { background: var(--designi-blue); border: none; color: #fff; padding: 12px 14px; border-radius: 10px; font-weight: 700; font-size: 0.84rem; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; box-shadow: 0 6px 18px rgba(0, 102, 255, 0.35); }
.btn-export-secondary { background: rgba(0, 212, 255, 0.1); border: 1px solid rgba(0, 212, 255, 0.38); color: var(--designi-cyan); padding: 10px 14px; border-radius: 10px; font-weight: 700; font-size: 0.82rem; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; }
.btn-save-project { background: var(--bg-elevated); border: 1px solid var(--border-subtle); color: #cbd5e1; padding: 10px 14px; border-radius: 10px; font-weight: 600; font-size: 0.82rem; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; }
.btn-export-primary svg, .btn-export-secondary svg, .btn-save-project svg { width: 15px; height: 15px; }

/* ==========================================================================
   ABA 3: PREMIUM & MODAL AUTH
   ========================================================================== */
.premium-container { max-width: 1180px; margin: 0 auto; padding: 60px 24px 90px; }
.premium-header { text-align: center; max-width: 700px; margin: 0 auto 46px; }
.premium-pill { display: inline-flex; align-items: center; gap: 6px; background: rgba(255, 184, 0, 0.14); border: 1px solid rgba(255, 184, 0, 0.45); color: var(--designi-gold); padding: 5px 14px; border-radius: 99px; font-size: 0.75rem; font-weight: 800; margin-bottom: 16px; }
.premium-header h1 { font-size: 2.45rem; font-weight: 800; margin-bottom: 12px; }
.text-gradient-gold { background: linear-gradient(90deg, #ffb800, #ff7b00); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.premium-header p { color: var(--text-muted); font-size: 0.98rem; line-height: 1.6; margin-bottom: 26px; }
.billing-toggle { display: inline-flex; background: var(--bg-surface); border: 1px solid var(--border-subtle); padding: 5px; border-radius: 12px; gap: 6px; }
.billing-btn { background: transparent; border: none; color: var(--text-muted); padding: 9px 18px; border-radius: 9px; font-weight: 700; font-size: 0.86rem; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.billing-btn.active { background: var(--designi-blue); color: #fff; }
.discount-tag { background: var(--designi-green); color: #042419; font-size: 0.66rem; font-weight: 800; padding: 2px 6px; border-radius: 6px; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pricing-card { position: relative; background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: 18px; padding: 32px 26px; display: flex; flex-direction: column; justify-content: space-between; }
.pricing-featured { background: linear-gradient(180deg, #161f35 0%, #121722 100%); border: 2px solid var(--designi-gold); transform: translateY(-8px); box-shadow: 0 24px 55px rgba(0, 0, 0, 0.55); }
.popular-ribbon { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--designi-gold); color: #090b10; font-size: 0.7rem; font-weight: 900; padding: 4px 14px; border-radius: 99px; }
.plan-top h3 { font-size: 1.22rem; font-weight: 800; margin-bottom: 8px; }
.plan-top p { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 20px; min-height: 40px; }
.plan-price { display: flex; align-items: baseline; gap: 4px; margin-bottom: 6px; }
.plan-price .currency { font-size: 1.1rem; font-weight: 700; color: var(--text-muted); }
.plan-price .amount { font-size: 2.6rem; font-weight: 900; }
.plan-price .period { color: var(--text-muted); font-size: 0.88rem; }
.price-note { display: block; font-size: 0.76rem; color: var(--designi-gold); margin-bottom: 20px; }
.plan-features { list-style: none; display: flex; flex-direction: column; gap: 11px; margin: 20px 0 30px; font-size: 0.86rem; }
.plan-features li { display: flex; align-items: center; gap: 10px; }
.plan-features svg { width: 17px; height: 17px; flex-shrink: 0; }
.feat-yes { color: var(--designi-green); }
.feat-gold { color: var(--designi-gold); }
.feat-disabled { color: var(--text-dim); text-decoration: line-through; }
.btn-plan-outline { width: 100%; background: var(--bg-elevated); border: 1px solid var(--border-strong); color: #fff; padding: 13px; border-radius: 10px; font-weight: 700; cursor: pointer; }
.btn-plan-gold { width: 100%; background: var(--designi-gold); border: none; color: #090b10; padding: 14px; border-radius: 10px; font-weight: 800; font-size: 0.92rem; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; }

.modal-backdrop { position: fixed; inset: 0; background: rgba(6, 8, 12, 0.82); backdrop-filter: blur(8px); z-index: 200; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal-backdrop.open { display: flex; }
.auth-modal-card { position: relative; width: 100%; max-width: 420px; background: var(--bg-surface); border: 1px solid var(--border-strong); border-radius: 18px; padding: 30px 26px; }
.modal-close-btn { position: absolute; top: 16px; right: 16px; background: var(--bg-elevated); border: none; color: var(--text-muted); width: 32px; height: 32px; border-radius: 8px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.auth-modal-header { text-align: center; margin-bottom: 20px; }
.small-logo { margin: 0 auto 12px; }
.auth-modal-header h2 { font-size: 1.35rem; font-weight: 800; margin-bottom: 5px; }
.auth-modal-header p { font-size: 0.84rem; color: var(--text-muted); }
.auth-switch-tabs { display: grid; grid-template-columns: 1fr 1fr; background: #0b0d13; padding: 4px; border-radius: 10px; margin-bottom: 16px; }
.auth-tab { background: transparent; border: none; color: var(--text-muted); padding: 9px; border-radius: 8px; font-weight: 700; font-size: 0.85rem; cursor: pointer; }
.auth-tab.active { background: var(--designi-blue); color: #fff; }
.btn-social { width: 100%; background: #fff; color: #0f172a; border: none; padding: 11px; border-radius: 10px; font-weight: 700; font-size: 0.86rem; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; }
.auth-divider { text-align: center; margin: 16px 0; font-size: 0.75rem; color: var(--text-dim); }
.auth-form { display: flex; flex-direction: column; gap: 12px; }
.form-field { display: flex; flex-direction: column; gap: 5px; }
.form-field label { font-size: 0.78rem; font-weight: 600; color: #cbd5e1; }
.form-field input { background: #0b0d13; border: 1px solid var(--border-subtle); color: #fff; padding: 11px 13px; border-radius: 9px; outline: none; }
.btn-auth-submit { margin-top: 6px; background: var(--designi-blue); border: none; color: #fff; padding: 13px; border-radius: 10px; font-weight: 800; font-size: 0.9rem; cursor: pointer; }

.visual-toast { position: fixed; bottom: 24px; right: 24px; background: var(--bg-surface); border: 1px solid var(--designi-blue); color: #fff; padding: 13px 18px; border-radius: 12px; display: flex; align-items: center; gap: 10px; font-size: 0.86rem; font-weight: 600; box-shadow: 0 15px 35px rgba(0, 0, 0, 0.65); transform: translateY(130%); opacity: 0; transition: all 0.28s ease; z-index: 300; }
.visual-toast.show { transform: translateY(0); opacity: 1; }
.visual-toast svg { color: var(--designi-green); width: 20px; height: 20px; }
