/* =========================================================
   VALORO — Main Stylesheet
   Luxury dark theme with gold accents
   ========================================================= */

/* --- VARIABLES --- */
:root {
  --bg:          #0A0A08;
  --surface:     #111110;
  --surface-2:   #191917;
  --surface-3:   #222220;
  --gold:        #C9A84C;
  --gold-light:  #E4C97A;
  --gold-dark:   #8B6914;
  --gold-subtle: rgba(201,168,76,0.08);
  --gold-border: rgba(201,168,76,0.22);
  --text:        #EDE9E0;
  --text-muted:  #7A7668;
  --text-dim:    #4A4840;
  --border:      rgba(255,255,255,0.07);
  --border-gold: rgba(201,168,76,0.3);
  --radius:      4px;
  --radius-lg:   8px;
  --radius-xl:   16px;
  --font-head:   'Cormorant Garamond', Georgia, serif;
  --font-body:   'DM Sans', system-ui, sans-serif;
  --transition:  0.2s ease;
  --max-w:       1160px;
  --header-h:    72px;
}

/* --- RESET --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-light); }
button { cursor: pointer; font-family: inherit; }

/* --- LAYOUT --- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}
.site-main { padding-top: var(--header-h); }

/* --- TYPOGRAPHY --- */
h1, h2, h3 { font-family: var(--font-head); font-weight: 400; line-height: 1.15; }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: 1.3rem; }

/* --- BUTTONS --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.75rem 2rem;
  background: var(--gold);
  color: #0A0A08;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: none;
  border-radius: var(--radius);
  transition: background var(--transition), transform var(--transition);
}
.btn-primary:hover { background: var(--gold-light); color: #0A0A08; transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.75rem 2rem;
  background: transparent;
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  border: 0.5px solid var(--border-gold);
  border-radius: var(--radius);
  transition: border-color var(--transition), color var(--transition);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  z-index: 100;
  background: rgba(10,10,8,0.92);
  border-bottom: 0.5px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color var(--transition);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

/* Logo */
.site-logo-text, .footer-logo {
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
  text-decoration: none;
}
.logo-v {
  font-family: var(--font-head);
  font-size: 1.9rem;
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
}
.logo-rest {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 300;
  letter-spacing: 0.25em;
  color: var(--text);
  line-height: 1;
}

/* Nav */
.header-nav { display: flex; }
.nav-list {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}
.nav-list a {
  font-size: 0.875rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  transition: color var(--transition);
}
.nav-list a:hover { color: var(--text); }

/* Phone CTA */
.btn-phone {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.4rem 1rem;
  background: var(--gold-subtle);
  border: 0.5px solid var(--gold-border);
  border-radius: var(--radius);
  font-size: 0.875rem;
  color: var(--gold);
}
.btn-phone:hover { background: rgba(201,168,76,0.14); color: var(--gold-light); }

/* Mobile toggle */
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 4px; }
.nav-toggle span { display: block; width: 22px; height: 1.5px; background: var(--text-muted); transition: transform 0.2s, opacity 0.2s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.header-actions { display: flex; align-items: center; gap: 1rem; }

/* =========================================================
   HERO
   ========================================================= */
.hero-section {
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 5rem 0 4rem;
}
.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 70% 40%, rgba(201,168,76,0.06) 0%, transparent 55%),
    linear-gradient(135deg, transparent 0%, rgba(201,168,76,0.03) 100%);
  pointer-events: none;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 4rem;
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.hero-title {
  margin-bottom: 1.5rem;
  color: var(--text);
}
.hero-title em { color: var(--gold); font-style: italic; }
.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 2.5rem;
  line-height: 1.75;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Ticker card */
.hero-ticker-card {
  background: var(--surface);
  border: 0.5px solid var(--border-gold);
  border-radius: var(--radius-xl);
  overflow: hidden;
}
.htc-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 1rem 1.5rem;
  border-bottom: 0.5px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.htc-row {
  display: grid;
  grid-template-columns: 40px 60px 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 0.75rem 1.5rem;
  border-bottom: 0.5px solid var(--border);
  transition: background var(--transition);
}
.htc-row:last-child { border-bottom: none; }
.htc-row:hover { background: var(--surface-2); }
.htc-karat { font-weight: 500; font-size: 0.95rem; color: var(--text); }
.htc-fineness { font-size: 0.8rem; color: var(--text-dim); }
.htc-price { font-size: 1rem; font-weight: 500; color: var(--gold); text-align: right; }
.htc-unit { font-size: 0.75rem; color: var(--text-dim); }
.htc-footer {
  padding: 0.6rem 1.5rem;
  background: var(--surface-2);
  font-size: 0.75rem;
  color: var(--text-dim);
  display: flex;
  gap: 6px;
}

/* Scroll hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
}
.hero-scroll-hint span {
  display: block;
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, transparent, var(--gold-border));
  animation: scrollHint 1.8s ease-in-out infinite;
}
@keyframes scrollHint { 0%,100%{opacity:0;transform:scaleY(0.5) translateY(-10px)} 50%{opacity:1;transform:scaleY(1) translateY(0)} }

/* Live dot */
.live-dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold);
  animation: livePulse 2.4s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes livePulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.4;transform:scale(0.8)} }

/* =========================================================
   CALCULATOR SECTION
   ========================================================= */
.valoro-calculator {
  padding: 6rem 0;
  background: var(--surface);
  border-top: 0.5px solid var(--border);
  border-bottom: 0.5px solid var(--border);
}

.calc-header { text-align: center; margin-bottom: 3rem; }
.calc-live-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-2);
  border: 0.5px solid var(--border-gold);
  border-radius: 999px;
  padding: 0.5rem 1.25rem;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}
.live-label { color: var(--text-muted); }
.live-value { color: var(--gold); font-weight: 500; }
.live-unit  { color: var(--text-dim); font-size: 0.8rem; }
.live-change { font-size: 0.8rem; padding: 1px 8px; border-radius: 999px; }
.live-change.up   { color: #4caf50; background: rgba(76,175,80,0.12); }
.live-change.down { color: #f44336; background: rgba(244,67,54,0.12); }
.calc-disclaimer { font-size: 0.85rem; color: var(--text-dim); margin-top: 0.5rem; }

.calc-body {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Karat buttons */
.calc-karats {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}
.karat-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 0.9rem 0.5rem;
  background: var(--surface-2);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  color: var(--text-muted);
  transition: border-color var(--transition), background var(--transition), color var(--transition);
}
.karat-btn:hover { border-color: var(--gold-border); color: var(--text); }
.karat-btn.active {
  border: 1.5px solid var(--gold);
  background: var(--gold-subtle);
  color: var(--text);
}
.kb-label { font-size: 1rem; font-weight: 500; font-family: var(--font-head); }
.kb-fineness { font-size: 0.72rem; color: var(--text-dim); }
.kb-price { font-size: 0.78rem; color: var(--gold); margin-top: 2px; }
.karat-btn.active .kb-price { color: var(--gold-light); }

/* Inputs */
.calc-inputs { display: grid; grid-template-columns: 1fr 1.5fr; gap: 1.5rem; }
.calc-inputs-simple { grid-template-columns: 1fr; max-width: 400px; }
.ci-group-full { width: 100%; }
.ci-group { display: flex; flex-direction: column; gap: 8px; }
.ci-label {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ci-label strong { color: var(--gold); font-weight: 500; letter-spacing: 0; text-transform: none; font-size: 0.9rem; }
.ci-field-wrap { display: flex; align-items: center; gap: 0; }
.ci-input {
  flex: 1;
  background: var(--surface-2);
  border: 0.5px solid var(--border);
  border-right: none;
  border-radius: var(--radius) 0 0 var(--radius);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.7rem 1rem;
  outline: none;
  transition: border-color var(--transition);
}
.ci-input:focus { border-color: var(--gold-border); }
.ci-input::-webkit-inner-spin-button { opacity: 0.4; }
.ci-unit {
  background: var(--surface-3);
  border: 0.5px solid var(--border);
  border-left: none;
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 0.7rem 0.9rem;
  font-size: 0.85rem;
  color: var(--text-dim);
}
.ci-range {
  width: 100%;
  accent-color: var(--gold);
  cursor: pointer;
  height: 4px;
  background: var(--surface-3);
  border-radius: 2px;
  appearance: none;
  -webkit-appearance: none;
  border: none;
  outline: none;
}
.ci-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--gold);
  cursor: pointer;
  border: 2px solid var(--bg);
}
.ci-range::-moz-range-thumb {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid var(--bg);
  cursor: pointer;
}
.range-labels { display: flex; justify-content: space-between; font-size: 0.72rem; color: var(--text-dim); margin-top: 4px; }

/* Result */
.calc-result {
  background: var(--surface-2);
  border: 0.5px solid var(--border-gold);
  border-radius: var(--radius-xl);
  padding: 2rem;
}
.cr-karat-tag {
  display: inline-block;
  background: var(--gold-subtle);
  border: 0.5px solid var(--gold-border);
  border-radius: 999px;
  font-size: 0.8rem;
  color: var(--gold);
  padding: 3px 12px;
  margin-bottom: 0.75rem;
  letter-spacing: 0.05em;
}
.cr-label { font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.5rem; }
.cr-total { font-family: var(--font-head); font-size: clamp(2rem, 5vw, 3rem); color: var(--gold); line-height: 1.1; }
.cr-per-gram { font-size: 0.9rem; color: var(--text-muted); margin-top: 4px; margin-bottom: 1.5rem; }

.cr-breakdown { border-top: 0.5px solid var(--border); padding-top: 1.25rem; }
.crb-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  padding: 6px 0;
  border-bottom: 0.5px solid var(--border);
  color: var(--text-muted);
}
.crb-row:last-child { border-bottom: none; }
.crb-row span:last-child { color: var(--text); font-weight: 500; }
.crb-deduction span:last-child { color: #f44336; }
.crb-final span:last-child { color: var(--gold); }
.crb-total-row { font-weight: 500; color: var(--text); }
.crb-total-row span:last-child { color: var(--gold-light); font-size: 1rem; }

.cr-disclaimer { margin-top: 1rem; font-size: 0.78rem; color: var(--text-dim); font-style: italic; }

.calc-error {
  background: rgba(244,67,54,0.08);
  border: 0.5px solid rgba(244,67,54,0.3);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #f44336;
  font-size: 0.9rem;
}

/* =========================================================
   SECTION HEADERS
   ========================================================= */
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.section-title { color: var(--text); }

/* =========================================================
   HOW IT WORKS
   ========================================================= */
.how-section { padding: 6rem 0; }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.step-card {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem 1.5rem;
  position: relative;
  transition: border-color var(--transition);
}
.step-card:hover { border-color: var(--gold-border); }
.step-num {
  font-family: var(--font-head);
  font-size: 3rem;
  font-weight: 300;
  color: var(--gold-dark);
  line-height: 1;
  margin-bottom: 1.25rem;
}
.step-card h3 { margin-bottom: 0.75rem; color: var(--text); font-size: 1.15rem; }
.step-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; }

/* =========================================================
   WHY US
   ========================================================= */
.why-section {
  padding: 6rem 0;
  background: var(--surface);
  border-top: 0.5px solid var(--border);
  border-bottom: 0.5px solid var(--border);
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.why-card {
  padding: 2rem 1.5rem;
  border: 0.5px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--surface-2);
  transition: border-color var(--transition);
}
.why-card:hover { border-color: var(--gold-border); }
.why-icon {
  width: 48px; height: 48px;
  background: var(--gold-subtle);
  border: 0.5px solid var(--gold-border);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  margin-bottom: 1.25rem;
}
.why-card h3 { font-size: 1.1rem; color: var(--text); margin-bottom: 0.6rem; }
.why-card p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.7; }

/* =========================================================
   CTA BAND
   ========================================================= */
.cta-band {
  padding: 5rem 0;
  background: radial-gradient(ellipse at center, rgba(201,168,76,0.07) 0%, transparent 70%);
  border-bottom: 0.5px solid var(--border);
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.cta-band h2 { color: var(--text); }
.cta-band p { color: var(--text-muted); margin-top: 0.4rem; }
.cta-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { background: var(--surface); border-top: 0.5px solid var(--border); }
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.5fr;
  gap: 3rem;
  padding: 4rem 0;
}
.footer-tagline { font-size: 0.9rem; color: var(--text-muted); margin-top: 0.75rem; margin-bottom: 1rem; }
.footer-live-price {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  background: var(--surface-2);
  border: 0.5px solid var(--border-gold);
  border-radius: 999px;
  padding: 0.35rem 1rem;
  width: fit-content;
}
.flp-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  animation: livePulse 2.4s ease-in-out infinite;
  flex-shrink: 0;
}
.footer-live-price strong { color: var(--gold); }
.footer-col-title {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1.25rem;
}
.footer-nav-list { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-nav-list a { font-size: 0.9rem; color: var(--text-muted); }
.footer-nav-list a:hover { color: var(--gold); }
.footer-contact-list { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.footer-contact-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.875rem; color: var(--text-muted); }
.footer-contact-list svg { flex-shrink: 0; color: var(--gold); margin-top: 2px; }
.footer-contact-list a { color: var(--text-muted); }
.footer-contact-list a:hover { color: var(--gold); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.5rem 0;
  border-top: 0.5px solid var(--border);
}
.footer-copy { font-size: 0.8rem; color: var(--text-dim); }
.footer-disclaimer { font-size: 0.75rem; color: var(--text-dim); max-width: 480px; text-align: right; line-height: 1.5; }

/* =========================================================
   PAGE CONTENT
   ========================================================= */
.page-content { padding: 4rem 0; }
.entry-title { margin-bottom: 2rem; }
.entry-content { max-width: 720px; line-height: 1.8; color: var(--text-muted); }
.entry-content p + p { margin-top: 1rem; }
.entry-card { margin-bottom: 2rem; border-bottom: 0.5px solid var(--border); padding-bottom: 2rem; }
.entry-card h2 { font-size: 1.5rem; margin-bottom: 0.75rem; }
.error-404-num { font-family: var(--font-head); font-size: 8rem; color: var(--gold-dark); line-height: 1; margin-bottom: 1rem; }

/* =========================================================
   LIVE BADGE (shortcode)
   ========================================================= */
.valoro-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface-2);
  border: 0.5px solid var(--gold-border);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.vlb-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); animation: livePulse 2.4s ease-in-out infinite; }
.vlb-price { color: var(--gold); font-weight: 500; }
.vlb-unit { font-size: 0.75rem; color: var(--text-dim); }

/* =========================================================
   ANIMATIONS & LOADING
   ========================================================= */
@keyframes shimmer {
  0% { opacity: 0.4; }
  50% { opacity: 0.9; }
  100% { opacity: 0.4; }
}
.loading-price { animation: shimmer 1.4s ease-in-out infinite; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media ( max-width: 1024px ) {
  .hero-inner { grid-template-columns: 1fr; gap: 3rem; }
  .hero-ticker-card { max-width: 460px; }
  .steps-grid, .why-grid { grid-template-columns: repeat(2, 1fr); }
}

@media ( max-width: 768px ) {
  :root { --header-h: 60px; }
  .container { padding: 0 1.25rem; }

  .header-nav {
    display: none;
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--surface);
    border-bottom: 0.5px solid var(--border);
    padding: 1.5rem;
    flex-direction: column;
  }
  .header-nav.open { display: flex; }
  .nav-list { flex-direction: column; align-items: flex-start; gap: 1.25rem; }
  .nav-toggle { display: flex; }

  .hero-section { padding: 3rem 0; }
  .calc-karats { grid-template-columns: repeat(3, 1fr); }
  .calc-inputs { grid-template-columns: 1fr; }
  .steps-grid, .why-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-disclaimer { text-align: left; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .hero-actions { flex-direction: column; }
  .cta-actions { flex-direction: column; }
  .btn-primary, .btn-ghost { width: 100%; justify-content: center; }
  .cr-total { font-size: 2rem; }
}

@media ( max-width: 480px ) {
  .calc-karats { grid-template-columns: repeat(2, 1fr); }
  .btn-phone span { display: none; }
}

/* =========================================================
   LIVE PRICE ANIMATIONS
   ========================================================= */

/* Timestamp lângă spot price */
#calc-timestamp {
  font-size: 0.72rem;
  color: var(--text-dim);
  font-family: var(--font-body);
  margin-left: 8px;
  letter-spacing: 0;
}

/* Live dot verde când refresh activ */
.calc-live-row .live-dot {
  background: #4caf50;
}

/* Spot value - font monospaced pentru că se schimbă des */
#calc-spot-value {
  font-family: var(--font-body);
  font-weight: 500;
  min-width: 80px;
  display: inline-block;
}

/* Asigură că tranziția de culoare funcționează pe toate elementele de preț */
.htc-price,
.kb-price,
[data-ticker-karat],
[data-karat-price],
#cr-total,
#crb-spot,
#crb-final,
#crb-total,
#footer-price-val {
  transition: color 1.2s ease, text-shadow 1.2s ease;
}

/* ========================================================= */

/* Flash verde - preț în creștere */
@keyframes flashUp {
  0%   { color: var(--gold); }
  20%  { color: #4caf50; text-shadow: 0 0 8px rgba(76,175,80,0.6); }
  100% { color: var(--gold); text-shadow: none; }
}

/* Flash roșu - preț în scădere */
@keyframes flashDown {
  0%   { color: var(--gold); }
  20%  { color: #f44336; text-shadow: 0 0 8px rgba(244,67,54,0.6); }
  100% { color: var(--gold); text-shadow: none; }
}

.flash-up   { animation: flashUp   0.6s ease forwards; }
.flash-down { animation: flashDown 0.6s ease forwards; }

/* Timestamp */
#calc-timestamp {
  font-size: 0.75rem;
  color: var(--text-dim);
  font-family: var(--font-body);
  margin-left: 4px;
}

/* Live dot - verde când activ */
.live-dot-active {
  background: #4caf50 !important;
}

/* Spot value - mai mare și cu 4 zecimale */
#calc-spot-value {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  color: var(--gold);
  transition: color 0.3s ease;
}

/* Ticker prices flash */
[data-ticker-karat] {
  transition: color 0.3s ease;
}

/* Footer price flash */
#footer-price-val {
  transition: color 0.3s ease;
}

/* Result total - flash mai vizibil */
#cr-total {
  transition: color 0.15s ease;
}

/* Live indicator în header calculator */
.calc-live-row {
  position: relative;
}
.calc-live-row::after {
  content: '';
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #4caf50;
  animation: livePulse 1s ease-in-out infinite;
}

/* =========================================================
   CURRENCY SWITCHER
   ========================================================= */

/* =========================================================
   HERO TICKER — REDESIGN CU SPOT BANNER DEASUPRA
   ========================================================= */

/* Spot banner deasupra ticker-ului */
.htc-spot-banner {
  display: grid;
  grid-template-areas:
    "label  switcher"
    "price  switcher";
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 4px 12px;
  padding: 0.85rem 1.5rem;
  background: linear-gradient(135deg, rgba(201,168,76,0.12), rgba(201,168,76,0.04));
  border-bottom: 0.5px solid var(--border-gold);
}

.htc-spot-left {
  grid-area: label;
  display: flex;
  align-items: center;
  gap: 8px;
}

.htc-spot-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-family: var(--font-body);
}

.htc-spot-right {
  grid-area: price;
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}

.htc-spot-val {
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--gold);
  font-family: var(--font-body);
}

.htc-spot-unit {
  font-size: 0.78rem;
  color: var(--text-dim);
  font-family: var(--font-body);
}

/* Header ticker row */
.htc-header-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0.65rem 1.5rem;
  border-bottom: 0.5px solid var(--border);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: var(--font-body);
}

.htc-cur-label {
  margin-left: auto;
  font-size: 0.7rem;
  color: var(--text-dim);
  font-family: var(--font-body);
}

/* =========================================================
   CURRENCY SWITCHER — VERSIUNE NOUĂ (în spot banner)
   ========================================================= */

/* =========================================================
   MOBILE — HERO TICKER
   ========================================================= */
@media (max-width: 768px) {
  .htc-spot-banner {
    grid-template-areas:
      "label  switcher"
      "price  switcher";
    padding: 0.85rem 1rem;
    gap: 4px 10px;
  }

  .htc-spot-val {
    font-size: 1.6rem;
  }

  

  .cs-btn {
    padding: 8px 14px;
    font-size: 0.8rem;
    text-align: center;
  }

  .htc-row {
    padding: 0.65rem 1rem;
  }

  .htc-karat { font-size: 0.9rem; width: 36px; }
  .htc-fineness { width: 44px; font-size: 0.75rem; }
  .htc-price { font-size: 0.95rem; }
  .htc-unit { font-size: 0.68rem; }

  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-ticker-card {
    max-width: 100%;
    width: 100%;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn-primary, .btn-ghost {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .htc-spot-label { font-size: 0.7rem; }
  .htc-spot-val   { font-size: 1.3rem; }
}

/* =========================================================
   BOTTOM NAV + SPA
   ========================================================= */

/* Adaugă padding jos pentru bottom nav */
.site-main.valoro-spa { padding-bottom: 72px; }

/* SPA sections */
.spa-section { display: none; }
.spa-section.active { display: block; }

/* Bottom nav */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 64px;
  background: var(--surface);
  border-top: 0.5px solid var(--border);
  display: flex;
  align-items: stretch;
  z-index: 200;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.bn-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: color var(--transition);
  padding: 6px 0 8px;
  -webkit-tap-highlight-color: transparent;
}

.bn-btn svg {
  transition: stroke var(--transition);
  stroke: currentColor;
}

.bn-btn:hover { color: var(--text); }

.bn-btn.active {
  color: var(--gold);
}

.bn-btn.active svg { stroke: var(--gold); }

/* Indicator activ */
.bn-btn.active::before {
  content: '';
  position: absolute;
  top: 0;
  width: 40px;
  height: 2px;
  background: var(--gold);
  border-radius: 0 0 2px 2px;
}
.bn-btn { position: relative; }

/* =========================================================
   STATISTICS SECTION
   ========================================================= */
.stats-section { padding: 2rem 0 4rem; min-height: calc(100vh - 64px - var(--header-h)); }

.stats-header { margin-bottom: 1.5rem; }

.stats-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 1rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.stats-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stats-price-live {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--gold);
  font-family: var(--font-body);
}

.stats-price-chg {
  font-size: 0.85rem;
  padding: 2px 10px;
  border-radius: 999px;
  font-family: var(--font-body);
}
.stats-price-chg.up   { background: rgba(76,175,80,0.12); color: #4caf50; }
.stats-price-chg.down { background: rgba(244,67,54,0.12); color: #f44336; }

/* Selector timeframe */
.tf-selector {
  display: flex;
  gap: 4px;
  background: var(--surface-2);
  border-radius: var(--radius-lg);
  padding: 4px;
  border: 0.5px solid var(--border);
  width: fit-content;
}

.tf-btn {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 5px 14px;
  border: none;
  border-radius: var(--radius);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.tf-btn:hover { color: var(--text); }
.tf-btn.active { background: var(--gold); color: #0A0A08; font-weight: 600; }

/* Chart container */
.chart-wrap {
  position: relative;
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.chart-container {
  width: 100%;
  height: 420px;
}

.chart-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--surface);
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.9rem;
}

.chart-spinner {
  width: 20px; height: 20px;
  border: 2px solid var(--border);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.chart-error {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--surface);
  color: var(--text-muted);
  font-family: var(--font-body);
}
.chart-error button {
  padding: 6px 20px;
  border: 0.5px solid var(--gold-border);
  border-radius: var(--radius);
  background: transparent;
  color: var(--gold);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.85rem;
}

/* Stats cards */
.stats-grid-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.sgc {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sgc-label {
  font-size: 0.75rem;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: var(--font-body);
}

.sgc-val {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text);
  font-family: var(--font-body);
}

.sgc-up { color: #4caf50; }
.sgc-dn { color: #f44336; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 768px) {
  .stats-section { padding: 1.5rem 0 3rem; }
  .chart-container { height: 300px; }
  .stats-grid-cards { grid-template-columns: repeat(2, 1fr); }
  .tf-btn { padding: 5px 10px; font-size: 0.72rem; }
  .stats-title-row { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .stats-grid-cards { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .sgc { padding: 0.75rem 1rem; }
  .sgc-val { font-size: 1rem; }
}

/* =========================================================
   SWITCHER GRUPAT (valută + unitate)
   ========================================================= */
.htc-controls {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.htc-sw-group {
  display: flex;
  gap: 3px;
  background: rgba(0,0,0,0.3);
  border-radius: var(--radius);
  padding: 3px;
  border: 0.5px solid var(--border);
}

/* Buton unitate oz/g */
.us-btn {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  padding: 4px 11px;
  border: none;
  border-radius: calc(var(--radius) - 1px);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}
.us-btn:hover { color: var(--text); }
.us-btn.us-active {
  background: rgba(201,168,76,0.2);
  color: var(--gold);
  font-weight: 600;
}

/* Controale grafic */
.chart-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

.chart-unit-row {
  display: flex;
  gap: 6px;
  align-items: center;
}

/* Mobile */
@media (max-width: 600px) {
  .chart-controls-row { flex-direction: column; align-items: flex-start; }
  .htc-controls { gap: 4px; }
}

/* =========================================================
   SWITCHERE VALUTĂ / UNITATE — design unificat
   ========================================================= */

/* Grup de butoane (container) */
.htc-sw-group {
  display: inline-flex;
  flex-direction: row;
  gap: 3px;
  background: rgba(0,0,0,0.35);
  border-radius: var(--radius);
  padding: 3px;
  border: 0.5px solid var(--border);
  flex-shrink: 0;
}

/* Buton individual */
.htc-sw-btn {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  padding: 5px 12px;
  border: none;
  border-radius: calc(var(--radius) - 1px);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
  line-height: 1;
}
.htc-sw-btn:hover { color: var(--text); background: rgba(255,255,255,0.05); }

/* Stare activă — valută */
.htc-sw-btn.cs-active,
.htc-sw-btn.htc-sw-active {
  background: var(--gold);
  color: #0A0A08;
  font-weight: 600;
}

/* Stare activă — unitate (stil distinct) */
.htc-sw-btn.us-active {
  background: rgba(201,168,76,0.2);
  color: var(--gold);
  font-weight: 600;
}

/* Divider vizual între grupuri */
.htc-sw-divider {
  width: 1px;
  background: var(--border);
  align-self: stretch;
  margin: 0 2px;
}

/* Rândul de controale din hero ticker */
.htc-controls {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  flex-wrap: wrap;
}

/* Rândul de controale din statistici */
.chart-unit-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  flex-wrap: wrap;
}

/* =========================================================
   RESPONSIVE SWITCHERE
   ========================================================= */
@media (max-width: 480px) {
  .htc-sw-btn { padding: 5px 9px; font-size: 0.68rem; }
  .htc-controls { gap: 4px; }
  .chart-unit-row { gap: 4px; }
}

/* =========================================================
   HERO TICKER — CONTROLS LAYOUT FIX
   ========================================================= */
.htc-controls {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  margin-top: 10px !important;
  width: 100%;
}

.htc-sw-row {
  display: flex;
  width: 100%;
}

/* Grup care se întinde pe toată lățimea */
.htc-sw-full {
  width: 100%;
}

.htc-sw-full .htc-sw-btn {
  flex: 1;
  text-align: center;
  padding: 7px 0;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
}

/* Butonul de unitate — mai mic, aliniat stânga */
#unit-switcher .htc-sw-btn {
  padding: 5px 18px;
  font-size: 0.78rem;
}
