/* ==========================================================================
   Dynasty Photo Gallery - Light Theme & Modern Minimalist Exhibition
   Curated Art Gallery Aesthetic - Fully Mobile & Desktop Responsive
   ========================================================================== */

:root {
  /* Crisp Light Theme Palette */
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --bg-banner: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
  --bg-glass: rgba(255, 255, 255, 0.85);

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --text-light: #64748b;

  --accent-primary: #4f46e5;       /* Royal Indigo */
  --accent-primary-hover: #4338ca;
  --accent-gold: #d97706;          /* Warrior Gold/Amber */
  --accent-gold-light: #fffbeb;
  --accent-gold-border: #fde68a;
  --accent-rose: #e11d48;          /* Romantic Rose */
  --accent-rose-light: #fff1f2;
  --accent-emerald: #059669;       /* Free Emerald */
  --accent-emerald-light: #ecfdf5;

  --border-subtle: #e2e8f0;
  --border-card: #e2e8f0;
  --border-hover: #cbd5e1;

  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px -1px rgba(0, 0, 0, 0.05);
  --shadow-card: 0 4px 12px -2px rgba(15, 23, 42, 0.06), 0 2px 6px -2px rgba(15, 23, 42, 0.04);
  --shadow-hover: 0 16px 28px -4px rgba(15, 23, 42, 0.1), 0 6px 12px -3px rgba(15, 23, 42, 0.05);
  --shadow-floating: 0 20px 35px -5px rgba(15, 23, 42, 0.12), 0 10px 15px -5px rgba(15, 23, 42, 0.04);

  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Outfit', 'Plus Jakarta Sans', sans-serif;

  --header-height: 70px;
  --bottom-nav-height: 66px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* ==========================================================================
   Global Reset & Base
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  height: 100%;
}

body.light-theme {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100%;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background-image: 
    radial-gradient(at 10% 10%, rgba(79, 70, 229, 0.03) 0px, transparent 50%),
    radial-gradient(at 90% 15%, rgba(217, 119, 6, 0.04) 0px, transparent 50%),
    radial-gradient(at 50% 90%, rgba(225, 29, 72, 0.03) 0px, transparent 50%);
  background-attachment: fixed;
  line-height: 1.55;
  padding-bottom: calc(var(--bottom-nav-height) + var(--safe-bottom) + 24px);
}

@media (min-width: 769px) {
  body.light-theme {
    padding-bottom: 0;
  }
}

a {
  color: inherit;
  text-decoration: none;
}

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

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

.hidden {
  display: none !important;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* ==========================================================================
   Header & Navbar (Clean Light Glass)
   ========================================================================== */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  height: var(--header-height);
  display: flex;
  align-items: center;
  transition: all 0.2s ease;
}

.header-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}

.brand-avatar-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1.5px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  background: #f1f5f9;
  flex-shrink: 0;
}

.brand-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.brand-wrapper:hover .brand-logo-img {
  transform: scale(1.1);
}

.brand-emblem {
  font-size: 24px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #eef2ff, #fef3c7);
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   Pexels-style Tag Filter Bar
   ========================================================================== */
.tags-bar-wrapper {
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: var(--header-height);
  z-index: 95;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.tags-scroll-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.tags-scroll-container::-webkit-scrollbar {
  display: none;
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
}

.tag-pill:hover {
  background: #f1f5f9;
  color: var(--text-primary);
  border-color: #cbd5e1;
}

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

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--text-primary);
}

.brand-sub {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 1.2px;
  color: var(--text-muted);
}

/* Desktop Navigation Tabs */
.desktop-only {
  display: none;
}

@media (min-width: 769px) {
  .desktop-only {
    display: flex;
  }
}

.nav-tabs {
  gap: 6px;
  background: #f1f5f9;
  padding: 5px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
}

.nav-tab-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.nav-tab-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.6);
}

.nav-tab-btn.active {
  color: var(--text-primary);
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.tab-badge {
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-weight: 700;
}

.tab-badge.free-indicator {
  background: var(--accent-emerald-light);
  color: var(--accent-emerald);
  border: 1px solid #a7f3d0;
}

.tab-badge.lock-indicator {
  background: var(--accent-gold-light);
  color: var(--accent-gold);
  border: 1px solid var(--accent-gold-border);
}

.tab-badge.unlocked-indicator {
  background: #eef2ff;
  color: var(--accent-primary);
  border: 1px solid #c7d2fe;
}

/* Header Auth Button */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.auth-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.auth-btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: var(--text-primary);
  transform: translateY(-1px);
}

.auth-btn.unlocked {
  background: var(--accent-emerald-light);
  border-color: #a7f3d0;
  color: var(--accent-emerald);
}

/* ==========================================================================
   Main Content Layout
   ========================================================================== */
.main-content {
  flex: 1;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px;
}

@media (min-width: 769px) {
  .main-content {
    padding: 28px 24px;
  }
}

/* Category Banner */
.category-banner {
  margin-bottom: 28px;
}

.banner-glass {
  background: var(--bg-banner);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.banner-badge-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.banner-badge {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  background: #eef2ff;
  color: var(--accent-primary);
  border: 1px solid #c7d2fe;
}

.banner-free-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  background: #ffffff;
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
}

.banner-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

@media (min-width: 769px) {
  .banner-title {
    font-size: 2.3rem;
  }
}

.banner-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  max-width: 760px;
  margin-bottom: 18px;
  line-height: 1.6;
}

/* Category Switcher Pills */
.category-pills {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.category-pills::-webkit-scrollbar {
  display: none;
}

.pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.pill-btn:hover {
  background: #f1f5f9;
  color: var(--text-primary);
}

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

/* ==========================================================================
   Section Headers & Common Buttons
   ========================================================================== */
.section-container {
  margin-bottom: 36px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.section-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.3px;
}

.album-count-tag {
  font-size: 0.75rem;
  font-weight: 700;
  background: #e2e8f0;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  color: var(--text-secondary);
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  background: var(--accent-primary);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:hover {
  background: var(--accent-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
}

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

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 18px;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  transform: translateY(-1px);
}

.btn-large {
  padding: 13px 26px;
  font-size: 0.95rem;
}

/* ==========================================================================
   Featured Highlights Showcase Grid (10 Warrior Photos / 8 Passion Photos)
   ========================================================================== */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 8px;
}

@media (min-width: 640px) {
  .featured-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}

@media (min-width: 900px) {
  .featured-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
  }
}

@media (min-width: 1200px) {
  .featured-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
  }
}

.featured-card {
  position: relative;
  aspect-ratio: 16 / 11;
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.featured-card:hover {
  transform: translateY(-5px);
  border-color: #cbd5e1;
  box-shadow: var(--shadow-hover);
}

.featured-img-wrap {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  background: #e2e8f0;
}

.featured-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.featured-card:hover .featured-card-img {
  transform: scale(1.08);
}

.featured-card-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.92);
  color: var(--text-primary);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(4px);
}

.featured-card-num {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  background: rgba(15, 23, 42, 0.75);
  color: #ffffff;
  backdrop-filter: blur(4px);
}

.featured-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.85) 0%, transparent 60%);
  opacity: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 10px 12px;
  transition: opacity 0.2s ease;
}

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

.featured-card-name {
  font-size: 0.75rem;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 80%;
}

.featured-card-zoom {
  font-size: 14px;
  color: #ffffff;
}

/* ==========================================================================
   Albums Grid (Cards) - Light & Refined
   ========================================================================== */
.albums-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

@media (min-width: 640px) {
  .albums-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
}

@media (min-width: 900px) {
  .albums-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
  }
}

@media (min-width: 1200px) {
  .albums-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }
}

.album-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.album-card:hover {
  transform: translateY(-5px);
  border-color: #cbd5e1;
  box-shadow: var(--shadow-hover);
}

.album-cover-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #e2e8f0;
  overflow: hidden;
}

.album-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.album-card:hover .album-cover-img {
  transform: scale(1.06);
}

/* Locked Overlay */
.album-locked-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #fff;
  transition: all 0.25s ease;
}

.album-card:hover .album-locked-overlay {
  background: rgba(15, 23, 42, 0.35);
}

.overlay-lock-icon {
  font-size: 24px;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4));
}

.overlay-lock-text {
  font-size: 0.72rem;
  font-weight: 700;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.65);
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

/* Badges on Cover */
.album-badge-top-left {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
}

.card-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.card-badge.badge-free {
  background: #10b981;
  color: #ffffff;
}

.card-badge.badge-locked {
  background: #f59e0b;
  color: #ffffff;
}

.card-badge.badge-unlocked {
  background: #4f46e5;
  color: #ffffff;
}

.album-badge-top-right {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
}

.card-photo-count {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  background: rgba(15, 23, 42, 0.75);
  color: #ffffff;
  backdrop-filter: blur(4px);
}

/* Card Body Content */
.album-card-body {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.album-card-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.album-card-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 12px;
  flex: 1;
}

.album-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
}

.album-action-link {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s ease;
}

.album-card:hover .album-action-link {
  gap: 7px;
}

/* Loading State */
.loading-state {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  color: var(--text-muted);
  gap: 16px;
}

.spinner {
  width: 38px;
  height: 38px;
  border: 3px solid #e2e8f0;
  border-top-color: var(--accent-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* ==========================================================================
   Photos Detail View
   ========================================================================== */
.detail-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  margin-bottom: 22px;
  position: sticky;
  top: calc(var(--header-height) + 8px);
  z-index: 80;
  box-shadow: var(--shadow-card);
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: #f1f5f9;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 700;
  transition: all 0.2s ease;
}

.btn-back:hover {
  background: #e2e8f0;
}

.album-meta-center {
  text-align: center;
  flex: 1;
  overflow: hidden;
}

.album-current-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.album-current-subtitle {
  font-size: 0.78rem;
  color: var(--accent-primary);
  font-weight: 600;
}

.hide-mobile {
  display: none;
}

@media (min-width: 640px) {
  .hide-mobile {
    display: inline;
  }
}

/* Photos Grid */
.photos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

@media (min-width: 640px) {
  .photos-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }
}

@media (min-width: 1024px) {
  .photos-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
  }
}

.photo-item {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #e2e8f0;
  border: 1px solid var(--border-card);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}

.photo-item:hover {
  transform: scale(1.02);
  border-color: #cbd5e1;
  box-shadow: var(--shadow-hover);
  z-index: 2;
}

.photo-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.photo-item:hover .photo-thumb-img {
  transform: scale(1.08);
}

.photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.8) 0%, transparent 60%);
  opacity: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 10px 12px;
  transition: opacity 0.2s ease;
}

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

.photo-name-tag {
  font-size: 0.75rem;
  color: #ffffff;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 80%;
}

.photo-zoom-icon {
  font-size: 14px;
  color: #f8fafc;
}

/* ==========================================================================
   Donate Section - Minimalist Pure QR Display
   ========================================================================== */
.donate-simple-card {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 36px 20px;
  box-shadow: var(--shadow-card);
  max-width: 380px;
  margin: 0 auto;
  text-align: center;
}

.donate-simple-header {
  margin-bottom: 20px;
}

.donate-simple-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.donate-simple-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.donate-qr-box {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px;
  box-shadow: var(--shadow-sm);
  display: inline-block;
  max-width: 100%;
}

.donate-qr-img {
  width: 100%;
  max-width: 290px;
  height: auto;
  border-radius: var(--radius-xs);
  display: block;
  margin: 0 auto;
}

/* Binance Donate Styling */
.binance-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fef9c3;
  color: #854d0e;
  border: 1px solid #fde047;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.binance-logo-svg {
  color: #ca8a04;
  flex-shrink: 0;
}

.binance-info-box {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.binance-open-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #fcd535;
  color: #181a20;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: all var(--duration-fast) var(--ease-default);
  box-shadow: 0 2px 6px rgba(252, 213, 53, 0.3);
}

.binance-open-btn:hover {
  background: #f0b90b;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(252, 213, 53, 0.45);
}

.binance-support-tokens {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ==========================================================================
   Mobile Bottom Navigation Bar (Floating Pill)
   ========================================================================== */
.mobile-bottom-nav {
  position: fixed;
  bottom: calc(10px + var(--safe-bottom));
  left: 14px;
  right: 14px;
  height: var(--bottom-nav-height);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 10px;
  z-index: 100;
  box-shadow: var(--shadow-floating);
}

@media (min-width: 769px) {
  .mobile-bottom-nav {
    display: none;
  }
}

.mob-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--text-muted);
  flex: 1;
  height: 80%;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.mob-nav-icon {
  font-size: 1.25rem;
  transition: transform 0.2s ease;
}

.mob-nav-item.active {
  color: var(--accent-primary);
  background: #eef2ff;
  font-weight: 800;
}

.mob-nav-item.active .mob-nav-icon {
  transform: translateY(-2px);
}

/* ==========================================================================
   Password Modal (Clean Light Card)
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeIn 0.2s ease;
}

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

.modal-card {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  max-width: 440px;
  width: 100%;
  position: relative;
  box-shadow: var(--shadow-floating);
  text-align: center;
  animation: modalScale 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalScale {
  from { transform: scale(0.94); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f1f5f9;
  color: var(--text-secondary);
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.modal-close-btn:hover {
  background: #e2e8f0;
  color: var(--text-primary);
}

.modal-icon-wrap {
  width: 60px;
  height: 60px;
  margin: 0 auto 16px;
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.modal-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.5;
}

.password-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
}

.input-group {
  position: relative;
  display: flex;
  align-items: center;
}

.input-group input {
  width: 100%;
  padding: 12px 48px 12px 16px;
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: all 0.2s ease;
}

.input-group input:focus {
  border-color: var(--accent-primary);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.btn-toggle-eye {
  position: absolute;
  right: 12px;
  padding: 6px;
  font-size: 16px;
  color: var(--text-muted);
}

.modal-options {
  display: flex;
  align-items: center;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.remember-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

.remember-label input {
  accent-color: var(--accent-primary);
}

.modal-error {
  background: #fff1f2;
  border: 1px solid #fecdd3;
  color: #e11d48;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: var(--radius-xs);
  animation: shake 0.3s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

.modal-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  background: #f8fafc;
  padding: 8px 12px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-subtle);
}

.modal-hint code {
  color: var(--accent-primary);
  font-weight: 700;
  background: #eef2ff;
  padding: 1px 6px;
  border-radius: 4px;
}

.modal-buttons {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 10px;
  margin-top: 6px;
}

/* ==========================================================================
   Lightbox Fullscreen Viewer (Dark Theater for Rich Image Contrast)
   ========================================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  flex-direction: column;
  user-select: none;
  touch-action: none;
}

.lightbox-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.lightbox-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.9), transparent);
}

.lightbox-info {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: hidden;
}

.lightbox-counter {
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.lightbox-title {
  font-size: 0.85rem;
  color: #cbd5e1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 240px;
}

.lightbox-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lb-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all 0.2s ease;
}

.lb-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.lb-btn.lb-close {
  font-size: 24px;
}

.lightbox-main {
  position: relative;
  z-index: 5;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 10px;
}

.lightbox-img-wrapper {
  position: relative;
  max-width: 100%;
  max-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img {
  max-width: 95vw;
  max-height: 75vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
}

.lightbox-spinner {
  position: absolute;
  width: 44px;
  height: 44px;
  border: 4px solid rgba(255, 255, 255, 0.2);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.2s ease;
}

.lb-nav:hover {
  background: rgba(255, 255, 255, 0.3);
}

.lb-prev { left: 18px; }
.lb-next { right: 18px; }

@media (max-width: 640px) {
  .lb-nav {
    display: none;
  }
}

.lightbox-swipe-hint {
  position: relative;
  z-index: 10;
  text-align: center;
  font-size: 0.75rem;
  color: #94a3b8;
  padding: 6px;
}

@media (min-width: 640px) {
  .lightbox-swipe-hint {
    display: none;
  }
}

.lightbox-thumb-strip {
  position: relative;
  z-index: 10;
  height: 70px;
  background: rgba(15, 23, 42, 0.9);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  overflow-x: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.lightbox-thumb-item {
  width: 60px;
  height: 50px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.5;
  transition: all 0.2s ease;
}

.lightbox-thumb-item.active {
  border-color: #ffffff;
  opacity: 1;
  transform: scale(1.05);
}

.lightbox-thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   Toast Notification
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: calc(var(--bottom-nav-height) + var(--safe-bottom) + 20px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 500;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
  width: 90%;
  max-width: 380px;
}

@media (min-width: 769px) {
  .toast-container {
    bottom: 28px;
  }
}

.toast {
  background: #0f172a;
  color: #ffffff;
  padding: 12px 20px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: var(--shadow-floating);
  text-align: center;
  animation: toastIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes toastIn {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.app-footer {
  border-top: 1px solid var(--border-subtle);
  background: #ffffff;
  padding: 28px 16px;
  text-align: center;
  margin-top: auto;
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.footer-copy {
  font-size: 0.78rem;
  color: var(--text-muted);
}
