/* =============================================
   FT10 — app.css v3.0 — Full Responsive Rebuild
   ============================================= */

/* ---- CSS Variables ---- */
:root {
  --bg: #02162B;
  --bg-soft: #07203A;
  --panel: rgba(6, 22, 43, .82);
  --panel-strong: rgba(8, 26, 48, .94);
  --text: #F2F6F8;
  --muted: #9DB8C7;
  --line: rgba(255,255,255,.08);
  --primary: #45cad2;
  --accent: #2fb8c6;
  --success: #22c55e;
  --danger: #ef4444;
  --shadow: 0 30px 90px rgba(0,0,0,.42);
  --radius: 28px;
  --container: 1240px;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body {
  margin: 0; padding: 0;
  background: radial-gradient(circle at top, rgba(69,202,210,.10), transparent 22%),
              radial-gradient(circle at right top, rgba(47,184,198,.10), transparent 25%),
              linear-gradient(180deg, #03101D 0%, #02162B 100%);
  color: var(--text);
  font-family: Inter, system-ui, Arial, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.02) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px);
  background-size: 36px 36px;
  opacity: .16;
  pointer-events: none;
  z-index: 0;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; height: auto; }
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

/* ---- Header ---- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(5,7,12,.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  transition: transform .32s cubic-bezier(.4,0,.2,1), box-shadow .32s;
}
.site-header.header-hidden {
  transform: translateY(-100%);
}
.site-header.header-scrolled {
  box-shadow: 0 4px 32px rgba(0,0,0,.45);
}

.header-inner {
  display: flex; align-items: center;
  justify-content: space-between;
  gap: 14px; min-height: 70px;
  flex-wrap: nowrap;
}
.brand {
  display: inline-flex; align-items: center;
  gap: 10px; font-weight: 800;
  font-size: 1.05rem; letter-spacing: .04em;
  flex-shrink: 0; white-space: nowrap;
}
.brand img, .brand-footer img {
  width: 38px; height: 38px;
  border-radius: 10px; object-fit: cover;
  background: #000;
  box-shadow: 0 0 18px rgba(69,202,210,.28);
}

/* ---- Navigation ---- */
.site-nav {
  display: flex; align-items: center;
  gap: 4px; flex-wrap: nowrap;
}
.site-nav > a {
  padding: 9px 12px; border-radius: 999px;
  color: var(--muted); transition: .2s;
  font-size: .88rem; white-space: nowrap;
}
.site-nav > a:hover, .site-nav > a.active {
  color: var(--text); background: rgba(255,255,255,.07);
}
.lang-switcher {
  display: flex; gap: 4px; margin-left: 4px; flex-shrink: 0;
}
.lang-switcher a {
  padding: 7px 9px; border-radius: 10px;
  background: transparent; border: 1px solid transparent;
  color: var(--muted); font-size: .8rem; cursor: pointer;
  transition: .2s;
}
.lang-switcher a.active {
  border-color: rgba(69,202,210,.28); color: var(--primary);
  background: rgba(69,202,210,.10);
}
.nav-toggle {
  display: none; background: none; border: none;
  color: var(--text); font-size: 26px; cursor: pointer;
  padding: 8px; flex-shrink: 0; line-height: 1;
}

/* ---- Buttons — CYAN = DEEP NAVY TEXT ---- */
.btn {
  display: inline-flex; align-items: center;
  justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 16px;
  border: 1px solid transparent;
  font-weight: 700; cursor: pointer;
  transition: .2s; line-height: 1.2;
  text-align: center; white-space: normal;
  font-size: .93rem;
}
.btn-sm { padding: 9px 14px; border-radius: 13px; font-size: .85rem; }
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #03111A !important;
  box-shadow: 0 10px 28px rgba(69,202,210,.24);
}
.btn-primary * { color: #03111A !important; }
.btn-secondary {
  background: rgba(255,255,255,.05);
  border-color: var(--line); color: var(--text);
}
.btn:hover { transform: translateY(-1px); opacity: .93; }

/* ---- Cards & Panels ---- */
.hero-card, .panel, .card {
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.025));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.hero-card { padding: 28px; position: relative; overflow: hidden; }
.hero-card::after {
  content: ""; position: absolute;
  inset: auto -40px -40px auto;
  width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(69,202,210,.14), transparent 68%);
  pointer-events: none;
}
.card { padding: 20px; }
.card h3 { margin: 0 0 10px; font-size: 1.08rem; }

/* ---- Eyebrow & Typography ---- */
.eyebrow {
  display: inline-flex; padding: 5px 10px;
  border-radius: 999px; background: rgba(69,202,210,.10);
  border: 1px solid rgba(69,202,210,.20); color: var(--primary);
  font-size: .72rem; margin-bottom: 10px;
  text-transform: uppercase; letter-spacing: .08em;
}
.muted { color: var(--muted); }
.lead { font-size: 1.02rem; color: var(--muted); }
.page-title { font-size: clamp(1.7rem, 4vw, 3rem); margin: 0 0 10px; }

/* ---- Hero Section ---- */
.hero { padding: 44px 0 22px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 22px; align-items: stretch;
}
.hero-badge {
  display: inline-flex; gap: 8px; padding: 7px 13px;
  border-radius: 999px; background: rgba(69,202,210,.10);
  border: 1px solid rgba(69,202,210,.20); color: var(--primary);
  font-size: .8rem; margin-bottom: 14px;
}
.hero h1 {
  font-size: clamp(1.8rem, 3.4vw, 3.9rem);
  line-height: 1.05; margin: 0 0 14px; letter-spacing: -.03em;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.glow-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(69,202,210,.42), transparent);
  margin: 10px 0 18px;
}
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.stat-box {
  padding: 16px; border-radius: 16px;
  background: rgba(255,255,255,.04); border: 1px solid var(--line);
}
.stat-box strong { display: block; font-size: 1.4rem; margin-bottom: 3px; color: var(--primary); }
.stat-box span { color: var(--muted); font-size: .85rem; }
.hero-visual { display: grid; gap: 12px; }
.mini-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.mini-card { padding: 13px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid var(--line); }

/* ---- Sections ---- */
.section { padding: 22px 0; }
.section-head {
  display: flex; align-items: flex-start;
  justify-content: space-between;
  gap: 14px; margin-bottom: 14px; flex-wrap: wrap;
}
.section-head h2 { margin: 0; font-size: clamp(1.15rem, 2.4vw, 1.6rem); letter-spacing: -.02em; }
.section-head p { margin: 4px 0 0; color: var(--muted); font-size: .88rem; }

/* ---- Grids ---- */
.grid { display: grid; gap: 16px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---- News & Blog Cards ---- */
.news-card p, .blog-card p, .broker-card p { color: var(--muted); margin: 0 0 10px; font-size: .88rem; }
.news-card .thumb, .blog-card .thumb, .broker-card .thumb {
  border-radius: 14px; aspect-ratio: 16/10; object-fit: cover;
  background: rgba(255,255,255,.04); margin-bottom: 12px; width: 100%;
}
.meta { display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: .8rem; margin: 0 0 10px; }

/* ---- Asset Cards ---- */
.asset-grid { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.asset-card { display: block; transition: .2s; cursor: pointer; }
.asset-card:hover, .asset-link-card:hover { transform: translateY(-2px); border-color: rgba(69,202,210,.24); }
.asset-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.asset-price { font-size: 1.55rem; font-weight: 800; letter-spacing: -.02em; }
.asset-mini-indicators { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; color: var(--muted); font-size: .78rem; }
.asset-mini-indicators span { padding: 4px 9px; border-radius: 999px; background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.asset-link-card { display: block; }

/* ---- Heat Pills ---- */
.heat-pill {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 6px 11px; border-radius: 999px;
  border: 1px solid var(--line); font-weight: 800; font-size: .86rem;
}
.hot-positive { background: linear-gradient(180deg, rgba(34,197,94,.18), rgba(34,197,94,.06)); color: #d1fae5; }
.hot-strong { background: linear-gradient(180deg, rgba(0,255,65,.26), rgba(69,202,210,.10)); color: #eaffef; }
.hot-negative { background: linear-gradient(180deg, rgba(239,68,68,.18), rgba(239,68,68,.06)); color: #fee2e2; }
.hot-strong-negative { background: linear-gradient(180deg, rgba(185,28,28,.26), rgba(127,29,29,.08)); color: #fee2e2; }
.hot-neutral { background: linear-gradient(180deg, rgba(148,163,184,.12), rgba(148,163,184,.04)); color: #e2e8f0; }

/* ---- Heatmap ---- */
.heatmap-toolbar { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.heatmap-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.heatmap-cell {
  display: flex; flex-direction: column; gap: 5px;
  padding: 14px; border-radius: 16px; border: 1px solid var(--line);
  min-height: 95px; justify-content: space-between; transition: .2s;
}
.heatmap-cell:hover { transform: translateY(-2px); }
.heatmap-cell strong { font-size: .98rem; }
.heatmap-cell span { color: rgba(255,255,255,.82); font-size: .88rem; }
.heatmap-cell em { font-style: normal; font-weight: 800; font-size: .88rem; }
.movers-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 14px; }
.mover-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); }
.mover-row:last-child { border-bottom: none; }

/* ---- Filter Bar ---- */
.filter-bar {
  display: flex; flex-wrap: wrap; gap: 10px;
  align-items: flex-end; margin-bottom: 16px;
  padding: 14px; border-radius: 18px;
  background: rgba(255,255,255,.035); border: 1px solid var(--line);
}
.filter-group { display: grid; gap: 6px; flex: 1 1 150px; min-width: 120px; max-width: 240px; }
.filter-group label { font-size: .77rem; color: var(--muted); white-space: nowrap; }
.filter-group input,
.filter-group select {
  width: 100%; padding: 10px 12px; border-radius: 11px;
  border: 1px solid var(--line); background: #0b1424; color: var(--text);
  font-size: .88rem; outline: none; transition: border-color .2s;
  -webkit-appearance: none; appearance: none;
}
.filter-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238aa08d' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; padding-right: 28px;
}
.filter-group input:focus, .filter-group select:focus { border-color: rgba(0,255,65,.35); }
.filter-actions { display: flex; gap: 8px; flex-wrap: nowrap; align-items: flex-end; }
.count-badge {
  display: inline-flex; align-items: center;
  padding: 7px 11px; border-radius: 999px;
  background: rgba(69,202,210,.10); border: 1px solid rgba(69,202,210,.20);
  color: var(--primary); font-size: .8rem; align-self: flex-end;
}

/* ---- KPI Grid ---- */
.kpi-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.kpi { padding: 14px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.kpi-label { display: block; color: var(--muted); font-size: .77rem; margin-bottom: 4px; }
.kpi-value { font-size: 1.1rem; font-weight: 700; }

/* ---- Market Detail ---- */
.market-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.25fr);
  gap: 20px; align-items: start;
}
.market-price-row, .chart-toolbar {
  display: flex; align-items: center;
  justify-content: space-between; gap: 12px;
}
.market-main-price {
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 800; letter-spacing: -.02em; margin: 10px 0 5px;
}
.market-secondary { margin-top: 5px; color: var(--muted); font-size: .88rem; }
.market-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* ---- TradingView Widget ---- */
.tv-widget-card {
  border-radius: 20px; overflow: hidden;
  background: #02162B; border: 1px solid var(--line);
  height: clamp(420px, 62vh, 720px);
  min-height: 400px;
  position: relative;
}
.tv-widget-card .tradingview-widget-container {
  position: absolute; inset: 0;
  width: 100% !important; height: 100% !important;
}
.tv-widget-card .tradingview-widget-container > div,
.tv-widget-card #tv_chart_container {
  width: 100% !important; height: 100% !important; display: block !important;
}

/* ---- Simple Chart ---- */
.simple-line-chart {
  height: 230px; border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.01));
  border: 1px solid var(--line); position: relative; overflow: hidden;
}
.simple-line-chart svg { width: 100%; height: 100%; display: block; }
.simple-line-chart .chart-grid line { stroke: rgba(255,255,255,.06); stroke-width: 1; }
.simple-line-chart .chart-path { fill: none; stroke: #45cad2; stroke-width: 2.5; }
.simple-line-chart .chart-area { fill: url(#esfxChartGradient); }
.simple-line-chart .chart-label { fill: #9DB8C7; font-size: 11px; }

/* ---- Calendar Events ---- */
.event-list { display: grid; gap: 9px; }
.event-item {
  display: grid;
  grid-template-columns: 115px 1fr auto;
  gap: 12px; align-items: center;
  padding: 13px 15px; border-radius: 14px;
  background: rgba(255,255,255,.04); border: 1px solid var(--line);
}
.event-time { font-weight: 700; font-size: .88rem; color: var(--text); }
.impact { padding: 5px 9px; border-radius: 999px; font-size: .73rem; font-weight: 700; white-space: nowrap; }
.impact.high   { background: rgba(239,68,68,.12); color: #fecaca; border: 1px solid rgba(239,68,68,.24); }
.impact.medium { background: rgba(245,158,11,.12); color: #fde68a; border: 1px solid rgba(245,158,11,.24); }
.impact.low    { background: rgba(34,197,94,.12); color: #bbf7d0; border: 1px solid rgba(34,197,94,.24); }

/* ---- Article ---- */
.list-page-header { padding: 32px 0 10px; }
.article-shell { padding: 36px 0 56px; }
.article-wrap { max-width: 840px; margin: 0 auto; }
.article-cover { border-radius: 20px; margin: 18px 0; background: rgba(255,255,255,.04); }
.article-content { line-height: 1.8; color: #dfe8f7; }
.article-content h2, .article-content h3 { color: #fff; }
.article-content a { color: var(--primary); }

/* ---- Footer ---- */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 16px; margin-top: 32px; background: rgba(0,0,0,.18); }
.footer-grid { display: grid; grid-template-columns: 1.1fr .8fr .8fr; gap: 22px; }
.footer-text { color: var(--muted); max-width: 520px; font-size: .88rem; }
.social-links { display: flex; flex-wrap: wrap; gap: 7px; }
.social-links a { padding: 8px 12px; border-radius: 11px; border: 1px solid var(--line); background: rgba(255,255,255,.03); color: var(--muted); font-size: .86rem; transition: .2s; }
.social-links a:hover { color: var(--text); border-color: rgba(255,255,255,.15); }
.footer-bottom { padding-top: 14px; color: var(--muted); font-size: .85rem; }

/* ---- Admin ---- */
.admin-shell { display: grid; grid-template-columns: 240px 1fr; gap: 20px; padding: 24px 0; }
.admin-side, .admin-main { padding: 20px; border-radius: 20px; background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.admin-menu { display: grid; gap: 6px; }
.admin-menu a { padding: 10px 13px; border-radius: 12px; color: var(--muted); transition: .2s; }
.admin-menu a.active { background: rgba(0,255,65,.1); color: var(--text); border: 1px solid rgba(0,255,65,.2); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-size: .82rem; color: var(--muted); margin-bottom: 5px; }
.field input, .field textarea, .field select { width: 100%; padding: 11px 13px; border-radius: 12px; border: 1px solid var(--line); background: #0b1424; color: var(--text); outline: none; }
.field textarea { min-height: 155px; resize: vertical; }
.table-wrap { overflow: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 10px 9px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-size: .88rem; }
.alert { padding: 12px 15px; border-radius: 14px; margin-bottom: 13px; }
.alert-success { background: rgba(34,197,94,.12); border: 1px solid rgba(34,197,94,.24); color: #d1fae5; }
.alert-error { background: rgba(239,68,68,.12); border: 1px solid rgba(239,68,68,.24); color: #fee2e2; }
.login-card { max-width: 440px; margin: 56px auto; padding: 24px; border-radius: 20px; background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.empty-state { padding: 20px; border-radius: 16px; background: rgba(255,255,255,.03); border: 1px dashed var(--line); color: var(--muted); }
.contact-form .field textarea { min-height: 125px; }

/* =============================================
   RESPONSIVE BREAKPOINTS
   ============================================= */

/* --- 1100px --- */
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr; }
  .market-detail-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 18px; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .asset-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
  .heatmap-grid { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
  .tv-widget-card { height: clamp(380px, 58vh, 600px); }
  .movers-grid { grid-template-columns: repeat(2, 1fr); }
}

/* --- 900px --- */
@media (max-width: 900px) {
  .site-nav {
    display: none;
    position: fixed;
    top: 70px; left: 0; right: 0;
    padding: 18px 16px;
    background: rgba(5,7,12,.97);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: stretch;
    gap: 4px; z-index: 99;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
  }
  .site-nav.open { display: flex; }
  .site-nav > a { padding: 13px 16px; border-radius: 13px; font-size: .97rem; }
  .lang-switcher {
    margin-left: 0; margin-top: 6px;
    padding-top: 12px; border-top: 1px solid var(--line);
    justify-content: flex-start; gap: 6px;
  }
  .site-nav .btn { margin-top: 8px; width: 100%; }
  .nav-toggle { display: flex; align-items: center; justify-content: center; }
  .admin-shell { grid-template-columns: 1fr; }
  .movers-grid { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* --- 768px --- */
@media (max-width: 768px) {
  .container { padding: 0 14px; }
  .hero { padding: 24px 0 14px; }
  .hero-card, .card, .panel { padding: 16px; }
  .hero h1 { font-size: clamp(1.6rem, 5.5vw, 2.4rem); }
  .section { padding: 16px 0; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .asset-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .heatmap-grid { grid-template-columns: repeat(3, 1fr); }
  .kpi-grid, .market-kpis { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  /* Events: stacked */
  .event-item { grid-template-columns: 1fr auto; gap: 8px; }
  .event-item > div:nth-child(2) { grid-column: 1 / -1; }
  /* Filter 2-col */
  .filter-bar { gap: 8px; padding: 12px; }
  .filter-group { flex: 1 1 calc(50% - 8px); min-width: 110px; max-width: 100%; }
  .filter-actions { width: 100%; justify-content: stretch; }
  .filter-actions .btn { flex: 1; }
  .count-badge { width: 100%; justify-content: center; }
  /* TradingView */
  .tv-widget-card { height: 72vw; min-height: 360px; max-height: 520px; }
  .market-main-price { font-size: clamp(1.7rem, 5vw, 2.2rem); }
  .market-detail-grid { gap: 14px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .full { grid-column: 1; }
}

/* --- 480px --- */
@media (max-width: 480px) {
  .container { padding: 0 12px; }
  .brand span { font-size: .9rem; }
  .hero h1 { font-size: 1.55rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .grid-4 { grid-template-columns: 1fr; }
  .asset-grid { grid-template-columns: 1fr; }
  .heatmap-grid { grid-template-columns: repeat(2, 1fr); gap: 9px; }
  .filter-group { flex: 1 1 100%; min-width: 0; max-width: 100%; }
  .mini-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .kpi-grid, .market-kpis { grid-template-columns: 1fr; }
  .tv-widget-card { height: 88vw; min-height: 320px; max-height: 440px; }
  .market-main-price { font-size: 1.8rem; }
  .event-item { grid-template-columns: 1fr; }
  .event-item > div:last-child { justify-self: flex-start; }
  .asset-price { font-size: 1.35rem; }
  .section-head h2 { font-size: 1.1rem; }
  .page-title { font-size: 1.6rem; }
  .btn { font-size: .86rem; }
  .btn-sm { font-size: .8rem; padding: 8px 12px; }
  .heatmap-cell { padding: 11px; min-height: 82px; }
  .heatmap-cell strong { font-size: .88rem; }
  .section-head { flex-direction: row; align-items: flex-start; }
  .movers-grid { grid-template-columns: 1fr; }
}

/* --- 360px --- */
@media (max-width: 360px) {
  .hero h1 { font-size: 1.35rem; }
  .heatmap-grid { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .brand img, .brand-footer img { width: 32px; height: 32px; }
}

/* ---- Utility ---- */
.site-shell { display: flex; flex-direction: column; min-height: 100vh; }
.site-shell > main { flex: 1; padding-top: 70px; }

/* =============================================
   BLOOMBERG-STYLE HEATMAP
   ============================================= */
.heatmap-bloomberg {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 6px;
}
.heatmap-cell-bm {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 14px 8px; border-radius: 12px;
  text-align: center; transition: all .18s;
  border: 1px solid transparent; cursor: pointer;
  min-height: 90px; gap: 4px;
}
.heatmap-cell-bm:hover { transform: translateY(-2px) scale(1.03); filter: brightness(1.12); z-index: 1; position: relative; }
.hm-symbol { font-size: .88rem; font-weight: 800; letter-spacing: .03em; }
.hm-change { font-size: 1.05rem; font-weight: 900; }
.hm-price  { font-size: .72rem; opacity: .75; margin-top: 2px; }

/* Size modifiers */
.hm-large  { min-height: 120px; padding: 18px 10px; }
.hm-large  .hm-symbol { font-size: 1rem; }
.hm-large  .hm-change { font-size: 1.25rem; }
.hm-medium { min-height: 100px; }
.hm-small  { min-height: 80px; }
.hm-small  .hm-change { font-size: .9rem; }

/* Color scale — RED */
.hm-red3 {
  background: linear-gradient(145deg, #7f1d1d, #991b1b);
  color: #fecaca; border-color: #b91c1c;
}
.hm-red2 {
  background: linear-gradient(145deg, #991b1b, #b91c1c);
  color: #fca5a5; border-color: #dc2626;
}
.hm-red1 {
  background: linear-gradient(145deg, #450a0a, #7f1d1d);
  color: #fca5a5; border-color: rgba(220,38,38,.4);
}
/* Color scale — NEUTRAL */
.hm-neutral {
  background: linear-gradient(145deg, #1e293b, #0f172a);
  color: #94a3b8; border-color: rgba(148,163,184,.2);
}
/* Color scale — GREEN */
.hm-green1 {
  background: linear-gradient(145deg, #052e16, #14532d);
  color: #86efac; border-color: rgba(34,197,94,.35);
}
.hm-green2 {
  background: linear-gradient(145deg, #14532d, #15803d);
  color: #4ade80; border-color: #16a34a;
}
.hm-green3 {
  background: linear-gradient(145deg, #15803d, #16a34a);
  color: #bbf7d0; border-color: #22c55e;
}

/* Legend bar */
.heatmap-legend {
  display: flex; flex-wrap: wrap; gap: 6px;
  align-items: center; margin-bottom: 14px;
}
.legend-item {
  padding: 5px 10px; border-radius: 8px;
  font-size: .72rem; font-weight: 700;
  border: 1px solid transparent;
}
.legend-item.hm-red3   { background: #7f1d1d; color: #fecaca; border-color: #b91c1c; }
.legend-item.hm-red2   { background: #991b1b; color: #fca5a5; border-color: #dc2626; }
.legend-item.hm-red1   { background: #450a0a; color: #fca5a5; border-color: rgba(220,38,38,.3); }
.legend-item.hm-neutral{ background: #1e293b; color: #94a3b8; border-color: rgba(148,163,184,.2); }
.legend-item.hm-green1 { background: #052e16; color: #86efac; border-color: rgba(34,197,94,.3); }
.legend-item.hm-green2 { background: #14532d; color: #4ade80; border-color: #16a34a; }
.legend-item.hm-green3 { background: #15803d; color: #bbf7d0; border-color: #22c55e; }

@media (max-width: 768px) {
  .heatmap-bloomberg { grid-template-columns: repeat(auto-fill, minmax(95px, 1fr)); gap: 5px; }
  .heatmap-cell-bm { min-height: 76px; padding: 10px 6px; border-radius: 10px; }
  .hm-large { min-height: 96px; }
  .hm-symbol { font-size: .78rem; }
  .hm-change { font-size: .9rem; }
  .hm-price  { font-size: .65rem; }
  .legend-item { font-size: .65rem; padding: 4px 8px; }
}
@media (max-width: 480px) {
  .heatmap-bloomberg { grid-template-columns: repeat(3, 1fr); gap: 4px; }
  .heatmap-cell-bm { min-height: 68px; padding: 8px 4px; }
}

/* =============================================
   EXTRA WIDGETS SECTION
   ============================================= */
.widgets-section { padding: 24px 0; }
.widget-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
}
.widget-card {
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.025));
  border: 1px solid var(--line); border-radius: 22px;
  overflow: hidden; min-height: 220px; position: relative;
}
.widget-card-header {
  padding: 14px 18px 10px;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 10px;
}
.widget-card-header h3 { margin: 0; font-size: 1rem; }
.widget-card-body { padding: 0; height: 220px; position: relative; }
.widget-card-body iframe { border: none; width: 100%; height: 100%; }

/* Fear & Greed index widget */
.fear-greed-widget {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 24px; text-align: center; gap: 10px;
}
.fg-value { font-size: 3rem; font-weight: 900; }
.fg-label { font-size: 1rem; font-weight: 700; }
.fg-gauge {
  width: 100%; height: 8px; border-radius: 999px;
  background: linear-gradient(90deg, #dc2626, #f97316, #eab308, #22c55e);
  position: relative; margin: 6px 0;
}
.fg-needle {
  position: absolute; top: -4px;
  width: 16px; height: 16px; border-radius: 50%;
  background: #fff; border: 2px solid #000;
  transform: translateX(-50%);
  transition: left .5s ease;
}
.fg-meta { color: var(--muted); font-size: .82rem; }

@media (max-width: 768px) {
  .widget-grid { grid-template-columns: 1fr; }
}

/* =============================================
   ECONOMIC CALENDAR EXTRA STYLES
   ============================================= */
.cal-date-nav {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-bottom: 14px;
}
.cal-date-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 8px 14px; border-radius: 12px;
  background: rgba(255,255,255,.04); border: 1px solid var(--line);
  color: var(--muted); font-size: .82rem; font-weight: 600;
  transition: .18s; cursor: pointer;
}
.cal-date-btn:hover { color: var(--text); border-color: rgba(255,255,255,.2); }
.cal-date-btn.active { background: rgba(0,255,65,.1); border-color: rgba(69,202,210,.28); color: var(--primary); }
.cal-date-btn.today-btn { border-color: rgba(0,255,65,.2); }
.today-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--primary); display: inline-block;
}
.cal-date-separator {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0 4px; color: var(--muted);
  font-size: .82rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  border-top: 1px solid var(--line); margin-top: 4px;
}
.cal-date-separator:first-child { border-top: none; margin-top: 0; }
.today-badge {
  padding: 3px 8px; border-radius: 999px;
  background: rgba(69,202,210,.14); border: 1px solid rgba(69,202,210,.28);
  color: var(--primary); font-size: .7rem;
}
.cal-ccy {
  display: inline-flex; padding: 2px 6px; border-radius: 6px;
  background: rgba(0,255,65,.06); border: 1px solid rgba(0,255,65,.14);
  color: var(--primary); font-size: .75rem; margin-left: 5px;
}
.cal-vals { margin-left: 8px; font-size: .82rem; color: var(--muted); }
.cal-vals strong { color: var(--text); }

@media (max-width: 480px) {
  .cal-date-nav { gap: 4px; }
  .cal-date-btn { padding: 6px 10px; font-size: .75rem; }
}


/* =============================================
   TICKER TAPE — универсальный, полная высота
   iframe НЕ обрезается, НЕ скроллится
   ============================================= */
.esfx-ticker {
  display: block;
  width: 100%;
  height: 46px;
  background: rgba(0,0,0,.28);
  border-bottom: 1px solid var(--line);
  overflow: visible; /* НЕ hidden — чтобы iframe не обрезался */
}
.esfx-ticker__inner {
  position: relative;
  width: 100%;
  height: 46px;
}
.esfx-ticker .tradingview-widget-container__widget {
  width: 100% !important;
  height: 46px !important;
  display: block !important;
}
.esfx-ticker iframe {
  display: block !important;
  width:  100% !important;
  height: 46px !important;
  border: none !important;
}

/* Widget card responsive */
@media (max-width: 900px) {
  .widget-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .widget-card-body { height: 220px !important; }
  .widget-card-header h3 { font-size: .88rem; }
}


/* =============================================
   APP STORE BUTTONS — store-btn
   Used in: header nav, footer, index hero section
   ============================================= */

/* --- NAV app buttons (compact, icon + text) --- */
.nav-app-btns {
  display: flex; gap: 6px; align-items: center;
  padding: 6px 0; flex-wrap: wrap;
}
.nav-app-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 11px; border-radius: 12px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  color: var(--text); font-size: .78rem; font-weight: 600;
  transition: .2s; white-space: nowrap;
}
.nav-app-btn:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.2);
  transform: translateY(-1px);
}
.nav-app-btn svg { flex-shrink: 0; opacity: .85; }

/* --- STORE BUTTON — full pill style (footer + index) --- */
.store-btn {
  display: inline-flex; align-items: center; gap: 11px;
  padding: 10px 18px; border-radius: 14px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.14);
  color: var(--text);
  transition: all .22s; cursor: pointer;
  text-decoration: none;
}
.store-btn:hover {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.25);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
}
.store-btn__icon {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 10px;
  flex-shrink: 0;
}
.store-ios .store-btn__icon  { background: #000; }
.store-google .store-btn__icon { background: #fff; }
.store-google .store-btn__icon svg { color: #3ddc84; }
.store-btn__text {
  display: flex; flex-direction: column; gap: 1px; line-height: 1.2;
}
.store-btn__sub  { font-size: .69rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.store-btn__name { font-size: .95rem; font-weight: 700; }

/* --- FOOTER app buttons --- */
.footer-app-label {
  font-size: .75rem; color: var(--muted);
  text-transform: uppercase; letter-spacing: .07em;
  margin: 0 0 8px; font-weight: 600;
}
.footer-app-row { display: flex; gap: 10px; flex-wrap: wrap; }

/* --- INDEX download section --- */
.app-download-section { padding: 20px 0; }
.app-download-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px; align-items: center;
  background: linear-gradient(135deg,
    rgba(0,255,65,.06) 0%,
    rgba(255,255,255,.04) 50%,
    rgba(0,200,83,.04) 100%);
  border: 1px solid rgba(69,202,210,.20);
  border-radius: 28px;
  padding: 36px 40px;
  position: relative; overflow: hidden;
}
.app-download-card::before {
  content: '';
  position: absolute; top: -60px; right: -60px;
  width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,255,65,.1), transparent 70%);
  pointer-events: none;
}
.app-download-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  margin: 8px 0 4px; letter-spacing: -.02em;
}
.app-download-desc { font-size: .95rem; margin: 0 0 20px; }
.app-store-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* Phone mockup illustration */
.app-download-visual { flex-shrink: 0; }
.app-phone-mockup {
  width: 140px; height: 240px;
  background: linear-gradient(180deg, #0d1520, #0a101a);
  border-radius: 26px;
  border: 2px solid rgba(0,255,65,.25);
  box-shadow: 0 20px 60px rgba(0,0,0,.6), 0 0 0 1px rgba(0,0,0,.4),
              inset 0 0 0 1px rgba(255,255,255,.05);
  padding: 14px 10px 10px;
  display: flex; flex-direction: column; gap: 8px;
  position: relative;
}
.app-phone-mockup::before {
  content: ''; position: absolute;
  top: 8px; left: 50%; transform: translateX(-50%);
  width: 36px; height: 4px; border-radius: 999px;
  background: rgba(255,255,255,.12);
}
.app-phone-screen { display: flex; flex-direction: column; gap: 7px; flex: 1; padding-top: 6px; }
.app-phone-bar {
  height: 5px; border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: .7;
}
.app-phone-line {
  height: 5px; border-radius: 999px;
  background: rgba(255,255,255,.1);
}
.app-phone-line.short { width: 65%; }
.app-phone-chart {
  flex: 1; border-radius: 10px;
  background: rgba(0,255,65,.04);
  border: 1px solid rgba(0,255,65,.1);
  overflow: hidden; padding: 6px 4px 4px;
  min-height: 60px;
}
.app-phone-chart svg { width: 100%; height: 100%; display: block; }
.app-phone-pills {
  display: flex; flex-wrap: wrap; gap: 4px;
}
.app-phone-pills span {
  padding: 2px 6px; border-radius: 6px;
  font-size: .52rem; font-weight: 700;
  background: rgba(69,202,210,.14);
  color: var(--primary); border: 1px solid rgba(0,255,65,.2);
}

/* Responsive */
@media (max-width: 900px) {
  .nav-app-btns { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 4px; }
  .nav-app-btn { flex: 1; justify-content: center; }
}
@media (max-width: 768px) {
  .app-download-card {
    grid-template-columns: 1fr;
    padding: 24px 20px; gap: 20px;
  }
  .app-download-visual { display: none; }
  .app-store-row { flex-direction: column; }
  .store-btn { justify-content: center; }
}
@media (max-width: 480px) {
  .footer-app-row { flex-direction: column; }
  .footer-app-row .store-btn { justify-content: flex-start; }
  .nav-app-btn span { display: none; }
  .nav-app-btn { padding: 8px; border-radius: 10px; }
}

/* ---- Products ---- */
.product-card { display:flex; flex-direction:column; gap:12px; }
.product-card .thumb { border-radius:18px; aspect-ratio: 16/10; object-fit:cover; width:100%; background:rgba(255,255,255,.04); }
.product-card__badges { display:flex; gap:8px; flex-wrap:wrap; align-items:center; }
.chip { display:inline-flex; align-items:center; justify-content:center; padding:6px 10px; border-radius:999px; border:1px solid var(--line); color:var(--muted); background:rgba(255,255,255,.04); font-size:.8rem; }
.product-card__footer { margin-top:auto; display:flex; align-items:center; justify-content:space-between; gap:14px; }
.product-price { font-size:1.2rem; font-weight:800; color:var(--primary); }
.product-price--large { font-size:2rem; }
.products-hero-grid { grid-template-columns: 1.1fr .9fr; }
.product-hero-side { display:flex; align-items:center; }
.product-detail-grid { display:grid; grid-template-columns: 1.08fr .92fr; gap:18px; align-items:start; }
.product-gallery-main { border-radius:22px; overflow:hidden; background:rgba(255,255,255,.04); border:1px solid var(--line); }
.product-gallery-main img { width:100%; aspect-ratio:16/10; object-fit:cover; }
.product-thumbs { display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap:10px; margin-top:12px; }
.product-thumb { border:1px solid var(--line); background:rgba(255,255,255,.03); border-radius:16px; padding:0; overflow:hidden; cursor:pointer; }
.product-thumb img { width:100%; aspect-ratio:16/10; object-fit:cover; }
.product-thumb.active { border-color: rgba(69,202,210,.6); box-shadow: 0 0 0 2px rgba(69,202,210,.2); }
.product-video-wrap { margin-top:16px; }
.video-frame { border-radius:22px; overflow:hidden; border:1px solid var(--line); background:#000; aspect-ratio:16/9; }
.video-frame iframe { width:100%; height:100%; border:0; }
.product-price-box { display:grid; gap:6px; padding:18px; border-radius:22px; background:linear-gradient(180deg, rgba(69,202,210,.10), rgba(255,255,255,.03)); border:1px solid rgba(69,202,210,.18); margin:18px 0; }
.product-buy-actions { display:flex; gap:10px; flex-wrap:wrap; margin-bottom:18px; }
.product-specs { display:grid; gap:10px; }
.spec-item { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:14px 16px; border-radius:16px; background:rgba(255,255,255,.04); border:1px solid var(--line); }
.spec-item span { color:var(--muted); font-size:.88rem; }
.prose-light, .prose-light p, .prose-light li { color: var(--muted); line-height:1.8; }
.prose-light ul { padding-left:18px; }
@media (max-width: 980px) {
  .product-detail-grid, .products-hero-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .product-card__footer { flex-direction:column; align-items:stretch; }
  .product-thumbs { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

/* === FT10 Auth & Profile === */
.auth-section{padding-top:36px;padding-bottom:72px}.auth-container{max-width:680px}.auth-card{padding:28px;border:1px solid rgba(120,170,255,.16);background:linear-gradient(180deg,rgba(7,16,36,.95),rgba(7,12,28,.92))}.auth-form{display:grid;gap:14px}.auth-form label{display:grid;gap:8px;color:#dbe7ff;font-size:.95rem}.auth-form input{width:100%;border-radius:14px;border:1px solid rgba(120,170,255,.16);background:rgba(11,18,36,.88);color:#fff;padding:14px 16px;outline:none}.auth-form input:focus{border-color:rgba(74,222,255,.6);box-shadow:0 0 0 3px rgba(74,222,255,.12)}.auth-divider{position:relative;text-align:center;margin:18px 0;color:#8ea1c8}.auth-divider:before{content:"";position:absolute;left:0;right:0;top:50%;height:1px;background:rgba(140,165,230,.18)}.auth-divider span{position:relative;display:inline-block;padding:0 10px;background:#091224}.social-auth-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.social-auth-btn{display:flex;align-items:center;justify-content:center;gap:10px;border-radius:14px;border:1px solid rgba(120,170,255,.16);padding:14px 16px;background:rgba(13,21,42,.7);color:#eff6ff;text-decoration:none}.social-auth-btn strong{font-size:1.2rem}.social-auth-btn.is-disabled{opacity:.5;pointer-events:none}.auth-note{margin-top:12px;color:#8ea1c8;font-size:.88rem}.auth-alert{padding:14px 16px;border-radius:14px;margin:0 0 16px}.auth-alert--error{background:rgba(127,29,29,.3);border:1px solid rgba(239,68,68,.35);color:#fecaca}.auth-alert--success{background:rgba(6,95,70,.25);border:1px solid rgba(45,212,191,.25);color:#ccfbf1}.auth-alert--info{background:rgba(30,64,175,.22);border:1px solid rgba(96,165,250,.25);color:#dbeafe}.auth-footer-link{margin-top:18px;color:#9fb0d4}.auth-footer-link a{color:#67e8f9;text-decoration:none}.profile-section{padding-top:28px}.profile-grid{display:grid;grid-template-columns:320px minmax(0,1fr);gap:20px;align-items:start}.profile-sidebar,.profile-card{padding:24px}.profile-avatar{width:72px;height:72px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(135deg,#06b6d4,#2563eb);color:#fff;font-size:1.75rem;font-weight:800;margin-bottom:16px}.profile-badges{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0 18px}.chip-status--paid,.chip-status--completed{background:rgba(6,95,70,.35);color:#ccfbf1}.chip-status--pending{background:rgba(120,53,15,.35);color:#fed7aa}.orders-table-wrap{overflow:auto}.orders-table{width:100%;border-collapse:collapse}.orders-table th,.orders-table td{padding:12px 10px;border-bottom:1px solid rgba(128,146,190,.14);text-align:left;color:#e6eefc}.orders-table th{font-size:.82rem;color:#9fb0d4;text-transform:uppercase;letter-spacing:.08em}.auth-form--inline{grid-template-columns:repeat(2,minmax(0,1fr));align-items:end}.auth-form--inline label:last-of-type{grid-column:1/-1}.auth-form--inline button{width:max-content}.profile-owned-card{padding:0;overflow:hidden}.profile-owned-card img{width:100%;aspect-ratio:16/9;object-fit:cover;display:block}.profile-owned-card .product-card__body{padding:18px}.profile-owned-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}.product-buy-form{display:inline}.site-nav .btn.btn-secondary.btn-sm{border-color:rgba(122,174,255,.24)}
@media (max-width: 980px){.profile-grid{grid-template-columns:1fr}.auth-form--inline{grid-template-columns:1fr}.social-auth-grid{grid-template-columns:1fr}}


/* === FT10 UI Polish Pack === */
.products-hero .hero-card,
.auth-card--premium,
.product-summary--premium,
.product-description-card--premium,
.profile-sidebar,
.profile-card,
.product-card--catalog {
  border: 1px solid rgba(124, 154, 255, .14);
  background:
    radial-gradient(circle at top right, rgba(69,202,210,.10), transparent 30%),
    linear-gradient(180deg, rgba(10,17,34,.96), rgba(7,11,24,.94));
  box-shadow: 0 20px 60px rgba(2, 8, 23, .38);
}
.products-shell,
.product-shell,
.auth-layout,
.profile-shell .container { position: relative; }
.products-filter-bar {
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(124,154,255,.14);
  background: linear-gradient(180deg, rgba(8,15,31,.92), rgba(8,13,28,.9));
  gap: 16px;
}
.products-filter-bar .filter-group input,
.products-filter-bar .filter-group select,
.auth-form input {
  min-height: 52px;
  border-radius: 16px;
}
.products-grid { gap: 20px; align-items: stretch; }
.product-card--catalog {
  padding: 16px;
  border-radius: 24px;
  gap: 14px;
  overflow: hidden;
  transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}
.product-card--catalog:hover {
  transform: translateY(-4px);
  border-color: rgba(69,202,210,.35);
  box-shadow: 0 24px 60px rgba(0,0,0,.34), 0 0 0 1px rgba(69,202,210,.08) inset;
}
.product-card--catalog .thumb {
  border-radius: 20px;
  aspect-ratio: 16/10;
}
.product-card--catalog h3 { margin: 0; font-size: 1.15rem; line-height: 1.35; }
.product-card--catalog h3 a { color: #f5f9ff; text-decoration: none; }
.product-card--catalog p { margin: 0; color: #95a6c9; line-height: 1.65; }
.product-card__footer { padding-top: 6px; }
.product-page .product-shell { display: grid; gap: 18px; }
.product-detail-grid--premium { gap: 24px; }
.product-gallery--premium,
.product-summary--premium,
.product-description-card--premium { border-radius: 28px; }
.product-gallery-main {
  position: relative;
  border-radius: 28px;
  box-shadow: 0 18px 50px rgba(0,0,0,.28);
}
.product-gallery-main img { aspect-ratio: 16/10; }
.product-thumb {
  border-radius: 18px;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.product-thumb:hover { transform: translateY(-2px); }
.product-summary--premium {
  padding: 24px;
  position: sticky;
  top: 92px;
}
.product-price-box { border-radius: 24px; }
.product-buy-actions .btn,
.product-buy-form .btn { min-height: 52px; min-width: 180px; justify-content: center; }
.product-specs { gap: 12px; }
.spec-item {
  min-height: 62px;
  border-radius: 18px;
}
.auth-shell { padding-top: 28px; padding-bottom: 72px; }
.auth-layout--single { max-width: 760px; }
.auth-card--premium {
  padding: 34px;
  border-radius: 28px;
}
.auth-title { margin-bottom: 8px; }
.auth-lead { max-width: 560px; }
.auth-form--stacked { gap: 16px; }
.auth-form--split {
  grid-template-columns: repeat(2, minmax(0,1fr));
}
.auth-form--split label:nth-child(1),
.auth-form--split label:nth-child(2),
.auth-form--split label:nth-child(5),
.auth-form--split button { grid-column: 1 / -1; }
.auth-form button { min-height: 54px; }
.social-auth-grid { margin-top: 4px; }
.social-auth-btn {
  justify-content: flex-start;
  min-height: 60px;
  padding: 14px 16px;
  border-radius: 18px;
  transition: transform .2s ease, border-color .2s ease, background .2s ease, opacity .2s ease;
}
.social-auth-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(69,202,210,.28);
  background: rgba(14,24,48,.92);
}
.social-auth-btn.is-disabled { opacity: .58; }
.social-auth-icon {
  width: 40px; height: 40px; flex: 0 0 40px;
  border-radius: 12px; display: grid; place-items: center;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
}
.social-auth-btn--apple .social-auth-icon { background: rgba(255,255,255,.08); }
.social-auth-text { display: grid; gap: 2px; }
.social-auth-text strong {
  font-size: .98rem;
  line-height: 1.1;
  color: #f8fbff;
}
.social-auth-text small {
  color: #95a6c9;
  font-size: .78rem;
}
.auth-note code {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
}
.profile-shell { padding-top: 24px; }
.profile-grid { gap: 24px; }
.profile-sidebar--sticky {
  position: sticky;
  top: 92px;
  border-radius: 28px;
}
.profile-main--stack { display: grid; gap: 18px; }
.profile-card { border-radius: 28px; }
.profile-card .section-head { margin-bottom: 18px; }
.profile-badges .chip { min-height: 34px; }
.orders-table-wrap {
  border-radius: 20px;
  border: 1px solid rgba(124,154,255,.12);
  overflow: auto;
}
.orders-table { min-width: 720px; }
.orders-table th { white-space: nowrap; }
.orders-table td a { color: #9defff; text-decoration: none; }
.profile-owned-card {
  border-radius: 24px;
  border: 1px solid rgba(124,154,255,.14);
  background: linear-gradient(180deg, rgba(12,18,36,.94), rgba(8,13,28,.92));
}
.profile-owned-card .product-card__body {
  display: grid;
  gap: 10px;
}
.profile-owned-actions .btn { min-height: 44px; }
@media (max-width: 1100px) {
  .product-summary--premium,
  .profile-sidebar--sticky { position: static; top: auto; }
}
@media (max-width: 980px) {
  .products-filter-bar { grid-template-columns: 1fr 1fr; }
  .products-filter-bar .filter-actions,
  .products-filter-bar .count-badge { grid-column: 1 / -1; }
  .auth-form--split { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .product-card--catalog,
  .auth-card--premium,
  .profile-sidebar,
  .profile-card,
  .product-summary--premium,
  .product-description-card--premium { border-radius: 22px; }
  .products-filter-bar { padding: 14px; grid-template-columns: 1fr; }
  .products-grid { gap: 16px; }
  .product-detail-grid--premium { gap: 18px; }
  .product-summary--premium { padding: 18px; }
  .product-gallery-main,
  .video-frame { border-radius: 22px; }
  .product-thumbs { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .product-buy-actions .btn,
  .product-buy-form .btn { width: 100%; min-width: 0; }
  .social-auth-grid { grid-template-columns: 1fr; }
  .auth-card--premium { padding: 22px; }
  .orders-table { min-width: 640px; }
}
@media (max-width: 560px) {
  .products-hero .hero-card { padding: 20px; }
  .product-card--catalog { padding: 12px; }
  .product-card--catalog .thumb { border-radius: 16px; }
  .product-thumbs { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .social-auth-btn { min-height: 56px; padding: 12px 14px; }
  .social-auth-icon { width: 36px; height: 36px; flex-basis: 36px; }
  .orders-table { min-width: 560px; }
}


.product-zoom-trigger{display:block;width:100%;padding:0;border:0;background:transparent;cursor:zoom-in}
.product-gallery-main{position:relative}
.product-gallery-main::after{content:'Zoom';position:absolute;right:14px;bottom:14px;padding:7px 10px;border-radius:999px;background:rgba(7,14,26,.72);border:1px solid rgba(120,170,255,.18);color:#eef6ff;font-size:.76rem;letter-spacing:.04em;pointer-events:none}
.product-video-wrap .video-frame{position:relative;border-radius:20px;overflow:hidden;border:1px solid var(--line);background:rgba(9,14,26,.92);aspect-ratio:16/9}
.product-video-wrap .video-frame iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.product-lightbox[hidden]{display:none}
.product-lightbox{position:fixed;inset:0;z-index:1200;display:grid;place-items:center;padding:24px}
.product-lightbox__backdrop{position:absolute;inset:0;border:0;background:rgba(2,8,23,.82)}
.product-lightbox__dialog{position:relative;z-index:1;max-width:min(1100px,92vw);max-height:88vh;padding:18px;border-radius:26px;background:rgba(7,14,26,.96);border:1px solid rgba(120,170,255,.16);box-shadow:0 30px 80px rgba(0,0,0,.55)}
.product-lightbox__dialog img{display:block;max-width:min(1060px,88vw);max-height:80vh;border-radius:18px;object-fit:contain}
.product-lightbox__close{position:absolute;top:10px;right:10px;width:42px;height:42px;border-radius:50%;border:1px solid rgba(255,255,255,.16);background:rgba(15,23,42,.9);color:#fff;font-size:1.5rem;cursor:pointer}
body.lightbox-open{overflow:hidden}
.admin-main .table img{background:#08101f}
@media (max-width: 720px){.product-lightbox{padding:12px}.product-lightbox__dialog{padding:10px;border-radius:20px}.product-lightbox__dialog img{max-width:92vw;max-height:76vh}.product-gallery-main::after{right:10px;bottom:10px;font-size:.7rem;padding:6px 9px}}


/* FT10 checkout/profile responsive polish */
.checkout-container{max-width:1240px}
.checkout-shell{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(300px,.55fr);gap:24px;align-items:start}
.checkout-main-card{padding:18px;overflow:hidden}
.checkout-frame-wrap{position:relative;border:1px solid rgba(255,255,255,.09);border-radius:24px;overflow:hidden;background:rgba(2,8,20,.72);box-shadow:inset 0 1px 0 rgba(255,255,255,.03)}
.checkout-loader{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:linear-gradient(180deg, rgba(3,10,24,.82), rgba(2,8,20,.92));z-index:2;padding:22px;text-align:center}
.checkout-iframe{display:block;width:100%;height:min(76vh,920px);min-height:660px;border:0;background:#07101d}
.checkout-sidebar{padding:22px;position:sticky;top:94px}
.checkout-summary-grid{margin-bottom:14px}
.checkout-actions{display:grid;gap:10px}
.checkout-actions .btn{width:100%;justify-content:center}
.checkout-note{margin-top:12px}
.profile-main--stack{display:grid;gap:18px}
.profile-owned-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.profile-owned-card{display:grid;grid-template-columns:160px minmax(0,1fr);align-items:stretch;min-height:160px;border:1px solid rgba(120,170,255,.14);background:linear-gradient(180deg,rgba(8,15,31,.95),rgba(7,12,26,.92))}
.profile-owned-card img{width:100%;height:100%;aspect-ratio:auto;min-height:160px;object-fit:cover}
.profile-owned-card .product-card__body{padding:16px;display:flex;flex-direction:column;gap:10px;min-width:0}
.profile-owned-card h3{margin:0;font-size:1.05rem;line-height:1.35}
.profile-owned-card .muted{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.profile-owned-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:auto}
.profile-owned-actions .btn{min-width:0}
.orders-table td,.orders-table th{vertical-align:top}
@media (max-width: 1080px){
  .checkout-shell{grid-template-columns:1fr}
  .checkout-sidebar{position:static;top:auto}
  .checkout-iframe{height:72vh;min-height:620px}
  .profile-grid{grid-template-columns:1fr}
}
@media (max-width: 820px){
  .checkout-main-card,.checkout-sidebar{padding:16px}
  .checkout-iframe{height:70vh;min-height:560px}
  .profile-owned-grid{grid-template-columns:1fr}
  .profile-owned-card{grid-template-columns:120px minmax(0,1fr);min-height:120px}
  .profile-owned-card img{min-height:120px}
}
@media (max-width: 640px){
  .checkout-container{padding-left:14px;padding-right:14px}
  .checkout-shell{gap:16px}
  .checkout-main-card,.checkout-sidebar{padding:14px;border-radius:20px}
  .checkout-iframe{height:68vh;min-height:500px}
  .checkout-summary-grid{grid-template-columns:1fr 1fr}
  .profile-sidebar,.profile-card{padding:18px}
  .profile-owned-card{grid-template-columns:1fr}
  .profile-owned-card img{width:100%;min-height:180px;max-height:220px}
  .profile-owned-actions .btn{flex:1 1 100%}
  .orders-table{min-width:520px}
}
@media (max-width: 420px){
  .checkout-iframe{min-height:460px}
  .checkout-summary-grid{grid-template-columns:1fr}
}


/* FT10 mobile checkout/profile hard-fix */
.checkout-page .page-title{line-height:1.12}
.checkout-page .auth-lead{max-width:58ch}
.checkout-main-card .section-head{gap:12px}
.checkout-meta-list{display:grid;grid-template-columns:1fr;gap:12px;margin:18px 0 14px}
.checkout-meta-item{display:grid;gap:7px;padding:14px 16px;border-radius:18px;border:1px solid rgba(120,170,255,.14);background:linear-gradient(180deg,rgba(12,20,36,.86),rgba(7,13,26,.9));min-width:0}
.checkout-meta-label{font-size:.78rem;letter-spacing:.08em;text-transform:uppercase;color:#9fb0d4}
.checkout-meta-value{font-size:1rem;line-height:1.45;color:#f3f8ff;word-break:break-word;overflow-wrap:anywhere}
.checkout-meta-value .chip{display:inline-flex;max-width:100%}
.checkout-sidebar h2{line-height:1.25;word-break:break-word}
.checkout-iframe{border-radius:0}
.checkout-actions .btn{min-height:48px}
.profile-sidebar .btn{width:100%;justify-content:center}
.profile-owned-grid{align-items:stretch}
.profile-owned-card h3,.profile-owned-card .muted,.profile-owned-card .product-card__badges{min-width:0}
.profile-owned-card .product-card__badges{display:flex;gap:8px;flex-wrap:wrap}
.profile-owned-card .chip,.profile-owned-card .eyebrow{max-width:100%;overflow-wrap:anywhere}
.orders-table td{word-break:break-word;overflow-wrap:anywhere}
@media (max-width: 900px){
  .checkout-shell{gap:18px}
  .checkout-sidebar{padding:18px}
  .checkout-main-card{padding:16px}
}
@media (max-width: 640px){
  .checkout-page{padding-top:8px}
  .checkout-main-card .section-head{margin-bottom:10px!important}
  .checkout-page .auth-title{font-size:1.6rem!important}
  .checkout-page .auth-lead{font-size:.96rem;line-height:1.55}
  .checkout-frame-wrap{border-radius:18px}
  .checkout-main-card,.checkout-sidebar{padding:16px;border-radius:18px}
  .checkout-meta-list{gap:10px;margin-top:14px}
  .checkout-meta-item{padding:12px 14px;border-radius:16px}
  .checkout-meta-value{font-size:.96rem;line-height:1.5}
  .checkout-iframe{height:72vh;min-height:540px}
  .checkout-actions{grid-template-columns:1fr}
  .checkout-note{font-size:.9rem;line-height:1.55}
  .profile-grid{gap:16px}
  .profile-sidebar,.profile-card{padding:16px}
  .profile-avatar{width:64px;height:64px;font-size:1.55rem}
  .profile-badges{gap:6px}
  .profile-owned-card{grid-template-columns:1fr!important;min-height:0;border-radius:20px;overflow:hidden}
  .profile-owned-card img{width:100%;height:auto;aspect-ratio:16/9;min-height:0!important;max-height:none!important}
  .profile-owned-card .product-card__body{padding:14px}
  .profile-owned-card h3{font-size:1rem;line-height:1.35}
  .profile-owned-actions{display:grid;grid-template-columns:1fr;gap:10px}
  .profile-owned-actions .btn{width:100%}
  .orders-table-wrap{border:none;overflow:visible}
  .orders-table,.orders-table thead,.orders-table tbody,.orders-table tr,.orders-table td{display:block;width:100%}
  .orders-table{min-width:0!important}
  .orders-table thead{display:none}
  .orders-table tbody{display:grid;gap:12px}
  .orders-table tr{padding:14px;border-radius:18px;border:1px solid rgba(124,154,255,.14);background:linear-gradient(180deg,rgba(12,18,36,.94),rgba(8,13,28,.92))}
  .orders-table td{padding:8px 0;border-bottom:1px solid rgba(128,146,190,.12)}
  .orders-table td:last-child{border-bottom:none;padding-bottom:0}
  .orders-table td::before{content:attr(data-label);display:block;margin-bottom:4px;color:#9fb0d4;font-size:.74rem;letter-spacing:.08em;text-transform:uppercase}
}
@media (max-width: 420px){
  .checkout-container{padding-left:12px;padding-right:12px}
  .checkout-main-card,.checkout-sidebar{padding:14px}
  .checkout-page .auth-title{font-size:1.42rem!important}
  .checkout-iframe{height:70vh;min-height:500px}
  .checkout-meta-label{font-size:.72rem}
  .checkout-meta-value{font-size:.92rem}
}

/* Payment success */
.payment-success-page {
  padding-top: 36px;
}
.payment-success-container {
  max-width: 860px;
}
.payment-success-card {
  text-align: center;
  padding: 34px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(11,20,34,.96), rgba(7,14,25,.98));
  border: 1px solid rgba(127,231,255,.14);
  box-shadow: 0 28px 80px rgba(0,0,0,.34);
}
.payment-success-icon {
  width: 84px;
  height: 84px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 38px;
  font-weight: 800;
  color: #03111d;
  background: linear-gradient(135deg, #7fe7ff, #34c3ff);
  box-shadow: 0 12px 35px rgba(52,195,255,.32);
}
.payment-success-title {
  margin-top: 12px;
  margin-bottom: 12px;
}
.payment-success-lead {
  max-width: 620px;
  margin: 0 auto 22px;
}
.payment-success-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 26px 0;
  text-align: left;
}
.payment-success-item {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  min-width: 0;
}
.payment-success-item span {
  display: block;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(224,233,255,.7);
  margin-bottom: 8px;
}
.payment-success-item strong {
  display: block;
  font-size: 16px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.payment-success-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
@media (max-width: 760px) {
  .payment-success-card {
    padding: 22px 16px;
    border-radius: 22px;
  }
  .payment-success-summary {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .payment-success-actions {
    flex-direction: column;
  }
  .payment-success-actions .btn {
    width: 100%;
  }
}


/* Profile v3 + wallet */
.profile-v3-shell{padding-top:28px;padding-bottom:72px}.profile-v3-grid{display:grid;grid-template-columns:minmax(300px,360px) minmax(0,1fr);gap:24px;align-items:start}.profile-v3-sidebar,.profile-v3-card,.payment-v3-main,.payment-v3-side{padding:24px;border-radius:28px;border:1px solid rgba(120,170,255,.14);background:linear-gradient(180deg,rgba(9,16,34,.96),rgba(7,12,27,.94));box-shadow:0 18px 60px rgba(0,0,0,.22)}.profile-v3-main{display:grid;gap:18px}.profile-v3-identity{display:grid;grid-template-columns:88px minmax(0,1fr);gap:16px;align-items:center;margin-bottom:18px}.profile-v3-avatar-image,.profile-v3-avatar-fallback{width:88px;height:88px;border-radius:24px;object-fit:cover;display:grid;place-items:center;background:linear-gradient(135deg,#06b6d4,#2563eb);color:#fff;font-size:2rem;font-weight:800;box-shadow:0 12px 34px rgba(37,99,235,.25)}.profile-v3-title{font-size:1.8rem;margin:0 0 6px}.profile-v3-email{margin:0}.profile-v3-stats{display:grid;gap:10px;margin-bottom:18px}.profile-v3-stat{display:flex;justify-content:space-between;gap:14px;padding:12px 14px;border-radius:16px;background:rgba(255,255,255,.03);border:1px solid rgba(126,154,255,.12)}.profile-v3-stat span,.profile-v3-order-row span,.payment-v3-fact span,.payment-v3-mini-list span{color:#91a5ca;font-size:.82rem;text-transform:uppercase;letter-spacing:.08em}.profile-v3-stat strong,.profile-v3-order-row strong,.payment-v3-fact strong,.payment-v3-mini-list strong{color:#f5fbff;overflow-wrap:anywhere}.profile-wallet-card{padding:18px;border-radius:24px;background:linear-gradient(160deg,rgba(7,18,35,.98),rgba(8,78,96,.18));border:1px solid rgba(72,222,255,.16)}.profile-wallet-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:10px}.profile-wallet-head h2{margin:4px 0 0;font-size:1.25rem}.profile-wallet-icon{width:48px;height:48px;border-radius:16px;display:grid;place-items:center;background:rgba(74,222,255,.14);color:#88f7ff;font-size:1.4rem;font-weight:800}.profile-wallet-balance{font-size:2.1rem;font-weight:800;line-height:1.1;color:#fff;margin-bottom:10px}.profile-wallet-balance small{font-size:1rem;color:#8df6ff}.profile-wallet-note{margin-bottom:16px}.profile-wallet-form{display:grid;gap:12px}.profile-wallet-form label,.profile-v3-form-grid label{display:grid;gap:8px;color:#dbe7ff}.profile-wallet-input-wrap{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center;padding:6px;border-radius:18px;border:1px solid rgba(120,170,255,.18);background:rgba(11,18,36,.8)}.profile-wallet-input-wrap input,.profile-v3-form-grid input{width:100%;border-radius:14px;border:1px solid rgba(120,170,255,.16);background:rgba(11,18,36,.88);color:#fff;padding:14px 16px;outline:none}.profile-wallet-input-wrap input{border:none;background:transparent;padding:10px 12px}.profile-wallet-input-wrap span{padding:0 12px;color:#8df6ff;font-weight:700}.profile-v3-logout{width:100%;justify-content:center;margin-top:16px}.profile-v3-head{margin-bottom:18px}.profile-v3-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-items:end}.profile-v3-form-grid--security{grid-template-columns:repeat(3,minmax(0,1fr))}.profile-v3-form-actions{grid-column:1/-1;display:flex;justify-content:flex-start}.profile-v3-products,.profile-v3-orders{display:grid;gap:16px}.profile-v3-product-card{display:grid;grid-template-columns:160px minmax(0,1fr);border-radius:24px;border:1px solid rgba(120,170,255,.14);overflow:hidden;background:linear-gradient(180deg,rgba(10,17,35,.96),rgba(7,12,26,.92))}.profile-v3-product-card img{width:100%;height:100%;min-height:160px;object-fit:cover}.profile-v3-product-body{padding:18px;display:flex;flex-direction:column;gap:10px;min-width:0}.profile-v3-product-body h3{margin:0;font-size:1.08rem}.profile-v3-product-body .muted{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.profile-v3-product-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:auto}.profile-v3-order-card{padding:18px;border-radius:22px;border:1px solid rgba(124,154,255,.14);background:linear-gradient(180deg,rgba(12,18,36,.94),rgba(8,13,28,.92));display:grid;gap:14px}.profile-v3-order-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 16px}.profile-v3-order-row{display:grid;gap:6px}.payment-v3-shell{padding-top:28px;padding-bottom:72px}.payment-v3-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(300px,.65fr);gap:22px;align-items:start}.payment-v3-main{display:grid;gap:18px}.payment-v3-topline{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}.payment-v3-title{margin:6px 0 10px}.payment-v3-lead{max-width:70ch}.payment-v3-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.payment-v3-fact{padding:16px;border-radius:18px;border:1px solid rgba(124,154,255,.12);background:rgba(255,255,255,.03);display:grid;gap:8px}.payment-v3-frame-wrap{padding:10px;border-radius:24px;border:1px solid rgba(122,174,255,.14);background:linear-gradient(180deg,rgba(8,15,31,.95),rgba(7,12,26,.92))}.payment-v3-frame{display:block;width:100%;min-height:780px;border:0;border-radius:18px;background:#07111c}.payment-v3-actions{display:flex;gap:12px;flex-wrap:wrap}.payment-v3-side{display:grid;gap:16px;position:sticky;top:110px}.payment-v3-side h2{margin:0;font-size:2rem}.payment-v3-mini-list{display:grid;gap:12px}.payment-v3-mini-list div{display:flex;justify-content:space-between;gap:12px;padding:12px 14px;border-radius:16px;background:rgba(255,255,255,.03);border:1px solid rgba(126,154,255,.12)}@media (max-width:1100px){.profile-v3-grid,.payment-v3-grid{grid-template-columns:1fr}.payment-v3-side{position:static;top:auto}.profile-v3-form-grid--security{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (max-width:820px){.profile-v3-sidebar,.profile-v3-card,.payment-v3-main,.payment-v3-side{padding:18px;border-radius:22px}.profile-v3-identity{grid-template-columns:72px minmax(0,1fr)}.profile-v3-avatar-image,.profile-v3-avatar-fallback{width:72px;height:72px;border-radius:20px}.profile-v3-title{font-size:1.45rem}.profile-v3-form-grid,.profile-v3-form-grid--security,.payment-v3-facts,.profile-v3-order-grid{grid-template-columns:1fr}.profile-v3-product-card{grid-template-columns:1fr}.profile-v3-product-card img{min-height:200px;max-height:240px}.payment-v3-frame{min-height:640px}}@media (max-width:560px){.profile-v3-shell,.payment-v3-shell{padding-top:18px;padding-bottom:56px}.profile-v3-grid{gap:16px}.profile-v3-sidebar,.profile-v3-card,.payment-v3-main,.payment-v3-side{padding:16px;border-radius:20px}.profile-v3-identity{grid-template-columns:1fr;justify-items:start}.profile-v3-avatar-image,.profile-v3-avatar-fallback{width:68px;height:68px;border-radius:18px}.profile-wallet-balance{font-size:1.8rem}.profile-wallet-input-wrap{grid-template-columns:1fr}.profile-wallet-input-wrap span{padding:0 12px 10px}.profile-v3-product-body{padding:14px}.profile-v3-product-actions,.payment-v3-actions{display:grid;grid-template-columns:1fr;gap:10px}.profile-v3-product-actions .btn,.payment-v3-actions .btn,.profile-wallet-form .btn,.profile-v3-form-actions .btn,.profile-v3-logout{width:100%}.payment-v3-topline{flex-direction:column;align-items:flex-start}.payment-v3-fact,.profile-v3-order-card{padding:14px}.payment-v3-frame{min-height:520px}.profile-v3-order-grid{gap:10px}.profile-v3-order-row strong{font-size:.96rem}}


/* ==== Header refinement fix ==== */
.site-header{
  background:rgba(6,10,18,.82);
  backdrop-filter:blur(18px);
  border-bottom:1px solid rgba(124,157,215,.10);
}
.header-inner{
  min-height:82px;
  gap:18px;
}
.brand{
  min-width:0;
  gap:12px;
}
.brand span{
  display:flex;
  flex-direction:column;
  gap:2px;
  font-size:1.05rem;
  letter-spacing:.01em;
}
.brand span::after{
  content:"Forex, Gold & Crypto Intelligence";
  font-size:.82rem;
  font-weight:500;
  color:var(--muted);
  letter-spacing:0;
}
.site-nav{
  margin-left:auto;
  min-width:0;
  flex:1 1 auto;
  justify-content:flex-end;
  gap:10px;
}
.site-nav > a{
  padding:10px 0;
  border-radius:0;
  background:transparent !important;
  position:relative;
  font-size:.95rem;
  color:#adbbd7;
}
.site-nav > a::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:-2px;
  height:2px;
  border-radius:999px;
  background:linear-gradient(90deg, rgba(113,255,228,.0), rgba(113,255,228,.9), rgba(103,179,255,.0));
  transform:scaleX(0);
  transform-origin:center;
  transition:transform .22s ease;
}
.site-nav > a:hover,
.site-nav > a.active{
  color:#f4f8ff;
}
.site-nav > a:hover::after,
.site-nav > a.active::after{
  transform:scaleX(1);
}
.lang-switcher{
  margin-left:10px;
  padding-left:10px;
  border-left:1px solid rgba(124,157,215,.12);
}
.lang-switcher a{
  width:42px;
  height:42px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0;
  border-radius:50%;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.06);
  font-size:.82rem;
}
.lang-switcher a.active{
  background:rgba(113,255,228,.12);
  color:#b9fff2;
  border-color:rgba(113,255,228,.28);
}
.site-nav > .btn, .site-nav > .header-profile-btn{margin-left:6px;}
.site-nav::before{
  content:"";
  position:absolute;
}
@media (min-width: 980px){
  .site-nav{
    position:relative;
  }
}
@media (max-width: 1180px){
  .header-inner{gap:14px;}
  .site-nav{gap:8px;}
  .site-nav > a{font-size:.91rem;}
}
@media (max-width: 900px){
  .brand span::after{display:none;}
}
@media (max-width: 768px){
  .brand span{font-size:1rem;}
  .brand span::after{display:none;}
}
