@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;600&family=Space+Mono:wght@400;700&display=swap');

:root {
  --c-bg:        #f4f3ef;
  --c-surface:   #ffffff;
  --c-border:    #e2e1dc;
  --c-text:      #1a1a1a;
  --c-muted:     #6b6b6b;
  --c-accent:    #e8650a;
  --c-accent-h:  #c85508;
  --c-navy:      #1e2b3c;
  --c-navy-l:    #263548;
  --c-green:     #22a06b;
  --c-red:       #d93025;
  --c-gold:      #d4a017;
  --font-main:   'DM Sans', sans-serif;
  --font-mono:   'Space Mono', monospace;
  --radius:      10px;
  --shadow-sm:   0 1px 3px rgba(0,0,0,.08);
  --shadow-md:   0 4px 16px rgba(0,0,0,.10);
  --transition:  .18s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-main); background: var(--c-bg); color: var(--c-text); line-height: 1.5; min-height: 100vh; display: flex; flex-direction: column; }
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ─── NAV ─────────────────────────────────────────────────────────────────── */
.nav { background: var(--c-navy); border-bottom: 3px solid var(--c-accent); position: sticky; top: 0; z-index: 100; }
.nav__inner { max-width: 1280px; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; height: 58px; }
.nav__brand { display: flex; align-items: center; gap: 10px; }
.nav__logo { width: 32px; height: 32px; background: var(--c-accent); border-radius: 7px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.nav__logo svg { color: #fff; }
.nav__title { font-family: var(--font-mono); font-size: 18px; font-weight: 700; color: #fff; letter-spacing: -0.5px; }
.nav__title span { color: var(--c-accent); }
.nav__links { display: flex; gap: 4px; list-style: none; align-items: center; }
.nav__links a { color: rgba(255,255,255,.75); font-size: 13px; font-weight: 500; padding: 6px 12px; border-radius: 6px; transition: var(--transition); }
.nav__links a:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav__burger { display: none; background: none; border: none; padding: 6px; flex-direction: column; gap: 5px; }
.nav__burger span { display: block; width: 22px; height: 2px; background: rgba(255,255,255,.8); border-radius: 2px; transition: var(--transition); }
.nav__mobile { display: none; flex-direction: column; background: var(--c-navy-l); padding: 8px 16px 12px; }
.nav__mobile a { color: rgba(255,255,255,.8); font-size: 14px; font-weight: 500; padding: 10px 8px; border-bottom: 1px solid rgba(255,255,255,.06); display: block; transition: var(--transition); }
.nav__mobile a:last-child { border: none; }
.nav__mobile a:hover { color: var(--c-accent); }
.nav__mobile.open { display: flex; }

/* ─── HERO ────────────────────────────────────────────────────────────────── */
.page-hero { background: linear-gradient(135deg, var(--c-navy) 0%, #2a3f58 100%); padding: 36px 20px 32px; text-align: center; }
.page-hero h1 { font-size: clamp(22px, 4vw, 32px); font-weight: 600; color: #fff; letter-spacing: -0.5px; }
.page-hero p { color: rgba(255,255,255,.6); font-size: 14px; margin-top: 6px; max-width: 620px; margin-left: auto; margin-right: auto; }

/* ─── MAIN ────────────────────────────────────────────────────────────────── */
.main-content { flex: 1; }
.app-wrap { max-width: 1280px; margin: 0 auto; padding: 20px 16px 40px; display: flex; flex-direction: column; gap: 18px; }

/* ─── PANELS ──────────────────────────────────────────────────────────────── */
.panel { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); }
.panel__title { font-size: 11px; font-weight: 600; color: var(--c-muted); letter-spacing: .8px; text-transform: uppercase; display: flex; align-items: center; gap: 7px; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--c-border); }

/* ─── CALC GRID ───────────────────────────────────────────────────────────── */
.age-calc-grid { display: grid; grid-template-columns: 380px 1fr; gap: 18px; align-items: start; }

/* ─── FORM ────────────────────────────────────────────────────────────────── */
.field { margin-bottom: 16px; }
.field:last-child { margin-bottom: 0; }
.field label { display: block; font-size: 11px; font-weight: 600; color: var(--c-muted); letter-spacing: .6px; text-transform: uppercase; margin-bottom: 5px; }
.inp { padding: 10px 38px 10px 12px; border: 1.5px solid var(--c-border); border-radius: 7px; font-size: 14px; color: var(--c-text); background: var(--c-bg); transition: border-color var(--transition), box-shadow var(--transition); -webkit-appearance: none; width: 100%; }
.inp:focus { border-color: var(--c-accent); outline: none; box-shadow: 0 0 0 3px rgba(232,101,10,.12); background: #fff; }
.inp--full { width: 100%; }
.inp-wrap { position: relative; }
.inp-euro { position: absolute; right: 11px; top: 50%; transform: translateY(-50%); font-size: 13px; color: var(--c-muted); pointer-events: none; font-weight: 600; line-height: 1; user-select: none; }
.field-hint { font-size: 11px; color: var(--c-muted); margin-top: 4px; line-height: 1.4; }
.field-error { font-size: 12px; color: var(--c-red); margin-top: 6px; line-height: 1.4; min-height: 0; font-weight: 500; }

/* ─── TODAY BUTTON ────────────────────────────────────────────────────────── */
.btn-today { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; background: none; border: 1.5px solid var(--c-accent); border-radius: 6px; color: var(--c-accent); font-size: 12px; font-weight: 600; padding: 6px 12px; transition: background var(--transition), color var(--transition); letter-spacing: .2px; }
.btn-today:hover { background: var(--c-accent); color: #fff; }

/* ─── QUICK INFO ──────────────────────────────────────────────────────────── */
.quick-info { background: var(--c-bg); border: 1px solid var(--c-border); border-radius: 8px; padding: 14px 16px; margin-top: 16px; }
.qi-main { font-family: var(--font-mono); font-size: 13px; color: var(--c-text); line-height: 1.7; }
.qi-meta { font-size: 12px; color: var(--c-muted); margin-top: 6px; line-height: 1.6; }

/* ─── RESULTS ─────────────────────────────────────────────────────────────── */
.results-panel { padding: 20px; }
.results-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--c-border); }
.results-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 32px 16px; color: var(--c-muted); font-size: 13px; text-align: center; }
.results-empty svg { color: var(--c-border); }

/* Share button */
.btn-share { display: flex; align-items: center; gap: 6px; background: var(--c-navy); color: #fff; border: none; border-radius: 7px; font-size: 12px; font-weight: 600; padding: 8px 14px; letter-spacing: .3px; transition: background var(--transition); }
.btn-share:hover { background: var(--c-navy-l); }

/* ─── AGE MAIN DISPLAY ────────────────────────────────────────────────────── */
.age-main { text-align: center; padding: 20px 0 24px; border-bottom: 1px solid var(--c-border); margin-bottom: 18px; }
.age-main__label { font-size: 11px; font-weight: 600; color: var(--c-muted); letter-spacing: .8px; text-transform: uppercase; margin-bottom: 6px; }
.age-main__number { font-family: var(--font-mono); font-size: clamp(28px, 5vw, 52px); font-weight: 700; color: var(--c-navy); line-height: 1.2; letter-spacing: -1px; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 10px; align-items: baseline; }
.age-unit { white-space: nowrap; }
.age-num { color: var(--c-accent); }
.age-main__number span { color: var(--c-accent); }
.age-main__sub { font-size: 13px; color: var(--c-muted); margin-top: 6px; }
.age-main__birthday { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; background: linear-gradient(135deg, #fff3e8, #ffe4cc); border: 1px solid rgba(232,101,10,.25); border-radius: 20px; padding: 5px 14px; font-size: 12px; font-weight: 600; color: var(--c-accent); }

/* ─── SUMMARY BAR ─────────────────────────────────────────────────────────── */
.summary-bar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.summary-card { background: var(--c-bg); border: 1px solid var(--c-border); border-radius: 8px; padding: 12px 14px; }
.summary-card--accent { background: var(--c-bg); border-color: var(--c-border); }
.summary-card__label { font-size: 10px; font-weight: 600; color: var(--c-muted); letter-spacing: .6px; text-transform: uppercase; margin-bottom: 4px; }
.summary-card--accent .summary-card__label { color: var(--c-muted); }
.summary-card__val { font-family: var(--font-mono); font-size: 18px; font-weight: 700; color: var(--c-text); line-height: 1.2; }
.summary-card--accent .summary-card__val { color: var(--c-text); }
.summary-card__unit { font-size: 10px; color: var(--c-muted); font-weight: 500; margin-top: 1px; }
.summary-card--accent .summary-card__unit { color: var(--c-muted); }

/* ─── MORE UNITS ROW ──────────────────────────────────────────────────────── */
.eff-rates { display: flex; border: 1px solid var(--c-border); border-radius: 8px; overflow: hidden; }
.eff-item { flex: 1; padding: 10px 12px; border-right: 1px solid var(--c-border); text-align: center; }
.eff-item:last-child { border-right: none; }
.eff-item__label { font-size: 10px; font-weight: 600; color: var(--c-muted); letter-spacing: .6px; text-transform: uppercase; margin-bottom: 3px; }
.eff-item__val { font-family: var(--font-mono); font-size: 13px; font-weight: 700; color: var(--c-text); }

/* ─── FACTS PANEL ─────────────────────────────────────────────────────────── */
.facts-panel { }
.facts-note { font-size: 11px; color: var(--c-muted); margin-bottom: 16px; font-style: italic; }
.facts-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.fact-card { background: var(--c-bg); border: 1px solid var(--c-border); border-radius: 8px; padding: 14px 12px; text-align: center; transition: border-color var(--transition), box-shadow var(--transition); }
.fact-card:hover { border-color: var(--c-accent); box-shadow: var(--shadow-sm); }
.fact-card__icon { font-size: 26px; line-height: 1; margin-bottom: 8px; }
.fact-card__label { font-size: 10px; font-weight: 600; color: var(--c-muted); letter-spacing: .5px; text-transform: uppercase; margin-bottom: 6px; }
.fact-card__val { font-family: var(--font-mono); font-size: 15px; font-weight: 700; color: var(--c-navy); line-height: 1.2; word-break: break-word; }
.fact-card__desc { font-size: 10px; color: var(--c-muted); margin-top: 4px; line-height: 1.4; }

/* ─── PROGRESS PANEL ──────────────────────────────────────────────────────── */
.progress-wrap { }
.progress-header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; flex-wrap: wrap; gap: 6px; }
.progress-percent { font-family: var(--font-mono); font-size: 28px; font-weight: 700; color: var(--c-accent); line-height: 1; }
.progress-label { font-size: 13px; color: var(--c-muted); }
.progress-bar-track { background: var(--c-bg); border: 1px solid var(--c-border); border-radius: 100px; height: 18px; overflow: hidden; position: relative; margin-bottom: 10px; background-image: linear-gradient(90deg, #7ec8e3 0%, #2a6fa8 40%, #1e2b3c 75%, #0a0f16 100%); }
.progress-bar-fill { height: 100%; border-radius: 0; background: var(--c-bg); position: absolute; right: 0; top: 0; bottom: 0; transition: width 0.8s cubic-bezier(.4,0,.2,1); }
.progress-note { font-size: 11px; color: var(--c-muted); line-height: 1.6; }
.progress-quote { margin-top: 14px; background: linear-gradient(135deg, var(--c-navy) 0%, #1a3050 100%); border-radius: 8px; padding: 14px 16px; font-size: 13px; color: rgba(255,255,255,.8); font-style: italic; line-height: 1.7; border-left: 3px solid var(--c-accent); }

/* ─── INFO SECTIONS ───────────────────────────────────────────────────────── */
.info-section { max-width: 1280px; margin: 0 auto; padding: 40px 16px; width: 100%; }
.info-section h2 { font-size: clamp(18px, 3vw, 24px); font-weight: 600; color: var(--c-navy); margin-bottom: 8px; }
.sub { font-size: 13px; color: var(--c-muted); margin-bottom: 28px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 32px; }
.step-card { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); padding: 18px; }
.step-num { font-family: var(--font-mono); font-size: 28px; font-weight: 700; color: var(--c-border); margin-bottom: 8px; line-height: 1; }
.step-card h3 { font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.step-card p { font-size: 13px; color: var(--c-muted); line-height: 1.6; }

/* Grain info */
.grain-info { background: linear-gradient(135deg, var(--c-navy) 0%, #1a3050 100%); border-radius: var(--radius); padding: 24px; margin-bottom: 0; }
.grain-info h3 { font-size: 16px; font-weight: 600; color: var(--c-accent); margin-bottom: 6px; }
.grain-info > p { font-size: 13px; color: rgba(255,255,255,.7); line-height: 1.7; }
.grain-visual { margin-top: 16px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.grain-box { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 8px; padding: 14px; }
.grain-box h4 { font-size: 12px; font-weight: 600; color: rgba(255,255,255,.5); letter-spacing: .5px; margin-bottom: 8px; text-transform: uppercase; }
.grain-box p { font-size: 13px; color: rgba(255,255,255,.8); line-height: 1.6; }
.grain-box svg { margin-bottom: 8px; }

/* FAQ */
.faq-section { width: 100%; }
.faq { display: flex; flex-direction: column; gap: 10px; margin: 0 0 40px; width: 100%; }
.faq-item { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); overflow: hidden; }
.faq-q { width: 100%; text-align: left; padding: 16px 18px; background: none; border: none; font-size: 14px; font-weight: 600; color: var(--c-text); display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; transition: background var(--transition); }
.faq-q:hover { background: #fafaf8; }
.faq-a { display: none; padding: 16px 18px; font-size: 13px; color: var(--c-muted); line-height: 1.7; border-top: 1px solid var(--c-border); }
.faq-item.open .faq-a { display: block; }
.faq-item.open .faq-q svg { transform: rotate(45deg); }
.faq-q svg { transition: transform var(--transition); flex-shrink: 0; }

/* SEO text */
.seo-block { padding-top: 0; }
.seo-content { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 32px; }
.seo-content p { font-size: 13px; color: var(--c-muted); line-height: 1.75; }

/* ─── FOOTER ──────────────────────────────────────────────────────────────── */
.footer { background: var(--c-navy); border-top: 3px solid var(--c-accent); color: rgba(255,255,255,.65); padding: 40px 20px 24px; }
.footer__inner { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 32px; }
.footer__brand .nav__logo { width: 36px; height: 36px; margin-bottom: 10px; }
.footer__brand h3 { font-family: var(--font-mono); font-size: 16px; color: #fff; font-weight: 700; }
.footer__brand p { font-size: 13px; line-height: 1.7; margin-top: 6px; max-width: 280px; }
.footer__col h4 { font-size: 11px; font-weight: 600; color: #fff; letter-spacing: .8px; text-transform: uppercase; margin-bottom: 12px; }
.footer__col ul { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.footer__col a { font-size: 13px; color: rgba(255,255,255,.55); transition: color var(--transition); }
.footer__col a:hover { color: var(--c-accent); }
.footer__bottom { max-width: 1280px; margin: 28px auto 0; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.08); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 12px; color: rgba(255,255,255,.35); }

/* ─── SHARE MODAL ─────────────────────────────────────────────────────────── */
.share-modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 999; display: none; align-items: center; justify-content: center; padding: 20px; backdrop-filter: blur(4px); }
.share-modal-overlay.open { display: flex; }
.share-modal { background: var(--c-surface); border-radius: 12px; box-shadow: 0 8px 40px rgba(0,0,0,.2); width: 100%; max-width: 420px; overflow: hidden; }
.share-modal__header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--c-border); }
.share-modal__header h3 { font-size: 15px; font-weight: 600; }
.share-close { background: none; border: none; padding: 4px; color: var(--c-muted); border-radius: 6px; transition: background var(--transition); }
.share-close:hover { background: var(--c-bg); color: var(--c-text); }
.share-modal__body { padding: 16px 20px 20px; }
.share-preview { background: var(--c-bg); border: 1px solid var(--c-border); border-radius: 8px; padding: 14px; font-size: 13px; color: var(--c-muted); line-height: 1.7; margin-bottom: 14px; white-space: pre-line; font-family: var(--font-mono); font-size: 12px; }
.share-actions { display: flex; gap: 10px; }
.share-btn { flex: 1; display: flex; align-items: center; justify-content: center; gap: 7px; padding: 10px 16px; border-radius: 7px; font-size: 13px; font-weight: 600; border: none; transition: background var(--transition); }
.share-btn--copy { background: var(--c-navy); color: #fff; }
.share-btn--copy:hover { background: var(--c-navy-l); }
.share-btn--native { background: var(--c-accent); color: #fff; }
.share-btn--native:hover { background: var(--c-accent-h); }
.share-copied { font-size: 12px; color: var(--c-green); margin-top: 10px; font-weight: 600; text-align: center; min-height: 18px; }

/* ─── UTILITY ─────────────────────────────────────────────────────────────── */
.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; }
.hidden { display: none !important; }

/* ─── RESPONSIVE ──────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .age-calc-grid { grid-template-columns: 1fr 1fr; }
  .facts-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 960px) {
  .age-calc-grid { grid-template-columns: 1fr; }
  .facts-grid { grid-template-columns: repeat(3, 1fr); }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .grain-visual { grid-template-columns: 1fr 1fr; }
  .seo-content { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }
  .footer__inner { grid-template-columns: 1fr; gap: 24px; }
  .grain-visual { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .summary-bar { grid-template-columns: repeat(3, 1fr); }
  .facts-grid { grid-template-columns: repeat(2, 1fr); }
  .eff-rates { flex-wrap: wrap; }
  .eff-item { flex: 0 0 50%; border-bottom: 1px solid var(--c-border); }
  .eff-item:nth-child(odd) { border-right: 1px solid var(--c-border); }
  .eff-item:nth-child(even) { border-right: none; }
  .eff-item:nth-last-child(-n+2) { border-bottom: none; }
  .age-main__number { font-size: 42px; }
}

@media (max-width: 480px) {
  .app-wrap { padding: 12px 10px 30px; gap: 12px; }
  .panel { padding: 14px; }
  .summary-bar { grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
  .summary-card { padding: 10px 8px; }
  .summary-card__val { font-size: 15px; }
  .facts-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .fact-card { padding: 12px 8px; }
  .fact-card__val { font-size: 13px; }
  .age-main { padding: 14px 0 18px; }
  .age-main__number { font-size: 36px; letter-spacing: -1px; }
  .progress-percent { font-size: 22px; }
}

@media (max-width: 360px) {
  .summary-bar { grid-template-columns: 1fr; }
  .facts-grid { grid-template-columns: 1fr; }
}
/* ═══════════════════════════════════════════════════════════════════════════
   pvm.css – PVM skaičiuoklės stiliai
   Naudoja tuos pačius CSS kintamuosius kaip pagrindinis style.css
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── PVM CALC GRID ──────────────────────────────────────────────────────── */
.pvm-calc-grid {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 18px;
  align-items: start;
}

/* ─── INPUT PANEL ────────────────────────────────────────────────────────── */
.pvm-input-panel {
  position: sticky;
  top: 76px;
}

/* ─── RATE SELECTOR ──────────────────────────────────────────────────────── */
.pvm-rate-selector {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin-bottom: 4px;
}

.rate-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 4px 6px;
  border: 1.5px solid var(--c-border);
  border-radius: 8px;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition), color var(--transition), box-shadow var(--transition);
  letter-spacing: -0.3px;
  gap: 3px;
}

.rate-btn:hover {
  border-color: var(--c-accent);
  background: rgba(232, 101, 10, 0.05);
}

.rate-btn.active {
  border-color: var(--c-accent);
  background: var(--c-accent);
  color: #fff;
  box-shadow: 0 2px 8px rgba(232, 101, 10, 0.3);
}

.rate-btn--zero {
  border-style: dashed;
}

.rate-btn--zero.active {
  background: var(--c-muted);
  border-color: var(--c-muted);
  border-style: solid;
  box-shadow: none;
}

.rate-label {
  font-family: var(--font-main);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.2px;
  opacity: 0.8;
  text-transform: lowercase;
  line-height: 1;
}

.rate-btn.active .rate-label {
  opacity: 0.9;
}

/* ─── RESULT BOX ─────────────────────────────────────────────────────────── */
.pvm-result-box {
  background: linear-gradient(135deg, var(--c-navy) 0%, #263548 100%);
  border-radius: 10px;
  padding: 18px 20px;
  margin-top: 8px;
  margin-bottom: 12px;
  text-align: center;
  border: 1px solid rgba(232, 101, 10, 0.2);
}

.pvm-result-box__label {
  font-size: 10px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.pvm-result-box__val {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 700;
  color: var(--c-accent);
  letter-spacing: -0.5px;
  line-height: 1.2;
  transition: color 0.2s ease;
}

.pvm-result-box__rate {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 5px;
  font-family: var(--font-mono);
}

/* ─── RESET BUTTON ───────────────────────────────────────────────────────── */
.pvm-reset-btn {
  margin-top: 4px;
}

/* ─── RIGHT PANEL ────────────────────────────────────────────────────────── */
.pvm-right-panel {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ─── CHART WRAP ─────────────────────────────────────────────────────────── */
.pvm-chart-wrap {
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pvm-chart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--c-muted);
  font-size: 13px;
  text-align: center;
  padding: 16px;
}

.pvm-chart-content {
  display: flex;
  align-items: center;
  gap: 24px;
  width: 100%;
  flex-wrap: wrap;
  justify-content: center;
}

#pvmPieCanvas {
  flex-shrink: 0;
  display: block;
}

/* ─── LEGEND ─────────────────────────────────────────────────────────────── */
.pvm-chart-legend {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 180px;
}

.pvm-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.pvm-legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.pvm-legend-label {
  color: var(--c-muted);
  flex: 1;
  font-size: 12px;
}

.pvm-legend-val {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--c-text);
  white-space: nowrap;
}

/* ─── RATES TABLE ────────────────────────────────────────────────────────── */
.pvm-table-wrap {
  border-top: 1px solid var(--c-border);
  padding-top: 20px;
}

.pvm-table-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--c-text);
  margin-bottom: 4px;
}

.pvm-table-intro {
  font-size: 12px;
  color: var(--c-muted);
  margin-bottom: 14px;
  line-height: 1.5;
}

.pvm-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.pvm-table thead th {
  background: var(--c-bg);
  padding: 10px 14px;
  text-align: left;
  font-size: 10px;
  font-weight: 600;
  color: var(--c-muted);
  letter-spacing: 0.7px;
  text-transform: uppercase;
  border-bottom: 1px solid var(--c-border);
}

.pvm-table tbody tr {
  border-bottom: 1px solid var(--c-border);
  transition: background var(--transition);
}

.pvm-table tbody tr:last-child {
  border-bottom: none;
}

.pvm-table tbody tr:hover {
  background: rgba(232, 101, 10, 0.03);
}

.pvm-table tbody td {
  padding: 10px 14px;
  color: var(--c-muted);
  line-height: 1.5;
  vertical-align: top;
}

/* Active row highlight */
.pvm-table__row--active {
  background: rgba(232, 101, 10, 0.05) !important;
}

.pvm-table__row--active td {
  color: var(--c-text) !important;
}

/* ─── BADGES ─────────────────────────────────────────────────────────────── */
.pvm-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.pvm-badge--standard {
  background: rgba(232, 101, 10, 0.12);
  color: var(--c-accent);
  border: 1px solid rgba(232, 101, 10, 0.25);
}

.pvm-badge--reduced {
  background: rgba(30, 43, 60, 0.08);
  color: var(--c-navy);
  border: 1px solid rgba(30, 43, 60, 0.15);
}

.pvm-badge--zero {
  background: rgba(107, 107, 107, 0.1);
  color: var(--c-muted);
  border: 1px solid rgba(107, 107, 107, 0.2);
  border-style: dashed;
}

.pvm-table-note {
  font-size: 11px;
  color: var(--c-muted);
  margin-top: 10px;
  line-height: 1.5;
  font-style: italic;
}

/* ─── INFO SECTION SHARED ────────────────────────────────────────────────── */
.info-section {
  padding: 24px 0 0;
}

.info-section h2 {
  font-size: clamp(18px, 3vw, 24px);
  font-weight: 600;
  color: var(--c-text);
  letter-spacing: -0.3px;
}

.info-section .sub {
  font-size: 13px;
  color: var(--c-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

/* ─── RESPONSIVE ─────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .pvm-calc-grid {
    grid-template-columns: 360px 1fr;
  }
}

@media (max-width: 960px) {
  .pvm-calc-grid {
    grid-template-columns: 1fr;
  }

  .pvm-input-panel {
    position: static;
  }

  .pvm-chart-content {
    flex-direction: column;
    align-items: center;
  }

  .pvm-chart-legend {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 20px;
    min-width: unset;
  }

  .pvm-rate-selector {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (max-width: 640px) {
  .pvm-rate-selector {
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
  }

  .rate-btn {
    font-size: 12px;
    padding: 7px 2px 5px;
  }

  .rate-label {
    font-size: 8px;
  }

  .pvm-result-box__val {
    font-size: 22px;
  }

  .pvm-chart-content {
    gap: 16px;
  }

  #pvmPieCanvas {
    width: 160px;
    height: 160px;
  }
}

@media (max-width: 480px) {
  .pvm-rate-selector {
    grid-template-columns: repeat(5, 1fr);
    gap: 3px;
  }

  .rate-btn {
    font-size: 11px;
    padding: 6px 1px 5px;
  }

  .rate-label {
    display: none;
  }

  .pvm-table {
    font-size: 12px;
  }

  .pvm-table thead th,
  .pvm-table tbody td {
    padding: 8px 10px;
  }

  .pvm-badge {
    font-size: 10px;
    padding: 2px 6px;
  }
}
