
body {
  font-family: Inter, Arial, sans-serif;
  background: transparent;
  display: flex;
  justify-content: center;
  padding: 30px 15px;
  transition: 0.3s;
}
.dark body {
  background: transparent;
  color: #eee;
}
.container {
  
  max-width: 1200px;
  width: 100%;
  
}
.dark .container { background: #1a1d23; }
h2 { margin-bottom: 10px; }
.progress-bar {
  height: 8px;
  background: #ddd;
  border-radius: 20px;
  margin-bottom: 30px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg,#111,#444);
  transition: 0.4s;
}
.step { display: none; }
.step.active { display: block; }
input, select {
  width: 97%;
  padding: 14px;
  margin: 10px 0;
  border-radius: 12px;
  border: 1px solid #ccc;
}
button {
  padding: 12px 22px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  font-weight: 600;
}
.next { background: #111; color: #fff; }
.back { background: #ccc; }
.button-group { display: flex; justify-content: space-between; margin-top: 15px; }
.result { display: none; margin-top: 40px; }
.result-card {
  background: #f7f9fc;
  padding: 20px;
  border-radius: 16px;
  margin-bottom: 15px;
}
.dark .result-card { background: #22262d; }
.cta {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 18px;
  background: #111;
  color: #fff;
  border-radius: 10px;
  text-decoration: none;
}





























/* =========================================
LEGAL POPUP
========================================= */

.legal-popup-overlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.55);
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:99999;
  padding:20px;
  animation:fadeIn .3s ease;
}

.legal-popup-box{
  width:100%;
  max-width:520px;
  background:#ffffff;
  border-radius:22px;
  padding:28px;
  box-shadow:0 25px 70px rgba(0,0,0,.25);
  text-align:center;
  animation:popIn .35s ease;
}

.legal-popup-icon{
  font-size:42px;
  margin-bottom:12px;
}

.legal-popup-box h3{
  margin:0 0 14px;
  font-size:24px;
  color:#111827;
}

.legal-popup-box p{
  color:#4b5563;
  font-size:15px;
  line-height:1.7;
  margin:0 0 14px;
}

.legal-popup-box button{
  margin-top:10px;
  background:#2563eb;
  color:#fff;
  border:none;
  padding:14px 24px;
  border-radius:14px;
  font-size:15px;
  font-weight:700;
  cursor:pointer;
  transition:.25s;
}

.legal-popup-box button:hover{
  background:#1d4ed8;
  transform:translateY(-2px);
}

@keyframes fadeIn{
  from{opacity:0;}
  to{opacity:1;}
}

@keyframes popIn{
  from{
    opacity:0;
    transform:translateY(30px) scale(.95);
  }
  to{
    opacity:1;
    transform:translateY(0) scale(1);
  }
}

/* Mobile */
@media(max-width:600px){
  .legal-popup-box{
    padding:22px;
    border-radius:18px;
  }

  .legal-popup-box h3{
    font-size:20px;
  }

  .legal-popup-box p{
    font-size:14px;
  }
}







/* =========================================
POPUP OVERLAY
========================================= */

/* KEEP EVERYTHING + FIX PERFECT Y CENTER */

.popup-overlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.60);
  display:none;

  align-items:center;
  justify-content:center;

  z-index:99999;
  padding:20px;

  min-height:100vh; /* חשוב */
}

.popup-overlay.active{
  display:flex;
  animation:fadeIn .25s ease;
}

.popup-box{
  width:100%;
  max-width:720px;

  background:#ffffff;
  border-radius:24px;
  padding:28px;
  box-shadow:0 25px 80px rgba(0,0,0,.25);
  position:relative;
  animation:popIn .28s ease;

  max-height:calc(100vh - 40px); /* במקום 90vh */
  overflow:auto;

  transform:none;
}


/* =========================================
CLOSE BUTTON
========================================= */

.popup-close{
  position:absolute;
  top:14px;
  right:14px;
  width:38px;
  height:38px;
  border:none;
  border-radius:50%;
  background:#f1f5f9;
  font-size:18px;
  cursor:pointer;
}

.popup-close:hover{
  background:#e2e8f0;
}


/* =========================================
BUTTONS
========================================= */

.tool-extra-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin:20px 0;
}

/* =========================
   CLEAN PREMIUM BUTTON
========================= */

.tool-toggle-btn{
  background: linear-gradient(135deg, #ffffff, #f8fafc);
  color: #0f172a;

  border: 1px solid #e2e8f0;

  padding: 14px 18px;
  border-radius: 14px;

  font-weight: 600;
  cursor: pointer;

  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);

  transition: all 0.25s ease;
}

/* hover */
.tool-toggle-btn:hover{
  transform: translateY(-2px);

  background: linear-gradient(135deg, #f1f5f9, #ffffff);

  border-color: #cbd5e1;

  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.10);
}

/* active click */
.tool-toggle-btn:active{
  transform: translateY(0px) scale(0.98);
}


/* =========================================
TEXTAREA
========================================= */

textarea{
  width:100%;
  min-height:180px;
  margin-top:12px;
  border:1px solid #d1d5db;
  border-radius:14px;
  padding:14px;
  resize:vertical;
  font-family:monospace;
}

.copy-btn{
  margin-top:14px;
  background:#10b981;
  color:#fff;
  border:none;
  padding:12px 18px;
  border-radius:12px;
  cursor:pointer;
}


/* =========================================
ANIMATIONS
========================================= */

@keyframes fadeIn{
  from{opacity:0;}
  to{opacity:1;}
}

@keyframes popIn{
  from{
    opacity:0;
    transform:translateY(20px) scale(.96);
  }
  to{
    opacity:1;
    transform:translateY(0) scale(1);
  }
}


/* =========================================
MOBILE
========================================= */

@media(max-width:700px){

  .popup-box{
    padding:22px;
    border-radius:18px;
  }

  .tool-extra-actions{
    flex-direction:column;
  }

  .tool-toggle-btn{
    width:100%;
  }

}





/* =========================================
LIGHT MODE (DEFAULT)
========================================= */

.popup-overlay{
  background:rgba(0,0,0,.60);
}

.popup-box{
  background:#ffffff;
  color:#111827;
  border:1px solid #e5e7eb;
  box-shadow:0 25px 80px rgba(0,0,0,.25);
}

/* Headings */
.popup-box h1,
.popup-box h2,
.popup-box h3,
.popup-box h4{
  color:#111827;
}

/* Text */
.popup-box p,
.popup-box li,
.popup-box span,
.popup-box small{
  color:#4b5563;
}

/* Close button */
.popup-close{
  background:#f1f5f9;
  color:#111827;
  border:1px solid #e5e7eb;
}

.popup-close:hover{
  background:#e2e8f0;
}

/* Copy button */
.copy-btn{
  background:#10b981;
  color:#ffffff;
}

.copy-btn:hover{
  background:#059669;
}

/* Textarea */
textarea{
  background:#ffffff;
  color:#111827;
  border:1px solid #d1d5db;
}

/* Embed box */
.embed-box{
  background:#ffffff;
  color:#111827;
}

/* Similar tools */
.similar-tools{
  background:#f8fafc;
  color:#111827;
}

.similar-tool-card{
  background:#ffffff;
  color:#111827;
  border:1px solid #e5e7eb;
  box-shadow:0 4px 12px rgba(0,0,0,0.08);
}

/* Cards text */
.tool-card-content p{
  color:#6b7280;
}

/* List */
#similarToolsList li{
  background:#ffffff;
  border:1px solid #e5e7eb;
  color:#111827;
}



/* =========================================
DARK MODE
body.dark
========================================= */

body.dark .popup-overlay{
  background:rgba(0,0,0,.78);
  color:#f9fafb;
}

body.dark .popup-box{
  background:#0f172a;
  color:#f9fafb;
  border:1px solid #1e293b;
  box-shadow:0 25px 80px rgba(0,0,0,.55);
}

/* Headings */
body.dark .popup-box h1,
body.dark .popup-box h2,
body.dark .popup-box h3,
body.dark .popup-box h4{
  color:#f8fafc;
}

/* Text */
body.dark .popup-box p,
body.dark .popup-box li,
body.dark .popup-box span,
body.dark .popup-box small{
  color:#cbd5e1;
}

/* Close button */
body.dark .popup-close{
  background:#1e293b;
  color:#f8fafc;
  border:1px solid #334155;
}

body.dark .popup-close:hover{
  background:#334155;
}

body.dark .tool-toggle-btn{
  background: linear-gradient(135deg, #0f172a, #111827);
  color: #e5e7eb;
  border: 1px solid #1f2937;
}

body.dark .tool-toggle-btn:hover{
  border-color: #10b981;
  box-shadow: 0 0 0 2px rgba(16,185,129,0.15),
              0 10px 26px rgba(0,0,0,0.6);
}

/* Copy button */
body.dark .copy-btn{
  background:#059669;
  color:#ffffff;
  border:1px solid #10b981;
}

body.dark .copy-btn:hover{
  background:#047857;
}

/* Textarea */
body.dark textarea{
  background:#020617;
  color:#e2e8f0;
  border:1px solid #334155;
}

/* Embed box */
body.dark .embed-box{
  background:transparent;
  color:#e5e7eb;
}

/* Similar tools section */
body.dark .similar-tools{
  background:#0f172a;
  color:#f9fafb;
}

/* Cards */
body.dark .similar-tool-card{
  background:#111827;
  color:#f9fafb;
  border:1px solid rgba(255,255,255,0.06);
  box-shadow:0 6px 18px rgba(0,0,0,0.55);
}

body.dark .similar-tool-card:hover{
  box-shadow:0 12px 28px rgba(0,0,0,0.65);
}

/* Card text */
body.dark .tool-card-content h3{
  color:#f9fafb;
}

body.dark .tool-card-content p{
  color:#9ca3af;
}

/* Rating */
body.dark .tool-card-content .tool-rating{
  color:#fbbf24;
}

/* Badges */
body.dark .tool-badge{
  color:#ffffff;
}

body.dark .tool-badge.trending{
  background:#3b82f6;
}

body.dark .tool-badge:not(.trending){
  background:#f59e0b;
}

/* Image */
body.dark .similar-tool-card img{
  filter:brightness(0.9) contrast(1.1);
}

/* List */
body.dark #similarToolsList li{
  background:#111827;
  border:1px solid rgba(255,255,255,0.06);
  color:#f9fafb;
}

body.dark #similarToolsList li:hover{
  background:#1f2937;
  box-shadow:0 6px 16px rgba(0,0,0,0.5);
}

body.dark #similarToolsList li a{
  color:#93c5fd;
}

body.dark #similarToolsList li a:hover{
  color:#ffffff;
}





/* =========================
   ADS CENTERING
========================= */

.top-ad,
.bottom-ad{
  display:flex;
  justify-content:center;  /* מרכז אופקי */
  align-items:center;
  width:100%;
}

/* חשוב מאוד - מונע "דחיפה" לצד */
.top-ad ins.adsbygoogle,
.bottom-ad ins.adsbygoogle{
  display:block !important;
  margin:0 auto;
}

/* =========================
   SMART RIDE ADVISOR
========================= */

.hidden {
  display: none !important;
}

.chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #fff;
  font-weight: 600;
  cursor: pointer;
  margin: 6px 8px 6px 0;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.chip-btn.secondary-btn {
  background: #f8fafc;
}

.advisor-hero {
  margin-bottom: 28px;
  max-width: 720px;
}

.advisor-kicker {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #64748b;
  margin: 0 0 8px;
  font-weight: 700;
}

.advisor-hero h1 {
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  line-height: 1.25;
  margin: 0 0 12px;
  color: #0f172a;
}

.advisor-lead {
  margin: 0;
  color: #475569;
  line-height: 1.65;
  font-size: 15px;
}

.advisor-loading {
  text-align: center;
  padding: 48px 20px;
  color: #64748b;
}

.advisor-loading-pulse {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  margin: 0 auto 16px;
  background: linear-gradient(120deg, #0ea5e9, #6366f1, #a855f7);
  animation: advisorPulse 1.2s ease-in-out infinite;
}

@keyframes advisorPulse {
  0%,
  100% {
    transform: scale(0.92);
    opacity: 0.75;
  }
  50% {
    transform: scale(1);
    opacity: 1;
  }
}

.advisor-shell {
  position: relative;
  padding-bottom: 96px;
}

.advisor-app {
  background: linear-gradient(180deg, #f8fafc 0%, #fff 32%);
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 22px 20px 28px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}

.advisor-progress-wrap {
  margin-bottom: 18px;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #64748b;
  margin-bottom: 8px;
  font-weight: 600;
}

.advisor-app .progress-bar {
  height: 10px;
  background: #e2e8f0;
  border-radius: 999px;
}

.advisor-app .progress-fill {
  width: 0%;
  background: linear-gradient(90deg, #0ea5e9, #6366f1);
  border-radius: 999px;
  transition: width 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.steps-viewport {
  overflow: hidden;
  touch-action: pan-y;
}

.steps-track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.advisor-step {
  min-width: 100%;
  flex: 0 0 100%;
  box-sizing: border-box;
  padding: 8px 4px 20px;
}

.step-title {
  margin: 0 0 10px;
  font-size: 1.25rem;
  color: #0f172a;
}

.step-hint {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.55;
  color: #64748b;
  padding: 12px 14px;
  background: #f1f5f9;
  border-radius: 12px;
  border-left: 3px solid #6366f1;
}

.field-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 6px;
}

.advisor-app input,
.advisor-app select {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid #cbd5e1;
  font-size: 16px;
  background: #fff;
}

.quick-fill {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.chip-suggest {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px dashed #94a3b8;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
}

.chip-suggest:hover {
  border-color: #6366f1;
  color: #312e81;
}

.advisor-sticky-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-top: 1px solid #e2e8f0;
  box-shadow: 0 -8px 30px rgba(15, 23, 42, 0.08);
}

.advisor-sticky-footer.hidden {
  display: none;
}

.sticky-inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
}

.btn {
  padding: 12px 22px;
  border-radius: 14px;
  border: none;
  font-weight: 700;
  cursor: pointer;
  font-size: 15px;
}

.btn.primary {
  background: linear-gradient(135deg, #0f172a, #334155);
  color: #fff;
}

.btn.secondary {
  background: #e0f2fe;
  color: #0369a1;
}

.btn.ghost {
  background: transparent;
  color: #334155;
  border: 1px solid #cbd5e1;
}

.btn.small {
  padding: 8px 14px;
  font-size: 13px;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.result-dashboard {
  margin-top: 8px;
}

.result-dashboard:not(.hidden):not([hidden]) {
  min-height: 120px;
}

.saved-profile-hint {
  margin-top: 10px;
  font-size: 14px;
}

.link-like {
  border: none;
  background: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: #2563eb;
  text-decoration: underline;
  cursor: pointer;
  font-weight: 600;
}

.link-like:hover {
  color: #1d4ed8;
}

.empty-models-msg {
  margin-bottom: 14px;
}

.dashboard-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.advisor-resume-bar {
  margin-bottom: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid #c7d2fe;
  background: linear-gradient(135deg, #eef2ff 0%, #f8fafc 100%);
  box-shadow: 0 8px 24px rgba(67, 56, 202, 0.08);
}

.advisor-resume-inner {
  max-width: 720px;
  margin: 0 auto;
}

.advisor-resume-text {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.55;
  color: #334155;
}

.advisor-resume-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.catalog-source-panel code {
  font-size: 13px;
  background: #f1f5f9;
  padding: 2px 8px;
  border-radius: 6px;
}

.catalog-stats-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
}

.catalog-stats-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid #e2e8f0;
  font-size: 14px;
}

.catalog-stats-list li:last-child {
  border-bottom: none;
}

.cat-name {
  font-weight: 600;
  color: #0f172a;
}

.cat-count {
  color: #64748b;
  font-variant-numeric: tabular-nums;
}

.catalog-total {
  margin: 14px 0 0;
}

.dashboard-hero {
  margin-bottom: 24px;
}

.dashboard-hero[dir="rtl"],
.dashboard-hero[dir="rtl"] h2 {
  text-align: right;
}

.dashboard-hero h2 {
  margin: 0 0 8px;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  color: #0f172a;
}

.muted {
  color: #64748b;
  margin: 0;
  font-size: 14px;
}

.panel {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 20px 20px 22px;
  margin-bottom: 18px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.panel h3 {
  margin: 0 0 14px;
  font-size: 1rem;
  color: #0f172a;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}

.spec-card {
  background: #f8fafc;
  border-radius: 14px;
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
}

.spec-k {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
  margin-bottom: 6px;
  font-weight: 700;
}

.spec-card strong {
  font-size: 15px;
  color: #0f172a;
}

.insight-list {
  margin: 0;
  padding-left: 18px;
  color: #334155;
  line-height: 1.65;
}

.insight-list li {
  margin-bottom: 8px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.product-card {
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.07);
}

.product-media img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.product-body {
  padding: 16px 16px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
}

.product-head h4 {
  margin: 0;
  font-size: 1.05rem;
  color: #0f172a;
}

.match-pill {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #047857;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.badge {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 8px;
  border-radius: 8px;
}

.badge-best {
  background: #eef2ff;
  color: #4338ca;
}

.badge-budget {
  background: #fef9c3;
  color: #854d0e;
}

.badge-perf {
  background: #fee2e2;
  color: #b91c1c;
}

.badge-value {
  background: #e0f2fe;
  color: #0369a1;
}

.bar-grid {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.bar-row {
  display: grid;
  grid-template-columns: 72px 1fr 36px;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #475569;
  font-weight: 600;
}

.bar-track {
  height: 8px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #22c55e, #0ea5e9);
  transition: width 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.bar-val {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.mini-spec {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 12px;
  margin: 0 0 12px;
  font-size: 13px;
}

.mini-spec dt {
  color: #94a3b8;
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
}

.mini-spec dd {
  margin: 2px 0 0;
  color: #0f172a;
}

.because {
  font-size: 14px;
  line-height: 1.55;
  color: #475569;
  margin: 0 0 14px;
  flex: 1;
}

.cta-primary {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin-top: auto;
  padding: 12px 16px;
  border-radius: 14px;
  background: #0f172a;
  color: #fff !important;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
}

.cta-primary:hover {
  background: #1e293b;
}

.premium-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.premium-lock {
  border-radius: 16px;
  padding: 18px;
  border: 1px dashed #cbd5e1;
  background: linear-gradient(145deg, #f8fafc, #fff);
  position: relative;
  overflow: hidden;
}

.premium-lock::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.65), transparent);
  transform: translateX(-100%);
  animation: sheen 2.8s ease-in-out infinite;
}

@keyframes sheen {
  100% {
    transform: translateX(100%);
  }
}

.premium-lock h4 {
  margin: 0 0 8px;
  font-size: 15px;
}

.premium-lock p {
  margin: 0 0 12px;
  font-size: 13px;
  color: #64748b;
}

.premium-pill {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 999px;
  background: #111827;
  color: #f8fafc;
  vertical-align: middle;
}

.growth-row {
  margin-bottom: 20px;
}

.growth-row h4 {
  margin: 0 0 10px;
}

.growth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn.restart {
  width: 100%;
  max-width: 320px;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200000;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
  animation: fadeIn 0.25s ease;
}

.modal-panel {
  width: 100%;
  max-width: 720px;
  max-height: calc(100vh - 40px);
  overflow: auto;
  background: #fff;
  border-radius: 20px;
  padding: 22px 22px 24px;
  position: relative;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
}

.modal-panel-sm {
  max-width: 420px;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: #f1f5f9;
  cursor: pointer;
  font-size: 16px;
}

.modal-lead {
  font-size: 14px;
  color: #64748b;
  line-height: 1.55;
}

.compare-picks {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 14px 0;
}

.compare-label {
  font-size: 14px;
  color: #334155;
}

.compare-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.compare-col {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px;
}

.compare-list {
  margin: 0 0 12px;
  padding-left: 18px;
  color: #475569;
  font-size: 14px;
}

.premium-tease {
  margin-top: 16px;
  padding: 14px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.advisor-toast {
  position: fixed;
  bottom: 88px;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  background: #0f172a;
  color: #fff;
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  z-index: 300000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  max-width: min(92vw, 420px);
  text-align: center;
}

.advisor-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media print {
  body * {
    visibility: hidden;
  }

  #resultDashboard,
  #resultDashboard * {
    visibility: visible;
  }

  #resultDashboard {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    display: block !important;
  }

  #resultDashboard .growth-actions,
  #resultDashboard .restart,
  #resultDashboard .cta-primary,
  #resultDashboard .premium-section {
    display: none !important;
  }

  body {
    padding: 0;
    background: #fff;
  }
}

@media (min-width: 769px) {
  .advisor-sticky-footer {
    position: sticky;
    bottom: auto;
    margin-top: 8px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  }

  .advisor-shell {
    padding-bottom: 24px;
  }
}

@media (max-width: 640px) {
  .compare-cols {
    grid-template-columns: 1fr;
  }

  .mini-spec {
    grid-template-columns: 1fr;
  }
}

body.dark .advisor-app {
  background: linear-gradient(180deg, #0f172a 0%, #111827 40%);
  border-color: #1e293b;
}

body.dark .advisor-hero h1,
body.dark .step-title,
body.dark .panel h3,
body.dark .product-head h4,
body.dark .spec-card strong,
body.dark .mini-spec dd {
  color: #f8fafc;
}

body.dark .advisor-lead,
body.dark .step-hint,
body.dark .muted,
body.dark .because,
body.dark .insight-list {
  color: #cbd5e1;
}

body.dark .step-hint {
  background: #1e293b;
  border-left-color: #818cf8;
}

body.dark .advisor-app input,
body.dark .advisor-app select {
  background: #020617;
  border-color: #334155;
  color: #e2e8f0;
}

body.dark .panel,
body.dark .product-card,
body.dark .spec-card {
  background: #111827;
  border-color: #1e293b;
}

body.dark .chip-suggest {
  background: #0f172a;
  border-color: #334155;
  color: #e2e8f0;
}

body.dark .modal-panel {
  background: #0f172a;
  color: #e5e7eb;
  border: 1px solid #1e293b;
}

body.dark .compare-col {
  background: #111827;
  border-color: #334155;
}

body.dark .catalog-stats-list {
  border-color: #334155;
}

body.dark .catalog-stats-list li {
  border-color: #1e293b;
}

body.dark .cat-name {
  color: #f8fafc;
}

body.dark .catalog-source-panel code {
  background: #1e293b;
  color: #e2e8f0;
}

body.dark .advisor-resume-bar {
  border-color: #4338ca;
  background: linear-gradient(135deg, #1e1b4b 0%, #0f172a 100%);
}

body.dark .advisor-resume-text {
  color: #cbd5e1;
}

