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

:root {
  --primary: #0a0a0f;
  --secondary: #12121a;
  --tertiary: #1a1a24;
  --accent: #00d4aa;
  --accent-hover: #00f5c4;
  --accent-dim: rgba(0, 212, 170, 0.15);
  --text-primary: #ffffff;
  --text-secondary: #8a8a9a;
  --text-muted: #5a5a6a;
  --border: #1e1e2e;
  --border-light: #2a2a3a;
  --gradient-accent: linear-gradient(135deg, #00d4aa 0%, #00a8ff 100%);
  --gradient-bg: linear-gradient(180deg, #0a0a0f 0%, #12121a 100%);
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --header-height: 64px;
  --sidebar-width: 280px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background-color: var(--primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

.bg-pattern {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  background: 
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(0, 212, 170, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 85% 100%, rgba(0, 168, 255, 0.08) 0%, transparent 50%),
    var(--gradient-bg);
  opacity: 0.5;
}

.grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  background-image: 
    linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 50px 50px;
}

/* ========== HEADER ========== */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-height);
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.header-left { display: flex; align-items: center; gap: 24px; }

.logo {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
}

.nav-tabs { display: flex; gap: 8px; }

.nav-tab {
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  background: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.nav-tab.active {
  color: var(--accent);
  background: var(--accent-dim);
}

.nav-tab svg { width: 16px; height: 16px; }

.header-right { display: flex; align-items: center; gap: 12px; }

.plan-badge {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.plan-badge.free { background: rgba(255, 255, 255, 0.1); color: var(--text-secondary); }
.plan-badge.pro { background: linear-gradient(135deg, #f5a623 0%, #f5d023 100%); color: #0a0a0f; }
.plan-badge.enterprise { background: var(--gradient-accent); color: #0a0a0f; }

/* ========== BUTTONS ========== */
.btn {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

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

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

.btn-primary {
  background: var(--gradient-accent);
  color: var(--primary);
}

.btn-primary:hover {
  transform: scale(1.02);
  box-shadow: 0 0 24px rgba(0, 212, 170, 0.3);
}

.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-danger { background: #ff5f57; color: white; }
.btn-danger:hover { background: #ff6b67; }

/* ========== USER MENU ========== */
.user-menu { position: relative; }

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: var(--gradient-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  color: var(--primary);
  cursor: pointer;
  transition: all 0.2s;
}

.user-avatar:hover { transform: scale(1.05); }

.user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 240px;
  background: var(--secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s;
  z-index: 200;
}

.user-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-user-info {
  padding: 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
}

.dropdown-user-name { font-weight: 600; font-size: 14px; }
.dropdown-user-email { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }

.dropdown-divider { height: 1px; background: var(--border); margin: 8px 0; }

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}

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

.dropdown-item.danger:hover {
  background: rgba(255, 87, 87, 0.1);
  color: #ff5f57;
}

.dropdown-item svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ========== MAIN ========== */
main {
  padding-top: var(--header-height);
  padding-bottom: 60px;
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

/* ========== LANDING ========== */
.landing-section {
  padding: 100px 5%;
  min-height: 100vh;
  display: none;
  flex-direction: column;
  justify-content: center;
}

.landing-section,
.landing-section.show { display: flex; }
.landing-section.short { min-height: auto; padding: 80px 5%; }

#hero {
  text-align: center;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('../images/hero-bg.webp') center/cover;
  opacity: 0.15;
  z-index: -1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(0, 212, 170, 0.1);
  border: 1px solid rgba(0, 212, 170, 0.3);
  border-radius: 100px;
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 32px;
  animation: fadeInUp 0.6s ease-out;
}

.hero-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(0.9); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

h1 {
  font-family: var(--font-heading);
  font-size: clamp(48px, 7vw, 72px);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -2px;
  animation: fadeInUp 0.6s ease-out 0.1s backwards;
}

.hero-subtitle {
  font-size: clamp(18px, 2vw, 20px);
  color: var(--text-secondary);
  max-width: 560px;
  margin-bottom: 40px;
  animation: fadeInUp 0.6s ease-out 0.2s backwards;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeInUp 0.6s ease-out 0.3s backwards;
}

.section-header { text-align: center; margin-bottom: 60px; }

h2 {
  font-family: var(--font-heading);
  font-size: clamp(32px, 4vw, 42px);
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: -1px;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 17px;
  max-width: 480px;
  margin: 0 auto;
}

/* ========== MODELS ========== */
.models-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.model-card {
  background: rgba(18, 18, 26, 0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all 0.3s;
  position: relative;
  cursor: pointer;
}

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

.model-card:hover {
  border-color: rgba(0, 212, 170, 0.4);
  box-shadow: 0 8px 40px rgba(0, 212, 170, 0.1);
  transform: translateY(-2px);
}

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

.model-card.selected {
  border-color: var(--accent);
  box-shadow: 0 0 30px rgba(0, 212, 170, 0.2);
}

.model-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 5px 10px;
  background: var(--gradient-accent);
  border-radius: 20px;
  font-size: 10px;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.model-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}

.model-name {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

.model-desc {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 16px;
}

.model-meta {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.model-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.plan-required {
  font-size: 12px;
  color: #f5a623;
  background: rgba(245, 166, 35, 0.15);
  padding: 4px 10px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.available {
  font-size: 12px;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 4px 10px;
  border-radius: 20px;
}

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

.feature-card {
  padding: 32px;
  border-radius: var(--radius-lg);
  background: rgba(18, 18, 26, 0.5);
  border: 1px solid var(--border);
  transition: all 0.3s;
}

.feature-card:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 20px;
}

.feature-icon svg { width: 24px; height: 24px; }

.feature-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}

.feature-desc {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.7;
}

/* ========== EXAMPLES ========== */
.examples-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}

.example-card {
  padding: 20px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  transition: all 0.2s;
  max-width: 100%;
  box-sizing: border-box;
}

@media (max-width: 900px) {
  .examples-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .examples-grid {
    grid-template-columns: 1fr;
  }
}

.example-card:hover {
  border-color: var(--accent);
  background: rgba(0, 212, 170, 0.1);
}

.example-category {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent);
  margin-bottom: 8px;
}

.example-prompt { font-size: 14px; color: var(--text-secondary); }

/* ========== PRICING ========== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  max-width: 700px;
  margin: 0 auto;
}

.pricing-card {
  position: relative;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  text-align: center;
  transition: all 0.3s;
}

/* Plan-specific glow effects on cards */
.pricing-card.free {
  opacity: 0.7;
}

.pricing-card.pro {
  opacity: 0.85;
  border-color: rgba(0, 212, 170, 0.3);
}

.pricing-card.enterprise {
  opacity: 1;
  border-color: rgba(0, 212, 170, 0.5);
  box-shadow: 0 0 60px rgba(0, 212, 170, 0.3), inset 0 0 60px rgba(0, 212, 170, 0.05);
  animation: enterpriseGlow 3s ease-in-out infinite;
}

@keyframes enterpriseGlow {
  0%, 100% { box-shadow: 0 0 60px rgba(0, 212, 170, 0.3), inset 0 0 60px rgba(0, 212, 170, 0.05); }
  50% { box-shadow: 0 0 80px rgba(0, 212, 170, 0.5), inset 0 0 80px rgba(0, 168, 255, 0.1); }
}

.pricing-card:hover { border-color: var(--accent); }

.pricing-card.popular {
  border-color: var(--accent);
  box-shadow: 0 0 40px rgba(0, 212, 170, 0.2);
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 14px;
  background: var(--gradient-accent);
  border-radius: 20px;
  font-size: 10px;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  white-space: nowrap;
}

.pricing-name {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

.pricing-price {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 4px;
}

.pricing-period {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.pricing-features {
  text-align: left;
  margin-bottom: 24px;
}

.pricing-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  font-size: 13px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}

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

.pricing-feature svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
  flex-shrink: 0;
}

/* ========== CHAT LAYOUT ========== */
.chat-layout { display: none; min-height: calc(100vh - var(--header-height)); }
.chat-layout.active { display: flex !important; }

.chat-sidebar {
  width: var(--sidebar-width);
  background: var(--secondary);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  height: calc(100vh - var(--header-height));
  position: fixed;
  left: 0;
  top: var(--header-height);
}

.sidebar-header {
  padding: 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

.sidebar-history {
  flex: 1;
  overflow-y: auto;
  padding: 12px 8px;
}

.history-empty {
  padding: 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

.history-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 2px;
}

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

.history-item.active {
  background: var(--accent-dim);
  color: var(--accent);
}

.history-item-title { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.history-item-actions { display: flex; gap: 4px; opacity: 0; transition: opacity 0.2s; }
.history-item:hover .history-item-actions { opacity: 1; }

.history-item-btn { padding: 4px; border-radius: 4px; transition: all 0.2s; }
.history-item-btn:hover { background: rgba(255, 255, 255, 0.1); }
.history-item-btn.delete:hover { background: rgba(255, 87, 87, 0.2); color: #ff5f57; }

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

.storage-info {
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
}

/* Chat Main */
.chat-main {
  flex: 1;
  margin-left: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  height: calc(100vh - var(--header-height));
}

.connection-status {
  padding: 8px 16px;
  font-size: 12px;
  color: var(--accent);
  background: var(--secondary);
  border-bottom: 1px solid var(--border);
  min-height: 32px;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.chat-message {
  display: flex;
  gap: 16px;
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
}

.chat-message.user { flex-direction: row-reverse; }

.message-avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: var(--gradient-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.chat-message.user .message-avatar {
  background: var(--tertiary);
  border: 1px solid var(--border);
}

.message-content { flex: 1; }

.message-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.message-role { font-weight: 600; font-size: 14px; }

.message-model {
  font-size: 12px;
  color: var(--text-muted);
  padding: 2px 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
}

.message-text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-primary);
}

.message-text p { margin-bottom: 12px; }
.message-text p:last-child { margin-bottom: 0; }
.message-text strong { font-weight: 600; }
.message-text em { font-style: italic; }
.message-text h2, .message-text h3, .message-text h4 {
  margin: 20px 0 10px 0;
  font-weight: 600;
}
.message-text h2 { font-size: 18px; }
.message-text h3 { font-size: 16px; }
.message-text h4 { font-size: 14px; }

.message-text .inline-code {
  background: rgba(0, 0, 0, 0.4);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 13px;
}

.message-text .code-block {
  background: #0d0d14;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin: 12px 0;
  overflow: hidden;
}

.message-text .code-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid var(--border);
}

.message-text .code-lang {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--accent);
  font-family: var(--font-mono);
}

.message-text .code-copy {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all 0.2s;
}

.message-text .code-copy:hover {
  background: rgba(255, 255, 255, 0.2);
  color: var(--text-primary);
}

.message-text .code-content {
  padding: 16px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  white-space: pre;
}

.message-text .code-content.python { border-left: 3px solid #3776ab; }
.message-text .code-content.javascript { border-left: 3px solid #f7df1e; }
.message-text .code-content.js { border-left: 3px solid #f7df1e; }
.message-text .code-content.typescript { border-left: 3px solid #3178c6; }
.message-text .code-content.html { border-left: 3px solid #e34f26; }
.message-text .code-content.css { border-left: 3px solid #264de4; }
.message-text .code-content.json { border-left: 3px solid #5b5b5b; }
.message-text .code-content.bash { border-left: 3px solid #4eaa25; }
.message-text .code-content.shell { border-left: 3px solid #4eaa25; }
.message-text .code-content.sql { border-left: 3px solid #336791; }
.message-text .code-content.markdown { border-left: 3px solid #083fa1; }

.message-text pre {
  background: #0d0d14;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  margin: 12px 0;
  overflow-x: auto;
}

.message-text pre code { background: none; padding: 0; font-size: 13px; line-height: 1.6; }

.message-text ul, .message-text ol {
  margin: 12px 0;
  padding-left: 24px;
}
.message-text ul { list-style: disc; }
.message-text ol { list-style: decimal; }
.message-text li { margin-bottom: 6px; }

.message-text table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  font-size: 13px;
}
.message-text td, .message-text th {
  padding: 8px 12px;
  border: 1px solid var(--border);
  text-align: left;
}
.message-text th {
  background: rgba(255, 255, 255, 0.05);
  font-weight: 600;
}

.message-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  opacity: 0;
  transition: opacity 0.2s;
}

.chat-message:hover .message-actions { opacity: 1; }

.message-action-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.message-action-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.message-action-btn.copy:hover { color: var(--accent); }
.message-action-btn.regenerate:hover { color: #f5a623; }
.message-action-btn.delete:hover { color: #ff5f57; }
.message-action-btn svg { width: 14px; height: 14px; }

/* Typing Indicator */
.typing-indicator {
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 8px 0;
}

.typing-indicator span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: bounce 1.4s infinite ease-in-out;
}

.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes bounce { 
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; } 
  30% { transform: translateY(-8px); opacity: 1; } 
}

.typing-label {
  font-size: 11px;
  color: var(--text-muted);
  margin-left: 8px;
  animation: pulse 2s infinite;
}

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

/* Message Animations */
.chat-message {
  animation: messageSlideIn 0.3s ease-out;
}

.chat-message.typing {
  animation: typingPulse 2s infinite;
}

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

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

/* Chat Input */
.chat-input-container {
  padding: 16px 24px 24px;
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 50;
}

.chat-input-wrapper {
  max-width: 800px;
  margin: 0 auto;
  background: var(--secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 0.2s;
}

.chat-input-wrapper:focus-within { border-color: var(--accent); }

.chat-input-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 100;
}

.model-selector { display: flex; align-items: center; gap: 10px; }
.model-dropdown { position: relative; }

.model-dropdown-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.2s;
}

.model-dropdown-btn:hover { border-color: var(--accent); }
.model-dropdown-btn svg { width: 16px; height: 16px; transition: transform 0.2s; }
.model-dropdown.open .model-dropdown-btn svg { transform: rotate(180deg); }

.model-dropdown-menu {
  position: fixed;
  width: 280px;
  background: var(--secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.95);
  transition: all 0.15s ease;
  max-height: 350px;
  overflow-y: auto;
  z-index: 9999;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.model-dropdown.open .model-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.model-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.2s;
}

.model-option:hover { background: rgba(255, 255, 255, 0.05); }
.model-option.selected { background: var(--accent-dim); }

.model-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.2s;
}

.model-option:hover { background: rgba(255, 255, 255, 0.05); }
.model-option.selected { background: var(--accent-dim); }

.model-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
}

.model-option:hover { background: rgba(255, 255, 255, 0.05); }
.model-option.selected { background: var(--accent-dim); }

.model-option-info { display: flex; flex-direction: column; gap: 2px; }
.model-option-name { font-size: 14px; font-weight: 500; }
.model-option-desc { font-size: 12px; color: var(--text-muted); }

.model-option-badge {
  font-size: 9px;
  padding: 3px 8px;
  border-radius: 10px;
  text-transform: uppercase;
  font-weight: 600;
}

.model-option-badge.pro { background: rgba(245, 166, 35, 0.15); color: #f5a623; }

.chat-input-body {
  display: flex;
  align-items: flex-end;
  padding: 12px 16px;
  gap: 12px;
}

.chat-textarea {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  resize: none;
  outline: none;
  max-height: 200px;
  min-height: 24px;
}

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

.chat-send-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--gradient-accent);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}

.chat-send-btn:hover:not(:disabled) {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(0, 212, 170, 0.3);
}

.chat-send-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.chat-send-btn svg { width: 18px; height: 18px; color: var(--primary); }

.chat-input-footer {
  padding: 0 16px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
}

.rate-limit-status { display: flex; align-items: center; gap: 8px; }

.rate-progress {
  width: 80px;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.rate-progress-fill { height: 100%; background: var(--accent); transition: width 0.3s; }
.rate-progress-fill.warning { background: #f5a623; }
.rate-progress-fill.danger { background: #ff5f57; }

.keyboard-hint kbd {
  padding: 2px 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 10px;
}

/* Empty State */
.chat-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
}

.empty-icon {
  width: 80px;
  height: 80px;
  border-radius: 24px;
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  margin-bottom: 24px;
}

.empty-title {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 12px;
}

.empty-desc {
  color: var(--text-secondary);
  font-size: 15px;
  max-width: 400px;
  margin-bottom: 32px;
}

.empty-prompts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  max-width: 600px;
  width: 100%;
}

.empty-prompt {
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  text-align: left;
  cursor: pointer;
  transition: all 0.2s;
}

.empty-prompt:hover {
  border-color: var(--accent);
  background: rgba(0, 212, 170, 0.1);
}

.empty-prompt-title { font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.empty-prompt-desc { font-size: 12px; color: var(--text-muted); }

@media (max-width: 600px) {
  .empty-prompts {
    grid-template-columns: 1fr;
    max-width: 100%;
  }
}

/* ========== MODAL ========== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 10, 15, 0.9);
  backdrop-filter: blur(10px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.modal-overlay.open { opacity: 1; pointer-events: auto; }

.modal {
  width: 420px;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 64px);
  background: var(--secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transform: scale(0.95);
  transition: transform 0.3s;
}

.modal-overlay.open .modal { transform: scale(1); }

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

.modal-title { font-family: var(--font-heading); font-size: 18px; font-weight: 600; }

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

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

.modal-body { padding: 24px; overflow-y: auto; }

.modal-tabs { display: flex; gap: 8px; margin-bottom: 24px; }

.modal-tab {
  flex: 1;
  padding: 10px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.2s;
}

.modal-tab.active { background: var(--accent-dim); border-color: var(--accent); color: var(--accent); }

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

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.form-input:focus { border-color: var(--accent); }

.form-error { color: #ff5f57; font-size: 12px; margin-top: 8px; display: none; }
.form-error.show { display: block; }

.confirm-modal .modal { width: 360px; }

.confirm-message { font-size: 15px; line-height: 1.7; color: var(--text-secondary); margin-bottom: 24px; }

.confirm-actions { display: flex; gap: 12px; justify-content: flex-end; }

/* ========== TOAST ========== */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  animation: slideIn 0.3s ease-out;
  min-width: 280px;
}

@keyframes slideIn { from { opacity: 0; transform: translateX(100%); } to { opacity: 1; transform: translateX(0); } }

.toast.success { border-color: var(--accent); }
.toast.error { border-color: #ff5f57; }
.toast.warning { border-color: #f5a623; }

.toast-icon { width: 20px; height: 20px; flex-shrink: 0; }
.toast.success .toast-icon { color: var(--accent); }
.toast.error .toast-icon { color: #ff5f57; }
.toast.warning .toast-icon { color: #f5a623; }

.toast-message { flex: 1; font-size: 14px; }

.toast-close {
  padding: 4px;
  border-radius: 4px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

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

/* ========== FOOTER ========== */
footer, #landingFooter {
  padding: 20px 5%;
  border-top: 1px solid var(--border);
  background: var(--primary);
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99;
}

#landingFooter { display: none !important; }
#landingFooter.show { display: block !important; }

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-logo, .logo img {
  height: 28px;
  width: auto;
}

.footer-logo {
  display: flex;
  align-items: center;
}

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

.footer-center a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

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

.footer-divider {
  color: var(--border);
}

.footer-copy {
  color: var(--text-muted);
  font-size: 13px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  .chat-sidebar { display: none; }
  .chat-main { margin-left: 0; }
  .nav-tabs { display: none; }
  .model-tabs { flex-wrap: wrap; }
  .model-details { grid-template-columns: 1fr; }
  .pricing-toggle { flex-direction: column; gap: 12px; }
}

@media (max-width: 600px) {
  .landing-section { padding: 60px 4%; }
  .models-grid, .features-grid, .pricing-grid { grid-template-columns: 1fr; }
  footer { flex-direction: column; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
  .model-detail-card { padding: 20px; }
  .examples-categories { overflow-x: auto; flex-wrap: nowrap; }
  .category-btn { white-space: nowrap; }
}

/* ========== MODEL TABS ========== */
.model-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 40px;
}

.model-tab-btn {
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.model-tab-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

.model-tab-btn.active {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: var(--accent);
}

/* ========== MODEL DETAILS ========== */
.model-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.model-detail-card {
  display: none;
  background: rgba(18, 18, 26, 0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.model-detail-card.active {
  display: block;
}

.detail-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.detail-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.detail-icon-img {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  object-fit: cover;
}

.detail-info h3 {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 600;
}

.detail-info .plan-badge {
  margin-left: 8px;
}

.detail-desc {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 24px;
}

.detail-specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 24px;
  padding: 16px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-md);
}

.spec-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.spec-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.spec-value {
  font-size: 13px;
  font-weight: 500;
}

.detail-features {
  margin-bottom: 24px;
}

.detail-features h4 {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.detail-features ul {
  list-style: none;
}

.detail-features li {
  padding: 8px 0;
  font-size: 14px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}

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

.detail-features li.plan-required {
  color: #f5a623;
}

/* ========== EXAMPLES ========== */
.examples-categories {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.category-btn {
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}

.category-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.3);
}

.category-btn.active {
  background: rgba(0, 212, 170, 0.15);
  border-color: var(--accent);
  color: var(--accent);
}

.example-card.hidden {
  display: none;
}

.example-result {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 8px;
}

/* ========== PRICING TOGGLE ========== */
.pricing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 40px;
}

.toggle-label {
  font-size: 14px;
  color: var(--text-secondary);
}

.toggle-save {
  color: var(--accent);
  font-weight: 600;
  font-size: 12px;
}

.switch {
  position: relative;
  width: 52px;
  height: 28px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--border);
  border-radius: 28px;
  transition: 0.3s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 4px;
  bottom: 4px;
  background: white;
  border-radius: 50%;
  transition: 0.3s;
}

input:checked + .slider {
  background: var(--accent);
}

input:checked + .slider:before {
  transform: translateX(24px);
}

.pricing-desc {
  font-size: 13px;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 24px;
}

.price-amount {
  font-size: 36px;
  font-weight: 700;
}

.price-period {
  font-size: 14px;
  color: var(--text-muted);
}

.pricing-feature.disabled {
  opacity: 0.4;
}

.pricing-feature.disabled svg {
  color: var(--text-muted);
}

/* ========== FAQ ========== */
.pricing-faq {
  max-width: 800px;
  margin: 60px auto 0;
}

.pricing-faq h3 {
  text-align: center;
  font-size: 28px;
  margin-bottom: 32px;
}

.faq-grid {
  display: grid;
  gap: 16px;
}

.faq-item {
  padding: 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.faq-item h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
}

.faq-item p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ========== AURORA BOREALIS & STARS BACKGROUND ========== */
.aurora-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.stars-layer {
  position: absolute;
  width: 100%;
  height: 100%;
  background: transparent;
}

.shooting-star {
  position: absolute;
  width: 5px;
  height: 5px;
  background: #fff;
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 0 15px rgba(255, 255, 255, 1),
              0 0 30px rgba(255, 255, 255, 0.8),
              0 0 50px rgba(255, 255, 255, 0.4);
  transform: rotate(-45deg);
}

.shooting-star::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 100%;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.5), #fff);
  transform: translateY(-50%);
}

.shooting-star::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 100%;
  width: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.25));
  transform: translateY(-50%);
}

.shooting-star.active {
  animation: shootStar 0.9s linear forwards;
}

.shooting-star.active::before {
  animation: shootTail 0.9s linear forwards;
}

.shooting-star.active::after {
  animation: shootTailDim 0.9s linear forwards;
}

@keyframes shootStar {
  0% {
    opacity: 0;
    transform: rotate(-45deg) translateX(0);
  }
  8% {
    opacity: 1;
  }
  85% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: rotate(-45deg) translateX(-500px);
  }
}

@keyframes shootTail {
  0% { width: 0; }
  15% { width: 120px; }
  85% { width: 120px; }
  100% { width: 0; }
}

@keyframes shootTailDim {
  0% { width: 0; }
  20% { width: 200px; }
  80% { width: 200px; }
  100% { width: 0; }
}

.star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: #fff;
  border-radius: 50%;
  opacity: 0.8;
  animation: twinkle 3s infinite;
  box-shadow: 0 0 4px 1px rgba(255,255,255,0.5);
}

.star.active { opacity: 1; }

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

.aurora-layer {
  position: absolute;
  width: 100%;
  height: 100%;
  filter: blur(60px);
  opacity: 0.5;
  transition: opacity 1s ease;
}

.aurora-layer.active { opacity: 1; }

.aurora-wave {
  position: absolute;
  width: 200%;
  height: 450px;
  border-radius: 50%;
  animation: auroraWave 7s ease-in-out infinite;
}

.aurora-wave:nth-child(1) {
  top: 15%;
  left: -50%;
  background: linear-gradient(90deg, transparent 0%, rgba(0, 212, 170, 0.5) 30%, rgba(0, 255, 200, 0.6) 50%, rgba(0, 212, 170, 0.5) 70%, transparent 100%);
  animation-delay: 0s;
}

.aurora-wave:nth-child(2) {
  top: 30%;
  left: -50%;
  background: linear-gradient(90deg, transparent 0%, rgba(0, 168, 255, 0.4) 30%, rgba(100, 200, 255, 0.5) 50%, rgba(0, 168, 255, 0.4) 70%, transparent 100%);
  animation-delay: -2s;
}

.aurora-wave:nth-child(3) {
  top: 20%;
  left: -50%;
  background: linear-gradient(90deg, transparent 0%, rgba(138, 43, 226, 0.35) 30%, rgba(180, 100, 255, 0.5) 50%, rgba(138, 43, 226, 0.35) 70%, transparent 100%);
  animation-delay: -4s;
}

@keyframes auroraWave {
  0%, 100% { transform: translateX(-20%) scaleY(1); }
  50% { transform: translateX(20%) scaleY(1.3); }
}

/* Plan upgrade animation containers */
.plan-upgrade-effect {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
}

.plan-upgrade-effect.free {
  opacity: 0;
}

.plan-upgrade-effect.pro {
  opacity: 1;
}

.plan-upgrade-effect.pro .aurora-layer {
  opacity: 0.6;
}

.plan-upgrade-effect.pro .aurora-wave:nth-child(1) {
  background: linear-gradient(90deg, transparent 0%, rgba(0, 212, 170, 0.5) 50%, transparent 100%);
}

.plan-upgrade-effect.pro .aurora-wave:nth-child(2) {
  background: linear-gradient(90deg, transparent 0%, rgba(0, 168, 255, 0.4) 50%, transparent 100%);
}

.plan-upgrade-effect.pro .star {
  animation-duration: 2s;
}

.plan-upgrade-effect.pro .shooting-star {
  display: block;
  animation-delay: 0.5s;
}

.plan-upgrade-effect.enterprise {
  opacity: 1;
}

.plan-upgrade-effect.enterprise .aurora-layer {
  opacity: 1;
  filter: blur(40px);
}

.plan-upgrade-effect.enterprise .aurora-wave {
  height: 500px;
}

.plan-upgrade-effect.enterprise .aurora-wave:nth-child(1) {
  background: linear-gradient(90deg, transparent 0%, rgba(0, 212, 170, 0.7) 50%, transparent 100%);
}

.plan-upgrade-effect.enterprise .aurora-wave:nth-child(2) {
  background: linear-gradient(90deg, transparent 0%, rgba(0, 168, 255, 0.6) 50%, transparent 100%);
}

.plan-upgrade-effect.enterprise .aurora-wave:nth-child(3) {
  background: linear-gradient(90deg, transparent 0%, rgba(138, 43, 226, 0.5) 50%, transparent 100%);
  top: 30%;
}

.plan-upgrade-effect.enterprise .star {
  animation-duration: 1.5s;
}

.plan-upgrade-effect.enterprise .shooting-star {
  display: block;
  animation-delay: 0.2s, 1s, 2s;
}

.plan-upgrade-effect.enterprise .shooting-star:nth-child(2) {
  animation-delay: 0.8s;
}

.plan-upgrade-effect.enterprise .shooting-star:nth-child(3) {
  animation-delay: 1.5s;
}

.celebration-particle {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  pointer-events: none;
}

@keyframes celebrationBurst {
  0% { transform: translate(0, 0) scale(1); opacity: 1; }
  100% { transform: translate(var(--tx), var(--ty)) scale(0); opacity: 0; }
}

/* Upgrade celebration overlay */
.upgrade-celebration {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10000;
}

.upgrade-celebration.active .celebration-particle {
  animation: celebrationBurst 2s ease-out forwards;
}

.hidden { display: none !important; }