:root {
  --yellow: #fffc00;
  --yellow-soft: rgba(255, 252, 0, 0.12);
  --black: #0a0a0a;
  --card: #141414;
  --card-border: rgba(255, 252, 0, 0.1);
  --white: #ffffff;
  --muted: rgba(255, 255, 255, 0.55);
  --faint: rgba(255, 255, 255, 0.35);
  --green: #34d399;
  --red: #f87171;
  --radius: 20px;
  --radius-sm: 14px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-top: env(safe-area-inset-top, 0px);
}

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

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

body {
  margin: 0;
  min-height: 100dvh;
  font-family: "Outfit", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--white);
  background: var(--black);
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.bg-glow--top {
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 280px;
  height: 280px;
  background: var(--yellow);
  opacity: 0.18;
}

.bg-glow--bottom {
  bottom: 10%;
  right: -60px;
  width: 200px;
  height: 200px;
  background: #a855f7;
  opacity: 0.12;
}

.app {
  position: relative;
  z-index: 1;
  max-width: 480px;
  margin: 0 auto;
  min-height: 100dvh;
  padding:
    calc(16px + var(--safe-top))
    18px
    calc(24px + var(--safe-bottom));
  display: flex;
  flex-direction: column;
}

/* ── Header ── */
.header {
  text-align: center;
  padding: 8px 0 20px;
}

.ghost-badge {
  width: 72px;
  height: 72px;
  margin: 0 auto 14px;
}

.snapchat-logo {
  display: block;
  width: 72px;
  height: 72px;
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(255, 252, 0, 0.22);
}

.header__tag {
  display: inline-block;
  margin: 0 0 10px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--yellow-soft);
  color: var(--yellow);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.header h1 {
  margin: 0 0 10px;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.header h1 .plus {
  color: var(--yellow);
}

.header h1 .free {
  display: block;
  font-size: 1.6rem;
  color: var(--yellow);
  margin-top: 2px;
}

.header__sub {
  margin: 0 auto 20px;
  max-width: 30ch;
  color: var(--muted);
  font-size: 0.95rem;
}

.trust-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.trust-item {
  text-align: center;
}

.trust-item strong {
  display: block;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--yellow);
}

.trust-item span {
  font-size: 0.75rem;
  color: var(--faint);
}

.trust-divider {
  width: 1px;
  height: 32px;
  background: rgba(255, 255, 255, 0.1);
}

/* ── Steps bar ── */
.steps-bar {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin-bottom: 8px;
}

.steps-bar__fill {
  height: 100%;
  width: 25%;
  border-radius: inherit;
  background: var(--yellow);
  box-shadow: 0 0 12px rgba(255, 252, 0, 0.5);
  transition: width 600ms ease;
}

.steps-label {
  margin: 0 0 16px;
  font-size: 0.8rem;
  color: var(--faint);
  text-align: center;
}

/* ── Main card ── */
.main-card {
  flex: 1;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 24px 20px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

.panel {
  animation: slideUp 300ms ease;
}

.panel[hidden] {
  display: none !important;
}

.panel-head {
  margin-bottom: 22px;
}

.panel-head h2 {
  margin: 0 0 6px;
  font-size: 1.35rem;
  font-weight: 700;
}

.panel-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.panel-head p strong {
  color: var(--yellow);
}

.shield {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(52, 211, 153, 0.12);
  color: var(--green);
  margin-bottom: 14px;
}

.shield svg {
  width: 26px;
  height: 26px;
}

/* ── Form ── */
.form {
  display: grid;
  gap: 12px;
}

.label {
  font-size: 0.9rem;
  font-weight: 600;
}

.input-group {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 54px;
  padding: 0 16px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  transition: border-color 200ms, box-shadow 200ms;
}

.input-group:focus-within {
  border-color: rgba(255, 252, 0, 0.5);
  box-shadow: 0 0 0 3px rgba(255, 252, 0, 0.08);
}

.input-at {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--yellow);
  flex-shrink: 0;
}

.input-group input,
.form > input[type="text"] {
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
  font: inherit;
  font-size: 1rem;
  outline: none;
  transition: border-color 200ms, box-shadow 200ms;
}

.input-group input {
  min-height: auto;
  padding: 14px 0;
  border: none;
  background: transparent;
  box-shadow: none;
}

.form > input[type="text"]:focus {
  border-color: rgba(255, 252, 0, 0.5);
  box-shadow: 0 0 0 3px rgba(255, 252, 0, 0.08);
}

.hint {
  margin: -6px 0 0;
  font-size: 0.8rem;
  color: var(--faint);
}

.error {
  margin: -4px 0 0;
  font-size: 0.85rem;
  color: var(--red);
}

/* ── Perks ── */
.perks {
  list-style: none;
  margin: 4px 0 8px;
  padding: 0;
  display: grid;
  gap: 8px;
}

.perks li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 12px;
  background: var(--yellow-soft);
  border: 1px solid rgba(255, 252, 0, 0.08);
  font-size: 0.88rem;
  color: var(--muted);
}

.perks svg {
  width: 16px;
  height: 16px;
  color: var(--yellow);
  flex-shrink: 0;
}

/* ── Buttons ── */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 24px;
  border: none;
  border-radius: 999px;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  touch-action: manipulation;
  transition: transform 150ms ease, opacity 150ms ease;
  -webkit-user-select: none;
  user-select: none;
}

.btn:active {
  transform: scale(0.97);
}

.btn-main {
  width: 100%;
  background: var(--yellow);
  color: var(--black);
  box-shadow: 0 8px 24px rgba(255, 252, 0, 0.28);
  margin-top: 4px;
}

.btn-main:disabled {
  opacity: 0.5;
  pointer-events: none;
}

.btn-secondary {
  flex: 1;
  background: transparent;
  color: var(--muted);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
}

.btn-group {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

.btn-group .btn-main {
  flex: 1.4;
  width: auto;
  margin-top: 0;
}

/* ── Account card (loading) ── */
.account-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  margin-bottom: 20px;
  border-radius: var(--radius-sm);
  background: rgba(255, 252, 0, 0.06);
  border: 1px solid rgba(255, 252, 0, 0.16);
  animation: slideUp 350ms ease;
}

.account-card__avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.account-card__avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--yellow);
  background: rgba(255, 255, 255, 0.08);
}

.account-card__pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(255, 252, 0, 0.35);
  animation: avatarPulse 2s ease infinite;
}

.account-card__info {
  flex: 1;
  min-width: 0;
}

.account-card__name-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.account-card__name-row strong {
  font-size: 1rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.account-card__verified {
  color: var(--yellow);
  flex-shrink: 0;
}

.account-card__verified svg {
  width: 16px;
  height: 16px;
}

.account-card__username {
  margin: 2px 0 4px;
  font-size: 0.85rem;
  color: var(--yellow);
}

.account-card__meta {
  margin: 0;
  font-size: 0.78rem;
  color: var(--faint);
}

.account-card__badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(52, 211, 153, 0.12);
  color: var(--green);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.account-card__badge svg {
  width: 18px;
  height: 18px;
}

@keyframes avatarPulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.08); opacity: 0.2; }
}

/* ── Loading ── */
.loading-hero {
  text-align: center;
  padding: 8px 0 24px;
}

.loader-ring {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 20px;
}

.loader-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.loader-ring__track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 6;
}

.loader-ring__progress {
  fill: none;
  stroke: var(--yellow);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 326.73;
  stroke-dashoffset: 326.73;
  transition: stroke-dashoffset 800ms ease;
  filter: drop-shadow(0 0 6px rgba(255, 252, 0, 0.5));
}

.loader-ring__pct {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--yellow);
}

.loading-hero h2 {
  margin: 0 0 6px;
  font-size: 1.25rem;
}

.loading-sub {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.9rem;
  min-height: 1.4em;
  transition: opacity 200ms;
}

.loading-user {
  margin: 0;
  font-size: 0.85rem;
  color: var(--faint);
}

.loading-user strong {
  color: var(--yellow);
}

.task-list {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: grid;
  gap: 0;
}

.task-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.88rem;
  color: var(--faint);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 300ms ease, transform 300ms ease, color 300ms;
}

.task-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.task-item.is-done {
  color: var(--muted);
}

.task-item.is-active {
  color: var(--white);
}

.task-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.06);
  transition: background 300ms;
}

.task-item.is-active .task-icon {
  background: var(--yellow-soft);
}

.task-item.is-done .task-icon {
  background: rgba(52, 211, 153, 0.15);
  color: var(--green);
}

.task-icon svg {
  width: 14px;
  height: 14px;
}

.task-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 252, 0, 0.2);
  border-top-color: var(--yellow);
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

.loading-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px;
  border-radius: 12px;
  background: rgba(255, 252, 0, 0.06);
  border: 1px solid rgba(255, 252, 0, 0.1);
  font-size: 0.82rem;
  color: var(--muted);
}

.loading-note svg {
  width: 18px;
  height: 18px;
  color: var(--yellow);
  flex-shrink: 0;
  margin-top: 1px;
}

/* ── Content lock / Captcha ── */
.verify-alert {
  display: flex;
  gap: 14px;
  padding: 18px;
  margin-bottom: 20px;
  border-radius: var(--radius-sm);
  background: rgba(255, 252, 0, 0.07);
  border: 1px solid rgba(255, 252, 0, 0.18);
}

.verify-alert__icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 252, 0, 0.15);
  color: var(--yellow);
}

.verify-alert__icon svg {
  width: 24px;
  height: 24px;
}

.verify-alert h2 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--yellow);
  line-height: 1.3;
}

.verify-alert p {
  margin: 0 0 8px;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.55;
}

.verify-alert p:last-child {
  margin-bottom: 0;
}

.verify-alert p strong {
  color: var(--white);
}

.verify-alert__sub {
  font-size: 0.82rem !important;
  color: var(--faint) !important;
}

.verify-steps {
  display: grid;
  gap: 8px;
  margin-bottom: 20px;
}

.verify-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.85rem;
  color: var(--faint);
}

.verify-step.is-done {
  color: var(--muted);
}

.verify-step.is-done .verify-step__num {
  background: rgba(52, 211, 153, 0.15);
  color: var(--green);
}

.verify-step.is-active {
  color: var(--white);
  border-color: rgba(255, 252, 0, 0.2);
  background: rgba(255, 252, 0, 0.05);
}

.verify-step.is-active .verify-step__num {
  background: var(--yellow);
  color: var(--black);
}

.verify-step__num {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.75rem;
  font-weight: 700;
}

/* ── Choice buttons ── */
.choice-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 8px 0 16px;
}

.choice-btn {
  width: 100%;
  min-height: 54px;
  padding: 14px 16px;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  touch-action: manipulation;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.choice-btn:active {
  transform: scale(0.98);
}

.choice-btn-label {
  display: block;
  font-size: 0.95rem;
}

.choice-btn-subtitle {
  display: block;
  margin-top: 4px;
  font-size: 0.78rem;
  font-weight: 500;
  opacity: 0.85;
}

.choice-btn-primary {
  background: var(--yellow);
  color: var(--black);
  border: none;
  box-shadow: 0 8px 24px rgba(255, 252, 0, 0.25);
}

.choice-btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--white);
  border: 1.5px solid rgba(255, 252, 0, 0.25);
}

.choice-btn-secondary .choice-btn-subtitle {
  color: var(--muted);
}

.choice-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--faint);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.choice-divider::before,
.choice-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.btn-back {
  width: 100%;
  margin-top: 4px;
}

/* ── Modals ── */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  padding: 16px;
  padding-top: calc(16px + var(--safe-top));
  padding-bottom: calc(16px + var(--safe-bottom));
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  overflow-y: auto;
  align-items: flex-start;
  justify-content: center;
}

.modal.is-open {
  display: flex;
}

.modal-content {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin: auto;
  padding: 24px 20px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--card-border);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
  animation: slideUp 280ms ease;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.tiktok-kicker,
.tiktok-confirm-kicker {
  display: inline-block;
  margin-bottom: 10px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--yellow-soft);
  color: var(--yellow);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tiktok-header h2,
.tiktok-confirm-body h2 {
  margin: 0 0 10px;
  font-size: 1.15rem;
  line-height: 1.35;
}

.tiktok-header p,
.tiktok-confirm-body p {
  margin: 0 0 10px;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.55;
}

.tiktok-warning {
  color: var(--yellow) !important;
}

.tiktok-form {
  display: grid;
  gap: 12px;
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
}

.input-group-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.tiktok-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.85rem;
  font-weight: 600;
}

.tiktok-field input,
.tiktok-field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
  font: inherit;
  font-size: 0.95rem;
  outline: none;
}

.tiktok-field textarea {
  min-height: 88px;
  padding: 12px 14px;
  resize: vertical;
}

.tiktok-field input:focus,
.tiktok-field textarea:focus {
  border-color: rgba(255, 252, 0, 0.5);
  box-shadow: 0 0 0 3px rgba(255, 252, 0, 0.08);
}

.form-help {
  margin: 6px 0 0;
  font-size: 0.78rem;
  color: var(--faint);
}

.form-honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.tiktok-confirm-list {
  margin: 0 0 12px;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.tiktok-confirm-alert {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px;
  margin-bottom: 12px;
  border-radius: 12px;
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.2);
  font-size: 0.85rem;
  color: var(--muted);
}

.tiktok-confirm-alert span:first-child {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(248, 113, 113, 0.2);
  color: #f87171;
  font-weight: 700;
}

.tiktok-confirm-note {
  font-size: 0.82rem !important;
  color: var(--faint) !important;
}

.tiktok-confirm-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--muted);
  cursor: pointer;
}

.tiktok-confirm-check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.tiktok-confirm-check-ui {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
  border-radius: 6px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
}

.tiktok-confirm-check input:checked + .tiktok-confirm-check-ui {
  background: var(--yellow);
  border-color: var(--yellow);
  box-shadow: inset 0 0 0 2px var(--black);
}

.tiktok-confirm-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.tiktok-confirm-actions .btn {
  flex: 1;
}

/* ── TikTok guide (modal) ── */
.tiktok-modal .modal-content {
  max-width: 680px;
}

.tiktok-modal-content {
  max-height: min(92vh, 900px);
  overflow-y: auto;
}

.tiktok-guide {
  margin-top: 0.35rem;
  display: grid;
  gap: 0.95rem;
}

.tiktok-guide-head {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.tiktok-guide-head > div {
  flex: 1;
  min-width: 0;
}

.tiktok-guide-step {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: var(--yellow);
  color: #0a0a0a;
  font-size: 0.95rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tiktok-guide-title {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  line-height: 1.25;
  color: var(--white);
}

.tiktok-guide-intro {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--muted);
}

.tiktok-guide-highlight {
  padding: 0.85rem 1rem;
  border-left: 4px solid var(--yellow);
  border-radius: 0 10px 10px 0;
  background: var(--yellow-soft);
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--white);
}

.tiktok-guide-open-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: 0.35rem;
}

.tiktok-guide-open {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: var(--yellow);
  color: #0a0a0a;
  font-weight: 700;
  text-decoration: none;
  transition: filter 0.15s ease;
}

.tiktok-guide-open:hover {
  filter: brightness(1.05);
  color: #0a0a0a;
}

.tiktok-guide-open-icon {
  flex-shrink: 0;
  font-size: 1.15rem;
  line-height: 1;
}

.tiktok-guide-open-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.12rem;
  min-width: 0;
  text-align: center;
}

.tiktok-guide-open-domain {
  font-size: 0.95rem;
  line-height: 1.2;
  word-break: break-word;
}

.tiktok-guide-open-action {
  font-size: 0.76rem;
  font-weight: 600;
  opacity: 0.85;
  line-height: 1.25;
}

.tiktok-guide-open-note {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--muted);
  text-align: center;
  width: 100%;
}

.tiktok-guide-tabs {
  display: grid;
  gap: 0.75rem;
}

.tiktok-guide-tabs-label {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--white);
}

.tiktok-guide-tablist {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.tiktok-guide-tab {
  flex: 1 1 0;
  min-width: 7.5rem;
  padding: 0.62rem 0.75rem;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.tiktok-guide-tab.is-active {
  background: var(--yellow);
  color: #0a0a0a;
}

.tiktok-guide-panel {
  padding: 0.95rem 1rem 0.95rem 1.15rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.tiktok-guide-panel[hidden] {
  display: none;
}

.tiktok-guide-panel ol {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.55rem;
}

.tiktok-guide-panel li {
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--muted);
}

.tiktok-guide-panel strong {
  color: var(--white);
}

.tiktok-guide-scroll-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 0.75rem;
  padding: 0.82rem 1.1rem;
  border-radius: 999px;
  border: 2px solid var(--yellow);
  background: transparent;
  color: var(--yellow);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.tiktok-guide-scroll-btn:hover {
  background: var(--yellow-soft);
}

#tiktokExample {
  scroll-margin-top: 1.25rem;
  margin: 1rem 0;
}

.tiktok-form-head {
  margin-bottom: 0.25rem;
}

.tiktok-example {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
}

.tiktok-example-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 0.95rem;
}

.tiktok-example-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--yellow);
}

.tiktok-example-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--white);
  margin: 0.25rem 0 0;
}

.tiktok-example-note {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.5;
  text-align: right;
  max-width: 220px;
  margin: 0;
}

.tiktok-preview {
  border-radius: 10px;
  border: 1px dashed rgba(255, 252, 0, 0.25);
  min-height: 165px;
  background:
    radial-gradient(circle at top left, rgba(255, 252, 0, 0.06), transparent 42%),
    radial-gradient(circle at bottom right, rgba(255, 252, 0, 0.03), transparent 35%),
    rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.tiktok-preview-frame {
  width: min(100%, 248px);
  aspect-ratio: 9 / 16;
  border-radius: 20px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.35);
}

.tiktok-preview-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.tiktok-verify-status {
  margin: 8px 0 0;
  font-size: 0.84rem;
  line-height: 1.45;
}

.tiktok-verify-status.is-checking {
  color: var(--muted);
}

.tiktok-verify-status.is-ok {
  color: var(--green);
}

.tiktok-verify-status.is-error {
  color: #f87171;
}

.tiktok-confirm-check-text {
  line-height: 1.45;
}

@media (max-width: 480px) {
  .input-group-row {
    grid-template-columns: 1fr;
  }

  .tiktok-example-top {
    flex-direction: column;
  }

  .tiktok-example-note {
    text-align: left;
    max-width: none;
  }

  .tiktok-modal .modal-content {
    max-width: 100%;
  }
}

/* ── Success ── */
.success {
  text-align: center;
}

.success-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(52, 211, 153, 0.15);
  color: var(--green);
  box-shadow: 0 0 0 8px rgba(52, 211, 153, 0.06);
  animation: pop 400ms ease;
}

.success-icon svg {
  width: 36px;
  height: 36px;
}

.success h2 {
  margin: 0 0 8px;
  font-size: 1.5rem;
}

.success > p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 0.92rem;
}

.success > p strong {
  color: var(--yellow);
}

.result {
  text-align: left;
  padding: 16px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  margin-bottom: 16px;
}

.result-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.88rem;
  color: var(--muted);
}

.result-line:last-child {
  border-bottom: none;
}

.result-line strong {
  color: var(--white);
  font-weight: 600;
}

.green { color: var(--green) !important; }

.mono {
  font-family: "Courier New", monospace;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

.success-tip {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px;
  border-radius: 12px;
  background: rgba(52, 211, 153, 0.08);
  border: 1px solid rgba(52, 211, 153, 0.15);
  font-size: 0.82rem;
  color: var(--muted);
  text-align: left;
  margin-bottom: 20px;
}

.success-tip svg {
  width: 18px;
  height: 18px;
  color: var(--green);
  flex-shrink: 0;
  margin-top: 1px;
}

/* ── Footer ── */
.footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  font-size: 0.78rem;
  color: var(--faint);
}

.online-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulse 2s infinite;
}

/* ── Animations ── */
@keyframes slideUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

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

@keyframes pop {
  from { transform: scale(0.6); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ── Desktop (optional, stays centered) ── */
@media (min-width: 520px) {
  .app {
    padding-top: calc(32px + var(--safe-top));
  }

  .header h1 {
    font-size: 2.4rem;
  }

  .header h1 .free {
    display: inline;
    font-size: inherit;
  }

  .main-card {
    padding: 28px 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
