/* Avan screens - page layouts. Components live in design-system/avan.css. */
html, body { margin: 0; }
body { background: var(--bg); }
.page { min-height: 100dvh; position: relative; }
.wrap { position: relative; z-index: 1; width: 100%; max-width: var(--content-max); margin-inline: auto; }

/* ======================================================================
   Landing
   ====================================================================== */
.lp { --g: 12px; }
.lp-top {
  position: sticky; top: 0; z-index: 30;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px;
  height: 72px; padding-inline: 20px;
  transition: background-color var(--dur-slow) var(--ease), box-shadow var(--dur-slow) var(--ease), backdrop-filter var(--dur-slow) var(--ease);
}

.lp-top.is-stuck { background: color-mix(in oklab, var(--bg) 94%, transparent); backdrop-filter: blur(18px) saturate(150%); -webkit-backdrop-filter: blur(18px) saturate(150%); }
.lp-top__start { display: flex; gap: 8px; align-items: center; }
.lp-top__end { display: flex; gap: 8px; align-items: center; justify-content: flex-end; }
.lp-top__mini { display: flex; align-items: center; gap: 8px; opacity: 0; transform: translateY(6px); transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease); pointer-events: none; }
.lp-top.is-stuck .lp-top__mini { opacity: 1; transform: none; pointer-events: auto; }
.lp-top__mini .wordmark { font-size: 22px; }
.lp-top__search { display: flex; align-items: center; gap: 10px; height: 44px; min-width: 260px; padding-inline: 14px 18px; border-radius: 99px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--text-muted); font-size: 14px; transition: box-shadow var(--dur-base) var(--ease); }
.lp-top__search:hover { box-shadow: inset 0 0 0 1px var(--line-strong); }
.lp-top__search kbd { margin-inline-start: auto; font: 600 11px/1 system-ui, sans-serif; padding: 4px 6px; border-radius: 6px; background: var(--surface-2); color: var(--text-muted); direction: ltr; }

.lp-brand { position: relative; z-index: 1; display: grid; justify-items: center; gap: 18px; padding-block: 12px 34px; text-align: center; }
.lp-brand .wordmark { font-size: 64px; letter-spacing: .015em; }
.lp-brand .logo-motion { width: 72px; height: 72px; color: var(--text); }
.lp-brand__line { font-size: 14.5px; color: var(--text-muted); }

.lp-chips { position: sticky; top: 72px; z-index: 20; padding-block: 10px 14px; transition: background-color var(--dur-slow) var(--ease); }
.lp-chips .chips { justify-content: center; padding-inline: 20px; }
.lp-top.is-stuck + .lp-brand + .lp-chips { background: color-mix(in oklab, var(--bg) 94%, transparent); box-shadow: 0 1px 0 var(--line); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }

.lp-wall { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--tile-gap); padding-inline: var(--g); }
.lp-sec { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 64px calc(var(--g) + 8px) 18px; }
.lp-sec h2 { font-family: var(--font-display); font-size: 28px; line-height: 40px; font-weight: 800; }
.lp-sec p { font-size: 14px; color: var(--text-muted); }
.lp-sec a { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--text-2); }
.lp-sec a:hover { color: var(--text); }
.lp .mz { padding-inline: var(--g); }

.lp-foot { margin-top: 72px; padding: 40px 24px 48px; border-top: 1px solid var(--line); display: grid; justify-items: center; gap: 18px; text-align: center; }
.lp-foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 24px; font-size: 14px; color: var(--text-2); }
.lp-foot nav a:hover { color: var(--text); }
.lp-foot small { color: var(--text-muted); font-size: 12.5px; }
.lp-foot .socials { display: flex; gap: 8px; }

@media (max-width: 1200px) { .lp-wall { grid-template-columns: repeat(4, 1fr); } .lp .mz { columns: 5; } }
@media (max-width: 980px)  { .lp-wall { grid-template-columns: repeat(3, 1fr); } .lp .mz { columns: 4; } .lp-top__search { min-width: 0; } .lp-top__search span, .lp-top__search kbd { display: none; } }
@media (max-width: 640px) {
  .lp { --g: 10px; }
  .lp-top { height: 60px; padding-inline: 12px; }
  .lp-top .hide-sm { display: none; }
  .lp-brand { padding-block: 4px 20px; gap: 12px; }
  .lp-brand .wordmark { font-size: 44px; }
  .lp-brand .logo-motion { width: 52px; height: 52px; }
  .lp-chips { top: 60px; }
  .lp-chips .chips { justify-content: flex-start; padding-inline: 12px; }
  .lp-wall { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .lp-wall .trend__stats { display: none; }
  .lp-wall .trend__name { font-size: 14.5px; line-height: 20px; }
  .lp-wall .trend__ref { width: 28px; height: 38px; }
  .lp-sec { padding: 44px 14px 14px; }
  .lp-sec h2 { font-size: 22px; line-height: 32px; }
  .lp .mz { columns: 2; }
}

/* search overlay */
.search { position: fixed; inset: 0; z-index: 70; display: block; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; background: var(--bg); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); opacity: 0; pointer-events: none; transition: opacity var(--dur-slow) var(--ease); }
.search.is-open { opacity: 1; pointer-events: auto; }
.search::-webkit-scrollbar { display: none; }
.search__bar { position: sticky; top: 0; z-index: 2; padding-block: 24px 12px; background: var(--bg); display: flex; gap: 12px; align-items: center; width: min(760px, 100% - 32px); margin: 0 auto; }
.search__field { position: relative; flex: 1; }
.search__field .ico { position: absolute; inset-inline-start: 18px; top: 50%; transform: translateY(-50%); color: var(--text-muted); }
.search__field .input { height: 60px; padding-inline-start: 52px; border-radius: 20px; font-size: 17px; }
.search__body { width: min(1200px, 100% - 32px); margin: 0 auto; padding-block: 24px 64px; display: grid; gap: 28px; align-content: start; }
.search__group h3 { font-size: 13px; font-weight: 600; color: var(--text-muted); margin-block-end: 12px; }
.search__results { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.search__empty { padding: 40px 0; text-align: center; color: var(--text-muted); }
@media (max-width: 980px) { .search__results { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .search__bar { padding-top: 12px; } .search__results { grid-template-columns: repeat(2, 1fr); gap: 8px; } .search__field .input { height: 54px; } }

/* ======================================================================
   Dashboard frame
   ====================================================================== */
.dash { display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); gap: 24px; padding: 16px; max-width: var(--content-max); margin-inline: auto; position: relative; z-index: 1; }
.dash__main { min-width: 0; padding-block: 8px 48px; padding-inline-end: 8px; }
.dtop { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; margin-block-end: 24px; }
.dtop__title { display: flex; align-items: center; gap: 12px; min-width: 0; }
.dtop__title h1 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dtop__sub { font-size: 14px; color: var(--text-muted); margin-top: -2px; }
.dtop__home { display: none; }
.dtop__tools { display: flex; align-items: center; gap: 10px; flex: none; }
.dtop__avatar { width: 44px; height: 44px; box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px var(--line-strong); }
.dot-new { width: 8px; height: 8px; border-radius: 50%; background: var(--tide-5); }
.dash .tabbar { display: none; }
#notif.sheet { top: 88px; left: auto; right: auto; inset-inline-end: 24px; transform: translateY(-6px); width: min(420px, calc(100vw - 32px)); }
#notif.sheet.is-open { transform: none; }
.sec-hd { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-block: 32px 16px; }
.sec-hd h2 { font-family: var(--font-display); font-size: 22px; line-height: 32px; font-weight: 700; }
.sec-hd a { display: inline-flex; gap: 6px; align-items: center; font-size: 14px; font-weight: 600; color: var(--text-2); }

@media (max-width: 1100px) { .dash { grid-template-columns: 228px minmax(0, 1fr); } }
@media (max-width: 860px) {
  .dash { display: block; padding: 0 14px 110px; }
  .dash > .side { display: none; }
  .dash .tabbar { display: grid; }
  .dash__main { padding: 0; }
  .dtop { min-height: 60px; margin-block: 6px 16px; }
  .dtop__home { display: inline-grid; margin-inline-start: -8px; }
  .dtop h1 { font-size: 24px; line-height: 34px; }
  .dtop__sub { display: none; }
  .dtop .balance { height: 40px; font-size: 14px; }
  .dtop .balance .coin { width: 28px; height: 28px; }
  .dtop .balance__add { display: none; }
  .dtop .iconbtn { width: 40px; height: 40px; }
  .dtop__avatar { display: none; }
  #notif.sheet { top: auto; inset-inline-end: 0; }
}
@media (max-width: 640px) { #notif.sheet { width: 100%; transform: translateY(100%); } #notif.sheet.is-open { transform: none; } }

/* ======================================================================
   Create panel
   ====================================================================== */
.cpanel { display: grid; gap: 22px; padding: 20px; }
.cpanel__trend { display: flex; align-items: center; gap: 12px; padding: 8px; padding-inline-end: 8px; border-radius: 18px; background: var(--surface-2); }
.cpanel__thumb { position: relative; width: 48px; height: 64px; border-radius: 12px; overflow: hidden; flex: none; background: #0a1416; }
.cpanel__thumb video { width: 100%; height: 100%; object-fit: cover; }
.cpanel__tname { flex: 1; min-width: 0; display: grid; }
.cpanel__tname small { font-size: 12px; color: var(--text-muted); }
.cpanel__tname b { font-family: var(--font-display); font-size: 17px; line-height: 26px; font-weight: 700; }
.cpanel__ups { display: grid; grid-template-columns: 1.25fr 1fr; gap: 10px; }
.cpanel__ups .upload { min-height: 196px; }
.cpanel__go { display: grid; gap: 10px; padding-top: 4px; }
.cpanel__fine { font-size: 12.5px; line-height: 20px; color: var(--text-muted); text-align: center; }
.cpanel__low { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--danger-soft); color: var(--danger); font-size: 14px; line-height: 23px; }
.cpanel__low .ico { margin-top: 2px; }
.cpanel__low span { color: var(--text); }
.cpanel__need { margin-top: -10px; }

/* ======================================================================
   Trend page (create from a trend, visitor)
   ====================================================================== */
.tp-top { position: sticky; top: 0; z-index: 30; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 72px; padding-inline: 20px; background: color-mix(in oklab, var(--bg) 90%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.tp-top .wordmark { font-size: 26px; display: flex; gap: 8px; align-items: center; }
.tp-top__end { display: flex; justify-content: flex-end; gap: 8px; }
.tp { display: grid; grid-template-columns: minmax(340px, 440px) minmax(0, 540px); justify-content: center; gap: 56px; padding: 16px 24px 24px; position: relative; z-index: 1; }
.tp-preview { position: sticky; top: 88px; align-self: start; display: grid; gap: 14px; }
.tp-video { position: relative; aspect-ratio: 9 / 16; max-height: calc(100dvh - 120px); border-radius: var(--radius-xl); overflow: hidden; background: #0a1416; }
.tp-video video { width: 100%; height: 100%; object-fit: cover; }
.tp-video__bar { position: absolute; inset-inline: 14px; bottom: 14px; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.tp-ref { display: flex; align-items: center; gap: 10px; padding: 6px; padding-inline-end: 14px; border-radius: 16px; background: rgba(8,24,24,.5); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); color: #fff; font-size: 12.5px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); }
.tp-ref img { width: 40px; height: 54px; border-radius: 10px; object-fit: cover; }
.tp-ref b { display: block; font-size: 13px; }
.tp-ref .ico { color: #7fe3ef; }
.tp-video__top { position: absolute; inset-inline: 14px; top: 14px; display: flex; justify-content: space-between; }
.tp-main { display: grid; gap: 22px; align-content: start; padding-top: 8px; }
.tp-head { display: grid; gap: 12px; }
.tp-head h1 { font-family: var(--font-display); font-size: 44px; line-height: 58px; font-weight: 800; }
.tp-head p { font-size: 15.5px; line-height: 27px; color: var(--text-2); max-width: 520px; }
.tp-facts { display: flex; flex-wrap: wrap; gap: 8px; }
.tp-facts .badge { height: 32px; padding-inline: 10px 12px; font-size: 12.5px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--text-2); }
.tp-facts .badge .ico { color: var(--text-muted); width: 16px; height: 16px; }
.tp-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; counter-reset: s; }
.tp-steps li { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 14px; background: var(--surface-2); font-size: 13px; line-height: 19px; color: var(--text-2); }
.tp-steps li::before { counter-increment: s; content: counter(s, persian); flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--surface); font-weight: 700; font-size: 12px; color: var(--accent); box-shadow: inset 0 0 0 1px var(--line); }
.tp-made { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.tp-made a { position: relative; aspect-ratio: 3 / 4; border-radius: 12px; overflow: hidden; background: #0a1416; }
.tp-made video { width: 100%; height: 100%; object-fit: cover; }
.tp-more { padding: 24px; position: relative; z-index: 1; max-width: 1400px; margin: 0 auto; }
.tp-more .lp-wall { padding: 0; }
.tp-mbar { display: none; }

@media (max-width: 980px) {
  .tp { grid-template-columns: 1fr; gap: 24px; padding: 4px 16px 24px; max-width: 560px; margin: 0 auto; }
  .tp-preview { position: static; }
  .tp-video { max-height: 64dvh; aspect-ratio: 9 / 14; margin-inline: auto; width: 100%; }
  .tp-head h1 { font-size: 32px; line-height: 44px; }
  .tp-more .lp-wall { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .tp-more { padding: 16px; }
}
@media (max-width: 640px) {
  .tp-top { height: 60px; padding-inline: 12px; }
  .tp-top .wordmark { font-size: 22px; }
  .tp-steps { grid-template-columns: 1fr; }
  .cpanel { padding: 16px; border-radius: var(--radius-xl); }
  .cpanel__go [data-make] { display: none; }
  .tp-mbar { display: flex; position: fixed; z-index: 40; inset-inline: 0; bottom: 0; padding: 12px 16px max(12px, env(safe-area-inset-bottom)); background: color-mix(in oklab, var(--bg) 88%, transparent); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: 0 -1px 0 var(--line); }
  .tp-mbar .btn { flex: 1; }
  .tp-page { padding-bottom: 96px; }
}

/* sign-in sheet */
.signin .sheet__hero { padding-top: 30px; }
.signin .sheet__hero .ico { width: 32px; height: 32px; color: #fff; }
.signin [data-step] { display: none; }
.signin[data-at="1"] [data-step="1"], .signin[data-at="2"] [data-step="2"] { display: grid; }
.signin .sheet__body { gap: 16px; }
.signin__terms { font-size: 12px; line-height: 19px; color: var(--text-muted); text-align: center; }
.signin__terms a { color: var(--accent); }
.signin__row { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--text-muted); }
.signin__row button { color: var(--accent); font-weight: 600; font-size: 13px; }
.signin__row button[disabled] { color: var(--text-muted); font-weight: 400; cursor: default; }
input.otp__cell { border: 0; outline: none; padding: 0; text-align: center; font-family: var(--font-sans); caret-color: var(--tide-5); }
input.otp__cell:focus { box-shadow: inset 0 0 0 1.5px var(--tide-5); }
.signin__edit { color: var(--on-liquid); text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }

/* ======================================================================
   My videos
   ====================================================================== */
.vid-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-block-end: 18px; }
.chip__n { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding-inline: 5px; border-radius: 99px; background: var(--surface-2); color: var(--text-muted); font-size: 11px; font-weight: 600; }
.chip.is-on .chip__n { background: rgba(255,255,255,.18); color: #fff; }
.vid-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.gen__note { font-size: 11.5px; color: var(--on-liquid-2); opacity: .8; }
.toast-dock { position: fixed; z-index: 80; left: 50%; bottom: 28px; transform: translateX(-50%); width: max-content; max-width: calc(100vw - 32px); }
@media (max-width: 860px) {
  .hide-phone { display: none !important; }
  .vid-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .toast-dock { bottom: 96px; }
  .vid-bar .chips { margin-inline: -14px; padding-inline: 14px; }
}

/* ======================================================================
   Video detail
   ====================================================================== */
.vd-back { margin: 8px 0 14px; }
.vd { display: grid; grid-template-columns: minmax(300px, 420px) minmax(0, 1fr); gap: 32px; align-items: start; max-width: 1100px; }
.vd-player { position: sticky; top: 16px; aspect-ratio: 9 / 16; border-radius: var(--radius-xl); overflow: hidden; background: #0a1416; }
.vd-player video { width: 100%; height: 100%; object-fit: cover; }
.vd-player__top { position: absolute; inset-inline: 14px; top: 14px; display: flex; justify-content: space-between; }
.vd-player__bar { position: absolute; inset-inline: 12px; bottom: 12px; display: flex; align-items: center; gap: 10px; padding: 6px; border-radius: 22px; background: rgba(8,24,24,.42); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); color: #fff; }
.vd-player__bar .iconbtn--glass { background: transparent; box-shadow: none; }
.vd-time { font-size: 12px; font-variant-numeric: tabular-nums; opacity: .85; }
.vd-side { display: grid; gap: 16px; }
.vd-head { display: grid; gap: 6px; justify-items: start; }
.vd-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.vd-compare__row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin-top: 14px; }
.vd-compare figure { display: grid; gap: 8px; }
.vd-compare img, .vd-compare video { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 14px; background: #0a1416; }
.vd-compare figcaption { font-size: 12.5px; color: var(--text-muted); text-align: center; }
.vd-compare__arrow { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--text-2); background: var(--surface-2); }
.vd-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; margin: 0; }
.vd-specs div { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.vd-specs dt { color: var(--text-muted); } .vd-specs dd { margin: 0; font-weight: 600; }
.vd-specs .coin { width: 18px; height: 18px; }
.vd-prompt { margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); font-size: 14px; line-height: 24px; color: var(--text-2); }
.vd-more { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.vd-more .btn--danger { margin-inline-start: auto; }
.share-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.share-grid a { display: grid; justify-items: center; gap: 8px; padding: 12px 4px; border-radius: 16px; font-size: 12.5px; text-align: center; color: var(--text-2); }
.share-grid a:hover { background: var(--surface-2); }
.share-grid span { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 18px; background: var(--surface-2); color: var(--text); }
.share-grid span.liquid { color: #fff; }
@media (max-width: 1000px) {
  .vd { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .vd-player { position: relative; top: 0; max-height: 70dvh; aspect-ratio: auto; height: 70dvh; }
  .vd-specs { grid-template-columns: 1fr; }
}

/* ======================================================================
   Create (signed in)
   ====================================================================== */
.cr-pick-hd { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.cr-pick { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding: 4px 2px 14px; margin-bottom: 14px; scroll-snap-type: x proximity; }
.cr-pick::-webkit-scrollbar { display: none; }
.cr-pick__it { flex: none; width: 92px; display: grid; gap: 4px; scroll-snap-align: start; }
.cr-pick__img { position: relative; display: block; aspect-ratio: 9 / 13; border-radius: 14px; overflow: hidden; background: #0a1416; box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow var(--dur-base) var(--ease), transform var(--dur-fast) var(--ease); }
.cr-pick__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.cr-pick__it:hover .cr-pick__img img { transform: scale(1.06); }
.cr-pick__it.is-on .cr-pick__img { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--tide-5); }
.cr-pick__n { font-size: 12.5px; font-weight: 600; line-height: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cr-pick__c { display: inline-flex; gap: 4px; align-items: center; font-size: 11.5px; color: var(--text-muted); }
.cr-pick__c .coin { width: 14px; height: 14px; }
.cr-pick__it.is-on .cr-pick__n { color: var(--accent); }
.cr { display: grid; grid-template-columns: minmax(280px, 380px) minmax(0, 520px); gap: 28px; align-items: start; }
.cr-preview { position: sticky; top: 16px; display: grid; gap: 12px; }
.cr-preview .tp-video { max-height: 70dvh; }
.cr-tips ul { display: grid; gap: 8px; margin-top: 10px; }
.cr-tips li { display: flex; gap: 8px; align-items: center; font-size: 13.5px; color: var(--text-2); }
.cr-tips .ico { color: var(--success); }
@media (max-width: 1100px) { .cr { grid-template-columns: minmax(240px, 300px) minmax(0, 1fr); } }
@media (max-width: 860px) {
  .cr { grid-template-columns: 1fr; }
  .cr-preview { position: static; grid-template-columns: 120px 1fr; align-items: start; }
  .cr-preview .tp-video { max-height: none; }
  .cr-preview .tp-video__bar, .cr-preview .tp-video__top { display: none; }
  .cr-tips { padding: 16px; }
  .cr-pick { margin-inline: -14px; padding-inline: 14px; }
  .cr .cpanel__go [data-make] { display: inline-flex; }
}

/* ======================================================================
   Explore
   ====================================================================== */
.ex-tools { display: flex; gap: 12px; align-items: center; margin-bottom: 18px; }
.ex-search { position: relative; flex: none; width: 260px; }
.ex-search .ico { position: absolute; inset-inline-start: 14px; top: 50%; transform: translateY(-50%); color: var(--text-muted); }
.ex-search .input { height: 44px; padding-inline-start: 44px; border-radius: 99px; }
.ex-tools .chips { flex: 1; min-width: 0; }
.ex-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.ex-mz { columns: 5; }
@media (max-width: 860px) {
  .ex-tools { flex-direction: column; align-items: stretch; }
  .ex-search { width: 100%; }
  .ex-tools .chips { margin-inline: -14px; padding-inline: 14px; }
  .ex-wall { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .ex-wall .trend__stats { display: none; }
  .ex-mz { columns: 2; }
}

/* ======================================================================
   Tokens & payment
   ====================================================================== */
.tk { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; max-width: 1180px; }
.tk-main { display: grid; gap: 20px; }
.tk-side { display: grid; gap: 16px; position: sticky; top: 16px; }
.tk-packs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.pack__flag2 { position: absolute; top: 16px; inset-inline-start: 16px; }
.pack .pack__flag2 { inset-inline-start: auto; inset-inline-end: 48px; }
.pack.liquid .pack__flag2 { background: rgba(255,255,255,.16); color: #fff; }
.tk-sum { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 20px; padding: 16px 16px 16px 16px; border-radius: 20px; background: var(--surface-2); }
.tk-sum__txt b { display: block; font-size: 16px; } .tk-sum__txt small { font-size: 13px; color: var(--text-muted); }
.tk-fine { font-size: 12.5px; color: var(--text-muted); margin-top: 10px; }
.tk-bal { border-radius: var(--radius-xl); min-height: 260px; padding: 24px; display: grid; align-content: space-between; gap: 12px; }
.tk-bal__n { font-family: var(--font-display); font-size: 64px; line-height: 72px; font-weight: 800; display: flex; align-items: center; gap: 14px; }
.tk-bal small { font-size: 13px; line-height: 21px; }
.tk-need { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; margin-bottom: 18px; border-radius: 18px; background: var(--accent-soft); color: var(--text); font-size: 14px; line-height: 24px; max-width: 1180px; }
.tk-need .ico { color: var(--accent); margin-top: 2px; }
.chip--sm { height: 32px; padding-inline: 12px; font-size: 12.5px; }
@media (max-width: 1100px) { .tk { grid-template-columns: 1fr; } .tk-side { position: static; grid-row: 1; grid-template-columns: 1fr 1fr; } }
@media (max-width: 860px) {
  .tk { display: flex; flex-direction: column; align-items: stretch; gap: 16px; }
  .tk-main, .tk-side { display: contents; }
  .tk-bal { order: 1; } .tk-buy { order: 2; } .tk-costs { order: 3; } .tk-hist { order: 4; }
  .tk-packs { grid-template-columns: 1fr; gap: 10px; }
  .tk-packs .pack { padding: 16px 18px; }
  .tk-packs .pack__price { margin-top: 6px; padding-top: 10px; }
  .tk-sum { flex-direction: column; align-items: stretch; }
  .tk-bal { min-height: 200px; }
  .tk-bal__n { font-size: 52px; }
  .card--pad.card--xl { padding: 18px; }
}

.pay-page { display: grid; grid-template-rows: auto 1fr; }
.pay { display: grid; place-items: center; padding: 24px 16px 64px; position: relative; z-index: 1; }
.pay-card { width: min(480px, 100%); overflow: hidden; border-radius: var(--radius-2xl); }
.pay-hero { display: grid; justify-items: center; text-align: center; gap: 10px; padding: 36px 28px 30px; }
.pay-hero h1 { font-family: var(--font-display); font-size: 26px; line-height: 38px; font-weight: 800; }
.pay-hero p { font-size: 14.5px; line-height: 24px; }
.pay-coin { margin-bottom: 6px; animation: coin-in 1.1s var(--ease) both; }
.pay-coin svg { animation: coin-spin 1.4s var(--ease) .2s both; }
@keyframes coin-in { from { opacity: 0; transform: translateY(16px) scale(.8); } to { opacity: 1; transform: none; } }
@keyframes coin-spin { from { transform: rotate(-90deg) scale(.6); } to { transform: none; } }
.pay-hero--fail { background: var(--surface-2); }
.pay-hero--fail p { color: var(--text-2); max-width: 340px; }
.pay-fail-ic { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 22px; background: var(--danger-soft); color: var(--danger); margin-bottom: 6px; }
.pay-body { padding: 8px 24px 24px; display: grid; gap: 18px; }
.pay-dl { margin: 0; display: grid; }
.pay-dl div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--line-strong); font-size: 14px; }
.pay-dl dt { color: var(--text-muted); } .pay-dl dd { margin: 0; font-weight: 600; }
.pay-actions { display: grid; gap: 8px; }
@media (prefers-reduced-motion: reduce) { .pay-coin, .pay-coin svg { animation: none; } }

/* ======================================================================
   Account
   ====================================================================== */
.ac { display: grid; gap: 16px; max-width: 760px; }
.ac .card__title { margin-bottom: 16px; }
.ac-me { display: flex; align-items: center; gap: 16px; }
.ac-me > div { flex: 1; display: grid; }
.ac-me .muted { font-size: 14px; text-align: right; }
.ac-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 20px; }
.ac-stats div { padding: 14px; border-radius: 16px; background: var(--surface-2); display: grid; gap: 2px; }
.ac-stats b { font-family: var(--font-display); font-size: 22px; line-height: 30px; font-weight: 800; }
.ac-stats small { font-size: 12.5px; color: var(--text-muted); }
.ac-form { display: grid; gap: 18px; }
.ac-inline { display: flex; gap: 8px; }
.ac-inline .input { flex: 1; }
.ac-inline .input:disabled { background: var(--surface-2); color: var(--text-2); }
.ac-save { display: flex; justify-content: flex-end; margin-top: 20px; }
.ac-list { display: grid; gap: 18px; }
.ac-theme .seg__opt { grid-auto-flow: column; gap: 8px; align-items: center; justify-content: center; padding-block: 12px; }
.ac-end { display: flex; justify-content: space-between; align-items: center; padding: 8px 4px 24px; }
@media (max-width: 640px) {
  .ac-me { flex-wrap: wrap; }
  .ac-me .btn { width: 100%; }
  .ac-stats b { font-size: 18px; }
  .ac-save .btn { width: 100%; }
}

/* ======================================================================
   Help, 404
   ====================================================================== */
.hp { position: relative; z-index: 1; max-width: 820px; margin: 0 auto; padding: 16px 16px 80px; display: grid; gap: 16px; }
.hp-head { display: grid; gap: 6px; padding: 16px 0 8px; }
.hp-contact { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.hp-c { display: grid; gap: 6px; padding: 20px; border-radius: var(--radius-lg); transition: box-shadow var(--dur-base) var(--ease); }
.hp-c.card:hover { box-shadow: inset 0 0 0 1px var(--line-strong); }
.hp-c b { font-size: 15px; margin-top: 6px; } .hp-c small { font-size: 12.5px; }
.hp-c.card .ico { color: var(--accent); }
.hp-h { font-family: var(--font-display); font-size: 22px; line-height: 32px; font-weight: 700; margin-top: 20px; scroll-margin-top: 90px; }
.hp-faq { padding: 6px 20px; }
.hp-faq .more { border-bottom: 1px solid var(--line); border-radius: 0; }
.hp-faq .more:last-child { border-bottom: 0; }
.hp-faq .more > summary { padding-block: 16px; font-size: 15px; color: var(--text); }
.hp-faq .more__body { padding-block: 0 16px; }
.hp-faq p, .hp-doc p { font-size: 14.5px; line-height: 26px; color: var(--text-2); }
@media (max-width: 640px) { .hp-contact { grid-template-columns: 1fr; } }

/* Legal / informational pages */
.doc { padding: 26px 24px; }
.doc > h2 { font-family: var(--font-display); font-size: 19px; line-height: 30px; font-weight: 700; margin: 24px 0 6px; color: var(--text); }
.doc > h2:first-child { margin-top: 0; }
.doc > h3 { font-size: 15.5px; line-height: 24px; margin: 16px 0 4px; color: var(--text); }
.doc p, .doc li { font-size: 14.5px; line-height: 27px; color: var(--text-2); }
.doc p { margin: 0 0 10px; }
.doc ul, .doc ol { margin: 6px 0 12px; padding-inline-start: 22px; }
.doc li { margin-bottom: 4px; }
.doc .meta { font-size: 12.5px; color: var(--text-muted); margin-bottom: 18px; }
.doc a { color: var(--accent); }
.doc a:hover { text-decoration: underline; }
.doc .note { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 14px 16px; margin: 12px 0; }

.nf { display: grid; place-items: center; text-align: center; padding: 24px; }
.nf__in { position: relative; z-index: 1; display: grid; justify-items: center; gap: 14px; max-width: 460px; }
.nf__orb { width: 180px; height: 180px; border-radius: 60px; display: grid; place-items: center; margin-bottom: 14px; }
.nf p { font-size: 15px; line-height: 26px; }
.nf__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 8px; }
