:root {
  --bg-dark: #060B18;
  --bg-card: #0D162B;
  --bg-card-hover: #121D38;
  --border: #1F2E4D;
  --border-light: #2A3E66;
  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
  --text-subtle: #64748B;
  --gold: #F59E0B;
  --gold-hover: #D97706;
  --gold-subtle: rgba(245, 158, 11, 0.12);
  --emerald: #10B981;
  --emerald-hover: #059669;
  --emerald-subtle: rgba(16, 185, 129, 0.12);
  --blue: #38BDF8;
  --radius: 14px;
  --radius-sm: 8px;
  --max-w: 1240px;
  --shadow: 0 10px 30px rgba(0,0,0,0.35);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

a {
  color: inherit;
  text-decoration: none;
}

/* Header & Nav */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(6, 11, 24, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img {
  height: 44px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 22px;
  align-items: center;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-muted);
}

.nav-links a:hover,
.nav-links a.active {
  color: #FFFFFF;
}

.nav-cta-group {
  display: flex;
  gap: 12px;
  align-items: center;
}

.lang-badge {
  display: flex;
  gap: 6px;
  background: var(--bg-card);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 700;
}

.lang-badge a {
  color: var(--text-subtle);
  transition: color 0.15s;
}

.lang-badge a:hover,
.lang-badge a.active {
  color: var(--gold);
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-hover) 100%);
  color: #060B18;
  font-weight: 700;
  font-size: 13.5px;
  padding: 8px 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.25);
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.35);
}

.btn-emerald {
  background: linear-gradient(135deg, var(--emerald) 0%, var(--emerald-hover) 100%);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 13.5px;
  padding: 8px 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.15s;
}

.btn-emerald:hover {
  transform: translateY(-1px);
}

.btn-outline {
  border: 1px solid var(--border-light);
  background: var(--bg-card);
  color: var(--text-main);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  transition: background 0.15s, border-color 0.15s;
}

.btn-outline:hover {
  background: var(--bg-card-hover);
  border-color: var(--text-muted);
}

/* Market Ticker Bar */
.ticker-bar {
  background: #091122;
  border-bottom: 1px solid var(--border);
  padding: 7px 24px;
  font-size: 12.5px;
  color: var(--text-muted);
}

.ticker-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.ticker-items {
  display: flex;
  gap: 18px;
  align-items: center;
}

.ticker-item {
  display: flex;
  gap: 5px;
  align-items: center;
}

.ticker-item strong {
  color: #FFF;
}

.ticker-up {
  color: var(--emerald);
  font-weight: 700;
}

/* Layout container */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* Hero Section */
.hero {
  padding: 65px 0 45px;
  text-align: center;
  position: relative;
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gold-subtle);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.hero h1 {
  font-size: 46px;
  font-weight: 900;
  letter-spacing: -1.2px;
  line-height: 1.15;
  margin-bottom: 18px;
}

.hero h1 span.highlight {
  background: linear-gradient(135deg, #FFF 30%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 760px;
  margin: 0 auto 30px;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Feature Cards Grid */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin: 35px 0;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-3px);
  border-color: var(--border-light);
  box-shadow: var(--shadow);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 18px;
}

.icon-gold { background: var(--gold-subtle); color: var(--gold); }
.icon-emerald { background: var(--emerald-subtle); color: var(--emerald); }
.icon-blue { background: rgba(56, 189, 248, 0.12); color: var(--blue); }

.card h3 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}

.card p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
  flex-grow: 1;
}

.card-cta {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Calculator Container */
.tool-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin: 30px 0 50px;
  box-shadow: var(--shadow);
}

.tool-header {
  margin-bottom: 28px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 18px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
}

.tool-header h2 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.tool-header p {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 4px;
}

.currency-select-group {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
}

.currency-select-group select {
  background: var(--bg-dark);
  color: #FFF;
  border: 1px solid var(--border-light);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  outline: none;
  cursor: pointer;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  justify-content: space-between;
}

.form-group label span.helper {
  font-weight: 500;
  color: var(--text-subtle);
}

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-prefix {
  position: absolute;
  left: 14px;
  font-weight: 700;
  color: var(--text-muted);
  font-size: 14px;
  pointer-events: none;
}

.input-wrap input,
.input-wrap select {
  width: 100%;
  background: var(--bg-dark);
  border: 1px solid var(--border-light);
  color: #FFF;
  font-size: 15px;
  font-weight: 600;
  padding: 10px 14px 10px 32px;
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.input-wrap input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

/* Result Dashboard Box */
.result-box {
  background: linear-gradient(145deg, #0C1A38 0%, #081124 100%);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  align-items: center;
}

.result-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.result-item .label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.result-item .val {
  font-size: 28px;
  font-weight: 900;
  color: #FFF;
  letter-spacing: -0.5px;
}

.result-item .val.gold { color: var(--gold); }
.result-item .val.emerald { color: var(--emerald); }

/* Comparison Table */
.table-wrap {
  overflow-x: auto;
  margin: 30px 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

table.comp-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}

table.comp-table th {
  background: #091225;
  padding: 14px 18px;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  font-size: 11.5px;
  letter-spacing: 0.6px;
  border-bottom: 1px solid var(--border);
}

table.comp-table td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

table.comp-table tr:hover td {
  background: var(--bg-card-hover);
}

/* Ad Placement Slot */
.ad-slot {
  background: rgba(13, 22, 43, 0.4);
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 18px;
  text-align: center;
  color: var(--text-subtle);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 30px 0;
}

/* Affiliate Disclosure Callout */
.affiliate-disclosure {
  background: rgba(245, 158, 11, 0.05);
  border-left: 3px solid var(--gold);
  padding: 12px 16px;
  font-size: 12.5px;
  color: var(--text-muted);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 20px 0;
}

/* Content Article Styling */
.article-body {
  max-width: 840px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.75;
  color: #E2E8F0;
  padding: 30px 0;
}

.article-body h1 {
  font-size: 38px;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.8px;
}

.article-body h2 {
  font-size: 26px;
  font-weight: 800;
  margin: 40px 0 16px;
  color: #FFF;
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
}

.article-body h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 28px 0 12px;
  color: var(--gold);
}

.article-body p {
  margin-bottom: 22px;
}

.article-body ul, .article-body ol {
  margin: 0 0 24px 24px;
}

.article-body li {
  margin-bottom: 8px;
}

/* Footer */
.footer {
  background: #040812;
  border-top: 1px solid var(--border);
  padding: 60px 0 30px;
  margin-top: 80px;
  font-size: 13.5px;
  color: var(--text-muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 40px;
}

.footer-col h4 {
  color: #FFF;
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-col a:hover {
  color: var(--gold);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12.5px;
}

/* Responsive */
@media (max-width: 860px) {
  .hero h1 { font-size: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
}

@media (max-width: 580px) {
  .footer-grid { grid-template-columns: 1fr; }
  .result-box { grid-template-columns: 1fr; text-align: center; }
}
