:root,
[data-theme="light"] {
  --space: #f4f7fb;
  --obsidian: #e6edf6;
  --canvas-a: #f4f7fb;
  --canvas-b: #dfe9f6;
  --glass: rgba(255, 255, 255, 0.78);
  --glass-strong: rgba(255, 255, 255, 0.92);
  --glass-hover: rgba(17, 214, 253, 0.1);
  --ink: #152033;
  --ink-soft: #5b6b82;
  --ink-on-accent: #041018;
  --rule: rgba(32, 80, 140, 0.12);
  --rule-strong: rgba(17, 214, 253, 0.4);
  --cyan: #0891b2;
  --cyan-bright: #11d6fd;
  --blue: #2563eb;
  --neon-green: #22c55e;
  --pink: #db2777;
  --amber: #d97706;
  --warn: #e11d48;
  --warn-soft: #ffe4ea;
  --ok: #059669;
  --ok-soft: #d1fae5;
  --link-hover: #c026d3;
  --side: 260px;
  --radius: 16px;
  --radius-sm: 12px;
  --blur: 18px;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --display: "Rajdhani", "Inter", sans-serif;
  --mono: "Space Mono", ui-monospace, monospace;
  --glow-cyan: 0 0 18px rgba(17, 214, 253, 0.3);
  --glow-soft: 0 0 22px rgba(37, 99, 235, 0.14);
  --glass-border: 1px solid rgba(255, 255, 255, 0.85);
  --glass-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 16px 40px -24px rgba(40, 70, 120, 0.32);
  --glass-fallback: #ffffff;
  --elevated: #ffffff;
  --mesh-blob-opacity: 0.55;
  --mesh-glow-a: rgba(17, 214, 253, 0.28);
  --mesh-glow-b: rgba(37, 99, 235, 0.16);
  --mesh-glow-c: rgba(219, 39, 119, 0.1);
  --row-hover: rgba(17, 214, 253, 0.07);
  --nav-active-bg: linear-gradient(90deg, rgba(17, 214, 253, 0.16), rgba(37, 99, 235, 0.06));
  --stat-num-glow: none;
  --beam-a: #11d6fd;
  --beam-b: #2563eb;
  --kicker-glow: 0 0 14px rgba(17, 214, 253, 0.35);
  --input-bg: #ffffff;
  --input-border: #c8d4e6;
  --input-border-hover: #9eb4d4;
  --input-placeholder: #8a9bb3;
  --input-shadow: 0 1px 2px rgba(21, 32, 51, 0.04);
  --side-bg: rgba(255, 255, 255, 0.82);
  --color-scheme: light;
}

[data-theme="dark"] {
  --space: #0a0e17;
  --obsidian: #050505;
  --canvas-a: #0a0e17;
  --canvas-b: #050505;
  --glass: rgba(255, 255, 255, 0.05);
  --glass-strong: rgba(255, 255, 255, 0.08);
  --glass-hover: rgba(255, 255, 255, 0.1);
  --ink: #f0f6fc;
  --ink-soft: #9aa8bc;
  --ink-on-accent: #041018;
  --rule: rgba(255, 255, 255, 0.1);
  --rule-strong: rgba(0, 255, 255, 0.32);
  --cyan: #00ffff;
  --cyan-bright: #00ffff;
  --blue: #2080ff;
  --neon-green: #39ff14;
  --pink: #ff2d95;
  --amber: #ffb020;
  --warn: #ff2d95;
  --warn-soft: rgba(255, 45, 149, 0.12);
  --ok: #39ff14;
  --ok-soft: rgba(57, 255, 20, 0.1);
  --link-hover: #7fffff;
  --side: 260px;
  --glow-cyan: 0 0 20px rgba(0, 255, 255, 0.4);
  --glow-soft: 0 0 26px rgba(32, 128, 255, 0.2);
  --glass-border: 1px solid rgba(255, 255, 255, 0.1);
  --glass-shadow:
    inset 0 1px 0 rgba(0, 255, 255, 0.08),
    0 14px 42px -20px rgba(0, 0, 0, 0.7);
  --glass-fallback: #0c121c;
  --elevated: rgba(12, 18, 28, 0.96);
  --mesh-blob-opacity: 0.4;
  --mesh-glow-a: rgba(0, 255, 255, 0.09);
  --mesh-glow-b: rgba(32, 128, 255, 0.1);
  --mesh-glow-c: rgba(255, 45, 149, 0.06);
  --row-hover: rgba(0, 255, 255, 0.05);
  --nav-active-bg: linear-gradient(90deg, rgba(0, 255, 255, 0.12), rgba(32, 128, 255, 0.05));
  --stat-num-glow: 0 0 18px rgba(0, 255, 255, 0.22);
  --beam-a: #00ffff;
  --beam-b: #2080ff;
  --kicker-glow: 0 0 14px rgba(0, 255, 255, 0.45);
  --input-bg: rgba(255, 255, 255, 0.08);
  --input-border: rgba(255, 255, 255, 0.22);
  --input-border-hover: rgba(0, 255, 255, 0.45);
  --input-placeholder: #7d8da3;
  --input-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  --side-bg: rgba(10, 14, 23, 0.72);
  --color-scheme: dark;
}

*,
*::before,
*::after { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; }
html { color-scheme: var(--color-scheme); }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: linear-gradient(135deg, var(--canvas-a) 0%, var(--canvas-b) 100%);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--cyan); text-decoration: none; }
a:hover { color: var(--link-hover); text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }

.skip { position: absolute; left: -999px; top: 8px; }
.skip:focus {
  left: 8px; z-index: 40;
  background: var(--glass-fallback); padding: 8px 12px;
  border-radius: var(--radius-sm); border: 1px solid var(--rule-strong);
  color: var(--ink);
}

.kicker {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  margin: 0 0 8px;
  font-weight: 600;
  text-shadow: var(--kicker-glow);
}

.kicker-space { margin-top: 36px; }
.muted { color: var(--ink-soft); }
h1, h2, h3 {
  margin: 0; letter-spacing: -0.02em; font-weight: 650; color: var(--ink);
}
h1 {
  font-size: clamp(28px, 4.5vw, 44px);
  line-height: 1.08;
  font-family: var(--display);
  text-shadow: 0 0 28px rgba(0, 255, 255, 0.22);
}
h2 {
  font-size: 20px;
  font-family: var(--display);
  letter-spacing: 0.02em;
}
h3 { font-size: 15px; }

.glow-text {
  background: linear-gradient(120deg, var(--ink) 8%, var(--cyan-bright) 55%, var(--blue) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 10px rgba(17, 214, 253, 0.2));
}
[data-theme="dark"] .glow-text {
  filter: drop-shadow(0 0 10px rgba(0, 255, 255, 0.25));
}

.mark {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: var(--glass);
  border: 1px solid rgba(0, 255, 255, 0.28);
  color: var(--cyan);
  border-radius: 10px;
  box-shadow: inset 0 0 12px rgba(0, 255, 255, 0.08), var(--glow-soft);
  position: relative;
  flex-shrink: 0;
}
.mark svg { width: 16px; height: 16px; }
.mark.ring::after {
  content: "";
  position: absolute;
  inset: -5px;
  border: 1px solid rgba(0, 255, 255, 0.3);
  border-radius: 50%;
  animation: spin 12s linear infinite;
  clip-path: inset(0 0 55% 0);
}

.brand-name {
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 11px;
  color: var(--ink);
}

/* orbital / mesh backdrop */
.mesh {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: linear-gradient(135deg, var(--canvas-a) 0%, var(--canvas-b) 100%);
}
.mesh::before {
  content: "";
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(ellipse 50% 40% at 15% 20%, var(--mesh-glow-a), transparent 55%),
    radial-gradient(ellipse 45% 35% at 85% 30%, var(--mesh-glow-b), transparent 50%),
    radial-gradient(ellipse 40% 30% at 50% 90%, var(--mesh-glow-c), transparent 50%);
  animation: meshDrift 28s ease-in-out infinite alternate;
}
.mesh-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: var(--mesh-blob-opacity);
  animation: meshDrift 22s ease-in-out infinite alternate;
}
.mesh-blob.b1 {
  width: 420px; height: 420px;
  top: -100px; left: -60px;
  background: radial-gradient(circle, rgba(0, 255, 255, 0.35), transparent 70%);
}
.mesh-blob.b2 {
  width: 380px; height: 380px;
  top: 30%; right: -100px;
  background: radial-gradient(circle, rgba(32, 128, 255, 0.3), transparent 70%);
  animation-duration: 26s; animation-delay: -6s;
}
.mesh-blob.b3 {
  width: 340px; height: 340px;
  bottom: -80px; left: 40%;
  background: radial-gradient(circle, rgba(255, 45, 149, 0.15), transparent 70%);
  animation-duration: 30s; animation-delay: -10s;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .side, .stat, .panel, .tile, .auth-card, .desk, .inbox, .pop-panel,
  .profile-card, .top, .chat-pop {
    background: var(--glass-fallback) !important;
  }
}

/* auth — light frost only (never dark stage) */
.auth-body {
  --auth-display: "Syne", var(--display);
  --auth-sans: "DM Sans", var(--sans);
  --auth-ink: #0f1728;
  --auth-mute: #5b6b82;
  --auth-line: rgba(20, 40, 80, 0.12);
  --auth-surface: rgba(255, 255, 255, 0.88);
  font-family: var(--auth-sans);
  min-height: 100vh;
  color: var(--auth-ink);
  background: #f4f7fb;
}
.auth-stage {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(1000px 520px at 8% -10%, rgba(17, 214, 253, 0.2), transparent 55%),
    radial-gradient(900px 480px at 95% 0%, rgba(37, 99, 235, 0.12), transparent 50%),
    linear-gradient(180deg, #f7fafc 0%, #eef3f9 48%, #f8fafc 100%);
}
.auth-visual {
  position: absolute; inset: 0; z-index: 0;
  pointer-events: none;
}
.auth-visual-img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  opacity: 0.55;
  mix-blend-mode: multiply;
  transform: scale(1.03);
  animation: authKen 28s ease-in-out infinite alternate;
}
.auth-visual-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(105deg, rgba(247, 250, 252, 0.92) 0%, rgba(247, 250, 252, 0.72) 38%, rgba(238, 243, 249, 0.85) 100%),
    radial-gradient(900px 480px at 18% 20%, rgba(17, 214, 253, 0.16), transparent 60%);
}
.auth-visual-glow {
  position: absolute; inset: auto -8% -18% 45%;
  height: 50%;
  background: radial-gradient(closest-side, rgba(17, 214, 253, 0.22), transparent 70%);
  filter: blur(10px);
  animation: orbPulse 10s ease-in-out infinite;
}
.auth-stage.is-staff .auth-visual-shade {
  background:
    linear-gradient(105deg, rgba(247, 250, 252, 0.94) 0%, rgba(240, 245, 252, 0.78) 42%, rgba(236, 242, 250, 0.9) 100%),
    radial-gradient(800px 420px at 18% 18%, rgba(37, 99, 235, 0.12), transparent 60%);
}
@keyframes authKen {
  from { transform: scale(1.02) translate3d(0, 0, 0); }
  to { transform: scale(1.06) translate3d(-1%, -0.8%, 0); }
}

.auth-shell {
  position: relative; z-index: 2;
  width: min(1120px, calc(100% - 48px));
  max-width: 1120px;
  min-height: calc(100vh - 48px);
  margin: 24px auto;
  display: grid;
  grid-template-columns: minmax(280px, 1.05fr) minmax(340px, 0.95fr);
  align-items: stretch;
  border-radius: 24px;
  border: 1px solid var(--auth-line);
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 28px 60px -36px rgba(20, 50, 100, 0.35);
  overflow: hidden;
}
.auth-brand {
  display: flex; flex-direction: column; justify-content: space-between;
  gap: 28px;
  padding: clamp(28px, 4vw, 48px);
  color: var(--auth-ink);
}
.auth-logo {
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--auth-ink); text-decoration: none;
  font-family: var(--auth-display); font-weight: 700; font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.auth-logo:hover { color: #0891b2; text-decoration: none; }
.auth-eyebrow {
  margin: 0 0 12px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: #0891b2;
}
.auth-brand-copy h1 {
  margin: 0;
  font-family: var(--auth-display);
  font-size: clamp(2rem, 4.2vw, 3.15rem);
  line-height: 1.05; letter-spacing: -0.04em;
  color: var(--auth-ink);
  text-shadow: none;
  max-width: 14ch;
  animation: rise 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.auth-lede {
  margin: 16px 0 0;
  max-width: 40ch;
  color: var(--auth-mute);
  font-size: 1.05rem; line-height: 1.55;
}
.auth-products {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px;
  margin: 22px 0 0; max-width: 420px;
}
.auth-product {
  display: grid; gap: 4px; padding: 14px 14px 12px;
  border-radius: 14px; border: 1px solid var(--auth-line);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(8px);
}
.auth-product strong {
  font-size: 13px; font-weight: 800; letter-spacing: -0.01em;
}
.auth-product span {
  font-size: 12px; line-height: 1.4; color: var(--auth-mute); font-weight: 550;
}
.auth-product.is-temp {
  border-color: color-mix(in srgb, #d97706 35%, var(--auth-line));
  background: linear-gradient(165deg, #fffbeb 0%, rgba(255, 255, 255, 0.85) 70%);
}
.auth-product.is-temp strong { color: #b45309; }
.auth-product.is-rent {
  border-color: color-mix(in srgb, #0f766e 40%, var(--auth-line));
  background: linear-gradient(165deg, #ecfdf5 0%, rgba(255, 255, 255, 0.85) 70%);
}
.auth-product.is-rent strong { color: #0f766e; }
.auth-points {
  list-style: none; margin: 22px 0 0; padding: 0;
  display: grid; gap: 10px;
}
.auth-points li {
  position: relative; padding-left: 28px;
  color: var(--auth-ink);
  font-size: 14px; font-weight: 600;
}
.auth-points li::before {
  content: "";
  position: absolute; left: 0; top: 4px;
  width: 14px; height: 14px; border-radius: 50%;
  background: linear-gradient(135deg, #11d6fd, #1d4ed8);
  box-shadow: 0 0 0 4px rgba(17, 214, 253, 0.15);
}
.auth-foot-note {
  margin: 0; color: var(--auth-mute); font-size: 13px;
}
.auth-foot-note a { color: #0891b2; text-decoration: none; font-weight: 650; }
.auth-foot-note a:hover { color: #0e7490; }

.auth-panel {
  display: grid; place-items: center;
  padding: clamp(20px, 4vw, 40px);
}
.auth-card {
  width: min(440px, 100%);
  padding: clamp(26px, 3.2vw, 34px);
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--auth-line);
  box-shadow: 0 24px 50px -28px rgba(20, 50, 100, 0.28);
  position: relative;
  animation: rise 0.6s cubic-bezier(0.22, 1, 0.36, 1) both 0.05s;
}
.auth-form-head { margin-bottom: 22px; }
.auth-form-badge {
  display: inline-flex; align-items: center; margin: 0 0 10px;
  padding: 4px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 750; letter-spacing: 0.06em; text-transform: uppercase;
  color: #0f766e; background: rgba(15, 118, 110, 0.1);
}
.auth-form-head h2 {
  margin: 0 0 6px;
  font-family: var(--auth-display);
  font-size: 1.55rem; letter-spacing: -0.03em;
  color: var(--auth-ink);
}
.auth-form-head p { margin: 0; color: var(--auth-mute); font-size: 14px; line-height: 1.45; }
.auth-form-head p strong { color: var(--auth-ink); font-weight: 700; }
.auth-after { margin-top: 18px; }
.auth-mini-pills {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px;
}
.auth-mini-pills span {
  font-size: 11.5px; font-weight: 750; padding: 5px 10px; border-radius: 999px;
  border: 1px solid var(--auth-line);
}
.auth-mini-pills .is-temp { color: #b45309; background: #fffbeb; border-color: #fcd34d; }
.auth-mini-pills .is-rent { color: #0f766e; background: #ecfdf5; border-color: #99f6e4; }
.auth-form { position: relative; z-index: 1; }
.auth-field { margin-bottom: 16px; }
.auth-field > label {
  display: block;
  margin-bottom: 7px;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0;
  text-transform: none !important;
  color: var(--auth-ink);
}
.auth-card .auth-input input,
.auth-card .auth-input.pw-wrap input {
  padding-left: 44px !important;
}
.auth-card .auth-input.pw-wrap input {
  padding-right: 78px !important;
}
.auth-input {
  position: relative;
  display: flex; align-items: center;
}
.auth-input-ico {
  position: absolute; left: 14px; z-index: 2;
  width: 18px; height: 18px; color: #7b8aa0;
  pointer-events: none;
}
.auth-input-ico svg { width: 18px; height: 18px; display: block; }
.auth-card .field input,
.auth-card .field select,
.auth-input input {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1.5px solid #d7dee8;
  background: #f8fafc;
  color: var(--auth-ink);
  font-size: 15px;
  box-shadow: none;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.auth-input input { padding-left: 44px; }
.auth-input.pw-wrap input { padding-right: 78px; }
.auth-card .field input:hover,
.auth-card .field select:hover,
.auth-input input:hover {
  border-color: #b8c4d4;
  background: #fff;
}
.auth-card .field input:focus,
.auth-card .field select:focus,
.auth-input input:focus {
  border-color: #11d6fd;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(17, 214, 253, 0.16);
  transform: none;
  outline: none;
}
.auth-card .pw-wrap [data-pw] {
  right: 10px;
  border: 0;
  background: transparent;
  color: #0891b2;
  font-weight: 700;
  padding: 6px 8px;
}
.auth-card .pw-wrap [data-pw]:hover {
  color: #0e7490;
  box-shadow: none;
}
.auth-split {
  display: grid; grid-template-columns: 118px 1fr; gap: 10px;
}
.auth-phone {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
}
.auth-dial {
  position: relative;
  min-width: 0;
}
.auth-dial select {
  width: 100%;
  min-height: 50px;
  padding: 12px 28px 12px 10px !important;
  border-radius: 12px;
  border: 1.5px solid #d7dee8;
  background: #f8fafc;
  color: var(--auth-ink);
  font-size: 13px;
  font-weight: 650;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  box-shadow: none;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.auth-dial select:hover {
  border-color: #b8c4d4;
  background: #fff;
}
.auth-dial select:focus {
  border-color: #11d6fd;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(17, 214, 253, 0.16);
  outline: none;
}
.auth-dial-chevron {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  color: #7b8aa0;
  pointer-events: none;
}
.auth-dial-chevron svg { width: 14px; height: 14px; display: block; }
.auth-phone > input {
  min-width: 0;
  width: 100%;
}
.auth-submit {
  margin-top: 8px;
  min-height: 50px;
  border-radius: 12px;
  font-size: 15px;
  color: #041018;
  background: linear-gradient(135deg, #11d6fd, #1d4ed8);
  box-shadow: 0 14px 28px -16px rgba(8, 145, 178, 0.65);
}
.auth-links {
  display: flex; justify-content: space-between; gap: 12px;
  margin-top: 16px; font-size: 13px;
}
.auth-links a { color: #0891b2; font-weight: 650; text-decoration: none; }
.auth-links a:hover { color: #0e7490; }
.auth-links .muted { color: var(--auth-mute); }
.gate-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.auth-stage .theme-btn-float {
  background: #fff;
  border: 1px solid var(--auth-line);
  color: var(--auth-ink);
  box-shadow: 0 8px 20px -12px rgba(20, 50, 100, 0.35);
}
.auth-stage .theme-btn-float:hover {
  background: #f8fafc;
  color: #0891b2;
}
/* legacy auth stage bits kept for any residual markup */
.stage {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--canvas-a), var(--canvas-b));
}
.fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0.45; }
.aurora { position: absolute; filter: blur(50px); opacity: 0.35; animation: drift 20s ease-in-out infinite alternate; }
.a1 { width: 380px; height: 380px; left: -70px; top: 12%; background: #00ffff; }
.a2 { width: 320px; height: 320px; right: -50px; top: 28%; background: #2080ff; animation-duration: 24s; }
.a3 { width: 260px; height: 260px; left: 32%; bottom: -60px; background: #0891b2; animation-duration: 18s; opacity: 0.25; }
.orbits { position: absolute; width: 480px; height: 480px; left: 6%; top: 20%; pointer-events: none; }
.orbits span {
  position: absolute; inset: 0;
  border: 1px solid rgba(0, 255, 255, 0.12);
  border-radius: 50%;
  animation: spin 30s linear infinite;
}
.orbits span:nth-child(2) { inset: 36px; animation-duration: 20s; animation-direction: reverse; border-color: rgba(32, 128, 255, 0.14); }
.orbits span:nth-child(3) { inset: 80px; animation-duration: 14s; }
.auth-wrap {
  position: relative; z-index: 2; min-height: 100vh;
  display: grid; grid-template-columns: minmax(280px, 1fr) minmax(360px, 0.9fr);
}
.auth-aside { padding: 48px 40px; display: flex; flex-direction: column; justify-content: space-between; }
.auth-aside p { max-width: 38ch; color: var(--ink-soft); font-size: 15px; }
.auth-main { display: grid; place-items: center; padding: 32px 20px; }
.auth-card.holo { overflow: hidden; }
.holo-edge {
  position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: linear-gradient(135deg, rgba(0, 255, 255, 0.12), transparent 40%, transparent 60%, rgba(32, 128, 255, 0.1));
  opacity: 0.6;
}

.field { margin-bottom: 16px; position: relative; z-index: 1; }
.field label {
  display: block; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: 8px; font-weight: 700;
}
.field input:not([type="checkbox"]):not([type="radio"]),
.field select,
.field textarea,
.filter-bar input:not([type="checkbox"]):not([type="radio"]),
.filter-bar select,
.desk-foot input[type="text"],
.inbox-search input,
.inbox-tools select,
table select,
table input:not([type="checkbox"]):not([type="radio"]) {
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--input-border);
  background: var(--input-bg);
  color: var(--ink);
  outline: none;
  box-shadow: var(--input-shadow);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, transform 0.2s ease;
}
.field select,
.filter-bar select,
.inbox-tools select,
table select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--ink-soft) 50%),
    linear-gradient(135deg, var(--ink-soft) 50%, transparent 50%);
  background-position: calc(100% - 16px) calc(50% - 2px), calc(100% - 11px) calc(50% - 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 34px;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder,
.filter-bar input::placeholder {
  color: var(--input-placeholder);
  opacity: 1;
}
.field input:not([type="checkbox"]):not([type="radio"]):hover,
.field select:hover,
.field textarea:hover,
.filter-bar input:not([type="checkbox"]):not([type="radio"]):hover,
.filter-bar select:hover {
  border-color: var(--input-border-hover);
}
.field input:not([type="checkbox"]):not([type="radio"]):focus,
.field select:focus,
.field textarea:focus,
.filter-bar input:not([type="checkbox"]):not([type="radio"]):focus,
.filter-bar select:focus,
.desk-foot input[type="text"]:focus,
.inbox-search input:focus {
  border-color: var(--cyan-bright);
  box-shadow: 0 0 0 4px rgba(17, 214, 253, 0.18), var(--glow-cyan);
  background: var(--input-bg);
  transform: translateY(-1px);
}
[data-theme="dark"] .field input:not([type="checkbox"]):not([type="radio"]):focus,
[data-theme="dark"] .field select:focus,
[data-theme="dark"] .field textarea:focus,
[data-theme="dark"] .filter-bar input:not([type="checkbox"]):not([type="radio"]):focus,
[data-theme="dark"] .filter-bar select:focus {
  box-shadow: 0 0 0 4px rgba(0, 255, 255, 0.15), var(--glow-cyan);
}
.field input[type="file"] {
  min-height: 0;
  padding: 12px 14px;
  cursor: pointer;
}
/* Keep checkboxes/radios compact — text-input rules above inflate them */
.field input[type="checkbox"],
.field input[type="radio"],
.filter-bar input[type="checkbox"],
.filter-bar input[type="radio"],
table input[type="checkbox"],
table input[type="radio"],
.sms-check-row input[type="checkbox"],
.sms-check-inline input[type="checkbox"],
.sms-server-row input[type="checkbox"],
.check-line input[type="checkbox"],
.inline-checks input[type="checkbox"],
label input[type="checkbox"],
label input[type="radio"] {
  -webkit-appearance: auto;
  appearance: auto;
  width: 14px;
  height: 14px;
  min-width: 14px;
  min-height: 14px;
  max-width: 14px;
  max-height: 14px;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 3px;
  box-shadow: none;
  background: transparent;
  transform: none;
  accent-color: var(--cyan-bright, #11d6fd);
  flex: 0 0 14px;
  cursor: pointer;
  vertical-align: middle;
}
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 72px; }
.pw-wrap [data-pw] {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  border: 1px solid var(--input-border); background: var(--glass);
  color: var(--ink-soft); cursor: pointer; font-size: 12px; font-weight: 600;
  border-radius: 8px; padding: 6px 10px; min-height: 0;
  transition: color 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.pw-wrap [data-pw]:hover {
  color: var(--cyan); border-color: var(--rule-strong); box-shadow: var(--glow-cyan);
}
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 18px; border: 0; border-radius: 12px;
  cursor: pointer; font-weight: 700; color: var(--ink-on-accent);
  background: linear-gradient(135deg, var(--cyan-bright), var(--blue));
  background-size: 160% 160%;
  box-shadow: var(--glow-cyan);
  position: relative; overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
}
.btn::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.35) 50%, transparent 60%);
  transform: translateX(-120%);
  animation: btnShine 3.6s ease-in-out infinite;
  pointer-events: none;
}
.btn:hover {
  transform: translateY(-2px) scale(1.02);
  filter: brightness(1.06);
  text-decoration: none; color: var(--ink-on-accent);
  box-shadow: 0 0 30px rgba(17, 214, 253, 0.4), 0 10px 26px rgba(37, 99, 235, 0.25);
}
.btn-ghost::after { display: none; }
.btn:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-block { width: 100%; margin-top: 6px; }
.btn-ghost {
  background: var(--input-bg);
  color: var(--cyan);
  box-shadow: none;
  border: 1.5px solid var(--rule-strong);
}
.btn-ghost:hover {
  background: rgba(17, 214, 253, 0.1);
  color: var(--cyan);
  box-shadow: var(--glow-cyan);
}
.btn-danger {
  background: linear-gradient(135deg, #ff2d95, #ff4d6d);
  color: #fff;
  box-shadow: 0 0 18px rgba(255, 45, 149, 0.35);
}
.btn-sm { min-height: 34px; padding: 0 12px; font-size: 13px; }

.alert {
  padding: 12px 14px;
  border: 1.5px solid rgba(225, 29, 72, 0.35);
  background: var(--warn-soft);
  color: var(--warn);
  border-radius: 12px;
  margin-bottom: 12px;
  font-size: 13px;
  position: relative; z-index: 1;
  animation: rise 0.4s ease both;
}
[data-theme="dark"] .alert {
  color: #ff8fc4;
  border-color: rgba(255, 45, 149, 0.35);
  box-shadow: 0 0 16px rgba(255, 45, 149, 0.12);
}
.alert-ok {
  border-color: rgba(5, 150, 105, 0.35);
  background: var(--ok-soft);
  color: var(--ok);
}
[data-theme="dark"] .alert-ok {
  border-color: rgba(57, 255, 20, 0.35);
  color: #9dff8a;
  box-shadow: 0 0 16px rgba(57, 255, 20, 0.12);
}

.auth-links {
  display: flex; justify-content: space-between; gap: 12px;
  margin-top: 14px; font-size: 13px; position: relative; z-index: 1;
}
.error-text { color: #ff8fc4; font-size: 12px; margin-top: 6px; }
.otp-boxes input {
  letter-spacing: 0.4em; font-size: 20px; text-align: center; font-family: var(--mono);
}

/* ── shell ── */
.shell-body {
  background: transparent;
  position: relative;
  overflow-x: hidden;
}

.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: var(--side) 1fr;
  position: relative;
  z-index: 1;
}

.side {
  background: var(--side-bg);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  border-right: 1px solid var(--rule-strong);
  box-shadow: 8px 0 32px -20px rgba(32, 80, 140, 0.25);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: sticky;
  top: 0;
  max-height: 100vh;
  overflow: hidden;
}
.side::before {
  content: "";
  position: absolute; inset: 0 auto 0 0; width: 2px;
  background: linear-gradient(180deg, transparent, var(--cyan-bright), var(--blue), transparent);
  opacity: 0.55; pointer-events: none;
  animation: sideBeam 4s ease-in-out infinite;
}

.side-brand {
  display: flex; align-items: center; gap: 12px;
  padding: 18px 16px;
  border-bottom: 1px solid var(--rule);
  flex-shrink: 0;
}
.side-brand .mark {
  width: 38px; height: 38px; border-radius: 12px;
  animation: markFloat 4s ease-in-out infinite;
}
.side-brand strong {
  display: block; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink); line-height: 1.25; font-weight: 800;
}
.side-brand span {
  display: block; font-size: 11px; color: var(--ink-soft); letter-spacing: 0.04em; margin-top: 2px;
}

.nav {
  padding: 12px 10px;
  display: grid;
  gap: 4px;
  flex: 1;
  overflow-y: auto;
  align-content: start;
}

.nav a,
.nav-drop-btn {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px;
  color: var(--ink-soft);
  border-radius: 14px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 550;
  border: 1px solid transparent;
  background: transparent;
  line-height: 1.25;
  min-height: 46px;
  transition: background 0.28s ease, color 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease, transform 0.28s ease;
}

.nav-ico {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  flex-shrink: 0;
  border-radius: 11px;
  background: linear-gradient(145deg, rgba(17, 214, 253, 0.14), rgba(37, 99, 235, 0.08));
  border: 1px solid rgba(17, 214, 253, 0.22);
  color: var(--cyan);
  opacity: 1;
  transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease, border-color 0.3s ease;
}
[data-theme="dark"] .nav-ico {
  background: linear-gradient(145deg, rgba(0, 255, 255, 0.1), rgba(32, 128, 255, 0.08));
  border-color: rgba(0, 255, 255, 0.2);
}
.nav-ico svg { width: 17px; height: 17px; display: block; }

.nav a:hover,
.nav-drop-btn:hover {
  background: var(--glass-hover);
  color: var(--ink);
  border-color: var(--rule);
  transform: translateX(3px);
}
.nav a:hover .nav-ico,
.nav-drop-btn:hover .nav-ico {
  transform: rotate(-8deg) scale(1.08);
  box-shadow: var(--glow-cyan);
  border-color: var(--rule-strong);
  animation: iconPulse 0.85s ease;
}

.nav a.is-on,
.nav-drop-btn.is-on {
  background: var(--nav-active-bg);
  color: var(--cyan);
  font-weight: 700;
  border-color: var(--rule-strong);
  box-shadow: inset 3px 0 0 var(--cyan-bright), 0 0 18px rgba(17, 214, 253, 0.1);
  animation: navPulse 3.2s ease-in-out infinite;
}
.nav a.is-on .nav-ico,
.nav-drop-btn.is-on .nav-ico {
  color: var(--cyan-bright);
  filter: drop-shadow(0 0 8px rgba(17, 214, 253, 0.55));
  box-shadow: var(--glow-cyan);
  border-color: var(--rule-strong);
}

.nav-drop { display: grid; gap: 2px; }
.nav-drop-btn { width: 100%; cursor: pointer; text-align: left; }
.nav-drop-btn .chev { margin-left: auto; transition: transform 0.25s ease; color: var(--ink-soft); width: 14px; height: 14px; flex-shrink: 0; }
.nav-drop.is-open .nav-drop-btn .chev { transform: rotate(180deg); }
.nav-drop-list { display: none; padding: 2px 0 6px 10px; }
.nav-drop.is-open .nav-drop-list {
  display: grid; gap: 2px;
  animation: dropIn 0.28s ease;
}
.nav-drop-list a {
  padding: 9px 12px 9px 46px;
  font-size: 13px;
  min-height: 38px;
}

.nav-count {
  margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cyan-bright), var(--blue));
  border: 0;
  color: var(--ink-on-accent); font-size: 11px; font-weight: 800;
  display: inline-grid; place-items: center;
  box-shadow: var(--glow-cyan);
}

.signup-row {
  display: grid; grid-template-columns: minmax(120px, 220px) auto;
  align-items: center; justify-content: start; gap: 10px 20px;
  padding: 10px 0; border-bottom: 1px solid var(--rule);
}
.signup-row b { display: block; }
.signup-row > div:first-child > span {
  display: block; color: var(--ink-soft); font-size: 12px; font-weight: 400;
}
.signup-toggles { display: flex; gap: 14px; flex: 0 0 auto; }
.signup-toggles label {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; color: var(--ink-soft);
}

/* profile footer */
.side-foot {
  margin-top: auto;
  padding: 12px 14px;
  border-top: 1px solid var(--rule);
  flex-shrink: 0;
}
.side-foot-note {
  margin: 0;
  font-size: 11px;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}
.brand-logo {
  display: block;
  height: 36px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
}
.side-brand .brand-logo { height: 40px; }

.profile-chip {
  width: 100%;
  display: flex; align-items: center; gap: 10px;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid var(--rule);
  background: var(--glass);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}
.profile-chip:hover,
.profile-pop.is-open .profile-chip {
  border-color: var(--rule-strong);
  box-shadow: var(--glow-cyan);
  transform: translateY(-1px);
}
.profile-av {
  width: 36px; height: 36px; border-radius: 11px;
  display: grid; place-items: center;
  font-weight: 800; font-size: 13px; color: var(--ink-on-accent); flex-shrink: 0;
  background: linear-gradient(135deg, var(--cyan-bright), var(--blue));
  box-shadow: var(--glow-cyan);
}
.profile-av.lg { width: 44px; height: 44px; border-radius: 13px; font-size: 16px; }
.profile-meta { min-width: 0; flex: 1; }
.profile-meta b {
  display: block; font-size: 13px; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.profile-meta small { display: block; color: var(--ink-soft); font-size: 11px; }
.profile-chip .chev { color: var(--ink-soft); transition: transform 0.25s; width: 12px; height: 12px; }
.profile-pop.is-open .profile-chip .chev { transform: rotate(180deg); }

.profile-card {
  position: absolute;
  left: 8px; right: 8px; bottom: calc(100% + 6px);
  background: var(--elevated);
  backdrop-filter: blur(18px);
  border: 1px solid var(--rule-strong);
  border-radius: 14px;
  box-shadow: var(--glass-shadow), var(--glow-soft);
  padding: 12px;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 5;
}
.profile-pop.is-open .profile-card {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.top-profile {
  position: relative;
}
.top-profile-btn {
  width: auto;
  min-height: 44px;
  padding: 4px 10px 4px 4px;
  border-radius: 14px;
  background: var(--elevated);
  border: 1.5px solid var(--input-border);
  box-shadow: var(--glass-shadow);
}
.top-profile-btn .profile-av { width: 32px; height: 32px; border-radius: 10px; font-size: 12px; }
.top-profile-card {
  left: auto;
  right: 0;
  bottom: auto;
  top: calc(100% + 8px);
  width: min(280px, 78vw);
  z-index: 30;
}
.top-profile-card .pop-foot {
  border-top: 0;
  margin-top: 0;
  text-align: left;
  padding: 8px 4px;
}
@media (max-width: 720px) {
  .top-profile-meta { display: none; }
  .top-profile-btn { padding: 4px; }
  .top-profile-btn .chev { display: none; }
}
.profile-card-h {
  display: flex; gap: 10px; align-items: center;
  margin-bottom: 10px;
}
.profile-card-h b { display: block; font-size: 13px; }
.profile-card-h span { display: block; font-size: 11px; color: var(--ink-soft); overflow-wrap: anywhere; }
.profile-card-rows {
  display: grid; gap: 6px; margin-bottom: 10px;
  padding: 8px; border-radius: 10px;
  background: rgba(0, 255, 255, 0.04);
  border: 1px solid var(--rule);
}
.profile-card-rows div { display: flex; justify-content: space-between; gap: 8px; font-size: 11px; }
.profile-card-rows em { font-style: normal; color: var(--ink-soft); }
.profile-card-rows strong { color: var(--cyan); font-weight: 600; }

.main { min-width: 0; max-width: 100%; position: relative; overflow-x: clip; }
.beam {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--beam-a), var(--beam-b), var(--beam-a), transparent);
  background-size: 200% 100%;
  animation: slide 5s linear infinite;
  opacity: 0.7;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 64px;
  padding: 10px 20px;
  position: sticky;
  top: 0;
  z-index: 24;
  border-bottom: 1px solid var(--rule);
  background: color-mix(in srgb, var(--glass-strong) 88%, transparent);
  backdrop-filter: blur(calc(var(--blur) + 4px));
  -webkit-backdrop-filter: blur(calc(var(--blur) + 4px));
  box-shadow: 0 10px 28px -22px rgba(20, 40, 80, 0.35);
}
[data-theme="dark"] .top {
  box-shadow: 0 12px 32px -20px rgba(0, 0, 0, 0.65);
}

.top-lead {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1.5px solid var(--input-border);
  background: var(--elevated);
  color: var(--ink);
  border-radius: 12px;
  cursor: pointer;
  place-items: center;
  flex-shrink: 0;
  transition: border-color 0.2s, box-shadow 0.2s, color 0.2s;
}
.menu-btn:hover {
  border-color: var(--rule-strong);
  color: var(--cyan);
  box-shadow: var(--glow-soft);
}
.menu-ico {
  display: grid;
  gap: 4px;
  width: 16px;
}
.menu-ico i {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s, opacity 0.2s;
}
.menu-ico i:nth-child(2) { width: 70%; }

.crumb {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  margin-right: auto;
}
.crumb-parent {
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  line-height: 1.2;
}
.crumb-title {
  font-family: var(--display);
  font-size: clamp(1.15rem, 1.8vw, 1.35rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink);
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.top-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.top-cluster {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 44px;
  padding: 4px;
  border-radius: 14px;
  border: 1.5px solid var(--input-border);
  background: var(--elevated);
  box-shadow: var(--glass-shadow);
}
[data-theme="dark"] .top-cluster {
  border-color: var(--rule);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.pop { position: relative; }
.pop-panel {
  display: none; position: absolute; right: 0; top: calc(100% + 8px);
  width: min(300px, 78vw);
  background: var(--elevated);
  border: 1px solid var(--rule-strong);
  border-radius: 14px;
  box-shadow: var(--glass-shadow), var(--glow-soft);
  backdrop-filter: blur(18px);
  padding: 8px; max-height: min(70vh, 400px); overflow-y: auto; z-index: 12;
}
.pop.is-open .pop-panel { display: block; }
.pop-h { font-size: 11px; font-weight: 700; margin: 4px 6px 8px; color: var(--cyan); letter-spacing: 0.1em; text-transform: uppercase; }
.pop-note { font-size: 12px; margin: 0 6px 10px; color: var(--ink-soft); }
.pop-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pop-foot {
  display: block; margin-top: 6px; padding: 8px; text-align: center;
  font-size: 12px; border-top: 1px solid var(--rule); color: var(--cyan);
}
.pop-row {
  display: flex; justify-content: space-between; gap: 10px; width: 100%;
  border: 0; background: transparent; text-align: left; padding: 7px 8px;
  border-radius: 8px; cursor: pointer; color: inherit; text-decoration: none; font-size: 12px;
}
.pop-row small { color: var(--ink-soft); font-size: 10px; }
.pop-row:hover { background: rgba(0, 255, 255, 0.06); text-decoration: none; }
.pop-row.is-on { background: rgba(0, 255, 255, 0.1); font-weight: 600; color: var(--cyan); }
.pop-row.is-fresh { box-shadow: inset 2px 0 0 #00ffff; }

.wallet-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  min-height: 44px;
  padding: 0 10px 0 6px;
  border: 1.5px solid color-mix(in srgb, var(--cyan) 28%, var(--input-border));
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--cyan-bright) 12%, transparent), transparent 58%),
    var(--elevated);
  border-radius: 14px;
  cursor: pointer;
  box-shadow: var(--glass-shadow);
  transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
}
.wallet-chip:hover {
  border-color: var(--rule-strong);
  box-shadow: var(--glow-cyan);
  transform: translateY(-1px);
}
.wallet-chip-ico {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--cyan);
  background: color-mix(in srgb, var(--cyan) 12%, transparent);
  flex-shrink: 0;
}
.wallet-chip-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  line-height: 1.15;
}
.wallet-chip-k {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 650;
}
.wallet-chip strong {
  font-size: 14px;
  font-family: var(--mono);
  color: var(--cyan);
  font-weight: 700;
}
[data-theme="dark"] .wallet-chip strong {
  color: var(--cyan-bright);
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.28);
}
[data-theme="light"] .wallet-chip strong {
  color: #0891b2;
  text-shadow: none;
}
.wallet-chip-fx {
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  border: 1px solid var(--rule);
  background: var(--glass);
  border-radius: 999px;
  padding: 3px 7px;
}
.wallet-chip .chev { margin-left: 0; color: var(--ink-soft); opacity: 0.75; }

.bell-btn {
  position: relative; width: 36px; height: 36px;
  border: 0;
  background: transparent;
  border-radius: 10px; cursor: pointer; display: grid; place-items: center; color: var(--ink-soft);
  transition: color 0.25s ease, background 0.25s ease;
}
.bell-btn:hover {
  color: var(--cyan);
  background: color-mix(in srgb, var(--cyan) 10%, transparent);
}

.theme-btn {
  width: 36px; height: 36px;
  border: 0;
  background: transparent;
  border-radius: 10px; cursor: pointer; display: grid; place-items: center;
  color: var(--ink-soft);
  transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}
.theme-btn:hover {
  color: var(--cyan);
  background: color-mix(in srgb, var(--cyan) 10%, transparent);
  transform: scale(1.04);
}
.theme-btn:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.theme-btn svg { width: 16px; height: 16px; display: block; }
.theme-btn .ico-sun { display: none; }
.theme-btn .ico-moon { display: block; }
[data-theme="dark"] .theme-btn .ico-sun { display: block; }
[data-theme="dark"] .theme-btn .ico-moon { display: none; }

.theme-btn-float {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 5;
}
.bell-count {
  position: absolute; top: -2px; right: -2px;
  min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px;
  background: #ff2d95; color: #fff; font-size: 9px; font-weight: 800;
  display: grid; place-items: center;
  box-shadow: 0 0 10px rgba(255, 45, 149, 0.55);
}
.bell-count[hidden],
.nav-count[hidden] { display: none !important; }
.linkish { border: 0; background: none; color: var(--cyan); cursor: pointer; font-size: 12px; }

.live-dot {
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--neon-green); display: flex; align-items: center; gap: 6px; font-weight: 700;
  text-shadow: 0 0 10px rgba(57, 255, 20, 0.45);
}
.live-dot::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--neon-green);
  box-shadow: 0 0 0 0 rgba(57, 255, 20, 0.7);
  animation: livePulse 1.6s infinite;
}

.online-badge {
  display: inline-flex; align-items: center; gap: 7px;
  height: 36px; padding: 0 12px; border-radius: 999px;
  border: 1px solid rgba(46, 204, 113, 0.35);
  background: rgba(46, 204, 113, 0.08);
  color: var(--ink); cursor: pointer; font: inherit;
}
.online-badge:hover { border-color: rgba(46, 204, 113, 0.55); background: rgba(46, 204, 113, 0.14); }
.online-badge-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #2ecc71; box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.65);
  animation: livePulse 1.6s infinite;
}
.online-badge-count { font-weight: 800; color: #2ecc71; min-width: 1ch; }
.online-badge-label { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); font-weight: 700; }
.online-pop .pop-panel { width: min(340px, 86vw); }
.online-list { list-style: none; margin: 0; padding: 0; }
.online-list li {
  display: flex; justify-content: space-between; gap: 10px;
  padding: 8px 6px; border-top: 1px solid var(--rule); font-size: 12px;
}
.online-list strong { display: block; font-size: 13px; }
.online-list .online-path {
  display: block; margin-top: 2px; color: var(--cyan);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.online-list em { color: var(--ink-soft); font-style: normal; white-space: nowrap; }
.stat-link {
  display: inline-block; margin-top: 6px; font-size: 11px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--cyan); text-decoration: none;
}
.stat-link:hover { text-decoration: underline; }

@media (max-width: 720px) {
  .online-badge-label { display: none; }
  .online-badge { height: 34px; padding: 0 10px; }
}

@media (max-width: 720px) {
  .top { padding: 10px 12px; min-height: 58px; gap: 10px; }
  .wallet-chip-fx,
  .wallet-chip .chev { display: none; }
  .wallet-chip { padding-right: 8px; gap: 8px; height: 40px; min-height: 40px; }
  .wallet-chip strong { font-size: 13px; }
  .top-cluster { height: 40px; padding: 3px; }
  .bell-btn,
  .theme-btn { width: 34px; height: 34px; }
  .crumb-title { font-size: 1.05rem; }
}

.content { padding: 20px clamp(18px, 3.2vw, 36px) 32px; display: grid; gap: 14px; min-width: 0; max-width: 100%; }

.hud-build > * {
  opacity: 0;
  transform: translateY(12px);
  animation: hudIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hud-build > *:nth-child(1) { animation-delay: 0.03s; }
.hud-build > *:nth-child(2) { animation-delay: 0.08s; }
.hud-build > *:nth-child(3) { animation-delay: 0.13s; }
.hud-build > *:nth-child(4) { animation-delay: 0.18s; }
.hud-build > *:nth-child(5) { animation-delay: 0.23s; }
.hud-build > *:nth-child(6) { animation-delay: 0.28s; }
.hud-build > *:nth-child(n+7) { animation-delay: 0.32s; }

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

.stat, .panel, .tile {
  background: var(--glass);
  border: var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  position: relative;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.stat {
  padding: 14px 14px 16px;
  overflow: hidden;
}
.stat:hover,
.panel:hover,
.tile:hover {
  transform: scale(1.015);
  border-color: rgba(0, 255, 255, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(0, 255, 255, 0.1),
    0 0 28px rgba(0, 255, 255, 0.12),
    0 16px 40px -20px rgba(0, 0, 0, 0.7);
}
.stat::after {
  content: "";
  position: absolute; right: -16px; top: -16px;
  width: 80px; height: 80px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 255, 255, 0.12), transparent 70%);
  pointer-events: none;
}

.stat-top {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  position: relative; z-index: 1;
}
.stat-ico {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: 8px;
  background: rgba(0, 255, 255, 0.06);
  border: 1px solid rgba(0, 255, 255, 0.18);
  color: var(--cyan);
  filter: drop-shadow(0 0 6px rgba(0, 255, 255, 0.35));
}
.stat-ico svg { width: 14px; height: 14px; }

.stat .lbl {
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-soft); font-weight: 600; position: relative; z-index: 1;
}
.stat .num {
  font-family: var(--mono);
  font-size: 2.5rem; font-weight: 700; margin-top: 8px; letter-spacing: -0.03em;
  color: var(--ink);
  text-shadow: var(--stat-num-glow);
  position: relative; z-index: 1; line-height: 1.1;
}
.stat .num.money { font-size: 1.5rem; color: var(--cyan); }
.stat .num.textish { font-size: 1.25rem; letter-spacing: 0; }

.panel { padding: 16px; overflow-x: auto; }
.panel:hover { transform: none; }
.panel h2 { margin-bottom: 10px; }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.tile {
  display: block; padding: 18px; color: inherit; text-decoration: none; min-height: 130px;
}
.tile:hover { text-decoration: none; color: var(--ink); }
.tile b { display: block; font-size: 16px; margin: 6px 0; font-family: var(--display); color: var(--ink); }
.tile span { color: var(--ink-soft); font-size: 13px; }

table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td {
  text-align: left; padding: 10px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05); vertical-align: top;
}
tbody tr { transition: background 0.2s ease; }
tbody tr:hover { background: var(--row-hover); }
th {
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft);
}

.pill {
  display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11px;
  background: rgba(0, 255, 255, 0.08); color: var(--cyan);
  border: 1px solid rgba(0, 255, 255, 0.22);
  text-shadow: 0 0 8px rgba(0, 255, 255, 0.3);
}
.pill-off { background: rgba(255, 255, 255, 0.04); color: var(--ink-soft); border-color: var(--rule); text-shadow: none; }

.dl { display: grid; grid-template-columns: 130px 1fr; gap: 8px 14px; font-size: 13px; }
.dl dt, .dl dd { margin: 0; min-width: 0; }
.dl dt { color: var(--ink-soft); }
.dl dd { overflow-wrap: anywhere; }
.empty { color: var(--ink-soft); padding: 12px 0; }

.switch-row {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 10px 0; border-bottom: 1px solid var(--rule);
}
.switch-row b { display: block; }
.switch-row span { display: block; color: var(--ink-soft); font-size: 12px; font-weight: 400; }
.switch { position: relative; width: 44px; height: 24px; flex: 0 0 44px; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch i {
  position: absolute; inset: 0; background: rgba(255, 255, 255, 0.1); border-radius: 999px;
  cursor: pointer; transition: background 0.25s; border: 1px solid var(--rule);
}
.switch i::after {
  content: ""; position: absolute; width: 18px; height: 18px; left: 2px; top: 2px;
  background: #e8eef8; border-radius: 50%;
  transition: transform 0.25s;
}
.switch input:checked + i {
  background: rgba(0, 255, 255, 0.2);
  border-color: rgba(0, 255, 255, 0.45);
  box-shadow: inset 0 0 10px rgba(0, 255, 255, 0.2);
}
.switch input:checked + i::after { transform: translateX(20px); background: var(--cyan); }

.toolbar {
  display: flex; justify-content: space-between; gap: 14px;
  align-items: flex-start; margin-bottom: 14px; flex-wrap: wrap;
}
.toolbar h2 { margin-bottom: 4px; }
.toolbar .muted { margin: 0; font-size: 13px; max-width: 62ch; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; }
.toolbar .actions { margin-top: 0; }

.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 14px; }
.filter-bar input,
.filter-bar select {
  width: auto;
  min-width: 140px;
  height: 42px;
  min-height: 42px;
}
.filter-bar input:not([type="checkbox"]):not([type="radio"]):focus,
.filter-bar select:focus {
  outline: none;
}
.filter-bar input[type="search"],
.filter-bar input[type="text"] { min-width: 200px; flex: 1; }
.field input[type="file"] { height: auto; }

table select,
table input:not([type="checkbox"]):not([type="radio"]) {
  width: auto;
  height: 36px;
  min-height: 36px;
  max-width: 140px;
  padding: 0 10px;
}

.ticket-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 14px; align-items: start;
}
.ticket-aside h3 { margin-bottom: 10px; }
.dl.compact { grid-template-columns: 68px 1fr; margin-bottom: 14px; }
.thread { display: grid; gap: 10px; margin: 14px 0; }

.bubble {
  padding: 12px 14px; border-radius: 14px;
  background: var(--glass);
  border: 1px solid var(--rule);
  backdrop-filter: blur(10px);
}
.bubble.is-staff {
  background: rgba(0, 255, 255, 0.06);
  border-color: rgba(0, 255, 255, 0.22);
}
.bubble.is-note {
  background: rgba(255, 176, 32, 0.08); border-color: rgba(255, 176, 32, 0.28);
}
.bubble .who { font-size: 11px; color: var(--ink-soft); margin-bottom: 6px; }
.bubble .msg { white-space: normal; overflow-wrap: anywhere; }
.reply-box { margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--rule); }

.file-list {
  list-style: none; margin: 8px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 6px;
}
.file-list li {
  display: flex; gap: 6px; align-items: center;
  padding: 4px 8px; border-radius: 999px;
  background: rgba(0, 255, 255, 0.06);
  border: 1px solid rgba(0, 255, 255, 0.18); font-size: 11px;
}
.file-list span { color: var(--ink-soft); }

.pager { display: flex; gap: 10px; align-items: center; margin-top: 14px; font-size: 12px; }
.pager .is-off { color: var(--ink-soft); }

.pill-open { background: rgba(0, 255, 255, 0.1); color: var(--cyan); border-color: rgba(0, 255, 255, 0.28); }
.pill-pending { background: rgba(255, 176, 32, 0.1); color: var(--amber); border-color: rgba(255, 176, 32, 0.3); text-shadow: 0 0 8px rgba(255, 176, 32, 0.35); }
.pill-closed { background: rgba(255, 255, 255, 0.04); color: var(--ink-soft); border-color: var(--rule); text-shadow: none; }
.pill-low { background: rgba(255, 255, 255, 0.04); color: var(--ink-soft); border-color: var(--rule); text-shadow: none; }
.pill-normal { background: rgba(32, 128, 255, 0.1); color: #7eb6ff; border-color: rgba(32, 128, 255, 0.3); }
.pill-high { background: rgba(255, 176, 32, 0.1); color: var(--amber); }
.pill-urgent { background: var(--warn-soft); color: #ff8fc4; border-color: rgba(255, 45, 149, 0.35); text-shadow: 0 0 8px rgba(255, 45, 149, 0.4); }
.mono { font-family: var(--mono); font-size: 12px; color: var(--cyan); letter-spacing: 0.02em; }

.desk-wrap { min-height: calc(100vh - 120px); }
.desk {
  display: flex; flex-direction: column; min-height: calc(100vh - 130px);
  background: var(--glass);
  border: var(--glass-border); border-radius: var(--radius);
  overflow: hidden; backdrop-filter: blur(var(--blur)); box-shadow: var(--glass-shadow);
}
.desk-head {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  border-bottom: 1px solid var(--rule);
  background: rgba(255, 255, 255, 0.03);
}
.desk-head h2 { margin: 0; }
.desk-head .kicker { margin-bottom: 2px; }
.desk-head .pill { margin-left: auto; }
.desk-av {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; color: var(--ink-on-accent); flex-shrink: 0;
  background: linear-gradient(135deg, var(--cyan-bright), var(--blue));
  box-shadow: var(--glow-cyan);
  font-weight: 700; font-size: 13px;
}
.desk-body {
  flex: 1; overflow-y: auto; padding: 14px; min-height: 260px;
  background:
    radial-gradient(500px 180px at 90% 0%, rgba(0, 255, 255, 0.04), transparent 60%),
    transparent;
}
.desk-row { display: flex; margin-bottom: 8px; }
.desk-row.is-mine { justify-content: flex-end; }
.desk-bubble {
  max-width: min(78%, 540px); padding: 8px 10px 6px; border-radius: 12px;
  border: 1px solid var(--rule);
  background: rgba(255, 255, 255, 0.05); overflow-wrap: anywhere;
}
.desk-row.is-mine .desk-bubble {
  background: rgba(0, 255, 255, 0.08);
  border-color: rgba(0, 255, 255, 0.25);
}
.desk-row.is-sys .desk-bubble {
  background: rgba(255, 176, 32, 0.08); border-color: rgba(255, 176, 32, 0.28);
}
.desk-meta {
  display: flex; justify-content: flex-end; gap: 6px;
  margin-top: 4px; font-size: 10px; color: var(--ink-soft);
}
.desk-ticks.is-read { color: var(--cyan); }
.desk-photo { max-width: 200px; max-height: 160px; border-radius: 8px; display: block; margin-bottom: 6px; }
.desk-file {
  display: inline-flex; gap: 6px; align-items: center;
  padding: 4px 8px; border-radius: 999px;
  background: rgba(0, 255, 255, 0.06);
  border: 1px solid rgba(0, 255, 255, 0.18);
  font-size: 11px; margin-bottom: 6px;
}
.desk-empty { text-align: center; color: var(--ink-soft); padding: 40px 14px; }
.desk-foot {
  display: flex; gap: 8px; align-items: center; padding: 10px;
  border-top: 1px solid var(--rule);
  background: rgba(255, 255, 255, 0.03);
}
.desk-foot input[type="text"] {
  flex: 1; min-width: 0; height: 46px; min-height: 46px;
  width: auto;
}
.desk-clip {
  width: 42px; height: 42px; border-radius: 11px;
  border: 1.5px solid var(--input-border);
  background: var(--input-bg); display: grid; place-items: center; cursor: pointer; flex-shrink: 0;
  color: var(--ink-soft);
  transition: color 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.desk-clip:hover { color: var(--cyan); border-color: var(--rule-strong); box-shadow: var(--glow-cyan); }
.desk-note { margin: 0; padding: 0 12px 10px; }
.desk-foot.is-off { display: none; }

.inbox {
  display: flex; min-height: calc(100vh - 130px);
  background: var(--glass);
  border: var(--glass-border); border-radius: var(--radius);
  overflow: hidden; backdrop-filter: blur(var(--blur)); box-shadow: var(--glass-shadow);
}
.inbox-side {
  width: 280px; border-right: 1px solid var(--rule);
  display: flex; flex-direction: column;
  background: rgba(255, 255, 255, 0.02); flex-shrink: 0;
}
.inbox-side-h { padding: 12px 12px 6px; }
.inbox-search { padding: 0 10px 10px; }
.inbox-search input {
  width: 100%;
  height: 42px;
  min-height: 42px;
}
.inbox-list { flex: 1; overflow-y: auto; }
.inbox-item {
  display: flex; gap: 8px; padding: 10px 12px; cursor: pointer;
  border-bottom: 1px solid var(--rule); align-items: flex-start;
  transition: background 0.25s, transform 0.25s;
}
.inbox-item:hover, .inbox-item.is-on { background: var(--row-hover); }
.inbox-item:hover { transform: translateX(2px); }
.inbox-item.is-pin { background: rgba(255, 176, 32, 0.06); }
.inbox-item .av {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan-bright), var(--blue));
  color: var(--ink-on-accent); display: grid; place-items: center; font-weight: 700; flex-shrink: 0; font-size: 12px;
}
.inbox-item .who { font-weight: 600; font-size: 13px; }
.inbox-item .sub, .inbox-item .preview {
  font-size: 11px; color: var(--ink-soft);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 150px;
}
.inbox-item .meta { margin-left: auto; text-align: right; font-size: 10px; color: var(--ink-soft); flex-shrink: 0; }
.inbox-main {
  flex: 1; min-width: 0; display: flex; flex-direction: column;
  background: transparent;
}
.inbox-main .desk { min-height: 0; height: 100%; border: none; border-radius: 0; box-shadow: none; }
.inbox-empty { flex: 1; display: grid; place-items: center; text-align: center; padding: 28px; }
.inbox-tools { display: flex; gap: 6px; margin-left: auto; flex-wrap: wrap; align-items: center; }
.inbox-tools select {
  height: 36px; min-height: 36px; width: auto;
  max-width: 160px;
}
.pin-on { color: var(--amber); }

.chat-fab-wrap { position: fixed; right: 18px; bottom: 18px; z-index: 9999; }
.chat-fab-wrap.is-left { left: 18px; right: auto; }
.chat-fab {
  width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center; color: var(--ink-on-accent);
  background: linear-gradient(135deg, var(--cyan-bright), var(--blue));
  box-shadow: var(--glow-cyan);
  text-decoration: none; position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.chat-fab svg { display: block; }
.chat-fab:hover {
  color: var(--ink-on-accent); text-decoration: none; transform: scale(1.06);
  box-shadow: 0 0 32px rgba(17, 214, 253, 0.45);
}
.chat-fab-count {
  position: absolute; left: -4px; top: -4px;
  min-width: 18px; height: 18px; padding: 0 4px; border-radius: 999px;
  background: #ff2d95; color: #fff; font-size: 10px; font-weight: 700;
  display: grid; place-items: center;
  box-shadow: 0 0 10px rgba(255, 45, 149, 0.5);
}
.chat-pop {
  position: absolute; bottom: 68px; right: 0;
  width: min(360px, calc(100vw - 28px));
  height: min(500px, calc(100vh - 110px));
  border-radius: 14px; overflow: hidden;
  box-shadow: var(--glass-shadow), var(--glow-soft);
  border: 1px solid var(--rule-strong);
  background: var(--elevated);
  backdrop-filter: blur(18px);
}
.chat-fab-wrap.is-left .chat-pop { left: 0; right: auto; }
.chat-pop[hidden] { display: none !important; }
.desk-mini { min-height: 100%; height: 100%; border: none; border-radius: 0; box-shadow: none; }
.desk-mini .desk-head h2 { font-size: 15px; }
.desk-row.is-ai .desk-bubble {
  background: rgba(37, 99, 235, 0.1);
  border-color: rgba(37, 99, 235, 0.35);
}
[data-theme="dark"] .desk-row.is-ai .desk-bubble {
  background: rgba(0, 255, 255, 0.08);
  border-color: rgba(0, 255, 255, 0.28);
}
.desk-who {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  font-weight: 700;
  margin-bottom: 4px;
}
.pill-ai {
  background: rgba(17, 214, 253, 0.12);
  color: var(--cyan);
  border-color: rgba(17, 214, 253, 0.3);
}
.pill-sm {
  font-size: 9px;
  padding: 1px 6px;
  margin-left: 6px;
  vertical-align: middle;
}
.inbox-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 12px 10px;
}
.inbox-tabs button {
  border: 1px solid var(--input-border);
  background: var(--input-bg);
  color: var(--ink-soft);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 650;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, box-shadow 0.2s, background 0.2s;
}
.inbox-tabs button:hover {
  color: var(--cyan);
  border-color: var(--rule-strong);
}
.inbox-tabs button.is-on {
  color: var(--ink-on-accent);
  background: linear-gradient(135deg, var(--cyan-bright), var(--blue));
  border-color: transparent;
  box-shadow: var(--glow-cyan);
}

.settings-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.settings-subnav a {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1.5px solid var(--input-border);
  background: var(--input-bg);
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, box-shadow 0.2s, background 0.2s;
}
.settings-subnav a:hover {
  color: var(--cyan);
  border-color: var(--rule-strong);
  text-decoration: none;
}
.settings-subnav a.is-on {
  color: var(--ink-on-accent);
  background: linear-gradient(135deg, var(--cyan-bright), var(--blue));
  border-color: transparent;
  box-shadow: var(--glow-cyan);
}

.desk-mini .desk-body { min-height: 0; }

/* ── page polish layer ── */
.panel-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 14px; flex-wrap: wrap; margin-bottom: 14px;
}
.panel-head > div:first-child { min-width: 0; flex: 1; }
.panel-head h2 { margin-bottom: 4px; }
.panel-head .muted { margin: 0; font-size: 13px; max-width: 62ch; }

.page-hero {
  padding: 18px 18px 16px;
  margin-bottom: 0;
  background:
    linear-gradient(135deg, rgba(17, 214, 253, 0.08), transparent 42%),
    var(--glass);
  border: var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(var(--blur));
  position: relative;
  overflow: hidden;
}
[data-theme="dark"] .page-hero {
  background:
    linear-gradient(135deg, rgba(0, 255, 255, 0.07), transparent 45%),
    var(--glass);
}
.page-hero::after {
  content: "";
  position: absolute; right: -40px; top: -40px;
  width: 160px; height: 160px; border-radius: 50%;
  background: radial-gradient(circle, rgba(32, 128, 255, 0.18), transparent 70%);
  pointer-events: none;
}
.page-hero > * { position: relative; z-index: 1; }
.page-hero h2 { margin-bottom: 6px; }
.page-hero .muted { margin: 0; max-width: 58ch; }
.page-hero .hero-links { margin-top: 10px; display: grid; gap: 4px; }
.page-hero .hero-links .muted { margin: 0; }

.table-wrap {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid var(--rule);
  background: rgba(255, 255, 255, 0.02);
  margin-top: 4px;
}
[data-theme="light"] .table-wrap {
  background: rgba(255, 255, 255, 0.45);
}
.table-wrap table { margin: 0; }
.table-wrap th {
  position: sticky; top: 0; z-index: 1;
  background: var(--elevated);
  backdrop-filter: blur(8px);
}
.table-wrap td, .table-wrap th { padding: 11px 12px; white-space: nowrap; }
.table-wrap td:last-child, .table-wrap th:last-child { white-space: normal; }

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 16px;
}
.form-grid .field-span { grid-column: 1 / -1; }

.empty {
  text-align: center;
  padding: 36px 16px;
  border: 1px dashed var(--rule);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--ink-soft);
  margin: 8px 0 0;
}
.empty strong { display: block; color: var(--ink); margin-bottom: 4px; font-size: 14px; }
.empty span { font-size: 13px; }

.dl-card {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
}
.dl-card .dl-item {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--rule);
  background: rgba(255, 255, 255, 0.03);
}
.dl-card .dl-item em {
  display: block; font-style: normal;
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: 6px; font-weight: 600;
}
.dl-card .dl-item strong {
  display: block; font-size: 14px; font-weight: 600; color: var(--ink);
  overflow-wrap: anywhere;
}

.profile-banner {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 16px; padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
}
.profile-banner .profile-av { width: 48px; height: 48px; border-radius: 14px; font-size: 18px; }
.profile-banner b { display: block; font-size: 16px; font-family: var(--display); }
.profile-banner span { display: block; font-size: 12px; color: var(--ink-soft); }

.action-link {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; font-weight: 650; color: var(--cyan);
  padding: 4px 10px; border-radius: 8px;
  border: 1px solid var(--rule-strong);
  background: rgba(17, 214, 253, 0.06);
  transition: background 0.2s, box-shadow 0.2s;
}
.action-link:hover {
  background: rgba(17, 214, 253, 0.12);
  box-shadow: var(--glow-cyan);
  text-decoration: none;
}

.pager {
  display: flex; gap: 8px; align-items: center; justify-content: flex-end;
  margin-top: 14px; font-size: 12px; padding-top: 10px;
  border-top: 1px solid var(--rule);
}
.pager a {
  padding: 6px 12px; border-radius: 8px;
  border: 1px solid var(--rule); background: var(--glass);
  color: var(--ink); font-weight: 600;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.pager a:hover {
  border-color: var(--rule-strong); box-shadow: var(--glow-cyan); color: var(--cyan);
}
.pager .is-off { color: var(--ink-soft); padding: 6px 12px; }
.pager span:not(.is-off) {
  font-family: var(--mono); font-size: 11px; color: var(--ink-soft); padding: 0 6px;
}

.filter-bar {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid var(--rule);
  background: rgba(255, 255, 255, 0.03);
  margin: 0 0 14px;
}
[data-theme="light"] .filter-bar { background: rgba(255, 255, 255, 0.5); }

.btn.btn-ghost { text-decoration: none; }
a.btn { text-decoration: none; }

.auth-card header { margin-bottom: 18px; position: relative; z-index: 1; }
.auth-card header h2 { margin-bottom: 4px; }
.auth-card header p { margin: 0; color: var(--ink-soft); font-size: 13px; }

.gate-body {
  min-height: 100vh;
  display: grid; place-items: center;
  padding: 24px;
  background: linear-gradient(135deg, var(--canvas-a), var(--canvas-b));
}
.gate {
  width: min(440px, 100%);
  text-align: center;
  padding: 28px 24px;
  background: var(--glass);
  border: var(--glass-border);
  border-radius: 20px;
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(var(--blur));
}
.gate h1 { font-size: 28px; margin-bottom: 10px; }
.gate .muted { margin-bottom: 18px; }
.gate .btn { margin-top: 4px; }

.tile {
  position: relative;
  overflow: hidden;
}
.tile::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(17, 214, 253, 0.1), transparent 40%);
  opacity: 0; transition: opacity 0.3s ease; pointer-events: none;
}
.tile:hover::before { opacity: 1; }
.tile .kicker { margin-bottom: 8px; }

.split {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 14px; align-items: start;
}

.amount-in { color: var(--ok); font-family: var(--mono); font-size: 12px; }
.amount-out { color: var(--pink); font-family: var(--mono); font-size: 12px; }

.nav-scrim {
  display: none;
  position: fixed; inset: 0; z-index: 7;
  background: rgba(5, 5, 8, 0.45);
  backdrop-filter: blur(2px);
}
body.nav-open .nav-scrim { display: block; }

.inbox-side { background: rgba(255, 255, 255, 0.02); }
[data-theme="light"] .inbox-side { background: rgba(255, 255, 255, 0.35); }
.inbox-item:hover, .inbox-item.is-on { background: var(--nav-active-bg); }
.inbox-item {
  border-bottom-color: var(--rule);
}

.content { padding: 20px clamp(18px, 3.2vw, 36px) 32px; }

@media (max-width: 980px) {
  .form-grid { grid-template-columns: 1fr; }
  .page-hero { padding: 16px; }
  .panel-head { flex-direction: column; }
  .content { padding: 14px 14px 24px; }
}

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(36px, -20px, 0) scale(1.06); }
}
@keyframes meshDrift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(28px, -22px, 0) scale(1.08); }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
@keyframes hudIn {
  to { opacity: 1; transform: none; }
}
@keyframes slide {
  from { background-position: 0 0; }
  to { background-position: 200% 0; }
}
@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(57, 255, 20, 0.7); }
  70% { box-shadow: 0 0 0 8px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
@keyframes navPulse {
  0%, 100% { box-shadow: inset 3px 0 0 var(--cyan-bright), 0 0 12px rgba(17, 214, 253, 0.06); }
  50% { box-shadow: inset 3px 0 0 var(--cyan-bright), 0 0 20px rgba(17, 214, 253, 0.16); }
}
@keyframes iconPulse {
  0% { transform: rotate(0) scale(1); }
  40% { transform: rotate(-10deg) scale(1.12); }
  100% { transform: rotate(-8deg) scale(1.08); }
}
@keyframes markFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}
@keyframes sideBeam {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 0.75; }
}
@keyframes dropIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}
@keyframes btnShine {
  0%, 55% { transform: translateX(-120%); }
  75%, 100% { transform: translateX(120%); }
}
@keyframes orbPulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.08); opacity: 0.75; }
}

.stat { animation: rise 0.5s ease both; }
.stat:nth-child(1) { animation-delay: 0.05s; }
.stat:nth-child(2) { animation-delay: 0.1s; }
.stat:nth-child(3) { animation-delay: 0.15s; }
.stat:nth-child(4) { animation-delay: 0.2s; }
.stat:nth-child(5) { animation-delay: 0.25s; }
.stat:nth-child(6) { animation-delay: 0.3s; }
.stat:nth-child(n+7) { animation-delay: 0.35s; }

.tile { transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease; }
.panel { transition: box-shadow 0.3s ease, border-color 0.3s ease; }

.mesh-blob.b1 { animation-name: meshDrift, orbPulse; animation-duration: 18s, 8s; }
.mesh-blob.b2 { animation-name: meshDrift, orbPulse; animation-duration: 22s, 10s; }
.mesh-blob.b3 { animation-name: meshDrift, orbPulse; animation-duration: 26s, 12s; }

@media (max-width: 980px) {
  .auth-shell, .auth-wrap, .dl { grid-template-columns: 1fr; }
  .auth-shell {
    width: min(560px, calc(100% - 32px));
    min-height: auto;
    margin: 16px auto 28px;
  }
  .auth-brand {
    min-height: auto;
    padding-bottom: 12px;
  }
  .auth-brand-copy h1 { max-width: none; font-size: clamp(1.85rem, 7vw, 2.4rem); }
  .auth-points { display: none; }
  .auth-products { max-width: none; }
  .auth-aside { display: none; }
  .auth-panel { padding-top: 8px; padding-bottom: 28px; }
  .shell { grid-template-columns: 1fr; }
  .side {
    position: fixed; inset: 0 auto 0 0;
    width: min(86vw, 280px);
    transform: translateX(-105%);
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1); z-index: 8;
    background: var(--elevated);
    backdrop-filter: blur(14px);
  }
  body.nav-open .side { transform: none; }
  .menu-btn { display: grid; }
  .split { grid-template-columns: 1fr; }
  .ticket-grid { grid-template-columns: 1fr; }
  .inbox { flex-direction: column; min-height: calc(100vh - 110px); }
  .inbox-side { width: 100%; max-height: 36vh; border-right: none; border-bottom: 1px solid var(--rule); }
  .chat-fab-wrap { bottom: 14px; right: 14px; }
  .stat .num { font-size: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hud-build > * { opacity: 1; transform: none; }
  .nav a.is-on, .nav-drop-btn.is-on { animation: none; }
  .stat { opacity: 1; transform: none; }
}

/* Public landing + CMS helpers */
/* Public site — senior landing */
.site-body {
  --site-ink: #0f1728;
  --site-mute: #5b6b82;
  --site-line: rgba(20, 40, 80, 0.1);
  --site-cyan: #0891b2;
  --site-cyan-bright: #11d6fd;
  --site-blue: #1d4ed8;
  --site-surface: rgba(255, 255, 255, 0.72);
  --site-pad: clamp(18px, 4vw, 56px);
  --site-display: "Syne", var(--display);
  --site-sans: "DM Sans", var(--sans);
  position: relative;
  min-height: 100vh;
  color: var(--site-ink);
  font-family: var(--site-sans);
  background:
    radial-gradient(1100px 520px at 8% -8%, rgba(17, 214, 253, 0.22), transparent 58%),
    radial-gradient(900px 480px at 92% 0%, rgba(37, 99, 235, 0.14), transparent 55%),
    linear-gradient(180deg, #f4f7fb 0%, #eef3f9 42%, #f7f9fc 100%);
  overflow-x: clip;
}
[data-theme="dark"] .site-body {
  --site-ink: #eef4ff;
  --site-mute: #9aa8bc;
  --site-line: rgba(255, 255, 255, 0.1);
  --site-surface: rgba(12, 18, 28, 0.78);
  background:
    radial-gradient(1100px 520px at 8% -8%, rgba(0, 255, 255, 0.1), transparent 58%),
    radial-gradient(900px 480px at 92% 0%, rgba(32, 128, 255, 0.12), transparent 55%),
    linear-gradient(180deg, #070b14 0%, #0a0e17 50%, #05070d 100%);
}
.site-atmosphere { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.site-orb {
  position: absolute; border-radius: 50%; filter: blur(40px);
  opacity: 0.55; animation: orbPulse 10s ease-in-out infinite;
}
.site-orb.o1 { width: 420px; height: 420px; top: -120px; left: -80px; background: rgba(17, 214, 253, 0.28); }
.site-orb.o2 { width: 360px; height: 360px; top: 20%; right: -100px; background: rgba(37, 99, 235, 0.18); animation-delay: -3s; }
.site-orb.o3 { width: 280px; height: 280px; bottom: 8%; left: 30%; background: rgba(8, 145, 178, 0.12); animation-delay: -6s; }
.site-nav, .site-hero, .site-band, .site-split, .site-close, .site-foot, .public-article { position: relative; z-index: 1; }

.site-nav {
  display: flex; align-items: center; gap: 20px;
  padding: 14px var(--site-pad);
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(18px);
  background: color-mix(in srgb, var(--site-surface) 94%, #fff);
  border-bottom: 1px solid var(--site-line);
}
[data-theme="dark"] .site-nav {
  background: color-mix(in srgb, var(--site-surface) 92%, #000);
}
.site-orb.o2 { width: 360px; height: 360px; top: 20%; right: -100px; background: rgba(37, 99, 235, 0.14); animation-delay: -3s; opacity: 0.4; }
.site-feat-ico svg { width: 18px; height: 18px; display: block; }
.site-logo {
  display: inline-flex; align-items: center; gap: 10px;
  color: inherit; text-decoration: none;
  font-family: var(--site-display); font-weight: 700; font-size: 1.12rem; letter-spacing: -0.02em;
}
.site-logo:hover { text-decoration: none; color: var(--site-cyan); }
.site-links { display: flex; gap: 18px; }
.site-links a { color: var(--site-mute); font-size: 14px; font-weight: 600; text-decoration: none; }
.site-links a:hover { color: var(--site-cyan); }
.site-nav-end { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.site-nav-link { color: var(--site-ink); font-weight: 650; font-size: 14px; text-decoration: none; }

.site-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px; border-radius: 14px;
  font-weight: 700; font-size: 14px; text-decoration: none; border: 0; cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}
.site-btn:hover { transform: translateY(-1px); text-decoration: none; }
.site-btn-sm { min-height: 38px; padding: 0 16px; border-radius: 12px; font-size: 13px; }
.site-btn-fill {
  color: #041018;
  background: linear-gradient(135deg, var(--site-cyan-bright), var(--site-blue));
  box-shadow: 0 16px 34px -16px rgba(8, 145, 178, 0.65);
}
.site-btn-line {
  color: var(--site-ink);
  background: var(--site-surface);
  border: 1.5px solid var(--site-line);
}
.site-btn-light {
  color: #041018; background: #fff;
  box-shadow: 0 14px 30px -16px rgba(0, 0, 0, 0.35);
}
.site-btn-ghost {
  color: #fff; background: transparent; border: 1.5px solid rgba(255,255,255,0.4);
}

.site-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  min-height: calc(100svh - 72px);
  padding: clamp(28px, 5vw, 64px) var(--site-pad) clamp(36px, 5vw, 56px);
}
.site-hero-copy { animation: rise 0.65s cubic-bezier(0.22, 1, 0.36, 1) both; }
.site-kicker {
  margin: 0 0 14px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--site-cyan);
}
.site-brand {
  margin: 0;
  font-family: var(--site-display);
  font-size: clamp(3rem, 8vw, 5.4rem);
  line-height: 0.92;
  letter-spacing: -0.045em;
  font-weight: 800;
}
.site-lede {
  margin: 18px 0 0;
  max-width: 22ch;
  font-family: var(--site-display);
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  line-height: 1.2;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: color-mix(in srgb, var(--site-ink) 78%, var(--site-cyan));
}
.site-sub {
  margin: 14px 0 0;
  max-width: 38ch;
  color: var(--site-mute);
  font-size: 1.05rem;
  line-height: 1.6;
}
.site-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.site-hero-stage { position: relative; min-height: 420px; }
.site-stage-glow {
  position: absolute; inset: 8% 4% 4% 8%;
  background: radial-gradient(circle at 50% 40%, rgba(17, 214, 253, 0.35), transparent 62%);
  filter: blur(18px);
  animation: orbPulse 8s ease-in-out infinite;
}
.site-stage-frame {
  position: absolute; inset: 0 0 0 6%;
  border-radius: 24px;
  border: 1px solid color-mix(in srgb, #fff 70%, var(--site-line));
  background: var(--site-surface);
  backdrop-filter: blur(18px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.7),
    0 30px 70px -36px rgba(20, 50, 100, 0.45);
  overflow: hidden;
  animation: rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}
[data-theme="dark"] .site-stage-frame {
  border-color: rgba(255,255,255,0.1);
  box-shadow: inset 0 1px 0 rgba(0,255,255,0.08), 0 30px 70px -30px rgba(0,0,0,0.7);
}
.site-stage-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--site-line);
}
.site-stage-bar span { width: 9px; height: 9px; border-radius: 50%; background: #ff5f57; }
.site-stage-bar span:nth-child(2) { background: #febc2e; }
.site-stage-bar span:nth-child(3) { background: #28c840; }
.site-stage-bar em {
  margin-left: auto; font-style: normal; font-size: 11px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--site-mute);
}
.site-stage-grid { display: grid; grid-template-columns: 54px 1fr; min-height: 340px; }
.site-stage-rail {
  display: grid; gap: 10px; align-content: start; padding: 16px 12px;
  border-right: 1px solid var(--site-line);
  background: color-mix(in srgb, var(--site-cyan) 6%, transparent);
}
.site-stage-rail i {
  display: block; width: 28px; height: 28px; margin: 0 auto; border-radius: 10px;
  background: color-mix(in srgb, var(--site-ink) 8%, transparent);
}
.site-stage-rail i.is-on {
  background: linear-gradient(135deg, var(--site-cyan-bright), var(--site-blue));
  box-shadow: 0 0 18px rgba(17, 214, 253, 0.35);
}
.site-stage-body { padding: 14px; display: grid; gap: 12px; align-content: start; }
.site-stage-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.site-stage-row article {
  padding: 10px; border-radius: 12px;
  background: color-mix(in srgb, #fff 80%, transparent);
  border: 1px solid var(--site-line);
  min-width: 0;
}
[data-theme="dark"] .site-stage-row article { background: rgba(255,255,255,0.04); }
.site-stage-row small { display: block; color: var(--site-mute); font-size: 11px; font-weight: 650; }
.site-stage-row strong {
  display: block; margin-top: 4px;
  font-family: var(--site-display); font-size: clamp(0.95rem, 1.4vw, 1.15rem); letter-spacing: -0.02em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.site-stage-panel {
  border-radius: 16px; border: 1px solid var(--site-line);
  background: color-mix(in srgb, #fff 70%, transparent);
  padding: 14px;
}
[data-theme="dark"] .site-stage-panel { background: rgba(255,255,255,0.03); }
.site-stage-panel header {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px;
}
.site-stage-panel header span {
  font-size: 11px; font-weight: 750; color: #059669;
  background: #d1fae5; padding: 3px 8px; border-radius: 999px;
}
[data-theme="dark"] .site-stage-panel header span { background: rgba(57,255,20,0.12); color: #39ff14; }
.site-stage-panel ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-stage-panel li {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--site-mute);
}
.site-stage-panel em {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
  background: var(--site-cyan); box-shadow: 0 0 0 4px rgba(17,214,253,0.15);
  font-style: normal;
}

.site-band { padding: clamp(48px, 8vw, 88px) var(--site-pad); }
.site-band-h { max-width: 560px; margin: 0 auto 36px; text-align: center; }
.site-band-h.is-left { margin-left: 0; text-align: left; }
.site-band-h h2 {
  margin: 0 0 12px;
  font-family: var(--site-display);
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  letter-spacing: -0.03em; line-height: 1.05;
}
.site-band-h p { margin: 0; color: var(--site-mute); font-size: 1.05rem; line-height: 1.55; }

.site-feats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px 22px;
}
.site-feats article { padding: 8px 4px 4px; border-top: 1.5px solid var(--site-line); }
.site-feat-ico {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px; margin: 16px 0 14px; border-radius: 12px;
  color: var(--site-cyan);
  background: color-mix(in srgb, var(--site-cyan) 12%, transparent);
}
.site-feats h3 {
  margin: 0 0 8px;
  font-family: var(--site-display);
  font-size: 1.2rem; letter-spacing: -0.02em;
}
.site-feats p { margin: 0; color: var(--site-mute); font-size: 14px; line-height: 1.55; }

.site-split {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(24px, 4vw, 48px);
  align-items: center;
  padding: 20px var(--site-pad) clamp(56px, 8vw, 96px);
}
.site-split-visual { position: relative; min-height: 360px; }
.site-split-card {
  position: absolute; inset: 8% 8% 8% 0;
  padding: 22px;
  border-radius: 24px;
  background: var(--site-surface);
  border: 1px solid var(--site-line);
  box-shadow: 0 28px 60px -34px rgba(20, 50, 100, 0.4);
  display: grid; gap: 12px; align-content: start;
  animation: rise 0.65s ease both 0.1s;
}
.site-split-top {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 4px;
}
.site-split-top span {
  font-size: 11px; font-weight: 750; color: var(--site-cyan);
  background: color-mix(in srgb, var(--site-cyan) 12%, transparent);
  padding: 4px 8px; border-radius: 999px;
}
.site-split-msg {
  max-width: 88%; padding: 11px 13px; border-radius: 14px;
  font-size: 13px; line-height: 1.4;
}
.site-split-msg.is-in { background: color-mix(in srgb, var(--site-ink) 6%, transparent); }
.site-split-msg.is-out {
  margin-left: auto; color: #041018;
  background: linear-gradient(135deg, var(--site-cyan-bright), var(--site-blue));
}
.site-split-msg.is-ai {
  border: 1px dashed color-mix(in srgb, var(--site-cyan) 45%, transparent);
  color: var(--site-mute); font-size: 12px;
}
.site-split-copy h2 {
  margin: 10px 0 12px;
  font-family: var(--site-display);
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  letter-spacing: -0.03em; line-height: 1.05;
}
.site-split-copy > p { color: var(--site-mute); line-height: 1.6; max-width: 42ch; }
.site-list {
  list-style: none; margin: 18px 0 24px; padding: 0; display: grid; gap: 10px;
}
.site-list li {
  position: relative; padding-left: 28px;
  color: var(--site-ink); font-weight: 600; font-size: 14px;
}
.site-list li::before {
  content: "";
  position: absolute; left: 0; top: 3px;
  width: 16px; height: 16px; border-radius: 50%;
  background: linear-gradient(135deg, var(--site-cyan-bright), var(--site-blue));
}

.site-posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.site-post {
  display: grid; gap: 12px; color: inherit; text-decoration: none;
  transition: transform 0.22s ease;
}
.site-post:hover { transform: translateY(-3px); text-decoration: none; }
.site-post img, .site-post-ph {
  width: 100%; height: 180px; object-fit: cover; border-radius: 18px;
  border: 1px solid var(--site-line);
}
.site-post-ph {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--site-cyan) 25%, transparent), transparent 60%),
    color-mix(in srgb, var(--site-blue) 12%, transparent);
}
.site-post b {
  display: block; margin-bottom: 6px;
  font-family: var(--site-display); font-size: 1.15rem; letter-spacing: -0.02em;
}
.site-post span { color: var(--site-mute); font-size: 14px; line-height: 1.45; }
.site-more { margin-top: 22px; }
.site-more a { color: var(--site-cyan); font-weight: 700; text-decoration: none; }

.site-close {
  margin: 8px var(--site-pad) 40px;
  padding: clamp(36px, 5vw, 56px);
  border-radius: 28px;
  color: #f4fbff;
  background:
    radial-gradient(800px 280px at 20% 0%, rgba(17, 214, 253, 0.35), transparent 55%),
    linear-gradient(135deg, #0b1220 0%, #123047 50%, #0a4d63 100%);
  box-shadow: 0 28px 60px -34px rgba(8, 80, 110, 0.55);
}
.site-close h2 {
  margin: 0 0 10px;
  font-family: var(--site-display);
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.03em;
  color: #f4fbff;
}
.site-close p { margin: 0; max-width: 46ch; opacity: 0.86; line-height: 1.55; color: #e8f6fc; }

.site-foot { padding: 40px var(--site-pad) 28px; }
.site-foot-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px;
  padding-bottom: 24px; border-bottom: 1px solid var(--site-line);
}
.site-foot p, .site-foot a { color: var(--site-mute); }
.site-foot a { display: block; text-decoration: none; margin: 7px 0; font-size: 14px; }
.site-foot a:hover { color: var(--site-cyan); }
.site-foot b { display: block; margin-bottom: 10px; color: var(--site-ink); font-size: 13px; }
.site-copy { margin: 16px 0 0; color: var(--site-mute); font-size: 12px; }

.public-article {
  max-width: 760px; margin: 0 auto;
  padding: 36px var(--site-pad) 48px;
}
.public-article h1 {
  font-family: var(--site-display);
  font-size: clamp(2rem, 4vw, 2.8rem); margin: 8px 0 12px; letter-spacing: -0.03em;
}
.public-article .lede { font-size: 1.1rem; color: var(--site-mute); }
.prose { line-height: 1.75; }
.prose img, .prose video { max-width: 100%; border-radius: 12px; height: auto; }
.prose iframe { max-width: 100%; border-radius: 12px; }
.prose p { margin: 0 0 0.9em; }
.article-cover { width: 100%; border-radius: 16px; margin: 12px 0 18px; max-height: 360px; object-fit: cover; }

@media (max-width: 980px) {
  .site-hero, .site-split, .site-foot-grid { grid-template-columns: 1fr; }
  .site-feats, .site-posts { grid-template-columns: 1fr 1fr; }
  .site-links { display: none; }
  .site-hero { min-height: auto; }
  .site-hero-stage, .site-split-visual { min-height: 320px; }
  .site-stage-frame { inset: 0; }
  .site-split-card { inset: 0; position: relative; }
}
@media (max-width: 640px) {
  .site-feats, .site-posts, .site-stage-row { grid-template-columns: 1fr; }
  .site-stage-grid { grid-template-columns: 1fr; }
  .site-stage-rail { display: none; }
}

.html-editor { border: 1px solid var(--input-border); border-radius: 12px; overflow: hidden; background: var(--elevated); }
.html-editor .ql-toolbar.ql-snow { border: 0; border-bottom: 1px solid var(--rule); background: var(--glass); }
.html-editor .ql-container.ql-snow { border: 0; font-family: var(--sans); font-size: 14px; }
.html-editor .ql-editor { min-height: 180px; }
.html-editor .ql-editor img, .html-editor .ql-editor video { max-width: 100%; }

.logo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 12px 0; }
.logo-preview { display: block; height: 48px; width: auto; margin: 8px 0; object-fit: contain; }
.tiny { font-size: 12px; }
.check-line, .inline-checks { display: flex; flex-wrap: wrap; gap: 12px; margin: 10px 0; font-size: 13px; }
.actions.tight { margin-bottom: 12px; }
.stack-form { display: grid; gap: 12px; margin-bottom: 8px; }
.sort-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sort-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 12px;
  border: 1px solid var(--rule); background: var(--elevated);
}
.sort-item.is-dragging { opacity: 0.55; border-color: var(--rule-strong); }
.sort-handle { cursor: grab; color: var(--ink-soft); letter-spacing: -2px; user-select: none; }
.sort-meta { flex: 1; min-width: 0; }
.sort-meta b { display: block; }
.sort-meta small { color: var(--ink-soft); }
.sort-actions { display: flex; gap: 6px; align-items: center; }
.drawer[hidden] { display: none !important; }
.drawer:not([hidden]) {
  position: fixed; inset: 0; z-index: 40;
  background: rgba(10, 14, 23, 0.45);
  display: grid; place-items: center; padding: 16px;
}
.edit-drawer { width: min(640px, 100%); display: grid; gap: 10px; max-height: 90vh; overflow: auto; }
.nav-count.is-empty { display: none; }

.panel-tabs {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin: 0 0 18px; padding: 4px;
  border-radius: 14px;
  background: var(--glass);
  border: 1px solid var(--rule);
}
.panel-tabs button {
  border: 0; background: transparent; cursor: pointer;
  min-height: 36px; padding: 0 14px; border-radius: 10px;
  font-weight: 700; font-size: 13px; color: var(--ink-soft);
  transition: background 0.2s, color 0.2s;
}
.panel-tabs button:hover { color: var(--ink); background: rgba(17, 214, 253, 0.08); }
.panel-tabs button.is-on {
  color: var(--ink);
  background: var(--elevated);
  box-shadow: var(--glass-shadow);
}
.panel-pane[hidden] { display: none !important; }

.site-social {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px;
}
.site-social a {
  display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 12px;
  color: var(--site-ink, var(--ink));
  background: color-mix(in srgb, var(--site-cyan, #0891b2) 12%, transparent);
  border: 1px solid var(--site-line, var(--rule));
  text-decoration: none;
  transition: transform 0.2s, background 0.2s, color 0.2s;
}
.site-social a:hover {
  transform: translateY(-1px);
  color: var(--site-cyan, #0891b2);
  text-decoration: none;
}
.site-social svg { width: 16px; height: 16px; display: block; }
.captcha-box { margin: 14px 0 6px; position: relative; z-index: 1; }
.captcha-box .g-recaptcha { transform-origin: left top; }

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

.social-auth { margin-top: 16px; }
.social-auth-or {
  display: flex; align-items: center; gap: 10px; margin: 0 0 12px;
  color: var(--ink-soft); font-size: 12px; font-weight: 650;
}
.social-auth-or::before, .social-auth-or::after {
  content: ""; flex: 1; height: 1px; background: var(--rule);
}
.social-auth-btns { display: grid; gap: 8px; }
.social-btn {
  border-radius: 12px;
  font-weight: 650;
}
.auth-card .req-list {
  list-style: none; margin: 8px 0 0; padding: 0;
  display: grid; gap: 4px;
}
.auth-card .req-list li {
  font-size: 12px; color: var(--auth-mute, var(--ink-soft));
  padding-left: 18px; position: relative;
}
.auth-card .req-list li::before {
  content: "";
  position: absolute; left: 0; top: 5px;
  width: 8px; height: 8px; border-radius: 50%;
  background: #d7dee8;
}
.auth-card .req-list li.is-ok { color: var(--ok); }
.auth-card .req-list li.is-ok::before { background: var(--ok); }
.oauth-link-box {
  margin-top: 12px; padding: 12px; border-radius: 12px;
  border: 1px solid var(--rule-strong); background: var(--glass);
}

.profile-gate {
  position: fixed; inset: 0; z-index: 80;
  display: grid; place-items: center; padding: 16px;
  background: rgba(8, 12, 24, 0.55);
  backdrop-filter: blur(10px);
  animation: dropIn 0.25s ease both;
}
.profile-gate-card {
  width: min(440px, 100%);
  padding: 22px;
  border-radius: 20px;
  border: 1px solid var(--rule-strong);
  background: var(--elevated);
  box-shadow: var(--glass-shadow), var(--glow-soft);
}
.profile-gate-card h2 { margin: 4px 0 8px; font-family: var(--display); }
.profile-gate .dial-row { display: grid; grid-template-columns: 120px 1fr; gap: 8px; }
.profile-gate .field em { color: var(--warn); font-style: normal; }


/* �� SMS catalog: import tree + services drill-down �� */
.sms-steps {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 16px;
}
.sms-step {
  font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--ink-soft); padding: 6px 10px; border-radius: 999px;
  border: 1px solid var(--rule); background: var(--glass);
}
.sms-step.is-on {
  color: var(--ink); border-color: rgba(17, 214, 253, 0.35);
  background: rgba(17, 214, 253, 0.08);
}
.sms-search {
  width: auto !important; min-width: 160px; max-width: 220px;
  height: 34px !important; min-height: 34px !important;
  padding: 0 10px !important; font-size: 13px;
}
.sms-tree-toolbar {
  display: flex; flex-wrap: wrap; gap: 10px;
  align-items: center; justify-content: space-between;
  margin: 8px 0 12px;
}
.sms-tree-toolbar strong { display: block; }
.sms-country-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 4px 10px;
  padding: 10px 12px;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--glass);
}
.sms-check-row,
.sms-check-inline,
.filter-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  color: var(--ink);
}
.sms-check-row { padding: 4px 2px; }
.sms-check-label { line-height: 1.2; }
.sms-check-inline { text-transform: none; letter-spacing: 0; }

.sms-tree { display: grid; gap: 8px; margin-top: 8px; }
.sms-tree-cols-head {
  display: grid;
  grid-template-columns: 16px 24px 36px minmax(140px, 1fr) 120px 120px minmax(200px, auto) auto;
  gap: 12px;
  align-items: center;
  padding: 6px 14px 8px;
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.sms-tree-cols-spacer { display: none; }
.sms-tree-cols-label { display: block; }
.sms-tree-cols-metric {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-content: flex-end;
}
.sms-tree-cols-actions { text-align: right; padding-right: 4px; }
.sms-sort-pair {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  vertical-align: middle;
}
.sms-sort-btn {
  display: grid;
  place-items: center;
  width: 16px;
  height: 12px;
  border-radius: 3px;
  color: var(--ink-soft);
  opacity: 0.45;
  text-decoration: none;
}
.sms-sort-btn:hover { opacity: 0.85; background: rgba(17, 214, 253, 0.12); }
.sms-sort-btn.is-on { opacity: 1; color: var(--accent, #0aa8c8); }
.sms-sort-asc,
.sms-sort-desc {
  display: block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
}
.sms-sort-asc { border-bottom: 5px solid currentColor; }
.sms-sort-desc { border-top: 5px solid currentColor; }
.sms-tree-country,
.sms-tree-platform {
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--elevated, var(--glass));
  overflow: hidden;
}
.sms-tree-platform { margin: 6px 10px; border-radius: 10px; }
.sms-tree-summary {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  padding: 12px 14px; cursor: pointer; list-style: none;
  user-select: none;
}
.sms-tree-summary::-webkit-details-marker { display: none; }
.sms-tree-summary-country {
  display: grid;
  grid-template-columns: 16px 24px 36px minmax(140px, 1fr) 120px 120px minmax(200px, auto) auto;
  gap: 12px;
  align-items: center;
  flex-wrap: nowrap;
}
.sms-tree-check { margin: 0; flex: 0 0 auto; }
.sms-tree-flag {
  width: 36px; height: 36px; border-radius: 10px; overflow: hidden;
  flex: 0 0 auto; display: grid; place-items: center;
  border: 1px solid var(--rule); background: #fff;
}
.sms-tree-flag img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sms-tree-flag .sms-flag-emoji { font-size: 18px; line-height: 1; }
.sms-tree-col {
  display: block;
  text-align: right;
  font-weight: 700;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  color: var(--ink, inherit);
}
.sms-tree-col-platforms,
.sms-tree-col-numbers { padding-right: 4px; }
.sms-tree-actions {
  display: flex; flex-wrap: wrap; gap: 4px; align-items: center;
  justify-content: flex-end;
  margin-left: 0;
}
.sms-tree-actions form { display: inline; margin: 0; }
.sms-tree-summary-plat { padding: 10px 12px; background: rgba(255,255,255,0.02); }
.sms-tree-title {
  font-weight: 700; font-size: 14px;
  display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.sms-tree-meta { color: var(--ink-soft); font-size: 12px; }
.sms-tree-hint {
  font-size: 11px; font-weight: 700; color: var(--ink-soft);
  letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap;
}
.sms-tree-body {
  padding: 0 0 10px;
  border-top: 1px solid var(--rule);
  background: rgba(17, 214, 253, 0.03);
}
.sms-tree-nested-tools { padding: 10px 12px 6px; }
.sms-tree-search { display: block; margin: 0; }
.sms-tree-search input {
  width: 100%; min-height: 40px; border-radius: 12px;
  border: 1px solid var(--rule); padding: 0 12px 0 38px;
  font: inherit; background: var(--elevated, #fff); color: inherit;
}
.sms-tree-platforms { padding: 0 4px 4px; display: grid; gap: 6px; }
.sms-tree-country > .sms-tree-summary .sms-numbers-chevron {
  width: 8px; height: 8px; flex: 0 0 auto;
  border-right: 2px solid var(--ink-soft);
  border-bottom: 2px solid var(--ink-soft);
  transform: rotate(-45deg);
  transition: transform 0.15s ease;
  margin: 0 2px 2px 0;
}
.sms-tree-country[open] > .sms-tree-summary .sms-numbers-chevron {
  transform: rotate(45deg); margin-top: 2px;
}
@media (max-width: 960px) {
  .sms-tree-cols-head { display: none; }
  .sms-tree-summary-country {
    display: flex;
    flex-wrap: wrap;
  }
  .sms-tree-col {
    text-align: left;
    font-size: 12px;
  }
  .sms-tree-col-platforms::before { content: "Platforms "; font-weight: 600; color: var(--ink-soft); }
  .sms-tree-col-numbers::before { content: "Numbers "; font-weight: 600; color: var(--ink-soft); }
}

/* Numbers page — platform accordion */
.sms-numbers-list {
  display: grid;
  gap: 8px;
  margin-top: 4px;
}
.sms-numbers-platform {
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--elevated, var(--glass));
  overflow: hidden;
}
.sms-numbers-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.sms-numbers-summary::-webkit-details-marker { display: none; }
.sms-numbers-chevron {
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--ink-soft);
  border-bottom: 2px solid var(--ink-soft);
  transform: rotate(-45deg);
  transition: transform 0.15s ease;
  flex: 0 0 auto;
  margin: 0 2px 2px 0;
}
.sms-numbers-platform[open] > .sms-numbers-summary .sms-numbers-chevron {
  transform: rotate(45deg);
  margin-top: 2px;
}
.sms-numbers-plat-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}
.sms-numbers-body {
  border-top: 1px solid var(--rule);
  background: rgba(17, 214, 253, 0.03);
}
.sms-numbers-loading,
.sms-numbers-empty {
  margin: 0;
  padding: 14px 16px;
}
.sms-numbers-table-wrap {
  overflow: auto;
  max-height: 420px;
}
.sms-numbers-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.sms-numbers-table th,
.sms-numbers-table td {
  padding: 8px 12px;
  text-align: left;
  border-bottom: 1px solid var(--rule);
  vertical-align: middle;
}
.sms-numbers-table th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  background: rgba(0,0,0,0.02);
  position: sticky;
  top: 0;
  z-index: 1;
}
.sms-numbers-table tr.is-muted { opacity: 0.55; }
.sms-numbers-table .sms-inline-form {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.sms-numbers-table .sms-inline-form input[type="number"] {
  width: 100px;
  min-height: 32px;
}

.sms-server-list {
  display: grid; gap: 2px;
  padding: 4px 10px 10px 36px;
  border-top: 1px solid var(--rule);
}
.sms-server-row {
  display: grid;
  grid-template-columns: 14px minmax(0, 1.4fr) minmax(0, 0.8fr) auto auto;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13px;
}
.sms-server-row:hover { background: rgba(17, 214, 253, 0.06); }
.sms-server-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sms-server-code { font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sms-server-cost, .sms-server-sell { white-space: nowrap; font-size: 12px; }

.sms-breadcrumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin: 4px 0 14px; font-size: 13px;
}
.sms-breadcrumb a { color: var(--cyan); text-decoration: none; font-weight: 600; }
.sms-breadcrumb a:hover { text-decoration: underline; }
.sms-cat-list { display: grid; gap: 6px; }
.sms-cat-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--glass);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.sms-cat-row:hover {
  border-color: rgba(17, 214, 253, 0.35);
  background: rgba(17, 214, 253, 0.06);
  transform: translateY(-1px);
}
.sms-cat-name { font-weight: 700; font-size: 15px; }
.sms-cat-meta { color: var(--ink-soft); font-size: 12px; text-align: right; }
.sms-cat-chev { color: var(--ink-soft); font-size: 16px; }
.sms-inline-form {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0;
}
.sms-inline-form input[type="number"] {
  width: 110px; max-width: 110px;
  height: 34px; min-height: 34px;
}
.sms-server-table tr.is-muted { opacity: 0.55; }
.sms-import-preview { margin-top: 12px; }
.sms-muted-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  max-height: 180px;
  overflow: auto;
  display: grid;
  gap: 4px;
  font-size: 13px;
}
.sms-muted-list li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(255,255,255,0.03);
}
.sms-muted-list li.is-muted { opacity: 0.45; pointer-events: none; }
.sms-muted-list li.is-new { opacity: 1; }
.sms-muted-list em { font-style: normal; font-size: 11px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.04em; }
.sms-flag-field {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sms-flag-upload {
  position: relative;
  display: block;
  width: 100%;
  max-width: 220px;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  border: 1.5px dashed rgba(17, 214, 253, 0.45);
  background:
    linear-gradient(180deg, rgba(17, 214, 253, 0.06), rgba(255,255,255,0.02));
  overflow: hidden;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.sms-flag-upload:hover,
.sms-flag-upload.is-drag {
  border-color: rgba(17, 214, 253, 0.85);
  background: rgba(17, 214, 253, 0.1);
  box-shadow: 0 0 0 3px rgba(17, 214, 253, 0.12);
}
.sms-flag-upload.has-image {
  border-style: solid;
  border-color: rgba(17, 214, 253, 0.35);
}
.sms-flag-upload.has-fallback {
  border-style: solid;
  border-color: rgba(17, 214, 253, 0.28);
}
.sms-flag-upload-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
  margin: 0;
  font-size: 0;
}
.sms-flag-upload-view {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  z-index: 1;
  pointer-events: none;
}
.sms-flag-upload-view img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 6px;
  display: block;
}
.sms-flag-upload-view img.is-fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.06);
}
.sms-flag-emoji {
  font-size: 1.85rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,0.12));
}
.sms-flag-upload-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  padding: 8px;
  color: var(--ink-soft);
}
.sms-flag-upload-placeholder strong {
  font-size: 13px;
  font-weight: 650;
  color: var(--ink, inherit);
}
.sms-flag-upload-placeholder em {
  font-style: normal;
  font-size: 11px;
  opacity: 0.85;
  line-height: 1.35;
}
.sms-flag-upload-clear {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  border: 0;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 650;
  cursor: pointer;
  background: rgba(8, 12, 24, 0.72);
  color: #fff;
}
.sms-flag-upload-clear:hover { background: rgba(200, 40, 60, 0.9); }
.sms-flag-upload--sm {
  width: 48px;
  max-width: none;
  min-width: 48px;
  height: 36px;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  margin: 0;
  flex: 0 0 auto;
}
.sms-flag-upload--sm .sms-flag-upload-view { padding: 2px; }
.sms-flag-upload--sm .sms-flag-emoji { font-size: 1.55rem; }
.sms-flag-upload--sm .sms-flag-upload-placeholder strong { font-size: 11px; }
.sms-flag-upload--sm .sms-flag-upload-placeholder em { display: none; }
.sms-flag-cell-wrap {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.sms-flag-remove { margin: 0; }
.sms-country-dialog {
  max-width: 480px;
  width: calc(100% - 32px);
  border: 1px solid var(--line, var(--rule));
  border-radius: 14px;
  padding: 0;
  background: var(--elevated, var(--glass, #fff));
  color: inherit;
  box-shadow: 0 24px 64px rgba(8, 12, 24, 0.28);
}
.sms-country-dialog::backdrop {
  background: rgba(8, 12, 24, 0.5);
  backdrop-filter: blur(4px);
}
.sms-country-dialog > form,
.sms-country-dialog > .sms-dialog-shell {
  display: flex;
  flex-direction: column;
  max-height: min(86vh, 720px);
}
.sms-dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px 0;
  flex-shrink: 0;
}
.sms-dialog-head > div:first-child {
  min-width: 0;
  flex: 1;
}
.sms-dialog-head h2 {
  margin: 0 0 4px;
  font-size: 1.25rem;
  line-height: 1.25;
}
.sms-dialog-head .muted {
  margin: 0;
  font-size: 13px;
  max-width: none;
}
.sms-dialog-head .actions {
  margin: 0;
  flex-shrink: 0;
}
.sms-dialog-body {
  padding: 14px 20px 20px;
  overflow: auto;
}
.sms-dialog-body > .actions {
  margin-top: 16px;
}
.sms-dialog-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 560px) {
  .sms-dialog-grid { grid-template-columns: 1fr; }
}
tr.is-muted-row { opacity: 0.5; }
/* Force native checkbox look on import page (never inherit text-input chrome) */
#import-run-form input[type="checkbox"].import-master,
#import-run-form input[type="checkbox"].import-check {
  -webkit-appearance: checkbox !important;
  appearance: checkbox !important;
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  min-height: 16px !important;
  max-width: 16px !important;
  max-height: 16px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: initial !important;
  border-radius: 3px !important;
  background: initial !important;
  box-shadow: none !important;
  transform: none !important;
  accent-color: #11d6fd !important;
  cursor: pointer !important;
  vertical-align: middle !important;
  flex: none !important;
}
#import-run-form .sms-select-all-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
@media (max-width: 720px) {
  .sms-server-row {
    grid-template-columns: 14px 1fr;
  }
  .sms-server-code, .sms-server-cost, .sms-server-sell { grid-column: 2; }
  .sms-cat-row { grid-template-columns: 1fr auto; }
  .sms-cat-meta { grid-column: 1 / -1; text-align: left; }
  .sms-tree-hint { display: none; }
}

/* SMS import progress modal */
.sms-progress-dialog {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: min(480px, calc(100vw - 32px));
  width: 100%;
}
.sms-progress-dialog::backdrop {
  background: rgba(8, 12, 24, 0.55);
  backdrop-filter: blur(6px);
}
.sms-progress-card {
  padding: 22px 22px 18px;
  border-radius: 16px;
  border: 1px solid var(--rule-strong, var(--rule));
  background: var(--elevated, var(--glass));
  box-shadow: var(--glass-shadow, 0 16px 40px rgba(0,0,0,0.25));
}
.sms-progress-card h3 { margin: 0 0 6px; font-size: 18px; }
.sms-progress-card > .muted { margin: 0 0 14px; font-size: 13px; }
.sms-progress-track {
  height: 10px;
  border-radius: 999px;
  background: rgba(127,140,160,0.18);
  overflow: hidden;
}
.sms-progress-fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan-bright, #11d6fd), var(--blue, #3b82f6));
  transition: width 0.35s ease;
}
.sms-progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 700;
}
.sms-progress-log {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  max-height: 160px;
  overflow: auto;
  font-size: 12px;
  color: var(--ink-soft);
}
.sms-progress-log li {
  padding: 4px 0;
  border-bottom: 1px solid var(--rule);
}
.sms-progress-log li.is-err { color: #c0392b; }

.sms-split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin: 14px 0;
}
.sms-side-card {
  padding: 16px 18px;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--glass);
}
.sms-side-card h3 { margin: 0 0 8px; font-size: 15px; }
.sms-stat-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}
.sms-stat-row--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 420px;
}
.sms-stat-row--5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
@media (max-width: 960px) {
  .sms-stat-row--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .sms-stat-row,
  .sms-stat-row--2,
  .sms-stat-row--5 { grid-template-columns: 1fr; max-width: none; }
}
.sms-stat {
  padding: 14px 16px;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--glass);
}
.sms-stat b { display: block; font-size: 22px; }
.sms-stat span { color: var(--ink-soft); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.sms-table-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--glass);
}
.sms-table-toolbar-start {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 14px;
}
.sms-row-count {
  font-weight: 700;
  font-size: 14px;
}
.sms-table-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.sms-table-toolbar-actions select {
  min-width: 180px;
  min-height: 40px;
}
.sms-platform-logo {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: 1.5px solid rgba(17, 214, 253, 0.28);
  background: linear-gradient(180deg, rgba(17, 214, 253, 0.06), rgba(255,255,255,0.02));
  overflow: hidden;
  flex: 0 0 auto;
}
.sms-platform-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.sms-platform-logo--sm {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}
.sms-platform-logo.has-image {
  border-style: solid;
  border-color: rgba(17, 214, 253, 0.35);
}
.sms-platform-logo-wrap {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.sms-platform-logo-upload {
  cursor: pointer;
}
.sms-platform-logo-upload .sms-flag-upload-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
  margin: 0;
  font-size: 0;
  width: 100%;
  height: 100%;
}
.sms-steps-olist { margin: 8px 0 0; padding-left: 18px; line-height: 1.7; }
.sms-steps-olist a { color: var(--cyan); font-weight: 600; }

/* �� User Buy Number desk �� */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
/* ── Buy Number Classic V1 ── */
.buy-v1 {
  --buy-teal: #0f766e;
  --buy-teal-soft: rgba(15, 118, 110, 0.1);
  --buy-amber: #f59e0b;
  --buy-amber-ink: #78350f;
  --buy-card-radius: 18px;
  display: grid;
  gap: 18px;
}
.buy-v1-head {
  display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 14px;
  padding: 2px 2px 0;
}
.buy-v1-kicker {
  margin: 0 0 6px; font-size: 11px; font-weight: 800;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--buy-teal);
}
.buy-v1-title {
  margin: 0 0 8px;
  font-size: clamp(1.45rem, 2.4vw, 1.9rem);
  font-weight: 800; letter-spacing: -0.03em; line-height: 1.15;
  color: color-mix(in srgb, var(--ink) 92%, #0f172a);
}
.buy-v1-sub {
  margin: 0; font-size: 13.5px; color: var(--ink-soft);
  max-width: 58ch; line-height: 1.5;
}
.buy-v1-sub strong { color: var(--ink); font-weight: 750; }
.buy-v1-layout-tabs {
  display: inline-flex; gap: 3px; padding: 4px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--elevated, #fff) 70%, #e2e8f0);
  border: 1px solid var(--rule);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
}
.buy-v1-layout-tab {
  appearance: none; border: 0; background: transparent; cursor: pointer;
  font: inherit; padding: 8px 16px; border-radius: 999px; font-size: 12px; font-weight: 750;
  letter-spacing: 0.01em; color: var(--ink-soft);
}
.buy-v1-layout-tab.is-on {
  background: var(--buy-teal); color: #fff;
  box-shadow: 0 4px 12px -4px rgba(15, 118, 110, 0.55);
}
.buy-v1-layout-tab.is-off { opacity: 0.55; cursor: not-allowed; }
.buy-v1-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1.3fr);
  gap: 18px;
  align-items: start;
}
.buy-v1-card {
  border: 1px solid color-mix(in srgb, var(--rule) 85%, transparent);
  border-radius: var(--buy-card-radius);
  background: var(--elevated, #fff);
  padding: 18px 18px 16px;
  min-width: 0;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 10px 28px -18px rgba(15, 40, 80, 0.18);
}
.buy-v1-orders { position: sticky; top: 14px; }
.buy-v1-step h3 {
  margin: 0 0 12px;
  font-size: 13px; font-weight: 800;
  letter-spacing: 0.01em;
  color: color-mix(in srgb, var(--ink) 88%, #334155);
}
.buy-v1-step + .buy-v1-step {
  margin-top: 20px; padding-top: 18px;
  border-top: 1px solid color-mix(in srgb, var(--rule) 90%, transparent);
}
.buy-v1-country-bar { display: flex; align-items: center; gap: 10px; }
.buy-country-picker { flex: 1; min-width: 0; position: relative; }
.buy-country-trigger {
  width: 100%; min-height: 48px; border-radius: 14px;
  border: 1px solid var(--rule);
  background: color-mix(in srgb, var(--elevated, #fff) 88%, #f8fafc);
  padding: 8px 40px 8px 10px;
  display: flex; align-items: center; gap: 10px;
  font: inherit; color: inherit; cursor: pointer; text-align: left;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.buy-country-trigger:hover {
  border-color: color-mix(in srgb, var(--buy-teal) 35%, var(--rule));
}
.buy-country-picker.is-open .buy-country-trigger,
.buy-country-trigger:focus,
.buy-country-trigger:focus-visible {
  outline: none;
  border-color: var(--buy-teal);
  box-shadow: 0 0 0 3px var(--buy-teal-soft);
  background: var(--elevated, #fff);
}
.buy-country-trigger .buy-fav {
  margin-left: auto;
  flex: 0 0 auto;
}
.buy-country-flag {
  width: 36px; height: 24px; border-radius: 4px; overflow: hidden;
  flex: 0 0 auto; display: grid; place-items: center;
  border: 1px solid var(--rule); background: #fff;
  aspect-ratio: 3 / 2;
}
.buy-country-flag img {
  width: 100%; height: 100%; object-fit: cover; object-position: center; display: block;
}
.buy-country-emoji { font-size: 16px; line-height: 1; }
.buy-country-label {
  display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1;
}
.buy-country-label strong {
  font-size: 14px; font-weight: 700; line-height: 1.2;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.buy-country-label .mono { font-size: 11px; }
.buy-country-chevron {
  position: absolute; right: 14px; top: 50%;
  width: 8px; height: 8px;
  border-right: 2px solid var(--ink-soft);
  border-bottom: 2px solid var(--ink-soft);
  transform: translateY(-60%) rotate(45deg);
  pointer-events: none;
  transition: transform 0.15s ease;
}
.buy-country-picker.is-open .buy-country-chevron {
  transform: translateY(-20%) rotate(225deg);
}
.buy-country-menu {
  position: absolute; z-index: 40; left: 0; right: 0; top: calc(100% + 6px);
  border: 1px solid var(--rule); border-radius: 14px;
  background: var(--elevated, #fff);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
  padding: 8px;
  display: none;
  gap: 6px;
}
.buy-country-picker.is-open .buy-country-menu {
  display: grid;
}
.buy-country-search { margin: 0; }
.buy-country-search input {
  min-height: 40px; border-radius: 12px; font-size: 13px;
}
.buy-country-list {
  max-height: 280px; overflow: auto;
  display: grid; gap: 2px;
  overscroll-behavior: contain;
}
.buy-country-option {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 8px 10px; border: 0; border-radius: 10px;
  background: transparent; font: inherit; color: inherit;
  cursor: pointer; text-align: left;
}
.buy-country-option:hover,
.buy-country-option:focus,
.buy-country-option:focus-visible {
  outline: none;
  background: color-mix(in srgb, var(--buy-teal) 10%, transparent);
}
.buy-country-option.is-active {
  background: color-mix(in srgb, var(--buy-teal) 16%, transparent);
}
.buy-country-option-main {
  display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1;
}
.buy-country-option-main strong {
  font-size: 13px; font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.buy-country-option-main .mono { font-size: 11px; }
.buy-country-option .buy-fav {
  margin-left: auto;
  flex: 0 0 auto;
  width: 30px; height: 30px; font-size: 15px;
}
.buy-country-heart { color: #e11d48; font-size: 13px; }
.buy-country-empty { margin: 0; padding: 10px; text-align: center; font-size: 13px; }
.buy-v1-country-select { flex: 1; min-width: 0; display: block; position: relative; }
.buy-v1-country-select::after {
  content: "";
  position: absolute; right: 14px; top: 50%;
  width: 8px; height: 8px;
  border-right: 2px solid var(--ink-soft);
  border-bottom: 2px solid var(--ink-soft);
  transform: translateY(-60%) rotate(45deg);
  pointer-events: none;
}
.buy-v1-country-select select {
  width: 100%; min-height: 46px; border-radius: 14px;
  border: 1px solid var(--rule);
  background: color-mix(in srgb, var(--elevated, #fff) 88%, #f8fafc);
  padding: 0 40px 0 14px;
  font: inherit; font-weight: 650; font-size: 14px;
  color: inherit; cursor: pointer;
  appearance: none; -webkit-appearance: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.buy-v1-country-select select:hover {
  border-color: color-mix(in srgb, var(--buy-teal) 35%, var(--rule));
}
.buy-v1-country-select select:focus {
  outline: none;
  border-color: var(--buy-teal);
  box-shadow: 0 0 0 3px var(--buy-teal-soft);
  background: var(--elevated, #fff);
}
.buy-v1-app-tools { display: grid; gap: 10px; margin-bottom: 6px; }
.buy-v1-search,
.buy-orders-search {
  position: relative; display: block;
}
.buy-search-ico {
  position: absolute; left: 13px; top: 50%;
  width: 14px; height: 14px;
  transform: translateY(-50%);
  border: 1.8px solid var(--ink-soft);
  border-radius: 50%;
  opacity: 0.55; pointer-events: none;
}
.buy-search-ico::after {
  content: "";
  position: absolute; right: -4px; bottom: -3px;
  width: 6px; height: 1.8px;
  background: var(--ink-soft);
  transform: rotate(45deg);
  border-radius: 1px;
}
.buy-v1-search input,
.buy-orders-search input {
  width: 100%; min-height: 44px; border-radius: 14px;
  border: 1px solid var(--rule);
  padding: 0 14px 0 38px;
  font: inherit; font-size: 13.5px;
  background: color-mix(in srgb, var(--elevated, #fff) 88%, #f8fafc);
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.buy-v1-search input:focus,
.buy-orders-search input:focus {
  outline: none;
  border-color: var(--buy-teal);
  box-shadow: 0 0 0 3px var(--buy-teal-soft);
  background: var(--elevated, #fff);
}
.buy-v1-search input::placeholder,
.buy-orders-search input::placeholder { color: color-mix(in srgb, var(--ink-soft) 80%, transparent); }
.buy-v1-sorts { display: flex; flex-wrap: wrap; gap: 7px; }
.buy-v1-sort {
  padding: 7px 14px; border-radius: 999px; font-size: 12px; font-weight: 750;
  color: var(--ink-soft); border: 1px solid var(--rule);
  text-decoration: none; background: transparent; cursor: pointer; font: inherit;
  transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease, transform 0.12s ease;
}
.buy-v1-sort:hover {
  color: var(--ink);
  border-color: color-mix(in srgb, var(--buy-teal) 40%, var(--rule));
  background: var(--buy-teal-soft);
}
.buy-v1-sort.is-on {
  background: linear-gradient(180deg, #fbbf24, var(--buy-amber));
  color: var(--buy-amber-ink);
  border-color: transparent;
  box-shadow: 0 4px 10px -4px rgba(245, 158, 11, 0.55);
}
.buy-v1-meta {
  margin: 4px 0 12px; font-size: 12px; font-weight: 600;
  color: var(--ink-soft);
}
.buy-v1-apps {
  display: grid; gap: 8px;
  max-height: min(56vh, 540px);
  overflow: auto;
  padding: 2px 4px 4px 1px;
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--buy-teal) 35%, #cbd5e1) transparent;
}
.buy-v1-apps::-webkit-scrollbar { width: 6px; }
.buy-v1-apps::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--buy-teal) 35%, #cbd5e1);
  border-radius: 999px;
}
.buy-platform {
  border: 1px solid color-mix(in srgb, var(--rule) 92%, transparent);
  border-radius: 14px;
  background: var(--elevated, #fff);
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.buy-platform:hover {
  border-color: color-mix(in srgb, var(--buy-teal) 28%, var(--rule));
  box-shadow: 0 6px 16px -12px rgba(15, 40, 80, 0.28);
}
.buy-platform[open] {
  border-color: color-mix(in srgb, var(--buy-teal) 45%, var(--rule));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--buy-teal) 18%, transparent),
              0 10px 24px -14px rgba(15, 118, 110, 0.35);
}
.buy-platform-summary {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 12px; cursor: pointer; list-style: none; user-select: none;
}
.buy-platform-summary::-webkit-details-marker { display: none; }
.buy-plat-logo {
  width: 42px; height: 42px; border-radius: 12px; overflow: hidden;
  flex: 0 0 auto;
  border: 1px solid color-mix(in srgb, var(--rule) 80%, transparent);
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}
.buy-plat-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.buy-plat-main { flex: 1; min-width: 0; display: grid; gap: 3px; }
.buy-plat-title { display: flex; align-items: center; gap: 6px; min-width: 0; }
.buy-plat-title strong {
  font-size: 14px; font-weight: 750;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.buy-flame { font-size: 13px; line-height: 1; filter: drop-shadow(0 1px 1px rgba(0,0,0,0.12)); }
.buy-plat-sub { font-size: 12px; font-weight: 550; }
.buy-chevron {
  width: 8px; height: 8px; flex: 0 0 auto;
  border-right: 2px solid var(--ink-soft);
  border-bottom: 2px solid var(--ink-soft);
  transform: rotate(45deg);
  margin: 0 4px 4px 0;
  opacity: 0.55;
  transition: transform 0.18s ease, opacity 0.18s ease;
}
.buy-platform[open] > .buy-platform-summary .buy-chevron {
  transform: rotate(-135deg); margin-bottom: 0; margin-top: 4px; opacity: 0.85;
}
.buy-platform-body {
  border-top: 1px solid color-mix(in srgb, var(--rule) 90%, transparent);
  background: linear-gradient(180deg, var(--buy-teal-soft), transparent 120%);
  padding: 10px;
  display: grid; gap: 6px;
}
.buy-sku-list { display: grid; gap: 6px; }
.buy-sku-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px; align-items: center;
  padding: 10px 12px; border-radius: 12px;
  background: var(--elevated, #fff);
  border: 1px solid color-mix(in srgb, var(--rule) 70%, transparent);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03);
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}
.buy-sku-row:hover {
  border-color: color-mix(in srgb, var(--buy-teal) 35%, var(--rule));
  box-shadow: 0 6px 14px -10px rgba(15, 118, 110, 0.35);
}
.buy-sku-meta { min-width: 0; display: grid; gap: 2px; }
.buy-sku-meta strong {
  font-size: 13px; font-weight: 700;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.buy-sku-price {
  font-size: 13px; font-weight: 800; white-space: nowrap;
  color: color-mix(in srgb, var(--ink) 90%, #0f172a);
  font-variant-numeric: tabular-nums;
}
[data-theme="dark"] .buy-sku-price { color: #e2e8f0; }
.buy-sku-buy { margin: 0; }
.buy-sku-buy .btn {
  background: var(--buy-teal); border-color: var(--buy-teal); color: #fff;
  font-weight: 750; font-size: 12px; border-radius: 999px;
  min-height: 34px; padding: 0 16px;
  box-shadow: 0 4px 10px -4px rgba(15, 118, 110, 0.55);
  transition: filter 0.12s ease, transform 0.12s ease;
}
.buy-sku-buy .btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.buy-empty { margin: 10px 0 0; }
.buy-orders-head {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 14px;
}
.buy-orders-head h3 {
  margin: 0; font-size: 15px; font-weight: 800; letter-spacing: -0.01em;
}
.buy-orders-search { flex: 1; min-width: 170px; max-width: 280px; }
.buy-status-tabs {
  display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 12px;
}
.buy-status-tab {
  padding: 7px 13px; border-radius: 999px; font-size: 12px; font-weight: 700;
  color: var(--ink-soft); border: 1px solid var(--rule); text-decoration: none;
  background: transparent;
  transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
}
.buy-status-tab span { font-weight: 800; opacity: 0.85; }
.buy-status-tab:hover {
  color: var(--ink);
  border-color: color-mix(in srgb, var(--buy-teal) 40%, var(--rule));
  background: var(--buy-teal-soft);
}
.buy-status-tab.is-on {
  color: #fff; background: var(--buy-teal); border-color: transparent;
  box-shadow: 0 4px 12px -4px rgba(15, 118, 110, 0.5);
}
.buy-live-note {
  margin: 0 0 12px; font-size: 12px; line-height: 1.4;
  padding: 8px 11px; border-radius: 10px;
  background: var(--buy-teal-soft);
  color: color-mix(in srgb, var(--buy-teal) 70%, var(--ink-soft));
  border: 1px solid color-mix(in srgb, var(--buy-teal) 18%, transparent);
}
.buy-orders-empty { text-align: center; padding: 52px 16px 40px; }
.buy-orders-empty-ico {
  width: 58px; height: 58px; margin: 0 auto 14px; border-radius: 18px;
  border: 1.5px dashed color-mix(in srgb, var(--buy-teal) 35%, var(--rule));
  background: linear-gradient(145deg, var(--buy-teal-soft), transparent 65%);
}
.buy-orders-empty p { margin: 0 0 4px; }
.buy-orders-table-wrap {
  overflow: auto;
  border: 1px solid color-mix(in srgb, var(--rule) 85%, transparent);
  border-radius: 14px;
}
.buy-orders-table {
  width: 100%; border-collapse: collapse; font-size: 13px;
}
.buy-orders-table th,
.buy-orders-table td {
  padding: 12px 10px; text-align: left;
  border-bottom: 1px solid color-mix(in srgb, var(--rule) 88%, transparent);
  vertical-align: middle;
  white-space: nowrap;
}
.buy-orders-table td:nth-child(2),
.buy-orders-table th:nth-child(2) {
  white-space: normal;
  min-width: 110px;
}
.buy-orders-table tr:last-child td { border-bottom: 0; }
.buy-orders-table tbody tr {
  transition: background 0.12s ease;
}
.buy-orders-table tbody tr:hover {
  background: color-mix(in srgb, var(--buy-teal-soft) 55%, transparent);
}
.buy-orders-table th {
  font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--ink-soft); font-weight: 800;
  background: color-mix(in srgb, var(--elevated, #fff) 70%, #f1f5f9);
  position: sticky; top: 0; z-index: 1;
}
.buy-order-app { display: grid; gap: 2px; }
.buy-order-app strong { font-size: 13px; font-weight: 750; }
.buy-order-app .muted { font-size: 11.5px; text-transform: capitalize; }
.buy-order-num { display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; }
.buy-phone-ico {
  width: 28px; height: 28px; flex: 0 0 auto; border-radius: 9px;
  background: rgba(34, 197, 94, 0.14);
  border: 1px solid rgba(34, 197, 94, 0.28);
  position: relative;
}
.buy-phone-ico::before {
  content: "";
  position: absolute; inset: 7px;
  border: 1.7px solid #16a34a;
  border-radius: 3px 3px 4px 4px;
  transform: rotate(-18deg);
}
.buy-phone-text { font-weight: 700; font-size: 13px; white-space: nowrap; }
.buy-cost { font-weight: 700; font-variant-numeric: tabular-nums; }
.buy-time-mute { color: var(--ink-soft); }
.buy-otp {
  display: inline-flex; align-items: center;
  padding: 5px 10px; border-radius: 9px;
  background: #fef3c7;
  border: 1px solid #fbbf24;
  font-weight: 800; color: #92400e; letter-spacing: 0.05em;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.5);
}
[data-theme="dark"] .buy-otp {
  background: rgba(251, 191, 36, 0.18); color: #fde68a; border-color: rgba(251, 191, 36, 0.45);
}
.buy-otp-wait { letter-spacing: 0.18em; font-weight: 700; }
.buy-copy {
  border: 0; background: transparent; color: var(--buy-teal);
  font-size: 14px; font-weight: 700; cursor: pointer; padding: 2px 4px; line-height: 1;
  border-radius: 6px;
}
.buy-copy:hover { background: var(--buy-teal-soft); }
.buy-pill {
  display: inline-flex; align-items: center;
  padding: 5px 11px; border-radius: 999px;
  font-size: 10px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase;
}
.buy-pill.is-active { background: rgba(34, 197, 94, 0.16); color: #15803d; }
.buy-pill.is-done { background: rgba(34, 197, 94, 0.16); color: #15803d; }
.buy-pill.is-cancel { background: rgba(148, 163, 184, 0.28); color: #475569; }
.buy-pill.is-expired { background: rgba(248, 113, 113, 0.16); color: #b91c1c; }
[data-theme="dark"] .buy-pill.is-active,
[data-theme="dark"] .buy-pill.is-done { color: #86efac; }
[data-theme="dark"] .buy-pill.is-cancel { color: #cbd5e1; }
[data-theme="dark"] .buy-pill.is-expired { color: #fca5a5; }
.buy-order-actions { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.buy-icon-btn {
  display: inline-grid; place-items: center;
  width: 32px; height: 32px; border-radius: 10px;
  border: 1px solid var(--rule);
  background: color-mix(in srgb, var(--elevated, #fff) 80%, #f8fafc);
  color: var(--ink-soft);
  text-decoration: none; font-weight: 800; font-size: 13px;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}
.buy-icon-btn:hover {
  color: var(--buy-teal);
  border-color: color-mix(in srgb, var(--buy-teal) 35%, var(--rule));
  background: var(--buy-teal-soft);
}
.buy-icon-btn.is-danger { color: #dc2626; }
.buy-icon-btn.is-danger:hover {
  background: rgba(248, 113, 113, 0.12);
  border-color: rgba(248, 113, 113, 0.35);
  color: #b91c1c;
}
.buy-icon-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.buy-fav {
  flex: 0 0 auto;
  width: 34px; height: 34px;
  border: 0; border-radius: 10px;
  background: transparent;
  color: color-mix(in srgb, var(--ink-soft) 75%, #94a3b8);
  cursor: pointer;
  font-size: 17px; line-height: 1;
  transition: color 0.12s ease, transform 0.12s ease, background 0.12s ease;
}
.buy-fav:hover { color: #eab308; background: rgba(234, 179, 8, 0.1); transform: scale(1.06); }
.buy-fav.is-on { color: #eab308; }
.buy-platform-summary .buy-fav { margin-left: auto; }
.buy-time-hot { color: #dc2626; font-weight: 800; font-variant-numeric: tabular-nums; }
.buy-load-more-wrap {
  display: grid; gap: 8px; justify-items: stretch;
  margin-top: 18px; padding: 4px 0 2px;
}
.buy-load-more,
.rent-more {
  width: 100%;
  min-height: 44px;
  border-radius: 999px !important;
  background: transparent !important;
  border: 1px solid color-mix(in srgb, var(--rule) 92%, #94a3b8) !important;
  color: color-mix(in srgb, var(--ink) 78%, #64748b) !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  box-shadow: none !important;
  letter-spacing: 0;
  transition: border-color 0.12s ease, background 0.12s ease, color 0.12s ease;
}
.buy-load-more:hover,
.rent-more:hover {
  background: color-mix(in srgb, var(--elevated, #fff) 70%, #f1f5f9) !important;
  border-color: color-mix(in srgb, var(--rule) 70%, #64748b) !important;
  color: var(--ink) !important;
}
.buy-load-more:disabled,
.rent-more:disabled {
  opacity: 0.65;
  cursor: wait;
}
.buy-load-hint { margin: 0; font-size: 12px; text-align: center; }
.buy-sku-loading,
.buy-sku-empty { margin: 0; padding: 12px 10px; font-size: 13px; }

/* ── Buy Number — all flows (Temp/Rent, V1/V2, rentals) ── */
.buy-v1-layout-tab { text-decoration: none; }
.buy-v1-layout-tab:not(.is-on):hover { color: var(--ink); text-decoration: none; }
.buy-step-no {
  display: inline-grid; place-items: center;
  width: 22px; height: 22px; margin-right: 6px; border-radius: 50%;
  font-size: 11px; font-weight: 800;
  background: var(--buy-teal-soft); color: var(--buy-teal);
  border: 1px solid color-mix(in srgb, var(--buy-teal) 22%, transparent);
  vertical-align: middle;
}
.buy-v1-step h3 { display: flex; align-items: center; flex-wrap: wrap; gap: 2px; }
.buy-mode {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  padding: 4px; margin-bottom: 18px; border-radius: 14px;
  background: color-mix(in srgb, var(--elevated, #fff) 60%, #eef2f6);
  border: 1px solid var(--rule);
}
.buy-mode-btn {
  display: grid; place-items: center; min-height: 38px; border-radius: 10px;
  font-size: 13px; font-weight: 750; color: var(--ink-soft); text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.buy-mode-btn:hover { color: var(--ink); text-decoration: none; }
.buy-mode-btn.is-on {
  background: var(--elevated, #fff); color: var(--ink);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 4px 12px -6px rgba(15, 40, 80, 0.25);
}
.buy-v2-tools { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; margin-bottom: 10px; }
.buy-sort-select { position: relative; display: block; }
.buy-sort-select select {
  min-height: 44px; border-radius: 14px; border: 1px solid var(--rule);
  padding: 0 32px 0 12px; font: inherit; font-size: 12.5px; font-weight: 700;
  background: color-mix(in srgb, var(--elevated, #fff) 88%, #f8fafc); color: inherit;
  appearance: none; -webkit-appearance: none; cursor: pointer;
}
.buy-sort-select::after {
  content: ""; position: absolute; right: 13px; top: 50%;
  width: 6px; height: 6px; pointer-events: none;
  border-right: 2px solid var(--ink-soft); border-bottom: 2px solid var(--ink-soft);
  transform: translateY(-65%) rotate(45deg);
}
.buy-sort-select select:focus { outline: none; border-color: var(--buy-teal); box-shadow: 0 0 0 3px var(--buy-teal-soft); }
.buy-flag-round {
  width: 26px; height: 26px; flex: 0 0 auto; border-radius: 50%; overflow: hidden;
  display: inline-grid; place-items: center;
  border: 1px solid color-mix(in srgb, var(--rule) 90%, transparent);
  background: #f1f5f9; font-size: 13px; line-height: 1;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}
.buy-flag-round img { width: 100%; height: 100%; object-fit: cover; display: block; }
.buy-flag-round.is-sm { width: 20px; height: 20px; font-size: 10px; }
.buy-v2-country-list, .rent-list {
  display: grid; gap: 6px;
  max-height: min(52vh, 460px); overflow: auto;
  padding: 2px 4px 4px 1px;
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--buy-teal) 35%, #cbd5e1) transparent;
}
.buy-v2-country, .rent-item {
  display: flex; align-items: center; gap: 10px;
  min-height: 46px; padding: 8px 10px 8px 12px; border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--rule) 92%, transparent);
  background: var(--elevated, #fff);
  cursor: pointer; user-select: none;
  transition: border-color 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}
.buy-v2-country:hover, .rent-item:hover,
.buy-v2-country:focus-visible, .rent-item:focus-visible {
  outline: none;
  border-color: color-mix(in srgb, var(--buy-teal) 35%, var(--rule));
  box-shadow: 0 6px 14px -10px rgba(15, 118, 110, 0.35);
}
.buy-v2-country.is-active {
  border-color: var(--buy-teal);
  background: color-mix(in srgb, var(--buy-teal) 7%, var(--elevated, #fff));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--buy-teal) 30%, transparent);
}
.buy-v2-country strong, .rent-item-name {
  flex: 1; min-width: 0; font-size: 13.5px; font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.buy-v2-country .buy-fav, .rent-item .buy-fav { width: 30px; height: 30px; font-size: 15px; }
.rent-item .buy-fav.is-on, .buy-v2-country .buy-fav.is-on { color: var(--buy-teal); }
.rent-item .buy-plat-logo { width: 32px; height: 32px; border-radius: 50%; }
.rent-item-price {
  display: grid; justify-items: end; min-width: 56px;
  font-size: 13.5px; font-weight: 800; color: var(--buy-teal);
  font-variant-numeric: tabular-nums;
}
.rent-item-price small { font-size: 10px; font-weight: 650; color: var(--ink-soft); line-height: 1; }
.rent-meta-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin: 10px 0; font-size: 12px; font-weight: 650;
}
.rent-meta-row .buy-sort-select select { min-height: 34px; border-radius: 999px; }
.rent-picked {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px 8px 12px; border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--buy-teal) 28%, var(--rule));
  background: color-mix(in srgb, var(--buy-teal) 6%, var(--elevated, #fff));
}
.rent-picked[hidden] { display: none; }
.rent-picked .buy-plat-logo { width: 30px; height: 30px; border-radius: 50%; }
.rent-picked strong { flex: 1; min-width: 0; font-size: 14px; }
.rent-clear {
  width: 28px; height: 28px; border: 0; border-radius: 8px; cursor: pointer;
  background: transparent; color: var(--ink-soft); font-size: 18px; line-height: 1;
}
.rent-clear:hover { background: rgba(248, 113, 113, 0.12); color: #b91c1c; }
.rent-step-for { font-weight: 650; margin-left: 4px; }
.rent-more, .rent-buy {
  border-radius: 999px !important; font-weight: 750 !important;
}
.rent-buy {
  background: var(--buy-teal) !important;
  border-color: var(--buy-teal) !important;
  color: #fff !important;
}
.rent-plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.rent-plan {
  display: grid; gap: 3px; justify-items: center;
  padding: 11px 8px; border-radius: 12px; cursor: pointer;
  border: 1px solid var(--rule); background: var(--elevated, #fff);
  font: inherit; color: inherit;
  transition: border-color 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}
.rent-plan strong { font-size: 13px; }
.rent-plan span { font-size: 12.5px; font-weight: 800; color: var(--buy-teal); }
.rent-plan:hover { border-color: color-mix(in srgb, var(--buy-teal) 40%, var(--rule)); }
.rent-plan.is-on {
  border-color: var(--buy-teal);
  background: color-mix(in srgb, var(--buy-teal) 8%, var(--elevated, #fff));
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--buy-teal) 22%, transparent);
}
.rent-summary {
  display: flex; align-items: center; justify-content: space-between;
  margin: 14px 0 10px; padding: 10px 12px; border-radius: 12px;
  background: color-mix(in srgb, var(--elevated, #fff) 60%, #f1f5f9);
  font-size: 13px; font-weight: 650;
}
.rent-summary strong { font-size: 16px; }
.rent-buy {
  width: 100%; min-height: 44px;
  background: var(--buy-teal) !important; border-color: var(--buy-teal) !important; color: #fff !important;
  box-shadow: 0 6px 14px -6px rgba(15, 118, 110, 0.55);
}
.rent-buy:disabled { opacity: 0.5; cursor: not-allowed; box-shadow: none; }
.rent-fine { margin: 8px 0 0; font-size: 11.5px; text-align: center; }
.buy-right { display: grid; gap: 12px; min-width: 0; align-content: start; }
.buy-right .buy-v1-orders { position: static; }
.buy-rates { padding: 0; }
.buy-rates > summary {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 18px; cursor: pointer; list-style: none; user-select: none;
  font-size: 14px;
}
.buy-rates > summary::-webkit-details-marker { display: none; }
.buy-rates > summary .muted { font-size: 12px; font-weight: 600; }
.buy-rates > summary .buy-chevron { margin-left: auto; }
.buy-rates[open] > summary .buy-chevron { transform: rotate(-135deg); margin-top: 4px; margin-bottom: 0; }
.buy-rates-empty { margin: 0; padding: 0 18px 16px; font-size: 13px; }
.buy-rates-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px;
  padding: 0 18px 16px;
}
.buy-rate {
  position: relative; display: flex; align-items: center; gap: 8px;
  padding: 9px 10px 12px; border-radius: 12px; overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--rule) 90%, transparent);
  font-size: 13px;
}
.buy-rate-name { flex: 1; min-width: 0; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.buy-rate strong { color: var(--buy-teal); font-size: 12.5px; }
.buy-rate-bar {
  position: absolute; left: 0; bottom: 0; height: 3px; width: var(--w, 0%);
  background: linear-gradient(90deg, #14b8a6, var(--buy-teal));
}
.buy-otabs { display: inline-flex; gap: 4px; justify-self: start; }
.buy-otab {
  border: 1px solid var(--rule); background: color-mix(in srgb, var(--elevated, #fff) 70%, #eef2f6);
  border-radius: 10px; padding: 7px 14px; cursor: pointer;
  font: inherit; font-size: 12.5px; font-weight: 700; color: var(--ink-soft);
}
.buy-otab.is-on {
  background: var(--elevated, #fff); color: var(--ink);
  border-color: color-mix(in srgb, var(--buy-teal) 30%, var(--rule));
  box-shadow: 0 4px 12px -8px rgba(15, 40, 80, 0.35);
}
.buy-orders-tools { display: flex; align-items: center; gap: 8px; flex: 1; justify-content: flex-end; min-width: 0; }
.buy-orders-tools .buy-orders-search input { min-height: 38px; border-radius: 12px; }
.buy-csv {
  min-height: 38px; padding: 0 12px; border-radius: 12px; cursor: pointer;
  border: 1px solid var(--rule); background: var(--elevated, #fff);
  font: inherit; font-size: 12px; font-weight: 750; color: var(--ink-soft); white-space: nowrap;
}
.buy-csv:hover:not(:disabled) { color: var(--buy-teal); border-color: color-mix(in srgb, var(--buy-teal) 35%, var(--rule)); }
.buy-csv:disabled { opacity: 0.5; cursor: not-allowed; }
button.buy-status-tab { font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.buy-order-app { display: flex; align-items: center; gap: 9px; }
.buy-order-app-main { display: grid; gap: 2px; min-width: 0; }
.buy-app-ico {
  width: 26px; height: 26px; flex: 0 0 auto; border-radius: 50%; overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--rule) 80%, transparent); background: #fff;
}
.buy-app-ico img { width: 100%; height: 100%; object-fit: cover; display: block; }
.buy-cost s { color: var(--ink-soft); font-weight: 600; }
.buy-refunded { font-size: 10.5px; font-weight: 750; color: #16a34a; font-family: var(--sans); }
.buy-orders-foot { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--rule); text-align: right; font-size: 12.5px; font-weight: 700; }
.buy-orders-foot a { color: var(--buy-teal); text-decoration: none; }
.buy-orders-table tr[hidden] { display: none; }

@media (max-width: 820px) {
  .buy-v1-grid { grid-template-columns: 1fr; }
  .buy-v1-orders { position: static; }
  .buy-v1-apps, .buy-v2-country-list, .rent-list { max-height: none; }
  .buy-sku-row { grid-template-columns: minmax(0, 1fr) auto; }
  .buy-sku-buy { grid-column: 1 / -1; }
  .buy-sku-buy .btn { width: 100%; }
  .buy-orders-tools { justify-content: flex-start; }
}

/* �� Public home � SMS product landing �� */
.home-phone {
  position: absolute; inset: 8% 12% 6% 18%;
  border-radius: 28px;
  border: 2px solid color-mix(in srgb, var(--site-ink) 18%, transparent);
  background: linear-gradient(165deg, #0b1220 0%, #152238 100%);
  box-shadow: 0 40px 80px -40px rgba(15, 40, 80, 0.55);
  overflow: hidden;
  animation: rise 0.75s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.home-phone-notch {
  width: 38%; height: 14px; margin: 10px auto 0; border-radius: 0 0 12px 12px;
  background: rgba(0,0,0,0.45);
}
.home-phone-screen { padding: 18px 14px 16px; color: #e8eef8; }
.home-phone-screen small {
  display: block; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(232, 238, 248, 0.55); margin-bottom: 8px;
}
.home-sms-card {
  border-radius: 14px; padding: 12px 12px 10px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 8px;
}
.home-sms-card b { display: block; font-size: 13px; margin-bottom: 4px; }
.home-sms-card span { font-size: 12px; color: rgba(232, 238, 248, 0.72); line-height: 1.4; }
.home-sms-card .home-otp {
  display: inline-block; margin-top: 8px;
  padding: 4px 8px; border-radius: 8px;
  background: rgba(251, 146, 60, 0.25); color: #fdba74; font-weight: 700; font-size: 14px;
  letter-spacing: 0.08em;
}
.home-pills {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px;
}
.home-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; border-radius: 999px;
  border: 1px solid var(--site-line);
  background: color-mix(in srgb, #fff 70%, transparent);
  font-size: 12px; font-weight: 650; color: var(--site-mute);
}
.home-pill i {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--site-cyan); display: inline-block;
}
.home-services {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 12px;
}
.home-service {
  display: grid; justify-items: center; gap: 8px; text-align: center;
  padding: 16px 10px; border-radius: 16px;
  border: 1px solid var(--site-line);
  background: color-mix(in srgb, #fff 78%, transparent);
  text-decoration: none; color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.home-service:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px -24px rgba(15, 40, 80, 0.45);
}
.home-service img {
  width: 44px; height: 44px; border-radius: 12px; object-fit: cover;
  border: 1px solid var(--site-line); background: #fff;
}
.home-service strong { font-size: 12px; }
.home-routes {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px;
}
.home-route {
  position: relative;
  padding: 22px 18px 20px; border-radius: 18px;
  border: 1px solid var(--site-line);
  background: color-mix(in srgb, #fff 80%, transparent);
  display: grid; gap: 10px; align-content: start;
}
.home-route.is-hot {
  border-color: color-mix(in srgb, var(--site-cyan) 50%, var(--site-line));
  box-shadow: 0 20px 40px -30px rgba(8, 145, 178, 0.55);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--site-cyan) 10%, #fff), color-mix(in srgb, #fff 88%, transparent));
}
.home-route-badge {
  position: absolute; top: 12px; right: 12px;
  font-size: 10px; font-weight: 750; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 4px 8px; border-radius: 999px;
  background: var(--site-cyan); color: #041018;
}
.home-route h3 { margin: 0; font-size: 1.15rem; }
.home-route p { margin: 0; color: var(--site-mute); font-size: 14px; line-height: 1.5; }
.home-route ul { margin: 4px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.home-route li {
  font-size: 13px; color: var(--site-ink);
  padding-left: 18px; position: relative;
}
.home-route li::before {
  content: ""; position: absolute; left: 0; top: 7px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--site-cyan);
}
.home-faq { display: grid; gap: 8px; max-width: 760px; margin: 0 auto; }
.home-faq details {
  border: 1px solid var(--site-line);
  border-radius: 14px;
  background: color-mix(in srgb, #fff 78%, transparent);
  overflow: hidden;
}
.home-faq summary {
  list-style: none; cursor: pointer; user-select: none;
  padding: 16px 18px; font-weight: 700; font-size: 15px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.home-faq summary::-webkit-details-marker { display: none; }
.home-faq summary::after {
  content: ""; width: 8px; height: 8px; flex: 0 0 auto;
  border-right: 2px solid var(--site-mute);
  border-bottom: 2px solid var(--site-mute);
  transform: rotate(45deg); transition: transform 0.15s ease;
}
.home-faq details[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.home-faq-body {
  padding: 0 18px 16px; color: var(--site-mute); font-size: 14px; line-height: 1.55;
}
@media (max-width: 900px) {
  .home-routes { grid-template-columns: 1fr; }
  .home-phone { inset: 6% 8% 4% 8%; }
}

/* Admin table pager � rows dropdown + page numbers */
.table-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--rule);
}
.table-pager-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 0;
}
.table-pager-rows {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 12px;
  font-weight: 650;
  color: var(--ink-soft);
  text-transform: none;
  letter-spacing: 0;
}
.table-pager-rows select {
  min-height: 34px;
  min-width: 72px;
  font-size: 13px;
}
.table-pager-range { font-size: 12px; }
.table-pager-nav {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.table-pager-nav .is-on {
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: rgba(17, 214, 253, 0.18);
  color: var(--cyan);
  font-weight: 700;
}
@media (max-width: 720px) {
  .table-pager { flex-direction: column; align-items: stretch; }
  .table-pager-nav { justify-content: flex-start; }
}

.sms-live-order .sms-live-hint { margin: 0 0 12px; font-size: 13px; }
.sms-live-order .stat .btn { margin-top: 6px; }
.sms-otp-input.has-otp {
  border-color: rgba(251, 146, 60, 0.55);
  background: rgba(251, 146, 60, 0.12);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.sms-hot-pill {
  display: inline-flex; align-items: center;
  padding: 2px 8px; border-radius: 999px;
  font-size: 10px; font-weight: 750; letter-spacing: 0.04em; text-transform: uppercase;
  background: rgba(234, 179, 8, 0.22); color: #a16207;
  border: 1px solid rgba(234, 179, 8, 0.45);
}
[data-theme="dark"] .sms-hot-pill { color: #fde68a; }
.btn.is-hot-on { color: #a16207; border-color: rgba(234, 179, 8, 0.45); }

/* ── Public home — teal light landing ── */
.site-body:has(.ph) {
  background:
    radial-gradient(900px 420px at 0% 0%, rgba(20, 184, 166, 0.14), transparent 60%),
    radial-gradient(800px 380px at 100% 6%, rgba(250, 204, 21, 0.1), transparent 55%),
    linear-gradient(180deg, #f3f8f7 0%, #eef5f4 45%, #f6f9f9 100%);
}
[data-theme="dark"] .site-body:has(.ph) {
  background: linear-gradient(180deg, #06100f 0%, #0a1413 50%, #050a0a 100%);
}
.site-body:has(.ph) .site-orb { display: none; }
.ph {
  --ph-teal: #0f766e;
  --ph-teal-2: #14b8a6;
  --ph-soft: rgba(15, 118, 110, 0.08);
  --ph-card: rgba(255, 255, 255, 0.9);
  --ph-line: rgba(15, 60, 60, 0.1);
  --ph-ink: var(--site-ink);
  --ph-mute: var(--site-mute);
  position: relative; z-index: 1;
  padding-bottom: 24px;
}
[data-theme="dark"] .ph { --ph-card: rgba(14, 24, 23, 0.9); --ph-line: rgba(255, 255, 255, 0.08); --ph-soft: rgba(45, 212, 191, 0.1); }
.ph .mono { font-family: var(--mono); }
.ph-muted { color: var(--ph-mute); }
.ph-center { text-align: center; margin-top: 22px; }
.ph-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 46px; padding: 0 22px; border-radius: 12px;
  font-weight: 750; font-size: 14px; text-decoration: none; border: 0; cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.ph-btn:hover { transform: translateY(-1px); text-decoration: none; }
.ph-btn-sm { min-height: 38px; padding: 0 16px; font-size: 13px; border-radius: 10px; }
.ph-btn-fill { color: #fff; background: linear-gradient(180deg, var(--ph-teal-2), var(--ph-teal)); box-shadow: 0 12px 26px -14px rgba(15, 118, 110, 0.7); }
.ph-btn-fill:hover { color: #fff; }
.ph-btn-line { color: var(--ph-ink); background: var(--ph-card); border: 1px solid var(--ph-line); }
.ph-btn-line:hover { color: var(--ph-teal); border-color: color-mix(in srgb, var(--ph-teal) 35%, var(--ph-line)); }
.ph-btn-light { color: var(--ph-teal); background: #fff; box-shadow: 0 12px 26px -16px rgba(0, 0, 0, 0.35); }
.ph-btn-ghost { color: #fff; background: transparent; border: 1.5px solid rgba(255, 255, 255, 0.5); }
.ph-btn-ghost:hover { color: #fff; }

.ph-hero {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(24px, 4vw, 56px); align-items: center;
  padding: clamp(32px, 5vw, 64px) var(--site-pad) clamp(28px, 4vw, 48px);
  max-width: 1280px; margin: 0 auto;
}
.ph-badge {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 16px;
  padding: 6px 12px; border-radius: 999px;
  background: var(--ph-soft); color: var(--ph-teal);
  font-size: 12px; font-weight: 750;
}
.ph-badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--ph-teal-2); box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.18); }
.ph-h1 {
  margin: 0; max-width: 16ch;
  font-family: var(--site-display);
  font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.04; letter-spacing: -0.035em; font-weight: 800;
}
.ph-lede { margin: 16px 0 0; max-width: 52ch; color: var(--ph-mute); font-size: 1.05rem; line-height: 1.6; }
.ph-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.ph-mini { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 26px; }
.ph-mini article {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px; border-radius: 14px;
  background: var(--ph-card); border: 1px solid var(--ph-line);
}
.ph-mini-ico, .ph-why-ico, .ph-who-ico {
  display: inline-grid; place-items: center; flex: 0 0 auto;
  width: 32px; height: 32px; border-radius: 10px;
  background: var(--ph-soft); color: var(--ph-teal);
}
.ph-mini-ico svg, .ph-why-ico svg, .ph-who-ico svg { width: 16px; height: 16px; display: block; }
.ph-mini strong { display: block; font-size: 13px; }
.ph-mini span { display: block; font-size: 12px; color: var(--ph-mute); line-height: 1.4; margin-top: 2px; }

.ph-hero-visual { position: relative; min-height: 400px; }
.ph-device {
  position: absolute; inset: 9% 6% 11% 8%;
  border-radius: 24px; overflow: hidden;
  background: var(--ph-card); border: 1px solid var(--ph-line);
  box-shadow: 0 40px 80px -44px rgba(15, 80, 75, 0.55);
  animation: rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.ph-device-bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--ph-line); }
.ph-device-bar span { width: 9px; height: 9px; border-radius: 50%; background: #fca5a5; }
.ph-device-bar span:nth-child(2) { background: #fde68a; }
.ph-device-bar span:nth-child(3) { background: #86efac; }
.ph-device-bar em { margin-left: auto; font-style: normal; font-size: 11px; font-weight: 750; color: var(--ph-mute); }
.ph-device-body { padding: 16px; display: grid; gap: 10px; }
.ph-device-num {
  display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: center;
  padding: 12px 14px; border-radius: 14px; background: var(--ph-soft);
}
.ph-device-num.is-rent {
  background: linear-gradient(135deg, color-mix(in srgb, var(--ph-teal) 12%, var(--ph-soft)), var(--ph-soft));
  border: 1px solid color-mix(in srgb, var(--ph-teal) 28%, var(--ph-line));
}
.ph-device-num small { grid-column: 1; font-size: 11px; color: var(--ph-mute); font-weight: 650; }
.ph-device-num strong { grid-column: 1; font-size: 15px; }
.ph-live { grid-column: 2; grid-row: 1 / span 2; font-size: 10.5px; font-weight: 800; color: #15803d; background: rgba(34, 197, 94, 0.16); padding: 4px 9px; border-radius: 999px; }
.ph-live.is-rent { color: #0f766e; background: color-mix(in srgb, var(--ph-teal) 16%, #fff); }
.ph-hero-hint {
  margin: 14px 0 0; max-width: 52ch;
  font-size: 12.5px; line-height: 1.5; color: var(--ph-mute);
}
.ph-sms {
  display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: center;
  padding: 12px 14px; border-radius: 14px; border: 1px solid var(--ph-line);
}
.ph-sms b { font-size: 13px; }
.ph-sms span { grid-column: 1; font-size: 12px; color: var(--ph-mute); }
.ph-sms em {
  grid-column: 2; grid-row: 1 / span 2; font-style: normal; font-weight: 800; letter-spacing: 0.06em;
  padding: 5px 10px; border-radius: 999px; background: #fef3c7; color: #92400e; border: 1px solid #fbbf24;
}
.ph-sms.is-wait { border-style: dashed; }
.ph-dots { display: inline-flex; gap: 4px; }
.ph-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--ph-teal-2); animation: phDot 1.2s ease-in-out infinite; }
.ph-dots i:nth-child(2) { animation-delay: 0.15s; }
.ph-dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes phDot { 0%, 80%, 100% { opacity: 0.25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.ph-float {
  position: absolute; display: grid; gap: 2px;
  padding: 10px 14px; border-radius: 14px;
  background: var(--ph-card); border: 1px solid var(--ph-line);
  box-shadow: 0 18px 36px -24px rgba(15, 80, 75, 0.6);
  animation: rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) both 0.15s;
}
.ph-float strong { font-size: 16px; color: var(--ph-teal); }
.ph-float span { font-size: 11px; color: var(--ph-mute); font-weight: 650; }
.ph-float-a { left: 0; bottom: 0; }
.ph-float-b { right: 0; top: 0; }

.ph-band { padding: 12px var(--site-pad); max-width: 1280px; margin: 0 auto; scroll-margin-top: 80px; }
.ph-card {
  padding: clamp(22px, 3vw, 36px); border-radius: 22px;
  background: var(--ph-card); border: 1px solid var(--ph-line);
  box-shadow: 0 24px 50px -40px rgba(15, 80, 75, 0.45);
}
.ph-head { max-width: 620px; margin: 0 auto 24px; text-align: center; }
.ph-head.is-row { max-width: none; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; text-align: left; }
.ph-head h2 { margin: 0 0 8px; font-family: var(--site-display); font-size: clamp(1.5rem, 2.8vw, 2.1rem); letter-spacing: -0.03em; line-height: 1.1; }
.ph-head p { margin: 0; color: var(--ph-mute); font-size: 0.98rem; line-height: 1.55; }
.ph-service-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.ph-service {
  display: grid; justify-items: center; gap: 8px; text-align: center;
  padding: 18px 10px 14px; border-radius: 16px;
  border: 1px solid var(--ph-line); background: var(--ph-card);
  color: inherit; text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.ph-service:hover { transform: translateY(-3px); text-decoration: none; border-color: color-mix(in srgb, var(--ph-teal) 30%, var(--ph-line)); box-shadow: 0 16px 30px -22px rgba(15, 80, 75, 0.55); }
.ph-service img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; border: 1px solid var(--ph-line); background: #fff; }
.ph-service strong { font-size: 13px; }
.ph-service span { font-size: 11.5px; font-weight: 700; color: var(--ph-teal); }

.ph-quick { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(240px, 0.8fr); gap: 24px; }
.ph-quick-main h2 { margin: 0 0 10px; font-family: var(--site-display); font-size: clamp(1.3rem, 2.4vw, 1.7rem); letter-spacing: -0.02em; }
.ph-quick-main > p { margin: 0; color: var(--ph-mute); line-height: 1.65; max-width: 68ch; }
.ph-quick-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.ph-quick-tiles article { padding: 12px 14px; border-radius: 14px; background: var(--ph-soft); }
.ph-quick-tiles strong { display: block; font-size: 13px; }
.ph-quick-tiles span { font-size: 12px; color: var(--ph-mute); }
.ph-paths { padding: 16px; border-radius: 16px; border: 1px solid var(--ph-line); display: grid; gap: 2px; align-content: start; }
.ph-paths h3 { margin: 0 0 8px; font-size: 14px; }
.ph-paths a {
  display: flex; justify-content: space-between; gap: 8px;
  padding: 9px 10px; border-radius: 10px; font-size: 13px; font-weight: 650;
  color: var(--ph-ink); text-decoration: none;
}
.ph-paths a:hover { background: var(--ph-soft); color: var(--ph-teal); text-decoration: none; }
.ph-paths a span { color: var(--ph-teal); }

.ph-dual .ph-head { max-width: 640px; }
.ph-dual-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px;
}
.ph-dual-card {
  display: grid; gap: 10px; align-content: start;
  padding: 26px 24px; border-radius: 20px;
  border: 1px solid var(--ph-line); background: var(--ph-card);
  color: inherit; text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.ph-dual-card:hover {
  transform: translateY(-3px); text-decoration: none;
  box-shadow: 0 22px 40px -28px rgba(15, 80, 75, 0.55);
}
.ph-dual-card.is-temp {
  border-color: color-mix(in srgb, #d97706 35%, var(--ph-line));
  background: linear-gradient(165deg, #fffbeb 0%, var(--ph-card) 55%);
}
.ph-dual-card.is-rent {
  border-color: color-mix(in srgb, var(--ph-teal) 40%, var(--ph-line));
  background: linear-gradient(165deg, color-mix(in srgb, var(--ph-teal) 8%, #fff) 0%, var(--ph-card) 55%);
}
.ph-dual-kicker {
  font-size: 11px; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--ph-teal);
}
.ph-dual-card.is-temp .ph-dual-kicker { color: #b45309; }
.ph-dual-card h3 { margin: 0; font-family: var(--site-display); font-size: clamp(1.25rem, 2.2vw, 1.55rem); letter-spacing: -0.02em; }
.ph-dual-card > p { margin: 0; font-size: 14.5px; color: var(--ph-mute); line-height: 1.55; }
.ph-dual-card ul { list-style: none; margin: 6px 0 4px; padding: 0; display: grid; gap: 8px; }
.ph-dual-card li {
  position: relative; padding-left: 24px; font-size: 13.5px; line-height: 1.45;
}
.ph-dual-card li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 16px; height: 16px; border-radius: 50%; display: grid; place-items: center;
  font-size: 10px; font-weight: 900; color: #fff; background: var(--ph-teal-2);
}
.ph-dual-card.is-temp li::before { background: #d97706; }
.ph-dual-cta {
  margin-top: 8px; font-size: 14px; font-weight: 750; color: var(--ph-teal);
}
.ph-dual-card.is-temp .ph-dual-cta { color: #b45309; }
.ph-cta.is-center { justify-content: center; margin-top: 22px; }

.ph-routes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.ph-route {
  display: grid; gap: 12px; align-content: start;
  padding: 22px 20px; border-radius: 18px; border: 1px solid var(--ph-line); background: var(--ph-card);
}
.ph-route.is-hot {
  border-color: color-mix(in srgb, var(--ph-teal) 45%, var(--ph-line));
  background: linear-gradient(180deg, color-mix(in srgb, var(--ph-teal-2) 9%, var(--ph-card)), var(--ph-card));
  box-shadow: 0 22px 44px -32px rgba(15, 118, 110, 0.65);
}
.ph-route header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ph-route h3 { margin: 0; font-size: 1.15rem; font-family: var(--site-display); letter-spacing: -0.02em; }
.ph-tag { font-size: 10.5px; font-weight: 800; letter-spacing: 0.04em; padding: 4px 9px; border-radius: 999px; background: var(--ph-soft); color: var(--ph-teal); }
.ph-tag.is-hot { background: #fef3c7; color: #92400e; }
.ph-route p { margin: 0; font-size: 14px; color: var(--ph-mute); line-height: 1.55; }
.ph-route ul, .ph-who ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ph-route li, .ph-who li { position: relative; padding-left: 24px; font-size: 13.5px; line-height: 1.45; }
.ph-route li::before, .ph-who li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 16px; height: 16px; border-radius: 50%; display: grid; place-items: center;
  font-size: 10px; font-weight: 900; color: #fff; background: var(--ph-teal-2);
}
.ph-route .ph-btn { margin-top: 4px; }
.ph-fine { margin: 16px 0 0; font-size: 12px; color: var(--ph-mute); text-align: center; }

.ph-why { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.ph-why article { padding: 18px; border-radius: 16px; border: 1px solid var(--ph-line); display: grid; gap: 6px; align-content: start; }
.ph-why small { font-size: 10.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ph-teal); margin-top: 6px; }
.ph-why h3 { margin: 0; font-size: 1.02rem; }
.ph-why p { margin: 0; font-size: 13.5px; color: var(--ph-mute); line-height: 1.55; }
.ph-who { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.ph-who article { padding: 20px; border-radius: 16px; border: 1px solid var(--ph-line); background: linear-gradient(180deg, var(--ph-soft), transparent 70%); }
.ph-who h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 1.05rem; }

.ph-ready {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px;
  padding: clamp(24px, 3.4vw, 36px) clamp(22px, 3.4vw, 40px); border-radius: 22px; color: #fff;
  background:
    radial-gradient(600px 220px at 10% 0%, rgba(255, 255, 255, 0.16), transparent 60%),
    linear-gradient(120deg, #0f766e 0%, #0d9488 55%, #14b8a6 100%);
  box-shadow: 0 28px 56px -36px rgba(15, 118, 110, 0.8);
}
.ph-ready h2 { margin: 0 0 6px; font-family: var(--site-display); font-size: clamp(1.4rem, 2.6vw, 1.9rem); letter-spacing: -0.02em; color: #fff; }
.ph-ready p { margin: 0; opacity: 0.9; max-width: 56ch; }
.ph-ready .ph-cta { margin-top: 0; }

.ph-faq { display: grid; gap: 8px; }
.ph-faq details { border: 1px solid var(--ph-line); border-radius: 14px; overflow: hidden; background: var(--ph-card); }
.ph-faq details[open] { border-color: color-mix(in srgb, var(--ph-teal) 30%, var(--ph-line)); }
.ph-faq summary {
  list-style: none; cursor: pointer; user-select: none;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 15px 18px; font-weight: 700; font-size: 14.5px;
}
.ph-faq summary::-webkit-details-marker { display: none; }
.ph-faq summary::after {
  content: "+"; flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; color: var(--ph-teal); background: var(--ph-soft);
}
.ph-faq details[open] summary::after { content: "–"; }
.ph-faq details > div { padding: 0 18px 16px; color: var(--ph-mute); font-size: 14px; line-height: 1.6; }

@media (max-width: 1080px) {
  .ph-service-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ph-why { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .ph-hero, .ph-quick, .ph-routes, .ph-who, .ph-dual-grid { grid-template-columns: 1fr; }
  .ph-hero-visual { min-height: 360px; }
  .ph-mini, .ph-quick-tiles { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .ph-service-grid, .ph-why { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ph-device { inset: 0; }
  .ph-float { display: none; }
}

/* ── User dashboard (overview cards + recent orders) ── */
.dash {
  --dash-teal: #0f766e;
  --dash-teal-soft: rgba(15, 118, 110, 0.1);
  --dash-amber: #eab308;
  display: grid; gap: 18px;
  min-width: 0; max-width: 100%;
}
.dash-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; }
.dash-kicker { margin: 0 0 4px; font-size: 11.5px; font-weight: 650; color: var(--ink-soft); }
.dash-title {
  margin: 0; font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 650; letter-spacing: -0.03em;
  color: color-mix(in srgb, var(--ink) 75%, #64748b);
}
.dash-title strong { color: var(--ink); font-weight: 800; }
.dash-cta { display: flex; flex-wrap: wrap; gap: 8px; }
.dash-btn {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 40px; padding: 0 18px; border-radius: 999px;
  font-size: 13px; font-weight: 750; text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}
.dash-btn:hover { text-decoration: none; transform: translateY(-1px); }
.dash-btn-line {
  color: var(--ink); background: var(--elevated, #fff); border: 1px solid var(--rule);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}
.dash-btn-fill {
  color: #fff; background: linear-gradient(180deg, #14b8a6, var(--dash-teal));
  box-shadow: 0 8px 18px -8px rgba(15, 118, 110, 0.6);
}
.dash-btn-fill:hover { filter: brightness(1.05); color: #fff; }
.dash-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  min-width: 0;
}
.dash-stat {
  display: grid; gap: 10px; align-content: start;
  padding: 16px 18px 14px; border-radius: 16px; min-width: 0;
  background: var(--elevated, #fff);
  border: 1px solid color-mix(in srgb, var(--rule) 85%, transparent);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 10px 28px -20px rgba(15, 40, 80, 0.25);
}
.dash-stat.is-amber { box-shadow: 0 0 0 1px rgba(234, 179, 8, 0.12), 0 14px 30px -18px rgba(234, 179, 8, 0.45); }
.dash-stat-top { display: flex; align-items: center; justify-content: space-between; }
.dash-stat-lbl { font-size: 10.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
.dash-stat-ico {
  display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px;
  font-size: 13px; font-weight: 800;
}
.dash-stat-ico.is-rose { background: rgba(244, 63, 94, 0.1); color: #e11d48; }
.dash-stat-ico.is-green { background: rgba(34, 197, 94, 0.14); color: #16a34a; }
.dash-stat-ico.is-amber { background: rgba(234, 179, 8, 0.18); color: #a16207; }
.dash-stat-num { font-size: clamp(1.5rem, 2.4vw, 1.9rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.dash-spark { width: 100%; height: 40px; display: block; overflow: visible; }
.dash-spark polyline { fill: none; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.dash-spark.is-teal polyline { stroke: var(--dash-teal); }
.dash-spark.is-amber polyline { stroke: var(--dash-amber); }
.dash-spark-area { fill: color-mix(in srgb, var(--dash-teal) 14%, transparent); stroke: none; }
.dash-meter { height: 6px; border-radius: 999px; background: color-mix(in srgb, var(--rule) 70%, #e2e8f0); overflow: hidden; margin: 17px 0; }
.dash-meter i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #22c55e, #15803d); }
.dash-stat-foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 8px;
  font-size: 11.5px; font-weight: 650; min-width: 0;
}
.dash-stat-foot > * { min-width: 0; }
.dash-stat-foot .muted { overflow-wrap: anywhere; }
.dash-stat-foot a { color: var(--dash-teal); font-weight: 750; text-decoration: none; font-family: var(--sans); }
.dash-delta { color: #15803d; font-weight: 750; }
.dash-delta.is-down { color: #b91c1c; }
.dash-card {
  border-radius: 16px; background: var(--elevated, #fff);
  border: 1px solid color-mix(in srgb, var(--rule) 85%, transparent);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 10px 28px -20px rgba(15, 40, 80, 0.25);
  overflow: hidden; min-width: 0; max-width: 100%;
}
.dash-card-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px 10px; }
.dash-card-head h2 { margin: 0; font-size: 14px; font-weight: 800; }
.dash-card-head a { font-size: 12.5px; font-weight: 750; color: var(--dash-teal); text-decoration: none; }
.dash-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
.dash-table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 13px; }
.dash-table th, .dash-table td {
  padding: 11px 14px; text-align: left; white-space: nowrap; vertical-align: middle;
  border-top: 1px solid color-mix(in srgb, var(--rule) 85%, transparent);
}
.dash-table th { font-size: 10.5px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); }
.dash-table tbody tr:hover { background: color-mix(in srgb, var(--dash-teal-soft) 55%, transparent); }
.dash-table .is-num { text-align: right; }
.dash-app, .dash-country, .dash-num, .dash-otp { display: inline-flex; align-items: center; gap: 8px; }
.dash-app strong { font-weight: 700; }
.dash-table .buy-otp { padding: 3px 10px; border-radius: 999px; font-size: 12px; }
.dash-table .buy-copy { color: var(--ink-soft); }
.dash-table .buy-refunded { display: inline-block; margin-left: 6px; }
.dash-empty { padding: 32px 18px 36px; text-align: center; }
.dash-empty p { margin: 0 0 4px; }
.dash-note { margin: 0; font-size: 13px; }
@media (max-width: 1280px) { .dash-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .dash-stats { grid-template-columns: 1fr; } }

/* Admin — rental plans / rates + order type tabs */
.admin-type-tabs { display: inline-flex; }
.admin-type-tabs a {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 36px; padding: 0 14px; border-radius: 10px;
  font-weight: 700; font-size: 13px; color: var(--ink-soft); text-decoration: none;
}
.admin-type-tabs a:hover { color: var(--ink); background: rgba(17, 214, 253, 0.08); text-decoration: none; }
.admin-type-tabs a.is-on { color: var(--ink); background: var(--elevated); box-shadow: var(--glass-shadow); }
.rental-add { align-items: end; margin-bottom: 18px; }
.rental-inline { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; }
.rental-inline input:not([type="checkbox"]) {
  min-height: 34px; padding: 0 8px; border-radius: 9px; font-size: 13px;
  border: 1px solid var(--input-border); background: var(--input-bg); color: inherit;
  width: 96px;
}
.rental-inline input[name="label"] { width: 120px; }
.rental-dialog {
  max-width: 760px; width: calc(100% - 32px);
  border: 1px solid var(--rule); border-radius: 12px; padding: 18px 20px 20px;
  background: var(--elevated, #fff); color: var(--ink);
}
.rental-dialog::backdrop { background: rgba(10, 14, 23, 0.45); }
.rental-dialog[open] { display: block; }

/* Admin payment methods */
.pm-page { display: grid; gap: 14px; }
.pm-hero {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px;
}
.pm-hero h2 { margin: 0 0 4px; font-size: clamp(1.35rem, 2vw, 1.7rem); }
.pm-hero .muted { margin: 0; max-width: 52ch; font-size: 13.5px; line-height: 1.45; }
.pm-hero-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; flex: 0 0 auto; }
.pm-hero-actions form { margin: 0; }
.pm-hero-actions .btn:not(.btn-ghost) {
  box-shadow: 0 10px 24px -14px rgba(15, 118, 110, 0.7);
}
.pm-stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px;
}
.pm-stat {
  padding: 12px 14px; border-radius: 12px; border: 1px solid var(--rule);
  background: var(--elevated, #fff);
}
.pm-stat b { display: block; font-size: 1.3rem; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; line-height: 1.15; }
.pm-stat span {
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft);
}
.pm-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 280px); gap: 14px; align-items: start;
}
.pm-main, .pm-side { min-width: 0; }
.pm-empty {
  display: grid; gap: 10px; justify-items: start;
  padding: 32px 24px; border-radius: 14px;
  border: 1px dashed var(--rule); background: var(--glass, #fff);
}
.pm-empty strong { font-size: 1.05rem; }
.pm-empty p { margin: 0; color: var(--ink-soft); max-width: 48ch; }
.pm-cards {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px;
}
.pm-card {
  display: grid; gap: 12px;
  padding: 14px; border-radius: 14px;
  border: 1px solid var(--rule); background: var(--elevated, #fff);
  box-shadow: 0 8px 22px -20px rgba(20, 40, 80, 0.4);
}
.pm-card.is-off { opacity: 0.7; }
.pm-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.pm-card-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.pm-card-brand > div { min-width: 0; }
.pm-card-brand strong { display: block; font-size: 0.95rem; }
.pm-card-brand .muted { display: block; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pm-card-logo {
  width: 38px; height: 38px; object-fit: contain; border-radius: 10px; flex: 0 0 auto;
  background: #fff; border: 1px solid var(--rule);
}
.pm-card-logo.is-ph {
  display: grid; place-items: center; font-weight: 800; color: #0f766e;
  background: rgba(15, 118, 110, 0.1); border-color: transparent;
}
.pm-card-meta {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 10px;
}
.pm-card-meta div { display: grid; gap: 2px; }
.pm-card-meta span { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-soft); }
.pm-card-meta b { font-size: 12.5px; font-weight: 700; }
.pm-card-foot {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding-top: 10px; border-top: 1px solid var(--rule);
}
.pm-card-foot form { margin: 0; }
.pm-side {
  padding: 14px; border-radius: 14px; border: 1px solid var(--rule);
  background: var(--glass, #fff); position: sticky; top: 72px;
  max-height: calc(100vh - 96px); overflow: auto;
}
.pm-side h3 { margin: 0 0 2px; font-size: 0.95rem; }
.pm-side > .muted { margin: 0 0 12px; font-size: 12px; }
.pm-side-group + .pm-side-group { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--rule); }
.pm-side-group h4 {
  margin: 0 0 6px; font-size: 10px; font-weight: 800; letter-spacing: 0.07em;
  text-transform: uppercase; color: var(--ink-soft);
}
.pm-side-group ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.pm-pick {
  width: 100%; text-align: left; cursor: pointer;
  padding: 8px 10px; border-radius: 10px; border: 1px solid var(--rule);
  background: var(--elevated, #fff); color: inherit;
  transition: border-color 0.15s, background 0.15s;
}
.pm-pick:hover { border-color: color-mix(in srgb, #0f766e 40%, var(--rule)); background: rgba(15, 118, 110, 0.05); }
.pm-pick strong { display: block; font-size: 12px; }
.pm-pick span { font-size: 10.5px; color: var(--ink-soft); }

/* Modal: fixed height + grid so Save stays pinned */
.pm-dialog {
  max-width: 600px;
  width: calc(100% - 24px);
  height: min(78vh, 620px);
  max-height: min(78vh, 620px);
  margin: auto;
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: 0;
  background: var(--elevated, #fff);
  color: var(--ink);
  box-shadow: 0 28px 60px -20px rgba(15, 30, 60, 0.55);
  overflow: hidden;
}
.pm-dialog::backdrop { background: rgba(10, 14, 23, 0.55); backdrop-filter: blur(2px); }
.pm-dialog > form {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: 100%;
  max-height: 100%;
  min-height: 0;
  box-sizing: border-box;
}
.pm-dialog-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  padding: 12px 14px 10px;
  border-bottom: 1px solid var(--rule);
  background: var(--elevated, #fff);
}
.pm-dialog-head h2 { margin: 0; font-size: 1.1rem; }
.pm-dialog-head-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; flex: 0 0 auto; }
.pm-dialog-body {
  padding: 10px 14px 14px;
  overflow-y: auto;
  overflow-x: hidden;
  min-height: 0;
  -webkit-overflow-scrolling: touch;
}
.pm-dialog-foot { display: none; }
.pm-help { margin-top: 6px; font-size: 12px; line-height: 1.45; }
.pm-help ol, .pm-help ul { margin: 6px 0 0; padding-left: 18px; }
.pm-check label { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; cursor: pointer; }
.pm-tier-grid { display: grid; gap: 8px; margin-bottom: 8px; }
.pm-tier { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pm-creds { margin-top: 4px; padding-top: 8px; border-top: 1px dashed var(--rule); }

@media (max-width: 980px) {
  .pm-layout { grid-template-columns: 1fr; }
  .pm-side { position: static; max-height: none; }
  .pm-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .pm-stats { grid-template-columns: 1fr 1fr; }
  .pm-card-meta { grid-template-columns: 1fr; }
  .pm-dialog {
    width: calc(100% - 16px);
    height: min(86vh, 640px);
    max-height: min(86vh, 640px);
    border-radius: 14px;
  }
  .pm-dialog-head { flex-direction: column; align-items: stretch; }
  .pm-dialog-head-actions { justify-content: flex-end; }
}

/* User funds method cards */
.funds-methods {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px;
  margin-bottom: 4px;
}
.funds-method {
  display: grid; gap: 6px; align-content: start;
  padding: 14px; border-radius: 14px; border: 1.5px solid var(--rule);
  background: var(--elevated, #fff); cursor: pointer; text-align: left;
  color: inherit; transition: border-color 0.15s, box-shadow 0.15s;
}
.funds-method:hover { border-color: color-mix(in srgb, #0f766e 40%, var(--rule)); }
.funds-method.is-on {
  border-color: #0f766e;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.15);
}
.funds-method-top { display: flex; align-items: center; gap: 10px; }
.funds-method-logo {
  width: 36px; height: 36px; object-fit: contain; border-radius: 10px;
  background: #fff; border: 1px solid var(--rule);
}
.funds-method strong { display: block; font-size: 13.5px; }
.funds-method .muted { font-size: 11.5px; }
.funds-qr {
  max-width: 180px; border-radius: 12px; border: 1px solid var(--rule); margin-top: 8px;
}

/* Admin payment method Add / Update dialogs (SmmOwnerWork flow) */
.pm-dialog [hidden], .funds-page [hidden], .funds-modal [hidden] { display: none !important; }
.pm-dialog { max-width: 760px; height: min(88vh, 860px); max-height: min(88vh, 860px); }
.pm-dialog .field { margin-bottom: 12px; }
.pm-dialog input[type="checkbox"] { width: auto; min-height: 0; }
.pm-spinner { display: flex; align-items: center; gap: 8px; padding: 10px 0; color: var(--ink-soft); font-size: 13px; }
.pm-spin, .funds-spin {
  display: inline-block; width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent;
  animation: pm-spin 0.7s linear infinite; vertical-align: -2px;
}
.funds-spin { margin-right: 8px; }
@keyframes pm-spin { to { transform: rotate(360deg); } }
.pm-block { margin-bottom: 12px; }
.pm-soft { padding: 12px; border-radius: 12px; background: var(--glass-hover); border: 1px solid var(--rule); }
.pm-soft .field:last-child { margin-bottom: 0; }
.pm-block-title {
  margin: 0 0 10px; font-size: 11px; font-weight: 800; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--ink-soft);
}
.pm-img-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.pm-img-col { display: grid; gap: 6px; align-content: start; min-width: 0; }
.pm-img-label { font-size: 12.5px; font-weight: 600; }
.pm-img-box { position: relative; display: grid; gap: 6px; }
.pm-img-trigger {
  display: flex; align-items: center; justify-content: center;
  width: 100%; min-height: 130px; padding: 0; cursor: pointer; overflow: hidden;
  border: 2px dashed var(--input-border); border-radius: 12px;
  background: var(--input-bg); color: var(--ink-soft);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.pm-img-trigger:hover { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(17, 214, 253, 0.15); }
.pm-img-preview { width: 100%; max-height: 170px; object-fit: contain; background: #fff; }
.pm-img-placeholder { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px; font-size: 12.5px; text-align: center; }
.pm-img-icon { font-size: 1.6rem; line-height: 1; }
.pm-img-remove { justify-self: start; }
.pm-img-hint { font-size: 11.5px; line-height: 1.4; }
.pm-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pm-input-row { display: flex; align-items: center; gap: 8px; }
.pm-input-row > input { flex: 1 1 auto; min-width: 0; }
.pm-addon {
  flex: 0 0 auto; padding: 0 12px; min-height: 40px; display: inline-flex; align-items: center;
  border-radius: 10px; border: 1px solid var(--rule); background: var(--glass-hover); font-weight: 700;
}
.pm-switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13px; font-weight: 600; white-space: nowrap; }
.pm-switch input { accent-color: var(--cyan); width: 18px; height: 18px; }
.pm-switch-row { display: grid; gap: 2px; margin-bottom: 10px; }
.pm-switch-row small { font-size: 11.5px; }
.pm-rule { border: 0; border-top: 1px solid var(--rule); margin: 12px 0; }
.pm-dynamic .field:last-child { margin-bottom: 12px; }
.pm-tier-table { width: 100%; border-collapse: collapse; margin-bottom: 8px; }
.pm-tier-table th { text-align: left; font-size: 11px; font-weight: 700; color: var(--ink-soft); padding: 4px 6px; }
.pm-tier-table th:first-child, .pm-tier-table td:first-child { width: 34px; }
.pm-tier-table td { padding: 4px 6px; vertical-align: middle; }
.pm-tier-table input, .pm-tier-table select { width: 100%; min-width: 0; }
.pm-row-remove {
  width: 28px; height: 28px; border-radius: 8px; cursor: pointer; font-weight: 800;
  border: 1px solid var(--rule); background: var(--warn-soft); color: var(--warn);
}
.pm-link { border: 0; background: none; padding: 2px 0; color: var(--cyan); font-weight: 700; font-size: 13px; cursor: pointer; }
.pm-link:hover { text-decoration: underline; }
.pm-move { display: inline-flex; gap: 4px; }
@media (max-width: 560px) {
  .pm-grid-2 { grid-template-columns: 1fr; }
}

/* User add funds (SmmOwnerWork flow) */
.funds-form { display: grid; gap: 4px; max-width: 640px; }
.funds-label { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-weight: 700; }
.funds-hint { margin: 2px 0 6px; font-size: 12.5px; }
.funds-select { width: 100%; min-height: 52px; font-size: 1rem; font-weight: 600; }
.funds-icons {
  display: flex; flex-wrap: nowrap; gap: 12px; overflow-x: auto;
  padding: 4px 2px 10px; margin-bottom: 8px; scrollbar-width: thin;
}
.funds-icon-btn {
  flex: 0 0 auto; width: 84px; height: 84px; padding: 10px; cursor: pointer;
  border: 2px solid var(--rule); border-radius: 16px; background: var(--elevated, #fff);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.funds-icon-btn img { width: 100%; height: 100%; object-fit: contain; border-radius: 10px; }
.funds-icon-btn:hover { transform: translateY(-3px); border-color: var(--rule-strong); box-shadow: var(--glow-soft); }
.funds-icon-btn.active { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(17, 214, 253, 0.2); }
.funds-instructions {
  padding: 12px 14px; border-radius: 12px; border: 1px solid var(--rule);
  background: var(--glass-hover); font-size: 13.5px; line-height: 1.55;
  overflow-x: hidden; overflow-wrap: anywhere;
}
.funds-instructions img { display: block; max-width: 100%; height: auto; margin: 8px auto; }
.funds-qr-box { margin-top: 10px; padding: 12px; background: #fff; border-radius: 12px; text-align: center; }
.funds-qr-box img { max-width: min(260px, 100%); height: auto; }
.funds-summary { display: grid; gap: 6px; margin: 2px 0 10px; }
.funds-summary:not(:has(> :not([hidden]))) { display: none; }
.funds-sum-row { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; }
.funds-sum-row b { font-variant-numeric: tabular-nums; }
.funds-sum-row.is-bonus b { color: var(--ok); }
.funds-sum-row.is-total { padding-top: 6px; border-top: 1px solid var(--rule); font-weight: 700; color: var(--cyan); }
.funds-sum-block { display: grid; gap: 4px; font-size: 13px; }
.funds-sum-block > span { font-weight: 600; }
.funds-sum-block .funds-sum-row { color: var(--ink-soft); font-size: 12.5px; }
.funds-pay-btn { width: 100%; min-height: 48px; font-size: 1rem; font-weight: 700; }
.funds-form.is-loading .funds-pay-btn { pointer-events: none; opacity: 0.85; }
.funds-modal {
  width: min(560px, calc(100% - 20px)); max-height: min(92vh, 900px); padding: 0;
  border: 1px solid var(--rule); border-radius: 16px;
  background: var(--elevated, #fff); color: var(--ink);
  box-shadow: 0 28px 60px -20px rgba(15, 30, 60, 0.55);
}
.funds-modal[open] { display: flex; flex-direction: column; }
.funds-modal::backdrop { background: rgba(10, 14, 23, 0.6); backdrop-filter: blur(2px); }
.funds-modal-head {
  position: relative; padding: 14px 52px; border-bottom: 1px solid var(--rule); text-align: center;
}
.funds-modal-head h3 { margin: 0; font-size: 1.05rem; }
.funds-modal-back, .funds-modal-close {
  position: absolute; top: 50%; transform: translateY(-50%);
  border: 0; background: transparent; color: var(--ink); cursor: pointer;
  padding: 6px 10px; border-radius: 8px; font-weight: 600;
}
.funds-modal-back { left: 8px; font-size: 13px; }
.funds-modal-close { right: 8px; font-size: 1.4rem; line-height: 1; }
.funds-modal-back:hover, .funds-modal-close:hover { background: var(--glass-hover); }
.funds-modal-body { padding: 14px 16px; overflow-y: auto; overflow-x: hidden; flex: 1 1 auto; }
.funds-modal-step { animation: funds-step 0.25s ease; }
@keyframes funds-step { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.funds-modal-amount {
  margin-bottom: 12px; padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--rule-strong); background: var(--glass-hover);
}
.funds-modal-amount > p { margin: 0; }
.funds-modal-send { margin: 2px 0 8px !important; font-family: var(--display); font-size: 1.9rem; font-weight: 700; color: var(--cyan); line-height: 1.2; }
.funds-modal-send span:last-child { font-size: 1.1rem; margin-left: 4px; }
#local-modal-amount-breakdown { display: grid; gap: 2px; font-size: 12.5px; color: var(--ink-soft); }
.funds-modal-qr {
  position: relative; margin: 12px 0; padding: 12px; background: #fff; border-radius: 12px;
  text-align: center; max-height: min(62vh, 520px); overflow: auto;
}
.funds-modal-qr img { display: block; margin: 0 auto; max-width: 100%; max-height: min(calc(100vh - 320px), 460px); height: auto; object-fit: contain; }
.funds-modal-qr-dl {
  position: absolute; right: 12px; bottom: 12px; width: 42px; height: 42px;
  display: inline-flex; align-items: center; justify-content: center; border-radius: 50%;
  background: rgba(0, 0, 0, 0.75); color: #fff; font-size: 1.2rem; text-decoration: none;
}
.funds-modal-tid-example { padding: 12px; background: #fff; border-radius: 12px; text-align: center; margin-bottom: 12px; }
.funds-modal-tid-example img { max-width: 100%; max-height: min(50vh, 420px); height: auto; }
.funds-modal-foot { display: grid; gap: 8px; padding: 12px 16px 16px; border-top: 1px solid var(--rule); }

/* Rental plans page */
.rp-empty {
  display: grid; gap: 10px; justify-items: start;
  padding: 36px 28px; border-radius: 16px;
  border: 1px dashed var(--rule); background: var(--glass);
}
.rp-empty strong { font-size: 1.1rem; }
.rp-empty p { margin: 0; color: var(--ink-soft); max-width: 48ch; }
.rp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 14px;
}
.rp-card {
  display: grid; gap: 14px;
  padding: 16px 16px 14px;
  border-radius: 16px;
  border: 1px solid var(--rule);
  background: var(--elevated, var(--glass));
  box-shadow: var(--glass-shadow, none);
}
.rp-card.is-off { opacity: 0.78; }
.rp-card-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 10px;
}
.rp-card-title { display: grid; gap: 2px; min-width: 0; }
.rp-card-title strong { font-size: 1.05rem; letter-spacing: -0.02em; }
.rp-dur {
  display: inline-flex; width: fit-content;
  padding: 3px 9px; border-radius: 999px;
  font-size: 11px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase;
  color: #0f766e; background: rgba(15, 118, 110, 0.12);
}
.rp-card.is-off .rp-dur { color: var(--ink-soft); background: rgba(100, 116, 139, 0.12); }
.rp-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.rp-fields .field { margin: 0; }
.rp-fields label {
  display: block; margin-bottom: 5px;
  font-size: 11.5px; font-weight: 700; color: var(--ink-soft);
  text-transform: none; letter-spacing: 0;
}
.rp-fields input {
  width: 100%; min-height: 40px; padding: 0 10px;
  border-radius: 10px; border: 1px solid var(--input-border);
  background: var(--input-bg); color: inherit; font-size: 13.5px;
}
.rp-form-foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
  margin-top: 12px;
}
.rp-check {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; cursor: pointer;
}
.rp-check input { width: 16px; height: 16px; accent-color: #0f766e; }
.rp-card-foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
  padding-top: 12px; border-top: 1px solid var(--rule);
}
.rp-rates-link {
  display: inline-flex; align-items: baseline; gap: 6px;
  color: inherit; text-decoration: none; font-size: 13px;
}
.rp-rates-link:hover { color: #0891b2; text-decoration: none; }
.rp-rates-link strong { font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.rp-rates-link span { color: var(--ink-soft); font-weight: 600; }
.rp-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.rp-presets {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 0 0 16px;
}
.rp-preset {
  min-height: 36px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--rule); background: var(--glass);
  font-size: 13px; font-weight: 700; color: var(--ink-soft); cursor: pointer;
}
.rp-preset:hover { color: var(--ink); border-color: color-mix(in srgb, #0f766e 35%, var(--rule)); }
.rp-preset.is-on {
  color: #0f766e; border-color: color-mix(in srgb, #0f766e 45%, var(--rule));
  background: rgba(15, 118, 110, 0.1);
}
@media (max-width: 560px) {
  .rp-fields { grid-template-columns: 1fr; }
}
