@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,800;1,400&family=Inter:wght@300;400;500;600;700&display=swap');

/* ===================== DESIGN TOKENS — DARK (default) ===================== */
:root,
[data-theme="dark"] {
  --bg-primary: #0c0c0e;
  --bg-secondary: #111114;
  --bg-card: #18181c;
  --bg-glass: rgba(18, 18, 22, 0.88);
  --border: rgba(255,255,255,0.06);
  --border-hover: rgba(201,169,110,0.4);

  --accent: #c9a96e;
  --accent-hover: #dfc18a;
  --accent-glow: rgba(201,169,110,0.22);
  --accent-2: #d4a472;
  --accent-3: #7aad82;

  --text-primary: #f4f1ec;
  --text-secondary: #8a8680;
  --text-muted: #4a4845;

  --gradient-hero: linear-gradient(160deg, #0c0c0e 0%, #111114 100%);
  --gradient-accent: linear-gradient(135deg, #c9a96e, #e8d5a3);
  --gradient-card: linear-gradient(145deg, #18181c, #1e1e22);

  --shadow-card: 0 4px 24px rgba(0,0,0,0.55);
  --shadow-glow: 0 0 30px rgba(201,169,110,0.1);
  --shadow-hover: 0 20px 60px rgba(0,0,0,0.7), 0 0 24px rgba(201,169,110,0.08);

  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===================== DESIGN TOKENS — LIGHT ===================== */
[data-theme="light"] {
  --bg-primary: #f8f6f2;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --bg-glass: rgba(255,255,255,0.92);
  --border: rgba(0,0,0,0.08);
  --border-hover: rgba(154,111,46,0.4);

  --accent: #9a6f2e;
  --accent-hover: #b8873a;
  --accent-glow: rgba(154,111,46,0.18);
  --accent-2: #b8873a;
  --accent-3: #4e8c57;

  --text-primary: #1a1814;
  --text-secondary: #5a5650;
  --text-muted: #9a9690;

  --gradient-hero: linear-gradient(160deg, #f8f6f2 0%, #eeeae4 100%);
  --gradient-accent: linear-gradient(135deg, #9a6f2e, #c9a96e);
  --gradient-card: linear-gradient(145deg, #ffffff, #f8f6f2);

  --shadow-card: 0 2px 16px rgba(0,0,0,0.07);
  --shadow-glow: 0 0 20px rgba(154,111,46,0.1);
  --shadow-hover: 0 12px 40px rgba(0,0,0,0.12), 0 0 16px rgba(154,111,46,0.08);
}

/* ===================== SMOOTH THEME TRANSITION ===================== */
html {
  transition: background-color 0.3s ease, color 0.3s ease;
}
*, *::before, *::after {
  transition-duration: 0.2s;
  transition-timing-function: ease;
  transition-property: background-color, border-color, color, box-shadow;
}

/* ===================== RESET + BASE ===================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent-hover); }
button { cursor: pointer; font-family: inherit; border: none; outline: none; }
input, textarea, select { font-family: inherit; }

/* ===================== SCROLLBAR ===================== */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-hover); border-radius: 3px; }

/* ===================== TYPOGRAPHY ===================== */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  line-height: 1.2;
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }

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

/* ===================== LAYOUT ===================== */
.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }

/* ===================== NAVBAR ===================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(12, 12, 14, 0.9);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  padding: 0;
}

[data-theme="light"] .navbar {
  background: rgba(248, 246, 242, 0.92);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 24px;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-primary);
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}

.navbar-links a {
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 7px 13px;
  border-radius: 8px;
  transition: var(--transition);
  letter-spacing: 0.01em;
}

.navbar-links a:hover,
.navbar-links a.active {
  color: var(--text-primary);
  background: rgba(201,169,110,0.07);
}

/* ===================== THEME TOGGLE ===================== */
.theme-toggle {
  width: 34px;
  height: 34px;
  padding: 0;
  justify-content: center;
  border-radius: 8px;
  color: var(--text-secondary);
}
.theme-toggle:hover { color: var(--text-primary); background: rgba(201,169,110,0.07); }
.theme-toggle svg { display: block; }

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.875rem;
  transition: var(--transition);
  cursor: pointer;
  font-family: 'Inter', sans-serif;
}

.btn-primary {
  background: var(--gradient-accent);
  color: #0c0c0e;
  box-shadow: 0 4px 20px var(--accent-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--accent-glow);
  color: #0c0c0e;
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}
.btn-outline:hover {
  background: var(--accent);
  color: #0c0c0e;
  transform: translateY(-2px);
}

.btn-ghost {
  background: rgba(255,255,255,0.04);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.08);
  color: var(--text-primary);
}

.btn-danger {
  background: rgba(220, 70, 70, 0.08);
  color: #e05555;
  border: 1px solid rgba(220,70,70,0.2);
}
.btn-danger:hover {
  background: #e05555;
  color: #fff;
}

.btn-sm { padding: 7px 13px; font-size: 0.8rem; }
.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-icon { width: 36px; height: 36px; padding: 0; justify-content: center; border-radius: 8px; }

/* ===================== CARDS ===================== */
.card {
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: var(--transition);
  box-shadow: var(--shadow-card);
}
.card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

/* ===================== ALBUM GRID ===================== */
.albums-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.album-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-card);
  text-decoration: none;
  color: inherit;
  display: block;
  aspect-ratio: 4/3;
  background: #16161a;
}
.album-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.album-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.album-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.album-card:hover .album-cover img {
  transform: scale(1.07);
}
.album-cover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.15) 55%, transparent 100%);
}

.no-cover-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, #141416, #1c1c20);
}

.album-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 22px;
  z-index: 1;
}
.album-info h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}
.album-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.55);
  font-size: 0.78rem;
  font-family: 'Inter', sans-serif;
}
.album-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ===================== PHOTO GRID ===================== */
.photos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 3px;
}

.photo-item {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-card);
}
.photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.photo-item:hover img { transform: scale(1.06); }

.photo-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.photo-item:hover .photo-overlay {
  background: rgba(0,0,0,0.28);
}
.photo-overlay-icon {
  opacity: 0;
  width: 34px;
  height: 34px;
  border: 1.5px solid rgba(255,255,255,0.55);
  border-radius: 50%;
  transform: scale(0.75);
  transition: var(--transition);
}
.photo-item:hover .photo-overlay-icon {
  opacity: 1;
  transform: scale(1);
}

/* ===================== LIGHTBOX ===================== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.97);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.lightbox.active {
  opacity: 1;
  pointer-events: all;
}
.lightbox-img {
  max-width: min(90vw, 1200px);
  max-height: 85vh;
  object-fit: contain;
  border-radius: 2px;
  box-shadow: 0 0 80px rgba(0,0,0,0.8);
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.7);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  font-family: 'Inter', sans-serif;
  font-weight: 300;
}
.lightbox-close:hover { background: rgba(255,255,255,0.14); color: #fff; }
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.7);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  font-family: 'Inter', sans-serif;
}
.lightbox-nav:hover {
  background: rgba(201,169,110,0.2);
  border-color: rgba(201,169,110,0.35);
  color: #fff;
}
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-download {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-accent);
  color: #0c0c0e;
  border: none;
  padding: 11px 28px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 10;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-family: 'Inter', sans-serif;
}
.lightbox-download:hover {
  transform: translateX(-50%) translateY(-2px);
  box-shadow: 0 8px 24px rgba(201,169,110,0.3);
}

.photo-img, .lightbox-img {
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  -moz-user-select: none;
  -webkit-user-select: none;
}

/* ===================== LEAD MODAL ===================== */
.lead-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.82);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  backdrop-filter: blur(8px);
}
.lead-modal-backdrop.active {
  opacity: 1;
  pointer-events: all;
}
.lead-modal {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px 36px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  box-shadow: 0 40px 80px rgba(0,0,0,0.5);
}
.lead-modal h2 {
  font-size: 1.6rem;
  margin-bottom: 8px;
}
.lead-modal p {
  color: var(--text-secondary);
  margin-bottom: 28px;
  font-size: 0.875rem;
  line-height: 1.65;
  font-family: 'Inter', sans-serif;
}
.lead-form { display: flex; flex-direction: column; gap: 14px; }
.lead-form input {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 14px 16px;
  border-radius: var(--radius);
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
}
.lead-form input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(201,169,110,0.1);
}
.lead-form input::placeholder { color: var(--text-muted); }
.lead-form button {
  background: var(--gradient-accent);
  color: #0c0c0e;
  border: none;
  padding: 14px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-family: 'Inter', sans-serif;
}
.lead-form button:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(201,169,110,0.25); }
.lead-form button:disabled { opacity: 0.6; cursor: not-allowed; transform: none; box-shadow: none; }
.lead-skip {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 8px;
  font-size: 0.8rem;
  font-family: 'Inter', sans-serif;
}
.lead-skip:hover { color: var(--text-secondary); }

/* ===================== HERO ===================== */
.hero {
  min-height: 70vh;
  background: var(--gradient-hero);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(201,169,110,0.05) 0%, transparent 70%);
  top: -100px;
  left: -100px;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201,169,110,0.08);
  border: 1px solid rgba(201,169,110,0.2);
  color: var(--accent);
  padding: 5px 14px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: 'Inter', sans-serif;
}
.hero h1 { margin-bottom: 20px; }
.hero p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 550px;
  font-family: 'Inter', sans-serif;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ===================== INPUTS ===================== */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: 'Inter', sans-serif;
}
.input {
  width: 100%;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 0.9rem;
  transition: var(--transition);
  font-family: 'Inter', sans-serif;
}
.input:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(201,169,110,0.03);
  box-shadow: 0 0 0 3px rgba(201,169,110,0.08);
}
.input::placeholder { color: var(--text-muted); }
select.input { cursor: pointer; }
textarea.input { resize: vertical; min-height: 90px; }

/* ===================== UPLOAD ZONE ===================== */
.upload-zone {
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 24px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  background: rgba(255,255,255,0.02);
}
.upload-zone:hover,
.upload-zone.dragover {
  border-color: var(--accent);
  background: rgba(201,169,110,0.04);
  box-shadow: var(--shadow-glow);
}
.upload-zone-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
  display: block;
  opacity: 0.3;
}
.upload-zone h3 { margin-bottom: 8px; }
.upload-zone p { color: var(--text-muted); font-size: 0.875rem; }

/* ===================== PROGRESS BAR ===================== */
.progress-bar {
  width: 100%;
  height: 2px;
  background: rgba(255,255,255,0.06);
  border-radius: 2px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--gradient-accent);
  border-radius: 2px;
  transition: width 0.3s ease;
}

/* ===================== BADGES / TAGS ===================== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  font-family: 'Inter', sans-serif;
  text-transform: uppercase;
}
.badge-accent { background: rgba(201,169,110,0.1); color: var(--accent); border: 1px solid rgba(201,169,110,0.2); }
.badge-success { background: rgba(122,173,130,0.1); color: var(--accent-3); border: 1px solid rgba(122,173,130,0.2); }
.badge-warning { background: rgba(200,150,0,0.1); color: #c89600; border: 1px solid rgba(200,150,0,0.2); }
.badge-info { background: rgba(100,160,220,0.1); color: #64a0dc; border: 1px solid rgba(100,160,220,0.2); }

/* ===================== STAT CARDS ===================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}
.stat-card {
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: var(--transition);
}
.stat-card:hover { border-color: var(--border-hover); transform: translateY(-3px); }
.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.stat-icon-purple { background: rgba(201,169,110,0.1); }
.stat-icon-pink { background: rgba(201,169,110,0.07); }
.stat-icon-teal { background: rgba(122,173,130,0.1); }
.stat-icon-blue { background: rgba(100,160,220,0.1); }
.stat-value {
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 4px;
  font-family: 'Inter', sans-serif;
}
.stat-label { color: var(--text-muted); font-size: 0.78rem; font-weight: 500; font-family: 'Inter', sans-serif; }

/* ===================== MODALS ===================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(8px);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.modal-backdrop.active {
  opacity: 1;
  pointer-events: all;
}
.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
  max-width: 520px;
  width: 100%;
  box-shadow: var(--shadow-hover);
  transform: scale(0.96) translateY(8px);
  transition: transform 0.25s ease;
}
.modal-backdrop.active .modal {
  transform: scale(1) translateY(0);
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.modal-title { font-size: 1.2rem; font-weight: 700; }

/* ===================== TOAST ===================== */
.toast-container {
  position: fixed;
  top: 76px;
  right: 20px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 18px;
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: var(--shadow-hover);
  min-width: 260px;
  max-width: 340px;
  animation: toastIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  font-family: 'Inter', sans-serif;
}
.toast-success { border-left: 3px solid var(--accent-3); }
.toast-error { border-left: 3px solid #e05555; }
.toast-info { border-left: 3px solid var(--accent); }

@keyframes toastIn {
  from { transform: translateX(120%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
@keyframes toastOut {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(120%); opacity: 0; }
}

/* ===================== SEARCH PAGE ===================== */
.search-upload-area {
  border: 1px dashed rgba(201,169,110,0.2);
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  text-align: center;
  background: rgba(201,169,110,0.02);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.search-upload-area:hover,
.search-upload-area.dragover {
  border-color: var(--accent);
  background: rgba(201,169,110,0.05);
}
.search-preview {
  max-width: 280px;
  max-height: 280px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin: 0 auto 20px;
  box-shadow: var(--shadow-hover);
  border: 1px solid var(--border-hover);
}
.result-photo-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: var(--transition);
}
.result-photo-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.result-photo-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}
.confidence-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0,0,0,0.84);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(201,169,110,0.3);
  color: var(--accent);
  padding: 3px 8px;
  border-radius: 100px;
  font-size: 0.68rem;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.02em;
}
.ai-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 60px 0;
  color: var(--text-secondary);
  font-family: 'Inter', sans-serif;
}

/* ===================== LOADER ===================== */
.loader {
  width: 28px;
  height: 28px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
  flex-shrink: 0;
}
.loader-lg {
  width: 40px;
  height: 40px;
  border-width: 2px;
}

/* Keep ai-orb invisible — referenced in JS but not shown */
.ai-orb { display: none; }

/* ===================== FOOTER ===================== */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  margin-top: auto;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: 'Inter', sans-serif;
}

/* ===================== UTILITIES ===================== */
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.mt-0 { margin-top: 0; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.text-center { text-align: center; }
.text-sm { font-size: 0.85rem; }
.text-xs { font-size: 0.75rem; }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.w-full { width: 100%; }
.hidden { display: none !important; }

/* ===================== EMPTY STATE ===================== */
.empty-state {
  text-align: center;
  padding: 80px 40px;
  color: var(--text-secondary);
  font-family: 'Inter', sans-serif;
}
.empty-state-icon {
  font-size: 2.2rem;
  margin-bottom: 20px;
  opacity: 0.2;
  display: block;
}
.empty-state h3 { margin-bottom: 12px; color: var(--text-primary); font-size: 1.15rem; }
.empty-state p { margin-bottom: 24px; max-width: 400px; margin-left: auto; margin-right: auto; font-size: 0.875rem; line-height: 1.65; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 768px) {
  .navbar-inner { height: 58px; padding: 0 16px; }
  .navbar-links { display: flex; gap: 2px; }
  .navbar-links a { padding: 6px 9px; font-size: 0.78rem; }

  .hero { min-height: auto; padding: 60px 0; }
  .photos-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 2px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }

  .lightbox-nav { width: 40px; height: 40px; font-size: 1.2rem; }
  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
}

@media (max-width: 480px) {
  .navbar-links a { padding: 6px 7px; font-size: 0.75rem; }
}

/* Admin Mobile Enhancements */
.admin-header-mobile { display:none; position:fixed; top:0; left:0; right:0; height:60px; background:var(--bg-secondary); border-bottom:1px solid var(--border); align-items:center; justify-content:space-between; padding:0 20px; z-index:100; }
.sidebar-overlay { display:none; position:fixed; inset:0; background:rgba(0,0,0,0.6); z-index:150; backdrop-filter:blur(4px); }
.sidebar-overlay.active { display:block; }

@media(max-width:900px) {
  .admin-header-mobile { display:flex; }
  .admin-layout { grid-template-columns:1fr !important; padding-top:60px; }
  .sidebar {
    position:fixed !important;
    left:-240px;
    top:0;
    bottom:0;
    z-index:200;
    width:240px;
    transition:var(--transition);
    display:flex !important;
    box-shadow:20px 0 50px rgba(0,0,0,0.5);
  }
  .sidebar.active { left:0; }
  .main-content { padding:24px 20px !important; }
}

/* ===================== SPIN ANIMATION ===================== */
@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
