/* ThreadSync Enterprise UI Foundation
   - Subtle gradients + professional cards
   - Shared tokens + components
   - Additive layer (do not break existing per-page CSS)
*/

:root {
  --ts-bg: #0b0f17;
  --ts-bg-2: #0f172a;
  --ts-surface: rgba(15, 23, 42, 0.55);
  --ts-surface-solid: #0f172a;
  --ts-border: rgba(148, 163, 184, 0.18);

  --ts-text: rgba(255, 255, 255, 0.92);
  --ts-muted: rgba(255, 255, 255, 0.68);
  --ts-muted-2: rgba(148, 163, 184, 0.92);

  --ts-primary: #3b82f6;
  --ts-accent: #8b5cf6;

  --ts-gradient: linear-gradient(135deg, rgba(59,130,246,1) 0%, rgba(139,92,246,1) 100%);
  --ts-gradient-soft: radial-gradient(ellipse at top, rgba(59,130,246,0.16) 0%, transparent 60%);

  --ts-radius: 16px;
  --ts-radius-sm: 12px;

  --ts-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  --ts-shadow-hover: 0 30px 70px rgba(0, 0, 0, 0.45);

  --ts-focus: rgba(59, 130, 246, 0.9);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100%;
  background: var(--ts-bg);
  color: var(--ts-text);
  font-family: Montserrat, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Subtle enterprise depth overlay */
body::before {
  content: ;
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse at top left, rgba(59,130,246,0.14) 0%, transparent 52%),
    radial-gradient(ellipse at bottom right, rgba(139,92,246,0.10) 0%, transparent 55%);
}

main, header, footer, section, nav, .ts-z-1 {
  position: relative;
  z-index: 1;
}

img { max-width: 100%; height: auto; }

a { color: inherit; text-decoration: none; }

a:hover { text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--ts-focus);
  outline-offset: 3px;
  border-radius: 10px;
}

/* Layout helpers */
.ts-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.ts-section {
  padding: 64px 0;
}

.ts-section--tight {
  padding: 40px 0;
}

/* Typography helpers */
.ts-gradient-text {
  background: var(--ts-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.ts-section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.ts-section-title::before {
  content: ;
  width: 44px;
  height: 2px;
  border-radius: 999px;
  background: var(--ts-gradient);
  opacity: 0.9;
}

.ts-lead {
  color: var(--ts-muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

/* Badge */
.ts-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--ts-border);
  background: rgba(255,255,255,0.04);
  color: var(--ts-muted-2);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* Cards */
.ts-card {
  background: var(--ts-surface);
  border: 1px solid var(--ts-border);
  border-radius: var(--ts-radius);
  box-shadow: var(--ts-shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.ts-card--solid {
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.ts-card--pad {
  padding: 24px;
}

.ts-card:hover {
  transform: translateY(-2px);
  border-color: rgba(59,130,246,0.38);
  box-shadow: var(--ts-shadow-hover);
}

.ts-card:focus-within {
  border-color: rgba(59,130,246,0.55);
}

/* Buttons */
.ts-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1;
  transition: transform 150ms ease, box-shadow 150ms ease, background-color 150ms ease, border-color 150ms ease, opacity 150ms ease;
  cursor: pointer;
  user-select: none;
}

.ts-btn-primary {
  background: var(--ts-gradient);
  color: #fff;
  box-shadow: 0 12px 30px rgba(59, 130, 246, 0.22);
}

.ts-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 42px rgba(59, 130, 246, 0.28);
}

.ts-btn-secondary {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.14);
  color: #fff;
}

.ts-btn-secondary:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.22);
}

.ts-btn:active { transform: translateY(0px); }

/* Header hero (for pages that want a consistent enterprise top band) */
.ts-hero-band {
  background: var(--ts-gradient-soft);
}

/* Forms (enterprise-safe defaults) */
.ts-label {
  display: block;
  color: var(--ts-muted-2);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.ts-input,
.ts-select,
.ts-textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.04);
  color: var(--ts-text);
  padding: 12px 12px;
  font-size: 0.98rem;
  transition: border-color 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
}

.ts-input::placeholder,
.ts-textarea::placeholder { color: rgba(255,255,255,0.45); }

.ts-input:focus,
.ts-select:focus,
.ts-textarea:focus {
  outline: none;
  border-color: rgba(59,130,246,0.55);
  box-shadow: 0 0 0 4px rgba(59,130,246,0.18);
}

.ts-helper {
  margin-top: 6px;
  font-size: 0.86rem;
  color: var(--ts-muted);
}

/* Tables (future step: pricing + security matrices) */
.ts-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--ts-border);
  border-radius: var(--ts-radius);
  overflow: hidden;
}

.ts-table th,
.ts-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  text-align: left;
  vertical-align: top;
}

.ts-table th {
  color: var(--ts-muted-2);
  font-weight: 800;
  background: rgba(255,255,255,0.03);
}

/* Motion reduction for enterprise accessibility */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ts-card, .ts-btn {
    transition: none !important;
  }
  .ts-card:hover, .ts-btn:hover {
    transform: none !important;
  }
}

/* Small screen helpers (we'll fully use this in Step 3 with the shared header) */
@media (max-width: 900px) {
  .ts-container { padding: 0 18px; }
  .ts-section { padding: 48px 0; }
}

/* ===== Shared Header + Footer (Enterprise Layout) ===== */

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

.ts-skip-link {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid var(--ts-border);
  transform: translateY(-200%);
  transition: transform 120ms ease;
  z-index: 200;
}

.ts-skip-link:focus {
  transform: translateY(0);
}

.ts-site-header {
  position: sticky;
  top: 0;
  z-index: 150;
  background: rgba(11, 15, 23, 0.72);
  border-bottom: 1px solid var(--ts-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.ts-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 16px;
}

.ts-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.ts-brand img {
  height: 28px;
  width: auto;
}

.ts-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.ts-nav a {
  color: var(--ts-muted);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
}

.ts-nav a:hover {
  color: var(--ts-text);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.10);
}

.ts-nav a.ts-active {
  color: var(--ts-text);
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.25);
}

.ts-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ts-mobile-toggle {
  display: none;
}

.ts-mobile-nav {
  border-bottom: 1px solid var(--ts-border);
  background: rgba(11, 15, 23, 0.92);
}

.ts-mobile-nav-inner {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 0 18px;
}

.ts-mobile-nav-inner a {
  display: block;
  padding: 10px 10px;
  border-radius: 12px;
  color: var(--ts-text);
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.03);
}

.ts-mobile-nav-inner a:hover {
  background: rgba(255, 255, 255, 0.06);
}

@media (max-width: 900px) {
  .ts-nav { display: none; }
  .ts-mobile-toggle { display: inline-flex; }
}

.ts-site-footer {
  border-top: 1px solid var(--ts-border);
  background: rgba(15, 23, 42, 0.55);
}

.ts-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 24px;
  padding: 56px 0;
}

.ts-footer-brand {
  max-width: 420px;
}

.ts-footer-title {
  color: var(--ts-text);
  font-weight: 800;
  margin-bottom: 12px;
}

.ts-footer-link {
  display: block;
  color: var(--ts-muted);
  padding: 6px 0;
  font-weight: 600;
}

.ts-footer-link:hover {
  color: var(--ts-text);
}

.ts-footer-meta {
  color: var(--ts-muted);
  font-size: 0.92rem;
}

.ts-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 18px 0;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  color: var(--ts-muted);
  font-size: 0.85rem;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .ts-footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .ts-footer-grid { grid-template-columns: 1fr; }
}

/* ===== Enterprise Footnotes / Disclosures ===== */

.ts-footnote {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(255, 255, 255, 0.03);
  color: var(--ts-muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.ts-footnote strong {
  color: var(--ts-text);
  font-weight: 800;
}

/* ===== Enterprise Layout Utilities (Step 7) ===== */

.ts-divider {
  height: 1px;
  width: 100%;
  border: 0;
  background: rgba(148, 163, 184, 0.14);
  margin: 28px 0;
}

.ts-grid-2,
.ts-grid-3,
.ts-grid-4 {
  display: grid;
  gap: 14px;
  align-items: stretch;
}

.ts-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ts-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ts-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.ts-card h3 {
  font-weight: 800;
  letter-spacing: -0.01em;
}

.ts-card p {
  color: var(--ts-muted);
}

.ts-icon-chip {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(255,255,255,0.04);
}

.ts-muted-link {
  color: var(--ts-muted);
  font-weight: 700;
}

.ts-muted-link:hover {
  color: var(--ts-text);
}

@media (max-width: 900px) {
  .ts-grid-2,
  .ts-grid-3,
  .ts-grid-4 {
    grid-template-columns: 1fr !important;
  }
}

/* ===== Additional Enterprise Components ===== */

/* Container variations */
.ts-container--narrow {
  max-width: 700px;
}

/* Hero variations */
.ts-hero {
  padding: 100px 0 50px;
  text-align: center;
  background: var(--ts-gradient-soft);
}

.ts-hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.ts-hero-subtitle {
  color: var(--ts-muted);
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto;
}

.ts-hero--compact {
  padding: 80px 0 40px;
}

/* Section variations */
.ts-section--alt {
  background: rgba(15, 23, 42, 0.45);
}

.ts-section--cta {
  background: var(--ts-gradient-soft);
  padding: 60px 0;
}

.ts-section-title {
  text-align: center;
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.ts-section-subtitle {
  text-align: center;
  color: var(--ts-muted);
  max-width: 600px;
  margin: 0 auto 2rem;
}

/* Card variations */
.ts-card {
  padding: 24px;
  margin-bottom: 1.5rem;
}

.ts-card--accent {
  border-left: 4px solid var(--ts-primary);
}

.ts-card--muted {
  background: rgba(15, 23, 42, 0.35);
  border-color: rgba(148, 163, 184, 0.10);
}

.ts-card h3 {
  margin-bottom: 1rem;
  color: var(--ts-text);
}

.ts-card h4 {
  margin: 1.5rem 0 0.75rem;
  color: var(--ts-muted-2);
  font-weight: 700;
  font-size: 0.95rem;
}

/* Button variations */
.ts-btn {
  background: var(--ts-gradient);
  color: #fff;
  text-decoration: none;
}

.ts-btn--secondary {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
}

.ts-btn--outline {
  background: transparent;
  border: 2px solid var(--ts-primary);
  color: var(--ts-primary);
}

.ts-btn--danger {
  background: #dc2626;
  color: #fff;
}

.ts-btn--full {
  width: 100%;
}

.ts-button-group {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.ts-cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

/* Back link */
.ts-back-link {
  display: inline-block;
  color: var(--ts-primary);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.ts-back-link:hover {
  text-decoration: underline;
}

/* Intro block */
.ts-intro {
  text-align: center;
  padding: 2rem 0;
  border-bottom: 1px solid var(--ts-border);
  margin-bottom: 2rem;
}

.ts-intro h2 {
  color: var(--ts-primary);
  margin-bottom: 1rem;
}

.ts-intro p {
  color: var(--ts-muted);
  max-width: 700px;
  margin: 0 auto;
}

/* Feature lists */
.ts-feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ts-feature-list li {
  padding: 0.5rem 0;
  color: var(--ts-muted);
  position: relative;
  padding-left: 1.5rem;
}

.ts-feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--ts-primary);
  font-weight: bold;
}

/* Metric cards */
.ts-metric-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--ts-border);
  border-radius: var(--ts-radius-sm);
  padding: 1.25rem;
  text-align: center;
}

.ts-metric {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--ts-primary);
  margin-bottom: 0.25rem;
}

.ts-metric-label {
  color: var(--ts-muted);
  font-size: 0.85rem;
}

/* Pricing cards */
.ts-pricing-card {
  background: var(--ts-surface);
  border: 1px solid var(--ts-border);
  border-radius: var(--ts-radius);
  padding: 2rem;
  text-align: center;
  position: relative;
}

.ts-pricing-card--featured {
  border-color: var(--ts-primary);
  border-width: 2px;
}

.ts-pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ts-gradient);
  color: #fff;
  padding: 4px 16px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}

.ts-price {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--ts-text);
  margin: 1rem 0 0.25rem;
}

.ts-price-period {
  color: var(--ts-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.ts-pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  text-align: left;
}

.ts-pricing-features li {
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  color: var(--ts-muted);
}

.ts-pricing-features li::before {
  content: "✓ ";
  color: var(--ts-primary);
  font-weight: bold;
}

/* FAQ section */
.ts-faq {
  margin-top: 2rem;
}

.ts-faq-item {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--ts-border);
  border-radius: var(--ts-radius-sm);
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.ts-faq-item h4 {
  color: var(--ts-text);
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.ts-faq-item p {
  color: var(--ts-muted);
  margin: 0;
}

.ts-faq-item a {
  color: var(--ts-primary);
}

/* Form groups */
.ts-form-group {
  margin-bottom: 1rem;
}

.ts-form-group label {
  display: block;
  color: var(--ts-muted-2);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

/* Checkbox groups */
.ts-checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.ts-checkbox-group label {
  color: var(--ts-muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

.ts-checkbox-group a {
  color: var(--ts-primary);
}

/* Info box */
.ts-info-box {
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: var(--ts-radius-sm);
  padding: 1rem;
  margin-top: 1.5rem;
  color: var(--ts-muted);
  font-size: 0.9rem;
}

.ts-info-box strong {
  color: var(--ts-text);
}

/* Toggle switches */
.ts-toggle {
  position: relative;
  width: 50px;
  height: 26px;
  flex-shrink: 0;
}

.ts-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.ts-toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: rgba(255,255,255,0.15);
  border-radius: 26px;
  transition: background 0.3s;
}

.ts-toggle-slider::before {
  content: "";
  position: absolute;
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.3s;
}

.ts-toggle input:checked + .ts-toggle-slider {
  background: var(--ts-primary);
}

.ts-toggle input:checked + .ts-toggle-slider::before {
  transform: translateX(24px);
}

/* Preference items */
.ts-preference-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.ts-preference-item:last-child {
  border-bottom: none;
}

.ts-preference-label {
  display: flex;
  flex-direction: column;
}

.ts-preference-title {
  color: var(--ts-text);
  font-weight: 600;
}

.ts-preference-description {
  color: var(--ts-muted);
  font-size: 0.85rem;
}

/* Radio groups */
.ts-radio-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ts-radio-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  border: 1px solid var(--ts-border);
  border-radius: var(--ts-radius-sm);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.ts-radio-item:hover {
  border-color: var(--ts-primary);
  background: rgba(59, 130, 246, 0.05);
}

.ts-radio-item.selected {
  border-color: var(--ts-primary);
  background: rgba(59, 130, 246, 0.10);
}

.ts-radio-title {
  display: block;
  color: var(--ts-text);
  font-weight: 600;
}

.ts-radio-description {
  display: block;
  color: var(--ts-muted);
  font-size: 0.85rem;
}

/* Phone display */
.ts-phone-display {
  background: rgba(255,255,255,0.04);
  padding: 1rem;
  border-radius: var(--ts-radius-sm);
  text-align: center;
}

.ts-phone-number {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ts-text);
  margin-top: 0.25rem;
}

/* Widget demo styles */
.ts-widget-demo {
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: var(--ts-radius-sm);
  padding: 1.5rem;
  margin-top: 1rem;
}

.ts-widget-demo--compact {
  padding: 1rem;
}

.ts-widget-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.ts-widget-icon {
  width: 40px;
  height: 40px;
  background: var(--ts-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.ts-widget-header h4 {
  color: var(--ts-text);
  font-weight: 700;
  margin: 0;
}

.ts-widget-description {
  color: var(--ts-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.ts-widget-form .ts-input {
  background: #0d0d0d;
  border-color: #444;
}

.ts-widget-disclaimer {
  text-align: center;
  font-size: 0.75rem;
  color: #666;
  margin-top: 1rem;
}

.ts-success-message {
  background: #16a34a;
  color: #fff;
  padding: 1rem;
  border-radius: var(--ts-radius-sm);
  text-align: center;
  display: none;
}

/* Code blocks */
.ts-code-block {
  background: #1e1e1e;
  border: 1px solid #333;
  border-radius: var(--ts-radius-sm);
  padding: 1rem;
  margin: 1.5rem 0;
  overflow-x: auto;
}

.ts-code-block pre {
  margin: 0;
  color: #e0e0e0;
  font-family: 'Source Code Pro', monospace;
  font-size: 0.85rem;
  line-height: 1.5;
  white-space: pre-wrap;
}

/* Subscribe card (popup style) */
.ts-subscribe-card {
  background: var(--ts-surface);
  border: 1px solid var(--ts-border);
  border-radius: var(--ts-radius);
  overflow: hidden;
  max-width: 450px;
  margin: 0 auto;
}

.ts-subscribe-header {
  background: var(--ts-primary);
  padding: 2rem;
  text-align: center;
  color: #fff;
}

.ts-subscribe-icon {
  width: 60px;
  height: 60px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.ts-subscribe-header h1 {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.ts-subscribe-header p {
  opacity: 0.9;
}

.ts-subscribe-body {
  padding: 2rem;
}

.ts-ticket-info {
  background: rgba(255,255,255,0.04);
  padding: 1rem;
  border-radius: var(--ts-radius-sm);
  border-left: 4px solid var(--ts-primary);
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
}

.ts-ticket-number {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ts-text);
}

.ts-benefits {
  margin-bottom: 1.5rem;
}

.ts-benefit-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  color: var(--ts-muted);
}

.ts-benefit-icon {
  width: 24px;
  height: 24px;
  background: #16a34a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.ts-disclaimer {
  text-align: center;
  font-size: 0.8rem;
  color: var(--ts-muted);
  margin-top: 1rem;
}

.ts-subscribe-success {
  text-align: center;
  padding: 3rem;
}

.ts-success-icon {
  width: 80px;
  height: 80px;
  background: #16a34a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: #fff;
}

.ts-subscribe-success h2 {
  margin-bottom: 0.5rem;
}

.ts-subscribe-success p {
  color: var(--ts-muted);
  margin-bottom: 2rem;
}

/* Contact form styles */
.ts-contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ts-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 600px) {
  .ts-form-row {
    grid-template-columns: 1fr;
  }
  .ts-button-group {
    flex-direction: column;
  }
}
