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

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #3b82f6;
  --secondary: #0f172a;
  --accent: #f59e0b;
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  --background: #f8fafc;
  --surface: #ffffff;
  --border: #e2e8f0;
  --text-primary: #0f172a;
  --text-secondary: #64748b;
  --text-tertiary: #94a3b8;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--background);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
}

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

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

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

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

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

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

@keyframes glow {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.3), 0 8px 32px rgba(37, 99, 235, 0.15);
  }
  50% {
    box-shadow: 0 0 30px rgba(37, 99, 235, 0.5), 0 12px 48px rgba(37, 99, 235, 0.25);
  }
}

.fade-in-up {
  animation: fadeInUp 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.slide-in-right {
  animation: slideInRight 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.slide-in-left {
  animation: slideInLeft 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.scale-in {
  animation: scaleIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Added notification styles */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  z-index: 9999;
  opacity: 0;
  transform: translateY(-20px);
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.notification.show {
  opacity: 1;
  transform: translateY(0);
}

.notification-success {
  background: #dcfce7;
  color: #166534;
  border-left: 4px solid #16a34a;
}

.notification-error {
  background: #fee2e2;
  color: #991b1b;
  border-left: 4px solid #dc2626;
}

/* Navigation */
.navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  padding: 1rem 2rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  position: relative;
}

.logo {
  font-size: 1.25rem;
  font-weight: 600;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.3s ease;
  text-decoration: none;
  z-index: 1001;
}

.logo:hover {
  color: #2563eb;
  transform: translateY(-2px);
}

.logo i {
  font-size: 1.5rem;
}

/* Hamburger Menu Button */
.hamburger-menu {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
  transition: all 0.3s ease;
}

.hamburger-menu span {
  width: 26px;
  height: 3px;
  background: #0f172a;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.hamburger-menu:hover span {
  background: #2563eb;
}

.hamburger-menu.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.hamburger-menu.active span:nth-child(2) {
  opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
  flex: 1;
}

.nav-links a {
  color: #64748b;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  position: relative;
}

.nav-links a:hover {
  color: #0f172a;
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #2563eb;
  animation: slideInLeft 0.3s ease;
}

.admin-link {
  background: #fef3c7;
  color: #92400e;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  font-size: 0.85rem;
}

.admin-link:hover {
  background: #fcd34d;
  color: #78350f;
}

.nav-buttons {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.btn-login {
  color: #64748b;
  background: transparent;
  border: none;
  padding: 0.6rem 1.2rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.95rem;
  border-radius: 6px;
}

.btn-login:hover {
  color: #0f172a;
  background: #f1f5f9;
}

.btn-logout {
  color: #64748b;
  background: transparent;
  border: none;
  padding: 0.6rem 1.2rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.95rem;
  border-radius: 6px;
  text-decoration: none;
}

.btn-logout:hover {
  color: #dc2626;
  background: #fee2e2;
}

.btn-primary {
  background: #1e293b;
  color: white;
  border: none;
  padding: 0.6rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.95rem;
  text-decoration: none;
  display: inline-block;
}

.btn-primary:hover {
  background: #0f172a;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(30, 41, 59, 0.3);
}

/* Landing Page Styles */
.hero {
  padding: 8rem 2rem;
  text-align: center;
  background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 50%, #f5f7fa 100%);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.05) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 3.75rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.highlight {
  background: linear-gradient(120deg, var(--primary) 0%, #1e40af 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  line-height: 1.7;
  font-weight: 500;
}

.cta-button {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  border: none;
  padding: 1.1rem 2.8rem;
  border-radius: 10px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-decoration: none;
  gap: 0.5rem;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
  position: relative;
  overflow: hidden;
}

.cta-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: left 0.4s ease;
}

.cta-button:hover::before {
  left: 100%;
}

.cta-button:hover {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #1e40af 100%);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(37, 99, 235, 0.4);
}

.cta-button:active {
  transform: translateY(-1px);
}

/* Why Choose Section */
.why-section {
  padding: 5rem 2rem;
  background: var(--surface);
}

.section-content {
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

.section-title span {
  color: var(--primary);
}

.section-subtitle {
  text-align: center;
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 3.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

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

.feature-card {
  background: var(--surface);
  padding: 2.5rem 2rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-align: left;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
  pointer-events: none;
}

.feature-card:hover::before {
  transform: translateX(100%);
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
  box-shadow: 0 20px 48px rgba(37, 99, 235, 0.12);
}

.feature-icon {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.feature-card:hover .feature-icon {
  transform: scale(1.15) rotate(8deg);
}

.icon-blue {
  background: #dbeafe;
  color: #0c4a6e;
}

.icon-green {
  background: #d1fae5;
  color: #065f46;
}

.icon-purple {
  background: #e9d5ff;
  color: #581c87;
}

.icon-orange {
  background: #fed7aa;
  color: #9a3412;
}

.feature-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
  color: var(--text-primary);
  font-weight: 600;
}

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

/* CTA Section */
.cta-section {
  padding: 4rem 2rem;
  background: linear-gradient(135deg, #f5f7fa 0%, #ffffff 100%);
}

.cta-box {
  max-width: 900px;
  margin: 0 auto;
  background: linear-gradient(135deg, var(--surface) 0%, rgba(240, 249, 255, 0.5) 100%);
  padding: 4rem;
  border-radius: 20px;
  text-align: center;
  border: 1px solid var(--border);
  box-shadow: 0 8px 32px rgba(37, 99, 235, 0.12);
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.1), transparent);
  border-radius: 50%;
  pointer-events: none;
}

.cta-box h2 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1.2rem;
  letter-spacing: -0.01em;
}

.cta-box p {
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  font-size: 1.1rem;
  line-height: 1.7;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-trial {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  border: none;
  padding: 0.85rem 2rem;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
}

.btn-trial:hover {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #1e40af 100%);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(37, 99, 235, 0.4);
}

.btn-docs {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--text-secondary);
  border: 2px solid var(--border);
  padding: 0.85rem 2rem;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-decoration: none;
}

.btn-docs:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--surface);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.15);
}

/* Auth Section */
.auth-section {
  padding: 4rem 2rem;
  background: linear-gradient(135deg, #f5f7fa 0%, #ffffff 100%);
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-container {
  max-width: 500px;
  width: 100%;
  background: var(--surface);
  padding: 3.5rem;
  border-radius: 20px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.auth-container::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.08), transparent);
  border-radius: 50%;
  pointer-events: none;
}

.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-header i {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
  display: block;
}

.auth-header h2 {
  color: var(--text-primary);
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

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

.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.9rem;
}

label i {
  color: var(--primary);
}

input[type="email"],
input[type="password"],
input[type="number"],
input[type="text"] {
  width: 100%;
  padding: 0.9rem 1.2rem;
  border: 2px solid var(--border);
  border-radius: 10px;
  font-size: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: inherit;
  background: var(--background);
}

input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="text"]:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--surface);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
  transform: translateY(-2px);
}

button[type="submit"] {
  width: 100%;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
  position: relative;
  overflow: hidden;
}

button[type="submit"]::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: left 0.4s ease;
}

button[type="submit"]:hover::before {
  left: 100%;
}

button[type="submit"]:hover {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #1e40af 100%);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.4);
}

button[type="submit"]:active {
  transform: translateY(0);
}

.error {
  background: #fef2f2;
  color: #dc2626;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 1rem;
  border-left: 4px solid #dc2626;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  animation: slideInRight 0.3s ease;
}

.error i {
  flex-shrink: 0;
}

.success {
  background: #f0fdf4;
  color: #16a34a;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 1rem;
  border-left: 4px solid #16a34a;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.auth-footer {
  text-align: center;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.auth-footer p {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.auth-footer a {
  color: var(--primary);
  font-weight: 600;
  transition: all 0.3s ease;
  text-decoration: none;
}

.auth-footer a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* Dashboard Styles */
.dashboard-header {
  margin-bottom: 2rem;
}

.dashboard-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.dashboard-header p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.6;
}

/* Info Banner */
.info-banner {
  background: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 100%);
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2.5rem;
  gap: 1rem;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.1);
}

.banner-content {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.banner-icon {
  font-size: 1.5rem;
  color: var(--primary);
  flex-shrink: 0;
}

.banner-text {
  color: #1e40af;
  font-size: 0.95rem;
  line-height: 1.5;
}

.banner-button {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.3s ease;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  border: 1px solid #bfdbfe;
}

.banner-button:hover {
  color: var(--primary-dark);
  background: #dbeafe;
  border-color: #93c5fd;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.75rem;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.stat-card:hover::before {
  transform: translateX(100%);
}

.stat-card:hover {
  border-color: var(--primary);
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.15);
  transform: translateY(-6px);
}

.stat-icon {
  font-size: 2rem;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  flex-shrink: 0;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.stat-card:hover .stat-icon {
  transform: scale(1.2) rotate(-8deg);
}

.stat-icon.account {
  background: #dbeafe;
  color: #0c4a6e;
}

.stat-icon.plan {
  background: #fef08a;
  color: #854d0e;
}

.stat-icon.credits {
  background: #dcfce7;
  color: #166534;
}

.stat-icon.keys {
  background: #fed7aa;
  color: #92400e;
}

.stat-content {
  flex: 1;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.4rem;
}

.stat-value {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.stat-price {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 0;
}

.stat-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: #dcfce7;
  color: #166534;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: 0.3rem;
}

/* API Keys Section */
.api-keys-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 2.5rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  position: relative;
  transition: all 0.4s ease;
}

.api-keys-section:hover {
  border-color: var(--primary);
  box-shadow: 0 12px 40px rgba(37, 99, 235, 0.12);
}

.section-header {
  padding: 2.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  background: linear-gradient(135deg, var(--surface) 0%, rgba(240, 249, 255, 0.3) 100%);
}

.section-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 0.3rem 0;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin: 0;
}

.btn-create {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  border: none;
  padding: 0.8rem 1.8rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-decoration: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-create::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: left 0.4s ease;
}

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

.btn-create:hover {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #1e40af 100%);
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(37, 99, 235, 0.4);
}

.api-key-item {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.api-key-item:last-child {
  border-bottom: none;
}

.api-key-item:hover {
  background: #f9fafb;
}

.key-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.key-header h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.badge-active {
  background: #dcfce7;
  color: #166534;
  padding: 0.3rem 0.7rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.key-content {
  display: grid;
  gap: 1rem;
}

.key-display {
  background: linear-gradient(135deg, var(--background) 0%, rgba(240, 249, 255, 0.3) 100%);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.key-display:hover {
  border-color: var(--primary);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.12);
  background: linear-gradient(135deg, var(--surface) 0%, rgba(240, 249, 255, 0.5) 100%);
}

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

.key-display:hover::before {
  transform: translateX(100%);
}

.key-display:hover {
  border-color: #cbd5e0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.key-display code {
  color: var(--text-primary);
  font-size: 0.85rem;
  word-break: break-all;
  flex: 1;
  font-family: "Courier New", monospace;
  letter-spacing: 0.5px;
  position: relative;
  z-index: 1;
}

.btn-copy {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.85rem;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-copy:hover {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #1e40af 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.4);
}

.key-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn-deactivate {
  background: #fee2e2;
  color: #991b1b;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

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

.btn-view-stats {
  background: #dbeafe;
  color: #0c4a6e;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.btn-view-stats:hover {
  background: #bfdbfe;
  transform: translateY(-1px);
}

.btn-delete {
  background: #fee2e2;
  color: #991b1b;
  border: none;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

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

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

/* Page Header */
.page-header {
  margin-bottom: 2.5rem;
  text-align: center;
}

.page-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.page-header p {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

/* Docs Page Styles */
.docs-header {
  text-align: center;
  margin-bottom: 3rem;
  padding: 2rem 0;
}

.docs-hero {
  max-width: 700px;
  margin: 0 auto;
}

.docs-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2.5rem;
  color: white;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.25);
  animation: pulse 3s ease-in-out infinite;
}

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

.docs-header h1 {
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.docs-header p {
  color: var(--text-secondary);
  font-size: 1.15rem;
  line-height: 1.6;
}

/* Sidebar Layout */
.docs-sidebar-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2.5rem;
  align-items: start;
}

/* Documentation Sidebar */
.docs-sidebar {
  position: sticky;
  top: 100px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}

.sidebar-header {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--border);
}

.sidebar-header h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}

.docs-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.docs-nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}

.docs-nav-item:hover {
  background: #f8fafc;
  border-left-color: var(--border);
}

.docs-nav-item.active {
  background: #eff6ff;
  border-left-color: var(--primary);
}

.docs-nav-item:hover .nav-title,
.docs-nav-item.active .nav-title {
  color: var(--text-primary);
  font-weight: 600;
}

/* Documentation Content */
.docs-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.doc-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2.5rem;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  scroll-margin-top: 100px;
}

.doc-card:hover {
  border-color: var(--primary);
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.12);
  transform: translateY(-4px);
}

.doc-card-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--border);
}

.doc-title-group {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.doc-card h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.doc-description {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
  margin: 0;
}

/* Endpoint Section */
.endpoint-section {
  margin-bottom: 2rem;
}

.endpoint-section h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.endpoint-box {
  background: linear-gradient(135deg, var(--background) 0%, rgba(240, 249, 255, 0.3) 100%);
  border: 2px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.endpoint-box:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
}

.endpoint-url {
  color: var(--primary);
  font-size: 1rem;
  font-weight: 600;
  font-family: "Courier New", monospace;
  word-break: break-all;
  flex: 1;
  letter-spacing: 0.3px;
}

.btn-copy-endpoint {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  border: none;
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-copy-endpoint:hover {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #1e40af 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.4);
}

/* Code Section */
.code-section {
  margin-bottom: 2rem;
}

.code-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.code-header h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-copy-code {
  background: var(--border);
  color: var(--text-secondary);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-copy-code:hover {
  background: #cbd5e0;
  color: #0f172a;
  transform: translateY(-1px);
}

.code-block {
  background: #1e293b;
  color: #e2e8f0;
  padding: 1.5rem;
  border-radius: 10px;
  overflow-x: auto;
  font-size: 0.9rem;
  line-height: 1.7;
  border: 1px solid #334155;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  position: relative;
}

.code-block code {
  font-family: "Courier New", Consolas, Monaco, monospace;
  color: #e2e8f0;
  white-space: pre;
}

/* Responsive Docs */
@media (max-width: 1024px) {
  .docs-sidebar-layout {
    grid-template-columns: 240px 1fr;
    gap: 1.5rem;
  }

  .docs-sidebar {
    padding: 1.25rem;
  }
}

@media (max-width: 768px) {
  .docs-header h1 {
    font-size: 2rem;
  }

  .docs-icon {
    width: 60px;
    height: 60px;
    font-size: 2rem;
  }

  .docs-sidebar-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .docs-sidebar {
    position: static;
    max-height: none;
  }

  .doc-card {
    padding: 1.5rem;
  }

  .doc-card h2 {
    font-size: 1.5rem;
  }

  .endpoint-box {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-copy-endpoint {
    width: 100%;
    justify-content: center;
  }

  .code-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .btn-copy-code {
    width: 100%;
    justify-content: center;
  }
}

.docs-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.doc-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.doc-card:hover {
  border-color: #cbd5e0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.doc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.doc-header h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #0f172a;
  margin: 0;
}

.method-badge {
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.method-get {
  background: #dcfce7;
  color: #166534;
}

.method-post {
  background: #dbeafe;
  color: #1e40af;
}

.method-put {
  background: #fef08a;
  color: #854d0e;
}

.method-delete {
  background: #fee2e2;
  color: #991b1b;
}

.doc-endpoint {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
}

.doc-endpoint code {
  color: #0f172a;
  font-size: 0.95rem;
  font-family: "Courier New", monospace;
  word-break: break-all;
}

.doc-description {
  color: #64748b;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.doc-examples {
  display: grid;
  gap: 1.5rem;
}

.example h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 0.75rem;
}

.example pre {
  background: #1e293b;
  color: #e2e8f0;
  padding: 1.25rem;
  border-radius: 8px;
  overflow-x: auto;
  font-size: 0.85rem;
  line-height: 1.6;
}

.example code {
  font-family: "Courier New", monospace;
}

.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}

.empty-state p {
  color: #64748b;
  font-size: 1.1rem;
}

/* Plans Grid */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

/* Enhanced Pricing Styles */
.pricing-header {
  text-align: center;
  margin-bottom: 4rem;
  padding: 2rem 0;
}

.pricing-hero {
  max-width: 700px;
  margin: 0 auto;
}

.pricing-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2.5rem;
  color: white;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.25);
  animation: pulse 3s ease-in-out infinite;
}

.pricing-header h1 {
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.pricing-header p {
  color: var(--text-secondary);
  font-size: 1.15rem;
  line-height: 1.6;
}

.plans-grid-enhanced {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  margin-bottom: 4rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.plan-card-enhanced {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 18px;
  padding: 2.5rem;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
}

.plan-card-enhanced::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.08), transparent);
  border-radius: 50%;
  pointer-events: none;
}

.plan-card-enhanced:hover {
  border-color: var(--primary);
  box-shadow: 0 20px 60px rgba(37, 99, 235, 0.18);
  transform: translateY(-10px);
}

.plan-card-enhanced.featured {
  border-color: var(--primary);
  background: linear-gradient(135deg, var(--surface) 0%, rgba(240, 249, 255, 0.4) 100%);
  box-shadow: 0 12px 48px rgba(37, 99, 235, 0.2);
}

.plan-card-enhanced.featured:hover {
  box-shadow: 0 24px 64px rgba(37, 99, 235, 0.3);
  transform: translateY(-12px) scale(1.02);
}

.popular-badge {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(251, 191, 36, 0.4);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.plan-header {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid var(--border);
}

.plan-icon {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.plan-card-enhanced h3 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

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

.plan-price-section {
  text-align: center;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--background);
  border-radius: 12px;
  border: 1px solid var(--border);
}

.price-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.currency-symbol {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-secondary);
  align-self: flex-start;
  margin-top: 0.5rem;
}

.price-amount {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}

.price-period {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin: 0;
}

.plan-features-section {
  flex: 1;
  margin-bottom: 2rem;
}

.plan-features-section h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.plan-features-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.plan-features-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: #475569;
  line-height: 1.6;
}

.plan-features-list li i {
  color: var(--success);
  font-size: 1.25rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.plan-features-list li div {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.plan-features-list li strong {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.95rem;
}

.plan-features-list li span {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.plan-cta-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 1.1rem 1.5rem;
  background: var(--background);
  color: var(--text-primary);
  border: 2px solid var(--border);
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.plan-cta-button:hover {
  background: var(--surface);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.15);
}

.plan-cta-button.primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  border: none;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
}

.plan-cta-button.primary:hover {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #1e40af 100%);
  box-shadow: 0 12px 40px rgba(37, 99, 235, 0.4);
  transform: translateY(-3px);
}

.plan-note {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

/* Features Comparison */
.features-comparison {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem;
  margin-bottom: 3rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.features-comparison h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.comparison-table {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.comparison-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 1rem;
  padding: 1.25rem;
  border-bottom: 1px solid #f1f5f9;
  transition: all 0.3s ease;
}

.comparison-row:last-child {
  border-bottom: none;
}

.comparison-row:hover {
  background: #f8fafc;
}

.comparison-row.comparison-header {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  font-weight: 700;
  color: var(--text-primary);
  border-bottom: 2px solid var(--border);
}

.comparison-row.comparison-header:hover {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

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

.plan-column {
  text-align: center;
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.plan-column.featured {
  color: var(--primary);
}

/* Pricing FAQ */
.pricing-faq {
  margin-bottom: 3rem;
}

.pricing-faq h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

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

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.faq-item:hover {
  border-color: var(--border);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

.faq-item h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.faq-item h4 i {
  color: var(--primary);
  font-size: 0.85rem;
}

.faq-item p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}

.plan-card {
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 2.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.plan-card:hover {
  border-color: #2563eb;
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.15);
  transform: translateY(-4px);
}

.plan-card.featured {
  border-color: #2563eb;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.2);
}

.plan-badge {
  display: inline-block;
  background: #dbeafe;
  color: #1e40af;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
}

.plan-badge.popular {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: white;
}

.plan-card h3 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 1rem;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.plan-price .price {
  font-size: 3rem;
  font-weight: 700;
  color: #0f172a;
}

.plan-price .currency {
  font-size: 1.25rem;
  color: #64748b;
  font-weight: 600;
}

.plan-description {
  color: #64748b;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.plan-features {
  list-style: none;
  margin-bottom: 2rem;
  padding: 0;
}

.plan-features li {
  color: #475569;
  margin-bottom: 0.75rem;
  line-height: 1.6;
  font-size: 0.95rem;
}

.plan-button {
  display: block;
  width: 100%;
  padding: 0.85rem 1.5rem;
  background: #e2e8f0;
  color: #0f172a;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  text-align: center;
}

.plan-button:hover {
  background: #cbd5e0;
  transform: translateY(-2px);
}

.plan-button.primary {
  background: #2563eb;
  color: white;
}

.plan-button.primary:hover {
  background: #1d4ed8;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.plan-note {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: #64748b;
  text-align: center;
}

/* Account Page Styles */
.account-info {
  display: grid;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.info-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.info-row {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

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

.info-label {
  color: var(--text-secondary);
  font-weight: 500;
}

.info-value {
  color: var(--text-primary);
  font-weight: 600;
}

.token-box {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
  word-break: break-all;
}

.token-box code {
  color: var(--text-primary);
  font-size: 0.9rem;
  font-family: "Courier New", monospace;
  letter-spacing: 0.5px;
}

.info-note {
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-style: italic;
}

/* Buy Limit Page Styles */
.buy-limit-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.pricing-info,
.purchase-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.pricing-info h3,
.purchase-form h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.price-display {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.price-amount {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1e40af;
  display: block;
}

.price-unit {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.pricing-info p {
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.btn-purchase {
  width: 100%;
  padding: 0.85rem 1.5rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-purchase:hover {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #1e40af 100%);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(37, 99, 235, 0.4);
}

/* Actions */
.actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--background);
  color: var(--text-secondary);
  border: 2px solid var(--border);
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-decoration: none;
}

.btn-back:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--surface);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.15);
}

.btn-action {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
}

.btn-action:hover {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #1e40af 100%);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(37, 99, 235, 0.4);
}

/* Credit Usage Section */
.credit-usage-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.credit-usage-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.credit-usage-section:hover::before {
  transform: translateX(100%);
}

.usage-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  gap: 1rem;
}

.usage-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.usage-count {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
}

.usage-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  gap: 1rem;
  flex-wrap: wrap;
}

.used-label,
.remaining-label {
  font-weight: 500;
}

.used-percentage {
  font-weight: 600;
  color: var(--text-primary);
}

.progress-bar {
  width: 100%;
  height: 12px;
  background: var(--background);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: 6px;
  transition: width 0.5s ease;
}

/* Quick Actions Section */
.quick-actions-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.quick-actions-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.quick-actions-section:hover::before {
  transform: translateX(100%);
}

.quick-actions-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.action-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.action-card {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.75rem;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  overflow: hidden;
}

.action-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.action-card:hover::before {
  transform: translateX(100%);
}

.action-card:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.12);
  transform: translateY(-4px);
  background: var(--surface);
}

.action-icon {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1rem;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  z-index: 1;
}

.action-card:hover .action-icon {
  transform: scale(1.1) rotate(-5deg);
}

.action-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.action-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}

/* Enhanced API Key Display */
.key-display {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

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

.key-display:hover::before {
  transform: translateX(100%);
}

.key-display:hover {
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  background: var(--surface);
}

.key-display code {
  color: var(--text-primary);
  font-size: 0.85rem;
  word-break: break-all;
  flex: 1;
  font-family: "Courier New", monospace;
  letter-spacing: 0.5px;
  position: relative;
  z-index: 1;
}

.btn-copy {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.85rem;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-copy:hover {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #1e40af 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.4);
}

.key-info {
  background: var(--background);
  border-radius: 6px;
  padding: 0.75rem;
  border-left: 3px solid var(--primary);
  margin-top: 1rem;
}

.key-info p {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Dashboard Stats Enhancement */
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.75rem;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.stat-card:hover::before {
  transform: translateX(100%);
}

.stat-card:hover {
  border-color: var(--primary);
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.15);
  transform: translateY(-6px);
}

.stat-icon {
  font-size: 2rem;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  flex-shrink: 0;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.stat-card:hover .stat-icon {
  transform: scale(1.2) rotate(-8deg);
}

/* Payment History Section */
.payment-history-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.payment-history-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.payment-items {
  display: grid;
  gap: 1rem;
}

.payment-item {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.payment-item:hover {
  border-color: var(--border);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.payment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.payment-header h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.payment-badge {
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.payment-badge.pending {
  background: #fef3c7;
  color: #92400e;
}

.payment-badge.completed {
  background: #dcfce7;
  color: #166534;
}

.payment-badge.failed {
  background: #fee2e2;
  color: #991b1b;
}

.payment-id,
.payment-amount,
.payment-date {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.payment-amount {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 1rem;
}

/* Responsive Design */
/* Tablet Navigation (768px - 1024px) */
@media (max-width: 1024px) {
  .navbar {
    padding: 1rem 1.5rem;
  }

  .nav-links {
    gap: 1.5rem;
  }

  .nav-links a {
    font-size: 0.9rem;
  }
}

/* Mobile Navigation (max 768px) */
@media (max-width: 768px) {
  .navbar {
    padding: 1rem;
  }

  .hamburger-menu {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: white;
    flex-direction: column;
    gap: 0;
    padding: 5rem 0 2rem;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    transition: right 0.4s ease;
    overflow-y: auto;
    z-index: 1000;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links a {
    width: 100%;
    padding: 1rem 2rem;
    font-size: 1rem;
    border-bottom: 1px solid #f1f5f9;
    transition: all 0.3s ease;
  }

  .nav-links a:hover,
  .nav-links a.active {
    background: #f8fafc;
    color: #2563eb;
    padding-left: 2.5rem;
  }

  .nav-links a.active::after {
    display: none;
  }

  .nav-links a.active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 60%;
    background: #2563eb;
  }

  .admin-link {
    margin: 1rem 2rem;
    text-align: center;
    padding: 0.75rem 1rem;
    border-radius: 8px;
  }

  .nav-buttons {
    position: fixed;
    bottom: 0;
    right: -100%;
    width: 280px;
    padding: 1.5rem;
    background: white;
    border-top: 2px solid #f1f5f9;
    flex-direction: column;
    gap: 0.75rem;
    transition: right 0.4s ease;
    z-index: 1000;
  }

  .nav-buttons.active {
    right: 0;
  }

  .nav-buttons a,
  .nav-buttons .btn-login,
  .nav-buttons .btn-logout,
  .nav-buttons .btn-primary {
    width: 100%;
    text-align: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
  }

  /* Mobile Overlay */
  .mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .mobile-overlay.active {
    display: block;
    opacity: 1;
  }

  .container {
    padding: 1rem;
  }

  .nav-container {
    flex-wrap: nowrap;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .page-header h1 {
    font-size: 2rem;
  }

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

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

  .buy-limit-section {
    grid-template-columns: 1fr;
  }

  .usage-header {
    flex-direction: column;
    align-items: flex-start;
  }

  /* Contact responsive */
  .contact-content {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  .contact-form-wrapper {
    order: 2;
  }

  .contact-info-cards {
    order: 1;
    grid-template-columns: 1fr !important;
  }

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

  .contact-header h2 {
    font-size: 2rem !important;
  }

  .contact-icon {
    width: 60px !important;
    height: 60px !important;
    font-size: 2rem !important;
  }

  .social-links {
    gap: 1rem !important;
  }

  .social-link {
    width: 48px !important;
    height: 48px !important;
    font-size: 1.25rem !important;
  }
}

@media (max-width: 480px) {
  .nav-links {
    width: 100%;
    right: -100%;
  }

  .nav-buttons {
    width: 100%;
    right: -100%;
  }

  .logo {
    font-size: 1.1rem;
  }

  .logo i {
    font-size: 1.25rem;
  }
}

/* Contact Section */
.contact-section {
  padding: 5rem 2rem;
  background: linear-gradient(135deg, #f5f7fa 0%, #ffffff 100%);
}

.contact-container {
  max-width: 1200px;
  margin: 0 auto;
}

.contact-header {
  text-align: center;
  margin-bottom: 4rem;
}

.contact-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2.5rem;
  color: white;
  box-shadow: 0 8px 24px rgba(236, 72, 153, 0.25);
  animation: pulse 3s ease-in-out infinite;
}

.contact-header h2 {
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.contact-header p {
  color: var(--text-secondary);
  font-size: 1.15rem;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
  align-items: start;
}

/* Contact Form */
.contact-form-wrapper {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.contact-form-wrapper:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row-contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.contact-form .form-group {
  margin-bottom: 0;
}

.contact-form label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.9rem;
}

.contact-form label i {
  color: var(--primary);
  font-size: 1rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.85rem 1.1rem;
  border: 2px solid var(--border);
  border-radius: 10px;
  font-size: 1rem;
  transition: all 0.3s ease;
  font-family: inherit;
  background: var(--background);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--surface);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
  transform: translateY(-2px);
}

.contact-form textarea {
  resize: vertical;
  min-height: 140px;
}

.btn-submit-contact {
  width: 100%;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-submit-contact:hover {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #1e40af 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.4);
}

.btn-submit-contact:active {
  transform: translateY(0);
}

.btn-submit-contact:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Contact Info Cards */
.contact-info-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.contact-card:hover {
  border-color: var(--border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  transform: translateY(-6px);
}

.contact-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.contact-card:hover .contact-card-icon {
  transform: scale(1.1) rotate(-5deg);
}

.contact-card h4 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.contact-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.5;
}

.contact-card a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.contact-card a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* Social Links */
.contact-social {
  text-align: center;
  padding: 2.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.contact-social h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.social-link {
  width: 56px;
  height: 56px;
  background: var(--background);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 2px solid transparent;
}

.social-link:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.social-link:nth-child(1):hover {
  background: #0088cc;
  color: white;
  border-color: #0088cc;
}

.social-link:nth-child(2):hover {
  background: linear-gradient(135deg, #fd5949 0%, #d6249f 50%, #285aeb 100%);
  color: white;
  border-color: #d6249f;
}

.social-link:nth-child(3):hover {
  background: #1da1f2;
  color: white;
  border-color: #1da1f2;
}

.social-link:nth-child(4):hover {
  background: #333;
  color: white;
  border-color: #333;
}

.social-link:nth-child(5):hover {
  background: #0077b5;
  color: white;
  border-color: #0077b5;
}

/* Tablet Responsive (768px - 1024px) */
@media (max-width: 1024px) and (min-width: 769px) {
  .contact-content {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .contact-info-cards {
    grid-template-columns: repeat(2, 1fr);
  }

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

/* Mobile Responsive (max 768px) */
@media (max-width: 768px) {
  .contact-section {
    padding: 3rem 1.5rem;
  }

  .contact-header {
    margin-bottom: 2.5rem;
  }

  .contact-header h2 {
    font-size: 2rem;
  }

  .contact-header p {
    font-size: 1rem;
  }

  .contact-icon {
    width: 60px;
    height: 60px;
    font-size: 2rem;
  }

  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-form-wrapper {
    padding: 1.75rem;
    order: 2;
  }

  .contact-info-cards {
    order: 1;
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .form-row-contact {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .contact-card {
    padding: 1.5rem;
  }

  .contact-social {
    padding: 2rem 1.5rem;
  }

  .social-links {
    gap: 1rem;
  }

  .social-link {
    width: 48px;
    height: 48px;
    font-size: 1.25rem;
  }
}

/* Small Mobile (max 480px) */
@media (max-width: 480px) {
  .contact-section {
    padding: 2.5rem 1rem;
  }

  .contact-header h2 {
    font-size: 1.75rem;
  }

  .contact-header p {
    font-size: 0.95rem;
  }

  .contact-form-wrapper {
    padding: 1.5rem;
  }

  .contact-form {
    gap: 1.25rem;
  }

  .contact-card {
    padding: 1.25rem;
  }

  .contact-card-icon {
    width: 48px;
    height: 48px;
    font-size: 1.5rem;
  }

  .btn-submit-contact {
    padding: 0.9rem 1.25rem;
    font-size: 1rem;
  }
}

/* Admin Tables */
.admin-table {
  width: 100%;
  background: var(--surface);
  border-collapse: collapse;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.admin-table thead {
  background: linear-gradient(135deg, var(--background) 0%, var(--border) 100%);
}

.admin-table th {
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid var(--border);
}

.admin-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.admin-table tbody tr {
  transition: all 0.2s ease;
}

.admin-table tbody tr:hover {
  background: var(--background);
}

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

.table-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.btn-edit,
.btn-topup {
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.btn-edit {
  background: #dbeafe;
  color: #0c4a6e;
  border: 1px solid #bfdbfe;
}

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

.btn-topup {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

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

/* User Management Badges */
.plan-badge {
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-block;
}

.plan-badge.plan-free {
  background: #e2e8f0;
  color: #475569;
}

.plan-badge.plan-pro {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: white;
}

.badge-admin {
  background: #dcfce7;
  color: #166534;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.badge-user {
  background: #f1f5f9;
  color: #64748b;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-success {
  background: #dcfce7;
  color: #166534;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.badge-info {
  background: #dbeafe;
  color: #0c4a6e;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.badge-warning {
  background: #fef3c7;
  color: #92400e;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

/* Top-up Container */
.topup-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.topup-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.topup-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Edit User Container */
.edit-user-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.edit-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.edit-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
  font-family: inherit;
  background: var(--surface);
  cursor: pointer;
}

select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--background);
  color: var(--text-secondary);
  border: 2px solid var(--border);
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-decoration: none;
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--surface);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.15);
}

/* Transactions Section */
.transactions-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.transactions-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.users-table-container {
  background: var(--surface);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 2rem;
}

/* Quick Actions Section */
.quick-actions-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.quick-actions-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.action-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.action-card {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.75rem;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.action-card:hover {
  border-color: var(--border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
  background: var(--surface);
}

.action-icon {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1rem;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.action-card:hover .action-icon {
  transform: scale(1.1) rotate(-5deg);
}

.action-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.action-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}

/* Admin Layout with Sidebar */
.admin-layout {
  min-height: 100vh;
  background: var(--background);
}

/* Admin Header */
.admin-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1.5rem;
  z-index: 1000;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.admin-header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.sidebar-toggle {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 6px;
  transition: all 0.3s ease;
  display: none;
}

.sidebar-toggle:hover {
  background: var(--background);
  color: var(--text-primary);
}

.admin-logo {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.admin-logo:hover {
  color: var(--primary);
}

.admin-logo i {
  font-size: 1.5rem;
}

.admin-header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.admin-user-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.admin-user-info i {
  font-size: 1.5rem;
}

.admin-email {
  font-weight: 500;
}

.btn-admin-logout {
  background: #fee2e2;
  color: #991b1b;
  border: none;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: flex;
  align-items: center;
  font-size: 1.1rem;
}

.btn-admin-logout:hover {
  background: #fecaca;
  transform: translateY(-1px);
}

/* Admin Sidebar */
.admin-sidebar {
  position: fixed;
  top: 60px;
  left: 0;
  width: 260px;
  height: calc(100vh - 60px);
  background: var(--surface);
  border-right: 1px solid var(--border);
  overflow-y: auto;
  transition: all 0.3s ease;
  z-index: 999;
}

.sidebar-nav {
  padding: 1rem 0;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}

.sidebar-item:hover {
  background: var(--background);
  color: var(--text-primary);
}

.sidebar-item.active {
  background: #eff6ff;
  color: var(--primary);
  border-left-color: var(--primary);
}

.sidebar-item i {
  font-size: 1.2rem;
  width: 24px;
  text-align: center;
}

/* Admin Main Content */
.admin-main {
  margin-left: 260px;
  margin-top: 60px;
  min-height: calc(100vh - 60px);
  padding: 2rem;
  transition: all 0.3s ease;
}

.admin-content {
  max-width: 1400px;
  margin: 0 auto;
}

.admin-content-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.admin-content-header h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Table Responsive Wrapper */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
  .admin-sidebar {
    width: 220px;
  }

  .admin-main {
    margin-left: 220px;
  }
}

@media (max-width: 768px) {
  .sidebar-toggle {
    display: block;
  }

  .admin-header {
    padding: 0 1rem;
  }

  .admin-user-info .admin-email {
    display: none;
  }

  .admin-sidebar {
    left: -260px;
  }

  .admin-sidebar.active {
    left: 0;
    box-shadow: 4px 0 12px rgba(0, 0, 0, 0.1);
  }

  .admin-main {
    margin-left: 0;
    padding: 1.5rem 1rem;
  }

  .admin-content-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-content-header h1 {
    font-size: 1.5rem;
  }

  .admin-table {
    font-size: 0.85rem;
  }

  .admin-table th,
  .admin-table td {
    padding: 0.75rem 0.5rem;
  }

  .table-actions {
    flex-direction: column;
    gap: 0.25rem;
  }

  .topup-container,
  .edit-user-container {
    grid-template-columns: 1fr;
  }

  .action-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .admin-header {
    height: 56px;
  }

  .admin-sidebar {
    top: 56px;
    height: calc(100vh - 56px);
  }

  .admin-main {
    margin-top: 56px;
    min-height: calc(100vh - 56px);
    padding: 1rem;
  }

  .admin-logo span {
    display: none;
  }

  .admin-content-header h1 {
    font-size: 1.25rem;
  }

  .btn-action {
    width: 100%;
    justify-content: center;
  }
}

/* CHANGE Enhanced mobile responsive breakpoints and improved stat cards layout */
@media (max-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    margin-bottom: 2.5rem;
  }

  .dashboard-header h1 {
    font-size: 2rem;
  }

  .api-keys-section,
  .credit-usage-section,
  .quick-actions-section {
    margin-bottom: 2rem;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 1rem;
  }

  .nav-container {
    gap: 1rem;
  }

  .hamburger-menu {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
    gap: 0;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
  }

  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-links a {
    padding: 0.75rem 1.5rem;
    border-bottom: 1px solid var(--border);
    gap: 0;
  }

  .nav-links a.active::after {
    display: none;
  }

  .nav-links a.active {
    background: #f0f9ff;
    color: var(--primary);
  }

  .nav-buttons {
    position: absolute;
    top: 70px;
    right: 0;
    width: 100%;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    gap: 0.5rem;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
  }

  .nav-buttons.active {
    transform: translateY(calc(100% + 70px + var(--nav-links-height, 0px)));
    opacity: 1;
    visibility: visible;
  }

  .btn-logout,
  .btn-login {
    width: 100%;
    text-align: center;
  }

  .mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }

  .mobile-overlay.active {
    display: block;
    opacity: 1;
    visibility: visible;
  }

  /* CHANGE Stack stat cards on mobile */
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
  }

  .stat-card {
    padding: 1.5rem;
    gap: 1rem;
  }

  .stat-icon {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }

  .dashboard-header h1 {
    font-size: 1.75rem;
  }

  .dashboard-header p {
    font-size: 0.95rem;
  }

  /* CHANGE Make API keys section responsive */
  .api-keys-section {
    border-radius: 12px;
    margin-bottom: 1.5rem;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .section-header button,
  .section-header .btn-create {
    width: 100%;
  }

  /* CHANGE Improve key display on mobile */
  .key-display {
    flex-direction: column;
    gap: 0.75rem;
  }

  .key-display code {
    word-break: break-all;
    padding: 0.75rem;
    background: var(--background);
    border-radius: 8px;
    font-size: 0.75rem !important;
  }

  .btn-copy {
    width: 100%;
  }

  /* CHANGE Stack quick action cards */
  .action-cards {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .action-card {
    padding: 1.5rem;
  }

  .container {
    padding: 1rem;
  }

  /* CHANGE Responsive typography */
  .section-title {
    font-size: 1.75rem;
  }

  .section-subtitle {
    font-size: 0.95rem;
  }

  /* CHANGE Improve credit usage section */
  .credit-usage-section {
    padding: 1.5rem;
  }

  .usage-header {
    flex-direction: column;
    gap: 0.5rem;
  }

  .quick-actions-section {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2.2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .cta-button {
    padding: 0.9rem 1.8rem;
    font-size: 0.95rem;
  }

  .cta-box {
    padding: 2rem 1.5rem;
  }

  .cta-box h2 {
    font-size: 1.6rem;
  }

  .cta-buttons {
    flex-direction: column;
    gap: 0.75rem;
  }

  .btn-trial,
  .btn-docs {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
    width: 100%;
  }

  .auth-container {
    padding: 2rem 1.5rem;
  }

  .auth-header h2 {
    font-size: 1.5rem;
  }

  .form-group {
    margin-bottom: 1.25rem;
  }

  input[type="email"],
  input[type="password"],
  input[type="number"],
  input[type="text"] {
    padding: 0.8rem 1rem;
    font-size: 16px;
  }

  button[type="submit"] {
    padding: 0.9rem 1.2rem;
    font-size: 0.95rem;
  }

  .dashboard-header h1 {
    font-size: 1.5rem;
  }

  .stat-card {
    padding: 1.25rem;
  }

  .stat-value {
    font-size: 1.1rem;
  }

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

  .btn-create {
    padding: 0.7rem 1rem;
    font-size: 0.85rem;
  }

  .key-display code {
    font-size: 0.7rem !important;
  }

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

  .section-title {
    font-size: 1.5rem;
  }

  .section-header {
    flex-direction: column;
  }

  .section-header > div:first-child {
    width: 100%;
  }

  .section-header button {
    width: 100%;
  }
}
