/* CalcCrédit — Main Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=DM+Sans:wght@400;500;600&display=swap');

:root {
  --bg: #0d0d0d;
  --bg2: #141414;
  --card: #1a1a1a;
  --text: #f9fafb;
  --text2: #9ca3af;
  --text3: #6b7280;
  --green: #22c55e;
  --green-dark: #16a34a;
  --green-glow: rgba(34,197,94,0.15);
  --border: #262626;
  --border2: #333;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 4px 24px rgba(0,0,0,0.5);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

/* ===== TYPOGRAPHY ===== */
h1,h2,h3,h4,h5,h6 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.15rem; }

p { color: var(--text2); margin-bottom: 1rem; }
a { color: var(--green); text-decoration: none; transition: opacity .2s; }
a:hover { opacity: .8; }

strong { color: var(--text); font-weight: 600; }

/* ===== LAYOUT ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.container-sm { max-width: 860px; margin: 0 auto; padding: 0 1.5rem; }

/* ===== NAVBAR ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13,13,13,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .9rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
  text-decoration: none;
}

.navbar-logo img, .navbar-logo svg {
  width: 32px;
  height: 32px;
}

.logo-accent { color: var(--green); }

.navbar-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.navbar-links a {
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: .9rem;
  color: var(--text2);
  text-decoration: none;
  transition: color .2s;
}

.navbar-links a:hover, .navbar-links a.active {
  color: var(--green);
}

.navbar-cta {
  background: var(--green);
  color: #0d0d0d !important;
  padding: .45rem 1rem;
  border-radius: 6px;
  font-weight: 600 !important;
}

.navbar-cta:hover { background: var(--green-dark); opacity: 1 !important; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: .3s;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
  background: var(--bg2);
  gap: .75rem;
}

.mobile-menu a {
  font-size: .95rem;
  color: var(--text2);
  padding: .5rem 0;
  border-bottom: 1px solid var(--border);
}

.mobile-menu.open { display: flex; }

/* ===== HERO ===== */
.hero {
  padding: 6rem 1.5rem 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(ellipse, rgba(34,197,94,.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--green-glow);
  border: 1px solid rgba(34,197,94,.3);
  color: var(--green);
  font-size: .8rem;
  font-weight: 600;
  padding: .35rem .85rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
  font-family: 'DM Sans', sans-serif;
}

.hero-badge::before {
  content: '';
  width: 7px;
  height: 7px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,100%{ opacity:1; transform:scale(1); }
  50%{ opacity:.5; transform:scale(1.4); }
}

.hero h1 { margin-bottom: 1.25rem; letter-spacing: -0.02em; }
.hero h1 span { color: var(--green); }
.hero p { font-size: 1.1rem; max-width: 560px; margin: 0 auto 2.5rem; }

.hero-cta-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.75rem;
  border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  border: none;
  transition: all .2s;
  text-decoration: none;
}

.btn-primary {
  background: var(--green);
  color: #0d0d0d;
}

.btn-primary:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(34,197,94,.3);
  opacity: 1;
  color: #0d0d0d;
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border2);
}

.btn-outline:hover {
  border-color: var(--green);
  color: var(--green);
  opacity: 1;
}

.btn-full { width: 100%; justify-content: center; }

/* ===== STATS BAR ===== */
.stats-bar {
  background: var(--card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem;
}

.stats-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .25rem;
}

.stat-value {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--green);
}

.stat-label {
  font-size: .8rem;
  color: var(--text3);
  text-align: center;
}

/* ===== SECTION ===== */
.section { padding: 5rem 1.5rem; }
.section-alt { background: var(--bg2); }

.section-header { text-align: center; margin-bottom: 3rem; }
.section-header .eyebrow {
  font-size: .8rem;
  font-weight: 600;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: .75rem;
  display: block;
  font-family: 'DM Sans', sans-serif;
}
.section-header h2 { margin-bottom: .75rem; }
.section-header p { max-width: 560px; margin: 0 auto; }

/* ===== CARDS GRID ===== */
.calc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
  max-width: 1200px;
  margin: 0 auto;
}

.calc-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  transition: all .25s;
  position: relative;
  overflow: hidden;
}

.calc-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--green-glow) 0%, transparent 60%);
  opacity: 0;
  transition: opacity .25s;
}

.calc-card:hover {
  border-color: var(--green);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(34,197,94,.12);
  opacity: 1;
}

.calc-card:hover::before { opacity: 1; }

.card-icon {
  width: 48px;
  height: 48px;
  background: var(--green-glow);
  border: 1px solid rgba(34,197,94,.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.calc-card h3 { font-size: 1.1rem; margin: 0; color: var(--text); }
.calc-card p { font-size: .875rem; color: var(--text2); margin: 0; flex: 1; }

.card-arrow {
  display: flex;
  align-items: center;
  gap: .35rem;
  font-size: .8rem;
  font-weight: 600;
  color: var(--green);
  font-family: 'DM Sans', sans-serif;
}

/* ===== CALCULATOR PAGE ===== */
.calc-page { padding: 4rem 1.5rem 6rem; }

.calc-page-header {
  max-width: 860px;
  margin: 0 auto 2.5rem;
}

.calc-page-header .breadcrumb {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .85rem;
  color: var(--text3);
  margin-bottom: 1.25rem;
  font-family: 'DM Sans', sans-serif;
}

.calc-page-header .breadcrumb a {
  color: var(--text3);
  text-decoration: none;
}

.calc-page-header .breadcrumb a:hover { color: var(--green); }
.calc-page-header .breadcrumb span { color: var(--green); }

.calc-page-header h1 { margin-bottom: .75rem; font-size: clamp(1.75rem, 4vw, 2.5rem); }
.calc-page-header p { font-size: 1.05rem; }

.calc-wrapper {
  max-width: 860px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

@media (max-width: 720px) {
  .calc-wrapper { grid-template-columns: 1fr; }
}

.calc-form-card, .calc-result-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.calc-form-card h2, .calc-result-card h2 {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--border);
}

/* ===== FORM ===== */
.form-group { margin-bottom: 1.25rem; }

.form-label {
  display: block;
  font-size: .85rem;
  font-weight: 500;
  color: var(--text2);
  margin-bottom: .5rem;
  font-family: 'DM Sans', sans-serif;
}

.form-control {
  width: 100%;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: .95rem;
  padding: .7rem 1rem;
  transition: border-color .2s;
  outline: none;
  -webkit-appearance: none;
}

.form-control:focus { border-color: var(--green); }

.form-control option {
  background: var(--card);
  color: var(--text);
}

.input-group {
  display: flex;
  align-items: stretch;
}

.input-group .form-control {
  border-radius: var(--radius) 0 0 var(--radius);
  border-right: none;
}

.input-suffix {
  background: var(--border);
  border: 1px solid var(--border);
  border-left: none;
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 0 .85rem;
  color: var(--text3);
  font-size: .9rem;
  display: flex;
  align-items: center;
  font-family: 'DM Sans', sans-serif;
  white-space: nowrap;
}

.form-hint {
  font-size: .77rem;
  color: var(--text3);
  margin-top: .35rem;
  font-family: 'DM Sans', sans-serif;
}

/* ===== RESULTS ===== */
.result-placeholder {
  text-align: center;
  padding: 2rem;
  color: var(--text3);
}

.result-placeholder .icon { font-size: 2.5rem; margin-bottom: .75rem; }

.result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.5rem; }

.result-item {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
}

.result-label {
  font-size: .78rem;
  color: var(--text3);
  margin-bottom: .25rem;
  font-family: 'DM Sans', sans-serif;
}

.result-value {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--text);
}

.result-item.highlight {
  background: var(--green-glow);
  border-color: rgba(34,197,94,.3);
}

.result-item.highlight .result-value { color: var(--green); }

/* ===== AMORTIZATION TABLE ===== */
.amort-section {
  max-width: 860px;
  margin: 2rem auto 0;
}

.amort-section h3 {
  font-size: 1.05rem;
  margin-bottom: 1rem;
  color: var(--text2);
}

.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: .85rem;
  font-family: 'DM Sans', sans-serif;
}

thead th {
  background: var(--bg2);
  color: var(--text3);
  font-weight: 600;
  padding: .75rem 1rem;
  text-align: right;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  white-space: nowrap;
}

thead th:first-child { text-align: center; }

tbody tr { border-top: 1px solid var(--border); }
tbody tr:hover { background: rgba(255,255,255,.02); }

tbody td {
  padding: .65rem 1rem;
  color: var(--text2);
  text-align: right;
}

tbody td:first-child { text-align: center; color: var(--text3); }
tbody td.green { color: var(--green); font-weight: 600; }

/* ===== BLOG ===== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.blog-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all .25s;
  text-decoration: none;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  border-color: var(--green);
  transform: translateY(-2px);
  opacity: 1;
}

.blog-card-thumb {
  background: linear-gradient(135deg, #141414 0%, #1a1a1a 100%);
  border-bottom: 1px solid var(--border);
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  min-height: 130px;
}

.blog-card-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.blog-card-tag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 600;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: .6rem;
}
.blog-card h3 { font-size: 1rem; color: var(--text); margin-bottom: .5rem; line-height: 1.4; }
.blog-card p { font-size: .85rem; color: var(--text3); margin: 0; flex: 1; }
.blog-card-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.blog-date { font-size: .78rem; color: var(--text3); }
.read-more { font-size: .8rem; font-weight: 600; color: var(--green); }

/* ===== ARTICLE ===== */
.article-header {
  max-width: 760px;
  margin: 0 auto;
  padding: 3rem 1.5rem 2.5rem;
}

.article-tag {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: .75rem;
}

.article-header h1 {
  margin-bottom: 1rem;
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: .85rem;
  color: var(--text3);
  font-family: 'DM Sans', sans-serif;
}

.article-meta .dot { color: var(--border2); }

.article-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 1.5rem 5rem;
}

.article-content h2 {
  font-size: 1.5rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.article-content h3 {
  font-size: 1.15rem;
  margin-top: 1.75rem;
  margin-bottom: .75rem;
}

.article-content p { margin-bottom: 1rem; line-height: 1.75; }

.article-content ul, .article-content ol {
  color: var(--text2);
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.article-content li { margin-bottom: .5rem; line-height: 1.7; }

.article-content .highlight-box {
  background: var(--green-glow);
  border: 1px solid rgba(34,197,94,.25);
  border-left: 3px solid var(--green);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

.article-content .highlight-box p { margin: 0; color: var(--text); }

.article-content .warning-box {
  background: rgba(234,179,8,.08);
  border: 1px solid rgba(234,179,8,.2);
  border-left: 3px solid #eab308;
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

.article-content .warning-box p { margin: 0; color: var(--text2); }

.article-content table {
  margin: 1.5rem 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.article-cta {
  background: var(--green-glow);
  border: 1px solid rgba(34,197,94,.25);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  margin: 2.5rem 0;
}

.article-cta h3 { color: var(--text); margin-bottom: .5rem; }
.article-cta p { margin-bottom: 1.25rem; }

/* ===== ADSENSE ===== */
.ad-container {
  width: 100%;
  min-height: 90px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 2rem auto;
  overflow: hidden;
  position: relative;
}

.ad-label {
  position: absolute;
  top: 4px;
  left: 8px;
  font-size: .65rem;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: .08em;
}

.ad-leaderboard { max-width: 728px; }
.ad-rectangle { max-width: 336px; min-height: 280px; }
.ad-wide { max-width: 970px; }

/* ===== FAQ ===== */
.faq-list { max-width: 760px; margin: 0 auto; }

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: .75rem;
  overflow: hidden;
}

.faq-q {
  width: 100%;
  background: var(--card);
  border: none;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: .95rem;
  padding: 1.1rem 1.25rem;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background .2s;
}

.faq-q:hover { background: rgba(255,255,255,.03); }

.faq-q .faq-icon {
  color: var(--green);
  font-size: 1.2rem;
  transition: transform .3s;
  flex-shrink: 0;
}

.faq-item.open .faq-q .faq-icon { transform: rotate(45deg); }

.faq-a {
  display: none;
  padding: 1rem 1.25rem 1.25rem;
  color: var(--text2);
  font-size: .9rem;
  line-height: 1.7;
  border-top: 1px solid var(--border);
  background: var(--bg2);
}

.faq-item.open .faq-a { display: block; }

/* ===== FEATURES ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.feature-icon { font-size: 1.75rem; margin-bottom: .75rem; }
.feature-item h4 { font-size: 1rem; margin-bottom: .4rem; }
.feature-item p { font-size: .85rem; margin: 0; }

/* ===== HOW IT WORKS ===== */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; max-width: 900px; margin: 0 auto; }

.step {
  text-align: center;
  padding: 1.5rem 1rem;
}

.step-num {
  width: 44px;
  height: 44px;
  background: var(--green-glow);
  border: 1px solid rgba(34,197,94,.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  color: var(--green);
  margin: 0 auto .75rem;
}

.step h4 { margin-bottom: .4rem; font-size: .95rem; }
.step p { font-size: .85rem; }

/* ===== FOOTER ===== */
footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 3.5rem 1.5rem 2rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-brand .logo-text {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: .75rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.footer-brand p { font-size: .875rem; max-width: 280px; }

.footer-col h4 {
  font-size: .85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: .5rem; }
.footer-col ul li a { font-size: .875rem; color: var(--text3); transition: color .2s; }
.footer-col ul li a:hover { color: var(--green); opacity: 1; }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p { font-size: .8rem; color: var(--text3); margin: 0; }

.footer-legal {
  display: flex;
  gap: 1.5rem;
}

.footer-legal a { font-size: .8rem; color: var(--text3); }
.footer-legal a:hover { color: var(--green); opacity: 1; }

/* ===== TAGS ===== */
.tag-row { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.5rem 0; }

.tag {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text3);
  font-size: .78rem;
  padding: .3rem .7rem;
  border-radius: 999px;
  font-family: 'DM Sans', sans-serif;
}

/* ===== RANGE SLIDER ===== */
input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 4px;
  background: var(--border2);
  border-radius: 2px;
  outline: none;
  margin: .5rem 0;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  background: var(--green);
  border-radius: 50%;
  cursor: pointer;
}

/* ===== RADIO / CHECKBOX ===== */
.radio-group { display: flex; gap: .75rem; flex-wrap: wrap; }

.radio-btn {
  flex: 1;
  min-width: 100px;
}

.radio-btn input { display: none; }

.radio-btn label {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: .6rem;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: .85rem;
  color: var(--text2);
  cursor: pointer;
  transition: all .2s;
  font-family: 'DM Sans', sans-serif;
  text-align: center;
}

.radio-btn input:checked + label {
  background: var(--green-glow);
  border-color: var(--green);
  color: var(--green);
  font-weight: 600;
}

/* ===== LEGAL ===== */
.legal-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 3rem 1.5rem 6rem;
}

.legal-content h1 { margin-bottom: .5rem; }
.legal-content .updated { color: var(--text3); font-size: .85rem; margin-bottom: 2.5rem; display: block; }
.legal-content h2 { font-size: 1.25rem; margin-top: 2rem; margin-bottom: .75rem; }
.legal-content p { margin-bottom: 1rem; }
.legal-content ul { color: var(--text2); padding-left: 1.5rem; margin-bottom: 1rem; }
.legal-content li { margin-bottom: .4rem; }

/* ===== BACK TO TOP ===== */
.back-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  background: var(--green);
  color: #0d0d0d;
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 50;
  box-shadow: 0 4px 16px rgba(34,197,94,.4);
  transition: transform .2s;
}

.back-top.visible { display: flex; }
.back-top:hover { transform: translateY(-3px); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .navbar-links { display: none; }
  .hamburger { display: flex; }
  .hero { padding: 4rem 1.5rem 3.5rem; }
  .result-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .stats-bar-inner { gap: 1.5rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-legal { justify-content: center; }
}

/* ===== UTILITY ===== */
.text-green { color: var(--green); }
.text-center { text-align: center; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-0 { margin-bottom: 0; }
.hidden { display: none !important; }

/* ===== PROGRESS BAR ===== */
.progress-bar-wrap {
  background: var(--border);
  border-radius: 999px;
  height: 6px;
  overflow: hidden;
  margin-top: .35rem;
}

.progress-bar {
  height: 100%;
  background: var(--green);
  border-radius: 999px;
  transition: width .5s ease;
}

.progress-bar.warning { background: #eab308; }
.progress-bar.danger { background: #ef4444; }


.bottom-nav-fixed {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 200;
  background: #0f172a;
  border-top: 1px solid #1e293b;
  padding: 8px 0 env(safe-area-inset-bottom, 8px);
}
.bnav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: #94a3b8;
  font-size: 0.65rem;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.bnav-icon {
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.bnav-item:hover, .bnav-item.active { color: #22c55e; }
@media (max-width: 767px) {
  .bottom-nav-fixed { display: flex; }
  body { padding-bottom: 65px; }
}
