/* TG Vault — 3D Claymorphism & Editorial Sky Design System
   Tactile 3D matte clay surfaces, puffy capsule buttons, pastel clay accents, crisp high-contrast ink, zero layout lag. */

@font-face {
  font-family: "Inter";
  src: url("fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Space Grotesk";
  src: url("fonts/space-grotesk.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}

@font-face {
  font-family: "Noto Sans Bengali";
  src: url("fonts/noto-bengali.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0980-09FF, U+200C-200D, U+25CC;
}

:root {
  color-scheme: light;
  --sky-top: #5589ad;
  --sky-mid: #7badcc;
  --sky-bot: #a3c9e0;
  --ink: #2b1e1a;
  --surface: #fffaf3;
  --surface-solid: #fffaf3;
  --surface-2: #f6eee4;
  --surface-3: #eee3d6;
  --cream: #fff8ee;
  --cream-ink: #2b1e1a;
  --clay-lav: #e2d7ff;
  --clay-pink: #ffd6e3;
  --clay-mint: #cbf2de;
  --clay-butter: #feebc0;
  --clay-sky: #d5ebff;
  --border: rgba(166, 138, 118, .22);
  --border-strong: rgba(150, 122, 102, .34);
  --border-glass: rgba(255, 255, 255, .88);
  --text: #2b1e1a;
  --muted: #68564f;
  --faint: #8b7870;
  --accent: #f15a29;
  --accent-hi: #ff784c;
  --accent-strong: #cc3e12;
  --lav-accent: #7c5ce6;
  --on-accent: #ffffff;
  --ok: #0f9a66;
  --warn: #d97706;
  --danger: #e11d48;
  --danger-strong: #be123c;
  --font-display: "Space Grotesk", "Noto Sans Bengali", system-ui, sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;
  --font-text: "Inter", "Noto Sans Bengali", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --fs-1: .8rem;
  --fs-2: .92rem;
  --fs-3: 1rem;
  --fs-4: clamp(1.12rem, 1rem + .45vw, 1.38rem);
  --fs-5: clamp(1.4rem, 1.1rem + 1.15vw, 2.05rem);
  --fs-6: clamp(2.1rem, 1.3rem + 3.6vw, 4.1rem);
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 76px;
  --r-1: 16px;
  --r-2: 26px;
  --clay-card: 0 20px 42px -14px rgba(24, 36, 56, .22), inset 0 6px 12px rgba(255, 255, 255, .95), inset 0 -6px 12px rgba(182, 158, 138, .28);
  --clay-sm: 0 12px 24px -10px rgba(24, 36, 56, .18), inset 0 4px 8px rgba(255, 255, 255, .92), inset 0 -4px 8px rgba(182, 158, 138, .24);
  --clay-well: inset 0 3px 8px rgba(132, 108, 90, .22), inset 0 -2px 5px rgba(255, 255, 255, .88);
  --shadow-1: var(--clay-sm);
  --shadow-2: var(--clay-card);
  --ease-out: cubic-bezier(.2, .8, .2, 1);
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--sky-top);
  color: var(--text);
  font: 400 var(--fs-2)/1.6 var(--font-text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

/* Photorealistic sky backdrop across all viewports (zero lag, zero synthetic shapes) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background: url("img/sky-bg.jpg") center/cover no-repeat, linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 55%, var(--sky-bot) 100%);
  pointer-events: none;
}

/* Soft airy veil on workspace/admin/auth pages so pastel clay panels stay calm and crisp */
body.area-user::after,
body.area-admin::after,
body.area-auth::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(236, 244, 252, .28) 0%, rgba(225, 238, 248, .42) 100%);
  transform: translateZ(0);
  pointer-events: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.18;
  margin: 0;
  color: var(--text);
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

a {
  color: #c94318;
  font-weight: 600;
  text-decoration: none;
}

a:hover {
  color: #9c2f0c;
}

code {
  font-family: var(--font-mono);
  font-size: .86em;
  background: var(--surface-2);
  padding: 2px 8px;
  border-radius: 8px;
  border: 1px solid var(--border);
  color: #7c2d12;
  box-shadow: inset 0 1px 2px rgba(132, 108, 90, .12);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 10px;
}

.icon {
  width: 18px;
  height: 18px;
  flex: none;
  vertical-align: -3px;
}

.muted {
  color: var(--muted);
}

.mono {
  font-family: var(--font-mono);
  font-size: var(--fs-1);
}

.nowrap {
  white-space: nowrap;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.clay-pop {
  background: linear-gradient(135deg, #ec4899 0%, #f15a29 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---- tactile 3D claymorphism controls ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-height: 46px;
  padding: 0 var(--s-5);
  background: linear-gradient(180deg, #ff7d51 0%, #f15a29 100%);
  color: var(--on-accent);
  border: 1.5px solid rgba(255, 255, 255, .55);
  border-radius: 999px;
  font: 700 var(--fs-2)/1.1 var(--font-display);
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 12px 24px -6px rgba(232, 78, 28, .45), inset 0 4px 8px rgba(255, 255, 255, .45), inset 0 -5px 8px rgba(168, 42, 8, .35);
  transition: transform .16s var(--ease-out), box-shadow .16s var(--ease-out), filter .16s;
}

.btn:hover {
  transform: translateY(-2px);
  color: var(--on-accent);
  filter: brightness(1.03);
  box-shadow: 0 16px 28px -6px rgba(232, 78, 28, .52), inset 0 4px 8px rgba(255, 255, 255, .55), inset 0 -5px 8px rgba(168, 42, 8, .35);
}

.btn:active {
  transform: translateY(2px);
  box-shadow: 0 6px 14px -4px rgba(232, 78, 28, .4), inset 0 3px 6px rgba(168, 42, 8, .35);
}

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: .55;
  cursor: not-allowed;
  transform: none;
}

.btn.ghost {
  background: linear-gradient(180deg, #ffffff 0%, #f4ebe0 100%);
  color: var(--text);
  border: 1.5px solid rgba(255, 255, 255, .95);
  box-shadow: var(--clay-sm);
}

.btn.ghost:hover {
  color: var(--text);
  background: linear-gradient(180deg, #ffffff 0%, #efe3d5 100%);
  box-shadow: 0 14px 28px -10px rgba(24, 36, 56, .22), inset 0 4px 8px #fff, inset 0 -4px 8px rgba(182, 158, 138, .28);
}

.btn.dark {
  background: linear-gradient(180deg, #9274f2 0%, #6f4de0 100%);
  color: #fff;
  border-color: rgba(255, 255, 255, .48);
  box-shadow: 0 12px 24px -6px rgba(111, 77, 224, .45), inset 0 4px 8px rgba(255, 255, 255, .42), inset 0 -5px 8px rgba(72, 42, 168, .38);
}

.btn.dark:hover {
  color: #fff;
  filter: brightness(1.05);
}

.btn.danger {
  background: linear-gradient(180deg, #fb5a7c 0%, #dc2049 100%);
  color: #fff;
  border-color: rgba(255, 255, 255, .45);
  box-shadow: 0 10px 22px -6px rgba(220, 32, 73, .42), inset 0 4px 8px rgba(255, 255, 255, .4), inset 0 -4px 8px rgba(148, 14, 44, .38);
}

.btn.danger:hover {
  color: #fff;
  filter: brightness(1.04);
}

.btn.sm {
  min-height: 40px;
  padding: 0 var(--s-3);
  font-size: var(--fs-1);
}

.btn.lg {
  min-height: 54px;
  padding: 0 30px;
  font-size: var(--fs-3);
}

.btn.glow {
  box-shadow: 0 14px 30px -6px rgba(232, 78, 28, .5), inset 0 4px 9px rgba(255, 255, 255, .52), inset 0 -5px 9px rgba(168, 42, 8, .36);
}

.btn-row {
  display: flex;
  gap: var(--s-2);
  flex-wrap: wrap;
  align-items: center;
}

input,
select,
textarea {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 46px;
  background: var(--surface-2);
  color: var(--text);
  border: 1.5px solid rgba(156, 132, 114, .22);
  border-radius: 18px;
  padding: 10px 15px;
  font: inherit;
  box-shadow: var(--clay-well);
  transition: border-color .15s, box-shadow .15s, background .15s;
}

input::placeholder,
textarea::placeholder {
  color: var(--faint);
}

input:hover,
select:hover,
textarea:hover {
  border-color: rgba(156, 132, 114, .42);
}

input:focus,
select:focus,
textarea:focus {
  outline: 0;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(241, 90, 41, .18), var(--clay-well);
  background: #fffdf9;
}

input[type=checkbox],
input[type=radio] {
  width: 20px;
  height: 20px;
  min-height: 0;
  accent-color: var(--accent);
  flex: none;
  margin: 0;
  cursor: pointer;
  box-shadow: none;
}

input[type=file] {
  padding: 9px 12px;
  cursor: pointer;
}

textarea {
  min-height: 100px;
  resize: vertical;
  border-radius: 20px;
}

label {
  display: block;
  color: var(--muted);
  font-size: var(--fs-1);
  font-weight: 700;
  letter-spacing: .02em;
  margin: var(--s-4) 0 7px;
}

.check-row {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  margin: var(--s-3) 0;
  padding: 12px 16px;
  background: linear-gradient(180deg, #fffdf9, #f4ebe1);
  border: 1.5px solid rgba(255, 255, 255, .9);
  border-radius: 18px;
  color: var(--text);
  font-size: var(--fs-2);
  font-weight: 600;
  cursor: pointer;
  min-height: 46px;
  box-shadow: 0 6px 14px -6px rgba(32, 22, 18, .12), inset 0 2px 5px #fff, inset 0 -3px 6px rgba(182, 158, 138, .2);
  transition: transform .15s, box-shadow .15s;
}

.check-row:hover {
  transform: translateY(-1px);
}

.field-error {
  color: #b91c1c;
  font-size: var(--fs-1);
  margin-top: 6px;
  font-weight: 700;
}

.field-hint {
  color: var(--muted);
  font-size: var(--fs-1);
  margin-top: 6px;
}

.pw-wrap {
  position: relative;
}

.pw-wrap input {
  padding-right: 76px;
}

.pw-toggle {
  position: absolute;
  right: 7px;
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(180deg, #ffffff, #efe4d8);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 999px;
  padding: 5px 12px;
  min-height: 34px;
  font: 700 var(--fs-1)/1 var(--font-display);
  cursor: pointer;
  box-shadow: 0 4px 10px -4px rgba(32, 22, 18, .16), inset 0 2px 3px #fff;
}

.pw-toggle:hover {
  background: #fff;
}

/* ---- tactile clay cards & stats ---- */
.card {
  min-width: 0;
  background: linear-gradient(155deg, #fffdfa 0%, #f8f0e6 100%);
  border: 1.5px solid rgba(255, 255, 255, .92);
  border-radius: var(--r-2);
  padding: var(--s-5);
  margin-bottom: var(--s-4);
  box-shadow: var(--clay-card);
}

.card-compact {
  padding: var(--s-4) var(--s-5);
}

.perm-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.cols-stretch {
  align-items: stretch;
  margin-bottom: var(--s-4);
}

.cols-stretch>.card {
  margin-bottom: 0;
  height: 100%;
}

.status-list {
  display: grid;
  gap: 8px;
}

.status-kv {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding: 10px 14px;
  border-radius: 16px;
  background: rgba(43, 30, 26, .04);
}

.btn-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-2);
}

.guide-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.guide-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.guide-num {
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font: 700 .78rem/1 var(--font-display);
  background: var(--surface-3);
  color: var(--text);
  margin-top: 2px;
}

.guide-tag {
  flex: none;
  min-width: 90px;
  justify-content: center;
  text-align: center;
}

.guide-badge {
  flex: none;
  min-width: 58px;
  justify-content: center;
  text-align: center;
}

.card h3 {
  font-size: var(--fs-4);
  margin: 0 0 var(--s-2);
}

.card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-3);
  flex-wrap: wrap;
  margin-bottom: var(--s-3);
}

.card-head h3 {
  margin: 0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
  gap: var(--s-4);
  margin-bottom: var(--s-4);
}

.stat {
  background: linear-gradient(155deg, #fffdfa 0%, #f7efe5 100%);
  border: 1.5px solid rgba(255, 255, 255, .94);
  border-radius: 24px;
  padding: var(--s-4) var(--s-5);
  min-width: 0;
  box-shadow: var(--clay-sm);
  position: relative;
  overflow: hidden;
}

.stat::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, #f46838, #f472b6);
}

.grid .stat:nth-child(4n+1)::before {
  background: linear-gradient(90deg, #9b80f6, #b9a4ff);
}

.grid .stat:nth-child(4n+2)::before {
  background: linear-gradient(90deg, #f5628d, #ff8cad);
}

.grid .stat:nth-child(4n+3)::before {
  background: linear-gradient(90deg, #30b880, #6ee7b7);
}

.grid .stat:nth-child(4n+4)::before {
  background: linear-gradient(90deg, #f59e0b, #fcd34d);
}

.stat b {
  display: block;
  font: 800 clamp(1.45rem, 1.2rem + 1vw, 2rem)/1.2 var(--font-display);
  color: var(--text);
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
  margin-top: 4px;
}

.stat span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-4);
}

.row3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-4);
}

.cols-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-4);
  align-items: start;
}

.row>*,
.row3>*,
.cols-2>* {
  min-width: 0;
}

.inline-form {
  display: flex;
  gap: var(--s-3);
  align-items: end;
  flex-wrap: wrap;
}

.inline-form>div {
  flex: 1 1 200px;
  min-width: 0;
}

.code-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  padding: 11px 15px;
  background: var(--surface-2);
  border: 1.5px solid rgba(156, 132, 114, .22);
  border-radius: 18px;
  margin-top: var(--s-3);
  box-shadow: var(--clay-well);
}

.code-box code {
  flex: 1 1 auto;
  min-width: 0;
  background: none;
  border: 0;
  box-shadow: none;
  padding: 0;
  overflow-wrap: anywhere;
  font-size: var(--fs-1);
  color: var(--text);
  font-weight: 600;
}

.code-box .btn {
  flex: none;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 18px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

th {
  text-align: left;
  color: var(--muted);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 11px 12px;
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
}

td {
  padding: 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  color: var(--text);
}

tbody tr:last-child td,
tr:last-child>td {
  border-bottom: 0;
}

tbody tr:hover td,
tr:hover>td {
  background: rgba(241, 90, 41, .05);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: .74rem;
  font-weight: 700;
  background: var(--surface-3);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, .85);
  white-space: nowrap;
  box-shadow: 0 3px 8px -3px rgba(32, 22, 18, .15), inset 0 2px 3px rgba(255, 255, 255, .85);
}

.badge.on {
  background: linear-gradient(180deg, #d8f7e8, #b5ebd1);
  color: #0b5f3f;
}

.badge.off {
  background: linear-gradient(180deg, #ffe1e7, #ffc4d1);
  color: #9b1332;
}

.badge.warn {
  background: linear-gradient(180deg, #fff0c9, #fde09a);
  color: #854206;
}

.badge.accent {
  background: linear-gradient(180deg, #ffe3d6, #ffc7ae);
  color: #9e2f0a;
}

.badge.info {
  background: linear-gradient(180deg, #e0ebff, #c2d7ff);
  color: #193e8a;
}

.msg {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  background: linear-gradient(160deg, #e4faee, #cbf1dc);
  border: 1.5px solid rgba(255, 255, 255, .92);
  color: #0c593c;
  padding: var(--s-3) var(--s-4);
  border-radius: 18px;
  margin-bottom: var(--s-4);
  font-weight: 600;
  overflow-wrap: anywhere;
  box-shadow: var(--clay-sm);
}

.msg.err {
  background: linear-gradient(160deg, #ffe4e9, #ffc9d3);
  color: #8e142f;
}

.msg a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.tabs {
  display: flex;
  gap: var(--s-2);
  margin-bottom: var(--s-4);
  flex-wrap: wrap;
}

.tabs a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 var(--s-4);
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff, #f4ebe1);
  border: 1.5px solid rgba(255, 255, 255, .95);
  color: var(--text);
  font-weight: 700;
  box-shadow: var(--clay-sm);
  transition: transform .15s, background .15s;
}

.tabs a:hover {
  transform: translateY(-1px);
  color: var(--text);
}

.tabs a.on {
  background: linear-gradient(180deg, #ff7d51, #f15a29);
  color: #fff;
  border-color: rgba(255, 255, 255, .55);
  box-shadow: 0 10px 20px -6px rgba(232, 78, 28, .45), inset 0 3px 6px rgba(255, 255, 255, .45);
}

.meter {
  height: 11px;
  background: var(--surface-3);
  border-radius: 999px;
  overflow: hidden;
  margin-top: var(--s-2);
  box-shadow: var(--clay-well);
}

.meter>i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #f15a29, #f59e0b);
  transition: width .5s var(--ease-out);
}

.meter.warn>i {
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.meter.full>i {
  background: linear-gradient(90deg, #e11d48, #f43f5e);
}

.empty {
  text-align: center;
  padding: var(--s-7) var(--s-4);
  color: var(--muted);
}

.empty h3 {
  color: var(--text);
  margin-bottom: var(--s-2);
}

.pager {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-3);
  flex-wrap: wrap;
  margin-top: var(--s-4);
}

/* ---- app shell (/user/* & /admin/*) — fills 100% width in tactile clay ---- */
.shell {
  display: flex;
  min-height: 100vh;
  width: 100%;
  padding: 16px;
  gap: 16px;
  align-items: flex-start;
}

.side {
  width: 264px;
  flex: none;
  background: linear-gradient(165deg, rgba(255, 253, 249, .96), rgba(248, 239, 229, .95));
  backdrop-filter: blur(16px);
  border: 1.5px solid rgba(255, 255, 255, .94);
  border-radius: 28px;
  padding: var(--s-4) var(--s-3);
  position: sticky;
  top: 16px;
  height: calc(100vh - 32px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: var(--clay-card);
}

.side-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: var(--s-3);
}

.side-close {
  display: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 800 1.08rem var(--font-display);
  color: var(--text);
  padding: var(--s-2) var(--s-3);
  white-space: nowrap;
}

.brand:hover {
  color: var(--text);
}

.brand-mark {
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #a78bfa, #7c5ce6);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, .65);
  box-shadow: 0 8px 16px -4px rgba(124, 92, 230, .45), inset 0 3px 6px rgba(255, 255, 255, .5), inset 0 -3px 5px rgba(72, 42, 168, .38);
}

.brand-mark .icon {
  width: 17px;
  height: 17px;
}

.brand-mark.brand-tg {
  background: linear-gradient(145deg, #38bdf8 0%, #2aabee 45%, #0088cc 100%);
  color: #fff;
  box-shadow: 0 8px 16px -4px rgba(0, 136, 204, .46), inset 0 3px 6px rgba(255, 255, 255, .65), inset 0 -3px 5px rgba(0, 88, 148, .35);
}

.tg-plane-svg {
  width: 19px;
  height: 19px;
  display: block;
}

.side a.nav {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  min-height: 44px;
  padding: 0 var(--s-3);
  border-radius: 15px;
  color: var(--muted);
  font-weight: 600;
  transition: background .15s, color .15s, transform .15s;
}

.side a.nav:hover {
  background: rgba(124, 92, 230, .1);
  color: var(--text);
  transform: translateX(2px);
}

.side a.nav.on {
  background: linear-gradient(180deg, #ff7d51, #f15a29);
  color: #fff;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, .48);
  box-shadow: 0 10px 18px -6px rgba(232, 78, 28, .45), inset 0 3px 6px rgba(255, 255, 255, .45);
}

.side .navoff {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  min-height: 44px;
  padding: 0 var(--s-3);
  color: var(--faint);
  cursor: not-allowed;
}

.side .group {
  margin: var(--s-4) var(--s-3) var(--s-2);
  color: var(--faint);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.side select {
  min-height: 42px;
  border-radius: 14px;
}

.side .botpick {
  margin: 0 var(--s-1) var(--s-3);
}

.side .foot {
  margin-top: auto;
  padding: var(--s-4) var(--s-1) var(--s-1);
  border-top: 1px solid var(--border);
}

.main {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  max-width: none;
  padding: 4px 4px var(--s-7);
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  margin-bottom: var(--s-4);
  padding: 13px var(--s-5);
  background: linear-gradient(160deg, rgba(255, 253, 249, .96), rgba(248, 239, 229, .94));
  backdrop-filter: blur(14px);
  border: 1.5px solid rgba(255, 255, 255, .94);
  border-radius: 24px;
  box-shadow: var(--clay-sm);
}

.top-left {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  min-width: 0;
}

.top h2 {
  font-size: var(--fs-5);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.top-bot {
  display: inline-block;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}

.menu-btn {
  display: none;
  flex: none;
}

.quota {
  background: linear-gradient(160deg, #fff3ec, #ffe5d8);
  border: 1.5px solid rgba(255, 255, 255, .92);
  border-radius: 18px;
  padding: var(--s-3);
  margin: 0 0 var(--s-3);
  font-size: var(--fs-1);
  display: block;
  color: var(--text);
  box-shadow: var(--clay-sm);
}

.quota b {
  font-variant-numeric: tabular-nums;
  color: var(--accent-strong);
}

.area-admin .brand-mark {
  background: linear-gradient(145deg, #fbbf24, #d97706);
  box-shadow: 0 8px 16px -4px rgba(217, 119, 6, .42), inset 0 3px 6px rgba(255, 255, 255, .55);
}

.area-admin .side a.nav.on {
  background: linear-gradient(180deg, #fbbf24, #d97706);
  color: #fff;
  box-shadow: 0 10px 18px -6px rgba(217, 119, 6, .45), inset 0 3px 6px rgba(255, 255, 255, .45);
}

.mob-dock {
  display: none;
}

/* ---- public site (Sky Cloud Hero + 3D Claymorphism Body Sections) ---- */
.wrap {
  width: min(1260px, 100% - 32px);
  margin-inline: auto;
}

.nav-top {
  position: sticky;
  top: 14px;
  z-index: 30;
  width: min(1260px, 100% - 28px);
  margin: 14px auto 0;
  background: linear-gradient(180deg, rgba(255, 253, 249, .95), rgba(249, 241, 232, .92));
  backdrop-filter: blur(16px);
  border: 1.5px solid rgba(255, 255, 255, .96);
  border-radius: 999px;
  box-shadow: var(--clay-sm);
  transition:background .25s var(--ease-out),border-color .25s,box-shadow .25s;
}

.nav-top .wrap {
  width: 100%;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  min-height: 64px;
}

.nav-top nav {
  display: flex;
  gap: 6px;
  align-items: center;
}

.nav-top nav a.link {
  color: var(--text);
  font: 700 .78rem/1 var(--font-display);
  letter-spacing: .07em;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 10px 14px;
  border-radius: 999px;
  transition: background .15s, color .15s;
}
.nav-top nav a.link:hover { background:var(--clay-lav); color:#2b1e1a; }
.nav-top-actions { display:flex; align-items:center; gap:var(--s-2); }
.nav-top-actions a.link { display:inline-flex; align-items:center; min-height:44px; color:var(--text); font-weight:700; padding:0 12px; border-radius:999px; transition:background .15s,color .15s; }
.nav-top-actions a.link:hover { background:var(--surface-2); }

/* Translucent editorial sky-glass navbar on homepage top fold, transitions on scroll */
.nav-top.nav-glass:not(.is-scrolled) {
  background:linear-gradient(180deg,rgba(255,255,255,.16),rgba(255,255,255,.07));
  border-color:rgba(255,255,255,.52);
  box-shadow:0 14px 32px -10px rgba(8,38,76,.28),inset 0 1px 0 rgba(255,255,255,.45);
}
.nav-top.nav-glass:not(.is-scrolled) .brand { color:#fff; text-shadow:0 2px 10px rgba(8,36,72,.34); }
.nav-top.nav-glass:not(.is-scrolled) nav a.link { color:rgba(255,255,255,.94); text-shadow:0 1px 6px rgba(8,36,72,.3); }
.nav-top.nav-glass:not(.is-scrolled) nav a.link:hover { background:rgba(255,255,255,.18); color:#fff; }
.nav-top.nav-glass:not(.is-scrolled) .nav-top-actions a.link { color:#fff; }
.nav-top.nav-glass:not(.is-scrolled) .nav-top-actions a.link:hover { background:rgba(255,255,255,.18); }

.nav-top nav a.link:hover {
  background: var(--clay-lav);
  color: #2b1e1a;
}

.nav-top-actions {
  display: flex;
  align-items: center;
  gap: var(--s-2);
}

.nav-top-actions a.link {
  color: var(--text);
  font-weight: 700;
  padding: 0 10px;
}

.sky-hero {
  position:relative;
  overflow:hidden;
  padding:clamp(18px,2.8vw,38px) 0 clamp(40px,5vw,66px);
}

.sky-hero .wrap {
  position: relative;
  z-index: 2;
}

/* ---- Outer wide-monitor atmospheric Telegram paper planes ---- */
.sky-outer-planes {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  display: none;
}

@media (min-width:1420px) {
  .sky-outer-planes { display:block; }
}

.sky-drift {
  position:absolute; color:rgba(255,255,255,.65);
  filter:drop-shadow(0 8px 18px rgba(10,55,110,.26));
  animation:tgSoar 8.5s ease-in-out infinite;
}
.sky-drift.p-left { top:36%; left:2.2%; width:38px; height:38px; transform:rotate(-16deg); }
.sky-drift.p-right { top:28%; right:2.2%; width:34px; height:34px; transform:rotate(14deg); animation-delay:2.2s; }
.sky-drift .tg-plane-svg { width:100%; height:100%; }

.sky-trail-1 {
  top: 18%;
  left: 2%;
  width: 36px;
  height: 36px;
  transform: rotate(-16deg);
}

.sky-trail-2 {
  top: 22%;
  right: 2%;
  width: 32px;
  height: 32px;
  transform: rotate(14deg);
  animation-delay: 2s;
}

.sky-plane-trail .tg-plane-svg {
  width: 100%;
  height: 100%;
}

/* ---- Sky Canvas wrapping Hero Stage & Wide-Scattered Floating Icons ---- */
.hero-sky-canvas {
  position:relative;
  padding:clamp(28px,4vw,52px) 0 clamp(28px,3.6vw,46px);
}
.sky-scatter {
  position:absolute; inset:0; z-index:1; pointer-events:none;
}
.sky-orb {
  position:absolute; width:54px; height:54px; border-radius:18px; display:grid; place-items:center;
  background:linear-gradient(145deg,#45c8ff 0%,#2aabee 52%,#0082c8 100%);
  color:#fff; border:1.5px solid rgba(255,255,255,.85);
  box-shadow:0 16px 30px -8px rgba(0,88,158,.45),inset 0 4px 8px rgba(255,255,255,.65),inset 0 -4px 8px rgba(0,78,136,.35);
  animation:tgSkyFloat 6.4s ease-in-out infinite;
}
.sky-orb .tg-plane-svg { width:28px; height:28px; }
.sky-orb.orb-tl { top:0; left:1.5%; transform:rotate(-13deg); }
.sky-orb.orb-br {
  bottom:4px; right:1.5%; width:50px; height:50px; border-radius:17px;
  background:linear-gradient(145deg,#ff875e,#f15a29);
  box-shadow:0 16px 30px -8px rgba(208,60,18,.44),inset 0 4px 8px rgba(255,255,255,.6),inset 0 -4px 8px rgba(154,36,8,.35);
  transform:rotate(14deg); animation-delay:1.6s;
}
.sky-orb.orb-br .tg-plane-svg { width:25px; height:25px; }

.tg-clay-badge.lg {
  width: 72px;
  height: 72px;
  border-radius: 24px;
  transform: rotate(11deg);
}

.tg-clay-badge .tg-plane-svg {
  width: 34px;
  height: 34px;
}

.tg-clay-badge.lg .tg-plane-svg {
  width: 38px;
  height: 38px;
}

.sky-plane {
  position:absolute; width:28px; height:28px; color:rgba(255,255,255,.84);
  filter:drop-shadow(0 6px 14px rgba(10,55,112,.3));
  animation:tgSoar 7.6s ease-in-out infinite;
}
.sky-plane .tg-plane-svg { width:100%; height:100%; }
.sky-plane.sp-1 { top:18px; left:27%; transform:rotate(-12deg); }
.sky-plane.sp-2 { top:26px; right:26%; width:25px; height:25px; transform:rotate(15deg); animation-delay:2.8s; }

.sky-glass-tag {
  position:absolute;
  display:inline-flex; align-items:center; gap:8px; padding:8px 15px; border-radius:999px;
  background:linear-gradient(160deg,rgba(255,255,255,.26),rgba(255,255,255,.12));
  backdrop-filter:blur(12px);
  border:1.5px solid rgba(255,255,255,.58);
  color:#fff; font:700 .78rem/1 var(--font-display);
  text-shadow:0 1px 6px rgba(8,40,80,.35);
  box-shadow:0 12px 26px -8px rgba(8,46,94,.28),inset 0 2px 4px rgba(255,255,255,.4);
  animation:tgSkyFloat 7.2s ease-in-out infinite;
  white-space:nowrap;
}
.sky-glass-tag .tg-plane-svg { width:16px; height:16px; color:#fff; flex:none; }
.sky-glass-tag.tag-bl { bottom:6px; left:2%; animation-delay:.8s; }
.sky-glass-tag.tag-tr { top:6px; right:2%; animation-delay:2.1s; }

.tg-clay-mini .tg-plane-svg {
  width: 18px;
  height: 18px;
  color: #0088cc;
  flex: none;
}

.tg-clay-mini.mint {
  color: #0a5a3c;
  background: linear-gradient(160deg, rgba(244, 255, 250, .95), rgba(210, 247, 230, .9));
}

.tg-clay-mini.mint .tg-plane-svg {
  color: #0d9c68;
}

.hero-stage {
  position:relative; z-index:2;
  display:grid;
  grid-template-columns:minmax(0,1.04fr) minmax(260px,360px) minmax(0,1.04fr);
  align-items:center;
  gap:clamp(18px,3vw,38px);
  min-height:clamp(370px,48vh,470px);
}
.hero-left { align-self:center; min-width:0; }
.hero-right { align-self:center; text-align:right; min-width:0; }
.serif-lead {
  display:block;
  font:italic 400 clamp(1.55rem,1.2rem + 1.55vw,2.45rem)/1.12 var(--font-serif);
  color:rgba(255,255,255,.97);
  text-shadow:0 3px 16px rgba(8,38,76,.62),0 1px 3px rgba(8,38,76,.46);
  margin-bottom:4px;
}
.hero-right .serif-lead { margin-top:4px; margin-bottom:0; }

.cloud-img {
  display:block; height:auto; max-width:100%; user-select:none; pointer-events:none;
  filter:drop-shadow(0 12px 28px rgba(8,52,102,.3));
}

.cloud-img-left { width:min(350px,100%); margin-right:auto; }
.cloud-img-right { width:min(380px,100%); margin-left:auto; }

.hero-portal-wrap {
  position:relative; width:min(330px,100%);
  display:grid; place-items:center;
}

.hero-portal-img {
  display:block; width:100%; height:auto;
  filter:drop-shadow(0 28px 46px rgba(8,40,84,.42));
  animation:tgCenterFloat 6.2s ease-in-out infinite;
  user-select:none; pointer-events:none;
}


.chip .icon {
  color: var(--ok);
  width: 15px;
  height: 15px;
  flex: none;
}

@keyframes tgSkyFloat {
  0%,100% { transform:translateY(0); }
  50% { transform:translateY(-9px); }
}
@keyframes tgCenterFloat {
  0%,100% { transform:translateY(0); }
  50% { transform:translateY(-11px); }
}

@keyframes tgSoar {
  0%,100% { transform:translate(0,0) rotate(-14deg); opacity:.72; }
  50% { transform:translate(8px,-9px) rotate(-7deg); opacity:.98; }
}


.hero-bottom-bar {
  margin-top: var(--s-5);
  background: linear-gradient(155deg, #fffdfa 0%, #f7efe5 100%);
  border: 1.5px solid rgba(255, 255, 255, .95);
  border-radius: 30px;
  padding: clamp(22px, 3vw, 34px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  box-shadow: var(--clay-card);
}

.hero-bottom-copy {
  flex: 1 1 360px;
}

.hero-bottom-copy h1 {
  font-size: clamp(1.45rem, 1.1rem + 1.15vw, 2.05rem);
  color: var(--text);
  text-shadow: 0 2px 0 rgba(255, 255, 255, .8);
}

.hero-bottom-copy p {
  color: var(--muted);
  margin-top: 8px;
  max-width: 54ch;
}

.hero-bottom-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--s-3);
  flex: 0 1 auto;
}

.cta {
  display: flex;
  gap: var(--s-3);
  flex-wrap: wrap;
}

.hero-meta {
  display: flex;
  gap: var(--s-4);
  flex-wrap: wrap;
  color: var(--muted);
  font-size: var(--fs-1);
  font-weight: 600;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-meta .icon {
  color: var(--ok);
  width: 16px;
  height: 16px;
}

/* ---- sections & Clayful cards ---- */
.section {
  padding: clamp(34px, 5vw, 66px) 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-4);
  flex-wrap: wrap;
  margin-bottom: var(--s-5);
  padding: var(--s-4) var(--s-5);
  background: linear-gradient(155deg, #fffdfa, #f6ede2);
  border: 1.5px solid rgba(255, 255, 255, .95);
  border-radius: 26px;
  box-shadow: var(--clay-sm);
}

.section-head h2 {
  font-size: var(--fs-5);
  color: var(--text);
}

.section-head p {
  color: var(--muted);
  font-size: var(--fs-2);
  max-width: 44ch;
  font-weight: 500;
}

.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--s-4);
}

.tile {
  background: linear-gradient(155deg, #fffdfa, #f6ede2);
  border: 1.5px solid rgba(255, 255, 255, .95);
  border-radius: 28px;
  padding: var(--s-5);
  box-shadow: var(--clay-card);
  transition: transform .2s var(--ease-out);
}

.tile:hover {
  transform: translateY(-4px);
}

.tile-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: var(--s-3);
}

.tile-top .ico {
  margin-bottom: 0;
}

.tile .ico {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #ff8559, #f15a29);
  color: #fff;
  margin-bottom: var(--s-4);
  border: 1.5px solid rgba(255, 255, 255, .55);
  box-shadow: 0 10px 20px -5px rgba(241, 90, 41, .42), inset 0 4px 8px rgba(255, 255, 255, .45), inset 0 -4px 8px rgba(176, 42, 8, .32);
}

.tile .ico .icon {
  width: 22px;
  height: 22px;
}

.tile h3 {
  font-size: var(--fs-4);
  margin-bottom: var(--s-2);
  color: var(--text);
}

.tile p {
  color: var(--muted);
}

/* Pastel Clayful variants inspired by Daily Planner & Clayful */
.bento .tile:nth-child(2) {
  background: linear-gradient(155deg, #ede6ff, #d9cbff);
}

.bento .tile:nth-child(2) .ico {
  background: linear-gradient(145deg, #a98ff8, #7c5ce6);
  box-shadow: 0 10px 20px -5px rgba(124, 92, 230, .42), inset 0 4px 8px rgba(255, 255, 255, .48), inset 0 -4px 8px rgba(72, 42, 168, .32);
}

.bento .tile:nth-child(3) {
  background: linear-gradient(155deg, #ffe7ef, #ffcfdf);
}

.bento .tile:nth-child(3) .ico {
  background: linear-gradient(145deg, #fb7aa3, #eb487b);
  box-shadow: 0 10px 20px -5px rgba(235, 72, 123, .42), inset 0 4px 8px rgba(255, 255, 255, .48), inset 0 -4px 8px rgba(158, 20, 66, .32);
}

.bento .tile:nth-child(4) {
  background: linear-gradient(155deg, #e2faee, #c4eed9);
}

.bento .tile:nth-child(4) .ico {
  background: linear-gradient(145deg, #34d399, #0d9c68);
  box-shadow: 0 10px 20px -5px rgba(13, 156, 104, .4), inset 0 4px 8px rgba(255, 255, 255, .48), inset 0 -4px 8px rgba(8, 98, 64, .3);
}

.bento .tile:nth-child(5) {
  background: linear-gradient(155deg, #fff6de, #fce3a6);
}

.bento .tile:nth-child(5) .ico {
  background: linear-gradient(145deg, #fbbf24, #e47f0a);
  box-shadow: 0 10px 20px -5px rgba(228, 127, 10, .4), inset 0 4px 8px rgba(255, 255, 255, .52), inset 0 -4px 8px rgba(150, 74, 4, .28);
}

.tile.w3 {
  grid-column: span 3;
}

.tile.w2 {
  grid-column: span 2;
}

.tile.w4 {
  grid-column: span 4;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-4);
  counter-reset: s;
}

.step {
  position: relative;
  background: linear-gradient(155deg, #fffdfa, #f6ede2);
  border: 1.5px solid rgba(255, 255, 255, .95);
  border-radius: 28px;
  padding: var(--s-5);
  box-shadow: var(--clay-card);
  overflow: hidden;
}

.step::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 10px;
  background: var(--clay-pink);
}

.steps .step:nth-child(2)::after {
  background: var(--clay-lav);
}

.steps .step:nth-child(3)::after {
  background: var(--clay-mint);
}

.step::before {
  counter-increment: s;
  content: "0" counter(s);
  display: inline-grid;
  place-items: center;
  font: 800 1.35rem/1 var(--font-display);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(145deg, #fb7aa3, #eb487b);
  color: #fff;
  margin: 8px 0 var(--s-3);
  border: 1.5px solid rgba(255, 255, 255, .6);
  box-shadow: 0 8px 16px -4px rgba(235, 72, 123, .4), inset 0 3px 6px rgba(255, 255, 255, .5);
}

.steps .step:nth-child(2)::before {
  background: linear-gradient(145deg, #a98ff8, #7c5ce6);
  box-shadow: 0 8px 16px -4px rgba(124, 92, 230, .4), inset 0 3px 6px rgba(255, 255, 255, .5);
}

.steps .step:nth-child(3)::before {
  background: linear-gradient(145deg, #34d399, #0d9c68);
  box-shadow: 0 8px 16px -4px rgba(13, 156, 104, .38), inset 0 3px 6px rgba(255, 255, 255, .5);
}

.step h3 {
  font-size: var(--fs-4);
  margin-bottom: var(--s-2);
}

.step p {
  color: var(--muted);
}

.stat-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-4);
  text-align: center;
}

.stat-band>div {
  background: linear-gradient(155deg, #fffdfa, #f6ede2);
  border: 1.5px solid rgba(255, 255, 255, .95);
  border-radius: 28px;
  padding: var(--s-5) var(--s-4);
  box-shadow: var(--clay-card);
}

.stat-band>div:nth-child(1) {
  background: linear-gradient(155deg, #fff6df, #fde3aa);
}

.stat-band>div:nth-child(2) {
  background: linear-gradient(155deg, #ede6ff, #d9ccff);
}

.stat-band>div:nth-child(3) {
  background: linear-gradient(155deg, #e2faee, #c5efda);
}

.stat-band b {
  display: block;
  font: 800 clamp(1.9rem, 4vw, 2.9rem)/1.1 var(--font-display);
  color: var(--text);
}

.stat-band span {
  display: block;
  margin-top: 6px;
  font-weight: 700;
  color: var(--muted);
}

.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--s-4);
  align-items: stretch;
}

.plans>* {
  min-width: 0;
}

.plan {
  display: flex;
  flex-direction: column;
  background: linear-gradient(155deg, #fffdfa, #f6ede2);
  border: 1.5px solid rgba(255, 255, 255, .95);
  border-radius: 28px;
  padding: var(--s-5);
  box-shadow: var(--clay-card);
}

.plan.featured {
  background: linear-gradient(160deg, #9c82f6 0%, #7756e2 100%);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, .72);
  box-shadow: 0 24px 48px -12px rgba(102, 70, 210, .45), inset 0 6px 14px rgba(255, 255, 255, .45), inset 0 -8px 14px rgba(64, 36, 158, .38);
}

.plan.featured h3,
.plan.featured .price {
  color: #fff;
}

.plan.featured .muted,
.plan.featured .price small {
  color: rgba(255, 255, 255, .9);
}

.plan.featured .btn {
  background: linear-gradient(180deg, #ffffff, #f4ebe1);
  color: #2b1e1a;
  border-color: #fff;
  box-shadow: 0 12px 24px -6px rgba(42, 24, 108, .36), inset 0 3px 6px #fff;
}

.plan.featured .btn:hover {
  background: linear-gradient(180deg, #ffffff, #efe2d4);
  color: #2b1e1a;
  box-shadow: 0 16px 28px -6px rgba(42, 24, 108, .44), inset 0 3px 6px #fff;
}

.plan h3 {
  font-size: var(--fs-4);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.plan .price {
  font: 800 2.2rem/1.15 var(--font-display);
  margin: var(--s-4) 0 4px;
  font-variant-numeric: tabular-nums;
}

.plan .price small {
  font: 600 var(--fs-2) var(--font-text);
  color: var(--muted);
}

.plan ul {
  list-style: none;
  padding: 0;
  margin: var(--s-5) 0;
  display: grid;
  gap: 10px;
  flex: 1;
}

.plan li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.plan li .icon {
  color: var(--ok);
  margin-top: 3px;
  width: 16px;
  height: 16px;
}

.plan.featured li .icon {
  color: #a7f3d0;
}

.plan .btn {
  width: 100%;
}

.faq-card {
  background: linear-gradient(155deg, #fffdfa, #f6ede2);
  border: 1.5px solid rgba(255, 255, 255, .95);
  border-radius: 28px;
  padding: var(--s-4) var(--s-5);
  box-shadow: var(--clay-card);
}

.faq details {
  border-bottom: 1.5px solid var(--border);
  padding: var(--s-3) 0;
}

.faq details:last-child {
  border-bottom: 0;
}

.faq summary {
  cursor: pointer;
  font: 700 var(--fs-3) var(--font-display);
  color: var(--text);
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: var(--s-4);
  min-height: 44px;
  align-items: center;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #ff7d51, #f15a29);
  color: #fff;
  font-size: 1.2rem;
  flex: none;
  box-shadow: 0 4px 10px -2px rgba(241, 90, 41, .35), inset 0 2px 4px rgba(255, 255, 255, .45);
  transition: transform .2s var(--ease-out);
}

.faq details[open] summary::after {
  transform: rotate(45deg);
  background: linear-gradient(180deg, #a98ff8, #7c5ce6);
}

.faq p {
  color: var(--muted);
  margin-top: var(--s-2);
  max-width: 56em;
}

.cta-band {
  text-align: center;
  padding: clamp(36px, 6vw, 70px) var(--s-5);
  border: 2px solid rgba(255, 255, 255, .78);
  border-radius: 32px;
  background: linear-gradient(150deg, #ff8054 0%, #f15a29 48%, #8b6ce8 100%);
  box-shadow: 0 26px 52px -12px rgba(42, 26, 90, .36), inset 0 6px 14px rgba(255, 255, 255, .45), inset 0 -8px 14px rgba(84, 32, 128, .3);
}

.cta-band h2 {
  font-size: var(--fs-5);
  color: #fff;
}

.cta-band p {
  color: rgba(255, 255, 255, .92);
  margin: var(--s-3) auto var(--s-5);
  max-width: 34em;
  font-weight: 500;
}

.cta-band .btn {
  background: linear-gradient(180deg, #ffffff, #f4ebe1);
  color: var(--text);
  border-color: #fff;
  box-shadow: 0 14px 28px -6px rgba(32, 16, 64, .35), inset 0 4px 8px #fff;
}

.cta-band .btn:hover {
  background: linear-gradient(180deg, #ffffff, #efe2d4);
  color: var(--text);
}

.site-foot {
  padding: var(--s-5) 0;
  background: rgba(255, 250, 243, .92);
  backdrop-filter: blur(12px);
  color: var(--muted);
  border-top: 1.5px solid rgba(255, 255, 255, .85);
}

.site-foot .wrap {
  display: flex;
  justify-content: space-between;
  gap: var(--s-4);
  flex-wrap: wrap;
  align-items: center;
}

/* ---- auth (TAANSTORE & Clayful 3D Matte Clay Card + Peeking Mascot) ---- */
.auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
}

.auth-side {
  padding: var(--s-7);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(160deg, rgba(255, 251, 246, .88), rgba(245, 235, 224, .88));
  backdrop-filter: blur(18px);
  border-right: 1.5px solid rgba(255, 255, 255, .85);
}

.auth-side h2 {
  font-size: var(--fs-5);
  max-width: 14em;
}

.auth-side ul {
  list-style: none;
  padding: 0;
  margin: var(--s-5) 0 0;
  display: grid;
  gap: 12px;
  color: var(--muted);
  font-weight: 500;
}

.auth-side li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.auth-side li .icon {
  color: var(--ok);
  margin-top: 3px;
}

.auth-main {
  display: grid;
  place-items: center;
  padding: var(--s-5) var(--s-4);
}

.clay-auth-shell {
  width: min(450px, 100%);
  background: #ffffff;
  border: 2px solid rgba(255, 255, 255, .98);
  border-radius: 36px;
  padding: 26px 22px 22px;
  box-shadow: 0 28px 60px -14px rgba(24, 36, 56, .26), inset 0 6px 12px rgba(255, 255, 255, .98), inset 0 -6px 14px rgba(212, 196, 182, .22);
  text-align: center;
}

.clay-auth-head h1 {
  font-size: clamp(1.5rem, 1.2rem + .8vw, 1.95rem);
  color: var(--text);
}

.clay-auth-head p {
  color: var(--muted);
  margin-top: 4px;
  font-size: var(--fs-2);
}

.clay-mascot-wrap {
  width: 176px;
  margin: 6px auto -18px;
  position: relative;
  z-index: 4;
  pointer-events: none;
}

.clay-mascot-wrap img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 8px 16px rgba(32, 22, 18, .12));
}

.clay-form-card {
  position: relative;
  z-index: 3;
  background: #ffffff;
  border: 1.5px solid rgba(244, 236, 228, .95);
  border-radius: 28px;
  padding: 26px 20px 20px;
  text-align: left;
  box-shadow: 0 16px 36px -10px rgba(32, 22, 18, .16), inset 0 4px 10px #ffffff, inset 0 -5px 10px rgba(196, 176, 158, .18);
}

.clay-form-card label {
  margin-top: var(--s-3);
  font-size: .76rem;
  padding-left: 6px;
}

.clay-form-card label:first-of-type {
  margin-top: 0;
}

.clay-field {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface-2);
  border: 1.5px solid rgba(156, 132, 114, .18);
  border-radius: 999px;
  padding: 5px 8px 5px 6px;
  box-shadow: var(--clay-well);
  transition: border-color .15s, box-shadow .15s, background .15s;
}

.clay-field:focus-within {
  border-color: var(--accent);
  background: #fffdf9;
  box-shadow: 0 0 0 4px rgba(241, 90, 41, .16), var(--clay-well);
}

.clay-field-ico {
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, #a98ff8, #7c5ce6);
  box-shadow: 0 4px 10px -2px rgba(124, 92, 230, .38), inset 0 2px 4px rgba(255, 255, 255, .5);
}

.clay-field-ico.orange {
  background: linear-gradient(145deg, #ff8559, #f15a29);
  box-shadow: 0 4px 10px -2px rgba(241, 90, 41, .38), inset 0 2px 4px rgba(255, 255, 255, .5);
}

.clay-field-ico.mint {
  background: linear-gradient(145deg, #34d399, #0d9c68);
  box-shadow: 0 4px 10px -2px rgba(13, 156, 104, .35), inset 0 2px 4px rgba(255, 255, 255, .5);
}

.clay-field-ico .icon {
  width: 16px;
  height: 16px;
}

.clay-field input,
.clay-field.pw-wrap input {
  border: 0;
  background: transparent;
  box-shadow: none;
  min-height: 38px;
  padding: 6px 6px;
  border-radius: 0;
  color: var(--text);
  flex: 1 1 auto;
  min-width: 0;
}

.clay-field input:focus {
  border: 0;
  box-shadow: none;
  background: transparent;
}

.clay-field .pw-toggle {
  position: static;
  transform: none;
  flex: none;
  min-height: 36px;
  margin-left: 2px;
}

.clay-form-card .btn {
  width: 100%;
  margin-top: var(--s-4);
}

.clay-auth-trust {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: .68rem;
  font-weight: 700;
  color: var(--muted);
  text-align: center;
}

.clay-auth-trust span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.clay-auth-trust .icon {
  width: 15px;
  height: 15px;
  color: var(--lav-accent);
}

.auth-mobile-brand {
  display: none;
  margin-bottom: var(--s-3);
  justify-content: center;
}

/* legacy .auth-card support kept clean */
.auth-card {
  width: min(440px, 100%);
  background: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, .95);
  border-radius: 30px;
  padding: var(--s-6);
  box-shadow: var(--clay-card);
}

.auth-card h1 {
  font-size: var(--fs-5);
  margin-bottom: var(--s-2);
}

.auth-card .btn {
  width: 100%;
  margin-top: var(--s-5);
}

@media (max-width:1180px) {
  .cols-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width:1080px) {
  .hero-sky-canvas { padding:14px 0 56px; }
  .hero-stage { grid-template-columns:1fr; text-align:center; gap:var(--s-4); min-height:auto; }
  .hero-left { padding:0; text-align:center; }
  .cloud-img-left { width:min(280px,82vw); margin:0 auto; }
  .hero-center { margin:4px 0; }
  .hero-portal-wrap { width:min(240px,62vw); }
  .hero-right { text-align:center; padding:0; }
  .cloud-img-right { width:min(310px,88vw); margin:0 auto; }
  .sky-plane { display:none; }
  .sky-scatter { inset:0; display:flex; align-items:flex-end; justify-content:center; gap:10px; flex-wrap:wrap; padding-bottom:4px; }
  .sky-orb.orb-tl { width:44px; height:44px; border-radius:14px; top:6px; left:6px; }
  .sky-orb.orb-tl .tg-plane-svg { width:22px; height:22px; }
  .sky-orb.orb-br { width:42px; height:42px; border-radius:14px; top:6px; right:6px; bottom:auto; }
  .sky-orb.orb-br .tg-plane-svg { width:21px; height:21px; }
  .sky-glass-tag { position:static; }
  .hero-bottom-cta { align-items:flex-start; width:100%; }
}

@media (max-width:980px) {
  .bento {
    grid-template-columns: repeat(2, 1fr);
  }

  .tile.w3,
  .tile.w2,
  .tile.w4 {
    grid-column: span 2;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: var(--s-4);
  }

  .auth {
    grid-template-columns: 1fr;
  }

  .auth-side {
    display: none;
  }

  .auth-mobile-brand {
    display: flex;
  }
}

@media (max-width:860px) {
  .shell {
    display: block;
    padding: 0;
  }

  .side {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 40;
    width: min(304px, 86vw);
    height: 100vh;
    top: 0;
    border-radius: 0 28px 28px 0;
    transform: translateX(-104%);
    transition: transform .28s var(--ease-out);
  }

  .side-close {
    display: inline-flex;
  }

  body.nav-open {
    overflow: hidden;
  }

  body.nav-open .side {
    transform: none;
  }

  .scrim {
    position: fixed;
    inset: 0;
    z-index: 30;
    background: rgba(32, 22, 18, .48);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s;
  }

  body.nav-open .scrim {
    opacity: 1;
    pointer-events: auto;
  }

  .main {
    padding: 0 var(--s-3) 96px;
  }

  .top {
    position: sticky;
    top: 0;
    z-index: 20;
    margin: 0 calc(-1 * var(--s-3)) var(--s-4);
    padding: 10px var(--s-3);
    border-radius: 0 0 22px 22px;
    border-inline: 0;
    border-top: 0;
  }

  .top-bot {
    max-width: 130px;
  }

  .menu-btn {
    display: inline-flex;
  }

  .mob-dock {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    position: fixed;
    inset: auto 0 0 0;
    z-index: 25;
    background: rgba(255, 250, 244, .96);
    backdrop-filter: blur(16px);
    border-top: 1.5px solid rgba(255, 255, 255, .95);
    box-shadow: 0 -10px 28px rgba(24, 36, 56, .14);
    padding: 6px 6px calc(8px + env(safe-area-inset-bottom));
  }

  .dock-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-height: 50px;
    padding: 4px 2px;
    border-radius: 16px;
    color: var(--muted);
    font-size: .68rem;
    font-weight: 700;
    text-decoration: none;
  }

  .dock-item .icon {
    width: 18px;
    height: 18px;
  }

  .dock-item.on {
    color: #fff;
    background: linear-gradient(180deg, #ff7d51, #f15a29);
    box-shadow: 0 6px 14px -3px rgba(241, 90, 41, .42), inset 0 2px 4px rgba(255, 255, 255, .45);
  }
  .area-admin .dock-item.on { background:linear-gradient(180deg,#fbbf24,#d97706); }
  .dock-item.off { opacity:.42; cursor:not-allowed; }
  .row,.row3 { grid-template-columns:1fr; }
  .nav-top { top:10px; width:calc(100% - 20px); border-radius:22px; }
  .nav-top nav { display:none; }
  .nav-top-actions a.keep-mobile { display:inline-flex; align-items:center; min-height:44px; padding:0 var(--s-2); color:var(--text); font-weight:700; }
  .nav-top.nav-glass:not(.is-scrolled) .nav-top-actions a.keep-mobile { color:#fff; }
  .stat-band { grid-template-columns:1fr; }
  .btn.sm { min-height:44px; }
}

@media (max-width:560px) {
  .wrap { width:min(100% - 20px,1260px); }
  .nav-top .wrap { padding:0 12px; gap:var(--s-2); }
  .nav-top .brand { font-size:.94rem; padding:4px 0; }
  .bento { grid-template-columns:1fr; }
  .tile.w3,.tile.w2,.tile.w4 { grid-column:auto; }
  .card { padding:var(--s-4); border-radius:22px; }
  .clay-auth-shell { padding:20px 14px 16px; border-radius:28px; }
  .clay-form-card { padding:22px 14px 18px; border-radius:22px; }
  .clay-mascot-wrap { width:146px; margin:4px auto -15px; }
  .clay-auth-trust { grid-template-columns:repeat(2,1fr); gap:10px; }
  .grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .stat { padding:var(--s-3) var(--s-4); border-radius:20px; }
  .hero-bottom-bar { padding:var(--s-4); border-radius:24px; }
  .hero-sky-canvas { padding:8px 0 52px; }
  .cloud-img-left { width:min(235px,76vw); }
  .hero-portal-wrap { width:min(200px,56vw); }
  .cloud-img-right { width:min(260px,84vw); }
  .sky-orb.orb-tl,.sky-orb.orb-br { width:38px; height:38px; border-radius:12px; }
  .sky-orb.orb-tl .tg-plane-svg,.sky-orb.orb-br .tg-plane-svg { width:19px; height:19px; }
  .sky-glass-tag { padding:6px 12px; font-size:.72rem; }
  .cta { width:100%; }
  .cta .btn { width:100%; }
  .inline-form > div { flex:1 1 100%; }
  .inline-form .btn { width:100%; }
  .plan-banner-btn { width:100%; }
  .site-foot .wrap { justify-content:center; text-align:center; }
  .btn { white-space:normal; text-align:center; line-height:1.25; }
  th,td { padding:9px 10px; font-size:.82rem; }
}

@media (max-width:380px) {
  .grid { grid-template-columns:1fr; }
  .btn-grid-2 { grid-template-columns:1fr; }
  .btn { padding:0 var(--s-4); }
  .nav-top .brand { font-size:.88rem; gap:7px; }
  .nav-top .brand-mark { width:28px; height:28px; }
  .nav-top-actions .btn.sm { padding:0 12px; font-size:.74rem; }
  .tabs a { flex:1 1 auto; justify-content:center; }
}

/* ---- 404 page (mobile-first clay sky) ---- */
body.area-404 {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

.err404-nav {
  width: min(100% - 24px, 980px);
  margin: 14px auto 0;
  padding: 8px 10px 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  background: rgba(255, 250, 243, .92);
  backdrop-filter: blur(14px);
  border: 1.5px solid rgba(255, 255, 255, .95);
  border-radius: 999px;
  box-shadow: var(--clay-sm);
}

.err404-nav .brand {
  padding: 4px 0;
  font-size: 1rem;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.err404-nav .btn.sm {
  min-height: 44px;
  padding: 0 16px;
  flex: none;
}

.err404-main {
  flex: 1 0 auto;
  display: grid;
  place-items: center;
  padding: var(--s-5) var(--s-4);
}

.err404-stage {
  width: min(540px, 100%);
  text-align: center;
}

.err404-mascot {
  width: 136px;
  margin: 0 auto -20px;
  position: relative;
  z-index: 4;
  pointer-events: none;
}

.err404-mascot img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 18px rgba(32, 22, 18, .15));
}

.err404-card {
  position: relative;
  z-index: 3;
  background: #ffffff;
  border: 2px solid rgba(255, 255, 255, .98);
  border-radius: 34px;
  padding: 32px 26px 26px;
  box-shadow: 0 28px 60px -14px rgba(24, 36, 56, .26), inset 0 6px 12px rgba(255, 255, 255, .98), inset 0 -6px 14px rgba(212, 196, 182, .22);
}

.err404-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, #fff2e8, #ffe2d3);
  border: 1.5px solid rgba(255, 255, 255, .95);
  color: #a8330d;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  box-shadow: 0 4px 10px -4px rgba(241, 90, 41, .32), inset 0 2px 3px rgba(255, 255, 255, .9);
}

.err404-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(241, 90, 41, .22);
}

.err404-code {
  margin: 10px 0 4px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(4.2rem, 15vw, 6.4rem);
  line-height: .94;
  letter-spacing: -.05em;
  background: linear-gradient(155deg, #2b1e1a 15%, #f15a29 58%, #7c5ce6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  user-select: none;
}

.err404-card h1 {
  font-size: clamp(1.32rem, 1.05rem + 1vw, 1.75rem);
  margin-bottom: 8px;
}

.err404-desc {
  color: var(--muted);
  font-size: var(--fs-2);
  max-width: 36ch;
  margin: 0 auto;
}

.err404-path {
  margin: 16px auto 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 8px 14px;
  border-radius: 16px;
  background: var(--surface-2);
  border: 1.5px solid rgba(156, 132, 114, .2);
  box-shadow: var(--clay-well);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: .78rem;
  overflow-wrap: anywhere;
  word-break: break-word;
  text-align: left;
}

.err404-path .icon {
  color: var(--accent);
  flex: none;
  width: 15px;
  height: 15px;
}

.err404-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.err404-actions .btn {
  width: 100%;
  min-height: 48px;
  padding: 0 var(--s-4);
}

.err404-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  text-align: left;
}

.err404-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 9px 12px;
  border-radius: 18px;
  background: var(--surface);
  border: 1.5px solid rgba(255, 255, 255, .95);
  color: var(--text);
  font-size: .84rem;
  font-weight: 700;
  box-shadow: 0 6px 14px -8px rgba(24, 36, 56, .18), inset 0 2px 4px rgba(255, 255, 255, .95);
  transition: transform .15s var(--ease-out), box-shadow .15s var(--ease-out), background .15s;
}

.err404-link:hover {
  transform: translateY(-2px);
  color: var(--text);
  background: #ffffff;
  box-shadow: 0 10px 20px -8px rgba(24, 36, 56, .22), inset 0 2px 5px #ffffff;
}

.err404-link-ico {
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--clay-lav);
  color: #5b3fd6;
}

.err404-link-ico.orange {
  background: #ffe3d6;
  color: #c94318;
}

.err404-link-ico.mint {
  background: var(--clay-mint);
  color: #0b6e49;
}

.err404-link-ico.sky {
  background: var(--clay-sky);
  color: #1d5e94;
}

.err404-link-ico .icon {
  width: 16px;
  height: 16px;
}

.err404-foot {
  width: fit-content;
  max-width: calc(100% - 24px);
  margin: 0 auto 16px;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(255, 250, 243, .86);
  border: 1.5px solid rgba(255, 255, 255, .95);
  backdrop-filter: blur(10px);
  box-shadow: var(--clay-sm);
  text-align: center;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 600;
}

@media (max-width:560px) {
  .err404-nav {
    width: calc(100% - 20px);
    margin-top: 10px;
    padding: 6px 8px 6px 14px;
  }

  .err404-main {
    padding: var(--s-4) 12px var(--s-5);
  }

  .err404-mascot {
    width: 110px;
    margin-bottom: -16px;
  }

  .err404-card {
    padding: 26px 16px 20px;
    border-radius: 26px;
  }

  .err404-actions {
    grid-template-columns: 1fr;
  }

  .err404-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .err404-link {
    padding: 8px 10px;
    font-size: .8rem;
    gap: 8px;
  }

  .err404-link-ico {
    width: 28px;
    height: 28px;
    border-radius: 9px;
  }
}

@media (max-width:359px) {
  .err404-links {
    grid-template-columns: 1fr;
  }
}

/* ---- Manual USDT Payments, Checkout & Multi-Duration Switch ---- */
.nav-badge {
  margin-left: auto;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 800;
  line-height: 1.2;
  background: linear-gradient(180deg, #fbbf24, #d97706);
  color: #fff;
  box-shadow: 0 3px 8px -2px rgba(217, 119, 6, .45);
}

.pay-alert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  flex-wrap: wrap;
  background: linear-gradient(160deg, #fff4db, #ffe3ad);
  border: 1.5px solid rgba(255, 255, 255, .95);
  color: #783804;
  border-radius: 22px;
  padding: 14px 18px;
  margin-bottom: var(--s-4);
  box-shadow: var(--clay-sm);
  font-weight: 600;
}

.dur-switch {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 5px;
  background: var(--surface-2);
  border: 1.5px solid rgba(156, 132, 114, .22);
  border-radius: 999px;
  box-shadow: var(--clay-well);
  max-width: 100%;
}

.dur-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: 700 var(--fs-1)/1 var(--font-display);
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s, color .15s, box-shadow .15s;
}

.dur-btn:hover {
  color: var(--text);
}

.dur-btn.on {
  background: linear-gradient(180deg, #ff7d51, #f15a29);
  color: #fff;
  box-shadow: 0 6px 14px -4px rgba(232, 78, 28, .45), inset 0 2px 4px rgba(255, 255, 255, .45);
}

.plan-save {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 800;
  background: var(--clay-mint);
  color: #0b5f3f;
  vertical-align: middle;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 1.12fr;
  gap: var(--s-5);
  align-items: start;
}

.pay-amount-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  background: var(--surface-2);
  border: 1.5px solid rgba(156, 132, 114, .22);
  border-radius: 22px;
  padding: 16px 18px;
  margin: var(--s-3) 0;
  box-shadow: var(--clay-well);
}

.pay-amount-num {
  font: 800 clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem)/1.1 var(--font-display);
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

@media (max-width:960px) {
  .checkout-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width:560px) {
  .dur-switch {
    width: 100%;
    border-radius: 20px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dur-btn {
    min-height: 44px;
    width: 100%;
  }

  .pay-alert .btn {
    width: 100%;
  }

  .sub-meta-row>*:last-child {
    text-align: left !important;
  }
}

.sub-hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--s-4);
  align-items: center;
  background: var(--surface-2);
  border: 1.5px solid rgba(255, 255, 255, .95);
  border-radius: 22px;
  padding: var(--s-4);
  margin-top: var(--s-3);
  box-shadow: var(--clay-well);
}

.sub-hero.expired {
  background: linear-gradient(160deg, #fff3f6, #ffe7ed);
  border-color: rgba(220, 32, 73, .25);
}

.sub-meta-list {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.sub-meta-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 12px;
  font-size: .88rem;
  padding-bottom: 6px;
  border-bottom: 1px dashed rgba(43, 30, 26, .1);
}

.sub-meta-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.countdown-box {
  background: linear-gradient(155deg, #fffdfa, #f5ece1);
  border: 1.5px solid rgba(255, 255, 255, .95);
  border-radius: 18px;
  padding: 14px;
  box-shadow: var(--clay-sm);
  min-width: 0;
}

.cd-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.cd-title {
  font: 800 .72rem/1 var(--font-display);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

.cd-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.cd-cell {
  background: var(--surface-2);
  border: 1px solid rgba(156, 132, 114, .18);
  border-radius: 14px;
  padding: 9px 4px;
  text-align: center;
}

.cd-val {
  display: block;
  font: 800 clamp(1.05rem, .95rem + .6vw, 1.35rem)/1.1 var(--font-display);
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.cd-lbl {
  display: block;
  margin-top: 3px;
  font: 700 .64rem/1 var(--font-display);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}

.cd-sub {
  margin-top: 10px;
  font-size: .78rem;
  color: var(--muted);
  text-align: center;
}

.plan-term-meta {
  background: rgba(43, 30, 26, .045);
  border: 1px solid rgba(43, 30, 26, .08);
  border-radius: 16px;
  padding: 10px 12px;
  margin: var(--s-3) 0 var(--s-4);
  display: grid;
  gap: 6px;
  font-size: .8rem;
}

.plan-term-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 10px;
}

.plan.featured .plan-term-meta {
  background: rgba(16, 8, 44, .22);
  border-color: rgba(255, 255, 255, .28);
  color: #fff;
}

.plan.featured .plan-term-meta .muted {
  color: rgba(255, 255, 255, .86);
}

.billing-guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-3);
  margin-top: var(--s-3);
}

.billing-guide-step {
  background: var(--surface-2);
  border: 1.5px solid rgba(255, 255, 255, .95);
  border-radius: 18px;
  padding: var(--s-4);
  box-shadow: var(--clay-well);
}

.billing-guide-step h4 {
  margin: 0 0 6px;
  font-size: .95rem;
}

.billing-guide-step p {
  margin: 0;
  font-size: .82rem;
  color: var(--muted);
  line-height: 1.45;
}

@media (max-width:960px) {
  .sub-hero {
    grid-template-columns: 1fr;
  }

  .billing-guide-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width:420px) {
  .cd-grid {
    gap: 5px;
  }

  .cd-cell {
    padding: 8px 2px;
    border-radius: 11px;
  }
}

.bc-tier-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-3);
  margin-top: var(--s-3);
}

.bc-tier-box {
  background: var(--surface-2);
  border: 1.5px solid rgba(255, 255, 255, .95);
  border-radius: 18px;
  padding: 12px;
  display: grid;
  gap: 8px;
  min-width: 0;
  align-content: start;
}

.bc-pick-list {
  max-height: 250px;
  overflow-y: auto;
  display: grid;
  gap: 6px;
  padding-right: 2px;
}

.bc-pick-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(43, 30, 26, .04);
  cursor: pointer;
  font-size: .82rem;
}

.bc-pick-item input[type=checkbox] {
  width: 18px;
  height: 18px;
  flex: none;
  margin-top: 2px;
  accent-color: var(--accent);
}

.bc-dropzone {
  border: 2px dashed rgba(156, 132, 114, .38);
  border-radius: 18px;
  padding: 16px;
  text-align: center;
  background: var(--surface-2);
  cursor: pointer;
  transition: border-color .15s, background .15s;
}

.bc-dropzone:hover,
.bc-dropzone.over {
  border-color: var(--accent);
  background: rgba(255, 125, 81, .06);
}

.bc-thumb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.bc-thumb {
  position: relative;
  aspect-ratio: 1/1;
  border-radius: 14px;
  overflow: hidden;
  border: 1.5px solid rgba(255, 255, 255, .95);
  box-shadow: var(--clay-sm);
  background: #fff;
}

.bc-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bc-thumb-idx {
  position: absolute;
  left: 6px;
  top: 6px;
  background: rgba(24, 20, 18, .78);
  color: #fff;
  font: 700 .68rem/1 var(--font-display);
  padding: 4px 7px;
  border-radius: 999px;
}

.bc-thumb-del {
  position: absolute;
  right: 5px;
  top: 5px;
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 999px;
  background: rgba(220, 32, 73, .92);
  color: #fff;
  font: 700 .82rem/1 sans-serif;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.bc-toolbar {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 6px 0 8px;
}

.bc-tag-btn {
  border: 1px solid rgba(156, 132, 114, .28);
  background: var(--surface-2);
  color: var(--text);
  border-radius: 10px;
  padding: 6px 10px;
  font: 700 .76rem/1 var(--font-display);
  cursor: pointer;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.bc-tag-btn:hover {
  border-color: var(--accent);
  color: var(--accent-deep);
}

.bc-btn-builder {
  display: grid;
  gap: 8px;
  margin-top: 6px;
}

.bc-btn-row {
  display: grid;
  gap: 6px;
  padding: 10px;
  border-radius: 14px;
  background: rgba(43, 30, 26, .04);
  border: 1px solid rgba(43, 30, 26, .06);
}

.bc-btn-pair {
  display: grid;
  grid-template-columns: 1fr 1.35fr auto;
  gap: 6px;
  align-items: center;
}

@media (max-width:860px) {
  .bc-tier-split {
    grid-template-columns: 1fr;
  }
}

@media (max-width:560px) {
  .bc-tag-btn {
    min-height: 44px;
    padding: 0 12px;
  }

  .bc-btn-pair {
    grid-template-columns: 1fr;
  }
}

.wlc-grid {
  display: grid;
  grid-template-columns: 1.25fr .95fr;
  gap: var(--s-4);
  align-items: start;
  margin-top: var(--s-3);
}

.wlc-btn-list {
  display: grid;
  gap: 12px;
  margin-top: 10px;
}

.wlc-row-card {
  background: var(--surface-2);
  border: 1.5px solid rgba(255, 255, 255, .95);
  border-radius: 18px;
  padding: 12px;
  box-shadow: var(--clay-well);
  display: grid;
  gap: 10px;
}

.wlc-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px dashed rgba(43, 30, 26, .12);
}

.wlc-row-head select {
  width: auto;
  min-width: 130px;
  min-height: 38px;
  padding: 4px 10px;
  font-size: .82rem;
}

.wlc-line-items {
  display: grid;
  gap: 8px;
}

.wlc-btn-slot {
  background: rgba(43, 30, 26, .04);
  border: 1px solid rgba(43, 30, 26, .08);
  border-radius: 14px;
  padding: 10px;
  display: grid;
  gap: 8px;
  transition: opacity .15s;
}

.wlc-btn-slot.is-hidden {
  opacity: .55;
}

.wlc-btn-inputs {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 8px;
}

.wlc-btn-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.wlc-btn-controls select {
  width: auto;
  min-width: 110px;
  min-height: 38px;
  padding: 4px 10px;
  font-size: .82rem;
}

.tg-preview-card {
  background: linear-gradient(155deg, #e5efe2, #d6e7d4);
  border: 1.5px solid rgba(255, 255, 255, .95);
  border-radius: 20px;
  padding: 14px;
  box-shadow: var(--clay-sm);
  position: sticky;
  top: 16px;
}

.tg-chat-screen {
  display: grid;
  gap: 8px;
}

.tg-msg-block {
  display: grid;
  gap: 4px;
}

.tg-bubble {
  background: #ffffff;
  color: #1f2328;
  border-radius: 16px 16px 16px 6px;
  padding: 11px 14px;
  font-size: .84rem;
  line-height: 1.48;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
  word-break: break-word;
}

.tg-bubble a {
  color: #2372c7;
  text-decoration: underline;
}

.tg-kbd {
  display: grid;
  gap: 4px;
}

.tg-kbd-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 4px;
}

.tg-kbd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(34, 54, 74, .62);
  color: #fff;
  font: 700 .78rem/1.15 var(--font-text);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width:960px) {
  .wlc-grid {
    grid-template-columns: 1fr;
  }

  .tg-preview-card {
    position: static;
  }
}

@media (max-width:560px) {
  .wlc-btn-inputs {
    grid-template-columns: 1fr;
  }

  .wlc-row-head select,
  .wlc-btn-controls select {
    min-height: 44px;
    flex: 1 1 130px;
  }
}

@media (prefers-reduced-motion:reduce) {

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}