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

html, body {
  min-height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ==================== THEMES ==================== */
body.theme-a {
  background: #f0f2f5;
  color: #111827;
}

body.theme-c {
  background: radial-gradient(circle at 50% 0%, #1a2940 0%, #0d1520 62%, #090f18 100%);
  color: #f3f4f6;
}

/* ==================== TOP BAR ==================== */
.tg-topbar {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 10;
}

.tg-topbar-inner {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

body.theme-a .tg-topbar {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
}

body.theme-c .tg-topbar {
  background: rgba(20, 31, 46, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #223044;
}

.tg-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.015em;
  text-decoration: none;
  color: inherit;
}

.tg-logo-svg {
  width: 26px;
  height: 26px;
  display: block;
  flex-shrink: 0;
}

.tg-top-action {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 8px;
}

body.theme-a .tg-top-action {
  color: #2481cc;
}
body.theme-a .tg-top-action:hover {
  background: #eff8ff;
}

body.theme-c .tg-top-action {
  color: #38bdf8;
}
body.theme-c .tg-top-action:hover {
  background: rgba(56, 189, 248, 0.10);
}

/* ==================== STAGE & CARD ==================== */
.stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 14px 12px 24px;
}

.tg-card {
  width: 100%;
  max-width: 420px;
  border-radius: 18px;
  padding: 20px 18px 18px;
  text-align: center;
}

body.theme-a .tg-card {
  background: #ffffff;
  box-shadow: 0 2px 14px rgba(15, 23, 42, 0.07);
  border: 1px solid #e5e7eb;
}

body.theme-c .tg-card {
  background: linear-gradient(180deg, #172436 0%, #111b28 100%);
  border: 1px solid rgba(245, 196, 81, 0.26);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.42);
}

/* ==================== IDENTITY ==================== */
.ava {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  display: block;
  margin: 0 auto 10px;
}

body.theme-a .ava {
  border: 2px solid #e5e7eb;
}

body.theme-c .ava {
  border: 2.5px solid #f0b90b;
  box-shadow: 0 0 0 4px rgba(240, 185, 11, 0.14);
}

.ch-title {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

body.theme-a .ch-title { color: #111827; }
body.theme-c .ch-title { color: #ffffff; }

.ch-subs {
  font-size: 13px;
  margin-top: 3px;
}

body.theme-a .ch-subs { color: #6b7280; }
body.theme-c .ch-subs { color: #94a3b8; }

/* ==================== VARIANT A COPY ==================== */
.lead-line {
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.38;
  text-align: left;
  margin: 13px 0 10px;
  color: #111827;
}

.perk-list {
  list-style: none;
  text-align: left;
  font-size: 13.5px;
  line-height: 1.44;
  color: #374151;
  margin-bottom: 15px;
}

.perk-list li {
  margin-bottom: 5px;
}

.perk-list li:last-child {
  margin-bottom: 0;
}

.perk-list strong {
  color: #111827;
}

/* ==================== VARIANT C COPY ==================== */
.pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin: 12px 0 12px;
}

.pill {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(240, 185, 11, 0.12);
  color: #f6d365;
  border: 1px solid rgba(240, 185, 11, 0.28);
}

.pill.hot {
  background: rgba(240, 185, 11, 0.24);
  color: #fde68a;
  border-color: rgba(240, 185, 11, 0.56);
}

.dark-desc {
  font-size: 14px;
  line-height: 1.45;
  color: #cbd5e1;
  text-align: left;
  margin-bottom: 15px;
}

.dark-desc strong {
  color: #ffffff;
}

/* ==================== PRIMARY CTA BUTTON (ABOVE BONUS BOX) ==================== */
.tg-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 24px;
  background: #2aabee;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.12s ease, filter 0.12s ease, box-shadow 0.12s ease;
  -webkit-tap-highlight-color: transparent;
}

.tg-btn:hover {
  filter: brightness(1.04);
}

.tg-btn:active {
  transform: scale(0.985);
}

body.theme-c .tg-btn {
  background: linear-gradient(135deg, #2aabee 0%, #1d8bd1 100%);
  box-shadow: 0 6px 18px rgba(42, 171, 238, 0.36);
}

.tg-subbtn {
  margin-top: 8px;
  font-size: 12px;
}

body.theme-a .tg-subbtn { color: #6b7280; }
body.theme-c .tg-subbtn { color: #94a3b8; }

/* ==================== BORDERED BONUS BOX (UNDER CTA BUTTON) ==================== */
.bonus-box {
  margin-top: 14px;
  border-radius: 12px;
  padding: 10px 12px;
  text-align: left;
  font-size: 12.5px;
  line-height: 1.4;
}

body.theme-a .bonus-box {
  background: #eff8ff;
  border: 1px solid #cce7fb;
  color: #155e96;
}

body.theme-a .bonus-box strong {
  color: #0c4a6e;
}

body.theme-c .bonus-box {
  background: rgba(42, 171, 238, 0.10);
  border: 1px solid rgba(42, 171, 238, 0.30);
  color: #dbeafe;
}

body.theme-c .bonus-box strong {
  color: #ffffff;
  display: block;
  margin-bottom: 2px;
}

/* ==================== DISCLAIMER FOOTER ==================== */
.tg-foot {
  width: 100%;
  max-width: 420px;
  margin-top: 14px;
  padding: 0 8px;
  font-size: 10.5px;
  line-height: 1.4;
  text-align: center;
}

body.theme-a .tg-foot { color: #9ca3af; }
body.theme-c .tg-foot { color: #64748b; }

/* ==================== COMPACT BUDGET ANDROID (360x540 FB IN-APP BROWSER) ==================== */
@media (max-height: 620px) and (max-width: 460px) {
  .tg-topbar { height: 42px; }
  .stage { padding: 8px 10px 14px; }
  .tg-card { padding: 14px 14px 13px; border-radius: 15px; }
  .ava { width: 60px; height: 60px; margin-bottom: 7px; }
  .ch-title { font-size: 17px; }
  .ch-subs { font-size: 12px; }
  .lead-line { font-size: 13.5px; margin: 9px 0 7px; }
  .perk-list { font-size: 12.5px; margin-bottom: 11px; }
  .perk-list li { margin-bottom: 3.5px; }
  .pills { margin: 9px 0 9px; gap: 5px; }
  .pill { font-size: 11px; padding: 3px 8px; }
  .dark-desc { font-size: 13px; margin-bottom: 11px; }
  .tg-btn { min-height: 43px; padding: 10px 16px; font-size: 13.5px; }
  .bonus-box { margin-top: 10px; padding: 8px 10px; font-size: 12px; }
  .tg-foot { margin-top: 10px; font-size: 9.5px; }
}

/* ==================== DESKTOP ==================== */
@media (min-width: 600px) {
  .tg-topbar { height: 54px; }
  .stage {
    min-height: calc(100vh - 54px);
    justify-content: center;
    padding: 28px 20px 44px;
  }
  .tg-card {
    padding: 28px 26px 24px;
    border-radius: 20px;
  }
  .ava { width: 88px; height: 88px; margin-bottom: 12px; }
  .ch-title { font-size: 21px; }
}
