/* Michael Sloggett — Design System */
:root {
  --radius: 0.75rem;
  --background: oklch(7% 0.005 260);
  --foreground: oklch(95% 0.005 260);
  --bg-dark: oklch(7% 0.005 260);
  --bg-nav: oklch(7% 0.005 260 / 0.8);
  --bg-ticker: oklch(5% 0.005 260);
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-light: rgba(255, 255, 255, 0.08);
  --text-muted: rgba(255, 255, 255, 0.4);
  --text-dim: rgba(255, 255, 255, 0.3);
  --primary: #941100;
  --primary-hover: #7a0e00;
  --primary-light: #c41a08;
  --primary-rgb: 148, 17, 0;
  --cyan: var(--primary);
  --telegram: #2AABEE;
  --telegram-hover: #229ED9;
  --gold: #c9a84c;
  --green: #22c55e;
  --red: #ef4444;
  --star: #f5c518;
  --container: min(1120px, 100% - 3rem);
  --font: 'Inter', system-ui, sans-serif;
  --font-display: 'Outfit', 'Inter', sans-serif;
  --ease-out: cubic-bezier(0.25, 0.1, 0.25, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }

.container {
  width: var(--container);
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* ─── Animations ─── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-on-scroll.from-left {
  transform: translateX(-40px);
}
.animate-on-scroll.from-left.is-visible {
  transform: translateX(0);
}

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }
.stagger-6 { transition-delay: 0.6s; }

/* Hero load animations */
.hero-anim {
  opacity: 0;
  transform: translateY(16px);
  animation: fadeInUp 0.55s var(--ease-out) forwards;
}
.hero-anim.delay-1 { animation-delay: 0.08s; }
.hero-anim.delay-2 { animation-delay: 0.16s; }
.hero-anim.delay-3 { animation-delay: 0.24s; }
.hero-anim.delay-4 { animation-delay: 0.32s; }
.hero-anim.delay-5 { animation-delay: 0.4s; }

.scroll-indicator {
  opacity: 0;
  animation: fadeInUp 0.6s ease 0.55s forwards;
}
.scroll-indicator svg {
  animation: bounce 2s ease-in-out infinite;
}

/* ─── BTC Ticker Bar ─── */
.ticker-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 55;
  height: 2rem;
  background: var(--bg-ticker);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-family: 'DM Mono', monospace;
}

.ticker-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s infinite;
  margin-right: 0.5rem;
}

.ticker-label { color: rgba(255,255,255,0.6); margin-right: 0.35rem; }
.ticker-price { color: #fff; font-weight: 500; margin-right: 0.35rem; }
.ticker-change.up { color: var(--green); }
.ticker-change.down { color: var(--red); }

/* ─── Navbar ─── */
.navbar {
  position: fixed;
  top: 2rem;
  left: 0;
  right: 0;
  z-index: 50;
  transition: background 0.5s, backdrop-filter 0.5s, border-color 0.5s;
  animation: fadeInDown 0.6s var(--ease-out) forwards;
}

.navbar.scrolled {
  background: var(--bg-nav);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border-subtle);
}

.navbar-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

@media (min-width: 768px) {
  .navbar-inner { height: 4.5rem; }
}

.logo {
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #fff;
  white-space: nowrap;
}

@media (min-width: 768px) {
  .logo { font-size: 1.125rem; }
}

.nav-links {
  display: none;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  align-items: center;
  gap: clamp(1rem, 2vw, 2rem);
  white-space: nowrap;
}

@media (min-width: 1024px) {
  .nav-links { display: flex; }
}

.nav-links a {
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.1;
  text-align: center;
  color: rgba(255,255,255,0.55);
  transition: color 0.3s;
}

.nav-links a:hover { color: #fff; }

.nav-link-multiline {
  display: inline-block;
}

.nav-actions {
  display: none;
  align-items: center;
  gap: 0.875rem;
  flex-shrink: 0;
  margin-left: auto;
  position: relative;
  z-index: 2;
}

@media (min-width: 1024px) {
  .nav-actions { display: flex; }

  [dir="ltr"] .nav-links {
    width: 100%;
    padding-inline: clamp(11rem, 22vw, 18rem);
    box-sizing: border-box;
  }

  [dir="ltr"] .nav-actions {
    padding-left: 0.75rem;
    gap: 1rem;
  }

  [dir="ltr"] .logo {
    margin-right: 0.5rem;
  }
}

.lang-dropdown {
  position: relative;
  z-index: 60;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
}

.lang-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  padding: 0.45rem 0.15rem;
  font-family: inherit;
  white-space: nowrap;
  transition: color 0.2s;
}

.lang-dropdown-trigger:hover,
.lang-dropdown.open .lang-dropdown-trigger,
.lang-dropdown:focus-within .lang-dropdown-trigger {
  color: #fff;
}

.lang-dropdown-chevron {
  opacity: 0.65;
  transition: transform 0.2s, opacity 0.2s;
  flex-shrink: 0;
}

.lang-dropdown:hover .lang-dropdown-chevron,
.lang-dropdown.open .lang-dropdown-chevron,
.lang-dropdown:focus-within .lang-dropdown-chevron {
  opacity: 1;
  transform: rotate(180deg);
}

.lang-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: auto;
  min-width: 100%;
  margin: 0;
  padding: 0.2rem 0 0;
  list-style: none;
  background: transparent;
  border: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  pointer-events: none;
}

.lang-dropdown-menu::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -0.4rem;
  height: 0.4rem;
}

.lang-dropdown:hover .lang-dropdown-menu,
.lang-dropdown.open .lang-dropdown-menu,
.lang-dropdown:focus-within .lang-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.lang-dropdown-menu li {
  margin: 0;
  padding: 0;
}

.lang-dropdown-menu a {
  display: block;
  padding: 0.35rem 0.15rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.8125rem;
  font-weight: 500;
  white-space: nowrap;
  background: transparent;
  transition: color 0.2s;
}

.lang-dropdown-menu a:hover {
  color: #fff;
}

.lang-dropdown-mobile {
  margin-top: 0.25rem;
}

.icon-btn {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  transition: all 0.3s;
  flex-shrink: 0;
}
.icon-btn:hover {
  color: #fff;
  border-color: rgba(255,255,255,0.3);
}
.icon-btn.telegram {
  background: var(--telegram);
  border-color: var(--telegram);
  color: #fff;
}
.icon-btn.telegram:hover {
  background: var(--telegram-hover);
  border-color: var(--telegram-hover);
  color: #fff;
}

.btn-bitget {
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0 0.25rem;
  color: var(--primary-light);
  white-space: nowrap;
  transition: color 0.3s;
}
.btn-bitget:hover {
  color: var(--primary);
}

.btn-telegram {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.625rem 1.125rem;
  border-radius: 9999px;
  background: #fff;
  color: #000;
  white-space: nowrap;
  transition: background 0.3s, color 0.3s;
}
.btn-telegram:hover {
  background: var(--telegram);
  color: #fff;
}
.btn-telegram:hover svg {
  color: #fff;
}

.menu-toggle {
  display: flex;
  margin-left: auto;
  color: rgba(255,255,255,0.7);
  transition: color 0.3s;
}
.menu-toggle:hover { color: #fff; }

@media (min-width: 1024px) {
  .menu-toggle { display: none; }
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: oklch(7% 0.005 260 / 0.97);
  backdrop-filter: blur(48px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 5.5rem 1.5rem 2rem;
  gap: 2rem;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  width: 100%;
  max-width: 20rem;
}

.mobile-menu-link {
  display: block;
  width: 100%;
  padding: 0.65rem 0;
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.25;
  text-align: center;
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.3s, opacity 0.4s, transform 0.4s;
  opacity: 0;
  transform: translateY(16px);
}

.mobile-menu.open .mobile-menu-link {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu-link:hover {
  color: #fff;
}

.mobile-menu-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  max-width: 20rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-menu-btn,
.mobile-menu-actions .btn-register,
.mobile-menu-actions .btn-telegram {
  width: 100%;
  justify-content: center;
  font-size: 0.9375rem;
  opacity: 0;
  transform: translateY(16px);
  transition: color 0.3s, background 0.3s, opacity 0.4s, transform 0.4s;
}

.mobile-menu.open .mobile-menu-btn,
.mobile-menu.open .mobile-menu-actions .btn-register,
.mobile-menu.open .mobile-menu-actions .btn-telegram,
.mobile-menu.open .mobile-menu-actions .lang-dropdown {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu-actions .lang-dropdown {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s, transform 0.4s;
}

.mobile-menu-actions .lang-dropdown-trigger {
  font-size: 0.9375rem;
  padding: 0.5rem 0.25rem;
}

[dir="rtl"] .mobile-menu-links,
[dir="rtl"] .mobile-menu-link {
  text-align: center;
}

[dir="rtl"] .mobile-menu-actions {
  flex-direction: column;
}

/* ─── Primary Nav ─── */
.primary-nav {
  margin-top: 6rem;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: oklch(6% 0.005 260 / 0.6);
}

.primary-nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem 2.5rem;
  padding: 1rem 1.5rem;
}

.primary-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  transition: color 0.3s;
}
.primary-nav a:hover { color: #fff; }

@media (min-width: 768px) {
  .primary-nav ul { padding: 1.25rem 1.5rem; }
  .primary-nav a { font-size: 1rem; }
}

/* ─── Hero ─── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: oklch(7% 0.005 260);
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transform: scale(1.05);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.hero-bg img.is-loaded {
  opacity: 1;
}

.hero-overlay-1 {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, oklch(7% 0.005 260 / 0.5), oklch(7% 0.005 260 / 0.3), oklch(7% 0.005 260 / 0.85));
}

.hero-overlay-2 {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, oklch(7% 0.005 260 / 0.4), transparent);
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 64rem;
  padding: 0 1.5rem;
}

.hero-eyebrow {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .hero-eyebrow { font-size: 1rem; }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: #fff;
}

.hero-title strong {
  font-weight: 600;
}

.hero-subtitle {
  margin-top: 2rem;
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  font-weight: 300;
  color: rgba(255,255,255,0.5);
  max-width: 42rem;
  margin-inline: auto;
  line-height: 1.7;
}

.hero-cta {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 640px) {
  .hero-cta { flex-direction: row; justify-content: center; }
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.875rem 2rem;
  border-radius: 9999px;
  background: var(--primary);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: 0 10px 25px rgba(var(--primary-rgb), 0.35);
  transition: all 0.3s;
}
.btn-primary:hover {
  background: var(--primary-hover);
  transform: scale(1.02);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  padding: 0.875rem 2rem;
  border-radius: 9999px;
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.7);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.3s;
}
.btn-outline:hover {
  border-color: rgba(255,255,255,0.4);
  color: #fff;
}

.hero-note {
  margin-top: 1.25rem;
  font-size: 0.75rem;
  font-weight: 300;
  color: rgba(255,255,255,0.25);
}

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.3);
}

/* ─── Section Common ─── */
section { padding: 8rem 0; }

@media (min-width: 768px) {
  section { padding: 11rem 0; }
}

.section-label {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(var(--primary-rgb), 0.75);
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.75rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: #fff;
}

.section-title strong {
  font-weight: 600;
}

.section-desc {
  font-size: 1.125rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ─── About ─── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .about-grid { grid-template-columns: 1fr 1fr; gap: 6rem; }
}

.about-image-wrap {
  position: relative;
  display: flex;
  justify-content: center;
}

.about-image {
  width: 20rem;
  height: 20rem;
  border-radius: 50%;
  overflow: hidden;
}

@media (min-width: 768px) {
  .about-image { width: 26.25rem; height: 26.25rem; }
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-glow {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(var(--primary-rgb), 0.12);
  filter: blur(48px);
  z-index: -1;
  transform: scale(1.1);
}

.about-text p {
  font-size: 1rem;
  font-weight: 300;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

@media (min-width: 768px) {
  .about-text p { font-size: 1.125rem; }
}

.about-stats {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.about-stat-value {
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.02em;
}

@media (min-width: 768px) {
  .about-stat-value { font-size: 1.875rem; }
}

.about-stat-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255,255,255,0.3);
  margin-top: 0.25rem;
}

@media (min-width: 768px) {
  .about-stat-label { font-size: 0.875rem; }
}

/* Testimonials */
.testimonials-header {
  text-align: center;
  margin-bottom: 4rem;
  margin-top: 7rem;
}

@media (min-width: 768px) {
  .testimonials-header { margin-top: 9rem; }
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .testimonials-grid { grid-template-columns: repeat(3, 1fr); }
}

.testimonial-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 1rem;
  padding: 1.5rem 1.75rem;
  transition: all 0.5s;
}

.testimonial-card:hover {
  border-color: rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
}

.stars {
  display: flex;
  gap: 2px;
  margin-bottom: 1rem;
  color: var(--star);
}

.testimonial-quote {
  font-size: 0.875rem;
  font-weight: 300;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  min-height: 60px;
  margin-bottom: 1.5rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

.testimonial-avatar {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(255,255,255,0.05);
  flex-shrink: 0;
}

.testimonial-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
}

.testimonial-role {
  font-size: 0.75rem;
  font-weight: 300;
  color: rgba(255,255,255,0.3);
}

/* ─── MTC Education ─── */
.mtc-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 5rem;
}

@media (min-width: 768px) {
  .mtc-stats { grid-template-columns: repeat(4, 1fr); }
}

.mtc-stat-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
}

.mtc-stat-icon {
  width: 1.5rem;
  height: 1.5rem;
  margin: 0 auto 1rem;
  color: rgba(255,255,255,0.2);
}

.mtc-stat-value {
  font-size: 1.875rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.02em;
}

.mtc-stat-label {
  font-size: 0.875rem;
  font-weight: 300;
  color: rgba(255,255,255,0.3);
  margin-top: 0.5rem;
}

.mtc-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 4rem;
}

@media (min-width: 768px) {
  .mtc-content { grid-template-columns: 1fr 1fr; }
}

.mtc-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .mtc-content h3 { font-size: 1.875rem; }
}

.mtc-content p {
  font-size: 1rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.mtc-features {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 1rem;
  padding: 2.5rem;
}

.mtc-features-label {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: 1.5rem;
}

.mtc-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  font-weight: 300;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
}

.mtc-features li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  margin-top: 0.5rem;
  flex-shrink: 0;
}

.mtc-cta { text-align: center; }

.btn-white {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2.5rem;
  border-radius: 9999px;
  background: #fff;
  color: #000;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.3s;
}
.btn-white:hover {
  background: rgba(255,255,255,0.9);
  transform: scale(1.02);
}

.mtc-cta-note {
  font-size: 0.75rem;
  font-weight: 300;
  color: rgba(255,255,255,0.2);
  margin-top: 1rem;
}

/* ─── Bitget ─── */
.bitget-section {
  position: relative;
  overflow: hidden;
}

.bitget-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: rgba(var(--primary-rgb), 0.08);
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
}

.bitget-header {
  text-align: center;
  max-width: 48rem;
  margin: 0 auto 5rem;
}

.bitget-badge {
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-light);
  border-radius: 1rem;
  padding: 1.5rem 2.5rem;
  margin-bottom: 4rem;
}

.bitget-badge img {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.75rem;
  object-fit: cover;
}

.bitget-badge-title {
  font-weight: 600;
  font-size: 1.125rem;
  color: #fff;
}

.bitget-badge-sub {
  font-size: 0.875rem;
  font-weight: 300;
  color: rgba(255,255,255,0.3);
}

.bitget-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 56rem;
  margin: 0 auto 4rem;
}

@media (min-width: 768px) {
  .bitget-features { grid-template-columns: repeat(2, 1fr); }
}

.bitget-feature {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 1rem;
  padding: 2rem;
  transition: all 0.3s;
}

.bitget-feature:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.1);
}

.bitget-feature-icon {
  width: 1.75rem;
  height: 1.75rem;
  color: rgba(var(--primary-rgb), 0.85);
  margin-bottom: 1.25rem;
}

.bitget-feature h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.75rem;
}

.bitget-feature p {
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.6;
}

.bitget-cta { text-align: center; }

/* ─── Articles ─── */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 4rem;
}

.filter-tab {
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.4);
  transition: all 0.3s;
}

.filter-tab:hover {
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.6);
}

.filter-tab.active {
  background: var(--primary);
  color: #fff;
}

.articles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .articles-grid { grid-template-columns: repeat(3, 1fr); }
}

.article-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 1rem;
  overflow: hidden;
  transition: all 0.5s;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  border-color: rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
}

.article-card.hidden { display: none; }

.article-image {
  aspect-ratio: 4/3;
  overflow: hidden;
}

.article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s;
}

.article-card:hover .article-image img {
  transform: scale(1.05);
}

.article-body {
  padding: 1.5rem 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.2);
}

.article-meta .tag {
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
}

.article-body h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.4;
  margin-bottom: 0.75rem;
  transition: color 0.3s;
}

@media (min-width: 768px) {
  .article-body h3 { font-size: 1.25rem; }
}

.article-card:hover h3 { color: rgba(255,255,255,0.9); }

.article-excerpt {
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.5);
  transition: color 0.3s;
}

.article-card:hover .article-link { color: #fff; }

.view-all-wrap { text-align: center; margin-top: 3rem; }

.btn-view-all {
  padding: 0.75rem 2rem;
  border-radius: 9999px;
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.6);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: all 0.3s;
}

.btn-view-all:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}

/* ─── Events ─── */
.event-hero {
  position: relative;
  border-radius: 1.5rem;
  overflow: hidden;
  min-height: 400px;
}

.event-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  transition: transform 0.7s;
}

.event-hero:hover img { transform: scale(1.05); }

.event-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, oklch(7% 0.005 260 / 0.9), oklch(7% 0.005 260 / 0.7), oklch(7% 0.005 260 / 0.3));
}

.event-hero-content {
  position: relative;
  z-index: 1;
  padding: 2.5rem;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

@media (min-width: 768px) {
  .event-hero-content { padding: 4rem 5rem; }
}

.event-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.1);
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  margin-bottom: 1.5rem;
  width: fit-content;
}

.event-hero h3 {
  font-size: clamp(1.875rem, 4vw, 3rem);
  font-weight: 600;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.event-hero p {
  font-size: 1rem;
  font-weight: 300;
  color: rgba(255,255,255,0.5);
  max-width: 28rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2rem;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.4);
}

.event-meta span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.event-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .event-cards { grid-template-columns: repeat(2, 1fr); }
}

.event-card {
  border-radius: 1rem;
  overflow: hidden;
  min-height: 280px;
  position: relative;
}

.event-card-solid {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-subtle);
  padding: 2rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.event-card-solid h4 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.event-card-solid p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 20rem;
}

.event-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.5);
  margin-top: 1.5rem;
  transition: color 0.3s;
}
.event-card-link:hover { color: #fff; }

.event-card-image img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  transition: transform 0.7s;
}

.event-card-image:hover img { transform: scale(1.05); }

.event-card-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, oklch(7% 0.005 260 / 0.9), oklch(7% 0.005 260 / 0.3), transparent);
}

.event-card-image-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem 2.5rem;
}

/* ─── Philosophy ─── */
.philosophy-quote {
  text-align: center;
  max-width: 56rem;
  margin: 0 auto 6rem;
}

.philosophy-quote blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.875rem, 4vw, 3rem);
  font-weight: 300;
  color: #fff;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.philosophy-quote cite {
  display: block;
  margin-top: 2rem;
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255,255,255,0.3);
  font-style: normal;
}

.philosophy-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--border-subtle);
  border-radius: 1rem;
  overflow: hidden;
}

@media (min-width: 768px) {
  .philosophy-grid { grid-template-columns: repeat(2, 1fr); }
}

.philosophy-item {
  background: var(--bg-dark);
  padding: 2.5rem 3rem;
  transition: background 0.5s;
}

.philosophy-item:hover {
  background: rgba(255,255,255,0.03);
}

.philosophy-item svg {
  width: 1.75rem;
  height: 1.75rem;
  color: rgba(255,255,255,0.2);
  margin-bottom: 1.5rem;
  transition: color 0.5s;
}

.philosophy-item:hover svg { color: rgba(255,255,255,0.4); }

.philosophy-item h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.75rem;
}

.philosophy-item p {
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ─── Newsletter ─── */
.newsletter {
  position: relative;
  overflow: hidden;
  padding: 8rem 1.5rem;
}

.newsletter-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent, oklch(12% 0.005 260), transparent);
}

.newsletter-inner {
  position: relative;
  z-index: 1;
  max-width: 42rem;
  margin: 0 auto;
  text-align: center;
}

.newsletter-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05);
  margin-bottom: 2rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}

.newsletter-form {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 28rem;
  margin-inline: auto;
}

@media (min-width: 640px) {
  .newsletter-form { flex-direction: row; }
}

.newsletter-input {
  flex: 1;
  width: 100%;
  padding: 0.875rem 1.25rem;
  border-radius: 9999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  font-size: 0.875rem;
  outline: none;
  transition: all 0.3s;
}

.newsletter-input::placeholder { color: rgba(255,255,255,0.25); }

.newsletter-input:focus {
  border-color: rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.07);
}

.newsletter-submit {
  padding: 0.875rem 2rem;
  border-radius: 9999px;
  background: #fff;
  color: #000;
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.newsletter-submit:hover:not(:disabled) {
  background: rgba(255,255,255,0.9);
  transform: scale(1.02);
}

.newsletter-submit:disabled { opacity: 0.5; }

.newsletter-submit .spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(0,0,0,0.2);
  border-top-color: #000;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.newsletter-message {
  margin-top: 1rem;
  font-size: 0.875rem;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.newsletter-message.show { display: flex; }
.newsletter-message.success { color: #22c55e; }
.newsletter-message.error { color: var(--red); }

.newsletter-note {
  margin-top: 1.5rem;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.2);
}

/* ─── CTA ─── */
.cta-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 1.5rem;
  overflow: hidden;
}

.cta-grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
}

@media (min-width: 1024px) {
  .cta-grid { grid-template-columns: 1fr 1fr; }
}

.cta-content {
  padding: 2.5rem;
}

@media (min-width: 768px) {
  .cta-content { padding: 4rem 5rem; }
}

.cta-stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.cta-stat-value {
  font-size: 1.125rem;
  font-weight: 600;
  color: #fff;
}

.cta-stat-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
}

.cta-divider {
  width: 1px;
  height: 2rem;
  background: rgba(255,255,255,0.1);
}

.cta-image {
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2.5rem;
}

@media (min-width: 1024px) {
  .cta-image { display: flex; }
}

.cta-image img {
  width: 18rem;
  height: 18rem;
  border-radius: 50%;
  object-fit: cover;
  object-position: 75% 25%;
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2.5rem;
}

@media (min-width: 640px) {
  .cta-buttons { flex-direction: row; }
}

.btn-cyan-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: 9999px;
  border: 1px solid rgba(var(--primary-rgb), 0.35);
  color: var(--primary-light);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.3s;
}

.btn-cyan-outline:hover {
  background: rgba(var(--primary-rgb), 0.12);
  border-color: rgba(var(--primary-rgb), 0.55);
}

/* ─── Footer ─── */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 3rem 0;
}

@media (min-width: 768px) {
  .footer { padding: 4rem 0; }
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: repeat(3, 1fr); gap: 3rem; }
}

.footer-brand a {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  transition: color 0.3s;
}
.footer-brand a:hover { color: rgba(255,255,255,0.8); }

.footer-tagline {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
  margin-top: 0.25rem;
}

.footer-desc {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.2);
  margin-top: 0.75rem;
  line-height: 1.6;
}

.footer-heading {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
  margin-bottom: 0.75rem;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.3);
  transition: color 0.3s;
}
.footer-links a:hover { color: rgba(255,255,255,0.6); }

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-social a {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.3);
  transition: all 0.3s;
}

.footer-social a:hover {
  color: rgba(255,255,255,0.6);
  border-color: rgba(255,255,255,0.15);
}

.footer-social svg { width: 15px; height: 15px; }

.footer-copy {
  margin-top: 2rem;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.2);
  text-align: center;
}

@media (min-width: 768px) {
  .footer-copy { text-align: left; }
}

.footer-legal {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.04);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 640px) {
  .footer-legal { flex-direction: row; align-items: flex-start; gap: 2rem; }
}

.footer-entity p {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  line-height: 1.6;
}

.footer-disclaimer {
  font-size: 0.6875rem;
  color: rgba(255,255,255,0.15);
  line-height: 1.6;
  max-width: 48rem;
}

@media (min-width: 640px) {
  .footer-disclaimer {
    border-left: 1px solid rgba(255,255,255,0.06);
    padding-left: 2rem;
  }
}

.footer-disclaimer-block {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.04);
}

.footer-disclaimer-block p {
  font-size: 0.6875rem;
  color: rgba(255,255,255,0.15);
  line-height: 1.6;
  max-width: 48rem;
}

/* ─── Register button ─── */
.btn-register {
  display: inline-flex;
  align-items: center;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.625rem 1.125rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  color: #fff;
  white-space: nowrap;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.3s, border-color 0.3s, color 0.3s;
}

.btn-register:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.55);
}

.btn-register-mobile {
  margin-top: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 9999px;
  padding: 0.75rem 2rem;
  cursor: pointer;
  font-family: inherit;
}

/* ─── Registration modal ─── */
.reg-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s, visibility 0.3s;
}

.reg-modal.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.reg-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
}

.reg-modal-dialog {
  position: relative;
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  overflow-y: auto;
  background: #121216;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  padding: 2rem 1.75rem;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  transform: translateY(16px);
  transition: transform 0.3s;
}

.reg-modal.open .reg-modal-dialog {
  transform: translateY(0);
}

.reg-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  padding: 0.25rem;
  transition: color 0.2s;
}

.reg-modal-close:hover {
  color: #fff;
}

[dir="rtl"] .reg-modal-close {
  right: auto;
  left: 1rem;
}

.reg-modal-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

.reg-modal-form-wrap .reg-modal-title {
  padding-right: 2rem;
}

[dir="rtl"] .reg-modal-form-wrap .reg-modal-title {
  padding-right: 0;
  padding-left: 2rem;
}

.reg-modal-desc {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.reg-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

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

.reg-form .form-field label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 0.35rem;
}

.reg-form .form-field label .optional {
  color: rgba(255, 255, 255, 0.4);
  font-weight: 400;
}

.reg-form .form-field input {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-size: 0.875rem;
  font-family: inherit;
  transition: border-color 0.2s;
}

.reg-form .form-field input:focus {
  outline: none;
  border-color: rgba(var(--primary-rgb), 0.6);
}

.reg-form .form-field small {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
}

.reg-services-fieldset {
  border: none;
  margin: 0 0 1.25rem;
  padding: 0;
}

.reg-services-fieldset legend {
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 0.65rem;
}

.reg-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.65rem;
}

.reg-service-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.85rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.8);
  transition: border-color 0.2s, background 0.2s;
}

.reg-service-option:has(input:checked) {
  border-color: rgba(var(--primary-rgb), 0.6);
  background: rgba(var(--primary-rgb), 0.12);
  color: #fff;
}

.reg-service-option input {
  accent-color: var(--primary);
}

.reg-terms {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.5;
  margin-bottom: 1.25rem;
  cursor: pointer;
}

.reg-terms input {
  margin-top: 0.2rem;
  accent-color: var(--primary);
  flex-shrink: 0;
}

.reg-form-message {
  display: none;
  font-size: 0.8125rem;
  margin-bottom: 1rem;
  padding: 0.65rem 0.85rem;
  border-radius: 0.5rem;
}

.reg-form-message.show {
  display: block;
}

.reg-form-message.error {
  background: rgba(239, 68, 68, 0.12);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.reg-submit-btn {
  width: 100%;
  justify-content: center;
}

.reg-modal-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2.5rem 1.25rem 2rem;
  min-height: 22rem;
}

.reg-success-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 26rem;
  margin: 0 auto;
}

.reg-success-icon {
  width: 4.5rem;
  height: 4.5rem;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.14);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 8px rgba(34, 197, 94, 0.06);
}

.reg-modal.open .reg-success-icon {
  animation: regSuccessPop 0.45s cubic-bezier(0.34, 1.4, 0.64, 1);
}

@keyframes regSuccessPop {
  from {
    transform: scale(0.55);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.reg-success-title {
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 3vw, 1.75rem);
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.75rem;
  line-height: 1.35;
  text-align: center;
}

.reg-success-message {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.9375rem;
  line-height: 1.7;
  text-align: center;
  margin: 0;
  max-width: 34ch;
}

.reg-success-actions {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 2rem;
}

.reg-telegram-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  min-width: min(100%, 15rem);
  padding: 0.875rem 1.75rem;
  border-radius: 9999px;
  background: var(--telegram);
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 10px 28px rgba(42, 171, 238, 0.32);
  transition: background 0.25s, transform 0.2s, box-shadow 0.25s;
}

.reg-telegram-link:hover {
  background: var(--telegram-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(42, 171, 238, 0.4);
}

.reg-telegram-link[hidden] {
  display: none !important;
}

.reg-modal-dialog:has(#regSuccessWrap:not([hidden])),
.reg-modal-dialog--success {
  max-width: 480px;
  text-align: center;
}

[dir="rtl"] .reg-form .form-field,
[dir="rtl"] .reg-terms {
  text-align: right;
}

[dir="rtl"] .reg-success-title,
[dir="rtl"] .reg-success-message,
[dir="rtl"] .reg-modal-success,
[dir="rtl"] .reg-success-body,
[dir="rtl"] .reg-success-actions {
  text-align: center;
}

[dir="rtl"] .reg-success-actions {
  justify-content: center;
}

[dir="rtl"] .reg-telegram-link {
  flex-direction: row-reverse;
}

[dir="rtl"] .reg-service-option {
  flex-direction: row-reverse;
}
