:root {
  --bg-dark: #041f12;
  --bg-card: #082f1d;
  --bg-card-alt: #0d3d26;
  --border-color: rgba(74, 222, 128, 0.22);
  --gold-primary: #fbbf24;
  --gold-bright: #fde68a;
  --green-primary: #22c55e;
  --green-bright: #4ade80;
  --text-main: #f0fdf4;
  --text-muted: #a7f3d0;
  --up-green: #4ade80;
  --down-red: #f87171;
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--gold-primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Header */
.site-header {
  background: rgba(4, 31, 18, 0.96);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
  gap: 14px;
  flex-wrap: wrap;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-main);
  text-decoration: none !important;
}

.logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #16a34a, #f59e0b);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}

.brand-logo strong {
  display: block;
  font-size: 1.22rem;
  letter-spacing: -0.3px;
}

.brand-logo strong span {
  color: var(--gold-primary);
}

.brand-logo small {
  display: block;
  font-size: 0.74rem;
  color: var(--text-muted);
}

.main-nav {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.main-nav a {
  color: var(--text-main);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 7px 11px;
  border-radius: 8px;
  transition: background 0.15s;
}

.main-nav a:hover {
  background: rgba(34, 197, 94, 0.18);
  color: var(--gold-bright);
  text-decoration: none;
}

.site-announcement {
  background: linear-gradient(90deg, #14532d, #78350f);
  color: #fef3c7;
  padding: 8px 0;
  font-size: 0.88rem;
  font-weight: 600;
  border-bottom: 1px solid rgba(251, 191, 36, 0.3);
}

/* Hero & Voice Bulletin */
.main-content {
  padding-top: 20px;
  padding-bottom: 48px;
}

.hero-banner {
  margin-bottom: 18px;
}

.page-h1 {
  font-size: 1.65rem;
  margin: 0 0 6px;
  color: var(--gold-bright);
  line-height: 1.28;
}

.hero-desc {
  margin: 0 0 14px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.voice-bulletin-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: linear-gradient(135deg, rgba(21, 128, 61, 0.38), rgba(217, 119, 6, 0.25));
  border: 1.5px solid rgba(74, 222, 128, 0.45);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.voice-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 250px;
}

.voice-icon {
  font-size: 1.9rem;
}

.voice-left strong {
  display: block;
  font-size: 1rem;
  color: #fef08a;
}

.voice-left p {
  margin: 2px 0 0;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.btn-voice-play {
  background: linear-gradient(135deg, #22c55e, #15803d);
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 11px 18px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(34, 197, 94, 0.35);
}

.btn-voice-play:hover {
  filter: brightness(1.08);
}

.btn-voice-stop {
  background: #dc2626;
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 10px 16px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
}

/* KPI Grid */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 15px 16px;
}

.kpi-primary {
  background: linear-gradient(145deg, #0b3b24, #072818);
  border-color: rgba(251, 191, 36, 0.45);
}

.kpi-label {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 0.4px;
  margin-bottom: 8px;
}

.kpi-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.kpi-sub {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.kpi-val {
  font-size: 1.35rem;
  font-weight: 800;
}

.kpi-val small {
  font-size: 0.75rem;
  font-weight: 600;
  margin-left: 2px;
  opacity: 0.85;
}

.kpi-foot {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.text-gold {
  color: var(--gold-primary) !important;
}

.text-down {
  color: var(--down-red) !important;
}

/* Cards */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 18px;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.card-title {
  margin: 0 0 4px;
  font-size: 1.22rem;
  color: var(--gold-bright);
}

.card-subtitle {
  margin: 0;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--green-bright);
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(74, 222, 128, 0.4);
  padding: 5px 11px;
  border-radius: 99px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green-bright);
  box-shadow: 0 0 8px var(--green-bright);
}

.city-filter-bar {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding-bottom: 10px;
  margin-bottom: 8px;
}

.city-pill {
  white-space: nowrap;
  padding: 6px 12px;
  border-radius: 99px;
  font-size: 0.82rem;
  font-weight: 700;
  background: var(--bg-card-alt);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  text-decoration: none !important;
}

.city-pill.active,
.city-pill:hover {
  background: var(--green-primary);
  color: #022c22;
  border-color: var(--green-bright);
}

/* Table */
.table-responsive {
  overflow-x: auto;
}

.gold-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
}

.gold-table th,
.gold-table td {
  padding: 11px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  text-align: left;
}

.gold-table th {
  font-size: 0.78rem;
  text-transform: uppercase;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.2);
}

.num-col {
  text-align: right !important;
  font-variant-numeric: tabular-nums;
}

.price-buy {
  font-weight: 700;
  color: #e2e8f0;
}

.price-sell {
  font-weight: 800;
  color: var(--gold-primary);
  font-size: 1.02rem;
}

.brand-badge {
  display: inline-block;
  padding: 4px 9px;
  border-radius: 6px;
  font-weight: 800;
  font-size: 0.8rem;
  background: rgba(34, 197, 94, 0.18);
  color: #86efac;
  border: 1px solid rgba(74, 222, 128, 0.35);
}

.type-link {
  color: var(--text-main);
  font-weight: 600;
}

.mobile-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.diff-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
}

.diff-up {
  background: rgba(34, 197, 94, 0.18);
  color: #4ade80;
}

.diff-down {
  background: rgba(239, 68, 68, 0.18);
  color: #f87171;
}

.diff-flat {
  background: rgba(148, 163, 184, 0.15);
  color: #cbd5e1;
}

.spread-pill {
  font-size: 0.78rem;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(251, 191, 36, 0.14);
  color: var(--gold-bright);
}

/* Calculator */
.calc-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 18px;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 10px;
}

.form-row-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.form-row-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 5px;
}

.form-control {
  width: 100%;
  padding: 10px 12px;
  border-radius: 9px;
  border: 1px solid var(--border-color);
  background: #03170d;
  color: var(--text-main);
  font-size: 0.95rem;
  font-weight: 600;
}

.calc-results {
  background: linear-gradient(155deg, #062516, #04180e);
  border: 1px solid rgba(251, 191, 36, 0.35);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.result-highlight {
  text-align: center;
  padding-bottom: 12px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.12);
}

.res-label {
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--text-muted);
  display: block;
}

.res-big {
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--gold-primary);
  display: block;
  margin: 4px 0;
}

.res-sub {
  font-size: 0.83rem;
  color: var(--text-muted);
}

.result-breakdown {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.88rem;
}

.rb-row {
  display: flex;
  justify-content: space-between;
}

.world-converter-box {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sub-box-title {
  margin: 0 0 10px;
  font-size: 1rem;
  color: var(--gold-bright);
}

.converted-pill {
  padding: 10px 12px;
  border-radius: 9px;
  background: rgba(34, 197, 94, 0.18);
  border: 1px solid rgba(74, 222, 128, 0.45);
  color: #4ade80;
  font-weight: 800;
  text-align: center;
}

/* Buttons & Badges */
.btn-primary {
  background: linear-gradient(135deg, #22c55e, #15803d);
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: 9px;
  font-weight: 800;
  cursor: pointer;
  font-size: 0.92rem;
}

.btn-outline-sm {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  color: var(--gold-bright);
  background: transparent;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.badge-world,
.badge-privacy {
  font-size: 0.76rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 99px;
  background: rgba(251, 191, 36, 0.16);
  color: var(--gold-bright);
}

/* Sponsors & B2B */
.native-sponsor-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: linear-gradient(90deg, #072a19, #0c3823);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.sponsor-badge {
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 6px;
  margin-right: 6px;
}

.sponsor-left p {
  margin: 4px 0 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.btn-sponsor {
  display: inline-block;
  padding: 9px 15px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 0.85rem;
  text-decoration: none !important;
}

.aff-grid,
.b2b-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.aff-card,
.b2b-shop-card {
  background: var(--bg-card-alt);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 15px;
}

.b2b-vip {
  border-color: rgba(251, 191, 36, 0.55);
}

.b2b-top {
  display: flex;
  justify-content: space-between;
  font-size: 0.76rem;
  margin-bottom: 6px;
}

.b2b-badge {
  font-weight: 800;
  color: var(--gold-primary);
}

.b2b-name {
  margin: 4px 0;
  font-size: 1.05rem;
  color: #fff;
}

.b2b-addr {
  margin: 0 0 8px;
  font-size: 0.83rem;
  color: var(--text-muted);
}

.b2b-prices {
  font-size: 0.84rem;
  background: rgba(0, 0, 0, 0.22);
  padding: 8px 10px;
  border-radius: 8px;
  margin-bottom: 10px;
}

.b2b-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-b2b-call,
.btn-b2b-map,
.aff-cta-btn {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  background: rgba(34, 197, 94, 0.2);
  color: #86efac;
  border: 1px solid rgba(74, 222, 128, 0.4);
  text-decoration: none !important;
}

/* Chart & Silo & Footer */
.history-svg {
  width: 100%;
  height: auto;
  background: rgba(0, 0, 0, 0.18);
  border-radius: 10px;
}

.silo-links-grid,
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.site-footer {
  background: #02130b;
  border-top: 1px solid var(--border-color);
  padding: 32px 0 24px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 6px;
}

.footer-bottom {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.pf-summary-bar {
  margin: 12px 0;
  padding: 12px 14px;
  background: rgba(34, 197, 94, 0.12);
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.btn-del {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.4);
  border-radius: 6px;
  padding: 4px 8px;
  cursor: pointer;
}

.faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px 0;
}

.faq-item summary {
  font-weight: 700;
  cursor: pointer;
  color: var(--gold-bright);
}

@media (max-width: 860px) {
  .kpi-grid,
  .calc-grid,
  .form-row-3,
  .form-row-4,
  .aff-grid,
  .b2b-grid,
  .silo-links-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .hide-sm {
    display: none;
  }
}

@media (max-width: 540px) {
  .form-row-2 {
    grid-template-columns: 1fr;
  }
  .hide-xs {
    display: none;
  }
}
