/* ============================================================
   DropAI — Global Stylesheet
   by Al-Mulla Investments
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:ital,wght@0,300;0,400;0,500;1,300&display=swap');

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:        #7C3AED;
  --blue-dark:   #6D28D9;
  --blue-dim:    rgba(124,58,237,0.08);
  --blue-border: rgba(124,58,237,0.20);
  --green:       #10B981;
  --green-dim:   rgba(16,185,129,0.10);
  --dark:        #FFFFFF;
  --dark2:       #FAFAFB;
  --dark3:       #F5F3FA;
  --mid:         #EDE9F7;
  --muted:       #9CA3AF;
  --muted2:      #6B7280;
  --border:      rgba(124,58,237,0.10);
  --border2:     rgba(0,0,0,0.10);
  --white:       #1F1B3D;
  --font-head:   'Syne', sans-serif;
  --font-body:   'DM Sans', sans-serif;
  --radius:      12px;
  --radius-sm:   8px;
  --radius-lg:   16px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--dark);
  color: var(--white);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: var(--font-body); }
img { max-width: 100%; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--dark2); }
::-webkit-scrollbar-thumb { background: var(--mid); border-radius: 3px; }

/* ============================================================
   LANGUAGE MODAL
   ============================================================ */
#lang-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(8,13,26,0.92);
  backdrop-filter: blur(16px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

#lang-modal.show { display: flex; }

.lang-box {
  background: var(--dark2);
  border: 0.5px solid var(--border2);
  border-radius: var(--radius-lg);
  padding: 40px;
  width: 540px;
  max-width: 92vw;
  text-align: center;
  animation: fadeUp 0.3s ease;
}

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

.lang-box .logo {
  font-family: var(--font-head);
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 6px;
}

.lang-box .logo span { color: var(--blue); }

.lang-box h2 {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
}

.lang-box p {
  font-size: 14px;
  color: var(--muted2);
  margin-bottom: 28px;
}

.lang-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.lang-btn {
  padding: 12px 8px;
  background: var(--dark3);
  border: 0.5px solid var(--border2);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-size: 13px;
  font-family: var(--font-body);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  transition: all 0.2s;
}

.lang-btn:hover {
  background: var(--blue-dim);
  border-color: var(--blue-border);
  color: #7BA8FF;
}

.lang-btn.selected {
  background: var(--blue-dim);
  border-color: var(--blue);
  color: #fff;
}

.lang-btn .flag { font-size: 22px; }
.lang-btn .lang-name { font-weight: 500; font-size: 13px; }
.lang-btn .lang-native { font-size: 11px; color: var(--muted2); }

.lang-confirm {
  width: 100%;
  padding: 13px;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 500;
  font-family: var(--font-body);
  transition: background 0.2s;
}

.lang-confirm:hover { background: var(--blue-dark); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 64px;
  border-bottom: 0.5px solid var(--border);
  background: rgba(8,13,26,0.95);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
}

.nav-logo {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.nav-logo span { color: var(--blue); }

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  color: #C8D0E8;
  font-weight: 500;
  transition: color 0.2s;
  padding-bottom: 2px;
}

.nav-links a:hover { color: var(--white); }
.nav-links a.active {
  color: var(--white);
  border-bottom: 1.5px solid var(--blue);
}

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

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--dark3);
  border: 0.5px solid var(--border2);
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: var(--muted2);
  transition: all 0.2s;
}

.lang-toggle:hover { color: var(--white); border-color: var(--border2); }
.lang-toggle .flag { font-size: 14px; }

/* ── Buttons ── */
.btn {
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  font-family: var(--font-body);
  transition: all 0.2s;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-ghost {
  background: transparent;
  border: 0.5px solid var(--border2);
  color: var(--white);
}

.btn-ghost:hover { background: rgba(255,255,255,0.05); }

.btn-solid {
  background: var(--blue);
  color: var(--white);
}

.btn-solid:hover { background: var(--blue-dark); transform: translateY(-1px); }

.btn-lg {
  padding: 13px 30px;
  font-size: 15px;
  border-radius: var(--radius);
}

.btn-xl {
  padding: 15px 36px;
  font-size: 16px;
  border-radius: var(--radius);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding: 100px 48px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -100px; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 500px;
  background: radial-gradient(ellipse at center, rgba(26,107,255,0.13) 0%, transparent 65%);
  pointer-events: none;
}

.hero-glow2 {
  position: absolute;
  top: 20%; left: 10%;
  width: 300px; height: 300px;
  background: radial-gradient(ellipse, rgba(0,195,122,0.05) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 40px;
  border: 0.5px solid var(--blue-border);
  background: var(--blue-dim);
  font-size: 12px;
  color: #7BA8FF;
  margin-bottom: 32px;
  letter-spacing: 0.3px;
}

.badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--blue);
  animation: pulse 2.5s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.3; transform: scale(1.5); }
}

.hero h1 {
  font-family: var(--font-head);
  font-size: 68px;
  font-weight: 800;
  line-height: 1.03;
  letter-spacing: -3px;
  margin-bottom: 24px;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.hero h1 .accent { color: var(--blue); }

.hero-sub {
  font-size: 18px;
  color: var(--muted2);
  max-width: 520px;
  margin: 0 auto 40px;
  line-height: 1.75;
  font-weight: 300;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-bottom: 16px;
}

.hero-note {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 64px;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 0;
  border-top: 0.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.stat-item {
  text-align: center;
  padding: 28px 48px;
  border-right: 0.5px solid var(--border);
  flex: 1;
}

.stat-item:last-child { border-right: none; }

.stat-num {
  font-family: var(--font-head);
  font-size: 34px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -1px;
}

.stat-label { font-size: 13px; color: var(--muted2); margin-top: 4px; }

/* ============================================================
   SECTION COMMONS
   ============================================================ */
.section { padding: 80px 48px; }
.section-alt { background: var(--dark2); }

.section-tag {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
  display: block;
}

.section-title {
  font-family: var(--font-head);
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 16px;
  color: var(--muted2);
  max-width: 500px;
  line-height: 1.7;
  font-weight: 300;
}

/* ============================================================
   FEATURES GRID
   ============================================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.feature-card {
  background: var(--dark);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: border-color 0.25s, transform 0.2s;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: var(--blue-dim);
  opacity: 0;
  transition: opacity 0.3s;
}

.feature-card:hover::before { opacity: 1; }
.feature-card:hover {
  border-color: var(--blue-border);
  transform: translateY(-3px);
}

.feature-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius);
  background: var(--blue-dim);
  border: 0.5px solid var(--blue-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
}

.feature-title {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.feature-desc {
  font-size: 14px;
  color: var(--muted2);
  line-height: 1.7;
  margin-bottom: 16px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--dark3);
  color: var(--muted2);
  border: 0.5px solid var(--border2);
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.step-card {
  background: var(--dark);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  position: relative;
}

.step-num {
  font-family: var(--font-head);
  font-size: 56px;
  font-weight: 800;
  color: var(--blue-dim);
  line-height: 1;
  margin-bottom: 16px;
  -webkit-text-stroke: 1px var(--blue-border);
  color: transparent;
}

.step-title {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.step-desc { font-size: 14px; color: var(--muted2); line-height: 1.65; }

/* ============================================================
   SOCIAL PROOF
   ============================================================ */
.logos-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  margin-top: 48px;
  flex-wrap: wrap;
}

.logo-item {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  color: var(--muted);
  opacity: 0.5;
  letter-spacing: -0.5px;
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  padding: 80px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(26,107,255,0.1) 0%, transparent 65%);
  pointer-events: none;
}

.cta-section h2 {
  font-family: var(--font-head);
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -2px;
  margin-bottom: 16px;
  line-height: 1.1;
}

.cta-section p {
  font-size: 17px;
  color: var(--muted2);
  margin-bottom: 36px;
  font-weight: 300;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--dark2);
  border-top: 0.5px solid var(--border);
  padding: 40px 48px 28px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand .logo {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 12px;
}

.footer-brand .logo span { color: var(--blue); }

.footer-brand p {
  font-size: 13px;
  color: var(--muted2);
  line-height: 1.65;
  max-width: 240px;
}

.footer-col h4 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }

.footer-col ul a {
  font-size: 14px;
  color: var(--muted2);
  transition: color 0.2s;
}

.footer-col ul a:hover { color: var(--white); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 0.5px solid var(--border);
}

.footer-copy { font-size: 13px; color: var(--muted); }

.footer-legal {
  display: flex;
  gap: 20px;
}

.footer-legal a { font-size: 13px; color: var(--muted); transition: color 0.2s; }
.footer-legal a:hover { color: var(--muted2); }

/* ============================================================
   SUBSCRIPTION PAGE
   ============================================================ */
.pricing-hero {
  padding: 72px 48px 0;
  text-align: center;
}

.toggle-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 32px;
  margin-bottom: 56px;
  font-size: 14px;
  color: var(--muted2);
}

.toggle {
  width: 48px; height: 26px;
  background: var(--blue);
  border-radius: 13px;
  position: relative;
  cursor: pointer;
  border: none;
  transition: background 0.2s;
}

.toggle::after {
  content: '';
  position: absolute;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #fff;
  top: 3px; left: 3px;
  transition: transform 0.2s;
}

.toggle.annual::after { transform: translateX(22px); }
.toggle.annual { background: var(--green); }

.save-badge {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 20px;
  background: var(--green-dim);
  color: var(--green);
  border: 0.5px solid rgba(0,195,122,0.3);
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 0 48px 80px;
}

.plan-card {
  background: var(--dark2);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  position: relative;
  transition: transform 0.2s, border-color 0.2s;
}

.plan-card:hover { transform: translateY(-4px); }

.plan-card.featured {
  border-color: var(--blue);
  border-width: 1.5px;
  background: linear-gradient(160deg, rgba(26,107,255,0.06) 0%, var(--dark2) 50%);
}

.plan-popular {
  position: absolute;
  top: -13px; left: 50%;
  transform: translateX(-50%);
  background: var(--blue);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 16px;
  border-radius: 20px;
  white-space: nowrap;
  letter-spacing: 0.5px;
}

.plan-name {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
}

.plan-tagline { font-size: 13px; color: var(--muted2); margin-bottom: 24px; }

.plan-price-wrap { margin-bottom: 6px; }

.plan-price {
  font-family: var(--font-head);
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1;
}

.plan-price sup {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0;
  vertical-align: super;
}

.plan-price sub {
  font-size: 15px;
  font-weight: 400;
  color: var(--muted2);
  letter-spacing: 0;
  vertical-align: baseline;
}

.plan-annual-note {
  font-size: 12px;
  color: var(--green);
  margin-bottom: 24px;
  min-height: 18px;
}

.plan-divider {
  height: 0.5px;
  background: var(--border);
  margin-bottom: 24px;
}

.plan-features { list-style: none; display: flex; flex-direction: column; gap: 13px; margin-bottom: 28px; }

.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: #C8D0E8;
  line-height: 1.4;
}

.check {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--green-dim);
  border: 0.5px solid rgba(0,195,122,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 10px;
  color: var(--green);
  margin-top: 1px;
}

.plan-btn {
  width: 100%;
  padding: 13px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  font-family: var(--font-body);
  transition: all 0.2s;
}

.plan-btn.ghost {
  background: transparent;
  border: 0.5px solid var(--border2);
  color: var(--white);
}

.plan-btn.ghost:hover { background: rgba(255,255,255,0.05); }

.plan-btn.solid {
  background: var(--blue);
  border: none;
  color: var(--white);
}

.plan-btn.solid:hover { background: var(--blue-dark); }

.pricing-footer-note {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  padding: 0 48px 40px;
}

/* ============================================================
   DASHBOARD
   ============================================================ */
.dash-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: calc(100vh - 64px);
}

.dash-sidebar {
  background: var(--dark2);
  border-right: 0.5px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 24px 0;
}

.dash-user {
  padding: 0 20px 20px;
  border-bottom: 0.5px solid var(--border);
  margin-bottom: 8px;
}

.dash-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--blue-dim);
  border: 0.5px solid var(--blue-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #7BA8FF;
  margin-bottom: 10px;
}

.dash-user-name {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
}

.dash-user-plan {
  font-size: 11px;
  color: var(--blue);
  margin-top: 2px;
}

.dash-menu { list-style: none; flex: 1; padding: 8px 0; }

.dash-menu li a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 20px;
  font-size: 14px;
  color: var(--muted2);
  transition: all 0.15s;
  border-right: 2px solid transparent;
}

.dash-menu li a:hover,
.dash-menu li a.active {
  color: var(--white);
  background: rgba(26,107,255,0.08);
  border-right-color: var(--blue);
}

.dash-menu .icon { font-size: 15px; width: 20px; text-align: center; }

.dash-upgrade-box {
  margin: 0 12px;
  padding: 16px;
  background: var(--blue-dim);
  border: 0.5px solid var(--blue-border);
  border-radius: var(--radius-sm);
}

.dash-upgrade-box p {
  font-size: 12px;
  color: #7BA8FF;
  margin-bottom: 12px;
  line-height: 1.5;
}

.dash-upgrade-box button {
  width: 100%;
  padding: 8px;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  font-family: var(--font-body);
  transition: background 0.2s;
}

.dash-upgrade-box button:hover { background: var(--blue-dark); }

.dash-main {
  padding: 32px;
  background: var(--dark);
  overflow-y: auto;
}

.dash-topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 28px;
}

.dash-greeting {
  font-family: var(--font-head);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.dash-sub { font-size: 13px; color: var(--muted2); margin-top: 4px; }

/* Metrics */
.metrics-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

.metric-card {
  background: var(--dark2);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
}

.metric-label { font-size: 12px; color: var(--muted2); margin-bottom: 10px; }

.metric-value {
  font-family: var(--font-head);
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -1px;
}

.metric-value.blue { color: var(--blue); }
.metric-value.green { color: var(--green); }

.metric-change { font-size: 12px; color: var(--green); margin-top: 6px; }
.metric-change.neutral { color: var(--muted2); }

/* Tool Panels */
.tool-panel {
  background: var(--dark2);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
}

.tool-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.tool-panel-title {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-row {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.search-input {
  flex: 1;
  background: var(--dark);
  border: 0.5px solid var(--border2);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.search-input::placeholder { color: var(--muted); }
.search-input:focus { border-color: var(--blue); }

.filter-pills {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.pill {
  padding: 5px 14px;
  border-radius: 20px;
  border: 0.5px solid var(--border2);
  background: transparent;
  color: var(--muted2);
  font-size: 12px;
  font-family: var(--font-body);
  transition: all 0.2s;
}

.pill.active, .pill:hover {
  background: var(--blue-dim);
  border-color: var(--blue-border);
  color: #7BA8FF;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.result-card {
  background: var(--dark);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  transition: border-color 0.2s, transform 0.15s;
  cursor: pointer;
}

.result-card:hover {
  border-color: var(--blue-border);
  transform: translateY(-2px);
}

.result-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
  gap: 8px;
}

.result-name { font-size: 14px; font-weight: 500; line-height: 1.3; }

.score-badge {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 6px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.score-high { background: var(--green-dim); color: var(--green); }
.score-mid  { background: var(--blue-dim);  color: #7BA8FF; }

.result-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.result-price { font-size: 12px; color: var(--muted2); }
.result-trend { font-size: 12px; color: var(--green); }
.result-trend.neutral { color: var(--muted2); }

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

/* ── Nav mobile ── */
@media (max-width: 768px) {
  .nav {
    padding: 0 16px;
    height: 56px;
  }

  .nav-links { display: none; }

  .nav-right .btn-ghost { display: none; }

  .lang-toggle .lang-name { display: none; }

  /* ── Hero ── */
  .hero {
    padding: 48px 20px 40px;
  }

  .hero h1 {
    font-size: 36px;
    letter-spacing: -1.5px;
  }

  .hero-sub { font-size: 15px; }

  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .hero-ctas .btn-xl {
    text-align: center;
    padding: 14px 20px;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 0;
  }

  .stat-item {
    width: 50%;
    padding: 20px 16px;
    border-right: 0.5px solid var(--border);
    border-bottom: 0.5px solid var(--border);
  }

  .stat-item:nth-child(2n) { border-right: none; }
  .stat-item:nth-child(3), .stat-item:nth-child(4) { border-bottom: none; }

  .stat-num { font-size: 26px; }

  /* ── Sections ── */
  .section { padding: 48px 20px; }

  .section-title { font-size: 28px; letter-spacing: -1px; }

  /* ── Features grid ── */
  .features-grid { grid-template-columns: 1fr; gap: 14px; }

  /* ── Steps grid ── */
  .steps-grid { grid-template-columns: 1fr; gap: 14px; }

  /* ── CTA ── */
  .cta-section { padding: 48px 20px; }
  .cta-section h2 { font-size: 32px; letter-spacing: -1px; }
  .cta-section .btn-xl { width: 100%; text-align: center; }

  /* ── Footer ── */
  .footer { padding: 32px 20px 20px; }
  .footer-top { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }

  /* ── Auth ── */
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-left { display: none; }
  .auth-right { padding: 32px 20px; min-height: 100vh; }

  /* ── Pricing ── */
  .pricing-hero { padding: 40px 20px 0; }
  .plans-grid {
    grid-template-columns: 1fr;
    padding: 0 20px 48px;
    gap: 24px;
  }
  .pricing-footer-note { padding: 0 20px 32px; }

  /* ── Dashboard ── */
  .dash-layout {
    grid-template-columns: 1fr;
    position: relative;
  }

  .dash-sidebar {
    position: fixed;
    top: 56px;
    left: 0;
    width: 260px;
    height: calc(100vh - 56px);
    z-index: 200;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
  }

  .dash-sidebar.open { transform: translateX(0); }

  .dash-overlay {
    display: none;
    position: fixed;
    inset: 0;
    top: 56px;
    background: rgba(0,0,0,0.6);
    z-index: 199;
  }

  .dash-overlay.show { display: block; }

  .dash-main { padding: 20px 16px; }

  .dash-topbar {
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
  }

  .dash-topbar .btn { width: 100%; text-align: center; }

  .metrics-row { grid-template-columns: 1fr; gap: 10px; }

  .results-grid { grid-template-columns: 1fr; }

  .search-row { flex-direction: column; }
  .search-row .btn { width: 100%; text-align: center; padding: 11px; }

  /* ── Mobile menu toggle ── */
  .menu-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--dark3);
    border: 0.5px solid var(--border2);
    border-radius: var(--radius-sm);
    color: var(--white);
    font-size: 18px;
    cursor: pointer;
  }
}

/* ── Hide menu toggle on desktop ── */
.menu-toggle { display: none; }

/* ── Logos strip mobile ── */
@media (max-width: 768px) {
  .logos-row { gap: 20px; }
  .logo-item { font-size: 14px; }
}

/* ── Prevent horizontal scroll ── */
html, body {
  max-width: 100vw;
  overflow-x: hidden;
}

/* ============================================================
   THEME SWITCHER — Fix E
   ============================================================ */
body.theme-blue  { --blue: #1A6BFF; --dark: #080D1A; --dark2: #0E1526; --dark3: #141D33; }
body.theme-green { --blue: #00C37A; --blue-dark: #009960; --blue-dim: rgba(0,195,122,0.12); --blue-border: rgba(0,195,122,0.35); --dark: #050F0A; --dark2: #081510; --dark3: #0D1E16; }
body.theme-purple{ --blue: #8B5CF6; --blue-dark: #7C3AED; --blue-dim: rgba(139,92,246,0.12); --blue-border: rgba(139,92,246,0.35); --dark: #08060F; --dark2: #100D1A; --dark3: #181424; }
body.theme-rose  { --blue: #F43F5E; --blue-dark: #E11D48; --blue-dim: rgba(244,63,94,0.12); --blue-border: rgba(244,63,94,0.35); --dark: #0F0608; --dark2: #1A0B0E; --dark3: #221014; }
body.theme-light { --blue: #1A6BFF; --dark: #F5F7FF; --dark2: #EAECF5; --dark3: #DDE1F0; --mid: #C5CADD; --muted: #7A82A0; --muted2: #5A6280; --border: rgba(0,0,0,0.08); --border2: rgba(0,0,0,0.12); --white: #1A1D2E; }

/* ============================================================
   PRODUCTION FIXES — Mobile + UI improvements
   ============================================================ */

/* Fix T: Better nav contrast everywhere */
.nav-links a { color: #1F1B3D !important; font-weight: 500; }
.nav-links a:hover { color: var(--blue) !important; }
.nav-links a.active { color: var(--blue) !important; border-bottom: 1.5px solid var(--blue); }

/* Fix V: Mobile subscription page improvements */
@media (max-width: 768px) {
  .pricing-hero { padding: 32px 16px 0 !important; }
  .pricing-hero .section-title { font-size: 24px !important; line-height: 1.2 !important; margin-bottom: 8px !important; }
  .pricing-hero .section-desc { font-size: 14px !important; }

  .toggle-wrap { flex-wrap: wrap; gap: 10px !important; margin: 24px 0 16px !important; font-size: 13px !important; }
  .save-badge { font-size: 10px !important; padding: 2px 8px !important; }

  .billing-summary { flex-direction: column; align-items: stretch; gap: 8px !important; padding: 0 16px; margin-bottom: 24px !important; }
  .billing-pill { font-size: 13px !important; padding: 10px 16px !important; text-align: center; }

  .plans-grid { grid-template-columns: 1fr !important; padding: 0 16px 32px !important; gap: 32px !important; }
  .plan-card { padding: 24px 20px !important; }
  .plan-card.featured { transform: none; }
  .plan-popular { font-size: 10px !important; padding: 3px 14px !important; }
  .plan-name { font-size: 18px !important; }
  .plan-tagline { font-size: 12px !important; }
  .plan-price { font-size: 42px !important; }
  .plan-features li { font-size: 13px !important; }
  .plan-btn { padding: 14px !important; font-size: 14px !important; }

  .compare-section { padding: 40px 16px 48px !important; }
  .compare-section .section-title { font-size: 22px !important; }
  .compare-table { font-size: 11px !important; margin-top: 24px !important; }
  .compare-table th, .compare-table td { padding: 8px 6px !important; }

  .pricing-footer-note { padding: 0 16px 32px !important; font-size: 12px !important; }
}

/* Fix W: PayPal modal mobile scroll */
.pay-modal {
  align-items: flex-start !important;
  padding: 20px 12px !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
}

.pay-box {
  margin-top: 20px;
  margin-bottom: 40px;
  max-height: none !important;
}

@media (max-width: 768px) {
  .pay-modal { padding: 12px 8px !important; }
  .pay-box { padding: 24px 18px !important; max-width: 100% !important; }
  .pay-box h2 { font-size: 18px !important; }
  .pay-box p { font-size: 13px !important; margin-bottom: 18px !important; }
}

/* Fix U: Sidebar avatar default state */
.dash-avatar { transition: all 0.2s; }

/* ============================================================
   NAV CONTRAST FIX (T)
   ============================================================ */
.nav-links a {
  color: #DCE2F0 !important;
  font-weight: 500 !important;
}
.nav-links a:hover { color: var(--blue) !important; }
.nav-links a.active { color: var(--blue) !important; }

/* ============================================================
   MOBILE SUBSCRIPTION FIX (V)
   ============================================================ */
@media (max-width: 768px) {
  .pricing-hero {
    padding: 32px 16px 0 !important;
  }
  .pricing-hero .section-title {
    font-size: 26px !important;
    line-height: 1.2 !important;
    letter-spacing: -1px !important;
  }
  .pricing-hero .section-desc {
    font-size: 14px !important;
    padding: 0 8px;
  }
  .toggle-wrap {
    flex-wrap: wrap !important;
    gap: 10px !important;
    padding: 0 8px !important;
    margin: 24px 0 16px !important;
  }
  .billing-summary {
    flex-direction: column !important;
    gap: 8px !important;
    padding: 0 16px;
    margin-bottom: 28px !important;
  }
  .billing-pill {
    width: 100% !important;
    text-align: center !important;
  }
  .plans-grid {
    padding: 0 16px 32px !important;
    gap: 20px !important;
  }
  .plan-card {
    padding: 24px 20px !important;
  }
  .plan-name { font-size: 18px !important; }
  .plan-price { font-size: 42px !important; }
  .plan-features li { font-size: 13px !important; }
  .plan-btn { padding: 14px !important; font-size: 14px !important; }
  .plan-popular { font-size: 10px !important; padding: 3px 12px !important; }
  .compare-section { padding: 32px 16px !important; }
  .compare-section .section-title { font-size: 22px !important; }
  .compare-table { font-size: 11px !important; }
  .compare-table th, .compare-table td { padding: 8px 6px !important; }
  .pricing-footer-note { padding: 0 16px 24px !important; font-size: 12px !important; }
}

/* ============================================================
   PAYPAL MODAL MOBILE SCROLL FIX (W)
   ============================================================ */
.pay-modal {
  align-items: flex-start !important;
  overflow-y: auto !important;
  padding: 20px 12px !important;
}
.pay-box {
  margin: auto !important;
  max-height: none !important;
  padding: 24px 20px !important;
}
@media (max-width: 768px) {
  .pay-modal {
    padding: 12px !important;
  }
  .pay-box {
    padding: 20px 16px !important;
    width: 100% !important;
  }
  .pay-box h2 { font-size: 18px !important; }
  .pay-box p { font-size: 13px !important; }
}

/* ============================================================
   GENERIC CONTENT PAGE STYLE (Y)
   ============================================================ */
.page-wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 80px 32px;
}
.page-wrap h1 {
  font-family: var(--font-head);
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -1.5px;
  margin-bottom: 16px;
  line-height: 1.1;
}
.page-wrap .lede {
  font-size: 17px;
  color: var(--muted2);
  line-height: 1.7;
  margin-bottom: 40px;
  font-weight: 300;
}
.page-wrap h2 {
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 700;
  margin: 36px 0 14px;
  letter-spacing: -0.5px;
}
.page-wrap p {
  font-size: 15px;
  color: #C8D0E8;
  line-height: 1.75;
  margin-bottom: 14px;
}
.page-wrap ul {
  padding-left: 22px;
  margin: 12px 0 20px;
}
.page-wrap ul li {
  font-size: 15px;
  color: #C8D0E8;
  line-height: 1.7;
  margin-bottom: 8px;
}
.page-wrap a { color: var(--blue); }
.page-wrap a:hover { text-decoration: underline; }
.page-wrap .updated {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 32px;
}
.faq-item {
  background: var(--dark2);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 12px;
}
.faq-item .q {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}
.faq-item .a {
  font-size: 14px;
  color: var(--muted2);
  line-height: 1.7;
}
.contact-card {
  background: var(--dark2);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.contact-card .icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--blue-dim);
  border: 0.5px solid var(--blue-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}
.contact-card .info .label { font-size: 12px; color: var(--muted2); margin-bottom: 2px; }
.contact-card .info .value { font-size: 15px; color: var(--white); font-weight: 500; }
.status-card {
  background: var(--dark2);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.status-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--green);
  display: inline-block;
  margin-right: 8px;
  animation: pulse 2s infinite;
}
@media (max-width: 768px) {
  .page-wrap { padding: 48px 20px; }
  .page-wrap h1 { font-size: 32px; }
  .page-wrap h2 { font-size: 20px; }
  .page-wrap .lede { font-size: 15px; }
}

/* ============================================================
   ANIMATIONS — subtle but professional
   ============================================================ */

/* Smooth fade-in for cards */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(15px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Pulse for live indicators */
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(0,195,122,0.6); }
  70%  { box-shadow: 0 0 0 8px rgba(0,195,122,0); }
  100% { box-shadow: 0 0 0 0 rgba(0,195,122,0); }
}

/* Subtle button glow on hover */
@keyframes btnGlow {
  0%, 100% { box-shadow: 0 0 0 rgba(26,107,255,0); }
  50%      { box-shadow: 0 0 18px rgba(26,107,255,0.4); }
}

/* Loading skeleton shimmer */
@keyframes shimmer {
  0%   { background-position: -200px 0; }
  100% { background-position: calc(200px + 100%) 0; }
}

/* Slide in from sides */
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Apply animations */
.metric-card { animation: fadeInUp 0.5s ease-out forwards; }
.metric-card:nth-child(1) { animation-delay: 0.05s; }
.metric-card:nth-child(2) { animation-delay: 0.15s; }
.metric-card:nth-child(3) { animation-delay: 0.25s; }
.metric-card:nth-child(4) { animation-delay: 0.35s; }

.result-card { animation: fadeInUp 0.4s ease-out forwards; opacity: 0; }
.result-card:nth-child(1) { animation-delay: 0.1s; }
.result-card:nth-child(2) { animation-delay: 0.2s; }
.result-card:nth-child(3) { animation-delay: 0.3s; }
.result-card:nth-child(4) { animation-delay: 0.4s; }
.result-card:nth-child(5) { animation-delay: 0.5s; }

.plan-card { animation: fadeInUp 0.5s ease-out forwards; opacity: 0; }
.plan-card:nth-child(1) { animation-delay: 0.1s; }
.plan-card:nth-child(2) { animation-delay: 0.2s; }
.plan-card:nth-child(3) { animation-delay: 0.3s; }
.plan-card:nth-child(4) { animation-delay: 0.4s; }

/* Live indicator pulse */
.pulse-dot, .status-dot {
  animation: pulse 2s infinite;
}

/* Hover lift effect on cards */
.metric-card, .result-card, .plan-card, .competitor-card, .faq-item, .contact-card {
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.metric-card:hover, .result-card:hover, .competitor-card:hover, .faq-item:hover, .contact-card:hover {
  transform: translateY(-3px);
  border-color: var(--blue-border) !important;
}

/* Ripple effect on buttons */
.btn, .plan-btn, .copy-btn, .chat-send {
  position: relative;
  overflow: hidden;
}
.btn::after, .plan-btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px; height: 5px;
  background: rgba(255,255,255,0.4);
  opacity: 0;
  border-radius: 100%;
  transform: scale(1, 1) translate(-50%);
  transform-origin: 50% 50%;
}
.btn:focus:not(:active)::after, .plan-btn:focus:not(:active)::after {
  animation: ripple 0.6s ease-out;
}
@keyframes ripple {
  0%   { transform: scale(0, 0); opacity: 0.5; }
  100% { transform: scale(20, 20); opacity: 0; }
}

/* Glow on solid buttons */
.btn-solid:hover, .plan-btn.solid:hover {
  animation: btnGlow 1.5s ease-in-out infinite;
}

/* Gradient animation for special elements */
@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}
.plan-card.featured {
  background: linear-gradient(160deg, rgba(26,107,255,0.08) 0%, var(--dark2) 60%);
  background-size: 200% 200%;
  animation: gradientShift 8s ease infinite, fadeInUp 0.5s ease-out forwards;
}

/* Loading spinner */
.spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,0.2);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  vertical-align: middle;
  margin-right: 6px;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Toast notifications */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 14px 20px;
  background: var(--dark2);
  border: 0.5px solid var(--border2);
  border-left: 3px solid var(--green);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-size: 14px;
  box-shadow: 0 10px 40px rgba(124,58,237,0.10);
  z-index: 9999;
  animation: slideInRight 0.3s ease-out forwards;
  max-width: 320px;
}
.toast.error { border-left-color: #FF6B6B; }
.toast.warning { border-left-color: #FFA500; }

/* Typing cursor for AI chat */
.typing-cursor {
  display: inline-block;
  width: 2px;
  height: 14px;
  background: var(--blue);
  margin-left: 2px;
  animation: blink 1s step-end infinite;
  vertical-align: middle;
}
@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* Number counter style */
.metric-value, .plan-price {
  display: inline-block;
}

/* Hero subtle animation */
@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero h1, .hero p, .hero .btn {
  animation: heroFadeIn 0.7s ease-out forwards;
}
.hero h1 { animation-delay: 0.1s; opacity: 0; }
.hero p  { animation-delay: 0.3s; opacity: 0; }
.hero .btn { animation-delay: 0.5s; opacity: 0; }

/* Confetti for payment success */
@keyframes confettiFall {
  0%   { transform: translateY(-100vh) rotate(0deg); opacity: 1; }
  100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}
.confetti {
  position: fixed;
  width: 10px;
  height: 10px;
  pointer-events: none;
  z-index: 99999;
  animation: confettiFall 3s linear forwards;
}

/* ============================================================
   LIGHT THEME OVERRIDES — Soft Purple
   ============================================================ */

body { background: var(--dark); color: var(--white); }

.nav { background: rgba(255,255,255,0.92); backdrop-filter: blur(20px); border-bottom: 0.5px solid var(--border); }
.nav-logo { color: var(--white); }
.nav-logo span { color: var(--blue); }
.nav-links a { color: var(--white); font-weight: 500; }
.nav-links a:hover { color: var(--blue); }
.nav-links a.active { color: var(--blue); border-bottom: 1.5px solid var(--blue); }

.btn-ghost {
  background: var(--mid);
  color: var(--white);
  border: 0.5px solid var(--border);
}
.btn-ghost:hover { background: var(--dark3); }

.btn-solid {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 1px 3px rgba(124,58,237,0.20);
}
.btn-solid:hover {
  background: var(--blue-dark);
  box-shadow: 0 4px 12px rgba(124,58,237,0.30);
}

input, textarea, select {
  background: var(--dark);
  border: 1px solid var(--border2);
  color: var(--white);
}
input:focus, textarea:focus, select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.10);
}

.section-tag {
  background: var(--blue-dim);
  color: var(--blue);
  border: 0.5px solid var(--blue-border);
}

.section-title { color: var(--white); }
.section-desc { color: var(--muted2); }

.hero { background: linear-gradient(180deg, #FAFAFB 0%, #FFFFFF 100%); }
.hero h1 { color: var(--white); }
.hero p { color: var(--muted2); }

.feature-card, .plan-card, .result-card, .contact-card, .faq-item, .metric-card {
  background: var(--dark);
  border: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(124,58,237,0.04);
}
.feature-card:hover, .plan-card:hover, .result-card:hover {
  border-color: var(--blue-border);
  box-shadow: 0 8px 25px rgba(124,58,237,0.10);
}

.cta-section {
  background: linear-gradient(135deg, var(--blue-dim), rgba(124,58,237,0.04));
  border: 1px solid var(--blue-border);
}
.cta-section h2 { color: var(--white); }
.cta-section p { color: var(--muted2); }

.footer {
  background: var(--dark2);
  border-top: 1px solid var(--border);
  color: var(--muted2);
}
.footer h4 { color: var(--white); }
.footer a { color: var(--muted2); }
.footer a:hover { color: var(--blue); }
.footer-brand .logo { color: var(--white); }
.footer-brand .logo span { color: var(--blue); }

.lang-toggle {
  background: var(--dark2);
  border: 1px solid var(--border);
  color: var(--white);
}
.lang-toggle:hover { background: var(--mid); }

.modal, .lang-modal {
  background: rgba(31,27,61,0.6);
  backdrop-filter: blur(8px);
}
.modal-content, .lang-modal-content {
  background: var(--dark);
  border: 1px solid var(--border);
  box-shadow: 0 20px 60px rgba(124,58,237,0.20);
}

/* RTL support */
[dir="rtl"] .nav-links a.active { border-bottom: 1.5px solid var(--blue); }

/* Mobile responsive for new theme */
@media (max-width: 768px) {
  .nav { padding: 12px 16px; }
  .feature-card, .plan-card { box-shadow: 0 1px 4px rgba(124,58,237,0.06); }
}

/* ============================================================
   TOOLS DROPDOWN MENU
   ============================================================ */
.nav-tools-dropdown.open .nav-tools-menu { display: block !important; }
.nav-tools-dropdown:hover .nav-tools-menu { display: block !important; }
.nav-tools-menu a:hover { background: var(--mid); }
.nav-tools-menu a { transition: background 0.15s; }

/* Mobile menu adjustments */
@media (max-width: 768px) {
  .nav-tools-menu {
    position: static !important;
    box-shadow: none !important;
    margin-top: 8px !important;
    background: var(--dark2) !important;
    width: 100% !important;
  }
  .nav-tools-dropdown { width: 100%; }
}

/* ============================================================
   MOBILE NAVIGATION (Hamburger Menu)
   ============================================================ */

.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
}
.mobile-menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 1px;
  transition: all 0.25s;
}
.mobile-menu-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-menu-toggle.open span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

@media (max-width: 768px) {
  .nav { padding: 12px 16px; flex-wrap: wrap; }
  .nav-logo { font-size: 22px; }
  .mobile-menu-toggle { display: flex; }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    margin-top: 14px;
    padding: 14px 0;
    border-top: 1px solid var(--border);
    gap: 4px !important;
    order: 3;
  }
  .nav-links.mobile-open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 12px 14px; border-radius: 8px; }
  .nav-links a:hover { background: var(--mid); }

  .nav-right {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 8px;
    margin-top: 6px;
    padding: 0 14px 14px;
    order: 4;
  }
  .nav-right.mobile-open { display: flex; }
  .nav-right .lang-toggle, .nav-right .btn { width: 100%; justify-content: center; }
  .nav-right > div { display: flex; flex-direction: column; gap: 8px; width: 100%; }
  .nav-right > div .btn { width: 100%; }

  .nav-tools-dropdown.open .nav-tools-menu,
  .nav-tools-dropdown:hover .nav-tools-menu { display: block !important; }
}

/* Container responsive padding */
@media (max-width: 480px) {
  .hero { padding: 60px 16px 40px !important; }
  .hero h1 { font-size: 32px !important; }
  .hero p { font-size: 14px !important; }
  .section { padding: 50px 16px !important; }
  .section-title { font-size: 26px !important; }
  .cta-section { padding: 50px 16px !important; }
  .cta-section h2 { font-size: 24px !important; }
  .footer { padding: 40px 16px 20px !important; }
  .footer-top { grid-template-columns: 1fr !important; gap: 30px !important; }
}

/* ============================================================
   NAV VISIBILITY FIX — High contrast on white bg
   ============================================================ */

.nav-links a,
.nav-links li > a {
  color: #1F1B3D !important;
  font-weight: 500 !important;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 8px;
  transition: all 0.2s;
}

.nav-links a:hover {
  color: #7C3AED !important;
  background: rgba(124, 58, 237, 0.06);
}

.nav-links a.active {
  color: #7C3AED !important;
  font-weight: 600 !important;
}

.nav-tools-dropdown > a {
  color: #1F1B3D !important;
  cursor: pointer;
}

.nav-tools-menu a {
  color: #1F1B3D !important;
}

.nav-tools-menu a:hover {
  background: #F5F3FA;
}

/* Login button text fix */
.btn-ghost {
  color: #1F1B3D !important;
}

/* Lang toggle visibility */
.lang-toggle {
  color: #1F1B3D !important;
}
.lang-toggle .lang-name {
  color: #1F1B3D !important;
}

/* ============================================================
   TOOLS DROPDOWN FIX — Invisible bridge prevents gap
   ============================================================ */

.nav-tools-dropdown {
  position: relative;
}

/* Invisible bridge between trigger and menu (eliminates the gap) */
.nav-tools-dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 12px;
  background: transparent;
  display: none;
}

.nav-tools-dropdown:hover::after,
.nav-tools-dropdown.open::after {
  display: block;
}

.nav-tools-menu {
  margin-top: 0 !important;
  top: calc(100% + 6px) !important;
  padding: 10px !important;
}

/* Stays open while hovering anywhere in dropdown OR menu */
.nav-tools-dropdown:hover .nav-tools-menu,
.nav-tools-menu:hover {
  display: block !important;
}

/* Mobile - always show on tap */
@media (max-width: 768px) {
  .nav-tools-dropdown::after { display: none !important; }
}

/* ============================================================
   NEW BADGES — for new tools
   ============================================================ */

.new-badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  background: #C0DD97;
  color: #173404;
  border-radius: 4px;
  margin-left: 6px;
  letter-spacing: 0.5px;
}

[dir="rtl"] .new-badge {
  margin-left: 0;
  margin-right: 6px;
}

/* ============================================================
   QUICK TOOLS SHORTCUTS (Dashboard)
   ============================================================ */

.quick-tools {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 0 0 20px;
}

.quick-tool-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 18px 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  color: var(--white);
  transition: all 0.2s;
  text-align: center;
}

.quick-tool-card:hover {
  border-color: var(--blue-border);
  background: var(--blue-dim);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(124,58,237,0.10);
}

.quick-tool-icon {
  font-size: 28px;
  margin-bottom: 8px;
}

.quick-tool-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
}

.new-badge-corner {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  background: #C0DD97;
  color: #173404;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

[dir="rtl"] .new-badge-corner {
  right: auto;
  left: 8px;
}

@media (max-width: 768px) {
  .quick-tools {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .quick-tool-card {
    flex-direction: row;
    justify-content: flex-start;
    padding: 14px;
    gap: 14px;
  }
  .quick-tool-icon { margin-bottom: 0; font-size: 24px; }
}

/* ============================================================
   MOBILE BACK BUTTON (visible only on mobile)
   ============================================================ */

.mobile-back-btn {
  display: none;
  position: fixed;
  top: 70px;
  left: 12px;
  z-index: 50;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(124,58,237,0.10);
  align-items: center;
  gap: 6px;
}

.mobile-back-btn:hover { background: var(--mid); }

[dir="rtl"] .mobile-back-btn {
  left: auto;
  right: 12px;
}

@media (max-width: 768px) {
  .mobile-back-btn { display: flex; }
}
