* {
  box-sizing: border-box;
}

:root {
  --bg: #0a0a0a;
  --bg-secondary: #111111;
  --panel: #1a1a1a;
  --panel-hover: #222222;
  --border: #333333;
  --border-light: #444444;
  --text: #ffffff;
  --text-secondary: #a0a0a0;
  --text-muted: #666666;
  --accent: #6366f1;
  --accent-secondary: #8b5cf6;
  --accent-hover: #5855eb;
  --accent-light: #818cf8;
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  --gradient-hover: linear-gradient(135deg, #5855eb 0%, #7c3aed 100%);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-sm: 8px;
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --primary: #6366f1;
  --success-rgb: 16, 185, 129;
}

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  background-image: radial-gradient(circle at 20% 80%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.1) 0%, transparent 50%); /* ← 這裡第 49 行 */
  background-attachment: fixed;
  overflow-x: hidden;
}

/* 關掉 hero 的中央漸層 */
.hero::before { background: none !important; }

/* Container - Improved centering and max-width for better desktop layout */
.container {
  max-width: 1470px; /* Reduced from 1470px for better centering */
  margin: 0 auto;
  padding: 0 24px; /* Fixed padding syntax and increased for better spacing */
}

.hidden {
  display: none !important;
}

/* 加強動畫效果，添加更多流暢的過渡動畫 */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

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

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

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

@keyframes shimmer {
  0% {
    background-position: -200px 0;
  }
  100% {
    background-position: calc(200px + 100%) 0;
  }
}

@keyframes glow {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
  }
  50% {
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.5);
  }
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  40%,
  43% {
    transform: translate3d(0, -8px, 0);
  }
  70% {
    transform: translate3d(0, -4px, 0);
  }
  90% {
    transform: translate3d(0, -2px, 0);
  }
}

/* Epic Loading Animation Styles */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at center, #1a1a2e 0%, #16213e 50%, #0f0f23 100%);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.loading-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

/* Particle System */
.particles-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(99, 102, 241, 0.8);
  border-radius: 50%;
  animation: particleFloat 8s infinite linear;
}

.particle:nth-child(1) {
  left: 10%;
  animation-delay: 0s;
  animation-duration: 6s;
}
.particle:nth-child(2) {
  left: 20%;
  animation-delay: 0.5s;
  animation-duration: 8s;
}
.particle:nth-child(3) {
  left: 30%;
  animation-delay: 1s;
  animation-duration: 7s;
}
.particle:nth-child(4) {
  left: 40%;
  animation-delay: 1.5s;
  animation-duration: 9s;
}
.particle:nth-child(5) {
  left: 50%;
  animation-delay: 2s;
  animation-duration: 6.5s;
}
.particle:nth-child(6) {
  left: 60%;
  animation-delay: 2.5s;
  animation-duration: 8.5s;
}
.particle:nth-child(7) {
  left: 70%;
  animation-delay: 3s;
  animation-duration: 7.5s;
}
.particle:nth-child(8) {
  left: 80%;
  animation-delay: 3.5s;
  animation-duration: 9.5s;
}
.particle:nth-child(9) {
  left: 90%;
  animation-delay: 4s;
  animation-duration: 6.8s;
}
.particle:nth-child(10) {
  left: 15%;
  animation-delay: 0.2s;
  animation-duration: 8.2s;
}
.particle:nth-child(11) {
  left: 25%;
  animation-delay: 0.7s;
  animation-duration: 7.2s;
}
.particle:nth-child(12) {
  left: 35%;
  animation-delay: 1.2s;
  animation-duration: 9.2s;
}
.particle:nth-child(13) {
  left: 45%;
  animation-delay: 1.7s;
  animation-duration: 6.3s;
}
.particle:nth-child(14) {
  left: 55%;
  animation-delay: 2.2s;
  animation-duration: 8.3s;
}
.particle:nth-child(15) {
  left: 65%;
  animation-delay: 2.7s;
  animation-duration: 7.3s;
}
.particle:nth-child(16) {
  left: 75%;
  animation-delay: 3.2s;
  animation-duration: 9.3s;
}
.particle:nth-child(17) {
  left: 85%;
  animation-delay: 3.7s;
  animation-duration: 6.7s;
}
.particle:nth-child(18) {
  left: 95%;
  animation-delay: 4.2s;
  animation-duration: 8.7s;
}
.particle:nth-child(19) {
  left: 5%;
  animation-delay: 4.7s;
  animation-duration: 7.7s;
}

@keyframes particleFloat {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100vh) rotate(360deg);
    opacity: 0;
  }
}

/* Geometric Shapes */
.geometric-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}

.shape {
  position: absolute;
  border: 2px solid rgba(139, 92, 246, 0.3);
  animation: shapeRotate 12s infinite linear;
}

.shape-1 {
  width: 100px;
  height: 100px;
  top: 20%;
  left: 10%;
  border-radius: 50%;
  animation-delay: 0s;
}

.shape-2 {
  width: 80px;
  height: 80px;
  top: 60%;
  right: 15%;
  animation-delay: 2s;
}

.shape-3 {
  width: 60px;
  height: 60px;
  top: 30%;
  right: 30%;
  border-radius: 50%;
  animation-delay: 4s;
}

.shape-4 {
  width: 120px;
  height: 120px;
  bottom: 20%;
  left: 20%;
  animation-delay: 1s;
}

.shape-5 {
  width: 90px;
  height: 90px;
  bottom: 40%;
  right: 10%;
  border-radius: 50%;
  animation-delay: 3s;
}

@keyframes shapeRotate {
  0% {
    transform: rotate(0deg) scale(1);
    opacity: 0.3;
  }
  50% {
    transform: rotate(180deg) scale(1.2);
    opacity: 0.6;
  }
  100% {
    transform: rotate(360deg) scale(1);
    opacity: 0.3;
  }
}

/* Main Logo Animation */
.logo-animation {
  position: relative;
  z-index: 10;
  margin-bottom: 60px;
}

.logo-container {
  position: relative;
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-circle {
  width: 120px;
  height: 120px;
  border: 3px solid rgba(99, 102, 241, 0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  animation: logoGlow 2s ease-in-out infinite alternate;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
}

.logo-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: logoFloat 3s ease-in-out infinite;
}

.logo-dot {
  width: 16px;
  height: 16px;
  background: var(--gradient);
  border-radius: 50%;
  animation: logoPulse 1.5s ease-in-out infinite;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.6);
}

.logo-text {
  font-size: 24px;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 2px;
}

.logo-rings {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.ring {
  position: absolute;
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 50%;
  animation: ringExpand 3s ease-in-out infinite;
}

.ring-1 {
  width: 140px;
  height: 140px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: 0s;
}

.ring-2 {
  width: 160px;
  height: 160px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: 1s;
}

.ring-3 {
  width: 180px;
  height: 180px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: 2s;
}

@keyframes logoGlow {
  0% {
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.3);
    border-color: rgba(99, 102, 241, 0.5);
  }
  100% {
    box-shadow: 0 0 50px rgba(99, 102, 241, 0.6);
    border-color: rgba(99, 102, 241, 0.8);
  }
}

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

@keyframes logoPulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.6);
  }
  50% {
    transform: scale(1.2);
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.8);
  }
}

@keyframes ringExpand {
  0% {
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0;
  }
  50% {
    opacity: 0.6;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 0;
  }
}

/* Text Animation Sequence */
.text-sequence {
  position: relative;
  z-index: 10;
  margin-bottom: 40px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.text-line {
  position: absolute;
  font-size: 48px;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0;
  transform: translateY(30px);
  animation: textReveal 1.2s ease-out forwards;
}

.text-1 {
  animation-delay: 1s;
}

.text-2 {
  animation-delay: 2.2s;
}

.text-3 {
  animation-delay: 3.4s;
}

.text-4 {
  animation-delay: 4.6s;
  font-size: 36px;
  animation-duration: 2s;
}

@keyframes textReveal {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.8);
  }
  20% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  80% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-30px) scale(0.8);
  }
}

.text-4 {
  animation-name: textRevealFinal;
}

@keyframes textRevealFinal {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.8);
  }
  20% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Progress Indicator */
.loading-progress {
  position: relative;
  z-index: 10;
  width: 300px;
  margin-bottom: 40px;
}

.progress-bar {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 16px;
}

.progress-fill {
  height: 100%;
  background: var(--gradient);
  width: 0%;
  border-radius: 2px;
  animation: progressFill 6s ease-in-out forwards;
  position: relative;
}

.progress-fill::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: progressShimmer 1.5s infinite;
}

@keyframes progressFill {
  0% {
    width: 0%;
  }
  20% {
    width: 15%;
  }
  40% {
    width: 35%;
  }
  60% {
    width: 60%;
  }
  80% {
    width: 85%;
  }
  100% {
    width: 100%;
  }
}

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

.progress-text {
  text-align: center;
  color: var(--text-secondary);
  font-size: 16px;
  font-weight: 500;
  animation: progressTextPulse 2s ease-in-out infinite;
}

@keyframes progressTextPulse {
  0%,
  100% {
    opacity: 0.7;
  }
  50% {
    opacity: 1;
  }
}

/* Energy Waves */
.energy-waves {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 400px;
  z-index: 1;
}

.wave {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100px;
  height: 100px;
  border: 2px solid rgba(99, 102, 241, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: waveExpand 4s ease-out infinite;
}

.wave-1 {
  animation-delay: 0s;
}

.wave-2 {
  animation-delay: 1.3s;
}

.wave-3 {
  animation-delay: 2.6s;
}

@keyframes waveExpand {
  0% {
    width: 100px;
    height: 100px;
    opacity: 0.8;
    border-width: 2px;
  }
  100% {
    width: 400px;
    height: 400px;
    opacity: 0;
    border-width: 1px;
  }
}

/* Loading Animation States */
.loading-overlay.fade-out {
  animation: loadingFadeOut 1s ease-in-out forwards;
}

@keyframes loadingFadeOut {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(1.1);
  }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  transition: var(--transition);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
  color: var(--text);
}

.brand .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gradient);
  animation: pulse 2s infinite;
}

.brand-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: var(--radius);
  transition: var(--transition);
  font-weight: 500;
}

.nav-link:hover {
  color: var(--text);
  background: var(--panel);
  transform: translateY(-1px);
}

.user-badge {
  background: var(--panel);
  color: var(--text);
  padding: 8px 16px;
  border-radius: var(--radius);
  font-weight: 500;
  border: 1px solid var(--border);
}

.user-badge.clickable {
  cursor: pointer;
  transition: var(--transition);
}

.user-badge.clickable:hover {
  background: var(--panel-hover);
  transform: translateY(-1px);
}

.user-dropdown {
  position: relative;
}

.user-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 280px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: var(--transition);
}

.user-menu:not(.hidden) {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  animation: slideIn 0.3s ease-out;
}

.user-menu-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px;
  border-bottom: 1px solid var(--border);
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.user-details {
  flex: 1;
}

.user-details .username {
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  margin-bottom: 2px;
}

.user-details .email {
  font-size: 12px;
  color: var(--text-secondary);
}

.user-menu-divider {
  height: 1px;
  background: var(--border);
  margin: 8px 0;
}

.user-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 20px;
  background: none;
  border: none;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
}

.user-menu-item:hover {
  background: var(--panel-hover);
}

.user-menu-item.danger {
  color: var(--error);
}

.user-menu-item.danger:hover {
  background: rgba(239, 68, 68, 0.1);
}

.user-menu-item svg {
  width: 16px;
  height: 16px;
  opacity: 0.7;
}

/* Hero Section - Better grid layout and centering */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px; /* Reduced gap for better balance */
  align-items: center;
  padding: 10px 0; /* Slightly reduced padding */
  position: relative;
  overflow: hidden;
  max-width: 1200px; /* Ensure hero doesn't get too wide */
  margin: 0 auto;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  right: -200vw; /* Extended further to ensure full coverage */
  bottom: 0;
  width: 400vw; /* Explicit width to guarantee full coverage */
  background: radial-gradient(ellipse at 20% 50%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(168, 85, 247, 0.08) 0%, transparent 50%);
  pointer-events: none;
  transform: translateX(-50%);
}

.hero-content {
  animation: fadeIn 0.8s ease-out;
  z-index: 2;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 32px;
  animation: slideUp 0.6s ease-out 0.2s both;
  backdrop-filter: blur(10px);
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  animation: pulse 2s infinite;
}

.hero-title {
  font-size: 56px;
  font-weight: 900;
  line-height: 1.1;
  margin: 0 0 32px 0;
  background: linear-gradient(135deg, var(--text) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: slideUp 0.8s ease-out 0.4s both;
  letter-spacing: -0.02em;
}

.hero-description {
  font-size: 22px;
  color: var(--text-secondary);
  margin: 0 0 48px 0;
  line-height: 1.6;
  animation: slideUp 0.8s ease-out 0.6s both;
  max-width: 90%;
}

.hero-actions {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-bottom: 60px;
  animation: slideUp 0.8s ease-out 0.8s both;
}

/* Feature Highlights */
.feature-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 48px;
  animation: slideUp 0.8s ease-out 1s both;
}

.feature-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

.feature-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
  border-radius: var(--radius);
  color: white;
  flex-shrink: 0;
}

.feature-content h4 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 4px 0;
  color: var(--text);
}

.feature-content p {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
}

/* Stats Section */
.stats-section {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 32px 0;
  border-top: 1px solid var(--border);
  animation: slideUp 0.8s ease-out 1.2s both;
}

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

.stat-number {
  font-size: 32px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* Hero Visual */
.hero-visual {
  position: relative;
  height: 500px;
  animation: fadeIn 0.8s ease-out 0.2s both;
}

.visual-background {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: var(--radius-xl);
}

.gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.6;
  animation: float 6s ease-in-out infinite;
}

.orb-1 {
  width: 200px;
  height: 200px;
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.orb-2 {
  width: 150px;
  height: 150px;
  background: linear-gradient(135deg, var(--accent-secondary), var(--success));
  top: 60%;
  right: 20%;
  animation-delay: 2s;
}

.orb-3 {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, var(--success), var(--accent));
  bottom: 20%;
  left: 30%;
  animation-delay: 4s;
}

/* Floating Cards - Better positioning to prevent mobile cutoff */
.floating-card {
  position: absolute;
  background: rgba(30, 30, 40, 0.95); /* Dark background instead of white */
  border: 1px solid rgba(255, 255, 255, 0.1); /* Subtle light border */
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-xl);
  backdrop-filter: blur(20px);
  transition: var(--transition-slow);
  z-index: 10;
}

.floating-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl), 0 0 40px rgba(99, 102, 241, 0.15);
  background: rgba(30, 30, 40, 0.98); /* Slightly more opaque on hover */
}

.card-search {
  top: 40px;
  left: 40px;
  width: 280px;
  animation: float 4s ease-in-out infinite;
}

.card-success {
  top: 180px;
  right: 60px;
  width: 220px;
  animation: float 4s ease-in-out infinite 1.5s;
}

/* Fixed stats card positioning to prevent mobile cutoff */
.card-stats {
  bottom: 80px; /* Increased from 60px to prevent cutoff */
  left: 80px;
  width: 200px;
  animation: float 4s ease-in-out infinite 3s;
}

/* Search Bar */
.search-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.1); /* Subtle dark background */
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-bottom: 16px;
}

.search-icon {
  font-size: 16px;
  opacity: 0.6;
}

.search-text {
  color: rgba(255, 255, 255, 0.7); /* Light text */
  font-size: 14px;
}

.search-suggestions {
  display: flex;
  gap: 8px;
}

.suggestion-tag {
  background: rgba(99, 102, 241, 0.2);
  color: rgba(255, 255, 255, 0.8);
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

/* Success Animation */
.success-animation {
  display: flex;
  align-items: center;
  gap: 12px;
}

.success-icon {
  width: 24px;
  height: 24px;
  background: var(--success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 14px;
}

.success-text {
  color: rgba(255, 255, 255, 0.9); /* Light text */
  font-weight: 600;
}

/* Mini Chart */
.mini-chart {
  display: flex;
  align-items: end;
  gap: 4px;
  height: 40px;
  margin-bottom: 8px;
}

.chart-bar {
  width: 8px;
  background: linear-gradient(to top, var(--accent), var(--accent-secondary));
  border-radius: 2px;
  animation: chartGrow 2s ease-in-out infinite;
}

.chart-label {
  color: rgba(255, 255, 255, 0.7); /* Light text */
  font-size: 12px;
  font-weight: 600;
}

/* Products Section */
.products-section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-size: 36px;
  font-weight: 700;
  margin: 0 0 16px 0;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeIn 0.8s ease-out;
}

.section-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  margin: 0;
  animation: fadeIn 0.8s ease-out 0.2s both;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

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

.btn:hover::before {
  left: 100%;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn.primary {
  background: var(--gradient);
  border: none;
  color: white;
}

.btn.primary:hover {
  background: var(--gradient-hover);
  animation: glow 0.5s ease-in-out;
}

.btn.secondary {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
}

.btn.ghost {
  background: transparent;
  border: 1px solid var(--border);
}

.btn.ghost:hover {
  background: var(--panel);
}

.btn.large {
  padding: 16px 32px;
  font-size: 16px;
}

.btn.sm {
  padding: 8px 16px;
  font-size: 12px;
}

.btn.full-width {
  width: 100%;
}

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

.auth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.auth-btn:hover {
  background: var(--bg-secondary);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.auth-icons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.auth-separator {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 300;
}

.login-icon,
.register-icon {
  transition: var(--transition);
}

.auth-btn:hover .login-icon {
  transform: translateX(-2px);
  color: var(--primary);
}

.auth-btn:hover .register-icon {
  transform: translateX(2px);
  color: var(--success);
}

/* Cards */
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: var(--transition-slow);
  animation: fadeIn 0.6s ease-out;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

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

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

/* Checkout Flow */
.checkout-flow {
  padding: 40px 0;
  min-height: 100vh;
  animation: fadeIn 0.5s ease-out;
}

.checkout-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

.checkout-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.checkout-progress {
  display: flex;
  align-items: center;
  gap: 16px;
}

.progress-step {
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0.5;
  transition: var(--transition-slow);
}

.progress-step.active {
  opacity: 1;
  animation: slideIn 0.3s ease-out;
}

.progress-step.completed {
  opacity: 1;
}

.step-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--panel);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  transition: var(--transition);
}

.progress-step.active .step-number {
  background: var(--gradient);
  border-color: var(--accent);
  color: white;
  animation: pulse 2s infinite;
}

.progress-step.completed .step-number {
  background: var(--success);
  border-color: var(--success);
  color: white;
}

.step-label {
  font-weight: 500;
  font-size: 14px;
  white-space: nowrap;
}

.progress-line {
  width: 40px;
  height: 2px;
  background: var(--border);
  transition: var(--transition);
}

.progress-step.completed + .progress-line {
  background: var(--success);
}

.checkout-content {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 60px;
  align-items: start;
}

.checkout-main {
  animation: slideUp 0.6s ease-out;
}

.checkout-step {
  animation: fadeIn 0.4s ease-out;
}

.step-header {
  margin-bottom: 32px;
}

.step-header h3 {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 8px 0;
  color: var(--text);
}

.step-description {
  color: var(--text-secondary);
  margin: 0;
  font-size: 16px;
}

.product-showcase {
  display: flex;
  gap: 24px;
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 32px;
}

.product-image {
  width: 80px;
  height: 80px;
  border-radius: var(--radius);
  object-fit: cover;
  border: 1px solid var(--border);
}

.product-info h4 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 8px 0;
}

.product-description {
  color: var(--text-secondary);
  margin: 0;
  font-size: 14px;
}

.options-section {
  margin-bottom: 32px;
}

.options-title {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 16px 0;
  color: var(--text);
}

.options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.addons-grid {
  display: grid;
  gap: 16px;
}

.pill {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pill:hover {
  border-color: var(--border-light);
  transform: translateY(-1px);
}

.pill.active {
  border-color: var(--accent);
  background: rgba(99, 102, 241, 0.1);
}

.form-section {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.autofill-section {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.checkout-form {
  display: grid;
  gap: 20px;
}

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

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

.form-label {
  font-weight: 500;
  font-size: 14px;
  color: var(--text);
}

.form-input {
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-secondary);
  color: var(--text);
  font-size: 14px;
  transition: var(--transition);
}

.form-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

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

.order-review {
  display: grid;
  gap: 24px;
}

.order-summary-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.order-summary-card h5 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 16px 0;
}

.order-details {
  display: grid;
  gap: 12px;
}

.payment-section {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.payment-section h5 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 16px 0;
}

.payment-option {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
}

.payment-option.selected {
  border-color: var(--accent);
  background: rgba(99, 102, 241, 0.1);
}

.payment-icon {
  font-size: 24px;
}

.payment-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.payment-name {
  font-weight: 600;
  font-size: 14px;
}

.payment-desc {
  font-size: 12px;
  color: var(--text-secondary);
}

/* Order Summary Sidebar */
.order-summary {
  position: sticky;
  top: 120px;
  animation: slideUp 0.6s ease-out 0.2s both;
}

.summary-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
}

.summary-title {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 20px 0;
  color: var(--text);
}

.summary-content {
  display: grid;
  gap: 20px;
  margin-bottom: 24px;
}

.quantity-control {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.quantity-label {
  font-weight: 500;
  font-size: 14px;
}

.quantity-selector {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4px;
}

.qty-btn {
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  border-radius: 4px;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.qty-btn:hover {
  background: var(--panel);
}

.qty-value {
  min-width: 32px;
  text-align: center;
  font-weight: 600;
}

.price-breakdown {
  display: grid;
  gap: 12px;
}

.price-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}

.price-line.total {
  font-size: 16px;
  font-weight: 600;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.price-divider {
  height: 1px;
  background: var(--border);
  margin: 8px 0;
}

/* Summary Actions */
.summary-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.status-message {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  border: 1px solid var(--border);
  background: var(--panel);
  animation: slideUp 0.3s ease-out;
}

.status-message.success {
  background: rgba(16, 185, 129, 0.1);
  border-color: var(--success);
  color: var(--success);
}

.status-message.error {
  background: rgba(239, 68, 68, 0.1);
  border-color: var(--error);
  color: var(--error);
}

.status-message.warning {
  background: rgba(245, 158, 11, 0.1);
  border-color: var(--warning);
  color: var(--warning);
}

.status-message.info {
  background: rgba(99, 102, 241, 0.1);
  border-color: var(--accent);
  color: var(--accent);
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease-out;
  padding: 20px;
}

.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp 0.3s ease-out;
}

.modal-content.large {
  max-width: 800px;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border: none;
  background: var(--bg-secondary);
  color: var(--text-secondary);
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.modal-close:hover {
  background: var(--panel-hover);
  color: var(--text);
}

/* Auth Modal */
.auth-content {
  padding: 40px;
}

.auth-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}

.auth-tab {
  flex: 1;
  padding: 12px 24px;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  border-bottom: 2px solid transparent;
}

.auth-tab.active {
  color: var(--text);
  border-bottom-color: var(--accent);
}

.auth-tab:hover {
  color: var(--text);
}

.auth-forms {
  position: relative;
}

.auth-form {
  display: none;
  animation: fadeIn 0.3s ease-out;
}

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

.auth-form h3 {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 8px 0;
  color: var(--text);
}

.auth-subtitle {
  color: var(--text-secondary);
  margin: 0 0 32px 0;
  font-size: 16px;
}

.form {
  display: grid;
  gap: 20px;
}

.form-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 24px;
}

/* Profile Modal */
.profile-content,
.orders-content,
.address-content {
  padding: 40px;
}

.profile-content h3,
.orders-content h3,
.address-content h3 {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 24px 0;
  color: var(--text);
}

/* Orders Modal */
.orders-list {
  display: grid;
  gap: 16px;
  max-height: 60vh;
  overflow-y: auto;
}

.order-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: var(--transition);
}

.order-item:hover {
  border-color: var(--border-light);
}

.order-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.order-id {
  font-weight: 600;
  font-size: 16px;
  color: var(--text);
}

.order-date {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.order-status {
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.order-status.pending {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning);
  border: 1px solid var(--warning);
}

.order-status.paid {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
  border: 1px solid var(--success);
}

.order-status.completed {
  background: rgba(99, 102, 241, 0.1);
  color: var(--accent);
  border: 1px solid var(--accent);
}

.order-details {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.order-product {
  display: flex;
  gap: 16px;
  align-items: center;
  flex: 1;
}

.order-total {
  text-align: right;
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-secondary);
}

.empty-state svg {
  margin-bottom: 16px;
  opacity: 0.5;
}

/* News Carousel */
.news-carousel-section {
  padding: 80px 0;
  margin-bottom: 40px;
}

.news-carousel {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}

.carousel-container {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  background: var(--panel);
  border: 1px solid var(--border);
}

.carousel-track {
  display: flex;
  width: 300%;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
  width: 33.333%;
  position: relative;
  aspect-ratio: 8 / 3;
  overflow: hidden;
}

.news-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.carousel-slide:hover .news-image {
  transform: scale(1.05);
}

.news-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  padding: 40px 32px 32px;
  color: white;
}

.news-content {
  max-width: 600px;
}

.news-badge {
  display: inline-block;
  background: var(--gradient);
  color: white;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.news-title {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 12px 0;
  line-height: 1.2;
}

.news-description {
  font-size: 16px;
  line-height: 1.5;
  margin: 0;
  opacity: 0.9;
}

.carousel-indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.5);
  background: transparent;
  cursor: pointer;
  transition: var(--transition);
}

.indicator.active {
  background: white;
  border-color: white;
}

.indicator:hover {
  border-color: rgba(255, 255, 255, 0.8);
}

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: none;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  z-index: 10;
}

.carousel-container:hover .carousel-nav {
  opacity: 1;
}

.carousel-nav:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: translateY(-50%) scale(1.1);
}

.carousel-nav.prev {
  left: 20px;
}

.carousel-nav.next {
  right: 20px;
}

/* Footer */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 80px 0 30px;
  margin-top: 120px;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  padding-left: calc(50vw - 50%);
  padding-right: calc(50vw - 50%);
  position: relative;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gradient);
}

.footer-content {
  display: grid;
  grid-template-columns: 2.5fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 50px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 24px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.footer-brand .brand {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand .brand::before {
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--gradient);
  animation: pulse 2s infinite;
}

.footer-brand .brand-tagline {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 350px;
  font-weight: 500;
}

.footer-section {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.footer-section h4 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 12px;
}

.footer-section h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--gradient);
  border-radius: 2px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  transition: var(--transition);
  padding: 6px 0;
  position: relative;
  display: inline-block;
}

.footer-links a::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 0;
  height: 2px;
  background: var(--gradient);
  transition: width 0.3s ease;
}

.footer-links a:hover {
  color: var(--accent-light);
  transform: translateX(6px);
}

.footer-links a:hover::before {
  width: 100%;
}

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid var(--border);
  text-align: center;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
  position: relative;
}

.footer-bottom::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 1px;
  background: var(--gradient);
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 15px;
  margin: 0;
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .container {
    max-width: 100%;
    padding: 0 20px;
  }

 .hero {
  padding-top: 60px;  /* 上方間距 */
  padding-bottom: 100px;  /* 保持下方空間 */
}

  /* Adjust floating cards for tablet */
  .card-search {
    top: 20px;
    left: 20px;
    width: 240px;
  }

  .card-success {
    top: 160px;
    right: 20px;
    width: 200px;
  }

  .card-stats {
    bottom: 100px; /* More space from bottom on tablet */
    left: 40px;
    width: 180px;
  }
}

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

  .hero {
    grid-template-columns: 1fr;
    gap: 60px;
    padding: 80px 0;
    text-align: center;
  }

  .hero-title {
    font-size: 40px;
  }

  .hero-description {
    font-size: 18px;
    max-width: 100%;
  }

  .feature-highlights {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .stats-section {
    justify-content: center;
    gap: 24px;
  }

  /* Improved mobile hero visual height and card layout */
  .hero-visual {
    height: 400px; /* Increased from 300px to accommodate all cards */
    margin-bottom: 40px; /* Add margin to prevent cutoff */
  }

  /* Better mobile floating card layout - stack vertically */
  .floating-card {
    position: relative;
    margin-bottom: 20px;
    width: 100% !important;
    max-width: 320px; /* Limit max width on mobile */
    margin-left: auto;
    margin-right: auto;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
  }

  /* Ensure cards are properly spaced on mobile */
  .hero-visual .floating-card:last-child {
    margin-bottom: 0;
  }

  .checkout-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .order-summary {
    position: static;
  }

  .checkout-progress {
    flex-wrap: wrap;
    gap: 8px;
  }

  .step-label {
    display: none;
  }

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

  .carousel-slide {
    aspect-ratio: 4 / 3;
  }

  .news-overlay {
    display: none;
  }

  .news-title {
    font-size: 20px;
  }

  .news-description {
    font-size: 14px;
  }

  .carousel-nav {
    width: 40px;
    height: 40px;
  }

  .carousel-nav.prev {
    left: 12px;
  }

  .carousel-nav.next {
    right: 12px;
  }

  .carousel-indicators {
    bottom: 20px;
  }

  .indicator {
    width: 14px;
    height: 14px;
    border-width: 2px;
  }

  .footer {
    padding: 60px 0 25px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 50px;
    padding: 0 16px;
    text-align: center;
  }

  .footer-brand {
    gap: 20px;
  }

  .footer-brand .brand {
    font-size: 24px;
    justify-content: center;
  }

  .footer-brand .brand-tagline {
    max-width: none;
    font-size: 16px;
  }

  .footer-section h4 {
    font-size: 18px;
  }

  .footer-section h4::after {
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
  }

  .footer-links a {
    font-size: 15px;
  }

  .footer-bottom {
    padding-left: 16px;
    padding-right: 16px;
    padding-top: 25px;
  }

  .footer-bottom p {
    font-size: 14px;
  }

  .auth-icons {
    gap: 6px;
  }

  .auth-separator {
    font-size: 12px;
  }

  .feature-highlights {
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }

  .feature-item {
    justify-content: center;
    padding: 12px;
  }

  .trust-indicators {
    flex-direction: column;
    gap: 8px;
    width: 100%;
  }

  .trust-badge {
    justify-content: center;
    padding: 8px 16px;
  }

  .stats-row {
    gap: 16px;
    justify-content: space-around;
  }

  .stat-number {
    font-size: 20px;
  }

  .stat-label {
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 28px;
  }

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

  .hero-actions .btn {
    width: 100%;
  }

  .section-title {
    font-size: 28px;
  }

  /* Better mobile spacing for very small screens */
  .hero-visual {
    height: 450px; /* Even more height for small screens */
  }

  .floating-card {
    max-width: 280px; /* Smaller max width for tiny screens */
    padding: 20px; /* Slightly less padding */
  }

  .modal-content {
    margin: 16px;
    max-height: calc(100vh - 32px);
  }

  .auth-content,
  .profile-content,
  .orders-content,
  .address-content {
    padding: 24px;
  }
}

/* Additional Keyframes */
@keyframes chartGrow {
  0%,
  100% {
    transform: scaleY(1);
  }
  50% {
    transform: scaleY(1.2);
  }
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}
