/* Base Variables */
:root {
  --primary-color: #0a1521;
  --secondary-color: #1c2a3b;
  --accent-color: #ffb940;
  --text-color: #ffffff;
  --text-color-muted: #c0c0c0;
  --background-color: rgba(10, 21, 33, 0.85);
  --card-background: rgba(28, 42, 59, 0.7);
  --card-background-alt: rgba(28, 42, 59, 0.5);
  --border-color: rgba(255, 255, 255, 0.1);
  --transition-speed: 0.3s;
  --header-height: 60px;
  --mobile-header-height: 60px;
  
  /* Profile Button Variables */
  --profile-gradient: linear-gradient(135deg, #4FB3D9 0%, #5FC3E9 100%);
  --profile-shadow: 0 4px 12px rgba(79, 179, 217, 0.3);
}

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

html {
  font-size: 120%;
  height: 100%;
}

body {
  font-family: "Poppins", sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--primary-color);
  font-weight: 400;
  min-height: 100%;
  overscroll-behavior-y: none;
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Bebas Neue", sans-serif;
  margin-bottom: 0.5em;
  color: var(--accent-color);
  letter-spacing: 0.5px;
}

h1 {
  font-size: 2.2rem;
  font-weight: 700;
}
h2 {
  font-size: 2rem;
  font-weight: 700;
}
h3 {
  font-size: 1.6rem;
  font-weight: 600;
}
h4 {
  font-size: 1.4rem;
  font-weight: 600;
}
h5 {
  font-size: 1.2rem;
  font-weight: 600;
}
h6 {
  font-size: 1rem;
  font-weight: 600;
}

p,
li {
  margin-bottom: 1em;
  font-size: 0.99rem;
  font-weight: 400;
  color: #ffffff;
  opacity: 1;
}

/* Header Styles */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(10, 21, 33, 0.95);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  padding: 0.75rem 1.2rem;
  height: var(--header-height);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.header-left {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  min-width: 200px;
}

.header-center {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  max-width: 700px;
  margin: 0 1rem;
  white-space: nowrap;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-shrink: 0;
  min-width: 300px;
  justify-content: flex-end;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.63rem;
  text-decoration: none;
}

.logo-image {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--accent-color);
  padding: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box; /* Fix: Include border in total size */
  flex-shrink: 0; /* Fix: Prevent shrinking */
}

/* Fix: Add styles for picture element */
.logo-image picture {
  display: block;
  width: 100%;
  height: 100%;
}

.logo-image img {
  width: 100%; /* Fix: Changed from 90% to 100% */
  height: 100%; /* Fix: Changed from 90% to 100% */
  object-fit: contain;
  object-position: center;
  display: block; /* Fix: Ensure block display to remove inline spacing */
}

.logo {
  font-size: 1.6rem;
  font-weight: bold;
  font-family: "Bebas Neue", sans-serif;
  color: var(--accent-color);
  letter-spacing: 1px;
  line-height: 1.2; /* Fix: Adjusted from 1 to 1.2 for better alignment */
  display: flex;
  align-items: center;
}

/* Navigation Styles */
.header-center {
  display: flex;
  gap: 1.4rem;
}

.header-center a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color var(--transition-speed) ease;
  position: relative;
  white-space: nowrap;
  text-align: center;
}

.header-center a::after {
  content: "";
  display: block;
  width: 0;
  height: 2px;
  background: var(--accent-color);
  transition: width var(--transition-speed);
  position: absolute;
  left: 0;
  bottom: -5px;
}

/* .header-center a:hover {
  color: var(--accent-color);
  transform: translateY(-1px);
} */

.header-center a.active::after {
  width: 100%;
}

.header-center a.active {
  color: var(--accent-color);
}

/* Legacy nav selector for compatibility */
nav {
  display: flex;
  gap: 1.8rem;
}

nav a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  font-size: 1.08rem;
  transition: color var(--transition-speed) ease;
  position: relative;
}

nav a::after {
  content: "";
  display: block;
  width: 0;
  height: 2px;
  background: var(--accent-color);
  transition: width var(--transition-speed);
  position: absolute;
  left: 0;
  bottom: -5px;
}

/* nav a:hover {
  color: var(--accent-color);
  transform: translateY(-1px);
} */

nav a.active::after {
  width: 100%;
}

nav a.active {
  color: var(--accent-color);
}

/* Auth Buttons */
.auth-buttons {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.auth-button {
  background: transparent;
  border: 2px solid #4a90e2;
  color: #4a90e2;
  padding: 0.4rem 1rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.8rem;
  transition: all var(--transition-speed) ease;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  min-width: 70px;
  white-space: nowrap;
}

.auth-button:hover {
  background-color: #4a90e2;
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(74, 144, 226, 0.3);
}

.login-button {
  background: transparent;
  border-color: #5ba3f5;
  color: #5ba3f5;
}

.login-button:hover {
  background-color: #5ba3f5;
  color: white;
}


/* Button Styles */
.button-group {
  display: flex;
  gap: 0.9rem;
  align-items: center;
}

/* Standardized button base styles */
.nav-button,
.cta-button,
.slide-cta-button,
.dropdown-toggle {
  background-color: var(--accent-color);
  color: var(--primary-color);
  padding: 0.45rem 1rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.75rem;
  transition: all var(--transition-speed) ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  white-space: nowrap;
}

/* CTA button specific sizing */
.cta-button {
  padding: 0.45rem 1.2rem;
  font-size: 0.8rem;
}

/* Slide CTA button specific sizing */
.slide-cta-button {
  padding: 0.6rem 1.4rem;
  font-size: 0.85rem;
}

/* CryptoGPT Premium Button Styling - High Specificity Override */
header .header-right a.nav-button[aria-label="CryptoGPT Chat"],
header .header-right a.nav-button[href*="cryptogpt"],
.header-right a[href*="cryptogpt"].nav-button {
  /* Styles moved to inline for consistency - see header HTML */
  /* Keeping animation here as it can't be inline */
  animation: cryptogptGlow 3s ease-in-out infinite !important;
  position: relative !important;
  overflow: hidden !important;
}

/* header .header-right a.nav-button[aria-label="CryptoGPT Chat"]:hover,
header .header-right a.nav-button[href*="cryptogpt"]:hover,
.header-right a[href*="cryptogpt"].nav-button:hover {
  background: linear-gradient(135deg, #ffcb66 0%, #ffb940 100%) !important;
  transform: translateY(-3px) !important;
  box-shadow: 0 8px 16px rgba(255, 185, 64, 0.6), 0 0 30px rgba(255, 185, 64, 0.4) !important;
  animation: none !important;
  border-color: #ffcb66 !important;
} */

/* header .header-right a.nav-button[aria-label="CryptoGPT Chat"]::before,
header .header-right a.nav-button[href*="cryptogpt"]::before,
.header-right a[href*="cryptogpt"].nav-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s ease;
  z-index: 1;
}

header .header-right a.nav-button[aria-label="CryptoGPT Chat"]:hover::before,
header .header-right a.nav-button[href*="cryptogpt"]:hover::before,
.header-right a[href*="cryptogpt"].nav-button:hover::before {
  left: 100%;
} */

@keyframes cryptogptGlow {
  0%, 100% { 
    box-shadow: 0 4px 12px rgba(255, 185, 64, 0.4), 0 0 20px rgba(255, 185, 64, 0.2);
  }
  50% { 
    box-shadow: 0 4px 12px rgba(255, 185, 64, 0.6), 0 0 25px rgba(255, 185, 64, 0.3);
  }
}

/* Hover state for all other buttons - DISABLED */
.nav-button:hover,
.cta-button:hover,
.slide-cta-button:hover,
.dropdown-toggle:hover {
  background-color: #ffcb66;
  transform: translateY(-2px);
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.5);
}

/* Ensure CryptoGPT button hover overrides the general hover - DISABLED */
/* .nav-button[aria-label="CryptoGPT Chat"]:hover {
  background: linear-gradient(135deg, #ffcb66 0%, #ffb940 100%) !important;
  transform: translateY(-3px) !important;
  box-shadow: 0 8px 16px rgba(255, 185, 64, 0.6), 0 0 30px rgba(255, 185, 64, 0.4) !important;
} */

/* Dropdown Menu Styles */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-toggle {
  gap: 0.3rem;
  opacity: 1;
  font-size: 0.8rem;
  padding: 0.4rem 0.9rem;
}

.dropdown-arrow {
  font-size: 0.6rem;
  transition: transform var(--transition-speed);
}

.dropdown.active .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 0.5rem;
  background-color: rgba(10, 21, 33, 0.95);
  min-width: 220px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  overflow: hidden;
  z-index: 1001;
}

.dropdown.active .dropdown-content {
  display: block;
}

.dropdown-content a {
  color: var(--text-color);
  padding: 0.85rem 1.4rem;
  text-decoration: none;
  display: block;
  font-size: 0.9rem;
  transition: background-color var(--transition-speed);
}

.dropdown-content a:hover {
  background-color: rgba(255, 185, 64, 0.1);
  color: var(--accent-color);
}

/* Hero Section */
.hero {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--primary-color);
  position: relative;
  padding-top: var(--header-height);
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("../images/simbahero.png");
  background-size: cover;
  background-position: center;
  opacity: 0.15;
  z-index: 0;
}

/* Content Slider */
.content-slider {
  position: relative;
  width: 100%;
  flex: 1;
  z-index: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  -webkit-overflow-scrolling: touch;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  padding: 20px;
  z-index: 1;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

/* Ensure first slide is visible by default as fallback */
.slide:first-child {
  display: block;
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.slide.active {
  display: block;
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.slide-content {
  display: flex;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  background-color: rgba(10, 21, 33, 0.98);
  border-radius: 20px;
  height: 100%;
  padding: 1.35rem;
  overflow: auto;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
}

/* Slider Content Layout */
.slide-image-container {
  flex: 1;
  max-width: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0.9rem;
}

.image-container {
  width: 70%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 0.9rem;
}

.slide-image-container img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.slide-text {
  flex: 1;
  padding: 0.9rem;
  overflow: auto;
  color: #ffffff;
  opacity: 1;
}

.slide-text p,
.slide-text li {
  color: #ffffff !important;
  opacity: 1 !important;
  font-weight: 400;
  text-shadow: 0.5px 0.5px 1px rgba(0, 0, 0, 0.3);
}

.slide-text ul,
.slide-text ol {
  color: #ffffff;
  opacity: 1;
}

/* Slider Controls */
.slider-controls {
  position: sticky;
  bottom: 0;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.9rem 0;
  background-color: rgba(10, 21, 33, 0.95);
  margin-top: auto;
}

.slider-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.9rem;
}

.slider-dot {
  width: 13.5px;
  height: 13.5px;
  border-radius: 50%;
  background-color: var(--text-color);
  opacity: 0.5;
  cursor: pointer;
  transition: all var(--transition-speed) ease;
}

.slider-dot.active {
  opacity: 1;
  transform: scale(1.1);
  background-color: var(--accent-color);
}

.slider-dot:hover {
  opacity: 0.8;
  transform: scale(1.2);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-color);
  font-size: 1.35rem;
  cursor: pointer;
  padding: 0.45rem;
  transition: all 0.3s ease;
  min-width: 44px;
  min-height: 44px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(255, 185, 64, 0.2);
}

.mobile-menu-toggle:hover {
  color: var(--accent-color);
  transform: scale(1.1);
}

/* Mobile Navigation Overlay */
.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    rgba(10, 21, 33, 0.98) 100%
  );
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-100%);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.mobile-nav-overlay.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mobile-nav-content {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid rgba(255, 185, 64, 0.1);
  background: rgba(255, 185, 64, 0.03);
}

.mobile-nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--accent-color);
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.mobile-nav-logo:hover {
  opacity: 0.8;
  transform: scale(1.02);
}

.mobile-nav-logo .logo-image {
  width: 32px;
  height: 32px;
  border: 2px solid var(--accent-color);
  border-radius: 50%;
  padding: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mobile-nav-logo .logo-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.mobile-nav-close {
  width: 44px;
  height: 44px;
  border: none;
  background: none;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  padding: 0;
  color: var(--text-color);
  font-size: 1.5rem;
  transition: all 0.3s ease;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(255, 185, 64, 0.2);
}

.mobile-nav-close:hover {
  color: var(--accent-color);
  transform: scale(1.1);
}

.mobile-nav-menu {
  flex: 1;
  padding: 2.5rem 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.02) 0%,
    rgba(255, 255, 255, 0.008) 100%
  );
  border-radius: 16px 16px 0 0;
  margin-top: 1rem;
}

.mobile-nav-group {
  margin-bottom: 1.2rem;
}

.mobile-nav-group-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-color);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 0 2rem 0.4rem;
  margin-bottom: 0.3rem;
  opacity: 0.9;
  border-bottom: 2px solid rgba(255, 185, 64, 0.2);
  position: relative;
}

.mobile-nav-group-title::before {
  content: "";
  position: absolute;
  left: 2rem;
  bottom: -2px;
  width: 40px;
  height: 2px;
  background: var(--accent-color);
  border-radius: 1px;
}

.mobile-nav-item {
  display: flex;
  align-items: center;
  padding: 0.6rem 2rem;
  text-decoration: none;
  color: var(--text-color);
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  border-left: 3px solid transparent;
  position: relative;
  overflow: hidden;
  border-radius: 0 12px 12px 0;
  margin: 0.05rem 0;
}

.mobile-nav-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 185, 64, 0.12) 0%,
    rgba(255, 185, 64, 0.06) 100%
  );
  transition: width 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  z-index: -1;
}

.mobile-nav-item::after {
  content: "";
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-color);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.mobile-nav-item:hover::before,
.mobile-nav-item:focus::before {
  width: 100%;
}

.mobile-nav-item:hover::after,
.mobile-nav-item:focus::after {
  opacity: 1;
  transform: translateY(-50%) scale(1.2);
}

.mobile-nav-item:hover,
.mobile-nav-item:focus {
  color: var(--accent-color);
  border-left-color: var(--accent-color);
  background: rgba(255, 185, 64, 0.08);
  transform: translateX(6px);
  box-shadow: 0 4px 12px rgba(255, 185, 64, 0.15);
}

/* CryptoGPT Premium Styling for Mobile Navigation */
.mobile-nav-item[href*="cryptogpt"] {
  background: linear-gradient(135deg, rgba(255, 185, 64, 0.15) 0%, rgba(255, 149, 0, 0.15) 100%);
  border-left: 3px solid var(--accent-color);
  font-weight: 600;
  position: relative;
}

.mobile-nav-item[href*="cryptogpt"]:hover,
.mobile-nav-item[href*="cryptogpt"]:focus {
  background: linear-gradient(135deg, rgba(255, 185, 64, 0.25) 0%, rgba(255, 149, 0, 0.25) 100%) !important;
  border-left-color: #ff9500 !important;
  box-shadow: 0 4px 16px rgba(255, 185, 64, 0.3) !important;
}

.mobile-nav-item span {
  font-weight: 600;
  letter-spacing: 0.3px;
}

/* Hide FAQ section on mobile only */
@media (max-width: 768px) {
  .mobile-hide-faq {
    display: none !important;
  }

  .mobile-hide-specs-cta {
    display: none !important;
  }

  .mobile-hide-wallet-text {
    display: none !important;
  }

  .mobile-hide-wallet-buttons {
    display: none !important;
  }
}

/* Animation for menu items */
.mobile-nav-overlay.active .mobile-nav-item {
  animation: slideInFromLeft 0.6s cubic-bezier(0.23, 1, 0.32, 1) both;
}

.mobile-nav-overlay.active .mobile-nav-item:nth-child(1) {
  animation-delay: 0.1s;
}
.mobile-nav-overlay.active .mobile-nav-item:nth-child(2) {
  animation-delay: 0.15s;
}
.mobile-nav-overlay.active .mobile-nav-item:nth-child(3) {
  animation-delay: 0.2s;
}
.mobile-nav-overlay.active .mobile-nav-item:nth-child(4) {
  animation-delay: 0.25s;
}
.mobile-nav-overlay.active .mobile-nav-item:nth-child(5) {
  animation-delay: 0.3s;
}
.mobile-nav-overlay.active .mobile-nav-item:nth-child(6) {
  animation-delay: 0.35s;
}

.mobile-nav-overlay.active
  .mobile-nav-group:nth-child(1)
  .mobile-nav-item:nth-child(2) {
  animation-delay: 0.1s;
}
.mobile-nav-overlay.active
  .mobile-nav-group:nth-child(1)
  .mobile-nav-item:nth-child(3) {
  animation-delay: 0.15s;
}
.mobile-nav-overlay.active
  .mobile-nav-group:nth-child(1)
  .mobile-nav-item:nth-child(4) {
  animation-delay: 0.2s;
}

.mobile-nav-overlay.active
  .mobile-nav-group:nth-child(2)
  .mobile-nav-item:nth-child(2) {
  animation-delay: 0.25s;
}
.mobile-nav-overlay.active
  .mobile-nav-group:nth-child(2)
  .mobile-nav-item:nth-child(3) {
  animation-delay: 0.3s;
}

.mobile-nav-overlay.active
  .mobile-nav-group:nth-child(3)
  .mobile-nav-item:nth-child(2) {
  animation-delay: 0.35s;
}
.mobile-nav-overlay.active
  .mobile-nav-group:nth-child(3)
  .mobile-nav-item:nth-child(3) {
  animation-delay: 0.4s;
}
.mobile-nav-overlay.active
  .mobile-nav-group:nth-child(3)
  .mobile-nav-item:nth-child(4) {
  animation-delay: 0.45s;
}
.mobile-nav-overlay.active
  .mobile-nav-group:nth-child(3)
  .mobile-nav-item:nth-child(5) {
  animation-delay: 0.5s;
}

@keyframes slideInFromLeft {
  0% {
    opacity: 0;
    transform: translateX(-30px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Enhanced Responsive Breakpoints */

/* Small Mobile Devices */
@media (max-width: 480px) {
  /* Extra small mobile optimizations */
  html {
    font-size: 100%; /* Reduce base font size for very small screens */
  }
  
  /* Ensure header right is visible */
  .header-right {
    min-width: auto !important;
    gap: 0.5rem;
  }
  
  /* Ensure mobile menu toggle is always visible */
  .mobile-menu-toggle {
    display: flex !important;
    position: relative;
    z-index: 1002;
  }

  .logo {
    font-size: 1rem;
  }

  .logo-image {
    width: 24px;
    height: 24px;
  }

  /* Typography for small mobile */
  h1 {
    font-size: 1.5rem;
  }
  h2 {
    font-size: 1.3rem;
  }
  h3 {
    font-size: 1.1rem;
  }
  p,
  li {
    font-size: 0.85rem;
    line-height: 1.5;
  }

  /* Touch targets optimization */
  .slider-dot {
    width: 16px;
    height: 16px;
    margin: 0 8px;
  }

  /* Improved button spacing */
  .button-group a {
    padding: 12px 16px;
    font-size: 0.8rem;
    margin: 0 4px;
  }

  /* Pool metrics cards - Mobile optimization */
  .pool-metrics .metric-card {
    padding: 12px;
    margin: 8px 0;
  }

  /* Performance Metrics Mobile Layout - Enhanced specificity */
  #performanceMetrics > div[style] {
    padding: 15px !important;
    gap: 15px !important;
    flex-direction: column !important;
    display: flex !important;
  }

  #performanceMetrics > div[style] > div:first-child {
    flex: none !important;
    margin-bottom: 15px !important;
  }

  /* Mobile grid layout for metrics cards - Enhanced specificity */
  #performanceMetrics div[style*="grid-template-columns"],
  #performanceMetrics div[style*="display: grid"] {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    grid-template-columns: none !important;
  }

  /* Mobile slide titles - center alignment for small screens */
  .slide-text h1 {
    text-align: center !important;
    line-height: 1.1;
  }

  /* Image responsiveness for small mobile */
  .image-container img {
    max-height: 200px;
    object-fit: contain;
  }

  .slide-image-container {
    flex-shrink: 0;
  }
}

/* Mobile Devices */
@media (max-width: 768px) {
  /* Reset overflow for mobile */
  html,
  body {
    overflow-y: auto;
    height: auto;
  }

  /* Mobile Header */
  header {
    flex-direction: row;
    justify-content: space-between;
    padding: 0.7rem;
    height: auto;
    min-height: var(--mobile-header-height);
  }

  .header-left {
    flex-shrink: 0;
  }

  .header-center {
    display: none;
  }

  .header-right .auth-buttons {
    display: none;
  }

  .header-right .dropdown {
    display: none;
  }

  .logo {
    font-size: 1.2rem;
  }

  .logo-image {
    width: 28px;
    height: 28px;
  }

  /* Performance Metrics Mobile Layout - Enhanced for tablets with higher specificity */
  #performanceMetrics > div[style] {
    padding: 20px !important;
    gap: 20px !important;
    flex-direction: column !important;
    min-height: auto !important;
    display: flex !important;
  }

  #performanceMetrics > div[style] > div:first-child {
    flex: none !important;
    margin-bottom: 20px !important;
  }

  /* Enhanced mobile grid layout with higher specificity */
  #performanceMetrics div[style*="grid-template-columns"],
  #performanceMetrics div[style*="display: grid"] {
    display: flex !important;
    flex-direction: column !important;
    gap: 15px !important;
    grid-template-columns: none !important;
  }

  /* Performance metric cards mobile styling with higher specificity */
  #performanceMetrics div[style*="backgroundColor"],
  #performanceMetrics div[style*="background-color"] {
    padding: 16px !important;
    margin-bottom: 12px !important;
    border-radius: 8px !important;
    width: 100% !important;
    flex: none !important;
  }

  /* Force mobile layout persistence - override any inline grid styles */
  #performanceMetrics * {
    grid-template-columns: none !important;
  }

  #performanceMetrics > div {
    display: flex !important;
    flex-direction: column !important;
  }

  /* Mobile slide titles - center alignment */
  .slide-text h1 {
    text-align: center !important;
    line-height: 1.2;
  }

  /* Mobile Navigation */
  .mobile-menu-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1001;
  }
  
  /* Enhanced mobile navigation hover effects */
  .mobile-nav-item {
    transition: all 0.3s ease !important;
  }
  
  .mobile-nav-item:hover {
    color: var(--accent-color) !important;
    background: rgba(255, 185, 64, 0.08) !important;
    transform: translateX(8px) !important;
  }

  /* Hide old mobile navigation completely */
  nav {
    display: none !important;
  }

  .button-group {
    display: none !important;
  }

  /* Mobile auth items styling */
  .auth-item {
    background: rgba(74, 144, 226, 0.1) !important;
    border: 1px solid rgba(74, 144, 226, 0.3) !important;
    border-radius: 6px !important;
    margin: 0.2rem 0 !important;
  }

  .auth-item:hover {
    background: rgba(74, 144, 226, 0.2) !important;
    border-color: #4a90e2 !important;
  }


  /* Show mobile nav overlay only on mobile */
  .mobile-nav-overlay {
    display: block !important;
  }
  
  .mobile-nav-overlay.active {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
  }

  /* Mobile Hero Section */
  .hero {
    height: auto;
    min-height: 100vh;
    padding-top: var(--mobile-header-height);
    padding-bottom: 60px;
  }

  /* Mobile Content Slider */
  .content-slider {
    height: auto;
    min-height: calc(100vh - var(--mobile-header-height) - 60px);
    padding-bottom: 60px;
  }

  .slide {
    position: relative;
    height: auto;
    opacity: 1;
    visibility: visible;
    z-index: 1;
  }

  .slide:not(.active) {
    display: none;
    opacity: 0;
    visibility: hidden;
  }

  .slide.active {
    z-index: 2;
  }

  .slide-content {
    flex-direction: column;
    height: auto;
    min-height: 200px;
  }

  .slide-image-container {
    max-width: 100%;
  }

  /* Mobile Slider Controls */
  .slider-controls {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
  }

  /* Mobile Typography */
  h1 {
    font-size: 1.8rem;
  }
  h2 {
    font-size: 1.62rem;
  }
  h3 {
    font-size: 1.26rem;
  }
  p,
  li {
    font-size: 0.9rem;
  }

  /* Enhanced touch targets for mobile */
  nav a {
    padding: 16px 20px; /* Minimum 44px touch target */
    display: block;
    text-align: center;
    border-radius: 4px;
    transition: background-color 0.2s ease;
  }

  nav a:hover,
  nav a:focus {
    background-color: rgba(255, 185, 64, 0.1);
  }

  /* Mobile menu improvements */
  .mobile-menu-toggle {
    padding: 12px;
    min-width: 44px;
    min-height: 44px;
    transition:
      transform 0.2s ease,
      color 0.2s ease;
  }

  .mobile-menu-toggle:active {
    transform: scale(0.95);
  }

  .mobile-menu-toggle.menu-open {
    transform: rotate(90deg);
  }

  /* Dropdown touch optimization */
  .dropdown-toggle {
    padding: 16px 20px;
    min-height: 44px;
  }
}

/* Medium Screens */
@media (min-width: 1025px) and (max-width: 1400px) {
  .header-center {
    gap: 1.2rem;
  }
  
  .header-center a {
    font-size: 0.9rem;
  }
  
  .header-right {
    gap: 0.6rem;
  }
  
  .dropdown-toggle {
    font-size: 0.75rem;
    padding: 0.35rem 0.8rem;
  }
}

/* Tablet Devices */
@media (min-width: 769px) and (max-width: 1024px) {
  html {
    font-size: 110%;
  }

  /* Tablet header adjustments */
  header {
    padding: 0.8rem 1rem;
  }

  .logo {
    font-size: 1.4rem;
  }
  
  .header-center {
    gap: 1rem;
    margin: 0 0.5rem;
  }
  
  .header-center a {
    font-size: 0.85rem;
  }
  
  .header-right {
    gap: 0.5rem;
    min-width: 280px;
  }
  
  .dropdown-toggle {
    font-size: 0.7rem;
    padding: 0.3rem 0.7rem;
  }
  
  .auth-button {
    font-size: 0.75rem;
    padding: 0.35rem 0.8rem;
    min-width: 65px;
  }

  /* Typography for tablets */
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.8rem;
  }
  h3 {
    font-size: 1.5rem;
  }

  /* Navigation spacing */
  nav a {
    padding: 12px 16px;
    margin: 0 8px;
  }

  /* Pool metrics layout for tablets */
  .pool-metrics {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
  }

  /* Image optimization for tablets */
  .image-container img {
    max-height: 300px;
    object-fit: contain;
  }
}

/* Large Desktop */
@media (min-width: 1200px) {
  .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
  }

  /* Enhanced typography for large screens */
  h1 {
    font-size: 2.5rem;
  }
  h2 {
    font-size: 2.2rem;
  }

  /* Better spacing for large screens */
  .pool-metrics {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
  }
}

/* Animations */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-9px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* Pool ID Widget */
.pool-id-container {
  position: fixed;
  top: calc(var(--header-height) + 20px);
  left: 20px;
  z-index: 999;
  background: rgba(10, 21, 33, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
  width: auto;
  max-width: 210px;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.pool-id-container:hover {
  opacity: 1;
}

.pool-id-toggle {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.75rem;
  cursor: pointer;
  padding: 8px 12px;
  transition: all 0.3s ease;
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  border-radius: 8px;
}

.pool-id-toggle:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--accent-color);
}

.pool-id-toggle::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 185, 64, 0.1),
    transparent
  );
  transition: left 0.5s ease;
}

.pool-id-toggle:hover::before {
  left: 100%;
}

.pool-id-toggle:hover {
  color: #ffa500;
  text-shadow: 0 0 8px rgba(255, 165, 0, 0.3);
}

.pool-id-toggle-icon {
  margin-left: 8px;
  font-size: 0.7rem;
  transition: transform 0.3s ease;
  display: inline-block;
}

.pool-id-toggle[aria-expanded="true"] .pool-id-toggle-icon {
  transform: rotate(180deg);
}

.pool-id-section {
  background: rgba(28, 42, 59, 0.3);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.4s ease;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

.pool-id-section.expanded {
  max-height: 100px;
  opacity: 1;
  padding: 8px;
}

.pool-id-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
}

.pool-id-content:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 185, 64, 0.3);
}

.pool-id-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 1px;
}

.pool-id-icon {
  width: 14px;
  height: 14px;
  background: var(--accent-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0a1521;
  font-size: 0.55rem;
  font-weight: bold;
  flex-shrink: 0;
}

.pool-id-label {
  font-weight: 500;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.2px;
  line-height: 1.2;
}

.pool-id-copy-hint {
  margin-left: auto;
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.5);
  opacity: 0.7;
  transition: opacity 0.3s ease;
  white-space: nowrap;
}

.pool-id-content:hover .pool-id-copy-hint {
  opacity: 1;
  color: var(--accent-color);
}

.pool-id-value {
  font-family: "SF Mono", "Monaco", "Cascadia Code", "Roboto Mono", monospace;
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.85);
  word-break: break-all;
  line-height: 1.1;
  background: rgba(0, 0, 0, 0.2);
  padding: 3px 5px;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  font-weight: 400;
  letter-spacing: 0.2px;
}

.pool-id-copied {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: white;
  padding: 16px 24px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  z-index: 10000;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  box-shadow: 0 8px 32px rgba(34, 197, 94, 0.3);
  display: flex;
  align-items: center;
  gap: 8px;
}

.pool-id-copied.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.02);
}

.pool-id-copied::before {
  content: "✓";
  width: 20px;
  height: 20px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: bold;
}

@media (max-width: 768px) {
  .pool-id-container {
    top: calc(var(--mobile-header-height) + 10px);
    left: 10px;
    max-width: 180px;
  }

  .pool-id-toggle {
    font-size: 0.7rem;
    padding: 6px 10px;
  }

  .pool-id-section.expanded {
    padding: 6px;
    max-height: 90px;
  }

  .pool-id-content {
    padding: 5px;
    gap: 3px;
  }

  .pool-id-label {
    font-size: 0.65rem;
  }

  .pool-id-value {
    font-size: 0.6rem;
    padding: 3px 5px;
  }

  .pool-id-copy-hint {
    font-size: 0.5rem;
  }
}

/* Floating Buttons */
.floating-buttons {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 100;
}

.floating-button {
  padding: 9px 18px;
  background-color: rgba(255, 165, 0, 0.9);
  color: #0a1521;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-family: "Poppins", sans-serif;
  font-weight: bold;
  font-size: 0.75rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  text-decoration: none;
  text-align: center;
  min-width: 105px;
}

.floating-button:hover {
  transform: translateY(-5px);
  background-color: #ffa500;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* Mobile navigation styles */
.mobile-only-nav {
  display: none !important;
}

@media (max-width: 768px) {
  /* Hide floating buttons on mobile */
  .floating-buttons {
    display: none;
  }

  /* Show mobile-only nav items */
  .mobile-only-nav {
    display: block !important;
    padding: 10px 15px;
    background-color: rgba(255, 165, 0, 0.9);
    color: #0a1521 !important;
    border-radius: 4px;
    margin: 5px 0;
    text-align: center;
    font-weight: bold;
  }

  /* Existing mobile menu styles with updates */
  nav.mobile-active {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background-color: rgba(10, 21, 33, 0.95);
  }

  nav a {
    width: 100%;
    text-align: center;
  }

  .mobile-only-nav:hover {
    background-color: #ffa500;
    transform: translateY(-2px);
  }
}

/* Skip Navigation Link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #000;
  color: #fff;
  padding: 8px;
  z-index: 100;
  text-decoration: none;
}
.skip-link:focus {
  top: 0;
}

/* Lazy loaded image animation */
img[data-src] {
  opacity: 0;
  transition: opacity 0.3s;
}

img.lazy-loaded {
  opacity: 1;
}

/* Explore Cardano dropdown styles */
.explore-content {
  min-width: 200px;
}

.explore-item {
  display: flex !important;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  transition: all 0.3s ease;
}

.explore-item:hover {
  background: rgba(255, 185, 64, 0.1);
  transform: translateX(5px);
}

.explore-item img {
  border-radius: 4px;
  flex-shrink: 0;
}

.explore-item span {
  font-weight: 500;
}

/* Introduction slide font size reduction */
#introduction .slide-text {
  font-size: 0.8rem;
}

#introduction .slide-text h1 {
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: 0.5px;
  color: var(--accent-color);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

#introduction .slide-text h2 {
  font-size: 1.2rem;
  color: var(--accent-color);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

#introduction .slide-text h3 {
  font-size: 1.1rem;
  color: var(--accent-color);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Mobile Tab Interface Enhancements */
@media (max-width: 768px) {
  /* Enhanced mobile tab button styling */
  .mobile-tab-button {
    position: relative;
    overflow: hidden;
  }

  .mobile-tab-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
      90deg,
      transparent,
      rgba(255, 185, 64, 0.2),
      transparent
    );
    transition: left 0.5s ease;
  }

  .mobile-tab-button:hover::before {
    left: 100%;
  }

  /* Mobile tab content fade-in animation */
  .mobile-tab-content {
    animation: fadeInUp 0.3s ease-out;
  }

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

  /* Enhanced mobile metric cards */
  .mobile-metric-card {
    transition: all 0.3s ease;
    cursor: pointer;
  }

  .mobile-metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 185, 64, 0.2);
    border-color: rgba(255, 185, 64, 0.3);
  }

  /* Mobile-specific performance metrics adjustments */
  #performanceMetrics {
    padding: 0 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
  }

  /* Force mobile layout for performance metrics container */
  #performanceMetrics > div[style*="display: flex"] {
    display: flex !important;
    flex-direction: column !important;
    padding: 15px !important;
    gap: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    justify-content: center !important;
    align-items: center !important;
  }

  /* Remove sidebar completely on mobile */
  #performanceMetrics div[style*="width: 220px"],
  #performanceMetrics div[style*="flex: 0 0 220px"] {
    display: none !important;
  }

  /* Smooth scrolling for mobile tab content */
  .mobile-tab-container {
    scroll-behavior: smooth;
  }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
  .mobile-tab-button {
    font-size: 0.8rem !important;
    padding: 10px 6px !important;
  }

  .mobile-metric-card {
    padding: 12px !important;
  }

  .mobile-metric-card h4 {
    font-size: 0.75rem !important;
  }

  .mobile-metric-card .metric-value {
    font-size: 1.1rem !important;
  }
}


/* CRYPTOGPT BUTTON OVERRIDE - FINAL FIX */
a[href*="cryptogpt"] {
  background: linear-gradient(135deg, #ffb940 0%, #ff9500 100%) !important;
  box-shadow: 0 4px 12px rgba(255, 185, 64, 0.4), 0 0 20px rgba(255, 185, 64, 0.2) !important;
  font-weight: 700 !important;
  border: 2px solid #ff9500 !important;
  animation: cryptogptGlow 3s ease-in-out infinite !important;
}

/* a[href*="cryptogpt"]:hover {
  background: linear-gradient(135deg, #ffcb66 0%, #ffb940 100%) !important;
  transform: translateY(-3px) !important;
  box-shadow: 0 8px 16px rgba(255, 185, 64, 0.6), 0 0 30px rgba(255, 185, 64, 0.4) !important;
  border-color: #ffcb66 !important;
} */

@keyframes cryptogptGlow {
  0%, 100% { 
    box-shadow: 0 4px 12px rgba(255, 185, 64, 0.4), 0 0 20px rgba(255, 185, 64, 0.2) !important;
  }
  50% { 
    box-shadow: 0 4px 12px rgba(255, 185, 64, 0.6), 0 0 25px rgba(255, 185, 64, 0.3) !important;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .mobile-tab-content {
    animation: none !important;
  }

  .mobile-tab-button::before {
    transition: none !important;
  }
}

/* Dark Mode Profile Button Support */
[data-theme="dark"], body.dark-mode {
  /* Dark mode profile button - more muted, sophisticated */
  --profile-gradient: linear-gradient(135deg, #2C5F7A 0%, #3A6B85 100%);
  --profile-shadow: 0 4px 12px rgba(44, 95, 122, 0.4), 0 0 20px rgba(79, 179, 217, 0.15);
}

/* Profile Button Interactive States */
.profile-avatar-btn:hover {
  transform: scale(1.05);
  box-shadow: var(--profile-shadow), 0 6px 20px rgba(79, 179, 217, 0.2) !important;
}

[data-theme="dark"] .profile-avatar-btn:hover,
body.dark-mode .profile-avatar-btn:hover {
  box-shadow: 0 6px 20px rgba(44, 95, 122, 0.5), 0 0 25px rgba(79, 179, 217, 0.25) !important;
}
/* ========================================================================
   AUTHENTICATION STYLES - MERGED FOR PERFORMANCE OPTIMIZATION
   ======================================================================== */
/* ========================================================================
   SIMBA POOL - PROFESSIONAL AUTHENTICATION DESIGN SYSTEM
   World-class, minimalistic auth experience
   ======================================================================== */

/* ==================== CORE VARIABLES ==================== */
:root {
  /* Brand Colors - Simba Pool Professional Theme */
  --sp-primary: #1a252f;
  --sp-secondary: #2c3e50;
  --sp-tertiary: #34495e;
  --sp-accent: #4fb3d9;
  --sp-accent-hover: #5fc3e9;
  --sp-accent-light: rgba(79, 179, 217, 0.1);
  
  /* Neutrals */
  --sp-white: #ffffff;
  --sp-gray-50: #f8fafc;
  --sp-gray-100: #f1f5f9;
  --sp-gray-200: #e2e8f0;
  --sp-gray-300: #cbd5e1;
  --sp-gray-400: #94a3b8;
  --sp-gray-500: #64748b;
  --sp-gray-600: #475569;
  --sp-gray-700: #334155;
  --sp-gray-800: #1e293b;
  --sp-gray-900: #0f172a;
  
  /* Status Colors */
  --sp-success: #10b981;
  --sp-warning: #f59e0b;
  --sp-error: #ef4444;
  
  /* Typography */
  --sp-font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --sp-font-display: 'Plus Jakarta Sans', 'Inter', sans-serif;
  
  /* Spacing Scale */
  --sp-space-1: 0.25rem;
  --sp-space-2: 0.5rem;
  --sp-space-3: 0.75rem;
  --sp-space-4: 1rem;
  --sp-space-5: 1.25rem;
  --sp-space-6: 1.5rem;
  --sp-space-8: 2rem;
  --sp-space-10: 2.5rem;
  --sp-space-12: 3rem;
  --sp-space-16: 4rem;
  --sp-space-20: 5rem;
  
  /* Border Radius */
  --sp-radius-sm: 0.375rem;
  --sp-radius-md: 0.5rem;
  --sp-radius-lg: 0.75rem;
  --sp-radius-xl: 1rem;
  --sp-radius-2xl: 1.5rem;
  
  /* Shadows */
  --sp-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --sp-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --sp-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --sp-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --sp-shadow-brand: 0 10px 25px rgba(79, 179, 217, 0.15);
  
  /* Animations */
  --sp-transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --sp-transition-slow: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==================== RESET & BASE ==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  height: 100%;
  font-family: var(--sp-font-primary);
  font-size: 16px;
  line-height: 1.6;
  color: var(--sp-gray-800);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==================== LAYOUT SYSTEM ==================== */
.auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--sp-gray-50) 0%, var(--sp-gray-100) 100%);
  padding: var(--sp-space-4);
  position: relative;
  overflow: hidden;
}

.auth-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 20%, rgba(79, 179, 217, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(79, 179, 217, 0.03) 0%, transparent 40%),
    linear-gradient(135deg, var(--sp-gray-50) 0%, var(--sp-white) 50%, var(--sp-gray-50) 100%);
  pointer-events: none;
}

.auth-card {
  background: var(--sp-white);
  border-radius: var(--sp-radius-2xl);
  padding: var(--sp-space-12);
  box-shadow: var(--sp-shadow-xl);
  border: 1px solid var(--sp-gray-100);
  max-width: 420px;
  width: 100%;
  position: relative;
  z-index: 1;
  backdrop-filter: blur(10px);
}

/* ==================== HEADER SECTION ==================== */
.auth-header {
  text-align: center;
  margin-bottom: var(--sp-space-8);
}

.auth-logo {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--sp-space-4);
  display: block;
  border-radius: 50%;
  border: 3px solid var(--sp-color-primary);
  padding: 8px;
  background: white;
  box-shadow: 0 4px 12px rgba(79, 179, 217, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-logo:hover {
  transform: scale(1.05) rotate(5deg);
  box-shadow: 0 6px 20px rgba(79, 179, 217, 0.3);
  border-color: var(--sp-accent);
}

.auth-title {
  font-family: var(--sp-font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--sp-gray-900);
  margin-bottom: var(--sp-space-2);
  letter-spacing: -0.025em;
}

.auth-subtitle {
  font-size: 1rem;
  color: var(--sp-gray-600);
  font-weight: 400;
  line-height: 1.5;
}

/* ==================== NAVIGATION ==================== */
.auth-nav {
  position: absolute;
  top: var(--sp-space-6);
  left: var(--sp-space-6);
  z-index: 10;
}

.nav-back {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-space-2);
  color: var(--sp-gray-600);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  padding: var(--sp-space-2) var(--sp-space-3);
  border-radius: var(--sp-radius-md);
  transition: var(--sp-transition);
  background: var(--sp-white);
  box-shadow: var(--sp-shadow-sm);
  border: 1px solid var(--sp-gray-200);
}

.nav-back:hover {
  color: var(--sp-accent);
  background: var(--sp-accent-light);
  border-color: rgba(79, 179, 217, 0.2);
  transform: translateX(-2px);
}

.nav-back svg {
  width: 16px;
  height: 16px;
}

/* ==================== FORM SYSTEM ==================== */
.auth-form {
  margin-bottom: var(--sp-space-6);
}

.form-group {
  margin-bottom: var(--sp-space-5);
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--sp-gray-700);
  margin-bottom: var(--sp-space-2);
  letter-spacing: 0.025em;
}

.form-input {
  width: 100%;
  padding: var(--sp-space-3) var(--sp-space-4);
  border: 2px solid var(--sp-gray-200);
  border-radius: 25px;
  font-size: 1rem;
  font-family: var(--sp-font-primary);
  background: var(--sp-white);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.form-input:focus {
  border-color: var(--sp-accent);
  box-shadow: 0 0 0 4px rgba(79, 179, 217, 0.15), 0 4px 12px rgba(79, 179, 217, 0.1);
  background: var(--sp-white);
  transform: translateY(-1px);
}

.form-input:hover:not(:focus) {
  border-color: var(--sp-gray-300);
  transform: translateY(-0.5px);
}

/* Input Icon Wrapper */
.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  color: var(--sp-gray-400);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.input-icon svg {
  width: 20px;
  height: 20px;
}

.form-input.with-icon {
  padding-left: 48px;
}

.email-input-wrapper:focus-within .input-icon {
  color: var(--sp-accent);
  transform: translateY(-50%) scale(1.1);
}

.form-input::placeholder {
  color: var(--sp-gray-400);
  font-weight: 400;
}

/* Input States */
.form-input.error {
  border-color: var(--sp-error);
  background: rgba(239, 68, 68, 0.02);
}

.form-input.error:focus {
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-input.success {
  border-color: var(--sp-success);
  background: rgba(16, 185, 129, 0.02);
}

/* ==================== BUTTON SYSTEM ==================== */
.btn-primary {
  width: 100%;
  background: linear-gradient(135deg, var(--sp-accent) 0%, var(--sp-accent-hover) 100%);
  color: var(--sp-white);
  border: none;
  padding: var(--sp-space-4);
  border-radius: var(--sp-radius-lg);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--sp-transition);
  position: relative;
  overflow: hidden;
  font-family: var(--sp-font-primary);
  letter-spacing: 0.025em;
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: var(--sp-shadow-brand);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  width: 100%;
  background: transparent;
  color: var(--sp-gray-700);
  border: 1.5px solid var(--sp-gray-200);
  padding: var(--sp-space-4);
  border-radius: var(--sp-radius-lg);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--sp-transition);
  font-family: var(--sp-font-primary);
}

.btn-secondary:hover {
  background: var(--sp-gray-50);
  border-color: var(--sp-gray-300);
}

/* ==================== UTILITY CLASSES ==================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }

.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.text-gray-600 { color: var(--sp-gray-600); }
.text-gray-700 { color: var(--sp-gray-700); }
.text-accent { color: var(--sp-accent); }
.text-error { color: var(--sp-error); }
.text-success { color: var(--sp-success); }

.mb-2 { margin-bottom: var(--sp-space-2); }
.mb-3 { margin-bottom: var(--sp-space-3); }
.mb-4 { margin-bottom: var(--sp-space-4); }
.mb-6 { margin-bottom: var(--sp-space-6); }

.mt-2 { margin-top: var(--sp-space-2); }
.mt-3 { margin-top: var(--sp-space-3); }
.mt-4 { margin-top: var(--sp-space-4); }
.mt-6 { margin-top: var(--sp-space-6); }

/* ==================== FORM VALIDATION ==================== */
.form-error {
  color: var(--sp-error);
  font-size: 0.875rem;
  margin-top: var(--sp-space-1);
  display: flex;
  align-items: center;
  gap: var(--sp-space-1);
}

.form-success {
  color: var(--sp-success);
  font-size: 0.875rem;
  margin-top: var(--sp-space-1);
  display: flex;
  align-items: center;
  gap: var(--sp-space-1);
}

/* ==================== LINKS ==================== */
.auth-link {
  color: var(--sp-accent);
  text-decoration: none;
  font-weight: 500;
  transition: var(--sp-transition);
  border-bottom: 1px solid transparent;
}

.auth-link:hover {
  color: var(--sp-accent-hover);
  border-bottom-color: var(--sp-accent-hover);
}

.auth-footer {
  text-align: center;
  padding-top: var(--sp-space-6);
  border-top: 1px solid var(--sp-gray-100);
  margin-top: var(--sp-space-6);
}

.auth-footer p {
  color: var(--sp-gray-600);
  font-size: 0.875rem;
  margin-bottom: var(--sp-space-2);
}

/* ==================== LOADING STATES ==================== */
.loading {
  position: relative;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  border: 2px solid transparent;
  border-top: 2px solid var(--sp-white);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.loading .btn-text {
  opacity: 0;
}

@keyframes spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 480px) {
  .auth-container {
    padding: var(--sp-space-3);
  }
  
  .auth-card {
    padding: var(--sp-space-8);
    max-width: 100%;
    border-radius: var(--sp-radius-xl);
  }
  
  .auth-title {
    font-size: 1.75rem;
  }
  
  .auth-nav {
    top: var(--sp-space-4);
    left: var(--sp-space-4);
  }
}

@media (max-width: 320px) {
  .auth-card {
    padding: var(--sp-space-6);
  }
  
  .auth-title {
    font-size: 1.5rem;
  }
}

/* ==================== ACCESSIBILITY ==================== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (prefers-color-scheme: dark) {
  /* Dark mode support - can be activated if needed */
  :root {
    --sp-gray-50: #0f172a;
    --sp-gray-100: #1e293b;
    --sp-white: #1e293b;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --sp-gray-200: #000000;
    --sp-accent: #0000ff;
  }
}

/* ========================================================================
   PAYMENT SYSTEM STYLES - MERGED FOR PERFORMANCE OPTIMIZATION
   ======================================================================== */
/* =====================================================
   CRYPTOGPT PAYMENT SYSTEM STYLES
   Production-ready payment UI components
===================================================== */

:root {
    /* Payment color scheme */
    --payment-primary: #4FB3D9;
    --payment-success: #22c55e;
    --payment-error: #ef4444;
    --payment-warning: #f59e0b;
    --payment-info: #3b82f6;
    
    /* Payment gradients */
    --payment-gradient: linear-gradient(135deg, #4FB3D9 0%, #5FC3E9 100%);
    --payment-success-gradient: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    --payment-error-gradient: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    
    /* Payment spacing */
    --payment-border-radius: 12px;
    --payment-shadow: 0 4px 12px rgba(79, 179, 217, 0.2);
    --payment-shadow-hover: 0 8px 24px rgba(79, 179, 217, 0.3);
}

/* =====================================================
   PAYMENT BUTTONS
===================================================== */

.payment-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    
    padding: 0.875rem 1.5rem;
    border: 2px solid var(--payment-primary);
    border-radius: var(--payment-border-radius);
    
    background: var(--payment-gradient);
    color: white;
    
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    box-shadow: var(--payment-shadow);
    
    position: relative;
    overflow: hidden;
}

.payment-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.payment-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--payment-shadow-hover);
    border-color: #3A9BC8;
}

.payment-button:hover::before {
    left: 100%;
}

.payment-button:active {
    transform: translateY(0);
    transition: transform 0.1s ease;
}

.payment-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.payment-button:disabled:hover {
    transform: none;
    box-shadow: var(--payment-shadow);
}

/* Payment button variants */
.payment-button--success {
    background: var(--payment-success-gradient);
    border-color: var(--payment-success);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.2);
}

.payment-button--success:hover {
    box-shadow: 0 8px 24px rgba(34, 197, 94, 0.3);
    border-color: #15803d;
}

.payment-button--error {
    background: var(--payment-error-gradient);
    border-color: var(--payment-error);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

.payment-button--error:hover {
    box-shadow: 0 8px 24px rgba(239, 68, 68, 0.3);
    border-color: #b91c1c;
}

.payment-button--outline {
    background: transparent;
    color: var(--payment-primary);
    border-color: var(--payment-primary);
}

.payment-button--outline:hover {
    background: var(--payment-gradient);
    color: white;
}

/* Payment button sizes */
.payment-button--small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.payment-button--large {
    padding: 1.125rem 2rem;
    font-size: 1.125rem;
}

/* =====================================================
   PAYMENT SPINNER
===================================================== */

.payment-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: payment-spin 1s ease-in-out infinite;
    margin-right: 0.5rem;
}

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

/* =====================================================
   PAYMENT NOTIFICATIONS
===================================================== */

.payment-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    
    max-width: 400px;
    min-width: 300px;
    
    background: white;
    border-radius: var(--payment-border-radius);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    
    animation: payment-slide-in 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    overflow: hidden;
}

.payment-notification__content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    
    border-left: 4px solid var(--payment-info);
}

.payment-notification--success .payment-notification__content {
    border-left-color: var(--payment-success);
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.05) 0%, rgba(34, 197, 94, 0.02) 100%);
}

.payment-notification--error .payment-notification__content {
    border-left-color: var(--payment-error);
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.05) 0%, rgba(239, 68, 68, 0.02) 100%);
}

.payment-notification--warning .payment-notification__content {
    border-left-color: var(--payment-warning);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.05) 0%, rgba(245, 158, 11, 0.02) 100%);
}

.payment-notification__icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.payment-notification__message {
    flex: 1;
    font-size: 0.925rem;
    font-weight: 500;
    color: #374151;
    line-height: 1.4;
}

.payment-notification__close {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: #9ca3af;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.payment-notification__close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #374151;
}

@keyframes payment-slide-in {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* =====================================================
   PAYMENT MODALS
===================================================== */

.payment-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.payment-modal.active {
    opacity: 1;
    visibility: visible;
}

.payment-modal__content {
    background: white;
    border-radius: var(--payment-border-radius);
    box-shadow: 0 20px 64px rgba(0, 0, 0, 0.25);
    
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.payment-modal.active .payment-modal__content {
    transform: scale(1) translateY(0);
}

.payment-modal__header {
    padding: 1.5rem 1.5rem 0;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 1.5rem;
}

.payment-modal__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 0.5rem 0;
}

.payment-modal__subtitle {
    font-size: 0.925rem;
    color: #6b7280;
    margin: 0;
}

.payment-modal__body {
    padding: 0 1.5rem 1.5rem;
}

.payment-modal__footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
    
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

.payment-modal__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #9ca3af;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.payment-modal__close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #374151;
}

/* =====================================================
   PAYMENT CARDS
===================================================== */

.payment-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: var(--payment-border-radius);
    padding: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.payment-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--payment-gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.payment-card:hover {
    border-color: var(--payment-primary);
    box-shadow: var(--payment-shadow);
    transform: translateY(-2px);
}

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

.payment-card--featured {
    border-color: var(--payment-primary);
    box-shadow: var(--payment-shadow);
    position: relative;
}

.payment-card--featured::before {
    transform: scaleX(1);
}

.payment-card--featured::after {
    content: 'Most Popular';
    position: absolute;
    top: -1px;
    right: 1rem;
    
    background: var(--payment-gradient);
    color: white;
    
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 0 0 6px 6px;
}

/* =====================================================
   PAYMENT FORMS
===================================================== */

.payment-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.payment-form__group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.payment-form__label {
    font-size: 0.925rem;
    font-weight: 600;
    color: #374151;
}

.payment-form__input {
    padding: 0.75rem 1rem;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.925rem;
    transition: all 0.2s ease;
}

.payment-form__input:focus {
    outline: none;
    border-color: var(--payment-primary);
    box-shadow: 0 0 0 3px rgba(79, 179, 217, 0.1);
}

.payment-form__error {
    font-size: 0.825rem;
    color: var(--payment-error);
    margin-top: 0.25rem;
}

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

@media (max-width: 768px) {
    .payment-notification {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        min-width: 0;
    }
    
    .payment-modal {
        padding: 0.5rem;
    }
    
    .payment-modal__content {
        max-height: 95vh;
    }
    
    .payment-modal__header,
    .payment-modal__body,
    .payment-modal__footer {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .payment-button {
        width: 100%;
        justify-content: center;
    }
    
    .payment-card {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .payment-button {
        padding: 0.75rem 1.25rem;
        font-size: 0.875rem;
    }
    
    .payment-button--large {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
    
    .payment-modal__title {
        font-size: 1.25rem;
    }
    
    .payment-notification__message {
        font-size: 0.875rem;
    }
}

/* =====================================================
   ACCESSIBILITY
===================================================== */

@media (prefers-reduced-motion: reduce) {
    .payment-button,
    .payment-card,
    .payment-notification,
    .payment-modal,
    .payment-modal__content,
    .payment-spinner {
        animation: none !important;
        transition: none !important;
    }
    
    .payment-button::before,
    .payment-card::before {
        transition: none !important;
    }
}

/* Focus styles for accessibility */
.payment-button:focus-visible,
.payment-modal__close:focus-visible {
    outline: 2px solid var(--payment-primary);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .payment-button {
        border-width: 3px;
    }
    
    .payment-card {
        border-width: 3px;
    }
    
    .payment-notification__content {
        border-left-width: 6px;
    }
}

/* =====================================================
   DARK MODE SUPPORT
===================================================== */

@media (prefers-color-scheme: dark) {
    .payment-modal__content,
    .payment-card,
    .payment-notification {
        background: #1f2937;
        color: #f9fafb;
    }
    
    .payment-modal__title {
        color: #f9fafb;
    }
    
    .payment-modal__subtitle,
    .payment-form__label {
        color: #d1d5db;
    }
    
    .payment-notification__message {
        color: #e5e7eb;
    }
    
    .payment-form__input {
        background: #374151;
        border-color: #4b5563;
        color: #f9fafb;
    }
    
    .payment-form__input:focus {
        border-color: var(--payment-primary);
        background: #4b5563;
    }
    
    .payment-modal__footer {
        background: #111827;
        border-color: #374151;
    }
    
    .payment-card {
        border-color: #374151;
    }
    
    .payment-card:hover {
        border-color: var(--payment-primary);
    }
}