

:root {
  --bg: #0a0b0f;
  --panel: #0f1114;
  --panel-2: #14161a;
  --text: #f1f3f4;
  --muted: #a1a8b0;
  --brand: #8b5cf6;
  --brand-2: #6366f1;
  --accent: #10b981;
  --danger: #f43f5e;
  --warning: #f59e0b;
  --ring: 0 0 0 2px color-mix(in oklab, var(--brand) 20%, transparent);
  --radius: 16px;
  --shadow-lg: 0 20px 40px rgba(0,0,0,0.4);
  --shadow-xl: 0 25px 50px rgba(0,0,0,0.5);
  --gradient: linear-gradient(135deg, var(--brand), var(--brand-2));
  --gradient-bg: linear-gradient(180deg, #0a0b0f 0%, #0c0d12 100%);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  background: var(--gradient-bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

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


/* Enhanced Header Styles */
.site-header { 
  position: sticky; 
  top: 0; 
  z-index: 100; 
  background: rgba(10,11,15,0.95); 
  backdrop-filter: blur(24px); 
  border-bottom: 1px solid rgba(139,92,246,0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.site-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand), transparent);
  opacity: 0.6;
}

.nav { 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  height: 80px; 
  padding: 0 20px;
  position: relative;
}

/* Enhanced Brand Styling */
.brand { 
  display: inline-flex; 
  align-items: center; 
  gap: 12px; 
  text-decoration: none; 
  color: var(--text); 
  font-weight: 800; 
  font-size: 20px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 2;
}

.brand:hover { 
  transform: translateY(-2px) scale(1.02); 
  filter: drop-shadow(0 4px 12px rgba(139,92,246,0.3));
}

.brand-mark { 
  color: var(--brand); 
  font-size: 28px;
  filter: drop-shadow(0 0 15px var(--brand));
  animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { filter: drop-shadow(0 0 15px var(--brand)); }
  50% { filter: drop-shadow(0 0 25px var(--brand)) drop-shadow(0 0 35px var(--brand)); }
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 3;
}

.hamburger-line {
  width: 100%;
  height: 3px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-btn:hover .hamburger-line {
  background: var(--brand);
}

/* Navigation Menu */
.nav-menu {
  display: flex;
  align-items: center;
}

/* Enhanced Nav Actions */
.nav-actions { 
  display: flex; 
  gap: 20px; 
  align-items: center;
}

.network-selector {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(255,255,255,0.03);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
}

.network-label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.wallet-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

/* Enhanced Select Styles */
.select { 
  height: 40px; 
  padding: 0 16px; 
  border-radius: 12px; 
  background: var(--panel); 
  color: var(--text); 
  border: 1px solid rgba(255,255,255,0.1); 
  outline: none; 
  font-size: 14px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.select:focus { 
  border-color: var(--brand); 
  box-shadow: 0 0 0 3px rgba(139,92,246,0.1); 
  background: var(--panel-2);
  transform: translateY(-1px);
}

.network-select {
  min-width: 180px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.15);
}

/* Enhanced Button Styles */
.btn { 
  height: 44px; 
  padding: 0 20px; 
  border-radius: 12px; 
  border: 1px solid transparent; 
  background: var(--panel-2); 
  color: var(--text); 
  cursor: pointer; 
  text-decoration: none; 
  display: inline-flex; 
  align-items: center; 
  justify-content: center; 
  gap: 8px; 
  font-weight: 600; 
  font-size: 14px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

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

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

.btn:hover { 
  transform: translateY(-2px); 
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.btn:active { 
  transform: translateY(0); 
  transition: transform 0.1s ease;
}

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

.btn-primary { 
  background: var(--gradient); 
  border-color: rgba(255,255,255,0.2); 
  box-shadow: 0 4px 15px rgba(139,92,246,0.3);
  color: white;
  font-weight: 700;
}

.btn-primary:hover {
  box-shadow: 0 8px 25px rgba(139,92,246,0.4);
  transform: translateY(-3px) scale(1.02);
}

.btn-secondary { 
  background: var(--panel); 
  border-color: rgba(255,255,255,0.15);
}

.btn-secondary:hover {
  background: var(--panel-2);
  border-color: rgba(255,255,255,0.25);
}

.btn-ghost { 
  background: transparent; 
  border-color: rgba(255,255,255,0.1);
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.2);
}

.btn-small {
  height: 36px;
  padding: 0 16px;
  font-size: 13px;
}

/* Wallet Connect Button */
.wallet-connect-btn {
  position: relative;
  overflow: visible;
}

.wallet-connect-btn::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: var(--gradient);
  border-radius: 14px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.wallet-connect-btn:hover::after {
  opacity: 0.3;
}

.wallet-icon {
  font-size: 16px;
}

/* Mint Now Button */
.mint-now-btn {
  background: linear-gradient(135deg, var(--accent), #059669);
  border-color: rgba(255,255,255,0.2);
  box-shadow: 0 4px 15px rgba(16,185,129,0.3);
  color: white;
  font-weight: 700;
}

.mint-now-btn:hover {
  box-shadow: 0 8px 25px rgba(16,185,129,0.4);
  transform: translateY(-3px) scale(1.02);
}

.mint-now-btn::after {
  background: linear-gradient(135deg, var(--accent), #059669);
}

.mint-icon {
  font-size: 16px;
}

.btn.block { width: 100%; }

/* Mobile Responsive Navbar */
@media (max-width: 768px) {
  .mobile-menu-btn {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: rgba(10,11,15,0.98);
    backdrop-filter: blur(24px);
    border-top: 1px solid rgba(139,92,246,0.2);
    flex-direction: column;
    gap: 20px;
    padding: 24px 20px;
    transform: translateY(-100vh);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  }
  
  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
  }
  
  .nav-actions {
    flex-direction: column;
    gap: 16px;
    width: 100%;
  }
  
  .network-selector {
    width: 100%;
    justify-content: space-between;
    padding: 12px 16px;
  }
  
  .network-select {
    min-width: auto;
    flex: 1;
    margin-left: 12px;
  }
  
  .wallet-actions {
    width: 100%;
    flex-direction: column;
    gap: 12px;
  }
  
  .wallet-actions .btn {
    width: 100%;
    justify-content: center;
  }
  
  /* Mobile hamburger animation */
  .mobile-menu-btn.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
  }
  
  .mobile-menu-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
  }
  
  .mobile-menu-btn.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
  }
}

@media (max-width: 480px) {
  .nav {
    padding: 0 16px;
  }
  
  .brand-text {
    display: none;
  }
  
  .brand-mark {
    font-size: 32px;
  }
  
  .nav-menu {
    padding: 20px 16px;
  }
}


.hero { 
  padding: 100px 0 60px; 
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at top, rgba(139,92,246,0.1) 0%, transparent 50%);
  pointer-events: none;
}
.hero-grid { 
  display: grid; 
  grid-template-columns: 1.1fr .9fr; 
  gap: 40px; 
  align-items: center; 
  position: relative;
  z-index: 1;
}
.hero-copy h1 { 
  margin: 0 0 20px; 
  font-size: 52px; 
  letter-spacing: -0.03em; 
  font-weight: 800;
  background: linear-gradient(135deg, var(--text), var(--muted));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.subtitle { 
  color: var(--muted); 
  margin: 0 0 32px; 
  font-size: 18px;
  line-height: 1.7;
}
.hero-cta { 
  display: flex; 
  gap: 16px; 
  flex-wrap: wrap;
}
.hero-card .card { 
  padding: 24px; 
  border-radius: var(--radius); 
  background: radial-gradient(1200px 400px at -10% -10%, rgba(139,92,246,0.08), transparent 40%), var(--panel); 
  border: 1px solid rgba(255,255,255,0.1); 
  box-shadow: var(--shadow-xl);
  backdrop-filter: blur(10px);
}
.preview-skeleton { display: flex; flex-direction: column; gap: 12px; }
.skeleton { border-radius: 10px; background: linear-gradient(90deg, rgba(255,255,255,0.3), rgba(255,255,255,0.1), rgba(255,255,255,0.3)); background-size: 200% 100%; animation: shimmer 1.8s infinite linear; display: block; min-height: 20px; border: 1px solid rgba(255,255,255,0.2); }
.skeleton.media { height: 220px; }
.skeleton.title { height: 16px; width: 70%; margin-top: 14px; }
.skeleton.meta { height: 12px; width: 40%; margin-top: 8px; opacity: .7; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }


.uploader-section { 
  padding: 80px 0 40px; 
  position: relative;
}
.uploader-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at center, rgba(99,102,241,0.05) 0%, transparent 70%);
  pointer-events: none;
}
.section-subtitle { 
  color: var(--muted); 
  margin-top: 12px; 
  font-size: 16px;
  line-height: 1.6;
}
.uploader-grid { 
  display: grid; 
  grid-template-columns: 1fr 1fr; 
  gap: 32px; 
  margin-top: 32px;
  position: relative;
  z-index: 1;
}
.card { 
  background: var(--panel); 
  border: 1px solid rgba(255,255,255,0.1); 
  border-radius: var(--radius); 
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(255,255,255,0.15);
}
.dropzone { 
  min-height: 360px; 
  display: grid; 
  place-items: center; 
  text-align: center; 
  padding: 32px; 
  outline: none;
  transition: all 0.3s ease;
  cursor: pointer;
}
.dz-content { display: grid; place-items: center; gap: 10px; }
.dz-icon { font-size: 28px; }
.dz-text { color: var(--muted); }
.dz-text strong { color: var(--text); }
.dz-meta { color: var(--muted); font-size: 12px; margin-top: 6px; }
.dropzone.dragover { border-color: var(--brand); box-shadow: var(--ring); }

.preview { overflow: hidden; }
.preview-media { aspect-ratio: 16/10; background: #0d1117; border-bottom: 1px solid rgba(255,255,255,0.06); display: grid; place-items: center; }
.preview-details { padding: 14px; display: grid; gap: 10px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.input { 
  display: grid; 
  gap: 8px; 
}
.input span { 
  color: var(--muted); 
  font-size: 13px; 
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.input input, .input textarea { 
  width: 100%; 
  padding: 14px 16px; 
  border-radius: var(--radius); 
  background: var(--panel-2); 
  border: 1px solid rgba(255,255,255,0.1); 
  color: var(--text); 
  outline: none; 
  font-size: 14px;
  transition: all 0.3s ease;
}
.input input:focus, .input textarea:focus { 
  border-color: var(--brand); 
  box-shadow: var(--ring); 
  background: var(--panel);
}
.input input::placeholder, .input textarea::placeholder {
  color: var(--muted);
  opacity: 0.7;
}
.input small { 
  color: var(--muted); 
  font-size: 12px;
}


.how-section { padding: 24px 0 12px; }
.steps { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 10px; }
.steps li { display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: start; padding: 12px; border-radius: 12px; background: var(--panel); border: 1px solid rgba(255,255,255,0.06); }
.step-icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(135deg, var(--brand), var(--brand-2)); font-weight: 700; }
.step-body h3 { margin: 0 0 4px; font-size: 16px; }
.step-body p { margin: 0; color: var(--muted); }


.cta-section { padding: 24px 0 48px; }
.cta { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: radial-gradient(1000px 300px at 0% 0%, rgba(91,140,255,0.12), transparent 40%), var(--panel); padding: 16px; border-radius: var(--radius); border: 1px solid rgba(255,255,255,0.08); }
.cta-text h2 { margin: 0 0 6px; }
.cta-text p { margin: 0; color: var(--muted); }


.site-footer { border-top: 1px solid rgba(255,255,255,0.06); padding: 16px 0 28px; }
.footer { display: flex; align-items: center; justify-content: space-between; }
.foot-left, .foot-right { display: flex; align-items: center; gap: 12px; }
.foot-right a { color: var(--muted); text-decoration: none; }
.foot-right a:hover { color: var(--text); }


/* Simple pages (login/profile) */
.page { padding: 28px 0 20px; }
.page h2 { margin: 0 0 10px; }
.muted { color: var(--muted); }


.modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); z-index: 1000; display: flex; align-items: center; justify-content: center; }
.modal-content { background: var(--panel); border-radius: var(--radius); border: 1px solid rgba(255,255,255,0.08); box-shadow: var(--shadow-lg); max-width: 400px; width: 90%; max-height: 80vh; overflow-y: auto; }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid rgba(255,255,255,0.06); }
.modal-header h3 { margin: 0; }
.modal-close { background: none; border: none; color: var(--muted); font-size: 24px; cursor: pointer; padding: 0; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; }
.modal-close:hover { color: var(--text); }
.modal-body { padding: 20px; }
.modal-body p { margin: 0 0 16px; color: var(--muted); }


.wallet-options { display: grid; gap: 8px; }
.wallet-option { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 10px; background: var(--panel-2); border: 1px solid rgba(255,255,255,0.08); cursor: pointer; transition: .2s ease; width: 100%; text-align: left; }
.wallet-option:hover { border-color: rgba(255,255,255,0.16); background: var(--panel); }
.wallet-option img { width: 32px; height: 32px; border-radius: 6px; }
.wallet-option div { flex: 1; }
.wallet-option strong { display: block; color: var(--text); margin-bottom: 2px; }
.wallet-option small { color: var(--muted); }


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

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

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

.pulse {
  animation: pulse 2s infinite;
}

/* Loading states */
.loading {
  position: relative;
  overflow: hidden;
}

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

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

/* Responsive Design */
@media (max-width: 1024px) {
  .hero-grid { 
    grid-template-columns: 1fr; 
    gap: 32px;
    text-align: center;
  }
  .hero-copy h1 { 
    font-size: 42px; 
  }
  .uploader-grid { 
    grid-template-columns: 1fr; 
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .nav { 
    height: 60px; 
    padding: 0 16px;
  }
  .nav-actions { 
    flex-wrap: wrap; 
    gap: 8px; 
  }
  .hero { 
    padding: 60px 0 40px; 
  }
  .hero-copy h1 { 
    font-size: 36px; 
  }
  .hero-cta { 
    justify-content: center; 
  }
  .uploader-section { 
    padding: 60px 0 30px; 
  }
  .dropzone { 
    min-height: 280px; 
    padding: 24px; 
  }
  .row { 
    grid-template-columns: 1fr; 
  }
  .modal-content { 
    width: 95%; 
    margin: 20px;
  }
  .btn {
    height: 40px;
    padding: 0 16px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
  .hero-copy h1 { 
    font-size: 28px; 
  }
  .subtitle {
    font-size: 16px;
  }
  .hero-cta {
    flex-direction: column;
    align-items: center;
  }
  .nav-actions {
    flex-direction: column;
    gap: 8px;
  }
}

/* Wallet Modal Styles */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-content {
  background: var(--panel);
  border-radius: 20px;
  padding: 0;
  max-width: 480px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.modal-header {
  padding: 24px 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 24px;
}

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

.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  color: var(--muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

.modal-body {
  padding: 0 24px 24px;
}

.modal-body p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 14px;
}

.wallet-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wallet-option {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--panel-2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: left;
  width: 100%;
}

.wallet-option:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.wallet-option img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  flex-shrink: 0;
}

.wallet-option div {
  flex: 1;
  position: relative;
}

.wallet-option strong {
  display: block;
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.wallet-option small {
  color: var(--muted);
  font-size: 13px;
  display: block;
}

/* Featured MetaMask Option */
.wallet-option-featured {
  border: 2px solid var(--brand);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(99, 102, 241, 0.05));
  position: relative;
  overflow: hidden;
}

.wallet-option-featured::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.1), transparent);
  transition: left 0.5s ease;
}

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

.wallet-option-featured:hover {
  border-color: var(--brand);
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.3);
}

.recommended-badge {
  position: absolute;
  top: -2px;
  right: 0;
  background: var(--gradient);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
}


