/* ==========================================================================
   Tamara & Nikola - Virtual Photo & Video Scrapbook Album
   Modern Minimalist Dark Theme (Mobile-First & Ultra Clean)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg-deep: #0b1120;
  --bg-surface: #0f172a;
  --bg-card: #1e293b;
  --bg-page: #0f172a;
  --bg-page-gradient: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
  --border-subtle: rgba(255, 255, 255, 0.05);
  --border-hover: rgba(255, 255, 255, 0.12);
  --border-focus: rgba(59, 130, 246, 0.5);
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-faint: #64748b;
  
  --accent-rose: #3b82f6;
  --accent-rose-hover: #60a5fa;
  --accent-rose-glow: rgba(59, 130, 246, 0.35);
  --accent-cyan: #38bdf8;
  
  --glass-nav: rgba(12, 15, 21, 0.82);
  --glass-panel: rgba(15, 18, 26, 0.92);
  --glass-card: rgba(255, 255, 255, 0.035);
  
  --shadow-elevation: 0 24px 60px -12px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.06);
  --shadow-card: 0 12px 28px -6px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  height: 100%;
  height: 100dvh;
  overflow: hidden;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-deep);
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   Background: Sleek Dark Obsidian Mesh
   ========================================================================== */
.dark-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  z-index: 1;
  background-color: var(--bg-deep);
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(59, 130, 246, 0.07) 0%, transparent 60%),
    radial-gradient(circle at 50% 100%, rgba(148, 163, 184, 0.05) 0%, transparent 60%),
    radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 28px 28px;
  display: flex;
  flex-direction: column;
}

/* ==========================================================================
   Header Bar: Ultra-Clean Glassmorphism
   ========================================================================== */
.header-bar {
  position: relative;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  background: var(--glass-nav);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.brand-section {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-heart {
  color: var(--accent-rose);
  font-size: 1.15rem;
  display: inline-block;
  animation: pulse-heart 2.6s infinite ease-in-out;
  filter: drop-shadow(0 0 8px var(--accent-rose-glow));
}

@keyframes pulse-heart {
  0%, 100% { transform: scale(1); }
  14% { transform: scale(1.22); }
  28% { transform: scale(1); }
  42% { transform: scale(1.15); }
  70% { transform: scale(1); }
}

.brand-title {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.2px;
  color: #fff;
}

.brand-subtitle {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-faint);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-left: 6px;
  padding: 2px 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
}

.nav-controls-center {
  display: flex;
  align-items: center;
  gap: 10px;
}

.control-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
}

.control-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-hover);
  transform: translateY(-1px);
}

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

.control-btn.btn-accent {
  background: var(--accent-rose);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 4px 18px var(--accent-rose-glow);
}

.control-btn.btn-accent:hover {
  background: var(--accent-rose-hover);
  box-shadow: 0 6px 24px rgba(59, 130, 246, 0.5);
  transform: translateY(-1.5px);
}

.page-indicator-pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.45);
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
}

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

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.9rem;
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: var(--border-hover);
  transform: scale(1.05);
}

/* ==========================================================================
   Main Viewport
   ========================================================================== */
.album-viewport {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  padding: 16px 24px;
  perspective: 2500px;
}

.side-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(18, 22, 31, 0.85);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  z-index: 25;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  transition: all 0.2s ease;
}

.side-nav-btn:hover {
  background: rgba(26, 32, 44, 0.95);
  color: #fff;
  border-color: var(--accent-rose);
  transform: translateY(-50%) scale(1.1);
}

.side-nav-btn.prev-btn { left: 24px; }
.side-nav-btn.next-btn { right: 24px; }

/* ==========================================================================
   Modern Virtual Album Book
   ========================================================================== */
.album-book-wrapper {
  position: relative;
  max-width: 1100px;
  width: 95vw;
  height: 80vh;
  max-height: 740px;
  display: flex;
  align-items: center;
  justify-content: center;
}


#album-book {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  overflow: visible !important;
}

/* ==========================================================================
   Modern Dark Album Pages
   ========================================================================== */
.album-page {
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--bg-page);
  background-image: var(--bg-page-gradient);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  box-sizing: border-box;
  padding: 30px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  user-select: none;
}

/* Center spine shadow removed for minimalistic look */

/* Subtle page edge highlight */
.album-page::before {
  content: '';
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  pointer-events: none;
}

/* ==========================================================================
   Cover Pages (Front & Back)
   ========================================================================== */
.cover-page {
  background: var(--bg-deep) !important;
  background-image: 
    radial-gradient(circle at 50% 30%, rgba(59, 130, 246, 0.08) 0%, transparent 65%),
    linear-gradient(145deg, var(--bg-card) 0%, var(--bg-deep) 100%) !important;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 32px;
}

.cover-emboss-box {
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 48px 32px;
  width: 88%;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(10px);
}

.cover-heart-icon {
  font-size: 2.8rem;
  color: var(--accent-rose);
  margin-bottom: 14px;
  filter: drop-shadow(0 0 16px var(--accent-rose-glow));
}

.cover-title {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: #fff;
  margin-bottom: 10px;
}

.cover-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 380px;
  margin-left: auto;
  margin-right: auto;
}

.cover-date-range {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  color: var(--accent-rose);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 500;
}

.cover-flip-hint {
  margin-top: 32px;
  font-size: 0.78rem;
  color: var(--text-faint);
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  animation: pulse-arrow 2s infinite ease-in-out;
}

@keyframes pulse-arrow {
  0%, 100% { opacity: 0.5; transform: translateX(0); }
  50% { opacity: 1; transform: translateX(4px); }
}

/* ==========================================================================
   Memory Cards in Album
   ========================================================================== */
.memory-card-container {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: auto 0;
  cursor: default;
}

.modern-media-frame {
  position: relative;
  width: 92%;
  max-width: 480px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 8px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
  cursor: default;
}

.modern-media-frame:hover {
  border-color: var(--border-hover);
}

.modern-media-frame img,
.modern-media-frame video {
  display: block;
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  border-radius: 8px;
  pointer-events: none;
}

.modern-media-frame video {
  pointer-events: auto;
}

/* Modern Minimalist Metadata Pill & Caption */
.memory-info-modern {
  margin-top: 14px;
  width: 92%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.meta-pill-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.meta-datetime-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.74rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
}

.memory-caption-modern {
  font-size: 0.88rem;
  color: #e2e8f0;
  line-height: 1.5;
  margin-top: 4px;
  font-style: italic;
}

.page-footer-number {
  position: absolute;
  bottom: 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--text-faint);
  letter-spacing: 1px;
}

.left-page .page-footer-number { left: 24px; }
.right-page .page-footer-number { right: 24px; }

/* Direct delete button on album page */
.page-delete-btn {
  background: transparent;
  border: none;
  color: var(--text-faint);
  font-size: 0.85rem;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.page-delete-btn:hover {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

/* ==========================================================================
   Modern Modal & Upload Sheet
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-panel {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  width: 100%;
  max-width: 780px;
  max-height: 88vh;
  max-height: 88dvh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 32px 72px rgba(0, 0, 0, 0.9);
  overflow: hidden;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.active .modal-panel {
  transform: translateY(0) scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.modal-title-group h2 {
  font-size: 1.15rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.2px;
}

.modal-title-group p {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 3px;
}

.modal-close-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Upload Dropzone */
.upload-dropzone {
  border: 2px dashed rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 28px 20px;
  text-align: center;
  background: rgba(255, 255, 255, 0.02);
  transition: all 0.2s ease;
  cursor: pointer;
}

.upload-dropzone:hover,
.upload-dropzone.dragover {
  border-color: var(--accent-rose);
  background: rgba(59, 130, 246, 0.05);
}

.dropzone-icon {
  font-size: 2.2rem;
  color: var(--accent-rose);
  margin-bottom: 10px;
}

.dropzone-text-main {
  font-size: 0.95rem;
  font-weight: 500;
  color: #fff;
  margin-bottom: 4px;
}

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

.compression-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: var(--accent-cyan);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 500;
  margin-top: 10px;
}

/* Upload Queue */
.upload-queue-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.queue-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 10px 14px;
  gap: 12px;
}

.queue-thumbnail {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  object-fit: cover;
}

.queue-details {
  flex: 1;
  min-width: 0;
}

.queue-name {
  font-size: 0.85rem;
  font-weight: 500;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.queue-meta {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 2px;
  display: flex;
  gap: 8px;
}

.queue-meta .compressed-info {
  color: #4ade80;
}

.queue-status-bar {
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 6px;
}

.queue-status-fill {
  height: 100%;
  background: var(--accent-rose);
  width: 0%;
  transition: width 0.3s ease;
}

.upload-caption-input {
  width: 100%;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 0.82rem;
  color: #fff;
  font-family: inherit;
  margin-top: 6px;
  outline: none;
}

.upload-caption-input:focus {
  border-color: var(--accent-rose);
}

/* ==========================================================================
   Already Uploaded Memories Grid
   ========================================================================== */
.uploaded-gallery-section {
  border-top: 1px solid var(--border-subtle);
  padding-top: 18px;
}

.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.section-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
}

.uploaded-items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
  max-height: 280px;
  overflow-y: auto;
  padding-right: 4px;
}

.uploaded-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

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

.card-thumb-wrap {
  position: relative;
  width: 100%;
  padding-top: 75%;
  background: #000;
}

.card-thumb-wrap img,
.card-thumb-wrap video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-delete-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(225, 29, 72, 0.9);
  border: none;
  color: #fff;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  transition: transform 0.15s ease, background 0.15s ease;
}

.card-delete-btn:hover {
  background: #f43f5e;
  transform: scale(1.15);
}

.card-info {
  padding: 8px 10px;
}

.card-date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  color: var(--accent-rose);
  font-weight: 500;
}

.card-filename {
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

/* ==========================================================================
   Modern Lock Screen
   ========================================================================== */
.login-screen-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(8, 9, 13, 0.94);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 1;
  transition: opacity 0.3s ease, visibility 0.3s;
}

.login-screen-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.login-card {
  width: 100%;
  max-width: 380px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 36px 28px;
  text-align: center;
  box-shadow: 0 32px 70px rgba(0, 0, 0, 0.9);
}

.login-heart {
  font-size: 2.4rem;
  color: var(--accent-rose);
  margin-bottom: 12px;
  display: inline-block;
  animation: pulse-heart 2.6s infinite ease-in-out;
  filter: drop-shadow(0 0 12px var(--accent-rose-glow));
}

.login-title {
  font-size: 1.45rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.3px;
  margin-bottom: 6px;
}

.login-subtitle {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 24px;
}

.login-input-group {
  position: relative;
  margin-bottom: 12px;
}

.login-input {
  width: 100%;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 12px 42px 12px 18px;
  font-size: 0.92rem;
  color: #fff;
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.login-input:focus {
  border-color: var(--accent-rose);
  box-shadow: 0 0 14px var(--accent-rose-glow);
}

.toggle-password-btn {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--text-faint);
  cursor: pointer;
  font-size: 1rem;
}

.remember-checkbox-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 22px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.remember-checkbox-row input {
  accent-color: var(--accent-rose);
  cursor: pointer;
  width: 15px;
  height: 15px;
}

.login-error-msg {
  font-size: 0.78rem;
  color: #f87171;
  margin-bottom: 12px;
  display: none;
}

.login-btn {
  width: 100%;
  background: var(--accent-rose);
  border: none;
  color: #fff;
  padding: 12px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 18px var(--accent-rose-glow);
  transition: all 0.2s ease;
}

.login-btn:hover {
  background: var(--accent-rose-hover);
  transform: translateY(-1px);
}

/* ==========================================================================
   Mobile Bottom Navigation Bar (Phone-Optimized)
   ========================================================================== */
.mobile-nav-bar {
  display: none;
  position: fixed;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%);
  z-index: 35;
  background: rgba(15, 18, 26, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 6px 12px;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}

.mobile-nav-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
}

/* ==========================================================================
   Responsive Mobile Optimization (Phones & Tablets)
   ========================================================================== */
@media (max-width: 768px) {
  .header-bar {
    padding: 10px 16px;
  }

  .brand-title {
    font-size: 0.95rem;
  }

  .brand-subtitle {
    display: none;
  }

  /* Hide desktop center controls and side arrows on phone */
  .nav-controls-center {
    display: none;
  }

  .side-nav-btn {
    display: none;
  }

  /* Show floating mobile bottom bar */
  .mobile-nav-bar {
    display: flex;
  }

  .album-viewport {
    padding: 8px 12px 64px 12px;
  }

  .album-book-wrapper {
    width: 94vw;
    height: 72vh;
    height: 72dvh;
    max-height: 580px;
  }

  .book-outer-cover {
    inset: -6px -8px;
    border-radius: 10px;
  }

  .album-page {
    padding: 20px 16px;
  }

  .modern-media-frame {
    width: 100%;
    padding: 6px;
  }

  .modern-media-frame img,
  .modern-media-frame video {
    max-height: 280px;
  }

  .memory-info-modern {
    width: 100%;
    margin-top: 10px;
  }

  .cover-emboss-box {
    padding: 32px 18px;
    width: 95%;
  }

  .cover-title {
    font-size: 1.6rem;
  }

  /* Modal on mobile becomes a sleek bottom sheet */
  .modal-backdrop {
    align-items: flex-end;
    padding: 0;
  }

  .modal-panel {
    border-radius: 20px 20px 0 0;
    max-height: 88vh;
    max-height: 88dvh;
    border-bottom: none;
  }

  .modal-header {
    padding: 16px 20px;
  }

  .modal-body {
    padding: 16px 20px;
  }

  .uploaded-items-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 8px;
    max-height: 220px;
  }
}
