/* ============================================
   DiamorTCG — Modern Dark (Cinema) Design System
   Shared across all pages.
   ============================================ */
:root {
  --d-primary: #6366F1;
  --d-primary-2: #818CF8;
  --d-primary-dark: #4F46E5;
  --d-accent: #10B981;
  --d-accent-strong: #059669;
  --d-danger: #EF4444;
  --d-warning: #F59E0B;
  --d-bg: #07091a;
  --d-bg-2: #0b1130;
  --d-bg-3: #050615;
  --d-surface: rgba(17, 24, 70, 0.55);
  --d-surface-strong: rgba(17, 24, 70, 0.85);
  --d-surface-card: rgba(10, 20, 60, 0.78);
  --d-border: rgba(129, 140, 248, 0.22);
  --d-border-strong: rgba(129, 140, 248, 0.45);
  --d-text: #ECEEFF;
  --d-text-dim: rgba(226, 232, 255, 0.72);
  --d-text-mute: rgba(199, 210, 254, 0.55);
  --d-glow: 0 0 0 1px rgba(99, 102, 241, 0.25), 0 20px 60px -20px rgba(99, 102, 241, 0.55);
  --d-shadow-soft: 0 20px 45px rgba(6, 12, 44, 0.35);
  --d-shadow-strong: 0 30px 60px rgba(6, 12, 44, 0.6);
  --d-radius: 20px;
  --d-radius-sm: 14px;
  --d-radius-lg: 28px;
  --d-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ===== BODY / FONT ===== */
body.modern-dark {
  font-family: 'Inter', 'Open Sans', sans-serif;
  background: var(--d-bg);
  color: var(--d-text);
  -webkit-font-smoothing: antialiased;
}
body.modern-dark h1, body.modern-dark h2, body.modern-dark h3,
body.modern-dark h4, body.modern-dark h5, body.modern-dark h6 {
  font-family: 'Inter', 'Roboto', sans-serif;
  letter-spacing: -0.01em;
  color: #fff;
}

/* Body w/ atmospheric background (auth/forms pages) */
body.modern-dark.bg-atmo {
  background:
    radial-gradient(900px 500px at 15% 20%, rgba(99, 102, 241, 0.22), transparent 60%),
    radial-gradient(700px 400px at 85% 70%, rgba(16, 185, 129, 0.14), transparent 60%),
    linear-gradient(135deg, #07091a 0%, #0b1130 55%, #050615 100%);
  min-height: 100vh;
}

/* ===== HEADER ===== */
body.modern-dark #header {
  transition: background 0.4s var(--d-ease), backdrop-filter 0.4s var(--d-ease), height 0.3s var(--d-ease);
}
body.modern-dark #header.header-scrolled,
body.modern-dark #header.header-solid {
  background: rgba(7, 9, 26, 0.78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(129, 140, 248, 0.12);
}
body.modern-dark #header .logo h1 {
  font-weight: 700;
  letter-spacing: 0.5px;
  font-family: 'Inter', sans-serif;
}
body.modern-dark #header .logo h1 a span {
  background: linear-gradient(135deg, #ffffff 0%, #c7d2fe 60%, #818cf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
body.modern-dark #navbar a {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
}

/* ===== HERO COMMON ===== */
body.modern-dark .hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #c7d2fe;
  background: rgba(99, 102, 241, 0.14);
  border: 1px solid rgba(129, 140, 248, 0.32);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  margin-bottom: 22px;
}
body.modern-dark .hero-eyebrow .pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* ===== BUTTONS ===== */
body.modern-dark .btn-d-primary,
body.modern-dark #hero .btn-get-started:not(.btn-outline) {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 14px 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, #6366F1, #4F46E5);
  color: #fff;
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  border: 0;
  box-shadow: 0 10px 30px -10px rgba(99, 102, 241, 0.7), inset 0 1px 0 rgba(255,255,255,0.2);
  transition: transform 0.25s var(--d-ease), box-shadow 0.25s var(--d-ease), filter 0.25s var(--d-ease);
  text-decoration: none;
  cursor: pointer;
}
body.modern-dark .btn-d-primary:hover,
body.modern-dark #hero .btn-get-started:not(.btn-outline):hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -10px rgba(99, 102, 241, 0.85), inset 0 1px 0 rgba(255,255,255,0.25);
  filter: brightness(1.08);
  color: #fff;
}
body.modern-dark .btn-d-ghost,
body.modern-dark #hero .btn-get-started.btn-outline,
body.modern-dark .hero-actions .btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-weight: 600;
  font-size: 0.98rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.25s var(--d-ease);
  text-decoration: none;
  cursor: pointer;
}
body.modern-dark .btn-d-ghost:hover,
body.modern-dark #hero .btn-get-started.btn-outline:hover,
body.modern-dark .hero-actions .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.55);
  transform: translateY(-2px);
  text-decoration: none;
  color: #fff;
}

/* ===== CARDS & SECTIONS ===== */
body.modern-dark .d-card {
  position: relative;
  padding: clamp(28px, 4vw, 36px);
  border-radius: var(--d-radius);
  background: linear-gradient(180deg, rgba(17, 24, 70, 0.55), rgba(11, 17, 48, 0.7));
  border: 1px solid var(--d-border);
  color: var(--d-text);
  box-shadow: var(--d-shadow-soft);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.35s var(--d-ease), border-color 0.35s var(--d-ease), box-shadow 0.35s var(--d-ease);
}
body.modern-dark .d-card.hoverable:hover {
  transform: translateY(-6px);
  border-color: var(--d-border-strong);
  box-shadow: var(--d-shadow-strong), 0 0 0 1px rgba(99, 102, 241, 0.35);
}

body.modern-dark .section-eyebrow {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(99, 102, 241, 0.18);
  color: #c7d2fe;
  border: 1px solid rgba(129, 140, 248, 0.3);
  margin-bottom: 18px;
  font-weight: 600;
}
body.modern-dark .section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto clamp(48px, 6vw, 64px);
}
body.modern-dark .section-head h2 {
  font-size: clamp(2rem, 4.2vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
body.modern-dark .section-head p {
  color: var(--d-text-dim);
  font-size: 1.05rem;
  line-height: 1.65;
  margin: 0;
}

/* ===== FORM CARD (login/signup/activation light cards) ===== */
body.modern-dark .form-card {
  background: rgba(17, 24, 70, 0.7);
  border: 1px solid var(--d-border-strong);
  border-radius: var(--d-radius);
  padding: 36px 34px;
  box-shadow: 0 30px 70px rgba(6, 12, 44, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--d-text);
}
body.modern-dark .form-card h2 {
  font-size: 1.65rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #fff;
}
body.modern-dark .form-card p.lead {
  color: var(--d-text-dim);
  font-size: 0.97rem;
  margin-bottom: 28px;
}
body.modern-dark .form-card .form-label {
  font-weight: 600;
  color: #c7d2fe;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
}
body.modern-dark .form-card .form-control {
  border: 1px solid rgba(129, 140, 248, 0.25);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  background: rgba(7, 9, 26, 0.6);
  color: #fff;
  transition: border-color 0.2s var(--d-ease), box-shadow 0.2s var(--d-ease), background 0.2s var(--d-ease);
}
body.modern-dark .form-card .form-control::placeholder {
  color: rgba(199, 210, 254, 0.4);
}
body.modern-dark .form-card .form-control:focus {
  border-color: var(--d-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.18);
  background: rgba(7, 9, 26, 0.85);
  color: #fff;
}
body.modern-dark .form-card .btn-primary {
  background: linear-gradient(135deg, #6366F1, #4F46E5);
  border: 0;
  border-radius: 999px;
  padding: 0.9rem;
  font-weight: 600;
  box-shadow: 0 10px 30px -10px rgba(99, 102, 241, 0.7);
  transition: transform 0.25s var(--d-ease), filter 0.25s var(--d-ease);
}
body.modern-dark .form-card .btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  background: linear-gradient(135deg, #6366F1, #4F46E5);
}
body.modern-dark .form-card .btn-primary:disabled {
  opacity: 0.6;
  transform: none;
}
body.modern-dark .form-card a {
  color: #a5b4fc;
  font-weight: 600;
  text-decoration: none;
}
body.modern-dark .form-card a:hover { color: #c7d2fe; }
body.modern-dark .form-card .support-hint,
body.modern-dark .form-card .account-hint,
body.modern-dark .form-card .activation-hint,
body.modern-dark .form-card .back-to-login {
  font-size: 13px;
  color: var(--d-text-mute);
  text-align: center;
  margin-top: 16px;
}

/* alerts */
body.modern-dark .alert {
  border-radius: 12px;
  border: 0;
}
body.modern-dark .alert-success {
  background: rgba(16, 185, 129, 0.18);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.3);
}
body.modern-dark .alert-danger {
  background: rgba(239, 68, 68, 0.16);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.3);
}
body.modern-dark .alert-warning {
  background: rgba(245, 158, 11, 0.16);
  color: #fcd34d;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

/* ===== HERO COMPACT (auth pages) ===== */
body.modern-dark .hero-compact {
  padding: 130px 0 70px;
  position: relative;
}
body.modern-dark .hero-compact h1 {
  font-size: clamp(2rem, 4.5vw, 2.9rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 14px;
}
body.modern-dark .hero-compact .grad-text {
  background: linear-gradient(135deg, #818CF8 0%, #6366F1 50%, #10B981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
body.modern-dark .hero-compact p.lead-copy {
  font-size: 1.08rem;
  color: var(--d-text-dim);
  line-height: 1.6;
  max-width: 560px;
  margin: 0;
}
body.modern-dark .hero-compact .meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #c7d2fe;
  background: rgba(99, 102, 241, 0.14);
  border: 1px solid rgba(129, 140, 248, 0.3);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

/* ===== BREADCRUMBS (services) ===== */
body.modern-dark .breadcrumbs {
  padding: 130px 0 30px;
  background: transparent;
  border-bottom: 1px solid rgba(129, 140, 248, 0.1);
}
body.modern-dark .breadcrumbs h2 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0;
}
body.modern-dark .breadcrumbs ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 0.5rem;
  color: var(--d-text-mute);
}
body.modern-dark .breadcrumbs ol li + li::before {
  content: "/";
  margin-right: 0.5rem;
  color: var(--d-text-mute);
}
body.modern-dark .breadcrumbs ol a {
  color: #a5b4fc;
  text-decoration: none;
}
body.modern-dark .breadcrumbs ol a:hover { color: #c7d2fe; }

/* ===== FEATURE CARDS ===== */
body.modern-dark .feature-card {
  position: relative;
  padding: 32px 28px;
  border-radius: var(--d-radius);
  background: linear-gradient(180deg, rgba(17, 24, 70, 0.55), rgba(11, 17, 48, 0.75));
  border: 1px solid var(--d-border);
  transition: transform 0.4s var(--d-ease), border-color 0.4s var(--d-ease), box-shadow 0.4s var(--d-ease);
  overflow: hidden;
  height: 100%;
}
body.modern-dark .feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(450px circle at var(--mx, 50%) var(--my, 0%), rgba(99, 102, 241, 0.18), transparent 40%);
  opacity: 0;
  transition: opacity 0.4s var(--d-ease);
  pointer-events: none;
}
body.modern-dark .feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--d-border-strong);
  box-shadow: var(--d-shadow-strong);
}
body.modern-dark .feature-card:hover::before { opacity: 1; }
body.modern-dark .feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.22), rgba(99, 102, 241, 0.06));
  border: 1px solid rgba(129, 140, 248, 0.3);
  color: #a5b4fc;
  position: relative;
  z-index: 1;
}
body.modern-dark .feature-icon.green {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.22), rgba(16, 185, 129, 0.05));
  border-color: rgba(16, 185, 129, 0.35);
  color: #34d399;
}
body.modern-dark .feature-icon.cyan {
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.22), rgba(34, 211, 238, 0.05));
  border-color: rgba(34, 211, 238, 0.35);
  color: #67e8f9;
}
body.modern-dark .feature-icon.pink {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.22), rgba(236, 72, 153, 0.05));
  border-color: rgba(236, 72, 153, 0.35);
  color: #f9a8d4;
}
body.modern-dark .feature-icon svg { width: 26px; height: 26px; }
body.modern-dark .feature-card h3,
body.modern-dark .feature-card .title {
  font-size: 1.18rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
  position: relative;
  z-index: 1;
}
body.modern-dark .feature-card h3 a,
body.modern-dark .feature-card .title a {
  color: #fff;
  text-decoration: none;
}
body.modern-dark .feature-card p,
body.modern-dark .feature-card .description {
  color: var(--d-text-dim);
  font-size: 0.96rem;
  line-height: 1.6;
  margin: 0;
  position: relative;
  z-index: 1;
}

/* ===== PRICING ===== */
body.modern-dark .pricing-card {
  position: relative;
  padding: 36px 32px;
  border-radius: var(--d-radius);
  background: linear-gradient(180deg, rgba(17, 24, 70, 0.62), rgba(11, 17, 48, 0.85));
  border: 1px solid var(--d-border);
  transition: transform 0.35s var(--d-ease), border-color 0.35s var(--d-ease), box-shadow 0.35s var(--d-ease);
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
body.modern-dark .pricing-card:hover {
  transform: translateY(-8px);
  border-color: var(--d-border-strong);
  box-shadow: var(--d-shadow-strong);
}
body.modern-dark .pricing-card.featured {
  border-color: rgba(99, 102, 241, 0.55);
  background:
    radial-gradient(500px circle at 50% -10%, rgba(99, 102, 241, 0.28), transparent 60%),
    linear-gradient(180deg, rgba(17, 24, 70, 0.7), rgba(11, 17, 48, 0.92));
  box-shadow: 0 30px 80px -20px rgba(99, 102, 241, 0.45);
}
body.modern-dark .pricing-card .pricing-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  background: linear-gradient(135deg, #6366F1, #4F46E5);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  box-shadow: 0 8px 20px -6px rgba(99, 102, 241, 0.7);
}
body.modern-dark .pricing-card .plan-name {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #a5b4fc;
  margin-bottom: 18px;
}
body.modern-dark .pricing-card .plan-price {
  font-size: 2.6rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  margin: 0;
}
body.modern-dark .pricing-card .plan-tagline {
  color: var(--d-text-mute);
  margin: 6px 0 0;
  font-size: 0.95rem;
}
body.modern-dark .pricing-card hr {
  border-color: rgba(129, 140, 248, 0.18);
  opacity: 1;
  margin: 22px 0;
}
body.modern-dark .pricing-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
}
body.modern-dark .pricing-card ul li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 0.7rem;
  color: var(--d-text-dim);
  font-size: 0.96rem;
  line-height: 1.5;
}
body.modern-dark .pricing-card ul li svg {
  flex-shrink: 0;
  color: #34d399;
  margin-top: 2px;
}
body.modern-dark .pricing-card .btn-buy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border-radius: 999px;
  padding: 0.85rem 1.6rem;
  font-weight: 600;
  background: linear-gradient(135deg, #6366F1, #4F46E5);
  color: #fff;
  border: 0;
  transition: transform 0.25s var(--d-ease), filter 0.25s var(--d-ease), box-shadow 0.25s var(--d-ease);
  box-shadow: 0 10px 28px -10px rgba(99, 102, 241, 0.7);
  cursor: pointer;
  text-decoration: none;
}
body.modern-dark .pricing-card .btn-buy:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  color: #fff;
}

/* ===== FAQ accordion (Bootstrap override) ===== */
body.modern-dark .accordion {
  --bs-accordion-bg: transparent;
  --bs-accordion-border-color: var(--d-border);
  --bs-accordion-color: var(--d-text);
  --bs-accordion-btn-color: #fff;
  --bs-accordion-btn-bg: rgba(17, 24, 70, 0.5);
  --bs-accordion-active-bg: rgba(17, 24, 70, 0.75);
  --bs-accordion-active-color: #fff;
  --bs-accordion-btn-focus-box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.18);
  --bs-accordion-border-radius: var(--d-radius-sm);
  --bs-accordion-inner-border-radius: var(--d-radius-sm);
}
body.modern-dark .accordion-item {
  margin-bottom: 12px;
  overflow: hidden;
}
body.modern-dark .accordion-button {
  font-weight: 600;
  color: #fff;
  font-size: 1rem;
  padding: 1.1rem 1.3rem;
}
body.modern-dark .accordion-button:not(.collapsed) {
  color: #fff;
  box-shadow: none;
}
body.modern-dark .accordion-button::after {
  filter: invert(70%) sepia(20%) saturate(800%) hue-rotate(220deg);
}
body.modern-dark .accordion-body {
  color: var(--d-text-dim);
  background: rgba(17, 24, 70, 0.55);
  font-size: 0.97rem;
  line-height: 1.65;
}

/* native <details> faq */
body.modern-dark .faq-item {
  background: rgba(17, 24, 70, 0.45);
  border: 1px solid var(--d-border);
  border-radius: var(--d-radius-sm);
  overflow: hidden;
  transition: border-color 0.3s var(--d-ease), background 0.3s var(--d-ease);
  margin-bottom: 12px;
}
body.modern-dark .faq-item[open] {
  border-color: var(--d-border-strong);
  background: rgba(17, 24, 70, 0.7);
}
body.modern-dark .faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-weight: 600;
  color: #fff;
  font-size: 1.02rem;
}
body.modern-dark .faq-item summary::-webkit-details-marker { display: none; }
body.modern-dark .faq-item summary::after {
  content: "";
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a5b4fc' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  transition: transform 0.3s var(--d-ease);
}
body.modern-dark .faq-item[open] summary::after { transform: rotate(180deg); }
body.modern-dark .faq-item .faq-body {
  padding: 0 24px 22px;
  color: var(--d-text-dim);
  line-height: 1.65;
  font-size: 0.97rem;
}

/* ===== CTA card ===== */
body.modern-dark .cta-card {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 70px) clamp(28px, 5vw, 60px);
  border-radius: var(--d-radius-lg);
  background:
    radial-gradient(600px circle at 80% 0%, rgba(99, 102, 241, 0.4), transparent 60%),
    radial-gradient(500px circle at 0% 100%, rgba(16, 185, 129, 0.25), transparent 60%),
    linear-gradient(135deg, #1a1d6e, #0f1340);
  border: 1px solid rgba(129, 140, 248, 0.3);
  box-shadow: 0 40px 80px -30px rgba(99, 102, 241, 0.5);
  text-align: center;
  overflow: hidden;
}
body.modern-dark .cta-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(circle at center, black 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at center, black 0%, transparent 75%);
  pointer-events: none;
}
body.modern-dark .cta-card > * { position: relative; z-index: 1; }
body.modern-dark .cta-card h2 {
  font-size: clamp(2rem, 4.5vw, 2.9rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #fff;
  margin-bottom: 14px;
}
body.modern-dark .cta-card p {
  color: rgba(226, 232, 255, 0.82);
  font-size: 1.08rem;
  max-width: 580px;
  margin: 0 auto 32px;
  line-height: 1.6;
}
body.modern-dark .cta-card .actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== TCG image cards (services details) ===== */
body.modern-dark .tcg-card {
  background: rgba(17, 24, 70, 0.55);
  border: 1px solid var(--d-border);
  border-radius: var(--d-radius);
  overflow: hidden;
  transition: transform 0.35s var(--d-ease), border-color 0.35s var(--d-ease), box-shadow 0.35s var(--d-ease);
  height: 100%;
}
body.modern-dark .tcg-card:hover {
  transform: translateY(-6px);
  border-color: var(--d-border-strong);
  box-shadow: var(--d-shadow-strong);
}
body.modern-dark .tcg-card .card-img {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #050615;
}
body.modern-dark .tcg-card .card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--d-ease);
}
body.modern-dark .tcg-card:hover .card-img img { transform: scale(1.04); }
body.modern-dark .tcg-card .card-body { padding: 22px 24px; }
body.modern-dark .tcg-card .card-title {
  margin: 0 0 8px;
  font-size: 1.18rem;
  font-weight: 700;
  color: #fff;
}
body.modern-dark .tcg-card .card-title a { color: #fff; text-decoration: none; }
body.modern-dark .tcg-card .card-text {
  color: var(--d-text-dim);
  font-size: 0.96rem;
  line-height: 1.6;
  margin: 0;
}

/* ===== ACTIVATION STEPS ===== */
body.modern-dark .activation-steps {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
}
body.modern-dark .activation-steps li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(129, 140, 248, 0.14);
}
body.modern-dark .activation-steps li:last-child { border-bottom: 0; }
body.modern-dark .activation-steps li i {
  color: #a5b4fc;
  font-size: 1.25rem;
  margin-top: 2px;
  flex-shrink: 0;
}
body.modern-dark .activation-steps strong {
  display: block;
  font-size: 0.98rem;
  margin-bottom: 4px;
  color: #fff;
  font-weight: 600;
}
body.modern-dark .activation-steps li > div {
  color: var(--d-text-dim);
  font-size: 0.94rem;
  line-height: 1.55;
}

/* ===== STATUS RESULT (cancel/success) ===== */
body.modern-dark .status-card {
  max-width: 600px;
  margin: 0 auto;
  padding: 56px 36px;
  text-align: center;
  background: linear-gradient(180deg, rgba(17, 24, 70, 0.7), rgba(11, 17, 48, 0.9));
  border: 1px solid var(--d-border-strong);
  border-radius: var(--d-radius-lg);
  box-shadow: 0 40px 80px -25px rgba(6, 12, 44, 0.7);
}
body.modern-dark .status-icon {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 3rem;
}
body.modern-dark .status-icon.success {
  background: rgba(16, 185, 129, 0.16);
  color: #34d399;
  box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.35), 0 20px 40px -10px rgba(16, 185, 129, 0.5);
}
body.modern-dark .status-icon.danger {
  background: rgba(239, 68, 68, 0.16);
  color: #fca5a5;
  box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.35), 0 20px 40px -10px rgba(239, 68, 68, 0.4);
}
body.modern-dark .status-card h1 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
body.modern-dark .status-card p {
  color: var(--d-text-dim);
  font-size: 1.02rem;
  line-height: 1.6;
  margin-bottom: 30px;
}

/* ===== FOOTER ===== */
body.modern-dark #footer {
  background: #050615;
  color: var(--d-text-dim);
  border-top: 1px solid rgba(129, 140, 248, 0.1);
}
body.modern-dark #footer .footer-top { background: transparent; padding: 60px 0 30px; }
body.modern-dark #footer h4 {
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
  margin-bottom: 18px;
}
body.modern-dark #footer .footer-links ul li a,
body.modern-dark #footer .footer-contact a,
body.modern-dark #footer .footer-contact strong {
  color: var(--d-text-dim);
  transition: color 0.2s var(--d-ease);
}
body.modern-dark #footer .footer-contact strong { color: #fff; }
body.modern-dark #footer .footer-links ul li a:hover,
body.modern-dark #footer .footer-contact a:hover { color: #a5b4fc; }
body.modern-dark #footer .footer-links ul li i { color: var(--d-primary); }

/* ===== back to top ===== */
body.modern-dark .back-to-top {
  background: linear-gradient(135deg, #6366F1, #4F46E5);
  border-radius: 999px;
  box-shadow: 0 10px 25px -8px rgba(99, 102, 241, 0.7);
}
body.modern-dark .back-to-top:hover {
  background: linear-gradient(135deg, #818CF8, #6366F1);
  filter: brightness(1.08);
}

/* ===== process step (for index how-it-works) ===== */
body.modern-dark .process-step .step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, #6366F1, #4F46E5);
  font-weight: 800;
  font-size: 1.15rem;
  margin-bottom: 20px;
  color: #fff;
  box-shadow: 0 10px 25px -8px rgba(99, 102, 241, 0.7);
}
body.modern-dark .process-step h3 { font-size: 1.22rem; font-weight: 700; margin-bottom: 12px; color: #fff; }
body.modern-dark .process-step p { font-size: 0.97rem; line-height: 1.6; margin-bottom: 20px; color: var(--d-text-dim); }
body.modern-dark .process-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  color: #a5b4fc;
  text-decoration: none;
  transition: color 0.2s var(--d-ease), gap 0.2s var(--d-ease);
}
body.modern-dark .process-link:hover { color: #c7d2fe; gap: 0.7rem; text-decoration: none; }

/* ===== Reveal-on-scroll ===== */
body.modern-dark .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--d-ease), transform 0.7s var(--d-ease);
}
body.modern-dark .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== i18n: hide non-active language ===== */
html[lang="en"] [data-lang="fr"],
html[lang="fr"] [data-lang="en"] { display: none !important; }

/* Flag chip in nav stays consistent */
body.modern-dark .language-switcher .lang-flag {
  border-radius: 3px;
  vertical-align: middle;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  body.modern-dark .reveal { opacity: 1; transform: none; transition: none; }
  body.modern-dark * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* Mobile tweaks */
@media (max-width: 767.98px) {
  body.modern-dark .form-card { padding: 28px 22px; }
  body.modern-dark .status-card { padding: 40px 24px; }
}
