/* ============================================================
   style.css — FlipBook 3D Main Stylesheet
   Design: Refined dark · Cormorant Garamond + Outfit
   Cohesive system shared with admin panel
============================================================ */

/* ── Tokens ─────────────────────────────────────────────── */
:root {
  --bg0:     #0d0d14;
  --bg1:     #111119;
  --bg2:     #16161f;
  --bg3:     #1c1c27;
  --line:    rgba(255,255,255,.07);
  --line2:   rgba(255,255,255,.04);

  --amber:   #d4a843;
  --amber2:  #f0c35a;
  --amber-a: rgba(212,168,67,.12);
  --amber-b: rgba(212,168,67,.22);

  --txt:     #e8e5df;
  --txt2:    #8a8a9e;
  --txt3:    #3e3e52;

  --blue:    #5b9cf6;
  --green:   #4dd9ac;
  --red:     #f07167;

  --r:       10px;
  --r2:      14px;
  --r3:      20px;
  --ease:    .24s cubic-bezier(.4,0,.2,1);

  --shadow:      0 8px 32px rgba(0,0,0,.5);
  --shadow-gold: 0 0 28px rgba(212,168,67,.18);
}

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

body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg0);
  color: var(--txt);
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
input, select, textarea, button { font-family: inherit; font-size: 1rem; }

h1,h2,h3,h4 { font-family: 'Cormorant Garamond', serif; }
em { font-style: italic; color: var(--amber); }

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg0); }
::-webkit-scrollbar-thumb { background: var(--bg3); border-radius: 3px; }

.container { max-width: 1300px; margin: 0 auto; padding: 0 28px; }

/* ══════════════════════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════════════════════ */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(13,13,20,.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  max-width: 1300px; margin: 0 auto; padding: 0 28px;
  display: flex; align-items: center; gap: 20px; height: 66px;
}

.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem; font-weight: 600;
  white-space: nowrap;
}

.logo-mark {
  width: 34px; height: 34px;
  background: var(--amber-a);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  color: var(--amber);
}

.nav-search {
  flex: 1; max-width: 440px;
  display: flex; align-items: center; gap: 10px;
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 0 14px;
  height: 40px;
  transition: border-color var(--ease);
}

.nav-search:focus-within { border-color: var(--amber); }

.nav-search input {
  flex: 1; background: none; border: none; outline: none;
  color: var(--txt); font-size: .88rem;
}

.nav-search input::placeholder { color: var(--txt3); }

.search-btn {
  background: none; border: none; cursor: pointer;
  color: var(--txt3); display: flex; align-items: center;
  transition: color var(--ease);
}

.search-btn:hover { color: var(--amber); }

.nav-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }

/* ══════════════════════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: var(--r);
  border: none; cursor: pointer;
  font-weight: 500; font-size: .88rem;
  transition: all var(--ease); white-space: nowrap;
}

.btn-primary {
  background: var(--amber); color: #0d0d14;
}
.btn-primary:hover {
  background: var(--amber2);
  box-shadow: 0 0 20px rgba(212,168,67,.3);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent; color: var(--txt2);
  border: 1px solid var(--line);
}
.btn-ghost:hover { color: var(--txt); border-color: var(--amber); background: var(--amber-a); }

.btn-outline {
  background: transparent; color: var(--amber);
  border: 1px solid rgba(212,168,67,.4);
}
.btn-outline:hover { background: var(--amber-a); border-color: var(--amber); }

.btn-lg { padding: 13px 28px; font-size: .96rem; border-radius: var(--r2); }
.btn-block { width: 100%; justify-content: center; }
.btn:disabled { opacity: .4; cursor: not-allowed; transform: none !important; }

/* ══════════════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 560px;
  display: flex; align-items: center;
  overflow: hidden;
  padding: 80px 28px;
}

.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 70% at 65% 50%, rgba(212,168,67,.1) 0%, transparent 65%),
    radial-gradient(ellipse 35% 45% at 15% 80%, rgba(91,156,246,.07) 0%, transparent 55%);
}

/* Subtle grid texture */
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line2) 1px, transparent 1px),
    linear-gradient(90deg, var(--line2) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 70% at 65% 50%, black 0%, transparent 70%);
}

.hero-content {
  max-width: 560px; position: relative; z-index: 2;
  margin-left: max(28px, calc((100vw - 1300px) / 2 + 28px));
}

.hero h1 {
  font-size: clamp(2.8rem, 6vw, 4.8rem);
  line-height: 1.08; margin-bottom: 20px;
  animation: fadeUp .7s ease both;
}

.hero p {
  font-size: 1.05rem; color: var(--txt2);
  margin-bottom: 36px; line-height: 1.65;
  animation: fadeUp .7s .12s ease both;
}

.hero-cta {
  display: flex; gap: 12px; flex-wrap: wrap;
  animation: fadeUp .7s .22s ease both;
}

/* Decorative book */
.hero-deco {
  position: absolute;
  right: max(28px, calc((100vw - 1300px) / 2 + 28px));
  perspective: 900px;
  animation: fadeIn .9s .35s ease both;
}

.deco-book {
  position: relative; width: 260px; height: 340px;
  transform-style: preserve-3d;
}

.deco-page {
  position: absolute; width: 220px; height: 300px;
  border-radius: 3px 13px 13px 3px;
  background: var(--bg2); border: 1px solid var(--line);
  box-shadow: 4px 4px 28px rgba(0,0,0,.45);
}

.deco-page::before {
  content: '';
  position: absolute; inset: 18px 20px;
  background: repeating-linear-gradient(
    transparent, transparent 12px,
    rgba(255,255,255,.04) 12px, rgba(255,255,255,.04) 13px
  );
}

.dp1 { transform: rotate3d(0,1,0,-9deg) translateX(-10px); background: #181820; }
.dp2 { transform: rotate3d(0,1,0,-4.5deg) translateX(-5px); background: #1c1c26; }
.dp3 { background: #20202c; transform-origin: left center; animation: flip 3.2s 1s ease-in-out infinite; }

.deco-spine {
  position: absolute; left: 0; top: 0; bottom: 0; width: 8px;
  background: linear-gradient(180deg, var(--amber) 0%, #7a5010 100%);
  border-radius: 2px 0 0 2px;
}

@keyframes flip {
  0%, 35%  { transform: rotateY(0deg); }
  50%, 85% { transform: rotateY(-148deg); box-shadow: -8px 4px 28px rgba(0,0,0,.65); }
  100%     { transform: rotateY(0deg); }
}

/* ══════════════════════════════════════════════════════════
   FILTER BAR
══════════════════════════════════════════════════════════ */
.filter-bar {
  border-bottom: 1px solid var(--line);
  background: var(--bg1);
  padding: 14px 0;
}

.filter-bar .container {
  display: flex; align-items: center;
  justify-content: space-between; gap: 16px; flex-wrap: wrap;
}

.category-pills { display: flex; gap: 7px; flex-wrap: wrap; }

.pill {
  padding: 6px 15px; border-radius: 100px; font-size: .82rem;
  background: var(--bg3); border: 1px solid var(--line);
  cursor: pointer; transition: all var(--ease); color: var(--txt2);
  font-family: 'Outfit', sans-serif; font-weight: 500;
}

.pill:hover, .pill.active {
  background: var(--amber-a); border-color: rgba(212,168,67,.4); color: var(--amber);
}

.view-controls { display: flex; align-items: center; gap: 7px; }

.view-btn {
  width: 36px; height: 36px;
  background: var(--bg3); border: 1px solid var(--line);
  border-radius: var(--r); cursor: pointer; color: var(--txt3);
  font-size: .9rem; display: flex; align-items: center; justify-content: center;
  transition: all var(--ease);
}
.view-btn:hover, .view-btn.active {
  border-color: rgba(212,168,67,.4); color: var(--amber); background: var(--amber-a);
}

#sortSelect {
  background: var(--bg3); border: 1px solid var(--line);
  color: var(--txt); padding: 8px 12px;
  border-radius: var(--r); cursor: pointer; outline: none;
  font-family: 'Outfit', sans-serif; font-size: .85rem;
  transition: border-color var(--ease);
}
#sortSelect:focus { border-color: var(--amber); }

/* ══════════════════════════════════════════════════════════
   BOOK GRID
══════════════════════════════════════════════════════════ */
.main-content { padding: 36px 0 64px; }

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

.book-card {
  background: var(--bg2); border: 1px solid var(--line);
  border-radius: var(--r2); overflow: hidden;
  transition: all var(--ease); cursor: pointer;
  animation: fadeIn .35s ease both;
}

.book-card:hover {
  transform: translateY(-5px);
  border-color: rgba(212,168,67,.3);
  box-shadow: var(--shadow-gold);
}

.book-cover {
  width: 100%; aspect-ratio: 3/4;
  background: linear-gradient(145deg, var(--bg3) 0%, var(--bg1) 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 3.5rem; position: relative; overflow: hidden;
}

.book-spine {
  position: absolute; left: 0; top: 0; bottom: 0; width: 6px;
  background: linear-gradient(180deg, var(--amber) 0%, #7a5010 100%);
}

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

.book-body { padding: 15px 16px 17px; }

.book-cat {
  font-size: .68rem; color: var(--amber);
  text-transform: uppercase; letter-spacing: .1em;
  font-weight: 600; margin-bottom: 5px;
}

.book-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem; line-height: 1.3;
  margin-bottom: 5px; color: var(--txt);
}

.book-author { font-size: .78rem; color: var(--txt2); margin-bottom: 12px; }

.book-meta { display: flex; justify-content: space-between; align-items: center; }
.book-views { font-size: .74rem; color: var(--txt3); }
.book-cta { font-size: .78rem; color: var(--amber); font-weight: 600; letter-spacing: .03em; }
.book-card:hover .book-cta { color: var(--amber2); }

/* List view */
.books-grid.list-view { grid-template-columns: 1fr; }
.books-grid.list-view .book-card { display: flex; flex-direction: row; height: 96px; }
.books-grid.list-view .book-cover { width: 64px; height: 100%; aspect-ratio: unset; font-size: 1.8rem; flex-shrink: 0; }
.books-grid.list-view .book-body { display: flex; align-items: center; gap: 18px; flex: 1; padding: 0 18px; }
.books-grid.list-view .book-title { margin-bottom: 0; }

/* ══════════════════════════════════════════════════════════
   EMPTY STATE
══════════════════════════════════════════════════════════ */
.empty-state { text-align: center; padding: 80px 28px; }
.empty-icon  { font-size: 4rem; margin-bottom: 16px; }
.empty-state h3 { font-size: 1.6rem; margin-bottom: 8px; }
.empty-state p  { color: var(--txt2); margin-bottom: 24px; font-size: .95rem; }

/* ══════════════════════════════════════════════════════════
   PAGINATION
══════════════════════════════════════════════════════════ */
.pagination { display: flex; gap: 7px; justify-content: center; margin-top: 40px; }

.page-num {
  width: 38px; height: 38px; display: flex; align-items: center; justify-content: center;
  border-radius: var(--r); background: var(--bg2); border: 1px solid var(--line);
  cursor: pointer; transition: all var(--ease); font-size: .88rem; font-family: 'Outfit', sans-serif;
}
.page-num:hover, .page-num.active {
  background: var(--amber-a); border-color: rgba(212,168,67,.4); color: var(--amber);
}

/* ══════════════════════════════════════════════════════════
   STATS STRIP
══════════════════════════════════════════════════════════ */
.stats-strip {
  background: var(--bg1);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 48px 0;
}

.stats-row { display: flex; align-items: center; justify-content: center; gap: 48px; flex-wrap: wrap; }

.stat-item { text-align: center; }
.stat-num  { display: block; font-family: 'Cormorant Garamond', serif; font-size: 2.8rem; font-weight: 600; color: var(--amber); }
.stat-label { font-size: .8rem; color: var(--txt3); text-transform: uppercase; letter-spacing: .1em; font-weight: 600; }
.stat-sep { font-size: 2rem; color: var(--bg3); }

/* ══════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════ */
.footer { padding: 44px 0 0; }

.footer .container {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 24px; padding-bottom: 36px; flex-wrap: wrap;
}

.footer-brand span { font-family: 'Cormorant Garamond', serif; font-size: 1.3rem; font-weight: 600; }
.footer-brand p    { color: var(--txt3); font-size: .85rem; margin-top: 8px; max-width: 280px; line-height: 1.6; }

.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { color: var(--txt3); font-size: .88rem; transition: color var(--ease); font-weight: 500; }
.footer-links a:hover { color: var(--amber); }

.footer-bottom {
  border-top: 1px solid var(--line); padding: 16px 28px;
  text-align: center; color: var(--txt3); font-size: .78rem;
}

/* ══════════════════════════════════════════════════════════
   MODALS
══════════════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,.78); backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity var(--ease);
  padding: 16px;
}

.modal-overlay.open { opacity: 1; pointer-events: all; }

.modal {
  background: var(--bg2); border: 1px solid rgba(255,255,255,.09);
  border-radius: var(--r2); padding: 36px;
  width: 100%; max-width: 420px; position: relative;
  transform: translateY(20px) scale(.97);
  transition: transform var(--ease);
  max-height: 90vh; overflow-y: auto;
}

.modal-overlay.open .modal { transform: translateY(0) scale(1); }
.modal-wide { max-width: 600px; }

.modal-close {
  position: absolute; top: 14px; right: 14px;
  background: var(--bg3); border: 1px solid var(--line);
  color: var(--txt2); width: 30px; height: 30px; border-radius: 7px;
  cursor: pointer; font-size: .85rem; display: flex; align-items: center; justify-content: center;
  transition: all var(--ease);
}
.modal-close:hover { color: var(--txt); border-color: rgba(255,255,255,.14); }

.modal-title { font-size: 1.7rem; margin-bottom: 26px; }

.modal-tabs { display: flex; gap: 4px; margin-bottom: 28px; }
.tab-btn {
  flex: 1; padding: 10px; background: var(--bg3);
  border: 1px solid var(--line); border-radius: var(--r);
  cursor: pointer; color: var(--txt2); font-family: 'Outfit', sans-serif;
  font-size: .85rem; font-weight: 500; transition: all var(--ease);
}
.tab-btn.active { background: var(--amber-a); border-color: rgba(212,168,67,.4); color: var(--amber); }

/* ══════════════════════════════════════════════════════════
   FORMS
══════════════════════════════════════════════════════════ */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: .8rem; color: var(--txt2); margin-bottom: 6px; font-weight: 500; }

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 11px 14px;
  background: var(--bg0); border: 1px solid var(--line);
  border-radius: var(--r); color: var(--txt); outline: none;
  transition: border-color var(--ease); font-size: .88rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--amber); }

.form-error { color: var(--red); font-size: .82rem; margin-bottom: 12px; min-height: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ══════════════════════════════════════════════════════════
   TOGGLE
══════════════════════════════════════════════════════════ */
.toggle-label { display: flex; align-items: center; gap: 12px; cursor: pointer; user-select: none; }
.toggle-label input { display: none; }
.toggle-track { width: 42px; height: 23px; background: var(--bg3); border: 1px solid var(--line); border-radius: 100px; position: relative; transition: all var(--ease); }
.toggle-thumb { position: absolute; top: 3px; left: 3px; width: 15px; height: 15px; background: var(--txt3); border-radius: 50%; transition: all var(--ease); }
.toggle-label input:checked ~ .toggle-track { background: var(--amber-a); border-color: rgba(212,168,67,.45); }
.toggle-label input:checked ~ .toggle-track .toggle-thumb { left: 22px; background: var(--amber); }

/* ══════════════════════════════════════════════════════════
   TOAST
══════════════════════════════════════════════════════════ */
.toast {
  position: fixed; bottom: 24px; right: 24px; z-index: 999;
  padding: 13px 20px; border-radius: var(--r); font-size: .86rem; font-weight: 500;
  background: var(--bg3); border: 1px solid var(--line);
  transform: translateY(80px); opacity: 0; transition: all .3s ease;
  pointer-events: none;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast.success { border-color: rgba(77,217,172,.35); color: var(--green); }
.toast.error   { border-color: rgba(240,113,103,.35); color: var(--red); }

/* ══════════════════════════════════════════════════════════
   UPLOAD PAGE
══════════════════════════════════════════════════════════ */
.upload-page {
  max-width: 1100px; margin: 60px auto; padding: 0 28px;
  display: grid; grid-template-columns: 1fr 320px; gap: 40px; align-items: start;
}

.upload-title { font-size: 2.8rem; margin-bottom: 8px; }
.upload-subtitle { color: var(--txt2); margin-bottom: 32px; font-size: .95rem; }

.drop-zone {
  border: 1.5px dashed var(--line); border-radius: var(--r2);
  padding: 48px 24px; text-align: center; cursor: pointer;
  transition: all var(--ease); background: var(--bg2); margin-bottom: 22px;
}
.drop-zone:hover, .drop-zone.drag-over { border-color: var(--amber); background: var(--amber-a); }
.drop-icon { font-size: 2.8rem; margin-bottom: 12px; }
.drop-text strong { display: block; font-size: 1.05rem; margin-bottom: 6px; color: var(--txt); }
.drop-text span { color: var(--txt2); font-size: .88rem; }
.drop-text small { display: block; color: var(--txt3); font-size: .78rem; margin-top: 6px; }

.file-preview {
  display: flex; align-items: center;
  background: var(--bg2); border: 1px solid rgba(212,168,67,.35);
  border-radius: var(--r); padding: 13px 15px; margin-bottom: 22px; gap: 12px;
}
.file-info { display: flex; align-items: center; gap: 12px; flex: 1; }
.file-icon { font-size: 1.8rem; }
.file-name { display: block; font-weight: 500; font-size: .88rem; }
.file-size { font-size: .78rem; color: var(--txt2); }
.remove-file { background: none; border: none; color: var(--txt3); font-size: 1rem; cursor: pointer; transition: color var(--ease); }
.remove-file:hover { color: var(--red); }

.upload-form { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--r2); padding: 26px; }

.upload-progress { margin-bottom: 18px; }
.progress-bar { height: 4px; background: var(--bg3); border-radius: 100px; overflow: hidden; margin-bottom: 8px; }
.progress-fill { height: 100%; background: var(--amber); border-radius: 100px; transition: width .3s ease; width: 0%; }
#progressText { font-size: .82rem; color: var(--txt2); }

.upload-tips { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--r2); padding: 26px; }
.upload-tips h3 { font-size: 1.05rem; margin-bottom: 14px; }
.upload-tips ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.upload-tips li { font-size: .86rem; color: var(--txt2); }
.tips-preview { margin-top: 26px; text-align: center; }
.mini-flipbook { position: relative; width: 100px; height: 130px; margin: 0 auto 12px; perspective: 400px; }
.mini-page { position: absolute; width: 80px; height: 110px; border-radius: 2px 8px 8px 2px; background: var(--bg3); border: 1px solid var(--line); }
.mp1 { transform: rotate3d(0,1,0,-8deg); background: #181820; }
.mp2 { transform: rotate3d(0,1,0,-4deg); background: #1c1c26; }
.mp3 { background: #20202c; transform-origin: left center; animation: flip 3s 1s ease-in-out infinite; }
.tips-preview p { font-size: .78rem; color: var(--txt3); }

/* ══════════════════════════════════════════════════════════
   SHIMMER LOADING
══════════════════════════════════════════════════════════ */
.loading-shimmer {
  grid-column: 1 / -1; height: 240px;
  border-radius: var(--r2);
  background: linear-gradient(90deg, var(--bg2) 25%, var(--bg3) 50%, var(--bg2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease infinite;
}

@keyframes shimmer  { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
@keyframes fadeIn   { from { opacity:0 } to { opacity:1 } }
@keyframes fadeUp   { from { opacity:0; transform:translateY(22px) } to { opacity:1; transform:translateY(0) } }

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════ */
@media (max-width: 1200px) {
  .hero-content { margin-left: 28px; }
  .hero-deco { display: none; }
}

@media (max-width: 900px) {
  .upload-page { grid-template-columns: 1fr; }
  .hero { padding: 60px 28px; min-height: auto; }
}

@media (max-width: 768px) {
  .nav-inner { padding: 0 16px; height: 58px; gap: 12px; }
  .nav-search { display: none; }
  .hero h1 { font-size: 2.6rem; }
  .stats-row { gap: 28px; }
  .stat-sep { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .footer .container { flex-direction: column; }
  .container { padding: 0 16px; }
  .books-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
  .toast { bottom: 14px; right: 12px; left: 12px; text-align: center; }
}

/* ══════════════════════════════════════════════════════════
   UPLOAD PAGE ADDITIONS
══════════════════════════════════════════════════════════ */

/* Utility: generic hidden class used by Upload module */
.hidden { display: none !important; }

/* Required field asterisk */
.required { color: var(--red, #e24a4a); }

/* Subtle inline field hint */
.field-hint { font-size: .78rem; color: var(--txt3); font-weight: 400; }

/* Auth Gate */
.auth-gate-icon { font-size: 3rem; margin-bottom: 16px; text-align: center; }

/* Progress meta row: label left, size/speed right */
.progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
}
.progress-speed { font-size: .78rem; color: var(--txt3); font-variant-numeric: tabular-nums; }
#progressText   { font-size: .82rem; color: var(--txt2); }

/* Upload form: visible once file chosen */
.upload-form.hidden { display: none; }

/* Success Panel */
.upload-success {
  text-align: center;
  padding: 40px 24px;
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: var(--r2);
  animation: fadeUp .4s ease both;
}
.success-icon       { font-size: 3.2rem; margin-bottom: 12px; }
.success-title      { font-size: 1.6rem; font-family: 'Playfair Display', serif; margin-bottom: 8px; }
.success-book-name  { font-size: 1.05rem; font-weight: 600; color: var(--amber, #c9a84c); margin-bottom: 4px; }
.success-meta       { font-size: .85rem; color: var(--txt2); margin-bottom: 28px; }
.success-actions    { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
