/* =========================================================================
   CURRENCY APP — LANDING PAGE STYLESHEET (FINVARA.UZ)
   1:1 Match with Reference | Precise Orbit Alignment | Compact Cards
   Rotating Subtle Ambient Aura Exclusively Controlled by Accent Color
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Default ambient glow accent: Stone */
  --glow-accent: rgba(120, 113, 108, 0.24);
  --glow-accent-solid: #78716C;

  --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --transition-fast: 0.16s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.26s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =========================================================================
   1. THEME DEFINITIONS (Light is Default)
   ========================================================================= */

:root, [data-theme="light"] {
  --bg-primary: #FFFFFF;
  --bg-secondary: #F8FAFC;
  --bg-tertiary: #F1F5F9;

  /* Shaffof Frosted Glass for Cards */
  --bg-card: rgba(255, 255, 255, 0.52);
  --bg-card-hover: rgba(255, 255, 255, 0.68);
  --bg-card-solid: #FFFFFF;

  --border-subtle: rgba(15, 23, 42, 0.08);
  --border-medium: rgba(15, 23, 42, 0.14);

  /* Orbit rings: All clean, uniform, subtle grey lines (NO blue arc!) */
  --border-orbit: rgba(15, 23, 42, 0.11);

  --text-main: #0B0F19;
  --text-muted: #64748B;
  --text-light: #94A3B8;

  --nav-bg: rgba(255, 255, 255, 0.92);
  --nav-border: rgba(15, 23, 42, 0.08);

  --btn-contact-bg: #0B0F19;
  --btn-contact-text: #FFFFFF;
  --btn-contact-hover: #1E293B;

  --orbit-slot-bg: #FFFFFF;
  --orbit-slot-border: rgba(15, 23, 42, 0.12);
  --orbit-slot-shadow: 0 4px 14px rgba(0, 0, 0, 0.07), 0 1px 3px rgba(0, 0, 0, 0.03);

  --card-shadow: 0 10px 28px -8px rgba(15, 23, 42, 0.07), 0 0 0 1px rgba(15, 23, 42, 0.05);

  --modal-bg: #FFFFFF;
  --modal-border: rgba(15, 23, 42, 0.12);
  --modal-shadow: 0 24px 60px -12px rgba(15, 23, 42, 0.22), 0 0 0 1px rgba(15, 23, 42, 0.06);

  --brand-strip-color: #475569;
  --brand-strip-hover: #0B0F19;
}

[data-theme="dark"] {
  --bg-primary: #0A0D14;
  --bg-secondary: #0F1420;
  --bg-tertiary: #161D2E;

  --bg-card: rgba(18, 24, 38, 0.46);
  --bg-card-hover: rgba(24, 32, 50, 0.62);
  --bg-card-solid: #121826;

  --border-subtle: rgba(255, 255, 255, 0.09);
  --border-medium: rgba(255, 255, 255, 0.16);

  --border-orbit: rgba(255, 255, 255, 0.11);

  --text-main: #FFFFFF;
  --text-muted: #94A3B8;
  --text-light: #64748B;

  --nav-bg: rgba(10, 13, 20, 0.88);
  --nav-border: rgba(255, 255, 255, 0.08);

  --btn-contact-bg: #FFFFFF;
  --btn-contact-text: #0A0D14;
  --btn-contact-hover: #E2E8F0;

  --orbit-slot-bg: #FFFFFF;
  --orbit-slot-border: rgba(255, 255, 255, 0.28);
  --orbit-slot-shadow: 0 4px 16px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.16);

  --card-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.08);

  --modal-bg: #101522;
  --modal-border: rgba(255, 255, 255, 0.14);
  --modal-shadow: 0 25px 65px -12px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.1);

  --brand-strip-color: #FFFFFF;
  --brand-strip-hover: #FFFFFF;
}

[data-theme="oled"] {
  --bg-primary: #000000;
  --bg-secondary: #050505;
  --bg-tertiary: #0D0D0D;

  --bg-card: rgba(12, 12, 12, 0.52);
  --bg-card-hover: rgba(18, 18, 18, 0.7);
  --bg-card-solid: #0A0A0A;

  --border-subtle: rgba(255, 255, 255, 0.12);
  --border-medium: rgba(255, 255, 255, 0.22);

  --border-orbit: rgba(255, 255, 255, 0.13);

  --text-main: #FFFFFF;
  --text-muted: #A1A1AA;
  --text-light: #71717A;

  --nav-bg: rgba(0, 0, 0, 0.92);
  --nav-border: rgba(255, 255, 255, 0.12);

  --btn-contact-bg: #FFFFFF;
  --btn-contact-text: #000000;
  --btn-contact-hover: #F4F4F5;

  --orbit-slot-bg: #FFFFFF;
  --orbit-slot-border: rgba(255, 255, 255, 0.35);
  --orbit-slot-shadow: 0 4px 18px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.22);

  --card-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.12);

  --modal-bg: #09090B;
  --modal-border: rgba(255, 255, 255, 0.18);
  --modal-shadow: 0 25px 65px -12px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(255, 255, 255, 0.14);

  --brand-strip-color: #FFFFFF;
  --brand-strip-hover: #FFFFFF;
}

/* =========================================================================
   2. RESET & BASE
   ========================================================================= */

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

html, body {
  min-height: 100vh;
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-main);
  transition: background-color var(--transition-smooth), color var(--transition-smooth);
  overflow-x: hidden;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

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

button {
  background: none;
  border: none;
  font-family: inherit;
  cursor: pointer;
  color: inherit;
}

.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* =========================================================================
   3. AERO-GLASS
   ========================================================================= */

.aero-glass {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transform: translateZ(0);
  will-change: transform;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--card-shadow);
}

/* =========================================================================
   4. NAVBAR (Sal to'rtburchak - Rounded Rect 12px)
   ========================================================================= */

.navbar-wrapper {
  position: relative;
  z-index: 100;
  padding: 14px 20px 0;
  width: 100%;
}

.navbar {
  max-width: 1040px;
  margin: 0 auto;
  background: var(--nav-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transform: translateZ(0);
  border: 1px solid var(--nav-border);
  border-radius: 12px;
  padding: 8px 14px 8px 16px;
  box-shadow: 0 4px 20px -4px rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.nav-brand-icon {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  flex-shrink: 0;
}

.nav-brand-icon img,
.nav-brand-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.nav-brand-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text-main);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition-fast);
  cursor: pointer;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-main);
}

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

.btn-signin {
  font-family: var(--font-body);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-main);
  padding: 6px 14px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
}

.btn-signin:hover {
  background: rgba(15, 23, 42, 0.08);
  border-color: var(--border-medium);
}

[data-theme="dark"] .btn-signin:hover,
[data-theme="oled"] .btn-signin:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-contact {
  font-family: var(--font-body);
  font-size: 0.86rem;
  font-weight: 600;
  background: var(--btn-contact-bg);
  color: var(--btn-contact-text);
  padding: 6px 16px;
  border-radius: 8px;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-contact:hover {
  background: var(--btn-contact-hover);
  transform: translateY(-1px);
}

/* =========================================================================
   4.5 PRODUCTS MODAL (Features & Statistical Modules)
   ========================================================================= */

body.modal-open {
  overflow: hidden;
}

body.modal-open .hero-glow-aura {
  animation-play-state: paused !important;
}

.products-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 250;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-smooth);
}

.products-modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.products-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -48%) scale(0.96);
  width: 740px;
  max-width: calc(100vw - 32px);
  max-height: 85vh;
  border-radius: 18px;
  padding: 24px 26px;
  z-index: 260;
  opacity: 0;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  background: var(--modal-bg);
  border: 1px solid var(--modal-border);
  box-shadow: var(--modal-shadow);
  transition: transform var(--transition-smooth), opacity var(--transition-smooth);
  will-change: transform, opacity;
  contain: layout;
}

.products-modal.open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.products-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.products-modal-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.products-modal-logo {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
}

.products-modal-logo img {
  width: 100%;
  height: 100%;
  display: block;
}

.products-modal-title-col {
  text-align: left;
}

.products-modal-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 3px;
}

.products-modal-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text-main);
  line-height: 1.2;
}

.products-modal-badge {
  font-family: var(--font-heading);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(120, 113, 108, 0.16);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  letter-spacing: 0.02em;
}

[data-theme="oled"] .products-modal-badge,
[data-theme="dark"] .products-modal-badge {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-light);
}

.products-modal-sub {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.products-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  background: rgba(128, 128, 128, 0.08);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
  flex-shrink: 0;
  cursor: pointer;
}

.products-close-btn:hover {
  color: var(--text-main);
  background: rgba(128, 128, 128, 0.18);
  transform: scale(1.05);
}

.products-modal-body {
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 8px;
  flex: 1;
  /* Butter smooth native hardware-accelerated scrolling */
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  transform: translateZ(0);
  will-change: scroll-position;
  contain: paint;
  scrollbar-width: thin;
  scrollbar-color: rgba(128, 128, 128, 0.28) transparent;
}

/* Custom sleek scrollbar */
.products-modal-body::-webkit-scrollbar {
  width: 5px;
}

.products-modal-body::-webkit-scrollbar-track {
  background: transparent;
}

.products-modal-body::-webkit-scrollbar-thumb {
  background: rgba(128, 128, 128, 0.28);
  border-radius: 9999px;
}

.products-modal-body::-webkit-scrollbar-thumb:hover {
  background: rgba(128, 128, 128, 0.48);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 12px;
}

.product-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 9px;
  background: rgba(128, 128, 128, 0.05);
  border: 1px solid var(--border-subtle);
  font-family: var(--font-body);
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-main);
  line-height: 1.35;
  transition: background var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
  transform: translateZ(0);
}

.product-item:hover {
  background: rgba(128, 128, 128, 0.12);
  border-color: var(--border-medium);
  transform: translate3d(3px, 0, 0);
}

.product-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--glow-accent-solid, #78716C);
  box-shadow: 0 0 6px var(--glow-accent);
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .products-grid {
    grid-template-columns: 1fr;
  }

  .products-modal {
    padding: 18px;
    max-height: 88vh;
  }

  .products-modal-header {
    margin-bottom: 12px;
    padding-bottom: 10px;
  }
}

/* =========================================================================
   4.8 SERVICES POPOVER (Foydalanish shartlari & Maxfiylik siyosati)
   ========================================================================= */

.services-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 220;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-smooth);
}

.services-modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.services-card {
  position: fixed;
  top: 72px;
  left: 50%;
  transform: translate(-50%, -10px) scale(0.97);
  width: 440px;
  max-width: calc(100vw - 32px);
  border-radius: 16px;
  padding: 22px;
  z-index: 230;
  background: var(--modal-bg);
  border: 1px solid var(--modal-border);
  box-shadow: var(--modal-shadow);
  opacity: 0;
  pointer-events: none;
  transition: transform var(--transition-smooth), opacity var(--transition-smooth);
}

.services-card.open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0) scale(1);
}

.services-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.services-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
}

.services-sub {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 3px;
}

.services-close-btn {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  background: rgba(128, 128, 128, 0.08);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
  cursor: pointer;
  flex-shrink: 0;
}

.services-close-btn:hover {
  color: var(--text-main);
  background: rgba(128, 128, 128, 0.18);
  transform: scale(1.05);
}

.services-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.service-link-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(128, 128, 128, 0.05);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
  text-decoration: none;
  cursor: pointer;
}

.service-link-card:hover {
  background: rgba(128, 128, 128, 0.12);
  border-color: var(--border-medium);
  transform: translateY(-2px);
}

.service-link-info {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.service-link-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
}

.service-link-desc {
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.service-link-badge {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(128, 128, 128, 0.1);
  color: var(--text-muted);
  flex-shrink: 0;
  border: 1px solid var(--border-subtle);
}

.service-link-card:hover .service-link-badge {
  color: var(--text-main);
  border-color: var(--border-medium);
}

/* =========================================================================
   4.9 PRICING POPOVER (Tariflar va Narxlar)
   ========================================================================= */

.pricing-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 220;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-smooth);
}

.pricing-modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.pricing-card {
  position: fixed;
  top: 72px;
  left: 50%;
  transform: translate(-50%, -10px) scale(0.97);
  width: 480px;
  max-width: calc(100vw - 32px);
  border-radius: 16px;
  padding: 22px;
  z-index: 230;
  background: var(--modal-bg);
  border: 1px solid var(--modal-border);
  box-shadow: var(--modal-shadow);
  opacity: 0;
  pointer-events: none;
  transition: transform var(--transition-smooth), opacity var(--transition-smooth);
}

.pricing-card.open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0) scale(1);
}

.pricing-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.pricing-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
}

.pricing-sub {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 3px;
}

.pricing-close-btn {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  background: rgba(128, 128, 128, 0.08);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
  cursor: pointer;
  flex-shrink: 0;
}

.pricing-close-btn:hover {
  color: var(--text-main);
  background: rgba(128, 128, 128, 0.18);
  transform: scale(1.05);
}

.pricing-free-card {
  background: rgba(128, 128, 128, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}

.pricing-badge-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pricing-free-badge {
  font-family: var(--font-heading);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(16, 185, 129, 0.14);
  color: #10B981;
  border: 1px solid rgba(16, 185, 129, 0.28);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pricing-highlight-text {
  font-family: var(--font-heading);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.45;
}

.pricing-detail-text {
  font-family: var(--font-body);
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.pricing-cta-btn {
  display: block;
  text-align: center;
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  background: var(--btn-contact-bg);
  color: var(--btn-contact-text);
  padding: 12px 18px;
  border-radius: 10px;
  transition: all var(--transition-fast);
  text-decoration: none;
  margin-top: 4px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.pricing-cta-btn:hover {
  background: var(--btn-contact-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.14);
}

/* =========================================================================
   5. SETTINGS DRAWER / POPOVER
   ========================================================================= */

.settings-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-smooth);
}

.settings-modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.settings-card {
  position: fixed;
  top: 68px;
  right: calc(50% - 190px);
  width: 380px;
  max-width: calc(100vw - 32px);
  border-radius: 14px;
  padding: 20px;
  z-index: 210;
  transform: translateY(-10px) scale(0.97);
  opacity: 0;
  pointer-events: none;
  transition: transform var(--transition-smooth), opacity var(--transition-smooth);
}

.settings-card.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.settings-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
}

.settings-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
}

.settings-close-btn {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.settings-close-btn:hover {
  color: var(--text-main);
  background: rgba(15, 23, 42, 0.06);
}

.settings-section {
  margin-bottom: 16px;
}

.settings-section-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.lang-segment-group,
.theme-segment-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  background: var(--bg-secondary);
  padding: 3px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
}

.lang-btn, .theme-btn {
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: all var(--transition-fast);
}

.lang-btn.active, .theme-btn.active {
  background: var(--bg-card-solid);
  color: var(--text-main);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.color-palette-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}

.palette-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--transition-fast);
  margin: 0 auto;
}

.palette-dot:hover {
  transform: scale(1.15);
}

.palette-dot.active {
  border-color: var(--text-main);
  box-shadow: 0 0 0 2px var(--bg-card);
}

/* =========================================================================
   6. HERO SECTION & ACCURATE CONCENTRIC ORBITS (Inner ring removed, Outer added!)
   ========================================================================= */

.hero-section {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px 20px 16px;
}

/* Expanded Universe: 1300px width/height */
.orbit-universe {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -48%);
  width: 1300px;
  height: 1300px;
  pointer-events: none;
  z-index: 1;
}

/* ROTATING SUBTLE AMBIENT AURA (Exclusively colored by --glow-accent) */
.hero-glow-aura {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    var(--glow-accent, rgba(6, 182, 212, 0.24)) 65deg,
    transparent 150deg,
    var(--glow-accent, rgba(6, 182, 212, 0.24)) 245deg,
    transparent 360deg
  );
  filter: blur(60px);
  -webkit-filter: blur(60px);
  animation: rotateAmbientGlow 22s linear infinite;
  pointer-events: none;
  z-index: 1;
  will-change: transform;
}

@keyframes rotateAmbientGlow {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* Concentric Rings: All uniform, clean grey lines (NO blue arcs!) */
.orbit-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1.2px solid var(--border-orbit);
  box-sizing: border-box;
}

/* Ring 1 (Inner Ring): 780px */
.orbit-ring-1 {
  width: 780px;
  height: 780px;
}

/* Ring 2 (Middle Ring): 1040px */
.orbit-ring-2 {
  width: 1040px;
  height: 1040px;
}

/* Ring 3 (Outer Flanks Ring): 1300px */
.orbit-ring-3 {
  width: 1300px;
  height: 1300px;
}

/* Open Placeholder Nodes (Directly on ring perimeters, framing hero content) */
.orbit-slot {
  position: absolute;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--orbit-slot-bg);
  border: 1px solid var(--orbit-slot-border);
  box-shadow: var(--orbit-slot-shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  transform: translate(-50%, -50%);
  pointer-events: auto;
  cursor: pointer;
  padding: 4px;
  box-sizing: border-box;
  overflow: hidden;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.orbit-slot:hover {
  transform: translate(-50%, -50%) scale(1.18);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

/* Logos inside Orbit Discs */
.slot-logo {
  object-fit: contain;
  display: block;
  user-select: none;
  pointer-events: none;
  transition: transform var(--transition-fast);
}

.orbit-slot:hover .slot-logo {
  transform: scale(1.08);
}

.slot-logo-cbu {
  width: 29px;
  height: 29px;
}

.slot-logo-uzce {
  width: 26px;
  height: 29px;
}

.slot-logo-finlit {
  width: 28px;
  height: 28px;
}

.slot-logo-finvara {
  width: 25px;
  height: 25px;
}

.slot-logo-visa {
  width: 30px;
  height: 20px;
}

.slot-logo-mastercard {
  width: 28px;
  height: 22px;
}

/* Ring 1 Slots (780px - Inner Ring: Aligned with RUB Card level) */
.slot-r1-left { left: 1.01%; top: 60.00%; }
.slot-r1-right { left: 98.99%; top: 60.00%; }

/* Ring 2 Slots (1040px - Middle Ring: Aligned with Subtitle level) */
.slot-r2-left { left: 1.24%; top: 38.94%; }
.slot-r2-right { left: 98.76%; top: 38.94%; }

/* Ring 3 Slots (1300px - Outer Ring: Slightly above Platforms label level) */
.slot-r3-left { left: 1.64%; top: 62.69%; }
.slot-r3-right { left: 98.36%; top: 62.69%; }

/* Hero Core Typography */
.hero-content {
  position: relative;
  z-index: 10;
  max-width: 660px;
  margin: 0 auto;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.2vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.15;
  color: var(--text-main);
  margin-bottom: 10px;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: 0.94rem;
  font-weight: 400;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 20px;
  line-height: 1.55;
}

/* =========================================================================
   7. FLOATING CARDS STACK (Shaffof Frosted Glass & Ultra-Compact)
   ========================================================================= */

.hero-stack-wrap {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 330px;
  margin: 0 auto;
}

.floating-card-stack {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: stretch;
}

.float-card {
  padding: 7px 12px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.float-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.07);
}

/* Flag Icon Container */
.float-flag-icon {
  width: 26px;
  height: 18px;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.16);
  border: 1px solid rgba(0, 0, 0, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: #E2E8F0;
}

.float-flag-icon img,
.float-flag-icon svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.float-card-info {
  text-align: left;
  flex-grow: 1;
}

.float-card-code {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.15;
}

.float-card-name {
  font-size: 0.68rem;
  color: var(--text-muted);
  line-height: 1.15;
}

.float-card-value {
  text-align: right;
  flex-shrink: 0;
}

.float-rate-price {
  font-family: var(--font-heading);
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.15;
}

.float-rate-diff {
  font-size: 0.68rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  line-height: 1.15;
}

.diff-up { color: #10B981; }
.diff-down { color: #EF4444; }

.float-gold-date {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-top: 2px;
}

/* =========================================================================
   8. PLATFORMS STRIP (Crisp white in Dark/OLED, subtle in Light)
   ========================================================================= */

.platforms-strip-section {
  position: relative;
  z-index: 10;
  padding: 14px 0 20px;
  text-align: center;
}

.platform-strip-label {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}

.platforms-strip-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  flex-wrap: wrap;
}

.platform-strip-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand-strip-color);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  padding: 6px 12px;
  border-radius: 8px;
  transition: all var(--transition-fast);
}

.platform-strip-item:hover {
  color: var(--brand-strip-hover);
  background: rgba(15, 23, 42, 0.04);
}

.platform-strip-icon {
  width: 19px;
  height: 19px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.platform-strip-icon img {
  width: 100%;
  height: 100%;
  display: block;
}

/* In Dark & OLED themes: Turn icons to pure bright white! */
[data-theme="dark"] .platform-strip-icon img,
[data-theme="oled"] .platform-strip-icon img {
  filter: brightness(0) invert(1);
  opacity: 0.96;
}

[data-theme="dark"] .platform-strip-item,
[data-theme="oled"] .platform-strip-item {
  color: #FFFFFF;
}

[data-theme="dark"] .platform-strip-item:hover,
[data-theme="oled"] .platform-strip-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* =========================================================================
   8.5 MOBILE NAVIGATION DRAWER & BUTTON
   ========================================================================= */

.btn-mobile-menu {
  display: none;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  background: rgba(128, 128, 128, 0.08);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  cursor: pointer;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.btn-mobile-menu:hover {
  background: rgba(128, 128, 128, 0.16);
}

.btn-mobile-menu .icon-close {
  display: none;
}

.btn-mobile-menu.open .icon-hamburger {
  display: none;
}

.btn-mobile-menu.open .icon-close {
  display: block;
}

.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 98;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-smooth);
}

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

.mobile-nav-drawer {
  position: fixed;
  top: 68px;
  left: 14px;
  right: 14px;
  border-radius: 16px;
  padding: 14px;
  z-index: 99;
  background: var(--modal-bg);
  border: 1px solid var(--modal-border);
  box-shadow: var(--modal-shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-12px) scale(0.98);
  transition: transform var(--transition-smooth), opacity var(--transition-smooth);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-nav-drawer.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.mobile-nav-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.mobile-nav-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 11px 12px;
  border-radius: 10px;
  background: rgba(128, 128, 128, 0.06);
  border: 1px solid var(--border-subtle);
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
}

.mobile-nav-item:hover, .mobile-nav-item:active {
  background: rgba(128, 128, 128, 0.14);
  border-color: var(--border-medium);
}

.mobile-nav-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
}

.mobile-btn-signin {
  flex: 1;
  text-align: center;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 9px 12px;
  border-radius: 9px;
  background: rgba(128, 128, 128, 0.08);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
}

.mobile-btn-contact {
  flex: 1;
  text-align: center;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 9px 12px;
  border-radius: 9px;
  background: var(--btn-contact-bg);
  color: var(--btn-contact-text);
}

/* =========================================================================
   9. RESPONSIVE (Single-screen Viewport Fit for Mobile, Zero Main Scroll)
   ========================================================================= */

@media (max-width: 860px) {
  html, body {
    min-height: 100%;
    min-height: 100dvh;
    overflow-x: hidden;
    width: 100%;
  }

  .container {
    padding: 0 12px;
  }

  .page-wrapper {
    min-height: 100%;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow-x: hidden;
  }

  .nav-links {
    display: none !important;
  }

  .btn-mobile-menu {
    display: inline-flex;
  }

  .navbar-wrapper {
    flex-shrink: 0;
    padding: 8px 12px 0;
  }

  .navbar {
    padding: 6px 12px;
    border-radius: 12px;
  }

  .nav-brand-title {
    font-size: 0.98rem;
  }

  .btn-signin {
    padding: 5px 10px;
    font-size: 0.8rem;
  }

  .btn-contact {
    padding: 5px 12px;
    font-size: 0.8rem;
  }

  /* Completely remove background circular rings and orbit slots on mobile */
  .orbit-ring,
  .orbit-ring-1,
  .orbit-ring-2,
  .orbit-ring-3,
  .orbit-slot {
    display: none !important;
  }

  .orbit-universe {
    width: 320px;
    height: 320px;
    opacity: 0.5;
  }

  .hero-glow-aura {
    width: 270px;
    height: 270px;
    filter: blur(48px);
    -webkit-filter: blur(48px);
  }

  /* Lift middle currency section up with optical center balance */
  .hero-section {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6px 12px 6px;
  }

  .hero-content {
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: translateY(-8px);
  }

  .hero-title {
    font-size: clamp(1.18rem, 4.4vw, 1.48rem);
    line-height: 1.15;
    margin-bottom: 3px;
    letter-spacing: -0.025em;
  }

  .hero-subtitle {
    font-size: 0.73rem;
    line-height: 1.32;
    margin: 0 auto 8px;
    max-width: 310px;
  }

  .hero-stack-wrap {
    width: 100%;
    max-width: 334px;
  }

  .floating-card-stack {
    gap: 4px;
  }

  .float-card {
    padding: 5px 10px;
    border-radius: 9px;
    gap: 8px;
  }

  .float-card-code {
    font-size: 0.78rem;
  }

  .float-card-name {
    font-size: 0.65rem;
  }

  .float-rate-price {
    font-size: 0.84rem;
  }

  .float-rate-diff {
    font-size: 0.68rem;
  }

  .float-gold-date {
    font-size: 0.68rem;
  }

  /* Ensure Platforms footer sits prominently and is always 100% visible at bottom */
  .platforms-strip-section {
    flex-shrink: 0;
    width: 100%;
    padding: 8px 12px calc(10px + env(safe-area-inset-bottom, 0px));
    text-align: center;
    z-index: 20;
    position: relative;
  }

  .platform-strip-label {
    font-size: 0.74rem;
    font-weight: 600;
    margin-bottom: 6px;
    letter-spacing: -0.01em;
    opacity: 0.95;
  }

  [data-theme="dark"] .platform-strip-label,
  [data-theme="oled"] .platform-strip-label {
    color: rgba(255, 255, 255, 0.88);
  }

  .platforms-strip-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px 10px;
    flex-wrap: wrap;
  }

  .platform-strip-item {
    font-size: 0.82rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 8px;
    background: rgba(128, 128, 128, 0.08);
    border: 1px solid var(--border-subtle);
  }

  [data-theme="dark"] .platform-strip-item,
  [data-theme="oled"] .platform-strip-item {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.16);
    color: #FFFFFF;
  }

  .platform-strip-icon {
    width: 16px;
    height: 16px;
  }

  /* Centered, responsive mobile modals that fit on 84dvh with internal scroll */
  .settings-card,
  .services-card,
  .pricing-card {
    width: calc(100vw - 24px) !important;
    max-width: 440px !important;
    max-height: 84dvh !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    top: 50% !important;
    left: 50% !important;
    right: auto !important;
    padding: 18px 16px !important;
    transform: translate(-50%, -48%) scale(0.97) !important;
  }

  .settings-card.open,
  .services-card.open,
  .pricing-card.open {
    transform: translate(-50%, -50%) scale(1) !important;
  }

  .products-modal {
    width: calc(100vw - 20px) !important;
    max-width: 500px !important;
    max-height: 85dvh !important;
    top: 50% !important;
    left: 50% !important;
    padding: 16px 14px !important;
    transform: translate(-50%, -48%) scale(0.96) !important;
  }

  .products-modal.open {
    transform: translate(-50%, -50%) scale(1) !important;
  }

  .products-modal-title {
    font-size: 1.12rem;
  }

  .products-grid {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .product-item {
    padding: 7px 10px;
    font-size: 0.8rem;
  }
}

@media (max-width: 860px) and (max-height: 600px) {
  .hero-content {
    transform: none !important;
  }
  .hero-title {
    font-size: 1.15rem !important;
    margin-bottom: 2px !important;
  }
  .hero-subtitle {
    font-size: 0.7rem !important;
    margin-bottom: 5px !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .floating-card-stack {
    gap: 4px !important;
  }
  .float-card {
    padding: 4px 8px !important;
  }
  .platforms-strip-section {
    padding: 4px 12px 8px !important;
  }
}

@media (max-width: 380px) {
  .hero-title {
    font-size: 1.22rem;
  }

  .hero-subtitle {
    font-size: 0.72rem;
    margin-bottom: 7px;
  }

  .mobile-nav-list {
    grid-template-columns: 1fr;
  }

  .btn-signin {
    display: none;
  }

  .platforms-strip-grid {
    gap: 4px 8px;
  }

  .platform-strip-item {
    font-size: 0.78rem;
    padding: 4px 8px;
  }
}
