/* LiqscoreAI - Modern Dark Theme (QuarkIP Style) */

:root {
  --primary-gradient: linear-gradient(135deg, #f97316 0%, #dc2626 50%, #b91c1c 100%);
  --secondary-gradient: linear-gradient(135deg, #0891b2 0%, #0e7490 100%);
  --accent-cyan: #0891b2;
  --accent-purple: #7c3aed;
  --accent-pink: #db2777;
  --accent-orange: #f97316;
  --accent-red: #dc2626;
  --bg-dark: #0a0a0c;
  --bg-card: #16161a;
  --bg-card-hover: #1f1f25;
  --border-color: #2a2a32;
  --text-primary: #ffffff;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  --success: #10b981;
  --glow-orange: rgba(249, 115, 22, 0.5);
  --glow-red: rgba(220, 38, 38, 0.5);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Background Effects */
.bg-gradient-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.15;
  pointer-events: none;
  z-index: 0;
}

.bg-orb-1 {
  width: 600px;
  height: 600px;
  background: var(--accent-orange);
  top: -200px;
  right: -100px;
}

.bg-orb-2 {
  width: 500px;
  height: 500px;
  background: var(--accent-red);
  bottom: -150px;
  left: -100px;
}

.bg-orb-3 {
  width: 400px;
  height: 400px;
  background: var(--accent-cyan);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.08;
}

/* Grid Pattern Overlay - Disabled */
.bg-grid {
  display: none;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(15, 15, 26, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
}

.navbar-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.navbar-logo {
  font-size: 1.75rem;
  font-weight: 900;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  letter-spacing: -0.5px;
}

.navbar-menu {
  display: flex;
  gap: 40px;
  list-style: none;
}

.navbar-menu a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.navbar-menu a:hover {
  color: var(--accent-orange);
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.navbar-login {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  padding: 10px 20px;
  transition: color 0.3s ease;
}

.navbar-login:hover {
  color: var(--accent-orange);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.95rem;
  border: none;
}

.btn-primary {
  background: var(--primary-gradient);
  color: white;
  box-shadow: 0 4px 20px var(--glow-orange);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--glow-orange);
}

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

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

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-outline:hover {
  border-color: var(--accent-orange);
  background: rgba(249, 115, 22, 0.1);
}

/* Mobile Menu */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-btn svg {
  width: 24px;
  height: 24px;
}

.mobile-menu {
  display: none;
  position: absolute;
  top: 80px;
  left: 0;
  right: 0;
  background: var(--bg-dark);
  border-bottom: 1px solid var(--border-color);
  padding: 24px 32px;
}

.mobile-menu.active {
  display: block;
}

.mobile-menu a {
  display: block;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 12px 0;
  font-weight: 500;
}

.mobile-menu-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 140px 32px 80px;
  z-index: 1;
}

.hero-content {
  max-width: 900px;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 50px;
  margin-bottom: 32px;
}

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

.hero-badge-text {
  color: var(--accent-purple);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -2px;
}

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

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 650px;
  margin: 0 auto 40px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-bottom: 60px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-trust-icon {
  color: var(--success);
  width: 20px;
  height: 20px;
}

/* Stats Section */
.stats {
  padding: 60px 32px;
  position: relative;
  z-index: 1;
}

.stats-container {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 32px 24px;
  text-align: center;
  transition: all 0.3s ease;
}

.stat-card:hover {
  border-color: var(--accent-orange);
  transform: translateY(-4px);
}

.stat-number {
  font-size: 3rem;
  font-weight: 900;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 8px;
}

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

/* Section Styles */
.section {
  padding: 100px 32px;
  position: relative;
  z-index: 1;
}

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

.section-label {
  display: inline-block;
  padding: 8px 16px;
  background: rgba(249, 115, 22, 0.1);
  border: 1px solid rgba(249, 115, 22, 0.3);
  border-radius: 50px;
  color: var(--accent-orange);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -1px;
}

.section-title span {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.7;
}

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 40px 32px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary-gradient);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover {
  border-color: var(--accent-orange);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: var(--primary-gradient);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 24px;
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.feature-description {
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Models Section */
.models-section {
  background: var(--bg-card);
}

.models-category {
  margin-bottom: 64px;
}

.models-category:last-child {
  margin-bottom: 0;
}

.models-category-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 32px;
}

.models-category-icon {
  width: 48px;
  height: 48px;
  background: var(--primary-gradient);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.models-category-title {
  font-size: 1.5rem;
  font-weight: 700;
  white-space: nowrap;
}

.models-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.model-card {
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 28px;
  transition: all 0.3s ease;
}

.model-card:hover {
  border-color: var(--accent-orange);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(249, 115, 22, 0.15);
}

.model-icon {
  width: 48px;
  height: 48px;
  background: rgba(249, 115, 22, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.model-name {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.model-variant {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 12px;
}

.model-description {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

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

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 40px 32px;
  transition: all 0.3s ease;
  position: relative;
}

.pricing-card:hover {
  border-color: var(--accent-orange);
  transform: translateY(-4px);
}

.pricing-card.featured {
  border-color: var(--accent-orange);
  box-shadow: 0 0 60px var(--glow-orange);
}

.pricing-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 6px 14px;
  background: var(--primary-gradient);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.pricing-name {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.pricing-description {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.pricing-price {
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border-color);
}

.pricing-amount {
  font-size: 3rem;
  font-weight: 900;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pricing-card:nth-child(4) .pricing-amount {
  background: linear-gradient(135deg, #ec4899 0%, #f43f5e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pricing-period {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.pricing-features {
  list-style: none;
  margin-bottom: 32px;
}

.pricing-features li {
  padding: 14px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-check {
  color: var(--success);
  font-weight: bold;
  font-size: 1rem;
  flex-shrink: 0;
}

.pricing-card .btn {
  width: 100%;
}

.payment-methods {
  max-width: 600px;
  margin: 64px auto 0;
  text-align: center;
}

.payment-methods-text {
  color: var(--text-muted);
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.payment-methods-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.payment-badge {
  padding: 10px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
}

/* FAQ Section */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 16px;
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: var(--accent-orange);
}

.faq-question {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.faq-answer {
  color: var(--text-secondary);
  line-height: 1.7;
}

/* CTA Section */
.cta {
  padding: 100px 32px;
  position: relative;
  overflow: hidden;
}

.cta-card {
  max-width: 900px;
  margin: 0 auto;
  background: var(--primary-gradient);
  border-radius: 32px;
  padding: 80px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  animation: rotate 20s linear infinite;
}

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

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -1px;
}

.cta-subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.15rem;
  margin-bottom: 40px;
  line-height: 1.7;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.cta .btn-secondary {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
}

.cta .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Footer */
.footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border-color);
  padding: 80px 32px 40px;
  position: relative;
  z-index: 1;
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 64px;
  margin-bottom: 64px;
}

.footer-brand-title {
  font-size: 1.75rem;
  font-weight: 900;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.footer-brand-description {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
}

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

.footer-social a {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.footer-social a:hover {
  border-color: var(--accent-orange);
  color: var(--accent-orange);
  transform: translateY(-2px);
}

.footer-column-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 24px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 14px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--accent-orange);
}

.footer-contact a {
  color: var(--accent-orange);
  text-decoration: none;
  display: block;
  margin-bottom: 10px;
  font-weight: 500;
}

.footer-contact p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-top: 16px;
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.footer-copyright {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-payments {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-payments-text {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-payments-list {
  display: flex;
  gap: 10px;
}

.payment-icon {
  width: 52px;
  height: 34px;
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 700;
}

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

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

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

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

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

@keyframes shimmer {
  0% { background-position: -1000px 0; }
  100% { background-position: 1000px 0; }
}

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

@keyframes glow {
  0%, 100% { box-shadow: 0 0 20px var(--glow-orange); }
  50% { box-shadow: 0 0 40px var(--glow-orange), 0 0 60px var(--glow-orange); }
}

/* Apply animations to elements */
.hero {
  animation: fadeInUp 1s ease-out;
}

.hero-badge {
  animation: fadeInDown 0.8s ease-out;
}

.hero-title {
  animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-subtitle {
  animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-buttons {
  animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-trust {
  animation: fadeInUp 1s ease-out 0.8s both;
}

.stat-card {
  animation: scaleIn 0.8s ease-out both;
}

.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.2s; }
.stat-card:nth-child(3) { animation-delay: 0.3s; }
.stat-card:nth-child(4) { animation-delay: 0.4s; }

.feature-card {
  animation: fadeInUp 0.8s ease-out both;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }
.feature-card:nth-child(5) { animation-delay: 0.5s; }
.feature-card:nth-child(6) { animation-delay: 0.6s; }

.model-card {
  animation: scaleIn 0.6s ease-out both;
}

.model-card:nth-child(1) { animation-delay: 0.05s; }
.model-card:nth-child(2) { animation-delay: 0.1s; }
.model-card:nth-child(3) { animation-delay: 0.15s; }
.model-card:nth-child(4) { animation-delay: 0.2s; }
.model-card:nth-child(5) { animation-delay: 0.25s; }
.model-card:nth-child(6) { animation-delay: 0.3s; }

.pricing-card {
  animation: fadeInUp 0.8s ease-out both;
}

.pricing-card:nth-child(1) { animation-delay: 0.1s; }
.pricing-card:nth-child(2) { animation-delay: 0.2s; }
.pricing-card:nth-child(3) { animation-delay: 0.3s; }
.pricing-card:nth-child(4) { animation-delay: 0.4s; }

.faq-item {
  animation: fadeInUp 0.6s ease-out both;
}

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

/* Enhanced hover effects */
.feature-card:hover .feature-icon {
  animation: float 0.5s ease-in-out;
}

.model-card:hover .model-icon {
  animation: float 0.5s ease-in-out;
}

.pricing-card.featured {
  animation: glow 3s ease-in-out infinite;
}

/* Shimmer effect on buttons */
.btn-primary {
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  animation: shimmer 3s infinite;
}

/* Responsive */
@media (max-width: 1024px) {
  .stats-container {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .navbar-menu,
  .navbar-actions {
    display: none;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .navbar-container {
    padding: 0 24px;
  }
  
  .hero {
    padding: 120px 24px 60px;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .hero-buttons .btn {
    width: 100%;
    max-width: 300px;
  }
  
  .stats-container {
    grid-template-columns: 1fr;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .models-category-header {
    flex-direction: column;
    text-align: center;
    padding: 0 24px;
  }
  
  .models-category-title {
    white-space: normal;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  
  .cta-card {
    padding: 60px 24px;
  }
  
  .section {
    padding: 60px 24px;
  }
}

/* =====================================================
   FLASH / TOAST MESSAGES
   ===================================================== */

.flash {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  max-width: 420px;
  animation: fadeInDown 0.4s ease-out;
}

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-radius: 12px;
  border: 1px solid;
  font-weight: 500;
  font-size: 0.95rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  margin-bottom: 10px;
}

.flash-notice .toast, .toast-notice {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.4);
  color: #6ee7b7;
}

.flash-alert .toast, .toast-alert {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}

/* =====================================================
   AUTH PAGE
   ===================================================== */

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 60px;
  position: relative;
  z-index: 1;
}

.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 48px 40px;
  width: 100%;
  max-width: 480px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.auth-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary-gradient);
}

.auth-header {
  text-align: center;
  margin-bottom: 40px;
}

.auth-logo {
  font-size: 2rem;
  font-weight: 900;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  display: block;
  margin-bottom: 16px;
}

.auth-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.auth-subtitle {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.auth-footer {
  text-align: center;
  margin-top: 28px;
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.6;
}

.auth-footer a {
  color: var(--accent-orange);
  text-decoration: none;
}

.auth-phone-display {
  text-align: center;
  padding: 14px 20px;
  background: rgba(249,115,22,0.08);
  border: 1px solid rgba(249,115,22,0.25);
  border-radius: 10px;
  font-weight: 600;
  color: var(--accent-orange);
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.1rem;
  margin-bottom: 24px;
  letter-spacing: 0.5px;
}

.code-input {
  font-family: 'JetBrains Mono', monospace;
  text-align: center;
  letter-spacing: 0.5em;
  font-size: 1.5rem;
  font-weight: 700;
}

.resend-block {
  text-align: center;
  margin-top: 20px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.resend-block a {
  color: var(--accent-orange);
  text-decoration: none;
  font-weight: 500;
}

.resend-block a:hover {
  text-decoration: underline;
}

/* =====================================================
   FORM COMPONENTS
   ===================================================== */

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

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-input {
  width: 100%;
  padding: 14px 18px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}

.form-input:focus {
  border-color: var(--accent-orange);
  box-shadow: 0 0 0 3px rgba(249,115,22,0.15);
}

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

.form-hint {
  margin-top: 6px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.form-error {
  margin-top: 6px;
  font-size: 0.8rem;
  color: #f87171;
}

/* =====================================================
   BUTTONS (extended)
   ===================================================== */

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
  border-radius: 8px;
}

.btn-danger {
  background: rgba(239,68,68,0.15);
  color: #f87171;
  border: 1px solid rgba(239,68,68,0.3);
  transition: all 0.2s ease;
}

.btn-danger:hover {
  background: rgba(239,68,68,0.25);
  border-color: rgba(239,68,68,0.5);
}

.btn-success {
  background: rgba(16,185,129,0.15);
  color: #6ee7b7;
  border: 1px solid rgba(16,185,129,0.3);
  transition: all 0.2s ease;
}

.btn-success:hover {
  background: rgba(16,185,129,0.25);
  border-color: rgba(16,185,129,0.5);
}

.btn-lg {
  padding: 18px 40px;
  font-size: 1.1rem;
  border-radius: 14px;
}

.w-full {
  width: 100%;
}

.link-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  padding: 0;
  color: inherit;
  text-decoration: none;
}

/* =====================================================
   BADGES
   ===================================================== */

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-active {
  background: rgba(16,185,129,0.15);
  color: #6ee7b7;
  border: 1px solid rgba(16,185,129,0.3);
}

.badge-revoked {
  background: rgba(239,68,68,0.12);
  color: #f87171;
  border: 1px solid rgba(239,68,68,0.25);
}

.badge-success, .badge-succeeded {
  background: rgba(16,185,129,0.15);
  color: #6ee7b7;
  border: 1px solid rgba(16,185,129,0.3);
}

.badge-pending {
  background: rgba(234,179,8,0.15);
  color: #fde047;
  border: 1px solid rgba(234,179,8,0.3);
}

.badge-error, .badge-failed {
  background: rgba(239,68,68,0.12);
  color: #f87171;
  border: 1px solid rgba(239,68,68,0.25);
}

.badge-canceled {
  background: rgba(107,114,128,0.15);
  color: #9ca3af;
  border: 1px solid rgba(107,114,128,0.3);
}

.badge-admin {
  background: rgba(249,115,22,0.15);
  color: var(--accent-orange);
  border: 1px solid rgba(249,115,22,0.3);
}

.badge-user {
  background: rgba(139,92,246,0.12);
  color: #c4b5fd;
  border: 1px solid rgba(139,92,246,0.3);
}

/* =====================================================
   CABINET LAYOUT
   ===================================================== */

.cabinet-body {
  background: var(--bg-dark);
  min-height: 100vh;
}

.cabinet-layout {
  display: flex;
  min-height: 100vh;
}

.cabinet-sidebar {
  width: 260px;
  flex-shrink: 0;
  background: var(--bg-card);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
  overflow-y: auto;
}

.cabinet-logo {
  padding: 28px 24px 20px;
  border-bottom: 1px solid var(--border-color);
}

.cabinet-logo a {
  font-size: 1.5rem;
  font-weight: 900;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  display: block;
}

.admin-badge {
  display: inline-flex;
  margin-top: 6px;
  padding: 3px 10px;
  background: rgba(249,115,22,0.15);
  border: 1px solid rgba(249,115,22,0.3);
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent-orange);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.cabinet-nav {
  flex: 1;
  padding: 20px 16px;
}

.cabinet-nav-section {
  margin-bottom: 24px;
}

.cabinet-nav-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  padding: 0 10px;
  margin-bottom: 8px;
  display: block;
}

.cab-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s ease;
  margin-bottom: 2px;
}

.cab-nav-item:hover {
  background: rgba(255,255,255,0.05);
  color: var(--text-primary);
}

.cab-nav-item.active {
  background: rgba(249,115,22,0.12);
  color: var(--accent-orange);
  border: 1px solid rgba(249,115,22,0.2);
}

.cab-nav-item .nav-icon {
  font-size: 1rem;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

.cabinet-sidebar-footer {
  padding: 20px 16px;
  border-top: 1px solid var(--border-color);
}

.cab-balance {
  background: rgba(249,115,22,0.08);
  border: 1px solid rgba(249,115,22,0.2);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 14px;
}

.cab-balance-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.cab-balance-amount {
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.btn-topup-sm {
  display: block;
  width: 100%;
  text-align: center;
  padding: 9px;
  background: var(--primary-gradient);
  color: white;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  margin-top: 10px;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.btn-topup-sm:hover {
  opacity: 0.85;
}

.cab-user-info {
  margin-bottom: 14px;
}

.cab-user-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.cab-user-phone {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
}

.cab-logout {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 9px 12px;
  border-radius: 8px;
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.2);
  color: #f87171;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.cab-logout:hover {
  background: rgba(239,68,68,0.15);
}

.cabinet-main {
  margin-left: 260px;
  flex: 1;
  min-height: 100vh;
  padding: 40px;
}

/* =====================================================
   CABINET PAGES
   ===================================================== */

.cab-page {}

.cab-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}

.cab-page-title {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.cab-section {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 24px;
}

.cab-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.cab-section-title {
  font-size: 1.1rem;
  font-weight: 700;
}

.cab-info-box {
  padding: 14px 18px;
  background: rgba(139,92,246,0.08);
  border: 1px solid rgba(139,92,246,0.2);
  border-radius: 10px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

/* =====================================================
   STATS GRID (Cabinet)
   ===================================================== */

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

.stat-card-cab {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: border-color 0.2s ease;
}

.stat-card-cab:hover {
  border-color: rgba(249,115,22,0.4);
}

.stat-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.stat-icon-green {
  background: rgba(16,185,129,0.15);
  border: 1px solid rgba(16,185,129,0.3);
}

.stat-icon-blue {
  background: rgba(59,130,246,0.15);
  border: 1px solid rgba(59,130,246,0.3);
}

.stat-icon-purple {
  background: rgba(139,92,246,0.15);
  border: 1px solid rgba(139,92,246,0.3);
}

.stat-icon-orange {
  background: rgba(249,115,22,0.15);
  border: 1px solid rgba(249,115,22,0.3);
}

.stat-card-body {}

.stat-card-value {
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.stat-card-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* =====================================================
   DATA TABLE
   ===================================================== */

.table-wrapper {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table thead th {
  padding: 14px 20px;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  background: rgba(255,255,255,0.02);
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}

.data-table tbody td {
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 0.9rem;
  color: var(--text-secondary);
  vertical-align: middle;
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

.data-table tbody tr:hover td {
  background: rgba(255,255,255,0.02);
}

.actions-cell {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

/* =====================================================
   API KEY CARDS
   ===================================================== */

.api-keys-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.api-key-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.api-key-card:hover {
  border-color: rgba(249,115,22,0.3);
}

.api-key-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  background: rgba(255,255,255,0.02);
  border-bottom: 1px solid var(--border-color);
  gap: 12px;
  flex-wrap: wrap;
}

.api-key-card-name {
  font-size: 1rem;
  font-weight: 700;
}

.api-key-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.api-key-card-body {
  padding: 18px 24px;
}

.api-key-card-footer {
  padding: 14px 24px;
  border-top: 1px solid var(--border-color);
  background: rgba(255,255,255,0.01);
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.api-key-display {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 10px 14px;
  margin-top: 10px;
  margin-bottom: 10px;
}

.api-key-masked {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
  color: var(--text-secondary);
  flex: 1;
  word-break: break-all;
}

.icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  padding: 4px 6px;
  border-radius: 6px;
  transition: all 0.2s ease;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.icon-btn:hover {
  background: rgba(255,255,255,0.08);
  color: var(--text-primary);
}

.api-key-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.dot-green {
  background: var(--success);
  box-shadow: 0 0 6px var(--success);
}

.dot-red {
  background: #f87171;
}

.api-key-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
}

.api-key-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.api-key-name {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.api-key-row-sm {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.new-key-alert {
  padding: 20px 24px;
  background: rgba(16,185,129,0.08);
  border: 1px solid rgba(16,185,129,0.25);
  border-radius: 12px;
  margin-bottom: 24px;
}

.new-key-alert h4 {
  color: #6ee7b7;
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.new-key-value {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(16,185,129,0.25);
  border-radius: 8px;
  padding: 12px 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
  word-break: break-all;
  color: var(--text-primary);
}

.new-key-value button {
  flex-shrink: 0;
}

/* =====================================================
   MODAL
   ===================================================== */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  width: 100%;
  max-width: 480px;
  overflow: hidden;
  animation: scaleIn 0.25s ease-out;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
}

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

.modal-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
}

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

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

.modal-body {
  padding: 24px;
}

.topup-amounts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.topup-preset {
  padding: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
}

.topup-preset:hover, .topup-preset.active {
  background: rgba(249,115,22,0.12);
  border-color: rgba(249,115,22,0.35);
  color: var(--accent-orange);
}

.topup-note {
  margin-top: 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
}

/* =====================================================
   UTILITY CLASSES
   ===================================================== */

.mono {
  font-family: 'JetBrains Mono', monospace;
}

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

.text-green {
  color: #6ee7b7;
}

.text-orange {
  color: var(--accent-orange);
}

.text-red {
  color: #f87171;
}

.text-sm {
  font-size: 0.875rem;
}

.empty-state {
  text-align: center;
  padding: 60px 24px;
}

.empty-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.empty-state h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.empty-state p {
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.info-list {
  list-style: none;
}

.info-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 0.9rem;
  gap: 12px;
}

.info-list li:last-child {
  border-bottom: none;
}

.info-list .label {
  color: var(--text-muted);
  flex-shrink: 0;
}

.info-list .value {
  color: var(--text-primary);
  font-weight: 500;
  text-align: right;
  word-break: break-all;
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.search-bar .form-input {
  min-width: 200px;
  flex: 1;
}

/* =====================================================
   ADMIN LAYOUT (reuses cabinet but different header)
   ===================================================== */

.admin-layout {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  width: 260px;
  flex-shrink: 0;
  background: var(--bg-card);
  border-right: 1px solid rgba(249,115,22,0.2);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
  overflow-y: auto;
}

.admin-sidebar .cabinet-logo {
  border-bottom-color: rgba(249,115,22,0.2);
}

.admin-sidebar .cab-nav-item.active {
  background: rgba(249,115,22,0.15);
  border-color: rgba(249,115,22,0.35);
}

.admin-main {
  margin-left: 260px;
  flex: 1;
  min-height: 100vh;
  padding: 40px;
}

.admin-header-badge {
  padding: 6px 14px;
  background: rgba(249,115,22,0.15);
  border: 1px solid rgba(249,115,22,0.35);
  border-radius: 8px;
  color: var(--accent-orange);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.user-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

/* =====================================================
   NAVBAR BALANCE
   ===================================================== */

.navbar-balance {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(249,115,22,0.08);
  border: 1px solid rgba(249,115,22,0.2);
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--accent-orange);
  text-decoration: none;
  transition: all 0.2s ease;
}

.navbar-balance:hover {
  background: rgba(249,115,22,0.15);
}

/* =====================================================
   LEGAL PAGES
   ===================================================== */

.legal-page {
  min-height: 100vh;
  padding: 120px 32px 80px;
  position: relative;
  z-index: 1;
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 56px;
}

.legal-content h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.legal-date {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 40px;
  display: block;
}

.legal-content h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 36px 0 16px;
  color: var(--accent-orange);
}

.legal-content h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 24px 0 12px;
}

.legal-content p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
}

.legal-content ul, .legal-content ol {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
  padding-left: 28px;
}

.legal-content li {
  margin-bottom: 8px;
}

.legal-content a {
  color: var(--accent-orange);
  text-decoration: none;
}

.legal-content a:hover {
  text-decoration: underline;
}

/* =====================================================
   PRICING PAGE
   ===================================================== */

.pricing-page {
  min-height: 100vh;
  padding: 120px 32px 80px;
  position: relative;
  z-index: 1;
}

.pricing-page .section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 64px;
}

.pricing-info-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: var(--bg-card);
  border: 1px solid rgba(139,92,246,0.25);
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 48px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.pricing-info-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.pricing-info-card p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
}

.pricing-models-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: 1280px;
  margin: 0 auto 80px;
}

.pricing-model-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 28px;
  transition: all 0.3s ease;
  position: relative;
}

.pricing-model-card:hover {
  border-color: var(--accent-orange);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(249,115,22,0.1);
}

.pricing-model-featured {
  border-color: rgba(249,115,22,0.5);
  box-shadow: 0 0 30px rgba(249,115,22,0.1);
}

.pricing-model-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 4px 10px;
  background: var(--primary-gradient);
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pricing-model-header {
  margin-bottom: 20px;
}

.pricing-model-name {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.pricing-model-provider {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.pricing-model-price {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.price-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.price-value {
  font-size: 1.05rem;
  font-weight: 700;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pricing-model-note {
  margin-top: 14px;
  font-size: 0.8rem;
  color: var(--text-muted);
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.pricing-cta {
  text-align: center;
  padding: 64px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  max-width: 700px;
  margin: 0 auto;
}

.pricing-cta h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.pricing-cta p {
  color: var(--text-secondary);
  margin-bottom: 32px;
  font-size: 1.05rem;
}

/* =====================================================
   DOCS PAGE
   ===================================================== */

.docs-page {
  min-height: 100vh;
  padding: 40px 0;
}

.docs-toc {
  position: sticky;
  top: 100px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 20px;
}

.docs-toc h3 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.docs-toc a {
  display: block;
  padding: 6px 10px;
  border-radius: 6px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  transition: all 0.2s ease;
  margin-bottom: 2px;
}

.docs-toc a:hover {
  background: rgba(249,115,22,0.08);
  color: var(--accent-orange);
}

.docs-content {}

.docs-section {
  margin-bottom: 56px;
}

.docs-section h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.docs-section h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 24px 0 12px;
}

.docs-section p {
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 16px;
}

.docs-section ul, .docs-section ol {
  color: var(--text-secondary);
  line-height: 1.75;
  padding-left: 24px;
  margin-bottom: 16px;
}

.docs-section li {
  margin-bottom: 6px;
}

.code-block {
  background: #0d1117;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  overflow: hidden;
  margin: 16px 0 24px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875rem;
}

.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.code-header span {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
}

.code-header button {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.75rem;
  padding: 3px 8px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.code-header button:hover {
  background: rgba(255,255,255,0.08);
  color: var(--text-primary);
}

.code-block pre {
  padding: 20px;
  overflow-x: auto;
  margin: 0;
  color: #c9d1d9;
  line-height: 1.6;
}

.code-block pre code {
  font-family: inherit;
}

.inline-code {
  font-family: 'JetBrains Mono', monospace;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 0.875em;
  color: var(--accent-orange);
}

/* =====================================================
   PAGINATION (Kaminari)
   ===================================================== */

.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  padding: 24px 0 8px;
}

.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.pagination a {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.pagination a:hover {
  background: rgba(249,115,22,0.12);
  border-color: rgba(249,115,22,0.35);
  color: var(--accent-orange);
}

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

.pagination .disabled {
  opacity: 0.3;
  cursor: default;
  color: var(--text-muted);
  background: none;
  border: 1px solid var(--border-color);
}

/* =====================================================
   RESPONSIVE — Cabinet/Admin
   ===================================================== */

@media (max-width: 1024px) {
  .cabinet-sidebar, .admin-sidebar {
    width: 220px;
  }
  .cabinet-main, .admin-main {
    margin-left: 220px;
    padding: 24px;
  }
}

@media (max-width: 768px) {
  .cabinet-sidebar, .admin-sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    width: 260px;
  }
  .cabinet-sidebar.open, .admin-sidebar.open {
    transform: translateX(0);
  }
  .cabinet-main, .admin-main {
    margin-left: 0;
    padding: 20px;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .auth-card {
    padding: 32px 24px;
  }
  .legal-content {
    padding: 32px 24px;
  }
  .user-detail-grid {
    grid-template-columns: 1fr;
  }
  .topup-amounts {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .pricing-model-price {
    grid-template-columns: 1fr;
  }
  .cabinet-main, .admin-main {
    padding: 16px;
  }
  .cab-page-title {
    font-size: 1.35rem;
  }
}

/* ═══════════════════════════════════════════
   CHAT PAGE
   ═══════════════════════════════════════════ */

.chat-page {
  display: flex;
  height: calc(100vh - 64px);
  overflow: hidden;
  background: var(--bg-dark);
}

/* ── Model Panel ── */
.chat-model-panel {
  width: 300px;
  min-width: 260px;
  background: var(--bg-card);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  transition: width 0.25s ease;
}
.chat-model-panel.hidden {
  width: 0;
  min-width: 0;
  overflow: hidden;
}
.chat-model-panel-header {
  padding: 18px 16px 12px;
  border-bottom: 1px solid var(--border);
}
.chat-model-panel-header h2 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 10px;
}
.chat-model-search-wrap input {
  width: 100%;
  font-size: 0.85rem;
  padding: 7px 10px;
}
.chat-model-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
}
.chat-model-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 16px;
  color: var(--text-muted);
  font-size: 0.875rem;
}
.chat-model-empty {
  padding: 20px 16px;
  color: var(--text-muted);
  font-size: 0.875rem;
  text-align: center;
}
.chat-model-item {
  padding: 10px 14px;
  cursor: pointer;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  transition: background 0.15s;
}
.chat-model-item:hover {
  background: rgba(255,255,255,0.04);
}
.chat-model-item.active {
  background: rgba(255,165,0,0.08);
  border-left: 3px solid var(--brand);
}
.chat-model-item-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}
.chat-model-item-id {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chat-model-item-prices {
  display: flex;
  gap: 6px;
  margin-top: 6px;
  flex-wrap: wrap;
}
.price-chip {
  font-size: 0.7rem;
  padding: 2px 6px;
  background: rgba(255,165,0,0.1);
  border: 1px solid rgba(255,165,0,0.2);
  border-radius: 4px;
  color: var(--brand-light, #ffa500);
  white-space: nowrap;
}
.chat-model-item-desc {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 5px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Chat Area ── */
.chat-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
  flex-shrink: 0;
  gap: 12px;
}
.chat-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.chat-header-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
.chat-selected-model {
  min-width: 0;
}
.chat-model-name-display {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 280px;
  display: block;
}
.chat-balance {
  font-size: 0.875rem;
  color: var(--text-secondary);
  white-space: nowrap;
}
.icon-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  border-radius: 6px;
  padding: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: color 0.15s, border-color 0.15s;
}
.icon-btn:hover {
  color: var(--brand);
  border-color: var(--brand);
}
.btn-sm {
  padding: 5px 12px;
  font-size: 0.8rem;
}
.btn-secondary {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
}
.btn-secondary:hover {
  border-color: var(--text-secondary);
  color: var(--text-primary);
}

/* ── Messages ── */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.chat-welcome {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
  color: var(--text-secondary);
}
.chat-welcome-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}
.chat-welcome h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 8px;
}
.chat-welcome p {
  font-size: 0.9rem;
  margin: 0 0 24px;
}
.chat-welcome-tips {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 340px;
}
.chat-tip {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
  background: rgba(255,255,255,0.03);
  padding: 8px 14px;
  border-radius: 8px;
  text-align: left;
}
.chat-tip-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* ── Message Bubbles ── */
.chat-msg {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  max-width: 85%;
}
.chat-msg-assistant {
  align-self: flex-start;
}
.chat-msg-user {
  align-self: flex-end;
  flex-direction: row-reverse;
}
.chat-msg-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-elevated, #2a2a2a);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.chat-msg-bubble {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 14px;
  min-width: 60px;
}
.chat-msg-user .chat-msg-bubble {
  background: rgba(255,165,0,0.12);
  border-color: rgba(255,165,0,0.25);
  border-radius: 12px 4px 12px 12px;
}
.chat-msg-assistant .chat-msg-bubble {
  border-radius: 4px 12px 12px 12px;
}
.chat-msg-content {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-primary);
  word-break: break-word;
}
.chat-msg-time {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 5px;
  text-align: right;
}

/* Code blocks inside messages */
.chat-code-block {
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 12px;
  margin: 8px 0;
  overflow-x: auto;
  font-size: 0.82rem;
  font-family: 'Fira Code', 'Consolas', monospace;
  line-height: 1.5;
}
.inline-code {
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 1px 5px;
  font-family: monospace;
  font-size: 0.85em;
}

/* Typing indicator */
.chat-typing-dots {
  display: flex;
  gap: 5px;
  align-items: center;
  padding: 4px 2px;
}
.chat-typing-dots span {
  width: 7px;
  height: 7px;
  background: var(--text-muted);
  border-radius: 50%;
  animation: typingBounce 1.2s infinite ease-in-out;
}
.chat-typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingBounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
  40% { transform: translateY(-5px); opacity: 1; }
}

.chat-error-msg {
  align-self: center;
  font-size: 0.85rem;
  color: #ff6b6b;
  background: rgba(255,107,107,0.08);
  border: 1px solid rgba(255,107,107,0.2);
  border-radius: 8px;
  padding: 8px 14px;
}

/* ── Input Area ── */
.chat-input-area {
  padding: 12px 20px 16px;
  border-top: 1px solid var(--border);
  background: var(--bg-card);
  flex-shrink: 0;
}
.chat-input-wrap {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px 12px 8px 16px;
  transition: border-color 0.2s;
}
.chat-input-wrap:focus-within {
  border-color: var(--brand);
}
.chat-textarea {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 0.9rem;
  resize: none;
  font-family: inherit;
  line-height: 1.5;
  padding: 4px 0;
  max-height: 200px;
  overflow-y: auto;
}
.chat-textarea::placeholder {
  color: var(--text-muted);
}
.chat-send-btn {
  background: var(--brand, #f97316);
  color: #fff;
  border: none;
  border-radius: 8px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: opacity 0.15s, transform 0.1s;
}
.chat-send-btn:hover {
  opacity: 0.88;
}
.chat-send-btn:active {
  transform: scale(0.94);
}
.chat-send-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.chat-input-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
  padding: 0 2px;
  font-size: 0.75rem;
  color: var(--text-muted);
  min-height: 18px;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .chat-model-panel {
    position: fixed;
    top: 64px;
    left: 0;
    bottom: 0;
    z-index: 200;
    box-shadow: 4px 0 20px rgba(0,0,0,0.4);
  }
  .chat-model-panel.hidden {
    transform: translateX(-100%);
    width: 300px;
  }
  .chat-msg {
    max-width: 95%;
  }
}
@media (max-width: 600px) {
  .chat-header {
    padding: 10px 14px;
  }
  .chat-messages {
    padding: 16px 12px;
  }
  .chat-input-area {
    padding: 10px 12px 14px;
  }
  .chat-balance {
    display: none;
  }
}
