:root {
  --bg: #07111f;
  --bg-soft: #0c1729;
  --panel: rgba(8, 16, 30, 0.72);
  --panel-strong: rgba(12, 22, 39, 0.88);
  --border: rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f4f7fb;
  --muted: #93a4be;
  --muted-2: #6d7d97;
  --gold: #f5b942;
  --amber: #ff9f1c;
  --mint: #5fe3c1;
  --rose: #ff7b9c;
  --cyan: #6ad9ff;
  --green: #00d68f;
  --red: #ff4d6d;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

html[data-theme='light'] {
  --bg: #f3f6fb;
  --bg-soft: #e9eef8;
  --panel: rgba(255, 255, 255, 0.78);
  --panel-strong: rgba(255, 255, 255, 0.92);
  --border: rgba(12, 20, 35, 0.08);
  --border-strong: rgba(12, 20, 35, 0.14);
  --text: #0c1729;
  --muted: #516078;
  --muted-2: #73829b;
  --shadow: 0 20px 55px rgba(20, 30, 55, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body.forex-page {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(106, 217, 255, 0.16), transparent 34%),
    radial-gradient(circle at top right, rgba(245, 185, 66, 0.16), transparent 30%),
    radial-gradient(circle at bottom left, rgba(95, 227, 193, 0.12), transparent 28%),
    linear-gradient(160deg, var(--bg) 0%, var(--bg-soft) 100%);
  overflow-x: hidden;
}

.forex-aurora { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
.forex-aurora .orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.22;
  animation: float-orb 18s ease-in-out infinite alternate;
}
.orb-a { width: 420px; height: 420px; background: var(--cyan); top: -12%; left: -8%; animation-delay: 0s; }
.orb-b { width: 360px; height: 360px; background: var(--gold); top: 10%; right: -6%; animation-delay: -6s; }
.orb-c { width: 300px; height: 300px; background: var(--mint); bottom: 8%; left: 20%; animation-delay: -12s; }
.orb-d { width: 260px; height: 260px; background: var(--rose); bottom: -4%; right: 18%; animation-delay: -3s; }

@keyframes float-orb {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(40px, -30px) scale(1.1); }
}

.glass-panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.forex-shell {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

.forex-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 28px;
  margin: 24px 0;
  position: sticky;
  top: 12px;
  z-index: 90;
}
.brand-block .brand-kicker {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  font-weight: 600;
}
.brand-block h1 {
  margin: 2px 0 0;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.2;
}
.brand-block p {
  margin: 4px 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 214, 143, 0.15);
  color: var(--green);
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
}
.pulse {
  width: 8px; height: 8px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}
.source-pill {
  font-size: 0.72rem;
  color: var(--muted-2);
  background: rgba(255,255,255,0.06);
  padding: 4px 10px;
  border-radius: 999px;
}
.btn {
  border: none;
  border-radius: 10px;
  padding: 8px 18px;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--amber));
  color: #000;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(245,185,66,0.3); }
.btn-secondary {
  background: rgba(255,255,255,0.08);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover { background: rgba(255,255,255,0.14); }
.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
}
.btn-ghost:hover { color: var(--text); border-color: var(--border-strong); }

.hero-panel {
  display: flex;
  gap: 32px;
  padding: 36px;
  margin-bottom: 24px;
  align-items: center;
}
.hero-copy { flex: 1; }
.eyebrow {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 8px;
}
.hero-copy h2 {
  margin: 0 0 12px;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.15;
}
.hero-grad {
  background: linear-gradient(135deg, var(--cyan), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-desc {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.6;
  max-width: 520px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.hero-meta {
  display: flex;
  gap: 16px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.hero-meta span {
  font-size: 0.74rem;
  color: var(--muted-2);
  background: rgba(255,255,255,0.05);
  padding: 4px 12px;
  border-radius: 999px;
}

.hero-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  min-width: 320px;
}
.hero-stat {
  padding: 18px;
  border-radius: 14px;
  position: relative;
  overflow: hidden;
}
.hero-stat::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 14px;
  opacity: 0.08;
  pointer-events: none;
}
.accent-gold::before { background: var(--gold); }
.accent-amber::before { background: var(--amber); }
.accent-mint::before { background: var(--mint); }
.accent-rose::before { background: var(--rose); }
.stat-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.stat-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 600;
}
.stat-icon { font-size: 1.1rem; }
.stat-value {
  font-size: 1.3rem;
  font-weight: 700;
  display: block;
}
.stat-rm {
  font-size: 0.78rem;
  color: var(--muted);
}
.stat-rm.positive { color: var(--green); }
.stat-rm.negative { color: var(--red); }

.card-lift {
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}
.card-lift:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.25);
}

.news-ticker {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 20px;
  margin-bottom: 24px;
  overflow: hidden;
}
.ticker-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  flex-shrink: 0;
}
.ticker-viewport {
  overflow: hidden;
  flex: 1;
  mask-image: linear-gradient(90deg, transparent, black 4%, black 96%, transparent);
}
.ticker-track {
  display: flex;
  gap: 32px;
  white-space: nowrap;
  animation: ticker-scroll 40s linear infinite;
}
.ticker-item {
  font-size: 0.82rem;
  color: var(--muted);
}
@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}
.kpi-card {
  padding: 18px;
  text-align: center;
}
.kpi-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 600;
  display: block;
  margin-bottom: 6px;
}
.kpi-value {
  font-size: 1.2rem;
  font-weight: 700;
  display: block;
}

.myr-pill-section {
  padding: 24px;
  margin-bottom: 24px;
}
.myr-pill-section .section-heading {
  margin-bottom: 16px;
}
.section-tag {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  font-weight: 600;
}
.myr-pill-section h3 {
  margin: 4px 0 0;
  font-size: 1.2rem;
  font-weight: 700;
}
.myr-pill-section > .section-heading p {
  color: var(--muted);
  font-size: 0.84rem;
}
.myr-pill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
}
.myr-pill {
  padding: 16px;
  text-align: center;
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
}
.myr-pill-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 600;
  display: block;
  margin-bottom: 6px;
}
.myr-pill-rate {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gold);
}

.section-block {
  margin-bottom: 40px;
}
.section-heading {
  margin-bottom: 20px;
}
.section-heading h3 {
  margin: 4px 0 0;
  font-size: 1.2rem;
  font-weight: 700;
}
.section-heading p {
  color: var(--muted);
  font-size: 0.84rem;
  margin-top: 4px;
}

.table-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 6px 12px;
  flex: 1;
  min-width: 200px;
}
.search-box input {
  background: none;
  border: none;
  color: var(--text);
  font-size: 0.84rem;
  outline: none;
  width: 100%;
}
.search-box input::placeholder { color: var(--muted-2); }
.search-box svg { color: var(--muted-2); flex-shrink: 0; }

.filter-buttons {
  display: flex;
  gap: 6px;
}
.filter-btn {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 5px 14px;
  border-radius: 8px;
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.2s;
}
.filter-btn:hover { color: var(--text); border-color: var(--border-strong); }
.filter-btn.active {
  background: rgba(245,185,66,0.15);
  color: var(--gold);
  border-color: rgba(245,185,66,0.3);
}

.refresh-btn-wrap {
  display: flex;
  gap: 8px;
}

.table-scroll {
  overflow-x: auto;
  padding: 0;
  margin-bottom: 8px;
}
.pair-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}
.pair-table th {
  text-align: left;
  padding: 12px 16px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 600;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  user-select: none;
}
.pair-table th:hover { color: var(--text); }
.pair-table td {
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  vertical-align: middle;
}
.pair-table tbody tr {
  transition: background 0.15s;
}
.pair-table tbody tr:hover {
  background: rgba(255,255,255,0.04);
}
.num-col { text-align: right; }
.action-col { text-align: center; white-space: nowrap; }
.action-col .btn,
.action-col .ma-inline-btn { vertical-align: middle; margin: 0 2px; }
.loading-row, .no-results {
  text-align: center;
  color: var(--muted-2);
  padding: 32px 16px;
}
.positive { color: var(--green); }
.negative { color: var(--red); }

.table-info {
  font-size: 0.78rem;
  color: var(--muted-2);
  text-align: right;
  padding: 4px 16px;
}

.chart-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.chart-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px;
  color: var(--muted-2);
  gap: 16px;
}
.chart-placeholder svg { opacity: 0.3; }

/* Candlestick panel */
.candle-panel {
  padding: 16px 18px 12px;
}
.candle-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.candle-pair-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}
.candle-pair-wrap label {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.candle-pair-wrap select,
.regression-controls select {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 0.86rem;
  min-width: 160px;
}
.tf-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tf-btn {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.tf-btn:hover { color: var(--text); border-color: var(--border-strong); }
.tf-btn.active {
  background: rgba(106, 217, 255, 0.14);
  color: var(--cyan);
  border-color: rgba(106, 217, 255, 0.35);
}
.candle-chart-wrap {
  width: 100%;
  min-height: 360px;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(0,0,0,0.12);
}
html[data-theme='light'] .candle-chart-wrap {
  background: rgba(12, 23, 41, 0.03);
}
.candle-chart {
  width: 100%;
  height: 360px;
}
.candle-status {
  margin: 10px 2px 2px;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.45;
}
.candle-status strong {
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.pair-table tbody tr {
  cursor: pointer;
}
.pair-table tbody tr.row-active {
  background: rgba(106, 217, 255, 0.08);
  box-shadow: inset 3px 0 0 var(--cyan);
}
.btn-sm {
  padding: 5px 12px;
  font-size: 0.76rem;
}
.btn.is-loading {
  opacity: 0.65;
  pointer-events: none;
}
.hero-desc code {
  font-size: 0.82em;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(106, 217, 255, 0.12);
  color: var(--cyan);
}
.reg-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}
.reg-stats-grid div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
}
.reg-stats-grid span {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted-2);
}
.reg-stats-grid strong {
  font-size: 0.95rem;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.reg-note {
  margin: 12px 0 0;
  font-size: 0.78rem;
  color: var(--muted-2);
}
.kpi-value.positive { color: var(--green); }
.kpi-value.negative { color: var(--red); }

.myr-chart-wrap, .regression-chart-wrap {
  padding: 20px;
  margin-bottom: 16px;
}
.regression-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  margin-bottom: 12px;
}
.regression-controls label {
  font-size: 0.84rem;
  color: var(--muted);
}
.regression-controls select {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.84rem;
}
.regression-stats {
  padding: 16px 20px;
  font-size: 0.84rem;
  color: var(--muted);
}

.news-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.news-tab {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 6px 16px;
  border-radius: 8px;
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.2s;
}
.news-tab:hover { color: var(--text); border-color: var(--border-strong); }
.news-tab.active {
  background: rgba(245,185,66,0.15);
  color: var(--gold);
  border-color: rgba(245,185,66,0.3);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
  margin-bottom: 12px;
}
.news-card {
  padding: 18px;
  border-radius: 14px;
  transition: transform 0.2s var(--ease-out);
}
.news-card:hover { transform: translateY(-2px); }
.news-card h4 {
  margin: 0 0 6px;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.3;
}
.news-card p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
}
.news-card .news-tag {
  display: inline-block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  background: rgba(245,185,66,0.12);
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
}
.skeleton-card { pointer-events: none; }
.news-skeleton {
  height: 120px;
  background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.news-meta {
  font-size: 0.78rem;
  color: var(--muted-2);
  text-align: right;
}

.forex-disclaimer {
  padding: 24px;
  margin-bottom: 24px;
}
.disclaimer-box h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--amber);
}
.disclaimer-box p {
  margin: 0;
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.6;
}

.portal-section {
  padding: 28px;
  margin-bottom: 24px;
}
.portal-heading { margin-bottom: 20px; }
.portal-heading h3 {
  margin: 4px 0 0;
  font-size: 1.1rem;
  font-weight: 700;
}
.portal-heading p {
  color: var(--muted);
  font-size: 0.84rem;
}
.portal-columns {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 16px;
}
.portal-card {
  padding: 18px;
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
}
.chart-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
}
.chart-head h4 {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
}
.chart-head p {
  margin: 2px 0 0;
  font-size: 0.76rem;
  color: var(--muted-2);
}
.mini-badge {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(245,185,66,0.15);
  color: var(--gold);
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 600;
}
.mini-badge.mint { background: rgba(95,227,193,0.15); color: var(--mint); }
.mini-badge.rose { background: rgba(255,123,156,0.15); color: var(--rose); }

.portal-link-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.portal-link-grid--wide {
  grid-template-columns: 1fr 1fr;
}
.portal-link {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  transition: background 0.2s;
}
.portal-link:hover { background: rgba(255,255,255,0.08); }
.portal-link strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
}
.portal-link span {
  font-size: 0.72rem;
  color: var(--muted-2);
}

.link-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.link-chip {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  font-size: 0.82rem;
  transition: background 0.2s;
}
.link-chip:hover { background: rgba(255,255,255,0.08); }

.source-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  margin-bottom: 24px;
}
.source-strip p {
  color: var(--muted);
  font-size: 0.82rem;
  margin: 4px 0 0;
}
.source-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  font-size: 0.78rem;
  color: var(--muted-2);
}

.ainna-mobile-topbar {
  display: none;
}
#mobile-panel {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 200;
}
.mobile-menu {
  position: absolute;
  top: 0; left: 0;
  width: 280px;
  height: 100%;
  background: var(--bg-soft);
  border-right: 1px solid var(--border);
  padding: 20px;
  transform: translateX(-100%);
  transition: transform 0.3s var(--ease-out);
}
#mobile-panel.open .mobile-menu {
  transform: translateX(0);
}
.menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  font-weight: 700;
}
.menu-header button {
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
}
.mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mobile-menu nav a {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.92rem;
  transition: background 0.2s;
}
.mobile-menu nav a:hover { background: rgba(255,255,255,0.08); }

@media (max-width: 768px) {
  .forex-topbar { display: none; }
  .ainna-mobile-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--panel);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 90;
  }
  #mobile-panel { display: block; }
  .hero-panel {
    flex-direction: column;
    padding: 24px;
  }
  .hero-stat-grid {
    grid-template-columns: 1fr 1fr;
    min-width: auto;
    width: 100%;
  }
  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .myr-pill-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .portal-columns {
    grid-template-columns: 1fr;
  }
  .portal-link-grid {
    grid-template-columns: 1fr;
  }
  .forex-shell { padding: 0 12px 60px; }
  .candle-toolbar { flex-direction: column; align-items: stretch; }
  .candle-pair-wrap { width: 100%; }
  .candle-pair-wrap select { flex: 1; min-width: 0; width: 100%; }
  .tf-buttons { width: 100%; }
  .tf-btn { flex: 1; text-align: center; }
  .candle-chart, .candle-chart-wrap { min-height: 280px; height: 280px; }
  .candle-chart { height: 280px; }
}
@media (max-width: 480px) {
  .hero-stat-grid { grid-template-columns: 1fr; }
  .kpi-grid { grid-template-columns: 1fr; }
  .myr-pill-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; text-align: center; }
}