/*
Theme Name: AudioStickers Theme
Theme URI: https://audiostickers.fun/
Author: Custom Developer
Description: Minimal-HTML standalone WordPress theme for WhatsApp Audio Stickers with Sound. Warm #f6f4ef card UI, slim playing border, working language dropdown, 3-step WhatsApp pairing modal with account safety safeguards, and native WordPress comments.
Version: 4.0.0
Text Domain: audiostickers-theme
*/

@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('fonts/bricolage-grotesque-latin-wght-normal.woff2') format('woff2-variations'),
       url('fonts/bricolage-grotesque-latin-wght-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/geist-latin-wght-normal.woff2') format('woff2-variations'),
       url('fonts/geist-latin-wght-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/geist-mono-latin-wght-normal.woff2') format('woff2-variations'),
       url('fonts/geist-mono-latin-wght-normal.woff2') format('woff2');
}

:root {
  --tt-bg: #f6f4ef;
  --tt-paper: #ffffff;
  --tt-surface: #ffffff;
  --tt-band: #efece6;
  --tt-ink: #18181b;
  --tt-ink-soft: #27272a;
  --tt-line: #e5e1d8;
  --tt-line-strong: #d4cfc4;
  --tt-muted: #57575f;
  --tt-faint: #8e8b84;
  --tt-faint-strong: #6b6b73;
  --tt-accent: #ff4a1c;
  --tt-accent-strong: #e23a0e;
  --tt-accent-soft: #fff0eb;
  --tt-accent-ink: #ffffff;
  --tt-wa: #25d366;
  --tt-wa-hover: #1ebe5d;
  --tt-wa-sent: #15803d;
  --tt-indigo: #5b4cf5;
  --tt-indigo-hover: #4a3be0;
  --tt-header-bg: rgba(246, 244, 239, 0.88);
  --tt-ink-6: rgba(24, 24, 27, 0.06);
  --tt-ink-40: rgba(24, 24, 27, 0.45);
  --tt-radius-lg: 0.625rem;
  --tt-radius-xl: 0.875rem;
  --tt-radius-2xl: 1.15rem;
  --tt-radius-3xl: 1.5rem;
  --tt-shadow-soft: 0 1px 2px rgba(24, 24, 27, 0.08);
  --tt-shadow-lift: 0 12px 34px -14px rgba(24, 24, 27, 0.28);
  --tt-sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --tt-display: 'Bricolage Grotesque', ui-sans-serif, system-ui, sans-serif;
  --tt-mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', monospace;
}

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

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

body {
  margin: 0;
  background-color: var(--tt-bg);
  color: var(--tt-ink);
  font-family: var(--tt-sans);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; flex: none; max-width: 100%; }
a { color: inherit; text-decoration: none; }

a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--tt-accent);
  outline-offset: 2px;
}

.tt-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Containers */
.tt-wrap {
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.tt-prose {
  width: 100%;
  max-width: 48rem;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

/* Header */
.tt-hd {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--tt-line);
}

.tt-hd::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--tt-header-bg);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.tt-hd-in {
  display: flex;
  height: 4rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.tt-home { display: inline-flex; align-items: center; }

.tt-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.tt-logo img { width: 2.25rem; height: 2.25rem; flex: none; }

.tt-logo span {
  font-family: var(--tt-display);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--tt-ink);
  white-space: nowrap;
}

.tt-logo b { font-weight: 600; color: var(--tt-accent); }

.tt-nav {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

.tt-nav a {
  white-space: nowrap;
  border-radius: var(--tt-radius-lg);
  padding: 0.45rem 0.85rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
  color: var(--tt-muted);
  transition: color 0.15s, background-color 0.15s;
}

.tt-nav a:hover { background: var(--tt-ink-6); color: var(--tt-ink); }
.tt-nav a[aria-current="page"] { background: var(--tt-ink); color: var(--tt-paper); }

.tt-act { display: flex; align-items: center; gap: 0.45rem; }

/* Connected WhatsApp Status Pill */
.tt-conn-pill {
  display: none;
  align-items: center;
  gap: 0.4rem;
  height: 2.2rem;
  padding: 0 0.75rem;
  border-radius: 999px;
  border: 1px solid #bbf7d0;
  background: #f0fdf4;
  color: #166534;
  font-family: var(--tt-sans);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s;
}

.tt-conn-pill:hover { background: #dcfce7; }
.tt-conn-pill.is-visible { display: inline-flex; }
.tt-conn-dot { width: 0.45rem; height: 0.45rem; border-radius: 999px; background: #22c55e; }

/* Clean Button Language Dropdown */
.tt-lang-wrap { position: relative; }

.tt-lang-btn {
  display: inline-flex;
  height: 2.35rem;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 1px solid var(--tt-line-strong);
  border-radius: var(--tt-radius-lg);
  background: var(--tt-surface);
  padding: 0 0.7rem;
  font-family: var(--tt-sans);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--tt-muted);
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}

.tt-lang-btn:hover, .tt-lang-btn[aria-expanded="true"] {
  border-color: var(--tt-ink);
  color: var(--tt-ink);
}

.tt-lang-btn span {
  font-family: var(--tt-mono);
  font-size: 0.75rem;
  line-height: 1;
  text-transform: uppercase;
}

.tt-lang-list {
  position: absolute;
  top: calc(100% + 0.45rem);
  right: 0;
  z-index: 60;
  display: none;
  min-width: 11.5rem;
  max-height: 20rem;
  overflow-y: auto;
  margin: 0;
  padding: 0.375rem;
  list-style: none;
  border: 1px solid var(--tt-line);
  border-radius: var(--tt-radius-xl);
  background: var(--tt-paper);
  box-shadow: var(--tt-shadow-lift);
}

.tt-lang-list.is-open { display: block; }
.tt-lang-list li { margin: 0; }

.tt-lang-list button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  border: none;
  border-radius: var(--tt-radius-lg);
  background: transparent;
  padding: 0.5rem 0.75rem;
  font-family: var(--tt-sans);
  font-size: 0.875rem;
  color: var(--tt-ink);
  cursor: pointer;
  text-align: left;
  transition: background-color 0.12s;
}

.tt-lang-list button:hover { background: var(--tt-bg); }
.tt-lang-list button[aria-current="true"] {
  font-weight: 600;
  background: var(--tt-accent-soft);
  color: var(--tt-accent-strong);
}

.tt-lang-code-tag {
  font-family: var(--tt-mono);
  font-size: 0.7rem;
  color: var(--tt-faint-strong);
  text-transform: uppercase;
}

/* Mobile Menu Button & Drawer */
.tt-menu-btn {
  display: grid;
  width: 2.45rem;
  height: 2.45rem;
  place-items: center;
  border: 1px solid var(--tt-line-strong);
  border-radius: var(--tt-radius-lg);
  background: var(--tt-surface);
  color: var(--tt-ink);
  cursor: pointer;
}

.tt-menu-btn:hover { border-color: var(--tt-ink); }

.tt-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  background: var(--tt-ink-40);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.tt-drawer-backdrop.is-open { display: block; }

.tt-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  z-index: 51;
  display: none;
  width: 82%;
  max-width: 20rem;
  flex-direction: column;
  overflow-y: auto;
  background: var(--tt-paper);
  padding: 1.25rem;
  box-shadow: var(--tt-shadow-lift);
}

.tt-drawer.is-open { display: flex; }

.tt-drawer-top {
  display: flex;
  min-height: 2.5rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.tt-drawer-nav { display: flex; flex-direction: column; gap: 0.3rem; }
.tt-drawer-nav a {
  display: flex;
  align-items: center;
  border-radius: var(--tt-radius-xl);
  padding: 0.75rem 0.9rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--tt-ink);
}

.tt-drawer-nav a:hover { background: var(--tt-ink-6); }
.tt-drawer-nav a[aria-current="page"] { background: var(--tt-ink); color: var(--tt-paper); }

/* Hero */
.tt-hero { padding: 3.25rem 0 1.25rem; text-align: center; }

.tt-eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 0;
  font-family: var(--tt-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--tt-faint);
}

.tt-dot { width: 0.375rem; height: 0.375rem; border-radius: 999px; background: var(--tt-accent); flex: none; }

.tt-h1 {
  margin: 0.75rem auto 0;
  font-family: var(--tt-display);
  font-size: clamp(1.85rem, 4.4vw, 3rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--tt-ink);
  text-wrap: balance;
}

.tt-lead {
  margin: 0.9rem auto 0;
  max-width: 41rem;
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--tt-muted);
}

/* Search Bar */
.tt-search-row { max-width: 28rem; margin: 1.5rem auto 0; position: relative; }
.tt-search-icon {
  position: absolute;
  left: 0.95rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--tt-faint);
  pointer-events: none;
}

.tt-search-input {
  width: 100%;
  height: 2.8rem;
  border-radius: 999px;
  border: 1px solid var(--tt-line-strong);
  background: var(--tt-surface);
  padding: 0 1rem 0 2.6rem;
  font-family: var(--tt-sans);
  font-size: 0.92rem;
  color: var(--tt-ink);
  box-shadow: 0 2px 6px rgba(24, 24, 27, 0.04);
  transition: border-color 0.15s;
}

.tt-search-input:focus { outline: none; border-color: var(--tt-ink); }

/* Catalog Section */
.tt-catalog { padding: 1.25rem 0 4rem; }

/* Category Chips */
.tt-chips {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  margin: 0 -1.25rem 1.5rem;
  padding: 0 1.25rem 0.25rem;
  scrollbar-width: none;
}
.tt-chips::-webkit-scrollbar { display: none; }

.tt-chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
  border-radius: 999px;
  border: 1px solid var(--tt-line);
  background: var(--tt-surface);
  padding: 0.48rem 0.9rem;
  font-family: var(--tt-sans);
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
  color: var(--tt-muted);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background-color 0.15s;
}

.tt-chip:hover { border-color: var(--tt-ink); color: var(--tt-ink); }
.tt-chip.is-active, .tt-chip[aria-pressed="true"] {
  border-color: var(--tt-ink);
  background: var(--tt-ink);
  color: var(--tt-paper);
}

.tt-meta-count {
  margin: 0 0 1.25rem;
  font-family: var(--tt-mono);
  font-size: 0.75rem;
  line-height: 1rem;
  color: var(--tt-muted);
}

/* Polished White Elevated Sticker Cards on #f6f4ef background */
.tt-sticker-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.tt-sticker-li {
  display: flex;
  justify-content: center;
  border-radius: 16px;
  padding: 14px 10px 12px;
  border: 1px solid #ebe7df;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(24, 24, 27, 0.05);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.tt-sticker-li:hover {
  transform: translateY(-2px);
  border-color: #dcd6cb;
  box-shadow: 0 8px 20px -10px rgba(24, 24, 27, 0.14);
}

.tt-sticker-card {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: center;
}

.tt-sticker-box {
  position: relative;
  width: 92px;
  height: 92px;
}

.tt-sticker-thumb {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  overflow: hidden;
  border-radius: 0.75rem;
  border: 1px solid var(--tt-line);
  background: var(--tt-bg);
  cursor: pointer;
  transition: border-color 0.18s, box-shadow 0.18s;
}

.tt-sticker-thumb:hover { border-color: var(--tt-ink); }

/* Slim Playing Border */
.tt-sticker-card.is-playing .tt-sticker-thumb {
  border-color: var(--tt-accent);
  box-shadow: 0 0 0 1.5px rgba(255, 74, 28, 0.45);
}

.tt-sticker-thumb img { width: 100%; height: 100%; object-fit: cover; }

.tt-duration-badge {
  position: absolute;
  top: 0.25rem;
  left: 0.25rem;
  border-radius: 999px;
  background: rgba(24, 24, 27, 0.8);
  padding: 0 0.38rem;
  font-family: var(--tt-mono);
  font-size: 0.64rem;
  font-weight: 600;
  line-height: 1.2rem;
  color: var(--tt-paper);
  pointer-events: none;
}

.tt-play-fab {
  position: absolute;
  right: -0.45rem;
  bottom: -0.45rem;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 999px;
  border: 2px solid var(--tt-paper);
  background: var(--tt-ink);
  color: var(--tt-paper);
  display: grid;
  place-items: center;
  padding: 0;
  cursor: pointer;
  box-shadow: var(--tt-shadow-soft);
  transition: background-color 0.15s, color 0.15s;
}

.tt-play-fab:hover { background: var(--tt-ink-soft); }
.tt-sticker-card.is-playing .tt-play-fab { background: var(--tt-accent); color: var(--tt-paper); }

.tt-sticker-title {
  margin: 0.9rem 0 0;
  max-width: 9.2rem;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--tt-ink);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tt-sticker-actions {
  margin-top: 0.5rem;
  width: 100%;
  max-width: 9.2rem;
}

/* Single WhatsApp-Green CTA Button + Sent State */
.tt-wa-btn {
  display: inline-flex;
  height: 2.05rem;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border: none;
  border-radius: 999px;
  background: var(--tt-wa);
  color: #ffffff;
  padding: 0 0.65rem;
  font-family: var(--tt-sans);
  font-size: 0.73rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s, transform 0.1s;
}

.tt-wa-btn:hover { background: var(--tt-wa-hover); }
.tt-wa-btn:active { transform: scale(0.98); }
.tt-wa-btn.is-sent { background: var(--tt-wa-sent); }

.tt-wa-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.tt-empty-state {
  display: none;
  place-items: center;
  gap: 0.75rem;
  border-radius: var(--tt-radius-2xl);
  border: 1px dashed var(--tt-line-strong);
  background: var(--tt-surface);
  padding: 3rem 1.5rem;
  text-align: center;
}

.tt-empty-state.is-visible { display: grid; }

/* Dark Ink CTA Band */
.tt-cta-ink {
  background: var(--tt-ink);
  color: var(--tt-paper);
  padding: 3.75rem 0;
  text-align: center;
}

.tt-cta-ink h2 {
  margin: 0.85rem auto 0;
  font-family: var(--tt-display);
  font-size: clamp(1.35rem, 3vw, 1.875rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--tt-paper);
}

.tt-cta-ink p {
  margin: 0.75rem auto 0;
  max-width: 28rem;
  font-size: 0.95rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.72);
}

.tt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 2.75rem;
  padding: 0 1.25rem;
  border-radius: var(--tt-radius-xl);
  border: 1px solid transparent;
  font-family: var(--tt-sans);
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s;
}

.tt-btn-lg { height: 3.1rem; padding: 0 1.5rem; font-size: 1rem; }
.tt-btn-accent { background: var(--tt-accent); color: var(--tt-accent-ink); }
.tt-btn-accent:hover { background: var(--tt-accent-strong); }
.tt-btn-primary { background: var(--tt-ink); color: var(--tt-paper); }
.tt-btn-primary:hover { background: var(--tt-ink-soft); }
.tt-btn-outline { background: var(--tt-surface); border-color: var(--tt-line-strong); color: var(--tt-ink); }
.tt-btn-outline:hover { border-color: var(--tt-ink); }

/* FAQ Section */
.tt-faq-section { padding: 3rem 0 0; }
.tt-faq-list { display: flex; flex-direction: column; gap: 0.7rem; margin-top: 1.25rem; }
.tt-faq-item { border-radius: var(--tt-radius-xl); border: 1px solid var(--tt-line); background: var(--tt-surface); }
.tt-faq-item summary {
  padding: 1rem 1.2rem;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.tt-faq-item summary::-webkit-details-marker { display: none; }
.tt-faq-item summary::after { content: "+"; font-family: var(--tt-mono); font-size: 1.1rem; color: var(--tt-accent); flex: none; }
.tt-faq-item[open] summary::after { content: "−"; }
.tt-faq-body { padding: 0 1.2rem 1.05rem; font-size: 0.92rem; color: var(--tt-muted); line-height: 1.65; }

/* ============================================================================
   3-STEP WHATSAPP PAIRING MODAL (Exact audiosticker.in Flow + Safety Tip)
   ============================================================================ */
.tt-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  place-items: center;
  padding: 1rem;
  background: rgba(24, 24, 27, 0.56);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  overflow-y: auto;
}

.tt-modal.is-open { display: grid; }

.tt-pair-card {
  position: relative;
  width: 100%;
  max-width: 29.5rem;
  border-radius: 1.25rem;
  background: #ffffff;
  padding: 1.75rem 1.5rem 1.5rem;
  box-shadow: 0 24px 48px -12px rgba(24, 24, 27, 0.35);
  text-align: center;
}

.tt-modal-close {
  position: absolute;
  top: 0.95rem;
  right: 0.95rem;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--tt-muted);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.tt-modal-close:hover { background: var(--tt-band); color: var(--tt-ink); }

.tt-wa-badge {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 0.9rem;
  border-radius: 999px;
  background: var(--tt-wa);
  color: #ffffff;
  display: grid;
  place-items: center;
}

.tt-bolt-badge, .tt-party-badge {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 0.75rem;
  display: grid;
  place-items: center;
  font-size: 2rem;
}

.tt-pair-title {
  margin: 0;
  font-family: var(--tt-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--tt-ink);
}

.tt-pair-sub {
  margin: 0.45rem auto 0;
  max-width: 24rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--tt-muted);
}

.tt-pair-info {
  margin-top: 1.15rem;
  border-radius: 0.85rem;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  padding: 0.95rem 1rem;
  text-align: left;
  font-size: 0.84rem;
  line-height: 1.55;
  color: #475569;
}

.tt-pair-info-head {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.35rem;
  font-weight: 600;
  color: var(--tt-ink);
}

.tt-pair-field { margin-top: 1.15rem; text-align: left; }
.tt-pair-label { display: block; margin-bottom: 0.45rem; font-size: 0.85rem; font-weight: 600; color: var(--tt-ink-soft); }

.tt-phone-row { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 0.6rem; }

.tt-country-select, .tt-phone-input {
  height: 2.9rem;
  border-radius: 0.7rem;
  border: 1px solid var(--tt-line-strong);
  background: #ffffff;
  padding: 0 0.75rem;
  font-family: var(--tt-sans);
  font-size: 0.92rem;
  color: var(--tt-ink);
}

.tt-phone-input { border-color: #86efac; background: #f7fef9; }
.tt-phone-input:focus, .tt-country-select:focus {
  outline: none;
  border-color: var(--tt-wa);
  box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.16);
}

.tt-pair-error { margin: 0.45rem 0 0; font-size: 0.8rem; color: #dc2626; min-height: 1.1rem; }

.tt-indigo-btn {
  margin-top: 0.5rem;
  display: inline-flex;
  width: 100%;
  height: 2.95rem;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: none;
  border-radius: 999px;
  background: var(--tt-indigo);
  color: #ffffff;
  font-family: var(--tt-sans);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s;
}

.tt-indigo-btn:hover { background: var(--tt-indigo-hover); }
.tt-indigo-btn:disabled { opacity: 0.65; cursor: not-allowed; }

.tt-privacy-box {
  margin-top: 1.15rem;
  border-radius: 0.75rem;
  border: 1px solid #d1fae5;
  background: #f0fdf4;
  padding: 0.75rem 0.9rem;
  text-align: left;
  font-size: 0.76rem;
  line-height: 1.5;
  color: #166534;
}

.tt-safety-box {
  margin: 1.1rem 0 1.25rem;
  border-radius: 0.85rem;
  border: 1px solid #fde68a;
  background: #fffbeb;
  padding: 0.9rem 1rem;
  text-align: left;
  font-size: 0.82rem;
  line-height: 1.55;
  color: #78350f;
}

.tt-safety-title {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: #92400e;
}

.tt-code-box {
  margin: 1.25rem 0;
  border-radius: 0.85rem;
  border: 1.5px dashed #4ade80;
  background: #f0fdf4;
  padding: 1.15rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.tt-code-text {
  font-family: var(--tt-mono);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--tt-ink);
}

.tt-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  height: 2rem;
  padding: 0 0.7rem;
  border: 1px solid var(--tt-line-strong);
  border-radius: 0.5rem;
  background: #ffffff;
  font-family: var(--tt-sans);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--tt-ink);
  cursor: pointer;
}

.tt-copy-btn:hover { border-color: var(--tt-ink); }

.tt-pair-steps {
  margin: 0;
  padding-left: 1.3rem;
  text-align: left;
  font-size: 0.875rem;
  line-height: 1.75;
  color: var(--tt-ink-soft);
}

.tt-waiting-row {
  margin-top: 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--tt-muted);
}

.tt-spinner {
  width: 1rem;
  height: 1rem;
  border-radius: 999px;
  border: 2px solid var(--tt-line-strong);
  border-top-color: var(--tt-ink);
  animation: tt-spin 0.8s linear infinite;
}

@keyframes tt-spin { to { transform: rotate(360deg); } }

.tt-pair-step { display: none; }
.tt-pair-step.is-active { display: block; }

/* Preview Modal */
.tt-modal-card {
  position: relative;
  width: 100%;
  max-width: 22rem;
  border-radius: var(--tt-radius-3xl);
  border: 1px solid var(--tt-line);
  background: var(--tt-surface);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--tt-shadow-lift);
}

.tt-modal-img {
  width: 168px;
  height: 168px;
  margin: 0.5rem auto 1rem;
  border-radius: var(--tt-radius-2xl);
  border: 1px solid var(--tt-line);
  background: var(--tt-bg);
  object-fit: contain;
}

/* Toast Notification */
.tt-toast {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 95;
  display: none;
  align-items: center;
  gap: 0.5rem;
  max-width: 24rem;
  border-radius: 0.85rem;
  background: var(--tt-ink);
  color: var(--tt-paper);
  padding: 0.8rem 1.05rem;
  font-size: 0.85rem;
  line-height: 1.45;
  font-weight: 500;
  box-shadow: var(--tt-shadow-lift);
}

.tt-toast.is-visible { display: inline-flex; }

/* Native WordPress Comments */
.tt-comments-wrap { padding: 3rem 0; }
.tt-comments-section { border-top: 1px solid var(--tt-line); padding-top: 2.5rem; }
.tt-comments-title { margin: 0; font-family: var(--tt-display); font-size: 1.5rem; font-weight: 600; letter-spacing: -0.02em; }
.tt-comment-list { list-style: none; padding: 0; margin: 1.5rem 0; display: flex; flex-direction: column; gap: 1rem; }
.tt-comment-list .children { list-style: none; padding-left: 1.25rem; margin-top: 0.85rem; border-left: 2px solid var(--tt-line); display: flex; flex-direction: column; gap: 0.85rem; }
.tt-comment-body { border-radius: var(--tt-radius-2xl); border: 1px solid var(--tt-line); background: var(--tt-surface); padding: 1.1rem 1.25rem; }
.tt-comment-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.45rem; }
.tt-comment-author { font-family: var(--tt-display); font-weight: 600; font-size: 0.95rem; }
.tt-comment-date { font-family: var(--tt-mono); font-size: 0.72rem; color: var(--tt-faint-strong); }
.tt-comment-text p { margin: 0.35rem 0 0; font-size: 0.95rem; color: var(--tt-ink-soft); }
.tt-comment-awaiting { margin: 0.5rem 0 0; padding: 0.45rem 0.75rem; border-radius: var(--tt-radius-lg); background: var(--tt-accent-soft); color: var(--tt-accent-strong); font-size: 0.8125rem; font-weight: 500; }
.tt-comment-reply { margin-top: 0.6rem; }
.tt-comment-reply a { font-size: 0.8125rem; font-weight: 600; color: var(--tt-accent-strong); }
.tt-comment-reply a:hover { text-decoration: underline; }

.comment-respond { margin-top: 1.75rem; border-radius: var(--tt-radius-2xl); border: 1px solid var(--tt-line); background: var(--tt-surface); padding: 1.5rem; }
.comment-reply-title { margin: 0 0 0.75rem; font-family: var(--tt-display); font-size: 1.2rem; font-weight: 600; display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.comment-reply-title small a { font-family: var(--tt-sans); font-size: 0.8rem; color: var(--tt-accent-strong); }
.comment-form p { margin: 0 0 0.95rem; }
.comment-form label { display: block; font-size: 0.85rem; font-weight: 500; margin-bottom: 0.35rem; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
  width: 100%;
  border-radius: var(--tt-radius-xl);
  border: 1px solid var(--tt-line-strong);
  background: var(--tt-bg);
  padding: 0.7rem 0.95rem;
  font-family: var(--tt-sans);
  font-size: 0.95rem;
  color: var(--tt-ink);
}
.comment-form input:focus, .comment-form textarea:focus { outline: none; border-color: var(--tt-ink); background: #ffffff; }
.comment-form .submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.85rem;
  padding: 0 1.4rem;
  border: none;
  border-radius: var(--tt-radius-xl);
  background: var(--tt-ink);
  color: var(--tt-paper);
  font-family: var(--tt-sans);
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
}
.comment-form .submit:hover { background: var(--tt-ink-soft); }

/* Fallback Article Prose */
.tt-article { padding: 3rem 0; }
.tt-article p { margin: 0.85rem 0 0; color: var(--tt-ink-soft); }
.tt-article a { text-decoration: underline; text-decoration-color: var(--tt-accent); text-underline-offset: 0.2em; }

/* Footer */
.tt-ft { border-top: 1px solid var(--tt-line); background: var(--tt-surface); }
.tt-ft-in { padding-top: 3.5rem; padding-bottom: 3.5rem; }
.tt-ft-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem; }
.tt-ft-brand { grid-column: span 2; }
.tt-ft-brand p { max-width: 20rem; margin: 1rem 0 0; font-size: 0.875rem; line-height: 1.625; color: var(--tt-muted); }
.tt-ft-col h3 { margin: 0; font-family: var(--tt-mono); font-size: 0.7rem; font-weight: 500; line-height: 1.5; letter-spacing: 0.16em; text-transform: uppercase; color: var(--tt-faint-strong); }
.tt-ft-col ul { display: flex; flex-direction: column; gap: 0.75rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.tt-ft-col a { font-size: 0.875rem; line-height: 1.25rem; color: var(--tt-muted); transition: color 0.15s; }
.tt-ft-col a:hover { color: var(--tt-ink); }
.tt-stores { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; margin-top: 2.5rem; }
.tt-stores img { width: auto; height: 2.5rem; }
.ios .tt-store-apple { order: -1; }
.tt-ft-bottom { display: flex; flex-direction: column; gap: 1.5rem; margin-top: 2.5rem; border-top: 1px solid var(--tt-line); padding-top: 1.5rem; }
.tt-ft-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.tt-soc { display: grid; width: 2.25rem; height: 2.25rem; place-items: center; border: 1px solid var(--tt-line); border-radius: var(--tt-radius-lg); color: var(--tt-muted); transition: color 0.15s, border-color 0.15s; }
.tt-soc:hover { border-color: var(--tt-ink); color: var(--tt-ink); }
.tt-copy { margin: 0; font-family: var(--tt-mono); font-size: 0.75rem; line-height: 1.5; color: var(--tt-faint-strong); }
.tt-marks { margin: 1.25rem 0 0; font-size: 0.75rem; line-height: 1.625; color: var(--tt-faint-strong); }

@media (min-width: 640px) {
  .tt-wrap, .tt-prose { padding-inline: 1.5rem; }
  .tt-chips { margin: 0 0 1.5rem; padding: 0; flex-wrap: wrap; overflow: visible; }
  .tt-sticker-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tt-ft-bottom { flex-direction: row; align-items: center; justify-content: space-between; }
}

@media (min-width: 768px) {
  .tt-hero { padding: 4.25rem 0 1.5rem; }
  .tt-ft-grid { grid-template-columns: 1.3fr repeat(4, 1fr); }
  .tt-ft-brand { grid-column: span 1; }
}

@media (min-width: 1024px) {
  .tt-wrap, .tt-prose { padding-inline: 2rem; }
  .tt-sticker-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .tt-ft-grid { gap: 2rem; }
  .tt-nav { display: flex; }
  .tt-menu-btn { display: none; }
}
