/* ==========================================================================
   1. CSS VARIABLES & GLOBAL SETTINGS - Aligned with prompt-database theme
   ========================================================================== */
:root {
  --primary-color: #4F46E5;
  --secondary-color: #7C3AED;
  --accent-primary: #A78BFA;
  
  /* Dark theme colors - matching prompt-database */
  --bg-primary: #0D0C1D;
  --bg-secondary: #1A1A2E;
  --surface-glass: rgba(255, 255, 255, 0.05);
  --surface-glass-hover: rgba(255, 255, 255, 0.08);
  
  /* Text colors */
  --text-primary: #FFFFFF;
  --text-secondary: #9CA3AF;
  --text-tertiary: #6B7280;
  --text-headings: #E5E7EB;
  
  /* Borders and dividers */
  --border-glass: rgba(255, 255, 255, 0.1);
  --border-glass-hover: rgba(255, 255, 255, 0.2);
  
  /* Component backgrounds */
  --card-bg: rgba(255, 255, 255, 0.03);
  --card-bg-hover: rgba(255, 255, 255, 0.06);
  --dropdown-bg: #0D0C1D;
  
  /* Additional colors for compatibility */
  --accent-color: #06b6d4;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --danger-color: #ef4444;
  
  /* Transitions */
  --transition-speed: 0.3s;
  --transition-ease: cubic-bezier(0.4, 0, 0.2, 1);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Border radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   2. BASE STYLES
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  max-width: 100%;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  position: relative;
  isolation: isolate;
}

/* Aurora background effect - matching prompt-database */
body::before {
  content: '';
  position: fixed;
  top: -20%;
  left: -20%;
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
  opacity: 0.15;
  filter: blur(100px);
  z-index: -1;
  animation: pulse-glow-1 15s infinite alternate;
  pointer-events: none;
}

body::after {
  content: '';
  position: fixed;
  bottom: -20%;
  right: -20%;
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, var(--accent-primary) 0%, transparent 70%);
  opacity: 0.15;
  filter: blur(100px);
  z-index: -1;
  animation: pulse-glow-2 12s infinite alternate;
  pointer-events: none;
}

@keyframes pulse-glow-1 {
  from { transform: scale(0.8) rotate(0deg); opacity: 0.1; }
  to { transform: scale(1.2) rotate(45deg); opacity: 0.2; }
}

@keyframes pulse-glow-2 {
  from { transform: scale(1.2) rotate(0deg); opacity: 0.2; }
  to { transform: scale(0.8) rotate(-45deg); opacity: 0.1; }
}

a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color var(--transition-speed);
}

a:hover {
  color: var(--accent-primary);
}

/* ==========================================================================
   3. HERO SECTION - Matching prompt-database styling
   ========================================================================== */
.hero-modern {
  text-align: center;
  padding: 4rem 1rem 2rem;
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
}

.hero-background {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: float 20s linear infinite;
}

@keyframes float {
  0% { transform: translate(0, 0); }
  100% { transform: translate(50px, 50px); }
}

.hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
  opacity: 0.1;
  filter: blur(100px);
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--surface-glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-glass);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-xl);
  margin-bottom: 2rem;
  font-size: 0.875rem;
  color: var(--accent-primary);
}

.hero-title-modern {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.1;
}

.gradient-text {
  background: linear-gradient(135deg, #FFFFFF 30%, #A78BFA 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description-modern {
  max-width: 48rem;
  margin: 0 auto 2rem;
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-bottom: 3rem;
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent-primary);
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

.btn-hero-primary,
.btn-hero-secondary {
  padding: 1rem 2rem;
  border-radius: var(--radius-lg);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.btn-hero-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  border: 1px solid transparent;
}

.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(79, 70, 229, 0.4);
  color: white;
}

.btn-hero-secondary {
  background: var(--surface-glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
}

.btn-hero-secondary:hover {
  background: var(--surface-glass-hover);
  border-color: var(--border-glass-hover);
  color: var(--text-primary);
}

/* ==========================================================================
   4. CONTAINER
   ========================================================================== */
.container-modern {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ==========================================================================
   5. SECTIONS
   ========================================================================== */
.bento-section,
.prompts-showcase,
.social-proof,
.cta-section {
  padding: 50px 1rem 0;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 1rem;
  color: var(--text-headings);
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.125rem;
  margin-bottom: 3rem;
}

/* ==========================================================================
   6. BENTO GRID - Matching prompt-database card styling
   ========================================================================== */
.bento-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  grid-auto-flow: dense;
}

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

.bento-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  background: var(--card-bg-hover);
  border-color: var(--border-glass-hover);
}

.bento-large {
  grid-column: span 2;
}

.bento-medium {
  grid-column: span 1;
  grid-row: span 2;
}

.bento-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.bento-icon-wrapper.primary {
  background: rgba(79, 70, 229, 0.1);
  color: var(--primary-color);
}

.bento-icon-wrapper.secondary {
  background: rgba(124, 58, 237, 0.1);
  color: var(--secondary-color);
}

.bento-icon-wrapper.accent {
  background: rgba(167, 139, 250, 0.1);
  color: var(--accent-primary);
}

.bento-icon-wrapper.success {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success-color);
}

.bento-icon-wrapper.warning {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning-color);
}

.bento-icon-wrapper.info {
  background: rgba(79, 70, 229, 0.1);
  color: var(--primary-color);
}

.bento-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-headings);
}

.bento-card p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.bento-link {
  color: var(--accent-primary);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap 0.3s;
}

.bento-link:hover {
  gap: 0.75rem;
  color: var(--accent-primary);
}

.bento-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-xl);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

/* ==========================================================================
   7. PROMPTS SHOWCASE - Fixed to match prompt-database styling
   ========================================================================== */
.prompts-showcase {
  background: var(--bg-secondary);
  padding: 4rem 1rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

.view-all-link {
  color: var(--accent-primary);
  text-decoration: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap 0.3s;
}

.view-all-link:hover {
  gap: 0.75rem;
  color: var(--text-primary);
}

.prompts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.5rem;
  max-width: 1280px;
  margin: 0 auto;
}

.prompt-card-modern {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-glass);
  border-radius: 1rem;
  padding: 1.5rem;
  transition: all var(--transition-speed);
}

.prompt-card-modern:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  background: var(--card-bg-hover);
  border-color: var(--border-glass-hover);
}

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

.model-badge {
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-xl);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.badge-gpt {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success-color);
}

.badge-claude {
  background: rgba(124, 58, 237, 0.1);
  color: var(--secondary-color);
}

.badge-gemini {
  background: rgba(79, 70, 229, 0.1);
  color: var(--primary-color);
}

.badge-default {
  background: var(--surface-glass-hover);
  color: var(--text-secondary);
}

.prompt-likes {
  color: var(--accent-primary);
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.prompt-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-headings);
}

.prompt-description {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.prompt-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.prompt-author {
  color: var(--text-tertiary);
  font-size: 0.875rem;
}

.prompt-view {
  color: var(--accent-primary);
  text-decoration: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  transition: gap 0.3s;
}

.prompt-view:hover {
  gap: 0.5rem;
  color: var(--text-primary);
}

/* ==========================================================================
   8. SOCIAL PROOF
   ========================================================================== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.testimonial-card {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-glass);
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
  transition: all var(--transition-speed);
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  background: var(--card-bg-hover);
}

.stars {
  color: var(--warning-color);
  margin-bottom: 1rem;
}

.testimonial-card p {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.testimonial-author strong {
  color: var(--text-primary);
}

.testimonial-author span {
  color: var(--text-tertiary);
  font-size: 0.875rem;
}

/* ==========================================================================
   9. CTA SECTION
   ========================================================================== */
.cta-section {
  padding: 50px 1rem 10px;
}

.cta-card {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: var(--radius-2xl);
  padding: 4rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: '';
    position: absolute;
    top: -0%;
    right: -0%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 1460%);
    animation: rotate 30s linear infinite;
}

@keyframes rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.cta-card h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
  color: white;
}

.cta-card p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  position: relative;
  z-index: 1;
  color: white;
}

.cta-features {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
  color: white;
}

.cta-features span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  padding: 1rem 2rem;
  border-radius: var(--radius-lg);
  text-decoration: none;
  font-weight: 600;
  backdrop-filter: blur(10px);
  transition: var(--transition);
  position: relative;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-cta:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  color: white;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}
/* ==========================================================================
   4. NAVIGATION & MOBILE MENU
   ========================================================================== */
.nav-container {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--surface-glass);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-glass);
}

.nav-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  height: 4rem;
}

/* Base state - mobile first */
.nav-links {
  display: none;
}

.auth-buttons {
  display: none;
}

/* Navigation Links */
.nav-link {
  padding: 0.5rem 0.75rem;
  color: var(--text-primary);
  text-decoration: none;
  border-radius: 0.375rem;
  transition: background-color var(--transition-speed), color var(--transition-speed);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  position: relative;
  z-index: 1;
}

.nav-link:hover {
  background-color: var(--surface-glass-hover);
  color: var(--text-primary);
}

.nav-link.active {
  background-color: var(--surface-glass-hover);
  border: 1px solid var(--border-glass);
}

/* Desktop Dropdown Styles */
.nav-item.nav-dropdown {
  position: relative;
  display: inline-block;
}

.nav-dropdown-toggle {
  cursor: pointer;
}

.dropdown-arrow {
  margin-left: 0.4em;
  font-size: 0.7em;
  transition: transform var(--transition-speed) ease;
  display: inline-block;
  vertical-align: middle;
}

.nav-dropdown-menu {
  display: block;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1000;
  min-width: 200px;
  padding: 0.5rem 0;
  background: var(--dropdown-bg);
  backdrop-filter: blur(15px);
  border: 1px solid var(--border-glass);
  border-radius: 0.5rem;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(5px);
  pointer-events: none;
  transition: opacity var(--transition-speed) ease,
              visibility var(--transition-speed) ease,
              transform var(--transition-speed) ease;
}

.nav-item.nav-dropdown:hover > .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.nav-item.nav-dropdown:hover > .nav-dropdown-toggle .dropdown-arrow {
  transform: rotate(180deg);
}

.nav-dropdown-item {
  display: block;
  padding: 0.6rem 1.2rem;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.9rem;
  white-space: nowrap;
  background-color: transparent;
  border: 0;
  transition: background-color var(--transition-speed), color var(--transition-speed);
}

.nav-dropdown-item:hover,
.nav-dropdown-item:focus,
.nav-dropdown-item.active {
  background-color: var(--surface-glass-hover);
  color: var(--text-primary);
  text-decoration: none;
}

/* Mobile Menu Button */
.mobile-menu-button {
  display: block;
  background: none;
  border: none;
  color: var(--text-primary);
  padding: 0.5rem;
  cursor: pointer;
  transition: opacity var(--transition-speed);
  z-index: 51;
}

.mobile-menu-button:hover {
  opacity: 0.8;
}

/* Mobile Menu Panel */
.mobile-menu {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  background: var(--bg-primary);
  backdrop-filter: blur(12px);
  padding: 1rem 0;
  overflow-y: auto;
  transform: translateY(-100%);
  transition: transform var(--transition-speed) ease-out;
  z-index: 49;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.mobile-menu.active {
  transform: translateY(0);
  display: block;
}

.mobile-menu .nav-link:not(.sub-link),
.mobile-menu .mobile-submenu-toggle {
  display: block;
  padding: 0.9rem 1.5rem;
  text-align: left;
  border-bottom: 1px solid var(--border-glass);
  text-decoration: none;
  font-size: 1rem;
  width: 100%;
  box-sizing: border-box;
  color: var(--text-primary);
}

.mobile-menu > *:not(.mobile-menu-section):not(.auth-buttons-mobile):last-of-type {
  border-bottom: none;
}

.mobile-menu .mobile-menu-section:last-of-type > .mobile-submenu-toggle {
  border-bottom: none;
}

/* Mobile Submenu Styles */
.mobile-submenu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mobile-submenu-toggle .dropdown-arrow {
  transition: transform var(--transition-speed) ease;
  font-size: 0.9em;
}

.mobile-submenu-toggle[aria-expanded="true"] .dropdown-arrow {
  transform: rotate(180deg);
}

.mobile-submenu {
  background-color: rgba(0, 0, 0, 0.1);
  padding-left: 0;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease-out;
}

.mobile-submenu .sub-link {
  display: block;
  padding: 0.75rem 1.5rem 0.75rem 2.5rem;
  text-align: left;
  font-size: 0.9rem;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  text-decoration: none;
}

.mobile-submenu .sub-link:last-child {
  border-bottom: none;
}

.mobile-submenu .sub-link:hover,
.mobile-submenu .sub-link.active {
  background-color: var(--surface-glass);
  color: var(--text-primary);
}

.mobile-menu .auth-buttons-mobile {
  border-top: 1px solid var(--border-glass);
  padding-top: 1.5rem;
  margin-top: 1rem;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  padding-bottom: 1rem;
}

.auth-buttons-mobile {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 0.75rem;
}

/* Logo Styling */
.nav-logo-link {
  display: inline-flex;
  align-items: center;
  height: 100%;
  padding: 0.25rem 0;
  margin-right: 1rem;
}

.nav-logo-img {
  height: 32px;
  width: auto;
  max-height: calc(100% - 0.5rem);
  transition: height var(--transition-speed) ease;
  display: block;
}

/* ==========================================================================
   12. FOOTER
   ========================================================================== */
.footer {
  background: var(--surface-glass);
  backdrop-filter: blur(10px);
  padding: 4rem 0 0;
  margin-top: 4rem;
  border-top: 1px solid var(--border-glass);
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-section h4 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--text-headings);
}

.footer-description {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-speed);
}

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

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface-glass);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  transition: all var(--transition-speed);
}

.social-link:hover {
  background: var(--surface-glass-hover);
  transform: translateY(-2px);
  color: var(--accent-primary);
  border-color: var(--accent-primary);
}

.footer-bottom {
  border-top: 1px solid var(--border-glass);
  padding: 2rem 0;
  margin-top: 2rem;
}

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

.footer-bottom p {
  margin: 0;
  color: var(--text-secondary);
}

.footer-bottom-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-bottom-links a,
.footer-bottom-links button {
  color: var(--text-secondary);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-size: inherit;
  transition: color var(--transition-speed);
}

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


/* ==========================================================================
   13. RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 640px) {
  .banner-link {
    font-size: 0.75rem;
    padding: 0.5rem;
  }

  .hero-title {
    font-size: 2.25rem;
  }
  
  .hero-description {
    font-size: 1rem;
  }

  .modal-dialog {
    margin: 1rem;
    width: calc(100% - 2rem);
  }
  
  .modal-content {
    border-radius: 1.25rem;
  }
  
  .modal-body {
    padding: 1.5rem;
    font-size: 1.1rem;
  }
  
  .modal-footer {
    flex-direction: column;
    gap: 0.75rem;
  }

  .modal-footer .button {
    width: 100%;
    padding: 0.75rem;
  }
  
  .submit-form {
    padding: 1.5rem;
  }
  
  .submit-button {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .footer-grid {
    gap: 2rem;
  }

  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-bottom-links {
    justify-content: center;
  }

  .footer-container {
    padding: 0 1rem;
  }
}

@media (max-width: 859px) {
  .nav-links,
  .auth-buttons {
    display: none;
  }
  
  .mobile-menu-button {
    display: block;
    margin-left: auto;
  }
  
  .nav-container {
    height: 4rem;
  }
  
  .mobile-menu {
    top: 3.5rem;
    max-height: calc(100vh - 3.5rem);
  }

  .nav-logo-img {
    height: 64px;
  }
  
  .nav-logo-link {
    margin-right: 0.5rem;
  }
}

@media (min-width: 860px) {
  .mobile-menu-button {
    display: none;
  }
  
  .mobile-menu {
    display: none !important;
  }
  
  .nav-links {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-left: 1rem;
    margin-right: auto;
  }
  
  .nav-link {
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
  }
  
  .auth-buttons {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-left: 1rem;
  }
  
  .nav-content {
    height: 4rem;
  }

  .nav-logo-img {
    height: 64px;
  }
  
  .nav-logo-link {
    margin-right: 1rem;
  }
}

@media (min-width: 1024px) {
  .nav-links {
    gap: 1rem;
  }
  
  .nav-link {
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
  }
  
  .auth-buttons {
    gap: 0.75rem;
  }
  
  .button {
    padding: 0.6rem 1.2rem;
    font-size: 0.95rem;
  }
}

@media (min-width: 1280px) {
  .nav-content, .footer-container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
  
  .nav-links {
    gap: 1.5rem;
  }
}
/* ==========================================================================
   3. BANNER COMPONENT
   ========================================================================== */
.banner-container {
  width: 100%;
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
}

.banner-content {
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

.banner-link {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.75rem;
  text-decoration: none;
  color: var(--text-primary);
  background: var(--surface-glass);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-glass);
  text-align: center;
  font-size: 0.875rem;
  transition: opacity 0.3s ease;
}

.banner-link:hover {
  opacity: 0.9;
  color: var(--text-primary);
}
/* ==== Variables Drawer (thin, sticky, scrollable at the bottom) ==== */
.variables-drawer {
  position: sticky;
  bottom: 0;
  z-index: 11;
  max-height: 280px;
  overflow-y: auto;
  background: var(--surface-glass, var(--card-bg));
  border: 1px solid var(--border-glass);
  border-radius: 0.75rem 0.75rem 0 0;
  box-shadow: 0 -12px 30px rgba(0,0,0,0.35);
  backdrop-filter: blur(10px);
  margin-top: 2rem;
  padding-bottom: 1rem;
}

.variables-drawer .variables-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.variables-drawer .variable-input {
  padding: 0.65rem 0.9rem;
  font-size: 0.95rem;
}

.variables-drawer {
  scrollbar-width: thin;
  scrollbar-color: var(--border-glass-hover) transparent;
}
.variables-drawer::-webkit-scrollbar { height: 8px; width: 8px; }
.variables-drawer::-webkit-scrollbar-thumb { background: var(--border-glass-hover); border-radius: 8px; }
.variables-drawer::-webkit-scrollbar-track { background: transparent; }

@media (max-width: 768px) {
  .variables-drawer { max-height: 50vh; }
}

/* Make prompt cards pop a bit more */
.prompts-showcase{ padding-top: 2rem; }
.prompts-showcase .prompt-card-modern{
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
  border: 1px solid rgba(0,0,0,.06);
  transition: transform .2s ease, box-shadow .2s ease;
}
.prompts-showcase .prompt-card-modern:hover{
  transform: translateY(-4px);
  box-shadow: 0 16px 42px rgba(0,0,0,.12);
}
.section-header .view-all-link{ font-weight:600; }

/* --- Hero Stamp --- */
.hero-modern { position: relative; }

.

.stamp-sub{
  font-weight: 600;
  font-size: .8rem;
  opacity: .95;
}

.stamp-sub b{ font-weight: 900; }

.stamp-cta{
  margin-left: .25rem;
  font-weight: 800;
  font-size: .85rem;
  color: #111;
  background: #fff;
  padding: .45rem .7rem;
  border-radius: .6rem;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(0,0,0,.18);
  transform: rotate(3deg);
}

.stamp-cta:hover{ filter: brightness(0.96); }

.stamp-close{
  appearance: none;
  border: none;
  background: rgba(255,255,255,.2);
  color: #fff;
  width: 26px; height: 26px;
  line-height: 24px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  margin-left: .25rem;
  transform: rotate(8deg);
  transition: background .2s ease, transform .2s ease;
}
.stamp-close:hover{ background: rgba(255,255,255,.3); transform: rotate(8deg) scale(1.05); }

/* subtle sparkly shimmer across the stamp */
.hero-stamp::after{
  content:"";
  position:absolute; inset:-2px;
  border-radius: 1rem;
  pointer-events:none;
  background:
    radial-gradient(2px 2px at 20% 25%, rgba(255,255,255,.8), transparent 50%),
    radial-gradient(2px 2px at 60% 55%, rgba(255,255,255,.7), transparent 50%),
    radial-gradient(2px 2px at 80% 30%, rgba(255,255,255,.6), transparent 50%);
  opacity:.55;
  animation: sparkleFloat 6s linear infinite;
}

@keyframes sparkleFloat{
  0%   { transform: translateY(0) translateX(0); opacity:.45; }
  50%  { transform: translateY(-6px) translateX(4px); opacity:.7; }
  100% { transform: translateY(0) translateX(0); opacity:.45; }
}

@keyframes twinkle{
  0%, 100% { filter: drop-shadow(0 2px 6px rgba(0,0,0,.25)); transform: translateY(0);}
  50% { filter: drop-shadow(0 4px 10px rgba(0,0,0,.35)); transform: translateY(-1px);}
}

/* Responsive tweaks: move stamp closer inside on small screens */
@media (max-width: 992px){
  .hero-stamp{ right: 1%; top: -6px; transform: rotate(-6deg); }
}
@media (max-width: 576px){
  .hero-stamp{
    position: relative; 
    top: 0; right: auto;
    margin: 1rem auto 25px;
    transform: rotate(-4deg);
  }
}


/* Update .hero-stamp */
.hero-stamp {
  position: relative;      /* remove absolute positioning */
  top: auto;
  right: auto;
  margin: 1rem auto 25px;     /* spacing below title */
  transform: rotate(-2deg); /* keep playful tilt */
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  max-width: 100%;
  padding: .85rem 1.1rem;
  border-radius: 1rem;
  border: 2.5px dashed rgba(255,255,255,.65);
  background: linear-gradient(135deg, #6a5cff, #8a5bff 45%, #ff6ec7 100%);
  color: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  backdrop-filter: blur(4px);
  z-index: 1;
  justify-content: center; /* center under title */
}


.hero-stamp i {
  font-size: 1.25rem;
}

.stamp-lines {
  flex: 1 1 auto;
  min-width: 120px;
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.stamp-main {
  font-weight: 800;
  font-size: 1rem;
  text-transform: uppercase;
}

.stamp-sub {
  font-size: 0.8rem;
  opacity: 0.95;
}

.stamp-cta {
  font-weight: 700;
  font-size: 0.85rem;
  color: #111;
  background: #fff;
  padding: .45rem .7rem;
  border-radius: .6rem;
  text-decoration: none;
  white-space: nowrap;
}

.stamp-close {
  background: rgba(255,255,255,.25);
  border: none;
  color: #fff;
  width: 24px; height: 24px;
  border-radius: 50%;
  cursor: pointer;
}

/* 📱 Responsive */
@media (max-width: 992px) {
  .hero-stamp {
            position: relative;
        top: auto;
        right: auto;
        margin: 1rem auto 25px;
        transform: rotate(-2deg);
        justify-content: center;
        max-width: 100%;
  }
}

@media (max-width: 576px) {
  .hero-stamp {
    position: relative;
    top: auto; right: auto;
    margin: 1rem auto 25px;
    transform: rotate(-2deg);
    justify-content: center;
    max-width: 100%;
  }
}

.button {
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition-speed);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-align: center;
  font-size: 0.95rem;
}

.button-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--text-primary);
  border: 1px solid transparent;
}

.button-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(79, 70, 229, 0.4);
}

.button-outline {
  background: transparent;
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
}

.button-outline:hover {
  background: var(--surface-glass-hover);
  border-color: var(--border-glass-hover);
}


.profile-icon, .submit-icon {
    padding: 10px!important;
}

.profile-menu.show {
    background:  var(--bg-primary)!important;
}

.cta-card.cta-compact { padding: 2rem; text-align: center; }
.cta-eyebrow { font-weight: 600; opacity: .9; margin-bottom: .5rem; }
.cta-sub { color: var(--text-secondary); margin: .5rem auto 1.25rem; max-width: 46ch; }
.cta-benefits {
  display: grid; gap: .5rem 1rem; 
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin: 1rem 0 1.25rem;
}
.cta-benefits span { display: inline-flex; gap: .5rem; align-items: center; }
.cta-actions { display: flex; gap: .75rem; justify-content: center; margin: .5rem 0 1rem; flex-wrap: wrap; }
.btn-ghost {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .75rem 1rem; border: 1px solid rgba(255,255,255,.2);
  border-radius: .75rem; text-decoration: none;
}
.cta-trust {
  display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
  font-size: .95rem; opacity: .9; margin: .5rem 0 .5rem;
}
.cta-trust span { display: inline-flex; gap: .4rem; align-items: center; }
.cta-note { margin-top: .5rem; font-size: .95rem; opacity: .95; }
.cta-footnote { font-size: .8rem; opacity: .7; margin-top: .25rem; }
@media (max-width: 480px) {
  .cta-benefits { grid-template-columns: 1fr; }
}
/* === UPGRADE PAGE SUPPORT (merged) ===================================== */

/* 0) Missing variable alias used by upgrade.php */
:root {
  /* alias used by compare table and faq in upgrade.php */
  --glass-background: var(--card-bg);
}

/* 1) Hero */
.hero {
  max-width: 1280px;
  margin: 0 auto;
  padding: 4rem 1rem 2rem;
  text-align: center;
  position: relative;
}
.hero-title {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: .75rem;
  color: var(--text-headings);
}
.hero-description {
  max-width: 46rem;
  margin: 0 auto;
  color: var(--text-secondary);
  font-size: 1.1rem;
}

/* 2) Plans */
.plans-grid {
  display: grid;
  gap: 2rem;
  margin: 2.5rem auto 0;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  max-width: 1280px;
  padding: 0 1rem;
}
.card.plan-card {
  position: relative;
  padding: 2rem 1.75rem;
  background: var(--card-bg);
  border: 1px solid var(--border-glass);
  border-radius: 1rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(12px);
  transition: transform var(--transition-speed), box-shadow var(--transition-speed), border-color var(--transition-speed);
}
.card.plan-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0,0,0,.3);
  border-color: var(--border-glass-hover);
  background: var(--card-bg-hover);
}
.plan-title { font-size: 1.5rem; font-weight: 800; margin: .25rem 0 .25rem; }
.plan-price { font-size: 2.25rem; font-weight: 800; margin: .75rem 0; }

.plan-list { list-style: none; padding: 0; margin: 1.5rem 0 2rem; flex-grow: 1; }
.plan-list li {
  margin: .75rem 0;
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  line-height: 1.4;
  text-align: left;
}
.plan-list i { color: #4ade80; flex-shrink: 0; margin-top: .25rem; }
.plan-cta { width: 100%; margin-top: auto; padding: .75rem 1.25rem; }

.current-badge {
  position: absolute;
  top: -0.75rem;
  right: -0.75rem;
  background: #4ade80;
  color: #000;
  padding: .4rem .75rem;
  font-size: .75rem;
  font-weight: 800;
  border-radius: .75rem 0 0 .75rem;
  z-index: 2;
}
.plan-card.highlighted-card {
  border: 2px solid var(--secondary-color);
  box-shadow: 0 8px 20px rgba(124, 58, 237, 0.2);
}

/* 3) Compare table */
.compare-table {
  margin: 3rem auto 0;
  max-width: 1280px;
  padding: 2rem;
  border-radius: 1rem;
  background: var(--glass-background);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  overflow-x: auto;
}
.compare-table h2 {
  text-align: center;
  margin-bottom: 1rem;
  color: var(--text-headings);
}
.compare-table table { width: 100%; border-collapse: collapse; }
.compare-table th,
.compare-table td {
  padding: 1rem;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.compare-table th:first-child,
.compare-table td:first-child { text-align: left; }
.compare-table th {
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  padding-bottom: 1.5rem;
}
.feature-name { color: rgba(255,255,255,0.9); font-weight: 500; }

/* 4) FAQ */
.faq-section {
  max-width: 900px;
  margin: 5rem auto 0;
  padding: 0 1rem;
}
.faq-section h2 {
  text-align: center;
  margin-bottom: 1rem;
  color: var(--text-headings);
}
.faq-item {
  background: var(--glass-background);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-glass);
  border-radius: 1rem;
  margin-bottom: 1.25rem;
  overflow: hidden;
}
.faq-question {
  padding: 1.5rem;
  cursor: pointer;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-question i { transition: transform .3s ease; }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease-out;
  padding: 0 1.5rem;
  color: rgba(255,255,255,0.9);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 1.5rem;
    color: rgba(255, 255, 255, 0.9);
}
.faq-item.active .faq-question i { transform: rotate(180deg); }
.faq-item.active .faq-answer { max-height: 500px; padding-bottom: 1.5rem; }

/* 5) Success flash */
.success-message-container { display:flex; justify-content:center; margin: 1rem 0 0; }
.success-message {
  background: rgba(16,185,129,0.15);
  border: 1px solid rgba(16,185,129,0.35);
  color:#d1fae5;
  border-radius: .75rem;
  padding: .75rem 1rem;
  position: relative;
  max-width: 720px;
  width: 92%;
}
.success-message .success-message-content { display:flex; gap:.6rem; align-items:center; }
.success-message .fa-check-circle { color:#34d399; }
.success-message .close-message {
  position: absolute; right:.5rem; top:.5rem;
  background: transparent; border: none; color:#d1fae5; cursor:pointer;
}

/* 6) Mobile tweaks */
@media (max-width: 768px) {
  .card.plan-card { padding: 1.5rem 1.25rem; }
  .compare-table th, .compare-table td { padding: .75rem .5rem; font-size: .9rem; }
  .hero-title { font-size: 2.25rem; }
  .hero-description { font-size: 1rem; }
}

/* helper: red cross color in table */
.fa-times { color: var(--danger-color); }

/* 7) CTA section card (bottom of upgrade page) */
.cta-card {
  margin-top: 4rem;
  padding: 2.5rem 2rem;
  text-align: center;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: var(--radius-2xl);
  border: none;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-card::before {
  content: '';
  position: absolute;
  inset: -30%;
  background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, transparent 55%);
  animation: upg-rotate 28s linear infinite;
}
@keyframes upg-rotate { to { transform: rotate(360deg); } }

.cta-card h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: .75rem;
}
.cta-card p {
  font-size: 1.1rem;
  opacity: .95;
  margin-bottom: 1.25rem;
}
.cta-card .button { min-width: 200px; }
