/* Noopenai - Custom Light / White Design System (Modern Developer Aesthetic) */
:root {
  --bg-dark: #f8fafc;
  --bg-page: #f8fafc;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.9);
  --border-subtle: #e2e8f0;
  --border-medium: #cbd5e1;
  --border-focus: #2563eb;
  --text-main: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --accent-primary: #2563eb;
  --accent-cyan: #0891b2;
  --accent-purple: #7c3aed;
  --accent-emerald: #059669;
  --accent-amber: #d97706;
  --accent-rose: #e11d48;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --shadow-card: 0 1px 3px 0 rgba(0, 0, 0, 0.04), 0 1px 2px -1px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 12px 28px -6px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  color-scheme: light;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-page);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.5;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

/* Background Grid & Ambient Glows (Light Mode) */
.ambient-bg {
  position: fixed;
  inset: 0;
  background-image: 
    radial-gradient(rgba(15, 23, 42, 0.045) 1px, transparent 1px),
    radial-gradient(circle at 50% 0%, rgba(37, 99, 235, 0.06) 0%, transparent 60%),
    radial-gradient(circle at 85% 30%, rgba(124, 58, 237, 0.05) 0%, transparent 45%),
    radial-gradient(circle at 15% 60%, rgba(8, 145, 178, 0.05) 0%, transparent 45%);
  background-size: 28px 28px, 100% 100%, 100% 100%, 100% 100%;
  pointer-events: none;
  z-index: 0;
}

.content-wrapper {
  position: relative;
  z-index: 1;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Links and Buttons Base */
a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
}

/* Navigation Bar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.03);
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 32px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
  color: #0f172a;
}

.brand-icon {
  width: 32px;
  height: 32px;
  color: #0f172a;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.3s ease;
  animation: logoPulse 4s ease-in-out infinite alternate;
}

@keyframes logoPulse {
  0% { filter: drop-shadow(0 0 2px rgba(37, 99, 235, 0.3)); transform: rotate(0deg); }
  50% { filter: drop-shadow(0 0 8px rgba(37, 99, 235, 0.5)) drop-shadow(0 0 14px rgba(124, 58, 237, 0.3)); }
  100% { filter: drop-shadow(0 0 4px rgba(8, 145, 178, 0.4)); transform: rotate(1.5deg); }
}

.brand-logo:hover .brand-icon {
  transform: scale(1.15) rotate(4deg);
  filter: drop-shadow(0 0 12px rgba(37, 99, 235, 0.6));
}

.badge-tag-cn {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 3px 9px;
  border-radius: 9999px;
  background: rgba(37, 99, 235, 0.08);
  color: #2563eb;
  border: 1px solid rgba(37, 99, 235, 0.2);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}

.nav-item {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-item:hover, .nav-item.active {
  color: #0f172a;
  background: rgba(15, 23, 42, 0.05);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Quick Search Trigger */
.search-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f1f5f9;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 6px 14px;
  color: var(--text-muted);
  font-size: 0.825rem;
  transition: all 0.2s ease;
  cursor: pointer;
}

.search-trigger:hover {
  background: #e2e8f0;
  border-color: var(--border-medium);
  color: var(--text-secondary);
}

.kbd-shortcut {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 0.725rem;
  font-family: var(--font-mono);
  color: var(--text-secondary);
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

/* Main Login Button - High Contrast Dark against White */
.btn-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #0f172a;
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: var(--radius-md);
  box-shadow: 0 2px 4px rgba(15, 23, 42, 0.15), 0 0 12px -2px rgba(15, 23, 42, 0.25);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  animation: loginBtnBreath 3s infinite alternate;
}

@keyframes loginBtnBreath {
  0% { box-shadow: 0 2px 4px rgba(15, 23, 42, 0.12), 0 0 8px rgba(37, 99, 235, 0.15); }
  100% { box-shadow: 0 4px 16px rgba(15, 23, 42, 0.25), 0 0 16px rgba(37, 99, 235, 0.3); }
}

.btn-login:hover {
  background: #1e293b;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px -2px rgba(15, 23, 42, 0.3);
}

.btn-login:active {
  transform: translateY(0);
}

/* ========================================================== */
/* DYNAMIC ICON ANIMATIONS                                    */
/* ========================================================== */
.anim-icon-pulse {
  position: relative;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  animation: iconFloat 3.5s ease-in-out infinite;
}

@keyframes iconFloat {
  0%, 100% { transform: translateY(0); box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.15); }
  50% { transform: translateY(-3px); box-shadow: 0 4px 12px -2px rgba(37, 99, 235, 0.25); }
}

.featured-card:hover .anim-icon-pulse,
tr:hover .anim-icon-pulse {
  transform: scale(1.12) rotate(-3deg);
  animation: none;
  box-shadow: 0 0 14px currentColor;
}

.anim-zap {
  animation: zapSpark 2.4s ease-in-out infinite;
  transform-origin: center;
}

@keyframes zapSpark {
  0%, 80%, 100% { transform: scale(1); filter: drop-shadow(0 0 1px #0284c7); }
  85% { transform: scale(1.35) rotate(-10deg); filter: drop-shadow(0 0 6px #0284c7); }
  90% { transform: scale(0.9) rotate(8deg); }
  95% { transform: scale(1.2) rotate(-4deg); filter: drop-shadow(0 0 8px #0891b2); }
}

.anim-star {
  display: inline-block;
  animation: starTwinkle 3s ease-in-out infinite;
  transform-origin: center;
}

@keyframes starTwinkle {
  0%, 85%, 100% { transform: scale(1) rotate(0deg); opacity: 0.9; }
  90% { transform: scale(1.4) rotate(18deg); opacity: 1; filter: drop-shadow(0 0 6px #d97706); }
  95% { transform: scale(1.1) rotate(-8deg); }
}

.anim-arrow {
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-card-action:hover .anim-arrow,
.btn-submit-form:hover .anim-arrow,
.btn-login:hover .anim-arrow {
  transform: translateX(4px);
}

.hero-pill-sparkle {
  display: inline-block;
  animation: sparkleRotate 3s ease-in-out infinite;
}

@keyframes sparkleRotate {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.25); filter: drop-shadow(0 0 6px #2563eb); }
  100% { transform: rotate(360deg) scale(1); }
}

/* Logged-in User Profile Dropdown Pill */
.user-menu-wrapper {
  position: relative;
}

.user-profile-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  border: 1px solid var(--border-medium);
  padding: 4px 12px 4px 6px;
  border-radius: 9999px;
  color: var(--text-main);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  transition: all 0.2s ease;
}

.user-profile-btn:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}

.user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #ffffff;
}

.user-tier-badge {
  font-size: 0.72rem;
  color: #0284c7;
  background: rgba(2, 132, 199, 0.1);
  padding: 2px 8px;
  border-radius: 9999px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 270px;
  background: #ffffff;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(0,0,0,0.02);
  padding: 8px;
  z-index: 100;
  display: none;
  animation: dropdownFadeIn 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.user-dropdown.show {
  display: block;
}

@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.dropdown-header {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 6px;
}

.dropdown-user-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-main);
}

.dropdown-user-email {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-align: left;
  transition: all 0.15s ease;
  cursor: pointer;
}

.dropdown-item:hover {
  background: #f1f5f9;
  color: var(--text-main);
}

.dropdown-item.danger:hover {
  background: #fee2e2;
  color: #dc2626;
}

/* Main Container */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Hero Section */
.hero-section {
  padding: 60px 0 36px;
  text-align: center;
  position: relative;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  border-radius: 9999px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 8px -2px rgba(15, 23, 42, 0.06);
  font-size: 0.825rem;
  color: #2563eb;
  font-weight: 500;
  margin-bottom: 24px;
  animation: pulseGlow 3s infinite alternate;
}

@keyframes pulseGlow {
  0% { box-shadow: 0 2px 8px -2px rgba(37, 99, 235, 0.1); }
  100% { box-shadow: 0 4px 18px rgba(37, 99, 235, 0.22); }
}

.hero-title {
  font-size: 3.4rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.15;
  margin-bottom: 16px;
  color: #0f172a;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, #1d4ed8 0%, #7c3aed 50%, #db2777 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 820px;
  margin: 0 auto 36px;
  font-weight: 400;
  line-height: 1.6;
}

/* Stats Metric Strip */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 980px;
  margin: 0 auto 40px;
}

.stat-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  text-align: left;
  box-shadow: var(--shadow-card);
  transition: all 0.2s ease;
}

.stat-card:hover {
  border-color: #93c5fd;
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.stat-val {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 6px;
}

.stat-val .stat-accent {
  color: #2563eb;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 4px;
}

/* Section Common Header */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 20px;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* Featured Models Cards Grid */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 48px;
}

.featured-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.featured-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--card-accent, #2563eb), transparent);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.featured-card:hover {
  transform: translateY(-4px);
  border-color: #cbd5e1;
  box-shadow: var(--shadow-hover);
}

.featured-card:hover::before {
  opacity: 1;
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 14px;
}

.provider-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.provider-icon {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
}

.provider-name {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.model-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.01em;
}

.model-badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 9999px;
  background: #f1f5f9;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.card-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 18px;
  min-height: 42px;
}

.card-meta-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 12px;
  background: #f8fafc;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  border: 1px solid #e2e8f0;
}

.meta-item {
  display: flex;
  flex-direction: column;
}

.meta-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.meta-value {
  font-size: 0.85rem;
  font-weight: 700;
  color: #0f172a;
  font-family: var(--font-mono);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.meta-value.highlight {
  color: #2563eb;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
}

.btn-card-action {
  font-size: 0.8rem;
  font-weight: 600;
  color: #2563eb;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
}

.btn-card-action:hover {
  color: #1d4ed8;
  transform: translateX(2px);
}

.btn-card-copy {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  transition: all 0.15s ease;
}

.btn-card-copy:hover {
  background: #e2e8f0;
  color: #0f172a;
}

/* Model Explorer Table Section */
section {
  scroll-margin-top: 80px;
}

.explorer-section {
  margin-bottom: 60px;
}

.explorer-controls {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 18px;
}

.search-and-filters {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.table-search-box {
  position: relative;
  flex: 1;
  max-width: 440px;
}

.table-search-input {
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 10px 14px 10px 38px;
  font-size: 0.875rem;
  color: #0f172a;
  outline: none;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
  transition: all 0.2s ease;
}

.table-search-input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
  background: #ffffff;
}

.table-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.category-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-chip {
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
  transition: all 0.15s ease;
  cursor: pointer;
}

.filter-chip:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.filter-chip.active {
  background: #0f172a;
  border-color: #0f172a;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.2);
}

/* Table Style */
.table-wrapper {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.models-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.models-table th {
  padding: 14px 18px;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: #f8fafc;
  border-bottom: 1px solid var(--border-subtle);
  cursor: pointer;
  user-select: none;
  transition: color 0.15s ease;
  white-space: nowrap;
}

.models-table th:hover {
  color: #0f172a;
}

.models-table td {
  padding: 14px 18px;
  font-size: 0.875rem;
  border-bottom: 1px solid #f1f5f9;
  transition: background 0.15s ease;
}

.models-table tr:hover td {
  background: #f8fafc;
}

.model-name-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.provider-dot {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.78rem;
  flex-shrink: 0;
}

.model-cell-title {
  font-weight: 600;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 6px;
}

.model-cell-provider {
  font-size: 0.725rem;
  color: var(--text-muted);
}

.model-tag-pill {
  font-size: 0.7rem;
  padding: 2px 7px;
  border-radius: 4px;
  background: #f1f5f9;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-weight: 500;
}

.badge-reasoning {
  background: rgba(124, 58, 237, 0.08);
  color: #7c3aed;
  border: 1px solid rgba(124, 58, 237, 0.2);
}

.badge-code {
  background: rgba(37, 99, 235, 0.08);
  color: #2563eb;
  border: 1px solid rgba(37, 99, 235, 0.2);
}

.badge-vision {
  background: rgba(217, 119, 6, 0.08);
  color: #d97706;
  border: 1px solid rgba(217, 119, 6, 0.2);
}

.cell-mono {
  font-family: var(--font-mono);
  font-size: 0.825rem;
  white-space: nowrap;
}

.cell-param {
  color: #1e293b;
  font-weight: 600;
  font-size: 0.825rem;
}

.speed-metric {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #0284c7;
  font-family: var(--font-mono);
  font-weight: 600;
  white-space: nowrap;
}

.score-badge {
  font-weight: 600;
  color: #334155;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 4px;
}

.score-badge .score-star {
  color: #d97706;
}

.status-badge {
  font-size: 0.72rem;
  padding: 3px 9px;
  border-radius: 9999px;
  font-weight: 600;
  display: inline-block;
  white-space: nowrap;
}

.status-open {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
}

.status-cloud {
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
}

.action-buttons {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-table-action {
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: #f1f5f9;
  border: 1px solid var(--border-subtle);
  color: #334155;
  font-size: 0.75rem;
  font-weight: 500;
  transition: all 0.15s ease;
}

.btn-table-action:hover {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
}

/* Developer API Code Sandbox (High-Contrast Sleek Dark Box on White) */
.code-section {
  margin-bottom: 64px;
}

.code-box-container {
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 16px 36px -10px rgba(15, 23, 42, 0.2);
}

.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: #1e293b;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.code-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
}

.code-tab {
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 500;
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.15s ease;
}

.code-tab.active {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.code-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-copy-code {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  color: #e2e8f0;
  font-size: 0.8rem;
  transition: all 0.15s ease;
}

.btn-copy-code:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.code-body {
  padding: 20px 24px;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.6;
  color: #e2e8f0;
  overflow-x: auto;
}

.code-body pre {
  margin: 0;
}

/* Syntax Highlighting */
.syn-keyword { color: #f472b6; }
.syn-string { color: #34d399; }
.syn-var { color: #60a5fa; }
.syn-comment { color: #94a3b8; font-style: italic; }
.syn-num { color: #fbbf24; }

/* Features Section */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 64px;
}

.feature-box {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-card);
  transition: all 0.25s ease;
}

.feature-box:hover {
  border-color: #cbd5e1;
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.feature-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2563eb;
  margin-bottom: 18px;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.feature-box:hover .feature-icon-wrapper {
  transform: scale(1.15) rotate(6deg);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
}

.feature-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #0f172a;
}

.feature-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 48px 0 32px;
  background: #ffffff;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
}

.footer-link {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.footer-link:hover {
  color: #0f172a;
}

/* ========================================================== */
/* LOGIN / REGISTER MODAL SYSTEM (LIGHT THEME)               */
/* ========================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
  padding: 20px;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  width: 100%;
  max-width: 460px;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.25), 0 0 20px rgba(37, 99, 235, 0.1);
  overflow: hidden;
  position: relative;
  transform: translateY(12px) scale(0.97);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.open .modal-card {
  transform: translateY(0) scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f1f5f9;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  z-index: 10;
}

.modal-close-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
  transform: scale(1.05);
}

.modal-top {
  padding: 28px 28px 0;
  text-align: center;
}

.modal-logo-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 12px;
  color: #0f172a;
}

.modal-title {
  font-size: 1.45rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.modal-subtitle {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* Modal Switch Tabs */
.modal-tabs {
  display: flex;
  margin: 22px 28px 0;
  padding: 4px;
  background: #f1f5f9;
  border-radius: var(--radius-md);
  border: 1px solid #e2e8f0;
}

.modal-tab-btn {
  flex: 1;
  padding: 8px 0;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: all 0.18s ease;
  cursor: pointer;
}

.modal-tab-btn.active {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* Modal Form Body */
.modal-form {
  padding: 24px 28px 28px;
}

.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.form-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.form-input {
  width: 100%;
  background: #f8fafc;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 10px 14px 10px 38px;
  font-size: 0.875rem;
  color: #0f172a;
  outline: none;
  transition: all 0.2s ease;
}

.form-input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
  background: #ffffff;
}

.input-icon-left {
  position: absolute;
  left: 12px;
  color: var(--text-muted);
  pointer-events: none;
}

.input-icon-right {
  position: absolute;
  right: 12px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 2px;
}
.input-icon-right:hover {
  color: #0f172a;
}

/* Password Strength Meter */
.pwd-strength-container {
  margin-top: 6px;
  display: none;
}

.pwd-strength-container.active {
  display: block;
}

.pwd-meter-bars {
  display: flex;
  gap: 4px;
  height: 4px;
  margin-bottom: 4px;
}

.pwd-bar {
  flex: 1;
  background: #e2e8f0;
  border-radius: 2px;
  transition: background 0.2s ease;
}

.pwd-strength-text {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* Form Options */
.form-options-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  user-select: none;
}

.checkbox-input {
  accent-color: #2563eb;
  width: 14px;
  height: 14px;
  cursor: pointer;
}

.forgot-link {
  color: #2563eb;
  transition: color 0.15s ease;
}
.forgot-link:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

/* Submit Button */
.btn-submit-form {
  width: 100%;
  padding: 11px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
}

.btn-submit-form:hover {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
  transform: translateY(-1px);
}

.btn-submit-form:active {
  transform: translateY(0);
}

/* Social & Demo Login */
.modal-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 16px;
  color: var(--text-muted);
  font-size: 0.75rem;
}

.modal-divider::before, .modal-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e2e8f0;
}

.social-login-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.btn-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px;
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-size: 0.78rem;
  color: var(--text-secondary);
  transition: all 0.15s ease;
  cursor: pointer;
}

.btn-social:hover {
  background: #f1f5f9;
  border-color: var(--border-medium);
  color: #0f172a;
}

.btn-demo-quick {
  width: 100%;
  padding: 8px;
  border-radius: var(--radius-md);
  background: rgba(37, 99, 235, 0.06);
  border: 1px dashed rgba(37, 99, 235, 0.35);
  color: #2563eb;
  font-size: 0.8rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.15s ease;
  cursor: pointer;
}

.btn-demo-quick:hover {
  background: rgba(37, 99, 235, 0.12);
  color: #1d4ed8;
}

/* Toast Floating Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12), 0 0 10px rgba(37, 99, 235, 0.1);
  display: flex;
  align-items: center;
  gap: 12px;
  color: #0f172a;
  font-size: 0.85rem;
  min-width: 280px;
  animation: toastSlideIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  transition: all 0.2s ease;
}

@keyframes toastSlideIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.toast.toast-success {
  border-left: 4px solid #059669;
}

.toast.toast-info {
  border-left: 4px solid #2563eb;
}

.toast.toast-error {
  border-left: 4px solid #dc2626;
}

/* API Key Manager Modal */
.api-key-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: 0.825rem;
  color: #059669;
  font-weight: 600;
  margin-top: 10px;
}

/* Responsive tweaks */
@media (max-width: 1024px) {
  .hero-title { font-size: 2.5rem; }
  .featured-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hero-title { font-size: 2rem; }
  .featured-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .stats-strip { grid-template-columns: 1fr; }
  .search-and-filters { flex-direction: column; align-items: stretch; }
  .nav-links { display: none; }
  .table-wrapper { overflow-x: auto; }
}
