/* ============================================================
   CalculatorEveryone — app.css
   Custom component layer on top of Tailwind CDN
   ============================================================ */

/* ── Reset extras ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
a { text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ── Apply Roboto font to all elements ── */
body, input, textarea, select, button {
  font-family: 'Roboto', sans-serif;
}

/* ── Gradient text ── */
.ce-grad {
  background: linear-gradient(135deg, #6366f1, #8b5cf6, #a78bfa);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ══════════════════════════════════════════════
   NAV
══════════════════════════════════════════════ */
.ce-nav {
  background: rgba(3,7,18,.95);
  border-bottom: 1px solid rgba(255,255,255,.07);
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(12px);
}
.ce-nav-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 0 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  height: 62px;
}
.ce-nav-link {
  display: inline-flex; align-items: center;
  padding: .375rem .75rem; border-radius: .5rem;
  font-size: .875rem; color: #9ca3af; font-weight: 500;
  background: none; border: none;
  transition: color .15s, background .15s; white-space: nowrap;
}
.ce-nav-link:hover { color: #fff; background: rgba(255,255,255,.07); }

/* Logo */
.ce-logo {
  display: inline-flex; align-items: center; gap: .625rem;
  color: #fff; font-family: 'Syne', sans-serif;
  font-weight: 800; font-size: 1.2rem;
}
.ce-logo-icon {
  width: 34px; height: 34px;
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(99,102,241,.35); color: #fff; font-size: 14px; flex-shrink: 0;
}
.ce-logo-icon-sm { width: 28px; height: 28px; border-radius: 6px; font-size: 11px; }

/* Logo text — stacked on mobile */
.ce-logo-text {
  display: inline-flex; flex-direction: row; align-items: baseline;
}
.ce-logo-line1, .ce-logo-line2 { display: inline; }

  .ce-logo-text {
    display: flex; flex-direction: column; align-items: flex-start;
    line-height: 1.15;
  }
  .ce-logo { font-size: .8rem; gap: .4rem; }
  .ce-logo-line1 { font-size: .72rem; }
  .ce-logo-line2 { font-size: .72rem; }


/* Dropdown */
.ce-dropdown { position: relative; }
.ce-dropdown-menu {
  display: none; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  min-width: 230px;
  background: #111827; border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px; padding: .5rem;
  box-shadow: 0 20px 40px rgba(0,0,0,.6); z-index: 200;
  margin-top: 0; padding-top: 1rem;
}
.ce-dropdown-menu::before {
  content: ''; position: absolute; top: -10px; left: 0; right: 0; height: 10px;
}
.ce-dropdown:hover .ce-dropdown-menu { display: block; }
.ce-dd-item {
  display: flex; align-items: center; gap: .625rem;
  padding: .5rem .75rem; border-radius: 8px;
  font-size: .8125rem; color: #9ca3af;
  transition: background .15s, color .15s;
}
.ce-dd-item:hover { background: rgba(255,255,255,.07); color: #fff; }

/* Mobile nav */
.ce-mobile-nav {
  display: none;
  background: #0d1117; border-top: 1px solid rgba(255,255,255,.08);
  padding: .5rem 0 1rem;
}
.ce-mobile-nav.is-open { display: block; }
.ce-mob-link {
  display: flex; align-items: center;
  padding: .65rem 1.25rem; color: #9ca3af; font-size: .9rem;
  transition: background .15s, color .15s;
}
.ce-mob-link:hover { background: rgba(255,255,255,.05); color: #fff; }
.ce-mob-tools-toggle {
  display: flex; align-items: center; justify-content: space-between;
  padding: .65rem 1.25rem; color: #9ca3af; font-size: .9rem;
  width: 100%; background: none; border: none; text-align: left;
  transition: color .15s;
}
.ce-mob-tools-toggle:hover { color: #fff; }
.ce-chev { transition: transform .2s; }
.ce-mob-tools-toggle.open .ce-chev { transform: rotate(180deg); }
.ce-mob-tools-list { display: none; background: rgba(0,0,0,.2); }
.ce-mob-tools-list.open { display: block; }
.ce-mob-divider { height: 1px; background: rgba(255,255,255,.07); margin: .4rem 1.25rem; }

/* ══════════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════════ */
.ce-btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .6rem 1.4rem;
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: #fff; border-radius: .75rem;
  font-weight: 600; font-size: .9375rem; border: none;
  box-shadow: 0 4px 14px rgba(99,102,241,.3);
  transition: opacity .15s, transform .15s;
}
.ce-btn-primary:hover { opacity: .9; transform: translateY(-1px); }
.ce-btn-primary:active { transform: translateY(0); }
.ce-btn-sm { padding: .4rem 1rem; font-size: .875rem; }

.ce-btn-ghost {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .6rem 1.4rem;
  background: rgba(255,255,255,.07); color: #d1d5db;
  border-radius: .75rem; font-weight: 500; font-size: .9375rem;
  border: 1px solid rgba(255,255,255,.1);
  transition: background .15s, color .15s;
}
.ce-btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }

/* ══════════════════════════════════════════════
   FLASH MESSAGES
══════════════════════════════════════════════ */
.ce-flash {
  display: flex; align-items: center; gap: .625rem;
  padding: .75rem 1.5rem; font-size: .875rem; font-weight: 500;
}
.ce-flash-success {
  background: rgba(20,83,45,.5); border-bottom: 1px solid rgba(34,197,94,.2); color: #86efac;
}
.ce-flash-error {
  background: rgba(127,29,29,.5); border-bottom: 1px solid rgba(239,68,68,.2); color: #fca5a5;
}

/* ══════════════════════════════════════════════
   HERO
══════════════════════════════════════════════ */
.ce-hero {
  padding: 5rem 1.5rem 4rem; text-align: center;
  background: radial-gradient(ellipse 80% 55% at 50% -10%, rgba(99,102,241,.12), transparent);
}
.ce-hero-inner { max-width: 720px; margin: 0 auto; }
.ce-hero-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  background: rgba(99,102,241,.1); border: 1px solid rgba(99,102,241,.25);
  border-radius: 9999px; padding: .375rem 1rem;
  font-size: .875rem; font-weight: 500; color: #6366f1; margin-bottom: 1.5rem;
}
.ce-hero-title {
  font-family: 'Syne', sans-serif; font-weight: 800;
  font-size: clamp(2.25rem, 5.5vw, 3.75rem);
  color: #111827; line-height: 1.1; margin: 0 0 1.25rem;
}
.ce-hero-sub {
  color: #4b5563; font-size: 1.125rem; line-height: 1.7;
  max-width: 540px; margin: 0 auto 2.5rem;
}
.ce-hero-btns {
  display: flex; flex-wrap: wrap; gap: .875rem; justify-content: center;
}

/* ══════════════════════════════════════════════
   TOOLS / CALCULATORS SECTION
══════════════════════════════════════════════ */
.ce-tools-section { padding: 3rem 1.5rem; }
.ce-section-inner { max-width: 1200px; margin: 0 auto; }
.ce-section-title {
  font-family: 'Syne', sans-serif; font-weight: 700; font-size: 2rem;
  color: #111827; text-align: center; margin: 0 0 .5rem;
}
.ce-section-sub { color: #6b7280; text-align: center; margin: 0 0 2.5rem; }
.ce-section-label { font-family: 'Syne', sans-serif; font-weight: 600; color: #111827; font-size: 1rem; }

.ce-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}
.ce-tool-card {
  display: block; padding: 1.5rem;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 1.25rem;
  transition: border-color .2s, background .2s, transform .2s;
}
.ce-tool-card:hover {
  border-color: rgba(99,102,241,.35);
  background: rgba(99,102,241,.05);
  transform: translateY(-2px);
}
.ce-tool-icon {
  width: 52px; height: 52px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem; font-size: 1.25rem;
  box-shadow: 0 6px 18px rgba(0,0,0,.15);
}
.ce-tool-name {
  font-family: 'Syne', sans-serif; font-weight: 600;
  color: #111827; font-size: 1.0625rem; margin: 0 0 .375rem;
}
.ce-tool-desc { color: #6b7280; font-size: .875rem; line-height: 1.55; margin: 0 0 .875rem; }
.ce-tool-arrow { color: #6366f1; font-size: .8125rem; font-weight: 500; }

/* Features */
.ce-features-section {
  padding: 2.5rem 1.5rem;
  border-top: 1px solid #e5e7eb;
}
.ce-features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem;
}
.ce-feature-card {
  background: #f9fafb; border: 1px solid #e5e7eb;
  border-radius: 1.25rem; padding: 1.75rem; text-align: center;
}
.ce-feature-icon { font-size: 1.5rem; margin-bottom: .875rem; }
.ce-feature-title {
  font-family: 'Syne', sans-serif; font-weight: 700; color: #111827;
  font-size: 1.0625rem; margin: 0 0 .5rem;
}
.ce-feature-desc { color: #6b7280; font-size: .875rem; line-height: 1.6; margin: 0; }

/* ══════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════ */
.ce-footer {
  background: #0d1117; border-top: 1px solid rgba(255,255,255,.06);
  padding: 3rem 1.5rem 1.5rem;
}
.ce-footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 2rem; margin-bottom: 2rem;
}
.ce-footer-heading { color: #fff; font-size: .875rem; font-weight: 600; margin: 0 0 .75rem; }
.ce-footer-link {
  display: block; color: #6b7280; font-size: .875rem;
  margin-bottom: .5rem; transition: color .15s;
}
.ce-footer-link:hover { color: #818cf8; }
.ce-footer-bottom {
  max-width: 1200px; margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,.06);
  padding-top: 1.25rem; text-align: center; color: #4b5563; font-size: .875rem;
}

/* ══════════════════════════════════════════════
   AUTH
══════════════════════════════════════════════ */
.ce-auth-body {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  min-height: 100vh; padding: 1.5rem;
  background: #030712;
  background-image: radial-gradient(ellipse 70% 55% at 50% -20%, rgba(99,102,241,.12), transparent);
}
.ce-auth-wrap { width: 100%; max-width: 420px; }
.ce-auth-logo { text-align: center; margin-bottom: 1.75rem; }
.ce-auth-card {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.09);
  border-radius: 1.25rem; padding: 2rem;
}
.ce-auth-footer { text-align: center; color: #4b5563; font-size: .875rem; margin-top: 1.25rem; }
.ce-auth-title {
  font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1.5rem;
  color: #fff; margin: 0 0 .25rem;
}
.ce-auth-sub { color: #6b7280; font-size: .875rem; margin: 0 0 1.75rem; }
.ce-auth-switch { text-align: center; font-size: .875rem; color: #6b7280; margin-top: 1.5rem; }
.ce-auth-switch a { color: #818cf8; font-weight: 500; }
.ce-demo-creds {
  margin-top: 1.5rem; padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.07); text-align: center;
}
.ce-demo-creds p { color: #4b5563; font-size: .75rem; margin: 0 0 .4rem; }
.ce-demo-creds code {
  font-size: .75rem; color: #9ca3af;
  background: rgba(255,255,255,.06); padding: .3rem .7rem; border-radius: .5rem;
}

/* ══════════════════════════════════════════════
   FORM ELEMENTS
══════════════════════════════════════════════ */
.ce-form { }
.ce-field { margin-bottom: 1rem; }
.ce-label { display: block; font-size: .8125rem; font-weight: 500; color: #374151; margin-bottom: .375rem; }
.ce-input-wrap { position: relative; }
.ce-field-icon {
  position: absolute; left: .875rem; top: 50%; transform: translateY(-50%);
  color: #6b7280; font-size: .875rem; pointer-events: none;
}
.ce-input {
  width: 100%; padding: .625rem .875rem .625rem 2.5rem;
  background: #ffffff; border: 1px solid #d1d5db;
  border-radius: .75rem; color: #111827; font-size: .875rem;
  outline: none; font-family: inherit; box-sizing: border-box;
  transition: border-color .15s, background .15s;
  -webkit-appearance: none;
}
.ce-input:focus {
  border-color: #6366f1;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(99,102,241,.1);
}
.ce-input::placeholder { color: #9ca3af; }
.ce-select {
  padding: .625rem .875rem; background: #ffffff;
  border: 1px solid #d1d5db; border-radius: .75rem;
  color: #111827; font-size: .875rem; outline: none;
  font-family: inherit; cursor: pointer;
  transition: border-color .15s;
}
.ce-select:focus { border-color: #6366f1; box-shadow: 0 0 0 3px rgba(99,102,241,.1); }
.ce-select option { background: #ffffff; }
.ce-pw-toggle {
  position: absolute; right: .75rem; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: #6b7280; padding: .25rem;
}
.ce-pw-toggle:hover { color: #374151; }

/* ══════════════════════════════════════════════
   CALCULATOR PAGE LAYOUT
══════════════════════════════════════════════ */
.ce-calc-page { max-width: 1100px; margin: 0 auto; padding: 2rem 1.5rem 3rem; }
.ce-breadcrumb {
  display: flex; align-items: center; gap: .5rem;
  font-size: .875rem; color: #6b7280; margin-bottom: 1.75rem;
}
.ce-breadcrumb a { color: #6b7280; transition: color .15s; }
.ce-breadcrumb a:hover { color: #6366f1; }

.ce-calc-layout {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem;
  align-items: start;
}
@media (max-width: 768px) { .ce-calc-layout { grid-template-columns: 1fr; } }

.ce-calc-form-wrap {
  background: #f9fafb; border: 1px solid #e5e7eb;
  border-radius: 1.25rem; padding: 1.75rem;
}
.ce-calc-header { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.5rem; }
.ce-calc-icon-lg {
  width: 56px; height: 56px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.375rem; flex-shrink: 0;
}
.ce-calc-title {
  font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1.375rem;
  color: #111827; margin: 0 0 .25rem;
}
.ce-calc-subtitle { color: #6b7280; font-size: .875rem; margin: 0; line-height: 1.5; }

.ce-result-wrap {
  background: #f9fafb; border: 1px solid #e5e7eb;
  border-radius: 1.25rem; padding: 1.75rem;
}
.ce-result-heading {
  font-family: 'Syne', sans-serif; font-weight: 700; color: #111827;
  font-size: 1.125rem; margin: 0 0 1.25rem;
  padding-bottom: .875rem; border-bottom: 1px solid #e5e7eb;
}
.ce-result-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: .625rem 0; border-bottom: 1px solid #e5e7eb;
}
.ce-result-row:last-child { border-bottom: none; }
.ce-result-label { color: #6b7280; font-size: .875rem; }
.ce-result-val { color: #111827; font-weight: 600; font-size: .9375rem; }

/* Toggle group (metric/imperial) */
.ce-toggle-group {
  display: flex; background: #e5e7eb;
  border-radius: .75rem; padding: .25rem; gap: .25rem;
}
.ce-toggle-btn {
  flex: 1; padding: .45rem .75rem; border-radius: .5rem;
  font-size: .8125rem; font-weight: 500; color: #6b7280;
  background: none; border: none; transition: background .15s, color .15s;
}
.ce-toggle-btn.active { background: rgba(99,102,241,.25); color: #6366f1; }

/* Tab group */
.ce-tab-group {
  display: flex; background: #e5e7eb;
  border-radius: .75rem; padding: .25rem; gap: .25rem;
}
.ce-tab {
  flex: 1; padding: .45rem .75rem; border-radius: .5rem;
  font-size: .8125rem; font-weight: 500; color: #6b7280;
  background: none; border: none; transition: background .15s, color .15s;
}
.ce-tab.active { background: rgba(99,102,241,.25); color: #6366f1; }

/* Info section below calculator */
.ce-info-section {
  margin-top: 2rem; padding: 1.5rem;
  background: #f9fafb; border: 1px solid #e5e7eb;
  border-radius: 1rem;
}
.ce-info-title {
  font-family: 'Syne', sans-serif; font-weight: 600; color: #111827;
  font-size: 1rem; margin: 0 0 .625rem;
}
.ce-info-text { color: #6b7280; font-size: .875rem; line-height: 1.7; margin: 0; }
.ce-info-text strong { color: #374151; }

/* ── Age result ── */
.ce-age-display {
  display: flex; align-items: center; justify-content: center;
  gap: .75rem; margin-bottom: 1.5rem;
  padding: 1.25rem; background: rgba(99,102,241,.07);
  border-radius: 1rem; border: 1px solid rgba(99,102,241,.2);
}
.ce-age-part { text-align: center; }
.ce-age-num {
  display: block; font-family: 'Syne', sans-serif; font-weight: 800;
  font-size: 2.5rem; color: #6366f1; line-height: 1;
}
.ce-age-label { display: block; font-size: .7rem; color: #6b7280; margin-top: .25rem; text-transform: uppercase; letter-spacing: .06em; }
.ce-age-sep { font-size: 2rem; color: #9ca3af; font-weight: 300; }

.ce-stat-grid4 {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; margin-bottom: 1rem;
}
.ce-mini-stat {
  background: #f3f4f6; border: 1px solid #e5e7eb;
  border-radius: .75rem; padding: .875rem; text-align: center;
}
.ce-mini-stat i { font-size: 1rem; margin-bottom: .375rem; }
.ce-mini-val { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1.1rem; color: #111827; margin: 0; }
.ce-mini-label { font-size: .75rem; color: #6b7280; margin: .2rem 0 0; }
.ce-next-bd {
  display: flex; align-items: center; gap: .875rem;
  padding: .875rem 1rem; background: rgba(236,72,153,.08);
  border: 1px solid rgba(236,72,153,.2); border-radius: .875rem; margin-top: 1rem;
}

/* ── BMI ── */
.ce-bmi-display {
  display: flex; gap: 1rem; align-items: center;
  margin-bottom: 1.25rem; flex-wrap: wrap;
}
.ce-bmi-circle {
  width: 90px; height: 90px; border-radius: 50%;
  border: 3px solid #4ade80; display: flex; flex-direction: column;
  align-items: center; justify-content: center; flex-shrink: 0;
  transition: border-color .4s;
}
.ce-bmi-val { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.625rem; color: #111827; }
.ce-bmi-sub { font-size: .65rem; color: #6b7280; text-transform: uppercase; letter-spacing: .06em; }
.ce-bmi-cat { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1.125rem; margin: 0 0 .75rem; color: #111827; }
.ce-bmi-bar-wrap { flex: 1; min-width: 150px; }
.ce-bmi-bar-track {
  height: 8px; background: #e5e7eb; border-radius: 4px;
  overflow: hidden; margin-bottom: .4rem;
}
.ce-bmi-bar-fill { height: 100%; border-radius: 4px; transition: width .6s, background .4s; }
.ce-bmi-scale { display: flex; justify-content: space-between; font-size: .65rem; color: #4b5563; }
.ce-bmi-table { margin-top: 1rem; border-radius: .75rem; overflow: hidden; border: 1px solid #e5e7eb; }
.ce-bmi-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: .5rem .875rem; border-bottom: 1px solid #e5e7eb;
}
.ce-bmi-row:last-child { border-bottom: none; }

/* ── EMI ── */
.ce-emi-big { text-align: center; margin-bottom: 1.25rem; padding: 1.25rem; background: rgba(245,158,11,.07); border: 1px solid rgba(245,158,11,.2); border-radius: 1rem; }
.ce-emi-val { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 2rem; color: #f59e0b; }
.ce-split-bar-wrap { margin: 1rem 0; }
.ce-split-bar { display: flex; height: 10px; border-radius: 5px; overflow: hidden; margin-bottom: .5rem; }
.ce-split-principal { background: #6366f1; transition: width .6s; }
.ce-split-interest  { background: #fbbf24; transition: width .6s; }
.ce-split-legend { display: flex; gap: 1rem; font-size: .8125rem; }
.ce-legend-dot { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: .35rem; }
.ce-amort-wrap { margin-top: 1.25rem; }
.ce-table-scroll { overflow-x: auto; }
.ce-mini-table { width: 100%; border-collapse: collapse; font-size: .8rem; }
.ce-mini-table th { text-align: left; padding: .4rem .6rem; color: #6b7280; font-size: .7rem; text-transform: uppercase; letter-spacing: .04em; border-bottom: 1px solid #e5e7eb; white-space: nowrap; }
.ce-mini-table td { padding: .45rem .6rem; border-bottom: 1px solid #f3f4f6; color: #374151; white-space: nowrap; }

/* ── P&L ── */
.ce-pl-badge {
  display: flex; align-items: center; gap: .625rem;
  padding: .875rem 1rem; border-radius: .875rem; margin-bottom: 1rem;
  font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1.125rem;
}

/* ── Currency ── */
.ce-currency-result {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.25rem; background: rgba(20,184,166,.07);
  border: 1px solid rgba(20,184,166,.2); border-radius: 1rem; margin-bottom: 1.25rem;
}
.ce-currency-arrow { flex-shrink: 0; font-size: 1.25rem; }
.ce-currency-val { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.5rem; color: #111827; margin: 0; }

/* ── Discount ── */
.ce-discount-display {
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: .75rem;
  padding: 1.25rem; background: rgba(249,115,22,.07);
  border: 1px solid rgba(249,115,22,.2); border-radius: 1rem; margin-bottom: 1.25rem;
}
.ce-discount-badge {
  background: rgba(249,115,22,.2); color: #fb923c;
  padding: .4rem .75rem; border-radius: .5rem;
  font-weight: 700; font-size: .875rem; white-space: nowrap;
}

/* ── Fuel ── */
.ce-fuel-display {
  padding: 1.25rem; background: rgba(139,92,246,.08);
  border: 1px solid rgba(139,92,246,.25); border-radius: 1rem; margin-bottom: 1.25rem;
  text-align: center;
}
.ce-fuel-total {}

/* ══════════════════════════════════════════════
   USER DASHBOARD
══════════════════════════════════════════════ */
.ce-page-wrap { max-width: 1100px; margin: 0 auto; padding: 2.5rem 1.5rem; }
.ce-page-title { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 2rem; color: #111827; margin: 0; }

.ce-quick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .75rem; }
.ce-quick-card {
  display: flex; align-items: center; gap: .75rem;
  padding: .875rem 1rem;
  background: #f9fafb; border: 1px solid #e5e7eb;
  border-radius: 10px; transition: border-color .2s, background .2s;
}
.ce-quick-card:hover { border-color: rgba(99,102,241,.35); background: rgba(99,102,241,.06); }

.ce-info-box {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 1.25rem; background: rgba(99,102,241,.06);
  border: 1px solid rgba(99,102,241,.2); border-radius: 1rem;
}

/* ══════════════════════════════════════════════
   ADMIN LAYOUT
══════════════════════════════════════════════ */
.ce-admin-body { display: flex; min-height: 100vh; background: #030712; }
.ce-sidebar {
  width: 235px; background: #0d1117; border-right: 1px solid rgba(255,255,255,.07);
  display: flex; flex-direction: column;
  position: fixed; top: 0; left: 0; height: 100vh; z-index: 50;
}
.ce-sidebar-logo { padding: 1.25rem 1rem; border-bottom: 1px solid rgba(255,255,255,.07); }
.ce-sidebar-nav { flex: 1; padding: .75rem; overflow-y: auto; }
.ce-sidebar-link {
  display: flex; align-items: center; gap: .625rem;
  padding: .6rem .75rem; border-radius: .5rem;
  font-size: .875rem; color: #9ca3af; margin-bottom: .125rem;
  transition: background .15s, color .15s;
}
.ce-sidebar-link:hover { background: rgba(255,255,255,.06); color: #fff; }
.ce-sidebar-link i { width: 16px; text-align: center; }
.ce-sidebar-link-active {
  background: rgba(99,102,241,.12) !important; color: #818cf8 !important;
  border-left: 2px solid #6366f1; padding-left: calc(.75rem - 2px);
}
.ce-sidebar-link-danger:hover { color: #f87171 !important; background: rgba(239,68,68,.07) !important; }
.ce-sidebar-bottom { padding: .75rem; border-top: 1px solid rgba(255,255,255,.07); }
.ce-sidebar-user {
  padding: 1rem; border-top: 1px solid rgba(255,255,255,.07);
  display: flex; align-items: center; gap: .625rem;
}
.ce-admin-main { margin-left: 235px; flex: 1; display: flex; flex-direction: column; min-height: 100vh; min-width: 0; }
.ce-admin-header {
  height: 54px; background: rgba(13,17,23,.8);
  border-bottom: 1px solid rgba(255,255,255,.07);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1.5rem; position: sticky; top: 0;
  backdrop-filter: blur(8px); z-index: 10;
}
.ce-admin-title { font-family: 'Syne', sans-serif; font-weight: 700; color: #fff; margin: 0; font-size: 1.0625rem; }
.ce-admin-content { flex: 1; padding: 1.5rem; }
.ce-admin-two-col { display: grid; grid-template-columns: 1fr 320px; gap: 1.25rem; }
@media (max-width: 1024px) { .ce-admin-two-col { grid-template-columns: 1fr; } }

/* Stats */
.ce-stats-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 1rem; margin-bottom: 1.5rem;
}
.ce-stat-card {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px; padding: 1.25rem;
}
.ce-stat-icon { font-size: 1.25rem; margin-bottom: .875rem; }
.ce-stat-val { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1.875rem; color: #fff; margin: 0; }
.ce-stat-label { color: #9ca3af; font-size: .875rem; margin: .25rem 0 0; }

/* Tables */
.ce-table-wrap {
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.07);
  border-radius: 12px; overflow: hidden;
}
.ce-table-header {
  padding: .875rem 1.25rem; border-bottom: 1px solid rgba(255,255,255,.07);
  display: flex; align-items: center; justify-content: space-between;
}
.ce-table-title { font-family: 'Syne', sans-serif; font-weight: 600; color: #fff; margin: 0; font-size: .9375rem; }
.ce-table-more { color: #818cf8; font-size: .8125rem; }
.ce-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.ce-table th {
  text-align: left; padding: .625rem 1rem; color: #6b7280;
  font-size: .75rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .04em; border-bottom: 1px solid rgba(255,255,255,.07); white-space: nowrap;
}
.ce-table td { padding: .75rem 1rem; border-bottom: 1px solid rgba(255,255,255,.05); vertical-align: middle; }
.ce-table tr:last-child td { border-bottom: none; }
.ce-table tr:hover td { background: rgba(255,255,255,.02); }
.ce-empty-cell { text-align: center; color: #6b7280; padding: 2rem 1rem !important; }

/* Badges */
.ce-badge {
  display: inline-flex; align-items: center;
  padding: .2rem .6rem; border-radius: 9999px;
  font-size: .75rem; font-weight: 500; white-space: nowrap;
}
.ce-badge-green  { background: rgba(20,83,45,.45);   color: #4ade80; }
.ce-badge-red    { background: rgba(127,29,29,.45);  color: #f87171; }
.ce-badge-orange { background: rgba(120,53,15,.45);  color: #fb923c; }
.ce-badge-gray   { background: rgba(255,255,255,.08); color: #9ca3af; }

/* Avatar */
.ce-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .875rem; color: #fff; flex-shrink: 0;
}
.ce-avatar-sm { width: 28px; height: 28px; font-size: .75rem; }

/* Icon buttons */
.ce-icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 6px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08);
  font-size: .75rem; transition: background .15s;
}
.ce-icon-btn:hover { background: rgba(255,255,255,.1); }

/* Toggle label (settings) */
.ce-toggle-label {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; cursor: pointer;
}
.ce-checkbox { width: 18px; height: 18px; accent-color: #6366f1; cursor: pointer; flex-shrink: 0; }

/* ══════════════════════════════════════════════
   STATIC PAGES
══════════════════════════════════════════════ */
.ce-page-content { max-width: 760px; margin: 0 auto; padding: 2.5rem 1.5rem 4rem; }
.ce-page-hero { margin-bottom: 2rem; }
.ce-page-h1 { font-family: 'Syne', sans-serif; font-weight: 800; font-size: clamp(1.75rem,4vw,2.5rem); color: #111827; margin: 0 0 .75rem; }
.ce-page-lead { color: #6b7280; font-size: 1.125rem; line-height: 1.7; margin: 0; }
.ce-page-body { color: #374151; line-height: 1.8; }
.ce-page-body h2 { font-family: 'Syne', sans-serif; font-weight: 700; color: #111827; font-size: 1.25rem; margin: 2rem 0 .75rem; }
.ce-page-body p { margin: 0 0 1rem; }
.ce-page-body a { color: #6366f1; }
.ce-page-body a:hover { text-decoration: underline; }
.ce-page-body strong { color: #111827; }
.ce-page-body code { background: #f3f4f6; padding: .15rem .45rem; border-radius: .375rem; font-size: .875em; color: #6366f1; }

/* ══════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════ */
@media (max-width: 768px) {
  .ce-hero { padding: 3rem 1.25rem 2.5rem; }
  .ce-hero-title { font-size: 2rem; }
  .ce-hero-sub { font-size: 1rem; }
  .ce-tools-section { padding: 2rem 1.25rem; }
  .ce-calc-form-wrap, .ce-result-wrap { padding: 1.25rem; }
  .ce-age-num { font-size: 1.875rem; }
  .ce-currency-result { flex-direction: column; text-align: center; }
  .ce-discount-display { grid-template-columns: 1fr; text-align: center; }
}
@media (max-width: 600px) {
  .ce-admin-main { margin-left: 0; }
  .ce-sidebar { display: none; }
}
