/* Glass header and mobile bottom sheet based on the supplied GeonCoin reference. */
.header.header-glass { background:rgba(255,255,255,.94); backdrop-filter:blur(16px); -webkit-backdrop-filter:blur(16px); padding-top:env(safe-area-inset-top,0px); border-bottom:1px solid var(--line); box-shadow:0 2px 12px #0f172a03; transition:box-shadow .3s,background .3s; }
html[data-theme=dark] .header.header-glass { background:rgba(18,21,29,.88); box-shadow:0 4px 20px #0002; }
.header.header-glass.is-scrolled { box-shadow:0 5px 20px #0f172a09; }
.header-glass .header-inner { width:min(1240px,calc(100% - 40px)); min-height:76px; height:auto; padding:12px 0; gap:21px; justify-content:space-between; }
.header-glass .header-brand { gap:11px; }
.header-glass .header-brand img { width:38px; height:38px; border-radius:10px; box-shadow:0 2px 7px #0f172a10; }
.header-glass .header-brand>span { font-size:23px; font-weight:800; letter-spacing:-.8px; }
.header-glass .header-nav { display:flex; margin:0 auto; gap:3px; }
.header-glass .header-nav>a { display:inline-flex; align-items:center; min-height:44px; padding:9px 12px; font-size:12px; font-weight:600; border-radius:10px; transition:color .2s,background .2s; }
.header-glass .header-nav>a:hover { background:var(--surface-soft); color:var(--ink); }
.header-glass .header-nav>a.active { color:var(--ink); background:var(--surface-soft); }
.header-glass .header-nav>a.active:after { display:none; }
.header-glass .header-actions { margin-left:auto; gap:9px; }
.header-action-pills { display:flex; align-items:center; gap:8px; }
.header-upgrade,.header-share { min-height:40px; display:inline-flex; align-items:center; justify-content:center; gap:6px; border-radius:11px; font-size:11px; font-weight:650; padding:8px 12px; white-space:nowrap; transition:background .2s,border-color .2s; }
.header-upgrade { color:var(--amber); background:var(--amber-soft); border:1px solid color-mix(in srgb,var(--amber) 20%,var(--line)); }
.header-share { background:var(--surface); color:var(--ink); border:1px solid var(--line); box-shadow:0 1px 4px #00000005; }
.header-upgrade:hover,.header-share:hover { background:var(--surface-soft); border-color:var(--muted); }
.header-share:hover { border-color:var(--muted); }
.header-upgrade .icon,.header-share .icon { width:14px; height:14px; }
.header-glass .header-theme,.header-language-trigger { width:38px; height:38px; min-width:38px; min-height:38px; border:1px solid var(--line); border-radius:50%; color:var(--ink); background:var(--surface); transition:transform .2s,border-color .2s; }
.header-glass .header-theme:hover,.header-language-trigger:hover { background:var(--surface-soft); border-color:var(--muted); }
.header-glass .header-theme .icon { width:18px; height:18px; }
.header-language { position:relative; }
.header-language-trigger { width:auto; border-radius:99px; display:flex; align-items:center; gap:6px; padding:0 11px; font-weight:700; font-size:11px; }
.header-language-trigger .icon { width:17px; height:17px; }
.header-language-menu { position:absolute; right:0; top:calc(100% + 12px); min-width:205px; padding:14px; border:1px solid var(--line); border-radius:15px; background:var(--surface); color:var(--ink); box-shadow:0 12px 35px #0f172a18; animation:header-drop .2s ease both; z-index:201; }
.header-language-menu>span { display:flex; align-items:center; gap:9px; font-size:12px; font-weight:650; }
.header-language-menu>span .icon:last-child { width:16px; margin-left:auto; color:var(--green); }
.header-language-menu>p { font-size:10px; color:var(--muted); margin-top:8px; }
.header-divider { width:1px; height:20px; background:var(--line); margin:0 3px; }
.header-glass .header-user-pill { height:40px; padding:4px 12px 4px 4px; gap:8px; border-radius:99px; box-shadow:0 2px 8px #00000005; transition:transform .2s,border-color .2s; }
.header-glass .header-user-pill:hover { transform:translateY(-1px); border-color:var(--muted); }
.header-glass .header-user-pill .avatar { width:30px; height:30px; border-radius:50%; background:linear-gradient(135deg,#ffe5e9,#f6b4c3); color:#a71a36; font-size:13px; box-shadow:0 2px 6px #e11d4826; }
.header-glass .header-user-pill .account-balance { max-width:145px; overflow:hidden; text-overflow:ellipsis; font-size:12px; font-weight:700; white-space:nowrap; font-variant-numeric:tabular-nums; }
.header-glass .header-user-pill>.icon { width:12px; height:12px; transition:transform .2s; }
.header-glass .header-user-pill[aria-expanded=true]>.icon { transform:rotate(-90deg); }
.header-glass .account-menu { border-radius:16px; width:240px; top:calc(100% + 12px); animation:header-drop .2s ease both; z-index:201; }
.header-glass .account-menu a,.header-glass .account-menu form button { font-size:13px; min-height:44px; }
.header-login { min-height:42px; display:inline-flex; align-items:center; justify-content:center; gap:7px; border-radius:12px; padding:10px 17px; background:#1d2738; color:#fff; font-size:12px; font-weight:650; white-space:nowrap; box-shadow:0 2px 5px #0f172a0d; transition:background .2s,box-shadow .2s; }
.header-login:hover { background:#303e55; box-shadow:0 4px 12px #0f172a16; color:#fff; }
.header-login .icon { width:14px; height:14px; }
html[data-theme=dark] .header-login { background:linear-gradient(135deg,#6366f1,#4f46e5); box-shadow:0 4px 12px #6366f133; }
.header-deposit { display:none; }
.header-glass .header-menu-toggle { display:none; width:38px; height:38px; min-width:38px; min-height:38px; border-radius:10px; background:var(--surface); }
.mobile-menu.mobile-sheet,.menu-backdrop.sheet-backdrop { display:none; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
@keyframes header-drop { from { opacity:0; transform:translateY(-7px); } to { opacity:1; transform:translateY(0); } }
@media(min-width:1250px) { .header-glass .header-deposit { display:inline-flex; } }
@media(max-width:1249px) {
  .header-glass .header-inner { gap:17px; }
  .header-glass .header-nav>a { padding-inline:10px; }
  .header-glass .header-user-pill .account-balance { max-width:110px; }
}
@media(max-width:1149px) {
  .header-action-pills { display:none; }
  .header-glass .header-inner { gap:20px; }
  .header-glass .header-nav>a { padding:10px 13px; }
}
@media(max-width:900px) {
  .header-glass .header-nav { display:none; }
  .header-glass .header-menu-toggle { display:inline-flex; }
  .header-glass .header-inner { min-height:70px; padding:12px 0; }
  .header-glass .header-actions { gap:10px; }
  .menu-backdrop.sheet-backdrop { display:block; position:fixed; inset:0; background:#0f172a8c; backdrop-filter:blur(5px); -webkit-backdrop-filter:blur(5px); z-index:200; animation:sheet-backdrop-in .25s ease both; }
  .mobile-menu.mobile-sheet { display:flex; flex-direction:column; position:fixed; inset:auto auto 0 50%; width:min(640px,100%); max-height:88svh; z-index:201; background:rgba(255,255,255,.97); backdrop-filter:blur(24px); -webkit-backdrop-filter:blur(24px); border:1px solid var(--line); border-bottom:0; border-radius:28px 28px 0 0; padding:16px 24px calc(24px + env(safe-area-inset-bottom,0px)); box-shadow:0 -10px 45px #0002; transform:translate(-50%,110%); visibility:hidden; transition:transform .4s cubic-bezier(.22,1,.36,1),visibility .4s; overflow-y:auto; overscroll-behavior:contain; }
  html[data-theme=dark] .mobile-menu.mobile-sheet { background:rgba(27,31,42,.97); }
  .mobile-menu.mobile-sheet.open { transform:translate(-50%,0); visibility:visible; }
  .mm-header { position:relative; display:flex; align-items:center; justify-content:center; min-height:28px; margin-bottom:17px; }
  .mm-handle { width:40px; height:5px; border-radius:99px; background:#cbd5e1; }
  html[data-theme=dark] .mm-handle { background:#495166; }
  .mobile-sheet .mm-close { position:absolute; right:0; top:-5px; width:35px; height:35px; border-radius:50%; border:0; background:var(--surface-soft); color:var(--ink); }
  .mobile-menu.mobile-sheet>.mm-user-card { display:flex; align-items:center; justify-content:initial; gap:13px; padding:17px; margin-bottom:19px; color:var(--ink); background:var(--surface); border:1px solid var(--line); border-radius:18px; }
  .mm-avatar { width:44px; height:44px; border-radius:50%; flex-shrink:0; display:grid; place-items:center; background:linear-gradient(135deg,#ffe5e9,#f6b4c3); color:#a71a36; box-shadow:0 4px 12px #e11d4826; font-size:19px; font-weight:800; }
  .mm-user-info { display:block; flex:1; min-width:0; }
  .mm-user-info>strong { display:block; font-size:15px; font-weight:750; overflow-wrap:anywhere; }
  .mm-user-info>small { display:block; font-size:11px; font-weight:600; color:#5861db; margin-top:3px; }
  html[data-theme=dark] .mm-user-info>small { color:#b0b8ff; }
  .mobile-menu.mobile-sheet>.mm-guest-card { background:#1d2738; border-color:#354158; color:#fff; }
  .mm-guest-card .mm-avatar { color:#fff; background:#ffffff22; box-shadow:none; }
  .mm-guest-card .mm-user-info>small,html[data-theme=dark] .mm-guest-card .mm-user-info>small { color:#d1d9e7; }
  .mm-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; margin-bottom:19px; }
  .mm-grid-item { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px; padding:14px 5px; border-radius:15px; background:var(--surface-soft); font-size:11px; color:var(--ink); font-weight:650; transition:transform .2s,background .2s; }
  .mm-grid-item:hover { transform:translateY(-3px); background:var(--line); }
  .mm-grid-icon { display:grid; place-items:center; width:37px; height:37px; border-radius:11px; background:var(--surface); color:var(--ink); box-shadow:0 2px 8px #0000000a; }
  .mm-grid-icon .icon { width:20px; height:20px; }
  .mm-actions { display:flex; gap:11px; margin-bottom:16px; }
  .mm-upgrade,.mm-share { flex:1; display:flex; align-items:center; justify-content:center; gap:8px; padding:13px; min-height:48px; font-size:12px; font-weight:700; border-radius:13px; border:1px solid var(--line); }
  .mm-upgrade { color:var(--amber); border-color:color-mix(in srgb,var(--amber) 20%,var(--line)); background:var(--amber-soft); }
  .mm-share { background:var(--surface); color:var(--ink); }
  .mm-upgrade .icon,.mm-share .icon { width:18px; height:18px; }
  .mm-settings { display:flex; gap:11px; }
  .mm-theme,.mm-language { flex:1; min-width:0; display:flex; align-items:center; justify-content:center; gap:7px; border:1px solid var(--line); border-radius:12px; padding:11px 8px; min-height:43px; background:transparent; color:var(--sub); font-size:11px; font-weight:600; }
  .mm-settings .icon { width:17px; height:17px; }
  .mm-settings .mm-language>.icon:last-child { width:13px; height:13px; color:var(--green); }
  .mm-footer-links { display:flex; justify-content:center; flex-wrap:wrap; gap:12px 24px; padding-top:21px; margin-top:20px; border-top:1px solid var(--line); }
  .mm-footer-links>a { display:flex; align-items:center; gap:5px; font-size:11px; color:var(--sub); }
  .mm-footer-links .icon { width:14px; height:14px; }
}
@keyframes sheet-backdrop-in { from { opacity:0; } to { opacity:1; } }
@media(max-width:640px) {
  .header-glass .header-inner { width:calc(100% - 32px); min-height:66px; padding:11px 0; gap:12px; }
  .header-glass .header-brand { gap:9px; }
  .header-glass .header-brand img { width:32px; height:32px; border-radius:9px; }
  .header-glass .header-brand>span { font-size:20px; letter-spacing:-.7px; }
  .header-glass .header-theme,.header-language,.header-divider { display:none; }
  .header-glass .header-actions { gap:8px; }
  .header-glass .header-menu-toggle { width:36px; height:36px; min-width:36px; min-height:36px; }
  .header-glass .header-login { min-height:36px; padding:8px 13px; font-size:10px; }
  .header-glass .header-login>.icon { display:none; }
  .header-glass .header-user-pill { padding:3px; width:36px; min-width:36px; height:36px; justify-content:center; }
  .header-glass .header-user-pill .avatar { width:28px; height:28px; font-size:12px; }
  .header-glass .header-user-pill .account-balance,.header-glass .header-user-pill>.icon { display:none; }
  .mobile-menu.mobile-sheet { padding:14px 20px calc(22px + env(safe-area-inset-bottom,0px)); border-radius:26px 26px 0 0; }
  .mobile-sheet .mm-header { margin-bottom:15px; }
}
@media(max-width:370px) {
  .header-glass .header-brand>span { font-size:18px; }
  .header-glass .header-actions { gap:7px; }
  .header-glass .header-login { padding:8px 11px; font-size:9px; }
  .mobile-menu.mobile-sheet { padding-inline:16px; }
  .mm-grid { gap:7px; }
  .mm-grid-item { padding:12px 3px; font-size:10px; }
  .mm-grid-icon { width:33px; height:33px; }
  .mm-user-info>strong { font-size:14px; }
  .mm-user-info>small { font-size:10px; }
  .mm-theme,.mm-language { font-size:10px; gap:5px; padding-inline:5px; }
  .mm-footer-links { gap:10px 17px; }
  .mm-footer-links>a { font-size:10px; }
}
@media(prefers-reduced-motion:reduce) {
  .header.header-glass,.mobile-menu.mobile-sheet,.header-glass .header-nav>a,.header-upgrade,.header-share,.header-glass .header-theme,.header-language-trigger,.header-glass .header-user-pill,.header-login,.mm-grid-item { transition:none; }
  .header-language-menu,.header-glass .account-menu,.menu-backdrop.sheet-backdrop { animation:none; }
}
/* Consistent phone gutters and touch areas, including short landscape sheets. */
@media(max-width:900px) {
  .header-glass .header-menu-toggle,.header-glass .header-theme,.header-language-trigger { min-width:44px; min-height:44px; }
  .mobile-sheet .mm-close { width:44px; height:44px; top:-8px; }
  .mm-theme,.mm-language,.mm-footer-links>a { min-height:44px; }
  .mm-footer-links { gap:0 18px; margin-top:14px; padding-top:10px; }
  .header-glass .account-menu a,.header-glass .account-menu form button { min-height:44px; }
}
@media(max-width:640px) {
  .header-glass .header-inner { min-height:68px; padding:10px 0; gap:10px; }
  .header-glass .header-brand { gap:8px; flex-shrink:0; }
  .header-glass .header-brand>span { font-size:20px; }
  .header-glass .header-actions { gap:6px; }
  .header-glass .header-menu-toggle { width:44px; height:44px; }
  .header-glass .header-login { min-height:44px; padding:10px 13px; font-size:12px; }
  .header-glass .header-user-pill { width:44px; min-width:44px; height:44px; }
  .header-glass .header-user-pill .avatar { width:34px; height:34px; font-size:14px; }
  .mobile-menu.mobile-sheet { padding-inline:16px; }
  .mm-grid-item { font-size:12px; padding:12px 4px; }
  .mm-theme,.mm-language { font-size:12px; }
  .mm-footer-links>a { font-size:12px; }
}
@media(max-width:370px) {
  .header-glass .header-brand>span { font-size:18px; }
  .header-glass .header-login { padding-inline:10px; }
  .header-glass .header-inner { gap:6px; }
  .mm-grid-item,.mm-theme,.mm-language,.mm-footer-links>a { font-size:11px; }
}
