/* ==========================================================
   ALL ROUNDER CALCULATOR — UNIFIED DESIGN SYSTEM
   One CSS file for every page: homepage, calculators, info pages.
   Mobile-first defaults; enhancements layered in at larger widths.
   ========================================================== */

/* ---------- DESIGN TOKENS ---------- */
:root {
  --clr-bg:            #181818;
  --clr-surface:       #232323;
  --clr-surface-2:     #2B2B2B;
  --clr-primary:       #FF8C00;
  --clr-primary-hover: #ff9f26;
  --clr-gold:          #FFD54A;
  --clr-blue:          #4DA3FF;
  --clr-text:          #FFFFFF;
  --clr-text-muted:    #BDBDBD;
  --clr-border:        rgba(255,255,255,0.09);
  --clr-danger:        #FF6B6B;
  --clr-danger-bg:     rgba(255,107,107,0.12);
  --clr-success:       #4ADE80;

  --shadow-sm: 0 4px 12px rgba(0,0,0,.25);
  --shadow-md: 0 10px 25px rgba(0,0,0,.35);
  --shadow-lg: 0 20px 40px rgba(0,0,0,.45);

  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;

  --transition: .25s ease;
  --nav-height: 64px;

  --container-max: 1200px;
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--clr-bg);
  color: var(--clr-text);
  font-family: 'Plus Jakarta Sans', Inter, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden; /* guards against any stray overflow causing horizontal scroll */
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { padding-left: 20px; }
ol { padding-left: 22px; }
li { margin-bottom: 8px; color: var(--clr-text-muted); }
li::marker { color: var(--clr-primary); font-weight: 700; }
button { font-family: inherit; }

/* Visible, high-contrast focus ring for keyboard users on every interactive element */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--clr-primary);
  outline-offset: 2px;
  border-radius: 6px;
}

.container { width: min(var(--container-max), 92%); margin: 0 auto; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Skip-to-content link: hidden until focused, then jumps above the header */
.skip-link {
  position: absolute;
  top: -48px;
  left: 12px;
  z-index: 2000;
  background: var(--clr-primary);
  color: #181818;
  font-weight: 700;
  padding: 12px 18px;
  border-radius: 10px;
  transition: top var(--transition);
}
.skip-link:focus { top: 12px; }

/* ==========================================================
   NAVBAR (shared on every page)
   ========================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(24,24,24,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--clr-border);
}
.navbar__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: relative;
}
.navbar__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 0.98rem;
  white-space: nowrap;
  flex-shrink: 0;
  min-height: 44px;
}
.navbar__logo img { border-radius: 7px; width: 36px; height: 36px; }
.navbar__logo span {
  background: linear-gradient(90deg, var(--clr-primary), var(--clr-gold));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.navbar__nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.navbar__nav a {
  color: var(--clr-text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 10px 14px;
  min-height: 44px;
  display: flex;
  align-items: center;
  border-radius: 8px;
  transition: background var(--transition), color var(--transition);
}
.navbar__nav a:hover,
.navbar__nav a:focus-visible { background: var(--clr-surface-2); color: var(--clr-text); }
.navbar__hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  border-radius: 10px;
}
.navbar__hamburger:hover { background: var(--clr-surface-2); }
.navbar__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--clr-text);
  border-radius: 2px;
  transition: var(--transition);
}
.navbar__hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar__hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.navbar__hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile: nav collapses into a dropdown panel triggered by the hamburger */
.navbar__nav {
  display: none;
  position: absolute;
  top: var(--nav-height);
  left: 0; right: 0;
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
  background: rgba(24,24,24,0.99);
  padding: 10px 20px 18px;
  border-bottom: 1px solid var(--clr-border);
}
.navbar__nav.open { display: flex; }
.navbar__nav a { width: 100%; }

@media (min-width: 860px) {
  .navbar__hamburger { display: none; }
  .navbar__nav {
    display: flex;
    position: static;
    flex-direction: row;
    background: none;
    padding: 0;
    border: none;
  }
}

/* ==========================================================
   BUTTONS
   ========================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 13px 26px;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}
.btn-primary,
.btn--primary {
  background: linear-gradient(135deg, var(--clr-primary), #e07800);
  color: #fff;
}
.btn-primary:hover, .btn--primary:hover,
.btn-primary:focus-visible, .btn--primary:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(255,140,0,.3);
}
.btn-secondary,
.btn--outline {
  background: var(--clr-surface-2);
  color: var(--clr-text);
  border: 1.5px solid var(--clr-border);
}
.btn-secondary:hover, .btn--outline:hover {
  border-color: var(--clr-primary);
  transform: translateY(-2px);
}

/* ==========================================================
   HERO (homepage)
   ========================================================== */
.hero {
  background: linear-gradient(160deg, #1e1e1e 0%, #181818 60%, #1a1a2e 100%);
  padding: 56px 20px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,140,0,0.08) 0%, transparent 70%);
  top: -220px; left: 50%; transform: translateX(-50%);
  pointer-events: none;
}
.hero__inner { max-width: 760px; margin: 0 auto; position: relative; }
.hero__logo { display: block; margin: 0 auto 18px; border-radius: 18px; width: 84px; height: 84px; }
.hero__title {
  font-size: clamp(1.8rem, 7vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  background: linear-gradient(90deg, var(--clr-primary), var(--clr-gold));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  margin-bottom: 10px;
}
.hero__tagline { font-size: 1.05rem; font-weight: 600; color: var(--clr-blue); margin-bottom: 10px; }
.hero__cats { font-size: 0.85rem; color: var(--clr-gold); font-weight: 600; letter-spacing: 0.03em; margin-bottom: 14px; }
.hero__sub { color: var(--clr-text-muted); font-size: 0.95rem; max-width: 560px; margin: 0 auto 26px; }
.hero__btns { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 32px; }
.hero__btns .btn { width: 100%; max-width: 320px; }

@media (min-width: 560px) {
  .hero__btns .btn { width: auto; }
}

/* ==========================================================
   SEARCH
   ========================================================== */
.search-wrap { max-width: 540px; margin: 0 auto; position: relative; }
.search-wrap .search-icon {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  font-size: 1.1rem; pointer-events: none;
}
.search-wrap input[type="search"] {
  width: 100%;
  min-height: 48px;
  padding: 14px 46px;
  background: var(--clr-surface-2);
  border: 1.5px solid var(--clr-border);
  border-radius: 12px;
  color: var(--clr-text);
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
}
.search-wrap input[type="search"]:focus {
  border-color: var(--clr-primary);
  box-shadow: 0 0 0 3px rgba(255,140,0,0.15);
}
.search-wrap input::placeholder { color: var(--clr-text-muted); }
.search-clear {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: var(--clr-text-muted);
  cursor: pointer; font-size: 1rem; width: 36px; height: 36px; border-radius: 8px;
}
.search-clear:hover { color: var(--clr-text); background: var(--clr-surface); }
.search-results { display: none; }
.search-results.active { display: block; }
.search-results mark {
  background: rgba(255,140,0,0.35);
  color: inherit;
  border-radius: 3px;
  padding: 0 2px;
}
.calc-card__cat {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--clr-blue);
  margin-bottom: 4px;
}
.no-results { text-align: center; color: var(--clr-text-muted); padding: 20px 0; }

/* ==========================================================
   SECTIONS (shared rhythm across homepage + calculator pages)
   ========================================================== */
.section { max-width: var(--container-max); margin: 0 auto; padding: 44px 20px; }
.section__head { text-align: center; margin-bottom: 28px; }
.section__label {
  display: inline-block;
  background: rgba(255,140,0,0.12);
  color: var(--clr-primary);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 10px;
}
.section__title { font-size: clamp(1.35rem, 5vw, 2rem); font-weight: 800; margin-bottom: 8px; }
.section__sub { color: var(--clr-text-muted); font-size: 0.95rem; }
.section-wrap--alt {
  background: rgba(35,35,35,0.4);
  border-top: 1px solid var(--clr-border);
  border-bottom: 1px solid var(--clr-border);
}

.premium-section { padding: 44px 0; }
.premium-section h2 { font-size: clamp(1.3rem, 4.5vw, 1.8rem); margin-bottom: 16px; }
.premium-section p { color: var(--clr-text-muted); margin-bottom: 14px; }

/* ==========================================================
   CARDS — one visual language shared by the homepage grid
   and the "Related Calculators" links on tool pages
   ========================================================== */
.card-grid,
.calculator-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 480px) {
  .card-grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
  .calculator-grid { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
}

.calc-card,
.calculator-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  padding: 20px 18px;
  min-height: 44px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition), background var(--transition);
  cursor: pointer;
}
.calc-card:hover, .calculator-card:hover,
.calc-card:focus-visible, .calculator-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(255,140,0,0.35);
  background: var(--clr-surface-2);
}
.calc-card__icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
  background: var(--clr-surface-2) !important;
}
.calc-card__title,
.calculator-card h3 { font-size: 0.96rem; font-weight: 700; color: var(--clr-text); }
.calc-card__desc,
.calculator-card p { font-size: 0.84rem; color: var(--clr-text-muted); line-height: 1.5; }

.trending-badge {
  display: inline-block;
  background: linear-gradient(90deg, var(--clr-primary), var(--clr-gold));
  color: #181818;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 10px;
  letter-spacing: 0.05em;
}

/* ==========================================================
   STATS
   ========================================================== */
.stats-section {
  background: linear-gradient(135deg, #1f1f1f, #232323);
  border-top: 1px solid var(--clr-border);
  border-bottom: 1px solid var(--clr-border);
}
.stats-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 40px 20px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  text-align: center;
}
@media (min-width: 640px) { .stats-inner { grid-template-columns: repeat(4, 1fr); } }
.stat-item__number {
  font-size: clamp(1.6rem, 6vw, 2.4rem);
  font-weight: 800;
  background: linear-gradient(90deg, var(--clr-primary), var(--clr-gold));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  display: block; line-height: 1.1;
}
.stat-item__label { color: var(--clr-text-muted); font-size: 0.85rem; margin-top: 6px; font-weight: 500; }

/* ==========================================================
   WHY / TIPS (homepage)
   ========================================================== */
.why-section { max-width: 900px; margin: 0 auto; padding: 44px 20px; }
.why-section h2 { font-size: clamp(1.3rem, 4.5vw, 1.9rem); font-weight: 800; margin-bottom: 22px; text-align: center; }
.why-section p { color: var(--clr-text-muted); margin-bottom: 14px; font-size: 0.95rem; line-height: 1.8; }
.why-section strong { color: var(--clr-text); }
.tips-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 560px) { .tips-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); } }

/* ==========================================================
   CALCULATOR TOOL PAGES
   ========================================================== */
.calculator-hero { padding: 44px 0 36px; text-align: center; }
.section-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255,140,0,.12);
  color: var(--clr-primary);
  font-size: .8rem;
  font-weight: 700;
  margin-bottom: 14px;
}
.calculator-hero h1 { font-size: clamp(1.6rem, 6vw, 2.4rem); font-weight: 800; margin-bottom: 10px; }
.calculator-hero p { color: var(--clr-text-muted); max-width: 620px; margin: 0 auto; }

.calculator-layout { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 860px) { .calculator-layout { grid-template-columns: 1.4fr .9fr; } }

.calculator-panel, .info-panel {
  background: var(--clr-surface);
  padding: 22px;
  border-radius: var(--radius-md);
  border: 1px solid var(--clr-border);
}
.calculator-panel h2 { font-size: 1.3rem; margin-bottom: 6px; }

.calculator-panel label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--clr-text-muted);
  margin-top: 14px;
  margin-bottom: 6px;
}
.calculator-panel label:first-of-type { margin-top: 16px; }

.calculator-panel input,
.calculator-panel select,
.calculator-panel textarea {
  width: 100%;
  min-height: 48px;
  padding: 13px 14px;
  background: var(--clr-surface-2);
  border: 1.5px solid var(--clr-border);
  border-radius: 12px;
  color: var(--clr-text);
  font-size: 1rem;
  outline: none;
  transition: border-color var(--transition);
}
.calculator-panel input:focus,
.calculator-panel select:focus,
.calculator-panel textarea:focus { border-color: var(--clr-primary); }

.calculator-buttons { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
@media (min-width: 480px) { .calculator-buttons { flex-direction: row; flex-wrap: wrap; } }
.calculator-buttons .btn { width: 100%; }
@media (min-width: 480px) { .calculator-buttons .btn { width: auto; } }

.result-box {
  margin-top: 20px;
  padding: 18px;
  background: var(--clr-surface-2);
  border-radius: var(--radius-sm);
  border: 1px solid var(--clr-border);
}
.result-box h3 { font-size: 0.85rem; color: var(--clr-text-muted); font-weight: 600; margin-top: 12px; }
.result-box h3:first-child { margin-top: 0; }
.result-box div:not(.error-msg) {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--clr-gold);
  margin-top: 6px;
  word-break: break-word;
}

/* Inline validation message — replaces alert() and silent failures everywhere */
.error-msg {
  display: none;
  align-items: flex-start;
  gap: 8px;
  margin-top: 12px;
  padding: 12px 14px;
  background: var(--clr-danger-bg);
  border: 1px solid rgba(255,107,107,0.35);
  border-radius: 10px;
  color: var(--clr-danger);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.4;
}
.error-msg.visible { display: flex; }

/* ==========================================================
   FAQ
   ========================================================== */
.faq-item {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-question {
  width: 100%;
  min-height: 48px;
  background: none;
  border: none;
  padding: 16px 18px;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: var(--clr-text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.faq-question::after {
  content: '+';
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--clr-primary);
  flex-shrink: 0;
  transition: transform var(--transition);
}
.faq-question[aria-expanded="true"]::after { transform: rotate(45deg); }
.faq-question:hover, .faq-question:focus-visible { color: var(--clr-primary); }
.faq-answer { padding: 0 18px 18px; color: var(--clr-text-muted); display: none; }
.faq-answer.open { display: block; }

/* Native <details>-based FAQ (used on the homepage) */
.faq-item__q {
  cursor: pointer;
  min-height: 48px;
  display: flex;
  align-items: center;
  padding: 16px 18px;
  font-weight: 600;
  list-style: none;
}
.faq-item__q::-webkit-details-marker { display: none; }
.faq-item__a { padding: 0 18px 18px; color: var(--clr-text-muted); }

/* ==========================================================
   RGUKT ACADEMIC SUITE — distinct visual identity
   ========================================================== */
.rgukt-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(90deg, rgba(255,213,74,0.15), rgba(77,163,255,0.15));
  border: 1px solid rgba(255,213,74,0.35);
  color: var(--clr-gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.subject-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  background: var(--clr-surface-2);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-bottom: 12px;
}
@media (min-width: 560px) { .subject-row { grid-template-columns: 1.4fr 0.8fr 1fr auto; align-items: center; } }
.subject-row input,
.subject-row select {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  background: var(--clr-bg);
  border: 1.5px solid var(--clr-border);
  border-radius: 10px;
  color: var(--clr-text);
  font-size: 0.95rem;
}
.subject-row .remove-row {
  background: none;
  border: 1.5px solid var(--clr-danger);
  color: var(--clr-danger);
  border-radius: 10px;
  min-height: 40px;
  padding: 8px 12px;
  font-weight: 700;
  cursor: pointer;
}
.subject-row .remove-row:hover { background: var(--clr-danger-bg); }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 14px;
}
@media (min-width: 480px) { .stat-grid { grid-template-columns: repeat(3, 1fr); } }
.stat-pill {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: 12px;
  padding: 12px 10px;
  text-align: center;
}
.stat-pill__value { font-size: 1.2rem; font-weight: 800; color: var(--clr-gold); display: block; }
.stat-pill__label { font-size: 0.72rem; color: var(--clr-text-muted); margin-top: 2px; display: block; }

.grade-dist { margin-top: 14px; }
.grade-dist__row { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.grade-dist__label { width: 68px; flex-shrink: 0; font-size: 0.8rem; color: var(--clr-text-muted); font-weight: 700; }
.grade-dist__track { flex: 1; height: 10px; background: var(--clr-bg); border-radius: 6px; overflow: hidden; }
.grade-dist__fill { height: 100%; background: linear-gradient(90deg, var(--clr-primary), var(--clr-gold)); border-radius: 6px; }
.grade-dist__count { width: 24px; text-align: right; font-size: 0.8rem; color: var(--clr-text-muted); flex-shrink: 0; }

.status-banner {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.92rem;
  border: 1px solid var(--clr-border);
}
.status-banner--distinction { background: rgba(255,213,74,0.12); color: var(--clr-gold); border-color: rgba(255,213,74,0.35); }
.status-banner--first { background: rgba(74,222,128,0.12); color: var(--clr-success); border-color: rgba(74,222,128,0.35); }
.status-banner--second { background: rgba(77,163,255,0.12); color: var(--clr-blue); border-color: rgba(77,163,255,0.35); }
.status-banner--pass { background: rgba(255,140,0,0.12); color: var(--clr-primary); border-color: rgba(255,140,0,0.35); }
.status-banner--remedial { background: var(--clr-danger-bg); color: var(--clr-danger); border-color: rgba(255,107,107,0.35); }

/* ==========================================================
   FORMULA BOX + BENEFITS GRID
   Shared by multiple calculator pages (assignment-score, budget-planner,
   deadline, exam-score-calculator, gpa-to-percentage, percentage-change,
   pomodoro, semester-percentage, simple-interest, study-hours-calculator,
   study-timer, unit-converter). Previously duplicated inline on 4 of these
   pages and silently missing (unstyled) on the other 8.
   ========================================================== */
.formula-box {
  background: var(--clr-surface-2);
  border: 1px solid var(--clr-primary);
  border-radius: 14px;
  padding: 20px 24px;
  margin: 20px 0;
}
.formula-box h3 { color: var(--clr-gold); font-size: 1.1rem; font-weight: 600; }

.benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 24px;
}
@media (min-width: 480px) { .benefits-grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); } }

.benefit-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: 14px;
  padding: 18px 16px;
  text-align: center;
  color: var(--clr-text-muted);
  font-weight: 500;
  transition: var(--transition);
}
.benefit-card:hover { border-color: var(--clr-primary); color: #fff; transform: translateY(-4px); }

/* ==========================================================
   TABLES — wrapped in a scroll container to avoid overflow on mobile
   ========================================================== */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius-sm); }
table {
  width: 100%;
  min-width: 420px;
  border-collapse: collapse;
  margin-top: 16px;
  background: var(--clr-surface);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
th, td { padding: 12px 14px; border: 1px solid var(--clr-border); text-align: left; }
th { background: var(--clr-surface-2); color: var(--clr-gold); }

/* ==========================================================
   ABOUT SECTION (homepage)
   ========================================================== */
.about-section {
  background: rgba(35,35,35,0.5);
  border-top: 1px solid var(--clr-border);
  border-bottom: 1px solid var(--clr-border);
}
.about-section__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 20px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
}
@media (min-width: 760px) { .about-section__inner { grid-template-columns: 1fr 1fr; gap: 48px; } }
.about-section__text p { color: var(--clr-text-muted); margin-top: 14px; font-size: 0.96rem; line-height: 1.8; }
.about-section__features { list-style: none; display: flex; flex-direction: column; gap: 18px; }
.about-section__features li { display: flex; gap: 14px; align-items: flex-start; }
.about-section__features strong { display: block; font-weight: 700; margin-bottom: 3px; }
.about-section__features p { color: var(--clr-text-muted); font-size: 0.87rem; margin: 0; }
.feature-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: 2px; }

/* ==========================================================
   TIP CARDS (homepage)
   ========================================================== */
.tip-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  padding: 22px 20px;
  transition: transform var(--transition), border-color var(--transition);
}
.tip-card:hover { transform: translateY(-4px); border-color: rgba(77,163,255,0.3); }
.tip-card__icon { font-size: 2rem; margin-bottom: 12px; display: block; }
.tip-card__title { font-weight: 700; font-size: 1rem; margin-bottom: 8px; }
.tip-card__desc { color: var(--clr-text-muted); font-size: 0.86rem; line-height: 1.6; }

/* ==========================================================
   FAQ SECTION WRAPPER (homepage)
   ========================================================== */
.faq-section-wrap { background: rgba(35,35,35,0.4); border-top: 1px solid var(--clr-border); }
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }

/* ==========================================================
   FOOTER (shared)
   ========================================================== */
.footer { margin-top: 48px; background: var(--clr-surface); border-top: 1px solid var(--clr-border); padding: 36px 0; }
.footer__inner { max-width: var(--container-max); margin: 0 auto; padding: 0 20px; text-align: center; }
.footer__brand { display: flex; align-items: center; justify-content: center; gap: 10px; font-weight: 800; margin-bottom: 16px; }
.footer__brand img { width: 28px; height: 28px; border-radius: 6px; }
.footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 4px; margin-bottom: 14px; }
.footer__links a {
  color: var(--clr-text-muted);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 8px 12px;
  min-height: 40px;
  display: flex; align-items: center;
  border-radius: 8px;
  transition: var(--transition);
}
.footer__links a:hover, .footer__links a:focus-visible { color: var(--clr-text); background: var(--clr-surface-2); }
.footer__tagline { color: var(--clr-text-muted); font-size: 0.85rem; max-width: 480px; margin: 0 auto 12px; }
.footer__copy { color: var(--clr-text-muted); font-size: 0.82rem; }
.footer__copy strong { color: var(--clr-text); }

/* ==========================================================
   ANIMATION — one lightweight fade-in system, used everywhere
   ========================================================== */
.fade-in { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade-in { opacity: 1; transform: none; transition: none; }
  .btn, .calc-card, .calculator-card { transition: none; }
}

.result-box--updated { animation: resultFlash 900ms ease; }
@keyframes resultFlash {
  0%   { box-shadow: 0 0 0 0 rgba(74,222,128,0.45); border-color: var(--clr-success); }
  100% { box-shadow: 0 0 0 12px rgba(74,222,128,0); border-color: var(--clr-border); }
}
@media (prefers-reduced-motion: reduce) {
  .result-box--updated { animation: none; }
}

/* ==========================================================
   PRINT
   ========================================================== */
@media print {
  .navbar, .footer, .calculator-buttons, .skip-link,
  .search-wrap, .hero__btns, .faq-question::after { display: none !important; }
  body { background: #fff; color: #000; }
  .result-box { border: 1px solid #000; }
}

/* ==========================================================
   FOOTER ECOSYSTEM + SOCIAL (v2.6)
   ========================================================== */
.footer__ecosystem { margin: 26px 0; }
.footer__ecosystem-title { font-size: 0.95rem; font-weight: 800; margin-bottom: 14px; }
.ecosystem-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 640px) { .ecosystem-grid { grid-template-columns: 1fr 1fr; } }
.ecosystem-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  transition: transform var(--transition), box-shadow var(--transition);
}
.ecosystem-card:hover, .ecosystem-card:focus-within {
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
}
.ecosystem-card__logo {
  width: 48px; height: 48px;
  border-radius: 12px;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 4px;
}
.ecosystem-card__logo img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
.ecosystem-card__title { font-weight: 700; font-size: 0.95rem; color: var(--clr-text); }
.ecosystem-card__subtitle { font-size: 0.82rem; color: var(--clr-text-muted); margin-bottom: 6px; }

.footer__social { margin: 22px 0; text-align: center; }
.footer__social-title { font-size: 0.85rem; font-weight: 700; margin-bottom: 10px; color: var(--clr-text); }
.footer__social-icons { display: flex; justify-content: center; gap: 14px; }
.footer__social-icons a {
  width: 40px; height: 40px;
  min-width: 40px; min-height: 40px;
  border-radius: 10px;
  background: var(--clr-surface-2);
  display: flex; align-items: center; justify-content: center;
  transition: transform var(--transition);
}
.footer__social-icons a:hover, .footer__social-icons a:focus-visible { transform: scale(1.08); }
.footer__social-icons svg { width: 20px; height: 20px; fill: var(--clr-text-muted); }

.footer__credit { font-size: 0.85rem; color: var(--clr-text-muted); margin-bottom: 4px; }

/* ==========================================================
   SCROLLBAR
   ========================================================== */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--clr-bg); }
::-webkit-scrollbar-thumb { background: var(--clr-primary); border-radius: 20px; }
::-webkit-scrollbar-thumb:hover { background: var(--clr-primary-hover); }

/* ==========================================================
   END OF FILE — ALL ROUNDER CALCULATOR — DESIGNED BY artistic.Aura
   ========================================================== */
