:root {
  --bg:           #0a0907;
  --surface-0:    #0f0d0a;
  --surface-1:    #161410;
  --surface-2:    #1e1b15;
  --surface-3:    #27231b;
  --border:       rgba(255,255,255,0.065);
  --border-gold:  rgba(196,158,58,0.3);
  --gold:         #c49e3a;
  --gold-bright:  #e8c46a;
  --gold-dim:     rgba(196,158,58,0.1);
  --gold-glow:    rgba(232,196,106,0.15);
  --cream:        #efe6d0;
  --text:         #cdc0a6;
  --text-dim:     #8e8070;
  --muted:        #5c5348;
  --green:        #4a9468;
  --green-bg:     rgba(74,148,104,0.08);
  --green-border: rgba(74,148,104,0.25);
  --green-bright: #6dd4a4;
  --red:          #c05848;
  --amber:        #c47a30;
  --amber-bg:     rgba(196,122,48,0.08);
  --amber-border: rgba(196,122,48,0.25);
  --amber-bright: #e8a86a;
  --radius-sm:    8px;
  --radius:       14px;
  --radius-lg:    20px;
  --font-body:    'Heebo', system-ui, sans-serif;
  --font-display: 'Frank Ruhl Libre', serif;
  --font-mono:    'IBM Plex Mono', 'Courier New', monospace;
  --ease-snap:    cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; color-scheme: dark; }

/* Scrollbar */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }

/* Selection */
::selection { background: rgba(196,158,58,0.22); color: var(--cream); }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  direction: rtl;
  min-height: 100vh;
}

/* Grain overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.024;
  pointer-events: none;
  z-index: 0;
}

/* Top accent bar */
body::after {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--gold) 25%, var(--gold-bright) 50%, var(--gold) 75%, transparent 100%);
  opacity: 0.65;
  z-index: 200;
  pointer-events: none;
}

/* ── Header ── */
header {
  position: relative;
  padding: 52px 24px 42px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  z-index: 1;
}
header::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 420px;
  background: radial-gradient(ellipse at 50% 40%, rgba(196,158,58,0.07) 0%, rgba(196,158,58,0.02) 45%, transparent 70%);
  pointer-events: none;
}
header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 260px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-bright), transparent);
  opacity: 0.55;
}
.header-inner {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
  animation: fadeUp 0.7s var(--ease-snap) both;
}
header img {
  height: 200px;
  margin-bottom: 20px;
  filter: brightness(1.1) drop-shadow(0 4px 20px rgba(196,158,58,0.18)) drop-shadow(0 0 60px rgba(196,158,58,0.05));
  transition: filter 0.4s;
}
header img:hover {
  filter: brightness(1.2) drop-shadow(0 4px 28px rgba(196,158,58,0.28)) drop-shadow(0 0 80px rgba(196,158,58,0.1));
}
header h1 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 5vw, 2.8rem);
  font-weight: 700;
  color: var(--cream);
  letter-spacing: 0.02em;
  line-height: 1.15;
}
header p {
  color: var(--text-dim);
  font-size: 0.84rem;
  margin-top: 10px;
  font-weight: 300;
  letter-spacing: 0.07em;
}
.header-rule {
  width: 48px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 20px auto 0;
  opacity: 0.75;
}

/* ── Layout ── */
main {
  max-width: 860px;
  margin: 0 auto;
  padding: 36px 20px 80px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  z-index: 1;
}

/* ── Cards ── */
.card {
  background: var(--surface-1);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  animation: fadeUp 0.5s var(--ease-snap) both;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.card:hover {
  border-color: rgba(196,158,58,0.13);
  box-shadow: 0 8px 40px rgba(0,0,0,0.28), 0 0 0 1px rgba(196,158,58,0.04);
}
.card:nth-child(1) { animation-delay: 0.06s; }
.card:nth-child(2) { animation-delay: 0.13s; }
.card:nth-child(3) { animation-delay: 0.20s; }

.card-header {
  padding: 14px 22px;
  display: flex;
  align-items: center;
  gap: 11px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-0);
}
.card-header .icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: var(--gold-dim);
  border: 1px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--gold);
}
.card-header .icon svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.card-header h2 {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--cream);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.card-body { padding: 24px 26px; }

/* ── Rate Hero ── */
.rate-hero {
  position: relative;
  text-align: center;
  padding: 36px 0 30px;
}
.rate-hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 200px;
  background: radial-gradient(ellipse, rgba(196,158,58,0.08) 0%, transparent 65%);
  pointer-events: none;
}
.rate-hero .rate-label {
  font-size: 0.63rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 10px;
}
.rate-display {
  position: relative;
  display: inline-flex;
  align-items: flex-start;
  gap: 2px;
}
.rate-currency-prefix {
  font-family: var(--font-mono);
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  font-weight: 400;
  color: var(--gold);
  opacity: 0.5;
  padding-top: 0.6rem;
}
#depositRate {
  font-family: var(--font-mono);
  font-size: clamp(4rem, 13vw, 6.5rem);
  font-weight: 600;
  color: var(--gold-bright);
  line-height: 1;
  letter-spacing: -0.03em;
  text-shadow: 0 0 60px rgba(232,196,106,0.2), 0 0 120px rgba(232,196,106,0.06);
}
.rate-hero .rate-sublabel {
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 8px;
  letter-spacing: 0.05em;
}
.rate-official-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 8px 20px;
  margin-top: 20px;
  font-size: 0.78rem;
  color: var(--text-dim);
  transition: border-color 0.25s;
}
.rate-official-pill:hover { border-color: var(--border-gold); }
.rate-official-pill .pill-sep {
  width: 1px;
  height: 12px;
  background: var(--border);
}
#marginInput {
  width: 58px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.86rem;
  text-align: center;
  outline: none;
  padding: 2px 0;
}
#marginInput:focus {
  border-color: var(--gold);
}
.rate-official-pill .pill-unit { color: var(--muted); font-size: 0.73rem; }

.rate-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 14px;
}
#rateDate { font-size: 0.72rem; color: var(--muted); }
#rateStatus { font-size: 0.75rem; min-height: 18px; }
#rateStatus.loading { color: var(--gold); animation: breathe 1.6s ease-in-out infinite; }
#rateStatus.error   { color: var(--red); }

/* ── Historical lookup row ── */
.lookup-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  margin-top: 6px;
}
.lookup-row label {
  font-size: 0.76rem;
  color: var(--text-dim);
  white-space: nowrap;
  font-weight: 500;
  letter-spacing: 0.03em;
}

/* ── Inputs ── */
input[type="date"],
input[type="number"] {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 9px 13px;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  -webkit-appearance: none;
  appearance: none;
  color-scheme: dark;
}
input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(0.5); cursor: pointer; opacity: 0.65; }
input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(196,158,58,0.09); background: var(--surface-3); }
input::placeholder { color: var(--muted); }
input.error-input { border-color: var(--red) !important; box-shadow: 0 0 0 3px rgba(192,88,72,0.09) !important; }

/* ── Buttons ── */
.btn {
  position: relative;
  overflow: hidden;
  padding: 9px 18px;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, transform 0.12s, box-shadow 0.15s;
  white-space: nowrap;
  background: var(--gold);
  color: #0b0a08;
}
.btn::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 55%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
  transition: left 0.45s var(--ease-snap);
  pointer-events: none;
}
.btn:hover { background: var(--gold-bright); box-shadow: 0 4px 16px rgba(196,158,58,0.22); }
.btn:hover::after { left: 150%; }
.btn:active { transform: scale(0.97); box-shadow: none; }
@media (hover: none) { .btn:hover { background: var(--gold); box-shadow: none; } .btn.btn-secondary:hover { background: var(--surface-3); color: var(--text-dim); } }
.btn.btn-secondary {
  background: var(--surface-3);
  color: var(--text-dim);
  border: 1px solid var(--border);
}
.btn.btn-secondary::after { background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent); }
.btn.btn-secondary:hover { background: var(--surface-2); color: var(--text); box-shadow: none; }

/* ── Calculator ── */
.calc-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  margin-bottom: 26px;
}
.calc-tab {
  flex: 1;
  padding: 13px 16px;
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  color: var(--muted);
  position: relative;
  transition: color 0.2s;
}
.calc-tab::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 14px;
  right: 14px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transform: scaleX(0);
  transition: transform 0.25s ease;
}
.calc-tab.active { color: var(--gold-bright); }
.calc-tab.active::after { transform: scaleX(1); }
.calc-tab:hover:not(.active) { color: var(--text-dim); }

.calc-panel { display: none; }
.calc-panel.active { display: block; animation: fadeUp 0.25s var(--ease-snap); }

/* ── Form Groups ── */
.form-group { margin-bottom: 20px; }
.form-group > label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.form-group .hint {
  font-size: 0.7rem;
  color: var(--muted);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  margin-right: 4px;
}

.input-wrap { position: relative; display: flex; align-items: center; }
.input-wrap input { width: 100%; padding: 11px 46px 11px 13px; font-size: 1rem; font-family: var(--font-mono); }
.input-wrap .currency-badge {
  position: absolute;
  left: 13px;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--gold);
  opacity: 0.6;
  pointer-events: none;
  transition: opacity 0.2s;
}
.input-wrap:focus-within .currency-badge { opacity: 1; }

.field-error { font-size: 0.74rem; color: var(--red); margin-top: 6px; display: none; }
.field-error.show { display: block; animation: fadeUp 0.2s var(--ease-snap); }

.date-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.date-row input[type="date"] { flex: 1; min-width: 140px; }

/* ── Result Box ── */
.result-box {
  display: none;
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-top: 6px;
  border: 1px solid;
  border-right-width: 3px;
}
.result-box.show { display: block; animation: slideIn 0.3s var(--ease-snap); }
.result-box:not(.warning) {
  background: var(--green-bg);
  border-color: var(--green-border);
  border-right-color: var(--green);
}
.result-box.warning {
  background: var(--amber-bg);
  border-color: var(--amber-border);
  border-right-color: var(--amber);
}

.result-box .result-label {
  font-size: 0.63rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
  font-weight: 700;
  margin-bottom: 6px;
}
.result-box.warning .result-label { color: var(--amber); }
.result-box .result-value {
  font-family: var(--font-mono);
  font-size: 2.6rem;
  font-weight: 600;
  color: var(--green-bright);
  line-height: 1;
  letter-spacing: -0.02em;
}
.result-box.warning .result-value { color: var(--amber-bright); }
.result-box .result-details {
  font-size: 0.74rem;
  color: var(--muted);
  margin-top: 10px;
  line-height: 1.8;
  font-family: var(--font-mono);
}

/* ── Terms ── */
.terms-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 20px;
}
.terms-section { display: flex; flex-direction: column; gap: 10px; }
.terms-section-header {
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  text-align: center;
}
.deposit-header {
  background: rgba(196,158,58,0.07);
  color: var(--gold-bright);
  border: 1px solid rgba(196,158,58,0.2);
}
.withdraw-header {
  background: rgba(74,148,104,0.07);
  color: var(--green-bright);
  border: 1px solid rgba(74,148,104,0.2);
}
.term-item {
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  border-right: 2px solid var(--border);
  transition: border-color 0.2s, background 0.2s;
}
.term-item:hover { background: var(--surface-3); }
.term-item.highlight { border-right-color: var(--gold); }
.term-item.highlight:hover { border-right-color: var(--gold-bright); }
.term-item h4 {
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 5px;
  color: var(--cream);
  letter-spacing: 0.01em;
}
.term-item p { font-size: 0.78rem; color: var(--text-dim); line-height: 1.7; }
.term-item p strong { color: var(--gold-bright); font-weight: 600; }

.min-deposit-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold-dim);
  border: 1px solid rgba(196,158,58,0.2);
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--gold-bright);
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}

.disclaimer {
  background: var(--surface-0);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.8;
}
.disclaimer strong {
  display: block;
  margin-bottom: 6px;
  color: var(--text-dim);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ── Footer ── */
footer {
  text-align: center;
  padding: 28px 20px;
  font-size: 0.72rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  letter-spacing: 0.07em;
  position: relative;
  z-index: 1;
}

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes breathe {
  0%, 100% { opacity: 0.55; }
  50%       { opacity: 1; }
}

/* ── Page Navigation ── */
.page-nav {
  position: relative;
  z-index: 1;
  display: flex;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 20px;
  gap: 0;
  border-bottom: 1px solid var(--border);
}
.page-tab {
  flex: 1;
  padding: 16px 20px;
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--muted);
  letter-spacing: 0.04em;
  position: relative;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.page-tab::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 20px;
  right: 20px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}
.page-tab.active { color: var(--gold-bright); }
.page-tab.active::after { transform: scaleX(1); }
.page-tab:hover:not(.active) { color: var(--text-dim); }
.page-tab .tab-icon { width: 16px; height: 16px; opacity: 0.75; }
.page-tab.active .tab-icon { opacity: 1; }

.page-panel { display: none; }
.page-panel.active { display: block; animation: fadeUp 0.3s var(--ease-snap); }

/* ── Download & Register Tab ── */
.download-main {
  max-width: 860px;
  margin: 0 auto;
  padding: 36px 20px 80px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  z-index: 1;
}

.register-card {
  position: relative;
  background: var(--surface-1);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: 44px 36px;
  text-align: center;
  animation: fadeUp 0.4s var(--ease-snap) both;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.register-card:hover {
  border-color: rgba(196,158,58,0.45);
  box-shadow: 0 12px 48px rgba(0,0,0,0.28), 0 0 0 1px rgba(196,158,58,0.06);
}
.register-card::before {
  content: '';
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 320px;
  background: radial-gradient(ellipse, rgba(196,158,58,0.09) 0%, transparent 65%);
  pointer-events: none;
}
.register-eyebrow {
  font-size: 0.61rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 14px;
}
.register-card h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 700;
  color: var(--cream);
  line-height: 1.2;
  margin-bottom: 12px;
}
.register-card p {
  font-size: 0.86rem;
  color: var(--text-dim);
  max-width: 400px;
  margin: 0 auto 30px;
  line-height: 1.75;
}
.btn-register {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--gold);
  color: #0b0a08;
  font-family: var(--font-body);
  font-size: 0.93rem;
  font-weight: 700;
  padding: 13px 32px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
  position: relative;
  z-index: 1;
  overflow: hidden;
}
.btn-register::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 55%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.45s var(--ease-snap);
  pointer-events: none;
}
.btn-register:hover { background: var(--gold-bright); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(196,158,58,0.28); }
.btn-register:hover::after { left: 150%; }
.btn-register:active { transform: scale(0.97) translateY(0); box-shadow: none; }
.btn-register svg { width: 15px; height: 15px; flex-shrink: 0; }

.downloads-section-label {
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  padding-right: 2px;
  animation: fadeUp 0.4s 0.1s var(--ease-snap) both;
}

.platform-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  animation: fadeUp 0.4s 0.15s var(--ease-snap) both;
}
.platform-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 20px 24px;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.25s, background 0.25s, transform 0.2s var(--ease-snap), box-shadow 0.25s;
  overflow: hidden;
}
.platform-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(196,158,58,0.07) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.25s;
}
.platform-card:hover {
  border-color: var(--border-gold);
  background: var(--surface-2);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.22), 0 0 0 1px rgba(196,158,58,0.05);
}
.platform-card:hover::before { opacity: 1; }
.platform-card:active { transform: scale(0.97) translateY(0); box-shadow: none; }

.platform-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 13px;
  background: var(--surface-3);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.25s, background 0.25s, transform 0.25s var(--ease-snap);
}
.platform-card:hover .platform-icon-wrap {
  border-color: var(--border-gold);
  background: var(--gold-dim);
  transform: scale(1.07);
}
.platform-icon-wrap svg {
  width: 26px;
  height: 26px;
  color: var(--text-dim);
  transition: color 0.25s;
}
.platform-card:hover .platform-icon-wrap svg { color: var(--gold-bright); }

.platform-info { text-align: center; position: relative; z-index: 1; }
.platform-name {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--cream);
  letter-spacing: 0.01em;
  margin-bottom: 3px;
}
.platform-sub {
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}
.platform-dl-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 0.2s, transform 0.22s var(--ease-snap);
  position: relative;
  z-index: 1;
}
.platform-card:hover .platform-dl-label { opacity: 1; transform: translateY(0); }

/* ── Responsive ── */
@media (max-width: 600px) {
  header { padding: 30px 16px 26px; }
  main { padding: 20px 12px 60px; gap: 14px; }
  .card-body { padding: 18px 16px; }
  .card-header { padding: 12px 16px; }
  #depositRate { font-size: 3.8rem; }
  .rate-official-pill { flex-wrap: wrap; justify-content: center; gap: 6px; }
  .rate-hero { padding: 24px 0 20px; }
  .lookup-row { flex-direction: column; align-items: stretch; }
  .lookup-row input[type="date"] { width: 100%; }
  .lookup-row .btn { width: 100%; justify-content: center; min-height: 44px; }
  input[type="date"],
  input[type="number"] { font-size: 16px; min-height: 44px; }
  .input-wrap input { font-size: 16px; min-height: 44px; }
  .btn { min-height: 44px; padding: 10px 18px; font-size: 0.92rem; }
  .calc-tab { font-size: 0.82rem; padding: 12px 8px; }
  .date-row { flex-direction: column; }
  .date-row input[type="date"] { width: 100%; }
  .date-row .btn { min-height: 44px; }
  .result-box .result-value { font-size: 2rem; }
  .result-box .result-details { font-size: 0.7rem; word-break: break-word; }
  .terms-columns { grid-template-columns: 1fr; }
  .min-deposit-badge { font-size: 0.8rem; }
  .page-nav { padding: 0 12px; }
  .page-tab { font-size: 0.82rem; padding: 14px 8px; gap: 6px; }
  .page-tab .tab-icon { width: 14px; height: 14px; }
  .download-main { padding: 20px 12px 60px; gap: 18px; }
  .register-card { padding: 28px 20px; }
  .platform-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .platform-card { padding: 22px 12px 18px; gap: 10px; }
  .platform-icon-wrap { width: 46px; height: 46px; border-radius: 11px; }
  .platform-icon-wrap svg { width: 22px; height: 22px; }
  .btn-register { min-height: 44px; }
}
