/* Mortezos theme — emerald + gold accent palette */
:root {
  --mortezos-bg: #050810;
  --mortezos-card: #0f1419;
  --mortezos-accent: #10B981;
  --mortezos-gold: #F59E0B;
}

html, body {
  overflow-x: hidden;
}

.hero-split-bg {
  background: radial-gradient(ellipse 80% 60% at 20% 40%, rgba(16, 185, 129, 0.12), transparent),
    radial-gradient(ellipse 60% 50% at 80% 60%, rgba(245, 158, 11, 0.08), transparent),
    var(--mortezos-bg);
}

.mortezos-panel {
  background: rgba(15, 20, 25, 0.85);
  border: 1px solid rgba(16, 185, 129, 0.2);
  backdrop-filter: blur(12px);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.mortezos-panel:hover {
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 0 8px 32px rgba(16, 185, 129, 0.08);
}

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

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

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

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(16, 185, 129, 0.15); }
  50% { box-shadow: 0 0 40px rgba(16, 185, 129, 0.28); }
}

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

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

@keyframes orbFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 15px) scale(0.95); }
}

@keyframes orbFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-25px, 20px) scale(0.95); }
  66% { transform: translate(15px, -30px) scale(1.08); }
}

@keyframes orbFloat3 {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  33% { transform: translate(calc(-50% + 20px), calc(-50% - 15px)) scale(1.1); }
  66% { transform: translate(calc(-50% - 15px), calc(-50% + 25px)) scale(0.9); }
}

@keyframes gridPulse {
  0%, 100% { opacity: 0.03; }
  50% { opacity: 0.07; }
}

@keyframes particleRise {
  0% { transform: translateY(0) scale(1); opacity: 0.6; }
  100% { transform: translateY(-100vh) scale(0); opacity: 0; }
}

.animate-fade-up {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

@media (prefers-reduced-motion: no-preference) {
  html.fade-up-enabled .animate-fade-up:not(.visible) {
    opacity: 0;
    transform: translateY(32px);
  }
}

html.fade-up-enabled .animate-fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

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

.gradient-mesh {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.08) 0%, rgba(139, 92, 246, 0.06) 50%, rgba(59, 130, 246, 0.07) 100%);
  background-size: 200% 200%;
  animation: gradientShift 14s ease infinite;
}

.gradient-mesh-alt {
  background: linear-gradient(225deg, rgba(139, 92, 246, 0.1) 0%, rgba(0, 240, 255, 0.05) 50%, rgba(59, 130, 246, 0.08) 100%);
  background-size: 200% 200%;
  animation: gradientShift 18s ease infinite;
}

.glow-card {
  transition: box-shadow 0.4s ease, border-color 0.4s ease, transform 0.3s ease;
}

.glow-card:hover {
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.12), 0 8px 32px rgba(0, 0, 0, 0.3);
  border-color: rgba(0, 240, 255, 0.25);
  transform: translateY(-2px);
}

.mortezos-form {
  --input-bg: rgba(255, 255, 255, 0.04);
  --input-border: rgba(255, 255, 255, 0.1);
  --input-focus: rgba(0, 240, 255, 0.5);
}

.mortezos-form input,
.mortezos-form textarea,
.mortezos-form select {
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 0.75rem;
  padding: 0.875rem 1rem;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  width: 100%;
}

.mortezos-form input::placeholder,
.mortezos-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.mortezos-form input:focus,
.mortezos-form textarea:focus {
  outline: none;
  border-color: var(--input-focus);
  box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.12), 0 0 20px rgba(0, 240, 255, 0.08);
  background: rgba(255, 255, 255, 0.06);
}

.mortezos-form button[type="submit"] {
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.3s ease;
  position: relative;
  overflow: hidden;
}

.mortezos-form button[type="submit"]::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
  transition: left 0.5s ease;
}

.mortezos-form button[type="submit"]:hover::after {
  left: 100%;
}

.mortezos-form button[type="submit"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 40px -10px rgba(0, 240, 255, 0.4);
}

.btn-gradient {
  background: linear-gradient(135deg, #00F0FF, #8B5CF6);
  transition: opacity 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-gradient::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: left 0.5s ease;
}

.btn-gradient:hover::after {
  left: 100%;
}

.btn-gradient:hover {
  opacity: 0.95;
  transform: translateY(-1px);
  box-shadow: 0 8px 30px -8px rgba(0, 240, 255, 0.4);
}

.text-gradient {
  background: linear-gradient(135deg, #00F0FF, #8B5CF6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.border-gradient {
  border-image: linear-gradient(135deg, rgba(0, 240, 255, 0.3), rgba(139, 92, 246, 0.3)) 1;
}

.glass-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 4px 24px rgba(0, 0, 0, 0.2);
}

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

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  opacity: 0.5;
}

.hero-orb-1 {
  width: 400px;
  height: 400px;
  background: rgba(0, 240, 255, 0.15);
  top: -100px;
  left: -100px;
  animation: orbFloat1 20s ease-in-out infinite;
}

.hero-orb-2 {
  width: 300px;
  height: 300px;
  background: rgba(139, 92, 246, 0.2);
  bottom: -50px;
  right: -50px;
  animation: orbFloat2 25s ease-in-out infinite;
}

.hero-orb-3 {
  width: 200px;
  height: 200px;
  background: rgba(59, 130, 246, 0.15);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: orbFloat3 18s ease-in-out infinite;
}

.hero-orb-4 {
  width: 150px;
  height: 150px;
  background: rgba(0, 240, 255, 0.1);
  top: 30%;
  right: 20%;
  animation: orbFloat1 22s ease-in-out infinite reverse;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 240, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridPulse 8s ease-in-out infinite;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.hero-particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: rgba(0, 240, 255, 0.6);
  border-radius: 50%;
  animation: particleRise linear infinite;
}

.crypto-float-icon {
  position: absolute;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  pointer-events: none;
  opacity: 0.2;
  filter: blur(0.5px);
}

.manager-call-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.2);
  animation: pulse-glow 3s ease-in-out infinite;
}

.scroll-top-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00F0FF, #8B5CF6);
  color: #fff;
  border: none;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 240, 255, 0.3);
  z-index: 90;
  transition: transform 0.2s ease, opacity 0.3s ease;
}

.scroll-top-btn.visible {
  display: flex;
}

.scroll-top-btn:hover {
  transform: scale(1.1);
}

.comparison-check {
  color: #00F0FF;
}

.comparison-cross {
  color: rgba(255, 255, 255, 0.25);
}


#site-header {
  overflow: visible;
}

body.mobile-menu-open {
  overflow: hidden;
}

.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.mobile-menu.open {
  max-height: min(85vh, 640px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-menu.open > div {
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
}

.hamburger-line {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.form-success {
  display: none;
  text-align: center;
  padding: 2rem;
}

.form-success.active {
  display: block;
}

.nav-link-active {
  position: relative;
  color: #fff !important;
}

.nav-link-active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #00F0FF, #8B5CF6);
  border-radius: 1px;
}

.header-scrolled {
  background: rgba(6, 6, 17, 0.92) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  box-shadow: 0 1px 0 rgba(0, 240, 255, 0.1), 0 4px 30px rgba(0, 0, 0, 0.3) !important;
}

.footer-gradient-border {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.3), rgba(139, 92, 246, 0.3), transparent);
}

.bento-card-lg {
  grid-column: span 2;
  grid-row: span 2;
}

@media (max-width: 768px) {
  .bento-card-lg {
    grid-column: span 1;
    grid-row: span 1;
  }
}

.tab-btn {
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
}

.tab-btn:hover {
  border-color: rgba(0, 240, 255, 0.3);
  color: #fff;
}

.tab-btn.active {
  background: linear-gradient(135deg, #00F0FF, #8B5CF6);
  border-color: transparent;
  color: #fff;
}

.market-row {
  transition: background 0.2s ease;
}

.market-row:hover {
  background: rgba(255, 255, 255, 0.03);
}

.sparkline-svg {
  width: 100px;
  height: 32px;
}

.blog-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px -15px rgba(0, 240, 255, 0.12);
  border-color: rgba(0, 240, 255, 0.2);
}

.category-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.chatbot-trigger {
  position: fixed;
  bottom: 2rem;
  right: 6rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00F0FF, #8B5CF6);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 240, 255, 0.3);
  z-index: 95;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.chatbot-trigger:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 30px rgba(0, 240, 255, 0.4);
}

.chatbot-trigger .icon-chat,
.chatbot-trigger .icon-close {
  position: absolute;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.chatbot-trigger.open .icon-chat {
  transform: rotate(90deg) scale(0);
  opacity: 0;
}

.chatbot-trigger.open .icon-close {
  transform: rotate(0) scale(1);
  opacity: 1;
}

.chatbot-trigger:not(.open) .icon-close {
  transform: rotate(-90deg) scale(0);
  opacity: 0;
}

.chatbot-badge {
  position: absolute;
  bottom: 100%;
  right: 0;
  margin-bottom: 8px;
  background: rgba(13, 13, 26, 0.95);
  border: 1px solid rgba(0, 240, 255, 0.2);
  backdrop-filter: blur(12px);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.8rem;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.chatbot-badge.visible {
  opacity: 1;
  transform: translateY(0);
}

.chatbot-badge::after {
  content: '';
  position: absolute;
  top: 100%;
  right: 20px;
  border: 6px solid transparent;
  border-top-color: rgba(0, 240, 255, 0.2);
}

.chatbot-popup {
  position: fixed;
  bottom: 6rem;
  right: 6rem;
  width: 380px;
  max-height: 520px;
  border-radius: 1.5rem;
  background: rgba(13, 13, 26, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 240, 255, 0.05);
  z-index: 95;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.chatbot-popup.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

.chatbot-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.chatbot-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00F0FF, #8B5CF6);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.chatbot-tabs {
  display: flex;
  margin-left: auto;
  gap: 2px;
}

.chatbot-tab {
  width: 32px;
  height: 32px;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.4);
}

.chatbot-tab:hover {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.7);
}

.chatbot-tab.active {
  background: rgba(0, 240, 255, 0.1);
  color: #00F0FF;
}

.chatbot-body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
}

.chatbot-body::-webkit-scrollbar {
  width: 4px;
}

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

.chatbot-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
}

.chatbot-screen {
  display: none;
  flex-direction: column;
  gap: 0.75rem;
}

.chatbot-screen.active {
  display: flex;
}

.chat-bubble {
  padding: 0.75rem 1rem;
  border-radius: 1rem;
  font-size: 0.85rem;
  line-height: 1.5;
  max-width: 90%;
}

.chat-bubble-bot {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.85);
  border-bottom-left-radius: 0.25rem;
  align-self: flex-start;
}

.chat-bubble-user {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.15), rgba(139, 92, 246, 0.15));
  border: 1px solid rgba(0, 240, 255, 0.15);
  color: #fff;
  border-bottom-right-radius: 0.25rem;
  align-self: flex-end;
}

.chatbot-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chatbot-chip {
  padding: 0.5rem 0.875rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  border: 1px solid rgba(0, 240, 255, 0.2);
  background: rgba(0, 240, 255, 0.05);
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: all 0.2s ease;
}

.chatbot-chip:hover {
  border-color: rgba(0, 240, 255, 0.4);
  background: rgba(0, 240, 255, 0.1);
  color: #fff;
}

.chatbot-form input,
.chatbot-form textarea {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.625rem;
  padding: 0.625rem 0.875rem;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  width: 100%;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.chatbot-form input::placeholder,
.chatbot-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.chatbot-form input:focus,
.chatbot-form textarea:focus {
  outline: none;
  border-color: rgba(0, 240, 255, 0.4);
  box-shadow: 0 0 0 2px rgba(0, 240, 255, 0.1);
}

.chatbot-helpful {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
}

.chatbot-helpful button {
  padding: 0.25rem 0.625rem;
  border-radius: 0.375rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.chatbot-helpful button:hover {
  border-color: rgba(0, 240, 255, 0.3);
  color: #fff;
}

.chatbot-article-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
}

.chatbot-article-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  padding: 0.5rem 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 480px) {
  .chatbot-popup {
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    max-height: 100vh;
    border-radius: 0;
  }
}

/* Mobile sticky registration CTA */
:root {
  --mobile-cta-height: 3.75rem;
  --mobile-cta-gap: 0.75rem;
  --mobile-fab-size: 3.5rem;
  --mobile-fab-stack-gap: 0.875rem;
  --mobile-fab-bottom: calc(var(--mobile-cta-height) + var(--mobile-cta-gap) + env(safe-area-inset-bottom, 0px));
  --mobile-fab-row-bottom: calc(var(--mobile-fab-bottom) + var(--mobile-fab-size) + var(--mobile-fab-stack-gap));
}

.mobile-cta-btn {
  display: none;
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.25rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, #00F0FF, #8B5CF6);
  color: #fff;
  font-weight: 600;
  font-size: 0.9375rem;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 4px 24px rgba(0, 240, 255, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mobile-cta-btn:active {
  transform: scale(0.98);
}

@media (max-width: 767px) {
  body.has-mobile-cta {
    padding-bottom: calc(var(--mobile-cta-height) + var(--mobile-cta-gap) + env(safe-area-inset-bottom, 0px) + 1rem);
  }

  .mobile-cta-btn {
    display: flex !important;
    left: max(1rem, env(safe-area-inset-left, 0px));
    right: max(1rem, env(safe-area-inset-right, 0px));
    width: auto;
    max-width: none;
    z-index: 110;
  }

  #chatbot-widget {
    z-index: 105;
  }

  .chatbot-trigger {
    bottom: var(--mobile-fab-row-bottom);
    right: max(1rem, env(safe-area-inset-right, 0px));
    z-index: 105;
  }

  .chatbot-popup {
    bottom: calc(var(--mobile-fab-row-bottom) + var(--mobile-fab-size) + 0.5rem);
    right: max(1rem, env(safe-area-inset-right, 0px));
    left: max(1rem, env(safe-area-inset-left, 0px));
    width: auto;
    max-width: none;
    z-index: 106;
  }

  .scroll-top-btn {
    bottom: var(--mobile-fab-row-bottom);
    left: max(1rem, env(safe-area-inset-left, 0px));
    right: auto;
    z-index: 105;
  }

  .scroll-top-btn.visible {
    display: flex;
  }

  .hamburger {
    position: relative;
    z-index: 120;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  #mobile-menu {
    position: relative;
    z-index: 115;
  }
}

/* Risk disclaimer block */
.risk-disclaimer {
  background: rgba(13, 13, 26, 0.85);
}

.risk-disclaimer a {
  word-break: break-all;
}

/* ======================================
   Form Validation & Loading Styles
   ====================================== */

.mortezos-form .field-error,
.chatbot-form .field-error {
  color: #ef4444;
  font-size: 11px;
  margin-top: 3px;
  display: none;
}

.mortezos-form .field-error.visible,
.chatbot-form .field-error.visible {
  display: block;
}

.mortezos-form input.input-error,
.chatbot-form input.input-error {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 1px #ef4444;
}

.mortezos-form input.input-valid,
.chatbot-form input.input-valid {
  border-color: #22c55e !important;
}

/* intl-tel-input fix */
.mortezos-form .iti,
.chatbot-form .iti {
  width: 100%;
}

.mortezos-form .iti__flag-container,
.chatbot-form .iti__flag-container {
  z-index: 10;
}

.mortezos-form .iti input[type="tel"],
.chatbot-form .iti input[type="tel"] {
  padding-left: 52px !important;
}

/* Loading overlay */
.form-loading-overlay {
  display: none;
  position: absolute;
  inset: 0;
  background: rgba(6, 6, 17, 0.85);
  z-index: 20;
  border-radius: inherit;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
}

.form-loading-overlay.active {
  display: flex;
}

.form-loading-spinner {
  width: 42px;
  height: 42px;
  border: 3px solid rgba(0, 240, 255, 0.15);
  border-top-color: #00F0FF;
  border-radius: 50%;
  animation: mortezos-spin 0.75s linear infinite;
}

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

/* Form inline message */
.form-message {
  display: none;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  margin-top: 10px;
  text-align: center;
}

.form-message.success {
  display: block;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #4ade80;
}

.form-message.error {
  display: block;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
}

/* Email autocomplete dropdown */
.email-autocomplete-list {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: #0d0d1a;
  border: 1px solid rgba(0, 240, 255, 0.15);
  border-radius: 8px;
  max-height: 200px;
  overflow-y: auto;
  z-index: 30;
  display: none;
}

.email-autocomplete-list.visible {
  display: block;
}

.email-autocomplete-list .ea-item {
  padding: 9px 12px;
  cursor: pointer;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  transition: background 0.15s;
}

.email-autocomplete-list .ea-item:hover,
.email-autocomplete-list .ea-item.ea-active {
  background: rgba(0, 240, 255, 0.1);
  color: #fff;
}

/* Glass-card relative for loading overlay */
.glass-card {
  position: relative;
}
