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

:root {
  --primary: #4361ee;
  --primary-dark: #3a56d4;
  --secondary: #06ffa5;
  --accent: #f72585;
  --danger: #dc2626;
  --warning: #f59e0b;
  --dark-bg: #0f172a;
  --dark-surface: #1e293b;
  --dark-surface-2: #334155;
  --light-bg: #f8fafc;
  --light-surface: #ffffff;
  --light-surface-2: #f1f5f9;
  --text-dark: #0f172a;
  --text-light: #f1f5f9;
  --text-muted-dark: #64748b;
  --text-muted-light: #94a3b8;
  --border-radius: 16px;
  --border-radius-sm: 12px;
}

[data-theme="dark"] {
  --bg-primary: var(--dark-bg);
  --bg-secondary: var(--dark-surface);
  --bg-tertiary: var(--dark-surface-2);
  --text-primary: var(--text-light);
  --text-secondary: var(--text-muted-light);
  --border-color: rgba(255,255,255,0.1);
  --card-bg: var(--dark-surface);
}

[data-theme="light"] {
  --bg-primary: var(--light-bg);
  --bg-secondary: var(--light-surface);
  --bg-tertiary: var(--light-surface-2);
  --text-primary: var(--text-dark);
  --text-secondary: var(--text-muted-dark);
  --border-color: rgba(0,0,0,0.08);
  --card-bg: var(--light-surface);
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Plus Jakarta Sans', sans-serif;
  transition: all 0.2s;
  line-height: 1.5;
}

.secret-admin-trigger {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 40px;
  height: 40px;
  opacity: 0;
  cursor: pointer;
  z-index: 9999;
  background: transparent;
  border: none;
}

.admin-login-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.9);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
}

.admin-login-box {
  background: var(--bg-secondary);
  border-radius: var(--border-radius);
  padding: 2rem;
  width: 90%;
  max-width: 400px;
  border: 1px solid var(--border-color);
}

.admin-panel-modern {
  background: var(--bg-secondary);
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  padding: 2rem;
  margin-bottom: 2.5rem;
  display: none;
}

.admin-panel-modern.active {
  display: block;
}

.form-modern {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  padding: 0.75rem 1rem;
  color: var(--text-primary);
  width: 100%;
}

.form-modern:focus {
  outline: none;
  border-color: var(--primary);
}

.btn-primary-gradient {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border: none;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 40px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary-gradient:hover:not(:disabled) {
  transform: translateY(-2px);
}

.btn-icon {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 8px 20px;
  border-radius: 40px;
  font-weight: 500;
  cursor: pointer;
}

.navbar-modern {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  font-size: 1.75rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.logo-badge {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  font-size: 0.7rem;
  padding: 2px 10px;
  border-radius: 20px;
  font-weight: 600;
}

.search-filter-bar {
  background: var(--bg-secondary);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  margin-bottom: 2rem;
  border: 1px solid var(--border-color);
}

.prompt-card-modern {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: all 0.2s;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}

.prompt-card-modern:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
}

.card-image {
  height: 260px;
  object-fit: cover;
  width: 100%;
  background: var(--bg-tertiary);
}

.card-actions {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 8px;
  z-index: 10;
}

.card-action-btn {
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  transition: all 0.2s;
}

.card-action-btn:hover {
  transform: scale(1.1);
}

.category-chip {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 1rem;
}

.prompt-content {
  background: var(--bg-tertiary);
  padding: 1rem;
  border-radius: var(--border-radius-sm);
  margin: 0.75rem 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-secondary);
  max-height: 120px;
  overflow-y: auto;
}

.btn-copy-modern {
  background: transparent;
  border: 1.5px solid var(--primary);
  color: var(--primary);
  padding: 0.625rem;
  border-radius: 40px;
  font-weight: 600;
  width: 100%;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 8px;
}

.btn-copy-modern:hover {
  background: var(--primary);
  color: white;
}

.btn-download-modern {
  background: transparent;
  border: 1.5px solid var(--secondary);
  color: var(--secondary);
  padding: 0.625rem;
  border-radius: 40px;
  font-weight: 600;
  width: 100%;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-download-modern:hover {
  background: var(--secondary);
  color: #0f172a;
}

.stats-modern {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 40px;
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.toast-notification {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--bg-secondary);
  border-left: 4px solid var(--primary);
  padding: 1rem 1.5rem;
  border-radius: var(--border-radius-sm);
  z-index: 2000;
  animation: slideIn 0.3s ease;
  max-width: 90%;
}

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

.progress-bar-custom {
  width: 100%;
  height: 4px;
  background: var(--bg-tertiary);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 8px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  width: 0%;
  transition: width 0.3s ease;
}

.loader-modern {
  text-align: center;
  padding: 4rem;
}

.favorite-btn {
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  transition: all 0.2s;
}

.favorite-btn.active {
  background: var(--accent);
  color: white;
}

.no-results {
  text-align: center;
  padding: 4rem;
  background: var(--bg-secondary);
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
}

.install-pwa {
  position: fixed;
  bottom: 80px;
  right: 20px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 50px;
  padding: 12px 20px;
  cursor: pointer;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  display: none;
  align-items: center;
  gap: 8px;
}

.bulk-delete-bar {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  padding: 12px 24px;
  display: none;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.select-checkbox {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 10;
  background: rgba(0,0,0,0.7);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.select-checkbox input {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.footer-modern {
  margin-top: 4rem;
  padding: 2rem 0;
  border-top: 1px solid var(--border-color);
  text-align: center;
}

 #footer { background: rgba(1,3,6,0.95); padding: 30px 0; text-align: center; border-top: 2px solid var(--neon-pink); }
        .footer-social a { color: #fff; font-size: 24px; margin: 0 12px; transition: all 0.3s; display: inline-block; }
        .footer-social a:hover { color: var(--neon-blue); transform: translateY(-5px);p }


@media (max-width: 768px) {
  .card-image { height: 220px; }
}