@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap");

:root {
  --bg-deep: #020617; /* slate-950 */
  --bg-surface: #0f172a; /* slate-900 */
  --bg-card: rgba(15, 23, 42, 0.45); /* slate-900/40 */
  --glass: rgba(99, 102, 241, 0.04);
  --glass-border: #1e293b; /* slate-800 */
  --neon-blue: #6366f1; /* Indigo */
  --neon-purple: #818cf8; /* Light Indigo */
  --neon-cyan: #4f46e5; /* Deep Indigo */
  --accent: #6366f1; /* indigo-500 */
  --text: #cbd5e1; /* slate-300 */
  --text-muted: #64748b; /* slate-500 */
  --success: #10b981; /* emerald-500 */
  --warning: #f59e0b; /* amber-500 */
  --danger: #ef4444; /* red-500 */
  --radius: 12px; /* rounded-xl */
  --radius-sm: 8px; /* rounded-lg */
  --shadow-glow: 0 10px 30px -10px rgba(99, 102, 241, 0.15);
  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --nav-height: 80px; /* h-20 matching Sleek theme */
  --sidebar-width: 288px; /* w-72 matching Sleek theme css */
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", system-ui, sans-serif;
  background: var(--bg-deep);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(99, 102, 241, 0.12), transparent),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(16, 185, 129, 0.05), transparent),
    radial-gradient(ellipse 50% 30% at 0% 80%, rgba(99, 102, 241, 0.05), transparent);
  pointer-events: none;
  z-index: 0;
}

body > * {
  position: relative;
  z-index: 1;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

/* ─── Navbar ─── */
@keyframes slideDownIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  height: var(--nav-height);
  background: rgba(15, 23, 42, 0.5); /* slate-900/50 with Blur */
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  animation: slideDownIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.logo {
  font-weight: 700;
  font-size: 1.25rem;
  color: #ffffff;
  letter-spacing: -0.02em;
  text-decoration: none;
  display: flex;
  align-items: center;
  transition: var(--transition);
}

.logo:hover {
  text-decoration: none;
  opacity: 0.95;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.nav-links a {
  padding: 0.4rem 0.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
  border-bottom: 2px solid transparent;
  border-radius: 0;
}

.nav-links a:hover {
  color: #ffffff;
  background: transparent;
  box-shadow: none;
}

.nav-links a.active {
  color: var(--neon-purple);
  border-bottom-color: var(--accent);
  background: transparent;
  box-shadow: none;
}

.nav-cta {
  padding: 0.5rem 1rem !important;
  background: #4f46e5 !important; /* bg-indigo-600 */
  color: white !important;
  font-weight: 500 !important;
  border-radius: var(--radius-sm) !important;
  border: none !important;
}

.nav-cta:hover {
  background: #6366f1 !important; /* bg-indigo-500 */
  transform: none;
  box-shadow: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

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

/* ─── Hero ─── */
.hero {
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.08); /* Indigo-tinted badge */
  border: 1px solid rgba(99, 102, 241, 0.3);
  font-size: 0.8rem;
  color: #818cf8; /* Light Indigo text */
  margin-bottom: 1.5rem;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 15px rgba(99, 102, 241, 0.15); }
  50% { box-shadow: 0 0 25px rgba(99, 102, 241, 0.3); }
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 300; /* Font light from Sleek Theme */
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  color: #ffffff;
}

.hero p {
  max-width: 640px;
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.btn-primary {
  background: #4f46e5; /* bg-indigo-600 */
  color: white;
  box-shadow: 0 4px 14px 0 rgba(79, 70, 229, 0.3);
}

.btn-primary:hover {
  background: #6366f1; /* bg-indigo-500 */
  transform: translateY(-1px);
  box-shadow: 0 6px 20px 0 rgba(79, 70, 229, 0.4);
}

.btn-secondary {
  background: rgba(15, 23, 42, 0.55);
  color: var(--text);
  border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
  background: rgba(30, 41, 59, 0.55);
  border-color: #6366f1;
  color: #ffffff;
}

/* ─── Sections ─── */
.section {
  padding: 5rem 2rem;
  max-width: 1280px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
}

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

.card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 1.75rem;
  backdrop-filter: blur(12px);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

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

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), rgba(56, 189, 248, 0.2));
}

.card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

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

/* ─── Page layouts ─── */
.page-hero {
  padding: 6rem 2rem 3rem;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 300; /* Font light matching Sleek style page header */
  margin-bottom: 1rem;
  color: #ffffff;
}

.page-hero p {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.page-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem 4rem;
}

/* ─── Stats / Dashboard ─── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  backdrop-filter: blur(12px);
}

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

.stat-card .value {
  font-size: 2.25rem;
  font-weight: 300; /* Font light from Sleek Theme metrics */
  color: #ffffff;
}

.stat-card .delta {
  font-size: 0.8rem;
  margin-top: 0.35rem;
}

.stat-card .delta.up { color: var(--success); }
.stat-card .delta.down { color: var(--danger); }

.chart-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.chart-card h3 {
  margin-bottom: 1rem;
  font-size: 1rem;
}

.bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 120px;
}

.bar {
  flex: 1;
  background: #6366f1; /* Pure indigo theme */
  border-radius: 4px 4px 0 0;
  min-height: 8px;
  transition: height 0.6s ease;
  opacity: 0.85;
}

.model-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.model-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  background: var(--glass);
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
}

.model-row .status {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
  animation: blink 2s infinite;
}

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

/* ─── Forms ─── */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

input,
textarea,
select {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
  background: rgba(15, 23, 42, 0.8);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--neon-cyan);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.15);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

/* ─── Chat layout ─── */
.chat-app {
  display: flex;
  height: calc(100vh - var(--nav-height));
  max-height: calc(100vh - var(--nav-height));
  overflow: hidden;
}

.chat-sidebar {
  width: var(--sidebar-width);
  flex-shrink: 0;
  background: rgba(10, 15, 30, 0.95);
  border-right: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  padding: 1rem;
  gap: 1rem;
}

.chat-sidebar-header {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.new-chat-btn {
  width: 100%;
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px dashed var(--glass-border);
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.new-chat-btn:hover {
  border-color: var(--neon-cyan);
  background: var(--glass);
}

.sidebar-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.chat-history {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.history-item {
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.history-item:hover,
.history-item.active {
  background: var(--glass);
  color: var(--text);
}

.chat-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: rgba(3, 7, 18, 0.5);
}

.chat-header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.chat-header h2 {
  font-size: 1rem;
  font-weight: 600;
}

.chat-controls {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.chat-controls select {
  width: auto;
  min-width: 130px;
  padding: 0.5rem 0.85rem;
  font-size: 0.85rem;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  scroll-behavior: smooth;
}

.message {
  display: flex;
  gap: 0.85rem;
  max-width: 85%;
  animation: message-in 0.3s ease;
}

@keyframes message-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.message.user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.message-avatar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}

.message.ai .message-avatar {
  background: #4f46e5; /* indigo-600 */
}

.message.user .message-avatar {
  background: rgba(99, 102, 241, 0.2);
  border: 1px solid rgba(99, 102, 241, 0.4);
  color: #ffffff;
}

.message-bubble {
  padding: 0.9rem 1.15rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}

.message.ai .message-bubble {
  background: #0f172a; /* bg-slate-900 border-slate-800 */
  border: 1px solid var(--glass-border);
}

.message.user .message-bubble {
  background: rgba(99, 102, 241, 0.08); /* bg-indigo-600/10 */
  border: 1px solid rgba(99, 102, 241, 0.3); /* border-indigo-500/30 */
}

.message.typing .message-bubble {
  display: flex;
  gap: 4px;
  padding: 1rem 1.25rem;
}

.typing-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
  animation: typing 1.4s infinite;
}

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

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

.chat-input-area {
  padding: 1rem 1.5rem 1.5rem;
  border-top: 1px solid var(--glass-border);
}

.chat-input-wrap {
  display: flex;
  gap: 0.75rem;
  align-items: flex-end;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  transition: var(--transition);
}

.chat-input-wrap:focus-within {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.1);
}

.chat-input-wrap textarea {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0.25rem 0;
  min-height: 24px;
  max-height: 150px;
  resize: none;
}

.chat-input-wrap textarea:focus {
  box-shadow: none;
}

.send-btn {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  border: none;
  background: #4f46e5; /* bg-indigo-600 */
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
}

.send-btn:hover:not(:disabled) {
  background: #6366f1; /* bg-indigo-500 */
  box-shadow: none;
}

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

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 998;
}

.mobile-sidebar-toggle {
  display: none;
  padding: 0.5rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
}

/* ─── Prompt Engine ─── */
.prompt-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem;
}

.prompt-panel {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 1.75rem;
  backdrop-filter: blur(12px);
}

.prompt-panel h3 {
  margin-bottom: 1.25rem;
  font-size: 1.1rem;
}

.prompt-output {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.8rem;
  line-height: 1.7;
  white-space: pre-wrap;
  color: var(--text-muted);
  max-height: 70vh;
  overflow-y: auto;
}

.prompt-section-title {
  color: #818cf8; /* light indigo */
  font-weight: 500;
  margin-top: 1rem;
  margin-bottom: 0.35rem;
}

.prompt-section-title:first-child {
  margin-top: 0;
}

.copy-btn {
  margin-top: 1rem;
}

/* ─── Footer ─── */
@keyframes slideUpIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.footer {
  margin-top: 4rem;
  padding: 3rem 2rem 2rem;
  border-top: 1px solid var(--glass-border);
  background: rgba(10, 15, 30, 0.6);
  animation: slideUpIn 1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 2rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 0.75rem;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.5rem;
}

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

.footer-col a:hover {
  color: #818cf8; /* light indigo hover */
}

.footer-bottom {
  max-width: 1280px;
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--glass-border);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ─── Services / About extras ─── */
.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.feature-list li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
}

.feature-list .num {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #4f46e5; /* bg-indigo-600 */
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.85rem;
  color: #ffffff;
  flex-shrink: 0;
}

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

.team-card {
  text-align: center;
  padding: 2rem 1.5rem;
}

.team-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  font-weight: 600;
  color: #818cf8;
}

/* ─── Contact ─── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
}

.contact-item .icon {
  font-size: 1.5rem;
}

/* ─── Utilities ─── */
.text-gradient {
  background: linear-gradient(135deg, #ffffff, #818cf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.mt-2 { margin-top: 2rem; }

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  .prompt-layout {
    grid-template-columns: 1fr;
  }

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

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

  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(3, 7, 18, 0.98);
    padding: 1rem;
    border-bottom: 1px solid var(--glass-border);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .chat-sidebar {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    bottom: 0;
    z-index: 999;
    transform: translateX(-100%);
    transition: var(--transition);
  }

  .chat-sidebar.open {
    transform: translateX(0);
  }

  .sidebar-overlay.visible {
    display: block;
  }

  .mobile-sidebar-toggle {
    display: inline-flex;
  }

  .message {
    max-width: 95%;
  }

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

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

  .chat-app {
    height: calc(100dvh - var(--nav-height));
  }
}

/* ─── Auth & Premium ─── */
.nav-auth-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 0.5rem;
}

.nav-badge {
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  background: var(--glass);
  color: var(--text-muted);
}

.nav-badge.premium {
  color: #818cf8;
  border: 1px solid rgba(99, 102, 241, 0.4);
}

.auth-page {
  min-height: calc(100vh - var(--nav-height) - 120px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 2rem;
  backdrop-filter: blur(12px);
}

.auth-card h1 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.auth-sub {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.auth-error {
  color: var(--danger);
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.auth-success {
  color: var(--success);
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.auth-footer-link {
  text-align: center;
  margin-top: 1.25rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.auth-footer-link a {
  color: #818cf8;
}

.account-status {
  font-size: 1.1rem;
  color: var(--text-muted);
}

.account-status.premium {
  color: var(--success);
}

.pricing-card {
  max-width: 420px;
  margin: 0 auto;
  text-align: center;
}

.pricing-features {
  list-style: none;
  text-align: left;
  margin: 0 auto;
  max-width: 280px;
}

.pricing-features li {
  padding: 0.4rem 0;
  color: var(--text-muted);
}

.premium-gate {
  padding: 1rem 2rem;
}

.premium-gate-inner {
  max-width: 640px;
  margin: 0 auto;
  padding: 1.5rem;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.35);
  border-radius: var(--radius);
  text-align: center;
}

.premium-gate-inner h3 {
  margin-bottom: 0.5rem;
}

.premium-gate-inner p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

#premium-gate-container:empty {
  display: none;
}

/* Language switcher dropdown styles */
.lang-switcher-dropdown {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--glass-border);
  color: #ffffff;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  cursor: pointer;
  outline: none;
  font-family: inherit;
  transition: var(--transition);
}

.lang-switcher-dropdown:hover, .lang-switcher-dropdown:focus {
  border-color: var(--neon-blue);
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.2);
}

.lang-switcher-dropdown option {
  background: var(--bg-surface);
  color: #ffffff;
}

/* Dropdown Navigation Styles */
.nav-dropdown-wrapper {
  position: relative;
}

.nav-dropdown {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: calc(100% + 5px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(15px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0;
  min-width: 180px;
  list-style: none;
  z-index: 1001;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
}

.nav-dropdown-wrapper:hover .nav-dropdown,
.nav-dropdown-wrapper:focus-within .nav-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown a {
  display: block !important;
  padding: 0.6rem 1.25rem !important;
  color: var(--text-muted) !important;
  font-size: 0.85rem !important;
  transition: var(--transition) !important;
  border-bottom: none !important;
  text-align: left;
}

.nav-dropdown a:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.05) !important;
}

.nav-dropdown a.active {
  color: var(--neon-cyan) !important;
  font-weight: 600;
}

/* Adjust dropdown list items within a media block for mobile */
@media (max-width: 768px) {
  .nav-dropdown {
    position: static;
    transform: none !important;
    opacity: 1;
    pointer-events: auto;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    margin-left: 1rem;
    display: flex;
  }
  
  .nav-dropdown-wrapper:hover .nav-dropdown {
    transform: none;
  }
  
  .nav-dropdown a {
    padding: 0.4rem 0 !important;
    font-size: 0.825rem !important;
  }
}

