/*
 * TikTok Ads 158M Landing Page - Stylesheet
 * Dùng prefix class "lp-" và scoped CSS vars để tránh conflict với theme
 * Upload vào: /wp-content/themes/YOUR-CHILD-THEME/tiktok-158m/style.css
 */

/* ============================================================
   RESET - chỉ scoped trong .tiktok-lp-body
   ============================================================ */
.tiktok-lp-body {
  --lp-black: #0a0a0a;
  --lp-white: #ffffff;
  --lp-tiktok: #fe2c55;
  --lp-tiktok-blue: #25f4ee;
  --lp-gold: #f5a623;
  --lp-gray-100: #f7f7f7;
  --lp-gray-200: #ebebeb;
  --lp-gray-500: #6b7280;
  --lp-gray-700: #374151;
  --lp-radius: 16px;
  font-family: 'Be Vietnam Pro', sans-serif !important;
  color: var(--lp-black);
  background: var(--lp-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Ẩn header/footer của theme khi dùng template này */
.tiktok-lp-body #header,
.tiktok-lp-body #masthead,
.tiktok-lp-body .site-header,
.tiktok-lp-body #colophon,
.tiktok-lp-body .site-footer,
.tiktok-lp-body #footer,
.tiktok-lp-body .admin-bar-spacer {
  display: none !important;
}

.tiktok-lp-body *,
.tiktok-lp-body *::before,
.tiktok-lp-body *::after {
  box-sizing: border-box;
}

/* Scroll smooth */
html { scroll-behavior: smooth; }

/* ============================================================
   NAV
   ============================================================ */
.tiktok-lp-body .lp-nav {
  position: sticky;
  top: 0;
  z-index: 9999;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--lp-gray-200);
  padding: 0 24px;
  margin: 0 !important;
  width: 100%;
}

.tiktok-lp-body .nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  gap: 16px;
}

.tiktok-lp-body .nav-logo {
  font-weight: 800;
  font-size: 18px;
  color: var(--lp-black) !important;
  text-decoration: none !important;
  letter-spacing: -0.5px;
}

.tiktok-lp-body .nav-logo span { color: var(--lp-tiktok) !important; }

.tiktok-lp-body .nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tiktok-lp-body .nav-links a {
  text-decoration: none !important;
  color: var(--lp-gray-700) !important;
  font-size: 14px;
  font-weight: 500;
  transition: color .2s;
}

.tiktok-lp-body .nav-links a:hover { color: var(--lp-tiktok) !important; }

.tiktok-lp-body .partner-badge {
  font-size: 12px;
  font-weight: 600;
  color: var(--lp-gray-500);
  white-space: nowrap;
}

/* ============================================================
   HERO
   ============================================================ */
.tiktok-lp-body .hero {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a0a0e 50%, #0a0a1a 100%);
  color: white;
  padding: 80px 24px 0;
  overflow: hidden;
  position: relative;
}

.tiktok-lp-body .hero::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(254,44,85,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.tiktok-lp-body .hero::after {
  content: '';
  position: absolute;
  bottom: 100px; left: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(37,244,238,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.tiktok-lp-body .hero-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.tiktok-lp-body .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(254,44,85,0.15);
  border: 1px solid rgba(254,44,85,0.3);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #fe6b88;
  margin-bottom: 28px;
  letter-spacing: 0.3px;
}

.tiktok-lp-body .hero-badge::before { content: '✦'; }

.tiktok-lp-body .hero h1 {
  font-size: clamp(32px, 5vw, 56px) !important;
  font-weight: 900 !important;
  line-height: 1.15 !important;
  letter-spacing: -1.5px !important;
  margin-bottom: 20px !important;
  color: white !important;
}

.tiktok-lp-body .hero h1 .highlight {
  background: linear-gradient(90deg, var(--lp-tiktok), var(--lp-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tiktok-lp-body .hero-desc {
  font-size: 17px;
  color: rgba(255,255,255,0.7);
  max-width: 620px;
  margin: 0 auto 32px;
  font-weight: 400;
  line-height: 1.7;
}

.tiktok-lp-body .hero-desc strong { color: white; font-weight: 700; }

.tiktok-lp-body .hero-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.tiktok-lp-body .hero-note {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  margin-bottom: 48px;
}

/* Hero mockup */
.tiktok-lp-body .hero-img-placeholder {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  height: 320px;
  background: linear-gradient(135deg, rgba(254,44,85,0.2), rgba(37,244,238,0.1));
  border-radius: 24px 24px 0 0;
  border: 1px solid rgba(255,255,255,0.08);
  border-bottom: none;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.tiktok-lp-body .tiktok-mockup {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 24px;
}

.tiktok-lp-body .mock-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 16px 20px;
  min-width: 180px;
  text-align: left;
}

.tiktok-lp-body .mock-card .label { font-size: 11px; color: rgba(255,255,255,0.4); margin-bottom: 6px; }
.tiktok-lp-body .mock-card .amount { font-size: 26px; font-weight: 800; color: white; letter-spacing: -1px; }
.tiktok-lp-body .mock-card .amount span { font-size: 14px; color: var(--lp-gold); font-weight: 700; }
.tiktok-lp-body .mock-card .sub { font-size: 12px; color: rgba(255,255,255,0.5); margin-top: 4px; }
.tiktok-lp-body .mock-tag {
  display: inline-block;
  background: rgba(254,44,85,0.2);
  border: 1px solid rgba(254,44,85,0.4);
  color: #fe6b88;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
  margin-top: 8px;
  letter-spacing: 0.5px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.tiktok-lp-body .btn-primary {
  background: linear-gradient(135deg, var(--lp-tiktok), #c5133e) !important;
  color: white !important;
  padding: 14px 28px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none !important;
  display: inline-block;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 8px 32px rgba(254,44,85,0.4);
  border: none !important;
}

.tiktok-lp-body .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(254,44,85,0.5);
  color: white !important;
}

.tiktok-lp-body .btn-secondary {
  background: rgba(255,255,255,0.08);
  color: white !important;
  padding: 14px 28px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none !important;
  display: inline-block;
  border: 1px solid rgba(255,255,255,0.15) !important;
  transition: background .2s;
}

.tiktok-lp-body .btn-secondary:hover { background: rgba(255,255,255,0.14); }

.tiktok-lp-body .btn-link {
  font-size: 14px;
  font-weight: 700;
  color: var(--lp-tiktok) !important;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap .2s;
}

.tiktok-lp-body .btn-link:hover { gap: 8px; }

.tiktok-lp-body .btn-white {
  background: white !important;
  color: var(--lp-tiktok) !important;
  padding: 14px 28px;
  border-radius: 100px;
  font-weight: 800;
  font-size: 15px;
  text-decoration: none !important;
  display: inline-block;
  transition: transform .2s;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  border: none !important;
}

.tiktok-lp-body .btn-white:hover { transform: translateY(-2px); }

/* ============================================================
   SECTION BASE
   ============================================================ */
.tiktok-lp-body section {
  padding: 80px 24px;
  margin: 0 !important;
  width: 100%;
  max-width: 100% !important;
}

.tiktok-lp-body .section-inner {
  max-width: 960px;
  margin: 0 auto;
}

.tiktok-lp-body .section-tag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--lp-tiktok);
  margin-bottom: 12px;
}

.tiktok-lp-body .section-title {
  font-size: clamp(26px, 4vw, 40px) !important;
  font-weight: 900 !important;
  letter-spacing: -1px !important;
  line-height: 1.2 !important;
  margin-bottom: 16px !important;
}

.tiktok-lp-body .section-desc {
  font-size: 16px;
  color: var(--lp-gray-500);
  max-width: 640px;
  line-height: 1.7;
  margin-bottom: 40px;
}

/* ============================================================
   CONDITIONS
   ============================================================ */
.tiktok-lp-body .conditions { background: var(--lp-gray-100); }

.tiktok-lp-body .cond-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 40px;
}

.tiktok-lp-body .cond-card {
  background: white;
  border-radius: var(--lp-radius);
  padding: 32px;
  border: 1px solid var(--lp-gray-200);
  position: relative;
  overflow: hidden;
}

.tiktok-lp-body .cond-card::before {
  content: attr(data-num);
  position: absolute;
  top: -8px; right: 16px;
  font-size: 80px;
  font-weight: 900;
  color: rgba(0,0,0,0.04);
  line-height: 1;
  letter-spacing: -4px;
  pointer-events: none;
}

.tiktok-lp-body .cond-num {
  width: 36px; height: 36px;
  background: var(--lp-tiktok);
  color: white;
  font-size: 14px;
  font-weight: 800;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.tiktok-lp-body .cond-card h3 {
  font-size: 18px !important;
  font-weight: 800 !important;
  margin-bottom: 12px !important;
  line-height: 1.3 !important;
  color: var(--lp-black) !important;
}

.tiktok-lp-body .cond-card p {
  font-size: 14px;
  color: var(--lp-gray-500);
  line-height: 1.7;
  margin-bottom: 16px;
}

.tiktok-lp-body .cond-list {
  list-style: none;
  margin: 0 0 20px 0;
  padding: 0;
}

.tiktok-lp-body .cond-list li {
  font-size: 13px;
  color: var(--lp-gray-700);
  padding: 4px 0 4px 20px;
  position: relative;
}

.tiktok-lp-body .cond-list li::before {
  content: '✓';
  position: absolute; left: 0;
  color: #16a34a;
  font-weight: 700;
}

/* ============================================================
   STEPS
   ============================================================ */
.tiktok-lp-body .steps-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.tiktok-lp-body .steps-list {
  margin-top: 32px;
}

.tiktok-lp-body .step-item {
  border: 1px solid var(--lp-gray-200);
  border-radius: var(--lp-radius);
  margin-bottom: 12px;
  overflow: hidden;
  background: white;
}

.tiktok-lp-body .step-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  cursor: pointer;
  user-select: none;
  transition: background .2s;
  background: white;
}

.tiktok-lp-body .step-header:hover { background: var(--lp-gray-100); }

.tiktok-lp-body .step-num {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--lp-tiktok), #c5133e);
  color: white;
  font-weight: 800;
  font-size: 14px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tiktok-lp-body .step-title {
  flex: 1;
  font-size: 15px;
  font-weight: 700;
  color: var(--lp-black);
}

.tiktok-lp-body .step-arrow {
  font-size: 18px;
  color: var(--lp-gray-500);
  transition: transform .3s;
  flex-shrink: 0;
}

.tiktok-lp-body .step-item.open .step-arrow { transform: rotate(180deg); }

.tiktok-lp-body .step-body {
  display: none;
  padding: 16px 24px 24px;
  font-size: 14px;
  color: var(--lp-gray-700);
  line-height: 1.75;
  border-top: 1px solid var(--lp-gray-200);
}

.tiktok-lp-body .step-item.open .step-body { display: block; }

/* ============================================================
   RULES
   ============================================================ */
.tiktok-lp-body .rules {
  background: var(--lp-black);
  color: white;
}

.tiktok-lp-body .rules .section-title { color: white !important; }
.tiktok-lp-body .rules .section-desc { color: rgba(255,255,255,0.5); }
.tiktok-lp-body .rules .section-tag { color: #fe6b88; }

.tiktok-lp-body .rules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.tiktok-lp-body .rule-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--lp-radius);
  padding: 28px;
  transition: border-color .2s, background .2s;
}

.tiktok-lp-body .rule-card:hover {
  border-color: rgba(254,44,85,0.3);
  background: rgba(254,44,85,0.04);
}

.tiktok-lp-body .rule-icon {
  width: 44px; height: 44px;
  background: rgba(254,44,85,0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 16px;
}

.tiktok-lp-body .rule-num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.3);
  margin-bottom: 8px;
}

.tiktok-lp-body .rule-card h3 {
  font-size: 16px !important;
  font-weight: 800 !important;
  margin-bottom: 10px !important;
  color: white !important;
  line-height: 1.3 !important;
}

.tiktok-lp-body .rule-card p {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
  margin-bottom: 14px;
}

.tiktok-lp-body .rule-list {
  list-style: none;
  margin: 0 0 16px 0;
  padding: 0;
}

.tiktok-lp-body .rule-list li {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  padding: 3px 0 3px 16px;
  position: relative;
}

.tiktok-lp-body .rule-list li::before {
  content: '·';
  position: absolute; left: 4px;
  color: var(--lp-tiktok);
  font-weight: 900;
}

.tiktok-lp-body .rule-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--lp-tiktok-blue) !important;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.tiktok-lp-body .rule-link:hover { text-decoration: underline !important; }

/* ============================================================
   CTA
   ============================================================ */
.tiktok-lp-body .cta-section {
  background: linear-gradient(135deg, #fe2c55 0%, #c5133e 100%);
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.tiktok-lp-body .cta-section::before {
  content: '';
  position: absolute;
  top: -100px; left: 50%;
  transform: translateX(-50%);
  width: 700px; height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.tiktok-lp-body .cta-center {
  max-width: 640px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.tiktok-lp-body .cta-center h2 {
  font-size: clamp(24px, 3.5vw, 40px) !important;
  font-weight: 900 !important;
  letter-spacing: -1px !important;
  line-height: 1.2 !important;
  margin-bottom: 16px !important;
  color: white !important;
}

.tiktok-lp-body .cta-center p {
  font-size: 15px;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  margin-bottom: 28px;
}

.tiktok-lp-body .cta-note {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  margin-top: 12px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.tiktok-lp-body .lp-footer {
  background: var(--lp-black);
  color: rgba(255,255,255,0.4);
  padding: 32px 24px;
  text-align: center;
}

.tiktok-lp-body .footer-inner {
  max-width: 960px;
  margin: 0 auto;
}

.tiktok-lp-body .footer-logo {
  font-size: 18px;
  font-weight: 800;
  color: white;
  margin-bottom: 6px;
}

.tiktok-lp-body .footer-logo span { color: var(--lp-tiktok); }

.tiktok-lp-body .footer-tagline {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  margin-bottom: 20px;
}

.tiktok-lp-body .footer-links {
  display: flex;
  gap: 20px;
  justify-content: center;
  list-style: none;
  margin: 0 0 20px 0;
  padding: 0;
}

.tiktok-lp-body .footer-links a {
  font-size: 13px;
  color: rgba(255,255,255,0.4) !important;
  text-decoration: none !important;
}

.tiktok-lp-body .footer-links a:hover { color: white !important; }

.tiktok-lp-body .footer-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.08);
  margin: 16px 0;
}

.tiktok-lp-body .footer-copy { font-size: 12px; line-height: 1.7; }

.tiktok-lp-body .footer-disclaimer {
  font-size: 11px;
  color: rgba(255,255,255,0.25);
  margin-top: 8px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .tiktok-lp-body .nav-links { display: none; }
  .tiktok-lp-body .partner-badge { display: none; }
  .tiktok-lp-body .cond-grid { grid-template-columns: 1fr; }
  .tiktok-lp-body .rules-grid { grid-template-columns: 1fr; }
  .tiktok-lp-body .tiktok-mockup { flex-direction: column; align-items: center; }
  .tiktok-lp-body .hero-img-placeholder { height: 260px; }
  .tiktok-lp-body .steps-header { flex-direction: column; }
  .tiktok-lp-body .steps-header .btn-primary { align-self: flex-start; }
}

@media (max-width: 480px) {
  .tiktok-lp-body .hero { padding: 48px 16px 0; }
  .tiktok-lp-body section { padding: 56px 16px; }
  .tiktok-lp-body .mock-card { min-width: 140px; padding: 12px 14px; }
}
