/* Taunsa Hub ? light premium (reference style) + animated waves + food float */
:root {
  --th-orange: #FF6B00;
  --th-deep: #E25500;
  --th-ink: #0F1B2D;
  --th-muted: #5B6577;
  --th-bg: #F3F7FB;
  --th-card: #ffffff;
  --th-line: rgba(15, 27, 45, 0.08);
  --th-glow: rgba(255, 107, 0, 0.28);
  --font: "Instrument Sans", system-ui, sans-serif;
  --display: "Fraunces", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.th-body {
  margin: 0;
  font-family: var(--font);
  color: var(--th-ink);
  background: var(--th-bg);
  min-height: 100vh;
  line-height: 1.55;
  overflow-x: hidden;
  position: relative;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }

/* Animated background ? not flat white */
.th-bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
  background:
    radial-gradient(900px 520px at 12% 8%, rgba(255, 140, 60, 0.16), transparent 55%),
    radial-gradient(800px 480px at 88% 12%, rgba(90, 140, 220, 0.12), transparent 50%),
    linear-gradient(180deg, #eef4fb 0%, var(--th-bg) 38%, #e8f0f8 100%);
}
.th-wave {
  position: absolute; border-radius: 50%;
  filter: blur(2px);
  opacity: 0.55;
  animation: thDrift 18s ease-in-out infinite alternate;
}
.th-wave-a {
  width: 120vmax; height: 70vmax; left: -40vmax; bottom: -45vmax;
  background: radial-gradient(circle at 30% 30%, rgba(180, 210, 240, 0.7), rgba(243, 247, 251, 0));
}
.th-wave-b {
  width: 100vmax; height: 60vmax; right: -35vmax; bottom: -40vmax;
  background: radial-gradient(circle at 60% 40%, rgba(255, 170, 100, 0.25), transparent 60%);
  animation-duration: 22s; animation-delay: -4s;
}
.th-wave-c {
  width: 80vmax; height: 50vmax; left: 20vmax; top: -30vmax;
  background: radial-gradient(circle at 50% 60%, rgba(160, 190, 230, 0.35), transparent 65%);
  animation-duration: 26s; animation-delay: -8s;
}
@keyframes thDrift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(3%, -2%, 0) scale(1.05); }
}

.th-workspace .th-food-float { display: none !important; }
.th-food-float { position: absolute; inset: 0; }
.th-nav-link {
  font-size: .86rem;
  font-weight: 600;
  padding: .45rem .75rem;
  border-radius: 999px;
  color: var(--th-ink);
  opacity: .78;
}
.th-nav-link:hover { opacity: 1; background: rgba(255,107,0,.1); }
.th-food-item {
  position: absolute; font-size: clamp(1.6rem, 3vw, 2.4rem);
  opacity: 0.18; filter: blur(0.2px);
  animation: thFloat 12s ease-in-out infinite;
  user-select: none;
}
.th-food-1 { top: 18%; left: 6%; animation-delay: 0s; }
.th-food-2 { top: 55%; left: 10%; animation-delay: -2s; font-size: 2.8rem; }
.th-food-3 { top: 30%; right: 8%; animation-delay: -4s; }
.th-food-4 { bottom: 18%; right: 14%; animation-delay: -1s; }
.th-food-5 { top: 12%; right: 28%; animation-delay: -6s; opacity: 0.14; }
.th-food-6 { bottom: 28%; left: 22%; animation-delay: -3s; }
.th-food-7 { top: 68%; right: 6%; animation-delay: -5s; }
.th-food-8 { top: 40%; left: 42%; animation-delay: -7s; opacity: 0.12; }
@keyframes thFloat {
  0%, 100% { transform: translateY(0) rotate(-6deg); }
  50% { transform: translateY(-18px) rotate(8deg); }
}

.th-nav, .th-section, .th-footer, .th-hero, .th-mobile-nav, .th-bot-wrap, .th-tools-rail { position: relative; z-index: 1; }

/* Header — full-width premium bar */
.th-nav-shell {
  position: sticky; top: 0.75rem; z-index: 40;
  max-width: 1180px; margin: 0.75rem auto 0; padding: 0 1rem;
  transition: transform .34s cubic-bezier(.22,1,.36,1), opacity .28s ease;
  will-change: transform;
}
.th-nav-shell.th-nav-full {
  top: 0; max-width: none; width: 100%; margin: 0; padding: 0;
}
.th-nav-shell.th-nav-full::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,107,0,.35), transparent);
  pointer-events: none;
}
.th-nav-shell.th-nav-hide {
  transform: translate3d(0, calc(-100% - 1.35rem), 0) !important;
  opacity: 0;
  pointer-events: none;
}
.th-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.85rem;
  padding: 0.65rem 1rem 0.65rem 1.05rem;
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(255,255,255,.55);
  box-shadow:
    0 18px 50px rgba(15,27,45,.12),
    0 2px 0 rgba(255,255,255,.5) inset;
  backdrop-filter: blur(18px) saturate(1.35);
  -webkit-backdrop-filter: blur(18px) saturate(1.35);
}
.th-nav-left, .th-nav-right {
  display: flex; align-items: center; gap: 0.55rem; flex-wrap: wrap;
}
.th-nav-right { justify-content: flex-end; }
.th-nav-left a {
  font-size: 0.86rem; font-weight: 700; color: var(--th-ink);
  opacity: 0.9; transition: color 0.2s, opacity 0.2s, transform 0.2s, background 0.2s;
}
.th-nav-left a:hover { color: var(--th-orange); opacity: 1; }
.th-logo {
  display: flex; flex-direction: row; align-items: center; gap: 0.55rem;
  font-family: var(--display); font-weight: 800; letter-spacing: -0.03em;
  min-width: 0; justify-self: center;
}
.th-logo-mark {
  flex: 0 0 auto;
  width: 48px; height: 48px; border-radius: 15px;
  display: grid; place-items: center;
  background: linear-gradient(145deg, #ff9a4a, var(--th-orange) 45%, var(--th-deep));
  box-shadow: 0 10px 24px var(--th-glow);
  border: 2px solid rgba(255,255,255,.6);
}
.th-logo img, .th-logo-mark img {
  width: 36px !important; height: 36px !important; max-width: none !important;
  border-radius: 10px; object-fit: contain; background: transparent;
  display: block;
}
.th-logo-text {
  font-size: 0.95rem; color: var(--th-ink); line-height: 1.15;
  max-width: 11rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.th-socials { display: flex; gap: 0.35rem; }
.th-socials a {
  width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center;
  background: rgba(15, 27, 45, 0.06); font-weight: 800; font-size: 0.85rem;
  transition: background 0.2s, color 0.2s;
}
.th-socials a:hover { background: var(--th-orange); color: #fff; }
.th-support {
  padding: 0.5rem 1rem; border-radius: 999px;
  background: rgba(255,255,255,.9); border: 1px solid var(--th-line);
  font-weight: 700; font-size: 0.84rem;
  box-shadow: 0 6px 18px rgba(15, 27, 45, 0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}
.th-support:hover { transform: translateY(-2px); box-shadow: 0 10px 24px var(--th-glow); }
.th-burger {
  display: none; flex-direction: column; gap: 5px; cursor: pointer;
  padding: 0.55rem; border-radius: 12px;
  background: rgba(255,255,255,.95); border: 1px solid var(--th-line);
  align-items: center; justify-content: center;
  box-shadow: 0 8px 18px rgba(15,27,45,.06);
}
.th-burger span { width: 22px; height: 2px; background: var(--th-ink); border-radius: 2px; }
.th-mobile-nav {
  display: none; flex-direction: column; gap: 0.35rem;
  padding: 0.75rem 1.25rem 1.25rem; max-width: 1180px; margin: 0 auto;
}
.th-mobile-nav.open { display: flex; }
.th-mobile-nav a {
  padding: 0.75rem 1rem; border-radius: 14px; background: rgba(255,255,255,.92); border: 1px solid var(--th-line); font-weight: 600;
}

/* Hero */
.th-hero {
  text-align: center;
  padding: 2.5rem 1.5rem 3.5rem;
  max-width: 920px;
  margin: 0 auto;
}
.th-pill {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.35rem 0.85rem 0.35rem 0.35rem;
  border-radius: 999px;
  background: rgba(255, 107, 0, 0.12);
  color: var(--th-orange);
  font-weight: 700; font-size: 0.88rem;
  margin-bottom: 1.35rem;
  animation: thFadeUp 0.7s both;
}
.th-pill b {
  background: var(--th-orange); color: #fff;
  padding: 0.25rem 0.55rem; border-radius: 999px; font-size: 0.75rem;
}
.th-hero h1 {
  font-family: var(--display);
  font-size: clamp(2.2rem, 6.5vw, 3.6rem);
  line-height: 1.08; letter-spacing: -0.04em;
  margin: 0 0 1rem; color: var(--th-ink);
  animation: thFadeUp 0.75s 0.08s both;
}
.th-hero h1 .th-accent {
  display: block; color: var(--th-orange);
  animation: thAccent 2.8s ease-in-out infinite;
}
@keyframes thAccent {
  0%, 100% { filter: brightness(1); transform: translateY(0); }
  50% { filter: brightness(1.08); transform: translateY(-2px); }
}
.th-hero p {
  max-width: 540px; margin: 0 auto 1.75rem;
  color: var(--th-muted); font-size: 1.05rem;
  animation: thFadeUp 0.75s 0.16s both;
}
.th-home-devs { text-align: center; }
.th-home-devs__lead {
  margin: 0 auto;
  max-width: 640px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--th-muted);
  line-height: 1.6;
}
.th-home-devs__name {
  color: var(--th-accent, #ff6b00);
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}
.th-home-devs__name:hover {
  color: #2563eb;
  text-shadow: 0 0 16px rgba(255, 107, 0, 0.25);
}
.th-home-devs__sep { margin: 0 0.35rem; opacity: 0.45; }
.th-home-devs__hint { font-weight: 500; font-size: 0.88em; }
.th-home-devs__hint a { color: inherit; font-weight: 700; }
.th-store-row {
  display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center;
  animation: thFadeUp 0.75s 0.24s both;
}
.th-store-btn {
  display: inline-flex; align-items: center; gap: 0.65rem;
  padding: 0.75rem 1.15rem; border-radius: 12px;
  background: #111827; color: #fff; font-weight: 700;
  min-width: 180px; text-align: left;
  transition: transform 0.22s, box-shadow 0.22s;
  box-shadow: 0 10px 28px rgba(15, 27, 45, 0.18);
}
.th-store-btn small { display: block; font-size: 0.65rem; font-weight: 500; opacity: 0.75; letter-spacing: 0.04em; }
.th-store-btn strong { display: block; font-size: 0.95rem; letter-spacing: -0.02em; }
.th-store-btn:hover { transform: translateY(-3px) scale(1.02); }
.th-store-btn.wa { background: #25D366; box-shadow: 0 10px 28px rgba(37, 211, 102, 0.35); }
.th-store-btn .ico { font-size: 1.45rem; line-height: 1; }

.th-section { padding: 3.5rem 1.5rem; max-width: 1120px; margin: 0 auto; }
.th-section-head { text-align: center; max-width: 620px; margin: 0 auto 2rem; }
.th-section-head h2 {
  font-family: var(--display); font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  letter-spacing: -0.03em; margin: 0 0 0.5rem;
}
.th-section-head p { margin: 0; color: var(--th-muted); }

.th-panel-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
}
.th-tools-grid {
  grid-template-columns: repeat(2, 1fr);
}
.th-tool-price {
  font-weight: 800 !important;
  color: var(--th-orange) !important;
  margin: 0 0 0.45rem !important;
  font-size: 0.88rem !important;
}
.th-tools-rail {
  max-width: 1180px;
  margin: 0 auto 0.5rem;
  padding: 0 1rem 0.35rem;
}
.th-tools-rail-label {
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--th-muted);
}
.th-tools-rail-row {
  display: flex;
  gap: 0.55rem;
  overflow-x: auto;
  padding-bottom: 0.35rem;
}
.th-tools-rail-link {
  flex: 0 0 auto;
  min-width: 168px;
  max-width: 240px;
  padding: 0.7rem 0.85rem;
  border-radius: 16px;
  background: var(--th-card);
  border: 1px solid var(--th-line);
  box-shadow: 0 10px 24px rgba(15,27,45,.06);
}
.th-tools-rail-link b {
  display: block;
  font-size: 0.82rem;
  font-family: var(--display);
}
.th-tools-rail-link span {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.72rem;
  color: var(--th-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.th-tools-rail-link.on {
  border-color: var(--th-orange);
  background: linear-gradient(135deg, rgba(255,107,0,.12), #fff);
}
.th-tools-rail-link.wallet {
  background: linear-gradient(135deg, var(--th-orange), var(--th-deep));
  color: #fff;
  border: 0;
}
.th-tools-rail-link.wallet span { color: rgba(255,255,255,.85); }
.th-credit-card {
  text-align: center;
  padding: 1.7rem 1.45rem 1.55rem;
  position: relative;
  max-width: 560px;
  margin-top: 8vh;
}
.th-credit-x {
  position: absolute;
  top: 0.7rem;
  right: 0.85rem;
  border: 0;
  background: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--th-muted);
}
.th-credit-sub { color: var(--th-muted); margin: 0.4rem 0 0; }
.th-credit-packs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  margin: 1.15rem 0 1.2rem;
}
.th-credit-pack {
  display: block;
  padding: 0.85rem 0.5rem;
  border-radius: 16px;
  border: 1px solid var(--th-line);
  background: #fff;
}
.th-credit-pack.feat { outline: 2px solid var(--th-orange); }
.th-credit-pack strong {
  display: block;
  font-family: var(--display);
  font-size: 1.6rem;
}
.th-credit-pack span, .th-credit-pack em {
  display: block;
  font-style: normal;
  font-size: 0.78rem;
  color: var(--th-muted);
}
.th-panel-tile {
  background: var(--th-card); border: 1px solid var(--th-line);
  border-radius: 22px; padding: 1.4rem;
  box-shadow: 0 16px 40px rgba(15, 27, 45, 0.06);
  transition: transform 0.28s cubic-bezier(0.22,1,0.36,1), box-shadow 0.28s;
}
.th-panel-tile:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px var(--th-glow);
}
.th-panel-tile .ico {
  width: 48px; height: 48px; border-radius: 14px;
  display: grid; place-items: center; font-size: 1.4rem;
  background: rgba(255, 107, 0, 0.12); margin-bottom: 0.85rem;
}
.th-panel-tile h3 { margin: 0 0 0.4rem; font-family: var(--display); font-size: 1.15rem; }
.th-panel-tile p { margin: 0 0 1rem; color: var(--th-muted); font-size: 0.92rem; }

.th-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  padding: 0.8rem 1.2rem; border-radius: 14px; border: 0; cursor: pointer; font-weight: 750;
  transition: transform 0.2s, box-shadow 0.2s;
}
.th-btn-primary {
  color: #fff !important;
  background: linear-gradient(135deg, #ff8a2b, var(--th-orange), var(--th-deep));
  box-shadow: 0 12px 28px var(--th-glow);
}
.th-btn-primary:hover { transform: translateY(-3px); }
.th-btn-ghost {
  background: #fff; border: 1px solid var(--th-line); color: var(--th-ink);
}
.th-btn-ghost:hover { border-color: rgba(255,107,0,0.35); }

/* Split feature / food story ? premium editable blocks */
.th-split-stack { display: grid; gap: 2.75rem; }
.th-split, .th-story {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center;
  border-radius: 0; overflow: visible;
  border: 0; box-shadow: none; background: transparent !important;
  padding: 0.5rem 0;
}
.th-split-right { grid-template-columns: 1fr 1fr; }
.th-split-media {
  min-height: 0; background: transparent; border-radius: 0;
  display: flex; align-items: center; justify-content: center;
}
.th-split-media img {
  width: 100%; height: auto; max-height: 380px; object-fit: contain;
  min-height: 0; filter: drop-shadow(0 22px 40px rgba(15, 27, 45, 0.14));
  transition: transform 0.35s cubic-bezier(0.22,1,0.36,1);
}
.th-split-media img:hover { transform: scale(1.035) translateY(-4px); }
.th-split-emoji, .th-split-emoji-inner { display: grid; place-items: center; font-size: 4rem; min-height: 200px; }
.th-split-copy { padding: 0.5rem 0.25rem; display: grid; align-content: center; gap: 0.85rem; }
.th-split-copy h3 {
  margin: 0; font-family: var(--display); font-size: clamp(1.55rem, 3.2vw, 2.15rem);
  letter-spacing: -0.035em; font-weight: 800; line-height: 1.15; color: var(--th-ink);
}
.th-split-copy p { margin: 0; color: var(--th-muted); font-size: 1.05rem; line-height: 1.65; max-width: 34rem; }
.th-story-cta {
  display: inline-flex; align-items: center; justify-content: center;
  margin-top: 0.35rem; padding: 0.75rem 1.35rem; border-radius: 999px;
  background: var(--th-orange); color: #fff; font-weight: 800; font-size: 0.92rem;
  box-shadow: 0 12px 28px var(--th-glow);
  transition: transform 0.22s, background 0.22s, box-shadow 0.22s;
  width: fit-content; border: 0;
}
.th-story-cta:hover {
  background: var(--th-deep); transform: translateY(-3px) scale(1.03);
  box-shadow: 0 16px 36px rgba(255,107,0,0.4); color: #fff;
}
.th-float-card {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 0.85rem; align-items: center;
  background: #fff; border-radius: 28px; padding: 1.15rem 1.2rem;
  border: 1px solid rgba(15,27,45,0.06);
  box-shadow: 0 28px 60px rgba(15,27,45,0.12);
  width: 100%; max-width: 520px;
  transition: transform 0.3s cubic-bezier(0.22,1,0.36,1), box-shadow 0.3s;
}
.th-float-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 36px 70px rgba(15,27,45,0.16);
}
.th-float-media {
  display: grid; place-items: center; background: transparent; border: 0; padding: 0;
  min-height: 0; overflow: visible;
}
.th-float-media img, .th-float-cutout {
  width: 100%; height: auto; max-height: 220px; object-fit: contain;
  filter: drop-shadow(0 16px 28px rgba(15,27,45,0.18));
  background: transparent !important; border: 0; border-radius: 0;
}
.th-float-body { display: grid; gap: 0.55rem; align-content: center; }
.th-float-body h4 {
  margin: 0; font-family: var(--display); font-size: 1.15rem;
  letter-spacing: -0.03em; line-height: 1.3; color: var(--th-ink);
}
.th-float-body p { margin: 0; color: var(--th-muted); font-size: 0.88rem; line-height: 1.55; }
.th-split-media-float { justify-content: center; }
html[data-theme="dark"] .th-float-card {
  background: var(--th-card); border-color: var(--th-line);
}
@media (max-width: 720px) {
  .th-float-card { grid-template-columns: 1fr; text-align: left; }
}

.th-grid-cards {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.15rem;
}
.th-grid-cards-sm {
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 0.95rem;
}
.th-card, .th-card-sm {
  display: flex; flex-direction: column;
  background: var(--th-card); border-radius: 18px; overflow: hidden;
  border: 1px solid var(--th-line);
  box-shadow: 0 12px 28px rgba(15, 27, 45, 0.06);
  transition: transform 0.28s, box-shadow 0.28s;
  color: inherit;
}
.th-card-sm:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px var(--th-glow);
}
.th-card-media {
  position: relative; aspect-ratio: 16/11; background: #eef2f7; display: block; overflow: hidden;
}
.th-card-sm .th-card-media { aspect-ratio: 16/10; }
.th-card-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  transition: transform 0.4s;
}
.th-card-media:hover img { transform: scale(1.05); }
.th-badge {
  position: absolute; top: 0.55rem; left: 0.55rem;
  background: var(--th-orange); color: #fff; font-size: 0.65rem; font-weight: 800;
  padding: 0.22rem 0.5rem; border-radius: 999px; z-index: 1;
}
.th-card-body { padding: 0.85rem 0.95rem 1rem; display: flex; flex-direction: column; gap: 0.3rem; flex: 1; }
.th-card-link { color: inherit; display: grid; gap: 0.25rem; }
.th-cat { font-size: 0.72rem; font-weight: 800; color: var(--th-orange); text-transform: uppercase; letter-spacing: 0.08em; }
.th-card-body h3 { margin: 0; font-size: 1.05rem; letter-spacing: -0.02em; }
.th-card-body p { margin: 0; color: var(--th-muted); font-size: 0.88rem; flex: 1; }
.th-card-meta { display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; margin-top: 0.4rem; }
.th-stars { color: #f5a524; font-size: 0.85rem; display: inline-flex; gap: 0.2rem; align-items: center; }
.th-stars em { color: var(--th-ink); font-style: normal; font-weight: 800; font-size: 0.8rem; }
.th-reviews { color: var(--th-muted); font-size: 0.78rem; }
.th-card-sm .th-card-body h3 { font-size: 0.98rem; }
.th-card-sm .th-card-body p { font-size: 0.82rem; }
.th-card-actions { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.55rem; }
.th-btn-sm { padding: 0.5rem 0.85rem; border-radius: 10px; font-size: 0.82rem; }
.th-card-demo {
  display: inline-flex; align-items: center; padding: 0.5rem 0.85rem; border-radius: 10px;
  border: 1px solid var(--th-line); background: #fff; font-weight: 750; font-size: 0.82rem;
}
.th-card-demo:hover { border-color: rgba(255,107,0,0.4); color: var(--th-orange); }

.th-apps-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem;
}
.th-app-card {
  display: grid; grid-template-columns: 110px 1fr; gap: 0.9rem; align-items: center;
  padding: 0.85rem; border-radius: 18px; background: #fff; border: 1px solid var(--th-line);
  box-shadow: 0 12px 30px rgba(15, 27, 45, 0.06);
  transition: transform 0.28s, box-shadow 0.28s;
}
.th-app-card:hover { transform: translateY(-5px); box-shadow: 0 18px 40px var(--th-glow); }
.th-app-media { display: block; border-radius: 14px; overflow: hidden; aspect-ratio: 1; background: #eef2f7; }
.th-app-media img { width: 100%; height: 100%; object-fit: cover; }
.th-app-body h3 { margin: 0 0 0.25rem; font-family: var(--display); font-size: 1.05rem; letter-spacing: -0.02em; }
.th-app-body p { margin: 0 0 0.55rem; color: var(--th-muted); font-size: 0.88rem; }

@media (max-width: 960px) {
  .th-split, .th-story, .th-split-right { grid-template-columns: 1fr; gap: 1rem; }
  .th-split-media img { max-height: 260px; }
}

.th-price { margin-left: auto; font-weight: 800; display: inline-flex; flex-direction: column; align-items: flex-end; gap: 0.15rem; line-height: 1.2; }
.th-card-price .th-price { margin-left: 0; align-items: flex-start; margin-top: 0.55rem; }
.th-price-lg { font-size: 1.35rem; align-items: flex-start; }
.th-price s { color: var(--th-muted); font-weight: 500; margin-right: 0.2rem; font-size: 0.85em; }
.th-price .th-pkr { color: var(--th-ink); }
.th-price .th-usd { color: var(--th-orange); font-size: 0.92em; font-weight: 750; }
.th-link { color: var(--th-orange); font-weight: 800; font-size: 0.88rem; }

.th-card-lift:hover { transform: translateY(-10px) scale(1.01); }
.th-buybox-premium {
  background: linear-gradient(165deg, #ffffff 0%, #fff8f1 100%);
  animation: thGlowPulse 4s ease-in-out infinite;
}
@keyframes thGlowPulse {
  0%, 100% { box-shadow: 0 20px 50px rgba(15, 27, 45, 0.08); }
  50% { box-shadow: 0 24px 60px rgba(255, 107, 0, 0.18); }
}

/* Food promo mosaic */
.th-food-cats { display: flex; flex-wrap: wrap; gap: 0.55rem; justify-content: center; margin-bottom: 1.5rem; }
.th-food-chip {
  padding: 0.45rem 0.95rem; border-radius: 999px; font-weight: 750; font-size: 0.88rem;
  background: #fff; border: 1px solid var(--th-line); color: var(--th-ink);
  box-shadow: 0 8px 20px rgba(15, 27, 45, 0.05);
  animation: thFadeUp 0.6s both;
  transition: transform 0.2s, background 0.2s, color 0.2s;
}
.th-food-chip:hover { background: var(--th-orange); color: #fff; transform: translateY(-3px); }
.th-promo-mosaic {
  display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: 1fr 1fr; gap: 0.85rem;
}
.th-promo-mosaic:has(> .th-promo:only-child) {
  grid-template-columns: 1fr; grid-template-rows: auto;
}
.th-promo-mosaic:has(> .th-promo:only-child) .th-promo-main img { min-height: 280px; max-height: 420px; object-fit: cover; }
.th-promo {
  margin: 0; border-radius: 22px; overflow: hidden; position: relative;
  border: 1px solid var(--th-line); background: #fff;
  box-shadow: 0 18px 44px rgba(15, 27, 45, 0.08);
  transition: transform 0.35s cubic-bezier(0.22,1,0.36,1);
}
.th-promo:hover { transform: translateY(-6px) scale(1.01); }
.th-promo-main { grid-row: 1 / span 2; }
.th-promo img { width: 100%; height: 100%; object-fit: cover; min-height: 180px; display: block; }
.th-promo-main img { min-height: 420px; }
.th-promo figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 0.85rem 1rem; font-weight: 800; font-size: 0.92rem; color: #fff;
  background: linear-gradient(transparent, rgba(15, 27, 45, 0.75));
}
.th-panel-premium {
  background: linear-gradient(160deg, #ffffff, #fff6ee);
  border: 1px solid rgba(255, 107, 0, 0.12);
}
.th-food-article { margin-top: 2.25rem; }

/* Work / software premium */
.th-work-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem;
}
.th-work-card {
  display: flex; flex-direction: column; border-radius: 24px; overflow: hidden;
  background: #fff; border: 1px solid var(--th-line);
  box-shadow: 0 18px 44px rgba(15, 27, 45, 0.07);
  transition: transform 0.35s, box-shadow 0.35s; color: inherit;
}
.th-work-card:hover {
  transform: translateY(-10px) rotate(-0.4deg);
  box-shadow: 0 28px 60px var(--th-glow);
}
.th-work-media { aspect-ratio: 4/3; overflow: hidden; background: #eef3f9; }
.th-work-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.th-work-card:hover .th-work-media img { transform: scale(1.06); }
.th-work-body { padding: 1.15rem 1.2rem 1.35rem; }
.th-work-body h3 { margin: 0 0 0.35rem; font-family: var(--display); letter-spacing: -0.03em; font-size: 1.15rem; }
.th-work-body p { margin: 0; color: var(--th-muted); font-size: 0.92rem; }
.th-work-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.75rem; }
.th-work-tags span {
  font-size: 0.72rem; font-weight: 800; padding: 0.25rem 0.55rem; border-radius: 999px;
  background: rgba(255, 107, 0, 0.12); color: var(--th-orange);
}
.th-soft-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.25rem; }
.th-soft-card {
  display: grid; grid-template-columns: 120px 1fr; gap: 1rem; align-items: center;
  padding: 0.85rem; border-radius: 20px; background: #fff; border: 1px solid var(--th-line);
  box-shadow: 0 14px 36px rgba(15, 27, 45, 0.06);
  transition: transform 0.28s, box-shadow 0.28s;
}
.th-soft-card:hover { transform: translateY(-5px); box-shadow: 0 22px 48px var(--th-glow); }
.th-soft-card img { width: 120px; height: 90px; object-fit: cover; border-radius: 14px; }
.th-soft-card h3 { margin: 0 0 0.3rem; font-family: var(--display); font-size: 1.05rem; }
.th-soft-card p { margin: 0 0 0.45rem; color: var(--th-muted); font-size: 0.88rem; }

.th-cta-band {
  text-align: center; max-width: 720px; margin: 0 auto;
  padding: 2rem 1.5rem; border-radius: 28px;
  background: linear-gradient(135deg, rgba(255,107,0,0.12), rgba(255,255,255,0.9) 45%, rgba(90,140,220,0.1));
  border: 1px solid rgba(255, 107, 0, 0.18);
  box-shadow: 0 20px 50px rgba(255, 107, 0, 0.12);
  animation: thBand 6s ease-in-out infinite;
}
@keyframes thBand {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.th-cta-band h3 { margin: 0 0 0.45rem; font-family: var(--display); font-size: 1.5rem; }
.th-cta-band p { margin: 0 0 1rem; color: var(--th-muted); }

/* Checkout pay cards */
.th-checkout { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 1.5rem; align-items: start; }
.th-checkout-summary h2 { font-family: var(--display); letter-spacing: -0.03em; margin: 0 0 0.75rem; }
.th-muted { color: var(--th-muted); }
.th-page-picks { display: grid; gap: 0.65rem; }
.th-page-pick {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.95rem 1.1rem; border-radius: 16px;
  background: #fff; border: 1px solid var(--th-line);
  color: var(--th-ink); font-weight: 700; cursor: pointer;
  box-shadow: 0 10px 24px rgba(15,27,45,.05);
}
.th-page-pick input { width: 1.15rem; height: 1.15rem; accent-color: var(--th-orange); }
.th-page-pick:has(input:checked) {
  border-color: var(--th-orange);
  background: linear-gradient(135deg, rgba(255,107,0,.12), #fff);
}
.th-pay-label { margin: 0.5rem 0 0.65rem; font-weight: 800; font-size: 0.9rem; }
.th-pay-cards { display: grid; gap: 0.75rem; margin-bottom: 1rem; }
.th-pay-card {
  position: relative; overflow: hidden; cursor: pointer; color: #fff;
  display: grid; gap: 0.15rem; padding: 1.1rem 1.2rem; border-radius: 18px;
  border: 2px solid transparent; min-height: 96px;
  transform-style: preserve-3d;
  transition: transform 0.28s, box-shadow 0.28s, border-color 0.28s;
  box-shadow: 0 14px 36px rgba(15, 27, 45, 0.16);
}
.th-pay-card input { position: absolute; opacity: 0; pointer-events: none; }
.th-pay-card:hover { transform: translateY(-4px) rotateX(2deg); }
.th-pay-card:has(input:checked),
.th-pay-card.on {
  border-color: #fff;
  box-shadow: 0 20px 48px rgba(255, 107, 0, 0.45), 0 0 0 3px rgba(255,255,255,.55);
  transform: translateY(-5px) scale(1.02);
  outline: 3px solid rgba(255,255,255,.55);
}
.th-pay-cards:has(input:checked) .th-pay-card:not(:has(input:checked)) {
  opacity: 0.62; filter: saturate(.75) brightness(.92);
}
.th-pay-tag {
  position: absolute; top: 0.65rem; right: 0.75rem; z-index: 2;
  font-size: 0.68rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  background: #fff; color: #0f1b2d; padding: .22rem .5rem; border-radius: 999px;
  opacity: 0; transform: scale(.9);
}
.th-pay-card.on .th-pay-tag, .th-pay-card:has(input:checked) .th-pay-tag { opacity: 1; transform: none; }
.th-pay-picked {
  margin: -.25rem 0 .7rem; padding: .7rem .9rem; border-radius: 14px;
  background: linear-gradient(135deg, rgba(255,107,0,.14), #fff);
  border: 1px solid rgba(255,107,0,.28);
  font-weight: 800; color: var(--th-deep);
}
.th-pay-welcome { margin: 0 auto 1.1rem; }
.th-order-meta { display: grid; gap: 0.45rem; margin: 0 0 1rem; }
.th-meta-chip {
  display: flex; align-items: center; justify-content: space-between; gap: .5rem; flex-wrap: wrap;
  padding: .55rem .75rem; border-radius: 12px; background: rgba(15,27,45,.04); border: 1px solid var(--th-line);
}
.th-meta-chip span { font-size: .72rem; font-weight: 800; color: var(--th-muted); text-transform: uppercase; letter-spacing: .04em; }
.th-meta-chip strong { font-size: .88rem; word-break: break-all; }
.th-copy-mini {
  border: 0; background: var(--th-orange); color: #fff; font-weight: 800; font-size: .72rem;
  border-radius: 999px; padding: .25rem .55rem; cursor: pointer;
}
.th-pay-ep { background: linear-gradient(135deg, #00a651, #007a3d 55%, #004d27); }
.th-pay-jz { background: linear-gradient(135deg, #ed1c24, #b01018 55%, #6d0a10); }
.th-pay-cardpay { background: linear-gradient(135deg, #1e293b, #0f172a 50%, #334155); }
.th-pay-brand { font-family: var(--display); font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; position: relative; z-index: 1; }
.th-pay-amt { font-size: 1.35rem; font-weight: 800; position: relative; z-index: 1; }
.th-pay-sub { font-size: 0.78rem; opacity: 0.85; position: relative; z-index: 1; }
.th-pay-shine {
  position: absolute; inset: -40% -20%;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.28) 50%, transparent 70%);
  animation: thShine 3.2s ease-in-out infinite;
  pointer-events: none;
}
@keyframes thShine {
  0% { transform: translateX(-40%) rotate(12deg); }
  100% { transform: translateX(40%) rotate(12deg); }
}

.th-related { border-top: 1px solid var(--th-line); margin-top: 1rem; }

@media (max-width: 960px) {
  .th-promo-mosaic { grid-template-columns: 1fr; }
  .th-promo-main { grid-row: auto; }
  .th-promo-main img { min-height: 260px; }
  .th-work-grid, .th-soft-row, .th-checkout { grid-template-columns: 1fr; }
}


/* Product / service / article */
.th-product { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 1.75rem; align-items: start; }
.th-gallery { display: grid; gap: 0.75rem; }
.th-gallery-main {
  border-radius: 20px; overflow: hidden; border: 1px solid var(--th-line);
  background: #fff; aspect-ratio: 16/10;
}
.th-gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.th-thumbs { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.th-thumbs button, .th-thumbs .th-thumb {
  width: 72px; height: 52px; padding: 0; border-radius: 10px; overflow: hidden;
  border: 1px solid var(--th-line); background: #fff; cursor: pointer; display: block;
}
.th-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.th-buybox {
  position: sticky; top: 1rem;
  padding: 1.35rem; border-radius: 22px; background: #fff;
  border: 1px solid var(--th-line);
  box-shadow: 0 20px 50px rgba(15, 27, 45, 0.08);
}
.th-buybox h1 { font-family: var(--display); font-size: 1.65rem; margin: 0 0 0.4rem; letter-spacing: -0.03em; }
.th-feat { list-style: none; padding: 0; margin: 1rem 0; }
.th-feat li { padding: 0.5rem 0; border-bottom: 1px solid var(--th-line); display: flex; gap: 0.45rem; }
.th-feat li::before { content: "?"; color: var(--th-orange); }

.th-article {
  margin-top: 2rem; display: grid; gap: 1.25rem;
}
.th-article-block {
  background: #fff; border: 1px solid var(--th-line); border-radius: 22px;
  padding: 1.5rem 1.35rem;
  box-shadow: 0 14px 36px rgba(15, 27, 45, 0.05);
}
.th-article-block h2 {
  font-family: var(--display); margin: 0 0 0.65rem; letter-spacing: -0.03em;
  color: var(--th-orange);
}
.th-article-block p { color: var(--th-muted); margin: 0 0 0.85rem; }
.th-article-block img {
  width: 100%; border-radius: 16px; margin: 0.75rem 0;
  box-shadow: 0 12px 30px rgba(15, 27, 45, 0.1);
}
.th-article-block video, .th-article-block iframe {
  width: 100%; aspect-ratio: 16/9; border: 0; border-radius: 16px; background: #0f1b2d;
}
.th-video-wrap { border-radius: 20px; overflow: hidden; margin: 1rem 0; border: 1px solid var(--th-line); }

.th-form { display: grid; gap: 0.85rem; }
.th-form label { display: grid; gap: 0.35rem; font-size: 0.85rem; color: var(--th-muted); }
.th-form input, .th-form textarea, .th-form select {
  width: 100%; padding: 0.85rem 1rem; border-radius: 14px;
  border: 1px solid var(--th-line); background: #fff; color: var(--th-ink);
}
.th-pay-opts { display: grid; gap: 0.55rem; }
.th-pay-opts label {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.85rem 1rem; border-radius: 14px; border: 1px solid var(--th-line);
  background: #fff; cursor: pointer; color: var(--th-ink);
}
.th-note {
  padding: 0.9rem 1rem; border-radius: 14px;
  background: rgba(255, 107, 0, 0.1); border: 1px solid rgba(255, 107, 0, 0.2);
  color: var(--th-muted); font-size: 0.9rem;
}

.th-footer {
  margin-top: 2rem; padding: 3rem 1.5rem 1.5rem;
  border-top: 1px solid var(--th-line);
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(10px);
}
.th-footer-grid {
  max-width: 1120px; margin: 0 auto 1.5rem;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 1.25rem;
}
.th-footer-brand { display: grid; gap: 0.55rem; justify-items: start; }
.th-footer-brand img { border-radius: 12px; }
.th-footer h4 { margin: 0 0 0.5rem; font-family: var(--display); }
.th-footer a { display: block; color: var(--th-muted); padding: 0.22rem 0; font-weight: 600; }
.th-footer a:hover { color: var(--th-orange); }
.th-footer-bottom {
  max-width: 1120px; margin: 0 auto; padding-top: 1rem;
  border-top: 1px solid var(--th-line); color: var(--th-muted); font-size: 0.85rem;
}

[data-reveal] {
  opacity: 0; transform: translateY(22px);
  transition: opacity 0.7s, transform 0.7s cubic-bezier(0.22,1,0.36,1);
}
[data-reveal].in { opacity: 1; transform: none; }
@keyframes thFadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 960px) {
  .th-panel-grid, .th-product, .th-footer-grid, .th-tools-grid, .th-credit-packs { grid-template-columns: 1fr; }
  .th-split, .th-split-right { grid-template-columns: 1fr; }
  .th-buybox { position: static; }
  .th-nav-shell { top: 0.45rem; padding: 0 0.65rem; }
  .th-nav-shell.th-nav-hide {
    transform: translate3d(0, calc(-100% - 0.85rem), 0) !important;
  }
  .th-nav {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.45rem;
    padding: 0.55rem 0.7rem;
    border-radius: 22px;
  }
  .th-nav-left { display: none !important; }
  .th-burger { display: flex; }
  .th-logo { justify-self: start; }
  .th-logo-text { display: block !important; max-width: min(42vw, 11rem); }
  .th-nav-right { gap: 0.35rem; flex-wrap: nowrap; }
  .th-nav-right .th-support { display: none; }
  .th-premium-chip { display: none; }
  .th-section { padding: 1.75rem 1rem 2.2rem; }
  .th-hero { padding: 1.4rem 1rem 2rem; }
  .th-pagebar, .th-pagebar-cards { padding: 0 0.85rem; }
  .th-pay-form .th-btn, .th-auth-compact .th-btn { width: 100%; }
  .th-pay-card { min-height: 78px; padding: 0.85rem 1rem; }
  .th-nav-shell.th-nav-full { top: 0; padding: 0; }
  .th-store-row { width: 100%; }
  .th-store-btn { min-width: 0; flex: 1 1 100%; justify-content: center; }
}
@media (max-width: 640px) {
  .th-nav { padding: 0.5rem 0.6rem; border-radius: 20px; }
  .th-socials { display: none; }
  .th-logo-mark { width: 42px; height: 42px; border-radius: 13px; }
  .th-logo img, .th-logo-mark img { width: 30px !important; height: 30px !important; }
  .th-auth-btn { padding: 0.5rem 0.7rem; font-size: 0.78rem; min-height: 40px; }
  .th-theme-btn, .th-burger { width: 40px; height: 40px; min-width: 40px; }
  .th-account-item { flex-direction: column; align-items: stretch; }
  .th-mobile-nav { padding: 0.5rem 0.75rem 1.1rem; }
  .th-mobile-nav a { min-height: 46px; display: flex; align-items: center; }
}

/* ?? Page bar ?? */
.th-pagebar {
  max-width: 1120px; margin: 0.75rem auto 0; padding: 0 1.5rem;
  display: flex; gap: 0.65rem; flex-wrap: wrap;
}
.th-pagebar-btn {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.55rem 0.95rem; border-radius: 999px;
  background: #fff; border: 1px solid var(--th-line);
  color: var(--th-ink); font-weight: 700; font-size: 0.88rem;
  box-shadow: 0 8px 20px rgba(15,27,45,0.06);
  transition: background 0.22s, color 0.22s, transform 0.22s, border-color 0.22s;
}
.th-pagebar-btn:hover, .th-pagebar-btn:focus-visible {
  background: var(--th-orange); color: #fff; border-color: var(--th-orange);
  transform: translateY(-2px);
}
.th-pagebar-home { background: rgba(255,107,0,0.08); border-color: rgba(255,107,0,0.25); }

/* ?? Hero store buttons orange hover ?? */
.th-store-btn {
  transition: transform 0.25s cubic-bezier(0.22,1,0.36,1), background 0.25s, box-shadow 0.25s, color 0.25s;
}
.th-store-btn:hover, .th-store-btn:focus-visible, .th-store-btn:active {
  background: var(--th-orange) !important;
  color: #fff;
  box-shadow: 0 14px 36px var(--th-glow);
  transform: translateY(-4px) scale(1.03);
}
.th-store-btn.th-store-orange { background: var(--th-orange); box-shadow: 0 12px 30px var(--th-glow); }
.th-store-btn.th-store-green { background: #25D366; }
.th-store-btn.th-store-dark { background: #111827; }

/* ?? Panel tiles as premium buttons ?? */
a.th-panel-tile, a.th-panel-btn {
  display: block; color: inherit; text-decoration: none; cursor: pointer;
  transition: transform 0.28s cubic-bezier(0.22,1,0.36,1), background 0.28s, box-shadow 0.28s, color 0.28s, border-color 0.28s;
}
a.th-panel-tile:hover, a.th-panel-tile:focus-visible, a.th-panel-tile:active,
a.th-panel-btn.is-active {
  background: linear-gradient(145deg, var(--th-orange), var(--th-deep));
  color: #fff;
  border-color: transparent;
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 28px 56px rgba(255,107,0,0.35);
}
a.th-panel-tile:hover p, a.th-panel-tile:hover h3,
a.th-panel-tile:focus-visible p, a.th-panel-tile:focus-visible h3 { color: #fff; }
a.th-panel-tile:hover .ico, a.th-panel-tile:focus-visible .ico {
  background: rgba(255,255,255,0.22); transform: scale(1.08);
}
.th-panel-cta {
  display: inline-flex; padding: 0.55rem 1rem; border-radius: 12px;
  background: rgba(255,107,0,0.12); color: var(--th-orange); font-weight: 800; font-size: 0.88rem;
  transition: background 0.22s, color 0.22s;
}
a.th-panel-tile:hover .th-panel-cta {
  background: #fff; color: var(--th-orange);
}

/* ?? Gallery zoom ?? */
.th-shot-open {
  display: block; width: 100%; height: 100%; padding: 0; border: 0; background: transparent;
  cursor: zoom-in; position: relative;
}
.th-zoom-hint {
  position: absolute; left: 0.75rem; bottom: 0.75rem;
  padding: 0.35rem 0.7rem; border-radius: 999px;
  background: rgba(15,27,45,0.72); color: #fff; font-size: 0.75rem; font-weight: 700;
  pointer-events: none;
}
.th-thumb.is-active { outline: 2px solid var(--th-orange); outline-offset: 2px; }

.th-lightbox {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(8,12,20,0.88);
  display: grid; place-items: center;
  padding: 1.5rem;
}
.th-lightbox[hidden] { display: none !important; }
.th-lightbox img {
  max-width: min(92vw, 1100px); max-height: 82vh;
  border-radius: 12px; box-shadow: 0 30px 80px rgba(0,0,0,0.45);
  transition: transform 0.2s ease; transform-origin: center center;
}
.th-lightbox-close {
  position: absolute; top: 1rem; right: 1rem;
  width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: #fff; color: #111; font-size: 1.5rem; cursor: pointer; font-weight: 700;
}
.th-lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,0.92); font-size: 1.6rem; cursor: pointer; font-weight: 700;
}
.th-lightbox-nav.prev { left: 1rem; }
.th-lightbox-nav.next { right: 1rem; }
.th-lightbox-zoom {
  position: absolute; bottom: 1.25rem; left: 50%; transform: translateX(-50%);
  display: flex; gap: 0.4rem;
}
.th-lightbox-zoom button {
  padding: 0.45rem 0.85rem; border-radius: 10px; border: 0;
  background: #fff; font-weight: 800; cursor: pointer;
}

/* ?? License / FAQ / courses ?? */
.th-license-pick { display: grid; gap: 0.55rem; margin-bottom: 0.75rem; }
.th-license-card {
  display: grid; gap: 0.2rem; padding: 0.85rem 1rem; border-radius: 14px;
  border: 1px solid var(--th-line); background: #fff; cursor: pointer;
}
.th-license-card:has(input:checked) {
  border-color: var(--th-orange);
  box-shadow: 0 0 0 3px rgba(255,107,0,0.15);
  background: rgba(255,107,0,0.06);
}
.th-license-note { font-size: 0.88rem; color: var(--th-muted); margin: 0.5rem 0 1rem; }
.th-license-note p { margin: 0.25rem 0; }
.th-faq details {
  background: #fff; border: 1px solid var(--th-line); border-radius: 16px;
  padding: 0.85rem 1.1rem; margin-bottom: 0.65rem;
}
.th-faq summary { font-weight: 800; cursor: pointer; color: var(--th-ink); }
.th-faq p { color: var(--th-muted); margin: 0.55rem 0 0; }
.th-course-page {
  display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 1.5rem; align-items: start;
}
.th-player-shell {
  background: #0f1b2d; border-radius: 20px; overflow: hidden;
  border: 1px solid var(--th-line);
  transition: max-width 0.25s;
}
.th-player-shell.size-sm { max-width: 560px; }
.th-player-shell.size-md { max-width: 820px; }
.th-player-shell.size-lg { max-width: 100%; }
.th-player-frame { position: relative; aspect-ratio: 16/9; }
.th-player-frame iframe, .th-player-video { width: 100%; height: 100%; border: 0; display: block; aspect-ratio: 16/9; background: #000; }
.th-player-tools { display: flex; flex-wrap: wrap; gap: 0.45rem; padding: 0.75rem; background: #fff; }
.th-player-empty { padding: 1.5rem; text-align: center; color: #fff; }
.th-player-empty img { width: 100%; border-radius: 12px; margin-bottom: 0.75rem; }
@media (max-width: 960px) {
  .th-course-page { grid-template-columns: 1fr; }
  .th-lightbox-nav { display: none; }
}
.th-course-facts {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.75rem;
}
@media (max-width: 900px) { .th-course-facts { grid-template-columns: 1fr; } }
.th-course-facts .th-prose-card h2 { font-size: 1.15rem; }
.th-course-feats { margin: 0; padding-left: 1.2rem; color: var(--th-muted); line-height: 1.7; }
.th-course-long { max-width: 860px; }

/* Nav chip buttons + pagebar cards */
.th-nav-chip {
  padding: 0.48rem 0.9rem; border-radius: 999px;
  background: rgba(255,255,255,0.92); border: 1px solid rgba(15,27,45,0.08);
  box-shadow: 0 8px 18px rgba(15,27,45,0.06); font-weight: 700 !important;
  backdrop-filter: blur(8px);
}
.th-nav-chip:hover { background: var(--th-orange) !important; color: #fff !important; border-color: transparent; transform: translateY(-1px); }
.th-nav-card {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.15rem; min-width: 76px; padding: 0.45rem 0.65rem;
  border-radius: 14px; background: #fff; border: 1px solid var(--th-line);
  box-shadow: 0 10px 24px rgba(15,27,45,0.07);
  transition: transform 0.22s, background 0.22s, color 0.22s, border-color 0.22s;
  opacity: 1 !important;
}
.th-nav-card .ico { font-size: 1rem; line-height: 1; }
.th-nav-card strong { font-size: 0.78rem; font-weight: 800; letter-spacing: -0.02em; }
.th-nav-card:hover, .th-nav-card:focus-visible {
  background: var(--th-orange) !important; color: #fff !important;
  border-color: transparent; transform: translateY(-3px);
}
.th-nav-card-dash { background: rgba(255,107,0,0.1); border-color: rgba(255,107,0,0.28); }
.th-theme-btn {
  width: 38px; height: 38px; border-radius: 12px; border: 1px solid var(--th-line);
  background: #fff; cursor: pointer; font-size: 1.1rem; color: var(--th-ink);
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.th-theme-btn:hover { background: var(--th-orange); color: #fff; transform: rotate(-20deg); }

.th-pagebar-cards {
  max-width: 1120px; margin: 0.85rem auto 0; padding: 0 1.25rem;
  display: flex !important; gap: 0.65rem; flex-wrap: wrap; position: relative; z-index: 5;
}
.th-pagebar-card {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.7rem 1.05rem; border-radius: 16px;
  background: #fff; border: 1px solid var(--th-line);
  color: var(--th-ink); font-weight: 800;
  box-shadow: 0 12px 28px rgba(15,27,45,0.08);
  transition: transform 0.22s, background 0.22s, color 0.22s;
}
.th-pagebar-card span { font-size: 1.05rem; }
.th-pagebar-card:hover {
  background: var(--th-orange); color: #fff; transform: translateY(-3px) scale(1.02);
}
.th-pagebar-card.th-pagebar-home { background: rgba(255,107,0,0.1); border-color: rgba(255,107,0,0.3); }

/* Dark theme */
html[data-theme="dark"] {
  --th-ink: #E8EEF7;
  --th-bg: #0B1220;
  --th-muted: #9AA8BC;
  --th-line: rgba(255,255,255,0.1);
  --th-card: #121A2A;
  --th-glow: rgba(255,107,0,0.28);
}
html[data-theme="dark"] body.th-body { background: var(--th-bg); color: var(--th-ink); }
html[data-theme="dark"] .th-nav-shell .th-nav {
  background: rgba(18,26,42,.78);
  border-color: rgba(255,255,255,.1);
  box-shadow: 0 18px 50px rgba(0,0,0,.45), 0 1px 0 rgba(255,255,255,.06) inset;
}
html[data-theme="dark"] .th-nav,
html[data-theme="dark"] .th-footer,
html[data-theme="dark"] .th-buybox,
html[data-theme="dark"] .th-article-block,
html[data-theme="dark"] .th-card,
html[data-theme="dark"] .th-panel-tile,
html[data-theme="dark"] .th-nav-card,
html[data-theme="dark"] .th-nav-chip,
html[data-theme="dark"] .th-pagebar-card,
html[data-theme="dark"] .th-theme-btn,
html[data-theme="dark"] .th-form input,
html[data-theme="dark"] .th-form textarea,
html[data-theme="dark"] .th-store-btn.th-store-dark {
  background: var(--th-card);
  color: var(--th-ink);
  border-color: var(--th-line);
}
html[data-theme="dark"] .th-nav-shell .th-nav {
  background: rgba(18,26,42,.78);
}
html[data-theme="dark"] .th-nav-chip,
html[data-theme="dark"] .th-support,
html[data-theme="dark"] .th-theme-btn,
html[data-theme="dark"] .th-burger,
html[data-theme="dark"] .th-auth-btn.th-auth-login {
  background: rgba(255,255,255,.06);
}
html[data-theme="dark"] .th-bg { opacity: 0.35; }

/* Auth + account */
.th-auth-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.55rem 0.95rem; border-radius: 12px; font-weight: 800;
  font-size: 0.82rem; letter-spacing: -0.01em; white-space: nowrap;
  border: 1px solid var(--th-line); background: #fff; color: var(--th-ink);
  transition: transform 0.2s, background 0.2s, color 0.2s, border-color 0.2s;
}
.th-auth-btn:hover { transform: translateY(-2px); }
.th-auth-login { border-color: rgba(255,107,0,0.35); }
.th-auth-signup, .th-auth-account {
  background: linear-gradient(135deg, var(--th-orange), var(--th-deep));
  color: #fff; border-color: transparent;
  box-shadow: 0 8px 20px var(--th-glow);
}
.th-auth-wrap { max-width: 400px; margin: 0 auto; position: relative; z-index: 2; }
.th-auth-welcome { text-align: center; margin: 0 0 0.85rem; }
.th-boy { display: inline-block; animation: thBoyIn .9s cubic-bezier(.22,1,.36,1), thBoyFloat 3.2s ease-in-out .9s infinite; }
.th-auth-hi {
  font-family: var(--display); font-size: 1.55rem; margin: .2rem 0 0;
  animation: thHi .7s ease .15s both;
}
.th-auth-hi-sub { margin: .15rem 0 0; font-size: .82rem; }
@keyframes thBoyIn { from { opacity: 0; transform: translateY(16px) scale(.9); } to { opacity: 1; transform: none; } }
@keyframes thBoyFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes thHi { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.th-auth-compact { padding: 1rem 1.05rem !important; }
.th-auth-compact.th-form { gap: 0.55rem; }
.th-auth-compact input, .th-auth-compact textarea { padding: 0.5rem 0.7rem; font-size: 0.86rem; border-radius: 999px; }
.th-auth-compact textarea { border-radius: 14px; min-height: 52px; }
.th-auth-pill {
  display: flex !important; flex-direction: row !important; align-items: center; gap: 0.45rem;
  padding: 0.15rem 0.35rem 0.15rem 0.7rem; border-radius: 999px;
  background: linear-gradient(180deg, #fff7f0, #ffe8d6);
  border: 1px solid rgba(255,107,0,.18);
  box-shadow: inset 0 2px 6px rgba(255,255,255,.7), 0 8px 18px rgba(255,107,0,.12);
}
.th-auth-pill input {
  border: 0 !important; background: transparent !important; box-shadow: none !important;
  padding: 0.55rem 0.7rem 0.55rem 0 !important;
}
.th-auth-ico { color: #fff; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(145deg, #ff9a4a, #ff6b00); box-shadow: 0 6px 12px rgba(255,107,0,.28); flex-shrink: 0; }
.th-auth-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.th-field-hint { margin: -0.15rem 0 0; font-size: 0.72rem; color: var(--th-muted); }
.th-privacy-row {
  display: flex; align-items: flex-start; gap: 0.5rem;
  font-size: 0.8rem; color: var(--th-ink); font-weight: 600;
}
.th-privacy-row input { width: 1rem; height: 1rem; margin-top: .15rem; accent-color: var(--th-orange); }
.th-privacy-row a { color: var(--th-orange); }
.th-lesson-list { list-style: none; margin: .85rem 0 0; padding: 0; display: grid; gap: .4rem; }
.th-lesson-btn {
  width: 100%; text-align: left; border: 1px solid var(--th-line); background: #fff;
  border-radius: 12px; padding: .65rem .85rem; font-weight: 700; cursor: pointer;
}
.th-lesson-btn.on { border-color: var(--th-orange); background: rgba(255,107,0,.1); }
@media (max-width: 640px) { .th-auth-2 { grid-template-columns: 1fr; } }
.th-auth-tabs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem;
  margin: 0 0 1rem; padding: 0.35rem; border-radius: 16px;
  background: rgba(15,27,45,0.04); border: 1px solid var(--th-line);
}
.th-auth-tabs a {
  text-align: center; padding: 0.75rem 1rem; border-radius: 12px;
  font-weight: 800; color: var(--th-muted);
}
.th-auth-tabs a.on {
  background: #fff; color: var(--th-orange);
  box-shadow: 0 8px 20px rgba(15,27,45,0.08);
}
.th-auth-card { max-width: none; margin: 0; }
.th-account-grid {
  display: grid; grid-template-columns: minmax(240px, 320px) 1fr;
  gap: 1.25rem; align-items: start;
}
.th-account-list { display: grid; gap: 0.75rem; }
.th-account-item {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem 1.15rem; border-radius: 16px;
  background: #fff; border: 1px solid var(--th-line);
  box-shadow: 0 10px 28px rgba(15,27,45,0.06);
}
.th-badge {
  display: inline-flex; padding: 0.35rem 0.7rem; border-radius: 999px;
  font-size: 0.78rem; font-weight: 800;
  background: rgba(255,107,0,0.12); color: var(--th-deep);
}
@media (max-width: 860px) {
  .th-account-grid { grid-template-columns: 1fr; }
}
html[data-theme="dark"] .th-auth-btn.th-auth-login,
html[data-theme="dark"] .th-auth-tabs a.on,
html[data-theme="dark"] .th-account-item {
  background: var(--th-card); color: var(--th-ink); border-color: var(--th-line);
}
html[data-theme="dark"] .th-auth-signup,
html[data-theme="dark"] .th-auth-account,
html[data-theme="dark"] .th-btn-primary {
  background: linear-gradient(135deg, var(--th-orange), var(--th-deep));
  color: #fff !important;
  border-color: transparent;
}
html[data-theme="dark"] .th-btn-ghost,
html[data-theme="dark"] .th-support,
html[data-theme="dark"] .th-pagebar-btn,
html[data-theme="dark"] .th-mobile-nav a,
html[data-theme="dark"] .th-credit-pack,
html[data-theme="dark"] .th-lesson-btn,
html[data-theme="dark"] .th-note,
html[data-theme="dark"] .th-callout,
html[data-theme="dark"] .th-meta-chip,
html[data-theme="dark"] .th-pay-picked,
html[data-theme="dark"] .th-tools-rail-link,
html[data-theme="dark"] .th-license-card,
html[data-theme="dark"] .th-forgot {
  background: var(--th-card);
  color: var(--th-ink);
  border-color: var(--th-line);
}
html[data-theme="dark"] .th-auth-pill {
  background: linear-gradient(180deg, #1b2436, #151c2b);
  border-color: var(--th-line);
  box-shadow: none;
}
html[data-theme="dark"] .th-auth-pill input { color: var(--th-ink) !important; }
html[data-theme="dark"] .th-auth-tabs { background: rgba(255,255,255,.04); }
html[data-theme="dark"] .th-auth-tabs a { color: var(--th-muted); }
html[data-theme="dark"] .th-auth-tabs a.on,
html[data-theme="dark"] .th-auth-tabs a.th-btn-3d.on {
  background: linear-gradient(135deg, var(--th-orange), var(--th-deep));
  color: #fff !important;
}
html[data-theme="dark"] .th-logo-text { color: var(--th-ink); }
html[data-theme="dark"] .th-lesson-btn.on { background: rgba(255,107,0,.18); color: var(--th-ink); }
html[data-theme="dark"] .th-tools-rail-link.on { background: rgba(255,107,0,.16); }
html[data-theme="dark"] .th-footer { background: rgba(11,18,32,.72); }
html[data-theme="dark"] .th-burger { background: var(--th-card); border-color: var(--th-line); }
.th-plag-out { min-height: 8rem; line-height: 1.7; padding: .5rem; }
.th-plag-hit {
  background: #dc2626; color: #fff; padding: .05em .2em; border-radius: 4px;
  font-weight: 700;
}
.th-plag-sources { margin-top: 1.25rem; border-top: 1px solid color-mix(in srgb, var(--th-ink) 12%, transparent); padding-top: 1rem; }
.th-plag-sources h3 { font-size: 1rem; margin: 0 0 .75rem; }
.th-plag-match { margin: 0 0 1rem; }
.th-plag-sent { margin: 0 0 .35rem; font-size: .92rem; color: #b91c1c; }
.th-plag-match ul { margin: 0; padding-left: 1.1rem; }
.th-plag-match li { margin: .2rem 0; word-break: break-word; }
.th-scam-meter {
  display: flex; align-items: baseline; gap: .65rem;
  padding: 1.2rem 1.3rem; border-radius: 20px; margin-bottom: .85rem;
  background: linear-gradient(135deg, rgba(255,107,0,.14), var(--th-card));
  border: 1px solid var(--th-line);
}
.th-scam-meter b { font-family: var(--display); font-size: 2.6rem; line-height: 1; }
.th-scam-meter.ok b { color: #15803d; }
.th-scam-meter.mid b { color: #c2410c; }
.th-scam-meter.hot b { color: #dc2626; }
.th-scam-buy { margin: .65rem 0 1rem; font-weight: 600; }
.th-scam-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .6rem; margin: 0 0 1rem; }
.th-scam-kpis div { padding: .65rem .7rem; background: color-mix(in srgb, var(--th-ink) 4%, transparent); border-radius: .5rem; }
.th-scam-kpis span { display: block; font-size: .72rem; color: var(--th-muted); text-transform: uppercase; letter-spacing: .04em; }
.th-scam-kpis b { font-size: 1.15rem; }
.th-scam-table { width: 100%; border-collapse: collapse; font-size: .9rem; margin: 0 0 1rem; }
.th-scam-table th, .th-scam-table td { text-align: left; padding: .45rem .35rem; border-bottom: 1px solid color-mix(in srgb, var(--th-ink) 10%, transparent); vertical-align: top; }
.th-scam-table th { width: 38%; color: var(--th-muted); font-weight: 600; }
.th-scam-why { margin: .4rem 0 0; padding-left: 1.15rem; color: var(--th-muted); }
.th-scam-note { margin-top: .85rem; font-size: .82rem; }
.th-scam-how { margin: 0 0 .75rem; padding-left: 1.2rem; }
.th-scam-how li { margin: .25rem 0; }
.th-scam-summary { margin: 0 0 .85rem; }
.th-scam-bulk-wrap { overflow-x: auto; margin-bottom: 1rem; }
.th-scam-bulk { width: 100%; border-collapse: collapse; font-size: .88rem; min-width: 640px; }
.th-scam-bulk th, .th-scam-bulk td { text-align: left; padding: .55rem .45rem; border-bottom: 1px solid color-mix(in srgb, var(--th-ink) 10%, transparent); vertical-align: top; }
.th-scam-bulk th { color: var(--th-muted); font-weight: 700; font-size: .75rem; text-transform: uppercase; letter-spacing: .03em; }
.th-scam-bulk tr.ok .th-spam-pct { color: #15803d; }
.th-scam-bulk tr.mid .th-spam-pct { color: #c2410c; }
.th-scam-bulk tr.hot .th-spam-pct { color: #dc2626; }
.th-spam-pct { font-size: 1.05rem; }
.th-scam-mini { font-size: .78rem; margin-top: .2rem; max-width: 16rem; }
.th-scam-detail { margin: .55rem 0; padding: .65rem .85rem; border: 1px solid var(--th-line); border-radius: 12px; background: var(--th-card); }
.th-scam-detail summary { cursor: pointer; font-weight: 700; }
@media (max-width: 720px) {
  .th-scam-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.th-ad-wrap.th-ad-tools, .th-ad-wrap.th-ad-banner {
  max-width: 920px; margin: 0 auto 1.1rem; padding: 1rem;
  border-radius: 20px; background: rgba(15,27,45,.04); border: 1px solid var(--th-line);
}
.th-free-tool .th-ad-banner { margin-top: 1.1rem; }
.th-site-preview { margin-top: 1.25rem; display: grid; gap: 1.25rem; }
.th-site-prev-h { font-family: var(--display); font-size: 1.25rem; margin: 0; }
.th-site-card {
  background: var(--th-card); border: 1px solid var(--th-line); border-radius: 20px;
  padding: 1rem; box-shadow: 0 16px 40px rgba(15,27,45,.08);
}
.th-site-card header { display: flex; gap: .5rem; align-items: center; margin-bottom: .75rem; font-weight: 800; }
.th-site-canvas { overflow: auto; max-height: 70vh; border-radius: 16px; background: rgba(15,27,45,.03); }
.th-site-canvas [contenteditable="true"] { outline: 1px dashed transparent; }
.th-site-canvas [contenteditable="true"]:hover, .th-site-canvas [contenteditable="true"]:focus {
  outline: 1px dashed var(--th-orange); background: rgba(255,107,0,.06);
}
.th-site-card .th-site-save { margin-top: .85rem; }

/* Dark mode polish (tools, panels, forms, workspace) */
html[data-theme="dark"] .th-section-head h2,
html[data-theme="dark"] .th-hero h1,
html[data-theme="dark"] .th-panel-tile h3,
html[data-theme="dark"] .th-card h3 {
  color: var(--th-ink);
}
html[data-theme="dark"] .th-section-head p,
html[data-theme="dark"] .th-hero p,
html[data-theme="dark"] .th-panel-tile p,
html[data-theme="dark"] .th-card p,
html[data-theme="dark"] .th-muted {
  color: var(--th-muted);
}
html[data-theme="dark"] .th-panel-grid .th-panel-tile,
html[data-theme="dark"] .th-panel-premium {
  background: linear-gradient(165deg, #161f32 0%, #121a2a 100%);
  border-color: var(--th-line);
  box-shadow: 0 18px 44px rgba(0,0,0,.4);
}
html[data-theme="dark"] .th-panel-cta {
  color: #ffb070;
}
html[data-theme="dark"] .th-food-chip {
  background: rgba(255,255,255,.06);
  border-color: var(--th-line);
  color: var(--th-ink);
}
html[data-theme="dark"] .th-form select,
html[data-theme="dark"] input:not([type=checkbox]):not([type=radio]):not([type=range]),
html[data-theme="dark"] textarea,
html[data-theme="dark"] select {
  background: #0d1524;
  color: var(--th-ink);
  border-color: var(--th-line);
}
html[data-theme="dark"] .th-tools-shell,
html[data-theme="dark"] .th-tool-card,
html[data-theme="dark"] .th-workspace .th-card,
html[data-theme="dark"] .th-buybox,
html[data-theme="dark"] .th-wallet-hero,
html[data-theme="dark"] .th-dash-hero {
  background: var(--th-card);
  border-color: var(--th-line);
  color: var(--th-ink);
}
html[data-theme="dark"] .th-tools-rail {
  background: rgba(18,26,42,.9);
  border-color: var(--th-line);
}
html[data-theme="dark"] .th-store-btn.th-store-orange {
  background: linear-gradient(135deg, var(--th-orange), var(--th-deep));
  color: #fff;
}
html[data-theme="dark"] .th-store-btn.th-store-green {
  background: #0f766e;
  color: #fff;
}
html[data-theme="dark"] .th-ad-wrap.th-ad-tools,
html[data-theme="dark"] .th-ad-wrap.th-ad-banner {
  background: rgba(255,255,255,.04);
  border-color: var(--th-line);
}
html[data-theme="dark"] .th-site-canvas {
  background: rgba(0,0,0,.25);
}
html[data-theme="dark"] .th-scam-kpis div,
html[data-theme="dark"] .th-scam-detail {
  background: rgba(255,255,255,.04);
  border-color: var(--th-line);
}
html[data-theme="dark"] .th-plag-sent { color: #fca5a5; }
html[data-theme="dark"] .th-badge {
  background: rgba(255,107,0,.2);
  color: #ffc089;
}
html[data-theme="dark"] .th-mobile-nav {
  background: rgba(11,18,32,.96);
  border-color: var(--th-line);
}
html[data-theme="dark"] .th-float-card {
  background: var(--th-card);
  border-color: var(--th-line);
  color: var(--th-ink);
}
