:root {
  --bg: #0D0802;
  --bg-gradient: linear-gradient(135deg, #0D0802 0%, #1a1208 50%, #0D0802 100%);
  --text: #FFFFFF;
  --text-secondary: #cccccc;
  --accent: #F57017;
  --accent-hover: #FF8A3D;
  --accent-glow: rgba(245, 112, 23, 0.3);
  --card-dark: #15100A;
  --card-light: #1E150C;
  --card-gradient: linear-gradient(135deg, #15100A 0%, #1E150C 100%);
  --success: #28a745;
  --warning: #ffc107;
  --danger: #dc3545;
  --info: #17a2b8;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  --shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.4);
  --border-radius: 16px;
  --border-radius-small: 12px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#app {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
  min-height: 100vh;
}

/* Smooth scroll and animations */
html {
  scroll-behavior: smooth;
}

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

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

.animate-fade-in {
  animation: fadeInUp 0.8s ease-out;
}

.animate-fade-in-delay {
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.animate-fade-in-delay-2 {
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.animate-slide-up {
  animation: slideInLeft 0.8s ease-out;
}

.animate-slide-up-delay {
  animation: slideInLeft 0.8s ease-out 0.2s both;
}

.animate-slide-down {
  animation: slideInRight 0.8s ease-out;
}

.animate-pulse {
  animation: pulse 2s infinite;
}

.animate-fade-in-scale {
  animation: fadeInScale 0.6s ease-out;
}

header {
  margin-bottom: 60px;
  position: relative;
}

  .logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(245, 112, 23, 0.1);
  }

  .logo {
    width: clamp(60px, 8vw, 80px);
    height: clamp(60px, 8vw, 80px);
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent);
    box-shadow: 0 8px 25px rgba(245, 112, 23, 0.3);
    transition: var(--transition);
    animation: coinRotate 6s ease-in-out infinite;
  }

  .logo:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 35px rgba(245, 112, 23, 0.5);
  }

  @keyframes coinRotate {
    0%, 100% { transform: rotateY(0deg) scaleX(1); }
    25% { transform: rotateY(90deg) scaleX(1); }
    50% { transform: rotateY(180deg) scaleX(-1); }
    75% { transform: rotateY(270deg) scaleX(1); }
  }

  .brand-name {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--accent);
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    background: linear-gradient(45deg, var(--accent), var(--accent-hover));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    letter-spacing: 2px;
  }

.hero-bg {
  background: var(--card-gradient);
  background-size: 400% 400%;
  animation: gradientShift 8s ease infinite;
  padding: 80px 40px;
  border-radius: var(--border-radius);
  text-align: center;
  margin-bottom: 30px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(245, 112, 23, 0.1);
  position: relative;
  overflow: hidden;
}

.hero-bg::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  animation: rotate 20s linear infinite;
  pointer-events: none;
}

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

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

.hero-bg h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--accent);
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.6);
  background: linear-gradient(45deg, var(--accent), var(--accent-hover));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: textGlow 3s ease-in-out infinite alternate;
}

@keyframes textGlow {
  from { filter: drop-shadow(0 0 10px var(--accent-glow)); }
  to { filter: drop-shadow(0 0 20px var(--accent-glow)); }
}

.hero-bg p {
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  margin-bottom: 40px;
  color: var(--text-secondary);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.stat {
  background: var(--card-gradient);
  padding: 30px 20px;
  border-radius: var(--border-radius-small);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.stat::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(245, 112, 23, 0.1), transparent);
  transition: left 0.5s ease;
}

.stat:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent-glow);
}

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

.stat-number {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--accent);
  margin-bottom: 8px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  display: block;
}

.stat-label {
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  color: var(--text-secondary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Progress Bar Styles */
.progress-section {
  margin: 30px 0;
  padding: 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  backdrop-filter: blur(10px);
}

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

.progress-header span {
  font-weight: bold;
  color: var(--accent);
}

.progress-percentage {
  font-size: 1.2rem;
}

.progress-bar {
  width: 100%;
  height: 20px;
  background: var(--card-light);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-hover) 100%);
  border-radius: 10px;
  width: 0%;
  transition: width 0.8s ease;
  position: relative;
  overflow: hidden;
}

.progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

.progress-stats {
  text-align: center;
  margin-top: 10px;
  color: #ddd;
}

/* Admin Panel Styles */
.admin-panel {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--card-dark);
  border: 2px solid var(--accent);
  border-radius: 15px;
  padding: 20px;
  z-index: 10000;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--card-light);
  padding-bottom: 10px;
}

.admin-header h3 {
  color: var(--accent);
  margin: 0;
}

.close-btn {
  background: var(--danger);
  color: white;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-btn:hover {
  background: #c82333;
}

.admin-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.admin-section {
  background: var(--card-light);
  padding: 15px;
  border-radius: 8px;
}

.admin-section h4 {
  color: var(--accent);
  margin-bottom: 15px;
  text-align: center;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  color: var(--text);
  font-weight: bold;
}

.form-group input {
  width: 100%;
  padding: 8px;
  border: 1px solid var(--card-dark);
  border-radius: 5px;
  background: var(--card-dark);
  color: var(--text);
}

.update-btn {
  width: 100%;
  background: var(--success);
  color: white;
  border: none;
  padding: 10px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  margin-top: 10px;
}

.update-btn:hover {
  background: #218838;
}

.admin-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  border: none;
  font-size: 24px;
  cursor: pointer;
  z-index: 1000;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.admin-toggle:hover {
  background: var(--accent-hover);
  transform: scale(1.1);
}

/* Enhanced Card Styles */
.card {
  background: var(--card-gradient);
  border-radius: var(--border-radius);
  padding: clamp(20px, 4vw, 40px);
  margin-bottom: 30px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(20px);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(245, 112, 23, 0.05), transparent);
  transition: left 0.6s ease;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent-glow);
}

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

.card h2 {
  margin-bottom: 25px;
  color: var(--accent);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  position: relative;
}

.card h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-hover));
  border-radius: 2px;
}

.premium-card {
  background: linear-gradient(135deg, #1a1208 0%, #15100a 50%, #1e150c 100%);
  border: 2px solid var(--accent-glow);
  position: relative;
}

.premium-card::after {
  content: '⭐ PREMIUM';
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--accent);
  color: white;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(245, 112, 23, 0.3);
}

/* Exchange Rate Styles */
.exchange-rate {
  background: linear-gradient(135deg, rgba(245, 112, 23, 0.1), rgba(255, 138, 61, 0.05));
  border: 2px solid rgba(245, 112, 23, 0.2);
  border-radius: var(--border-radius-small);
  padding: 25px;
  margin-bottom: 30px;
  text-align: center;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.exchange-rate::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(245, 112, 23, 0.03), transparent);
  animation: rateShimmer 4s ease-in-out infinite;
}

@keyframes rateShimmer {
  0%, 100% { transform: translateX(-100%) translateY(-100%) rotate(0deg); }
  50% { transform: translateX(100%) translateY(100%) rotate(180deg); }
}

.rate-header {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  display: inline-block;
}

.rate-header::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-hover));
  border-radius: 1px;
}

.rate-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin: 20px 0;
  flex-wrap: wrap;
}

.rate-amount {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 900;
  color: var(--text);
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  padding: 10px 20px;
  border-radius: 15px;
  border: 2px solid rgba(245, 112, 23, 0.2);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.rate-amount::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  animation: amountGlow 3s ease-in-out infinite;
}

@keyframes amountGlow {
  0%, 100% { left: -100%; }
  50% { left: 100%; }
}

.rate-arrow {
  font-size: 2rem;
  color: var(--accent);
  animation: arrowPulse 2s ease-in-out infinite;
  transform-origin: center;
}

@keyframes arrowPulse {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.2) rotate(180deg); }
}

.rate-description {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-top: 10px;
  font-weight: 500;
  opacity: 0.9;
}

.exchange-rate:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(245, 112, 23, 0.15);
  border-color: rgba(245, 112, 23, 0.4);
}

.exchange-rate:hover .rate-arrow {
  animation-duration: 1s;
}

.exchange-rate:hover .rate-amount {
  transform: scale(1.05);
  transition: transform 0.3s ease;
}

.glow-effect {
  position: relative;
}

.glow-effect::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, var(--accent), var(--accent-hover), var(--accent));
  border-radius: var(--border-radius);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.glow-effect:hover::before {
  opacity: 0.3;
  animation: glowPulse 2s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.6; }
}

/* Enhanced Button Styles */
button {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  color: var(--text);
  border: none;
  padding: clamp(12px, 2vw, 16px) clamp(20px, 4vw, 32px);
  border-radius: var(--border-radius-small);
  cursor: pointer;
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  font-weight: 600;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(245, 112, 23, 0.2);
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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.5s ease;
}

button:hover {
  background: linear-gradient(135deg, var(--accent-hover) 0%, var(--accent) 100%);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(245, 112, 23, 0.4);
}

button:hover::before {
  left: 100%;
}

button:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(245, 112, 23, 0.3);
}

/* Pulse Animation for Important Buttons */
@keyframes pulse {
  0% { box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); }
  50% { box-shadow: 0 4px 8px rgba(245, 112, 23, 0.6); }
  100% { box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); }
}

button[type="submit"] {
  animation: pulse 2s infinite;
}

/* Wallet Button Styles */
.wallet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.wallet-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 25px 20px;
  background: var(--card-gradient);
  border: 2px solid transparent;
  border-radius: var(--border-radius-small);
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  min-height: 120px;
}

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

.wallet-btn:hover {
  border-color: var(--accent);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(245, 112, 23, 0.2);
}

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

.wallet-btn.phantom-btn {
  background: linear-gradient(135deg, #ab9ff2 0%, #7c3aed 100%);
}

.wallet-btn.trust-btn {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

.wallet-btn.walletconnect-btn {
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
}

.wallet-icon {
  font-size: 2.5rem;
  margin-bottom: 10px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.wallet-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
  text-align: center;
}

/* Wallet Info Styles */
#wallet-info {
  background: linear-gradient(135deg, var(--success) 0%, #20c997 100%);
  border-radius: var(--border-radius-small);
  padding: 20px;
  margin-top: 20px;
  animation: slideInRight 0.5s ease-out;
  border: 1px solid rgba(40, 167, 69, 0.3);
  display: none;
}

.connected-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

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

.wallet-address {
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  background: rgba(0, 0, 0, 0.2);
  padding: 5px 10px;
  border-radius: 5px;
  word-break: break-all;
}

.disconnect-btn {
  background: var(--danger);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: var(--transition);
}

.disconnect-btn:hover {
  background: #c82333;
  transform: translateY(-1px);
}

/* Form Styles */
.presale-form {
  max-width: 500px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 35px;
  position: relative;
}

/* Amount Toggle Styles */
.amount-toggle {
  display: flex;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius-small);
  padding: 5px;
  margin-bottom: 15px;
  border: 1px solid rgba(245, 112, 23, 0.2);
  backdrop-filter: blur(10px);
}

.toggle-option {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 10px 15px;
  border-radius: calc(var(--border-radius-small) - 2px);
  transition: var(--transition);
  position: relative;
}

.toggle-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-option input[type="radio"]:checked + .toggle-label {
  background: var(--accent);
  color: white;
  box-shadow: 0 2px 8px rgba(245, 112, 23, 0.3);
}

.toggle-label {
  font-weight: 600;
  font-size: 0.9rem;
  padding: 8px 16px;
  border-radius: calc(var(--border-radius-small) - 4px);
  transition: var(--transition);
  text-align: center;
  width: 100%;
  display: block;
}

.toggle-option:hover .toggle-label {
  background: rgba(245, 112, 23, 0.1);
}

.toggle-option input[type="radio"]:checked + .toggle-label {
  background: var(--accent);
  color: white;
  box-shadow: 0 2px 8px rgba(245, 112, 23, 0.3);
}

.form-group label {
  display: block;
  margin-bottom: 12px;
  color: var(--text);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  position: relative;
  padding-left: 15px;
}

.form-group label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 20px;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  border-radius: 2px;
}

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

.input-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--border-radius);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  backdrop-filter: blur(20px);
  border: 2px solid rgba(245, 112, 23, 0.1);
  transition: var(--transition);
}

.input-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(245, 112, 23, 0.1), transparent);
  transition: left 0.6s ease;
  z-index: 1;
}

.input-container:hover::before {
  left: 100%;
}

.input-container.focused {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-glow), 0 8px 25px rgba(245, 112, 23, 0.15);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
  transform: translateY(-2px);
}

.input-container.focused::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, var(--accent), var(--accent-hover), var(--accent));
  border-radius: var(--border-radius);
  z-index: -1;
  opacity: 0.3;
  animation: glowPulse 2s ease-in-out infinite;
}

input {
  width: 100%;
  padding: 20px 60px 20px 25px;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 1.2rem;
  font-weight: 600;
  transition: var(--transition);
  position: relative;
  z-index: 2;
  outline: none;
}

input::placeholder {
  color: var(--text-secondary);
  opacity: 0.7;
  font-weight: 400;
  transition: var(--transition);
}

input:focus::placeholder {
  opacity: 0.5;
  transform: translateX(5px);
}

.input-icon {
  position: absolute;
  right: 20px;
  color: var(--accent);
  font-size: 1.4rem;
  pointer-events: none;
  z-index: 3;
  transition: var(--transition);
  filter: drop-shadow(0 2px 4px rgba(245, 112, 23, 0.3));
}

.input-container.focused .input-icon {
  color: var(--accent-hover);
  transform: scale(1.1);
  animation: iconPulse 1s ease-in-out infinite;
}

@keyframes iconPulse {
  0%, 100% { transform: scale(1.1); }
  50% { transform: scale(1.2); }
}

.input-decoration {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-hover));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
  z-index: 2;
}

.input-container.focused .input-decoration {
  transform: scaleX(1);
}

/* Floating label effect */
.floating-label {
  position: absolute;
  left: 25px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  font-size: 1.2rem;
  font-weight: 500;
  pointer-events: none;
  transition: var(--transition);
  z-index: 3;
}

.floating-label.active {
  top: -10px;
  left: 15px;
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 700;
  background: var(--bg);
  padding: 2px 8px;
  border-radius: 4px;
}

/* Amount suggestions */
.amount-suggestions {
  display: flex;
  gap: 10px;
  margin-top: 15px;
  flex-wrap: wrap;
}

.amount-btn {
  padding: 8px 16px;
  background: rgba(245, 112, 23, 0.1);
  border: 1px solid rgba(245, 112, 23, 0.3);
  border-radius: 20px;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.amount-btn:hover {
  background: rgba(245, 112, 23, 0.2);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(245, 112, 23, 0.2);
}

.amount-btn.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

/* Balance display */
.balance-display {
  margin-top: 15px;
  padding: 10px 15px;
  background: rgba(40, 167, 69, 0.1);
  border: 1px solid rgba(40, 167, 69, 0.3);
  border-radius: 8px;
  color: #d4edda;
  font-size: 0.9rem;
  text-align: center;
  font-weight: 500;
}

/* Token Calculation Display */
.token-calculation {
  margin-top: 20px;
  padding: 20px;
  background: linear-gradient(135deg, rgba(245, 112, 23, 0.08), rgba(255, 138, 61, 0.05));
  border: 2px solid rgba(245, 112, 23, 0.2);
  border-radius: var(--border-radius-small);
  display: flex;
  align-items: center;
  gap: 15px;
  backdrop-filter: blur(10px);
  animation: slideInRight 0.5s ease-out;
  position: relative;
  overflow: hidden;
}

.token-calculation {
  display: none;
}

.token-calculation::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(245, 112, 23, 0.05), transparent);
  animation: calcShimmer 3s ease-in-out infinite;
}

@keyframes calcShimmer {
  0%, 100% { left: -100%; }
  50% { left: 100%; }
}

.calc-icon {
  font-size: 2rem;
  animation: calcPulse 2s ease-in-out infinite;
  filter: drop-shadow(0 2px 4px rgba(245, 112, 23, 0.3));
}

@keyframes calcPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.calc-text {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.calc-label {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
}

.calc-amount {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--accent);
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: amountHighlight 1.5s ease-in-out infinite;
}

@keyframes amountHighlight {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.2); }
}

.calc-token {
  color: var(--accent);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
}

.purchase-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--success) 0%, #20c997 100%);
  color: white;
  border: none;
  padding: 18px 30px;
  border-radius: var(--border-radius-small);
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 20px;
}

.purchase-btn:hover {
  background: linear-gradient(135deg, #20c997 0%, var(--success) 100%);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(40, 167, 69, 0.3);
}

.btn-text {
  position: relative;
  z-index: 2;
}

.btn-sparkles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.sparkle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: white;
  border-radius: 50%;
  animation: sparkle 2s ease-in-out infinite;
}

.sparkle:nth-child(1) {
  top: 20%;
  left: 20%;
  animation-delay: 0s;
}

.sparkle:nth-child(2) {
  top: 60%;
  left: 80%;
  animation-delay: 0.5s;
}

.sparkle:nth-child(3) {
  top: 80%;
  left: 40%;
  animation-delay: 1s;
}

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

/* Status Message Styles */
.status-message {
  margin-top: 20px;
  padding: 15px;
  border-radius: var(--border-radius-small);
  text-align: center;
  font-weight: 500;
  animation: fadeInScale 0.3s ease-out;
}

.status-message.success {
  background: rgba(40, 167, 69, 0.1);
  border: 1px solid var(--success);
  color: #d4edda;
}

.status-message.error {
  background: rgba(220, 53, 69, 0.1);
  border: 1px solid var(--danger);
  color: #f8d7da;
}

.status-message.info {
  background: rgba(23, 162, 184, 0.1);
  border: 1px solid var(--info);
  color: #d1ecf1;
}

/* Features Section */
.features {
  padding: 60px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.feature-card {
  text-align: center;
  padding: 40px 30px;
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  display: block;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.feature-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--accent);
}

.feature-card p {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 1rem;
}

/* Footer Styles */
footer {
  text-align: center;
  margin-top: 60px;
  padding: 30px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

footer p {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.8;
}

/* QR Modal Styles */
.qr-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  animation: fadeInScale 0.3s ease-out;
}

.qr-modal-content {
  background: var(--card-gradient);
  border-radius: var(--border-radius);
  padding: 30px;
  max-width: 450px;
  width: 90%;
  text-align: center;
  border: 1px solid rgba(245, 112, 23, 0.2);
  box-shadow: var(--shadow-hover);
}

.qr-modal h3 {
  color: var(--accent);
  margin-bottom: 20px;
  font-size: 1.4rem;
}

.qr-instructions {
  background: rgba(0, 0, 0, 0.2);
  padding: 15px;
  border-radius: var(--border-radius-small);
  margin: 20px 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

.qr-url {
  background: rgba(0, 0, 0, 0.3);
  padding: 10px;
  border-radius: 6px;
  font-family: 'Courier New', monospace;
  font-size: 0.8rem;
  word-break: break-all;
  margin: 15px 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.copy-btn {
  background: var(--accent);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8rem;
  margin-left: 10px;
  transition: var(--transition);
}

.copy-btn:hover {
  background: var(--accent-hover);
  transform: scale(1.05);
}

/* Responsive Design */
@media (max-width: 1200px) {
  #app {
    padding: 15px;
  }

  .hero-bg {
    padding: 60px 30px;
  }

  .features-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
  }
}

@media (max-width: 992px) {
  .hero-bg {
    padding: 50px 25px;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .wallet-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .features-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
  }
}

@media (max-width: 768px) {
  #app {
    padding: 10px;
  }

  body {
    font-size: 14px;
  }

  .hero-bg {
    padding: 40px 20px;
    margin-bottom: 20px;
  }

  .hero-bg h1 {
    font-size: 2.2rem;
    margin-bottom: 15px;
  }

  .hero-bg p {
    font-size: 1rem;
    margin-bottom: 30px;
  }

  .stats {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 30px;
  }

  .stat {
    padding: 20px 15px;
  }

  .stat-number {
    font-size: 2rem;
  }

  .progress-header {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }

  .progress-header span {
    font-size: 1rem;
  }

  .wallet-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 20px;
  }

  .wallet-btn {
    padding: 20px 15px;
    min-height: 100px;
  }

  .wallet-icon {
    font-size: 2rem;
    margin-bottom: 8px;
  }

  .wallet-name {
    font-size: 0.8rem;
  }

  .presale-form {
    max-width: 100%;
  }

  .form-group {
    margin-bottom: 20px;
  }

  .purchase-btn {
    padding: 16px 25px;
    font-size: 1.1rem;
  }

  .exchange-rate {
    padding: 20px;
    margin-bottom: 25px;
  }

  .rate-display {
    gap: 10px;
    margin: 15px 0;
  }

  .rate-amount {
    font-size: 1.4rem;
    padding: 8px 15px;
  }

  .rate-arrow {
    font-size: 1.6rem;
  }

  .rate-description {
    font-size: 0.85rem;
  }

  .features {
    padding: 40px 0;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
  }

  .feature-card {
    padding: 30px 20px;
  }

  .feature-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
  }

  .feature-card h3 {
    font-size: 1.3rem;
  }

  .admin-panel {
    width: 95%;
    padding: 15px;
  }

  .admin-content {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .qr-modal-content {
    padding: 20px;
    max-width: 95%;
  }
}

@media (max-width: 480px) {
  #app {
    padding: 8px;
  }

  .hero-bg {
    padding: 30px 15px;
    border-radius: var(--border-radius-small);
  }

  .hero-bg h1 {
    font-size: 1.8rem;
  }

  .hero-bg p {
    font-size: 0.9rem;
  }

  .stat {
    padding: 15px 12px;
  }

  .stat-number {
    font-size: 1.8rem;
  }

  .stat-label {
    font-size: 0.8rem;
  }

  .card {
    padding: 20px;
    margin-bottom: 20px;
    border-radius: var(--border-radius-small);
  }

  .card h2 {
    font-size: 1.4rem;
    margin-bottom: 20px;
  }

  .wallet-btn {
    padding: 15px 12px;
    min-height: 80px;
  }

  .wallet-icon {
    font-size: 1.8rem;
  }

  .wallet-name {
    font-size: 0.75rem;
  }

  .input-wrapper {
    flex-direction: column;
    gap: 10px;
  }

  .input-icon {
    position: static;
    order: 1;
  }

  input {
    padding: 12px 20px;
    font-size: 16px; /* Prevents zoom on iOS */
  }

  .purchase-btn {
    padding: 14px 20px;
    font-size: 1rem;
  }

  .feature-card {
    padding: 25px 15px;
  }

  .feature-icon {
    font-size: 2rem;
  }

  .feature-card h3 {
    font-size: 1.2rem;
  }

  .feature-card p {
    font-size: 0.9rem;
  }

  footer {
    margin-top: 30px;
    padding: 20px 10px;
  }

  .admin-toggle {
    bottom: 15px;
    right: 15px;
    width: 50px;
    height: 50px;
    font-size: 20px;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0500;
    --card-dark: #0f0a05;
    --card-light: #1a130a;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --text: #ffffff;
    --text-secondary: #e0e0e0;
    --card-dark: #000000;
    --card-light: #1a1a1a;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Print styles */
@media print {
  body {
    background: white !important;
    color: black !important;
  }

  .card {
    box-shadow: none !important;
    border: 1px solid #ccc !important;
  }

  button {
    display: none !important;
  }
}
