:root{
  --bg:#0b1220;
  --surface:#0f1a2f;
  --surface2:#101f39;
  --text:#fff0f7;
  --muted:#aab6db;
  --border:rgba(255,255,255,.10);
  --shadow:0 14px 40px rgba(0,0,0,.32);
  --primary:#7c5cff;
  --primary2:#2dd4bf;
  --danger:#ef4444;
  --ring:rgba(124,92,255,.35);
  --cardW: 170px;
  --radius: 18px;
  --radius2: 12px;
  --max: 1200px;
  --readerMax: 980px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans Thai", "Noto Sans", "Liberation Sans", sans-serif;
}

html[data-theme="light"]{
  --bg:#f7f8ff;
  --surface:#ffffff;
  --surface2:#f3f4ff;
  --text:#101010;
  --muted:#4b5563;
  --border:rgba(11,18,32,.12);
  --shadow:0 18px 60px rgba(11,18,32,.16);
  --ring:rgba(124,92,255,.25);
}

@media (prefers-color-scheme: light){
  html:not([data-theme]){
    --bg:#f7f8ff;
    --surface:#ffffff;
    --surface2:#f3f4ff;
    --text:#101010;
    --muted:#4b5563;
    --border:rgba(11,18,32,.12);
    --shadow:0 18px 60px rgba(11,18,32,.16);
    --ring:rgba(124,92,255,.25);
  }
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
[hidden]{ display:none !important; }

.sprite{
  position:absolute;
  width:0;
  height:0;
  overflow:hidden;
}
.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;
}
.svgicon{
  width:16px;
  height:16px;
  display:block;
  fill: currentColor;
}

body{
  margin:0;
  font-family:var(--font);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(124,92,255,.35), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(45,212,191,.22), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,0)),
    var(--bg);
  color:var(--text);
  min-height: 100vh;
  display:flex;
  flex-direction:column;
}

a{ color:inherit; text-decoration:none; }
button, input{ font:inherit; color:inherit; }
img{ max-width:100%; display:block; }
img{ -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }

.skip{
  position:absolute;
  left:-999px;
  top:8px;
  background:var(--surface);
  border:1px solid var(--border);
  padding:10px 12px;
  border-radius:10px;
  box-shadow:var(--shadow);
}
.skip:focus{ left:10px; z-index:9999; }

.topbar{
  position:sticky;
  top:0;
  z-index:40;
  backdrop-filter: blur(14px);
  background: color-mix(in oklab, var(--bg) 76%, transparent);
  border-bottom:1px solid var(--border);
  padding-top: env(safe-area-inset-top);
}
.topbar__inner{
  max-width:var(--max);
  margin:0 auto;
  display:flex;
  gap:14px;
  align-items:center;
  padding:12px 14px;
}

.brand{ display:flex; align-items:baseline; gap:10px; min-width:260px; }
.brand__menu{ display:none; }
.brand__name{
  font-weight:900;
  letter-spacing:.3px;
  font-size:18px;
}
.brand__tag{
  font-size:12px;
  color:var(--muted);
  opacity:.95;
}

.search{
  flex:1;
  min-width: 220px;
  position: relative;
  display:flex;
  align-items:center;
  gap:10px;
  border:1px solid var(--border);
  background: color-mix(in oklab, var(--surface) 88%, transparent);
  border-radius:999px;
  padding:8px 10px 8px 12px;
  box-shadow: 0 10px 26px rgba(0,0,0,.10);
  transition: border-color .14s ease, box-shadow .14s ease, background .14s ease;
}
.search:focus-within{
  border-color: color-mix(in oklab, var(--primary) 55%, var(--border));
  background: color-mix(in oklab, var(--surface) 94%, transparent);
  box-shadow: 0 10px 30px rgba(0,0,0,.12), 0 0 0 4px var(--ring);
}
.search input{
  flex:1;
  border:none;
  outline:none;
  background:transparent;
  color:var(--text);
}
.search input::placeholder{ color: color-mix(in oklab, var(--muted) 70%, transparent); }

.searchSuggest{
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 10px);
  border-radius: 16px;
  border: 1px solid color-mix(in oklab, var(--primary) 30%, var(--border));
  background:
    radial-gradient(420px 180px at 12% 0%, color-mix(in oklab, var(--primary) 12%, transparent), transparent 62%),
    radial-gradient(420px 180px at 100% 100%, color-mix(in oklab, var(--primary2) 10%, transparent), transparent 64%),
    color-mix(in oklab, var(--surface) 92%, transparent);
  box-shadow: 0 20px 46px rgba(0,0,0,.26);
  padding: 8px;
  z-index: 130;
}
.searchSuggest[hidden]{ display: none !important; }
.searchSuggest__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 8px;
  padding: 4px 6px 8px;
}
.searchSuggest__label{
  font-size: 12px;
  font-weight: 950;
  color: color-mix(in oklab, var(--text) 96%, transparent);
}
.searchSuggest__count{
  display:inline-flex;
  align-items:center;
  border: 1px solid color-mix(in oklab, var(--primary) 34%, var(--border));
  background: color-mix(in oklab, var(--surface2) 78%, transparent);
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 900;
}
.searchSuggest__list{
  display:grid;
  gap: 6px;
  max-height: min(62vh, 520px);
  overflow: auto;
  padding-right: 2px;
}
.searchSuggest__empty{
  border: 1px dashed color-mix(in oklab, var(--border) 78%, transparent);
  border-radius: 12px;
  background: color-mix(in oklab, var(--surface2) 78%, transparent);
  color: var(--muted);
  text-align:center;
  padding: 18px 12px;
  font-size: 13px;
}
.searchSuggest__foot{
  display:flex;
  justify-content:flex-end;
  padding: 8px 2px 2px;
}
.searchSuggest__link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height: 34px;
  border-radius: 999px;
  border: 1px solid color-mix(in oklab, var(--primary) 36%, var(--border));
  background: linear-gradient(135deg, color-mix(in oklab, var(--primary) 22%, transparent), color-mix(in oklab, var(--primary2) 12%, transparent));
  color: color-mix(in oklab, var(--text) 98%, transparent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .1px;
  padding: 0 12px;
  cursor: pointer;
}
.searchSuggest__link:hover{
  border-color: color-mix(in oklab, var(--primary) 56%, var(--border));
}
.searchSuggestItem{
  width: 100%;
  display:grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items:center;
  gap: 10px;
  border: 1px solid color-mix(in oklab, var(--border) 86%, transparent);
  background: color-mix(in oklab, var(--surface2) 70%, transparent);
  border-radius: 12px;
  min-height: 56px;
  padding: 6px 8px 6px 6px;
  color: inherit;
  text-align:left;
  cursor: pointer;
  transition: transform .12s ease, border-color .12s ease, background .12s ease;
}
.searchSuggestItem:hover{
  transform: translateY(-1px);
  border-color: color-mix(in oklab, var(--primary) 45%, var(--border));
  background: linear-gradient(135deg, color-mix(in oklab, var(--primary) 10%, transparent), color-mix(in oklab, var(--primary2) 6%, transparent));
}
.searchSuggestItem:active{ transform: translateY(0) scale(.995); }
.searchSuggestItem:focus-visible{
  outline:none;
  border-color: color-mix(in oklab, var(--primary) 58%, var(--border));
  box-shadow: 0 0 0 4px var(--ring);
}
.searchSuggestItem__cover{
  width: 44px;
  height: 44px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid color-mix(in oklab, var(--border) 80%, transparent);
  background: color-mix(in oklab, var(--surface2) 74%, transparent);
}
.searchSuggestItem__cover img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
}
.searchSuggestItem__body{
  min-width: 0;
  display:grid;
  gap: 3px;
}
.searchSuggestItem__title{
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.searchSuggestItem__title mark{
  background: color-mix(in oklab, #facc15 42%, transparent);
  color: #fff7c2;
  padding: 0 2px;
  border-radius: 5px;
}
.searchSuggestItem__meta{
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.searchSuggestItem__hint{
  font-size: 11px;
  font-weight: 900;
  color: color-mix(in oklab, var(--primary) 72%, #ffffff 28%);
}

.actions{ display:flex; gap:10px; align-items:center; }
.theme{ position: relative; }
.auth{ position: relative; }
.authbtn{
  border-radius: 14px;
  padding: 9px 12px;
  gap: 10px;
}
.authbtn__avatar{
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-weight: 950;
  font-size: 12px;
  border: 1px solid color-mix(in oklab, var(--border) 70%, transparent);
  background: linear-gradient(135deg, color-mix(in oklab, var(--primary) 38%, transparent), color-mix(in oklab, var(--primary2) 18%, transparent));
}
.authbtn__text{ font-weight: 900; font-size: 12px; letter-spacing: .1px; }
.accountpanel{
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: min(92vw, 336px);
  border-radius: 18px;
  border: 1px solid color-mix(in oklab, #334155 52%, var(--border));
  background:
    radial-gradient(260px 140px at 0% 0%, color-mix(in oklab, #60a5fa 8%, transparent), transparent 62%),
    color-mix(in oklab, #0f131d 94%, transparent);
  box-shadow: 0 24px 46px rgba(0,0,0,.38);
  overflow: hidden;
  z-index: 95;
}
.accountpanel__head{
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px 14px 12px;
}
.accountpanel__avatarWrap{
  width: 56px;
  height: 56px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in oklab, var(--border) 72%, transparent);
  background: linear-gradient(135deg, color-mix(in oklab, var(--primary) 30%, transparent), color-mix(in oklab, var(--primary2) 16%, transparent));
  flex: 0 0 56px;
}
.accountpanel__avatar{
  width: 46px;
  height: 46px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 900;
  color: #dbeafe;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(13,17,28,.75);
}
.accountpanel__meta{ min-width: 0; }
.accountpanel__name{
  font-size: 16px;
  font-weight: 900;
  color: #f4f8ff;
  line-height: 1.2;
}
.accountpanel__sub{
  margin-top: 3px;
  font-size: 12px;
  color: color-mix(in oklab, var(--muted) 90%, #d8e2ff 10%);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 230px;
}
.accountpanel__wallet{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-top: 1px solid color-mix(in oklab, #f59e0b 34%, transparent);
  border-bottom: 1px solid color-mix(in oklab, #f59e0b 24%, transparent);
  background: linear-gradient(180deg, rgba(245,158,11,.18), rgba(245,158,11,.10));
}
.accountpanel__walletLeft{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fbbf24;
  font-weight: 800;
}
.accountpanel__walletValue{
  margin-left: auto;
  color: #fcd34d;
  font-size: 34px;
  font-weight: 900;
  letter-spacing: .2px;
  line-height: 1;
}
.accountpanel__addBtn{
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 10px;
  background: #f59e0b;
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.accountpanel__addBtn:hover{ filter: brightness(1.08); }
.accountpanel__addBtn:focus-visible{
  outline: none;
  box-shadow: 0 0 0 4px rgba(245,158,11,.28);
}
.accountpanel__list{
  padding: 10px 10px 12px;
  display: grid;
  gap: 4px;
}
.accountpanel__item{
  width: 100%;
  border: none;
  background: transparent;
  border-radius: 10px;
  padding: 11px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: color-mix(in oklab, #d6deef 88%, var(--muted));
  font-weight: 700;
  cursor: pointer;
  text-align: left;
}
.accountpanel__item .svgicon{
  width: 18px;
  height: 18px;
  color: color-mix(in oklab, #9aa5bc 86%, var(--muted));
}
.accountpanel__item:hover{
  background: color-mix(in oklab, var(--surface2) 76%, transparent);
}
.accountpanel__logout{
  width: 100%;
  border: none;
  border-top: 1px solid color-mix(in oklab, var(--border) 85%, transparent);
  background: transparent;
  padding: 13px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: color-mix(in oklab, var(--danger) 80%, #ffb4b4 20%);
  font-weight: 900;
  cursor: pointer;
}
.accountpanel__logout:hover{
  background: color-mix(in oklab, var(--danger) 12%, transparent);
}
.menu--auth{ min-width: 260px; }
.menu__sep{
  height: 1px;
  margin: 6px 6px;
  background: color-mix(in oklab, var(--border) 85%, transparent);
}
.menu__item--danger{ color: color-mix(in oklab, var(--danger) 80%, var(--text)); }
.menu__item--danger:hover{
  background: color-mix(in oklab, var(--danger) 12%, transparent);
}
.oauthIcon{
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-weight: 950;
  font-size: 12px;
  border: 1px solid var(--border);
  background: color-mix(in oklab, var(--surface2) 75%, transparent);
}
.oauthIcon--g{
  border-color: color-mix(in oklab, var(--primary) 30%, var(--border));
  background: linear-gradient(135deg, color-mix(in oklab, var(--primary) 22%, transparent), color-mix(in oklab, var(--primary2) 10%, transparent));
}
.oauthIcon--d{
  border-color: color-mix(in oklab, var(--primary2) 30%, var(--border));
  background: linear-gradient(135deg, color-mix(in oklab, var(--primary2) 20%, transparent), color-mix(in oklab, var(--primary) 10%, transparent));
}
.oauthIcon--x{
  border-color: color-mix(in oklab, var(--danger) 38%, var(--border));
  background: color-mix(in oklab, var(--danger) 14%, transparent);
}
.authcard{
  margin: 6px;
  padding: 10px 10px;
  border-radius: 14px;
  border: 1px solid color-mix(in oklab, var(--border) 85%, transparent);
  background:
    radial-gradient(320px 180px at 10% 0%, color-mix(in oklab, var(--primary) 10%, transparent), transparent 60%),
    color-mix(in oklab, var(--surface2) 66%, transparent);
}
.authcard__title{ font-weight: 950; }
.authcard__sub{ margin-top: 4px; color: var(--muted); font-size: 12px; }
.pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  border:1px solid var(--border);
  background: color-mix(in oklab, var(--surface) 92%, transparent);
  padding:9px 12px;
  border-radius:999px;
  cursor:pointer;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease, background .12s ease;
}
.pill:hover{ border-color: color-mix(in oklab, var(--border) 50%, var(--primary) 40%); }
.pill:focus-visible{
  outline:none;
  border-color: color-mix(in oklab, var(--primary) 55%, var(--border));
  box-shadow: 0 0 0 4px var(--ring);
}
.pill--icon{
  width:40px;
  height:40px;
  padding:0;
  justify-content:center;
  gap:0;
}
.pill--cute{
  border-radius: 14px;
  background:
    radial-gradient(18px 18px at 30% 25%, color-mix(in oklab, var(--primary) 18%, transparent), transparent 70%),
    radial-gradient(18px 18px at 70% 80%, color-mix(in oklab, var(--primary2) 14%, transparent), transparent 70%),
    color-mix(in oklab, var(--surface) 92%, transparent);
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.pill--cute:hover{
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 14px 30px rgba(0,0,0,.12);
}
.pill--cute:active{ transform: translateY(0px) scale(.99); }

.menu{
  position:absolute;
  right:0;
  top: calc(100% + 10px);
  min-width: 210px;
  border:1px solid var(--border);
  border-radius: 14px;
  background:
    radial-gradient(220px 140px at 20% 0%, color-mix(in oklab, var(--primary) 10%, transparent), transparent 60%),
    radial-gradient(220px 160px at 90% 90%, color-mix(in oklab, var(--primary2) 8%, transparent), transparent 55%),
    color-mix(in oklab, var(--surface) 96%, transparent);
  box-shadow: var(--shadow);
  padding: 6px;
  z-index: 80;
}
.menu__item{
  width: 100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  padding: 10px 10px;
  border-radius: 12px;
  border: none;
  background: transparent;
  cursor:pointer;
  text-align:left;
}
.menu__left{ display:flex; align-items:center; gap:10px; }
.menu__mark{ opacity:0; }
.menu__item[aria-checked="true"] .menu__mark{ opacity:1; }
.menu__item:hover{ background: color-mix(in oklab, var(--surface2) 78%, transparent); }
.menu__item[aria-checked="true"]{
  background: linear-gradient(135deg, color-mix(in oklab, var(--primary) 18%, transparent), color-mix(in oklab, var(--primary2) 10%, transparent));
  border:1px solid color-mix(in oklab, var(--primary) 35%, var(--border));
}

.iconbtn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:38px;
  height:38px;
  border-radius:999px;
  border:1px solid var(--border);
  background: transparent;
  cursor:pointer;
  transition: transform .12s ease, border-color .12s ease, background .12s ease, box-shadow .12s ease;
}
.iconbtn:hover{ background: color-mix(in oklab, var(--surface2) 75%, transparent); }
.iconbtn:active{ transform: translateY(1px) scale(.99); }
.iconbtn:focus-visible{
  outline:none;
  border-color: color-mix(in oklab, var(--primary) 55%, var(--border));
  box-shadow: 0 0 0 4px var(--ring);
}
.icon{ font-size:16px; line-height:1; }

.layout{
  max-width:var(--max);
  margin:0 auto;
  display:grid;
  grid-template-columns: 1fr;
  gap:16px;
  padding:16px 14px 30px;
  flex: 1;
}
.drawer{
  position: sticky;
  top:74px;
  align-self:start;
  height: calc(100vh - 96px);
  border:1px solid color-mix(in oklab, var(--border) 70%, transparent);
  background:
    radial-gradient(420px 260px at 0% 0%, color-mix(in oklab, var(--primary) 14%, transparent), transparent 60%),
    radial-gradient(360px 240px at 100% 30%, color-mix(in oklab, var(--primary2) 10%, transparent), transparent 55%),
    color-mix(in oklab, var(--surface) 92%, transparent);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow:hidden;
  display:flex;
  flex-direction:column;
  backdrop-filter: blur(14px) saturate(1.15);
}
.drawer::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background: linear-gradient(180deg, rgba(255,255,255,.06), transparent 32%);
}
.nav{
  padding:10px;
  display:flex;
  flex-direction:column;
  gap:6px;
  flex:1;
  overflow:auto;
  scrollbar-width: thin;
  scrollbar-color: color-mix(in oklab, var(--border) 70%, transparent) transparent;
}
.nav::-webkit-scrollbar{ width: 10px; }
.nav::-webkit-scrollbar-thumb{
  background: color-mix(in oklab, var(--border) 70%, transparent);
  border-radius: 999px;
  border: 3px solid transparent;
  background-clip: content-box;
}
.nav__item{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  border-radius: 12px;
  border:1px solid transparent;
  background: transparent;
  position:relative;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
  color: color-mix(in oklab, var(--text) 92%, var(--muted) 8%);
}
.nav__item .icon{ width: 20px; text-align:center; opacity:.95; }
.nav__item:hover{
  background: color-mix(in oklab, var(--surface2) 80%, transparent);
  border-color: color-mix(in oklab, var(--border) 60%, var(--primary) 30%);
  transform: translateY(-1px);
}
.nav__item:focus-visible{
  outline:none;
  border-color: color-mix(in oklab, var(--primary) 55%, var(--border));
  box-shadow: 0 0 0 4px var(--ring);
}
.nav__item[aria-current="page"]{
  background: linear-gradient(135deg, color-mix(in oklab, var(--primary) 16%, transparent), color-mix(in oklab, var(--primary2) 12%, transparent));
  border:1px solid color-mix(in oklab, var(--primary) 35%, var(--border));
  box-shadow: 0 12px 26px rgba(0,0,0,.18);
}
.nav__item[aria-current="page"]::before{
  content:"";
  position:absolute;
  left:6px;
  top:50%;
  transform: translateY(-50%);
  width:3px;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--primary), var(--primary2));
}
.nav__sep{
  margin:10px 12px;
  height:1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}
.drawer__footer{
  margin: 10px;
  margin-top: 0;
  padding:12px 12px;
  border:1px solid var(--border);
  border-radius: 14px;
  background:
    radial-gradient(240px 140px at 20% 20%, color-mix(in oklab, var(--primary) 10%, transparent), transparent 60%),
    color-mix(in oklab, var(--surface2) 72%, transparent);
  color: var(--muted);
}
.small{ font-size:12px; line-height:1.35; }

.main{
  min-height: calc(100vh - 140px);
  border:1px solid var(--border);
  background:
    radial-gradient(800px 420px at 15% 0%, color-mix(in oklab, var(--primary) 12%, transparent), transparent 62%),
    radial-gradient(700px 420px at 100% 20%, color-mix(in oklab, var(--primary2) 9%, transparent), transparent 60%),
    color-mix(in oklab, var(--surface) 86%, transparent);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow:hidden;
  backdrop-filter: blur(10px) saturate(1.05);
}
.page{
  padding:18px 18px 22px;
}
.homeHero{
  padding: 10px 10px 0;
}
.homeHero:empty{
  display: none;
}
.homeHero .slideshow{
  margin-bottom: 0;
}

.policy{
  max-width: 92ch;
  line-height: 1.8;
  font-size: 14px;
}
.policy h3{
  margin: 18px 0 8px;
  font-size: 16px;
  letter-spacing: .1px;
}
.policy p{
  margin: 0 0 12px;
  color: color-mix(in oklab, var(--text) 94%, var(--muted) 6%);
}
.policy__dl{
  margin: 10px 0 0;
  display:grid;
  gap: 10px;
}
.policy__dl dt{
  font-weight: 900;
  letter-spacing: .1px;
}
.policy__dl dd{
  margin: 0;
  color: color-mix(in oklab, var(--text) 92%, var(--muted) 8%);
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid color-mix(in oklab, var(--border) 80%, transparent);
  background: color-mix(in oklab, var(--surface2) 66%, transparent);
}
.policy__callout{
  margin: 10px 0 12px;
  padding: 12px 12px;
  border-radius: 16px;
  border: 1px solid color-mix(in oklab, var(--primary) 34%, var(--border));
  background:
    radial-gradient(320px 180px at 10% 0%, color-mix(in oklab, var(--primary) 14%, transparent), transparent 60%),
    color-mix(in oklab, var(--surface2) 66%, transparent);
  box-shadow: 0 14px 34px rgba(0,0,0,.16);
}
.policy__kicker{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-weight: 900;
  letter-spacing: .1px;
  margin-bottom: 6px;
}

.pagehead{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:12px;
  margin-bottom: 12px;
}
.pagehead h2{
  margin:0;
  font-size:20px;
  letter-spacing:.1px;
}
.pagehead__titleRow{
  display:flex;
  align-items:baseline;
  gap:12px;
  flex-wrap:wrap;
}
.pagecount{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid color-mix(in oklab, var(--primary) 30%, var(--border));
  background: linear-gradient(135deg, color-mix(in oklab, var(--primary) 16%, transparent), color-mix(in oklab, var(--primary2) 10%, transparent));
  color: color-mix(in oklab, var(--text) 96%, transparent);
  font-weight: 950;
  font-size: 12px;
  letter-spacing: .1px;
  white-space: nowrap;
}

.slideshow{
  position: relative;
  border-radius: 18px;
  border: 1px solid color-mix(in oklab, var(--border) 80%, transparent);
  background:
    radial-gradient(720px 260px at 10% 0%, color-mix(in oklab, var(--primary) 16%, transparent), transparent 60%),
    radial-gradient(720px 260px at 100% 100%, color-mix(in oklab, var(--primary2) 10%, transparent), transparent 62%),
    color-mix(in oklab, var(--surface) 82%, transparent);
  box-shadow: 0 16px 44px rgba(0,0,0,.14);
  margin-bottom: 12px;
  overflow: hidden;
}
.slideshow__viewport{
  position: relative;
  aspect-ratio: 16 / 6;
  min-height: 170px;
}
@media (max-width: 700px){
  .slideshow__viewport{ aspect-ratio: 16 / 9; }
}
.slideshow__slides{
  position:absolute;
  inset:0;
}
.slideshow__slide{
  position:absolute;
  inset:0;
  display:block;
  opacity:0;
  transition: opacity .5s ease;
  pointer-events:none;
}
.slideshow__slide.is-active{
  opacity:1;
  pointer-events:auto;
}
.slideshow__slide:focus-visible{
  outline:none;
  box-shadow: inset 0 0 0 4px var(--ring);
}
.slideshow__slide img{
  width:100%;
  height:100%;
  object-fit: cover;
  transform: scale(1.02);
  -webkit-user-drag: none;
  user-select: none;
}
.slideshow__nav{
  position:absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display:flex;
  align-items:center;
  justify-content:center;
  border: 1px solid rgba(255,255,255,.14);
  background: color-mix(in oklab, var(--surface) 30%, rgba(0,0,0,.40));
  backdrop-filter: blur(10px);
  color: rgba(255,255,255,.92);
  cursor:pointer;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}
.slideshow__nav:hover{
  background: color-mix(in oklab, var(--surface) 40%, rgba(0,0,0,.42));
  border-color: color-mix(in oklab, var(--primary) 30%, rgba(255,255,255,.14));
  transform: translateY(-50%) scale(1.04);
}
.slideshow__nav:active{ transform: translateY(-50%) scale(.98); }
.slideshow__nav:focus-visible{
  outline:none;
  box-shadow: 0 0 0 4px var(--ring);
}
.slideshow__nav--prev{ left: 10px; }
.slideshow__nav--next{ right: 10px; }
.slideshow__dots{
  position:absolute;
  right: 12px;
  bottom: 12px;
  display:flex;
  gap: 7px;
  align-items:center;
}
.slideshow__dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.20);
  cursor:pointer;
  transition: width .16s ease, background .16s ease, border-color .16s ease;
}
.slideshow__dot.is-active{
  width: 22px;
  background: color-mix(in oklab, var(--primary) 52%, rgba(255,255,255,.22));
  border-color: color-mix(in oklab, var(--primary) 42%, rgba(255,255,255,.18));
}
@media (prefers-reduced-motion: reduce){
  .slideshow__slide{ transition:none; }
}

.panel{
  position: relative;
  border-radius: 18px;
  border: 1px solid color-mix(in oklab, var(--border) 80%, transparent);
  background:
    radial-gradient(520px 220px at 0% 0%, color-mix(in oklab, var(--primary) 10%, transparent), transparent 60%),
    radial-gradient(520px 220px at 100% 100%, color-mix(in oklab, var(--primary2) 8%, transparent), transparent 62%),
    color-mix(in oklab, var(--surface) 82%, transparent);
  box-shadow: 0 16px 44px rgba(0,0,0,.14);
  padding: 12px 12px;
  margin-bottom: 12px;
  overflow: hidden;
}
.panel::before{
  content:"";
  position:absolute;
  inset:-1px;
  pointer-events:none;
  background: linear-gradient(180deg, rgba(255,255,255,.06), transparent 36%);
  opacity: .9;
}
.panel > *{ position: relative; z-index: 1; }
.panel__head{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap: 10px;
  padding: 6px 6px 12px;
}
.panel__title{
  margin: 0;
  font-size: 15px;
  font-weight: 950;
  letter-spacing: .1px;
}
.panel__hint{
  color: var(--muted);
  font-size: 12px;
}
.panel__body{
  padding: 0 4px 4px;
}

.panel__scrollX{
  overflow-x: visible;
}

.grid--small{
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}

.feature{
  display:grid;
  grid-template-columns: 180px 1fr;
  gap: 12px;
  align-items: stretch;
  border-radius: 16px;
  overflow:hidden;
  border: 1px solid color-mix(in oklab, var(--border) 75%, transparent);
  background:
    radial-gradient(520px 240px at 0% 0%, color-mix(in oklab, var(--primary) 12%, transparent), transparent 60%),
    color-mix(in oklab, var(--surface2) 70%, transparent);
  cursor:pointer;
  transition: transform .14s ease, border-color .14s ease, box-shadow .14s ease;
}
.feature:hover{
  transform: translateY(-2px);
  border-color: color-mix(in oklab, var(--primary) 32%, var(--border));
  box-shadow: 0 20px 60px rgba(0,0,0,.18);
}
.feature:focus-visible{
  outline:none;
  box-shadow: 0 0 0 4px var(--ring), 0 20px 60px rgba(0,0,0,.18);
}
.feature__cover{
  position:relative;
  background: color-mix(in oklab, var(--surface2) 82%, transparent);
}
.feature__cover img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
}
.feature__body{
  padding: 12px 12px 12px;
  display:flex;
  flex-direction:column;
  gap: 6px;
}
.feature__kicker{
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid color-mix(in oklab, var(--primary) 36%, var(--border));
  background: linear-gradient(135deg, color-mix(in oklab, var(--primary) 22%, transparent), color-mix(in oklab, var(--primary2) 12%, transparent));
  font-weight: 950;
  font-size: 12px;
}
.feature__title{
  font-weight: 950;
  font-size: 16px;
  letter-spacing: .1px;
  line-height: 1.2;
}
.feature__sub{
  color: var(--muted);
  font-size: 12px;
}
.feature__desc{
  margin-top: 2px;
  color: color-mix(in oklab, var(--text) 92%, var(--muted) 8%);
  font-size: 13px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.feature__tags{
  margin-top: auto;
  display:flex;
  gap: 8px;
  flex-wrap: wrap;
}
.sub{
  color:var(--muted);
  margin-top:6px;
  font-size:13px;
}

.chips{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin: 10px 0 14px;
}
.chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 10px;
  border-radius:999px;
  background: color-mix(in oklab, var(--surface2) 76%, transparent);
  border:1px solid var(--border);
  cursor:pointer;
  user-select:none;
  font-size: 13px;
  transition: transform .12s ease, border-color .12s ease, background .12s ease;
}
.chip:hover{ border-color: color-mix(in oklab, var(--primary) 30%, var(--border)); }
.chip:active{ transform: translateY(1px) scale(.99); }
.chip[aria-pressed="true"]{
  background: linear-gradient(135deg, color-mix(in oklab, var(--primary) 22%, transparent), color-mix(in oklab, var(--primary2) 12%, transparent));
  border-color: color-mix(in oklab, var(--primary) 40%, var(--border));
  box-shadow: 0 10px 22px rgba(0,0,0,.16);
}
.chips--panel{ margin: 0; }

.lib{
  display: grid;
  gap: 12px;
}
.libPanel .panel__head{
  align-items: flex-start;
}
.libPanel{ margin-bottom: 0; }
.libPanel__actions{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}
.libHint{
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  color: color-mix(in oklab, var(--text) 90%, var(--muted) 10%);
}
.libHint__count{
  font-weight: 950;
  letter-spacing: .1px;
}
.libHint__pill{
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid color-mix(in oklab, var(--border) 86%, transparent);
  background: color-mix(in oklab, var(--surface2) 76%, transparent);
  color: var(--muted);
  font-weight: 800;
  letter-spacing: .1px;
}

@media (min-width: 981px){
  .feature.libFeature{ grid-template-columns: 220px 1fr; }
}

.grid.grid--shelf{
  grid-template-columns: repeat(auto-fit, minmax(var(--cardW), 220px));
  justify-content: center;
  gap: 14px;
}
.grid.grid--shelf .card{ min-height: 270px; }
.grid.grid--shelf .card__body{ padding: 11px 11px 13px; gap: 7px; }
.grid.grid--shelf .card__title{ font-size: 15px; letter-spacing: .1px; }
.grid.grid--shelf .card__cover img{ transition: transform .35s ease; }
.grid.grid--shelf .card:hover .card__cover img{ transform: scale(1.06); }

.grid{
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(var(--cardW), 1fr));
  gap: 12px;
}
.grid.grid--ranked10{
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.card{
  border:1px solid var(--border);
  background:
    radial-gradient(220px 140px at 20% 0%, rgba(255,255,255,.06), transparent 60%),
    color-mix(in oklab, var(--surface) 92%, transparent);
  border-radius: var(--radius2);
  overflow:hidden;
  cursor:pointer;
  display:flex;
  flex-direction:column;
  min-height: 250px;
  box-shadow: 0 16px 44px rgba(0,0,0,.14);
  transform: translateZ(0);
  transition: transform .14s ease, border-color .14s ease, box-shadow .14s ease, background .14s ease;
}
.card:hover{
  transform: translateY(-3px);
  border-color: color-mix(in oklab, var(--primary) 32%, var(--border));
  box-shadow: 0 20px 60px rgba(0,0,0,.18);
}
.card:active{ transform: translateY(-1px) scale(.995); }
.card:focus-visible{
  outline:none;
  border-color: color-mix(in oklab, var(--primary) 55%, var(--border));
  box-shadow: 0 0 0 4px var(--ring), 0 20px 60px rgba(0,0,0,.18);
}
.card__cover{
  aspect-ratio: 3 / 4;
  background: color-mix(in oklab, var(--surface2) 82%, transparent);
  border-bottom:1px solid var(--border);
  position: relative;
}
.card__rank{
  position:absolute;
  left:10px;
  top:10px;
  width: 36px;
  height: 36px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius: 14px;
  font-weight: 950;
  font-size: 13px;
  letter-spacing: .2px;
  color: var(--text);
  border: 1px solid color-mix(in oklab, var(--border) 60%, transparent);
  background:
    radial-gradient(18px 18px at 30% 25%, color-mix(in oklab, var(--primary) 26%, transparent), transparent 70%),
    radial-gradient(18px 18px at 70% 80%, color-mix(in oklab, var(--primary2) 18%, transparent), transparent 70%),
    color-mix(in oklab, var(--surface) 88%, transparent);
  box-shadow: 0 12px 28px rgba(0,0,0,.18);
  backdrop-filter: blur(10px) saturate(1.1);
}
.card__rank--top{
  border-color: color-mix(in oklab, var(--primary) 40%, var(--border));
  background:
    radial-gradient(18px 18px at 25% 25%, color-mix(in oklab, var(--primary) 32%, transparent), transparent 70%),
    radial-gradient(18px 18px at 80% 70%, color-mix(in oklab, var(--primary2) 24%, transparent), transparent 70%),
    linear-gradient(135deg, color-mix(in oklab, var(--primary) 22%, transparent), color-mix(in oklab, var(--primary2) 14%, transparent)),
    color-mix(in oklab, var(--surface) 88%, transparent);
}
.card__cover::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    radial-gradient(220px 180px at 20% 20%, rgba(255,255,255,.10), transparent 60%),
    linear-gradient(180deg, transparent, rgba(0,0,0,.22));
  mix-blend-mode: overlay;
}
.card__cover img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card--ghost{
  cursor: default;
  box-shadow: none;
  border-style: dashed;
  background: color-mix(in oklab, var(--surface2) 52%, transparent);
}
.card--ghost:hover{
  transform:none;
  border-color: var(--border);
  box-shadow:none;
}
.card--ghost .card__cover{
  background:
    radial-gradient(420px 240px at 10% 0%, color-mix(in oklab, var(--primary) 14%, transparent), transparent 60%),
    radial-gradient(420px 240px at 100% 100%, color-mix(in oklab, var(--primary2) 10%, transparent), transparent 62%),
    color-mix(in oklab, var(--surface2) 62%, transparent);
}
.card--ghost .card__title{ color: color-mix(in oklab, var(--text) 88%, var(--muted) 12%); }
.card__body{ padding:10px 10px 12px; display:flex; flex-direction:column; gap:6px; flex:1; }
.card__title{ font-weight:800; font-size:14px; line-height:1.25; }
.card__meta{ display:flex; gap:8px; flex-wrap:wrap; color:var(--muted); font-size:12px; margin-top:auto; }
.card__meta--top{ margin-top: 6px; }
.card__meta .badge{
  padding: 3px 7px;
  font-size: 11px;
  border-radius: 999px;
  background: color-mix(in oklab, var(--surface2) 76%, transparent);
}
.card__stats{
  margin-top: auto;
  min-height: 34px;
  padding: 7px 9px;
  border-radius: 10px;
  border: 1px solid color-mix(in oklab, #2a5aa8 38%, var(--border));
  background: linear-gradient(90deg, rgba(11,22,44,.78), rgba(15,33,66,.8));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.card__stat{
  min-width: 0;
  font-size: 11.5px;
  font-weight: 900;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card__stat--chapters{
  color: #e7f0ff;
  text-align: left;
}
.card__stat--reads{
  color: #a8c7ff;
  text-align: right;
  margin-left: auto;
}
.badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:4px 8px;
  border-radius:999px;
  border:1px solid var(--border);
  background: color-mix(in oklab, var(--surface2) 80%, transparent);
  font-size: 12px;
}
.pagehead > .badge{
  font-weight: 950;
  border-color: color-mix(in oklab, var(--primary) 30%, var(--border));
  background: linear-gradient(135deg, color-mix(in oklab, var(--primary) 16%, transparent), color-mix(in oklab, var(--primary2) 10%, transparent));
}

.empty{
  border:1px dashed var(--border);
  border-radius: var(--radius2);
  padding:16px;
  color:var(--muted);
  background: color-mix(in oklab, var(--surface2) 55%, transparent);
}
.emptyState{
  border:1px dashed color-mix(in oklab, var(--primary) 34%, var(--border));
  border-radius: 16px;
  padding: 18px;
  background:
    radial-gradient(340px 170px at 0% 0%, color-mix(in oklab, var(--primary) 12%, transparent), transparent 60%),
    color-mix(in oklab, var(--surface2) 68%, transparent);
  color: color-mix(in oklab, var(--text) 90%, var(--muted) 10%);
}
.emptyState__title{
  margin: 0;
  font-size: 17px;
  font-weight: 950;
}
.emptyState__desc{
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 13px;
}
.emptyState__actions{
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
  margin-top: 12px;
}
.emptyState__chips{
  display:flex;
  flex-wrap:wrap;
  gap: 8px;
  margin-top: 12px;
}
.emptyState--compact{
  padding: 14px;
}

.profileedit{
  display: grid;
  gap: 12px;
}
.profileedit__card{
  border-radius: 20px;
  border: 1px solid color-mix(in oklab, #25314f 62%, var(--border));
  background:
    radial-gradient(860px 400px at 15% -12%, color-mix(in oklab, #3b82f6 14%, transparent), transparent 62%),
    radial-gradient(900px 380px at 100% 102%, color-mix(in oklab, #1d4ed8 12%, transparent), transparent 62%),
    #090d17;
  box-shadow: 0 20px 44px rgba(0,0,0,.34);
  overflow: hidden;
}
.profileedit__hero{
  position: relative;
  min-height: 336px;
  background: #000;
}
.profileedit__coverImage{
  width: 100%;
  height: 336px;
  object-fit: cover;
  display: block;
  filter: saturate(1.1) contrast(1.03);
}
.profileedit__hero::after{
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5,8,17,.1), rgba(5,8,17,.9)),
    linear-gradient(90deg, rgba(15,21,37,.22), rgba(12,17,31,.22));
  pointer-events: none;
}
.profileedit__coverBtn{
  position: absolute;
  top: 14px;
  right: 14px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.24);
  background: rgba(0,0,0,.4);
  color: #f3f6ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  z-index: 2;
}
.profileedit__coverBtn:hover{
  background: rgba(0,0,0,.56);
  border-color: rgba(135,172,255,.62);
}
.profileedit__coverBtn:focus-visible{
  outline: none;
  box-shadow: 0 0 0 4px rgba(121,157,255,.3);
}
.profileedit__avatarWrap{
  position: absolute;
  left: 50%;
  bottom: -70px;
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  gap: 10px;
  z-index: 3;
}
.profileedit__avatar{
  width: 136px;
  height: 136px;
  border-radius: 999px;
  border: 4px solid #0a0f1b;
  background:
    radial-gradient(40px 40px at 28% 24%, color-mix(in oklab, var(--primary) 22%, transparent), transparent 72%),
    linear-gradient(145deg, #0f1526, #0a0e1a);
  display: grid;
  overflow: hidden;
  box-shadow: 0 16px 32px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.08);
}
.profileedit__avatarImage{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.profileedit__avatarFallback{
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-size: 44px;
  font-weight: 950;
  color: #f1f6ff;
}
.profileedit__avatarBtn{
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid color-mix(in oklab, #7ea9ff 40%, var(--border));
  background: color-mix(in oklab, #0d1426 86%, transparent);
  color: #cfdcff;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.profileedit__avatarBtn:hover{
  border-color: #78a3ff;
  background: color-mix(in oklab, #132043 82%, transparent);
}
.profileedit__avatarBtn:focus-visible{
  outline: none;
  box-shadow: 0 0 0 4px rgba(121,157,255,.3);
}
.profileedit__body{
  padding: 96px 22px 16px;
}
.profileedit__identity{
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.profileedit__chip{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  border: 1px solid color-mix(in oklab, var(--border) 84%, #2a3554 16%);
  background: color-mix(in oklab, #11192b 90%, transparent);
  color: color-mix(in oklab, #cad5f2 90%, #fff 10%);
  font-size: 12px;
  padding: 7px 11px;
}
.profileedit__field{
  margin-top: 16px;
  display: grid;
  gap: 7px;
}
.profileedit__label{
  font-size: 29px;
  color: #dbe7ff;
  font-weight: 900;
  line-height: 1.2;
}
.profileedit__req{
  color: #ff5b5b;
}
.profileedit__input,
.profileedit__textarea{
  width: 100%;
  border: 1px solid #1f2a45;
  border-radius: 14px;
  background: #020612;
  color: #e6eeff;
  outline: none;
}
.profileedit__input{
  min-height: 46px;
  padding: 0 14px;
}
.profileedit__textarea{
  min-height: 150px;
  resize: vertical;
  padding: 12px 14px;
}
.profileedit__input:focus,
.profileedit__textarea:focus{
  border-color: #3567d8;
  box-shadow: 0 0 0 4px rgba(53,103,216,.26);
}
.profileedit__hint{
  justify-self: end;
  color: #8fb2de;
  font-size: 14px;
  font-weight: 700;
}
.profileedit__count{
  justify-self: end;
  color: #8fb2de;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: .2px;
}
.profileedit__foot{
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid color-mix(in oklab, var(--border) 82%, #25314f 18%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.profileedit__email{
  color: #a9bbdf;
  font-size: 13px;
}
.profileedit__save{
  border: 1px solid color-mix(in oklab, #3971ff 72%, var(--border));
  background: linear-gradient(135deg, #2b66f3, #3f84ff);
  color: #edf4ff;
  font-weight: 900;
  min-width: 146px;
  justify-content: center;
  box-shadow: 0 10px 20px rgba(43,102,243,.28);
}
.profileedit__save:hover{
  border-color: #5a8fff;
  background: linear-gradient(135deg, #2f6cfb, #5596ff);
}

.accountpage{
  display: grid;
  gap: 12px;
}
.accountcard{
  border: 1px solid color-mix(in oklab, var(--border) 82%, transparent);
  border-radius: 16px;
  padding: 14px;
  background:
    radial-gradient(320px 180px at 0% 0%, color-mix(in oklab, var(--primary) 10%, transparent), transparent 62%),
    color-mix(in oklab, var(--surface) 92%, transparent);
  box-shadow: 0 12px 30px rgba(0,0,0,.14);
}
.accountcard--wallet{
  border-color: color-mix(in oklab, #f59e0b 35%, var(--border));
  background:
    radial-gradient(340px 180px at 0% 0%, rgba(245,158,11,.22), transparent 64%),
    linear-gradient(180deg, rgba(245,158,11,.12), rgba(245,158,11,.04)),
    color-mix(in oklab, #1a1308 88%, transparent);
}
.accountcard__title{
  margin: 0;
  font-size: 18px;
  font-weight: 950;
}
.accountcard__sub{
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--muted);
}
.accountgrid{
  margin-top: 12px;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.accountfield{
  display: grid;
  gap: 6px;
}
.accountfield__label{
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
}
.accountfield__input{
  min-height: 42px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: color-mix(in oklab, var(--surface2) 78%, transparent);
  padding: 0 12px;
}
.accountfield__input:focus{
  outline: none;
  border-color: color-mix(in oklab, var(--primary) 55%, var(--border));
  box-shadow: 0 0 0 4px var(--ring);
}
.accountfield__input[readonly]{
  color: color-mix(in oklab, var(--text) 88%, var(--muted) 12%);
  cursor: default;
}
.securityx{
  display: grid;
  gap: 12px;
}
.securityx__card{
  border-radius: 20px;
  border: 1px solid color-mix(in oklab, #243355 70%, var(--border));
  background:
    radial-gradient(840px 380px at 0% -12%, color-mix(in oklab, #1d4ed8 16%, transparent), transparent 62%),
    radial-gradient(920px 360px at 100% 118%, color-mix(in oklab, #2563eb 12%, transparent), transparent 62%),
    #0b1019;
  box-shadow: 0 20px 44px rgba(0,0,0,.35);
  overflow: hidden;
}
.securityx__hero{
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-bottom: 1px solid color-mix(in oklab, var(--border) 82%, transparent);
  background:
    radial-gradient(300px 120px at 0% 0%, color-mix(in oklab, #60a5fa 14%, transparent), transparent 62%),
    linear-gradient(180deg, rgba(13,20,34,.82), rgba(10,16,29,.78));
}
.securityx__avatar{
  width: 58px;
  height: 58px;
  border-radius: 999px;
  border: 2px solid color-mix(in oklab, #2f6ff8 65%, var(--border));
  background: #050812;
  display: grid;
  overflow: hidden;
  flex: 0 0 58px;
}
.securityx__avatarImage{
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.securityx__avatarFallback{
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: #eef4ff;
  font-size: 20px;
  font-weight: 950;
}
.securityx__heroMeta{
  min-width: 0;
  display: grid;
  gap: 2px;
}
.securityx__heroName{
  margin: 0;
  color: #edf3ff;
  font-size: 31px;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: .1px;
}
.securityx__heroEmail{
  margin: 0;
  color: #9db4da;
  font-size: 14px;
}
.securityx__heroState{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
  color: #7ed39b;
  font-size: 12px;
  font-weight: 800;
}
.securityx__dot{
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34,197,94,.15);
}
.securityx__panel{
  padding: 18px;
  display: grid;
  gap: 12px;
}
.securityx__panelTitle{
  margin: 0;
  color: #e4edff;
  font-size: 28px;
  font-weight: 900;
  line-height: 1.2;
}
.securityx__sub{
  margin: 0;
  color: #9fb2d4;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 700;
}
.securityx__divider{
  height: 1px;
  margin: 0 18px;
  background: color-mix(in oklab, #25314f 72%, var(--border));
}
.securityxField{
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid color-mix(in oklab, #32435f 72%, var(--border));
  background: #0c1322;
  display: grid;
  grid-template-columns: 54px minmax(0,1fr);
  overflow: hidden;
}
.securityxField__icon{
  display: grid;
  place-items: center;
  color: #9bb4db;
  border-right: 1px solid color-mix(in oklab, #2d3b55 80%, var(--border));
  background: color-mix(in oklab, #111b2f 84%, transparent);
  font-size: 15px;
}
.securityxField__input{
  width: 100%;
  min-height: 44px;
  border: none;
  outline: none;
  background: transparent;
  color: #edf4ff;
  padding: 0 14px;
  font-size: 16px;
  font-weight: 700;
}
.securityxField__input::placeholder{
  color: #7d93b8;
  font-weight: 600;
}
.securityxField:focus-within{
  border-color: color-mix(in oklab, #5f8fff 70%, var(--border));
  box-shadow: 0 0 0 4px rgba(96,143,255,.18);
}
.securityx__notice{
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 700;
}
.securityx__notice--warn{
  border: 1px solid rgba(232, 136, 34, .38);
  background: linear-gradient(180deg, rgba(62,37,17,.44), rgba(44,28,14,.4));
  color: #f6ce64;
}
.securityx__notice--info{
  border: 1px solid color-mix(in oklab, #2d5fcb 52%, var(--border));
  background: linear-gradient(180deg, rgba(18,34,66,.54), rgba(14,28,55,.4));
  color: #b9ceff;
}
.securityxSession{
  border: 1px solid color-mix(in oklab, #31456f 68%, var(--border));
  border-radius: 14px;
  background:
    radial-gradient(300px 110px at 0% 0%, rgba(73,135,255,.12), transparent 72%),
    linear-gradient(180deg, rgba(10,20,38,.72), rgba(9,17,31,.66));
  padding: 12px;
  display: grid;
  gap: 10px;
}
.securityxSession__head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.securityxSession__title{
  color: #dce8ff;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .2px;
}
.securityxSession__list{
  display: grid;
  gap: 8px;
}
.securityxSession__item{
  border: 1px solid color-mix(in oklab, #2e4268 70%, var(--border));
  border-radius: 12px;
  padding: 10px;
  background: linear-gradient(180deg, rgba(9,16,30,.92), rgba(8,14,25,.88));
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 10px;
  align-items: center;
}
.securityxSession__meta{
  min-width: 0;
  display: grid;
  gap: 4px;
}
.securityxSession__device{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: #edf4ff;
  font-size: 13px;
  font-weight: 800;
}
.securityxSession__current{
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, .36);
  background: rgba(10, 73, 112, .28);
  color: #7dd3fc;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 900;
}
.securityxSession__detail{
  color: #96abcf;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}
.securityxSession__btn{
  min-width: 148px;
  justify-content: center;
  border: 1px solid rgba(255, 129, 144, .38);
  background: linear-gradient(135deg, rgba(120,33,49,.72), rgba(165,45,64,.66));
  color: #ffd7de;
  font-weight: 800;
}
.securityxSession__btn:hover{
  border-color: rgba(248, 113, 113, .8);
  background: linear-gradient(135deg, rgba(138,37,55,.78), rgba(184,52,72,.72));
}
.securityxSession__btn[disabled]{
  opacity: .75;
  cursor: default;
}
.securityxSession__status{
  border: 1px dashed color-mix(in oklab, #31456f 72%, var(--border));
  border-radius: 10px;
  padding: 10px 12px;
  color: #9ab0d4;
  font-size: 12px;
  font-weight: 700;
}
.securityxSession__status--error{
  border-color: rgba(248, 113, 113, .42);
  color: #fecaca;
  background: rgba(127, 29, 29, .18);
}
.securityxSession__empty{
  margin: 0;
  color: #8ea4c7;
  font-size: 12px;
  font-weight: 700;
}
.securityxMetaGrid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 10px;
}
.securityxMetaGrid--single{
  grid-template-columns: 1fr;
}
.securityxMiniField{
  display: grid;
  gap: 6px;
}
.securityxMiniField__label{
  color: #94a9ca;
  font-size: 12px;
  font-weight: 800;
}
.securityxMiniField__input{
  width: 100%;
  min-height: 40px;
  border-radius: 10px;
  border: 1px solid color-mix(in oklab, #32435f 72%, var(--border));
  background: #0c1322;
  color: #d5e2ff;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 700;
}
.securityxPassGrid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 10px;
}
.securityx__actions{
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}
.securityx__actions--end{
  justify-content: flex-end;
}
.securityx__btnPrimary{
  border: 1px solid color-mix(in oklab, #3971ff 72%, var(--border));
  background: linear-gradient(135deg, #2b66f3, #3f84ff);
  color: #edf4ff;
  font-weight: 900;
  min-width: 168px;
  justify-content: center;
  box-shadow: 0 10px 20px rgba(43,102,243,.28);
}
.securityx__btnPrimary:hover{
  border-color: #5a8fff;
  background: linear-gradient(135deg, #2f6cfb, #5596ff);
}
.securityx__btnGhost{
  border: 1px solid color-mix(in oklab, #4f72b6 70%, var(--border));
  background: linear-gradient(135deg, rgba(30,47,80,.84), rgba(24,38,67,.8));
  color: #d4e2ff;
  font-weight: 800;
  min-width: 94px;
  justify-content: center;
}
.securityx__btnGhost:hover{
  border-color: #7ea3ff;
  background: linear-gradient(135deg, rgba(45,64,102,.88), rgba(32,52,88,.86));
}
.securityx__btnDanger{
  border: 1px solid color-mix(in oklab, #ef4444 70%, var(--border));
  background: linear-gradient(135deg, #8d1f2d, #be2b45);
  color: #ffe6eb;
  font-weight: 900;
  min-width: 206px;
  justify-content: center;
  box-shadow: 0 10px 22px rgba(190,43,69,.28);
}
.securityx__btnDanger:hover{
  border-color: #f87171;
  background: linear-gradient(135deg, #9c2434, #cf3654);
}
.walletbig{
  margin-top: 8px;
  font-size: 44px;
  line-height: 1;
  font-weight: 950;
  color: #fcd34d;
  letter-spacing: .3px;
}
.walletpreset{
  margin-top: 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.topup{
  display: grid;
  gap: 14px;
}

@media (min-width: 1100px){
  .topup{
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
  }
  .topupCard{
    order: 1;
  }
  .topupHistory{
    order: 2;
    margin: 0;
  }
}
.topupCard{
  border: 1px solid color-mix(in oklab, #263352 70%, var(--border));
  border-radius: 18px;
  background:
    radial-gradient(700px 220px at 12% -10%, rgba(48,96,255,.18), transparent 64%),
    radial-gradient(700px 200px at 100% 120%, rgba(36,180,230,.12), transparent 66%),
    linear-gradient(180deg, #10141f, #0d111a);
  box-shadow: 0 18px 40px rgba(0,0,0,.3);
  overflow: hidden;
}
.topupCard__head{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 15px 18px;
  background: linear-gradient(92deg, #244ece, #2d62df 54%, #2a4ab1);
}
.topupCard__titleWrap{
  min-width: 0;
}
.topupCard__kicker{
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .13em;
  color: rgba(230,238,255,.78);
  font-weight: 800;
}
.topupCard__head h3{
  margin: 2px 0 0;
  font-size: 24px;
  color: #eff4ff;
  font-weight: 950;
  line-height: 1.1;
}
.topupCard__sub{
  margin: 4px 0 0;
  font-size: 13px;
  color: rgba(220,231,255,.82);
}
.topupCard__status{
  flex: 0 0 auto;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.24);
  background: rgba(10,16,34,.32);
  padding: 8px 10px;
  color: #dbe7ff;
  display: grid;
  gap: 2px;
  text-align: right;
  font-size: 12px;
}
.topupCard__status strong{
  color: #86efac;
  font-size: 13px;
}
.topupCard__status strong[data-state="off"]{
  color: #fda4af;
}
.topupCard__status strong[data-state="test"]{
  color: #facc15;
}
.topupCard__status strong[data-state="live"]{
  color: #86efac;
}
.topupCard__body{
  padding: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}
.topupMethods{
  display: grid;
  align-content: start;
  gap: 10px;
}
.topupMethod{
  appearance: none;
  border: 1px solid color-mix(in oklab, #4b76df 50%, var(--border));
  border-radius: 14px;
  padding: 14px;
  background: linear-gradient(135deg, rgba(39,62,128,.34), rgba(14,24,47,.5));
  color: inherit;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: border-color .16s ease, transform .16s ease, background .16s ease, box-shadow .16s ease;
}
.topupMethod:hover{
  border-color: color-mix(in oklab, #6da5ff 65%, var(--border));
  transform: translateY(-1px);
}
.topupMethod:focus-visible{
  outline: none;
  box-shadow: 0 0 0 4px rgba(90,143,255,.22);
}
.topupMethod--active{
  border-color: color-mix(in oklab, #6da5ff 72%, var(--border));
  background: linear-gradient(135deg, rgba(52,84,170,.46), rgba(17,32,64,.6));
  box-shadow: inset 0 0 0 1px rgba(152, 193, 255, .12);
}
.topupMethod__icon{
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 21px;
  color: #8fd7ff;
  background: rgba(7,14,30,.78);
  border: 1px solid rgba(143,215,255,.36);
}
.topupMethod__meta{
  display: grid;
  gap: 2px;
  min-width: 0;
}
.topupMethod__title{
  color: #b8cdff;
  font-weight: 900;
  font-size: 16px;
}
.topupMethod__sub{
  color: #9eb0d3;
  font-size: 12px;
  font-weight: 700;
}
.topupMethod__list{
  margin: 4px 0 0;
  padding-left: 18px;
  color: #aab5cd;
  font-size: 12px;
  line-height: 1.5;
}
.topupForm{
  display: grid;
  gap: 12px;
}
.topupPresetBoard{
  border: 1px solid color-mix(in oklab, #394c74 72%, var(--border));
  border-radius: 16px;
  background:
    radial-gradient(520px 200px at 10% -30%, rgba(62, 105, 255, .16), transparent 70%),
    linear-gradient(180deg, #121a2a, #0f1726);
  padding: 12px;
  display: grid;
  gap: 10px;
}
.topupPresetBoard__head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 2px 2px 10px;
  border-bottom: 1px solid color-mix(in oklab, #354869 68%, var(--border));
}
.topupPresetBoard__title{
  font-size: 18px;
  font-weight: 900;
  color: #eef4ff;
  letter-spacing: .01em;
}
.topupPresetBoard__brand{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid color-mix(in oklab, #7ab2ff 60%, var(--border));
  background: linear-gradient(180deg, #edf5ff, #c6d8f7);
  color: #123a74;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: .01em;
}
.topupPresetBoard__list{
  display: grid;
  gap: 10px;
}
.topupPresetRow{
  appearance: none;
  width: 100%;
  min-height: 76px;
  border: 1px solid color-mix(in oklab, #2f425f 76%, var(--border));
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(24, 34, 52, .92), rgba(18, 27, 44, .92));
  color: #eaf1ff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 16px;
  cursor: pointer;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.topupPresetRow:hover{
  transform: translateY(-1px);
  border-color: color-mix(in oklab, #5d85d1 56%, var(--border));
}
.topupPresetRow:focus-visible{
  outline: none;
  box-shadow: 0 0 0 4px rgba(117, 146, 255, .2);
}
.topupPresetRow.is-active{
  border-color: color-mix(in oklab, #7b9bff 66%, var(--border));
  box-shadow: inset 0 0 0 1px rgba(171, 193, 255, .24);
  background: linear-gradient(180deg, rgba(31, 43, 68, .95), rgba(21, 32, 53, .95));
}
.topupPresetRow__left{
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.topupSacks{
  display: inline-flex;
  align-items: end;
  min-width: 54px;
  padding-left: 2px;
}
.topupSack{
  width: 19px;
  height: 22px;
  border-radius: 48% 48% 42% 42%;
  background: linear-gradient(180deg, #ff495a, #d71731 60%, #a90c27);
  border: 1px solid rgba(255, 110, 132, .5);
  box-shadow: inset 0 -4px 7px rgba(129, 6, 26, .55), 0 4px 8px rgba(0, 0, 0, .2);
  position: relative;
}
.topupSack + .topupSack{
  margin-left: -6px;
}
.topupSack::before{
  content: "";
  position: absolute;
  top: -5px;
  left: 4px;
  width: 9px;
  height: 7px;
  border-radius: 9px 9px 4px 4px;
  background: linear-gradient(180deg, #ffda66, #ffb535);
}
.topupPresetRow__coinAmount{
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #ffcb4d;
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: .01em;
}
.topupPresetRow__coin{
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid #f9d468;
  background: linear-gradient(180deg, #ffe697, #f3bc32);
  color: #7f5200;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 900;
}
.topupPresetRow__price{
  min-width: 126px;
  min-height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(176, 130, 255, .6);
  background: linear-gradient(135deg, #9652ff, #7d4de8 64%, #6c45df);
  color: #f6ecff;
  display: grid;
  place-items: center;
  font-size: 32px;
  font-weight: 900;
  letter-spacing: .01em;
}
.topupPresetRow.is-active .topupPresetRow__price{
  border-color: rgba(203, 175, 255, .75);
  box-shadow: 0 8px 18px rgba(130, 87, 225, .32);
}
.topupMethodPanel{
  display: grid;
  gap: 12px;
}
.topupLabel{
  color: #dbe8ff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .02em;
}
.topupSelectWrap{
  min-height: 48px;
  border-radius: 12px;
  border: 1px solid color-mix(in oklab, #3a4660 76%, var(--border));
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  overflow: hidden;
  background: #101624;
}
.topupSelectWrap__coin{
  display: grid;
  place-items: center;
  background: #1a2234;
  color: #f8c94a;
  font-size: 18px;
}
.topupSelect{
  width: 100%;
  border: none;
  background: transparent;
  color: #eef3ff;
  outline: none;
  font-size: 15px;
  font-weight: 700;
  padding: 0 12px;
}
.topupSelect option{
  background: #131722;
  color: #f0f4ff;
}
.topupQuick{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.topupTurnstile{
  display: grid;
  gap: 8px;
}
.topupTurnstile__slot{
  min-height: 68px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.topupTurnstile__hint{
  color: #9fb5de;
  font-size: 12px;
  line-height: 1.45;
}
.topupQuick__btn{
  border-radius: 999px;
  padding: 8px 12px;
  min-width: 72px;
  justify-content: center;
  font-weight: 800;
  background: color-mix(in oklab, #10182a 78%, transparent);
}
.topupQuick__btn.is-active{
  border-color: color-mix(in oklab, #4b8dff 62%, var(--border));
  background: linear-gradient(135deg, rgba(65,121,255,.26), rgba(52,179,227,.18));
  color: #eaf2ff;
}
.topupAgree{
  display: flex;
  align-items: center;
  gap: 8px;
  color: #9cb0d4;
  font-size: 13px;
  font-weight: 700;
}
.topupAgree input{
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #4f86ff;
}
.topupAgree a{
  color: #8fb6ff;
  text-decoration: underline;
}
.topupSubmit{
  width: 100%;
  min-height: 48px;
  border-radius: 12px;
  border: 1px solid color-mix(in oklab, #4286ff 58%, var(--border));
  background: linear-gradient(90deg, #2b65f2, #355bd6 56%, #443fc8);
  color: #f0f5ff;
  justify-content: center;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: .01em;
  box-shadow: 0 10px 20px rgba(39,96,248,.25);
}
.topupSubmit:hover{
  background: linear-gradient(90deg, #2f6bf9, #3b63e4 56%, #504adb);
}
.topupSubmit--wallet{
  background: linear-gradient(90deg, #108a5b, #1a9e76 56%, #2d8f9f);
  border-color: color-mix(in oklab, #4ad89a 55%, var(--border));
  box-shadow: 0 10px 20px rgba(24,151,111,.24);
}
.topupSubmit--wallet:hover{
  background: linear-gradient(90deg, #129a65, #24b087 56%, #359fb0);
}
.topupLinkWrap{
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}
.topupLinkInput{
  width: 100%;
  min-height: 44px;
  border-radius: 10px;
  border: 1px solid color-mix(in oklab, #3a4660 76%, var(--border));
  background: #0d1424;
  color: #e8f1ff;
  padding: 0 12px;
  outline: none;
}
.topupLinkInput:focus{
  border-color: color-mix(in oklab, #6da5ff 65%, var(--border));
  box-shadow: 0 0 0 4px rgba(85,136,255,.18);
}
.topupLinkInput::placeholder{
  color: #6f829f;
}
.topupLinkCopy{
  min-height: 44px;
  padding-inline: 14px;
}
.topupLinkHint{
  margin: 0;
  color: #8fa6cc;
  font-size: 12px;
  line-height: 1.4;
}
.topupLinkHint code{
  color: #c5dcff;
}
.topupLinkPreview{
  margin: 0;
  min-height: 22px;
  border-radius: 10px;
  padding: 8px 10px;
  border: 1px solid color-mix(in oklab, #3a4660 70%, var(--border));
  background: #0c1322;
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.topupLinkPreview[data-state="ok"]{
  color: #9de8bf;
  border-color: rgba(60, 187, 126, .45);
  background: linear-gradient(180deg, rgba(13,67,45,.38), rgba(11,29,24,.42));
}
.topupLinkPreview[data-state="error"]{
  color: #f8b4be;
  border-color: rgba(244, 63, 94, .45);
  background: linear-gradient(180deg, rgba(84,19,33,.35), rgba(34,12,20,.38));
}
.topupLive{
  border: 1px solid color-mix(in oklab, #3d4e72 66%, var(--border));
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(19,27,42,.92), rgba(11,16,27,.9));
  padding: 12px;
  display: grid;
  gap: 9px;
}
.topupLive__head{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.topupLive__head strong{
  color: #e4ecff;
  font-size: 13px;
}
.topupLive__meta{
  display: grid;
  gap: 4px;
  color: #9fb0d0;
  font-size: 12px;
}
.topupLive__meta code{
  color: #d4e0ff;
  font-weight: 700;
}
.topupLive__meta strong{
  color: #fcd34d;
}
.topupQr{
  border: 1px solid color-mix(in oklab, #43557c 56%, var(--border));
  border-radius: 12px;
  background: #090d16;
  padding: 10px;
  display: grid;
  place-items: center;
}
.topupQr__img{
  display: block;
  width: min(100%, 280px);
  height: auto;
  border-radius: 8px;
  background: #fff;
}
.topupLive__expire{
  color: #fda4af;
  font-size: 12px;
  font-weight: 700;
}
.topupLive__hint{
  margin: 0;
  color: #8ea3ca;
  font-size: 12px;
}
.topupLive__actions{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.topup--qrPage{
  max-width: 760px;
  margin: 0 auto;
}
.topupLive--qrPage{
  border-radius: 16px;
}
.topupQrEmpty{
  min-height: 220px;
  border: 1px dashed color-mix(in oklab, #5d77b8 35%, var(--border));
  border-radius: 16px;
  display: grid;
  gap: 10px;
  place-items: center;
  text-align: center;
  color: #9bb0d8;
  padding: 18px;
}
.topupActionCancel{
  color: #fecaca;
  border-color: rgba(244, 63, 94, .45);
  background: linear-gradient(180deg, rgba(110, 24, 46, .42), rgba(63, 18, 31, .38));
}
.topupActionCancel:hover{
  border-color: rgba(251, 113, 133, .6);
  background: linear-gradient(180deg, rgba(127, 29, 56, .48), rgba(76, 22, 39, .42));
}
.topupActionCancel:focus-visible{
  box-shadow: 0 0 0 4px rgba(244, 63, 94, .22);
}
.topupBadge{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  border: 1px solid transparent;
}
.topupBadge--pending{
  color: #c7d8ff;
  background: rgba(61, 98, 193, .28);
  border-color: rgba(91, 124, 217, .55);
}
.topupBadge--processing{
  color: #f7d87b;
  background: rgba(139, 98, 12, .28);
  border-color: rgba(238, 169, 35, .45);
}
.topupBadge--succeeded{
  color: #6ee7b7;
  background: rgba(13, 100, 65, .3);
  border-color: rgba(52, 211, 153, .45);
}
.topupBadge--failed,
.topupBadge--expired,
.topupBadge--canceled{
  color: #fda4af;
  background: rgba(127, 29, 29, .3);
  border-color: rgba(244, 63, 94, .4);
}
.topupNotices{
  display: grid;
  gap: 8px;
}
.topupWarn{
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 12px;
  line-height: 1.45;
  font-weight: 700;
}
.topupWarn--danger{
  border: 1px solid rgba(210, 38, 68, .4);
  background: linear-gradient(180deg, rgba(90,17,30,.36), rgba(36,12,17,.32));
  color: #f6b7bf;
}
.topupWarn--amber{
  border: 1px solid rgba(232, 136, 34, .38);
  background: linear-gradient(180deg, rgba(62,37,17,.44), rgba(44,28,14,.4));
  color: #f6ce64;
}
.topupWarn--brown{
  border: 1px solid rgba(188, 125, 66, .3);
  background: linear-gradient(180deg, rgba(53,35,21,.38), rgba(33,24,17,.36));
  color: #eec780;
}
.topupBalance{
  color: #9bb0d4;
  font-size: 13px;
  font-weight: 700;
}
.topupBalance strong{
  color: #fcd34d;
}
.topupGuide{
  border-radius: 16px;
  border: 1px solid color-mix(in oklab, #274169 64%, var(--border));
  background:
    radial-gradient(560px 200px at 0% -8%, rgba(60,108,255,.14), transparent 66%),
    linear-gradient(180deg, #0d1423, #0a101b);
  padding: 14px;
  display: grid;
  gap: 12px;
}
.topupGuide__title{
  margin: 2px 0 0;
  font-size: 19px;
  font-weight: 950;
  color: #ecf2ff;
  border-left: 3px solid #3474ff;
  padding-left: 10px;
}
.topupGuide__layout{
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 460px);
  gap: 12px;
  align-items: start;
}
.topupGuide__steps{
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  counter-reset: topup-guide-step;
}
.topupGuide__steps li{
  position: relative;
  padding: 9px 10px 9px 42px;
  border-radius: 12px;
  border: 1px solid color-mix(in oklab, #314a77 62%, var(--border));
  background: linear-gradient(180deg, rgba(22,34,57,.88), rgba(13,22,36,.9));
  color: #d8e5ff;
  font-size: 13px;
  line-height: 1.42;
  font-weight: 700;
}
.topupGuide__steps li::before{
  counter-increment: topup-guide-step;
  content: counter(topup-guide-step);
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.26);
  background: linear-gradient(180deg, #2f6cf8, #2854ca);
  color: #f3f7ff;
  font-size: 12px;
  font-weight: 900;
}
.topupGuide__figure{
  margin: 0;
  border-radius: 14px;
  border: 1px solid color-mix(in oklab, #324b77 60%, var(--border));
  background: rgba(7,13,24,.75);
  padding: 8px;
}
.topupGuide__img{
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
}
.topupGuide__notes{
  border-radius: 12px;
  border: 1px solid color-mix(in oklab, #755433 52%, var(--border));
  background: linear-gradient(180deg, rgba(58,34,21,.38), rgba(28,20,15,.38));
  padding: 11px 12px;
  display: grid;
  gap: 8px;
}
.topupGuide__notesTitle{
  color: #ffdba7;
  font-size: 13px;
  font-weight: 900;
}
.topupGuide__notesList{
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
  color: #efcb95;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}
.topupHistory{
  border-radius: 16px;
  border: 1px solid color-mix(in oklab, #22304b 70%, var(--border));
  background: linear-gradient(180deg, #0e131e, #0b1018);
  padding: 14px;
}
.topupHistory__title{
  margin: 2px 0 10px;
  font-size: 19px;
  font-weight: 950;
  color: #ecf2ff;
  border-left: 3px solid #2f6ff8;
  padding-left: 10px;
}
.topupTable{
  border: 1px solid color-mix(in oklab, #2b3750 72%, var(--border));
  border-radius: 14px;
  overflow: hidden;
  background: #0b1019;
}
.topupTable__head{
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1.35fr;
  gap: 6px;
  min-height: 44px;
  align-items: center;
  text-align: center;
  padding: 0 8px;
  background: #070b14;
  color: #8ea5d1;
  font-size: 12px;
  font-weight: 800;
}
.topupTable__body{
  display: grid;
}
.topupTable__row{
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1.35fr;
  gap: 8px;
  min-height: 56px;
  align-items: center;
  padding: 0 10px;
  border-top: 1px solid color-mix(in oklab, #27334b 70%, var(--border));
}
.topupTable__row:first-child{
  border-top: none;
}
.topupTable__cell{
  min-width: 0;
  text-align: center;
  font-size: 12px;
  color: #c5d3ec;
}
.topupTable__cell--status{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.topupTable__cell--topupId{
  display: flex;
  justify-content: center;
}
.topupTable__topupId{
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  color: #b8caec;
  background: color-mix(in oklab, #0f1930 72%, #091123);
  border: 1px solid color-mix(in oklab, #2f4572 62%, #1a2642);
  border-radius: 999px;
  padding: 3px 10px;
}
.topupTable__cell--amount{
  font-weight: 900;
  color: #fcd34d;
}
.topupStatusAction{
  min-height: 24px;
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid color-mix(in oklab, #4b72ce 60%, #28406f);
  background: color-mix(in oklab, #17345c 72%, #0d1828);
  color: #cfe2ff;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}
.topupStatusAction:hover{
  border-color: color-mix(in oklab, #76a4ff 70%, #36518a);
  background: color-mix(in oklab, #1d426f 78%, #0e1a2b);
}
.topupTable__empty{
  min-height: 160px;
  display: grid;
  place-items: center;
  gap: 6px;
  color: #5e6f8d;
  font-size: 14px;
  text-align: center;
}
.topupTable__emptyIcon{
  font-size: 30px;
  opacity: .65;
}
.topupTable__footer{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 12px;
  border-top: 1px solid color-mix(in oklab, #2b334a 70%, var(--border));
  background: #0b0f1a;
}
.topupPager{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.topupPager__info{
  font-size: 12px;
  color: #9ab2dd;
  font-weight: 700;
  white-space: nowrap;
}

.returnValues{
  display: grid;
  gap: 14px;
}
.returnValuesCard{
  border-radius: 16px;
  border: 1px solid color-mix(in oklab, #22304b 70%, var(--border));
  background: linear-gradient(180deg, #0e131f, #0b1019);
  padding: 14px;
}
.returnValuesCard__head{
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.returnValuesCard__titleWrap{
  min-width: 0;
  display: grid;
  gap: 6px;
}
.returnValuesCard__titleWrap h3{
  margin: 0;
  font-size: 18px;
  font-weight: 900;
  color: #ebf1ff;
}
.returnValuesCard__titleWrap p{
  margin: 0;
  color: #8ea5d1;
  font-size: 12px;
}
.returnValuesCard__search{
  flex: 1 1 280px;
  min-width: min(100%, 220px);
  max-width: 420px;
}
.returnValuesSearchInput{
  width: 100%;
  min-height: 32px;
  border: 1px solid color-mix(in oklab, #2f3f5f 70%, var(--border));
  border-radius: 999px;
  background: #0a1220;
  color: #dbe8ff;
  padding: 6px 12px;
  font: inherit;
  font-size: 12px;
}
.returnValuesSearchInput::placeholder{
  color: #8ea5d1;
}
.returnValuesSearchInput:focus{
  outline: none;
  border-color: #4f74c4;
  box-shadow: 0 0 0 3px rgba(79,116,196,.2);
}
.returnValuesCard__actions{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.returnValuesStatus{
  font-size: 12px;
  color: #9ab2dd;
  margin-bottom: 10px;
}
.returnValuesList{
  display: grid;
  gap: 10px;
}
.returnValueItem{
  border: 1px solid color-mix(in oklab, #2b3750 72%, var(--border));
  border-radius: 12px;
  background: #0a0f18;
  overflow: hidden;
}
.returnValueItem__head{
  padding: 10px 12px;
  border-bottom: 1px solid color-mix(in oklab, #27334b 72%, var(--border));
  background: #070b14;
  display: grid;
  gap: 8px;
}
.returnValueItem__route{
  color: #d4e2ff;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.returnValueItem__meta{
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.returnValueItem__source,
.returnValueItem__method,
.returnValueItem__time{
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  border: 1px solid color-mix(in oklab, #2d3a54 72%, var(--border));
  background: color-mix(in oklab, #12203a 40%, transparent);
  color: #b9cbed;
}
.returnValueItem__time{
  color: #c9d9f5;
}
.returnValueItem__values{
  display: grid;
}
.returnValueItem__row{
  display: grid;
  grid-template-columns: minmax(120px, 220px) minmax(0, 1fr);
  border-top: 1px solid color-mix(in oklab, #27334b 70%, var(--border));
}
.returnValueItem__row:first-child{
  border-top: none;
}
.returnValueItem__row--empty{
  min-height: 44px;
  align-items: center;
  padding: 0 12px;
  color: #8ea5d1;
  font-size: 12px;
}
.returnValueItem__key{
  min-width: 0;
  padding: 10px 12px;
  border-right: 1px solid color-mix(in oklab, #27334b 70%, var(--border));
  color: #9ab2dd;
  font-size: 11px;
  font-weight: 800;
  word-break: break-word;
}
.returnValueItem__value{
  min-width: 0;
  padding: 10px 12px;
  color: #d4e2ff;
  font-size: 12px;
  line-height: 1.4;
  word-break: break-word;
}

.detail{
  display:grid;
  grid-template-columns: 260px 1fr;
  gap: 16px;
  align-items:start;
}
.cover{
  border:1px solid var(--border);
  background: color-mix(in oklab, var(--surface2) 84%, transparent);
  border-radius: var(--radius2);
  overflow:hidden;
  box-shadow: 0 14px 40px rgba(0,0,0,.18);
}
.info h1{ margin:0; font-size:24px; letter-spacing:.1px; }
.info .muted{ color:var(--muted); margin-top:6px; font-size:13px; }
.row{ display:flex; gap:10px; flex-wrap:wrap; margin: 12px 0; }
.readerHuman{
  max-width: 520px;
  margin: 0 auto;
  display: grid;
  gap: 10px;
}
.readerHuman__sub{
  margin: 0;
  color: color-mix(in oklab, var(--text) 86%, var(--muted) 14%);
}
.readerHuman__slot{
  min-height: 68px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.readerHuman__hint{
  color: #9fb5de;
  font-size: 12px;
  line-height: 1.45;
}
.readerHuman__actions{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 12px;
  border-radius: 12px;
  border:1px solid var(--border);
  background: color-mix(in oklab, var(--surface2) 74%, transparent);
  cursor:pointer;
  user-select:none;
  transition: transform .12s ease, border-color .12s ease, background .12s ease, box-shadow .12s ease;
}
.btn.primary{
  background: linear-gradient(135deg, color-mix(in oklab, var(--primary) 46%, transparent), color-mix(in oklab, var(--primary2) 26%, transparent));
  border-color: color-mix(in oklab, var(--primary) 45%, var(--border));
}
.btn:hover{
  border-color: color-mix(in oklab, var(--primary) 30%, var(--border));
  background: color-mix(in oklab, var(--surface2) 78%, transparent);
}
.btn:active{ transform: translateY(1px) scale(.99); }
.btn:focus-visible{
  outline:none;
  border-color: color-mix(in oklab, var(--primary) 55%, var(--border));
  box-shadow: 0 0 0 4px var(--ring);
}
.btn:disabled{
  opacity:.45;
  cursor:not-allowed;
  transform:none;
}
.iconbtn:disabled{
  opacity:.45;
  cursor:not-allowed;
  transform:none;
}
.btn--sm{
  padding:8px 10px;
  border-radius: 999px;
  font-size: 12px;
}
.btn.danger{
  border-color: color-mix(in oklab, var(--danger) 38%, var(--border));
  background: color-mix(in oklab, var(--danger) 14%, var(--surface2));
}

.chapters{
  margin-top: 10px;
  border-top: 1px solid var(--border);
  padding-top: 10px;
}
.chaptersHead{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap;
  margin-bottom: 10px;
}
.chaptersHead__title{ font-weight:800; }
.chaptersBar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  margin-bottom: 10px;
}
.chaptersBar__left{
  display:flex;
  align-items:center;
  gap:10px;
}
.chaptersBar__pill{
  display:inline-flex;
  align-items:center;
  padding: 9px 12px;
  border-radius: 12px;
  font-weight: 900;
  font-size: 12px;
  letter-spacing: .2px;
  border:1px solid color-mix(in oklab, var(--primary) 35%, var(--border));
  background: linear-gradient(
    135deg,
    color-mix(in oklab, var(--primary) 30%, transparent),
    color-mix(in oklab, var(--primary2) 18%, transparent)
  );
}
.chaptersBar__help{
  font-weight: 900;
  color: color-mix(in oklab, var(--text) 78%, var(--muted) 22%);
}
.chaptersBar__sort{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 6px;
  border-radius: 12px;
  border:none;
  background: transparent;
  cursor:pointer;
  user-select:none;
  transition: transform .12s ease, background .12s ease, box-shadow .12s ease, color .12s ease;
  font-weight: 900;
  color: color-mix(in oklab, var(--primary) 68%, var(--text) 32%);
}
.chaptersBar__sort:hover{
  background: color-mix(in oklab, var(--surface2) 70%, transparent);
  color: color-mix(in oklab, var(--primary) 75%, var(--text) 25%);
}
.chaptersBar__sort:active{ transform: translateY(1px) scale(.99); }
.chaptersBar__sort:focus-visible{
  outline:none;
  box-shadow: 0 0 0 4px var(--ring);
}

.chapterRanges{
  border:1px solid var(--border);
  border-radius: 16px;
  overflow:hidden;
  background: color-mix(in oklab, var(--surface) 88%, transparent);
}
.chapterRange{ border-top:1px solid color-mix(in oklab, var(--border) 88%, transparent); }
.chapterRange:first-child{ border-top:none; }
.chapterRange > summary{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:14px 14px;
  cursor:pointer;
  user-select:none;
  list-style:none;
  font-weight: 900;
  color: color-mix(in oklab, var(--text) 86%, var(--primary) 14%);
}
.chapterRange > summary::-webkit-details-marker{ display:none; }
.chapterRange > summary:hover{
  background: color-mix(in oklab, var(--surface2) 62%, transparent);
}
.chapterRange[open] > summary{
  background: color-mix(in oklab, var(--surface2) 66%, transparent);
}
.chapterRange__chev{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:26px;
  height:26px;
  border-radius:999px;
  border:1px solid var(--border);
  background: color-mix(in oklab, var(--surface2) 70%, transparent);
  color: var(--muted);
  transition: transform .12s ease, background .12s ease, border-color .12s ease, color .12s ease;
}
.chapterRange[open] .chapterRange__chev{
  transform: rotate(180deg);
  border-color: color-mix(in oklab, var(--primary) 35%, var(--border));
  background: color-mix(in oklab, var(--surface2) 76%, transparent);
  color: color-mix(in oklab, var(--text) 72%, var(--primary) 28%);
}
.chapterRange__list{
  padding: 10px 12px 12px;
}
.chapterRange__list .chapter + .chapter{ margin-top: 8px; }
.chapter{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:10px 10px;
  border-radius: 12px;
  border:1px solid var(--border);
  background: color-mix(in oklab, var(--surface) 92%, transparent);
  cursor:pointer;
}
.chapter:hover{ border-color: color-mix(in oklab, var(--primary) 30%, var(--border)); }
.chapter + .chapter{ margin-top:10px; }
.chapter__title{ font-weight:800; }
.chapter__sub{ color:var(--muted); font-size:12px; margin-top:4px; }
.chapter__price{
  font-weight: 800;
  color: color-mix(in oklab, var(--text) 88%, var(--primary) 12%);
}
.chapter__right{ text-align:right; color:var(--muted); font-size:12px; }
.chapter--paid{
  border-color: color-mix(in oklab, var(--primary) 26%, var(--border));
  background:
    radial-gradient(220px 120px at 0% 0%, color-mix(in oklab, var(--primary) 12%, transparent), transparent 70%),
    color-mix(in oklab, var(--surface) 90%, transparent);
}
.reader{
  padding: 0;
}
.readerbar{
  position: sticky;
  top: 60px;
  z-index: 30;
  background: color-mix(in oklab, var(--surface) 92%, transparent);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}
.readerbar__inner{
  padding: 10px 12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
}
.readerbar__left{ display:flex; align-items:center; gap:10px; min-width: 240px; }
.readerbar__title{ font-weight:900; font-size:13px; line-height:1.2; }
.readerbar__meta{ color:var(--muted); font-size:12px; margin-top:3px; }
.readerbar__right{ display:flex; align-items:center; gap:8px; flex-wrap:wrap; justify-content:flex-end; }
.readerbar__nav{ display:flex; gap:8px; align-items:center; order: 99; }
.iconbtn--nav{
  border-radius: 14px;
  background:
    radial-gradient(16px 16px at 30% 25%, color-mix(in oklab, var(--primary) 14%, transparent), transparent 70%),
    radial-gradient(16px 16px at 70% 80%, color-mix(in oklab, var(--primary2) 10%, transparent), transparent 70%),
    color-mix(in oklab, var(--surface) 90%, transparent);
}
.iconbtn--nav:hover{
  border-color: color-mix(in oklab, var(--border) 55%, var(--primary) 35%);
  background:
    radial-gradient(16px 16px at 30% 25%, color-mix(in oklab, var(--primary) 18%, transparent), transparent 70%),
    radial-gradient(16px 16px at 70% 80%, color-mix(in oklab, var(--primary2) 12%, transparent), transparent 70%),
    color-mix(in oklab, var(--surface) 92%, transparent);
}
.select{
  border:1px solid var(--border);
  background: color-mix(in oklab, var(--surface2) 74%, transparent);
  border-radius: 12px;
  padding:8px 10px;
}
.select select{
  border:none;
  outline:none;
  background: transparent;
  color: var(--text);
}

.readerstage{
  padding: 14px 12px 20px;
  display:flex;
  justify-content:center;
}
.pages{
  width: 100%;
  max-width: var(--readerMax);
  display:flex;
  flex-direction:column;
  align-items: center;
  gap: 0;
}
.pages.fit{ align-items: stretch; }
.pageimg{
  border: 0;
  border-radius: 0;
  overflow:hidden;
  background: transparent;
}
.pagecanvas{
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
.pageimg img,
.pageimg canvas{ width: auto; max-width:100%; height: auto; display:block; margin:0 auto; }
.pages.fit .pageimg img,
.pages.fit .pageimg canvas{ width: 100%; }

.single{
  width: 100%;
  max-width: var(--readerMax);
  display:grid;
  gap: 10px;
}
.single__stage{
  border:1px solid var(--border);
  border-radius: 14px;
  overflow:hidden;
  background: color-mix(in oklab, var(--surface2) 80%, transparent);
}
.single__stage img,
.single__stage canvas{ width: auto; max-width:100%; height: auto; display:block; margin:0 auto; }
.single__stage.fit img,
.single__stage.fit canvas{ width: 100%; }
.single__controls{
  display:flex;
  gap:10px;
  justify-content:space-between;
}
.single__controls .btn{ flex:1; justify-content:center; }

.readerend{
  padding: 0 12px 26px;
  display:flex;
  justify-content:center;
}
.readerend__inner{
  width: 100%;
  max-width: var(--readerMax);
  display:grid;
  gap: 10px;
}

.chapterEndNav{
  display:flex;
  gap: 10px;
  justify-content:space-between;
  align-items:center;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid color-mix(in oklab, var(--border) 80%, transparent);
  background:
    radial-gradient(520px 220px at 0% 0%, color-mix(in oklab, var(--primary) 10%, transparent), transparent 60%),
    radial-gradient(520px 220px at 100% 100%, color-mix(in oklab, var(--primary2) 8%, transparent), transparent 62%),
    color-mix(in oklab, var(--surface) 88%, transparent);
  box-shadow: 0 16px 44px rgba(0,0,0,.12);
}
.chapterEndNav .btn{ flex:1; justify-content:center; }

.comments{
  border-radius: 16px;
  border: 1px solid var(--border);
  background:
    radial-gradient(520px 220px at 0% 0%, color-mix(in oklab, var(--primary) 10%, transparent), transparent 60%),
    color-mix(in oklab, var(--surface) 88%, transparent);
  padding: 12px;
  box-shadow: 0 16px 44px rgba(0,0,0,.12);
}
.comments__head{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.comments__title{
  margin:0;
  font-weight: 950;
  font-size: 14px;
  letter-spacing: .1px;
}
.comments__hint{
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}
.comments__count{
  color: var(--muted);
  font-size: 12px;
  white-space:nowrap;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: color-mix(in oklab, var(--surface2) 72%, transparent);
}
.comments__form{
  display:grid;
  gap: 10px;
  margin-bottom: 12px;
}
.comments__row{ display:flex; gap: 10px; flex-wrap:wrap; }
.comments__input,
.comments__textarea{
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: color-mix(in oklab, var(--surface2) 76%, transparent);
  padding: 10px 12px;
  outline: none;
}
.comments__textarea{ resize: vertical; min-height: 110px; }
.comments__input:focus,
.comments__textarea:focus{
  border-color: color-mix(in oklab, var(--primary) 55%, var(--border));
  box-shadow: 0 0 0 4px var(--ring);
}
.comments__actions{
  display:flex;
  gap: 10px;
  justify-content:flex-end;
  flex-wrap:wrap;
}

.comments__items{ display:grid; gap: 10px; }
.comment{
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px 10px;
  background: color-mix(in oklab, var(--surface2) 70%, transparent);
  transition: border-color .14s ease, background .14s ease;
}
.comment:hover{
  border-color: color-mix(in oklab, var(--primary) 26%, var(--border));
  background: color-mix(in oklab, var(--surface2) 76%, transparent);
}
.comment__head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap: 10px;
}
.comment__who{ font-weight: 900; font-size: 13px; }
.comment__meta{ display:flex; align-items:center; gap: 8px; color: var(--muted); font-size: 12px; }
.comment__text{ margin-top: 8px; color: color-mix(in oklab, var(--text) 92%, var(--muted) 8%); line-height: 1.55; font-size: 13px; }
.iconbtn--sm{ width: 30px; height: 30px; }
.comment__del{
  opacity: .8;
}
.comment__del:hover{
  opacity: 1;
  border-color: color-mix(in oklab, var(--danger) 40%, var(--border));
  background: color-mix(in oklab, var(--danger) 14%, transparent);
}


.modal{
  border:none;
  padding:0;
  width:min(720px, calc(100% - 18px));
  border-radius: 18px;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow);
}
.modal::backdrop{
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(2px);
}
.modal__sheet{ display:flex; flex-direction:column; min-height: 240px; }
.modal__head{
  padding: 12px 12px;
  border-bottom:1px solid var(--border);
  display:flex;
  justify-content:space-between;
  align-items:center;
}
.modal__title{ font-weight:900; }
.modal__body{ padding: 14px 14px 10px; display:flex; flex-direction:column; gap: 14px; }
.modal__foot{ padding: 12px 14px; border-top:1px solid var(--border); display:flex; justify-content:flex-end; gap:10px; }

.modal--authx{
  width: min(420px, calc(100% - 20px));
  border-radius: 20px;
  border: 1px solid color-mix(in oklab, var(--border) 90%, #4d5e95 10%);
  background:
    radial-gradient(480px 260px at 10% -5%, rgba(45,98,255,.22), transparent 62%),
    radial-gradient(420px 220px at 100% 100%, rgba(86,63,255,.18), transparent 64%),
    #0e111a;
}
.modal--topupGuide{
  width: min(1080px, calc(100% - 20px));
  border-radius: 18px;
  border: 1px solid color-mix(in oklab, #344d79 62%, var(--border));
  background:
    radial-gradient(720px 260px at 0% 0%, rgba(54,101,255,.18), transparent 64%),
    radial-gradient(620px 220px at 100% 100%, rgba(40,199,235,.11), transparent 68%),
    #0b111d;
}
.modal--topupGuide .modal__head{
  border-bottom-color: color-mix(in oklab, #2e446d 62%, var(--border));
}
.modal--topupGuide .modal__title{
  font-size: 20px;
  color: #eff4ff;
}
.modal--walletQr{
  width: min(680px, calc(100% - 18px));
  border-radius: 18px;
  border: 1px solid color-mix(in oklab, #3a4e7c 58%, var(--border));
  background:
    radial-gradient(660px 240px at 0% 0%, rgba(52,102,255,.2), transparent 64%),
    radial-gradient(520px 220px at 100% 100%, rgba(16,185,255,.12), transparent 68%),
    #0a1222;
}
.modal--walletQr .modal__head{
  border-bottom-color: color-mix(in oklab, #2f4674 62%, var(--border));
}
.modal--walletQr .modal__title{
  font-size: 22px;
  color: #edf3ff;
}
.modal__sheet--walletQr{
  min-height: 0;
}
.modal__body--walletQr{
  padding: 12px;
}
.topupLive--modal{
  border-radius: 16px;
}
.topupQrEmpty--modal{
  min-height: 170px;
}
.topupGuide--modal{
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}
.authx{
  position: relative;
  min-height: 0;
  display: grid;
  gap: 14px;
  padding: 18px 18px 16px;
}
.authx.is-signup{
  gap: 12px;
}
.authx.is-forgot{
  gap: 12px;
}
.authx__close{
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid color-mix(in oklab, var(--border) 92%, transparent);
  background: color-mix(in oklab, #12182a 80%, transparent);
  color: color-mix(in oklab, #cfd7ff 80%, #fff 20%);
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}
.authx__close:hover{
  border-color: color-mix(in oklab, var(--primary) 30%, var(--border));
}
.authx__close:focus-visible{
  outline: none;
  box-shadow: 0 0 0 4px var(--ring);
}
.authx__head{
  text-align: center;
  padding-top: 8px;
}
.authx__title{
  font-size: 52px;
  line-height: 1.12;
  letter-spacing: .2px;
  color: #2f64ff;
  font-weight: 950;
}
.authx.is-signup .authx__title{
  font-size: 44px;
}
.authx.is-forgot .authx__title{
  font-size: 44px;
}
.authx__subtitle{
  margin-top: 8px;
  color: #808cab;
  font-size: 13px;
}
.authx__social{
  display:grid;
  gap: 10px;
}
.authx__oauth{
  width: 100%;
  min-height: 44px;
  border-radius: 13px;
  border: none;
  color: #fff;
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 8px;
  font-weight: 900;
  cursor:pointer;
}
.authx__oauth:disabled,
.authx__oauth[aria-disabled="true"]{
  opacity: .62;
  cursor: not-allowed;
  filter: saturate(.65);
}
.authx__oauth--google{
  background: linear-gradient(180deg, #ef4f42, #e64538);
}
.authx__oauth:focus-visible{
  outline: none;
  box-shadow: 0 0 0 4px rgba(116,146,255,.35);
}
.authx__oauthIcon{
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size: 12px;
  background: rgba(0,0,0,.14);
  border: 1px solid rgba(255,255,255,.3);
}
.authx__divider{
  display:flex;
  align-items:center;
  gap: 10px;
  color: #8f9bc4;
  font-size: 12px;
}
.authx__divider::before,
.authx__divider::after{
  content:"";
  flex:1;
  height: 1px;
  background: color-mix(in oklab, var(--border) 88%, transparent);
}

.authform{
  display:grid;
  gap: 12px;
}
.authform--authx{
  gap: 10px;
}
.authx.is-signup .authform--authx{
  gap: 11px;
}
.authform__row{
  display:grid;
  gap: 7px;
}
.authform__row--turnstile{
  gap: 8px;
  margin-top: 2px;
}
.authturnstile{
  display: flex;
  justify-content: center;
}
.authturnstile__slot{
  min-height: 68px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.authform__label{
  font-size: 12px;
  color: color-mix(in oklab, var(--text) 90%, var(--muted) 10%);
  font-weight: 800;
}
.authform__label .req{
  color: #ff5b67;
  margin-left: 2px;
}
.authinput{
  width: 100%;
  border: 1px solid #2d3f70;
  border-radius: 12px;
  background: #0a0d14;
  padding: 11px 12px;
  outline: none;
  transition: border-color .14s ease, box-shadow .14s ease, background .14s ease;
}
.authinput--big{
  min-height: 48px;
  border-radius: 13px;
  padding: 12px 14px;
  font-size: 16px;
}
.authinput::placeholder{
  color: #8d9ac2;
}
.authinput:focus{
  border-color: #3b63c6;
  box-shadow: 0 0 0 4px rgba(60,97,208,.24);
  background: #0a0f1b;
}
.authinputWrap{
  position: relative;
}
.authinputWrap .authinput{
  padding-right: 74px;
}
.authinputToggle{
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  min-width: 52px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid #35508d;
  background: #0d1834;
  color: #bfd2ff;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: border-color .14s ease, background .14s ease, color .14s ease;
}
.authinputToggle:hover{
  border-color: #4f74c4;
  background: #132550;
  color: #dbe6ff;
}
.authinputToggle:focus-visible{
  outline: 2px solid #5f88df;
  outline-offset: 2px;
}
.authinput.is-invalid{
  border-color: color-mix(in oklab, var(--danger) 70%, #99455a 30%);
  box-shadow: 0 0 0 3px rgba(239,68,68,.17);
}
.authinput.is-valid{
  border-color: #3ea36f;
  box-shadow: 0 0 0 3px rgba(62,163,111,.15);
}
.authform__hint{
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.authform__hint.is-ok{
  color: #95e7b6;
}
[data-auth-oauth-hint]{
  margin-top: 2px;
}
.authform__hint.is-reset-note{
  border: 1px solid color-mix(in oklab, #4d6bcb 42%, #21335e 58%);
  border-radius: 11px;
  background: color-mix(in oklab, #1e2d58 44%, #0b1220 56%);
  color: #b8ccff;
  padding: 9px 11px;
}
.authform__error{
  border: 1px solid color-mix(in oklab, var(--danger) 45%, #233260 55%);
  border-radius: 12px;
  background: rgba(239,68,68,.12);
  color: color-mix(in oklab, var(--danger) 84%, var(--text));
  padding: 9px 11px;
  font-size: 13px;
}
.authform__actions{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content:flex-end;
}
.authform__actions .btn{
  min-width: 120px;
  justify-content:center;
}
.authform__actions--stack{
  margin-top: 6px;
}
.authx__help{
  display:flex;
  justify-content:flex-end;
  margin-top: 2px;
}
.authx__link{
  border:none;
  background:transparent;
  padding: 0;
  color: #77a7ff;
  font-weight: 800;
  cursor:pointer;
}
.authx__link:hover{
  color: #98bbff;
}
.authx__submit{
  width: 100%;
  border:none;
  min-height: 46px;
  border-radius: 14px;
  color: #ecf2ff;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: .1px;
  cursor:pointer;
  background: linear-gradient(90deg, #2863ec, #4e4be8);
  box-shadow: 0 10px 24px rgba(52,95,239,.35);
}
.authx__submit:focus-visible{
  outline:none;
  box-shadow: 0 0 0 4px rgba(95,137,255,.36), 0 10px 24px rgba(52,95,239,.35);
}
.authx__switch{
  margin-top: 2px;
  text-align:center;
  font-size: 14px;
  color: #8d9ac2;
}
.authx__switchBtn{
  border:none;
  background:transparent;
  color: #78a8ff;
  font-weight: 900;
  cursor:pointer;
  padding: 0 0 0 4px;
}
.authx__switchBtn:hover{
  color: #9cc0ff;
}

.setting{
  border:1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  background: color-mix(in oklab, var(--surface2) 70%, transparent);
}
.setting__label{ font-weight:900; }
.setting__hint{ color:var(--muted); font-size:12px; margin-top:6px; }

.segmented{
  margin-top:10px;
  display:flex;
  border:1px solid var(--border);
  border-radius: 12px;
  overflow:hidden;
}
.segmented__btn{
  flex:1;
  padding:10px 10px;
  background: transparent;
  border:none;
  cursor:pointer;
}
.segmented__btn[aria-selected="true"],
.segmented__btn[aria-pressed="true"]{
  background: linear-gradient(135deg, color-mix(in oklab, var(--primary) 24%, transparent), color-mix(in oklab, var(--primary2) 12%, transparent));
}
.segmented__btn:focus-visible{
  outline:none;
  box-shadow: inset 0 0 0 2px color-mix(in oklab, var(--primary) 45%, transparent);
}
.toggle{
  margin-top:10px;
  display:flex;
  gap:10px;
  align-items:center;
}
.toggle input{ width: 18px; height: 18px; }
.toggle__text{ color: var(--muted); }

.danger{
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid color-mix(in oklab, var(--danger) 40%, var(--border));
  background: color-mix(in oklab, var(--danger) 12%, var(--surface2));
  cursor:pointer;
  text-align:left;
}

.toast{
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  max-width: min(720px, calc(100% - 18px));
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: color-mix(in oklab, var(--surface) 94%, transparent);
  color: var(--text);
  box-shadow: var(--shadow);
}

.skeleton{ padding: 18px; }
.skeleton__title{
  height: 18px;
  width: 220px;
  border-radius: 999px;
  background: color-mix(in oklab, var(--surface2) 70%, transparent);
  margin-bottom: 14px;
}
.skeleton__grid{ display:grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.skeleton__card{
  height: 260px;
  border-radius: 14px;
  background: color-mix(in oklab, var(--surface2) 68%, transparent);
  border: 1px solid var(--border);
}

.sitefooter{
  margin-top:auto;
  border-top: 1px solid var(--border);
  background:
    radial-gradient(900px 380px at 15% 0%, color-mix(in oklab, var(--primary) 22%, transparent), transparent 60%),
    radial-gradient(820px 380px at 100% 40%, color-mix(in oklab, var(--primary2) 14%, transparent), transparent 55%),
    linear-gradient(180deg, color-mix(in oklab, var(--surface2) 45%, transparent), transparent),
    color-mix(in oklab, var(--bg) 88%, #2b1b5c 12%);
}
.sitefooter__inner{
  max-width:none;
  margin:0;
  padding: 34px 18px 18px;
  display:grid;
  grid-template-columns: 1fr auto;
  gap: 22px;
  align-items:start;
}
.sitefooter__brand{ padding: 6px 6px; }
.sitefooter__title{
  font-weight: 950;
  letter-spacing: .4px;
  font-size: 22px;
}
.sitefooter__sub{
  margin-top: 4px;
  color: color-mix(in oklab, var(--muted) 85%, transparent);
  font-size: 12px;
}
.sitefooter__social{
  display:flex;
  gap:10px;
  margin-top: 14px;
}
.sitefooter__socialbtn{
  width: 40px;
  height: 40px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius: 14px;
  border: 1px solid color-mix(in oklab, var(--border) 70%, transparent);
  background: color-mix(in oklab, var(--surface) 78%, transparent);
  cursor:pointer;
  transition: transform .12s ease, border-color .12s ease, background .12s ease, box-shadow .12s ease;
}
.sitefooter__socialbtn:hover{
  border-color: color-mix(in oklab, var(--border) 55%, var(--primary) 35%);
  background: color-mix(in oklab, var(--surface2) 76%, transparent);
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(0,0,0,.14);
}
.sitefooter__socialbtn:active{ transform: translateY(0px) scale(.99); }
.sitefooter__socialbtn:focus-visible{
  outline:none;
  border-color: color-mix(in oklab, var(--primary) 55%, var(--border));
  box-shadow: 0 0 0 4px var(--ring);
}
.sitefooter__cols{
  display:grid;
  grid-template-columns: repeat(2, minmax(180px, 260px));
  gap: 16px;
  justify-content: end;
  justify-self: end;
  width: fit-content;
  max-width: 100%;
  align-items: start;
}
.sitefooter__col{
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid color-mix(in oklab, var(--border) 75%, transparent);
  background: color-mix(in oklab, var(--surface) 62%, transparent);
}
.sitefooter__head{
  font-weight: 900;
  letter-spacing: .2px;
  margin-bottom: 10px;
}
.sitefooter__head--guide{
  position: relative;
  margin-bottom: 12px;
  padding-bottom: 9px;
}
.sitefooter__head--guide::after{
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 72px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #8ea8ff, #7f63ff);
}
.sitefooter__head--policy{
  position: relative;
  margin-bottom: 12px;
  padding-bottom: 9px;
}
.sitefooter__head--policy::after{
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 72px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #7ea7ff, #5bd6ff);
}
.sitefooter__link,
.sitefooter__linkbtn{
  display:block;
  width: 100%;
  padding: 9px 10px;
  border-radius: 12px;
  color: color-mix(in oklab, var(--text) 92%, var(--muted) 8%);
  background: transparent;
  border: 1px solid transparent;
  text-align:left;
}
.sitefooter__link:hover,
.sitefooter__linkbtn:hover{
  background: color-mix(in oklab, var(--surface2) 66%, transparent);
  border-color: color-mix(in oklab, var(--border) 60%, var(--primary) 25%);
}
.sitefooter__link:focus-visible,
.sitefooter__linkbtn:focus-visible{
  outline:none;
  border-color: color-mix(in oklab, var(--primary) 55%, var(--border));
  box-shadow: 0 0 0 4px var(--ring);
}
.sitefooter__linkbtn{
  cursor:pointer;
}
.sitefooter__guideItem{
  position: relative;
  padding-left: 28px;
  color: color-mix(in oklab, #a8bbff 86%, var(--text) 14%);
}
.sitefooter__guideItem::before{
  content: ">";
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  line-height: 1;
  color: color-mix(in oklab, #8fa4eb 84%, var(--text) 16%);
}
.sitefooter__policyItem{
  position: relative;
  padding-left: 28px;
  color: color-mix(in oklab, #b4c9ff 84%, var(--text) 16%);
}
.sitefooter__policyItem::before{
  content: ">";
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  line-height: 1;
  color: color-mix(in oklab, #90b6ff 82%, var(--text) 18%);
}
.sitefooter__bar{
  border-top: 1px solid color-mix(in oklab, var(--border) 85%, transparent);
  background: color-mix(in oklab, var(--bg) 90%, transparent);
}
.sitefooter__barinner{
  max-width:var(--max);
  margin:0 auto;
  padding: 14px 14px 18px;
  color: color-mix(in oklab, var(--muted) 85%, transparent);
  font-size: 12px;
  text-align:center;
}

.totop{
  position: fixed;
  right: calc(18px + env(safe-area-inset-right));
  bottom: calc(18px + env(safe-area-inset-bottom));
  width: 50px;
  height: 50px;
  border-radius: 18px;
  border: 1px solid color-mix(in oklab, var(--border) 70%, transparent);
  background:
    radial-gradient(22px 22px at 30% 25%, color-mix(in oklab, var(--primary) 18%, transparent), transparent 70%),
    radial-gradient(22px 22px at 70% 80%, color-mix(in oklab, var(--primary2) 12%, transparent), transparent 70%),
    color-mix(in oklab, var(--surface) 92%, transparent);
  box-shadow: 0 16px 40px rgba(0,0,0,.22);
  cursor:pointer;
  opacity: 0;
  pointer-events:none;
  transform: translateY(10px);
  transition: opacity .14s ease, transform .14s ease, border-color .14s ease;
}
.totop:hover{
  border-color: color-mix(in oklab, var(--border) 55%, var(--primary) 35%);
}
.totop.is-show{
  opacity: 1;
  pointer-events:auto;
  transform: translateY(0px);
}

@media (max-width: 980px){
  .feature{ grid-template-columns: 1fr; }
  .feature__cover{ aspect-ratio: 16 / 9; }
  .layout{ grid-template-columns: 1fr; }
  .grid.grid--ranked10{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .panel__scrollX{
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    scrollbar-color: color-mix(in oklab, var(--primary) 42%, var(--border)) color-mix(in oklab, var(--surface2) 70%, transparent);
  }
  .panel__scrollX::-webkit-scrollbar{
    height: 8px;
  }
  .panel__scrollX::-webkit-scrollbar-track{
    border-radius: 999px;
    background: color-mix(in oklab, var(--surface2) 70%, transparent);
  }
  .panel__scrollX::-webkit-scrollbar-thumb{
    border-radius: 999px;
    background: color-mix(in oklab, var(--primary) 42%, var(--border));
  }
  .panel__scrollX > .grid.grid--desktopLike{
    width: max-content;
    min-width: 100%;
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(var(--cardW), 220px);
    justify-content: flex-start;
  }
  .sitefooter__inner{
    grid-template-columns: 1fr;
    padding: 22px 12px 14px;
    gap: 14px;
  }
  .sitefooter__cols{
    grid-template-columns: 1fr;
    justify-self: stretch;
    width: 100%;
    gap: 10px;
  }
  .sitefooter__col{
    padding: 8px 10px;
    border-radius: 14px;
  }
  .sitefooter__head{
    margin-bottom: 8px;
  }
  .drawer{
    position: static;
    inset: auto;
    width: auto;
    height: auto;
    transform: none;
    transition: none;
    z-index: auto;
    border-radius: 14px;
  }
  .nav{
    flex-direction: row;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 10px;
  }
  .nav__item{
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 10px 12px;
  }
  .nav__sep{
    width: 1px;
    height: auto;
    min-height: 28px;
    margin: 0 2px;
    background: linear-gradient(180deg, transparent, var(--border), transparent);
  }
  .drawer__footer{
    display: none;
  }
  .drawer.is-open{ transform: none; }
  .brand{ min-width: auto; }
  .brand__menu{ display:none; }
  .actions .pill span:last-child{ display:none; }
  .search{ min-width: 0; }
  .detail{ grid-template-columns: 1fr; }
  .cover{ max-width: 320px; }
  .readerbar{ top: 60px; }
  .readerbar__left{ min-width: 0; }
  .readerbar__title{ max-width: 54vw; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .skeleton__grid{ grid-template-columns: repeat(2, 1fr); }
  .accountgrid{ grid-template-columns: 1fr; }
  .securityx__heroName{ font-size: 26px; }
  .securityxPassGrid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
  .securityxSession__item{ grid-template-columns: minmax(0,1fr); }
  .securityxSession__btn{
    width: 100%;
    min-height: 40px;
  }
  .topupCard__head{ padding: 13px 14px; }
  .topupCard__head h3{ font-size: 21px; }
  .topupCard__sub{ font-size: 12px; }
  .topupCard__status{ font-size: 11px; }
  .topupCard__body{
    grid-template-columns: 1fr;
    padding: 14px;
    gap: 12px;
  }
  .topupMethods{ gap: 8px; }
  .topupMethod__list{ font-size: 11px; }
  .topupPresetBoard{
    padding: 10px;
    gap: 8px;
  }
  .topupPresetBoard__title{
    font-size: 15px;
  }
  .topupPresetBoard__brand{
    min-height: 32px;
    font-size: 16px;
    padding: 0 10px;
  }
  .topupPresetRow{
    min-height: 66px;
    padding: 9px 12px;
  }
  .topupPresetRow__coinAmount{
    font-size: 24px;
  }
  .topupPresetRow__price{
    min-width: 108px;
    min-height: 40px;
    font-size: 24px;
  }
  .topupLabel{ font-size: 12px; }
  .topupAgree{ font-size: 12px; }
  .topupSubmit{ font-size: 16px; }
  .topupLive{ padding: 10px; }
  .topupLive__meta{ font-size: 11px; }
  .topupLive__hint{ font-size: 11px; }
  .topupBadge{ font-size: 10px; min-height: 22px; }
  .topupWarn{ font-size: 12px; }
  .topupBalance{ font-size: 12px; }
  .topupGuide{
    padding: 12px;
    gap: 10px;
  }
  .topupGuide__title{
    font-size: 18px;
  }
  .topupGuide__layout{
    grid-template-columns: 1fr;
  }
  .topupGuide__steps li{
    font-size: 12px;
  }
  .topupGuide__notesList{
    font-size: 11px;
  }
  .topupHistory__title{ font-size: 18px; }
  .topupTable__head{ font-size: 11px; }
  .topupTable__row{ min-height: 52px; }
  .topupTable__empty{ font-size: 13px; min-height: 140px; }
  .modal--walletQr{
    width: min(640px, calc(100% - 12px));
    border-radius: 14px;
  }
  .modal--walletQr .modal__title{
    font-size: 18px;
  }
  .modal__body--walletQr{
    padding: 10px;
  }
  .returnValuesCard{ padding: 12px; }
  .returnValuesCard__search{
    flex-basis: 100%;
    max-width: none;
  }
  .returnValuesCard__titleWrap h3{ font-size: 17px; }
  .returnValueItem__row{ grid-template-columns: minmax(96px, 160px) minmax(0,1fr); }
  .profileedit__hero{ min-height: 272px; }
  .profileedit__coverImage{ height: 272px; }
  .profileedit__avatarWrap{ bottom: -62px; }
  .profileedit__avatar{
    width: 120px;
    height: 120px;
  }
  .profileedit__label{ font-size: 26px; }
  .profileedit__count{ font-size: 22px; }
}

@media (max-width: 560px){
  .layout{ padding: 10px 10px 18px; gap: 12px; }
  .homeHero{ padding: 8px 8px 0; }
  .page{ padding: 14px 14px 18px; }
  .sitefooter__inner{
    padding: 14px 10px 10px;
    gap: 10px;
  }
  .sitefooter__brand{
    padding: 2px 2px;
  }
  .sitefooter__title{
    font-size: 18px;
  }
  .sitefooter__sub{
    margin-top: 2px;
    font-size: 11px;
  }
  .sitefooter__social{
    margin-top: 8px;
    gap: 8px;
  }
  .sitefooter__socialbtn{
    width: 34px;
    height: 34px;
    border-radius: 11px;
  }
  .sitefooter__cols{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .sitefooter__col{
    padding: 7px 8px;
    border-radius: 12px;
  }
  .sitefooter__head{
    margin-bottom: 6px;
    font-size: 15px;
  }
  .sitefooter__head--guide,
  .sitefooter__head--policy{
    margin-bottom: 8px;
    padding-bottom: 6px;
  }
  .sitefooter__head--guide::after,
  .sitefooter__head--policy::after{
    width: 46px;
    height: 2px;
  }
  .sitefooter__link,
  .sitefooter__linkbtn{
    padding: 6px 8px;
    border-radius: 10px;
    font-size: 13px;
  }
  .sitefooter__guideItem,
  .sitefooter__policyItem{
    padding-left: 21px;
  }
  .sitefooter__guideItem::before,
  .sitefooter__policyItem::before{
    left: 7px;
    font-size: 14px;
  }
  .sitefooter__barinner{
    padding: 9px 10px 11px;
    font-size: 11px;
  }
  .grid.grid--ranked10{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .search{ padding: 7px 8px 7px 10px; }
  .search .icon{ display:none; }
  .searchSuggest{
    top: calc(100% + 8px);
    border-radius: 14px;
    padding: 6px;
  }
  .searchSuggest__head{ padding: 2px 4px 6px; }
  .searchSuggestItem{
    grid-template-columns: 40px minmax(0, 1fr) auto;
    min-height: 52px;
    gap: 8px;
  }
  .searchSuggestItem__cover{
    width: 40px;
    height: 40px;
  }
  .searchSuggestItem__title{ font-size: 12px; }
  .searchSuggestItem__meta{ font-size: 10px; }

  .modal{
    width: calc(100% - 12px);
    border-radius: 14px;
  }
  .authx{
    padding: 16px 14px 14px;
    gap: 12px;
  }
  .authx__title{
    font-size: 42px;
  }
  .authx.is-signup .authx__title{
    font-size: 36px;
  }
  .authx.is-forgot .authx__title{
    font-size: 34px;
  }
  .authx__subtitle{
    font-size: 12px;
  }
  .authx__submit{
    min-height: 44px;
    font-size: 23px;
  }
  .accountpanel{
    width: min(96vw, 330px);
  }
  .accountpanel__name{
    font-size: 15px;
  }
  .accountpanel__walletValue{
    font-size: 24px;
  }
  .securityx__hero{
    padding: 12px;
    gap: 10px;
  }
  .securityx__avatar{
    width: 50px;
    height: 50px;
    flex-basis: 50px;
  }
  .securityx__heroName{
    font-size: 21px;
  }
  .securityx__heroEmail{
    font-size: 12px;
  }
  .securityx__panel{
    padding: 12px;
    gap: 10px;
  }
  .securityx__divider{
    margin: 0 12px;
  }
  .securityx__panelTitle{
    font-size: 20px;
  }
  .securityx__sub{
    font-size: 12px;
  }
  .securityxMetaGrid{
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .securityxSession{
    padding: 10px;
    gap: 8px;
  }
  .securityxSession__head{
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .securityxSession__title{
    font-size: 13px;
  }
  .securityxSession__item{
    padding: 9px;
    gap: 8px;
  }
  .securityxSession__device{
    font-size: 12px;
  }
  .securityxSession__detail{
    font-size: 11px;
  }
  .securityxSession__btn{
    min-height: 40px;
  }
  .securityxSession__status{
    padding: 9px 10px;
    font-size: 11px;
  }
  .securityxPassGrid{
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .securityxField{
    grid-template-columns: 46px minmax(0,1fr);
  }
  .securityxField__input{
    min-height: 42px;
    font-size: 14px;
    padding: 0 10px;
  }
  .securityx__notice{
    font-size: 12px;
    padding: 9px 10px;
  }
  .securityx__actions{
    justify-content: stretch;
  }
  .securityx__btnPrimary,
  .securityx__btnDanger{
    width: 100%;
    min-height: 42px;
  }
  .topupCard__head{
    padding: 12px;
    display: grid;
    gap: 8px;
    justify-content: stretch;
  }
  .topupCard__head h3{
    font-size: 19px;
  }
  .topupCard__sub{
    font-size: 11px;
  }
  .topupCard__status{
    text-align: left;
    width: fit-content;
  }
  .topupCard__body{
    padding: 12px;
    gap: 10px;
  }
  .topupMethod{
    padding: 10px;
    gap: 6px;
  }
  .topupPresetBoard{
    padding: 8px;
    gap: 7px;
  }
  .topupPresetBoard__head{
    padding: 2px 2px 8px;
  }
  .topupPresetBoard__title{
    font-size: 13px;
  }
  .topupPresetBoard__brand{
    min-height: 28px;
    font-size: 12px;
    padding: 0 8px;
    border-radius: 8px;
  }
  .topupPresetRow{
    min-height: 56px;
    padding: 7px 10px;
    border-radius: 12px;
  }
  .topupPresetRow__left{
    gap: 8px;
  }
  .topupSacks{
    min-width: 40px;
  }
  .topupSack{
    width: 14px;
    height: 17px;
  }
  .topupSack + .topupSack{
    margin-left: -5px;
  }
  .topupSack::before{
    top: -4px;
    left: 3px;
    width: 7px;
    height: 5px;
  }
  .topupPresetRow__coinAmount{
    gap: 5px;
    font-size: 18px;
  }
  .topupPresetRow__coin{
    width: 18px;
    height: 18px;
    font-size: 11px;
  }
  .topupPresetRow__price{
    min-width: 86px;
    min-height: 34px;
    font-size: 18px;
  }
  .topupMethod__meta{
    gap: 1px;
  }
  .topupMethod__icon{
    width: 38px;
    height: 38px;
    font-size: 17px;
  }
  .topupMethod__title{
    font-size: 15px;
  }
  .topupMethod__list{
    font-size: 11px;
  }
  .topupMethod__sub{
    font-size: 11px;
  }
  .topupSelectWrap{
    min-height: 44px;
    grid-template-columns: 40px minmax(0, 1fr);
  }
  .topupSelectWrap__coin{
    font-size: 16px;
  }
  .topupSelect{
    font-size: 14px;
    padding: 0 9px;
  }
  .topupQuick{
    gap: 6px;
  }
  .topupQuick__btn{
    min-width: 62px;
    padding: 7px 10px;
    font-size: 11px;
  }
  .topupAgree{
    align-items: flex-start;
    font-size: 11px;
  }
  .topupAgree input{
    width: 16px;
    height: 16px;
    margin-top: 1px;
  }
  .topupSubmit{
    min-height: 44px;
    font-size: 15px;
  }
  .topupWarn{
    font-size: 11px;
    padding: 9px 10px;
  }
  .topupGuide{
    padding: 10px;
    gap: 8px;
  }
  .topupGuide__title{
    font-size: 16px;
    padding-left: 9px;
  }
  .topupGuide__steps{
    gap: 6px;
  }
  .topupGuide__steps li{
    font-size: 11px;
    padding: 8px 8px 8px 35px;
  }
  .topupGuide__steps li::before{
    left: 9px;
    width: 20px;
    height: 20px;
    font-size: 11px;
  }
  .topupGuide__figure{
    padding: 6px;
  }
  .topupGuide__notes{
    padding: 9px 10px;
  }
  .topupGuide__notesTitle{
    font-size: 12px;
  }
  .topupGuide__notesList{
    font-size: 11px;
    gap: 5px;
  }
  .topupLinkWrap{
    grid-template-columns: 1fr;
  }
  .topupLinkInput{
    min-height: 42px;
    font-size: 12px;
  }
  .topupLinkCopy{
    min-height: 40px;
    width: 100%;
    justify-content: center;
  }
  .topupLinkHint,
  .topupLinkPreview{
    font-size: 11px;
  }
  .topupLive{
    padding: 9px;
    gap: 8px;
  }
  .topupLive__meta{
    font-size: 11px;
  }
  .topupLive__actions{
    gap: 6px;
  }
  .topupQr{
    padding: 8px;
  }
  .topupBalance{
    font-size: 12px;
  }
  .topupHistory{
    padding: 10px;
  }
  .topupHistory__title{
    font-size: 17px;
    margin-bottom: 8px;
  }
  .topupTable__head{
    font-size: 10px;
    min-height: 40px;
    grid-template-columns: 1fr 0.9fr 0.9fr 1.3fr;
  }
  .topupTable__row{
    min-height: 48px;
    padding: 0 8px;
    grid-template-columns: 1fr 0.9fr 0.9fr 1.3fr;
  }
  .topupTable__cell{
    font-size: 11px;
  }
  .topupStatusAction{
    min-height: 22px;
    padding: 1px 9px;
    font-size: 10px;
  }
  .topupTable__topupId{
    font-size: 10px;
    padding: 2px 8px;
  }
  .topupTable__empty{
    min-height: 120px;
    font-size: 12px;
    padding: 12px;
  }
  .returnValuesCard{
    padding: 11px;
  }
  .returnValuesStatus{
    font-size: 11px;
  }
  .returnValueItem__row{
    grid-template-columns: minmax(0,1fr);
  }
  .returnValueItem__key{
    border-right: none;
    border-bottom: 1px solid color-mix(in oklab, #27334b 70%, var(--border));
  }
  .topupTable__emptyIcon{
    font-size: 28px;
  }
  .topupTable__footer{
    padding: 8px;
    gap: 8px;
    justify-content: center;
  }
  .topupPager{
    width: 100%;
    justify-content: center;
  }
  .topupPager__info{
    font-size: 11px;
  }
  .profileedit__body{
    padding: 88px 12px 12px;
  }
  .profileedit__hero{
    min-height: 220px;
  }
  .profileedit__coverImage{
    height: 220px;
  }
  .profileedit__avatarWrap{
    bottom: -52px;
  }
  .profileedit__avatar{
    width: 96px;
    height: 96px;
  }
  .profileedit__avatarFallback{
    font-size: 32px;
  }
  .profileedit__coverBtn{
    min-height: 36px;
    padding: 0 11px;
    top: 10px;
    right: 10px;
    font-size: 12px;
    gap: 6px;
  }
  .profileedit__avatarBtn{
    min-height: 34px;
    padding: 0 11px;
    font-size: 11px;
  }
  .profileedit__label{
    font-size: 22px;
  }
  .profileedit__count{
    font-size: 18px;
  }
  .profileedit__save{
    width: 100%;
  }
  .walletbig{
    font-size: 36px;
  }
  .modal__body{
    padding: 12px 12px 10px;
    gap: 12px;
  }
  .authform__actions{
    justify-content: stretch;
  }
  .authform__actions .btn{
    flex: 1 1 auto;
    min-width: 0;
  }

  .readerbar__inner{ padding: 10px 10px; }
  .readerbar__right{ gap: 6px; }
  .readerbar__right .btn{
    padding: 10px 10px;
    border-radius: 12px;
  }
  .readerbar__right .btn span:last-child{ display:none; }
  .readerbar__right .select{ padding: 8px 10px; border-radius: 12px; }
  .readerbar__right select{ max-width: 42vw; }

  .main.reader{
    border-radius: 16px;
  }

  .single__controls .btn{ padding: 12px 12px; }
  .single .small{ display:none; }
  .pages{ gap: 0; }
}

@media (hover: none) and (pointer: coarse){
  .card:hover{ transform:none; }
  .feature:hover{ transform:none; }
}

@media (prefers-reduced-motion: reduce){
  .card:hover{ transform:none; }
  .drawer{ transition:none; }
}
