/* ═══ RESET & TOKENS ═══ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:       #080810;
  --bg-2:     #0d0d18;
  --surface:  #111120;
  --surface-2:#171728;
  --surface-3:#1e1e32;
  --border:   rgba(255,255,255,0.06);
  --border-2: rgba(255,255,255,0.12);
  --text:     #f2f2f0;
  --text-2:   #8888a0;
  --text-3:   #44445a;
  --green:    #2dd68c;
  --green-d:  rgba(45,214,140,0.12);
  --green-b:  rgba(45,214,140,0.3);
  --blue:     #4a9eff;
  --blue-d:   rgba(74,158,255,0.12);
  --purple:   #a78bfa;
  --purple-d: rgba(167,139,250,0.12);
  --orange:   #fb923c;
  --orange-d: rgba(251,146,60,0.12);
  --gold:     #e8c97a;
  --radius:   14px;
  --radius-sm:8px;
  --ff-display: Georgia, 'Times New Roman', serif;
  --ff-body:    -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, Arial, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--ff-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }

/* ═══ NAVBAR ═══ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2.5rem;
  height: 68px;
  background: transparent;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 0.5px solid transparent;
}
.navbar.scrolled {
  background: rgba(8,8,16,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--border);
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--ff-body); font-size: 15px; font-weight: 500;
}
.logo-mark {
  width: 30px; height: 30px; border-radius: 8px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--green) 100%);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px; color: #fff;
  flex-shrink: 0;
}
.nav-links { display: flex; align-items: center; gap: 0.25rem; }
.nav-link {
  padding: 0.5rem 1rem; font-size: 14px; font-weight: 400; color: var(--text-2);
  border-radius: var(--radius-sm); transition: color 0.15s, background 0.15s;
  background: none; border: none; cursor: pointer; font-family: var(--ff-body);
}
.nav-link:hover, .nav-link.active { color: var(--text); }
.nav-link.active { font-weight: 500; }
.chevron { font-size: 10px; margin-left: 3px; transition: transform 0.2s; }

/* DROPDOWN */
.nav-dropdown { position: relative; }
.dropdown-menu {
  position: absolute; top: calc(100% + 10px); right: 0;
  width: 300px;
  background: var(--surface);
  border: 0.5px solid var(--border-2);
  border-radius: var(--radius);
  padding: 0.5rem;
  opacity: 0; transform: translateY(-8px) scale(0.97);
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.dropdown-menu.open {
  opacity: 1; transform: translateY(0) scale(1);
  pointer-events: all;
}
.nav-dropdown .dropdown-menu.open ~ .nav-link .chevron,
.dropdown-trigger[aria-expanded="true"] .chevron { transform: rotate(180deg); }
.drop-item, .drop-coming {
  display: flex; align-items: center; gap: 12px;
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: background 0.12s;
  cursor: pointer;
}
.drop-item:hover { background: var(--surface-2); }
.drop-coming { cursor: default; }
.drop-icon { font-size: 18px; width: 24px; text-align: center; flex-shrink: 0; }
.drop-name { font-size: 13px; font-weight: 500; color: var(--text); margin-bottom: 1px; }
.drop-desc { font-size: 11px; color: var(--text-2); }
.drop-divider { height: 0.5px; background: var(--border); margin: 0.4rem 0.5rem; }
.soon-tag {
  margin-left: auto; font-size: 10px; font-weight: 500;
  padding: 2px 7px; border-radius: 5px;
  background: var(--surface-3); color: var(--text-3); flex-shrink: 0;
}
.nav-cta {
  padding: 0.55rem 1.25rem; font-size: 13px; font-weight: 500;
  background: var(--green); color: #041a0e;
  border: none; border-radius: 50px; cursor: pointer;
  transition: opacity 0.15s, transform 0.15s;
  font-family: var(--ff-body);
  white-space: nowrap;
}
.nav-cta:hover { opacity: 0.88; transform: translateY(-1px); }

/* ═══ HERO ═══ */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  position: relative; overflow: hidden;
  padding: 0 2.5rem;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
}
.orb {
  position: absolute; border-radius: 50%;
  filter: blur(100px); opacity: 0.35;
}
.orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #1a4a8a 0%, transparent 70%);
  top: -200px; right: -100px;
  animation: drift1 12s ease-in-out infinite alternate;
}
.orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #0d3d2a 0%, transparent 70%);
  bottom: -100px; left: 10%;
  animation: drift2 15s ease-in-out infinite alternate;
}
.orb-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, #3a1a6a 0%, transparent 70%);
  top: 40%; left: 40%;
  animation: drift3 10s ease-in-out infinite alternate;
}
@keyframes drift1 { from { transform: translate(0,0); } to { transform: translate(-60px, 40px); } }
@keyframes drift2 { from { transform: translate(0,0); } to { transform: translate(40px, -30px); } }
@keyframes drift3 { from { transform: translate(0,0); } to { transform: translate(-30px, 50px); } }

.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at 50% 50%, black 30%, transparent 80%);
}

.hero-content {
  position: relative; z-index: 1;
  max-width: 760px;
  padding-top: 68px;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 400; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-2);
  margin-bottom: 1.75rem;
  opacity: 0; animation: fadeUp 0.6s ease forwards;
  animation-delay: 0.1s;
}
.eyebrow-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulse 2s ease infinite;
}
@keyframes pulse { 0%,100% { opacity:1; } 50% { opacity:0.4; } }

.hero-title {
  font-family: var(--ff-display);
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 1.05;
  font-weight: 900;
  margin-bottom: 1.5rem;
  display: flex; flex-direction: column; gap: 0.05em;
}
.title-line {
  display: block;
  opacity: 0;
  animation: slideUp 0.7s cubic-bezier(.16,1,.3,1) forwards;
  color: var(--text);
}
.title-line.italic {
  font-style: italic;
  background: linear-gradient(90deg, var(--gold) 0%, var(--green) 60%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
@keyframes slideUp {
  from { opacity:0; transform: translateY(30px); }
  to   { opacity:1; transform: translateY(0); }
}
@keyframes fadeUp {
  from { opacity:0; transform: translateY(12px); }
  to   { opacity:1; transform: translateY(0); }
}

.hero-sub {
  font-size: 17px; font-weight: 300; color: var(--text-2);
  line-height: 1.75; margin-bottom: 2.25rem; max-width: 520px;
  opacity: 0; animation: fadeUp 0.6s ease forwards; animation-delay: 0.75s;
}
.hero-actions {
  display: flex; align-items: center; gap: 14px; margin-bottom: 3rem;
  opacity: 0; animation: fadeUp 0.6s ease forwards; animation-delay: 0.9s;
}
.btn-hero-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0.85rem 1.75rem; font-size: 15px; font-weight: 500;
  background: var(--green); color: #041a0e;
  border-radius: 50px; transition: opacity 0.15s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 0 0 0 rgba(45,214,140,0);
}
.btn-hero-primary:hover {
  opacity: 0.9; transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(45,214,140,0.3);
}
.btn-hero-ghost {
  padding: 0.85rem 1.5rem; font-size: 15px; font-weight: 400;
  color: var(--text-2); border: 0.5px solid var(--border-2);
  border-radius: 50px; transition: color 0.15s, border-color 0.15s;
}
.btn-hero-ghost:hover { color: var(--text); border-color: rgba(255,255,255,0.25); }

.hero-stats {
  display: flex; align-items: center; gap: 1.5rem;
  opacity: 0; animation: fadeUp 0.6s ease forwards; animation-delay: 1.05s;
}
.stat { display: flex; flex-direction: column; }
.stat-n { font-size: 22px; font-weight: 600; color: var(--text); line-height: 1; }
.stat-l { font-size: 11px; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 3px; }
.stat-sep { width: 1px; height: 36px; background: var(--border-2); }

.hero-scroll {
  position: absolute; bottom: 2.5rem; left: 2.5rem; z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  opacity: 0; animation: fadeUp 0.6s ease forwards; animation-delay: 1.2s;
}
.hero-scroll span { font-size: 10px; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.1em; writing-mode: vertical-rl; }
.scroll-line {
  width: 1px; height: 50px;
  background: linear-gradient(to bottom, var(--text-3), transparent);
  animation: scrollAnim 1.8s ease infinite;
}
@keyframes scrollAnim {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ═══ QUOTE ═══ */
.quote-section {
  padding: 5rem 2.5rem;
  background: var(--bg-2);
  border-top: 0.5px solid var(--border);
  border-bottom: 0.5px solid var(--border);
}
.quote-inner {
  max-width: 760px; margin: 0 auto; text-align: center;
  position: relative;
}
.quote-mark {
  font-family: var(--ff-display); font-size: 120px; line-height: 0.5;
  color: var(--green); opacity: 0.15; position: absolute; top: -20px; left: -20px;
  pointer-events: none;
}
blockquote {
  font-family: var(--ff-display); font-size: clamp(1.3rem, 3vw, 2rem);
  font-weight: 700; line-height: 1.4; color: var(--text);
  margin-bottom: 1.25rem; position: relative; z-index: 1;
}
blockquote em {
  font-style: italic; color: var(--gold);
}
cite {
  font-size: 13px; color: var(--text-3); font-style: normal;
  letter-spacing: 0.05em;
}

/* ═══ TOOLS SECTION ═══ */
.tools-section {
  padding: 6rem 2.5rem;
  max-width: 1100px; margin: 0 auto;
}
.section-header { margin-bottom: 3rem; }
.section-label {
  font-size: 11px; font-weight: 500; color: var(--green);
  text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 0.75rem;
}
.section-title {
  font-family: var(--ff-display); font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700; line-height: 1.2; color: var(--text);
}

.tools-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.tool-card {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  position: relative; overflow: hidden;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  display: block;
}
.tool-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-2);
  box-shadow: 0 16px 50px rgba(0,0,0,0.4);
}
.tool-card.featured {
  background: var(--surface-2);
  border-color: rgba(45,214,140,0.15);
}
.tool-card.featured:hover {
  border-color: rgba(45,214,140,0.35);
  box-shadow: 0 20px 60px rgba(45,214,140,0.08);
}
/* Wide rectangular card for divisas */
.tool-card-wide {
  display: block;
  width: 100%;
  padding: 1.75rem 2rem;
  border-color: rgba(251,146,60,0.15);
}
.tool-card-wide:hover {
  border-color: rgba(251,146,60,0.35);
  box-shadow: 0 12px 40px rgba(251,146,60,0.08);
}
.tool-wide-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}
.tool-wide-left {
  display: flex; align-items: center; gap: 1.25rem; flex: 1;
}
.tool-wide-left .tool-icon-wrap { margin-bottom: 0; flex-shrink: 0; }
.tool-wide-left .tool-name { margin-bottom: 4px; }
.tool-wide-left .tool-desc { margin-bottom: 0; }
.tool-wide-right {
  display: flex; flex-direction: column; align-items: flex-end; flex-shrink: 0;
}
.tool-card-wide .tool-num { margin-bottom: 0; position: absolute; top: 1.25rem; left: 2rem; }
.tool-glow {
  position: absolute; top: -60px; right: -60px;
  width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(45,214,140,0.15), transparent 70%);
  pointer-events: none;
}
.tool-num {
  font-size: 11px; color: var(--text-3); font-weight: 500;
  letter-spacing: 0.08em; margin-bottom: 1.25rem;
}
.tool-icon-wrap {
  font-size: 28px; margin-bottom: 1rem;
  display: inline-block;
}
.tool-name {
  font-family: var(--ff-display); font-size: 1.4rem; font-weight: 700;
  line-height: 1.2; color: var(--text); margin-bottom: 0.75rem;
}
.tool-card.featured .tool-name { font-size: 1.75rem; }
.tool-desc {
  font-size: 13px; color: var(--text-2); line-height: 1.7;
  margin-bottom: 1.25rem;
}
.tool-tags {
  display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 1.5rem;
}
.tool-tags span {
  font-size: 10px; padding: 3px 8px; border-radius: 4px;
  background: var(--surface-3); color: var(--text-3);
  border: 0.5px solid var(--border);
}
.tool-arrow {
  font-size: 18px; color: var(--text-3);
  transition: color 0.15s, transform 0.15s;
}
.tool-card:hover .tool-arrow {
  color: var(--green); transform: translateX(4px);
}
.tool-card.featured .tool-arrow { font-size: 22px; }

/* ═══ WHY SECTION ═══ */
.why-section {
  padding: 6rem 2.5rem;
  background: var(--bg-2);
  border-top: 0.5px solid var(--border);
}
.why-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center;
}
.why-title {
  font-family: var(--ff-display); font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  font-weight: 700; line-height: 1.2; color: var(--text); margin-bottom: 1.25rem;
}
.why-body {
  font-size: 15px; font-weight: 300; color: var(--text-2); line-height: 1.8;
  margin-bottom: 2rem;
}
.btn-why {
  display: inline-block; font-size: 14px; font-weight: 500; color: var(--green);
  border-bottom: 1px solid rgba(45,214,140,0.4);
  padding-bottom: 2px; transition: border-color 0.15s;
}
.btn-why:hover { border-color: var(--green); }

.vis-card { margin-bottom: 1.25rem; }
.vis-label { font-size: 12px; color: var(--text-2); margin-bottom: 8px; }
.vis-bar-wrap {
  background: var(--surface-3); border-radius: 6px; height: 44px; overflow: hidden;
}
.vis-bar {
  height: 100%; width: 0; border-radius: 6px;
  background: var(--color);
  transition: width 1.2s cubic-bezier(.16,1,.3,1);
  display: flex; align-items: center; padding-left: 12px;
  font-size: 13px; font-weight: 600; color: rgba(0,0,0,0.7);
  white-space: nowrap; overflow: hidden;
}
.vis-bar.animated { width: var(--pct); }
.vis-note { font-size: 11px; color: var(--text-3); margin-top: 0.75rem; }

/* ═══ FOOTER ═══ */
.site-footer {
  border-top: 0.5px solid var(--border);
  padding: 2rem 2.5rem;
}
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; gap: 2rem; flex-wrap: wrap;
}
.footer-brand {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 500;
}
.footer-note { font-size: 12px; color: var(--text-3); flex: 1; }
.footer-links { display: flex; gap: 1.25rem; }
.footer-links a { font-size: 12px; color: var(--text-3); transition: color 0.12s; }
.footer-links a:hover { color: var(--text); }

/* ═══ INNER PAGES ═══ */
.page-navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; gap: 12px;
  padding: 0 2rem;
  height: 60px;
  background: rgba(8,8,16,0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 0.5px solid var(--border);
}
.page-navbar .nav-links { margin-left: auto; }

.page-wrap {
  padding-top: 60px;
  min-height: 100vh;
}
.page-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 2.5rem 2rem 4rem;
}
.page-header { margin-bottom: 2rem; }
.page-header h1 {
  font-family: var(--ff-display); font-size: 2rem; font-weight: 700;
  color: var(--text); margin-bottom: 4px;
}
.page-header p { font-size: 14px; color: var(--text-2); }

/* Cards */
.card {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.card-title {
  font-size: 10px; font-weight: 600; color: var(--text-3);
  text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1.1rem;
}
.mb { margin-bottom: 1.25rem; }
.two-col { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.6fr); gap: 1.25rem; margin-bottom: 1.25rem; }

/* Form */
.field { margin-bottom: 1rem; }
.field:last-of-type { margin-bottom: 0; }
.field label { display: block; font-size: 12px; color: var(--text-2); margin-bottom: 5px; }
.input-wrap { position: relative; display: flex; align-items: center; }
.input-wrap input, .input-wrap select {
  width: 100%; padding: 10px 38px 10px 12px;
  font-size: 14px; color: var(--text);
  border: 0.5px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  outline: none; font-family: var(--ff-body);
  transition: border-color 0.15s, box-shadow 0.15s;
  -webkit-appearance: none;
}
.input-wrap input:focus, .input-wrap select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(45,214,140,0.12);
}
.input-wrap .unit {
  position: absolute; right: 10px; font-size: 12px;
  color: var(--text-3); pointer-events: none;
}

/* Buttons */
.btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 1.1rem; }
.btn-primary {
  padding: 10px; font-size: 13px; font-weight: 500;
  background: var(--green); color: #041a0e;
  border: none; border-radius: var(--radius-sm);
  cursor: pointer; font-family: var(--ff-body);
  transition: opacity 0.15s;
}
.btn-primary:hover { opacity: 0.85; }
.btn-secondary {
  padding: 10px; font-size: 13px; font-weight: 400;
  background: var(--surface-2); color: var(--text);
  border: 0.5px solid var(--border-2);
  border-radius: var(--radius-sm); cursor: pointer;
  font-family: var(--ff-body); transition: background 0.12s;
}
.btn-secondary:hover { background: var(--surface-3); }
.btn-export {
  grid-column: 1 / -1; padding: 10px;
  font-size: 13px; font-weight: 400;
  background: transparent; color: var(--green);
  border: 0.5px solid rgba(45,214,140,0.3);
  border-radius: var(--radius-sm); cursor: pointer;
  font-family: var(--ff-body); transition: background 0.12s;
}
.btn-export:hover { background: rgba(45,214,140,0.07); }

/* Metrics */
.metrics-col { display: flex; flex-direction: column; gap: 10px; }
.metric { background: var(--surface-2); border-radius: var(--radius-sm); padding: 0.9rem 1rem; }
.metric.accent { background: var(--surface); border: 0.5px solid var(--border-2); }
.metric-label { font-size: 10px; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 3px; }
.metric-value { font-size: 22px; font-weight: 600; color: var(--text); font-family: var(--ff-body); }
.metric-value.green { color: var(--green); }
.metric-sub { font-size: 11px; color: var(--text-2); margin-top: 2px; }

/* Chart */
.chart-wrap { position: relative; width: 100%; height: 280px; }
.chart-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.chart-label { font-size: 12px; color: var(--text-2); }
.legend { display: flex; gap: 14px; }
.legend-item { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--text-2); }
.dot { width: 10px; height: 10px; border-radius: 2px; }
.dot.blue { background: var(--blue); }
.dot.green { background: var(--green); }

/* Range bars */
.range-sub { font-size: 11px; color: var(--text-3); margin-top: -0.5rem; margin-bottom: 1rem; }
.range-row { display: grid; grid-template-columns: 38px 1fr 72px; gap: 8px; align-items: center; margin-bottom: 8px; }
.range-rate { font-size: 12px; color: var(--text-2); }
.bar-track { border-radius: 3px; height: 18px; background: var(--surface-3); overflow: hidden; }
.bar-s { height: 50%; background: var(--blue); opacity: 0.7; border-radius: 2px; }
.bar-c { height: 50%; background: var(--green); border-radius: 2px; }
.bar-vals { font-size: 10px; color: var(--text-2); line-height: 1.6; text-align: right; }

/* Scenarios */
.empty-sc { font-size: 13px; color: var(--text-3); text-align: center; padding: 1rem 0; }
.scenario-item { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; padding: 10px 0; border-bottom: 0.5px solid var(--border); }
.scenario-item:last-child { border-bottom: none; padding-bottom: 0; }
.scenario-name { font-size: 13px; font-weight: 500; color: var(--text); }
.scenario-detail { font-size: 11px; color: var(--text-2); margin-top: 2px; }
.scenario-detail.green { color: var(--green); }
.sc-btn { font-size: 12px; cursor: pointer; background: none; border: none; padding: 4px 8px; border-radius: var(--radius-sm); transition: background 0.12s; font-family: var(--ff-body); }
.sc-load { color: var(--blue); }
.sc-load:hover { background: var(--blue-d); }
.sc-del { color: var(--text-3); }
.sc-del:hover { color: #f87171; background: rgba(248,113,113,0.08); }

/* Toast */
.toast {
  position: fixed; top: 1rem; right: 1rem;
  background: var(--green); color: #041a0e;
  font-size: 13px; font-weight: 500; padding: 8px 16px;
  border-radius: 50px; opacity: 0; transition: opacity 0.3s;
  pointer-events: none; z-index: 999;
}
.toast.show { opacity: 1; }

/* Responsive */
@media (max-width: 700px) {
  .navbar { padding: 0 1.25rem; }
  .hero { padding: 0 1.25rem; }
  .tools-grid { grid-template-columns: 1fr; }
  .tool-card.featured { grid-row: auto; }
  .why-inner { grid-template-columns: 1fr; gap: 3rem; }
  .two-col { grid-template-columns: 1fr; }
  .hero-title { font-size: 2.6rem; }
  .nav-links { display: none; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
}

/* ═══ PAYMENT MODAL ═══ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s;
}
.modal-overlay.open {
  opacity: 1; pointer-events: all;
}
.modal {
  background: var(--surface);
  border: 0.5px solid var(--border-2);
  border-radius: 18px;
  padding: 2rem;
  width: 100%; max-width: 400px;
  margin: 1rem;
  transform: translateY(16px) scale(0.97);
  transition: transform 0.25s cubic-bezier(.16,1,.3,1);
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}
.modal-overlay.open .modal {
  transform: translateY(0) scale(1);
}
.modal-top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.25rem;
}
.modal-title {
  font-family: var(--ff-display); font-size: 1.2rem; font-weight: 700;
  color: var(--text);
}
.modal-close {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--surface-2); border: none;
  color: var(--text-2); cursor: pointer; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.12s;
  font-family: var(--ff-body);
}
.modal-close:hover { background: var(--surface-3); color: var(--text); }
.modal-preview {
  background: var(--surface-2);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem;
  margin-bottom: 1.25rem;
  display: flex; align-items: center; gap: 12px;
}
.modal-preview-icon { font-size: 28px; }
.modal-preview-text { font-size: 13px; color: var(--text-2); line-height: 1.5; }
.modal-preview-text strong { color: var(--text); display: block; font-size: 14px; margin-bottom: 2px; }
.modal-price-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.25rem;
}
.modal-price-label { font-size: 13px; color: var(--text-2); }
.modal-price {
  font-size: 26px; font-weight: 700; color: var(--green);
  font-family: var(--ff-body);
}
.modal-price sup { font-size: 14px; vertical-align: super; }
.modal-features {
  margin-bottom: 1.5rem;
  display: flex; flex-direction: column; gap: 6px;
}
.modal-feature {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text-2);
}
.modal-feature::before {
  content: '✓'; color: var(--green); font-weight: 600; font-size: 12px;
}
.modal-btn-pay {
  width: 100%; padding: 12px;
  background: var(--green); color: #041a0e;
  border: none; border-radius: 50px;
  font-size: 15px; font-weight: 600;
  cursor: pointer; font-family: var(--ff-body);
  transition: opacity 0.15s, transform 0.15s, box-shadow 0.2s;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.modal-btn-pay:hover {
  opacity: 0.9; transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(45,214,140,0.3);
}
.modal-note {
  text-align: center; font-size: 11px; color: var(--text-3);
  margin-top: 0.75rem;
}

/* ═══ ADSENSE SLOTS ═══ */
.ad-slot {
  background: var(--surface);
  border: 1px dashed var(--border-2);
  border-radius: var(--radius);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 6px;
  color: var(--text-3); font-size: 12px;
  text-align: center;
  position: relative; overflow: hidden;
}
.ad-slot-label {
  font-size: 9px; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text-3); opacity: 0.6;
}
.ad-slot-banner {
  width: 100%; height: 90px;
  margin-bottom: 1.25rem;
}
.ad-slot-square {
  width: 100%; min-height: 250px;
  margin-bottom: 1.25rem;
}
/* Hide placeholder text when real ad loads */
.ad-slot ins { display: block; width: 100%; height: 100%; }

/* ═══ MOBILE FIXES ═══ */
@media (max-width: 700px) {
  /* Hide sidebar by default on mobile */
  .sidebar { transform: translateX(calc(-1 * var(--sidebar-w))); }
  .sidebar.mobile-open { transform: translateX(0); box-shadow: 4px 0 30px rgba(0,0,0,0.5); }

  /* Main takes full width on mobile */
  .main { margin-left: 0 !important; }

  /* Overlay when sidebar is open */
  .sidebar-overlay {
    display: none;
    position: fixed; inset: 0; z-index: 90;
    background: rgba(0,0,0,0.6);
  }
  .sidebar-overlay.active { display: block; }

  /* Page navbar on mobile */
  .page-navbar { padding: 0 1rem; }
  .page-inner { padding: 1.5rem 1rem 3rem; }
  .tool-page-content { padding: 1.5rem 1rem 3rem; }

  /* Two col stacks on mobile */
  .two-col { grid-template-columns: 1fr !important; }

  /* Chart smaller on mobile */
  .chart-wrap { height: 220px; }

  /* Range table readable on mobile */
  .range-row { grid-template-columns: 32px 1fr 60px; }
  .bar-vals { font-size: 9px; }
}

/* Inner pages: sidebar collapsed by default, main takes full width */
.sidebar.collapsed { transform: translateX(calc(-1 * var(--sidebar-w))); }
.main { transition: margin-left 0.26s cubic-bezier(.4,0,.2,1); }
.sidebar.collapsed ~ .main,
.main.expanded { margin-left: 0; }
