@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Sora:wght@500;600;700&display=swap');
@import url('motion.css');
@import url('/css/orizon-select.css');

:root {
  --white: #ffffff;
  --bg: #f8fafc;
  --bg-warm: #f1f5f9;
  --surface: #ffffff;
  --text: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --accent: #0066ff;
  --accent-mid: #0052cc;
  --accent-soft: rgba(0, 102, 255, 0.08);
  --accent-glow: rgba(0, 102, 255, 0.25);
  --cyan: #06b6d4;
  --cyan-soft: rgba(6, 182, 212, 0.12);
  --violet: #8b5cf6;
  --violet-soft: rgba(139, 92, 246, 0.1);
  --gold: #06b6d4;
  --gold-light: #22d3ee;
  --gold-soft: rgba(6, 182, 212, 0.12);
  --navy: #0066ff;
  --blue-soft: rgba(0, 102, 255, 0.06);
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 4px 24px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 40px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 24px 64px rgba(0, 102, 255, 0.12);
  --shadow-glow: 0 0 40px rgba(6, 182, 212, 0.2);
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --max-width: 1200px;
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --font-display: "Sora", var(--font);
  --header-h: 76px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --transition: 0.25s var(--ease);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(0, 102, 255, 0.07), transparent 50%),
    radial-gradient(ellipse 60% 40% at 90% 10%, rgba(6, 182, 212, 0.06), transparent 45%),
    radial-gradient(ellipse 50% 30% at 50% 100%, rgba(139, 92, 246, 0.04), transparent 50%);
  animation: ambientShift 18s ease-in-out infinite alternate;
}

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

a { color: var(--accent-mid); text-decoration: none; transition: color var(--transition); }
a:not(.btn):hover { color: var(--cyan); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ─── Header ─── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.site-header.scrolled {
  border-bottom-color: var(--border-light);
  box-shadow: var(--shadow-xs);
  background: rgba(255, 255, 255, 0.95);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.375rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.logo:hover { text-decoration: none; color: var(--text); }

.logo-mark {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: block;
  color: var(--text);
  transition: transform var(--transition);
}

.logo:hover .logo-mark { transform: scale(1.04); }

.logo-mark-lg {
  width: 52px;
  height: 52px;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  gap: 0.125rem;
}

.logo-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}

.logo-sub {
  font-family: var(--font);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

/* Legacy fallback — hidden when mark is present */
.logo-icon {
  display: none;
  width: 40px;
  height: 40px;
  background: linear-gradient(145deg, var(--accent) 0%, var(--accent-mid) 100%);
  color: var(--white);
  border-radius: var(--radius-sm);
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(10, 22, 40, 0.2);
}

.main-nav a {
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: color var(--transition), background var(--transition);
  letter-spacing: 0.01em;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--accent);
  background: var(--accent-soft);
  text-decoration: none;
}

.nav-actions { display: flex; gap: 0.625rem; margin-left: 1.5rem; }

@media (min-width: 1025px) {
  .main-nav {
    display: flex;
    align-items: center;
    gap: 0.125rem;
  }

  .nav-drawer-head,
  .nav-drawer-trust,
  .nav-backdrop { display: none !important; }

  .nav-drawer-links { display: contents; }

  .main-nav a[data-nav] .nav-link-icon,
  .main-nav a[data-nav] .nav-link-arrow { display: none; }

  .main-nav a[data-nav] .nav-link-label { display: inline; }
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6875rem 1.375rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
  font-family: inherit;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, #0080ff 50%, var(--cyan) 100%);
  background-size: 200% 200%;
  color: #ffffff;
  box-shadow: 0 4px 20px var(--accent-glow);
  animation: btnShimmer 6s ease infinite;
}

.btn-primary:hover,
.btn-primary:focus {
  background-position: 100% 50%;
  color: #ffffff;
  box-shadow: 0 8px 32px var(--accent-glow);
  transform: translateY(-2px);
}

.main-nav a.btn-primary,
.main-nav a.btn-primary:hover {
  color: #ffffff;
  background: var(--accent);
}

.main-nav a.btn-primary:hover {
  background: var(--accent-mid);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--border);
}

.btn-outline:hover {
  background: var(--white);
  border-color: var(--accent);
  color: var(--accent);
}

.btn-gold {
  background: linear-gradient(135deg, var(--cyan) 0%, var(--gold-light) 100%);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(6, 182, 212, 0.35);
}

.btn-gold:hover {
  color: var(--white);
  box-shadow: 0 8px 28px rgba(6, 182, 212, 0.45);
}

.btn-lg { padding: 0.9375rem 2rem; font-size: 0.9375rem; }

.menu-toggle {
  display: flex;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.625rem;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-sm);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transition: background var(--transition);
  z-index: 210;
  position: relative;
  flex-shrink: 0;
}

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

.menu-toggle:hover {
  background: var(--accent-soft);
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  margin: 3px 0;
  transition: transform 0.35s var(--ease), opacity 0.25s var(--ease), width 0.25s var(--ease);
  border-radius: 2px;
  transform-origin: center;
}

.menu-toggle.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.menu-toggle.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ─── Hero ─── */
.hero {
  position: relative;
  background: var(--white);
  padding: calc(var(--header-h) + 5rem) 0 5rem;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 85% 15%, rgba(0, 102, 255, 0.08) 0%, transparent 55%),
    radial-gradient(ellipse 45% 45% at 15% 85%, rgba(6, 182, 212, 0.07) 0%, transparent 55%),
    radial-gradient(ellipse 30% 30% at 50% 50%, rgba(139, 92, 246, 0.04) 0%, transparent 60%);
  pointer-events: none;
  animation: ambientShift 14s ease-in-out infinite alternate;
}

.hero::after {
  content: "";
  position: absolute;
  top: var(--header-h);
  right: 0;
  width: 48%;
  height: calc(100% - var(--header-h));
  background: linear-gradient(135deg, rgba(0, 102, 255, 0.04) 0%, rgba(6, 182, 212, 0.03) 100%);
  clip-path: polygon(12% 0, 100% 0, 100% 100%, 0% 100%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 1rem 0.375rem 0.75rem;
  background: var(--cyan-soft);
  border: 1px solid rgba(6, 182, 212, 0.25);
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--cyan);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1.75rem;
}

.hero-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  color: var(--text);
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--accent), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  font-size: 1.0625rem;
  color: var(--text-muted);
  margin-bottom: 2.25rem;
  max-width: 46ch;
  line-height: 1.75;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.875rem; align-items: center; }

.hero-trust {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-light);
}

.hero-trust-item {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.hero-trust-item strong {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.hero-trust-item span {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}

.hero-trust-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}

/* Hero visual panel */
.hero-panel {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  box-shadow: var(--shadow-lg);
}

.hero-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-light);
}

.hero-panel-title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-panel-badge {
  font-size: 0.75rem;
  font-weight: 600;
  color: #16a34a;
  background: rgba(22, 163, 74, 0.08);
  padding: 0.25rem 0.625rem;
  border-radius: 100px;
}

.hero-mini-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.875rem;
}

.hero-mini-card {
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 1.125rem;
  transition: all var(--transition);
  cursor: default;
}

.hero-mini-card:hover {
  border-color: var(--gold);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.hero-mini-card.wide { grid-column: span 2; }

.hero-mini-card .icon-wrap {
  width: 36px;
  height: 36px;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  margin-bottom: 0.75rem;
  color: var(--accent);
}

.hero-mini-card h3 {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.hero-mini-card p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.hero-mini-card .trend {
  font-size: 0.75rem;
  font-weight: 600;
  color: #16a34a;
  margin-top: 0.5rem;
}

/* ─── Sections ─── */
.section { padding: 6rem 0; }
.section-white { background: var(--white); }
.section-alt { background: var(--bg); }
.section-warm { background: var(--bg-warm); }

.section-header {
  text-align: center;
  max-width: 580px;
  margin: 0 auto 3.5rem;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 0.875rem;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  line-height: 1.15;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.0625rem;
  line-height: 1.7;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

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

/* ─── Cards ─── */
.card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--cyan), var(--violet));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border);
  transform: translateY(-4px);
}

.card:hover::before { transform: scaleX(1); }

.card-icon {
  width: 52px;
  height: 52px;
  background: var(--accent-soft);
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  margin-bottom: 1.5rem;
  color: var(--accent);
  transition: all var(--transition);
}

.card:hover .card-icon {
  background: var(--accent);
  color: var(--white);
}

.card-icon svg { width: 24px; height: 24px; }

.card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.625rem;
  letter-spacing: -0.01em;
}

.card p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.65;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  transition: gap var(--transition), color var(--transition);
}

.card-link:hover {
  color: var(--cyan);
  gap: 0.625rem;
  text-decoration: none;
}

/* ─── CTA Banner ─── */
.cta-banner {
  background: linear-gradient(135deg, var(--accent) 0%, #0080ff 40%, var(--cyan) 100%);
  background-size: 200% 200%;
  animation: btnShimmer 8s ease infinite;
  border-radius: var(--radius-xl);
  padding: 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(6, 182, 212, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

.cta-banner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.875rem;
  position: relative;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.0625rem;
  margin-bottom: 2rem;
  position: relative;
}

.cta-banner .btn { position: relative; }

/* ─── Page Header ─── */
.page-header {
  background: var(--white);
  padding: calc(var(--header-h) + 3.5rem) 0 3.5rem;
  border-bottom: 1px solid var(--border-light);
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 100% 0%, rgba(6, 182, 212, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.page-header .container { position: relative; }

.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  line-height: 1.1;
}

.page-header p {
  color: var(--text-muted);
  font-size: 1.0625rem;
  max-width: 58ch;
  line-height: 1.7;
}

.breadcrumb {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  font-weight: 500;
}

.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--cyan); }

/* ─── CEO Block ─── */
.ceo-block {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 3.5rem;
  align-items: start;
}

.ceo-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
  position: relative;
}

.ceo-photo::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(transparent, rgba(0, 102, 255, 0.12));
}

.ceo-photo img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  object-position: center 15%;
  display: block;
}

.ceo-info h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 0.375rem;
}

.ceo-info .role {
  color: var(--gold);
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.5rem;
}

.ceo-info p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.75;
}

/* ─── Testimonials (legacy overrides in motion.css) ─── */

/* ─── Forms ─── */
.form-page {
  min-height: calc(100vh - var(--header-h));
  display: grid;
  place-items: center;
  padding: calc(var(--header-h) + 3rem) 2rem 3rem;
  background:
    radial-gradient(ellipse 60% 50% at 20% 50%, rgba(6, 182, 212, 0.08) 0%, transparent 60%),
    var(--bg);
}

.form-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 3rem;
  width: 100%;
  max-width: 460px;
  box-shadow: var(--shadow-lg);
}

.form-card-logo {
  text-align: center;
  margin-bottom: 2rem;
}

.form-card-logo .logo {
  flex-direction: column;
  gap: 0.875rem;
}

.form-card-logo .logo-mark,
.form-card-logo .logo-mark-lg {
  width: 52px;
  height: 52px;
}

.form-card-logo .logo-text {
  align-items: center;
}

.form-card h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 0.375rem;
  text-align: center;
}

.form-card .subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin-bottom: 2rem;
}

.form-group { margin-bottom: 1.25rem; }

.form-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text);
  letter-spacing: 0.02em;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.8125rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-family: inherit;
  background: var(--bg);
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
  color: var(--text);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.06);
}

.form-group input::placeholder { color: var(--text-muted); opacity: 0.6; }

.form-group textarea { resize: vertical; min-height: 130px; }

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

.form-footer {
  text-align: center;
  margin-top: 1.75rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.form-card .btn { width: 100%; margin-top: 0.75rem; padding: 0.875rem; }

.form-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
  color: var(--text-muted);
  font-size: 0.8125rem;
}

.form-divider::before,
.form-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.checkbox-row input {
  width: auto;
  margin-top: 3px;
  accent-color: var(--accent);
}

/* ─── Contact ─── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 3.5rem;
  align-items: start;
}

.contact-info-card {
  background: var(--accent);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}

.contact-info-card h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.contact-info-card > p {
  opacity: 0.75;
  font-size: 0.9375rem;
  margin-bottom: 2rem;
}

.contact-info-item { margin-bottom: 1.75rem; }

.contact-info-item h3 {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.6;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.contact-info-item p { font-size: 0.9375rem; line-height: 1.6; }

.contact-info-item a { color: var(--gold-light); }
.contact-info-item a:hover { color: var(--white); }

.contact-form-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
}

.contact-form-card h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 1.75rem;
}

/* ─── Legal ─── */
.legal-content {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 3rem;
  max-width: 820px;
  box-shadow: var(--shadow-xs);
}

.legal-content h2 {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 600;
  margin: 2.5rem 0 0.875rem;
  color: var(--text);
}

.legal-content h2:first-child { margin-top: 0; }

.legal-content p,
.legal-content li {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  margin-bottom: 0.875rem;
  line-height: 1.75;
}

.legal-content ul { padding-left: 1.25rem; margin-bottom: 1rem; }

/* ─── Trading ─── */
.trading-hero {
  background: linear-gradient(135deg, var(--accent) 0%, #1a3050 50%, var(--accent-mid) 100%);
  color: var(--white);
  padding: calc(var(--header-h) + 4rem) 0 4rem;
  position: relative;
  overflow: hidden;
}

.trading-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 80% at 90% 50%, rgba(6, 182, 212, 0.12) 0%, transparent 60%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.trading-hero .container { position: relative; }

.trading-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  font-weight: 600;
  margin-bottom: 1.25rem;
  line-height: 1.1;
}

.trading-hero p {
  opacity: 0.8;
  font-size: 1.0625rem;
  max-width: 58ch;
  line-height: 1.75;
}

.trading-hero .breadcrumb a { color: rgba(255,255,255,0.6); }
.trading-hero .breadcrumb a:hover { color: var(--gold-light); }
.trading-hero .breadcrumb { color: rgba(255,255,255,0.5); }

.feature-list { list-style: none; padding: 0; }

.feature-list li {
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-secondary);
  font-size: 0.9375rem;
  display: flex;
  gap: 0.875rem;
  align-items: flex-start;
  line-height: 1.5;
}

.feature-list li::before {
  content: "";
  width: 20px;
  height: 20px;
  background: var(--gold-soft);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 1px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23b8963e'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z'/%3E%3C/svg%3E");
  background-size: 12px;
  background-repeat: no-repeat;
  background-position: center;
}

.content-block h2 {
  font-family: var(--font-display);
  font-size: 1.625rem;
  font-weight: 600;
  margin: 2.5rem 0 1rem;
}

.content-block h2:first-child { margin-top: 0; }

.content-block p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  font-size: 0.9375rem;
  line-height: 1.75;
}

/* ─── Footer (premium styles in motion.css) ─── */
.company-details {
  font-size: 0.75rem;
  line-height: 1.7;
}

/* ─── Animations ─── */
@keyframes ambientShift {
  0% { opacity: 1; transform: scale(1) translateY(0); }
  100% { opacity: 0.85; transform: scale(1.02) translateY(-8px); }
}

@keyframes btnShimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

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

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 4px 24px rgba(0, 102, 255, 0.12); }
  50% { box-shadow: 0 8px 40px rgba(6, 182, 212, 0.25); }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-panel.reveal.visible,
.hero-panel-wrap.reveal.visible {
  animation: float 6s ease-in-out infinite, pulseGlow 4s ease-in-out infinite;
}

.card, .service-card, .hero-mini-card, .testimonial-card {
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.card:hover, .service-card:hover, .hero-mini-card:hover, .testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* ─── Main offset for fixed header ─── */
main { padding-top: 0; }

body:not(.form-body) main > section:first-child:not(.hero):not(.trading-hero),
body:not(.form-body) main > .page-header:first-child {
  /* handled individually */
}

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  .site-header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .hero-grid { grid-template-columns: 1fr; gap: 3rem; }
  .hero::after { display: none; }
  .hero-panel-wrap,
  .hero-panel { max-width: 520px; }

  .main-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-drawer-head,
  .nav-drawer-links,
  .nav-drawer-trust {
    display: flex;
  }

  .nav-drawer-links {
    flex: 1;
    min-height: 0;
    flex-direction: column;
  }

  .nav-actions {
    margin-left: 0;
    flex-direction: column;
    flex-shrink: 0;
  }
}

@media (max-width: 900px) {
  .grid-3, .grid-2, .ceo-block, .contact-grid, .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-trust { flex-wrap: wrap; }
  .hero-trust-divider { display: none; }
  .cta-banner { padding: 3rem 2rem; }
}

@media (max-width: 768px) {
  .container { padding: 0 1.25rem; }

  .hero { padding-bottom: 3.5rem; }
  .section { padding: 4rem 0; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-card { padding: 2rem 1.5rem; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
}

/* ─── Form feedback ─── */
.form-feedback {
  margin-top: 1rem; padding: 0.875rem 1rem; border-radius: 8px; font-size: 0.9375rem;
}
.form-feedback.success { background: #ecfdf3; color: #166534; border: 1px solid #bbf7d0; }
.form-feedback.error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* ─── Live Chat Widget ─── */
#orizon-livechat {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 99999;
  font-family: var(--font);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
}
.lc-toggle {
  width: auto;
  min-width: 3.5rem;
  height: 3.5rem;
  padding: 0 1.125rem 0 0.875rem;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, var(--accent) 0%, var(--cyan) 100%);
  color: #fff;
  box-shadow: 0 10px 32px var(--accent-glow);
  display: flex;
  align-items: center;
  gap: 0.625rem;
  position: relative;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.lc-toggle-label {
  font-size: 0.9375rem;
  font-weight: 600;
  white-space: nowrap;
}
.lc-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(10, 22, 40, 0.36);
}
.lc-toggle svg { width: 1.375rem; height: 1.375rem; flex-shrink: 0; }
.lc-toggle.lc-online::after {
  content: ""; position: absolute; top: 0.2rem; right: 0.2rem; width: 0.75rem; height: 0.75rem;
  background: #22c55e; border: 2px solid #fff; border-radius: 50%;
}
.lc-toggle.lc-toggle-offline::after {
  content: ""; position: absolute; top: 0.2rem; right: 0.2rem; width: 0.75rem; height: 0.75rem;
  background: #94a3b8; border: 2px solid #fff; border-radius: 50%;
}
.lc-panel[hidden] { display: none !important; }
.lc-panel {
  position: absolute; bottom: calc(100% + 0.75rem); right: 0; width: min(360px, calc(100vw - 2rem));
  background: #fff; border-radius: 16px; box-shadow: 0 20px 60px rgba(10, 22, 40, 0.18);
  border: 1px solid var(--border-light); overflow: hidden; display: flex; flex-direction: column;
  max-height: min(520px, calc(100dvh - 6rem));
}
.lc-panel-offline { max-height: min(480px, calc(100dvh - 6rem)); }
.lc-head {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 0.75rem;
  padding: 1rem 1rem 0.875rem; background: linear-gradient(135deg, var(--accent), #0080ff); color: #fff;
  transition: background 0.3s var(--ease);
}
.lc-head-offline {
  background: linear-gradient(135deg, #334155 0%, #1e293b 100%);
}
.lc-head-info { min-width: 0; }
.lc-head strong { display: block; font-size: 0.9375rem; font-family: var(--font-display); margin-bottom: 0.375rem; }
.lc-status-pill {
  display: inline-flex; align-items: center; gap: 0.375rem;
  font-size: 0.6875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em;
  padding: 0.2rem 0.5rem; border-radius: 100px; background: rgba(255,255,255,0.15);
}
.lc-status-pill::before {
  content: ""; width: 0.4375rem; height: 0.4375rem; border-radius: 50%; flex-shrink: 0;
}
.lc-status-pill.lc-online { color: #bbf7d0; }
.lc-status-pill.lc-online::before { background: #22c55e; box-shadow: 0 0 0 2px rgba(34,197,94,0.35); }
.lc-status-pill.lc-offline { color: #fde68a; }
.lc-status-pill.lc-offline::before { background: #fbbf24; box-shadow: 0 0 0 2px rgba(251,191,36,0.3); }
.lc-close { background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; line-height: 1; opacity: 0.8; }
.lc-close:hover { opacity: 1; }
.lc-messages { flex: 1; overflow-y: auto; padding: 0.875rem 1rem; min-height: 140px; max-height: 260px; }
.lc-panel-offline .lc-messages { min-height: 220px; max-height: none; flex: 1; padding: 0; }
.lc-offline-state {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 1.75rem 1.25rem 1.5rem; background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}
.lc-offline-icon {
  width: 3.25rem; height: 3.25rem; border-radius: 50%; margin-bottom: 1rem;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(0,102,255,0.08), rgba(6,182,212,0.12));
  border: 1px solid rgba(0,102,255,0.12); color: var(--accent);
}
.lc-offline-icon svg { width: 1.5rem; height: 1.5rem; }
.lc-offline-title {
  margin: 0 0 0.5rem; font-family: var(--font-display); font-size: 1.0625rem; font-weight: 600;
  color: var(--text); letter-spacing: -0.01em;
}
.lc-offline-text {
  margin: 0 0 1rem; font-size: 0.8125rem; line-height: 1.6; color: var(--text-muted); max-width: 280px;
}
.lc-offline-hours {
  display: inline-flex; align-items: center; gap: 0.375rem; margin: 0 0 1.25rem;
  font-size: 0.75rem; font-weight: 500; color: var(--text-muted);
  padding: 0.375rem 0.75rem; border-radius: 100px; background: #fff; border: 1px solid var(--border-light);
}
.lc-offline-hours svg { width: 0.875rem; height: 0.875rem; color: var(--cyan); flex-shrink: 0; }
.lc-contact-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  width: 100%; max-width: 280px; padding: 0.75rem 1.25rem;
  border-radius: 10px; font-size: 0.875rem; font-weight: 600; text-decoration: none;
  color: #fff; background: linear-gradient(135deg, var(--accent), var(--cyan));
  box-shadow: 0 8px 24px rgba(0,102,255,0.25);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.lc-contact-btn svg { width: 1rem; height: 1rem; flex-shrink: 0; }
.lc-contact-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(0,102,255,0.32);
  color: #fff;
}
.lc-history-wrap {
  padding: 0.875rem 1rem 0.5rem; border-bottom: 1px solid var(--border-light); background: #fff;
  max-height: 120px; overflow-y: auto;
}
.lc-history-note {
  margin: 0 0 0.625rem; font-size: 0.6875rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--text-muted);
}
.lc-history-wrap .lc-msg { margin-bottom: 0.5rem; }
.lc-history-wrap .lc-msg p { font-size: 0.8125rem; padding: 0.5rem 0.625rem; }
.lc-empty { font-size: 0.875rem; color: var(--text-muted); text-align: center; padding: 1.5rem 0.5rem; }
.lc-msg { margin-bottom: 0.75rem; max-width: 88%; }
.lc-msg.visitor { margin-left: auto; text-align: right; }
.lc-msg.agent { margin-right: auto; }
.lc-who { font-size: 0.6875rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.lc-msg p { margin: 0.25rem 0 0; padding: 0.625rem 0.75rem; border-radius: 10px; font-size: 0.875rem; line-height: 1.45; }
.lc-msg.visitor p { background: linear-gradient(135deg, var(--accent), var(--cyan)); color: #fff; border-bottom-right-radius: 2px; }
.lc-msg.agent p { background: #f1f5f9; color: var(--text); border-bottom-left-radius: 2px; }
.lc-form { padding: 0.75rem; border-top: 1px solid var(--border-light); background: #fafbfc; }
.lc-user-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin-bottom: 0.5rem; }
.lc-user-fields input {
  width: 100%; padding: 0.5rem 0.625rem; border: 1px solid var(--border-light); border-radius: 8px; font: inherit; font-size: 0.8125rem;
}
.lc-input-row { display: flex; gap: 0.5rem; align-items: flex-end; }
.lc-input-row textarea {
  flex: 1; padding: 0.5rem 0.625rem; border: 1px solid var(--border-light); border-radius: 8px;
  font: inherit; font-size: 0.875rem; resize: none;
}
.lc-send {
  width: 2.5rem; height: 2.5rem; border: none; border-radius: 10px; cursor: pointer; flex-shrink: 0;
  background: linear-gradient(135deg, var(--cyan), var(--gold-light)); color: #fff; display: grid; place-items: center;
}
.lc-send svg { width: 1rem; height: 1rem; }
@media (max-width: 480px) {
  #orizon-livechat { right: 1rem; bottom: 1rem; }
  .lc-toggle-label { display: none; }
  .lc-toggle { width: 3.5rem; padding: 0; justify-content: center; border-radius: 50%; }
  .lc-user-fields { grid-template-columns: 1fr; }
}

/* ═══ Site-wide mobile & tablet enhancements ═══ */

html {
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  overflow-x: clip;
}

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

/* ─── Tablet (≤1024px) ─── */
@media (max-width: 1024px) {
  .grid-3,
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  .feature-row {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

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

  .hero-panel-wrap,
  .hero-panel {
    max-width: 100%;
    width: 100%;
  }
}

/* ─── Mobile (≤768px) ─── */
@media (max-width: 768px) {
  :root {
    --header-h: 64px;
  }

  .container {
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }

  /* Touch-friendly targets */
  .btn,
  .menu-toggle,
  .main-nav a[data-nav],
  .nav-drawer-close,
  .lc-toggle,
  .lc-send,
  .company-details-verify {
    min-height: 44px;
  }

  .breadcrumb {
    font-size: 0.75rem;
    margin-bottom: 1rem;
  }

  /* Header / logo */
  .logo-mark {
    width: 34px !important;
    height: 34px !important;
  }

  .logo-name {
    font-size: 1.125rem;
  }

  .logo-sub {
    font-size: 0.625rem;
  }

  .site-header {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }

  /* Hero */
  .hero {
    padding: calc(var(--header-h) + 2rem) 0 2.5rem;
  }

  .hero h1 {
    font-size: clamp(1.875rem, 8.5vw, 2.5rem);
    margin-bottom: 1rem;
    line-height: 1.12;
  }

  .hero-sub,
  .hero-lead {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    max-width: none;
  }

  .hero-badge {
    font-size: 0.6875rem;
    padding: 0.3125rem 0.75rem;
    margin-bottom: 1.25rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
    padding: 0.9375rem 1.25rem;
  }

  .hero-note {
    font-size: 0.75rem;
    line-height: 1.5;
  }

  .tag-row {
    gap: 0.375rem;
    margin-top: 1.25rem;
  }

  .tag-pill {
    font-size: 0.6875rem;
    padding: 0.3125rem 0.625rem;
  }

  .hero-trust {
    margin-top: 2rem;
    padding-top: 1.5rem;
    gap: 1rem;
  }

  .hero-trust-item strong {
    font-size: 1.25rem;
  }

  .hero-panel {
    padding: 1.25rem;
    border-radius: var(--radius-lg);
  }

  .hero-panel-header {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .hero-panel-summary-value {
    font-size: 1.375rem;
  }

  .hero-mini-cards {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .hero-mini-card.wide {
    grid-column: span 1;
  }

  /* Ticker */
  .ticker-wrap {
    padding: 0.625rem 0;
  }

  .ticker-item {
    font-size: 0.8125rem;
    gap: 0.5rem;
  }

  .ticker-track {
    gap: 2rem;
  }

  /* Sections */
  .section {
    padding: 3rem 0;
  }

  .section-header {
    margin-bottom: 2rem;
    padding: 0 0.25rem;
  }

  .section-header h2 {
    font-size: clamp(1.5rem, 5.5vw, 2rem);
  }

  .section-header p {
    font-size: 0.9375rem;
  }

  /* Page headers */
  .page-header {
    padding: calc(var(--header-h) + 2rem) 0 2rem;
  }

  .page-header h1 {
    font-size: clamp(1.75rem, 6.5vw, 2.25rem);
  }

  .page-header p {
    font-size: 0.9375rem;
    max-width: none;
  }

  /* Grids & cards */
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .card {
    padding: 1.5rem;
  }

  .card-icon {
    width: 44px;
    height: 44px;
    margin-bottom: 1.25rem;
  }

  /* Stats & steps */
  .stats-strip {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding: 2rem 0;
  }

  .stat-card {
    padding: 1.25rem 0.875rem;
  }

  .stat-card strong {
    font-size: 1.75rem;
  }

  .steps-grid {
    gap: 1.25rem;
  }

  .step-card {
    padding: 1.5rem;
  }

  .feature-visual {
    padding: 1rem;
  }

  /* CEO block */
  .ceo-block {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .ceo-photo {
    max-width: 280px;
    margin: 0 auto;
  }

  /* Contact */
  .contact-info-card,
  .contact-form-card {
    padding: 1.75rem 1.25rem;
  }

  .contact-info-card h2,
  .contact-form-card h2 {
    font-size: 1.375rem;
  }

  /* CTA banners */
  .cta-banner {
    padding: 2rem 1.25rem;
    border-radius: var(--radius-lg);
  }

  .cta-banner h2 {
    font-size: clamp(1.375rem, 5vw, 1.75rem);
    margin-bottom: 0.75rem;
  }

  .cta-banner p {
    font-size: 0.9375rem;
    margin-bottom: 1.25rem;
  }

  .cta-banner .btn {
    width: 100%;
  }

  /* Footer */
  .footer-cta {
    padding: 2rem 0;
    gap: 1.25rem;
  }

  .footer-cta-text h3 {
    font-size: 1.25rem;
  }

  .footer-cta-actions {
    width: 100%;
    flex-direction: column;
  }

  .footer-cta-actions .btn {
    width: 100%;
    justify-content: center;
  }

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

  .footer-brand {
    grid-column: span 1;
  }

  .footer-legal {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .footer-legal-links {
    flex-direction: column;
    gap: 0.625rem;
  }

  /* Legal pages */
  .legal-content {
    padding: 1.75rem 1.25rem;
    border-radius: var(--radius-lg);
  }

  .legal-content h2 {
    font-size: 1.25rem;
    margin-top: 2rem;
  }

  /* Trading pages */
  .trading-hero {
    padding: calc(var(--header-h) + 2.5rem) 0 2.5rem;
  }

  .trading-hero h1 {
    font-size: clamp(1.75rem, 6vw, 2.5rem);
  }

  .trading-hero p {
    font-size: 0.9375rem;
  }

  /* Testimonials */
  .testimonials-hero-stats {
    grid-template-columns: 1fr 1fr;
    gap: 0.875rem;
  }

  .testimonial-stat {
    padding: 1.125rem 0.75rem;
  }

  .testimonial-featured {
    padding: 1.5rem 1.25rem;
    gap: 1.5rem;
  }

  .testimonial-featured blockquote {
    font-size: 1rem;
  }

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

  .testimonial {
    padding: 1.5rem;
  }

  .testimonials-trust-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.875rem;
    padding: 1.5rem 1.25rem;
    margin-top: 2rem;
  }

  /* Company details card */
  .company-details-card {
    margin-top: 1.5rem;
  }

  .company-details-card-head {
    padding: 1.25rem;
  }

  .company-detail-row {
    padding: 0.75rem 1.25rem;
  }

  .company-detail-row dd {
    padding-left: 0;
    font-size: 0.875rem;
  }

  .company-details-verify {
    margin: 0.25rem 1rem 1.25rem;
    width: calc(100% - 2rem);
    max-width: none;
  }

  /* Auth / form pages */
  .form-page {
    min-height: auto;
    padding: calc(var(--header-h) + 1.5rem) max(1rem, env(safe-area-inset-left)) 2rem max(1rem, env(safe-area-inset-right));
    place-items: start center;
  }

  .form-card {
    padding: 1.75rem 1.25rem;
    max-width: 100%;
    border-radius: var(--radius-lg);
  }

  .form-card h1 {
    font-size: 1.625rem;
  }

  .form-card .subtitle {
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 16px;
    padding: 0.875rem 1rem;
  }

  /* Live chat widget */
  #orizon-livechat {
    right: max(0.875rem, env(safe-area-inset-right));
    bottom: max(0.875rem, env(safe-area-inset-bottom));
  }

  .lc-panel {
    width: min(360px, calc(100vw - 1rem - env(safe-area-inset-right)));
  }

  .lc-toggle-label {
    display: none;
  }

  .lc-toggle {
    width: 3.5rem;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }

  /* Content blocks with inline headings */
  .content-block h2,
  .content-block h3 {
    font-size: clamp(1.25rem, 4.5vw, 1.5rem);
  }
}

/* ─── Small phones (≤480px) ─── */
@media (max-width: 480px) {
  .container {
    padding-left: max(0.875rem, env(safe-area-inset-left));
    padding-right: max(0.875rem, env(safe-area-inset-right));
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .stats-strip,
  .testimonials-hero-stats {
    grid-template-columns: 1fr;
  }

  .hero-panel-float-chip {
    display: none;
  }

  .main-nav {
    width: 100vw;
  }
}

/* ─── Touch devices: disable sticky hover lifts ─── */
@media (hover: none) and (pointer: coarse) {
  .card:hover,
  .hero-mini-card:hover,
  .stat-card:hover,
  .step-card:hover,
  .testimonial:hover,
  .testimonial-stat:hover,
  .company-details-card:hover {
    transform: none;
  }
}

/* ─── Reduced motion ─── */
@media (prefers-reduced-motion: reduce) {
  .hero-panel-wrap,
  .hero-orb,
  .hero-panel-orbit,
  .ticker-track,
  .footer-glow {
    animation: none !important;
  }

  .reveal,
  .reveal-stagger {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ═══ Auth pages (login / register) ═══ */
.form-body .footer-cta {
  display: none;
}

.auth-page {
  position: relative;
  overflow: hidden;
  place-items: stretch;
  padding: calc(var(--header-h) + 2rem) 0 3rem;
  background: var(--bg);
}

.auth-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.auth-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  animation: orbFloat 14s ease-in-out infinite;
}

.auth-orb-1 {
  width: 420px;
  height: 420px;
  top: -10%;
  left: -8%;
  background: rgba(0, 102, 255, 0.16);
}

.auth-orb-2 {
  width: 340px;
  height: 340px;
  bottom: 5%;
  right: 10%;
  background: rgba(6, 182, 212, 0.14);
  animation-delay: -5s;
}

.auth-orb-3 {
  width: 260px;
  height: 260px;
  top: 35%;
  left: 40%;
  background: rgba(139, 92, 246, 0.1);
  animation-delay: -9s;
}

.auth-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  max-width: 1080px;
}

.auth-showcase {
  padding: 1rem 0;
}

.auth-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 1rem 0.375rem 0.75rem;
  margin-bottom: 1.5rem;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(0, 102, 255, 0.14);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
  box-shadow: var(--shadow-sm);
}

.auth-showcase h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 1rem;
}

.auth-showcase h2 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--accent), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.auth-showcase > p {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 42ch;
  margin-bottom: 2rem;
}

.auth-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.auth-features li {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 0.875rem 1rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.auth-features li:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
}

.auth-feature-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: linear-gradient(135deg, rgba(0, 102, 255, 0.1), rgba(6, 182, 212, 0.12));
  color: var(--accent);
}

.auth-feature-icon svg {
  width: 1.125rem;
  height: 1.125rem;
}

.auth-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
}

.auth-trust-row span {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.375rem 0.75rem;
  border-radius: 100px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--border-light);
}

.auth-card {
  position: relative;
  max-width: none;
  padding: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(0, 102, 255, 0.12);
  box-shadow:
    0 4px 24px rgba(0, 102, 255, 0.08),
    0 24px 64px rgba(15, 23, 42, 0.08);
}

.auth-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--cyan), var(--violet));
  z-index: 2;
}

.auth-card-glow {
  position: absolute;
  top: -40%;
  right: -20%;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.15) 0%, transparent 70%);
  pointer-events: none;
  animation: orbFloat 10s ease-in-out infinite;
}

.auth-card > .auth-card-head,
.auth-card > form,
.auth-card > .form-footer {
  position: relative;
  z-index: 1;
  padding-left: 2rem;
  padding-right: 2rem;
}

.auth-card > .auth-card-head {
  padding-top: 2rem;
}

.auth-card > form {
  padding-bottom: 0.5rem;
}

.auth-card > .form-footer {
  padding-bottom: 2rem;
  margin-top: 1.25rem;
  border-top: 1px solid var(--border-light);
  padding-top: 1.25rem;
  z-index: 0;
}

.auth-card:has(.country-select.open, .dob-picker.open) {
  overflow: visible;
}

.auth-card > form:has(.country-select.open, .dob-picker.open) {
  z-index: 20;
}

.auth-card-wide {
  max-width: none;
}

.auth-card-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.75rem;
  text-align: left;
}

.auth-card-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--cyan));
  box-shadow: 0 8px 24px rgba(0, 102, 255, 0.28);
}

.auth-card-icon-register {
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  box-shadow: 0 8px 24px rgba(6, 182, 212, 0.28);
}

.auth-card-icon svg {
  width: 1.375rem;
  height: 1.375rem;
}

.auth-card h1 {
  text-align: left;
  font-size: 1.625rem;
  margin-bottom: 0.25rem;
}

.auth-card .subtitle {
  text-align: left;
  margin-bottom: 0;
  font-size: 0.875rem;
}

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-wrap svg {
  position: absolute;
  left: 0.875rem;
  width: 1.125rem;
  height: 1.125rem;
  color: var(--text-muted);
  pointer-events: none;
  transition: color 0.2s var(--ease);
}

.input-wrap input {
  padding-left: 2.625rem !important;
}

.input-wrap:focus-within svg {
  color: var(--accent);
}

.auth-form-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.auth-remember {
  margin: 0;
}

.auth-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.auth-link:hover {
  color: var(--cyan);
}

.auth-terms {
  margin-bottom: 1rem;
  padding: 0.875rem 1rem;
  background: var(--bg);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
}

.auth-card .btn-lg {
  width: 100%;
  margin-top: 0.5rem;
  padding: 1rem 1.25rem;
  font-size: 0.9375rem;
}

@media (max-width: 900px) {
  .auth-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 520px;
    margin: 0 auto;
  }

  .auth-showcase {
    text-align: center;
    padding: 0;
  }

  .auth-showcase > p {
    margin-left: auto;
    margin-right: auto;
  }

  .auth-badge {
    margin-left: auto;
    margin-right: auto;
  }

  .auth-trust-row {
    justify-content: center;
  }

  .auth-features li:hover {
    transform: none;
  }
}

@media (max-width: 768px) {
  .auth-page {
    padding: calc(var(--header-h) + 1.5rem) 0 2rem;
  }

  .auth-showcase h2 {
    font-size: 1.75rem;
  }

  .auth-features {
    gap: 0.625rem;
    margin-bottom: 1.5rem;
  }

  .auth-features li {
    font-size: 0.875rem;
    padding: 0.75rem 0.875rem;
  }

  .auth-card > .auth-card-head,
  .auth-card > form,
  .auth-card > .form-footer {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .auth-card > .auth-card-head {
    padding-top: 1.5rem;
  }

  .auth-card > .form-footer {
    padding-bottom: 1.5rem;
  }
}

/* ─── Country select ─── */
.country-select {
  position: relative;
}

.country-select.open {
  z-index: 30;
}

.country-select-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.8125rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  font: inherit;
  font-size: 0.9375rem;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
}

.country-select-trigger:hover {
  border-color: rgba(0, 102, 255, 0.35);
  background: var(--white);
}

.country-select.open .country-select-trigger,
.country-select-trigger:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.08);
}

.country-select.is-invalid .country-select-trigger {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.country-select-value {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex: 1;
  min-width: 0;
}

.country-select-value span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.country-select-placeholder {
  color: var(--text-muted);
}

.country-select-chevron {
  width: 1.125rem;
  height: 1.125rem;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform 0.25s var(--ease);
}

.country-select.open .country-select-chevron {
  transform: rotate(180deg);
  color: var(--accent);
}

.country-flag-img {
  width: 24px;
  height: 18px;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.08);
  flex-shrink: 0;
}

.country-select-dropdown {
  position: absolute;
  top: calc(100% + 0.375rem);
  left: 0;
  right: 0;
  z-index: 100;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.14);
  overflow: hidden;
  isolation: isolate;
}

.country-select-search-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem;
  border-bottom: 1px solid var(--border-light);
  background: #f8fafc;
  position: relative;
  z-index: 2;
}

.country-select-search-wrap svg {
  width: 1rem;
  height: 1rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

.country-select-search {
  flex: 1;
  border: none;
  background: transparent;
  font: inherit;
  font-size: 0.9375rem;
  color: var(--text);
  outline: none;
}

.country-select-search::placeholder {
  color: var(--text-muted);
}

.country-select-list {
  list-style: none;
  max-height: 280px;
  overflow-y: auto;
  margin: 0;
  padding: 0.375rem 0;
  background: #ffffff;
  position: relative;
  z-index: 1;
}

.country-select-label {
  padding: 0.5rem 1rem 0.375rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: #ffffff;
}

.country-select-divider {
  height: 1px;
  margin: 0.375rem 0.75rem;
  background: var(--border-light);
  list-style: none;
}

.country-select-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 1rem;
  font-size: 0.9375rem;
  color: var(--text);
  cursor: pointer;
  background: #ffffff;
  transition: background 0.15s var(--ease);
}

.country-select-option:hover,
.country-select-option.selected {
  background: #eff6ff;
}

.country-select-option.selected {
  font-weight: 600;
  color: var(--accent);
}

.country-select-empty {
  padding: 1.25rem 1rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-muted);
  background: #ffffff;
}

@media (max-width: 768px) {
  .country-select-list {
    max-height: min(240px, 40vh);
  }

  .country-select-search {
    font-size: 16px;
  }
}

/* ─── DOB picker ─── */
.dob-picker {
  margin-top: 0.125rem;
}

.dob-picker-card {
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  padding: 0.875rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: visible;
}

.dob-picker:hover .dob-picker-card {
  border-color: rgba(0, 102, 255, 0.3);
}

.dob-picker:focus-within .dob-picker-card {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.08);
  background: #fff;
}

.dob-picker.is-complete .dob-picker-card {
  border-color: rgba(16, 185, 129, 0.45);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.08);
}

.dob-picker.is-invalid .dob-picker-card {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.dob-picker-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.875rem;
  padding-bottom: 0.875rem;
  border-bottom: 1px solid var(--border-light);
}

.dob-picker-icon-wrap {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--accent);
  background: linear-gradient(135deg, rgba(0, 102, 255, 0.1), rgba(6, 182, 212, 0.12));
  border: 1px solid rgba(0, 102, 255, 0.12);
}

.dob-picker-icon-wrap svg {
  width: 1.125rem;
  height: 1.125rem;
}

.dob-picker-summary {
  flex: 1;
  min-width: 0;
}

.dob-picker-placeholder {
  display: block;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.dob-picker-date {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}

.dob-verified {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #059669;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
  flex-shrink: 0;
}

.dob-verified svg {
  width: 0.75rem;
  height: 0.75rem;
}

.dob-segments {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.625rem;
}

.dob-segment-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  min-width: 0;
  position: relative;
}

.dob-segment-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding-left: 0.125rem;
}

/* Custom DOB dropdowns */
.dob-dd {
  position: relative;
}

.dob-dd.open {
  z-index: 40;
}

.dob-dd-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.375rem;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: #fff;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
  padding: 0.6875rem 0.625rem 0.6875rem 0.75rem;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease), background-color 0.15s var(--ease);
}

.dob-dd-value {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-muted);
}

.dob-dd.has-value .dob-dd-value {
  color: var(--text);
}

.dob-dd-chevron {
  width: 1rem;
  height: 1rem;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform 0.2s var(--ease), color 0.2s var(--ease);
}

.dob-dd-trigger:hover {
  border-color: rgba(0, 102, 255, 0.35);
  background: #fafbff;
}

.dob-dd.open .dob-dd-trigger,
.dob-dd-trigger:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.08);
  background: #fff;
}

.dob-dd.open .dob-dd-chevron {
  transform: rotate(180deg);
  color: var(--accent);
}

.dob-picker.is-complete .dob-dd-trigger {
  border-color: rgba(16, 185, 129, 0.25);
}

/* Shared dropdown panel */
.dob-dd-panel {
  margin-top: 0.75rem;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.1);
  animation: dobPanelIn 0.2s var(--ease);
}

.dob-dd-panel[hidden] {
  display: none !important;
}

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

.dob-dd-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.625rem 0.875rem;
  border-bottom: 1px solid var(--border-light);
  background: #f8fafc;
}

.dob-dd-panel-title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
}

.dob-dd-panel-close {
  width: 1.75rem;
  height: 1.75rem;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text-muted);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}

.dob-dd-panel-close:hover {
  background: rgba(0, 102, 255, 0.08);
  color: var(--accent);
}

.dob-dd-backdrop {
  display: none;
}

.dob-dd-backdrop[hidden] {
  display: none !important;
}

.dob-dd-list {
  list-style: none;
  margin: 0;
  padding: 0.5rem;
  background: #ffffff;
}

.dob-dd-list.is-list {
  max-height: 220px;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.dob-dd-list.is-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.375rem;
  overflow: hidden;
}

.dob-dd-list.is-grid-months {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.375rem;
  overflow: hidden;
}

.dob-dd-option {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 0.5rem 0.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  border-radius: 8px;
  cursor: pointer;
  background: #ffffff;
  transition: background 0.12s var(--ease), color 0.12s var(--ease);
  user-select: none;
}

.dob-dd-list.is-list .dob-dd-option {
  justify-content: flex-start;
  padding: 0.625rem 0.75rem;
}

.dob-dd-option:hover {
  background: #eff6ff;
  color: var(--accent);
}

.dob-dd-option.selected {
  background: var(--accent);
  color: #fff;
  font-weight: 600;
}

.dob-dd-option.selected:hover {
  background: #0052cc;
  color: #fff;
}

.dob-dd-list.is-grid .dob-dd-option,
.dob-dd-list.is-grid-months .dob-dd-option {
  min-height: 2.25rem;
  font-size: 0.8125rem;
}

.dob-picker-note {
  margin: 0.5rem 0 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.login-resend-wrap {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: var(--radius-sm);
  background: #f8fafc;
  border: 1px solid var(--border-light);
}

.login-resend-text {
  margin: 0 0 0.75rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  body.dob-sheet-open {
    overflow: hidden;
  }

  .dob-picker.open {
    z-index: 200;
    position: relative;
  }

  .dob-dd-backdrop.is-open {
    display: block !important;
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    animation: dobFadeIn 0.2s var(--ease);
  }

  @keyframes dobFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }

  .dob-dd-panel.is-open {
    display: block !important;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    margin: 0;
    border-radius: 1.25rem 1.25rem 0 0;
    border-bottom: none;
    box-shadow: 0 -8px 40px rgba(15, 23, 42, 0.18);
    max-height: min(78vh, 560px);
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    animation: dobSheetIn 0.28s var(--ease);
  }

  @keyframes dobSheetIn {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
  }

  .dob-dd-panel-head {
    padding: 0.875rem 1rem;
    position: sticky;
    top: 0;
    z-index: 2;
    background: #f8fafc;
    border-bottom: 1px solid var(--border-light);
  }

  .dob-dd-panel-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text);
  }

  .dob-dd-list {
    padding: 0.75rem 1rem calc(1rem + env(safe-area-inset-bottom, 0px));
    overflow: visible;
    flex: none;
    min-height: auto;
  }

  .dob-dd-list.is-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.5rem;
  }

  .dob-dd-list.is-grid-months {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
  }

  .dob-dd-list.is-list {
    max-height: none;
    overflow: visible;
  }

  .dob-dd-list.is-grid .dob-dd-option,
  .dob-dd-list.is-grid-months .dob-dd-option {
    min-height: 2.75rem;
    font-size: 0.875rem;
  }

  .dob-picker-head {
    flex-wrap: wrap;
  }

  .dob-verified {
    margin-left: auto;
  }

  .dob-segments {
    gap: 0.5rem;
  }

  .dob-dd-trigger {
    font-size: 0.875rem;
    padding: 0.75rem 0.5rem 0.75rem 0.625rem;
    min-height: 44px;
  }

  .dob-segment-label {
    font-size: 0.625rem;
  }
}
