/**
 * OTC Pro marketing blocks (landing, paywalls, modals).
 * Scoped under .tc-otc-launch and .tc-otc-sub.
 */

.tc-otc-launch,
.tc-otc-sub,
.tc-otc-launch *,
.tc-otc-sub * {
  box-sizing: border-box;
}

/* —— Launch countdown —— */
.tc-otc-launch {
  font-family: inherit;
  max-width: 1120px;
  margin: 0 auto 2rem;
  padding: 1.75rem 1.5rem;
  border-radius: 20px;
  background: linear-gradient(135deg, #f0f7ff 0%, #e8f4fd 55%, #f5f9ff 100%);
  border: 1px solid rgba(25, 118, 210, 0.18);
  box-shadow: 0 12px 40px rgba(25, 118, 210, 0.08);
}

.tc-otc-launch__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 2rem;
  justify-content: space-between;
}

.tc-otc-launch__brand img {
  height: 44px;
  width: auto;
  display: block;
}

.tc-otc-launch__copy {
  flex: 1 1 220px;
  min-width: 0;
}

.tc-otc-launch__copy h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.2rem, 2.5vw, 1.45rem);
  font-weight: 700;
  color: #1565c0;
}

.tc-otc-launch__copy p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #424242;
}

.tc-otc-launch__count {
  text-align: center;
  flex: 0 0 auto;
}

.tc-otc-launch__count-num {
  font-size: clamp(2.5rem, 6vw, 3.25rem);
  font-weight: 800;
  line-height: 1;
  color: #0d47a1;
  font-variant-numeric: tabular-nums;
}

.tc-otc-launch__count-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #546e7a;
  margin-top: 0.35rem;
}

.tc-otc-launch__actions {
  flex: 0 0 auto;
}

.tc-otc-launch__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  background: linear-gradient(135deg, #1976d2, #1e88e5);
  color: #fff !important;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(25, 118, 210, 0.3);
}

.tc-otc-launch__btn:hover {
  filter: brightness(1.05);
  color: #fff !important;
}

/* —— Subscription (OTC Pro) —— */
.tc-otc-sub {
  --tc-otc-border: rgba(148, 163, 255, 0.35);
  --tc-otc-primary: #5b4bff;
  --tc-otc-accent: #22d3ee;

  font-family: system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #e8edff;
  width: 100%;
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 4vw, 40px) clamp(16px, 3vw, 28px);
  margin: 0 auto 2rem;
  border-radius: 22px;
  background:
    radial-gradient(800px 380px at 8% 40%, rgba(91, 75, 255, 0.42) 0%, transparent 55%),
    radial-gradient(560px 320px at 92% 30%, rgba(34, 211, 238, 0.28) 0%, transparent 52%),
    linear-gradient(120deg, #0b1024 0%, #151a3d 45%, #1a1f4a 100%);
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.35);
}

.tc-otc-sub::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -12deg,
    transparent,
    transparent 18px,
    rgba(255, 255, 255, 0.02) 18px,
    rgba(255, 255, 255, 0.02) 19px
  );
  pointer-events: none;
}

.tc-otc-sub__shell {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
}

.tc-otc-sub__title {
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 12px;
  color: #f8fafc;
  letter-spacing: -0.02em;
}

.tc-otc-sub__lead {
  margin: 0 0 20px;
  font-size: clamp(14px, 1.5vw, 16px);
  line-height: 1.55;
  color: #c7d2fe;
}

.tc-otc-sub__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

@media (min-width: 520px) {
  .tc-otc-sub__actions {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }
}

.tc-otc-sub__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  text-align: center;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.tc-otc-sub__btn:active {
  transform: translateY(1px);
}

.tc-otc-sub__btn--primary {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: #fff !important;
  box-shadow: 0 10px 28px rgba(79, 70, 229, 0.45);
}

.tc-otc-sub__btn--primary:hover {
  color: #fff !important;
  filter: brightness(1.06);
}

.tc-otc-sub__btn--ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #e0e7ff !important;
  border: 1px solid var(--tc-otc-border);
}

.tc-otc-sub__btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff !important;
}

.tc-otc-sub__btn--text {
  background: transparent;
  color: #a5b4fc !important;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
  box-shadow: none;
}

.tc-otc-sub__btn--text:hover {
  color: #c7d2fe !important;
}

.tc-otc-sub__brand {
  margin: 8px 0 0;
  font-size: 12px;
  color: #94a3b8;
  text-align: center;
}

/* Compact: inside paywall card / modal */
.tc-otc-sub--compact {
  margin-bottom: 1.25rem;
  padding: 1.25rem 1.1rem;
  border-radius: 16px;
}

.tc-otc-sub--compact .tc-otc-sub__title {
  font-size: 1.2rem;
}

.tc-otc-launch--compact {
  margin-bottom: 1.25rem;
  padding: 1.25rem 1.1rem;
}

.tc-otc-launch--compact .tc-otc-launch__inner {
  flex-direction: column;
  align-items: stretch;
  text-align: center;
}

.tc-otc-launch--compact .tc-otc-launch__brand img {
  margin: 0 auto;
}

.tc-otc-launch--no-countdown .tc-otc-launch__count {
  display: none !important;
}

/* Join page — 21-day special deal strip */
.tc-join-special-deal {
  box-sizing: border-box;
  width: 100%;
  margin: 0 0 1.25rem;
  padding: 1rem 0;
  background: linear-gradient(90deg, #1a237e 0%, #3949ab 45%, #5c6bc0 100%);
  border-bottom: 3px solid #ffd54f;
  box-shadow: 0 6px 24px rgba(26, 35, 126, 0.25);
}

.tc-join-special-deal *,
.tc-join-special-deal {
  box-sizing: border-box;
}

.tc-join-special-deal__shell {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
}

.tc-join-special-deal__main {
  flex: 1 1 200px;
  min-width: 0;
}

.tc-join-special-deal__kicker {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ffe082;
  margin-bottom: 0.35rem;
}

.tc-join-special-deal__copy {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.95);
}

.tc-join-special-deal__count {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 0 0 auto;
  padding: 0.35rem 1rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.tc-join-special-deal__num {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 800;
  line-height: 1;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.tc-join-special-deal__count-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #e8eaf6;
  margin-top: 0.25rem;
}

.tc-join-special-deal__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
}

.tc-join-special-deal__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  background: #ffd54f;
  color: #1a237e !important;
  border: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.tc-join-special-deal__btn:hover {
  filter: brightness(1.06);
  color: #1a237e !important;
}

.tc-join-special-deal__link {
  font-size: 0.9rem;
  font-weight: 600;
  color: #e8eaf6 !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.tc-join-special-deal__link:hover {
  color: #fff !important;
}

@media (max-width: 576px) {
  .tc-join-special-deal__shell {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .tc-join-special-deal__actions {
    justify-content: center;
  }
}

.tc-otc-hidden {
  display: none !important;
}
