/* Modern Design System */
:root {
  /* Colors */
  --primary: #FFCB00;
  --primary-light: #FFD93D;
  --primary-dark: #ffe600;
  --secondary: #ffb13d;
  --accent: #14B8A6;
  --success: #10B981;
  --warning: #F59E0B;
  --danger: #EF4444;
  
  /* Secondary Color Variants */
  --secondary-rgb: 236, 72, 153;
  --secondary-alpha-5: rgba(var(--secondary-rgb), 0.05);
  --secondary-alpha-90: rgba(var(--secondary-rgb), 0.9);
  
  /* Primary Color Variants with Opacity - RGB values for rgba() */
  --primary-rgb: 255, 255, 255;
  --primary-light-rgb: 255, 217, 61;
  --primary-dark-rgb: 255, 230, 0;
  
  /* Pre-defined opacity variants for primary color */
  --primary-alpha-5: rgba(var(--primary-rgb), 0.05);
  --primary-alpha-10: rgba(var(--primary-rgb), 0.1);
  --primary-alpha-15: rgba(var(--primary-rgb), 0.15);
  --primary-alpha-20: rgba(var(--primary-rgb), 0.2);
  --primary-alpha-25: rgba(var(--primary-rgb), 0.25);
  --primary-alpha-30: rgba(var(--primary-rgb), 0.3);
  --primary-alpha-40: rgba(var(--primary-rgb), 0.4);
  --primary-alpha-50: rgba(var(--primary-rgb), 0.5);
  --primary-alpha-80: rgba(var(--primary-rgb), 0.8);
  --primary-alpha-90: rgba(var(--primary-rgb), 0.9);
  --primary-alpha-95: rgba(var(--primary-rgb), 0.95);
  --primary-alpha-100: rgba(var(--primary-rgb), 1);
  
  /* Primary dark opacity variants */
  --primary-dark-alpha-10: rgba(var(--primary-dark-rgb), 0.1);
  --primary-dark-alpha-15: rgba(var(--primary-dark-rgb), 0.15);
  --primary-dark-alpha-90: rgba(var(--primary-dark-rgb), 0.9);
  --primary-dark-alpha-95: rgba(var(--primary-dark-rgb), 0.95);
  --primary-dark-alpha-100: rgba(var(--primary-dark-rgb), 1);
  
  /* Primary light opacity variants */
  --primary-light-alpha-10: rgba(var(--primary-light-rgb), 0.1);
  
  /* Neutrals */
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-800: #1F2937;
  --gray-900: #111827;
  
  /* Theme (Dark Mode) */
  --bg-primary: #1A1B23;
  --bg-secondary: #1A1B23;
  --bg-tertiary: #252733;
  --bg-glass: rgba(255, 255, 255, 0.05);
  --bg-glass-hover: rgba(255, 255, 255, 0.08);
  --text-primary: #FFFFFF;
  --text-secondary: #A1A1AA;
  --text-muted: #71717A;
  --border: rgba(255, 255, 255, 0.1);
  --border-hover: rgba(255, 255, 255, 0.2);
  --text-on-yellow: #1a1b1d;
  
  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.25);
  --shadow-xl: 0 12px 48px rgba(0, 0, 0, 0.35);
  --shadow-glow: 0 0 20px var(--primary-alpha-30);
  
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  
  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  
  /* Animations */
  --transition-fast: 0.15s ease-out;
  --transition-normal: 0.25s ease-out;
  --transition-slow: 0.4s ease-out;
}

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

html, body {
  height: 100%;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  color: var(--text-primary);
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 20%, var(--primary-light-alpha-10) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(236, 72, 153, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 60%, rgba(20, 184, 166, 0.1) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

/* Beautiful Remember Me Checkbox */
.remember-me-group {
  display: flex;
  justify-content: center;
}

.remember-me-container {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  position: relative;
  padding: 12px 20px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.remember-me-container:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 203, 0, 0.2);
  transform: translateY(-2px);
}

.remember-me-container input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.remember-me-box {
  width: 28px;
  height: 28px;
  position: relative;
  flex-shrink: 0;
}

.remember-me-inner {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.remember-me-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  opacity: 0;
  transform: scale(0);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.remember-checkmark {
  width: 16px;
  height: 16px;
  color: var(--text-on-yellow);
  position: relative;
  z-index: 1;
  opacity: 0;
  transform: scale(0.5) rotate(-20deg);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.remember-me-container input:checked ~ .remember-me-box .remember-me-inner {
  border-color: var(--primary);
  animation: checkPulse 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.remember-me-container input:checked ~ .remember-me-box .remember-me-inner::before {
  opacity: 1;
  transform: scale(1);
}

.remember-me-container input:checked ~ .remember-me-box .remember-checkmark {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

@keyframes checkPulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(0.95);
  }
  100% {
    transform: scale(1);
  }
}

.remember-me-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  user-select: none;
}

.remember-main {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  transition: color 0.2s ease;
}

.remember-sub {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
}

.remember-me-container:hover .remember-main {
  color: white;
}

.remember-me-glow {
  position: absolute;
  top: 50%;
  left: 20px;
  width: 30px;
  height: 30px;
  background: radial-gradient(circle, rgba(255, 203, 0, 0.4), transparent);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  filter: blur(10px);
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.remember-me-container input:checked ~ .remember-me-glow {
  opacity: 1;
  animation: glowPulse 2s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.5);
  }
}

/* Hide remember me during password reset */
#confirm-password-group {
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--border-hover);
}

/* Top Navigation */
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 11, 15, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: var(--space-md) 0;
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
  display: flex;
  align-items: center;
  gap: var(--space-2xl);
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-weight: 700;
  font-size: 1.25rem;
}

.logo-main {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.logo-image {
  
  height: 32px;
  object-fit: contain;
}

.logo-clip {
  background: linear-gradient(90deg, #a855f7, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo-luma {
  color: #ffffff;
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  font-size: 18px;
}

.nav-tabs {
  display: flex;

  padding: var(--space-xs);

}

.nav-tab {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-lg);
  background: var(--bg-secondary);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  color: var(--text-secondary);
  box-shadow: 
    0 2px 10px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  overflow: hidden;
  position: relative;
  font-weight: 500;
}

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

.nav-tab:hover::before {
  left: 100%;
}

.nav-tab:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.nav-tab.active {
  border-color: var(--primary);
  background: var(--primary-alpha-10);
  color: var(--primary-light);
 
}

.profile-section {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.credits-display {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-lg);
  background: var(--bg-secondary);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  color: var(--text-secondary);
  box-shadow: 
    0 2px 10px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  overflow: hidden;
  position: relative;
  font-weight: 600;
  margin-right: var(--space-md);
}

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

.credits-display:hover::before {
  left: 100%;
}

.credits-display:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.credits-icon {
  font-size: 1.1rem;
  display: flex;
  align-items: center;
}

.credits-icon svg {
  width: 20px;
  height: 20px;
}

.credits-label {
  font-size: 0.875rem;
  opacity: 0.8;
}

#credits-amount {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0 2px;
}

.profile-menu {
  position: relative;
}

.avatar {
  color:var(--text-on-yellow);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: grid;
  place-items: center;
  cursor: pointer;
  font-weight: 700;
  transition: all var(--transition-normal);
}

.avatar:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-glow);
}

.dropdown-menu {
  position: absolute;
  top: 150%;
  right: 0;
  background: rgba(26, 27, 35, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-sm);
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-xl);
}

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

.dropdown-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  color: var(--text-secondary);
}

.dropdown-item .item-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.dropdown-item .item-icon svg {
  width: 18px;
  height: 18px;
}

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

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

/* Main Content */
.main-content {
  margin-top: 80px;
  min-height: calc(100vh - 80px);
}

.view-panel {
  display: none;
  padding: var(--space-lg);
  max-width: 1400px;
  margin: 0 auto;
}

.view-panel.active {
  display: block;
}

/* Create View */
.create-container {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: var(--space-2xl);
  height: calc(100vh - 140px);
}

.generation-panel {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  padding: var(--space-2xl);
  backdrop-filter: blur(20px);
}

.panel-header h2 {
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary-light), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: var(--space-sm);
}

.panel-header p {
  color: var(--text-secondary);
  margin-bottom: var(--space-2xl);
}

.generation-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.type-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.type-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-lg);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  color: var(--text-secondary);
  box-shadow: 
    0 2px 10px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  overflow: hidden;
  position: relative;
}

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

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

.type-btn:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  
  filter: brightness(1.05);
}

.type-btn.active {
  border-color: var(--primary);
  background: var(--primary-alpha-10);
  color: var(--primary-light);

}

.type-icon {
  font-size: 2rem;
}

.type-label {
  font-weight: 600;
}

.prompt-wrapper {
  position: relative;
  background: var(--bg-secondary);
  border: 2px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--transition-normal);
}

.prompt-wrapper:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-alpha-10);
}

#prompt-input {
  width: 100%;
  min-height: 120px;
  padding: var(--space-lg);
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 1rem;
  line-height: 1.6;
  resize: none;
  font-family: inherit;
}

#prompt-input::placeholder {
  color: var(--text-muted);
}

.prompt-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md) var(--space-lg);
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid var(--border);
}

.char-count {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.enhance-btn {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--text-on-yellow);
  border: none;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  overflow: hidden;
  position: relative;
}

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

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

.enhance-btn:hover {
  transform: translateY(-1px);
 
  filter: brightness(1.1);
}

.enhance-btn:active {
  transform: translateY(-1px);
  box-shadow: 
    0 4px 15px var(--primary-alpha-40),
    0 2px 8px var(--primary-alpha-20),
    inset 0 3px 6px rgba(0, 0, 0, 0.15);
  filter: brightness(0.95);
}

.enhance-btn:disabled {
  opacity: 0.6;
  transform: none;
  cursor: not-allowed;
}

/* Spinner animation for enhance button */
.spinner-icon {
  display: inline-block;
  animation: pulse 1s ease-in-out infinite;
}

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

.section-label {
  display: block;
  font-weight: 600;
  margin-bottom: var(--space-md);
  color: var(--text-primary);
}

.model-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.model-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-md) var(--space-lg);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  box-shadow: 
    0 2px 10px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  overflow: hidden;
  position: relative;
}

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

.model-card:hover::before {
  left: 100%;
}

@media (max-width: 768px) {
  .model-card {
    flex: 1 1 calc(50% - var(--space-md));
  }
}

@media (max-width: 480px) {
  .model-card {
    flex: 1 1 100%;
  }
}

.model-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.model-card.selected {
  border-color: var(--primary);
  background: var(--primary-alpha-10);
 
}

.model-name {
  font-weight: 700;
  color: var(--text-secondary);
  font-size: 0.9rem;
  flex: 1;
}

.model-cost {
  background: var(--primary);
  color: var(--text-on-yellow);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-md);
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.generate-btn {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--text-on-yellow);
  border: none;
  padding: var(--space-lg) var(--space-xl);
  border-radius: var(--radius-xl);
  cursor: pointer;
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  overflow: hidden;
  position: relative;
}

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

.generate-btn:hover::before,.generate-initial-btn:hover::before {
  left: 100%;
}

.generate-btn:hover {
  transform: translateY(-1px);
 
  filter: brightness(1.1);
}

.generate-btn:active {
  transform: translateY(-1px);
 
  filter: brightness(0.95);
}

.generate-btn:disabled {
  opacity: 0.6;
  transform: none;
  cursor: not-allowed;
}

.btn-cost {
  background: rgba(0, 41, 162, 0.2);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
}

/* Preview Panel */
.preview-panel {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  padding: var(--space-xl);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
}

.preview-panel .panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-lg);
}

.clear-all {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.clear-all:hover {
  border-color: var(--danger);
  color: var(--danger);
}

.preview-grid {
  /*display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: var(--space-lg);*/
  min-height: 400px;
  max-height: calc(100vh - 250px);
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: var(--space-sm);
}

/* Processing cards span full width */
.preview-grid .processing-card {
  grid-column: 1 / -1;
}

/* Custom scrollbar for preview grid */
.preview-grid::-webkit-scrollbar {
  width: 8px;
}

.preview-grid::-webkit-scrollbar-track {
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
}

.preview-grid::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: var(--radius-md);
}

.preview-grid::-webkit-scrollbar-thumb:hover {
  background: var(--primary-light);
}

.preview-placeholder {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  text-align: center;
}

.placeholder-icon {
  font-size: 3rem;
  margin-bottom: var(--space-md);
  opacity: 0.5;
}

/* Processing Cards */
/* Preview items (completed generations) use gallery-item styling */
.preview-item {
  /* Inherits all gallery-item styles */
  cursor: pointer;
  min-height:450px;
}

.processing-card {
  background: var(--bg-secondary);
  border: 2px solid var(--primary);
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
  position: relative;
  overflow: hidden;
}

/* Result Cards - Live Preview Completed Items */
.result-card {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  transition: all var(--transition-normal);
  cursor: pointer;
  margin-bottom: var(--space-lg);
}

.result-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: var(--border-hover);
}

.result-thumbnail {
  aspect-ratio: 1;
  background: var(--bg-secondary);
  background-size: cover;
  background-position: center;
  position: relative;
}

.result-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.3), rgba(0,0,0,0.7));
  opacity: 0;
  transition: all var(--transition-normal);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
}

.result-card:hover .result-overlay {
  opacity: 1;
}

.result-info {
  padding: var(--space-md);
}

.result-title {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
  font-size: 0.875rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.result-meta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.result-type {
  background: var(--bg-secondary);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius);
  font-weight: 500;
}

.result-date {
  color: var(--text-muted);
}

.processing-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--primary-alpha-10), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  to { left: 100%; }
}

.processing-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.processing-spinner {
  width: 24px;
  height: 24px;
  border: 3px solid var(--primary-alpha-30);
  border-top: 3px solid var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.processing-text {
  font-weight: 600;
  color: var(--primary-light);
}

.processing-prompt {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.4;
}

/* Gallery & Mine Views */
.gallery-container, .mine-container {
  min-height: calc(100vh - 200px);
}

.gallery-header, .mine-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-2xl);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--border);
}

.gallery-header h2, .mine-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary-light), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.header-left {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

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

.mine-stats {
  display: flex;
  gap: var(--space-lg);
}

.stat-item {
  text-align: center;
  padding: var(--space-sm) var(--space-md);
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
}

.stat-number {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-light);
}

.stat-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filter-tabs {
  display: flex;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xs);
  gap: var(--space-xs);
}

.filter-tab {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  font-weight: 500;
  font-size: 0.875rem;
}

.filter-tab:hover {
  color: var(--text-primary);
  background: var(--bg-glass);
}

.filter-tab.active {
  background: var(--primary);
  color: var(--text-on-yellow);
  box-shadow: var(--shadow-sm);
}

.search-bar {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--bg-secondary);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-sm) var(--space-md);
  transition: all var(--transition-normal);
  min-width: 300px;
}

.search-bar:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-alpha-10);
}

.search-icon {
  margin-right: var(--space-sm);
  color: var(--text-muted);
  font-size: 1rem;
}

.search-bar input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 0.875rem;
  flex: 1;
  font-family: inherit;
}

.search-bar input::placeholder {
  color: var(--text-muted);
}

/* Modal System Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

.modal-overlay.show {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: var(--bg-primary);
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border);
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow: hidden;
  transform: translateY(20px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.open .modal,
.modal-overlay.show .modal {
  transform: translateY(0) scale(1);
}

.modal-header {
  padding: var(--space-xl);
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, var(--primary-alpha-10), var(--secondary-alpha-5));
}

.modal-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.modal-body {
  padding: var(--space-xl);
  max-height: calc(90vh - 200px);
  overflow-y: auto;
}

.modal-footer {
  padding: var(--space-lg) var(--space-xl);
  border-top: 1px solid var(--border);
  display: flex;
  gap: var(--space-md);
  justify-content: flex-end;
  background: var(--bg-secondary);
}

.modal-footer .button {
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-normal);
  border: none;
  font-size: 0.875rem;
}

.modal-footer .button-primary {
  background: var(--primary);
 
}

.modal-footer .button-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  
}

.modal-footer .button-secondary {
  background: var(--bg-primary);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.modal-footer .button-secondary:hover {
  background: var(--bg-glass);
}

/* Form Elements in Modal */
.form-group {
  margin-bottom: var(--space-lg);
}

.input-label {
  display: block;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
  font-size: 0.875rem;
}

.input,
.select,
.textarea {
  width: 100%;
  padding: var(--space-md);
  background: var(--bg-secondary);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  font-size: 0.875rem;
  font-family: inherit;
  transition: all var(--transition-normal);
}

.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-alpha-10);
}

.textarea {
  resize: vertical;
  min-height: 100px;
}

.select {
  cursor: pointer;
  appearance: none;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12"><path fill="%23666" d="M6 9L1 4h10z"/></svg>');
  background-repeat: no-repeat;
  background-position: right var(--space-md) center;
  padding-right: var(--space-2xl);
}



.extra-options-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md);
  background: var(--bg-secondary);
  border: 2px solid var(--border);
  border-radius: var(--radius-xl);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  user-select: none;
  box-shadow: 
    0 2px 10px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  overflow: hidden;
  position: relative;
}

.extra-options-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 255, 255, 0.1), 
    transparent
  );
  transition: left 0.5s ease;
}

.extra-options-header:hover::before {
  left: 100%;
}

.extra-options-header:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.extra-options-section.expanded .extra-options-header {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-color: var(--primary);
}

.options-icon {
  font-size: 1.25rem;
}

.options-label {
  flex: 1;
  font-weight: 600;
  color: var(--text-secondary);
}

.options-toggle {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: transform var(--transition-normal);
}

.extra-options-section.expanded .options-toggle {
  transform: rotate(180deg);
}

.extra-options-body {
  display: none;
  padding: var(--space-lg);
  background: var(--bg-secondary);
  border: 2px solid var(--primary);
  border-top: none;
  border-bottom-left-radius: var(--radius-lg);
  border-bottom-right-radius: var(--radius-lg);
}

.extra-options-section.expanded .extra-options-body {
  display: block;
}

.param-control-group {
  margin-bottom: var(--space-md);
}

.param-control-group:last-child {
  margin-bottom: 0;
}

.param-label {
  display: block;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
  font-size: 0.875rem;
}

.param-input,
.param-select {
  width: 100%;
  padding: var(--space-md);
  background: var(--bg-secondary);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-family: inherit;
  transition: all var(--transition-normal);
}

.param-input:focus,
.param-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-alpha-10);
}

.param-select {
  cursor: pointer;
  appearance: none;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12"><path fill="%23666" d="M6 9L1 4h10z"/></svg>');
  background-repeat: no-repeat;
  background-position: right var(--space-md) center;
  padding-right: var(--space-2xl);
}

.param-checkbox-wrapper {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md);
  background: var(--bg-primary);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-normal);
}

.param-checkbox-wrapper:hover {
  border-color: var(--primary);
}

.param-checkbox-wrapper input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.param-checkbox-label {
  flex: 1;
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.875rem;
  cursor: pointer;
}



.image-upload-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.image-upload-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  width: 100%;
  padding: var(--space-xl);
  background: linear-gradient(135deg, var(--bg-secondary), var(--bg-primary));
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  color: var(--text-secondary);
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.image-upload-btn:hover:not(:disabled) {
  border-color: var(--primary);
  background: linear-gradient(135deg, var(--bg-primary), var(--bg-secondary));

  transform: translateY(-2px);
}

.image-upload-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.upload-icon {
  font-size: 1.25rem;
}

.upload-icon::before {
  content: '📤';
}

.upload-hint {
  margin-top: var(--space-sm);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
}

.image-preview {
  position: relative;
  width: auto;
  max-width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid var(--primary);
  background: var(--bg-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  max-height: 400px;
  margin: 0 auto;
}

.image-preview img {
  max-width: 100%;
  max-height: 400px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

/* Remove image button - styled like clear-all button */
.image-preview .remove-image-btn {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  z-index: 10;
  background: #3c3a3ad1;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: var(--space-sm);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
}

.image-preview .remove-image-btn:hover {
  border-color: var(--danger);
  color: var(--danger);
}

.image-preview .remove-image-btn:hover svg {
  stroke: var(--danger);
}

/* Enhance Options Grid */
.enhance-options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--space-sm);
  margin: var(--space-sm) 0;
}

.enhance-option-btn {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md);
  background: var(--bg-secondary);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.9375rem;
  text-align: left;
  position: relative;
  overflow: hidden;
}

.enhance-option-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    var(--primary-alpha-10), 
    transparent
  );
  transition: left 0.5s ease;
}

.enhance-option-btn:hover::before {
  left: 100%;
}

.enhance-option-btn:hover {
  border-color: var(--primary);
  background: var(--primary-alpha-5);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px var(--primary-alpha-20);
}

.enhance-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.enhance-name {
  flex: 1;
}

/* Popup Content Layout (Editor + Preview side by side) */
.popup-content-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  margin-top: var(--space-lg);
}

.popup-content-editor {
  flex: 1;
}

.popup-content-preview {
  position: sticky;
  top: var(--space-lg);
  align-self: start;
}

/* Summernote WYSIWYG Editor Customization */
.note-editable {
  background: var(--bg-primary) !important;
}

.note-editor.note-frame {
  border-color: var(--border);
}

.note-toolbar {
  background: var(--bg-secondary);
  border-bottom-color: var(--border);
}

.popup-preview-container {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
}

.preview-label {
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
  text-align: center;
  font-size: 1rem;
}

.popup-preview-wrapper {
  background: linear-gradient(135deg, var(--primary-alpha-10), var(--secondary-alpha-5));
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

.popup-preview {
  background: var(--bg-primary);
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
  max-width: 500px;
  width: 100%;
}

.popup-preview-content {
  padding: var(--space-2xl);
}

.popup-preview-title {
  margin: 0 0 var(--space-lg) 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
}

.popup-preview-body {
  margin-bottom: var(--space-xl);
  color: var(--text-primary);
  line-height: 1.6;
}

.popup-preview-body p {
  margin: var(--space-sm) 0;
}

.popup-preview-button {
  width: 100%;
  padding: var(--space-md) var(--space-lg);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  
  border: none;
  border-radius: var(--radius-lg);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
}

@media (max-width: 1200px) {
  .popup-content-layout {
    grid-template-columns: 1fr;
  }
  
  .popup-content-preview {
    position: relative;
  }
}

.product-checkboxes {
  max-height: 200px;
  overflow-y: auto;
  padding: var(--space-sm);
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

/* User-Facing Popup System */
.user-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.user-popup-overlay.show {
  opacity: 1;
  pointer-events: all;
}

.user-popup-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.user-popup {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) translateY(20px) scale(0.95);
  background: var(--bg-primary);
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border);
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.user-popup-overlay.show .user-popup {
  transform: translate(-50%, -50%) translateY(0) scale(1);
}

.user-popup-close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-normal);
  z-index: 10;
}

.user-popup-close:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: scale(1.1);
}

.user-popup-content {
  padding: var(--space-2xl);
}

.user-popup-title {
  margin: 0 0 var(--space-lg) 0;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
}

.user-popup-body {
  margin-bottom: var(--space-xl);
  color: var(--text-primary);
  line-height: 1.6;
  max-height: 50vh;
  overflow-y: auto;
}

.user-popup-body p {
  margin: var(--space-sm) 0;
}

.user-popup-button {
  width: 100%;
  padding: var(--space-md) var(--space-lg);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border: none;
  border-radius: var(--radius-lg);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.user-popup-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px var(--primary-alpha-40);
}

/* Notifications Bell */
.notifications-container {
  position: relative;
 
}

.notifications-btn {
  background: var(--bg-secondary);
  border: 2px solid var(--border);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
}

.notifications-btn:hover {
  border-color: var(--primary);
  background: var(--bg-glass);
}

.icon-bell {
  width: 24px;
  height: 24px;
  font-size:1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon-bell::before {
  content: '';
  width: 100%;
  height: 100%;
  display: block;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='1.5' stroke='%23ff9a8b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M14.857 17.082a23.848 23.848 0 0 0 5.454-1.31A8.967 8.967 0 0 1 18 9.75V9A6 6 0 0 0 6 9v.75a8.967 8.967 0 0 1-2.312 6.022c1.733.64 3.56 1.085 5.455 1.31m5.714 0a24.255 24.255 0 0 1-5.714 0m5.714 0a3 3 0 1 1-5.714 0M3.124 7.5A8.969 8.969 0 0 1 5.292 3m13.416 0a8.969 8.969 0 0 1 2.168 4.5'/%3E%3C/svg%3E") center/contain no-repeat;
}

.notifications-btn:hover .icon-bell::before {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='1.5' stroke='%23FFD93D'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M14.857 17.082a23.848 23.848 0 0 0 5.454-1.31A8.967 8.967 0 0 1 18 9.75V9A6 6 0 0 0 6 9v.75a8.967 8.967 0 0 1-2.312 6.022c1.733.64 3.56 1.085 5.455 1.31m5.714 0a24.255 24.255 0 0 1-5.714 0m5.714 0a3 3 0 1 1-5.714 0M3.124 7.5A8.969 8.969 0 0 1 5.292 3m13.416 0a8.969 8.969 0 0 1 2.168 4.5'/%3E%3C/svg%3E") center/contain no-repeat;
}

.notifications-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--danger);
  color: white;
  border-radius: 10px;
  padding: 2px 6px;
  font-size: 0.75rem;
  font-weight: 700;
  min-width: 20px;
  text-align: center;
}

.notifications-dropdown {
  position: absolute;
  top: calc(100% + var(--space-sm));
  right: 0;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  min-width: 320px;
  max-height: 400px;
  overflow-y: auto;
  z-index: 1000;
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: all var(--transition-normal);
}

.notifications-dropdown.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.notification-item {
  padding: var(--space-md);
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: all var(--transition-fast);
}

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

.notification-item:hover {
  background: var(--bg-glass);
}

.notification-title {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.notification-time {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Email Template Editor */
.template-tab {
  padding: var(--space-sm) var(--space-lg);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--transition-normal);
  font-size: 0.875rem;
  font-weight: 600;
}

.template-tab:hover {
  border-color: var(--primary);
  background: var(--bg-glass);
}

.template-tab.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.template-editor-container {
  position: relative;
}

.template-editor {
  display: none;
}

.template-editor.active {
  display: block;
}

/* Model Parameters Configuration */
.parameters-config-container {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.parameter-config-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  transition: all var(--transition-normal);
}

.parameter-config-item.parameter-enabled {
  background: var(--primary-alpha-5);
  border-color: var(--primary-alpha-30);
}

.parameter-config-header {
  display: flex;
  gap: var(--space-md);
  align-items: start;
}

.parameter-config-header input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  margin-top: 6px;
  flex-shrink: 0;
}

.parameter-config-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.parameter-save-row {
  margin-top: var(--space-md);
  display: flex;
  justify-content: flex-end;
  padding-top: var(--space-md);
  border-top: 1px solid var(--border);
}

/* Category Dropdown */
.category-dropdown-wrapper {
  position: relative;
}

.category-select {
  background: var(--bg-secondary);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-sm) var(--space-md);
  padding-right: var(--space-xl);
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-family: inherit;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  min-width: 180px;
  appearance: none;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12"><path fill="%23666" d="M6 9L1 4h10z"/></svg>');
  background-repeat: no-repeat;
  background-position: right var(--space-md) center;
  
  backdrop-filter: blur(20px);
  overflow: hidden;
  position: relative;
}

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

.category-select:hover::before {
  left: 100%;
}

.category-select:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.category-select:focus {
  outline: none;
  border-color: var(--primary);



}


/* Status Badge */
.status-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 4px 8px;
  border-radius: var(--radius-md);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  z-index: 2;
  backdrop-filter: blur(4px);
}

.status-badge.status-processing {
  background: var(--primary-alpha-90);
  color: white;
}

.status-badge.status-unprocessed {
  background: var(--secondary-alpha-90);
  color: white;
}

.status-badge.status-failed {
  background: rgba(239, 68, 68, 0.9);
  color: white;
}


/* Content Loaders */
.gallery-loading, .mine-loading {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
  margin: var(--space-2xl) 0;
}

.content-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
  text-align: center;
}

.loader-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid var(--bg-secondary);
  border-top: 3px solid var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  position: relative;
}

.loader-spinner::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 6px;
  right: 6px;
  bottom: 6px;
  border: 2px solid transparent;
  border-top: 2px solid var(--primary-light);
  border-radius: 50%;
  animation: spin 1.5s linear infinite reverse;
}

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



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

.gallery-grid, .mine-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.gallery-item {
  background: var(--bg-glass);
  border: 1px solid var(--bg-glass);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  transition: all var(--transition-normal);
  cursor: pointer;
  margin-top:10px;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: var(--border-hover);
}

.item-thumbnail {
  aspect-ratio: 1;
  background: var(--bg-secondary);
  background-size: cover;
  background-position: center;
  position: relative;
}

.item-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.3), rgba(0,0,0,0.7));
  opacity: 0;
  transition: all var(--transition-normal);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
}

.gallery-item:hover .item-overlay {
  opacity: 1;
}

/* Modern Overlay Buttons - Centered 2x2 Grid */
.item-overlay {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, auto));
  gap: var(--space-xs) var(--space-sm);
  padding: var(--space-md);
  place-content: center;
  place-items: center;
}

.overlay-btn {
  border: none;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.8125rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  position: relative;
  height: 36px;
  white-space: nowrap;
  min-width: 140px;
}

.overlay-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* View Button - Primary Purple */
.view-btn {
  background: linear-gradient(135deg, rgba(148, 16, 185, 0.95), rgba(84, 5, 150, 0.95));
  color: white;
}

.view-btn:hover {
  
  transform: translateY(-2px);
}

/* Download Button - Green */
.download-btn {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.95), rgba(5, 150, 105, 0.95));
  color: white;
}

.download-btn:hover {
  background: linear-gradient(135deg, rgba(16, 185, 129, 1), rgba(5, 150, 105, 1));
  transform: translateY(-2px);
}

/* Edit Button - Orange */
.edit-btn {
  background: linear-gradient(135deg, rgba(251, 146, 60, 0.95), rgba(249, 115, 22, 0.95));
  color: white;
}

.edit-btn:hover {
  background: linear-gradient(135deg, rgba(251, 146, 60, 1), rgba(249, 115, 22, 1));
  transform: translateY(-2px);
}

/* Create Video Button - Pink/Purple */
.create-video-btn {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.95), rgba(219, 39, 119, 0.95));
  color: white;
}

.create-video-btn:hover {
  background: linear-gradient(135deg, rgba(236, 72, 153, 1), rgba(219, 39, 119, 1));
  transform: translateY(-2px);
}

/* Modern 2025 Delete Button */
.delete-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: linear-gradient(135deg, #ff4757, #ff3838);
  color: white;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  opacity: 0;
  transform: scale(0.8);
  backdrop-filter: blur(20px);
  box-shadow: 
    0 2px 8px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  z-index: 10;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

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

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

.gallery-item:hover .delete-btn {
  opacity: 1;
  transform: scale(1);
}

/* Always show delete button in My Creations */
.mine-item .delete-btn {
  opacity: 1;
  transform: scale(1);
}

.delete-btn:hover {
  background: linear-gradient(135deg, #ff3838, #ff2d2d);
  transform: translateY(-1px);
  box-shadow: 
    0 6px 15px rgba(255, 56, 56, 0.3),
    0 3px 8px rgba(0, 0, 0, 0.2),
    inset 0 2px 0 rgba(255, 255, 255, 0.4);
  border-color: rgba(255, 255, 255, 0.3);
  filter: brightness(1.1);
}

.delete-btn:active {
  transform: translateY(0px);
  box-shadow: 
    0 2px 6px rgba(255, 56, 56, 0.2),
    inset 0 2px 4px rgba(0, 0, 0, 0.2);
  filter: brightness(0.95);
}

/* Video cards get primary border */
.gallery-item.video {
  /*border-color: var(--primary);
  border-width: 2px;*/
}

.gallery-item.video:hover {
  /*border-color: var(--primary-light);*/
  
}

.item-info {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  min-height: 80px;
}

.item-title {
  font-weight: 600;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
  height: 2.8em; /* Fixed height for 2 lines - always same height */
  min-height: 2.8em;
}

.item-meta {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-top: auto;
  padding-top: var(--space-sm);
}

.item-date {
  margin-left: auto;
}

/* Beautiful item-type badge */
.item-type {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  background: var(--primary-alpha-10);
  border: 1px solid var(--primary-alpha-30);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}



/* Add icon before type text - Image icon */
.item-type::before {
  content: '';
  width: 14px;
  height: 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%234e83c8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2' ry='2'/%3E%3Ccircle cx='8.5' cy='8.5' r='1.5'/%3E%3Cpolyline points='21,15 16,10 5,21'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* Video icon for video type */
.gallery-item.video .item-type::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23ff9a8b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='23,7 16,12 23,17 23,7'/%3E%3Crect x='1' y='5' width='15' height='14' rx='2' ry='2'/%3E%3C/svg%3E");
}

/* Loading States */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 11, 15, 0.8);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.loading-overlay.show {
  opacity: 1;
  visibility: visible;
}

.loading-spinner {
  text-align: center;
}

.spinner-ring {
  width: 60px;
  height: 60px;
  border: 4px solid var(--primary-alpha-30);
  border-top: 4px solid var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto var(--space-md);
}

.loading-text {
  color: var(--text-secondary);
  font-weight: 600;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .create-container {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
  
  .nav-container {
    padding: 0 var(--space-md);
  }
}

@media (max-width: 768px) {
  .nav-container {
    flex-wrap: wrap;
    gap: var(--space-md);
  }
  
  .nav-tabs {
    order: 3;
    flex-basis: 100%;
  }
  
  .gallery-grid, .mine-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: var(--space-md);
  }
  
  .view-panel {
    padding: var(--space-md);
  }
  
  .generation-panel, .preview-panel {
    padding: var(--space-lg);
  }
  
  /* Responsive headers */
  .gallery-header, .mine-header {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-lg);
  }
  
  .header-controls {
    flex-direction: column;
    gap: var(--space-md);
  }
  
  .header-left {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-md);
  }
  
  .mine-stats {
    gap: var(--space-md);
  }
  
  .search-bar {
    min-width: auto;
    width: 100%;
  }
  
  .filter-tabs {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .panel-header h2 {
    font-size: 1.5rem;
  }
  
  .gallery-header h2, .mine-header h2 {
    font-size: 2rem;
  }
  
  .gallery-grid, .mine-grid {
    grid-template-columns: 1fr;
  }
  
  .mine-stats {
    width: 100%;
    justify-content: center;
  }
  
  .stat-item {
    flex: 1;
    min-width: 80px;
  }
} 

/* Projects Menu Button (used in main app, not admin-only) */
.admin-menu-btn {
  background: var(--bg-secondary);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-sm) var(--space-md);
  color: var(--text-sec);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  min-width: 44px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 
    0 2px 10px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  overflow: hidden;
}

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

.admin-menu-btn:hover::before {
  left: 100%;
}

.admin-menu-btn:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.admin-menu-btn.open {
  border-color: var(--primary);
  background: var(--primary-alpha-10);
  color: var(--primary-light);
 
}

.admin-menu-btn .icon-menu::before {
  content: '☰';
  font-size: 1.25rem;
  font-weight: bold;
  color:var(--text-secondary);
}

/* Admin Menu Dropdown (also used for projects menu) */
.admin-menu-dropdown {
  position: fixed;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  min-width: 240px;
  z-index: 9999;
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: all var(--transition-normal);
}

.admin-menu-dropdown.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.admin-menu-item {
  padding: var(--space-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  transition: all var(--transition-fast);
  color: var(--text-primary);
  font-size: 0.875rem;
  border-bottom: 1px solid var(--border);
}

.admin-menu-item:last-child {
  border-bottom: none;
}

.admin-menu-item:hover {
  background: var(--bg-glass);
  color: var(--primary);
}

.admin-menu-item.danger:hover {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
}

.admin-menu-item.success:hover {
  background: rgba(34, 197, 94, 0.1);
  color: var(--success);
}

/* Admin Only Elements - Hidden by default, shown via JS */
.admin-only {
  display: none !important;
}

body.is-admin .admin-only {
  display: flex !important;
}

button.admin-only.admin-menu-btn,
button.admin-only.delete-btn {
  display: none !important;
}

body.is-admin button.admin-only.admin-menu-btn,
body.is-admin button.admin-only.delete-btn {
  display: flex !important;
}

/* Stats Cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
}

.stat-card {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  backdrop-filter: blur(20px);
  text-align: center;
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-light);
  margin: 0;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: var(--space-sm);
}

.stat-change {
  font-size: 0.875rem;
  font-weight: 600;
  margin-top: var(--space-xs);
}

.stat-change.positive {
  color: var(--success);
}

.stat-change.negative {
  color: var(--danger);
}

/* Chart Container */
.chart-container {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  backdrop-filter: blur(20px);
}

.chart-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
}

/* Expandable Items */
.expandable-item {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  margin-bottom: var(--space-lg);
  overflow: hidden;
  transition: all var(--transition-normal);
}

.expandable-item:hover {
  border-color: var(--border-hover);
}

.expandable-item.expanded {
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
}

.item-header {
  display: flex;
  align-items: center;
  padding: var(--space-lg);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.item-header:hover {
  background: var(--bg-glass-hover);
}

.item-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  background: var(--primary);
  color: var(--text-on-yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.5rem;
  margin-right: var(--space-lg);
  flex-shrink: 0;
}

.item-info {
  flex: 1;
  min-width: 0;
}

.item-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.item-subtitle {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.item-badges {
  display: flex;
  gap: var(--space-sm);
  margin-right: var(--space-md);
  flex-shrink: 0;
}

.item-badge {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-md);
  font-size: 0.75rem;
  font-weight: 600;
}

.item-badge.primary {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.item-badge.success {
  background: var(--success);
  color: white;
  border-color: var(--success);
}

.expand-indicator {
  color: var(--text-muted);
  font-size: 1.2rem;
  transition: transform var(--transition-normal);
}

.expandable-item.expanded .expand-indicator {
  transform: rotate(180deg);
}

.item-details {
  display: none;
  padding: 0 var(--space-lg) var(--space-lg);
  border-top: 1px solid var(--border);
}

.expandable-item.expanded .item-details {
  display: block;
}

.details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-lg);
}

.detail-section {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-top: var(--space-lg);
}

.detail-section-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}


/* Dashboard Date Selection */
.date-quick-btn {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

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

.date-quick-btn.active {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-color: var(--primary);
  color: white;
  box-shadow: 0 2px 8px var(--primary-alpha-30);
}

.date-quick-btn:active {
  transform: translateY(1px);
}

/* License Display in User List */
.licenses-display {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-top: var(--space-xs);
}

.license-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 6px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  box-shadow: 0 1px 3px var(--primary-alpha-30);
}

.no-licenses {
  color: var(--text-muted);
  font-size: 0.75rem;
  font-style: italic;
}

/* License Type Badges */
.license-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-md);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.license-badge.purchased {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.2);
}


/* Beautiful Modal System */
.beautiful-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.beautiful-modal-overlay.show {
  opacity: 1;
}

.beautiful-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
}

.beautiful-modal-container {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
}

.beautiful-modal {
  background: var(--bg-primary);
  border-radius: var(--radius-xl);
  box-shadow: 
    0 25px 50px rgba(0, 0, 0, 0.25),
    0 10px 25px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border);
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  transform: translateY(20px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.beautiful-modal-overlay.show .beautiful-modal {
  transform: translateY(0) scale(1);
}

.beautiful-modal-content {
  position: relative;
}

.beautiful-modal-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-xl) var(--space-xl) var(--space-lg);
  text-align: center;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.1), 
    rgba(255, 255, 255, 0.05)
  );
}

.beautiful-modal-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-sm);
  line-height: 1;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.2), 
    rgba(255, 255, 255, 0.1)
  );
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(20px);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.1),
    0 4px 16px rgba(0, 0, 0, 0.05),
    inset 0 2px 0 rgba(255, 255, 255, 0.3);
}

.beautiful-modal-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

.beautiful-modal-body {
  padding: var(--space-xl);
}

.beautiful-modal-message {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 1rem;
  margin: 0;
  text-align: center;
}

.beautiful-modal-input-group {
  margin-top: var(--space-lg);
}

.beautiful-input-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.beautiful-input {
  width: 100%;
  padding: var(--space-md);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 1rem;
  transition: all 0.3s ease;
  font-family: inherit;
}

.beautiful-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-alpha-10);
  background: var(--bg-primary);
}

.beautiful-input::placeholder {
  color: var(--text-muted);
}

/* Beautiful inputs */
select.beautiful-input,
textarea.beautiful-input {
  width: 100%;
  padding: var(--space-md);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 1rem;
  transition: all 0.3s ease;
  font-family: inherit;
  box-sizing: border-box;
}

select.beautiful-input {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 40px;
}

textarea.beautiful-input {
  resize: vertical;
  min-height: 80px;
}

.beautiful-modal-footer {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-lg) var(--space-xl) var(--space-xl);
  background: linear-gradient(135deg, 
    rgba(0, 0, 0, 0.02), 
    rgba(0, 0, 0, 0.01)
  );
  border-top: 1px solid var(--border);
}

.beautiful-btn {
  flex: 1;
  padding: var(--space-md) var(--space-md);
  border: none;
  border-radius: var(--radius-lg);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

.beautiful-btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--text-on-yellow);
 
}

.beautiful-btn-primary:hover {
  transform: translateY(-2px);
 
  filter: brightness(1.1);
}

.beautiful-btn-secondary {
  background: var(--bg-glass);
  color: var(--text-primary);
  border: 1px solid var(--border);
 
}

.beautiful-btn-secondary:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-hover);
 
  filter: brightness(1.05);
}

.beautiful-btn-danger {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
 
}

.beautiful-btn-danger:hover {
  transform: translateY(-2px);
 
  filter: brightness(1.1);
}

.beautiful-btn-success {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
 
}

.beautiful-btn-success:hover {
  transform: translateY(-2px);
 
  filter: brightness(1.1);
}

.beautiful-btn-warning {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
 
}

.beautiful-btn-warning:hover {
  transform: translateY(-2px);

    inset 0 2px 0 rgba(255, 255, 255, 0.4);
  filter: brightness(1.1);
}

.beautiful-btn:active {
  transform: translateY(0);
 
  filter: brightness(0.95);
}

/* Modal open body styles */
body.modal-open {
  overflow: hidden;
}

/* Responsive */
@media (max-width: 768px) {
  .beautiful-modal-container {
    padding: var(--space-md);
  }
  
  .beautiful-modal {
    max-width: 100%;
    margin: var(--space-sm);
  }
  
  .beautiful-modal-header {
    padding: var(--space-lg) var(--space-lg) var(--space-md);
  }
  
  .beautiful-modal-body {
    padding: var(--space-lg);
  }
  
  .beautiful-modal-footer {
    padding: var(--space-md) var(--space-lg) var(--space-lg);
    flex-direction: column;
  }
  
  .beautiful-modal-icon {
    font-size: 2rem;
    width: 52px;
    height: 52px;
  }
  
  .beautiful-modal-title {
    font-size: 1.25rem;
  }
}

/* Image Viewer Modal */
.image-viewer-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.image-viewer-modal.show {
  opacity: 1;
  visibility: visible;
}

.image-viewer-modal .modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(20px);
  cursor: pointer;
}

.image-viewer-modal .modal-content {
  position: relative;
  max-width: 95vw;
  max-height: 95vh;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
  transform: scale(0.8);
  transition: transform var(--transition-normal);
}

.image-viewer-modal.show .modal-content {
  transform: scale(1);
}

.image-viewer-modal .modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg) var(--space-xl);
  border-bottom: 1px solid var(--border);
  min-height: 80px;
}

.image-viewer-modal .modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  margin-right: var(--space-lg);
}

.image-viewer-modal .modal-meta {
  display: flex;
  gap: var(--space-md);
  flex: 1;
}

.image-viewer-modal .meta-item {
  background: var(--bg-secondary);
  color: var(--text-secondary);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 500;
}

.image-viewer-modal .modal-close {
  background: transparent;
  border: 2px solid var(--border);
  color: var(--text-secondary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: 700;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.image-viewer-modal .modal-close:hover {
  border-color: var(--danger);
  color: var(--danger);
  background: rgba(239, 68, 68, 0.1);
}

.image-viewer-modal .modal-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl);
  min-height: 400px;
  max-height: calc(95vh - 200px);
  overflow: auto;
}

.image-viewer-modal .image-container {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.image-viewer-modal .image-container img {
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  background: var(--bg-secondary);
}

.image-viewer-modal .image-container video {
  max-width: 100%;
  width: auto;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  background: var(--bg-secondary);
}

.image-viewer-modal .modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-md);
  padding: var(--space-lg) var(--space-xl);
  border-top: 1px solid var(--border);
  min-height: 80px;
}

.image-viewer-modal .modal-btn {
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-lg);
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.875rem;
  backdrop-filter: blur(20px);
  overflow: hidden;
  position: relative;
}

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

.image-viewer-modal .modal-btn:hover::before {
  left: 100%;
}

.image-viewer-modal .modal-btn.secondary {
  background: var(--bg-glass);
  color: var(--text-primary);
  border: 1px solid var(--border);
  box-shadow: 
    0 2px 8px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.image-viewer-modal .modal-btn.secondary:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-hover);
  box-shadow: 
    0 6px 20px rgba(0, 0, 0, 0.12),
    0 3px 8px rgba(0, 0, 0, 0.08),
    inset 0 2px 0 rgba(255, 255, 255, 0.3);
  filter: brightness(1.05);
}

.image-viewer-modal .modal-btn.primary {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.9), rgba(5, 150, 105, 0.9));
  color: white;
  box-shadow: 
    0 4px 15px rgba(16, 185, 129, 0.3),
    0 2px 8px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.image-viewer-modal .modal-btn.primary:hover {
  background: linear-gradient(135deg, rgba(16, 185, 129, 1), rgba(5, 150, 105, 1));
  transform: translateY(-2px);
  box-shadow: 
    0 8px 25px rgba(16, 185, 129, 0.4),
    0 4px 15px rgba(16, 185, 129, 0.3),
    0 2px 8px rgba(0, 0, 0, 0.1),
    inset 0 2px 0 rgba(255, 255, 255, 0.3);
  filter: brightness(1.1);
}

.image-viewer-modal .modal-btn:active {
  transform: translateY(0);
  box-shadow: 
    0 2px 8px rgba(0, 0, 0, 0.2),
    inset 0 2px 4px rgba(0, 0, 0, 0.2);
  filter: brightness(0.95);
}

/* Prevent body scroll when modal is open */
body.modal-open {
  overflow: hidden;
}

/* Responsive adjustments for image viewer */
@media (max-width: 768px) {
  .image-viewer-modal .modal-content {
    max-width: 100vw;
    max-height: 100vh;
    border-radius: 0;
  }
  
  .image-viewer-modal .modal-header {
    padding: var(--space-md);
    flex-wrap: wrap;
    min-height: auto;
  }
  
  .image-viewer-modal .modal-title {
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
    flex-basis: 100%;
  }
  
  .image-viewer-modal .modal-meta {
    flex-basis: calc(100% - 50px);
  }
  
  .image-viewer-modal .modal-body {
    padding: var(--space-md);
    max-height: calc(100vh - 200px);
  }
  
  .image-viewer-modal .modal-footer {
    padding: var(--space-md);
    min-height: auto;
  }
  
  .image-viewer-modal .modal-btn {
    padding: var(--space-sm) var(--space-md);
    font-size: 0.8rem;
  }
} 

/* Video indicator styles */
.video-indicator {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    z-index: 10;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Video preview styles */
.result-thumbnail video,
.item-thumbnail video,
.thumb video {
    border-radius: inherit;
    transition: transform 0.3s ease;
}

.result-thumbnail:hover video,
.item-thumbnail:hover video,
.thumb:hover video {
    transform: scale(1.05);
}

/* Ensure video thumbnails don't overflow their containers */
.result-thumbnail,
.item-thumbnail,
.thumb {
    position: relative;
    overflow: hidden;
   
}

/* Style for video cards */
.card.video {
    position: relative;
}

.card.video .thumb {
    position: relative;
    overflow: hidden;
}

/* Processing card video support */
.processing-card .video-indicator {
    display: none; /* Hide during processing */
}

/* Hover effects for video indicators */
.video-indicator:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
    transition: all 0.2s ease;
}

/* Video preview loading state */
video[preload="metadata"] {
    background: linear-gradient(45deg, #f0f0f0 25%, transparent 25%), 
                linear-gradient(-45deg, #f0f0f0 25%, transparent 25%), 
                linear-gradient(45deg, transparent 75%, #f0f0f0 75%), 
                linear-gradient(-45deg, transparent 75%, #f0f0f0 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    animation: slide 1s linear infinite;
}

@keyframes slide {
    0% {
        background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    }
    100% {
        background-position: 20px 20px, 20px 30px, 30px 10px, 10px 20px;
    }
}

/* Dark mode video indicator adjustments */
@media (prefers-color-scheme: dark) {
    .video-indicator {
        background: rgba(255, 255, 255, 0.9);
        color: #000;
        border: 1px solid rgba(0, 0, 0, 0.1);
    }
    
    .video-indicator:hover {
        background: rgba(255, 255, 255, 1);
    }
} 

/* Toast notification styles - Modern 2025 Design */
.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 1000000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 400px;
    pointer-events: none;
}

.toast {
    position: relative;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    border-radius: 16px;
    padding: 16px 20px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.12),
        0 2px 8px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 56px;
    opacity: 0;
    transform: translateX(100%) scale(0.9);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: auto;
    overflow: hidden;
}

.toast.show {
    opacity: 1;
    transform: translateX(0) scale(1);
}

.toast::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 4px;
    border-radius: 2px 0 0 2px;
    transition: width 0.3s ease;
}

.toast:hover::before {
    width: 6px;
}

/* Toast type colors with modern gradients */
.toast.success {
    background: linear-gradient(135deg, 
        rgba(16, 185, 129, 0.95) 0%, 
        rgba(5, 150, 105, 0.95) 100%);
    color: white;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.toast.success::before {
    background: linear-gradient(180deg, #34d399, #10b981);
}

.toast.error {
    background: linear-gradient(135deg, 
        rgba(239, 68, 68, 0.95) 0%, 
        rgba(220, 38, 38, 0.95) 100%);
    color: white;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.toast.error::before {
    background: linear-gradient(180deg, #f87171, #ef4444);
}

.toast.warning {
    background: linear-gradient(135deg, 
        rgba(245, 158, 11, 0.95) 0%, 
        rgba(217, 119, 6, 0.95) 100%);
    color: white;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.toast.warning::before {
    background: linear-gradient(180deg, #fbbf24, #f59e0b);
}

.toast.info {
    background: linear-gradient(135deg, 
        var(--primary-alpha-95) 0%, 
        var(--primary-dark-alpha-95) 100%);
    color: white;
    border: 1px solid var(--primary-alpha-30);
}

.toast.info::before {
    background: linear-gradient(180deg, var(--primary-light), var(--primary));
}

/* Toast icon styling */
.toast-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    font-size: 16px;
    font-weight: 700;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.toast:hover .toast-icon {
    transform: scale(1.1) rotate(5deg);
    background: rgba(255, 255, 255, 0.3);
}

/* Toast message styling */
.toast-message {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: -0.01em;
}

/* Toast close button styling */
.toast-close {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 4px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    opacity: 0.7;
    transition: all 0.2s ease;
    font-size: 12px;
    font-weight: 700;
}

.toast-close:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.toast-close:active {
    transform: scale(0.95);
}

/* Hover and interaction effects */
.toast:hover {
    transform: translateX(-4px) scale(1.02);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.15),
        0 4px 12px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* Dark mode adaptations */
@media (prefers-color-scheme: dark) {
    .toast {
        background: rgba(30, 30, 30, 0.95);
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 
            0 8px 32px rgba(0, 0, 0, 0.3),
            0 2px 8px rgba(0, 0, 0, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }
    
    .toast.success {
        background: linear-gradient(135deg, 
            rgba(16, 185, 129, 0.9) 0%, 
            rgba(5, 150, 105, 0.9) 100%);
    }
    
    .toast.error {
        background: linear-gradient(135deg, 
            rgba(239, 68, 68, 0.9) 0%, 
            rgba(220, 38, 38, 0.9) 100%);
    }
    
    .toast.warning {
        background: linear-gradient(135deg, 
            rgba(245, 158, 11, 0.9) 0%, 
            rgba(217, 119, 6, 0.9) 100%);
    }
    
    .toast.info {
        background: linear-gradient(135deg, 
            var(--primary-alpha-90) 0%, 
            var(--primary-dark-alpha-90) 100%);
    }
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .toast-container {
        top: 16px;
        right: 16px;
        left: 16px;
        max-width: none;
    }
    
    .toast {
        padding: 14px 16px;
        border-radius: 12px;
        min-height: 52px;
    }
    
    .toast-icon {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
    
    .toast-message {
        font-size: 13px;
    }
}

/* Animation keyframes for enhanced effects */
@keyframes toastSlideIn {
    0% {
        opacity: 0;
        transform: translateX(100%) scale(0.8) rotate(5deg);
    }
    50% {
        transform: translateX(-10%) scale(1.05) rotate(-1deg);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1) rotate(0deg);
    }
}

@keyframes toastSlideOut {
    0% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateX(100%) scale(0.8);
    }
}

/* Progress bar for timed toasts */
.toast::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 0 0 16px 16px;
    transition: width 4s linear;
    width: 100%;
}

.toast.show::after {
    width: 0%;
}

/* Stacking animation for multiple toasts */
.toast:nth-child(n+4) {
    opacity: 0.8;
    transform: scale(0.95) translateY(-8px);
    pointer-events: none;
}

.toast:nth-child(n+5) {
    display: none;
}

/* Import Lucide Icons - Modern, consistent icon system */
@import url('https://cdn.jsdelivr.net/npm/lucide@latest/dist/umd/lucide.css');

/* Modern Icon System - Designer's Dream */
.icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1em;
    height: 1em;
    stroke-width: 2;
    stroke: currentColor;
    fill: none;
    flex-shrink: 0;
    position: relative;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Icon sizes */
.icon-xs { width: 12px; height: 12px; }
.icon-sm { width: 16px; height: 16px; }
.icon-md { width: 20px; height: 20px; }
.icon-lg { width: 24px; height: 24px; }
.icon-xl { width: 32px; height: 32px; }



/* Icon button styling */
.icon-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    font-size: 14px;
}

.icon-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    transform: translateY(-1px);
}

.icon-btn:active {
    transform: translateY(0);
}

/* Update existing icon classes to use modern icons */
.logo-icon,
.tab-icon,
.type-icon,
.item-icon,
.btn-icon,
.placeholder-icon,
.toast-icon,
.processing-icon,
.failed-icon,
.error-icon,
.video-indicator {
    font-family: inherit;
    font-style: normal;
    font-weight: normal;
}

/* Update video indicator to use modern icon */
.video-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.video-indicator::after {
    content: '';
    width: 16px;
    height: 16px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='23,12 6,2 6,22'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* Responsive icon adjustments */
@media (max-width: 768px) {
    .icon-btn {
        padding: 6px 10px;
        font-size: 13px;
        gap: 6px;
    }
    
    .icon-sm { width: 14px; height: 14px; }
    .icon-md { width: 18px; height: 18px; }
    .icon-lg { width: 20px; height: 20px; }
}

/* ✨ STUNNING GRADIENT ICON SYSTEM - DESIGNER'S DREAM ✨ */

/* Base Icon System with Magic Transitions */
.icon, [class*="icon-"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1em;
    height: 1em;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
    transform-origin: center;
}

/* Icon Sizes with Proportional Effects */
.icon-xs { width: 12px; height: 12px; }
.icon-sm { width: 16px; height: 16px; }
.icon-md { width: 20px; height: 20px; }
.icon-lg { width: 24px; height: 24px; }
.icon-xl { width: 32px; height: 32px; }

/* 🌟 BEAUTIFUL COLORED SVG ICONS 🌟 */

/* ⚡ Lightning/Spark - Golden Electric */
.icon-spark::before, .icon-zap::before { 
    content: '';
    width: 100%;
    height: 100%;
   
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='1.5' stroke='%23D369C7'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='m3.75 13.5 10.5-11.25L12 10.5h8.25L9.75 21.75 12 13.5H3.75Z'/%3E%3C/svg%3E");

}


/* 🎨 Image - Ocean Blue */
.icon-image::before { 
    content: '';
    width: 100%;
    height: 100%;
    
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='1.5' stroke='%23A1A1AA'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='m2.25 15.75 5.159-5.159a2.25 2.25 0 0 1 3.182 0l5.159 5.159m-1.5-1.5 1.409-1.409a2.25 2.25 0 0 1 3.182 0l2.909 2.909m-18 3.75h16.5a1.5 1.5 0 0 0 1.5-1.5V6a1.5 1.5 0 0 0-1.5-1.5H3.75A1.5 1.5 0 0 0 2.25 6v12a1.5 1.5 0 0 0 1.5 1.5Zm10.5-11.25h.008v.008h-.008V8.25Zm.375 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Z'/%3E%3C/svg%3E");

}
#generate-btn .icon-zap{
  font-size:1.3rem;
}


/* 🎬 Video - Vibrant Red */
.icon-video::before { 
    content: '';
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='1.5' stroke='%23A1A1AA'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='m15.75 10.5 4.72-4.72a.75.75 0 0 1 1.28.53v11.38a.75.75 0 0 1-1.28.53l-4.72-4.72M4.5 18.75h9a2.25 2.25 0 0 0 2.25-2.25v-9a2.25 2.25 0 0 0-2.25-2.25h-9A2.25 2.25 0 0 0 2.25 7.5v9a2.25 2.25 0 0 0 2.25 2.25Z'/%3E%3C/svg%3E");

}


/* 🖼️ Gallery - Sunset Orange */
.icon-gallery::before { 
    content: '';
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23ff9a8b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 22H4a2 2 0 0 1-2-2V6'/%3E%3Cpath d='m22 13-1.296-1.296a2.41 2.41 0 0 0-3.408 0L11 18'/%3E%3Ccircle cx='12' cy='8' r='2'/%3E%3Crect width='16' height='16' x='6' y='2' rx='2'/%3E%3C/svg%3E") center/contain no-repeat;
}


/* 💎 Diamond - Purple */
.icon-diamond::before { 
    content: '';
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%234e83c8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.7 10.3a2.41 2.41 0 0 0 0 3.41l7.59 7.59a2.41 2.41 0 0 0 3.41 0l7.59-7.59a2.41 2.41 0 0 0 0-3.41l-7.59-7.59a2.41 2.41 0 0 0-3.41 0Z'/%3E%3C/svg%3E") center/contain no-repeat;
}


/* 💳 Wallet - Money Green */
.icon-wallet::before { 
    content: '';
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='1.5' stroke='%234e83c8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M2.25 8.25h19.5M2.25 9h19.5m-16.5 5.25h6m-6 2.25h3m-3.75 3h15a2.25 2.25 0 0 0 2.25-2.25V6.75A2.25 2.25 0 0 0 19.5 4.5h-15a2.25 2.25 0 0 0-2.25 2.25v10.5A2.25 2.25 0 0 0 4.5 19.5Z'/%3E%3C/svg%3E") center/contain no-repeat;
}


/* 💰 Coins - Golden */
.icon-coins::before { 
    content: '';
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23f7971e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='8' cy='8' r='6'/%3E%3Cpath d='m18.09 10.37a6 6 0 1 1-10.77 0'/%3E%3Cpath d='M7 6h1v4'/%3E%3Cpath d='m16.71 13.88.7.71-2.82 2.82'/%3E%3C/svg%3E") center/contain no-repeat;
}


/* ⚙️ Settings - Tech Blue */
.icon-settings::before { 
    content: '';
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='1.5' stroke='%234facfe'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M2.25 8.25h19.5M2.25 9h19.5m-16.5 5.25h6m-6 2.25h3m-3.75 3h15a2.25 2.25 0 0 0 2.25-2.25V6.75A2.25 2.25 0 0 0 19.5 4.5h-15a2.25 2.25 0 0 0-2.25 2.25v10.5A2.25 2.25 0 0 0 4.5 19.5Z'/%3E%3C/svg%3E");

}


/* 🚪 Logout - Danger Red */
.icon-logout::before { 
    content: '';
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23ff416c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4'/%3E%3Cpolyline points='16,17 21,12 16,7'/%3E%3Cline x1='21' y1='12' x2='9' y2='12'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* ⬇️ Download - Success Green */
.icon-download::before { 
    content: '';
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2356ab2f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpolyline points='7,10 12,15 17,10'/%3E%3Cline x1='12' y1='15' x2='12' y2='3'/%3E%3C/svg%3E") center/contain no-repeat;
}


/* 👁️ Eye/View - Ocean Blue */
.icon-eye::before { 
    content: '';
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23A1A1AA' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center/contain no-repeat;
}


/* 🗑️ Trash - Danger Red */
.icon-trash::before { 
    content: '';
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23fc466b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h18'/%3E%3Cpath d='M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6'/%3E%3Cpath d='M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* 🛡️ Shield - Protection Blue */
.icon-shield::before { 
    content: '';
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%233b82f6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* ✓ Check - Success Green */
.icon-check::before { 
    content: '';
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2356ab2f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* ✕ X/Close - Elegant Gray */
.icon-x::before { 
    content: '';
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%236c757d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 6 6 18'/%3E%3Cpath d='m6 6 12 12'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* ⚠️ Alert - Warning Orange */
.icon-alert::before { 
    content: '';
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23f39c12' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z'/%3E%3Cpath d='M12 9v4'/%3E%3Cpath d='M12 17h.01'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* ℹ️ Info - Cool Blue */
.icon-info::before { 
    content: '';
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%233498db' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 16v-4'/%3E%3Cpath d='M12 8h.01'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* 📅 Calendar - Fresh Blue */
.icon-calendar::before { 
    content: '';
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23A1A1AA' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 2v4'/%3E%3Cpath d='M16 2v4'/%3E%3Crect width='18' height='18' x='3' y='4' rx='2'/%3E%3Cpath d='M3 10h18'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* 🎯 Target - Focus Red */
.icon-target::before { 
    content: '';
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23ff5f5f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Ccircle cx='12' cy='12' r='6'/%3E%3Ccircle cx='12' cy='12' r='2'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* 📦 Package - Warm Orange */
.icon-package::before { 
    content: '';
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23f39c12' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7.5 4.27 9 5.15'/%3E%3Cpath d='M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z'/%3E%3Cpath d='m3.3 7 8.7 5 8.7-5'/%3E%3Cpath d='M12 22V12'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* 📊 Chart - Data Purple */
.icon-chart::before { 
    content: '';
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23A1A1AA' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3v18h18'/%3E%3Cpath d='m19 9-5 5-4-4-3 3'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* 👥 Users - Social Blue */
.icon-users::before { 
    content: '';
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%234facfe' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2'/%3E%3Cpath d='M16 7a4 4 0 1 1-8 0 4 4 0 0 1 8 0z'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* 🧠 Brain/AI - Neural Purple */
.icon-brain::before { 
    content: '';
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23a8edea' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z'/%3E%3Cpath d='M12 5a3 3 0 1 1 5.997.125 4 4 0 0 1 2.526 5.77 4 4 0 0 1-.556 6.588A4 4 0 1 1 12 18Z'/%3E%3Cpath d='M15 13a4.5 4.5 0 0 1-3-4 4.5 4.5 0 0 1-3 4'/%3E%3Cpath d='M17.599 6.5a3 3 0 0 0 .399-1.375'/%3E%3Cpath d='M6.003 5.125A3 3 0 0 0 6.401 6.5'/%3E%3Cpath d='M3.477 10.896a4 4 0 0 1 .585-.396'/%3E%3Cpath d='M19.938 10.5a4 4 0 0 1 .585.396'/%3E%3Cpath d='M6 18a4 4 0 0 1-1.967-.516'/%3E%3Cpath d='M19.967 17.484A4 4 0 0 1 18 18'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* 🧪 Flask/Test - Science Green */
.icon-flask::before { 
    content: '';
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2311998e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 2v6l-3 7a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1l-3-7V2'/%3E%3Cpath d='M9 2h6'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* Magic Wand - Purple Dream */
.icon-wand {
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
}

.icon-wand::before { 
    content: '';
    width: 100%;
    height: 100%;
    display: block;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='1.5' stroke='%23D369C7'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='m3.75 13.5 10.5-11.25L12 10.5h8.25L9.75 21.75 12 13.5H3.75Z'/%3E%3C/svg%3E");

}

.icon-spinner {
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
}

.icon-spinner::before {
    content: '';
    width: 100%;
    height: 100%;
    display: block;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12a9 9 0 1 1-6.219-8.56'/%3E%3C/svg%3E") center/contain no-repeat;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 🔍 Search - Magnifying Glass */
.icon-search::before { 
    content: '';
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* 🎬 Video Indicator - Special Treatment */
.video-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, rgba(255, 95, 95, 0.9) 0%, rgba(255, 0, 110, 0.9) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(255, 0, 110, 0.3);
}

.video-indicator::after {
    content: '';
    width: 12px;
    height: 12px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='white' stroke='none'%3E%3Cpolygon points='5,3 19,12 5,21'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* ✨ MAGICAL ANIMATIONS ✨ */

@keyframes sparkle {
    0%, 100% { transform: scale(1) rotate(0deg); filter: brightness(1) hue-rotate(0deg); }
    50% { transform: scale(1.2) rotate(5deg); filter: brightness(1.3) hue-rotate(15deg); }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes prismatic {
    0% { filter: hue-rotate(0deg) brightness(1); }
    50% { filter: hue-rotate(180deg) brightness(1.2); }
    100% { filter: hue-rotate(360deg) brightness(1); }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 5px var(--primary-alpha-50); }
    50% { box-shadow: 0 0 20px var(--primary-alpha-80), 0 0 30px var(--primary-alpha-40); }
}

/* 🎨 CONTEXTUAL ICON COLORS 🎨 */

/* Navigation Icons - Adapt to Theme */
.nav-tab .icon {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.nav-tab.active .icon {
    animation: glow 2s ease-in-out infinite;
}

/* Active/Selected State Icon Colors - Change SVG stroke to primary-light */
.nav-tab.active .icon-image::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='1.5' stroke='%23FFD93D'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='m2.25 15.75 5.159-5.159a2.25 2.25 0 0 1 3.182 0l5.159 5.159m-1.5-1.5 1.409-1.409a2.25 2.25 0 0 1 3.182 0l2.909 2.909m-18 3.75h16.5a1.5 1.5 0 0 0 1.5-1.5V6a1.5 1.5 0 0 0-1.5-1.5H3.75A1.5 1.5 0 0 0 2.25 6v12a1.5 1.5 0 0 0 1.5 1.5Zm10.5-11.25h.008v.008h-.008V8.25Zm.375 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Z'/%3E%3C/svg%3E") !important;
}

.nav-tab.active .icon-video::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='1.5' stroke='%23FFD93D'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='m15.75 10.5 4.72-4.72a.75.75 0 0 1 1.28.53v11.38a.75.75 0 0 1-1.28.53l-4.72-4.72M4.5 18.75h9a2.25 2.25 0 0 0 2.25-2.25v-9a2.25 2.25 0 0 0-2.25-2.25h-9A2.25 2.25 0 0 0 2.25 7.5v9a2.25 2.25 0 0 0 2.25 2.25Z'/%3E%3C/svg%3E") !important;
}

.nav-tab.active .icon-diamond::before {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23FFD93D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.7 10.3a2.41 2.41 0 0 0 0 3.41l7.59 7.59a2.41 2.41 0 0 0 3.41 0l7.59-7.59a2.41 2.41 0 0 0 0-3.41l-7.59-7.59a2.41 2.41 0 0 0-3.41 0Z'/%3E%3C/svg%3E") center/contain no-repeat !important;
}

.nav-tab.active .icon-gallery::before {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23FFD93D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 22H4a2 2 0 0 1-2-2V6'/%3E%3Cpath d='m22 13-1.296-1.296a2.41 2.41 0 0 0-3.408 0L11 18'/%3E%3Ccircle cx='12' cy='8' r='2'/%3E%3Crect width='16' height='16' x='6' y='2' rx='2'/%3E%3C/svg%3E") center/contain no-repeat !important;
}

.nav-tab.active .icon-spark::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='1.5' stroke='%23FFD93D'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='m3.75 13.5 10.5-11.25L12 10.5h8.25L9.75 21.75 12 13.5H3.75Z'/%3E%3C/svg%3E");

  }

/* Type button active states */
.type-btn.active .icon-image::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='1.5' stroke='%23FFD93D'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='m2.25 15.75 5.159-5.159a2.25 2.25 0 0 1 3.182 0l5.159 5.159m-1.5-1.5 1.409-1.409a2.25 2.25 0 0 1 3.182 0l2.909 2.909m-18 3.75h16.5a1.5 1.5 0 0 0 1.5-1.5V6a1.5 1.5 0 0 0-1.5-1.5H3.75A1.5 1.5 0 0 0 2.25 6v12a1.5 1.5 0 0 0 1.5 1.5Zm10.5-11.25h.008v.008h-.008V8.25Zm.375 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Z'/%3E%3C/svg%3E") !important;
}

.type-btn.active .icon-video::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='1.5' stroke='%23FFD93D'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='m15.75 10.5 4.72-4.72a.75.75 0 0 1 1.28.53v11.38a.75.75 0 0 1-1.28.53l-4.72-4.72M4.5 18.75h9a2.25 2.25 0 0 0 2.25-2.25v-9a2.25 2.25 0 0 0-2.25-2.25h-9A2.25 2.25 0 0 0 2.25 7.5v9a2.25 2.25 0 0 0 2.25 2.25Z'/%3E%3C/svg%3E") !important;
}

/* Filter tab active states */
.filter-tab.active .icon-image::before,
.filter-tab.active .icon-video::before {
    filter: brightness(1.5);
}

/* Visibility option selected states */
.visibility-option.selected .icon-eye::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='1.5' stroke='%23FFD93D'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M2.036 12.322a1.012 1.012 0 0 1 0-.639C3.423 7.51 7.36 4.5 12 4.5c4.638 0 8.573 3.007 9.963 7.178.07.207.07.431 0 .639C20.577 16.49 16.64 19.5 12 19.5c-4.638 0-8.573-3.007-9.963-7.178Z'/%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z'/%3E%3C/svg%3E") !important;
}

.visibility-option.selected .icon-eye-off::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='1.5' stroke='%23FFD93D'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M3.98 8.223A10.477 10.477 0 0 0 1.934 12C3.226 16.338 7.244 19.5 12 19.5c.993 0 1.953-.138 2.863-.395M6.228 6.228A10.451 10.451 0 0 1 12 4.5c4.756 0 8.773 3.162 10.065 7.498a10.522 10.522 0 0 1-4.293 5.774M6.228 6.228 3 3m3.228 3.228 3.65 3.65m7.894 7.894L21 21m-3.228-3.228-3.65-3.65m0 0a3 3 0 1 0-4.243-4.243m4.242 4.242L9.88 9.88'/%3E%3C/svg%3E") !important;
}

/* Pagination button active states */
.pagination-page.active {
    background: var(--primary);
    color: white;
}

/* Button Icons - Enhanced Interaction */
.icon-btn:hover .icon {
    transform: scale(1.15) rotate(-3deg);
    filter: brightness(1.2) drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

/* Toast Icons - Prominent Display */
.toast-icon .icon {
    width: 20px;
    height: 20px;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.2));
}

/* 🔥 BUTTON ICON OVERRIDES - WHITE ICONS FOR COLORED BUTTONS 🔥 */

/* Overlay button SVG icons are now inline */

/* Delete Button Icons - WHITE for better contrast */
.delete-btn .icon-x::before {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 6 6 18'/%3E%3Cpath d='m6 6 12 12'/%3E%3C/svg%3E") center/contain no-repeat !important;
}

/* Modal Button Icons - WHITE for colored modal buttons */
.modal-btn .icon-download::before {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpolyline points='7,10 12,15 17,10'/%3E%3Cline x1='12' y1='15' x2='12' y2='3'/%3E%3C/svg%3E") center/contain no-repeat !important;
}


/* Hover effects handled by SVG fill/stroke */

.delete-btn:hover .icon-x::before {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.9)' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 6 6 18'/%3E%3Cpath d='m6 6 12 12'/%3E%3C/svg%3E") center/contain no-repeat !important;
}

/* Update existing icon classes to use modern icons */
.logo-icon,
.tab-icon,
.type-icon,
.item-icon,
.btn-icon,
.placeholder-icon,
.toast-icon,
.processing-icon,
.failed-icon,
.error-icon {
    font-family: inherit;
    font-style: normal;
    font-weight: normal;
}

/* Icon button styling */
.icon-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-weight: 500;
    font-size: 14px;
    position: relative;
    overflow: hidden;
}

.icon-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;
}

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

.icon-btn:hover {
    background: linear-gradient(135deg, var(--primary-alpha-10), rgba(118, 75, 162, 0.1));
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.icon-btn:active {
    transform: translateY(0);
}

/* Responsive icon adjustments */
@media (max-width: 768px) {
    .icon-btn {
        padding: 6px 10px;
        font-size: 13px;
        gap: 6px;
    }
    
    .icon-sm { width: 14px; height: 14px; }
    .icon-md { width: 18px; height: 18px; }
    .icon-lg { width: 20px; height: 20px; }
}

/* Dark mode adaptations */
@media (prefers-color-scheme: dark) {
    .icon:hover {
        filter: drop-shadow(0 4px 16px rgba(255, 255, 255, 0.1)) brightness(1.2);
    }
    
    .video-indicator {
        box-shadow: 0 4px 15px rgba(255, 0, 110, 0.5);
    }
}

/* Image Edit Modal Styles */
.edit-examples-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
}

.edit-example-btn {
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    text-align: left;
}

.edit-example-btn:hover {
    border-color: var(--primary);
    background: var(--primary-alpha-10);
    transform: translateY(-2px);
}

.example-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.example-title {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.875rem;
}

/* Progress Bar Styles */
.progress-bar-container {
    width: 100%;
    height: 8px;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: var(--space-sm);
}

.progress-bar {
    height: 100%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: var(--radius-lg);
    transition: width 0.3s ease;
    box-shadow: 0 2px 8px vr(--primary-alpha-40);
}

.progress-text {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 600;
}

/* Pagination Styles */
.pagination-container {
  padding: var(--space-xl) 0;
  display: flex;
  justify-content: center;
}

.pagination {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  background: var(--bg-glass);
  padding: var(--space-md);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
}

.pagination-btn {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  transition: all var(--transition-fast);
}

.pagination-btn:hover:not(:disabled) {
  background: var(--bg-glass-hover);
  border-color: var(--primary);
  transform: translateY(-1px);
}

.pagination-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.pagination-pages {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.pagination-page {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-weight: 600;
  min-width: 40px;
  text-align: center;
  transition: all var(--transition-fast);
}

.pagination-page:hover:not(.active) {
  background: var(--bg-glass-hover);
  border-color: var(--primary);
}

.pagination-page.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  box-shadow: 0 2px 8px var(--primary-alpha-30);
}

.pagination-ellipsis {
  color: var(--text-muted);
  padding: 0 var(--space-xs);
}

/* Arrow icons for pagination */
.icon-arrow-left, .icon-arrow-right {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
}

.icon-arrow-left {
  margin-right: 5px;
  margin-top:-4px;
}

.icon-arrow-left::before {
  content: '←';
  font-size: 1.2rem;
  line-height: 1;
}

.icon-arrow-right {
  margin-left: 5px;
  margin-top:-4px;
}

.icon-arrow-right::before {
  content: '→';
  font-size: 1.2rem;
  line-height: 1;
}

/* Notification Styles */
.notification {
  position: fixed;
  bottom: 20px;
  right: 20px;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-md) var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    box-shadow: var(--shadow-xl);
    transform: translateX(400px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 10000;
    min-width: 300px;
}

.notification.show {
    transform: translateX(0);
}

.notification-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.notification-success .notification-icon {
    background: var(--success);
    color: white;
}

.notification-error .notification-icon {
    background: var(--danger);
    color: white;
}

.notification-info .notification-icon {
    background: var(--primary);
    color: white;
}

.notification-warning .notification-icon {
    background: var(--warning);
    color: white;
}

.notification-message {
    color: var(--text-primary);
    font-weight: 500;
}




 
/* All login-page related styles are now namespaced to body.login-page */

body.login-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #0a0b0f 0%, #1a1b23 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
  overflow: hidden;
}

/* Animated Background Elements */
body.login-page .login-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  overflow: hidden;
}

body.login-page .floating-elements {
  position: absolute;
  width: 100%;
  height: 100%;
}

body.login-page .floating-card {
  position: absolute;
  background: linear-gradient(135deg, var(--primary-alpha-10), rgba(236, 72, 153, 0.1));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  backdrop-filter: blur(20px);
  animation: float 6s ease-in-out infinite;
}

body.login-page .floating-card:nth-child(1) {
  width: 200px;
  height: 120px;
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

body.login-page .floating-card:nth-child(2) {
  width: 160px;
  height: 90px;
  top: 20%;
  right: 15%;
  animation-delay: 2s;
}

body.login-page .floating-card:nth-child(3) {
  width: 180px;
  height: 100px;
  bottom: 25%;
  left: 8%;
  animation-delay: 4s;
}

body.login-page .floating-card:nth-child(4) {
  width: 140px;
  height: 80px;
  bottom: 15%;
  right: 20%;
  animation-delay: 1s;
}

body.login-page .floating-card:nth-child(5) {
  width: 220px;
  height: 130px;
  top: 50%;
  left: 5%;
  animation-delay: 3s;
}

body.login-page .floating-card:nth-child(6) {
  width: 150px;
  height: 85px;
  top: 70%;
  right: 10%;
  animation-delay: 5s;
}

/* Keep keyframes global */
@keyframes float {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
    opacity: 0.3;
  }
  25% {
    transform: translateY(-20px) rotate(1deg);
    opacity: 0.5;
  }
  50% {
    transform: translateY(-10px) rotate(-1deg);
    opacity: 0.4;
  }
  75% {
    transform: translateY(-30px) rotate(0.5deg);
    opacity: 0.6;
  }
}

/* Grid Pattern Background */
body.login-page .grid-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(rgba(255, 165, 0, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 165, 0, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: gridMove 20s linear infinite;
}

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

/* Gradient Orbs */
body.login-page .gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.3;
  animation: orbFloat 8s ease-in-out infinite;
}

body.login-page .gradient-orb:nth-child(1) {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--primary-alpha-40), transparent);
  top: -150px;
  left: -150px;
  animation-delay: 0s;
}

body.login-page .gradient-orb:nth-child(2) {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.3), transparent);
  bottom: -200px;
  right: -200px;
  animation-delay: 4s;
}

body.login-page .gradient-orb:nth-child(3) {
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.2), transparent);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: 2s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(20px, -30px) scale(1.1); }
  50% { transform: translate(-10px, 20px) scale(0.9); }
  75% { transform: translate(30px, 10px) scale(1.05); }
}

/* Login Container */
body.login-page .login-container {
  position: relative;
  z-index: 10;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 48px;
  padding-left: 30px;
  padding-right: 30px;
  backdrop-filter: blur(20px);
  box-shadow: 
    0 32px 64px rgba(0, 0, 0, 0.4),
    0 16px 32px rgba(0, 0, 0, 0.2),
    inset 0 2px 0 rgba(255, 255, 255, 0.1);
  width: 100%;
  max-width: 440px;
  animation: slideInUp 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slideInUp {
  0% {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Header */
body.login-page .login-header {
  text-align: center;
  margin-bottom: 40px;
}

body.login-page .login-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
}

body.login-page .logo-text-section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

body.login-page .logo-image {
 
  height: 60px;
  object-fit: contain;
}

body.login-page .logo-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--primary), #EC4899);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  color: white;
  box-shadow: 
    0 8px 24px var(--primary-alpha-30),
    0 4px 12px rgba(0, 0, 0, 0.1);
}

body.login-page .logo-text {
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
}


body.login-page .logo-clip {
  background: linear-gradient(90deg, #a855f7, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

body.login-page .logo-luma {
  color: #ffffff;
}

body.login-page .logo-separator {
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #a855f7, #ec4899);
}

body.login-page .logo-tagline {
  font-size: 14px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
  text-align: left;
  margin-top: 0;
}

body.login-page .login-title {
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 8px 0;
  line-height: 1.2;
}

body.login-page .login-subtitle {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  font-weight: 500;
}

/* Form Styles */
body.login-page .login-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

body.login-page .form-group {
  position: relative;
}

body.login-page .form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 8px;
}

body.login-page .form-input {
  width: 100%;
  padding: 16px 20px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  backdrop-filter: blur(20px);
  box-sizing: border-box;
}

body.login-page .form-input:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 
    0 0 0 4px var(--primary-alpha-10),
    0 8px 24px var(--primary-alpha-20);
  transform: translateY(-2px);
}

body.login-page .form-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
  font-weight: 400;
}

/* Login Button */
body.login-page .login-button {
  width: 100%;
  padding: 18px 24px;
  border: none;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--text-on-yellow);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);

  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  position: relative;
  margin-top: 8px;
}

body.login-page .login-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 255, 255, 0.3), 
    transparent
  );
  transition: left 0.5s ease;
}

body.login-page .login-button:hover::before {
  left: 100%;
}

body.login-page .login-button:hover {
  transform: translateY(-3px);

  filter: brightness(1.1);
}

body.login-page .login-button:active {
  transform: translateY(-1px);
  box-shadow: 
    0 8px 20px var(--primary-alpha-40),
    0 4px 12px var(--primary-alpha-20),
    inset 0 3px 6px rgba(0, 0, 0, 0.15);
  filter: brightness(0.95);
}

body.login-page .login-button:disabled {
  opacity: 0.6;
  transform: none;
  cursor: not-allowed;
}

/* Login Links (Forgot Password / Back to Login) */
body.login-page .login-links {
  text-align: center;
  margin-top: var(--space-lg);
  transition: all 0.3s ease;
}

body.login-page .login-link {
  color: var(--primary-light);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

body.login-page .login-link:hover {
  color: var(--primary);
  transform: translateX(2px);
}

body.login-page .login-link.back-link {
  display: none;
}

body.login-page .login-link .link-icon {
  font-size: 1.1rem;
}

/* Form Groups with Transitions */
body.login-page #password-group,
body.login-page #confirm-password-group {
  transition: all 0.3s ease;
}

body.login-page #confirm-password-group {
  display: none;
  opacity: 0;
}

/* Loading State */
body.login-page .button-loading {
  display: none;
  align-items: center;
  gap: 8px;
}

body.login-page .loading-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Footer */
body.login-page .login-footer {
  text-align: center;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

body.login-page .login-footer p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  margin: 0;
}

/* Error Message */
body.login-page .error-message {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #FCA5A5;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 16px;
  display: none;
  animation: errorSlide 0.3s ease-out;
}

@keyframes errorSlide {
  0% {
    opacity: 0;
    transform: translateY(-10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  body.login-page .login-container {
    padding: 32px 24px;
    margin: 16px;
    border-radius: 20px;
  }

  body.login-page .login-title {
    font-size: 28px;
  }

  body.login-page .logo-text {
    font-size: 24px;
  }

  body.login-page .logo-icon {
    width: 44px;
    height: 44px;
    font-size: 20px;
  }

  body.login-page .floating-card {
    opacity: 0.2;
  }
}

@media (max-width: 480px) {
  body.login-page {
    padding: 12px;
  }

  body.login-page .login-container {
    padding: 24px 20px;
  }

  body.login-page .login-title {
    font-size: 24px;
  }

  body.login-page .form-input {
    padding: 14px 16px;
    font-size: 16px; /* Prevent zoom on iOS */
  }

  body.login-page .login-button {
    padding: 16px 20px;
  }
}



/* Visibility Options (reuse model-card styles) */
.visibility-option input[type="radio"] { display: none; }
.visibility-option.active .model-cost { background: var(--success); }

/* SVG Icons for Visibility and UI */
.icon-globe::before {
  content: '';
  width: 20px;
  height: 20px;
  display: block;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='1.5' stroke='%23A1A1AA'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M2.036 12.322a1.012 1.012 0 0 1 0-.639C3.423 7.51 7.36 4.5 12 4.5c4.638 0 8.573 3.007 9.963 7.178.07.207.07.431 0 .639C20.577 16.49 16.64 19.5 12 19.5c-4.638 0-8.573-3.007-9.963-7.178Z'/%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z'/%3E%3C/svg%3E");

}

.icon-lock::before {
  content: '';
  width: 20px;
  height: 20px;
  display: block;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='1.5' stroke='%23A1A1AA'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M3.98 8.223A10.477 10.477 0 0 0 1.934 12C3.226 16.338 7.244 19.5 12 19.5c.993 0 1.953-.138 2.863-.395M6.228 6.228A10.451 10.451 0 0 1 12 4.5c4.756 0 8.773 3.162 10.065 7.498a10.522 10.522 0 0 1-4.293 5.774M6.228 6.228 3 3m3.228 3.228 3.65 3.65m7.894 7.894L21 21m-3.228-3.228-3.65-3.65m0 0a3 3 0 1 0-4.243-4.243m4.242 4.242L9.88 9.88'/%3E%3C/svg%3E");


}

.icon-settings::before {
  content: '';
  width: 20px;
  height: 20px;
  display: block;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='1.5' stroke='%23A1A1AA'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M10.5 6h9.75M10.5 6a1.5 1.5 0 1 1-3 0m3 0a1.5 1.5 0 1 0-3 0M3.75 6H7.5m3 12h9.75m-9.75 0a1.5 1.5 0 0 1-3 0m3 0a1.5 1.5 0 0 0-3 0m-3.75 0H7.5m9-6h3.75m-3.75 0a1.5 1.5 0 0 1-3 0m3 0a1.5 1.5 0 0 0-3 0m-9.75 0h9.75'/%3E%3C/svg%3E");

}

.icon-bell-notification::before {
  content: '';
  width: 20px;
  height: 20px;
 
  display: block;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9'/%3E%3Cpath d='M10.3 21a1.94 1.94 0 0 0 3.4 0'/%3E%3C/svg%3E") center/contain no-repeat;
}

.visibility-option.selected .model-cost {
  background: var(--primary);
}

/* Center align SVG icons in model cards */
.model-icon { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; }
.icon-globe, .icon-lock, .icon-settings, .icon-bell-notification { display: inline-flex; align-items: center; justify-content: center; }
.icon-globe::before, .icon-lock::before, .icon-settings::before, .icon-bell-notification::before { display: inline-flex; align-items: center; justify-content: center; }

/* Project Action Icons */
.icon-project-create, .icon-project-rename, .icon-project-delete {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    margin-right: 8px;
}

.icon-project-create::before {
    content: '';
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='1.5' stroke='%23A1A1AA'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M12 4.5v15m7.5-7.5h-15' /%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.icon-project-rename::before {
    content: '';
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='1.5' stroke='%23A1A1AA'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='m16.862 4.487 1.687-1.688a1.875 1.875 0 1 1 2.652 2.652L6.832 19.82a4.5 4.5 0 0 1-1.897 1.13l-2.685.8.8-2.685a4.5 4.5 0 0 1 1.13-1.897L16.863 4.487Zm0 0L19.5 7.125' /%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.icon-project-delete::before {
    content: '';
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='1.5' stroke='%23A1A1AA'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='m14.74 9-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 0 1-2.244 2.077H8.084a2.25 2.25 0 0 1-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 0 0-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 0 1 3.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 0 0-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 0 0-7.5 0' /%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}
.model-info { display: flex; align-items: center; gap: var(--space-sm); }

/* Public/User-Generated Badge */

/* Public/User-Generated Badge */
.public-badge { 
  display: inline-flex; 
  align-items: center; 
  justify-content: center;
  gap: 4px; 
  padding: 4px 8px; 
  color: var(--primary); 
  border-radius: var(--radius-sm); 
  font-size: 0.75rem; 
  transition: all 0.2s;
  min-width: 24px;
  min-height: 20px;
  position: relative;
  cursor: help;
}

.public-badge i { 
  font-size: 0.75rem; 
  color: var(--text-muted); 
}

/* Beautiful tooltip */
.public-badge::before {
  content: attr(title);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-5px);
  padding: 8px 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--text-on-yellow);
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: var(--radius-md);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 
    0 8px 20px var(--primary-alpha-30),
    0 4px 10px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  z-index: 1000;
}

.public-badge::after {
  content: '';
  position: absolute;
  bottom: calc(100% + 2px);
  left: 50%;
  transform: translateX(-50%) translateY(-5px);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid var(--primary-dark);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 1000;
}

.public-badge:hover::before,
.public-badge:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Generate Initial Image Button */
.generate-initial-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--text-on-yellow);
  border: none;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
 
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  overflow: hidden;
  position: relative;
}

.generate-initial-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
}

.generate-initial-btn:active {
  transform: translateY(0);
  filter: brightness(0.95);
}



/* Generate Initial Images Modal */
.generate-images-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
}

.generate-images-modal.show {
  display: flex;
}

.generate-images-modal-content {
  background: var(--bg-primary);
  border-radius: 16px;
  max-width: 1200px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

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

.generate-images-modal-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
}

.generate-images-modal-close {
  background: transparent;
  border: none;
  font-size: 24px;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.generate-images-modal-close:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.generate-images-modal-body {
  padding: 24px;
}

.generate-images-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.generated-image-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-secondary);
}

.generated-image-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.generated-image-skeleton {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--bg-secondary) 25%, var(--bg-tertiary) 50%, var(--bg-secondary) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s ease-in-out infinite;
}

@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.generated-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.generated-image-item:hover .generated-image-overlay {
  opacity: 1;
}

.generated-image-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.generated-image-btn.add-to-library {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.generated-image-btn.use-in-video {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
}

.generated-image-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Gallery Admin Dropdown */
.gallery-admin-dropdown {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 11;
}

.gallery-admin-dropdown-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 18px;
  backdrop-filter: blur(10px);
}

.gallery-admin-dropdown-btn:hover {
  background: rgba(0, 0, 0, 0.9);
  border-color: var(--primary);
  transform: scale(1.05);
}

/* PRO Badge */
.pro-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: linear-gradient(135deg, #FFD700, #FFA500);
  color: #1a1b23;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
  z-index: 10;
}

/* Adjust PRO badge position when admin dropdown is present */
.gallery-admin-dropdown + .delete-btn + .status-badge + .pro-badge,
.gallery-admin-dropdown ~ .pro-badge {
  top: 50px;
}

/* Gallery items that need PRO - always show overlay with lock */
.gallery-item.needs-pro .item-overlay {
  opacity: 1 !important;
  background: linear-gradient(135deg, rgba(0,0,0,0.4), rgba(0,0,0,0.6));
  pointer-events: none;

}

.gallery-item.needs-pro .item-overlay .overlay-btn {
  opacity: 0.3;
  pointer-events: none;
  cursor: not-allowed;
  filter: blur(2px);
}

.gallery-item.needs-pro .item-thumbnail {
  cursor: pointer;
}

.gallery-item.needs-pro .item-thumbnail img,
.gallery-item.needs-pro .item-thumbnail video {

  transition: filter 0.3s ease;
}

/* Hover effect for PRO items */
.gallery-item.needs-pro:hover .item-thumbnail img,
.gallery-item.needs-pro:hover .item-thumbnail video {
  filter: blur(5px);
}

.gallery-item.needs-pro:hover .item-overlay {
  background: linear-gradient(135deg, rgba(0,0,0,0.5), rgba(0,0,0,0.7));
}

.gallery-item.needs-pro:hover .item-overlay::before {
  transform: translate(-50%, -50%) scale(1.1);
}

/* Beautiful lock icon with background for PRO items */
.gallery-item.needs-pro .item-overlay::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.95), rgba(255, 165, 0, 0.95));
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(255, 215, 0, 0.3);
  z-index: 21;
  pointer-events: none;

  transition: transform 0.3s ease;
}

/* SVG lock icon */
.gallery-item.needs-pro .item-overlay::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%231a1b23" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="11" width="18" height="11" rx="2" ry="2"></rect><path d="M7 11V7a5 5 0 0 1 10 0v4"></path></svg>');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  z-index: 22;
  pointer-events: none;
}

@keyframes pulse {
  0%, 100% { 
    opacity: 0.9; 
    transform: translate(-50%, -50%) scale(1);
    box-shadow: 0 8px 32px rgba(255, 215, 0, 0.3);
  }
  50% { 
    opacity: 1; 
    transform: translate(-50%, -50%) scale(1.05);
    box-shadow: 0 12px 40px rgba(255, 215, 0, 0.5);
  }
}

/* PRO Upgrade Modal */
.pro-upgrade-modal {
  max-width: 600px;
  background: linear-gradient(135deg, var(--bg-primary) 0%, rgba(148, 16, 185, 0.45) 100%);
  border: 1px solid var(--border-glass);
}

.pro-modal-header {
  text-align: center;
  padding: var(--space-2xl) var(--space-2xl) var(--space-xl);
}

.pro-modal-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #FFD700, #FFA500);
  color: #1a1b23;
  padding: 8px 20px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: var(--space-lg);
  box-shadow: 0 4px 16px rgba(255, 215, 0, 0.3);
}

.pro-badge-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.pro-modal-title {
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary-light), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: var(--space-sm);
}

.pro-modal-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.5;
}

.pro-features-section {
  padding: 0 var(--space-2xl) var(--space-xl);
}

.pro-features-heading {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
}

.pro-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.pro-feature-item {
  display: flex;
  gap: var(--space-sm);
  padding: var(--space-md);
  background: var(--bg-glass);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-glass);
  transition: all 0.2s ease;
}

.pro-feature-item:hover {
  border-color: var(--primary-alpha-20);
  background: var(--primary-alpha-5);
}

.pro-feature-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(148, 16, 185, 0.15);
  border-radius: 12px;
}

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

.pro-feature-content {
  flex: 1;
}

.pro-feature-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 4px 0;
}

.pro-feature-description {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.4;
}

.pro-pricing-section {
  text-align: center;
  padding: var(--space-xl) var(--space-2xl);
  border-top: 1px solid var(--border);
}

.pro-price-container {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  margin-bottom: var(--space-sm);
}

.pro-price-currency {
  font-size: 1.5rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.pro-price-amount {
  font-size: 3rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary-light), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.pro-price-period {
  font-size: 1.2rem;
  color: var(--text-secondary);
}

.pro-price-note {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin: 0;
}

.pro-modal-footer {
  padding: var(--space-lg) var(--space-2xl) var(--space-2xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.pro-upgrade-btn {
  background: linear-gradient(135deg, #FFD700, #FFA500);
  color: #1a1b23;
  font-size: 1.1rem;
  padding: var(--space-md) var(--space-xl);
  font-weight: 700;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 20px rgba(255, 215, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
}

.pro-upgrade-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(255, 215, 0, 0.5);
  filter: brightness(1.1);
}

.btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close-btn {
  position: absolute;
  top: var(--space-lg);
  right: var(--space-lg);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
}

.modal-close-btn:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
  transform: rotate(90deg);
}

.modal-close-btn svg {
  width: 18px;
  height: 18px;
}

/* Icon styles */
.icon-diamond::before {
  content: '';
}




.icon-more-vertical {
  font-style: normal;
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .pro-features-grid {
    grid-template-columns: 1fr;
  }
  
  .pro-modal-title {
    font-size: 1.5rem;
  }
  
  .pro-price-amount {
    font-size: 2.5rem;
  }
}

/* Credits Purchase Modal */
.credits-modal {
  max-width: 900px;
  background: linear-gradient(135deg, var(--bg-primary) 0%, rgba(34, 197, 94, 0.05) 100%);
  border: 1px solid var(--border-glass);
}

.credits-modal-header {
  text-align: center;
  padding: var(--space-2xl) var(--space-2xl) var(--space-lg);
}

.credits-modal-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #22C55E, #16A34A);
  color: white;
  padding: 8px 20px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: var(--space-lg);
  box-shadow: 0 4px 16px rgba(34, 197, 94, 0.3);
}

.credits-badge-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.credits-modal-title {
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary-light), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-sm);
}

.credits-modal-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.5;
}

.credits-pricing-section {
  padding: var(--space-xl) var(--space-2xl);
}

.credits-pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
}

.credits-pricing-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-2xl);
  padding: var(--space-xl);
  position: relative;
  transition: all 0.3s ease;
}

.credits-pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-alpha-30);
}

.credits-pricing-card.featured {
  border-color: var(--primary-alpha-30);
  background: linear-gradient(135deg, var(--bg-glass), rgba(148, 16, 185, 0.05));
}

.credits-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-lg);
}

.credits-card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.credits-card-badge {
  background: var(--primary-alpha-20);
  color: var(--primary);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.credits-card-badge.best-value {
  background: linear-gradient(135deg, #22C55E, #16A34A);
  color: white;
}

.credits-price-container {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: var(--space-sm);
}

.credits-price-currency {
  font-size: 1.25rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.credits-price-amount {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.credits-price-period {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-left: 4px;
}

.credits-amount {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: var(--space-lg);
}

.credits-features {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}

.credits-feature-item {
  display: flex;
  gap: var(--space-sm);
  align-items: flex-start;
}

.credits-feature-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(148, 16, 185, 0.15);
  border-radius: 8px;
}

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

.credits-feature-content {
  flex: 1;
}

.credits-feature-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.credits-feature-description {
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.3;
}

.credits-purchase-btn {
  width: 100%;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-size: 1rem;
  padding: var(--space-md);
  font-weight: 600;
  transition: all 0.2s ease;
}

.credits-purchase-btn:hover {
  background: var(--primary-alpha-10);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.credits-purchase-btn.featured-btn {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  border: none;
  box-shadow: 0 4px 20px rgba(148, 16, 185, 0.3);
}

.credits-purchase-btn.featured-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(148, 16, 185, 0.4);
  filter: brightness(1.1);
}

.credits-modal-footer {
  text-align: center;
  padding: 0 var(--space-2xl) var(--space-2xl);
}

.credits-footer-note {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin: 0;
}

/* Responsive adjustments for credits modal */
@media (max-width: 768px) {
  .credits-pricing-grid {
    grid-template-columns: 1fr;
  }
  
  .credits-modal {
    max-width: 95%;
  }
  
  .credits-modal-title {
    font-size: 1.5rem;
  }
  
  .credits-price-amount {
    font-size: 2rem;
  }
}