/* ===== GlobalTokenAI - Main Stylesheet ===== */
:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #818cf8;
  --secondary: #06b6d4;
  --accent: #f59e0b;
  --success: #10b981;
  --danger: #ef4444;
  --dark: #0f172a;
  --dark-2: #1e293b;
  --dark-3: #334155;
  --gray: #64748b;
  --gray-light: #94a3b8;
  --light: #f1f5f9;
  --white: #ffffff;
  --gradient-1: linear-gradient(135deg, #6366f1 0%, #06b6d4 100%);
  --gradient-2: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
  --gradient-3: linear-gradient(135deg, #10b981 0%, #6366f1 100%);
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
  --radius: 12px;
  --radius-lg: 20px;
}

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

html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--dark);
  color: var(--light);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; }

/* ===== Navigation ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(99, 102, 241, 0.1);
  padding: 0 24px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.4rem;
  font-weight: 800;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-brand .brand-icon {
  width: 36px; height: 36px;
  background: var(--gradient-1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  -webkit-text-fill-color: white;
}

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

.nav-link {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-light);
  transition: all 0.2s;
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--white);
  background: rgba(99, 102, 241, 0.1);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 3px;
  background: var(--gradient-1);
  border-radius: 2px;
}

/* Language Switcher */
.lang-selector {
  position: relative;
  display: inline-block;
}

.lang-btn {
  background: transparent;
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: var(--gray-light);
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.lang-btn:hover {
  border-color: var(--primary);
  color: var(--white);
}

.lang-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0; 
  margin-top: 4px;
  background: var(--dark-2);
  border: 1px solid var(--dark-3);
  border-radius: 10px;
  padding: 4px;
  min-width: 140px;
  z-index: 100;
  box-shadow: var(--shadow-xl);
}

.lang-selector:hover .lang-dropdown,
.lang-selector:focus-within .lang-dropdown {
  display: block;
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--gray-light);
  transition: all 0.15s;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
}

.lang-option:hover {
  background: rgba(99, 102, 241, 0.1);
  color: var(--white);
}

.lang-option.active {
  color: var(--primary-light);
  font-weight: 600;
}

.lang-flag { font-size: 1.1rem; }

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

.btn-nav {
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.btn-nav-primary {
  background: var(--gradient-1);
  color: white;
}

.btn-nav-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.btn-nav-ghost {
  background: transparent;
  color: var(--gray-light);
  border: 1px solid var(--dark-3);
}

.btn-nav-ghost:hover {
  color: var(--white);
  border-color: var(--primary);
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ===== Hero Section ===== */
.hero {
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--dark) 0%, #1a1040 50%, var(--dark) 100%);
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
              radial-gradient(circle at 70% 50%, rgba(6, 182, 212, 0.06) 0%, transparent 50%);
  animation: heroGlow 10s ease-in-out infinite alternate;
}

@keyframes heroGlow {
  0% { transform: translate(0, 0) rotate(0deg); }
  100% { transform: translate(-5%, -5%) rotate(3deg); }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 50px;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: var(--primary-light);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
  animation: fadeInUp 0.8s ease;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  animation: fadeInUp 0.8s ease 0.1s both;
}

.hero h1 .highlight {
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero h1 .highlight2 {
  background: var(--gradient-2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--gray-light);
  max-width: 600px;
  margin: 0 auto 36px;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.3s both;
}

.btn-primary, .btn-secondary {
  padding: 14px 32px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary {
  background: var(--gradient-1);
  color: white;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.5);
}

.btn-secondary {
  background: rgba(255,255,255,0.05);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.1);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-2px);
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 48px;
  animation: fadeInUp 0.8s ease 0.4s both;
}

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

.stat-number {
  font-size: 1.8rem;
  font-weight: 800;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--gray);
  margin-top: 4px;
}

/* ===== Section Common ===== */
.section {
  padding: 100px 24px;
}

.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 60px;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 16px;
}

.section-header p {
  color: var(--gray-light);
  font-size: 1.1rem;
}

/* ===== Features Section ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card {
  background: var(--dark-2);
  border: 1px solid rgba(99, 102, 241, 0.08);
  border-radius: var(--radius);
  padding: 32px;
  transition: all 0.3s;
  opacity: 0;
  transform: translateY(20px);
}

.feature-card.visible {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.5s ease;
}

.feature-card:hover {
  border-color: rgba(99, 102, 241, 0.3);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--gradient-1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--gray-light);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ===== How It Works ===== */
.steps-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.step-card {
  text-align: center;
  padding: 32px 20px;
  position: relative;
}

.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gradient-1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 800;
  margin: 0 auto 16px;
}

.step-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.step-card p {
  color: var(--gray-light);
  font-size: 0.9rem;
}

/* ===== Pricing / Products ===== */
.pricing-section {
  background: linear-gradient(180deg, var(--dark) 0%, #14103a 50%, var(--dark) 100%);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--dark-2);
  border: 1px solid rgba(99, 102, 241, 0.1);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  position: relative;
  transition: all 0.4s;
  opacity: 0;
  transform: translateY(30px);
  display: flex;
  flex-direction: column;
}

.pricing-card.visible {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.5s ease;
}

.pricing-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(99, 102, 241, 0.3);
}

.pricing-card.popular {
  border: 2px solid var(--primary);
  transform: scale(1.03);
  z-index: 2;
}

.pricing-card.popular:hover {
  transform: scale(1.03) translateY(-6px);
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-1);
  color: white;
  padding: 4px 16px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
}

.pricing-header h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.pricing-header .desc {
  color: var(--gray-light);
  font-size: 0.85rem;
  margin-bottom: 20px;
}

.pricing-price {
  margin-bottom: 8px;
}

.pricing-price .currency {
  font-size: 1.2rem;
  font-weight: 600;
  vertical-align: top;
}

.pricing-price .amount {
  font-size: 2.8rem;
  font-weight: 800;
}

.pricing-price .period {
  color: var(--gray);
  font-size: 0.85rem;
}

.pricing-tokens {
  font-size: 0.9rem;
  color: var(--secondary);
  font-weight: 600;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.pricing-features {
  flex: 1;
  margin-bottom: 24px;
}

.pricing-features li {
  padding: 8px 0;
  font-size: 0.9rem;
  color: var(--gray-light);
}

.btn-buy {
  width: 100%;
  padding: 14px;
  border-radius: 10px;
  border: none;
  background: var(--gradient-1);
  color: white;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-buy:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.pricing-card.popular .btn-buy {
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

/* ===== AI Apps Section ===== */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.app-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
  animation-delay: var(--delay, 0s);
}

.app-card-bg {
  position: absolute;
  inset: 0;
  opacity: 0.1;
  transition: opacity 0.4s;
}

.app-card:hover .app-card-bg {
  opacity: 0.2;
}

.gradient-chat { background: linear-gradient(135deg, #6366f1, #4f46e5); }
.gradient-video { background: linear-gradient(135deg, #f43f5e, #e11d48); }
.gradient-image { background: linear-gradient(135deg, #10b981, #059669); }
.gradient-model3d { background: linear-gradient(135deg, #f59e0b, #d97706); }
.gradient-code { background: linear-gradient(135deg, #06b6d4, #0891b2); }
.gradient-voice { background: linear-gradient(135deg, #a855f7, #9333ea); }

.app-card-content {
  position: relative;
  background: var(--dark-2);
  border: 1px solid rgba(99, 102, 241, 0.08);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all 0.3s;
}

.app-card:hover .app-card-content {
  border-color: rgba(99, 102, 241, 0.3);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.app-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
  background: rgba(99, 102, 241, 0.15);
  color: var(--primary-light);
}

.app-card-content h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.app-card-content p {
  color: var(--gray-light);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.app-models {
  margin-bottom: 20px;
}

.models-label {
  font-size: 0.8rem;
  color: var(--gray);
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.model-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.model-tag {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.78rem;
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary-light);
  border: 1px solid rgba(99, 102, 241, 0.15);
}

.app-actions {
  display: flex;
  gap: 10px;
}

.btn-try, .btn-api {
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.btn-try {
  background: var(--gradient-1);
  color: white;
}

.btn-try:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn-api {
  background: transparent;
  color: var(--gray-light);
  border: 1px solid var(--dark-3);
}

.btn-api:hover {
  color: var(--white);
  border-color: var(--primary);
}

/* ===== FAQ Section ===== */
.faq-section {
  background: var(--dark-2);
}

.faq-grid {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--dark);
  border: 1px solid rgba(99, 102, 241, 0.08);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s;
}

.faq-item:hover {
  border-color: rgba(99, 102, 241, 0.2);
}

.faq-question {
  padding: 20px 24px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1rem;
}

.faq-question::after {
  content: '+';
  font-size: 1.3rem;
  color: var(--primary);
  transition: transform 0.3s;
}

.faq-item.active .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  color: var(--gray-light);
  font-size: 0.9rem;
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  padding: 0 24px 20px;
  max-height: 300px;
}

/* ===== Footer ===== */
.footer {
  background: var(--dark);
  border-top: 1px solid rgba(99, 102, 241, 0.1);
  padding: 60px 24px 30px;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand h3 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 12px;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-brand p {
  color: var(--gray);
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer-col h4 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--white);
}

.footer-col a {
  display: block;
  color: var(--gray);
  font-size: 0.85rem;
  margin-bottom: 10px;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--primary-light);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  color: var(--gray);
  font-size: 0.8rem;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-links a {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--dark-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  transition: all 0.2s;
}

.social-links a:hover {
  background: var(--primary);
  color: white;
}

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

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

/* ===== Modal ===== */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-content {
  background: var(--dark-2);
  border: 1px solid var(--dark-3);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 600px;
  width: 100%;
  position: relative;
  max-height: 80vh;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--gray);
  transition: color 0.2s;
}

.modal-close:hover { color: var(--white); }

.modal-content h3 {
  font-size: 1.3rem;
  margin-bottom: 20px;
}

/* Code Block */
.code-block {
  background: var(--dark);
  border-radius: 10px;
  padding: 16px;
  margin: 16px 0;
  overflow-x: auto;
}

.code-block pre {
  font-family: 'Fira Code', 'Cascadia Code', monospace;
  font-size: 0.8rem;
  color: var(--gray-light);
  line-height: 1.6;
}

.token-note {
  color: var(--accent);
  font-size: 0.85rem;
  margin-top: 12px;
  font-weight: 600;
}

/* ===== Login / Register Pages ===== */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 24px;
  background: linear-gradient(135deg, var(--dark) 0%, #1a1040 50%, var(--dark) 100%);
}

.auth-card {
  background: var(--dark-2);
  border: 1px solid var(--dark-3);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow-xl);
}

.auth-card h2 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.auth-card .auth-subtitle {
  color: var(--gray);
  font-size: 0.9rem;
  margin-bottom: 32px;
}

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

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--gray-light);
}

.form-group input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid var(--dark-3);
  background: var(--dark);
  color: var(--white);
  font-size: 0.95rem;
  transition: all 0.2s;
  outline: none;
}

.form-group input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.btn-submit {
  width: 100%;
  padding: 14px;
  border-radius: 10px;
  border: none;
  background: var(--gradient-1);
  color: white;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

.auth-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 0.9rem;
  color: var(--gray);
}

.auth-footer a {
  color: var(--primary-light);
  font-weight: 600;
}

.error-message {
  color: var(--danger);
  font-size: 0.85rem;
  margin-top: 12px;
  text-align: center;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .nav-menu {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
    padding: 16px;
    flex-direction: column;
    gap: 4px;
  }

  .nav-menu.active { display: flex; }

  .nav-link {
    padding: 12px 16px;
    width: 100%;
  }

  .nav-auth {
    flex-direction: column;
    width: 100%;
    padding-top: 12px;
    border-top: 1px solid var(--dark-3);
  }

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

  .hero-stats {
    gap: 24px;
    flex-wrap: wrap;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .pricing-card.popular {
    transform: none;
  }

  .pricing-card.popular:hover {
    transform: translateY(-6px);
  }

  .apps-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .auth-card { padding: 32px 24px; }
  .hero { min-height: 70vh; padding: 100px 16px 60px; }
  .section { padding: 60px 16px; }
}

/* ===== Admin Page ===== */
.admin-page {
  min-height: 100vh;
  background: var(--dark);
}

.admin-header {
  padding-top: 90px;
}

.admin-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 24px;
}

.admin-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.admin-toolbar h2 {
  font-size: 1.5rem;
  font-weight: 800;
}

.btn-add {
  padding: 10px 20px;
  border-radius: 8px;
  background: var(--gradient-1);
  color: white;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-add:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--dark-2);
  border-radius: var(--radius);
  overflow: hidden;
}

.admin-table th {
  background: var(--dark-3);
  padding: 14px 16px;
  text-align: left;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-light);
}

.admin-table td {
  padding: 14px 16px;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}

.admin-table tr:hover td {
  background: rgba(99, 102, 241, 0.03);
}

.btn-edit, .btn-delete {
  padding: 6px 12px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.2s;
}

.btn-edit {
  background: rgba(6, 182, 212, 0.15);
  color: var(--secondary);
  margin-right: 6px;
}

.btn-edit:hover {
  background: rgba(6, 182, 212, 0.25);
}

.btn-delete {
  background: rgba(239, 68, 68, 0.15);
  color: var(--danger);
}

.btn-delete:hover {
  background: rgba(239, 68, 68, 0.25);
}

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

.empty-state i {
  font-size: 3rem;
  margin-bottom: 16px;
  opacity: 0.5;
}

/* ===== Checkout Page ===== */
.checkout-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 24px;
}

.checkout-card {
  background: var(--dark-2);
  border: 1px solid var(--dark-3);
  border-radius: var(--radius-lg);
  padding: 48px;
  width: 100%;
  max-width: 520px;
  text-align: center;
}

.checkout-card h2 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.checkout-card .checkout-subtitle {
  color: var(--gray);
  margin-bottom: 32px;
}

.order-summary {
  background: var(--dark);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 24px;
  text-align: left;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 0.9rem;
}

.summary-row.total {
  border-top: 1px solid var(--dark-3);
  margin-top: 8px;
  padding-top: 12px;
  font-weight: 700;
  font-size: 1.1rem;
}

.checkout-btn {
  width: 100%;
  padding: 16px;
  border-radius: 10px;
  border: none;
  background: var(--gradient-1);
  color: white;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
}

.checkout-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.4);
}

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

/* Page wrapper for non-hero pages */
.page-wrapper {
  padding-top: 70px;
}
body { padding-top: 60px !important; }
body { padding-top: 60px !important; }
