/* ==========================================================================
   LuminaVault CSS - Digital Book & Podcast Gallery
   ========================================================================== */

:root {
  /* Color Tokens - Light Minimalist Mode (Default) */
  --bg-primary: #ffffff;
  --bg-secondary: #fafafa;
  --bg-surface: #ffffff;
  --bg-surface-hover: #f4f4f5;
  --bg-glass: rgba(255, 255, 255, 0.92);
  
  --border-color: #e4e4e7;
  --border-active: #000000;
  
  --text-primary: #000000;
  --text-secondary: #27272a;
  --text-muted: #71717a;
  
  --accent-primary: #000000;
  --accent-primary-hover: #27272a;
  --accent-glow: rgba(0, 0, 0, 0.06);
  --accent-secondary: #18181b;
  --spotify-green: #1DB954;
  --spotify-green-hover: #1ed760;
  
  --placeholder-bg: #f4f4f5;
  --placeholder-border: #e4e4e7;
  --placeholder-pattern: #fafafa;
  
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 30px rgba(0, 0, 0, 0.08);
  
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;
  
  --transition-fast: 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  
  --font-family: 'Outfit', 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

[data-theme="light"] {
  --bg-primary: #ffffff;
  --bg-secondary: #fafafa;
  --bg-surface: #ffffff;
  --bg-surface-hover: #f4f4f5;
  --bg-glass: rgba(255, 255, 255, 0.92);
  
  --border-color: #e4e4e7;
  --border-active: #000000;
  
  --text-primary: #000000;
  --text-secondary: #27272a;
  --text-muted: #71717a;
  
  --accent-primary: #000000;
  --accent-primary-hover: #27272a;
  --accent-glow: rgba(0, 0, 0, 0.06);
  
  --placeholder-bg: #f4f4f5;
  --placeholder-border: #e4e4e7;
  --placeholder-pattern: #fafafa;
  
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 30px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] {
  --bg-primary: #09090b;
  --bg-secondary: #121215;
  --bg-surface: #18181b;
  --bg-surface-hover: #27272a;
  --bg-glass: rgba(18, 18, 27, 0.88);
  
  --border-color: #27272a;
  --border-active: #ffffff;
  
  --text-primary: #ffffff;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  
  --accent-primary: #ffffff;
  --accent-primary-hover: #e4e4e7;
  --accent-glow: rgba(255, 255, 255, 0.1);
  
  --placeholder-bg: #18181b;
  --placeholder-border: #27272a;
  --placeholder-pattern: #121215;
  
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.6);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

body.lightbox-open {
  overflow: hidden;
  touch-action: none;
}

/* Accessibility Skip Link */
.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  background: var(--accent-primary);
  color: #ffffff;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  z-index: 9999;
  text-decoration: none;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 16px;
  outline: 3px solid var(--accent-secondary);
}

/* App Header */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 0.65rem 1.25rem;
  transition: background-color var(--transition-normal), border-color var(--transition-normal);
}

.header-inner {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.logo-area {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.brand-logo-img {
  height: 38px;
  width: auto;
  object-fit: contain;
  display: block;
  transition: transform var(--transition-fast);
}

.logo-link:hover .brand-logo-img {
  transform: scale(1.05);
}

.brand-name {
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-name span {
  font-weight: 400;
  opacity: 0.7;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: nowrap;
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.nav-btn:hover, .nav-btn.active {
  background: var(--bg-surface-hover);
  border-color: var(--border-active);
  transform: translateY(-1px);
}

.jump-selector-wrapper {
  flex-shrink: 0;
}

.jump-selector-wrapper select {
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.85rem;
  outline: none;
  cursor: pointer;
  transition: border-color var(--transition-fast);
}

.jump-selector-wrapper select:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.icon-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.icon-btn:hover {
  background: var(--bg-surface-hover);
  border-color: var(--border-active);
}

[data-theme="dark"] .sun-icon { display: block; }
[data-theme="dark"] .moon-icon { display: none; }
[data-theme="light"] .sun-icon { display: none; }
[data-theme="light"] .moon-icon { display: block; }

@media (max-width: 860px) {
  .app-header {
    padding: 0.45rem 0.75rem;
  }

  .header-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 0.4rem;
  }

  .header-nav {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    max-width: 100%;
    padding: 2px 0 6px 0;
    gap: 0.4rem;
    scrollbar-width: none;
  }

  .header-nav::-webkit-scrollbar {
    display: none;
  }

  .nav-btn {
    padding: 0.4rem 0.65rem;
    font-size: 0.78rem;
  }

  .jump-selector-wrapper select {
    padding: 0.4rem 0.55rem;
    font-size: 0.78rem;
  }

  .icon-btn {
    width: 32px;
    height: 32px;
  }
}

/* Main Layout Area */
.main-layout {
  flex: 1;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 1.5rem;
}

/* ==========================================================================
   LIBRARY INDEX VIEW (BOOKS)
   ========================================================================== */

.library-hero {
  text-align: center;
  padding: 2.5rem 1rem 2rem 1rem;
  margin-bottom: 2rem;
  background: radial-gradient(circle at top center, var(--accent-glow), transparent 70%);
  border-radius: var(--radius-lg);
}

.library-title {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.library-subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto 1.5rem auto;
}

.toolbar-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}

.search-input-wrapper {
  position: relative;
  flex: 1;
  min-width: 240px;
}

.search-input-wrapper svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 0.6rem 1rem 0.6rem 2.4rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: all var(--transition-fast);
}

.search-input:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.filter-chip {
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.825rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-chip.active, .filter-chip:hover {
  background: var(--accent-primary);
  color: #ffffff;
  border-color: var(--accent-primary);
}

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

.book-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
  position: relative;
}

.book-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-active);
  box-shadow: var(--shadow-lg);
}

.book-cover-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  background: var(--placeholder-bg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.book-cover-svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.book-card-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  color: #ffffff;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
}

.book-card-info {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
}

.book-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

.book-card-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 0.5rem;
}

.missing-book-card {
  cursor: pointer;
  border: 1px dashed rgba(245, 158, 11, 0.5);
  background: var(--bg-surface);
  transition: all var(--transition-normal);
}

.missing-book-card:hover {
  transform: translateY(-4px);
  border-color: #f59e0b;
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.25);
}

.book-card-badge.missing-badge {
  background: #d97706;
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.book-card-meta.missing-meta {
  color: #f59e0b;
  font-weight: 600;
}

.drive-notice-text {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.775rem;
  color: #f59e0b;
}

/* ==========================================================================
   BOOK VIEWER PAGE
   ========================================================================== */

.book-viewer-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.book-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 0.875rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.book-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius-md);
  background: var(--bg-primary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.book-nav-btn:hover:not(.disabled) {
  background: var(--accent-primary);
  color: #ffffff;
  border-color: var(--accent-primary);
  box-shadow: 0 0 12px var(--accent-glow);
}

.book-nav-btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.book-nav-center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

.book-header-title {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  text-transform: capitalize;
}

.book-header-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.viewer-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  font-size: 0.85rem;
}

.view-mode-toggle {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: var(--bg-primary);
  padding: 3px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.view-mode-btn {
  padding: 4px 10px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all var(--transition-fast);
}

.view-mode-btn.active {
  background: var(--accent-primary);
  color: #ffffff;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.gallery-grid.mode-single {
  grid-template-columns: 1fr !important;
  max-width: 750px;
  margin: 0 auto;
}

.page-card {
  position: relative;
  background: var(--placeholder-bg);
  border: 1px solid var(--placeholder-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.page-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-primary);
  box-shadow: 0 8px 24px var(--accent-glow);
}

/* Real Image Styles & Skeleton Loading */
.page-img-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--placeholder-bg);
  overflow: hidden;
}

.page-img-wrapper::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: translateX(-100%);
  animation: shimmer 1.5s infinite;
  z-index: 1;
}

[data-theme="dark"] .page-img-wrapper::before {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
}

.page-img-wrapper.loaded::before {
  display: none;
}

@keyframes shimmer {
  100% { transform: translateX(100%); }
}

.page-real-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 1;
  transition: opacity 0.4s ease-out, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.page-img-wrapper.loaded .page-real-img {
  opacity: 1;
}

.page-card:hover .page-real-img {
  transform: scale(1.03);
}

/* ==========================================================================
   LIGHTBOX MODAL PREVIEW
   ========================================================================== */

.lightbox-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox-backdrop.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.lightbox-toolbar {
  width: 100%;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(15, 23, 42, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  z-index: 10;
}

.lightbox-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.lightbox-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
}

.lightbox-filename {
  font-size: 0.8rem;
  color: #a5b4fc;
  font-family: monospace;
}

.lightbox-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lightbox-nav-btn, .lightbox-close-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.lightbox-nav-btn:hover:not(:disabled), .lightbox-close-btn:hover {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: #ffffff;
}

.lightbox-nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.lightbox-counter {
  font-size: 0.875rem;
  font-weight: 600;
  color: #94a3b8;
  min-width: 60px;
  text-align: center;
}

.lightbox-content {
  flex: 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  overflow: hidden;
}

.lightbox-stage {
  max-width: 90vw;
  max-height: 82vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-stage .page-img-wrapper {
  max-width: 90vw;
  max-height: 82vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.lightbox-stage .page-real-img {
  max-width: 90vw;
  max-height: 82vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  opacity: 1;
}

/* Book Cover Real Image */
.book-cover-img-box {
  position: relative;
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--placeholder-bg);
}

.book-cover-real-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.book-card:hover .book-cover-real-img {
  transform: scale(1.05);
}

.book-cover-real-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.3) 60%, transparent 100%);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.cover-overlay-title {
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}

.cover-overlay-pages {
  font-size: 0.75rem;
  opacity: 0.85;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Scroll Reveal Motion Effects */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

.page-placeholder-box {
  width: 100%;
  aspect-ratio: 3 / 4;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--placeholder-bg);
  overflow: hidden;
}

.page-svg-content {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.page-card:hover .page-svg-content {
  transform: scale(1.03);
}

.page-filename-tag {
  position: absolute;
  bottom: 8px;
  left: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  color: #ffffff;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  font-family: monospace;
  font-size: 0.725rem;
  text-align: center;
  letter-spacing: 0.05em;
  border: 1px solid rgba(255, 255, 255, 0.1);
  pointer-events: none;
  z-index: 2;
}

.page-fullres-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity var(--transition-fast);
}

.page-card:hover .page-fullres-overlay {
  opacity: 1;
}

.zoom-icon-badge {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--accent-primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.page-card-footer {
  padding: 0.6rem 0.8rem;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
}

.page-label {
  font-weight: 600;
  color: var(--text-primary);
}

.page-res-badge {
  font-size: 0.7rem;
  color: var(--accent-secondary);
  background: rgba(6, 182, 212, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 500;
}

/* ==========================================================================
   PODCASTS MAINPAGE HUB (ALL 4 PODCASTS)
   ========================================================================== */

.podcasts-hub-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.podcasts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2rem;
}

.podcast-hub-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.podcast-hub-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-active);
  box-shadow: var(--shadow-lg);
}

.podcast-hub-cover {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--placeholder-bg);
  position: relative;
  overflow: hidden;
}

.podcast-cover-svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.podcast-hub-card:hover .podcast-cover-svg {
  transform: scale(1.04);
}

.podcast-hub-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
}

.podcast-hub-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

.podcast-hub-host {
  font-size: 0.85rem;
  color: var(--accent-secondary);
  font-weight: 600;
}

.podcast-hub-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.podcast-hub-footer {
  padding-top: 0.8rem;
  margin-top: auto;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.podcast-hub-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--accent-primary);
  font-weight: 700;
}

/* ==========================================================================
   MODULAR PODCAST LANDING PAGE TEMPLATE
   ========================================================================== */

/* Two-column layout on desktop: Column 1 (~35% width), Column 2 (~65% width) */
.podcast-landing-layout {
  display: grid;
  grid-template-columns: minmax(320px, 35%) 1fr;
  gap: 2.5rem;
  max-width: 1300px;
  margin: 0 auto;
  align-items: start;
}

/* Column 1: Sidebar / Vibe */
.podcast-sidebar {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 90px;
}

.podcast-cover-container {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--placeholder-bg);
}

.podcast-sidebar-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.podcast-sidebar-title {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1.2;
}

.podcast-host-byline {
  font-size: 0.95rem;
  color: var(--accent-secondary);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.podcast-social-link {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.podcast-social-link:hover {
  color: var(--text-primary);
}

.podcast-description {
  font-size: 0.925rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Spotify Prominent Button */
.spotify-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: var(--spotify-green);
  color: #000000;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(29, 185, 84, 0.3);
  transition: all var(--transition-fast);
}

.spotify-btn:hover {
  background: var(--spotify-green-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(29, 185, 84, 0.45);
}

/* Sidebar Section Headers */
.sidebar-section-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border-color);
}

/* Stream Us Vertical List */
.stream-links-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  list-style: none;
}

.stream-link-item a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.9rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.stream-link-item a:hover {
  background: var(--bg-surface-hover);
  border-color: var(--accent-primary);
  transform: translateX(3px);
}

/* Support Us Grid of Clickable Logos */
.support-logos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.support-logo-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 0.5rem;
  border-radius: var(--radius-md);
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.825rem;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.support-logo-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  filter: brightness(1.15);
}

/* Column 2: The Feed / Episodes */
.podcast-feed-column {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.feed-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--border-color);
}

.feed-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
}

.feed-count {
  font-size: 0.85rem;
  color: var(--text-muted);
  background: var(--bg-surface);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
}

/* Episode Article Card */
.episode-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

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

.episode-header {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.episode-thumbnail {
  width: 90px;
  height: 90px;
  border-radius: var(--radius-md);
  background: var(--placeholder-bg);
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.episode-info {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
}

.episode-meta-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.episode-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

.episode-summary {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Audio Player & Controls */
.audio-player-wrapper {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  padding: 0.75rem;
  border-radius: var(--radius-md);
}

.audio-player-wrapper audio {
  width: 100%;
  height: 40px;
  outline: none;
  border-radius: var(--radius-sm);
}

/* Episode Action Buttons (Share, RSS, Download) */
.episode-actions-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 0.5rem;
  border-top: 1px dashed var(--border-color);
}

.episode-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-md);
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.episode-action-btn:hover {
  background: var(--bg-surface-hover);
  color: var(--text-primary);
  border-color: var(--border-active);
}

/* Toast Notification for Share / RSS action */
.toast-msg {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--accent-primary);
  color: #ffffff;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.875rem;
  box-shadow: var(--shadow-lg);
  z-index: 999;
  opacity: 0;
  transform: translateY(20px);
  transition: all var(--transition-normal);
  pointer-events: none;
}

.toast-msg.show {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   LIGHTBOX MODAL
   ========================================================================== */

.lightbox-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(5, 8, 15, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  opacity: 1;
  transition: opacity var(--transition-normal);
}

.lightbox-backdrop.hidden {
  opacity: 0;
  pointer-events: none;
}

.lightbox-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: rgba(19, 27, 46, 0.8);
  border-bottom: 1px solid var(--border-color);
}

.lightbox-info {
  display: flex;
  flex-direction: column;
}

.lightbox-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
}

.lightbox-filename {
  font-family: monospace;
  font-size: 0.8rem;
  color: var(--accent-secondary);
}

.lightbox-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lightbox-nav-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: #ffffff;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.lightbox-nav-btn:hover:not(:disabled) {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
}

.lightbox-nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.lightbox-counter {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  min-width: 60px;
  text-align: center;
}

.lightbox-close-btn {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #f87171;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.lightbox-close-btn:hover {
  background: #ef4444;
  color: #ffffff;
}

.divider {
  width: 1px;
  height: 24px;
  background: var(--border-color);
}

.lightbox-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  overflow: auto;
}

.lightbox-stage {
  max-width: 950px;
  width: 100%;
  aspect-ratio: 3 / 4;
  max-height: 85vh;
  border-radius: var(--radius-md);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  background: var(--bg-surface);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-stage svg, .lightbox-stage img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.lightbox-stage .page-img-wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

/* Responsive Breakpoints */

/* Mobile Breakpoint (< 900px):
   Requirement: Podcast landing page collapses to vertical stack on mobile.
*/
@media (max-width: 900px) {
  .podcast-landing-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .podcast-sidebar {
    position: static;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.75rem;
  }
  
  .books-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
  }
  
  .book-header-title {
    font-size: 1.35rem;
  }
  
  .episode-header {
    flex-direction: column;
  }
  
  .episode-thumbnail {
    width: 100%;
    height: 180px;
  }
}

@media (max-width: 540px) {
  .main-layout {
    padding: 0.75rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr !important;
    gap: 0.85rem;
  }

  .books-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
  }

  .book-card-info {
    padding: 0.65rem;
  }

  .book-card-title {
    font-size: 0.95rem;
  }

  .book-nav-bar {
    flex-direction: column;
    gap: 0.65rem;
    padding: 0.75rem;
  }

  .book-nav-btn {
    width: 100%;
    justify-content: center;
  }

  .viewer-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .view-mode-toggle {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================================================
   AWS S3 STORAGE CONFIGURATION MODAL
   ========================================================================== */

.s3-modal-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 540px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  animation: modalFadeIn 0.25s ease-out;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(-10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.s3-modal-header {
  padding: 1.25rem 1.5rem;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.s3-modal-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-primary);
}

.s3-modal-title svg {
  color: var(--accent-primary);
}

.s3-modal-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.s3-modal-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.s3-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.s3-form-group label {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-primary);
}

.s3-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.9rem;
  transition: border-color var(--transition-fast);
}

.s3-input:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.s3-help-text {
  font-size: 0.775rem;
  color: var(--text-muted);
}

.s3-help-text code {
  background: var(--bg-secondary);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.75rem;
  color: var(--accent-primary);
}

.s3-status-box {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.825rem;
  font-weight: 500;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
}

.s3-status-box.active-s3 {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.3);
  color: #10b981;
}

.s3-status-box.active-local {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.3);
  color: #f59e0b;
}

.s3-modal-footer {
  padding: 1rem 1.5rem;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
}

.btn-primary {
  background: var(--accent-primary);
  color: #ffffff;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: filter var(--transition-fast);
}

.btn-primary:hover {
  filter: brightness(1.1);
}

.btn-secondary {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-secondary:hover {
  background: var(--bg-surface);
  color: var(--text-primary);
}

/* ==========================================================================
   TAOC (THE ART OF CEILINGS) GALLERY
   ========================================================================== */

/* TAOC Hero Section */
.taoc-hero {
  text-align: center;
}

/* TAOC Batch Index Grid */
.taoc-batches-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  padding: 0 1rem 3rem;
}

/* TAOC Batch Card */
.taoc-batch-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  text-decoration: none;
  color: var(--text-primary);
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.taoc-batch-card:hover {
  border-color: var(--border-active);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.taoc-batch-cover-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.taoc-batch-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.taoc-batch-card:hover .taoc-batch-cover-img {
  transform: scale(1.05);
}

.taoc-batch-cover-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
  padding: 2rem 1rem 0.8rem;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
}

.taoc-batch-number {
  background: rgba(0, 0, 0, 0.65);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  backdrop-filter: blur(4px);
}

.taoc-batch-info {
  padding: 1rem;
}

.taoc-batch-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--text-primary);
}

.taoc-batch-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* TAOC Batch Viewer */
.taoc-viewer-container {
  max-width: 1400px;
  margin: 0 auto;
}

.taoc-nav-bar {
  /* inherits .book-nav-bar styles */
}

/* TAOC Page Card adjustments */
.taoc-page-card {
  /* inherits .page-card styles */
}

/* FOR SALE Badge — Green */
.taoc-forsale-badge {
  font-size: 0.7rem;
  color: #059669;
  background: rgba(16, 185, 129, 0.12);
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

/* SOLD Badge — Amber/Red */
.taoc-sold-badge {
  font-size: 0.7rem;
  color: #dc2626;
  background: rgba(220, 38, 38, 0.1);
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

/* Sold card slight opacity */
.taoc-sold-card {
  opacity: 0.7;
}

.taoc-sold-card:hover {
  opacity: 0.85;
}

/* Responsive adjustments for TAOC */
@media (max-width: 768px) {
  .taoc-batches-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
    padding: 0 0.75rem 2rem;
  }
}

@media (max-width: 480px) {
  .taoc-batches-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   WINDOW VIRTUALIZATION GRID STYLES
   ========================================================================== */

.virtual-grid-container {
  width: 100%;
  position: relative;
  touch-action: pan-y;
  contain: layout style;
}

.virtual-grid-spacer {
  position: relative;
  width: 100%;
}

.virtual-grid-content {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: auto;
}

.virtual-grid-content .page-card {
  margin: 0;
  box-sizing: border-box;
  will-change: transform;
}

/* Skeleton Loading & Shimmer for Rapid Scrubbing */
.page-skeleton-placeholder {
  position: absolute;
  inset: 0;
  background: var(--placeholder-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 0;
}

.page-skeleton-placeholder::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.35) 50%,
    transparent 100%
  );
  transform: translateX(-100%);
  animation: skeletonShimmer 1.4s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] .page-skeleton-placeholder::after {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.07) 50%,
    transparent 100%
  );
}

@keyframes skeletonShimmer {
  100% {
    transform: translateX(100%);
  }
}

.page-skeleton-icon {
  width: 36px;
  height: 36px;
  opacity: 0.25;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.page-skeleton-text {
  font-size: 0.75rem;
  font-family: monospace;
  color: var(--text-muted);
  opacity: 0.6;
}

/* ==========================================================================
   MOBILE PRECISION TOUCH-SCRUBBER (iOS Trackpad Mode for Vertical Galleries)
   ========================================================================== */

/* Body state when scrubbing is active - disables native scroll hijacking */
body.precision-scrubbing-active {
  user-select: none !important;
  -webkit-user-select: none !important;
  touch-action: none !important;
  overflow: hidden !important;
}

.precision-scrubbing-active .virtual-grid-container {
  touch-action: none !important;
}

/* Default: Scrubber is hidden on standard desktop/mouse devices */
.precision-scrubber-container {
  display: none;
}

/* Mobile & Touch Devices Only */
@media (hover: none) and (pointer: coarse), (max-width: 1024px) {
  .precision-scrubber-container {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 950;
  }

  /* Scrubber Track on Right Edge */
  .precision-scrubber-track {
    position: fixed;
    right: 4px;
    top: 14vh;
    height: 72vh;
    width: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    touch-action: none;
    cursor: grab;
    z-index: 951;
  }

  .precision-scrubber-track:active {
    cursor: grabbing;
  }

  /* Track Line */
  .precision-scrubber-track-line {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 17px;
    width: 4px;
    border-radius: 4px;
    background: rgba(120, 120, 130, 0.25);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: width var(--transition-fast), background var(--transition-fast);
  }

  .precision-scrubber-container.active .precision-scrubber-track-line {
    width: 6px;
    background: var(--accent-primary);
  }

  /* Pill-shaped Handle / Thumb */
  .precision-scrubber-thumb {
    position: absolute;
    top: 0;
    right: 3px;
    width: 32px;
    height: 48px;
    border-radius: 24px;
    background: var(--bg-surface);
    border: 1.5px solid var(--border-color);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: none;
    will-change: transform;
    transition: transform 0.04s linear, width 0.15s ease, background 0.15s ease;
  }

  .precision-scrubber-container.active .precision-scrubber-thumb {
    width: 36px;
    height: 52px;
    border-color: var(--accent-primary);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
    background: var(--bg-primary);
  }

  /* 3 Grip Lines inside thumb */
  .scrubber-thumb-handle {
    display: flex;
    flex-direction: column;
    gap: 3px;
    align-items: center;
    justify-content: center;
  }

  .scrubber-thumb-handle span {
    width: 14px;
    height: 2px;
    border-radius: 2px;
    background: var(--text-muted);
    transition: background var(--transition-fast);
  }

  .precision-scrubber-container.active .scrubber-thumb-handle span {
    background: var(--accent-primary);
  }

  /* Floating Precision HUD Indicator / Magnifier */
  .precision-hud-indicator {
    position: fixed;
    right: 52px;
    top: 0;
    pointer-events: none;
    opacity: 0;
    transform: translate3d(12px, 0, 0) scale(0.9);
    transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
    z-index: 952;
  }

  .precision-scrubber-container.active .precision-hud-indicator {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }

  /* HUD Card Content */
  .precision-hud-card {
    background: var(--bg-surface);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28);
    min-width: 170px;
    max-width: 220px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-left: 3px solid var(--accent-primary);
  }

  .precision-hud-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.3rem;
  }

  .precision-hud-badge {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: var(--text-muted);
  }

  .precision-hud-pct {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--accent-primary);
    background: rgba(0, 0, 0, 0.05);
    padding: 1px 6px;
    border-radius: 4px;
  }

  [data-theme="dark"] .precision-hud-pct {
    background: rgba(255, 255, 255, 0.1);
  }

  .precision-hud-main {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 0.3rem;
  }

  .precision-hud-index {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
  }

  .precision-hud-total {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
  }

  .precision-hud-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    border-top: 1px solid var(--border-color);
    padding-top: 0.35rem;
  }

  .precision-hud-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .precision-hud-filename {
    font-size: 0.7rem;
    font-family: monospace;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* ==========================================================================
   PODCAST REAL COVER ART
   ========================================================================== */
.podcast-cover-img-box {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000000;
  overflow: hidden;
}

.podcast-cover-real-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-normal);
}

/* ==========================================================================
   PODCASTS HUB: VERTICAL SCROLL REEL
   ========================================================================== */
.podcasts-reel-container {
  height: calc(100vh - 65px);
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  position: relative;
}

.podcast-reel-section {
  height: calc(100vh - 65px);
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 2.5rem 2rem;
  background: radial-gradient(circle at center, var(--bg-surface) 0%, var(--bg-primary) 100%);
}

.podcast-reel-ambient-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(80px) brightness(0.35);
  opacity: 0.45;
  transform: scale(1.2);
  pointer-events: none;
}

.podcast-reel-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3.5rem;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
}

.podcast-reel-cover-wrap {
  width: min(440px, 42vw);
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s ease;
  flex-shrink: 0;
  background: #000000;
}

.podcast-reel-cover-wrap:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 35px 70px rgba(0, 0, 0, 0.65);
}

.podcast-reel-cover-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.podcast-reel-card {
  flex: 1;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-xl);
  padding: 2.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  box-shadow: var(--shadow-xl);
  color: #ffffff;
}

[data-theme="light"] .podcast-reel-card {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(0, 0, 0, 0.08);
  color: var(--text-primary);
}

.podcast-reel-badge-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.podcast-reel-index {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: var(--accent-primary);
  color: #ffffff;
}

.podcast-reel-ep-count {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

.podcast-reel-title {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.podcast-reel-host {
  font-size: 1.05rem;
  color: var(--accent-secondary);
  font-weight: 700;
}

.podcast-reel-desc {
  font-size: 1.05rem;
  line-height: 1.6;
  opacity: 0.9;
}

.podcast-reel-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
}

.podcast-reel-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--accent-primary);
  color: #ffffff;
  padding: 0.9rem 1.85rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.35);
  transition: all var(--transition-fast);
}

.podcast-reel-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.5);
  background: var(--accent-secondary);
}

.podcast-reel-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: inherit;
  transition: all var(--transition-fast);
}

[data-theme="light"] .podcast-reel-social {
  border-color: rgba(0, 0, 0, 0.15);
}

.podcast-reel-social:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* Vertical Reel Dots Navigation */
.reel-nav-dots {
  position: fixed;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 100;
}

.reel-dot-btn {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  padding: 0;
}

[data-theme="light"] .reel-dot-btn {
  background: rgba(0, 0, 0, 0.25);
}

.reel-dot-btn.active {
  background: var(--accent-primary);
  transform: scale(1.4);
  box-shadow: 0 0 12px var(--accent-primary);
}

.reel-scroll-hint {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: bounceHint 2s infinite ease-in-out;
  pointer-events: none;
}

@keyframes bounceHint {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

@media (max-width: 960px) {
  .podcast-reel-content {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }
  .podcast-reel-cover-wrap {
    width: min(240px, 60vw);
  }
  .podcast-reel-title {
    font-size: 1.85rem;
  }
  .podcast-reel-card {
    padding: 1.75rem;
  }
  .podcast-reel-actions {
    justify-content: center;
  }
  .podcast-reel-badge-row {
    justify-content: center;
  }
  .reel-nav-dots {
    right: 12px;
  }
}

/* ==========================================================================
   CUSTOM EPISODE AUDIO CARD (MATCHES REFERENCE PLAYER UI)
   ========================================================================== */
.custom-episode-card {
  display: grid;
  grid-template-columns: 140px 1fr;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

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

@media (max-width: 640px) {
  .custom-episode-card {
    grid-template-columns: 1fr;
  }
}

.custom-episode-thumb-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #000000;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.custom-episode-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.custom-episode-body {
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.6rem;
}

.custom-ep-series-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.custom-ep-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
}

.custom-player-bar {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin-top: 0.35rem;
}

.custom-play-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--bg-primary);
  color: #e11d48;
  border: 2px solid #e11d48;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
  flex-shrink: 0;
  padding: 0;
}

.custom-play-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 14px rgba(225, 29, 72, 0.35);
}

.custom-play-btn.playing {
  background: #e11d48;
  color: #ffffff;
}

.custom-scrubber-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.custom-scrubber-top {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.custom-scrub-range {
  flex: 1;
  height: 6px;
  -webkit-appearance: none;
  appearance: none;
  background: var(--border-color);
  border-radius: 3px;
  outline: none;
  cursor: pointer;
}

.custom-scrub-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #e11d48;
  cursor: pointer;
  transition: transform 0.1s;
}

.custom-scrub-range::-webkit-slider-thumb:hover {
  transform: scale(1.25);
}

.custom-time-text {
  font-size: 0.75rem;
  font-family: monospace;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

.custom-secondary-controls {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.custom-icon-ctrl {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
  font-size: 0.75rem;
  font-weight: 700;
  transition: color var(--transition-fast);
}

.custom-icon-ctrl:hover {
  color: var(--text-primary);
}

.custom-speed-badge {
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 0.7rem;
}

.custom-action-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: 0.35rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.custom-action-link {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  text-transform: uppercase;
  transition: color var(--transition-fast);
  text-decoration: none;
}

.custom-action-link:hover {
  color: var(--text-primary);
}

/* ==========================================================================
   SUPPORTERS PAGE (FULLSCREEN VIGNETTE & VERTICAL MARQUEES)
   ========================================================================== */
.supporters-page-wrap {
  min-height: calc(100vh - 65px);
  background: #04060a;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #ffffff;
  padding: 3rem 1.5rem 2rem 1.5rem;
}

.supporters-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(15, 23, 42, 0.15) 0%, rgba(0, 0, 0, 0.95) 100%);
  pointer-events: none;
  z-index: 2;
}

.supporters-hero-header {
  text-align: center;
  position: relative;
  z-index: 3;
  margin-bottom: 2rem;
}

.supporters-title {
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
  text-shadow: 0 0 24px rgba(255, 255, 255, 0.35);
  margin-bottom: 0.5rem;
}

.supporters-subtitle {
  font-size: 1.05rem;
  color: #94a3b8;
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.55;
}

.supporters-marquee-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  height: 500px;
  overflow: hidden;
  position: relative;
  z-index: 1;
  mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
}

@media (max-width: 900px) {
  .supporters-marquee-container {
    grid-template-columns: repeat(2, 1fr);
    height: 420px;
  }
}

.marquee-column {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  will-change: transform;
}

.marquee-col-1 {
  animation: marqueeScrollUp 28s linear infinite;
}

.marquee-col-2 {
  animation: marqueeScrollUp 36s linear infinite;
}

.marquee-col-3 {
  animation: marqueeScrollUp 24s linear infinite;
}

.marquee-col-4 {
  animation: marqueeScrollUp 32s linear infinite;
}

.marquee-column:hover {
  animation-play-state: paused;
}

@keyframes marqueeScrollUp {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-50%);
  }
}

.supporter-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0.85rem 1.15rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: all var(--transition-fast);
}

.supporter-item:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.22);
  transform: scale(1.04);
}

.supporter-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: #f8fafc;
  letter-spacing: 0.02em;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.25);
}

.supporter-tier {
  font-size: 0.75rem;
  color: #38bdf8;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 2px;
}

.supporters-footer-card {
  position: relative;
  z-index: 3;
  max-width: 800px;
  margin: 2rem auto 0 auto;
  text-align: center;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl);
  padding: 1.75rem 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.supporters-footer-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: #ffffff;
}

.supporters-footer-desc {
  font-size: 0.9rem;
  color: #94a3b8;
}

.supporters-footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.25rem;
}

/* ==========================================================================
   @TheArtOfCeilings TRADING CARD ACQUISITION SECTION
   ========================================================================== */
.taoc-acquire-section {
  max-width: 1200px;
  margin: 3.5rem auto 1rem auto;
  padding: 2.75rem;
  border-radius: var(--radius-xl);
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.taoc-acquire-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.taoc-acquire-badge {
  display: inline-block;
  align-self: center;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
}

.taoc-acquire-title {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

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

.taoc-acquire-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
}

@media (max-width: 800px) {
  .taoc-acquire-grid {
    grid-template-columns: 1fr;
  }
}

.taoc-acquire-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.85rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.taoc-card-heading {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.taoc-steps-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 0;
  margin: 0;
}

.taoc-step-item {
  display: flex;
  gap: 0.75rem;
  font-size: 0.925rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.taoc-step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent-primary);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.taoc-email-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 0.5rem;
}

.taoc-email-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: monospace;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-primary);
  text-decoration: none;
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  transition: all var(--transition-fast);
}

.taoc-email-btn:hover {
  border-color: var(--accent-primary);
  background: var(--bg-surface-hover);
}

.taoc-payment-links-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.taoc-payment-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all var(--transition-fast);
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}

.taoc-payment-btn.paypal {
  background: #003087;
}

.taoc-payment-btn.venmo {
  background: #008cff;
}

.taoc-payment-btn.cashapp {
  background: #00d632;
}

.taoc-payment-btn.cash {
  background: #475569;
}

.taoc-payment-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.15);
  box-shadow: var(--shadow-md);
}

.taoc-gift-callout {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(217, 119, 6, 0.18));
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.taoc-gift-icon {
  font-size: 2rem;
  flex-shrink: 0;
}
