/* ============================================================
   BEARPROOF — Revamp (Claude)  ·  Fresh, fits existing production
   Faithful to production palette (#212833 dark, teal-green #24c48d,
   blue #4A89DC, gold #f8ba29) & IA (Home / Trade / Strategy).
   Refined + responsive: mobile app-shell → desktop sidebar layout.
   ============================================================ */

@font-face {
  font-family: 'Bearproof Emoji';
  src: url('./NotoColorEmoji-leaderboard.woff2') format('woff2');
  font-display: block;
}

:root {
  /* --- Backgrounds (from production: #0f1117 / #212833 / #1b212d) --- */
  --bg-app:      #0d1117;
  --bg-panel:    #212833;   /* main card/panel — production core */
  --bg-card:     #1b212d;   /* secondary card */
  --bg-raised:   #2a3340;   /* hover / elevated */
  --bg-inset:    #171d26;   /* inputs / wells */

  /* --- Brand accents (from production) --- */
  --green:       #24c48d;   /* primary — buttons, active, profit */
  --green-soft:  #33d69f;
  --green-deep:  #1ba578;
  --green-tint:  rgba(36, 196, 141, 0.14);
  --green-tint2: rgba(36, 196, 141, 0.26);

  --blue:        #4a89dc;   /* headings / logo accent / links */
  --blue-soft:   #5d9cec;
  --blue-tint:   rgba(74, 137, 220, 0.14);

  --gold:        #f8ba29;   /* highlights / ticker / rewards */
  --gold-tint:   rgba(248, 186, 41, 0.14);

  --red:         #ed5565;   /* loss / sell */
  --red-tint:    rgba(237, 85, 101, 0.14);
  --orange:      #fc7d3c;   /* CTA gradient partner (from LEARN MORE btn) */

  /* --- Text --- */
  --text:        #e6e9ef;
  --text-2:      #aab2bd;   /* production muted */
  --text-3:      #6f7887;

  /* --- Lines --- */
  --line:        rgba(255,255,255,0.07);
  --line-2:      rgba(255,255,255,0.12);

  /* --- Shape & motion --- */
  --r-lg: 18px;
  --r:    14px;
  --r-sm: 10px;
  --r-xs: 7px;
  --shadow: 0 8px 26px -12px rgba(0,0,0,0.6);
  --shadow-lg: 0 24px 60px -20px rgba(0,0,0,0.72);
  --ease: cubic-bezier(.22,.61,.36,1);

  --sidebar-w: 246px;
  --content-max: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; height: 100%; height: 100dvh; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI Emoji', 'Segoe UI Symbol', 'Apple Color Emoji', 'Noto Color Emoji', sans-serif;
  background: var(--bg-app);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  min-height: 100dvh;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font: inherit; }

.proto-flag {
  position: fixed; z-index: 999; bottom: 78px; left: 12px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .05em;
  padding: 5px 10px; border-radius: 999px;
  background: var(--green-tint); color: var(--green-soft);
  border: 1px solid var(--green-tint2); backdrop-filter: blur(8px);
}

/* ============================================================
   APP SHELL — responsive
   ============================================================ */
.app { position: relative; }
.content { width: 100%; max-width: var(--content-max); margin: 0 auto; padding: 16px 15px 92px; }

/* ---------- Sidebar (desktop only) ---------- */
.sidebar { display: none; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 12px 20px; }
.brand .mark {
  width: 34px; height: 34px; border-radius: 10px; flex: 0 0 auto;
  background: linear-gradient(135deg, var(--green), var(--green-deep));
  display: grid; place-items: center; color: #06231a; font-size: 18px;
  box-shadow: 0 6px 16px -6px var(--green-tint2);
}
.brand b { font-size: 18px; letter-spacing: -.02em; font-weight: 800; }
.brand b span { color: var(--green); }
.side-nav { display: flex; flex-direction: column; gap: 3px; }
.side-nav a {
  display: flex; align-items: center; gap: 12px; padding: 10px 13px;
  border-radius: var(--r-sm); color: var(--text-2); font-weight: 500; font-size: 14px;
  transition: background .16s var(--ease), color .16s var(--ease);
}
.side-nav a i { font-size: 18px; width: 22px; text-align: center; }
.side-nav a:hover { background: var(--bg-raised); color: var(--text); }
.side-nav a.active { background: var(--green-tint); color: var(--green-soft); font-weight: 600; }
.side-sep { height: 1px; background: var(--line); margin: 10px 6px; }

/* ---------- Bottom nav (mobile) — Home / Trade / Strategy ---------- */
.tabbar {
  position: fixed !important; z-index: 50; left: 0; right: 0; bottom: 0 !important;
  display: flex; justify-content: space-around;
  padding: 9px 6px calc(9px + env(safe-area-inset-bottom));
  background: rgba(20,26,34,0.9);
  backdrop-filter: blur(18px) saturate(160%);
  border-top: 1px solid var(--line);
}
.tabbar a {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  color: var(--text-3); font-size: 10.5px; font-weight: 500; padding: 3px 0;
}
.tabbar a i { font-size: 21px; }
.tabbar a.active { color: var(--green-soft); }
.tabbar a.active i { color: var(--green); }

/* ============================================================
   TOP BAR
   ============================================================ */
.topbar { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; padding-top: 4px; }
.topbar .brand-m { display: flex; align-items: center; gap: 9px; flex: 1; }
.topbar .brand-m .mark {
  width: 32px; height: 32px; border-radius: 9px;
  background: linear-gradient(135deg, var(--green), var(--green-deep));
  display: grid; place-items: center; color: #06231a; font-size: 17px;
}
.topbar .brand-m b { font-size: 17px; font-weight: 800; letter-spacing: -.02em; }
.topbar .brand-m b span { color: var(--green); }
.topbar .hi { flex: 1; }
.topbar .hi small { color: var(--text-3); font-size: 12px; }
.topbar .hi h1 { font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
.topbar .hi h1 b { color: var(--green); }
.icon-btn {
  width: 40px; height: 40px; border-radius: var(--r-sm); flex: 0 0 auto;
  background: var(--bg-panel); border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--text-2); font-size: 17px;
  transition: .16s var(--ease); position: relative;
}
.icon-btn:hover { color: var(--text); border-color: var(--line-2); }
.icon-btn .dot { position: absolute; top: 8px; right: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 2px var(--bg-panel); }
.avatar {
  width: 40px; height: 40px; border-radius: 50%; flex: 0 0 auto;
  background: linear-gradient(135deg, #2c3a52, #222b3a);
  display: grid; place-items: center; font-weight: 700; font-size: 14px;
  color: var(--green-soft); border: 1px solid var(--line-2);
}

/* ============================================================
   PAGE HEADER (sub pages with back)
   ============================================================ */
.page-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; padding-top: 4px; }
.page-head h1 { font-size: 18px; font-weight: 700; flex: 1; }
.page-head .sub { color: var(--text-3); font-size: 12px; font-weight: 400; }

/* ============================================================
   CARDS & SECTIONS
   ============================================================ */
.card { background: var(--bg-panel); border: 1px solid var(--line); border-radius: var(--r); padding: 17px; }
.card + .card { margin-top: 13px; }
.card-soft { background: var(--bg-card); }
.section-head { display: flex; align-items: center; justify-content: space-between; margin: 24px 2px 11px; }
.section-head h2 { font-size: 15px; font-weight: 650; }
.section-head h2 i { color: var(--gold); margin-right: 4px; }
.section-head a { font-size: 12.5px; color: var(--green-soft); font-weight: 500; }

/* ---- Promo banner (production has a carousel banner) ---- */
.banner {
  position: relative; overflow: hidden; border-radius: var(--r-lg);
  color: #fff; box-shadow: var(--shadow);
  background:
    radial-gradient(420px 200px at 88% 20%, rgba(74,137,220,0.55), transparent 60%),
    linear-gradient(135deg, #16324f 0%, #14202e 55%, #101722 100%);
  border: 1px solid var(--line-2);
}
.banner-track { display: flex; transition: transform .5s var(--ease); }
.banner-slide { flex: 0 0 100%; box-sizing: border-box; padding: 22px 22px 42px; min-width: 0; }
.banner-slide .btn-cta { position: relative; z-index: 2; }
.banner .kicker { font-size: 11.5px; font-weight: 700; letter-spacing: .1em; color: var(--gold); }
.banner h2 { font-size: clamp(20px,5vw,26px); font-weight: 800; line-height: 1.15; margin: 8px 0 14px; letter-spacing: -.01em; }
.banner h2 span { color: var(--blue-soft); }
.banner .bear { position: absolute; right: -10px; bottom: -14px; font-size: 118px; opacity: .10; transform: rotate(-8deg); pointer-events: none; }
.btn-cta {
  display: inline-flex; align-items: center; gap: 7px; padding: 9px 18px; border-radius: 999px;
  font-weight: 700; font-size: 13.5px; color: #2a1400;
  background: linear-gradient(135deg, var(--gold), var(--orange));
  box-shadow: 0 8px 20px -8px rgba(252,125,60,0.5);
}
.dots { display: flex; gap: 6px; position: absolute; left: 22px; bottom: 16px; z-index: 3; }
.dots button { width: 6px; height: 6px; padding: 0; border: none; border-radius: 50%; background: rgba(255,255,255,.28); cursor: pointer; transition: width .25s var(--ease), background .25s var(--ease); }
.dots button.on { width: 18px; border-radius: 3px; background: #fff; }
.dots button:hover { background: rgba(255,255,255,.55); }

/* ---- 24H stats strip (production feature) ---- */
.stats-strip {
  display: grid; grid-template-columns: auto 1fr 1fr 1fr; gap: 8px; align-items: center;
  background: var(--bg-panel); border: 1px solid var(--line); border-radius: var(--r);
  padding: 12px 15px; margin-top: 13px;
}
.stats-strip .t { font-size: 12px; font-weight: 800; color: var(--gold); letter-spacing: .04em; }
.stats-strip .s small { display: block; color: var(--text-3); font-size: 11px; margin-bottom: 2px; }
.stats-strip .s b { font-size: 14px; font-weight: 700; }
.stats-strip .s b.g { color: var(--green-soft); }

/* ---- ticker ---- */
.ticker { display: flex; align-items: center; gap: 9px; font-size: 12.5px; color: var(--text-2); background: var(--gold-tint); border: 1px solid rgba(248,186,41,.2); border-radius: var(--r-sm); padding: 9px 13px; margin-top: 11px; }
.ticker i { color: var(--gold); }

/* ---- portfolio hero ---- */
.hero {
  position: relative; overflow: hidden; border-radius: var(--r-lg);
  padding: 21px; border: 1px solid var(--line-2); box-shadow: var(--shadow);
  background:
    radial-gradient(520px 220px at 100% 0%, var(--green-tint), transparent 62%),
    linear-gradient(160deg, #243040, #1a222e);
}
.hero .label { color: var(--text-2); font-size: 12.5px; font-weight: 500; display: flex; align-items: center; gap: 7px; }
.hero .bal { font-size: clamp(29px,8vw,39px); font-weight: 800; letter-spacing: -.02em; margin: 7px 0 5px; }
.hero .bal small { font-size: .45em; color: var(--text-2); font-weight: 600; margin-left: 4px; }
.pill { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 600; padding: 4px 9px; border-radius: 999px; }
.pill.up { background: var(--green-tint); color: var(--green-soft); }
.pill.down { background: var(--red-tint); color: var(--red); }
.hero-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-top: 19px; padding-top: 17px; border-top: 1px solid var(--line); }
.hero-stats .s small { color: var(--text-3); font-size: 11.5px; display: block; margin-bottom: 3px; }
.hero-stats .s b { font-size: 15px; font-weight: 700; }
.hero-stats .s b.g { color: var(--green-soft); }

/* ---- quick actions ---- */
.quick { display: grid; grid-template-columns: repeat(4,1fr); gap: 9px; margin-top: 13px; }
.quick a { background: var(--bg-panel); border: 1px solid var(--line); border-radius: var(--r); padding: 13px 6px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; transition: .16s var(--ease); }
.quick a:hover { background: var(--bg-raised); transform: translateY(-2px); }
.quick a i { width: 38px; height: 38px; border-radius: 11px; font-size: 18px; display: grid; place-items: center; background: var(--green-tint); color: var(--green-soft); }
.quick a:nth-child(2) i { background: var(--gold-tint); color: var(--gold); }
.quick a:nth-child(3) i { background: var(--blue-tint); color: var(--blue-soft); }
.quick a:nth-child(4) i { background: rgba(255,255,255,.06); color: var(--text-2); }
.quick a span { font-size: 11.5px; font-weight: 500; color: var(--text-2); }

/* ============================================================
   LISTS: coins / markets / activity
   ============================================================ */
.row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: 0; }
.ic {
  width: 40px; height: 40px; border-radius: 50%; flex: 0 0 auto;
  display: grid; place-items: center; font-weight: 700; font-size: 13px;
  background: var(--bg-raised); color: var(--text);
}
.ic.btc { background: linear-gradient(135deg,#f3ba2f33,#f3ba2f11); color: var(--gold); }
.ic.eth { color: #8aa0ff; }
.ic.sol { color: #c08cff; }
.ic.bnb { color: var(--gold); }
.nm { flex: 1; min-width: 0; }
.nm b { font-size: 14px; font-weight: 600; display: block; }
.nm small { color: var(--text-3); font-size: 12px; }
.spark { width: 60px; height: 26px; flex: 0 0 auto; opacity: .95; }
.val { text-align: right; flex: 0 0 auto; min-width: 74px; }
.val b { font-size: 14px; font-weight: 700; display: block; }
.val small { font-size: 12px; font-weight: 600; }
.up-t { color: var(--green-soft); }
.down-t { color: var(--red); }

/* activity/tx */
.act { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.act:last-child { border-bottom: 0; }
.act .ai { width: 37px; height: 37px; border-radius: 11px; display: grid; place-items: center; font-size: 15px; flex: 0 0 auto; }
.ai.buy { background: var(--green-tint); color: var(--green-soft); }
.ai.sell { background: var(--red-tint); color: var(--red); }
.ai.rw { background: var(--gold-tint); color: var(--gold); }
.ai.dep { background: var(--blue-tint); color: var(--blue-soft); }
.act .at { flex: 1; min-width: 0; }
.act .at b { font-size: 13.5px; font-weight: 600; display: block; }
.act .at small { color: var(--text-3); font-size: 11.5px; }
.act .av { text-align: right; font-size: 13.5px; font-weight: 700; flex: 0 0 auto; }

/* ---- TA / feature tags ---- */
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { font-size: 12px; font-weight: 500; padding: 6px 11px; border-radius: 999px; background: var(--bg-inset); border: 1px solid var(--line); color: var(--text-2); }
.tag.g { color: var(--green-soft); border-color: var(--green-tint2); background: var(--green-tint); }

/* ---- status badge ---- */
.badge { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.badge.on { background: var(--green-tint); color: var(--green-soft); }
.badge.off { background: rgba(255,255,255,.06); color: var(--text-3); }
.badge.gold { background: var(--gold-tint); color: var(--gold); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 20px; border-radius: var(--r-sm); font-weight: 650; font-size: 14.5px; transition: .16s var(--ease); width: 100%; }
.btn-primary { background: linear-gradient(135deg, var(--green-soft), var(--green-deep)); color: #06231a; box-shadow: 0 10px 22px -10px var(--green-tint2); }
.btn-primary:hover { filter: brightness(1.05); transform: translateY(-1px); }
.btn-ghost { background: var(--bg-raised); color: var(--text); border: 1px solid var(--line-2); }
.btn-ghost:hover { background: var(--bg-panel); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-danger { background: var(--red-tint); color: var(--red); }
.btn-row { display: flex; gap: 10px; }

/* ============================================================
   FORMS
   ============================================================ */
.field { margin-bottom: 15px; }
.field label { display: block; font-size: 12.5px; color: var(--text-2); font-weight: 500; margin-bottom: 7px; }
.input { width: 100%; padding: 12px 14px; border-radius: var(--r-sm); background: var(--bg-inset); border: 1px solid var(--line-2); color: var(--text); font-size: 15px; transition: .16s var(--ease); }
.input:focus { outline: none; border-color: var(--green); }
.input:focus-visible { outline: none; border-color: var(--green); }
input:-webkit-autofill { -webkit-box-shadow: 0 0 0 30px var(--bg-inset) inset !important; -webkit-text-fill-color: var(--text) !important; }
input:-webkit-autofill:hover, input:-webkit-autofill:focus, input:-webkit-autofill:active { -webkit-box-shadow: 0 0 0 30px var(--bg-inset) inset !important; -webkit-text-fill-color: var(--text) !important; }
.input::placeholder { color: var(--text-3); }
.input-wrap { position: relative; }
.input-wrap .suffix { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--text-3); font-size: 13px; font-weight: 600; }

.seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
@media (max-width: 380px) { .seg { grid-template-columns: 1fr; } }
.seg label { display: block; cursor: pointer; padding: 13px; border-radius: var(--r); background: var(--bg-inset); border: 1.5px solid var(--line); transition: .16s var(--ease); }
.seg input { display: none; }
.seg label b { display: block; font-size: 14px; margin-bottom: 3px; }
.seg label small { color: var(--text-3); font-size: 11.5px; }
.seg label:has(input:checked) { border-color: var(--green); background: var(--green-tint); }
.seg label:has(input:checked) b { color: var(--green-soft); }

.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.switch-row:last-child { border-bottom: 0; }
.switch-row .t { flex: 1; }
.switch-row .t b { font-size: 13.5px; font-weight: 600; display: block; }
.switch-row .t small { color: var(--text-3); font-size: 11.5px; }
.switch { width: 45px; height: 26px; border-radius: 999px; background: var(--bg-raised); border: 1px solid var(--line-2); position: relative; flex: 0 0 auto; transition: .2s var(--ease); cursor: pointer; }
.switch::after { content:''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--text-2); transition: .2s var(--ease); }
.switch.on { background: var(--green); border-color: var(--green); }
.switch.on::after { left: 22px; background: #06231a; }

/* stepper */
.stepper { display: flex; align-items: center; gap: 10px; }
.stepper button { width: 42px; height: 42px; border-radius: var(--r-sm); background: var(--bg-inset); border: 1px solid var(--line-2); font-size: 20px; color: var(--text); }
.stepper .input { text-align: center; }

/* ============================================================
   MISC
   ============================================================ */
.muted { color: var(--text-3); }
.center { text-align: center; }
.grid-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.grid-2col > * { min-width: 0; overflow: hidden; }
.kv { display: flex; align-items: center; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.kv:last-child { border-bottom: 0; }
.kv span { color: var(--text-2); }
.kv b { font-weight: 700; }
.note { font-size: 12px; color: var(--text-3); background: var(--bg-inset); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 11px 13px; display: flex; gap: 9px; }
.note i { color: var(--blue-soft); margin-top: 1px; }

.exchange { display: flex; align-items: center; gap: 13px; padding: 15px; border-radius: var(--r); border: 1.5px solid var(--line); background: var(--bg-card); transition: .16s var(--ease); cursor: pointer; }
.exchange:hover { border-color: var(--line-2); }
.exchange.on { border-color: var(--green); background: var(--green-tint); }
.exchange img { width: 34px; height: 34px; }
.exchange .ex-t { flex: 1; }
.exchange .ex-t b { font-size: 15px; display: block; }
.exchange .ex-t small { color: var(--text-3); font-size: 12px; }

.fade { animation: fadeUp .45s var(--ease) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: none; } }
.d1{animation-delay:.04s}.d2{animation-delay:.08s}.d3{animation-delay:.12s}.d4{animation-delay:.16s}.d5{animation-delay:.2s}

/* ---- referral / big number ---- */
.big-code { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: var(--r); background: var(--bg-inset); border: 1px dashed var(--line-2); font-family: 'Inter'; }
.big-code b { font-size: 16px; letter-spacing: .06em; color: var(--green-soft); }

/* ============================================================
   AUTH
   ============================================================ */
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 22px; }
.auth-card { width: 100%; max-width: 400px; background: var(--bg-panel); border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 30px 26px; box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }

/* ---- Login gate: shown in place of login-required content ---- */
.login-gate {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 11px; text-align: center; padding: 26px 18px; min-height: 120px; cursor: pointer;
  border-radius: var(--r); transition: background .16s var(--ease);
}
.login-gate:hover { background: rgba(255,255,255,0.02); }
.login-gate .lg-ic {
  width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center;
  background: var(--green-tint); color: var(--green-soft); font-size: 20px;
}
.login-gate p { color: var(--text-2); font-size: 13px; margin: 0; max-width: 220px; }
.login-gate .btn { width: auto; padding: 9px 22px; font-size: 13.5px; }

/* ============================================================
   RESPONSIVE — desktop
   ============================================================ */
@media (min-width: 1024px) {
  .tabbar { display: none; }
  .app { display: grid; grid-template-columns: var(--sidebar-w) 1fr; min-height: 100vh; }
  .sidebar { display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; padding: 22px 15px; border-right: 1px solid var(--line); background: rgba(20,26,34,0.55); backdrop-filter: blur(12px); overflow-y: auto; }
  .brand-m { display: none !important; }   /* hide mobile brand, sidebar has it */
  .content { padding: 28px 100px 40px 38px; }
  .grid-2 { display: grid; grid-template-columns: 1.35fr 1fr; gap: 22px; align-items: start; }
  .grid-2 .asset-first-head { margin-top: 0; }  /* align right column top; mobile keeps default gap */
  .quick { grid-template-columns: repeat(4,1fr); }
}
@media (min-width: 1360px) { :root { --content-max: 1280px; } }
@media (min-width: 1700px) { :root { --content-max: 1440px; } }

/* Reserve top-right space so the fixed language switcher never overlaps header
   content — on ALL viewports (switcher is fixed top-right everywhere). */
.topbar, .page-head { padding-right: 84px; }
@media (max-width: 1023px) {
  .hide-mobile { display: none !important; }
  /* Mobile: language switcher scrolls with the page (not fixed over content) */
  .lang-wrap { position: absolute !important; top: 20px !important; right: 12px !important; }
}
