/* ════════════════════════════════════════════════════════════════
   The PowerHost — Design System v2
   Tokens · Dark/Light themes · Homepage components
   Fonts: Exo 2 (display) · Plus Jakarta Sans (body) · Space Mono (data)
   ════════════════════════════════════════════════════════════════ */

/* ── Tokens ─────────────────────────────────────────────────── */
:root {
  /* Brand (constant across themes) */
  --tp-magenta: #B401D6;
  --tp-indigo: #550FF8;
  --tp-violet: #7C3AED;
  --tp-grad: linear-gradient(100deg, var(--tp-magenta), var(--tp-indigo));
  --tp-ok: #2BD576;
  --tp-warn: #F5B40A;
  --tp-bad: #F4536E;

  /* Type */
  --f-display: 'Exo 2', 'Plus Jakarta Sans', system-ui, sans-serif;
  --f-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --f-mono: 'Space Mono', ui-monospace, 'Cascadia Mono', monospace;

  --ease: cubic-bezier(0.32, 0.72, 0, 1);

  /* Dark theme (default) */
  --bg: #0A0712;
  --bg-2: #0F0B1B;
  --surface: #151024;
  --surface-2: #1C1530;
  --ink: #F1EDFA;
  --ink-2: #B6AECB;
  --ink-3: #776F8E;
  --line: rgba(177, 156, 255, 0.13);
  --line-2: rgba(177, 156, 255, 0.07);
  --console-bg: #0C0916;
  --console-line: rgba(177, 156, 255, 0.16);
  --chip-bg: rgba(124, 58, 237, 0.12);
  --chip-line: rgba(124, 58, 237, 0.32);
  --glow: 0 24px 80px -24px rgba(124, 58, 237, 0.45);
  --card-shadow: 0 1px 0 rgba(255,255,255,0.04) inset, 0 16px 48px -20px rgba(0,0,0,0.55);
}

html[data-theme="light"] {
  --bg: #F6F5FB;
  --bg-2: #FFFFFF;
  --surface: #FFFFFF;
  --surface-2: #F2F0FA;
  --ink: #18102C;
  --ink-2: #564D72;
  --ink-3: #8B84A3;
  --line: rgba(34, 18, 74, 0.13);
  --line-2: rgba(34, 18, 74, 0.07);
  --console-bg: #1A1430;            /* console stays dark — it's a terminal */
  --console-line: rgba(177, 156, 255, 0.2);
  --chip-bg: rgba(124, 58, 237, 0.08);
  --chip-line: rgba(124, 58, 237, 0.28);
  --glow: 0 24px 70px -28px rgba(85, 15, 248, 0.35);
  --card-shadow: 0 1px 2px rgba(24, 16, 44, 0.05), 0 16px 40px -22px rgba(24, 16, 44, 0.18);
}

/* Theme transition (skipped when user prefers reduced motion) */
html.tp-theme-anim body,
html.tp-theme-anim .tp-card,
html.tp-theme-anim .tp-section {
  transition: background-color .45s var(--ease), color .45s var(--ease), border-color .45s var(--ease);
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ── Page scaffolding (only on opted-in pages) ──────────────── */
body[data-tph-themed] {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  -webkit-font-smoothing: antialiased;
  margin: 0;
}

body[data-tph-themed] ::selection { background: rgba(124,58,237,.35); color: #fff; }

.tp-wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .tp-wrap { padding: 0 18px; } }

.tp-section { padding: 96px 0; position: relative; }
@media (max-width: 768px) { .tp-section { padding: 64px 0; } }

/* Section header pattern */
.tp-kicker {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--tp-violet);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 14px;
}
.tp-kicker::before {
  content: '';
  width: 22px; height: 1px;
  background: var(--tp-grad);
}
.tp-h2 {
  font-family: var(--f-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 14px;
  color: var(--ink);
}
.tp-sub { font-size: 16px; line-height: 1.65; color: var(--ink-2); max-width: 560px; margin: 0; }
.tp-grad-text {
  background: var(--tp-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ── Buttons ────────────────────────────────────────────────── */
.tp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--f-body); font-size: 15px; font-weight: 600;
  padding: 13px 26px; border-radius: 12px; text-decoration: none;
  border: none; cursor: pointer; transition: transform .22s var(--ease), box-shadow .22s var(--ease), background .22s;
  white-space: nowrap;
}
.tp-btn:focus-visible, .tp-icon-btn:focus-visible, .tp-chip:focus-within,
.tp-search input:focus-visible, .tp-faq summary:focus-visible {
  outline: 2px solid var(--tp-violet); outline-offset: 2px;
}
.tp-btn-primary { background: var(--tp-grad); color: #fff; box-shadow: 0 10px 26px -10px rgba(124,58,237,.55); }
.tp-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -10px rgba(124,58,237,.65); }
.tp-btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.tp-btn-ghost:hover { border-color: var(--tp-violet); transform: translateY(-1px); }

/* ── Cards ──────────────────────────────────────────────────── */
.tp-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--card-shadow);
}

/* ── Status LED ─────────────────────────────────────────────── */
.tp-led { width: 8px; height: 8px; border-radius: 50%; background: var(--tp-ok); position: relative; flex-shrink: 0; }
.tp-led::after {
  content: ''; position: absolute; inset: -4px; border-radius: 50%;
  border: 1px solid var(--tp-ok); opacity: .5; animation: tp-ping 2.2s var(--ease) infinite;
}
@keyframes tp-ping { 0% { transform: scale(.5); opacity: .7; } 80%, 100% { transform: scale(1.4); opacity: 0; } }

/* ════════════════════ HERO ════════════════════ */
.tp-hero { padding: 72px 0 84px; position: relative; overflow: clip; }
@media (max-width: 768px) { .tp-hero { padding: 44px 0 60px; } }

/* Backdrop: faint grid + brand bloom. Subtle, not a galaxy. */
.tp-hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--line-2) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-2) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 0%, #000 30%, transparent 78%);
  mask-image: radial-gradient(ellipse 75% 65% at 50% 0%, #000 30%, transparent 78%);
}
.tp-hero::after {
  content: ''; position: absolute; top: -260px; left: 50%; transform: translateX(-50%);
  width: 760px; height: 520px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(124,58,237,.28), transparent 70%);
  filter: blur(10px);
}
html[data-theme="light"] .tp-hero::after { opacity: .4; }

.tp-hero-grid {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 56px; align-items: center; position: relative; z-index: 1;
}
@media (max-width: 980px) { .tp-hero-grid { grid-template-columns: 1fr; gap: 44px; } }

.tp-hero-offer {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-mono); font-size: 12.5px; letter-spacing: .04em;
  color: var(--ink-2); background: var(--chip-bg);
  border: 1px solid var(--chip-line); border-radius: 999px;
  padding: 7px 16px 7px 12px; margin-bottom: 26px;
}
.tp-hero-offer strong { color: var(--tp-warn); font-weight: 700; }
html[data-theme="light"] .tp-hero-offer strong { color: var(--tp-magenta); }
html[data-theme="light"] .tp-billing-save { color: #0E9F57; }

.tp-h1 {
  font-family: var(--f-display);
  font-size: clamp(36px, 5.4vw, 62px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
}
.tp-hero-sub { font-size: 17px; line-height: 1.7; color: var(--ink-2); max-width: 520px; margin: 0 0 34px; }

/* Domain search — prompt style */
.tp-search {
  display: flex; align-items: stretch;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--card-shadow);
  max-width: 560px;
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.tp-search:focus-within { border-color: var(--tp-violet); box-shadow: 0 0 0 4px rgba(124,58,237,.14), var(--card-shadow); }
.tp-search-prefix {
  display: flex; align-items: center; padding: 0 4px 0 18px;
  font-family: var(--f-mono); font-size: 14px; color: var(--tp-violet);
  user-select: none;
}
.tp-search input {
  flex: 1; min-width: 0; border: 0; background: transparent;
  padding: 17px 12px; font-family: var(--f-mono); font-size: 14.5px;
  color: var(--ink); outline: none;
}
.tp-search input::placeholder { color: var(--ink-3); }
.tp-search button {
  margin: 6px; border: 0; border-radius: 10px; cursor: pointer;
  background: var(--tp-grad); color: #fff;
  font-family: var(--f-body); font-weight: 700; font-size: 14.5px;
  padding: 0 24px; display: inline-flex; align-items: center; gap: 8px;
  transition: filter .2s, transform .2s var(--ease);
}
.tp-search button:hover { filter: brightness(1.12); }
.tp-search button:active { transform: scale(.97); }

/* TLD chips */
.tp-tlds { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tp-chip { position: relative; }
.tp-chip input { position: absolute; opacity: 0; pointer-events: none; }
.tp-chip span {
  display: inline-flex; align-items: center;
  font-family: var(--f-mono); font-size: 12.5px;
  padding: 6px 14px; border-radius: 999px; cursor: pointer;
  color: var(--ink-2); border: 1px solid var(--line);
  transition: all .18s var(--ease); user-select: none;
}
.tp-chip span:hover { border-color: var(--tp-violet); color: var(--ink); }
.tp-chip input:checked + span {
  color: #fff; border-color: transparent;
  background: var(--tp-grad);
}
html[data-theme="light"] .tp-chip input:checked + span { box-shadow: 0 4px 12px -4px rgba(124,58,237,.5); }

/* Inline search status (replaces popup alerts) */
.tp-search-status {
  font-family: var(--f-mono); font-size: 13px; margin-top: 12px;
  color: var(--tp-bad); min-height: 18px;
}
.tp-search-status.is-info { color: var(--ink-2); }

/* Hero proof points */
.tp-hero-proof {
  display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 30px;
  font-size: 13.5px; color: var(--ink-2);
}
.tp-hero-proof span { display: inline-flex; align-items: center; gap: 8px; }
.tp-hero-proof svg { color: var(--tp-ok); flex-shrink: 0; }

/* Console card — the signature element */
.tp-console {
  background: var(--console-bg);
  border: 1px solid var(--console-line);
  border-radius: 18px;
  box-shadow: var(--glow), var(--card-shadow);
  overflow: hidden;
  font-family: var(--f-mono);
  color: #CFC7E8;
}
.tp-console-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 18px; border-bottom: 1px solid var(--console-line);
  font-size: 12px; letter-spacing: .06em; color: #8E84B0;
}
.tp-console-dots { display: flex; gap: 6px; }
.tp-console-dots i { width: 10px; height: 10px; border-radius: 50%; background: #3A3158; }
.tp-console-dots i:first-child { background: #F4536E; }
.tp-console-dots i:nth-child(2) { background: #F5B40A; }
.tp-console-dots i:last-child { background: #2BD576; }
.tp-console-body { padding: 22px 22px 8px; }
.tp-console-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 11px 0; border-bottom: 1px dashed rgba(177,156,255,.12);
  font-size: 13px;
}
.tp-console-row:last-child { border-bottom: 0; }
.tp-console-row .k { color: #8E84B0; }
.tp-console-row .v { color: #EDE8FF; font-weight: 700; display: inline-flex; align-items: center; gap: 8px; }
.tp-console-row .v.ok { color: var(--tp-ok); }
.tp-console-foot {
  padding: 14px 22px 18px; font-size: 12px; color: #6F6590;
  display: flex; align-items: center; gap: 8px;
}
.tp-console-cursor { display: inline-block; width: 8px; height: 14px; background: var(--tp-magenta); animation: tp-blink 1.1s steps(1) infinite; }
@keyframes tp-blink { 50% { opacity: 0; } }

/* ════════════════════ TICKER ════════════════════ */
.tp-ticker {
  border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2);
  overflow: hidden; padding: 14px 0;
  background: var(--bg-2);
}
.tp-ticker-track {
  display: flex; gap: 48px; width: max-content;
  animation: tp-scroll 36s linear infinite;
  font-family: var(--f-mono); font-size: 12.5px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-3); white-space: nowrap;
}
.tp-ticker:hover .tp-ticker-track { animation-play-state: paused; }
.tp-ticker-track b { color: var(--tp-violet); font-weight: 400; margin-right: 8px; }
@keyframes tp-scroll { to { transform: translateX(-50%); } }

/* ════════════════════ LOGOS ════════════════════ */
.tp-logos { padding: 54px 0 8px; text-align: center; }
.tp-logos p {
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ink-3); margin: 0 0 28px;
}
.tp-logos-row {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 26px 52px;
}
.tp-logos-row img {
  height: 30px; width: auto; opacity: .55;
  filter: grayscale(1) brightness(1.7);
  transition: opacity .25s, filter .25s;
}
html[data-theme="light"] .tp-logos-row img { filter: grayscale(1) brightness(.35); opacity: .45; }
.tp-logos-row img:hover { opacity: 1; filter: none; }

/* ════════════════════ PRICING ════════════════════ */
.tp-billing {
  display: inline-grid; grid-template-columns: 1fr 1fr; align-items: center;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; padding: 4px; margin-top: 26px; position: relative;
}
.tp-billing label {
  font-size: 14px; font-weight: 600; color: var(--ink-2); text-align: center;
  padding: 9px 22px; border-radius: 999px; cursor: pointer;
  transition: color .2s; position: relative; z-index: 1; user-select: none;
}
.tp-billing .tp-billing-pill {
  position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px);
  border-radius: 999px; background: var(--tp-grad);
  transition: transform .3s var(--ease);
}
.tp-billing.yearly .tp-billing-pill { transform: translateX(100%); }
.tp-billing.yearly label[data-cycle="yearly"],
.tp-billing:not(.yearly) label[data-cycle="monthly"] { color: #fff; }
.tp-billing-save {
  font-family: var(--f-mono); font-size: 11px; color: var(--tp-ok);
  margin-left: 6px;
}

.tp-plans {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 52px;
  align-items: stretch;
}
@media (max-width: 980px) { .tp-plans { grid-template-columns: 1fr; max-width: 460px; margin-left: auto; margin-right: auto; } }

.tp-plan { padding: 30px 28px; display: flex; flex-direction: column; position: relative; transition: transform .3s var(--ease), border-color .3s; }
.tp-plan:hover { transform: translateY(-5px); border-color: var(--chip-line); }
.tp-plan-featured {
  border: 1px solid transparent;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    var(--tp-grad) border-box;
  box-shadow: var(--glow), var(--card-shadow);
}
.tp-plan-flag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  background: var(--tp-grad); color: #fff; border-radius: 999px; padding: 5px 16px;
}
.tp-plan-head { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.tp-plan-head img { width: 34px; height: 34px; object-fit: contain; }
.tp-plan h3 { font-family: var(--f-display); font-size: 21px; font-weight: 700; margin: 0; }
.tp-plan-for { font-size: 13.5px; color: var(--ink-3); margin: 0 0 22px; }

.tp-price-line { display: flex; align-items: baseline; gap: 6px; min-height: 56px; }
.tp-price {
  font-family: var(--f-mono); font-weight: 700;
  font-size: 42px; letter-spacing: -0.02em; color: var(--ink);
}
.tp-price-per { font-size: 13px; color: var(--ink-3); }
.tp-price-note { font-family: var(--f-mono); font-size: 11.5px; color: var(--ink-3); margin: 4px 0 0; }

.tp-specs { list-style: none; padding: 0; margin: 24px 0 28px; flex: 1; }
.tp-specs li {
  display: flex; justify-content: space-between; gap: 14px;
  font-size: 13.5px; padding: 9px 2px;
  border-bottom: 1px dashed var(--line-2);
}
.tp-specs li:last-child { border-bottom: 0; }
.tp-specs .sk { color: var(--ink-3); }
.tp-specs .sv { font-family: var(--f-mono); font-size: 12.5px; color: var(--ink); text-align: right; }
.tp-specs .sv.ok { color: var(--tp-ok); }

/* ════════════════════ WHY / SPEC TABLE ════════════════════ */
.tp-why-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 60px; align-items: start; }
@media (max-width: 980px) { .tp-why-grid { grid-template-columns: 1fr; gap: 36px; } }
.tp-why-sticky { position: sticky; top: 110px; }
@media (max-width: 980px) { .tp-why-sticky { position: static; } }

.tp-why-rows { display: flex; flex-direction: column; }
.tp-why-row {
  display: grid; grid-template-columns: 150px 1fr; gap: 22px;
  padding: 24px 4px; border-top: 1px solid var(--line);
  transition: background .2s;
}
.tp-why-row:last-child { border-bottom: 1px solid var(--line); }
.tp-why-row:hover { background: var(--surface); }
@media (max-width: 560px) { .tp-why-row { grid-template-columns: 1fr; gap: 8px; } }
.tp-why-term {
  font-family: var(--f-mono); font-size: 12.5px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--tp-violet); padding-top: 3px;
}
.tp-why-row h4 { font-family: var(--f-display); font-size: 17px; font-weight: 700; margin: 0 0 6px; color: var(--ink); }
.tp-why-row p { font-size: 14.5px; line-height: 1.65; color: var(--ink-2); margin: 0; }

/* ════════════════════ TESTIMONIALS ════════════════════ */
.tp-quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 48px; }
@media (max-width: 980px) { .tp-quotes { grid-template-columns: 1fr; max-width: 560px; margin-left: auto; margin-right: auto; } }
.tp-quote { padding: 26px 26px 22px; display: flex; flex-direction: column; gap: 18px; }
.tp-quote-stars { color: var(--tp-warn); font-size: 13px; letter-spacing: 3px; }
.tp-quote p { font-size: 15px; line-height: 1.7; color: var(--ink-2); margin: 0; flex: 1; }
.tp-quote-who { display: flex; align-items: center; gap: 12px; }
.tp-quote-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--tp-grad); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-mono); font-size: 14px; font-weight: 700;
}
.tp-quote-who b { font-size: 14px; color: var(--ink); display: block; }
.tp-quote-who small { font-family: var(--f-mono); font-size: 11px; color: var(--ink-3); }

/* ════════════════════ FAQ ════════════════════ */
.tp-faq { max-width: 760px; margin: 44px auto 0; }
.tp-faq details { border-top: 1px solid var(--line); }
.tp-faq details:last-child { border-bottom: 1px solid var(--line); }
.tp-faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between;
  align-items: center; gap: 18px; padding: 20px 4px;
  font-family: var(--f-display); font-size: 16.5px; font-weight: 600; color: var(--ink);
}
.tp-faq summary::-webkit-details-marker { display: none; }
.tp-faq summary .x { font-family: var(--f-mono); color: var(--tp-violet); transition: transform .25s var(--ease); flex-shrink: 0; }
.tp-faq details[open] summary .x { transform: rotate(45deg); }
.tp-faq .a { padding: 0 4px 22px; font-size: 14.5px; line-height: 1.7; color: var(--ink-2); max-width: 640px; }

/* ════════════════════ CTA BAND ════════════════════ */
.tp-cta {
  position: relative; overflow: clip; text-align: center;
  border: 1px solid var(--chip-line); border-radius: 24px;
  padding: 72px 28px; background: var(--surface);
}
.tp-cta::before {
  content: ''; position: absolute; inset: -1px; pointer-events: none;
  background:
    radial-gradient(420px 240px at 18% 110%, rgba(180,1,214,.22), transparent 70%),
    radial-gradient(420px 240px at 82% -10%, rgba(85,15,248,.22), transparent 70%);
}
.tp-cta > * { position: relative; }
.tp-cta .tp-h2 { margin-bottom: 12px; }
.tp-cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
.tp-cta-mono { font-family: var(--f-mono); font-size: 12.5px; color: var(--ink-3); margin-top: 22px; }

/* ════════════════════ DOMAIN RESULTS ════════════════════ */
.tp-results { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; margin-top: 30px; }
.tp-result { padding: 22px; }
.tp-result-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.tp-result-domain { font-family: var(--f-mono); font-size: 17px; font-weight: 700; color: var(--ink); word-break: break-all; }
.tp-result-domain span { color: var(--tp-magenta); }
.tp-badge {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 999px; white-space: nowrap;
}
.tp-badge-ok { color: var(--tp-ok); background: rgba(43,213,118,.12); border: 1px solid rgba(43,213,118,.3); }
.tp-badge-no { color: var(--tp-bad); background: rgba(244,83,110,.1); border: 1px solid rgba(244,83,110,.3); }
.tp-result-price { display: flex; justify-content: space-between; font-size: 13.5px; padding: 6px 0; color: var(--ink-2); }
.tp-result-price b { font-family: var(--f-mono); font-weight: 700; color: var(--ink); }
.tp-result .tp-btn { width: 100%; margin-top: 14px; padding: 11px 0; font-size: 14px; }

/* Loading dots */
.tp-loading { display: none; align-items: center; gap: 10px; margin-top: 16px; font-family: var(--f-mono); font-size: 13px; color: var(--ink-2); }
.tp-loading.show { display: inline-flex; }
.tp-loading i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--chip-line); border-top-color: var(--tp-violet); animation: tp-spin .8s linear infinite; }
@keyframes tp-spin { to { transform: rotate(360deg); } }

/* ════════════════════ REVEAL ON SCROLL ════════════════════ */
.tp-reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.tp-reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .tp-reveal { opacity: 1; transform: none; } }

/* ════════════════════ HEADER CONTROLS (theme + currency) ════ */
.tp-ctl { display: inline-flex; align-items: center; gap: 8px; margin-right: 10px; }
.tp-icon-btn {
  width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px; border: 1px solid rgba(177,156,255,.2);
  background: rgba(124,58,237,.1); color: #DDD6F3; cursor: pointer;
  transition: all .2s var(--ease); padding: 0;
}
.tp-icon-btn:hover { border-color: var(--tp-violet); transform: translateY(-1px); }
.tp-icon-btn svg { width: 17px; height: 17px; }
.tp-icon-btn .ic-sun { display: none; }
html[data-theme="light"] .tp-icon-btn .ic-sun { display: block; }
html[data-theme="light"] .tp-icon-btn .ic-moon { display: none; }
body:not([data-tph-themed]) #tpThemeBtn { display: none; }   /* hide toggle on non-migrated pages */

.tp-cur { position: relative; }
.tp-cur-btn {
  height: 36px; display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--f-mono); font-size: 12.5px; font-weight: 700;
  padding: 0 12px; border-radius: 10px; cursor: pointer;
  border: 1px solid rgba(177,156,255,.2); background: rgba(124,58,237,.1); color: #DDD6F3;
  transition: all .2s var(--ease);
}
.tp-cur-btn:hover { border-color: var(--tp-violet); }
.tp-cur-btn svg { width: 12px; height: 12px; opacity: .7; transition: transform .2s; }
.tp-cur.open .tp-cur-btn svg { transform: rotate(180deg); }
.tp-cur-menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 168px;
  background: #161028; border: 1px solid rgba(177,156,255,.2); border-radius: 12px;
  box-shadow: 0 18px 50px -12px rgba(0,0,0,.6);
  padding: 6px; z-index: 10000;
  opacity: 0; transform: translateY(-6px) scale(.98); pointer-events: none;
  transition: opacity .18s var(--ease), transform .18s var(--ease);
}
.tp-cur.open .tp-cur-menu { opacity: 1; transform: none; pointer-events: auto; }
.tp-cur-menu button {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  background: none; border: 0; cursor: pointer; border-radius: 8px;
  padding: 9px 12px; font-family: var(--f-mono); font-size: 12.5px; color: #C9C1E4;
  transition: background .15s;
}
.tp-cur-menu button:hover { background: rgba(124,58,237,.16); color: #fff; }
.tp-cur-menu button.active { color: #fff; background: rgba(124,58,237,.24); }
.tp-cur-menu button .sym { color: var(--tp-magenta); }

/* Light-mode header/footer controls keep readable on light header bg */
html[data-theme="light"] body[data-tph-themed] .tp-icon-btn,
html[data-theme="light"] body[data-tph-themed] .tp-cur-btn {
  background: rgba(124,58,237,.08); color: #3A2E63; border-color: rgba(34,18,74,.18);
}

/* ════ Light-theme overrides for the shared header/footer (themed pages only) ════ */
html[data-theme="light"] body[data-tph-themed] .tph-hdr-inner { background: rgba(255,255,255,.86) !important; border-color: rgba(34,18,74,.1) !important; }
html[data-theme="light"] body[data-tph-themed] .tph-nav-link { color: #3A2E63 !important; }
html[data-theme="light"] body[data-tph-themed] .tph-nav-link:hover { color: #18102C !important; }
html[data-theme="light"] body[data-tph-themed] .tph-btn-login { color: #3A2E63 !important; border-color: rgba(34,18,74,.2) !important; }
html[data-theme="light"] body[data-tph-themed] .tph-burger b { background: #3A2E63 !important; }
html[data-theme="light"] body[data-tph-themed] .tph-mega,
html[data-theme="light"] body[data-tph-themed] .tph-mega * { color-scheme: light; }
