/* ==========================================================================
   PromptKitt Pro - Design System & Modern Stylesheet
   Themes: Obsidian (Default), Cyberpunk Neon, Aurora Glow, Light Quartz
   ========================================================================== */

:root {
  /* Obsidian Dark (Default) */
  --bg-primary: #0a0b10;
  --bg-secondary: #12141e;
  --bg-tertiary: #1a1d2d;
  --bg-card: rgba(22, 25, 39, 0.7);
  --bg-card-hover: rgba(30, 34, 53, 0.85);
  --bg-glass: rgba(18, 20, 30, 0.8);
  --bg-input: #151824;
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(99, 102, 241, 0.3);
  --border-active: #6366f1;
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-inverse: #0f172a;
  
  --accent-primary: #6366f1;
  --accent-primary-hover: #4f46e5;
  --accent-primary-glow: rgba(99, 102, 241, 0.35);
  
  --accent-secondary: #ec4899;
  --accent-secondary-hover: #db2777;
  --accent-cyan: #06b6d4;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;
  --accent-purple: #a855f7;

  --grad-primary: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
  --grad-card: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
  --grad-hero: radial-gradient(circle at top right, rgba(99, 102, 241, 0.18), transparent 50%),
               radial-gradient(circle at bottom left, rgba(236, 72, 153, 0.15), transparent 50%);
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 30px var(--accent-primary-glow);
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Outfit', var(--font-sans);
  --font-mono: 'JetBrains Mono', monospace;
}

/* Theme: Cyberpunk Neon */
[data-theme="cyberpunk"] {
  --bg-primary: #05050d;
  --bg-secondary: #0c0d1c;
  --bg-tertiary: #131429;
  --bg-card: rgba(15, 17, 36, 0.75);
  --bg-card-hover: rgba(22, 25, 52, 0.9);
  --bg-input: #0e1022;
  --border-subtle: rgba(0, 240, 255, 0.15);
  --border-glow: rgba(255, 0, 128, 0.4);
  --border-active: #00f0ff;
  --text-primary: #ffffff;
  --text-secondary: #a0a8cf;
  --accent-primary: #00f0ff;
  --accent-primary-hover: #00c8d6;
  --accent-primary-glow: rgba(0, 240, 255, 0.4);
  --accent-secondary: #ff007f;
  --grad-primary: linear-gradient(135deg, #00f0ff 0%, #b000ff 50%, #ff007f 100%);
  --shadow-glow: 0 0 35px rgba(0, 240, 255, 0.3);
}

/* Theme: Aurora Glow */
[data-theme="aurora"] {
  --bg-primary: #061118;
  --bg-secondary: #0b1e27;
  --bg-tertiary: #102a36;
  --bg-card: rgba(14, 34, 44, 0.75);
  --bg-card-hover: rgba(20, 48, 62, 0.9);
  --bg-input: #0a1b23;
  --border-subtle: rgba(16, 185, 129, 0.15);
  --border-glow: rgba(6, 182, 212, 0.4);
  --border-active: #10b981;
  --text-primary: #f0fdf4;
  --text-secondary: #94d3c3;
  --accent-primary: #10b981;
  --accent-primary-hover: #059669;
  --accent-primary-glow: rgba(16, 185, 129, 0.4);
  --accent-secondary: #06b6d4;
  --grad-primary: linear-gradient(135deg, #10b981 0%, #06b6d4 50%, #3b82f6 100%);
  --shadow-glow: 0 0 35px rgba(16, 185, 129, 0.35);
}

/* Theme: Light Quartz */
[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f1f5f9;
  --bg-card: rgba(255, 255, 255, 0.9);
  --bg-card-hover: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.85);
  --bg-input: #f8fafc;
  --border-subtle: rgba(0, 0, 0, 0.08);
  --border-glow: rgba(99, 102, 241, 0.2);
  --border-active: #6366f1;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --text-inverse: #ffffff;
  --accent-primary: #4f46e5;
  --accent-primary-hover: #4338ca;
  --accent-primary-glow: rgba(79, 70, 229, 0.2);
  --grad-card: linear-gradient(180deg, rgba(255, 255, 255, 0.8) 0%, rgba(241, 245, 249, 0.8) 100%);
  --grad-hero: radial-gradient(circle at top right, rgba(99, 102, 241, 0.1), transparent 50%),
               radial-gradient(circle at bottom left, rgba(236, 72, 153, 0.08), transparent 50%);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.12);
}

/* ==========================================================================
   Base & Reset
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--grad-hero);
  pointer-events: none;
  z-index: 0;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  outline: none;
  border: none;
}

button {
  cursor: pointer;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Top Role Switcher & Dev Tools Bar */
.dev-toolbar {
  background: linear-gradient(90deg, #1e1b4b, #312e81, #1e1b4b);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: #c7d2fe;
  position: relative;
  z-index: 100;
}

.dev-toolbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dev-badge {
  background: #4f46e5;
  color: #fff;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.role-switcher {
  display: flex;
  background: rgba(0, 0, 0, 0.3);
  padding: 2px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.role-btn {
  background: transparent;
  color: #c7d2fe;
  padding: 3px 12px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.role-btn.active {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4);
}

.dev-toolbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.theme-pill-select {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  cursor: pointer;
}

/* Header & Navigation (Clean 2-Row Architecture) */
.site-header {
  position: sticky;
  top: 0;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 100;
  transition: all var(--transition-normal);
}

/* Row 1: Top Navigation Bar */
.header-top-row {
  border-bottom: 1px solid var(--border-subtle);
  padding: 10px 0;
}

.header-top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.45rem;
  letter-spacing: -0.5px;
  flex-shrink: 0;
}

.logo-icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--grad-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
  box-shadow: var(--shadow-glow);
}

.brand-pro-badge {
  font-size: 0.65rem;
  background: var(--grad-primary);
  color: #fff;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 800;
  margin-left: -4px;
  transform: translateY(-4px);
}

/* Search Bar (Centered in Row 1) */
.nav-search-bar {
  flex: 1;
  max-width: 580px;
  position: relative;
}

.nav-search-input {
  width: 100%;
  height: 42px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 0 20px 0 44px;
  color: var(--text-primary);
  font-size: 0.92rem;
  transition: all var(--transition-fast);
}

.nav-search-input:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px var(--accent-primary-glow);
}

.nav-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1.1rem;
  pointer-events: none;
}

/* Action Icons & Profile (Right of Row 1) */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.icon-btn:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border-color: var(--border-glow);
}

.icon-badge-counter {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--accent-cyan);
  color: #000;
  font-size: 0.72rem;
  font-weight: 800;
  width: 19px;
  height: 19px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-primary);
}

/* Row 2: Navigation Menu Bar */
.header-bottom-row {
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.header-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow-x: auto;
  scrollbar-width: none;
}

.header-bottom-inner::-webkit-scrollbar {
  display: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item a {
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  gap: 7px;
  position: relative;
  padding: 12px 0;
  transition: color var(--transition-fast);
  white-space: nowrap;
}

.nav-item a:hover, .nav-item.active a {
  color: var(--text-primary);
}

.nav-item.active a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--grad-primary);
  border-radius: var(--radius-full);
}

.nav-pill-badge {
  background: rgba(99, 102, 241, 0.15);
  color: var(--accent-primary);
  font-size: 0.7rem;
  padding: 1px 7px;
  border-radius: var(--radius-full);
  font-weight: 700;
  border: 1px solid var(--border-glow);
}
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  width: 19px;
  height: 19px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-primary);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.2px;
  transition: all var(--transition-normal);
  white-space: nowrap;
  border: none;
  outline: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
  pointer-events: none;
}

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

.btn-primary {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18) inset, 0 4px 18px var(--accent-primary-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.3) inset, 0 8px 26px var(--accent-primary-glow);
  color: #fff;
}

.btn-primary:active {
  transform: translateY(0) scale(0.98);
}

.btn-secondary {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--bg-tertiary);
  border-color: var(--border-glow);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  color: #fff;
}

.btn-secondary:active {
  transform: translateY(0) scale(0.98);
}

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

.btn-ghost:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border-color: var(--border-subtle);
}

.btn-sm {
  padding: 6px 16px;
  font-size: 0.82rem;
  gap: 6px;
}

.btn-lg {
  padding: 14px 32px;
  font-size: 1.05rem;
  font-weight: 800;
  gap: 10px;
}

.btn-vip {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 50%, #b45309 100%);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25) inset, 0 4px 20px rgba(245, 158, 11, 0.4);
}

.btn-vip:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.4) inset, 0 8px 28px rgba(245, 158, 11, 0.55);
}

.btn-vip:active {
  transform: translateY(0) scale(0.98);
}

.btn-creator-cta {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #d946ef 100%);
  color: #ffffff !important;
  padding: 12px 26px;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.3px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.45), 0 0 30px rgba(99, 102, 241, 0.3);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  text-decoration: none;
}

.btn-creator-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transition: left 0.6s ease;
  pointer-events: none;
}

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

.btn-creator-cta .btn-icon-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: transform 0.3s ease, background 0.3s ease;
}

.btn-creator-cta:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 32px rgba(217, 70, 239, 0.55), 0 0 45px rgba(99, 102, 241, 0.5);
  border-color: rgba(255, 255, 255, 0.65);
}

.btn-creator-cta:hover .btn-icon-circle {
  transform: rotate(90deg) scale(1.1);
  background: rgba(255, 255, 255, 0.3);
}

.btn-creator-cta:active {
  transform: translateY(-1px) scale(0.99);
}

.user-dropdown-wrap {
  position: relative;
}

.user-avatar-trigger {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  position: relative;
  cursor: pointer;
  border: 2px solid var(--border-glow);
  padding: 2px;
  background: var(--bg-secondary);
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-avatar-trigger:hover {
  transform: scale(1.05);
  border-color: var(--accent-primary);
  box-shadow: 0 0 16px var(--accent-primary-glow);
}

.user-avatar-trigger .user-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-full);
  object-fit: cover;
}

.user-avatar-online-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--accent-emerald);
  border: 2px solid var(--bg-primary);
}

.user-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 250px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg), 0 0 25px var(--accent-primary-glow);
  padding: 8px;
  display: none;
  flex-direction: column;
  gap: 4px;
  z-index: 200;
  backdrop-filter: blur(16px);
}

.user-dropdown-menu.show {
  display: flex;
  animation: fadeInDown 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.user-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.user-dropdown-item:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.user-dropdown-item.danger {
  color: var(--accent-rose);
}

.user-dropdown-item.danger:hover {
  background: rgba(244, 63, 94, 0.15);
}

.auth-tab-btn {
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  padding: 4px 8px;
  cursor: pointer;
  position: relative;
  transition: color var(--transition-fast);
}

.auth-tab-btn.active {
  color: var(--text-primary);
}

.auth-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--grad-primary);
  border-radius: var(--radius-full);
}

/* Account Settings & Profile Layout */
.settings-container {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 30px;
  padding: 30px 0 60px;
}

.settings-tabs-sidebar {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: fit-content;
}

.settings-tab-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: transparent;
  text-align: left;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.settings-tab-btn:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.settings-tab-btn.active {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border-left: 3px solid var(--accent-primary);
}

.settings-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
}

.profile-hero-banner {
  height: 200px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #312e81 0%, #4338ca 50%, #6366f1 100%);
  position: relative;
  margin-bottom: 70px;
  border: 1px solid var(--border-glow);
}

.profile-avatar-overlay {
  position: absolute;
  bottom: -45px;
  left: 40px;
  display: flex;
  align-items: flex-end;
  gap: 20px;
}

.profile-avatar-big {
  width: 110px;
  height: 110px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 4px solid var(--bg-primary);
  box-shadow: var(--shadow-lg);
}

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

/* ==========================================================================
   Hero Section & Filters
   ========================================================================== */
.hero-section {
  padding: 50px 0 30px;
  text-align: center;
  position: relative;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid var(--border-glow);
  color: var(--accent-primary);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 20px;
  box-shadow: 0 0 20px var(--accent-primary-glow);
}

.hero-title {
  font-family: var(--font-display);
  font-size: 3.6rem;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 18px;
  max-width: 950px;
  margin-left: auto;
  margin-right: auto;
}

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

.hero-subtitle {
  color: var(--text-secondary);
  font-size: 1.2rem;
  max-width: 720px;
  margin: 0 auto 32px;
}

.hero-search-wrapper {
  max-width: 760px;
  margin: 0 auto 36px;
  position: relative;
}

.hero-search-box {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 8px 10px 8px 24px;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-normal);
}

.hero-search-box:focus-within {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 4px var(--accent-primary-glow), var(--shadow-lg);
}

.hero-search-input {
  flex: 1;
  background: transparent;
  color: var(--text-primary);
  font-size: 1.05rem;
  padding: 8px 0;
}

.hero-model-select {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 8px 16px;
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 600;
  margin-right: 10px;
  cursor: pointer;
}

.hero-search-btn {
  background: var(--grad-primary);
  color: #fff;
  border-radius: var(--radius-full);
  padding: 12px 26px;
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 15px var(--accent-primary-glow);
}

.hero-quick-tags {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.quick-tag-pill {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-weight: 600;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.quick-tag-pill:hover {
  border-color: var(--accent-primary);
  color: var(--text-primary);
  background: var(--bg-tertiary);
}

.model-pills-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow-x: auto;
  padding: 16px 4px 24px;
  scrollbar-width: none;
}

.model-pills-bar::-webkit-scrollbar {
  display: none;
}

.model-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-normal);
  white-space: nowrap;
}

.model-pill:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
  border-color: var(--border-glow);
  transform: translateY(-2px);
}

.model-pill.active {
  background: var(--bg-tertiary);
  color: #fff;
  border-color: var(--accent-primary);
  box-shadow: 0 0 20px var(--accent-primary-glow);
}

/* Sections & Grids */
.section {
  padding: 46px 0;
  position: relative;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 20px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-top: 4px;
}

.prompts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
}

.prompt-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
  position: relative;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.prompt-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-md), 0 0 20px var(--accent-primary-glow);
}

.prompt-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--bg-secondary);
  overflow: hidden;
}

.prompt-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.prompt-card:hover .prompt-card-img {
  transform: scale(1.05);
}

.prompt-model-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(10, 11, 16, 0.85);
  backdrop-filter: blur(8px);
  padding: 3px 8px;
  border-radius: var(--radius-full);
  font-size: 0.68rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.prompt-quality-score-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(16, 185, 129, 0.9);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 3px;
}

.prompt-card-fav-btn {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background: rgba(10, 11, 16, 0.8);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: all var(--transition-fast);
}

.prompt-card-fav-btn:hover {
  color: var(--accent-rose);
  transform: scale(1.1);
}

.prompt-card-fav-btn.active {
  background: var(--accent-rose);
  color: #fff;
  border-color: var(--accent-rose);
}

.prompt-card-body {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.prompt-card-category {
  font-size: 0.7rem;
  color: var(--accent-primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 4px;
}

.prompt-card-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.prompt-card-desc {
  color: var(--text-secondary);
  font-size: 0.78rem;
  line-height: 1.4;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.prompt-variables-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 10px;
}

.var-tag {
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid var(--border-glow);
  color: #a5b4fc;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 600;
}

.prompt-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
  margin-top: auto;
}

.prompt-creator-meta {
  display: flex;
  align-items: center;
  gap: 6px;
}

.creator-avatar-sm {
  width: 22px;
  height: 22px;
  border-radius: var(--radius-full);
  object-fit: cover;
}

.creator-name-sm {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.verified-check-sm {
  color: var(--accent-cyan);
  font-size: 0.72rem;
}

.prompt-price-tag {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-primary);
}

.prompt-price-tag.free {
  color: var(--accent-emerald);
}

/* ==========================================================================
   PROMPT DETAIL PAGE - HIGH-CONVERTING 2-COLUMN LAYOUT
   ========================================================================== */
.prompt-detail-container {
  padding: 20px 0 60px;
}

.prompt-detail-header-block {
  margin-bottom: 24px;
}

.prompt-detail-badges-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.prompt-detail-h1 {
  font-family: var(--font-display);
  font-size: 2.3rem;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-bottom: 14px;
}

.prompt-detail-2col-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 32px;
  align-items: start;
}

/* Left Column Area */
.detail-main-content {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.detail-showcase-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.detail-media-container {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #000;
  position: relative;
  overflow: hidden;
}

.detail-media-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-thumbnails-strip {
  display: flex;
  gap: 12px;
  padding: 16px;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  overflow-x: auto;
}

.detail-thumb-item {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.detail-thumb-item.active, .detail-thumb-item:hover {
  border-color: var(--accent-primary);
  box-shadow: 0 0 10px var(--accent-primary-glow);
}

.detail-content-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-md);
}

.detail-card-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Right Column (Sticky Sidebar) */
.detail-sticky-sidebar {
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.purchase-box-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-lg), 0 0 25px rgba(99, 102, 241, 0.15);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.purchase-price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.price-huge {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--text-primary);
}

.price-huge.free {
  color: var(--accent-emerald);
}

.sidebar-seller-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.sidebar-specs-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  font-size: 0.86rem;
}

.spec-item-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-subtle);
}

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

/* Variables Sandbox in Detail */
.prompt-variables-box {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
}

.var-input-group {
  display: grid;
  grid-template-columns: 140px 1fr;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.var-input-label {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--accent-primary);
  font-weight: 700;
}

.var-input-field {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: var(--text-primary);
  font-size: 0.9rem;
}

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

.prompt-mask-box {
  background: var(--bg-secondary);
  border: 1px dashed var(--border-glow);
  border-radius: var(--radius-md);
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.masked-code {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  color: var(--text-muted);
  filter: blur(5px);
  user-select: none;
  line-height: 1.6;
}

.mask-unlock-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(10, 11, 16, 0.82);
  backdrop-filter: blur(2px);
  gap: 10px;
  text-align: center;
  padding: 20px;
}

.prompt-unlocked-box {
  background: var(--bg-input);
  border: 1px solid var(--accent-emerald);
  border-radius: var(--radius-md);
  padding: 22px;
  font-family: var(--font-mono);
  font-size: 0.92rem;
  color: var(--accent-emerald);
  position: relative;
}

/* ==========================================================================
   Creator Profile & Dashboard Layouts
   ========================================================================== */
.creator-banner {
  height: 180px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4338ca 100%);
  position: relative;
  margin-bottom: 60px;
  border: 1px solid var(--border-glow);
}

.creator-profile-header {
  position: absolute;
  bottom: -40px;
  left: 36px;
  display: flex;
  align-items: flex-end;
  gap: 20px;
}

.creator-avatar-lg {
  width: 100px;
  height: 100px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 4px solid var(--bg-primary);
  box-shadow: var(--shadow-lg);
}

.dashboard-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 30px;
  padding: 30px 0 60px;
}

.dashboard-sidebar {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  height: fit-content;
}

.dash-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dash-nav-item a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 0.92rem;
  transition: all var(--transition-fast);
}

.dash-nav-item.active a, .dash-nav-item a:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.dash-nav-item.active a {
  border-left: 3px solid var(--accent-primary);
}

.dashboard-content {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.stats-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

.stat-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
}

.stat-delta {
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
}

.stat-delta.positive { color: var(--accent-emerald); }

.data-table-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

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

.data-table th {
  background: var(--bg-secondary);
  padding: 14px 20px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border-subtle);
}

.data-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.9rem;
}

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

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

/* ==========================================================================
   Collections, Bounties, Playground & Forms
   ========================================================================== */
.collections-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.collection-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.collection-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.collection-previews {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.collection-previews img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

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

.bounty-item-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: all var(--transition-normal);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.bounty-item-card:hover {
  border-color: var(--border-glow);
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
}

.bounty-main-info {
  flex: 1;
}

.bounty-status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.bounty-status-badge.open {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
  border: 1px solid var(--accent-emerald);
}

.bounty-status-badge.closed {
  background: rgba(100, 116, 139, 0.2);
  color: var(--text-muted);
}

.bounty-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.bounty-meta {
  display: flex;
  gap: 18px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.bounty-budget-box {
  text-align: right;
}

.bounty-budget-amount {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent-emerald);
}

.playground-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-lg);
}

.playground-editor-pane {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.playground-textarea {
  width: 100%;
  min-height: 200px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.92rem;
  line-height: 1.6;
  resize: vertical;
}

.playground-textarea:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px var(--accent-primary-glow);
}

.playground-preview-pane {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
}

.quality-meter-card {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px;
}

.meter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.meter-score-circle {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--accent-emerald);
}

.progress-bar-wrap {
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 12px;
}

.progress-bar-fill {
  height: 100%;
  background: var(--grad-primary);
  border-radius: var(--radius-full);
  transition: width 0.6s ease;
}

.score-breakdown-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.breakdown-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.breakdown-item.good { color: var(--accent-emerald); }

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}

.form-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
}

.form-input, .form-select, .form-textarea {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  color: var(--text-primary);
  font-size: 0.92rem;
  transition: all var(--transition-fast);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px var(--accent-primary-glow);
}

.form-textarea {
  min-height: 100px;
  font-family: var(--font-mono);
  resize: vertical;
}

/* Modals & Drawers */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
  padding: 20px;
}

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

.modal-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  max-width: 660px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg), 0 0 35px var(--accent-primary-glow);
  transform: scale(0.95) translateY(10px);
  transition: transform var(--transition-normal);
}

.modal-backdrop.open .modal-box {
  transform: scale(1) translateY(0);
}

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

.modal-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
}

.modal-body {
  padding: 26px;
}

.modal-footer-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
}

.modal-footer-actions .btn-cancel {
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  padding: 10px 22px;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  transition: all var(--transition-fast);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.modal-footer-actions .btn-cancel:hover {
  background: rgba(244, 63, 94, 0.12);
  color: var(--accent-rose);
  border-color: rgba(244, 63, 94, 0.3);
}

.modal-footer-actions .btn-submit {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #d946ef 100%);
  color: #ffffff !important;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.3px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.45), 0 0 30px rgba(99, 102, 241, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.modal-footer-actions .btn-submit::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transition: left 0.6s ease;
  pointer-events: none;
}

.modal-footer-actions .btn-submit:hover::before {
  left: 100%;
}

.modal-footer-actions .btn-submit:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 30px rgba(217, 70, 239, 0.55), 0 0 45px rgba(99, 102, 241, 0.5);
  border-color: rgba(255, 255, 255, 0.6);
}

.modal-footer-actions .btn-submit:active {
  transform: translateY(0) scale(0.99);
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.drawer-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.drawer-pane {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 440px;
  max-width: 90vw;
  background: var(--bg-secondary);
  border-left: 1px solid var(--border-subtle);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--transition-smooth);
}

.drawer-pane.open {
  transform: translateX(0);
}

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

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.drawer-footer {
  padding: 20px;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-tertiary);
}

.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 2000;
}

.toast {
  background: var(--bg-secondary);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  color: var(--text-primary);
  font-size: 0.9rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: slideInRight 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.success { border-color: var(--accent-emerald); }
.toast.error { border-color: var(--accent-rose); }

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

.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  padding: 60px 0 30px;
  margin-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 12px;
  max-width: 320px;
}

.footer-col-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.88rem;
}

.footer-links a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Full-Page Prompt Creator Studio Page (#create-prompt)
   ========================================================================== */
.create-prompt-layout {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 32px;
  align-items: start;
  padding-bottom: 80px;
}

.create-studio-header {
  padding: 30px 0 24px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.create-form-section {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-md);
  position: relative;
}

.create-section-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
}

.model-selector-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.model-select-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 10px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.model-select-card:hover {
  border-color: var(--border-glow);
  background: var(--bg-tertiary);
  transform: translateY(-2px);
}

.model-select-card.active {
  background: var(--bg-tertiary);
  border: 2px solid var(--accent-primary);
  box-shadow: 0 0 16px var(--accent-primary-glow);
}

.model-select-icon {
  font-size: 1.8rem;
}

.model-select-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
}

.variables-chip-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  padding: 12px;
  background: var(--bg-primary);
  border-radius: var(--radius-md);
  border: 1px dashed var(--border-subtle);
}

.var-chip {
  background: rgba(99, 102, 241, 0.2);
  color: var(--accent-primary);
  border: 1px solid var(--border-glow);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.live-preview-sticky {
  position: sticky;
  top: 120px;
}

.preview-box-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-lg);
}

/* ==========================================================================
   Super Admin Control Center & Abundant Tools Styling
   ========================================================================== */
.admin-metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.admin-metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast);
}

.admin-metric-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-glow);
}

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

.admin-metric-val {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 900;
  color: var(--text-primary);
}

.admin-metric-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.admin-subtab-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 12px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.admin-subtab-btn {
  padding: 8px 18px;
  border-radius: var(--radius-full);
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-fast);
}

.admin-subtab-btn:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border-color: var(--border-glow);
}

.admin-subtab-btn.active {
  background: var(--grad-primary);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 2px 12px var(--accent-primary-glow);
}

.admin-tool-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-md);
}

.audit-log-terminal {
  background: #090d16;
  border: 1px solid #1e293b;
  border-radius: var(--radius-md);
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: #94a3b8;
  max-height: 400px;
  overflow-y: auto;
  line-height: 1.6;
}

.audit-log-entry {
  display: flex;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.audit-log-time {
  color: #64748b;
  min-width: 140px;
}

.audit-log-event {
  color: #38bdf8;
  font-weight: 700;
  min-width: 130px;
}

.audit-log-detail {
  color: #e2e8f0;
}

.api-health-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.76rem;
  font-weight: 700;
}

.api-health-badge.online {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.wf-node {
  transition: all 0.3s ease;
}
.wf-node.active {
  box-shadow: 0 0 12px var(--accent-primary-glow);
}

@media (max-width: 1024px) {
  .hero-title { font-size: 2.8rem; }
  .prompt-detail-2col-layout { grid-template-columns: 1fr; }
  .detail-sticky-sidebar { position: static; }
  .playground-container { grid-template-columns: 1fr; }
  .dashboard-layout { grid-template-columns: 1fr; }
  .create-prompt-layout { grid-template-columns: 1fr; }
  .live-preview-sticky { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  #wfStepNodes { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links, .nav-search-bar { display: none; }
  .hero-title { font-size: 2.2rem; }
  .hero-subtitle { font-size: 1rem; }
  .hero-search-box { flex-direction: column; border-radius: var(--radius-lg); padding: 14px; gap: 10px; }
  .hero-model-select { width: 100%; margin-right: 0; }
  .hero-search-btn { width: 100%; justify-content: center; }
  .prompts-grid { grid-template-columns: 1fr; }
  .collections-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .dev-toolbar { flex-direction: column; gap: 8px; }
  #wfStepNodes { grid-template-columns: 1fr; }
}

