/* ═══════════════════════════════════════════════════════════════
   THE AUDACITY POPUP ~ STYLESHEET
   Mobile-first. High-contrast. Editorial. No framework.
   ═══════════════════════════════════════════════════════════════ */

:root {
  --ink: #0A0A0A;
  --paper: #FFFEF9;
  --paper-alt: #F5F3EC;
  --accent: #FF4A1C;
  --accent-2: #F4C542;
  --success: #17C964;
  --muted: #6B6B6B;
  --line: rgba(10, 10, 10, 0.08);
  --line-strong: rgba(10, 10, 10, 0.18);

  --font-sans: "Space Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;

  --wrap: 1200px;
  --wrap-narrow: 760px;
  --gutter: 20px;

  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 22px;

  --shadow-sm: 0 1px 2px rgba(10,10,10,0.06);
  --shadow-md: 0 4px 20px rgba(10,10,10,0.10);
  --shadow-lg: 0 20px 60px rgba(10,10,10,0.18);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ── Layout wraps ── */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.wrap-narrow {
  max-width: var(--wrap-narrow);
  margin-left: auto;
  margin-right: auto;
}
.section {
  padding: 80px 0;
  position: relative;
}
.section-alt { background: var(--paper-alt); }
.section-dark { background: var(--ink); color: var(--paper); }

/* ── Type ── */
.serif-italic {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 20px;
}
.eyebrow-light { color: rgba(255,254,249,0.6); }

.h2 {
  font-size: clamp(32px, 6vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 500;
  margin: 0 0 28px;
  max-width: 900px;
}
.h2-light { color: var(--paper); }

.lede {
  font-size: 17px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 60ch;
}
.lede-center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
.lede-light { color: rgba(255,254,249,0.7); }

.two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 720px) {
  .two-col { grid-template-columns: 1fr 1fr; gap: 40px; }
}

/* ══════════════ NAV ══════════════ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(255,254,249,0.85);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 14px var(--gutter);
  display: flex;
  align-items: center;
  gap: 24px;
}
.logo {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.03em;
  color: var(--ink);
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
}
.logo-serif { display: inline-block; }
.logo-r {
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0;
  vertical-align: super;
  color: var(--muted);
}
.nav-links {
  display: none;
  gap: 24px;
  margin-left: auto;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}
.nav-links a { transition: color .15s; }
.nav-links a:hover { color: var(--ink); }
@media (min-width: 900px) {
  .nav-links { display: flex; }
}
.nav-inner .btn { margin-left: auto; }
@media (min-width: 900px) {
  .nav-inner .btn { margin-left: 0; }
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px; height: 40px;
  border-radius: 10px;
  background: transparent;
  margin-left: 4px;
}
.nav-toggle span {
  display: block;
  width: 18px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .2s;
}
@media (min-width: 900px) {
  .nav-toggle { display: none; }
}

.nav-drawer {
  position: fixed;
  inset: 60px 0 0 0;
  background: var(--paper);
  padding: 40px var(--gutter);
  display: none;
  flex-direction: column;
  gap: 22px;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.03em;
  z-index: 99;
}
.nav-drawer.open { display: flex; }
.nav-drawer a { color: var(--ink); }
.nav-drawer .btn { align-self: flex-start; margin-top: 12px; font-size: 15px; }

/* ══════════════ BUTTONS ══════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  transition: transform .15s, box-shadow .15s, background .15s, color .15s;
  white-space: nowrap;
  border: 1px solid transparent;
  line-height: 1;
}
.btn-sm { padding: 10px 16px; font-size: 13px; }
.btn-lg { padding: 17px 28px; font-size: 16px; }
.btn-full { width: 100%; }

.btn-primary {
  background: var(--ink);
  color: var(--paper);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn-secondary {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-secondary:hover { border-color: var(--ink); }

.btn-accent {
  background: var(--accent);
  color: var(--paper);
}
.btn-accent:hover { transform: translateY(-1px); box-shadow: 0 6px 22px rgba(255,74,28,0.35); }

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-outline:hover { background: var(--ink); color: var(--paper); }

.btn-whatsapp {
  background: var(--success);
  color: #fff;
}
.btn-whatsapp:hover { transform: translateY(-1px); box-shadow: 0 6px 22px rgba(23,201,100,0.35); }

/* ══════════════ HERO ══════════════ */
.hero {
  padding: 140px var(--gutter) 60px;
  text-align: center;
  max-width: var(--wrap);
  margin: 0 auto;
  position: relative;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(10,10,10,0.04);
  border: 1px solid var(--line);
  padding: 8px 14px;
  border-radius: 999px;
  margin-bottom: 32px;
}
.dot-live {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(23,201,100,0.18);
  animation: pulse 1.8s ease-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(23,201,100,0.18); }
  50% { box-shadow: 0 0 0 8px rgba(23,201,100,0); }
}

.hero-h1 {
  font-size: clamp(40px, 10vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 500;
  margin: 0 auto 24px;
  max-width: 12ch;
}
@media (min-width: 720px) {
  .hero-h1 { max-width: 15ch; }
}
.hero-sub {
  font-size: clamp(16px, 2.3vw, 19px);
  line-height: 1.5;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 32px;
}
.hero-ctas {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  margin-bottom: 28px;
}
@media (min-width: 560px) {
  .hero-ctas { flex-direction: row; justify-content: center; }
}
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 12px;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.hero-trust span:nth-child(2n) { opacity: 0.4; }

/* ══════════════ MARQUEE ══════════════ */
.marquee-wrap {
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper-alt);
  overflow: hidden;
}
.marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
}
.marquee-track {
  display: inline-flex;
  gap: 22px;
  animation: marquee-left 35s linear infinite;
  white-space: nowrap;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 22px;
  color: var(--ink);
  padding-right: 22px;
}
.marquee-track span:nth-child(2n) {
  font-family: var(--font-sans);
  font-style: normal;
  color: var(--muted);
  font-size: 18px;
}
@keyframes marquee-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ══════════════ STAT ROW ══════════════ */
.stat-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
@media (min-width: 720px) {
  .stat-row { grid-template-columns: repeat(3, 1fr); }
}
.stat-num {
  font-size: clamp(44px, 7vw, 64px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
}
.stat-lbl {
  color: var(--muted);
  font-size: 14px;
  margin-top: 6px;
}

/* ══════════════ STACK (value ladder) ══════════════ */
.stack {
  max-width: 720px;
  margin: 0 auto;
  background: rgba(255,254,249,0.03);
  border: 1px solid rgba(255,254,249,0.12);
  border-radius: var(--radius);
  overflow: hidden;
}
.stack-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 16px 22px;
  border-bottom: 1px solid rgba(255,254,249,0.08);
  font-size: 15px;
}
.stack-row:last-child { border-bottom: 0; }
.stack-item { flex: 1; }
.stack-price {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 20px;
  color: rgba(255,254,249,0.5);
  text-decoration: line-through;
  text-decoration-color: rgba(255,254,249,0.3);
  white-space: nowrap;
}
.stack-total {
  background: rgba(255,254,249,0.06);
  font-size: 16px;
}
.stack-total .stack-price {
  text-decoration: none;
  color: rgba(255,254,249,0.6);
  font-size: 22px;
}
.stack-you-pay {
  background: var(--accent);
  color: var(--paper);
  font-size: 18px;
}
.stack-you-pay .stack-price {
  text-decoration: none;
  color: var(--paper);
  font-size: 28px;
  font-family: var(--font-sans);
  font-style: normal;
  font-weight: 600;
}
.stack-note {
  text-align: center;
  margin: 20px auto 0;
  color: rgba(255,254,249,0.6);
  font-style: italic;
  font-family: var(--font-serif);
  font-size: 18px;
}
.section-cta {
  text-align: center;
  margin-top: 36px;
}

/* ══════════════ PORTFOLIO ══════════════ */
.portfolio {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 40px;
}
@media (min-width: 720px) {
  .portfolio { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}
.port-card {
  display: block;
  transition: transform .2s;
}
.port-card:hover { transform: translateY(-4px); }
.port-thumb {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  padding: 20px;
  color: var(--paper);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}
.port-badge {
  position: absolute;
  top: 16px; left: 16px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  background: rgba(255,255,255,0.15);
  padding: 4px 8px;
  border-radius: 4px;
}
.port-mock {
  background: rgba(255,255,255,0.9);
  color: var(--ink);
  border-radius: var(--radius-sm);
  padding: 16px;
  box-shadow: var(--shadow-md);
}
.port-mock .mock-h {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 22px;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 4px;
}
.port-mock .mock-sub {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 10px;
}
.port-mock .mock-btn {
  display: inline-block;
  background: var(--success);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 999px;
}
.port-meta {
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
}

/* ══════════════ STEPS (up to 4 in one row at desktop) ══════════════ */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 40px;
}
@media (min-width: 560px) {
  .steps { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}
@media (min-width: 960px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 16px; }
}
.step {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
  min-width: 0;
}
.step-num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 34px;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 10px;
}
.step-h {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
  line-height: 1.15;
}
.step p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}

/* ══════════════ PRICING ══════════════ */
.price-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
@media (min-width: 720px) {
  .price-grid { grid-template-columns: 1.15fr 0.85fr; gap: 24px; }
}
.price-card {
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--line-strong);
  display: flex;
  flex-direction: column;
}
.price-primary {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.price-secondary {
  background: var(--paper);
  color: var(--ink);
}
.price-tag {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.6;
  margin-bottom: 20px;
}
.price-amount {
  font-size: 68px;
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1;
  margin-bottom: 4px;
  display: flex;
  align-items: baseline;
  gap: 2px;
}
.price-amount .rand {
  font-size: 34px;
  opacity: 0.7;
}
.price-amount .per {
  font-size: 20px;
  opacity: 0.6;
  font-weight: 400;
  margin-left: 4px;
}
.price-sub {
  font-size: 14px;
  opacity: 0.7;
  margin-bottom: 24px;
}
.price-list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.price-list li {
  font-size: 15px;
  padding-left: 22px;
  position: relative;
  opacity: 0.9;
}
.price-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 600;
}
.price-primary .price-list li::before { color: var(--accent-2); }

.price-note {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  margin-top: 28px;
}

/* ══════════════ LADDER ══════════════ */
.ladder {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 40px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.rung {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 15px;
  transition: transform .15s;
}
.rung:hover { transform: translateX(4px); }
.rung-price {
  font-weight: 600;
  letter-spacing: -0.01em;
}
.rung-name { font-weight: 500; }
.rung-tag {
  font-size: 12px;
  color: var(--muted);
  background: rgba(10,10,10,0.05);
  padding: 4px 10px;
  border-radius: 999px;
}
.rung-current {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.rung-current .rung-tag {
  background: var(--accent);
  color: var(--paper);
}

/* ══════════════ WALL OF 100 ══════════════ */
.wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
  gap: 6px;
  margin: 40px 0 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
.tile {
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  background: var(--paper-alt);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 500;
  color: var(--muted);
  padding: 6px;
  text-align: center;
  line-height: 1.15;
  transition: transform .15s;
}
.tile:hover { transform: scale(1.06); }
.tile-filled {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 11px;
}
.tile-hot {
  background: var(--accent);
  color: var(--paper);
  border-color: var(--accent);
}
.wall-note {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  margin-top: 12px;
}

/* ══════════════ TESTIMONIALS ══════════════ */
.quotes {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 40px;
}
@media (min-width: 720px) {
  .quotes { grid-template-columns: repeat(3, 1fr); }
}
.quote {
  margin: 0;
  padding: 28px;
  background: rgba(255,254,249,0.04);
  border: 1px solid rgba(255,254,249,0.1);
  border-radius: var(--radius);
}
.quote p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  color: var(--paper);
}
.quote cite {
  font-style: normal;
  font-size: 13px;
  color: rgba(255,254,249,0.55);
  font-weight: 500;
}

/* ══════════════ GUARANTEE ══════════════ */
.guarantee-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 32px;
}
@media (min-width: 720px) {
  .guarantee-grid { grid-template-columns: 1fr 1fr; }
}
.guarantee {
  padding: 28px;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
}
.g-num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 36px;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 12px;
}
.g-h {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}
.guarantee p { color: var(--muted); font-size: 15px; margin: 0; }

/* ══════════════ FAQ ══════════════ */
.faq {
  margin-top: 32px;
  border-top: 1px solid var(--line);
}
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -0.01em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-right: 8px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 26px;
  font-weight: 400;
  color: var(--accent);
  transition: transform .2s;
  line-height: 1;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
  max-width: 65ch;
}

/* ══════════════ FORM ══════════════ */
.form {
  margin: 32px 0 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: rgba(255,254,249,0.04);
  border: 1px solid rgba(255,254,249,0.14);
  padding: 28px;
  border-radius: var(--radius);
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,254,249,0.75);
  letter-spacing: -0.005em;
}
.field input {
  font: inherit;
  font-size: 16px;
  color: var(--paper);
  background: rgba(255,254,249,0.06);
  border: 1px solid rgba(255,254,249,0.18);
  border-radius: 10px;
  padding: 14px 16px;
  transition: border-color .15s, background .15s;
}
.field input::placeholder { color: rgba(255,254,249,0.35); }
.field input:focus {
  border-color: var(--accent);
  background: rgba(255,254,249,0.09);
  outline: none;
}
.field-check {
  flex-direction: row;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
}
.field-check input {
  width: 20px;
  height: 20px;
  padding: 0;
  accent-color: var(--accent);
}
.field-check label {
  font-size: 14px;
  color: rgba(255,254,249,0.85);
}
.form-fine {
  font-size: 12px;
  color: rgba(255,254,249,0.5);
  margin: 8px 0 0;
  line-height: 1.5;
}
.hp { display: none; }
.or {
  text-align: center;
  color: rgba(255,254,249,0.4);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 12px 0;
}

/* ══════════════ FOOTER ══════════════ */
.foot {
  background: var(--paper-alt);
  padding: 60px 0 30px;
  border-top: 1px solid var(--line);
}
.foot-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 40px;
}
@media (min-width: 720px) {
  .foot-grid { grid-template-columns: 1.4fr 1fr 1.2fr; }
}
.logo-foot { font-size: 24px; }
.foot-tag {
  color: var(--muted);
  font-size: 14px;
  max-width: 30ch;
  margin: 10px 0 0;
}
.foot-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
}
.foot-links a { color: var(--muted); }
.foot-links a:hover { color: var(--ink); }
.foot-legal p {
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 8px;
}
.foot-popia {
  font-weight: 500;
  color: var(--ink) !important;
}
.foot-bar {
  display: flex;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
  flex-wrap: wrap;
  gap: 8px;
}

/* ══════════════ STICKY MOBILE BAR ══════════════ */
.sticky-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: var(--ink);
  color: var(--paper);
  border-top: 1px solid rgba(255,254,249,0.15);
  box-shadow: 0 -6px 20px rgba(0,0,0,0.15);
}
.sticky-count {
  flex: 1;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.sticky-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  background: var(--success);
  color: #fff;
  border-radius: 50%;
}
@media (min-width: 900px) {
  .sticky-bar { display: none; }
}

/* ══════════════ FLOATING WHATSAPP (desktop) ══════════════ */
.float-wa {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  background: var(--success);
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 6px 22px rgba(23,201,100,0.4);
  transition: transform .2s;
}
.float-wa:hover { transform: scale(1.08); }
@media (min-width: 900px) {
  .float-wa { display: inline-flex; }
}

/* ══════════════ COUNTER ══════════════ */
.counter {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--accent);
}
.eyebrow-light .counter { color: var(--accent-2); }
.hero-eyebrow .counter { color: var(--accent); }
.sticky-count .counter { color: var(--accent-2); }

/* ══════════════ HIDE STICKY WHEN CLAIM VISIBLE ══════════════ */
.sticky-bar.hidden { transform: translateY(120%); transition: transform .3s; }

/* ══════════════ FLOATING WA REMOVED ══════════════ */
/* (kept .float-wa styles above dormant in case you re-enable) */

/* ══════════════ iKHOKHA BUY CARD ══════════════ */
.buy-card {
  max-width: 320px;
  margin: 32px auto 20px;
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.buy-tag {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.buy-price {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.buy-btn {
  display: block;
  width: 100%;
  padding: 16px 20px;
  background: #1D1D1B;
  color: #FFFFFF;
  border-radius: 17px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
  transition: transform .15s, box-shadow .15s;
}
.buy-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 22px rgba(0,0,0,0.25); }
.buy-powered {
  font-size: 10px;
  color: var(--muted);
  margin-top: 8px;
  letter-spacing: 0.02em;
}
.post-buy {
  max-width: 460px;
  margin: 22px auto 6px;
  text-align: center;
  color: rgba(255,254,249,0.75);
  font-size: 14px;
}
.link-underline {
  color: var(--accent-2);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.fine {
  font-size: 12px;
  color: rgba(255,254,249,0.5);
  text-align: center;
  margin-top: 24px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}
.section-alt .fine, .section:not(.section-dark) .fine {
  color: var(--muted);
}

/* ══════════════ WAITLIST FORM (light bg) ══════════════ */
.form-light {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 28px;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 24px;
}
.form-light .field label {
  color: var(--ink);
}
.form-light .field input,
.form-light .field textarea {
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 12px 14px;
  transition: border-color .15s;
  font-family: var(--font-sans);
}
.form-light .field input:focus,
.form-light .field textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.form-light .field textarea {
  resize: vertical;
  min-height: 90px;
}
.form-light .field input::placeholder,
.form-light .field textarea::placeholder {
  color: var(--muted);
}
.field-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 560px) {
  .field-row { grid-template-columns: 1fr 1fr; }
}
.form-status {
  font-size: 14px;
  color: var(--muted);
  margin: 8px 0 0;
  min-height: 20px;
}
.form-status-ok    { color: var(--success); }
.form-status-error { color: #d94141; }

/* ══════════════ SIGNUP PAGE ══════════════ */
.page-signup { background: var(--paper); }
.nav-slim { position: relative; background: var(--paper); border-bottom: 1px solid var(--line); }
.nav-slim .nav-inner { padding: 16px var(--gutter); }
.nav-slug {
  margin-left: auto;
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: -0.01em;
}

.signup-main {
  max-width: 720px;
  margin: 60px auto;
  padding: 0 var(--gutter);
}
.signup-hero { margin-bottom: 40px; }
.signup-h1 {
  font-size: clamp(32px, 6vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 500;
  margin: 12px 0 16px;
}
.signup-sub {
  font-size: 16px;
  color: var(--muted);
  max-width: 60ch;
  line-height: 1.55;
}
.signup-sub a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

.signup-form {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.fs {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  margin: 0;
  background: var(--paper);
}
.fs-legend {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 0 8px;
  margin-left: -8px;
}
.fs-sub {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 14px;
}
.fs .field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.fs .field:last-child { margin-bottom: 0; }
.fs .field label { font-size: 13px; font-weight: 500; color: var(--ink); }
.fs .field input,
.fs .field textarea {
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 12px 14px;
  transition: border-color .15s;
  font-family: var(--font-sans);
}
.fs .field textarea { resize: vertical; min-height: 90px; }
.fs .field input:focus,
.fs .field textarea:focus { outline: none; border-color: var(--accent); }
.fs .field input::placeholder,
.fs .field textarea::placeholder { color: var(--muted); }
.fs .hint {
  font-size: 12px;
  color: var(--muted);
  margin: 2px 0 0;
  line-height: 1.5;
}
.fs .hint code {
  background: var(--paper-alt);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 11px;
}
.field-check {
  flex-direction: row !important;
  align-items: flex-start !important;
  gap: 10px;
  padding: 8px 0;
}
.field-check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent); }
.field-check label { font-size: 15px !important; }
.dim { color: var(--muted); }

.subdomain-input {
  display: flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  overflow: hidden;
  background: var(--paper);
}
.subdomain-input:focus-within { border-color: var(--accent); }
.subdomain-input input {
  border: 0 !important;
  flex: 1;
  padding: 12px 14px;
  min-width: 0;
}
.sub-suffix {
  padding: 12px 14px 12px 4px;
  color: var(--muted);
  font-size: 15px;
  background: var(--paper-alt);
  white-space: nowrap;
}

.uploader {
  border: 2px dashed var(--line-strong);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s, background .15s;
  background: var(--paper-alt);
}
.uploader.drag { border-color: var(--accent); background: rgba(255,74,28,0.06); }
.uploader:hover { border-color: var(--ink); }
.up-icon {
  font-size: 28px;
  color: var(--accent);
  margin-bottom: 8px;
  font-weight: 600;
}
.up-title { font-size: 15px; font-weight: 500; color: var(--ink); margin-bottom: 4px; }
.up-sub { font-size: 12px; color: var(--muted); }

.file-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 12px;
}
.file-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 14px;
}
.file-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-size { color: var(--muted); font-size: 12px; white-space: nowrap; }
.file-remove {
  background: transparent;
  color: var(--muted);
  width: 24px; height: 24px;
  border-radius: 50%;
  font-size: 18px;
  line-height: 1;
  padding: 0;
  transition: background .15s, color .15s;
}
.file-remove:hover { background: #d94141; color: #fff; }

/* ══════════════ THANKS PAGE ══════════════ */
.thanks-main {
  max-width: 640px;
  margin: 80px auto;
  padding: 0 var(--gutter);
  text-align: center;
}
.thanks-h1 {
  font-size: clamp(36px, 7vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 500;
  margin: 12px 0 16px;
}
.thanks-sub {
  font-size: 17px;
  color: var(--muted);
  max-width: 480px;
  margin: 0 auto 32px;
}
.thanks-card {
  max-width: 480px;
  margin: 0 auto;
  padding: 24px;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius);
  text-align: left;
}
.thanks-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin: 0 0 8px;
}
.thanks-url {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 26px;
  letter-spacing: -0.02em;
  margin: 0;
  word-break: break-all;
}

/* ══════════════ ADMIN ══════════════ */
.page-admin {
  background: var(--paper-alt);
  min-height: 100vh;
}
.admin-nav {
  background: var(--ink);
  color: var(--paper);
  position: sticky;
  top: 0;
  z-index: 50;
}
.admin-nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.admin-nav .logo { color: var(--paper); }
.admin-tag {
  background: var(--accent);
  color: var(--paper);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  padding: 3px 8px;
  border-radius: 4px;
}
.admin-nav .dim { color: rgba(255,254,249,0.5); font-size: 13px; }
.grow { flex: 1; }

.admin-login {
  min-height: calc(100vh - 60px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}
.admin-login-card {
  max-width: 400px;
  width: 100%;
  background: var(--paper);
  padding: 40px 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.admin-login-h1 {
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.03em;
  margin: 0 0 8px;
}
.admin-login-sub {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 24px;
  line-height: 1.55;
}

.admin-main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px;
}
.admin-tabs {
  display: flex;
  gap: 2px;
  background: var(--paper);
  padding: 4px;
  border-radius: 10px;
  margin-bottom: 24px;
  max-width: fit-content;
  box-shadow: var(--shadow-sm);
}
.tab {
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  border-radius: 8px;
  transition: background .15s, color .15s;
}
.tab.active {
  background: var(--ink);
  color: var(--paper);
}
.tab:hover:not(.active) { color: var(--ink); }

.admin-panel {
  background: var(--paper);
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 20px;
  gap: 16px;
  flex-wrap: wrap;
}
.panel-head h2 {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0;
}
.panel-head .dim { font-size: 13px; }

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 900px;
}
.tbl th {
  text-align: left;
  padding: 12px 14px;
  background: var(--paper-alt);
  color: var(--muted);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
}
.tbl td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.tbl tr:last-child td { border-bottom: 0; }
.tbl tr:hover td { background: rgba(255,74,28,0.03); }
.tbl .dim { color: var(--muted); font-size: 12px; }
.tbl .err { color: #d94141; font-size: 13px; }
.tbl select {
  font: inherit;
  font-size: 13px;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid var(--line-strong);
  background: var(--paper);
}
.tbl .chk { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.tbl .chk input { accent-color: var(--accent); }

.btn-tiny {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  transition: background .15s, color .15s;
}
.btn-tiny:hover { background: var(--ink); color: var(--paper); }
.btn-tiny.btn-primary { background: var(--ink); color: var(--paper); }
.btn-tiny.btn-primary:hover { background: var(--accent); }

.settings-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 640px;
}
.fld {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.fld span {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.fld input, .fld textarea, .fld select {
  font: inherit;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--paper);
  font-size: 15px;
  color: var(--ink);
}
.fld input:focus, .fld textarea:focus, .fld select:focus {
  outline: none; border-color: var(--accent);
}

/* ── Drawer ── */
.drawer {
  position: fixed;
  top: 0; right: 0;
  height: 100vh;
  width: 100%;
  max-width: 480px;
  background: var(--paper);
  box-shadow: -10px 0 40px rgba(0,0,0,0.15);
  transform: translateX(100%);
  transition: transform .25s;
  overflow-y: auto;
  z-index: 100;
}
.drawer.open { transform: translateX(0); }
.drawer-close {
  position: absolute;
  top: 12px; right: 16px;
  font-size: 28px;
  color: var(--muted);
  width: 36px; height: 36px;
  border-radius: 50%;
}
.drawer-close:hover { background: var(--paper-alt); }
.drawer-body { padding: 40px 28px; }
.drawer-body h3 {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0 0 4px;
}
.drawer-body h4 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 24px 0 8px;
}
.kv {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  gap: 12px;
}
.kv span:first-child { color: var(--muted); }
.kv code { background: var(--paper-alt); padding: 2px 6px; border-radius: 4px; font-size: 12px; }
.prewrap {
  white-space: pre-wrap;
  font-size: 14px;
  color: var(--ink);
  padding: 12px;
  background: var(--paper-alt);
  border-radius: 8px;
}
.files { list-style: none; padding: 0; margin: 0; }
.files li { padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 6px; font-size: 14px; }
.files a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* ── Slim footer ── */
.foot-slim {
  padding: 24px 0;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  background: var(--paper);
  border-top: 1px solid var(--line);
}
.foot-slim a { color: var(--accent); }

/* ══════════════ WALL TILES (upgraded) ══════════════ */
.tile-live {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 11px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2px;
}
.tile-live .tile-name {
  font-size: 10px;
  line-height: 1.1;
  text-align: center;
  word-break: break-word;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.tile-live .tile-tag {
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--success);
  margin-top: 2px;
}
.tile-reserved {
  background: var(--accent-2);
  color: var(--ink);
  border-color: var(--accent-2);
  padding: 6px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2px;
  cursor: default;
}
.tile-reserved .tile-name {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 11px;
  line-height: 1.1;
  text-align: center;
  color: var(--ink);
  word-break: break-word;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.tile-reserved .tile-tag {
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(10,10,10,0.55);
}
.tile-hot {
  background: var(--accent);
  color: var(--paper);
  border-color: var(--accent);
  padding: 6px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2px;
  animation: hot-pulse 2s ease-in-out infinite;
  box-shadow: 0 0 0 0 rgba(255,74,28,0.6);
}
.tile-hot .tile-name {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 11px;
  line-height: 1.05;
  text-align: center;
  font-weight: 500;
}
.tile-hot .tile-tag {
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,254,249,0.75);
}
@keyframes hot-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,74,28,0.4); transform: scale(1); }
  50%      { box-shadow: 0 0 0 8px rgba(255,74,28,0);  transform: scale(1.05); }
}

.wall-legend {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
  font-size: 12px;
  color: var(--muted);
  flex-wrap: wrap;
}
.wall-legend .lg {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  margin-right: 4px;
  vertical-align: middle;
}
.lg-live     { background: var(--ink); }
.lg-reserved { background: var(--accent-2); }
.lg-hot      { background: var(--accent); }
.lg-open     { background: var(--paper-alt); border: 1px solid var(--line); }

/* ══════════════ CARE PACKAGE 2-COL ══════════════ */
.two-col-care {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
  margin-top: 32px;
}
@media (min-width: 720px) {
  .two-col-care { grid-template-columns: 1fr 1fr; gap: 48px; }
}
.care-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 16px;
}
.care-list li {
  padding-left: 24px;
  position: relative;
}
.care-list li::before {
  content: "~";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.2;
}
.buy-card-care { margin: 0; }
.buy-per {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0;
}

/* ══════════════ PORTAL ══════════════ */
.page-portal { background: var(--paper-alt); min-height: 100vh; }
.portal-main {
  max-width: 1200px;
  margin: 24px auto 60px;
  padding: 0 var(--gutter);
}
.portal-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 900px) {
  .portal-grid { grid-template-columns: 280px 1fr; }
}
.portal-side {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.portal-status {
  background: var(--ink);
  color: var(--paper);
  padding: 20px;
  border-radius: var(--radius);
}
.ps-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 8px;
}
.ps-name {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 22px;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 6px;
}
.ps-url {
  font-size: 12px;
  margin-bottom: 12px;
  word-break: break-all;
}
.ps-url a { color: var(--paper); opacity: 0.8; text-decoration: underline; text-underline-offset: 3px; }
.ps-spot { font-size: 12px; color: rgba(255,254,249,0.5); }
.ps-spot.dim { color: rgba(255,254,249,0.35); font-style: italic; }

.portal-tabs {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--paper);
  padding: 8px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.ptab {
  padding: 10px 14px;
  text-align: left;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  border-radius: 8px;
  transition: background .15s, color .15s;
}
.ptab.active {
  background: var(--ink);
  color: var(--paper);
}
.ptab:hover:not(.active) { background: var(--paper-alt); color: var(--ink); }

.portal-content {
  background: var(--paper);
  padding: 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.pp-h {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}
.pp-sub {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 20px;
}

/* ══════════════ CHAT ══════════════ */
.chat-messages {
  max-height: 480px;
  overflow-y: auto;
  padding: 12px;
  background: var(--paper-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}
.msg {
  max-width: 78%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.5;
}
.msg-buyer {
  align-self: flex-end;
  background: var(--ink);
  color: var(--paper);
  border-bottom-right-radius: 4px;
}
.msg-admin {
  align-self: flex-start;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  border-bottom-left-radius: 4px;
}
.msg-body { word-wrap: break-word; }
.msg-meta {
  font-size: 10px;
  margin-top: 4px;
  opacity: 0.6;
  letter-spacing: 0.02em;
}

.chat-form {
  display: flex;
  gap: 10px;
  align-items: stretch;
}
.chat-form textarea {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  font: inherit;
  font-size: 15px;
  resize: none;
  min-height: 48px;
}
.chat-form textarea:focus { outline: none; border-color: var(--accent); }
.chat-form button { align-self: flex-end; padding: 12px 20px; }

.chat-preview {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  background: var(--paper-alt);
  border-radius: 8px;
  max-height: 220px;
  overflow-y: auto;
}
.chat-preview .msg { max-width: 90%; font-size: 12px; padding: 6px 10px; }

/* ══════════════ ADMIN CHAT SPLIT ══════════════ */
.chat-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  min-height: 500px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
@media (min-width: 720px) {
  .chat-split { grid-template-columns: 280px 1fr; }
}
.chat-list {
  background: var(--paper-alt);
  border-right: 1px solid var(--line);
  overflow-y: auto;
  max-height: 640px;
}
.chat-list-head {
  padding: 14px 16px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
#chatList { list-style: none; padding: 0; margin: 0; }
.chat-list-item {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  position: relative;
  transition: background .1s;
}
.chat-list-item:hover { background: var(--paper); }
.chat-list-item.active { background: var(--paper); border-left: 3px solid var(--accent); padding-left: 13px; }
.cli-name { font-weight: 500; font-size: 14px; }
.cli-sub  { color: var(--muted); font-size: 12px; }
.dot-hot {
  position: absolute; top: 14px; right: 14px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(255,74,28,0.18);
}
.chat-thread {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  min-height: 500px;
  max-height: 640px;
}
.chat-thread-head {
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.chat-thread .chat-messages {
  flex: 1;
  border: 0;
  border-radius: 0;
  margin: 0;
  max-height: none;
}
.chat-thread .chat-form {
  padding: 16px;
  border-top: 1px solid var(--line);
}
.chat-empty {
  padding: 60px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

/* ══════════════ TOAST ══════════════ */
.toast-host {
  position: fixed;
  top: 70px; right: 20px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.toast {
  padding: 12px 18px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  opacity: 0;
  transform: translateX(20px);
  transition: opacity .3s, transform .3s;
  pointer-events: auto;
  max-width: 360px;
}
.toast.show { opacity: 1; transform: translateX(0); }
.toast-hot   { background: var(--accent); }
.toast-ok    { background: var(--success); }

/* ══════════════ ADMIN TAB COUNTS ══════════════ */
.tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  padding: 0 6px;
  height: 18px;
  border-radius: 999px;
  background: var(--paper-alt);
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  margin-left: 4px;
}
.tab.active .tab-count { background: rgba(255,254,249,0.2); color: var(--paper); }
.tab-count-hot { background: var(--accent); color: var(--paper); }
.tab-count:empty { display: none; }

.unread-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  background: var(--accent);
  color: var(--paper);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ══════════════ DRAWER HEAD ══════════════ */
.drawer-head {
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
  margin-bottom: 20px;
}
.drawer-sub {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
}

/* ══════════════ ADMIN LOGIN HELP ══════════════ */
.admin-login-help {
  margin-top: 24px;
  padding: 14px 16px;
  background: var(--paper-alt);
  border-radius: 8px;
  font-size: 13px;
}
.admin-login-help summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--muted);
  list-style: none;
}
.admin-login-help summary::-webkit-details-marker { display: none; }
.admin-login-help summary::after { content: " ›"; color: var(--accent); }
.admin-login-help[open] summary::after { content: " ⌄"; }
.admin-login-help ol {
  margin: 12px 0 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.55;
}
.admin-login-help code {
  background: var(--paper);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
  color: var(--ink);
}

/* ══════════════ PORTFOLIO SCREENSHOT TILES ══════════════ */
.port-shot {
  background-color: #1a1a1a;
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
  position: relative;
  aspect-ratio: 4 / 5;
  transition: transform .2s;
}
.port-shot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 60%, rgba(0,0,0,0.4) 100%);
  pointer-events: none;
}
.port-shot .port-badge {
  position: absolute;
  top: 14px; left: 14px;
  z-index: 2;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(6px);
  color: var(--paper);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
}
.port-card:hover .port-shot { transform: translateY(-4px); }

/* ══════════════ PRINT ══════════════ */
@media print {
  .nav, .sticky-bar, .float-wa, .marquee-wrap, .admin-nav, .drawer, .toast-host { display: none; }
  .section { padding: 30px 0; }
}
