/* GlobalCalc reusable components: tools, forms, results, grids and footer */
/* ============================================================
   MOBILE BAR
   ============================================================ */
.mobile-bar {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 54px;
  background: rgba(15,23,42,0.92);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  z-index: 200;
  box-shadow: var(--shadow-sm);
}
.mobile-menu-btn, .theme-toggle-sm {
  background: none; border: none;
  font-size: 19px; cursor: pointer;
  color: var(--text); padding: 6px 8px;
  border-radius: var(--radius-sm);
  transition: background 0.15s; line-height: 1;
}
.mobile-menu-btn:hover, .theme-toggle-sm:hover { background: var(--accent-light); }

.sidebar-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(2px);
  z-index: 99; opacity: 0; transition: opacity 0.28s;
}
.sidebar-overlay.visible { opacity: 1; }

/* ============================================================
   MAIN CONTENT
   ============================================================ */
.main-content {
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  padding: 0 36px 64px;
  position: relative;
  z-index: 1;
}

.main-content > * {
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== PAGE HERO ===== */
.page-hero-tool {
  padding: 40px 0 28px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.page-hero-tool::before,
.page-hero-tool::after {
  content: '';
  position: absolute;
  border-radius: 999px;
  filter: blur(0.5px);
  pointer-events: none;
}
.page-hero-tool::before {
  width: 120px;
  height: 120px;
  top: -24px;
  left: -18px;
  background: radial-gradient(circle at 35% 35%, rgba(0,229,160,0.22), rgba(0,196,138,0.08) 55%, transparent 72%);
}
.page-hero-tool::after {
  width: 138px;
  height: 138px;
  top: -34px;
  left: 44px;
  background: radial-gradient(circle at 35% 35%, rgba(124,106,255,0.18), rgba(100,86,224,0.06) 55%, transparent 74%);
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-family: 'DM Mono', monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-dark);
  background: linear-gradient(135deg, rgba(0,229,160,0.18), rgba(124,106,255,0.12));
  border: 1px solid rgba(100,86,224,0.16);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 12px;
  box-shadow: 0 10px 24px rgba(15,23,42,0.08);
}
html[data-theme="dark"] .hero-badge {
  color: var(--text);
  background: linear-gradient(135deg, rgba(16,201,128,0.12), rgba(124,106,255,0.12));
  border-color: rgba(124,106,255,0.24);
}
.hero-title {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 34px;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 7px;
  max-width: 12ch;
}
.hero-sub {
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: 0.07em;
  font-family: 'DM Mono', monospace;
  max-width: 52ch;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: -4px 0 18px;
}

.trust-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 6px 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,255,255,0.62);
  color: var(--muted);
  font-size: 10px;
  font-family: 'DM Mono', monospace;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

html[data-theme="dark"] .trust-strip span {
  background: rgba(255,255,255,0.035);
  border-color: rgba(70,78,108,0.58);
}
.ad-mid {
  text-align: center; font-size: 10px; color: var(--muted2);
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 12px; border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md); margin: 14px 0;
  font-family: 'DM Mono', monospace;
}

/* ============================================================
   TOOL CARD
   ============================================================ */
.tool-card {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.94), rgba(255,255,255,0.88)),
    linear-gradient(135deg, rgba(0,229,160,0.06), rgba(124,106,255,0.05));
  border: 1px solid rgba(188,201,221,0.72);
  border-radius: var(--radius-lg);
  padding: 26px 28px 22px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-md);
  transition: background 0.3s, border-color 0.3s;
  animation: fadeUp 0.28s ease both;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(14px);
}
.tool-card::before {
  content: '';
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-green) 0%, var(--brand-violet) 100%);
}
html[data-theme="dark"] .tool-card {
  background:
    linear-gradient(180deg, rgba(20,24,36,0.96), rgba(15,18,28,0.94)),
    linear-gradient(135deg, rgba(16,201,128,0.08), rgba(124,106,255,0.08));
  border-color: rgba(70,78,108,0.58);
  box-shadow: 0 24px 50px rgba(0,0,0,0.34), 0 10px 24px rgba(0,0,0,0.2);
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.card-title {
  font-family: 'Syne', sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-dark);
}
html[data-theme="dark"] .card-title { color: var(--text); }
.rate-status {
  display: flex; align-items: center; gap: 7px;
  font-size: 11px; color: var(--muted);
  font-family: 'DM Mono', monospace;
}
.rate-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-light);
  animation: blink 2.4s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes blink {
  0%,100% { opacity: 1; }
  50%      { opacity: 0.3; }
}
.rate-sub-info {
  font-size: 11px; color: var(--muted2);
  margin-bottom: 18px; margin-top: -14px;
  font-family: 'DM Mono', monospace;
}

/* ===== FORM ===== */
.form-grid { display: grid; gap: 14px; margin-bottom: 14px; }
.form-grid.two-col   { grid-template-columns: 1fr 1fr; }
.form-grid.three-col { grid-template-columns: 1fr 1fr 1fr; }

.field label {
  display: block; font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 7px;
  font-family: 'Syne', sans-serif; font-weight: 700;
}
.field input,
.field select {
  width: 100%; background: var(--surface);
  border: 1.5px solid #dbe4f2;
  border-radius: var(--radius-md);
  padding: 11px 14px;
  color: var(--text); font-family: 'DM Mono', monospace;
  font-size: 14px;
  transition: border-color 0.18s, box-shadow 0.18s, background 0.3s;
  outline: none; appearance: none;
  box-shadow: inset 0 1px 1px rgba(15,23,42,0.02);
}
html[data-theme="dark"] .field input,
html[data-theme="dark"] .field select {
  background: rgba(17,18,25,0.92);
  border-color: rgba(70,78,108,0.62);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.02);
}
.field input::placeholder { color: var(--muted2); }
.field input:focus, .field select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
  background: var(--card);
}
html[data-theme="dark"] .field input:focus,
html[data-theme="dark"] .field select:focus {
  background: rgba(22,23,32,0.98);
}
.no-spinner::-webkit-outer-spin-button,
.no-spinner::-webkit-inner-spin-button { -webkit-appearance: none; }
.no-spinner[type=number] { -moz-appearance: textfield; }
.field select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239ca3af' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}
.field-hint {
  font-size: 10.5px; color: var(--muted2);
  margin-top: 6px; line-height: 1.6;
  font-family: 'DM Mono', monospace;
}

/* ===== BUTTON ===== */
.btn-primary {
  display: block; width: 100%; padding: 13px;
  background: linear-gradient(135deg, var(--brand-green-2) 0%, var(--brand-green) 60%, #67c7ff 100%);
  border: none;
  border-radius: var(--radius-md);
  color: var(--brand-dark); font-family: 'Syne', sans-serif;
  font-size: 13px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  cursor: pointer;
  transition: background 0.18s, transform 0.12s, box-shadow 0.18s;
  margin-top: 6px;
  box-shadow: 0 14px 28px rgba(0,196,138,0.24), 0 6px 18px rgba(100,86,224,0.12);
}
[data-theme="dark"] .btn-primary { color: #000; box-shadow: 0 2px 10px rgba(16,201,128,0.18); }
.btn-primary:hover {
  background: linear-gradient(135deg, var(--brand-green) 0%, #5cf0bc 55%, #8a7fff 100%);
  box-shadow: 0 18px 32px rgba(0,196,138,0.26), 0 10px 20px rgba(100,86,224,0.14);
  transform: translateY(-2px);
}
.btn-primary:active { transform: translateY(0); box-shadow: none; }

/* ===== RESULT BOX ===== */
.result-box {
  display: none;
  margin-top: 18px;
  background:
    linear-gradient(180deg, rgba(246,250,255,0.96), rgba(238,245,255,0.94)),
    linear-gradient(135deg, rgba(0,229,160,0.04), rgba(124,106,255,0.04));
  border: 1.5px solid rgba(188,201,221,0.88);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  animation: fadeUp 0.22s ease both;
}
html[data-theme="dark"] .result-box {
  background:
    linear-gradient(180deg, rgba(17,20,31,0.98), rgba(13,16,24,0.96)),
    linear-gradient(135deg, rgba(16,201,128,0.05), rgba(124,106,255,0.06));
  border-color: rgba(70,78,108,0.62);
}
.result-box.show { display: block; }

.result-main {
  font-family: 'Syne', sans-serif; font-size: 38px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--brand-green-2) 0%, var(--brand-violet-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.04em; line-height: 1;
}
.result-label {
  font-size: 11px; color: var(--muted);
  letter-spacing: 0.08em; font-family: 'DM Mono', monospace;
  margin: 6px 0 18px;
}
.result-breakdown { border-top: 1px solid var(--border); padding-top: 14px; }
.breakdown-row {
  display: flex; justify-content: space-between;
  align-items: center; padding: 7px 0;
  font-size: 12.5px; border-bottom: 1px solid var(--border);
  font-family: 'DM Mono', monospace;
}
.breakdown-row:last-child { border-bottom: none; }
.breakdown-row .label { color: var(--muted); }
.breakdown-row .value { color: var(--text); font-weight: 600; }
.breakdown-row.total {
  margin-top: 4px; padding-top: 10px;
  border-top: 2px solid var(--border-strong); border-bottom: none;
}
.breakdown-row.total .label,
.breakdown-row.total .value {
  font-family: 'Syne', sans-serif; font-weight: 800;
  font-size: 14px; color: var(--accent);
}

.btn-copy {
  margin-top: 16px; background: transparent;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  padding: 7px 16px; color: var(--muted);
  font-family: 'DM Mono', monospace; font-size: 11.5px;
  cursor: pointer; transition: all 0.18s; letter-spacing: 0.04em;
}
.btn-copy:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-light); }
.btn-copy.copied { border-color: var(--accent); color: var(--accent); background: var(--accent-light); }

/* ===== COMPARE GRID ===== */
.compare-grid { margin-top: 18px; border-top: 1px solid var(--border); padding-top: 14px; }
.compare-title {
  font-family: 'Syne', sans-serif; font-size: 10px;
  font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted2); margin-bottom: 10px;
}
.compare-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 0; border-bottom: 1px solid var(--border);
  font-size: 12px; gap: 8px; font-family: 'DM Mono', monospace;
}
.compare-row:last-child { border-bottom: none; }
.compare-label { color: var(--muted); flex: 1; }
.compare-value { color: var(--text); font-weight: 600; min-width: 90px; text-align: right; }
.compare-diff { min-width: 44px; text-align: right; font-size: 11px; color: var(--success); }
.compare-diff.neg { color: var(--danger); }

/* ===== HISTORY ===== */
.history-box {
  background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(255,255,255,0.86));
  border: 1px solid rgba(188,201,221,0.72);
  border-radius: var(--radius-lg); padding: 18px 22px;
  margin-bottom: 16px; animation: fadeUp 0.28s ease both;
  box-shadow: var(--shadow-sm);
}
html[data-theme="dark"] .history-box {
  background: linear-gradient(180deg, rgba(20,24,36,0.96), rgba(15,18,28,0.94));
  border-color: rgba(70,78,108,0.58);
}
.history-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.btn-clear-history {
  background: transparent; border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 4px 12px; color: var(--muted);
  font-family: 'DM Mono', monospace; font-size: 10.5px; cursor: pointer; transition: all 0.18s;
}
.btn-clear-history:hover { border-color: var(--danger); color: var(--danger); }
.history-item {
  display: grid; grid-template-columns: 72px 1fr 1fr auto;
  gap: 8px; align-items: center;
  padding: 8px 10px; border-radius: var(--radius-sm);
  cursor: pointer; transition: background 0.15s;
  font-size: 12px; font-family: 'DM Mono', monospace;
}
.history-item:hover { background: var(--accent-light); }
.history-pair { font-weight: 700; color: var(--accent); }
.history-amount { color: var(--muted); }
.history-result { color: var(--text); font-weight: 600; text-align: right; }
.history-date { color: var(--muted2); font-size: 10px; text-align: right; white-space: nowrap; }

/* ===== INFO GRID (tax preview) ===== */
.info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px; margin: 16px 0;
}
.tax-meta-note {
  margin: -2px 0 14px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: rgba(15,23,42,0.04);
  border: 1px solid rgba(148,163,184,0.24);
  font-size: 11px;
  line-height: 1.6;
  color: var(--muted);
  font-family: 'DM Mono', monospace;
}
html[data-theme="dark"] .tax-meta-note {
  background: rgba(255,255,255,0.03);
  border-color: rgba(124,106,255,0.16);
}
.info-item {
  background: linear-gradient(180deg, rgba(247,250,255,0.98), rgba(240,246,255,0.98));
  border: 1.5px solid rgba(188,201,221,0.74);
  border-radius: var(--radius-md); padding: 14px 16px;
  transition: border-color 0.18s;
}
html[data-theme="dark"] .info-item {
  background: linear-gradient(180deg, rgba(19,23,34,0.96), rgba(14,17,26,0.94));
  border-color: rgba(70,78,108,0.58);
}
.info-item:hover { border-color: var(--accent-mid); }
.i-label {
  font-size: 9.5px; color: var(--muted2);
  letter-spacing: 0.12em; text-transform: uppercase;
  margin-bottom: 5px; font-family: 'DM Mono', monospace;
}
.i-val {
  font-size: 18px; color: var(--accent);
  font-weight: 800; font-family: 'Syne', sans-serif;
  letter-spacing: -0.02em;
}

/* ===== CURRENCY / COUNTRY SELECTS ===== */
.currency-select, .country-select { position: relative; user-select: none; z-index: 1; }
.currency-select.open,
.country-select.open { z-index: 300; }
.cs-display {
  width: 100%; background: var(--surface);
  border: 1.5px solid #dbe4f2; border-radius: var(--radius-md);
  padding: 11px 36px 11px 14px; color: var(--text);
  font-family: 'DM Mono', monospace; font-size: 14px; cursor: pointer;
  transition: border-color 0.18s, box-shadow 0.18s;
  display: flex; align-items: center; gap: 8px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  position: relative;
}
html[data-theme="dark"] .cs-display {
  background: rgba(17,18,25,0.92);
  border-color: rgba(70,78,108,0.62);
}
.cs-display::after {
  content: ''; position: absolute; right: 13px; top: 50%;
  transform: translateY(-50%); width: 12px; height: 8px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239ca3af' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-size: contain; transition: transform 0.2s;
}
.currency-select.open .cs-display,
.country-select.open .cs-display { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-light); }
.currency-select.open .cs-display::after,
.country-select.open .cs-display::after { transform: translateY(-50%) rotate(180deg); }

.cs-dropdown {
  display: none; position: absolute; top: calc(100% + 5px);
  left: 0; right: 0; background: rgba(255,255,255,0.98);
  border: 1.5px solid rgba(188,201,221,0.82); border-radius: var(--radius-md);
  z-index: 301; overflow: hidden; box-shadow: var(--shadow-lg);
  animation: dropDown 0.14s ease both;
  backdrop-filter: blur(12px);
}
html[data-theme="dark"] .cs-dropdown {
  background: rgba(17,20,31,0.98);
  border-color: rgba(70,78,108,0.62);
}
@keyframes dropDown {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.currency-select.open .cs-dropdown,
.country-select.open .cs-dropdown { display: block; }

.cs-search-wrap { padding: 8px; border-bottom: 1px solid var(--border); }
.cs-search {
  width: 100%; background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 8px 12px; color: var(--text);
  font-family: 'DM Mono', monospace; font-size: 13px; outline: none;
  transition: border-color 0.18s; box-sizing: border-box;
}
html[data-theme="dark"] .cs-search,
html[data-theme="dark"] .country-select .cs-search {
  background: rgba(12,15,24,0.96);
  border-color: rgba(70,78,108,0.58);
}
.cs-search:focus { border-color: var(--accent); }
.cs-search::placeholder { color: var(--muted2); }
.cs-list { max-height: 210px; overflow-y: auto; padding: 4px 0; }
.cs-list::-webkit-scrollbar { width: 4px; }
.cs-list::-webkit-scrollbar-thumb { background: var(--muted3); border-radius: 4px; }
.cs-option {
  padding: 9px 14px; cursor: pointer; font-size: 13px;
  display: flex; align-items: center; gap: 9px;
  transition: background 0.12s; color: var(--text);
  font-family: 'DM Mono', monospace;
}
.cs-option:hover, .cs-option.focused { background: var(--accent-light); }
.cs-option.selected { color: var(--accent); }
.cs-flag { font-size: 15px; line-height: 1; }
.cs-code { font-weight: 700; min-width: 36px; font-size: 12.5px; }
.cs-name { color: var(--muted); font-size: 11.5px; }
.cs-no-results { padding: 16px; text-align: center; color: var(--muted2); font-size: 12px; font-family: 'DM Mono', monospace; }

.country-select .cs-search-wrap { padding: 8px; border-bottom: 1px solid var(--border); }
.country-select .cs-search { width: 100%; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 8px 12px; color: var(--text); font-family: 'DM Mono', monospace; font-size: 13px; outline: none; transition: border-color 0.18s; box-sizing: border-box; }
.country-select .cs-search:focus { border-color: var(--accent); }
.country-select .cs-search::placeholder { color: var(--muted2); }
.country-select .cs-list { max-height: 210px; overflow-y: auto; padding: 4px 0; }
.country-select .cs-list::-webkit-scrollbar { width: 4px; }
.country-select .cs-list::-webkit-scrollbar-thumb { background: var(--muted3); border-radius: 4px; }

/* ===== LIVE RATES GRID ===== */
.rates-grid-layout {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 10px; margin-top: 18px;
}
.rate-card {
  background: linear-gradient(180deg, rgba(247,250,255,0.98), rgba(240,246,255,0.98));
  border: 1.5px solid rgba(188,201,221,0.74);
  border-radius: var(--radius-md); padding: 14px 16px;
  transition: border-color 0.18s, transform 0.18s, box-shadow 0.18s;
}
html[data-theme="dark"] .rate-card {
  background: linear-gradient(180deg, rgba(19,23,34,0.96), rgba(14,17,26,0.94));
  border-color: rgba(70,78,108,0.58);
}
.rate-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.rate-card-pair { font-size: 10.5px; color: var(--muted); letter-spacing: 0.06em; margin-bottom: 6px; font-family: 'DM Mono', monospace; }
.rate-card-value { font-family: 'Syne', sans-serif; font-size: 17px; font-weight: 800; color: var(--text); letter-spacing: -0.02em; }

.rate-chip { background: var(--bg); border: 1.5px solid var(--border); border-radius: var(--radius-md); padding: 14px 16px; cursor: pointer; transition: border-color 0.18s; }
.rate-chip:hover { border-color: var(--accent); }
.rate-chip .pair { font-size: 10.5px; color: var(--muted); margin-bottom: 5px; font-family: 'DM Mono', monospace; }
.rate-chip .rate-val { font-family: 'Syne', sans-serif; font-size: 16px; font-weight: 800; color: var(--text); }

/* ===== EDU SECTION ===== */
.edu-section { margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--border); }
.edu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.edu-block {
  background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(255,255,255,0.86));
  border: 1px solid rgba(188,201,221,0.7);
  border-radius: var(--radius-md); padding: 18px 20px;
  transition: border-color 0.18s, transform 0.18s; box-shadow: var(--shadow-xs);
}
html[data-theme="dark"] .edu-block {
  background: linear-gradient(180deg, rgba(20,24,36,0.96), rgba(15,18,28,0.94));
  border-color: rgba(70,78,108,0.58);
}
.edu-block:hover { border-color: var(--accent-mid); transform: translateY(-1px); }
.edu-icon { font-size: 20px; margin-bottom: 10px; line-height: 1; }
.edu-block h3 { font-family: 'Syne', sans-serif; font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 7px; }
.edu-block p { font-size: 12px; color: var(--muted); line-height: 1.75; }

/* ===== DISCLAIMER ===== */
.disclaimer-box {
  background: rgba(217,119,6,0.04);
  border: 1px solid rgba(217,119,6,0.18);
  border-left: 3px solid var(--warning);
  border-radius: var(--radius-md);
  padding: 14px 18px; margin-top: 22px;
  font-size: 11.5px; color: var(--muted); line-height: 1.75;
  font-family: 'DM Mono', monospace;
}
.disclaimer-title {
  font-family: 'Syne', sans-serif; font-size: 10.5px;
  font-weight: 700; color: var(--warning);
  letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 5px;
}

/* ===== SOURCES ===== */
.sources-box { margin-top: 20px; }

.faq-section {
  margin-top: 24px;
  padding: 22px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.faq-section h2 {
  font-family: 'Syne', sans-serif;
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 14px;
  color: var(--text);
}

.faq-section details {
  border-top: 1px solid var(--border);
  padding: 13px 0;
}

.faq-section details:first-of-type {
  border-top: 0;
}

.faq-section summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
}

.faq-section p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.seo-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.seo-links a {
  color: var(--accent);
  background: var(--accent-light);
  border: 1px solid var(--accent-mid);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.seo-links a:hover {
  border-color: var(--accent);
}
.sources-title { font-family: 'Syne', sans-serif; font-size: 10px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.sources-exchange, .sources-tax-title, .sources-note { font-size: 10.5px; color: var(--muted2); margin-bottom: 10px; line-height: 1.7; font-family: 'DM Mono', monospace; }
.sources-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 7px; margin: 10px 0 12px; }
.source-item { display: flex; align-items: center; gap: 9px; background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(255,255,255,0.86)); border: 1px solid rgba(188,201,221,0.7); border-radius: var(--radius-sm); padding: 9px 12px; text-decoration: none; transition: border-color 0.15s; color: var(--text); }
.source-item:hover { border-color: var(--accent); }
html[data-theme="dark"] .source-item {
  background: linear-gradient(180deg, rgba(20,24,36,0.96), rgba(15,18,28,0.94));
  border-color: rgba(70,78,108,0.58);
}
.source-flag { font-size: 15px; flex-shrink: 0; }
.source-info { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.source-country { font-size: 11.5px; font-weight: 700; color: var(--text); font-family: 'Syne', sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.source-name { font-size: 10px; color: var(--muted2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-family: 'DM Mono', monospace; }
.source-link-icon { font-size: 10px; color: var(--accent); flex-shrink: 0; }

/* ===== FOOTER ===== */
.page-footer, footer { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--border); font-size: 11px; color: var(--muted2); letter-spacing: 0.05em; font-family: 'DM Mono', monospace; }
.footer-links { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.footer-links a { font-size: 11px; color: var(--muted2); text-decoration: none; font-family: 'DM Mono', monospace; }
.footer-links a:hover { color: var(--accent); }

