/* ==========================================================================
   GalleryPromptAI — Premium AI Creative Platform Design System (Light Theme)
   ========================================================================== */

:root {
  /* Core Color Palette (Editorial, Human-Crafted Neutral Palette) */
  --bg-primary: #F8FAFC;
  --bg-secondary: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-card-hover: #FFFFFF;
  --bg-elevated: #FFFFFF;
  --bg-glass: rgba(255, 255, 255, 0.92);
  --bg-input: #FFFFFF;
  --bg-subtle: #F1F5F9;

  --border: #E2E8F0;
  --border-subtle: #F1F5F9;
  --border-focus: #4F46E5;
  --border-hover: #CBD5E1;

  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #94A3B8;
  --text-inverse: #FFFFFF;

  /* Restrained, Purposeful Accent (No aggressive purple gradients or neon glow) */
  --accent: #4F46E5;
  --accent-hover: #4338CA;
  --accent-secondary: #6366F1;
  --accent-light: #EEF2FF;
  --accent-gradient: #4F46E5;
  --accent-gradient-subtle: rgba(79, 70, 229, 0.04);
  --accent-glow: transparent;
  --accent-glow-subtle: transparent;

  --success: #059669;
  --success-bg: #ECFDF5;
  --success-border: #A7F3D0;
  --danger: #DC2626;
  --danger-bg: #FEF2F2;
  --danger-border: #FECACA;
  --warning: #D97706;
  --warning-bg: #FFFBEB;
  --warning-border: #FDE68A;
  --info: #0284C7;
  --info-bg: #F0F9FF;
  --info-border: #BAE6FD;

  /* Restrained Geometry (No pill shapes on cards/inputs/buttons) */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 9px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  /* Subtle, Tangible Realistic Shadows */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.05), 0 2px 4px -2px rgba(15, 23, 42, 0.03);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.06), 0 4px 6px -4px rgba(15, 23, 42, 0.03);
  --shadow-card: 0 1px 3px rgba(15, 23, 42, 0.04), 0 1px 2px rgba(15, 23, 42, 0.02);
  --shadow-card-hover: 0 8px 16px -4px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.03);
  --shadow-glow: none;

  /* Typography */
  --font-sans: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', Menlo, Consolas, monospace;
  --max-width: 1360px;

  /* Transitions */
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-fast: 0.16s;
  --duration-normal: 0.24s;
}

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

html {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-primary);
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: #D0D5DD;
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: #98A2B3;
}

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

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

input, textarea, select {
  font-family: inherit;
  font-size: 0.92rem;
  color: var(--text-primary);
}

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

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ==========================================================================
   Email Verification Alert Banner
   ========================================================================== */
.verification-banner {
  background: #FFFAEB;
  border-bottom: 1px solid #FEDF89;
  color: #B54708;
  padding: 0.65rem 1.25rem;
  font-size: 0.86rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  z-index: 101;
}

.verification-banner > div {
  flex: 1 1 auto;
  min-width: 0;
  line-height: 1.45;
  word-break: break-word;
}

.btn-resend-verif {
  padding: 0.35rem 0.85rem;
  background: #FFFFFF;
  color: #B54708;
  border: 1px solid #FEDF89;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  transition: background var(--duration-fast) ease;
}
.btn-resend-verif:hover {
  background: #FEF0C7;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.navbar {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
  box-sizing: border-box;
  transition: background-color var(--duration-fast) ease, border-color var(--duration-fast) ease;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  gap: 1.25rem;
  box-sizing: border-box;
}

/* Brand Logo */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  user-select: none;
  flex-shrink: 0;
  text-decoration: none;
}

.brand-logo-img {
  height: 42px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  display: block;
  transition: opacity var(--duration-fast) ease;
}

.footer-brand-col .brand-logo-img {
  height: 46px;
  max-width: 240px;
}

.brand-logo:hover .brand-logo-img {
  opacity: 0.92;
}

.brand-icon {
  width: 32px;
  height: 32px;
  background: var(--accent);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
  transition: background-color var(--duration-fast) ease;
}

.brand-logo:hover .brand-icon {
  background: var(--accent-hover);
}

.brand-text {
  font-weight: 700;
  color: var(--text-primary);
}

.brand-text span {
  color: var(--accent);
}

/* Desktop Navigation Links */
.nav-links-desktop {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: 0.5rem;
  white-space: nowrap;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.8rem;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 500;
  transition: all var(--duration-fast) ease;
  white-space: nowrap;
}

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

.nav-link.active {
  color: var(--accent);
  background: var(--accent-light);
  font-weight: 600;
}

/* Header Search Trigger Button */
.nav-search-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  height: 38px;
  padding: 0 0.85rem;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.86rem;
  font-weight: 400;
  cursor: pointer;
  transition: all var(--duration-fast) ease;
  box-shadow: var(--shadow-sm);
  user-select: none;
  flex-shrink: 0;
}

.nav-search-btn:hover {
  background: #FFFFFF;
  border-color: var(--border-hover);
  color: var(--text-primary);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.nav-search-btn svg {
  color: var(--text-muted);
  transition: color var(--duration-fast) ease;
  flex-shrink: 0;
}

.nav-search-btn:hover svg {
  color: var(--accent);
}

.nav-search-btn-text {
  font-size: 0.86rem;
  color: var(--text-secondary);
  white-space: nowrap;
}

.nav-search-kbd {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  padding: 1px 5px;
  border-radius: var(--radius-xs);
  margin-left: 0.35rem;
  line-height: 1.2;
}

/* Compact Icon-only trigger (for tighter viewports or headers) */
.nav-search-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: var(--radius-sm);
  background: #FFFFFF;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--duration-fast) ease;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.nav-search-icon-btn:hover {
  background: #FFFFFF;
  border-color: var(--border-hover);
  color: var(--accent);
}

/* Backwards compatibility for search input wrapper */
.search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
}

.search-input-wrap input {
  width: 100%;
  height: 40px;
  padding: 0 3.2rem 0 2.75rem !important;
  background: #FFFFFF !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-sm) !important;
  color: var(--text-primary) !important;
  font-size: 0.88rem;
  transition: all var(--duration-fast) ease;
  box-sizing: border-box;
  box-shadow: var(--shadow-sm);
}

.search-input-wrap input::placeholder {
  color: var(--text-muted) !important;
}

.search-input-wrap input:hover {
  border-color: var(--border-hover) !important;
}

.search-input-wrap input:focus {
  outline: none;
  background: #FFFFFF !important;
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1) !important;
}

.search-kbd-hint {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  padding: 1px 6px;
  border-radius: var(--radius-xs);
  z-index: 3;
}

/* ==========================================================================
   LIVE SEARCH POPUP MODAL (COMMAND-PALETTE / SPOTLIGHT)
   ========================================================================== */
.search-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 5rem 1.25rem 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.22s ease;
  box-sizing: border-box;
}

.search-modal-backdrop.search-modal-open {
  opacity: 1;
  visibility: visible;
}

.search-modal-dialog {
  width: 100%;
  max-width: 680px;
  max-height: calc(86vh - 5rem);
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.2), 0 0 0 1px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(-12px) scale(0.99);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

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

/* Modal Header & Input */
.search-modal-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: #FFFFFF;
  position: relative;
}

.search-modal-icon {
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.search-modal-input {
  flex: 1;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
  color: #101828 !important;
  font-size: 1.06rem !important;
  font-weight: 500;
  padding: 0 !important;
  height: auto !important;
  margin: 0;
  min-width: 0;
}

.search-modal-input::placeholder {
  color: #98A2B3 !important;
  font-weight: 400;
}

.search-modal-clear-btn {
  background: #F2F4F7;
  border: none;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #667085;
  cursor: pointer;
  transition: all var(--duration-fast) ease;
  flex-shrink: 0;
}

.search-modal-clear-btn:hover {
  background: #E4E7EC;
  color: #101828;
}

.search-modal-close-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 0;
  flex-shrink: 0;
}

.search-modal-esc-badge {
  background: #F2F4F7;
  border: 1px solid #E4E7EC;
  border-radius: 6px;
  padding: 3px 7px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #667085;
  line-height: 1;
  font-family: var(--font-mono);
}

.search-modal-mobile-close-icon {
  display: none;
  color: #667085;
}

/* Quick Suggestion Chips */
.search-modal-suggestions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 1.35rem;
  background: #FAFAFC;
  border-bottom: 1px solid #F2F4F7;
  overflow-x: auto;
  scrollbar-width: none;
}

.search-modal-suggestions::-webkit-scrollbar {
  display: none;
}

.search-modal-sugg-title {
  font-size: 0.73rem;
  font-weight: 700;
  color: #98A2B3;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.search-modal-tags {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.search-modal-tag {
  background: #FFFFFF;
  border: 1px solid #E4E7EC;
  border-radius: 20px;
  padding: 3px 11px;
  font-size: 0.78rem;
  font-weight: 500;
  color: #475467;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.search-modal-tag:hover {
  background: #EEF2FF;
  border-color: #5B5CE2;
  color: #5B5CE2;
}

/* Modal Body & Live Results List */
.search-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 0.65rem 0.85rem;
  background: #FFFFFF;
  min-height: 200px;
}

.search-modal-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.45rem 0.65rem 0.55rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #667085;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.search-modal-count {
  font-weight: 700;
  color: #5B5CE2;
}

.search-modal-results {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  outline: none;
}

/* Matching Categories in Search Modal */
.search-modal-categories-section {
  padding: 0.4rem 0.25rem 0.85rem;
  margin-bottom: 0.65rem;
  border-bottom: 1px dashed #E4E7EC;
}

.search-modal-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #5B5CE2;
  margin-bottom: 0.55rem;
  padding: 0 0.25rem;
}

.search-modal-cat-all {
  font-size: 0.76rem;
  font-weight: 600;
  color: #5B5CE2;
  text-transform: none;
  letter-spacing: normal;
  text-decoration: none;
}

.search-modal-cat-all:hover {
  text-decoration: underline;
}

.search-modal-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 0.5rem;
}

.search-modal-cat-chip {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 0.7rem;
  border-radius: 10px;
  background: #F8F9FE;
  border: 1px solid #E0E4F0;
  text-decoration: none;
  transition: all 0.15s ease;
}

.search-modal-cat-chip:hover {
  background: #EEF2FF;
  border-color: #5B5CE2;
  transform: translateY(-1px);
}

.search-modal-cat-icon {
  font-size: 1.25rem;
  line-height: 1;
  flex-shrink: 0;
}

.search-modal-cat-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.search-modal-cat-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: #101828;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-modal-subcat-badge {
  font-size: 0.72rem;
  color: #5B5CE2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Single Result Item */
.search-modal-item {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  border: 1px solid transparent;
  background: #FFFFFF;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
}

.search-modal-item:hover,
.search-modal-item.search-item-active {
  background: #F8F9FC;
  border-color: #E0E4F0;
  box-shadow: 0 2px 6px rgba(16, 24, 40, 0.04);
}

.search-item-thumb-wrap {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  background: #F2F4F7;
  border: 1px solid #EAECF0;
}

.search-item-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.search-item-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.search-item-top {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.search-item-title {
  margin: 0;
  font-size: 0.94rem;
  font-weight: 600;
  color: #101828;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 250px;
  flex-shrink: 1;
}

.search-item-badges {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.search-item-prompt {
  margin: 0;
  font-size: 0.81rem;
  color: #667085;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-highlight {
  background: rgba(254, 240, 138, 0.85);
  color: #713f12;
  font-weight: 700;
  border-radius: 2px;
  padding: 0 2px;
}

.search-item-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  margin-left: auto;
}

.search-item-copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.38rem;
  height: 32px;
  padding: 0 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  font-family: inherit;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.search-item-copy-btn svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  transition: transform 0.15s ease;
}

.search-modal-item:hover .search-item-copy-btn,
.search-modal-item.search-item-active .search-item-copy-btn {
  background: var(--accent-light);
  border-color: var(--border-hover);
  color: var(--accent);
}

.search-item-copy-btn:hover {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  color: #FFFFFF !important;
  box-shadow: var(--shadow-sm) !important;
  transform: translateY(-1px);
}

.search-item-copy-btn:active {
  transform: translateY(0) scale(0.97);
}

.search-item-copy-btn.copied {
  background: #ECFDF5 !important;
  border-color: #10B981 !important;
  color: #10B981 !important;
  box-shadow: 0 1px 3px rgba(16, 185, 129, 0.2) !important;
}

.search-item-view-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.18s ease;
  text-decoration: none;
  flex-shrink: 0;
}

.search-modal-item:hover .search-item-view-btn,
.search-modal-item.search-item-active .search-item-view-btn {
  color: var(--accent);
  background: var(--accent-light);
  border-color: var(--border-hover);
}

.search-item-view-btn:hover {
  color: #FFFFFF !important;
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  transform: translateY(-1px);
}

/* Empty State */
.search-modal-empty {
  padding: 3rem 1.5rem;
  text-align: center;
}

.search-modal-empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #F2F4F7;
  color: #98A2B3;
  margin-bottom: 1rem;
}

.search-modal-empty-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #101828;
  margin: 0 0 0.4rem;
}

.search-modal-empty-desc {
  font-size: 0.88rem;
  color: #667085;
  margin: 0 0 1.25rem;
}

.search-modal-empty-tips {
  background: #F8F9FC;
  border: 1px solid #EAECF0;
  border-radius: 10px;
  padding: 0.85rem 1.25rem;
  text-align: left;
  max-width: 420px;
  margin: 0 auto;
  font-size: 0.82rem;
  color: #475467;
}

.search-modal-empty-tips span {
  font-weight: 700;
  color: #344054;
  display: block;
  margin-bottom: 0.35rem;
}

.search-modal-empty-tips ul {
  margin: 0;
  padding-left: 1.25rem;
  line-height: 1.5;
}

/* Modal Footer */
.search-modal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 1.35rem;
  background: #F8F9FC;
  border-top: 1px solid #F2F4F7;
  font-size: 0.78rem;
  color: #667085;
}

.search-modal-shortcuts {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.search-modal-shortcut {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.search-modal-shortcut kbd {
  background: #FFFFFF;
  border: 1px solid #D0D5DD;
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 0.7rem;
  font-weight: 700;
  color: #475467;
  font-family: var(--font-mono);
}

.search-modal-footer-stats {
  font-weight: 600;
  color: #98A2B3;
}

/* Responsive Search Modal Adjustments */
@media (max-width: 768px) {
  .search-modal-backdrop {
    padding: 0;
    align-items: stretch;
    background: rgba(15, 23, 42, 0.75);
  }

  .search-modal-dialog {
    width: 100vw !important;
    height: 100vh !important;
    max-height: 100vh !important;
    max-width: 100vw !important;
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
    transform: none !important;
  }

  .search-modal-header {
    padding: 0.85rem 1rem;
    gap: 0.65rem;
    border-bottom: 1px solid #F1F5F9;
  }

  .search-modal-input {
    font-size: 1rem !important; /* 16px prevents iOS zoom */
  }

  .search-modal-esc-badge {
    display: none !important;
  }

  .search-modal-mobile-close-icon {
    display: block !important;
  }

  .search-modal-close-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    color: #475467;
  }

  .search-modal-suggestions {
    padding: 0.55rem 1rem;
    gap: 0.45rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .search-modal-tag {
    padding: 4px 10px;
    font-size: 0.75rem;
    border-radius: 14px;
    flex-shrink: 0;
  }

  .search-modal-body {
    padding: 0.65rem 0.75rem 2rem;
    -webkit-overflow-scrolling: touch;
  }

  .search-modal-meta {
    padding: 0.35rem 0.5rem 0.45rem;
    font-size: 0.72rem;
  }

  /* Single Result Item on Mobile: Clean Vertical Stacking */
  .search-modal-item {
    padding: 0.65rem 0.6rem;
    gap: 0.75rem;
    border-radius: 12px;
    border: 1px solid #F1F5F9;
    margin-bottom: 0.45rem;
  }

  .search-item-thumb-wrap {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    flex-shrink: 0;
  }

  .search-item-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
  }

  /* Title on top, Badges neatly underneath without collision */
  .search-item-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.28rem;
  }

  .search-item-title {
    width: 100%;
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.25;
    color: #0F172A;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .search-item-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.3rem;
    width: 100%;
  }

  .search-item-badges .badge {
    font-size: 0.66rem !important;
    font-weight: 700 !important;
    padding: 2px 7px !important;
    border-radius: 5px !important;
    letter-spacing: 0.03em !important;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.3 !important;
  }

  .search-item-prompt {
    font-size: 0.75rem;
    color: #64748B;
    line-height: 1.35;
    margin-top: 0.1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Action Buttons on Mobile: Dedicated column on the right */
  .search-item-actions {
    gap: 0.35rem;
    flex-shrink: 0;
    align-items: center;
  }

  .search-item-copy-btn {
    width: 34px;
    height: 34px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    color: #475467;
  }

  .search-item-copy-btn span {
    display: none !important;
  }

  .search-item-copy-btn svg {
    width: 15px;
    height: 15px;
  }

  .search-item-view-btn {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94A3B8;
  }

  /* Category chips grid on mobile */
  .search-modal-cat-grid {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }

  .search-modal-cat-chip {
    padding: 0.5rem 0.75rem;
    border-radius: 10px;
  }

  .search-modal-cat-name {
    font-size: 0.82rem;
  }

  /* Footer on mobile: completely hidden to remove horizontal scroll and clutter */
  .search-modal-footer {
    display: none !important;
  }
}

@media (max-width: 1024px) {
  .nav-search-btn-text,
  .nav-search-kbd {
    display: none !important;
  }
  .nav-search-btn {
    padding: 0 0.65rem;
  }
}

/* Actions & User State */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.user-menu-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.user-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.35rem 0.8rem 0.35rem 0.4rem;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  color: var(--text-primary);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
  transition: all var(--duration-fast) ease;
}
.user-badge:hover {
  border-color: var(--border-hover);
  background: #F8FAFC;
}

.nav-saved-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  height: 36px;
  padding: 0 0.9rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--text-secondary, #475569);
  background: #F8FAFC;
  border: 1px solid var(--border, #E2E8F0);
  text-decoration: none;
  transition: all var(--duration-fast) ease;
}
.nav-saved-btn:hover {
  background: #EEF2F6;
  color: var(--text-primary, #0F172A);
  border-color: #CBD5E1;
}

.nav-logout-btn {
  width: 36px;
  height: 36px;
  min-width: 36px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border, #E2E8F0);
  background: #FFFFFF;
  color: var(--text-secondary, #64748B);
  cursor: pointer;
  transition: all var(--duration-fast) ease;
}
.nav-logout-btn:hover {
  color: #EF4444;
  border-color: #FECACA;
  background: #FEF2F2;
}

.mobile-user-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0.85rem;
  background: #F8FAFC;
  border: 1px solid var(--border, #E2E8F0);
  border-radius: 12px;
  text-decoration: none;
  margin-bottom: 0.75rem;
  transition: background var(--duration-fast) ease;
}
.mobile-user-card:hover {
  background: #F1F5F9;
}

.user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  color: #ffffff;
  flex-shrink: 0;
  overflow: hidden;
}

.user-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

/* Hamburger Toggle Button */
.hamburger-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
  transition: all var(--duration-fast) ease;
}

.hamburger-toggle:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
  background: #F8F9FC;
}

/* Mobile Drawer Overlay & Panel */
.mobile-nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(16, 24, 40, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1099;
}

.mobile-nav-backdrop.open {
  display: block;
}

.mobile-nav-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 86vw);
  max-width: 100%;
  background: #FFFFFF;
  border-left: 1px solid var(--border);
  z-index: 1100;
  padding: 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transform: translateX(100%);
  transition: transform 0.28s var(--ease-spring);
  box-shadow: 0 12px 32px rgba(16, 24, 40, 0.12);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-nav-panel.open {
  transform: translateX(0);
}

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.mobile-nav-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  background: #F2F4F7;
  border: 1px solid var(--border);
  cursor: pointer;
  touch-action: manipulation;
  transition: all var(--duration-fast) ease;
}

.mobile-nav-close:hover {
  color: var(--text-primary);
  background: #E4E7EC;
  border-color: var(--border-hover);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.mobile-nav-link,
.mobile-nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  transition: all var(--duration-fast) ease;
  min-height: 44px;
  touch-action: manipulation;
}

.mobile-nav-link svg,
.mobile-nav-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--accent);
}

.mobile-nav-link:hover,
.mobile-nav-item:hover {
  color: var(--text-primary);
  background: #F8F9FC;
  border: 1px solid var(--border);
}

.mobile-nav-link.active,
.mobile-nav-item.active {
  color: var(--accent);
  background: var(--accent-light);
  border: 1px solid var(--border-hover);
}

.mobile-nav-auth,
#mobile-auth-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

/* ==========================================================================
   Button System
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.55rem 1.15rem;
  font-size: 0.88rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all var(--duration-fast) var(--ease-spring);
  white-space: nowrap;
  user-select: none;
  line-height: 1.4;
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
  border: 1px solid var(--accent);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.btn-primary:hover:not(:disabled) {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #ffffff;
  box-shadow: 0 2px 5px rgba(15, 23, 42, 0.12);
  transform: translateY(-1px);
}

.btn-primary:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.btn-secondary {
  background: #FFFFFF;
  color: var(--text-primary);
  border: 1px solid var(--border);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.btn-secondary:hover:not(:disabled) {
  background: #FFFFFF;
  border-color: var(--border-hover);
  color: var(--text-primary);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.btn-secondary:active:not(:disabled) {
  transform: translateY(0);
}

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

.btn-outline:hover:not(:disabled) {
  border-color: var(--border-hover);
  color: var(--text-primary);
  background: #FFFFFF;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

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

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

.btn-danger {
  background: var(--danger-bg);
  color: var(--danger);
  border: 1px solid var(--danger-border);
}

.btn-danger:hover:not(:disabled) {
  background: var(--danger);
  color: #ffffff;
  border-color: var(--danger);
  box-shadow: 0 1px 3px rgba(220, 38, 38, 0.2);
}

.btn-sm {
  padding: 0.38rem 0.75rem;
  font-size: 0.82rem;
  border-radius: 6px;
  gap: 0.35rem;
}

.btn-lg {
  padding: 0.68rem 1.45rem;
  font-size: 0.95rem;
  border-radius: 8px;
  gap: 0.55rem;
}

.btn-icon {
  padding: 0.45rem;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  background: #FFFFFF;
  box-shadow: var(--shadow-sm);
}
.btn-icon:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
  background: #FFFFFF;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  padding: 3.25rem 0 2rem;
  text-align: center;
  position: relative;
  background: transparent;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.32rem 0.8rem;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.hero-title {
  font-size: clamp(1.95rem, 3.8vw, 2.85rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-primary);
}

.hero-title span {
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: initial;
  color: var(--accent);
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto 1.85rem;
  line-height: 1.6;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 2.25rem;
}

/* Quick Model Pills */
.hero-model-tags {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  padding-top: 1.15rem;
  border-top: 1px solid var(--border);
  max-width: 800px;
  margin: 0 auto;
}

.hero-model-label {
  font-size: 0.74rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-right: 0.25rem;
}

.model-tag-pill {
  padding: 0.28rem 0.75rem;
  border-radius: 6px;
  background: #FFFFFF;
  border: 1px solid var(--border);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--duration-fast) ease;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.model-tag-pill:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
  background: #FFFFFF;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.model-tag-pill.active {
  background: var(--text-primary);
  border-color: var(--text-primary);
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.18);
}

.model-tag-pill.active:hover {
  background: var(--text-primary);
  border-color: var(--text-primary);
  color: #ffffff;
}

/* ==========================================================================
   Category Filter Bar & Section Header
   ========================================================================== */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.section-title {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-subtitle {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-top: 0.15rem;
}

.filter-bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  overflow-x: auto;
  padding: 0.35rem 0 1rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
  margin-bottom: 1.75rem;
}

.filter-bar::-webkit-scrollbar {
  display: none;
}

.filter-pill {
  padding: 0.42rem 0.95rem;
  border-radius: 7px;
  background: #FFFFFF;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.84rem;
  font-weight: 500;
  white-space: nowrap;
  transition: all var(--duration-fast) var(--ease-spring);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.filter-pill:hover {
  background: #FFFFFF;
  border-color: var(--border-hover);
  color: var(--text-primary);
}

.filter-pill.active {
  background: var(--text-primary);
  border-color: var(--text-primary);
  color: #ffffff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.15);
}

/* ==========================================================================
   Image Grid & Image Cards
   ========================================================================== */
.images-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 1.35rem;
  padding-bottom: 4rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.image-card {
  position: relative;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: transform var(--duration-fast) var(--ease-spring),
              border-color var(--duration-fast) ease,
              box-shadow var(--duration-fast) var(--ease-spring);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  content-visibility: auto;
  contain-intrinsic-size: 420px;
}

.image-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-card-hover);
}

.card-media {
  position: relative;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #F1F5F9;
  box-sizing: border-box;
}

.card-media > a {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s var(--ease-spring);
}

.image-card:hover .card-img {
  transform: scale(1.025);
}

.card-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
  z-index: 2;
  min-width: 0;
  box-sizing: border-box;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.22rem 0.55rem;
  border-radius: 5px;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.badge-tool {
  background: rgba(15, 23, 42, 0.8);
  border-color: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.badge-category {
  background: rgba(255, 255, 255, 0.94);
  border-color: var(--border);
  color: #334155;
}

.card-content {
  padding: 0.95rem 0.95rem 0.85rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow: hidden;
}

.card-content > a {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  text-decoration: none;
}

.card-title {
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
  overflow-wrap: anywhere;
  line-height: 1.35;
  max-height: 2.7em;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  transition: color var(--duration-fast) ease;
}

.image-card:hover .card-title {
  color: var(--accent);
}

.card-creator {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.65rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.card-creator-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg-subtle);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 600;
  flex-shrink: 0;
  overflow: hidden;
}

.card-creator-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.card-creator-name {
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  flex: 0 1 auto;
  max-width: 140px;
}

.card-creator-dot {
  font-size: 0.68rem;
  color: var(--text-muted);
  line-height: 1;
  flex-shrink: 0;
  user-select: none;
}

.card-creator-time {
  font-size: 0.74rem;
  color: var(--text-muted);
  font-weight: 400;
  white-space: nowrap;
  flex-shrink: 0;
}

.card-prompt-preview {
  font-family: var(--font-mono);
  font-size: 0.77rem;
  color: #334155;
  background: var(--bg-primary);
  padding: 0.5rem 0.65rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  margin-bottom: 0.75rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
  overflow-wrap: anywhere;
  white-space: normal;
  line-height: 1.45;
  max-height: calc(1.45em * 3 + 1rem + 2px);
}

.card-footer {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.55rem !important;
  margin-top: auto;
  font-size: 0.76rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.65rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.card-stats-row {
  display: flex !important;
  align-items: center;
  gap: 0.35rem;
  width: 100%;
}

.card-stat-item {
  flex: 1 1 0;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.28rem;
  height: 28px;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-tertiary, #f8fafc);
  border: 1px solid var(--border-subtle, #e2e8f0);
  padding: 0 0.35rem;
  border-radius: 6px;
  white-space: nowrap;
  transition: all var(--duration-fast) ease;
  user-select: none;
  box-sizing: border-box;
}

.btn-card-like,
.btn-card-save {
  background: var(--bg-tertiary, #f8fafc);
  border: 1px solid var(--border-subtle, #e2e8f0);
  cursor: pointer;
}

.btn-card-like:hover {
  color: #ef4444;
  border-color: #fca5a5;
  background: #fff5f5;
}

.btn-card-like.liked {
  color: #ef4444;
  border-color: #fecdd3;
  background: #fff1f2;
  font-weight: 600;
}

.btn-card-like.liked .like-icon {
  fill: #ef4444 !important;
  stroke: #ef4444 !important;
}

.btn-card-save:hover {
  color: var(--accent);
  border-color: #c7d2fe;
  background: #eef2ff;
}

.btn-card-save.saved {
  color: var(--accent);
  border-color: #c7d2fe;
  background: #eef2ff;
  font-weight: 600;
}

.btn-card-save.saved .save-icon {
  fill: var(--accent) !important;
  stroke: var(--accent) !important;
}

/* Actions Row: Download, Copy, Share */
.card-actions-row {
  display: flex !important;
  align-items: center;
  gap: 0.35rem;
  width: 100%;
}

.card-action-btn {
  flex: 1 1 0;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  height: 30px;
  padding: 0 0.35rem;
  border-radius: 6px;
  box-sizing: border-box;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  background: #FFFFFF;
  border: 1px solid var(--border);
  color: var(--text-primary);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
  transition: all var(--duration-fast) ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-action-btn span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-action-btn:hover {
  background: var(--bg-tertiary, #f8fafc);
  border-color: var(--border-hover, #cbd5e1);
  color: var(--accent);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.card-action-btn.btn-card-download:hover {
  color: #0284c7;
  border-color: #bae6fd;
  background: #f0f9ff;
}

.card-action-btn.btn-quick-copy:hover {
  color: var(--accent);
  border-color: #c7d2fe;
  background: #eef2ff;
}

.card-action-btn.btn-card-share:hover {
  color: #059669;
  border-color: #a7f3d0;
  background: #ecfdf5;
}

/* Backward compatibility aliases */
.card-stats {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.card-actions-group {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.card-download-btn,
.card-copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  height: 30px;
  padding: 0 0.5rem;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 600;
}

/* ==========================================================================
   How It Works Section
   ========================================================================== */
.how-it-works-section {
  padding: 3.5rem 0;
  border-top: 1px solid var(--border);
  background: #FFFFFF;
}

.how-header {
  text-align: center;
  max-width: 580px;
  margin: 0 auto 2.5rem;
}

.how-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.how-subtitle {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.how-card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem 1.6rem;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--duration-fast) ease, box-shadow var(--duration-fast) ease;
}

.how-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}

.how-step-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.85rem;
  display: block;
}

.how-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.15rem;
}

.how-card h3 {
  font-size: 1.08rem;
  font-weight: 600;
  margin-bottom: 0.45rem;
  color: var(--text-primary);
}

.how-card p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.55;
}

/* ==========================================================================
   Call To Action Banner
   ========================================================================== */
.cta-banner-section {
  padding: 3.5rem 0;
  background: var(--bg-primary);
  border-top: 1px solid var(--border);
}

.cta-banner-card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2.75rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.cta-banner-card h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.cta-banner-card p {
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 1.75rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  background: #FFFFFF;
  padding: 3.5rem 0 2rem;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.footer-main-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-brand-col p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.6;
  margin-top: 0.85rem;
  max-width: 320px;
}

.footer-social-links {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.25rem;
}

.footer-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  text-decoration: none;
  transition: all var(--duration-fast) cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-social-btn svg {
  display: block;
  transition: transform var(--duration-fast) ease;
}

.footer-social-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.footer-social-btn:hover svg {
  transform: scale(1.08);
}

.footer-social-btn.facebook:hover {
  background: #EBF3FF;
  border-color: #1877F2;
  color: #1877F2;
}

.footer-social-btn.instagram:hover {
  background: #FDF0F5;
  border-color: #E4405F;
  color: #E4405F;
}

.footer-social-btn.pinterest:hover {
  background: #FDF0F0;
  border-color: #BD081C;
  color: #BD081C;
}

.footer-social-btn.linkedin:hover {
  background: #E8F4F9;
  border-color: #0A66C2;
  color: #0A66C2;
}

.footer-social-btn.tiktok:hover {
  background: #F4F4F5;
  border-color: #000000;
  color: #000000;
}

[data-theme="dark"] .footer-social-btn.tiktok:hover {
  background: #18181B;
  border-color: #25F4EE;
  color: #FFFFFF;
}

.footer-social-btn:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 2px;
}

.footer-heading {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

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

.footer-links-list a {
  color: var(--text-secondary);
  transition: color var(--duration-fast) ease;
}

.footer-links-list a:hover {
  color: var(--accent);
}

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

/* ==========================================================================
   Toast Notifications
   ========================================================================== */
.toast-container {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  pointer-events: none;
  width: auto;
  max-width: 92vw;
}

.toast {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 280px;
  max-width: 520px;
  padding: 0.85rem 1.35rem;
  background: #FFFFFF;
  border-radius: 9999px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  color: var(--text-primary);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.16), 0 4px 12px rgba(15, 23, 42, 0.06);
  animation: toastPopupIn 0.32s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  font-size: 0.88rem;
  font-weight: 500;
  box-sizing: border-box;
}

.toast-hiding {
  animation: toastPopupOut 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.toast-success {
  border-color: rgba(16, 185, 129, 0.35);
  box-shadow: 0 20px 45px rgba(16, 185, 129, 0.14), 0 4px 12px rgba(15, 23, 42, 0.06);
}
.toast-error {
  border-color: rgba(239, 68, 68, 0.35);
  box-shadow: 0 20px 45px rgba(239, 68, 68, 0.14), 0 4px 12px rgba(15, 23, 42, 0.06);
}
.toast-warning {
  border-color: rgba(245, 158, 11, 0.35);
  box-shadow: 0 20px 45px rgba(245, 158, 11, 0.14), 0 4px 12px rgba(15, 23, 42, 0.06);
}
.toast-info {
  border-color: rgba(91, 92, 226, 0.35);
  box-shadow: 0 20px 45px rgba(91, 92, 226, 0.15), 0 4px 12px rgba(15, 23, 42, 0.06);
}

.toast-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
}
.toast-success .toast-icon {
  color: var(--success);
  background: rgba(16, 185, 129, 0.1);
}
.toast-error .toast-icon {
  color: var(--danger);
  background: rgba(239, 68, 68, 0.1);
}
.toast-warning .toast-icon {
  color: var(--warning);
  background: rgba(245, 158, 11, 0.1);
}
.toast-info .toast-icon {
  color: var(--accent);
  background: rgba(91, 92, 226, 0.1);
}

.toast-message {
  flex: 1;
  line-height: 1.45;
  color: #1e293b;
  font-weight: 600;
  white-space: normal;
}

.toast-close {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94A3B8;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  flex-shrink: 0;
  margin-left: 0.5rem;
  box-shadow: none !important;
  outline: none;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.toast-close svg {
  display: block;
  width: 14px;
  height: 14px;
  stroke: currentColor;
}

.toast-close:hover {
  background: #F1F5F9;
  color: #000000 !important;
  box-shadow: none !important;
}

.toast-close:focus,
.toast-close:active {
  box-shadow: none !important;
  outline: none;
}

@keyframes toastPopupIn {
  0% {
    opacity: 0;
    transform: translateY(-28px) scale(0.92);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes toastPopupOut {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-20px) scale(0.94);
  }
}

/* ==========================================================================
   Empty & Loading States
   ========================================================================== */
.empty-state {
  text-align: center;
  padding: 4.5rem 1.5rem;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  color: var(--text-secondary);
}

.empty-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #F8F9FC;
  border: 1px solid #E2E8F0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  color: var(--accent, #5B5CE2);
  box-shadow: 0 4px 14px rgba(91, 92, 226, 0.08);
}

.empty-icon svg {
  width: 28px;
  height: 28px;
  stroke-width: 2;
  stroke: currentColor;
}

.empty-state h3 {
  color: var(--text-primary);
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

.empty-state p {
  max-width: 480px;
  margin: 0 auto;
  font-size: 0.95rem;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #E4E7EC;
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 3.5rem auto;
}

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

/* ==========================================================================
   Global Form Inputs & Controls
   ========================================================================== */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
}

.form-group label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.form-group label .req {
  color: var(--accent);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="url"],
.form-group select,
.form-group textarea {
  width: 100%;
  background-color: #FFFFFF !important;
  border: 1px solid #D0D5DD !important;
  border-radius: var(--radius-md);
  color: #101828 !important;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  padding: 0.8rem 1rem;
  transition: all var(--duration-fast) ease;
  outline: none;
  box-sizing: border-box;
}

/* Inputs with icons: guarantee enough padding-left so icons never overlap text */
.input-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.form-group .input-icon-wrap input,
.input-icon-wrap input {
  padding-left: 44px !important;
  padding-right: 16px !important;
  height: 48px;
}

.form-group .input-icon-wrap input.has-toggle,
.form-group .input-icon-wrap:has(.input-toggle-password) input {
  padding-right: 44px !important;
}

/* Hide browser native password reveal and clear buttons (Microsoft Edge, IE, Chromium) */
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear,
input::-ms-reveal,
input::-ms-clear {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  pointer-events: none !important;
  appearance: none !important;
  -webkit-appearance: none !important;
}

.input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #667085;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  pointer-events: none;
  z-index: 2;
  transition: color var(--duration-fast) ease;
}

.input-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

.input-icon-wrap:focus-within .input-icon {
  color: var(--accent);
}

.input-toggle-password {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #667085;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-xs);
  z-index: 2;
  transition: all var(--duration-fast) ease;
}

.input-toggle-password svg {
  width: 18px;
  height: 18px;
  display: block;
}

.input-toggle-password:hover {
  color: var(--text-primary);
  background: #F2F4F7;
}

/* Chrome/Safari autofill override for light theme */
.form-group input:-webkit-autofill,
.form-group input:-webkit-autofill:hover,
.form-group input:-webkit-autofill:focus,
.input-icon-wrap input:-webkit-autofill,
.input-icon-wrap input:-webkit-autofill:hover,
.input-icon-wrap input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #FFFFFF inset !important;
  -webkit-text-fill-color: #101828 !important;
  transition: background-color 5000s ease-in-out 0s;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #98A2B3 !important;
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
  border-color: #98A2B3 !important;
  background-color: #FFFFFF !important;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent) !important;
  background-color: #FFFFFF !important;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1) !important;
}

.form-group select {
  appearance: none;
  -webkit-appearance: none;
  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='%235B5CE2' 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") !important;
  background-repeat: no-repeat !important;
  background-position: right 1rem center !important;
  background-size: 16px !important;
  padding-right: 2.5rem !important;
  cursor: pointer;
}

.form-group select option {
  background-color: #FFFFFF;
  color: #101828;
}

textarea {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  line-height: 1.5;
  resize: vertical;
}

/* ==========================================================================
   Skeleton Shimmer Loaders
   ========================================================================== */
.skeleton-card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

.skeleton-shimmer {
  background: linear-gradient(
    90deg,
    rgba(16, 24, 40, 0.02) 0%,
    rgba(16, 24, 40, 0.06) 50%,
    rgba(16, 24, 40, 0.02) 100%
  );
  background-size: 200% 100%;
  animation: skeletonShimmer 1.6s infinite ease-in-out;
}

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

.skeleton-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #F2F4F7;
}

.skeleton-body {
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.skeleton-line {
  height: 12px;
  border-radius: var(--radius-xs);
  background: rgba(16, 24, 40, 0.06);
}

.skeleton-line.title {
  height: 16px;
  width: 75%;
}

.skeleton-line.short {
  width: 45%;
}

.skeleton-line.full {
  width: 100%;
}

/* ==========================================================================
   Auth Prompt Modal (When Guests click Upload Prompt)
   ========================================================================== */
.auth-prompt-modal {
  display: none !important;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(16, 24, 40, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.auth-prompt-modal.active {
  display: flex !important;
}

@keyframes modalOverlayFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.auth-prompt-card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  box-shadow: 0 20px 48px rgba(16, 24, 40, 0.16);
  border-radius: var(--radius-xl);
  max-width: 460px;
  width: 100%;
  padding: 2.25rem 2rem;
  text-align: center;
  position: relative;
  animation: modalScaleUp 0.25s var(--ease-spring);
}

@keyframes modalScaleUp {
  from { opacity: 0; transform: scale(0.92) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.auth-prompt-close {
  position: absolute;
  top: 1rem;
  right: 1.15rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #F2F4F7;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0;
  line-height: 1;
  box-shadow: none !important;
  outline: none;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.auth-prompt-close svg {
  display: block;
  width: 16px;
  height: 16px;
  stroke: currentColor;
}

.auth-prompt-close:hover {
  background: #E2E8F0;
  color: #000000 !important;
  box-shadow: none !important;
}

.auth-prompt-close:focus,
.auth-prompt-close:active {
  box-shadow: none !important;
  outline: none;
}

.auth-prompt-icon-wrap {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--accent-light);
  border: 1px solid var(--border-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.35rem;
  color: var(--accent);
  box-shadow: var(--shadow-sm);
}

.auth-prompt-title {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 0.65rem;
}

.auth-prompt-message {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.55;
  margin-bottom: 1.75rem;
}

.auth-prompt-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.auth-prompt-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.85rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}

/* Card Action Buttons: Copy & Download */
.card-actions-group {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  min-width: 0;
  max-width: 100%;
  margin-left: auto;
}

/* Like Button */
.btn-card-like {
  display: inline-flex;
  align-items: center;
  gap: 0.18rem;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 0.74rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0.15rem 0.25rem;
  border-radius: 4px;
  transition: all 0.15s ease;
  line-height: 1;
  white-space: nowrap;
}

.btn-card-like:hover {
  color: #ef4444;
}

.btn-card-like.liked {
  color: #ef4444 !important;
}

/* Control SVG fill via CSS as backup to JS setAttribute */
.btn-card-like .like-icon {
  fill: none;
  transition: fill 0.15s ease, stroke 0.15s ease;
}

.btn-card-like.liked .like-icon {
  fill: #ef4444 !important;
  stroke: #ef4444 !important;
  animation: heartPop 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-card-like.liked .like-count {
  color: #ef4444 !important;
  font-weight: 700;
}

@keyframes heartPop {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.35); }
  70%  { transform: scale(0.9); }
  100% { transform: scale(1); }
}

/* Download (Save) Button - Crisp, tactile product style */
.card-download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  height: 28px;
  padding: 0 0.52rem;
  border-radius: 6px;
  box-sizing: border-box;
  max-width: 100%;
  white-space: nowrap;
  font-size: 0.73rem;
  font-weight: 500;
  cursor: pointer;
  min-width: 0;
  flex-shrink: 0;
  background: #FFFFFF;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: all var(--duration-fast) ease;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.card-download-btn:hover {
  background: var(--bg-subtle);
  border-color: var(--border-hover);
  color: var(--text-primary);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  transform: translateY(-1px);
}

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

/* ==========================================================================
   Comprehensive All-Device Responsive System
   Supports: 320px (Small Phone), 375px/414px (Standard Phone), 
   768px (Tablet Portrait), 1024px (Tablet Landscape/Laptop), 1280px+ (Desktop)
   ========================================================================== */

/* Zero horizontal scroll guarantee */
html, body {
  overflow-x: hidden !important;
  max-width: 100vw;
  box-sizing: border-box;
}

*, *::before, *::after {
  box-sizing: border-box;
}

/* Ensure mobile drawer backdrop works across all pages */
.mobile-nav-backdrop.open {
  display: block !important;
}

/* Desktop & Laptop Tier (<= 1280px) */
@media (max-width: 1280px) {
  .images-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.35rem;
  }
  .nav-search {
    max-width: 320px;
  }
}

/* Tablet Landscape, iPad Pro 13 (1032px), iPad Air, Surface Pro (960px) Tier (<= 1180px) */
@media (max-width: 1180px) {
  .nav-links-desktop {
    display: none !important;
  }
  .hamburger-toggle {
    display: inline-flex !important;
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    border-radius: var(--radius-sm) !important;
    flex-shrink: 0 !important;
  }
  .nav-search {
    max-width: 200px;
    margin: 0 0.25rem;
  }
  .nav-search-btn-text,
  .nav-search-kbd {
    display: none !important;
  }
  .nav-search-btn {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    padding: 0 !important;
    justify-content: center !important;
    margin-left: auto !important;
    flex-shrink: 0 !important;
  }
  .nav-actions {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    flex-shrink: 0 !important;
  }
  /* On tablet (<= 1180px), keep Upload and Avatar visible; hide secondary pills (Admin, Saved, Logout) to avoid crowding.
     These are cleanly accessible inside the slide-out drawer menu and the Profile page. */
  .nav-actions a[href*="admin"],
  .nav-actions #btn-logout,
  .nav-actions .nav-logout-btn,
  .nav-saved-btn {
    display: none !important;
  }
  .user-badge span {
    display: none !important;
  }
  .user-badge {
    padding: 4px !important;
    border-radius: 50% !important;
  }
  .footer-main-grid {
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2.5rem;
  }
  .how-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}

/* Tablet Portrait Tier (<= 900px) */
@media (max-width: 900px) {
  .images-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
  }
  .footer-main-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .footer-brand-col {
    grid-column: 1 / -1;
  }
  .how-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .how-card {
    padding: 1.75rem 1.5rem;
  }
}

/* Mobile & Phablet Tier (<= 768px) */
@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }
  .navbar {
    height: 58px;
  }
  .nav-container {
    padding: 0 0.65rem;
    gap: 0.35rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    width: 100%;
    box-sizing: border-box;
  }
  .brand-logo {
    margin-right: auto;
    flex-shrink: 1;
    min-width: 0;
    gap: 0.35rem;
  }
  .brand-logo-img {
    height: 36px !important;
    max-width: 165px !important;
    width: auto;
    object-fit: contain;
    display: block;
  }
  .brand-logo .brand-icon {
    width: 28px;
    height: 28px;
  }
  .brand-logo .brand-text {
    font-size: 1.05rem;
  }

  /* Compact Navbar Actions on Mobile */
  .nav-search-btn {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 8px !important;
    border: 1px solid #D0D5DD !important;
    background: #FFFFFF !important;
    color: #475467 !important;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04) !important;
    flex-shrink: 0 !important;
  }
  .nav-search-btn svg {
    width: 16px !important;
    height: 16px !important;
  }
  .nav-search-btn-text,
  .nav-search-kbd {
    display: none !important;
  }

  .nav-actions {
    display: flex !important;
    align-items: center !important;
    gap: 0.35rem !important;
    flex-shrink: 0 !important;
  }
  /* Keep Upload visible and tactile; hide secondary admin/saved/logout pills */
  .nav-actions a[href*="admin"] {
    display: none !important;
  }
  .nav-actions .btn {
    height: 34px !important;
    padding: 0 0.65rem !important;
    font-size: 0.78rem !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04) !important;
    white-space: nowrap !important;
    line-height: 1 !important;
    box-sizing: border-box !important;
    flex-shrink: 0 !important;
  }
  .nav-actions a[href*="upload.html"],
  .nav-actions a[href="upload.html"] {
    display: inline-flex !important;
    height: 34px !important;
    padding: 0 0.65rem !important;
    font-size: 0.78rem !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    align-items: center !important;
    gap: 0.3rem !important;
  }
  .nav-actions .btn-outline {
    border: 1px solid #D0D5DD !important;
    color: #344054 !important;
    background: #FFFFFF !important;
  }
  .nav-actions .btn-primary {
    background: #5B5CE2 !important;
    color: #FFFFFF !important;
    border: 1px solid #5B5CE2 !important;
  }
  .user-menu-wrap {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.25rem !important;
    flex-shrink: 0 !important;
  }
  .nav-actions .user-badge {
    height: 34px !important;
    padding: 0 0.35rem !important;
    gap: 0.3rem !important;
    border-radius: 8px !important;
    border: 1px solid #D0D5DD !important;
    background: #FFFFFF !important;
    display: inline-flex !important;
    align-items: center !important;
    flex-shrink: 0 !important;
  }
  .nav-actions .user-badge span {
    display: none !important;
  }
  .nav-actions .user-avatar {
    width: 26px !important;
    height: 26px !important;
    min-width: 26px !important;
    font-size: 0.75rem !important;
  }
  .nav-actions #btn-logout,
  .nav-actions .nav-logout-btn,
  .nav-actions .nav-saved-btn {
    display: none !important;
  }

  .hamburger-toggle {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    padding: 0 !important;
    border-radius: 8px !important;
    border: 1px solid #D0D5DD !important;
    background: #FFFFFF !important;
    color: #475467 !important;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04) !important;
    flex-shrink: 0 !important;
  }
  .hamburger-toggle svg {
    width: 17px !important;
    height: 17px !important;
  }

  /* Smooth Touch-Friendly Filter Carousel */
  .filter-bar {
    display: flex;
    align-items: center;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    padding: 0.4rem 0.25rem 0.85rem;
    gap: 0.45rem;
    scrollbar-width: none;
    margin-bottom: 1.5rem;
  }
  .filter-bar::-webkit-scrollbar {
    display: none;
  }
  .filter-pill {
    flex-shrink: 0;
    scroll-snap-align: start;
    white-space: nowrap;
    padding: 0.42rem 0.9rem;
    font-size: 0.82rem;
  }

  /* Hero Section */
  .hero-section {
    padding: 3rem 0 2rem;
  }
  .hero-title {
    font-size: clamp(1.85rem, 6.5vw, 2.65rem);
    line-height: 1.22;
  }
  .hero-subtitle {
    font-size: 0.96rem;
    margin-bottom: 1.5rem;
    padding: 0 0.5rem;
  }
  .hero-cta-group {
    flex-direction: column;
    width: 100%;
    max-width: 360px;
    margin: 0 auto 1.5rem;
    gap: 0.75rem;
  }
  .hero-cta-group .btn {
    width: 100%;
    justify-content: center;
    padding: 0.75rem 1.25rem;
  }
  .hero-model-tags {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem;
  }
  .model-tag-pill {
    padding: 0.35rem 0.7rem;
    font-size: 0.78rem;
  }

  /* CTA Banner Section */
  .cta-banner-section {
    padding: 3.5rem 0;
  }
  .cta-banner-card {
    padding: 2.5rem 1.25rem;
  }
  .cta-banner-card h2 {
    font-size: 1.75rem;
  }
  .cta-banner-card p {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
  }
  .cta-banner-card div a.btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }
}

/* Standard Smartphone Tier (<= 580px) */
@media (max-width: 580px) {
  .nav-search {
    display: none !important;
  }
  .images-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.35rem;
  }
  .image-card {
    width: 100%;
  }
  .card-media {
    max-height: 380px;
  }
  .card-content {
    padding: 1.15rem;
  }
  .card-title {
    font-size: 1.05rem;
  }
  .card-footer {
    padding-top: 0.75rem;
  }

  /* Footer Single Column */
  .footer {
    padding: 3rem 0 2rem;
  }
  .footer-main-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 0.85rem;
  }
  .footer-bottom div {
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem !important;
  }

  /* Toast Notification on Mobile */
  .toast {
    min-width: calc(100vw - 32px);
    right: 16px;
    bottom: 16px;
  }

  /* Auth Prompt Modal */
  .auth-prompt-card {
    padding: 1.75rem 1.25rem;
    max-width: calc(100vw - 2rem);
    margin: 0 auto;
  }
  .auth-prompt-title {
    font-size: 1.25rem;
  }
  .auth-prompt-actions {
    flex-direction: column;
    gap: 0.65rem;
  }
  .auth-prompt-btn {
    width: 100%;
    justify-content: center;
  }
}

/* Small Smartphone Tier (<= 420px, e.g. iPhone SE, Galaxy A) */
@media (max-width: 420px) {
  .container {
    padding: 0 0.75rem;
  }
  .navbar {
    height: 56px;
  }
  .nav-container {
    padding: 0 0.5rem;
    gap: 0.25rem;
  }
  .brand-logo {
    gap: 0.25rem;
  }
  .brand-logo-img {
    height: 32px !important;
    max-width: 135px !important;
  }
  .brand-logo .brand-icon {
    width: 26px;
    height: 26px;
  }
  .nav-search-btn {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    border-radius: 7px !important;
  }
  .nav-search-btn svg {
    width: 15px !important;
    height: 15px !important;
  }
  .nav-actions {
    gap: 0.25rem !important;
  }
  .nav-actions .btn {
    height: 32px !important;
    padding: 0 0.5rem !important;
    font-size: 0.74rem !important;
    border-radius: 7px !important;
  }
  .nav-actions a[href*="upload.html"],
  .nav-actions a[href="upload.html"] {
    height: 32px !important;
    padding: 0 0.5rem !important;
    font-size: 0.74rem !important;
    border-radius: 7px !important;
    gap: 0.25rem !important;
  }
  .nav-actions .user-badge {
    height: 32px !important;
    padding: 0 0.25rem !important;
    border-radius: 7px !important;
  }
  .nav-actions .user-avatar {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    font-size: 0.72rem !important;
  }
  .hamburger-toggle {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    border-radius: 7px !important;
  }
  .hamburger-toggle svg {
    width: 16px !important;
    height: 16px !important;
  }

  /* Card Footer Clean Rows */
  .card-footer {
    flex-direction: column !important;
    gap: 0.5rem !important;
  }
  .card-stats-row {
    gap: 0.3rem;
  }
  .card-stat-item {
    font-size: 0.72rem;
    height: 26px;
    padding: 0 0.25rem;
  }
  .card-actions-row {
    gap: 0.3rem;
  }
  .card-action-btn {
    padding: 0 0.25rem;
    font-size: 0.7rem;
    height: 28px;
  }

  .hero-title {
    font-size: 1.7rem;
  }
}

/* Extra Small Tier (<= 360px) */
@media (max-width: 360px) {
  .brand-logo-img {
    height: 30px !important;
    max-width: 120px !important;
  }
  /* On very narrow screens, shorten upload button text to icon-only or ultra-compact */
  .nav-actions a[href*="upload.html"] span,
  .nav-actions a[href="upload.html"] span {
    display: none !important;
  }
  .nav-actions a[href*="upload.html"],
  .nav-actions a[href="upload.html"] {
    width: 32px !important;
    min-width: 32px !important;
    padding: 0 !important;
    justify-content: center !important;
  }
}

/* Extra Small Tier (<= 340px) */
@media (max-width: 340px) {
  .brand-logo .brand-text span {
    display: inline;
  }
  .hero-title {
    font-size: 1.45rem;
  }
  .card-actions-group {
    width: 100%;
    justify-content: flex-end;
  }
  .card-download-btn,
  .card-copy-btn {
    flex: 1 1 auto;
    justify-content: center;
    min-width: 0;
  }
}

/* Comprehensive Mobile Robustness (<= 480px, down to 320px) */
@media (max-width: 480px) {
  /* Verification banner */
  .verification-banner {
    padding: 0.6rem 0.75rem;
    font-size: 0.8rem;
    gap: 0.5rem;
  }
  .verification-banner > div {
    flex: 1 1 100% !important;
    line-height: 1.35;
  }
  .btn-resend-verif {
    padding: 0.35rem 0.75rem !important;
    font-size: 0.78rem !important;
  }

  /* Global Container Spacing */
  main.container {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
  }

  /* General Form Fields & Inputs */
  input, select, textarea {
    max-width: 100% !important;
  }

  /* Modals */
  .modal-dialog {
    width: calc(100vw - 24px) !important;
    max-width: calc(100vw - 24px) !important;
    padding: 1.35rem 1rem !important;
    margin: 0 auto;
  }

  /* Tables */
  .data-table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Hero Section spacing */
  .hero-section {
    padding: 2.25rem 0 1.5rem;
  }
  .hero-pill {
    font-size: 0.8rem;
    padding: 0.3rem 0.75rem;
  }
}

/* Strict 320px Screen Safeguards */
@media (max-width: 330px) {
  .container {
    padding: 0 0.5rem !important;
  }
  .navbar {
    height: 52px;
  }
  .nav-container {
    padding: 0 0.35rem;
    gap: 0.2rem;
  }
  .brand-logo-img {
    height: 28px !important;
    max-width: 110px !important;
  }
  .nav-actions {
    gap: 0.2rem !important;
  }
  .nav-search-btn {
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
  }
  .nav-actions .btn {
    height: 30px !important;
    padding: 0 0.35rem !important;
    font-size: 0.7rem !important;
  }
  .nav-actions a[href*="upload.html"],
  .nav-actions a[href="upload.html"] {
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    padding: 0 !important;
  }
  .nav-actions .user-badge {
    height: 30px !important;
    padding: 0 0.2rem !important;
  }
  .nav-actions .user-avatar {
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
  }
  .hamburger-toggle {
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    padding: 0.25rem;
  }
  .mobile-nav-panel {
    padding: 1rem 0.75rem;
  }
  .modal-dialog {
    width: calc(100vw - 16px) !important;
    padding: 1.15rem 0.75rem !important;
  }
}

/* Static Content Pages */
.static-content-page {
  padding: clamp(2rem, 5vw, 4rem) clamp(0.75rem, 3vw, 1.5rem) clamp(3rem, 6vw, 6rem) !important;
  max-width: 860px;
}

.static-content-page section {
  padding: clamp(1.25rem, 3.5vw, 2.25rem) !important;
  border-radius: var(--radius-lg);
  overflow-wrap: break-word;
  word-break: break-word;
}

/* ==========================================================================
   AdSense Readiness & Future Placement Architecture
   ========================================================================== */
.ad-slot-container {
  display: none; /* Inactive until user/owner links Google AdSense client script */
  width: 100%;
  max-width: 100%;
  margin: 2rem auto;
  text-align: center;
  overflow: hidden;
  position: relative;
  background: transparent;
}

.ad-slot-container.is-active {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Responsive ad slots with reserved height to avoid Cumulative Layout Shift (CLS) */
.ad-slot-leaderboard {
  min-height: 90px;
}

.ad-slot-rectangle {
  min-height: 250px;
  max-width: 336px;
}

.ad-slot-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}

/* ==========================================================================
   In-App Bell Notification System
   ========================================================================== */
.nav-notification-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-notification-btn {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
}

.nav-notification-btn:hover,
.nav-notification-btn.is-active {
  color: var(--accent);
  border-color: var(--accent);
  background: #F5F6FF;
}

.nav-notif-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  background: #EF4444;
  color: #FFFFFF;
  font-size: 0.7rem;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid #FFFFFF;
  box-shadow: 0 2px 5px rgba(239, 68, 68, 0.4);
  animation: notifPulse 2s infinite;
}

@keyframes notifPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}

.notification-popover {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: -10px;
  width: 360px;
  max-width: calc(100vw - 24px);
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.14);
  z-index: 1050;
  flex-direction: column;
  overflow: hidden;
  animation: notifSlideDown 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.notification-popover.is-open {
  display: flex;
}

@media (max-width: 640px) {
  .notification-popover {
    position: fixed !important;
    top: 60px !important;
    left: 12px !important;
    right: 12px !important;
    width: auto !important;
    max-width: none !important;
    border-radius: 14px !important;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.22) !important;
    z-index: 1100 !important;
  }

  .notif-popover-list {
    max-height: calc(85vh - 120px) !important;
  }
}

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

.notif-popover-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  background: #FAFAFC;
}

.notif-popover-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
}

.notif-mark-all-btn {
  background: none;
  border: none;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--accent);
  cursor: pointer;
  padding: 0;
  transition: opacity 0.2s;
}

.notif-mark-all-btn:hover {
  text-decoration: underline;
  opacity: 0.85;
}

.notif-popover-list {
  max-height: 380px;
  overflow-y: auto;
  list-style: none;
  margin: 0;
  padding: 0;
}

.notif-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  cursor: pointer;
  transition: background 0.15s ease;
  position: relative;
  text-decoration: none;
  color: inherit;
}

.notif-item:hover {
  background: #F8F9FC;
}

.notif-item.is-unread {
  background: #F4F5FF;
}

.notif-item.is-unread:hover {
  background: #ECEEFF;
}

.notif-item-icon {
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 50%;
  background: #EEF2FF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

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

.notif-item-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.notif-item-desc {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.35;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.notif-item-time {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.notif-unread-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  position: absolute;
  top: 1.1rem;
  right: 1rem;
}

.notif-empty-state {
  padding: 2.5rem 1.5rem;
  text-align: center;
  color: var(--text-muted);
}

.notif-empty-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #F8F9FC;
  border: 1px solid #E2E8F0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.75rem;
  color: var(--accent);
}

.notif-empty-text {
  font-size: 0.85rem;
  line-height: 1.4;
}

.badge-gender {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #F8FAFC;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
}

.badge-gender-img {
  width: 14px;
  height: 14px;
  object-fit: contain;
  vertical-align: middle;
  flex-shrink: 0;
}

.btn-card-unsave {
  background: #FFFFFF;
  border: 1px solid #FECACA;
  color: #EF4444;
  cursor: pointer;
  padding: 0 0.6rem;
  height: 30px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  transition: all 0.2s ease;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.btn-card-unsave:hover {
  background: #FEF2F2;
  border-color: #FCA5A5;
  color: #DC2626;
}

.card-footer-saved-row {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  gap: 0.5rem !important;
}

/* ==========================================
   Ultra-Professional Modern Responsive Pagination Bar
   ========================================== */
.pagination-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
  padding: 0.75rem 0.25rem;
  flex-wrap: nowrap;
  width: 100%;
}

.pagination-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  height: 40px;
  padding: 0 1.1rem;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 9px;
  color: #1E293B;
  font-size: 0.88rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
  flex-shrink: 0;
  white-space: nowrap;
}

.pagination-btn:hover:not(:disabled) {
  background: #F8FAFC;
  border-color: #6366F1;
  color: #4F46E5;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.12);
}

.pagination-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  background: #F8FAFC;
  border-color: #E2E8F0;
  color: #94A3B8;
  box-shadow: none;
}

.pagination-numbers {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.pagination-num {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 9px;
  color: #334155;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  flex-shrink: 0;
}

.pagination-num:hover:not(.active) {
  border-color: #6366F1;
  color: #4F46E5;
  background: #F8FAFC;
  transform: translateY(-1px);
}

.pagination-num.active {
  background: #4F46E5 !important;
  border-color: #4F46E5 !important;
  color: #FFFFFF !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35) !important;
}

.pagination-ellipsis {
  padding: 0 0.25rem;
  color: #64748B;
  font-weight: 700;
  font-size: 0.95rem;
  flex-shrink: 0;
}

/* Mobile Responsiveness for Pagination */
@media (max-width: 640px) {
  .pagination-container {
    gap: 0.35rem;
    margin-top: 1rem;
    padding: 0.5rem 0.1rem;
  }

  .pagination-btn {
    height: 36px;
    padding: 0 0.75rem;
    font-size: 0.82rem;
    border-radius: 8px;
  }

  .pagination-numbers {
    gap: 0.25rem;
  }

  .pagination-num {
    width: 36px;
    height: 36px;
    font-size: 0.84rem;
    border-radius: 8px;
  }
}

@media (max-width: 400px) {
  .pagination-btn span {
    display: none; /* Show compact arrow icons on tiny mobile screens */
  }

  .pagination-btn {
    padding: 0 0.6rem;
  }
}





