/* ============================================================
   NEKO GALLERY — Cute Cat Theme ✦ Pastel Edition
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fredoka+One&family=Nunito:wght@400;600;700;800&family=Pacifico&display=swap');

/* ─── CSS Variables ─── */
:root {
  --cream:       #fdf7f0;
  --beige:       #f5e8d5;
  --warm-blush:  #fce8df;
  --peach:       #f9d5c4;
  --cat-pink:    #f2a8b4;
  --cat-rose:    #e8849a;
  --caramel:     #d4956a;
  --sand:        #ecdcc8;
  --soft-tan:    #e8d5bc;
  --white:       #ffffff;
  --text-dark:   #3a2518;
  --text-mid:    #6b4a30;
  --text-light:  #a07858;
  --text-muted:  #c4a882;
  --shadow-xs:   0 2px 10px rgba(180,100,60,0.10);
  --shadow-sm:   0 4px 20px rgba(180,100,60,0.14);
  --shadow-md:   0 8px 36px rgba(180,100,60,0.20);
  --shadow-lg:   0 18px 60px rgba(180,100,60,0.26);
  --radius-card: 22px;
  --radius-btn:  50px;
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --transition:  all 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', sans-serif;
  background-color: var(--cream);
  color: var(--text-dark);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Pastel gradient mesh background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 15% 10%,  rgba(249,213,196,0.55) 0%, transparent 45%),
    radial-gradient(ellipse at 85% 85%,  rgba(242,168,180,0.40) 0%, transparent 45%),
    radial-gradient(ellipse at 55% 50%,  rgba(245,232,213,0.30) 0%, transparent 40%),
    radial-gradient(ellipse at 75% 15%,  rgba(252,232,223,0.35) 0%, transparent 40%),
    linear-gradient(165deg, #fdf7f0 0%, #fce8df 45%, #f5e8d5 100%);
  z-index: -2;
  animation: bgBreath 14s ease-in-out infinite alternate;
}

/* Subtle paw-print texture overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='%23d4956a' opacity='0.045'%3E%3Cellipse cx='28' cy='22' rx='5' ry='6'/%3E%3Cellipse cx='42' cy='16' rx='4' ry='5.5'/%3E%3Cellipse cx='55' cy='18' rx='4' ry='5.5'/%3E%3Cellipse cx='67' cy='22' rx='5' ry='6'/%3E%3Cpath d='M35 32 Q47.5 24 60 32 Q70 42 47.5 52 Q25 42 35 32Z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 120px 120px;
  z-index: -1;
  pointer-events: none;
}

@keyframes bgBreath {
  0%   { opacity: 1; }
  100% { opacity: 0.88; }
}

/* ─── Floating Paws Particles ─── */
.floating-hearts {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.heart-particle {
  position: absolute;
  animation: pawFloat linear infinite;
  opacity: 0;
  will-change: transform;
}

@keyframes pawFloat {
  0%   { transform: translateY(108vh) rotate(-15deg); opacity: 0;    }
  8%   { opacity: 0.55; }
  88%  { opacity: 0.35; }
  100% { transform: translateY(-8vh)  rotate(25deg);  opacity: 0;    }
}

/* ─── Cat Loader ─── */
.cat-loader {
  position: fixed;
  inset: 0;
  background: var(--cream);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  transition: opacity 0.5s ease;
}

.cat-loader.fade-out { opacity: 0; pointer-events: none; }

.loader-cat {
  font-size: 3.5rem;
  animation: catBounce 0.6s cubic-bezier(0.34,1.56,0.64,1) infinite alternate;
}

@keyframes catBounce {
  from { transform: translateY(0)    scale(1);    }
  to   { transform: translateY(-14px) scale(1.1); }
}

.loader-dots { display: flex; gap: 6px; }

.loader-dots span {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--cat-rose);
  animation: dotPulse 0.7s ease-in-out infinite alternate;
}

.loader-dots span:nth-child(2) { animation-delay: 0.15s; background: var(--caramel); }
.loader-dots span:nth-child(3) { animation-delay: 0.30s; background: var(--cat-pink); }

@keyframes dotPulse {
  from { transform: scale(0.6); opacity: 0.4; }
  to   { transform: scale(1.2); opacity: 1;   }
}

.loader-text {
  font-family: 'Fredoka One', cursive;
  font-size: 1.1rem;
  color: var(--text-light);
  letter-spacing: 1px;
}

/* ─── Page Wrapper ─── */
.page-wrapper {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

/* ─── Header ─── */
.site-header {
  background: rgba(253,247,240,0.85);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border-bottom: 2px solid var(--sand);
  padding: 0 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  font-family: 'Fredoka One', cursive;
  font-size: 1.9rem;
  color: var(--cat-rose);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: 0.5px;
  transition: var(--transition);
}

.site-logo:hover { transform: scale(1.05) rotate(-1deg); }

.logo-cat {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--peach), var(--cat-pink));
  border-radius: 50%;
  font-size: 1.3rem;
  box-shadow: var(--shadow-xs);
  animation: catWiggle 3s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes catWiggle {
  0%,100% { transform: rotate(0deg);  }
  25%     { transform: rotate(-8deg); }
  75%     { transform: rotate(8deg);  }
}

/* Reuse heart-icon class for logo anim */
.heart-icon { animation: catWiggle 3s ease-in-out infinite; font-size: 1.5rem; }

.nav-links { display: flex; gap: 0.5rem; align-items: center; }

.nav-link {
  font-family: 'Nunito', sans-serif;
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text-mid);
  text-decoration: none;
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-btn);
  transition: var(--transition);
  letter-spacing: 0.2px;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  background: var(--beige);
  color: var(--cat-rose);
  transform: translateY(-1px);
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.6rem;
  border-radius: var(--radius-btn);
  font-family: 'Nunito', sans-serif;
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
  border: none;
  outline: none;
  text-decoration: none;
  transition: var(--transition);
  letter-spacing: 0.2px;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--cat-rose), var(--cat-pink));
  color: var(--white);
  box-shadow: 0 4px 20px rgba(232,132,154,0.45);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 30px rgba(232,132,154,0.55);
}

.btn-primary:active { transform: translateY(-1px) scale(0.99); }

.btn-secondary {
  background: var(--white);
  color: var(--cat-rose);
  border: 2.5px solid var(--sand);
}

.btn-secondary:hover {
  background: var(--beige);
  border-color: var(--cat-pink);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn-danger {
  background: linear-gradient(135deg, #e87070, #f0908a);
  color: white;
  box-shadow: 0 4px 18px rgba(232,112,112,0.35);
}

.btn-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(232,112,112,0.45);
}

.btn-sm { padding: 0.38rem 0.95rem; font-size: 0.8rem; }

/* ─── Paw Divider ─── */
.paw-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  margin: 2rem 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.paw-divider::before,
.paw-divider::after {
  content: '';
  flex: 1;
  max-width: 100px;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, var(--soft-tan));
  border-radius: 2px;
}

.paw-divider::after { background: linear-gradient(90deg, var(--soft-tan), transparent); }

/* ─── Hero ─── */
.hero {
  text-align: center;
  padding: 5rem 2rem 3rem;
  position: relative;
}

/* Decorative cat ear silhouettes */
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  top: 24px;
  width: 55px; height: 55px;
  background: var(--sand);
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  border-radius: 4px;
  opacity: 0.35;
}

.hero::before { left: 8%;  transform: rotate(-12deg); }
.hero::after  { right: 8%; transform: rotate(12deg);  }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--beige);
  color: var(--cat-rose);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  padding: 0.45rem 1.3rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
  border: 2px solid var(--sand);
  box-shadow: var(--shadow-xs);
}

.hero-title {
  font-family: 'Fredoka One', cursive;
  font-size: clamp(2.5rem, 6vw, 4.8rem);
  color: var(--text-dark);
  line-height: 1.1;
  margin-bottom: 1rem;
  letter-spacing: 0.5px;
}

.hero-title span { color: var(--cat-rose); }

.hero-subtitle {
  font-family: 'Pacifico', cursive;
  font-size: clamp(0.95rem, 2.2vw, 1.3rem);
  color: var(--text-light);
  margin-bottom: 2rem;
  letter-spacing: 0.5px;
}

/* Whisker decoration */
.hero-whiskers {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin: 1.5rem 0;
}

.whisker {
  height: 2px;
  border-radius: 2px;
  opacity: 0.35;
  background: linear-gradient(90deg, transparent, var(--caramel), transparent);
}

.whisker-l, .whisker-r { width: 70px; }

/* Reuse hero-divider for spacing */
.hero-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
}

.hero-divider::before,
.hero-divider::after {
  content: '';
  width: 80px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--soft-tan));
}

.hero-divider::after { background: linear-gradient(90deg, var(--soft-tan), transparent); }

/* ─── Gallery Section ─── */
.gallery-section {
  max-width: 1300px;
  margin: 0 auto;
  padding: 1rem 1.5rem 5rem;
}

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

.section-title {
  font-family: 'Fredoka One', cursive;
  font-size: 1.9rem;
  color: var(--text-dark);
  letter-spacing: 0.5px;
}

.photo-count {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--text-light);
  background: var(--beige);
  padding: 0.3rem 1rem;
  border-radius: 50px;
  border: 1.5px solid var(--sand);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.8rem;
}

/* ─── Photo Card ─── */
.photo-card {
  background: var(--white);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.32s ease;
  position: relative;
  animation: cardIn 0.5s ease both;
  cursor: pointer;
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(28px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0)    scale(1);    }
}

.photo-card::after {
  content: '🐾';
  position: absolute;
  top: 10px; right: 12px;
  font-size: 0.9rem;
  opacity: 0;
  transform: scale(0.5) rotate(-20deg);
  transition: all 0.3s cubic-bezier(0.34,1.56,0.64,1);
  z-index: 3;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
}

.photo-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: var(--shadow-lg), 0 0 0 3px var(--sand);
}

.photo-card:hover::after {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

.card-image-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--beige);
}

.card-image-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
  display: block;
}

.photo-card:hover .card-image-wrap img { transform: scale(1.08); }

.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(212,149,106,0.65) 100%);
  opacity: 0;
  transition: var(--transition);
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  gap: 0.5rem;
}

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

.overlay-icon {
  font-size: 1.4rem;
  animation: catWiggle 2s ease-in-out infinite;
}

/* keep heart-icon alias */
.overlay-heart { font-size: 1.4rem; animation: catWiggle 2s ease-in-out infinite; }

.card-body {
  padding: 0.9rem 1.2rem 1.1rem;
  border-top: 2px solid var(--beige);
}

.card-title {
  font-family: 'Fredoka One', cursive;
  font-size: 1rem;
  color: var(--text-dark);
  margin-bottom: 0.4rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.3px;
}

.card-meta {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.card-actions {
  display: flex;
  gap: 0.5rem;
  padding: 0 1.2rem 1.1rem;
}

/* ─── Empty State ─── */
.empty-state {
  grid-column: 1/-1;
  text-align: center;
  padding: 5rem 2rem;
}

.empty-state .empty-icon {
  font-size: 4.5rem;
  margin-bottom: 1rem;
  display: block;
  animation: catBounce 1s cubic-bezier(0.34,1.56,0.64,1) infinite alternate;
}

.empty-state h3 {
  font-family: 'Fredoka One', cursive;
  font-size: 1.6rem;
  color: var(--text-mid);
  margin-bottom: 0.5rem;
}

.empty-state p { color: var(--text-light); font-weight: 600; }

/* ─── Loading State ─── */
.loading-state {
  grid-column: 1/-1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4rem;
  gap: 1rem;
  color: var(--text-light);
  font-weight: 700;
}

/* Override spinner to cat emoji */
.spinner {
  font-size: 2.8rem;
  animation: catBounce 0.55s cubic-bezier(0.34,1.56,0.64,1) infinite alternate;
  /* hide the border-based spinner */
  border: none;
  background: none;
  width: auto; height: auto;
}

/* ─── Auth Page ─── */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.auth-card {
  background: rgba(255,255,255,0.93);
  backdrop-filter: blur(24px);
  border-radius: 30px;
  padding: 3rem 2.5rem;
  width: 100%;
  max-width: 430px;
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--sand);
  text-align: center;
  animation: cardIn 0.55s cubic-bezier(0.34,1.56,0.64,1) both;
  position: relative;
}

/* Cat ears on auth card */
.auth-card::before,
.auth-card::after {
  content: '';
  position: absolute;
  top: -22px;
  width: 38px; height: 38px;
  background: var(--sand);
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  border-radius: 3px;
}

.auth-card::before { left: 40px;  transform: rotate(-5deg); }
.auth-card::after  { right: 40px; transform: rotate(5deg);  }

.auth-logo {
  font-family: 'Fredoka One', cursive;
  font-size: 2.3rem;
  color: var(--cat-rose);
  margin-bottom: 0.4rem;
  letter-spacing: 1px;
}

.auth-tagline {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.auth-hearts,
.auth-cat-row {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  margin-bottom: 2rem;
}

.auth-hearts span,
.auth-cat-row span {
  animation: catBounce 0.8s cubic-bezier(0.34,1.56,0.64,1) infinite alternate;
}

.auth-hearts span:nth-child(2),
.auth-cat-row span:nth-child(2) { animation-delay: 0.15s; }

.auth-hearts span:nth-child(3),
.auth-cat-row span:nth-child(3) { animation-delay: 0.30s; }

/* ─── Form ─── */
.form-group { margin-bottom: 1.2rem; text-align: left; }

.form-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--text-mid);
  margin-bottom: 0.4rem;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.form-input {
  width: 100%;
  padding: 0.85rem 1.2rem;
  border: 2.5px solid var(--sand);
  border-radius: 16px;
  font-family: 'Nunito', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
  background: var(--cream);
  transition: var(--transition);
  outline: none;
}

.form-input:focus {
  border-color: var(--cat-pink);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(242,168,180,0.22);
}

.form-input::placeholder { color: var(--text-muted); }
.form-input.error { border-color: #e87070; }

/* ─── Alerts ─── */
.alert {
  padding: 0.85rem 1.2rem;
  border-radius: 14px;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  animation: slideDown 0.3s ease;
}

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

.alert-error   { background: #fff3f3; color: #c0334d; border: 1.5px solid #f5c0c0; }
.alert-success { background: #f3fff8; color: #1a7c52; border: 1.5px solid #b0e8cc; }
.alert-info    { background: var(--beige); color: var(--text-mid); border: 1.5px solid var(--sand); }
.hidden { display: none !important; }

/* ─── Dashboard Layout ─── */
.dashboard-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: calc(100vh - 72px);
}

/* ─── Sidebar ─── */
.sidebar {
  background: rgba(253,247,240,0.9);
  backdrop-filter: blur(18px);
  border-right: 2px solid var(--sand);
  padding: 1.8rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.sidebar-section-label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.5rem 0.85rem;
  margin-top: 0.5rem;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.72rem 1rem;
  border-radius: 14px;
  color: var(--text-mid);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 800;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}

.sidebar-link:hover {
  background: var(--beige);
  color: var(--cat-rose);
  transform: translateX(3px);
}

.sidebar-link.active {
  background: linear-gradient(135deg, var(--peach), var(--warm-blush));
  color: var(--cat-rose);
  box-shadow: var(--shadow-xs);
}

.sidebar-link .icon { font-size: 1.1rem; }

.sidebar-bottom {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 2px solid var(--sand);
}

/* ─── Main Content ─── */
.main-content { padding: 2rem; overflow-y: auto; }

.content-header { margin-bottom: 2rem; }

.content-title {
  font-family: 'Fredoka One', cursive;
  font-size: 2rem;
  color: var(--text-dark);
  margin-bottom: 0.3rem;
  letter-spacing: 0.5px;
}

.content-subtitle { font-size: 0.9rem; font-weight: 600; color: var(--text-light); }

/* ─── Stats ─── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
  gap: 1.2rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--white);
  border-radius: 20px;
  padding: 1.4rem 1rem;
  box-shadow: var(--shadow-xs);
  text-align: center;
  transition: var(--transition);
  border: 2px solid var(--beige);
}

.stat-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: var(--shadow-md);
  border-color: var(--sand);
}

.stat-icon { font-size: 2rem; margin-bottom: 0.4rem; }

.stat-number {
  font-family: 'Fredoka One', cursive;
  font-size: 2.2rem;
  color: var(--cat-rose);
  line-height: 1;
}

.stat-label { font-size: 0.78rem; font-weight: 800; color: var(--text-muted); margin-top: 0.2rem; }

/* ─── Upload Zone ─── */
.upload-zone {
  background: var(--white);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: var(--shadow-xs);
  margin-bottom: 2rem;
  border: 2px solid var(--beige);
}

.upload-zone-title {
  font-family: 'Fredoka One', cursive;
  font-size: 1.3rem;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: 0.3px;
}

.dropzone {
  border: 3px dashed var(--cat-pink);
  border-radius: 20px;
  padding: 3rem 2rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  background: var(--cream);
  position: relative;
  overflow: hidden;
}

.dropzone:hover,
.dropzone.dragover {
  border-color: var(--cat-rose);
  background: var(--warm-blush);
  box-shadow: 0 0 0 6px rgba(242,168,180,0.12);
  transform: scale(1.006);
}

.dropzone input[type=file] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%; height: 100%;
}

.dropzone-icon {
  font-size: 3.5rem;
  margin-bottom: 0.8rem;
  display: block;
  animation: catBounce 1.2s cubic-bezier(0.34,1.56,0.64,1) infinite alternate;
}

.dropzone h3 {
  font-family: 'Fredoka One', cursive;
  font-size: 1.1rem;
  color: var(--text-mid);
  margin-bottom: 0.4rem;
}

.dropzone p { font-size: 0.85rem; font-weight: 600; color: var(--text-light); }

/* ─── Preview ─── */
.preview-wrap { margin-top: 1.5rem; display: none; gap: 1.5rem; align-items: flex-start; }
.preview-wrap.visible { display: flex; flex-wrap: wrap; }

.preview-img {
  width: 160px; height: 120px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  border: 3px solid var(--sand);
}

.preview-form { flex: 1; min-width: 200px; }

.upload-actions { display: flex; gap: 0.75rem; margin-top: 1rem; flex-wrap: wrap; }

/* ─── Progress Bar ─── */
.progress-bar-wrap { margin-top: 1rem; display: none; }
.progress-bar-wrap.visible { display: block; }

.progress-bar-track {
  height: 10px;
  background: var(--beige);
  border-radius: 50px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--cat-pink), var(--cat-rose), var(--caramel), var(--cat-pink));
  background-size: 300% 100%;
  border-radius: 50px;
  width: 0%;
  transition: width 0.35s ease;
  animation: shimmer 1.5s linear infinite;
}

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

.progress-label { font-size: 0.78rem; font-weight: 700; color: var(--text-light); margin-top: 0.4rem; }

/* ─── Admin Gallery ─── */
.admin-gallery {
  background: var(--white);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: var(--shadow-xs);
  border: 2px solid var(--beige);
}

.admin-gallery-title {
  font-family: 'Fredoka One', cursive;
  font-size: 1.3rem;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.admin-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.2rem;
}

.admin-photo-card {
  background: var(--cream);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  border: 2px solid var(--beige);
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.3s ease;
  animation: cardIn 0.4s ease both;
}

.admin-photo-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: var(--shadow-md);
  border-color: var(--cat-pink);
}

.admin-card-img { aspect-ratio: 4/3; object-fit: cover; width: 100%; display: block; }
.admin-card-body { padding: 0.75rem; }

.admin-card-title {
  font-size: 0.83rem;
  font-weight: 800;
  color: var(--text-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.45rem;
}

/* ─── Modal ─── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(58,37,24,0.45);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: fadeIn 0.2s ease;
}

.modal-overlay.hidden { display: none; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal {
  background: var(--white);
  border-radius: 28px;
  padding: 2.2rem;
  max-width: 440px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  animation: cardIn 0.35s cubic-bezier(0.34,1.56,0.64,1);
  text-align: center;
  border: 2px solid var(--sand);
  position: relative;
}

/* Cat ears on modal */
.modal::before,
.modal::after {
  content: '';
  position: absolute;
  top: -18px;
  width: 34px; height: 34px;
  background: var(--sand);
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

.modal::before { left: 30px;  transform: rotate(-4deg); }
.modal::after  { right: 30px; transform: rotate(4deg);  }

.modal-icon { font-size: 3rem; margin-bottom: 0.8rem; display: block; }

.modal-title {
  font-family: 'Fredoka One', cursive;
  font-size: 1.4rem;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  letter-spacing: 0.3px;
}

.modal-text { font-size: 0.9rem; font-weight: 600; color: var(--text-light); margin-bottom: 1.5rem; }
.modal-actions { display: flex; gap: 0.75rem; justify-content: center; }

/* ─── Lightbox ─── */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20,10,5,0.94);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  animation: fadeIn 0.3s ease;
  cursor: zoom-out;
}

.lightbox.hidden { display: none; }

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  cursor: default;
}

.lightbox-img {
  max-width: 100%;
  max-height: 85vh;
  border-radius: 18px;
  box-shadow: 0 0 80px rgba(242,168,180,0.25);
  object-fit: contain;
  display: block;
}

.lightbox-close {
  position: fixed;
  top: 1.5rem; right: 1.5rem;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: white;
  font-size: 1.1rem;
  font-weight: 800;
  transition: var(--transition);
}

.lightbox-close:hover {
  background: rgba(232,132,154,0.5);
  transform: scale(1.1) rotate(90deg);
}

.lightbox-caption {
  position: absolute;
  bottom: -2.8rem;
  left: 0; right: 0;
  text-align: center;
  font-family: 'Pacifico', cursive;
  font-size: 1.1rem;
  color: rgba(255,255,255,0.75);
}

/* ─── Footer ─── */
.site-footer {
  text-align: center;
  padding: 2rem;
  font-family: 'Pacifico', cursive;
  font-size: 0.95rem;
  color: var(--text-muted);
  border-top: 2px solid var(--sand);
}

.site-footer span { color: var(--cat-rose); }

/* ─── Scrollbar ─── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--sand); border-radius: 50px; }
::-webkit-scrollbar-thumb:hover { background: var(--cat-pink); }

/* ─── Toast ─── */
.toast-container {
  position: fixed;
  bottom: 2rem; right: 2rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.toast {
  background: var(--white);
  border-radius: 16px;
  padding: 0.9rem 1.4rem;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-dark);
  border: 2px solid var(--sand);
  border-left: 5px solid var(--cat-rose);
  animation: slideInRight 0.35s cubic-bezier(0.34,1.56,0.64,1);
  max-width: 320px;
}

.toast.success { border-left-color: #3abf7b; }
.toast.error   { border-left-color: #e87070; }

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(50px) scale(0.9); }
  to   { opacity: 1; transform: translateX(0)    scale(1);   }
}

@keyframes slideOutRight {
  from { opacity: 1; transform: translateX(0)    scale(1);   }
  to   { opacity: 0; transform: translateX(50px) scale(0.9); }
}

/* ─── Hamburger ─── */
.hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 12px;
  border: 2px solid var(--sand);
  background: var(--beige);
  color: var(--cat-rose);
  cursor: pointer;
  font-size: 1.1rem;
  transition: var(--transition);
}

.hamburger:hover { background: var(--peach); }

/* ─── Sidebar Overlay ─── */
.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(58,37,24,0.35);
  z-index: 199;
  display: none;
  backdrop-filter: blur(3px);
}

.sidebar-overlay.visible { display: block; }

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .dashboard-layout { grid-template-columns: 1fr; }

  .sidebar {
    position: fixed;
    left: -280px;
    top: 72px;
    width: 260px;
    height: calc(100vh - 72px);
    z-index: 200;
    transition: left 0.3s cubic-bezier(0.34,1.56,0.64,1);
  }

  .sidebar.open { left: 0; }
  .hamburger { display: flex !important; }
  .hero-title { font-size: 2.2rem; }
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.2rem; }
  .main-content { padding: 1.2rem; }
  .preview-wrap { flex-direction: column; }
  .preview-img { width: 100%; height: 200px; }
  .hero::before, .hero::after { display: none; }
}

/* ─── Selection ─── */
::selection { background: var(--cat-pink); color: var(--white); }
