/* ==========================================================================
   FOUR IPOTEKA — Luxury Mortgage Broker Style System
   ========================================================================== */

/* --- CSS Variables & Design Tokens --- */
:root {
  /* Color Palette: Obsidian, Emerald, Champagne Gold */
  --bg-dark: #070a11;
  --bg-card: rgba(15, 23, 42, 0.7);
  --bg-card-hover: rgba(22, 33, 58, 0.85);
  --bg-glass: rgba(255, 255, 255, 0.03);
  --bg-input: rgba(11, 18, 33, 0.8);
  
  --primary-emerald: #10b981;
  --primary-emerald-glow: rgba(16, 185, 129, 0.35);
  --primary-emerald-light: #34d399;
  --primary-emerald-dark: #059669;

  --accent-gold: #f59e0b;
  --accent-gold-glow: rgba(245, 158, 11, 0.3);
  --accent-gold-light: #fbbf24;

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dark: #64748b;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-highlight: rgba(16, 185, 129, 0.4);
  --border-gold: rgba(245, 158, 11, 0.4);

  /* Typography */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Elevation & Shadows */
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 10px 30px -5px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  --shadow-emerald: 0 10px 25px -3px rgba(16, 185, 129, 0.3);
  --shadow-gold: 0 10px 25px -3px rgba(245, 158, 11, 0.25);

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.16, 1, 0.3, 1);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;
}

/* --- Reset & Base Styles --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-dark);
  color: var(--text-main);
  overflow-x: clip;
  max-width: 100vw;
  width: 100%;
  scrollbar-gutter: stable;
}

body {
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: clip;
  max-width: 100vw;
  width: 100%;
  background-color: var(--bg-dark);
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Ambient Background Glows --- */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(140px);
  opacity: 0.45;
}

.glow-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.25), transparent 70%);
  top: -150px;
  left: 10%;
}

.glow-2 {
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.15), transparent 70%);
  top: 40%;
  right: -100px;
}

.glow-3 {
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.15), transparent 70%);
  bottom: 5%;
  left: -150px;
}

/* --- Layout Container --- */
.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
  position: relative;
  z-index: 1;
}

/* --- Typography Helpers --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.2;
}

.gradient-text {
  background: linear-gradient(135deg, #34d399 0%, #10b981 50%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-emerald {
  color: var(--primary-emerald-light);
}

.text-gold {
  color: var(--accent-gold-light);
}

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

.mb-40 {
  margin-bottom: 40px;
}

/* --- Section Headers --- */
.section-header {
  margin-bottom: 56px;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  letter-spacing: -0.02em;
  margin-top: 16px;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 400;
}

/* --- Badges --- */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-full);
  color: var(--primary-emerald-light);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge-pill.center-badge {
  margin: 0 auto;
}

.badge-dot {
  width: 7px;
  height: 7px;
  background-color: var(--primary-emerald);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--primary-emerald);
  animation: pulseDot 2s infinite ease-in-out;
}

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

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition-normal);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  box-shadow: var(--shadow-emerald);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(16, 185, 129, 0.45);
  background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border-color: rgba(16, 185, 129, 0.4);
  color: var(--primary-emerald-light);
}

.btn-outline:hover {
  background: rgba(16, 185, 129, 0.1);
  border-color: var(--primary-emerald);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 9px 18px;
  font-size: 0.875rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.05rem;
  border-radius: var(--radius-md);
}

.btn-block {
  width: 100%;
}

.btn-arrow {
  width: 18px;
  height: 18px;
  transition: transform var(--transition-fast);
}

.btn:hover .btn-arrow {
  transform: translateX(4px);
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
  z-index: 100;
  background: rgba(7, 10, 17, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition-normal);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1380px;
  margin: 0 auto;
  padding: 12px 20px;
  box-sizing: border-box;
  width: 100%;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-mark {
  position: relative;
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, #10b981 0%, #047857 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4);
}

.mark-number {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
}

.logo-text-group {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #ffffff;
}

.logo-title .highlight {
  color: var(--primary-emerald-light);
}

.logo-subtitle {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--accent-gold);
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 10px;
  min-width: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  list-style: none;
  gap: clamp(8px, 1.1vw, 18px);
  white-space: nowrap;
  margin: 0;
  padding: 0;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: clamp(0.82rem, 0.88vw, 0.92rem);
  font-weight: 600;
  transition: var(--transition-fast);
  position: relative;
  padding: 6px 4px;
  white-space: nowrap;
}

.nav-link:hover {
  color: #ffffff;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--primary-emerald);
  transition: width var(--transition-fast);
}

.nav-link:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: clamp(6px, 0.8vw, 12px);
  flex-shrink: 0;
  flex-wrap: nowrap;
}

.lang-switch-wrapper {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 3px 8px;
  font-size: 0.8rem;
  font-weight: 600;
}

.lang-btn {
  background: none;
  border: none;
  color: var(--text-dark);
  cursor: pointer;
  padding: 4px 6px;
  font-size: 0.8rem;
  font-weight: 700;
  transition: var(--transition-fast);
}

.lang-btn.active {
  color: var(--primary-emerald-light);
}

.lang-divider {
  color: var(--border-subtle);
  font-size: 0.75rem;
}

.header-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--transition-fast);
}

.header-phone:hover {
  color: var(--primary-emerald-light);
}

.phone-icon {
  width: 18px;
  height: 18px;
  color: var(--primary-emerald);
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.mobile-menu-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: #ffffff;
  border-radius: 2px;
  transition: var(--transition-fast);
}

/* Mobile Drawer Menu */
.mobile-nav-drawer {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: rgba(11, 15, 25, 0.97);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 24px;
  box-shadow: var(--shadow-lg);
}

.mobile-nav-drawer.open {
  display: block;
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mobile-link {
  color: var(--text-main);
  text-decoration: none;
  font-size: 1.15rem;
  font-weight: 600;
  display: block;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.mobile-drawer-footer {
  margin-top: 24px;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  padding-top: 150px;
  padding-bottom: 90px;
  position: relative;
  overflow: hidden;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-badge {
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(2.4rem, 4.2vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 580px;
  line-height: 1.7;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 48px;
}

.hero-metrics {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 20px 24px;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  width: 100%;
}

.metric-item {
  flex: 1;
}

.metric-value {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
}

.metric-value .unit {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 500;
}

.metric-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 4px;
}

.metric-divider {
  width: 1px;
  height: 36px;
  background-color: var(--border-subtle);
}

/* Hero Visual & Floating Cards */
.hero-visual {
  position: relative;
}

.hero-image-wrapper {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: visible;
}

.hero-main-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-xl);
  display: block;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-subtle);
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.hero-image-wrapper:hover .hero-main-img {
  transform: scale(1.015);
}

.hero-image-overlay {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(7, 10, 17, 0) 60%, rgba(7, 10, 17, 0.6) 100%);
  pointer-events: none;
}

/* Floating Glass Cards */
.floating-glass-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  z-index: 2;
}

.float-card-top {
  top: -20px;
  right: -20px;
}

.float-card-bottom {
  bottom: -25px;
  left: -20px;
}

.card-icon-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.card-icon-circle.green {
  background: rgba(16, 185, 129, 0.2);
  color: var(--primary-emerald);
}

.card-icon-circle.green svg {
  width: 18px;
  height: 18px;
}

.card-icon-circle.gold {
  background: rgba(245, 158, 11, 0.2);
  color: var(--accent-gold);
}

.card-icon-circle.gold svg {
  width: 20px;
  height: 20px;
}

.card-info {
  display: flex;
  flex-direction: column;
}

.card-caption {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
}

.card-amount {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
}

.card-subrate {
  font-size: 0.8rem;
  color: var(--primary-emerald-light);
  font-weight: 600;
}

/* Floating Keyframes */
@keyframes floatAnim {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

.animate-float {
  animation: floatAnim 4s ease-in-out infinite;
}

.animate-float-delayed {
  animation: floatAnim 4.5s ease-in-out 1.5s infinite;
}

/* ==========================================================================
   BANK PARTNERS TICKER
   ========================================================================== */
.partners-ticker-section {
  padding: 30px 0 50px;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(15, 23, 42, 0.3);
  overflow: hidden;
}

.ticker-label {
  font-size: 0.82rem;
  text-align: center;
  color: var(--text-dark);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 24px;
}

.marquee-track {
  display: flex;
  width: 100%;
  overflow: hidden;
  user-select: none;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-content {
  display: flex;
  gap: 20px;
  flex-shrink: 0;
  animation: marquee 28s linear infinite;
}

.bank-pill {
  padding: 10px 22px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  transition: var(--transition-fast);
}

.bank-pill:hover {
  background: rgba(16, 185, 129, 0.1);
  border-color: var(--border-highlight);
  color: #ffffff;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* ==========================================================================
   CALCULATOR SECTION
   ========================================================================== */
.calculator-section {
  padding: 100px 0;
  position: relative;
}

.program-presets-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 40px;
}

.preset-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.preset-tab .preset-rate {
  background: rgba(255, 255, 255, 0.08);
  padding: 3px 8px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  color: var(--text-main);
}

.preset-tab:hover {
  border-color: rgba(16, 185, 129, 0.4);
  color: #ffffff;
  transform: translateY(-2px);
}

.preset-tab.active {
  background: rgba(16, 185, 129, 0.15);
  border-color: var(--primary-emerald);
  color: #ffffff;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.25);
}

.preset-tab.active .preset-rate {
  background: var(--primary-emerald);
  color: #ffffff;
}

.calculator-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px;
}

.calc-controls-card, .calc-results-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--shadow-md);
}

.calc-control-group {
  margin-bottom: 28px;
}

.control-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.control-label-row label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
}

.downpayment-percent-badge {
  background: rgba(16, 185, 129, 0.2);
  color: var(--primary-emerald-light);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  margin-left: 6px;
}

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

.calc-text-input {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  padding: 8px 32px 8px 12px;
  text-align: right;
  width: 170px;
  transition: var(--transition-fast);
}

.calc-text-input:focus {
  outline: none;
  border-color: var(--primary-emerald);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

.input-currency {
  position: absolute;
  right: 12px;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 600;
  pointer-events: none;
}

/* Custom Styled Range Sliders */
.custom-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  outline: none;
  cursor: pointer;
  transition: var(--transition-fast);
}

.custom-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary-emerald);
  box-shadow: 0 0 10px var(--primary-emerald);
  cursor: pointer;
  transition: transform var(--transition-fast), background var(--transition-fast);
  border: 3px solid #0b1221;
}

.custom-range::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  background: var(--primary-emerald-light);
}

.custom-range::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary-emerald);
  box-shadow: 0 0 10px var(--primary-emerald);
  cursor: pointer;
  border: 3px solid #0b1221;
}

.range-limits {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  font-size: 0.75rem;
  color: var(--text-dark);
  font-weight: 500;
}

.range-hint-badge {
  color: var(--primary-emerald);
  background: rgba(16, 185, 129, 0.12);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.73rem;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

/* Checkbox */
.calc-options-row {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
}

.custom-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-muted);
  user-select: none;
}

.custom-checkbox input {
  display: none;
}

.checkmark {
  width: 20px;
  height: 20px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.custom-checkbox input:checked + .checkmark {
  background: var(--primary-emerald);
  border-color: var(--primary-emerald);
}

.custom-checkbox input:checked + .checkmark::after {
  content: '✓';
  color: #ffffff;
  font-size: 13px;
  font-weight: bold;
}

/* Results Column Card */
.calc-results-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-color: rgba(16, 185, 129, 0.25);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.9) 0%, rgba(10, 16, 30, 0.95) 100%);
}

.results-header {
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 20px;
}

.results-tag {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.monthly-payment-highlight {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 6px;
}

.payment-number {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--primary-emerald-light);
  line-height: 1;
}

.payment-currency {
  font-size: 1.1rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Chart and Legend Box */
.chart-and-legend-box {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 28px 0;
}

.doughnut-container {
  position: relative;
  width: 140px;
  height: 140px;
  flex-shrink: 0;
}

.doughnut-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.chart-bg-circle {
  fill: none;
  stroke: rgba(255, 255, 255, 0.06);
  stroke-width: 18;
}

.chart-principal-circle {
  fill: none;
  stroke: var(--primary-emerald);
  stroke-width: 18;
  stroke-dasharray: 408;
  stroke-dashoffset: 200;
  transition: stroke-dashoffset 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.chart-interest-circle {
  fill: none;
  stroke: var(--accent-gold);
  stroke-width: 18;
  stroke-dasharray: 408;
  stroke-dashoffset: 408;
  transition: stroke-dashoffset 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.chart-center-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.center-percent {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
}

.center-label {
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
}

.chart-legend-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.legend-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.legend-color-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 6px;
  flex-shrink: 0;
}

.principal-dot { background-color: var(--primary-emerald); }
.interest-dot { background-color: var(--accent-gold); }
.downpayment-dot { background-color: #38bdf8; }

.legend-text {
  display: flex;
  flex-direction: column;
}

.legend-name {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.legend-val {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
}

.required-income-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: var(--radius-md);
  margin-bottom: 24px;
}

.income-icon {
  width: 22px;
  height: 22px;
  color: var(--accent-gold);
  flex-shrink: 0;
}

.income-info {
  display: flex;
  flex-direction: column;
}

.income-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.income-amount {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent-gold-light);
}

.calc-action-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ==========================================================================
   PROGRAMS SECTION
   ========================================================================== */
.programs-section {
  padding: 100px 0;
  position: relative;
}

.programs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.program-card {
  position: relative;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 32px 26px;
  display: flex;
  flex-direction: column;
  transition: var(--transition-normal);
  overflow: hidden;
}

.program-card:hover {
  transform: translateY(-8px);
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.6);
}

.program-card.featured {
  border-color: rgba(16, 185, 129, 0.5);
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.08) 0%, rgba(15, 23, 42, 0.8) 100%);
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.15);
}

.featured-ribbon {
  position: absolute;
  top: 14px;
  right: -30px;
  background: var(--primary-emerald);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 4px 34px;
  transform: rotate(45deg);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.program-glow {
  position: absolute;
  top: -50px;
  left: 50%;
  transform: translateX(-50%);
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.2), transparent 70%);
  pointer-events: none;
}

.program-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.program-icon-box {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-emerald-light);
}

.program-icon-box svg {
  width: 22px;
  height: 22px;
}

.program-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-gold);
  background: rgba(245, 158, 11, 0.12);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.program-name {
  font-size: 1.35rem;
  margin-bottom: 14px;
  font-weight: 700;
}

.program-rate-banner {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 20px;
}

.rate-from {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.rate-val {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
}

.rate-year {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.program-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
  flex: 1;
}

.program-features li {
  font-size: 0.875rem;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.check-icon {
  color: var(--primary-emerald);
  font-weight: bold;
}

/* ==========================================================================
   ADVANTAGES SECTION (4 PILLARS)
   ========================================================================== */
.advantages-section {
  padding: 100px 0;
  position: relative;
  background: linear-gradient(180deg, rgba(7, 10, 17, 0) 0%, rgba(15, 23, 42, 0.4) 50%, rgba(7, 10, 17, 0) 100%);
}

.advantages-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: center;
}

.adv-image-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.adv-img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: var(--radius-xl);
  display: block;
  border: 1px solid var(--border-subtle);
}

.adv-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(7, 10, 17, 0.8) 100%);
}

.adv-stat-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  padding: 20px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 16px;
}

.adv-stat-num {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--primary-emerald-light);
  line-height: 1;
}

.adv-stat-text {
  font-size: 0.9rem;
  font-weight: 600;
  color: #ffffff;
}

.pillars-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.pillar-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  transition: var(--transition-normal);
}

.pillar-item:hover {
  border-color: rgba(16, 185, 129, 0.35);
  transform: translateX(6px);
  background: var(--bg-card-hover);
}

.pillar-number {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent-gold);
  background: rgba(245, 158, 11, 0.1);
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pillar-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.pillar-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ==========================================================================
   QUIZ SECTION
   ========================================================================== */
.quiz-section {
  padding: 100px 0;
}

.quiz-card-wrapper {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(20, 30, 55, 0.7) 100%);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-xl);
  padding: 50px 40px;
  max-width: 960px;
  margin: 0 auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.quiz-steps-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 30px;
  margin-bottom: 40px;
}

.step-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--text-muted);
  transition: var(--transition-fast);
}

.step-circle.active {
  background: var(--primary-emerald);
  border-color: var(--primary-emerald);
  color: #ffffff;
  box-shadow: 0 0 15px var(--primary-emerald-glow);
}

.step-line {
  width: 80px;
  height: 2px;
  background: var(--border-subtle);
  transition: var(--transition-fast);
}

.step-line.active {
  background: var(--primary-emerald);
}

.quiz-step-pane {
  display: none;
  animation: fadeIn 0.4s ease-in-out;
}

.quiz-step-pane.active {
  display: block;
}

.quiz-question-title {
  font-size: 1.4rem;
  text-align: center;
  margin-bottom: 32px;
  font-weight: 700;
}

.quiz-options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.quiz-opt-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px;
  background: rgba(11, 18, 33, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-fast);
  text-align: left;
}

.quiz-opt-card:hover {
  background: rgba(16, 185, 129, 0.1);
  border-color: var(--primary-emerald);
  transform: translateY(-3px);
}

.opt-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.opt-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}

.opt-hint {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.quiz-result-header {
  display: flex;
  align-items: center;
  gap: 24px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 32px;
}

.score-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--primary-emerald);
  border-radius: 12px;
  padding: 12px 20px;
  color: #ffffff;
  flex-shrink: 0;
}

.score-num {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1;
}

.score-text {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.score-congrats h4 {
  font-size: 1.25rem;
  margin-bottom: 4px;
  color: var(--primary-emerald-light);
}

.score-congrats p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.quiz-inputs-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
}

.form-control {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 1rem;
  padding: 14px 18px;
  transition: var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-emerald);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.3);
}

.form-disclaimer {
  display: block;
  font-size: 0.78rem;
  color: var(--text-dark);
  text-align: center;
  margin-top: 14px;
}

.manager-promise-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(245, 158, 11, 0.08) 100%);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin: 16px 0 20px;
}

.promise-icon-bubble {
  font-size: 1.2rem;
  line-height: 1;
  flex-shrink: 0;
  background: rgba(16, 185, 129, 0.2);
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.promise-text {
  font-size: 0.86rem;
  color: #e2e8f0;
  line-height: 1.45;
  font-weight: 500;
}

.messenger-contact-input::placeholder {
  color: #64748b;
  font-size: 0.9rem;
}

/* ==========================================================================
   ROADMAP SECTION
   ========================================================================== */
.roadmap-section {
  padding: 100px 0;
}

.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.step-card {
  position: relative;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 36px 24px;
  display: flex;
  flex-direction: column;
  transition: var(--transition-normal);
}

.step-card:hover {
  border-color: var(--primary-emerald);
  transform: translateY(-6px);
}

.step-card-num {
  position: absolute;
  top: 20px;
  right: 24px;
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.08);
}

.step-icon-circle {
  width: 50px;
  height: 50px;
  background: rgba(16, 185, 129, 0.12);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-emerald-light);
  margin-bottom: 24px;
}

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

.step-title {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.step-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   TESTIMONIALS SECTION
   ========================================================================== */
.reviews-section {
  padding: 100px 0;
  background: rgba(15, 23, 42, 0.3);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.review-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition-normal);
}

.review-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.2);
}

.review-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.review-stars {
  color: var(--accent-gold);
  letter-spacing: 2px;
  font-size: 1.1rem;
}

.review-date {
  font-size: 0.78rem;
  color: var(--text-dark);
}

.review-quote {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 24px;
  font-style: italic;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.author-avatar-badge {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #10b981 0%, #047857 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #ffffff;
  font-size: 0.9rem;
}

.author-details {
  display: flex;
  flex-direction: column;
}

.author-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
}

.author-deal {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.review-metrics-tag {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 0.85rem;
  color: var(--primary-emerald-light);
}

/* ==========================================================================
   FAQ SECTION
   ========================================================================== */
.faq-section {
  padding: 100px 0;
}

.faq-accordion-list {
  max-width: 840px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition-fast);
}

.faq-item.active {
  border-color: rgba(16, 185, 129, 0.4);
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 20px 24px;
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  gap: 16px;
}

.faq-icon {
  font-size: 1.4rem;
  color: var(--primary-emerald-light);
  transition: transform var(--transition-fast);
  flex-shrink: 0;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease-out;
  padding: 0 24px;
}

.faq-item.active .faq-answer {
  max-height: 250px;
  padding-bottom: 20px;
}

.faq-answer p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ==========================================================================
   VIP CONSULTATION / LEAD SECTION
   ========================================================================== */
.consultation-section {
  padding: 100px 0;
}

.consultation-card {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(15, 23, 42, 0.9) 100%);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-xl);
  padding: 60px 50px;
  box-shadow: var(--shadow-lg);
}

.consultation-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
}

.consult-title {
  font-size: clamp(2rem, 3vw, 2.5rem);
  margin-top: 16px;
  margin-bottom: 16px;
}

.consult-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.65;
}

.consult-perks-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.perk-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: #ffffff;
  font-weight: 500;
}

.perk-icon {
  font-size: 1.25rem;
}

.consult-glass-form-box {
  background: rgba(11, 18, 33, 0.85);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px;
}

.form-title {
  font-size: 1.35rem;
  margin-bottom: 20px;
  font-weight: 700;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: #04060a;
  border-top: 1px solid var(--border-subtle);
  padding: 80px 0 30px;
}

.footer-top-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-about {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 16px;
  margin-bottom: 24px;
  line-height: 1.6;
  max-width: 320px;
}

.footer-socials {
  display: flex;
  gap: 16px;
}

.social-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition-fast);
}

.social-link:hover {
  color: var(--primary-emerald-light);
}

.footer-col-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #ffffff;
}

.footer-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-menu a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.footer-menu a:hover {
  color: var(--primary-emerald-light);
  transform: translateX(3px);
  display: inline-block;
}

.footer-contact-item {
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
}

.contact-label {
  font-size: 0.75rem;
  color: var(--text-dark);
}

.contact-value {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.contact-value:hover {
  color: var(--primary-emerald-light);
}

.footer-bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.8rem;
  color: var(--text-dark);
  flex-wrap: wrap;
  gap: 16px;
}

.footer-legal-links {
  display: flex;
  gap: 20px;
}

.footer-legal-links a {
  color: var(--text-dark);
  text-decoration: none;
  transition: var(--transition-fast);
}

.footer-legal-links a:hover {
  color: var(--text-muted);
}

/* ==========================================================================
   MODALS
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 6, 10, 0.85);
  backdrop-filter: blur(12px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-backdrop.open {
  display: flex;
  opacity: 1;
}

.modal-box {
  background: #0e1626;
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-xl);
  max-width: 520px;
  width: 100%;
  padding: 36px;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.open .modal-box {
  transform: scale(1);
}

.schedule-modal-box {
  max-width: 820px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.modal-title {
  font-size: 1.4rem;
  font-weight: 700;
}

.modal-close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  transition: var(--transition-fast);
}

.modal-close-btn:hover {
  color: #ffffff;
}

.modal-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.5;
}

.calc-preset-summary-box {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
}

.summary-line {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.summary-line strong {
  display: block;
  font-size: 1rem;
  color: #ffffff;
}

/* Schedule Table */
.schedule-summary-bar {
  display: flex;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.04);
  padding: 14px 20px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.schedule-summary-bar strong {
  color: #ffffff;
  margin-left: 4px;
}

.table-scroll-wrap {
  max-height: 380px;
  overflow-y: auto;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-bottom: 24px;
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  text-align: right;
  font-size: 0.88rem;
}

.schedule-table th, .schedule-table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.schedule-table th:first-child, .schedule-table td:first-child {
  text-align: left;
}

.schedule-table th {
  background: #0b1220;
  position: sticky;
  top: 0;
  font-weight: 600;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.schedule-table tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
}

/* ==========================================================================
   TOAST NOTIFICATIONS
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.toast-item {
  background: #0e1c2e;
  border: 1px solid var(--primary-emerald);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  color: #ffffff;
  font-size: 0.92rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: slideInRight 0.35s ease forwards;
}

.toast-item.toast-gold {
  background: linear-gradient(135deg, #181c2e 0%, #201b10 100%);
  border: 1px solid #f59e0b;
  box-shadow: 0 10px 30px rgba(245, 158, 11, 0.25);
  color: #fef3c7;
}

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ==========================================================================
   FLOATING ACTION BUTTON
   ========================================================================== */
.floating-quick-action {
  position: fixed;
  bottom: 28px;
  left: 28px;
  z-index: 90;
}

.quick-call-btn {
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border: none;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.5);
  transition: transform var(--transition-fast);
}

.quick-call-btn:hover {
  transform: scale(1.1);
}

.quick-call-btn svg {
  width: 26px;
  height: 26px;
}

.quick-pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--primary-emerald);
  animation: ripple 2s infinite ease-out;
  pointer-events: none;
}

@keyframes ripple {
  0% { transform: scale(0.9); opacity: 1; }
  100% { transform: scale(1.5); opacity: 0; }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   COMPLEX CASES SECTION
   ========================================================================== */
.complex-cases-section {
  padding: 100px 0;
  position: relative;
}

.complex-cases-card {
  position: relative;
  background: linear-gradient(180deg, rgba(20, 27, 45, 0.85) 0%, rgba(11, 16, 28, 0.95) 100%);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-xl);
  padding: 56px 48px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
  overflow: hidden;
}

.complex-glow {
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.15), transparent 70%);
  pointer-events: none;
}

.warning-badge {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.35);
  color: var(--accent-gold-light);
}

.badge-dot.orange {
  background-color: var(--accent-gold);
  box-shadow: 0 0 8px var(--accent-gold);
}

.highlight-sub {
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
  margin-top: 12px;
  margin-bottom: 20px;
}

.complex-intro-texts {
  max-width: 860px;
  margin: 0 auto 40px;
}

.complex-main-desc {
  font-size: 1.08rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 14px;
}

.complex-sub-desc {
  font-size: 1.08rem;
  color: #e2e8f0;
  line-height: 1.7;
  font-weight: 500;
}

.complex-help-heading {
  margin-bottom: 28px;
}

.complex-help-heading h3 {
  font-size: 1.3rem;
  color: var(--accent-gold-light);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.complex-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.complex-item-card {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 26px;
  background: rgba(11, 18, 33, 0.75);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  transition: var(--transition-normal);
  backdrop-filter: blur(12px);
}

.complex-item-card:hover {
  border-color: rgba(245, 158, 11, 0.45);
  transform: translateY(-5px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.5);
  background: rgba(18, 28, 50, 0.85);
}

.complex-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(245, 158, 11, 0.12);
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

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

.complex-item-content h4 {
  font-size: 1.08rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #ffffff;
  line-height: 1.35;
}

.complex-item-content p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.complex-bottom-banner {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(16, 185, 129, 0.08) 100%);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-xl);
  padding: 38px 44px;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 36px;
  align-items: center;
}

.banner-badge {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-gold-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.banner-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
  line-height: 1.35;
}

.banner-quote {
  font-size: 1.05rem;
  color: var(--primary-emerald-light);
  font-style: italic;
  font-weight: 600;
  line-height: 1.5;
}

.action-caption {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 18px;
  line-height: 1.5;
}

/* ==========================================================================
   FOOTER REQUISITES & LEGAL MODALS
   ========================================================================== */
.footer-requisites-bar {
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 12px;
}

.req-text {
  font-size: 0.78rem;
  color: #475569;
  line-height: 1.6;
}

.legal-btn {
  background: none;
  border: none;
  color: var(--text-dark);
  font-size: 0.8rem;
  cursor: pointer;
  padding: 0;
  transition: var(--transition-fast);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-btn:hover {
  color: var(--primary-emerald-light);
}

.legal-modal-box {
  max-width: 680px;
}

.legal-modal-content {
  max-height: 420px;
  overflow-y: auto;
  padding-right: 12px;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.legal-modal-content h4 {
  color: #ffffff;
  margin-top: 18px;
  margin-bottom: 8px;
  font-size: 1rem;
}

.legal-modal-content p {
  margin-bottom: 12px;
}

/* ==========================================================================
   HEADER CONTACT MANAGER BUTTON & MODAL
   ========================================================================== */
.header-manager-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #ffffff;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-normal);
  text-decoration: none;
  backdrop-filter: blur(8px);
}

.header-manager-btn:hover {
  background: rgba(16, 185, 129, 0.2);
  border-color: var(--primary-emerald-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px var(--primary-emerald-glow);
  color: #ffffff;
}

.online-indicator-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--primary-emerald);
  box-shadow: 0 0 8px var(--primary-emerald);
  animation: pulseGreen 2s infinite ease-in-out;
}

.chat-bubble-icon {
  width: 17px;
  height: 17px;
  color: var(--primary-emerald-light);
}

.status-pulse-green {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #10b981;
  box-shadow: 0 0 8px #10b981;
  margin-right: 6px;
  animation: pulseGreen 1.8s infinite ease-in-out;
}

@keyframes pulseGreen {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 12px #10b981; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

.manager-modal-box {
  max-width: 580px;
}

.manager-modal-title-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.manager-online-status {
  font-size: 0.8rem;
  color: var(--primary-emerald-light);
  display: flex;
  align-items: center;
  font-weight: 500;
}

.manager-modal-intro {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 20px;
}

.messenger-choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.messenger-card {
  display: flex;
  flex-direction: column;
  padding: 22px 20px;
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: var(--transition-normal);
  border: 1px solid var(--border-subtle);
  background: rgba(11, 18, 33, 0.85);
  position: relative;
  overflow: hidden;
}

.messenger-card:hover {
  transform: translateY(-4px);
}

.whatsapp-card {
  border-color: rgba(37, 211, 102, 0.3);
  background: linear-gradient(180deg, rgba(37, 211, 102, 0.08) 0%, rgba(11, 18, 33, 0.9) 100%);
}

.whatsapp-card:hover {
  border-color: #25D366;
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.25);
}

.telegram-card {
  border-color: rgba(34, 158, 217, 0.3);
  background: linear-gradient(180deg, rgba(34, 158, 217, 0.08) 0%, rgba(11, 18, 33, 0.9) 100%);
}

.telegram-card:hover {
  border-color: #229ED9;
  box-shadow: 0 12px 30px rgba(34, 158, 217, 0.25);
}

.messenger-card-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.wa-icon-wrap {
  background: rgba(37, 211, 102, 0.15);
  color: #25D366;
  border: 1px solid rgba(37, 211, 102, 0.3);
}

.tg-icon-wrap {
  background: rgba(34, 158, 217, 0.15);
  color: #229ED9;
  border: 1px solid rgba(34, 158, 217, 0.3);
}

.messenger-svg {
  width: 26px;
  height: 26px;
}

.messenger-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.messenger-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
}

.messenger-tag {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.wa-tag {
  background: rgba(37, 211, 102, 0.2);
  color: #25D366;
}

.tg-tag {
  background: rgba(34, 158, 217, 0.2);
  color: #229ED9;
}

.messenger-phone-number {
  font-size: 0.92rem;
  color: #e2e8f0;
  font-weight: 600;
  margin-bottom: 10px;
}

.messenger-action-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.whatsapp-card:hover .messenger-action-hint {
  color: #25D366;
}

.telegram-card:hover .messenger-action-hint {
  color: #229ED9;
}

.manager-modal-phone-bar {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.direct-call-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.phone-label {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.phone-link {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-emerald-light);
  text-decoration: none;
}

.phone-link:hover {
  text-decoration: underline;
}

.footer-manager-action {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--primary-emerald-light);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-fast);
  margin-top: 4px;
  margin-bottom: 4px;
  display: inline-block;
}

.footer-manager-action:hover {
  background: rgba(16, 185, 129, 0.25);
  color: #ffffff;
}

.highlight-num {
  font-weight: 700;
  color: #ffffff !important;
}

.quick-badge-online {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #10b981;
  border: 2px solid var(--bg-dark);
  box-shadow: 0 0 6px #10b981;
}

.quick-msg-icon {
  width: 24px;
  height: 24px;
}

/* ==========================================================================
   COOKIE CONSENT BANNER
   ========================================================================== */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(150%);
  background: rgba(14, 22, 38, 0.96);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-lg);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: var(--shadow-lg);
  z-index: 1500;
  max-width: 640px;
  width: calc(100% - 32px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-banner.show {
  transform: translateX(-50%) translateY(0);
}

.cookie-content {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.cookie-icon {
  font-size: 1.5rem;
}

.cookie-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* ==========================================================================
   NAV ACTIVE STATE & HEADER SHADOW
   ========================================================================== */
.site-header.scrolled {
  background: rgba(5, 8, 14, 0.95);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  border-bottom-color: rgba(16, 185, 129, 0.2);
}

.nav-link.active {
  color: var(--primary-emerald-light);
}

.nav-link.active::after {
  width: 100%;
}

/* ==========================================================================
   RESPONSIVE DESIGN BREAKPOINTS
   ========================================================================== */

/* 1. Large Screens & Laptops (<= 1380px) */
@media (max-width: 1380px) {
  .desktop-nav {
    display: none !important;
  }

  .mobile-menu-toggle {
    display: flex !important;
  }

  .header-manager-btn {
    display: none !important;
  }
}

/* 2. Tablets & Small Laptops (<= 1100px) */
@media (max-width: 1100px) {
  .programs-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .footer-top-row {
    grid-template-columns: 1fr 1fr;
  }
}

/* 3. Medium Tablets (<= 900px) */
@media (max-width: 900px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .calculator-grid {
    grid-template-columns: 1fr;
  }

  .complex-bottom-banner {
    grid-template-columns: 1fr;
    padding: 30px 24px;
  }

  .advantages-layout {
    grid-template-columns: 1fr;
  }

  .adv-img {
    height: 360px;
  }

  .reviews-grid {
    grid-template-columns: 1fr;
  }

  .consultation-grid {
    grid-template-columns: 1fr;
  }

  #headerConsultBtn {
    display: none;
  }
}

/* 4. Small Tablets & Phones (<= 768px) */
@media (max-width: 768px) {
  .floating-glass-card {
    position: static;
    margin-top: 14px;
    width: 100%;
    box-sizing: border-box;
  }
}

/* 5. Mobile Phones (<= 600px) */
@media (max-width: 600px) {
  .header-container {
    padding: 10px 14px;
  }

  .logo-title {
    font-size: 1.05rem;
  }

  .logo-subtitle {
    font-size: 0.55rem;
  }

  .logo-mark {
    width: 36px;
    height: 36px;
  }

  .mark-number {
    font-size: 1.3rem;
  }

  .header-actions {
    gap: 6px;
  }

  .header-auth-btn,
  .header-worker-btn {
    padding: 6px 10px;
    font-size: 0.76rem;
  }

  .lang-btn {
    padding: 3px 4px;
    font-size: 0.75rem;
  }

  .programs-grid {
    grid-template-columns: 1fr;
  }

  .complex-grid {
    grid-template-columns: 1fr;
  }

  .complex-cases-card {
    padding: 32px 20px;
  }

  .roadmap-grid {
    grid-template-columns: 1fr;
  }

  .quiz-options-grid {
    grid-template-columns: 1fr;
  }

  .quiz-inputs-row {
    grid-template-columns: 1fr;
  }

  .hero-metrics {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .metric-divider {
    display: none;
  }

  .chart-and-legend-box {
    flex-direction: column;
    text-align: center;
  }

  .footer-top-row {
    grid-template-columns: 1fr;
  }

  .header-phone {
    display: none;
  }

  .calc-controls-card, .calc-results-card {
    padding: 24px 18px;
  }

  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .cookie-content {
    flex-direction: column;
  }

  .messenger-choice-grid {
    grid-template-columns: 1fr;
  }

  .manager-modal-phone-bar {
    flex-direction: column;
    text-align: center;
  }
}

/* ==========================================================================
   AUTH + WORKER PANEL
   ========================================================================== */
.header-auth-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-auth-btn,
.header-worker-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: #ffffff;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-fast);
}

.header-auth-btn.logged-in {
  border-color: rgba(16, 185, 129, 0.4);
  color: var(--primary-emerald-light);
}

.header-worker-btn {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.25) 0%, rgba(217, 119, 6, 0.35) 100%);
  border: 1px solid rgba(245, 158, 11, 0.65);
  color: #fbbf24;
  font-weight: 800;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.3);
  animation: pulseGoldBtn 2.4s infinite ease-in-out;
}

@keyframes pulseGoldBtn {
  0%, 100% { box-shadow: 0 0 10px rgba(245, 158, 11, 0.25); }
  50% { box-shadow: 0 0 22px rgba(245, 158, 11, 0.6); border-color: #fbbf24; }
}

.header-auth-btn:hover,
.header-worker-btn:hover {
  transform: translateY(-2px);
}

.auth-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #ffffff;
  animation: spinAuth 0.6s linear infinite;
  margin-right: 8px;
  vertical-align: middle;
}

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

.auth-account-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #0e1626;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  min-width: 140px;
  z-index: 120;
  overflow: hidden;
}

.auth-account-menu.open {
  display: block;
}

.auth-account-menu button {
  width: 100%;
  background: none;
  border: none;
  color: #fff;
  text-align: left;
  padding: 12px 16px;
  cursor: pointer;
  font-size: 0.88rem;
}

.auth-account-menu button:hover {
  background: rgba(255, 255, 255, 0.06);
}

.auth-error {
  color: #f87171;
  font-size: 0.85rem;
  margin: 0 0 12px;
  background: rgba(248, 113, 113, 0.1);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(248, 113, 113, 0.25);
}

.auth-tabs-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  padding: 4px;
  border-radius: var(--radius-md);
  margin-bottom: 18px;
  border: 1px solid var(--border-subtle);
}

.auth-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.auth-tab-btn.active {
  background: var(--primary-emerald);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.4);
}

.auth-tab-btn:hover:not(.active) {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.auth-switch-row {
  margin-top: 16px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.auth-modal-box {
  max-width: 440px;
}

.worker-panel {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1600;
  background: rgba(4, 6, 10, 0.92);
  padding: 24px;
  overflow: auto;
}

.worker-panel.open {
  display: block;
}

.worker-panel-inner {
  max-width: 1100px;
  margin: 0 auto;
  background: #0e1626;
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: var(--radius-xl);
  padding: 28px;
}

.worker-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.worker-panel-head h2 {
  font-size: 1.5rem;
  margin-bottom: 6px;
}

.worker-panel-head p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.worker-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.worker-totals {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.worker-stat {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.worker-stat span {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
}

.worker-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.worker-tab {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  font-weight: 600;
}

.worker-tab.active {
  color: #fff;
  border-color: var(--primary-emerald);
  background: rgba(16, 185, 129, 0.15);
}

.worker-pane {
  display: none;
}

.worker-pane.active {
  display: block;
}

.worker-table-wrap {
  max-height: 52vh;
}

.role-pill {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
}

.role-pill.worker {
  color: var(--accent-gold-light);
  background: rgba(245, 158, 11, 0.15);
}

.role-pill.visitor {
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.06);
}

body.worker-open {
  overflow: hidden;
}

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

  .header-auth-label-full {
    display: none;
  }
}
