:root {
  --bg: #07100f;
  --panel: #0d1917;
  --panel-2: #111e1c;
  --line: rgba(216, 255, 237, .09);
  --line-strong: rgba(216, 255, 237, .16);
  --text: #f3f8f5;
  --muted: #899c96;
  --soft: #b8c6c1;
  --accent: #9df56d;
  --accent-2: #52d69a;
  --danger: #ff6f6f;
  --warning: #ffca67;
  --radius: 22px;
  --shadow: 0 24px 80px rgba(0, 0, 0, .28);
  color-scheme: dark;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--bg); color: var(--text); min-height: 100vh; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
[hidden] { display: none !important; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.ambient { position: fixed; z-index: -1; border-radius: 50%; filter: blur(110px); pointer-events: none; opacity: .14; }
.ambient-one { width: 420px; height: 420px; background: var(--accent); top: -260px; left: 25%; }
.ambient-two { width: 360px; height: 360px; background: #1fb88a; right: -240px; bottom: -120px; }

.brand { display: flex; align-items: center; gap: 12px; font-size: 17px; font-weight: 720; letter-spacing: -.02em; }
.brand-mark { width: 32px; height: 32px; display: grid; place-items: center; position: relative; transform: rotate(-10deg); }
.brand-mark i { position: absolute; width: 8px; border-radius: 99px; background: var(--accent); box-shadow: 0 0 16px rgba(157, 245, 109, .32); }
.brand-mark i:nth-child(1) { height: 20px; transform: translateX(-8px); }
.brand-mark i:nth-child(2) { height: 27px; }
.brand-mark i:nth-child(3) { height: 16px; transform: translateX(8px); }
.eyebrow { color: var(--accent); font-size: 11px; font-weight: 750; text-transform: uppercase; letter-spacing: .17em; }

.login-view { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-panel { width: min(100%, 460px); padding: 36px; background: linear-gradient(145deg, rgba(17, 31, 28, .97), rgba(9, 20, 18, .97)); border: 1px solid var(--line-strong); border-radius: 28px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.login-panel::after { content: ""; position: absolute; width: 230px; height: 230px; border: 1px solid rgba(157, 245, 109, .12); border-radius: 50%; top: -140px; right: -110px; box-shadow: 0 0 70px rgba(157,245,109,.06) inset; }
.brand-login { margin-bottom: 52px; }
.login-copy h1 { font-size: clamp(36px, 7vw, 52px); line-height: .98; letter-spacing: -.055em; margin: 13px 0 18px; }
.login-copy p { color: var(--muted); line-height: 1.6; margin: 0 0 30px; max-width: 340px; }
.login-form { display: grid; gap: 17px; }
label > span:first-child { display: block; font-size: 12px; color: var(--soft); font-weight: 650; margin: 0 0 8px; }
input, textarea, select { width: 100%; border: 1px solid var(--line-strong); color: var(--text); background: rgba(4, 11, 10, .66); border-radius: 13px; padding: 13px 14px; outline: none; transition: border-color .2s, box-shadow .2s; }
input:focus, textarea:focus, select:focus { border-color: rgba(157, 245, 109, .7); box-shadow: 0 0 0 3px rgba(157, 245, 109, .1); }
select option { background: #091310; color: var(--text); }
.password-field { position: relative; display: block; }
.password-field input { padding-right: 50px; }
.password-field .icon-button { position: absolute; right: 5px; top: 5px; }
.form-error { color: #ff9a9a; min-height: 18px; font-size: 12px; margin: -4px 0 0; }
.login-note { color: var(--muted); display: flex; align-items: center; justify-content: center; gap: 9px; font-size: 11px; margin-top: 25px; }
.pulse-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px rgba(157,245,109,.08), 0 0 14px rgba(157,245,109,.55); display: inline-block; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 43px; padding: 0 16px; border: 1px solid transparent; border-radius: 12px; text-decoration: none; cursor: pointer; font-size: 13px; font-weight: 720; transition: transform .16s, background .16s, border-color .16s; }
.button:hover { transform: translateY(-1px); }
.button:disabled { opacity: .55; cursor: wait; transform: none; }
.button svg { width: 18px; height: 18px; }
.button-primary { background: var(--accent); color: #092014; box-shadow: 0 8px 25px rgba(157,245,109,.12); }
.button-primary:hover { background: #afff80; }
.button-ghost { background: rgba(255,255,255,.025); border-color: var(--line-strong); color: var(--soft); }
.button-ghost:hover { border-color: rgba(157,245,109,.34); color: var(--text); }
.button-danger { background: rgba(255, 111, 111, .13); border-color: rgba(255, 111, 111, .3); color: #ffabab; }
.button-small { min-height: 34px; padding: 0 12px; font-size: 11px; }
.button-wide { width: 100%; min-height: 49px; }
.icon-button { width: 40px; height: 40px; border-radius: 11px; border: 1px solid transparent; display: grid; place-items: center; background: transparent; cursor: pointer; color: var(--muted); }
.icon-button:hover { background: rgba(255,255,255,.045); color: var(--text); }

.app-shell { min-height: 100vh; }
.sidebar { width: 220px; position: fixed; inset: 0 auto 0 0; padding: 30px 20px; border-right: 1px solid var(--line); background: rgba(7, 16, 15, .86); backdrop-filter: blur(18px); display: flex; flex-direction: column; z-index: 10; }
.sidebar nav { display: grid; gap: 5px; margin-top: 46px; }
.nav-item { appearance: none; border: 0; width: 100%; min-height: 45px; padding: 0 12px; border-radius: 11px; background: transparent; color: var(--muted); display: flex; align-items: center; gap: 12px; font-size: 12px; cursor: pointer; text-align: left; }
.nav-item svg { width: 19px; height: 19px; }
.nav-item strong { margin-left: auto; min-width: 23px; height: 20px; display: grid; place-items: center; border-radius: 20px; background: rgba(255,255,255,.055); color: var(--soft); font-size: 10px; }
.nav-item:hover, .nav-item.active { color: var(--text); background: rgba(157,245,109,.075); }
.nav-item.active svg { color: var(--accent); }
.side-status { margin-top: auto; margin-bottom: 11px; display: flex; gap: 11px; align-items: center; padding: 13px 11px; border: 1px solid var(--line); border-radius: 13px; }
.status-icon { width: 27px; height: 27px; border-radius: 9px; display: grid; place-items: center; background: rgba(157,245,109,.08); }
.status-icon span { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 11px var(--accent); }
.side-status small { display: block; color: var(--muted); font-size: 9px; margin-bottom: 3px; }
.side-status strong { font-size: 11px; }
.logout { border-top: 1px solid var(--line); border-radius: 0; margin-top: 5px; padding-top: 9px; }

.content { margin-left: 220px; padding: 34px clamp(24px, 4vw, 58px) 26px; max-width: 1540px; }
.topbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.topbar h1 { font-size: clamp(25px, 3vw, 35px); letter-spacing: -.04em; margin: 7px 0 0; }
.topbar h1 span { color: var(--accent); }
.top-actions { display: flex; gap: 10px; align-items: center; }
.refresh { border-color: var(--line); background: rgba(255,255,255,.025); }
.refresh.loading svg { animation: rotate .8s linear infinite; }
@keyframes rotate { to { transform: rotate(360deg); } }

.hero-card { min-height: 295px; border: 1px solid var(--line-strong); background: linear-gradient(118deg, rgba(16, 31, 27, .98), rgba(8, 22, 19, .96)); border-radius: 26px; overflow: hidden; position: relative; padding: clamp(28px, 4vw, 48px); display: flex; align-items: center; box-shadow: 0 18px 55px rgba(0,0,0,.15); }
.hero-card::after { content: ""; position: absolute; right: -6%; top: -45%; width: 54%; aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(157,245,109,.08); box-shadow: 0 0 90px rgba(157,245,109,.045) inset; }
.hero-copy { position: relative; z-index: 2; width: 59%; }
.service-chip { display: inline-flex; align-items: center; gap: 10px; padding: 8px 11px; background: rgba(157,245,109,.06); border: 1px solid rgba(157,245,109,.12); border-radius: 99px; color: #b9d5c7; font-size: 10px; }
.hero-copy h2 { font-size: clamp(34px, 5vw, 55px); letter-spacing: -.055em; line-height: 1; margin: 20px 0 14px; }
.hero-copy h2 em { color: var(--accent); font-style: normal; font-weight: 400; }
.hero-copy > p { color: var(--muted); line-height: 1.6; max-width: 520px; font-size: 13px; }
.server-meta { display: flex; gap: clamp(20px, 4vw, 54px); margin: 28px 0 0; }
.server-meta div { min-width: 90px; }
.server-meta dt { color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 7px; }
.server-meta dd { margin: 0; font: 600 12px ui-monospace, SFMono-Regular, Consolas, monospace; color: var(--soft); }
.tunnel-visual { position: absolute; right: 4.5%; width: min(31%, 300px); aspect-ratio: 1; display: grid; place-items: center; }
.orb { border-radius: 50%; display: grid; place-items: center; position: relative; }
.orb-outer { width: 100%; height: 100%; border: 1px solid rgba(157,245,109,.13); box-shadow: 0 0 70px rgba(157,245,109,.05) inset; animation: float 5s ease-in-out infinite; }
.orb-middle { width: 72%; height: 72%; border: 1px solid rgba(157,245,109,.24); background: rgba(157,245,109,.02); }
.orb-inner { width: 57%; height: 57%; border: 1px solid rgba(157,245,109,.38); background: radial-gradient(circle at 38% 32%, rgba(157,245,109,.25), rgba(28,71,52,.16) 42%, rgba(4,18,13,.8)); box-shadow: 0 0 50px rgba(157,245,109,.12); }
.orb-inner span { width: 19%; height: 28%; border: 2px solid var(--accent); border-radius: 50% 50% 48% 48%; position: relative; box-shadow: 0 0 18px rgba(157,245,109,.35); }
.orb-inner span::before { content: ""; position: absolute; width: 75%; height: 70%; border: 2px solid var(--accent); border-bottom: 0; border-radius: 50% 50% 0 0; left: 50%; top: -56%; transform: translateX(-50%); }
.orbit-tag { position: absolute; border: 1px solid rgba(157,245,109,.18); background: #0d1b17; color: #9cb4aa; font: 700 8px ui-monospace, monospace; padding: 5px 7px; border-radius: 6px; }
.tag-one { left: -4%; top: 30%; }.tag-two { right: -3%; top: 21%; }.tag-three { right: 4%; bottom: 18%; }
@keyframes float { 50% { transform: translateY(-7px); } }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; margin: 15px 0 36px; }
.stat-card { border: 1px solid var(--line); background: rgba(14, 27, 24, .76); border-radius: 17px; padding: 18px; display: grid; grid-template-columns: auto 1fr; gap: 0 13px; align-items: center; min-width: 0; }
.stat-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; grid-row: span 2; }
.stat-icon svg { width: 19px; height: 19px; }
.stat-icon.devices { color: var(--accent); background: rgba(157,245,109,.08); }
.stat-icon.online { color: #59d7a3; background: rgba(89,215,163,.08); }
.stat-icon.incoming { color: #79b9ff; background: rgba(121,185,255,.08); }
.stat-icon.outgoing { color: #c7a0ff; background: rgba(199,160,255,.08); }
.stat-card small { color: var(--muted); font-size: 9px; display: block; margin-bottom: 5px; white-space: nowrap; }
.stat-card strong { font-size: 20px; letter-spacing: -.035em; overflow-wrap: anywhere; }
.stat-note { color: var(--muted); font-size: 8px; grid-column: 2; margin-top: 4px; }
.stat-note.positive { color: var(--accent-2); }

.section-heading { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 14px; }
.section-heading h2 { margin: 5px 0 0; font-size: 25px; letter-spacing: -.035em; }
.migration-note { border: 1px solid rgba(157,245,109,.22); background: linear-gradient(120deg, rgba(157,245,109,.09), rgba(9,25,21,.72)); border-radius: 18px; padding: 16px 18px; margin: 0 0 14px; display: grid; grid-template-columns: minmax(190px,.7fr) minmax(260px,1.4fr) auto; gap: 18px; align-items: center; }
.migration-note div { display: grid; gap: 5px; }.migration-note strong { color: var(--accent); font-size: 13px; }.migration-note span, .migration-note p, .legacy-note { color: var(--muted); font-size: 11px; line-height: 1.55; margin: 0; }
.legacy-heading { margin-top: 36px; }.legacy-note { margin: -5px 0 14px; }
.updated { color: var(--muted); font-size: 9px; }
.device-list-header { display: grid; grid-template-columns: minmax(180px,1.2fr) 105px minmax(0,.68fr) minmax(0,.76fr) minmax(0,.86fr) 360px; gap: 16px; align-items: center; padding: 0 16px 8px; }
.column-sort { justify-self: start; width: max-content; max-width: 100%; padding: 4px 0; border: 0; color: var(--muted); background: transparent; cursor: pointer; font-size: 8px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; text-align: left; }
.column-sort:hover { color: var(--soft); }
.column-sort.active { color: var(--accent); }
.column-sort[data-stable-sort="name"] { padding-left: 54px; }
.sort-arrow { display: inline-block; min-width: 10px; margin-left: 3px; font-size: 11px; }
.header-static, .header-actions { color: var(--muted); font-size: 8px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.header-actions { text-align: right; }
.device-list { display: grid; gap: 9px; }
.device-row { display: grid; grid-template-columns: minmax(180px,1.2fr) 105px minmax(0,.68fr) minmax(0,.76fr) minmax(0,.86fr) 360px; gap: 16px; align-items: center; border: 1px solid var(--line); border-radius: 16px; padding: 15px 16px; background: rgba(14, 27, 24, .66); transition: border-color .18s, transform .18s; }
.device-row:hover { border-color: rgba(157,245,109,.2); transform: translateY(-1px); }
.device-ident { display: flex; align-items: center; gap: 12px; min-width: 0; }
.device-avatar { width: 42px; height: 42px; flex: 0 0 auto; border-radius: 13px; display: grid; place-items: center; color: var(--accent); background: linear-gradient(145deg, rgba(157,245,109,.12), rgba(50,130,92,.06)); border: 1px solid rgba(157,245,109,.12); }
.device-avatar svg { width: 20px; height: 20px; }
.device-name { font-size: 12px; font-weight: 720; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.protocol-badge { display: inline-flex; margin-left: 8px; padding: 2px 6px; border-radius: 999px; font-size: 8px; letter-spacing: .02em; color: var(--muted); background: rgba(255,255,255,.05); vertical-align: 1px; }
.protocol-badge.v31 { color: var(--accent); background: rgba(157,245,109,.11); }
.protocol-badge.v31fast { color: #8de7ff; background: rgba(65,190,235,.12); }
.device-endpoint { font-size: 8px; color: var(--muted); margin-top: 4px; }
.device-created-column { color: var(--soft); font-size: 9px; line-height: 1.35; }
.cell-label { color: var(--muted); display: block; font-size: 8px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 5px; }
.cell-value { font: 600 11px ui-monospace, SFMono-Regular, Consolas, monospace; color: var(--soft); }
.online-badge { display: inline-flex; gap: 7px; align-items: center; color: var(--soft); font-size: 10px; }
.online-badge i { width: 6px; height: 6px; border-radius: 50%; background: #6f827b; }
.online-badge.online i { background: var(--accent); box-shadow: 0 0 8px rgba(157,245,109,.5); }
.traffic { display: flex; gap: 13px; }
.traffic span { font-size: 9px; color: var(--soft); white-space: nowrap; }
.traffic b { font-weight: 500; color: #6d857c; margin-right: 4px; }
.device-actions { min-width: 0; display: flex; justify-content: flex-end; align-items: center; gap: 5px; }
.action-button { min-height: 35px; padding: 0 8px; border: 1px solid var(--line); background: rgba(255,255,255,.02); color: var(--soft); border-radius: 10px; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; font-size: 9px; white-space: nowrap; }
.action-button svg { width: 15px; height: 15px; }
.action-button:hover { color: var(--text); border-color: rgba(157,245,109,.24); }
.action-button.copy { color: var(--accent); border-color: rgba(157,245,109,.2); background: rgba(157,245,109,.06); }
.action-button.copy-qr { color: #8de7ff; border-color: rgba(65,190,235,.2); background: rgba(65,190,235,.06); }
.action-button.danger:hover { color: #ff9a9a; border-color: rgba(255,111,111,.25); }
.device-skeleton { height: 73px; border-radius: 16px; background: linear-gradient(100deg, rgba(255,255,255,.025), rgba(255,255,255,.055), rgba(255,255,255,.025)); background-size: 200% 100%; animation: skeleton 1.2s infinite; }
@keyframes skeleton { to { background-position: -200% 0; } }
.empty-state { text-align: center; border: 1px dashed var(--line-strong); border-radius: 20px; padding: 50px 24px; color: var(--muted); }
.empty-icon { width: 55px; height: 55px; display: grid; place-items: center; margin: auto; border-radius: 17px; color: var(--accent); background: rgba(157,245,109,.07); }
.empty-state h3 { color: var(--text); margin: 16px 0 7px; }.empty-state p { font-size: 12px; margin: 0 0 20px; }
footer { color: #53645e; font-size: 9px; text-align: center; padding: 35px 0 10px; }

.modal { position: fixed; inset: 0; z-index: 9999; width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; border: 0; padding: 20px; overflow: auto; background: rgba(2, 8, 7, .72); backdrop-filter: blur(9px); }
.modal[open] { display: grid; place-items: center; animation: modal-in .18s ease-out; }
.modal::backdrop { background: transparent; }
@keyframes modal-in { from { opacity: 0; } }
.modal-card { width: min(100%, 470px); background: linear-gradient(145deg, #12211e, #0b1715); border: 1px solid var(--line-strong); border-radius: 23px; padding: 30px; box-shadow: var(--shadow); position: relative; }
.modal-close { position: absolute; right: 17px; top: 16px; font-size: 23px; }
.modal-icon { width: 45px; height: 45px; border-radius: 14px; color: var(--accent); background: rgba(157,245,109,.08); display: grid; place-items: center; margin-bottom: 20px; }
.modal-icon.danger { color: var(--danger); background: rgba(255,111,111,.08); }
.modal-card h2 { font-size: 26px; letter-spacing: -.04em; margin: 8px 0 10px; }
.modal-card > p { color: var(--muted); font-size: 12px; line-height: 1.6; margin: 0 0 22px; }
.modal-card label { display: block; }
.modal-card label + label { margin-top: 14px; }
.field-hint { display: block; color: var(--muted); font-size: 9px; margin: 7px 0 0; }
.modal-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 22px; }
.profile-card { text-align: center; }
.modal-card.profile-card { width: min(100%, 630px); }
.qr-step { display: inline-flex; align-items: center; justify-content: center; min-height: 27px; padding: 5px 12px; border-radius: 999px; color: var(--accent); background: rgba(157,245,109,.08); border: 1px solid rgba(157,245,109,.16); font-size: 10px; font-weight: 700; }
.qr-wrap { width: min(100%, 540px); aspect-ratio: 1; margin: 12px auto; padding: 16px; border-radius: 19px; background: white; display: grid; place-items: center; }
.qr-wrap img { width: 100%; height: 100%; object-fit: contain; image-rendering: pixelated; }
.qr-navigation { display: flex; justify-content: center; gap: 9px; margin-bottom: 10px; }
.qr-navigation[hidden] { display: none; }
.qr-help { max-width: 540px; margin: 0 auto 16px !important; font-size: 10px !important; }
.profile-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; }
.key-box { margin-top: 14px; }.key-box textarea { min-height: 110px; resize: vertical; font: 9px/1.5 ui-monospace, monospace; margin-bottom: 8px; }
.danger-text { color: var(--danger); }.danger-card h2 span { color: #ff9a9a; }
.toast { position: fixed; z-index: 100; right: 24px; bottom: 24px; max-width: min(380px, calc(100vw - 48px)); padding: 13px 17px; background: #173028; border: 1px solid rgba(157,245,109,.2); border-radius: 12px; color: var(--text); font-size: 11px; box-shadow: var(--shadow); opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .2s, transform .2s; }
.toast.visible { opacity: 1; transform: translateY(0); }
.toast.error { background: #321b1b; border-color: rgba(255,111,111,.25); }

@media (max-width: 1100px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .device-row, .device-list-header { grid-template-columns: minmax(180px,1.2fr) 100px minmax(0,.68fr) minmax(0,.76fr) 360px; }
  .device-traffic { display: none; }
  .column-sort[data-stable-sort="traffic"] { display: none; }
}

@media (max-width: 760px) {
  .sidebar { width: 100%; height: 66px; inset: auto 0 0; flex-direction: row; align-items: center; padding: 8px 12px; border-right: 0; border-top: 1px solid var(--line); }
  .sidebar .brand, .side-status { display: none; }
  .sidebar nav { margin: 0; display: flex; flex: 1; gap: 6px; }
  .nav-item { width: auto; flex: 1; justify-content: center; flex-direction: column; gap: 2px; min-height: 49px; padding: 4px; font-size: 8px; }
  .nav-item strong { display: none; }.nav-item svg { width: 19px; height: 19px; }
  .logout { flex: 0 0 55px; border: 0; margin: 0; padding: 4px; }
  .content { margin-left: 0; padding: 24px 16px 95px; }
  .topbar { align-items: center; }.topbar .eyebrow { display: none; }.topbar h1 { font-size: 24px; }
  .top-actions .button span { display: none; }.top-actions .button { width: 43px; padding: 0; }
  .hero-card { min-height: 365px; padding: 27px 24px; align-items: flex-start; }
  .hero-copy { width: 100%; }.hero-copy > p { max-width: 85%; }.server-meta { gap: 20px; flex-wrap: wrap; margin-top: 23px; }.server-meta div:last-child { display: none; }
  .tunnel-visual { opacity: .48; width: 200px; right: -58px; bottom: -55px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 9px; }.stat-card { padding: 14px; }.stat-icon { width: 35px; height: 35px; }.stat-card strong { font-size: 16px; }
  .migration-note { grid-template-columns: 1fr; gap: 10px; align-items: start; }
  .device-list-header { display: flex; flex-wrap: wrap; gap: 4px 16px; padding: 0 4px 9px; }
  .device-list-header .column-sort { display: inline-block; }
  .column-sort[data-stable-sort="name"] { padding-left: 0; }
  .header-static, .header-actions { display: none; }
  .device-row { grid-template-columns: 1fr auto; padding: 14px; gap: 12px; }.device-created-column, .device-address, .device-status, .device-traffic { display: none; }
  .device-actions { min-width: 0; }
  .device-actions .action-button { width: 34px; padding: 0; justify-content: center; }.device-actions .action-button span { display: none; }
  .login-panel { padding: 29px 24px; }.brand-login { margin-bottom: 40px; }
}

@media (max-width: 420px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }.stat-card { display: block; }.stat-icon { margin-bottom: 11px; }.stat-note { display: none; }
  .modal-card { padding: 25px 20px; }.modal-actions, .profile-actions { flex-direction: column-reverse; }.modal-actions .button, .profile-actions .button { width: 100%; }
  .qr-navigation { display: grid; grid-template-columns: 1fr; }.qr-navigation .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
