/* ════════════════════════════════════════════════════════════
   styles.css — Veda Vault shared stylesheet
   Used by: index.html, admin.html
   ════════════════════════════════════════════════════════════ */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --saffron: #e8650a;
  --saffron-l: #fdf0e6;
  --saffron-d: #a84d07;
  --gold: #c8920a;
  --gold-l: #fbf3dc;
  --maroon: #7b1a1a;
  --deep: #1a1208;
  --warm: #fdfaf5;
  --parchment: #f4edd8;
  --text: #1e1510;
  --text2: #6b5840;
  --text3: #9c8670;
  --surface: #ffffff;
  --surface2: #fafaf8;
  --border: rgba(200, 146, 10, 0.18);
  --border2: rgba(200, 146, 10, 0.4);
  --shadow-sm: 0 1px 4px rgba(26, 18, 8, 0.07);
  --shadow-md: 0 4px 20px rgba(26, 18, 8, 0.09);
  --shadow-lg: 0 10px 32px rgba(26, 18, 8, 0.14);
  --radius: 14px;
  --serif: "Crimson Pro", Georgia, serif;
  --sans: "Outfit", system-ui, sans-serif;
}
[data-theme="dark"] {
  --warm: #0f0c07;
  --parchment: #1a1510;
  --text: #f0e8d8;
  --text2: #a8957e;
  --text3: #6b5840;
  --surface: #1e190f;
  --surface2: #251e12;
  --border: rgba(200, 146, 10, 0.15);
  --border2: rgba(200, 146, 10, 0.3);
  --shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 32px rgba(0, 0, 0, 0.4);
}

html {
  scroll-behavior: smooth;
}
body {
  background: var(--warm);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  transition:
    background 0.35s,
    color 0.35s;
  overflow-x: hidden;
}
.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 20px;
}
a {
  color: inherit;
}

/* ══ OM ICON — Devanagari ॐ glyph via Yatra One font ══ */
.om-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Yatra One", system-ui;
  line-height: 1;
  font-style: normal;
  font-weight: 400;
  color: var(--saffron);
  user-select: none;
}
.om-icon::before {
  content: "ॐ";
}
.om-hero {
  font-size: 64px;
}
.om-loader {
  font-size: 50px;
  color: var(--saffron);
}
.om-nav {
  font-size: 26px;
}
.om-about {
  font-size: 64px;
  width: auto;
  height: auto;
  padding: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--saffron), var(--gold));
  color: #fff;
}
.om-footer {
  font-size: 20px;
}

/* ══ PAGE LOADER ══ */
#pageLoader {
  position: fixed;
  inset: 0;
  background: var(--deep);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  transition:
    opacity 0.45s,
    visibility 0.45s;
}
#pageLoader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.om-loader {
  animation: loaderPulse 1.4s ease-in-out infinite;
}
@keyframes loaderPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.75;
  }
  50% {
    transform: scale(1.12);
    opacity: 1;
  }
}
.loader-bar-wrap {
  width: 180px;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 99px;
  overflow: hidden;
}
.loader-bar {
  height: 100%;
  width: 30%;
  background: linear-gradient(90deg, var(--saffron), var(--gold));
  border-radius: 99px;
  animation: loaderSlide 1.1s ease-in-out infinite;
}
@keyframes loaderSlide {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(330%);
  }
}
.loader-text {
  color: rgba(253, 240, 230, 0.6);
  font-size: 13px;
  font-family: var(--serif);
}

/* ══ NAVIGATION ══ */
.main-nav {
  position: sticky;
  top: 0;
  z-index: 500;
  background: var(--deep);
  border-bottom: 1px solid rgba(200, 146, 10, 0.25);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
  gap: 12px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  color: #fdf0e6;
  flex-shrink: 0;
  text-decoration: none;
}
.nav-logo span {
  color: var(--saffron);
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-search-wrap {
  position: relative;
}
.nav-search {
  padding: 7px 12px 7px 32px;
  border: 1px solid rgba(200, 146, 10, 0.25);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #fdf0e6;
  font-size: 13px;
  width: 160px;
  outline: none;
  transition: all 0.2s;
  font-family: var(--sans);
}
.nav-search:focus {
  border-color: var(--saffron);
  width: 195px;
}
.nav-search::placeholder {
  color: rgba(253, 240, 230, 0.35);
}
.nav-search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(253, 240, 230, 0.4);
  font-size: 12px;
  pointer-events: none;
}
.nav-btn {
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  border: 1px solid transparent;
}
.nav-btn-tg {
  background: rgba(0, 136, 204, 0.18);
  color: #74c7ec;
  border-color: rgba(0, 136, 204, 0.3);
}
.nav-btn-tg:hover {
  background: rgba(0, 136, 204, 0.3);
}
.nav-btn-lt {
  background: rgba(57, 211, 83, 0.14);
  color: #3fd358;
  border-color: rgba(57, 211, 83, 0.28);
}
.nav-btn-lt:hover {
  background: rgba(57, 211, 83, 0.24);
}
.theme-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(253, 240, 230, 0.8);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.theme-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}
.hamburger {
  display: none;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(253, 240, 230, 0.8);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}
.mobile-nav {
  display: none;
  background: var(--deep);
  border-top: 1px solid rgba(200, 146, 10, 0.2);
  padding: 10px 20px 14px;
  flex-direction: column;
  gap: 6px;
}
.mobile-nav.open {
  display: flex;
}
.mobile-nav a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 7px;
  color: rgba(253, 240, 230, 0.8);
  font-size: 13.5px;
  text-decoration: none;
}
.mobile-nav a:hover {
  background: rgba(255, 255, 255, 0.06);
}

/* ══ FILTER BAR ══ */
.filter-bar {
  background: var(--parchment);
  border-bottom: 1px solid var(--border2);
  position: sticky;
  top: 62px;
  z-index: 400;
  display: flex;
  justify-content: center;
}
.filter-inner {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 9px 20px;
  overflow-x: auto;
  scrollbar-width: none;
}
.filter-inner::-webkit-scrollbar {
  display: none;
}
.filter-btn {
  white-space: nowrap;
  padding: 6px 14px;
  border-radius: 99px;
  border: 1.5px solid var(--border2);
  background: transparent;
  color: var(--text2);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  font-family: var(--sans);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.18s;
}
.filter-btn:hover {
  border-color: var(--saffron);
  color: var(--saffron-d);
  background: var(--saffron-l);
}
.filter-btn.active {
  background: var(--saffron);
  color: #fff;
  border-color: var(--saffron);
}
.filter-count {
  padding: 1px 6px;
  border-radius: 99px;
  background: rgba(0, 0, 0, 0.08);
  font-size: 10px;
  font-weight: 600;
}
.filter-btn.active .filter-count {
  background: rgba(255, 255, 255, 0.25);
}

/* ══ SEARCH INFO ══ */
.search-info {
  max-width: 1320px;
  margin: 16px auto 0;
  padding: 0 20px;
  display: none;
  align-items: center;
  gap: 10px;
}
.search-info.show {
  display: flex;
}
.search-info-text {
  font-size: 13px;
  color: var(--text2);
}
.search-info-clear {
  padding: 4px 12px;
  border-radius: 6px;
  border: 1px solid var(--border2);
  background: transparent;
  color: var(--saffron);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--sans);
}
.search-info-clear:hover {
  background: var(--saffron);
  color: #fff;
  border-color: var(--saffron);
}

/* ══ TELEGRAM CARDS ══ */
.tg-grid {
  display: flex;
  gap: 11px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.tg-card {
  flex: 1;
  min-width: 200px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 16px;
  border-radius: 12px;
  background: var(--surface);
  border: 1.5px solid #b8e0f5;
  text-decoration: none;
  transition: all 0.2s;
  box-shadow: var(--shadow-sm);
}
.tg-card:hover {
  border-color: #0088cc;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.tg-card.lt-card {
  border-color: rgba(57, 211, 83, 0.3);
}
.tg-card.lt-card:hover {
  border-color: rgba(57, 211, 83, 0.7);
}
.tg-icon {
  font-size: 24px;
  flex-shrink: 0;
}
.tg-name {
  font-weight: 600;
  font-size: 13px;
  color: #0060a0;
  display: block;
}
.tg-desc {
  font-size: 11.5px;
  color: #4a8ab5;
}
.lt-name {
  color: #1da462;
}
.lt-desc {
  color: #2ab360;
}

/* ══ CATEGORY SECTIONS ══ */
main {
  padding: 28px 0 60px;
}
.cat-section {
  margin-bottom: 42px;
}
.cat-section.hidden {
  display: none;
}
.cat-header {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 16px;
  padding-bottom: 11px;
  border-bottom: 2px solid var(--border2);
  flex-wrap: wrap;
}
.cat-icon {
  font-size: 20px;
}
.cat-title {
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 600;
  color: var(--maroon);
}
[data-theme="dark"] .cat-title {
  color: #e8a87c;
}
.cat-badge {
  padding: 3px 11px;
  border-radius: 99px;
  background: var(--parchment);
  border: 1px solid var(--border);
  font-size: 11.5px;
  color: var(--text2);
  font-weight: 500;
}

/* ══ POSTER GRID ══ */
.poster-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 560px) {
  .poster-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }
}
@media (min-width: 860px) {
  .poster-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }
}
@media (min-width: 1180px) {
  .poster-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

.poster-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease;
  cursor: pointer;
}
.poster-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border2);
}

/* Book cover face — multiple gradient templates via data attributes */
.poster-face {
  position: relative;
  aspect-ratio: 3 / 4;
  width: 100%;
  background: linear-gradient(
    160deg,
    var(--poster-c1, #8b4513) 0%,
    var(--poster-c2, #5c2e0c) 100%
  );
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 14px 10px;
  overflow: hidden;
}
/* Mandala ring decorations */
.poster-face::before {
  content: "";
  position: absolute;
  inset: 8%;
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
}
.poster-face::after {
  content: "";
  position: absolute;
  inset: 16%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
}
/* Extra inner ring for richer look */
.poster-face .inner-ring {
  position: absolute;
  inset: 26%;
  border: 1px dashed rgba(255, 255, 255, 0.09);
  border-radius: 50%;
  pointer-events: none;
}
.poster-title {
  font-family: var(--serif);
  color: #fff;
  font-weight: 600;
  text-align: center;
  font-size: clamp(11px, 2.6vw, 15px);
  line-height: 1.25;
  position: relative;
  z-index: 1;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.poster-spine {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6%;
  background: rgba(0, 0, 0, 0.18);
}
.poster-corner {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: #fff;
  z-index: 2;
}
/* Bottom publisher strip on book cover */
.poster-pub {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 4px 8px;
  background: rgba(0, 0, 0, 0.28);
  font-size: 8.5px;
  color: rgba(255, 255, 255, 0.6);
  font-family: var(--sans);
  text-align: center;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.poster-info {
  padding: 10px 11px 11px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1;
}
.poster-name{
  font-family:var(--serif); font-weight:600; color:var(--text);
  font-size:clamp(11.5px, 1.8vw, 13.5px);
  line-height:1.3;
  display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden;
}
.poster-size {
  font-size: 10.5px;
  color: var(--text2);
  background: var(--parchment);
  padding: 2px 7px;
  border-radius: 5px;
  border: 1px solid var(--border);
  width: fit-content;
}
.poster-actions {
  display: flex;
  gap: 6px;
  margin-top: auto;
}
.btn-poster {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 7px 4px;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1.5px solid transparent;
  font-family: var(--sans);
  transition: all 0.18s;
  white-space: nowrap;
}
.btn-poster-view {
  background: var(--saffron-l);
  color: var(--saffron-d);
  border-color: rgba(232, 101, 10, 0.3);
}
.btn-poster-view:hover {
  background: var(--saffron);
  color: #fff;
  border-color: var(--saffron);
}
.btn-poster-dl {
  background: var(--gold-l);
  color: #7a5800;
  border-color: rgba(200, 146, 10, 0.3);
}
.btn-poster-dl:hover {
  background: var(--gold);
  color: #fff;
  border-color: var(--gold);
}
.btn-poster-dl.downloading {
  opacity: 0.65;
  pointer-events: none;
}

.poster-grid.search-active .poster-card.search-hidden {
  display: none;
}

/* ══ EMPTY / LOADING ══ */
.spinner-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 64px 0;
  gap: 14px;
}
.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--parchment);
  border-top-color: var(--saffron);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.spinner-text {
  font-size: 13px;
  color: var(--text2);
}

/* ══ PDF VIEWER MODAL ══ */
.pdf-modal-ov {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 12, 7, 0.82);
  z-index: 8000;
  align-items: center;
  justify-content: center;
  padding: 0;
  backdrop-filter: blur(5px);
}
.pdf-modal-ov.open {
  display: flex;
}
.pdf-modal {
  background: var(--surface);
  width: 100%;
  height: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
@media (min-width: 760px) {
  .pdf-modal-ov {
    padding: 24px;
  }
  .pdf-modal {
    border-radius: 16px;
    width: 100%;
    max-width: 960px;
    height: 92vh;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
  }
}
.pdf-modal-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface2);
  flex-shrink: 0;
}
.pdf-modal-title {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pdf-modal-close {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  border: none;
  background: var(--parchment);
  color: var(--text2);
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.pdf-modal-close:hover {
  background: var(--saffron);
  color: #fff;
}

/* Scrollable iframe container — fixes stuck "Loading preview…" */
.pdf-modal-body {
  flex: 1;
  overflow: hidden;
  position: relative;
  background: #525659;
  display: flex;
  flex-direction: column;
}
.pdf-scroll-wrap {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
}
.pdf-scroll-wrap iframe {
  width: 100%;
  min-height: 100%;
  height: 100%;
  border: none;
  display: block;
}
.pdf-modal-loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #525659;
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
  z-index: 10;
}

.pdf-modal-foot {
  display: flex;
  gap: 8px;
  padding: 11px 16px;
  border-top: 1px solid var(--border);
  background: var(--surface2);
  flex-shrink: 0;
  align-items: center;
}
/* Icon-only buttons — no fixed width, no padding clutter */
.pdf-modal-foot .btn-modal {
  padding: 9px 14px;
  font-size: 13px;
  border-radius: 8px;
  border: 1.5px solid transparent;
  cursor: pointer;
  font-family: var(--sans);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  white-space: nowrap;
}
.btn-modal-dl {
  background: var(--saffron);
  color: #fff;
  border-color: var(--saffron);
}
.btn-modal-dl:hover {
  background: var(--saffron-d);
}
.btn-modal-dl.downloading {
  opacity: 0.6;
  pointer-events: none;
}
.btn-modal-open {
  background: var(--surface2);
  color: var(--text2);
  border-color: var(--border2);
}
.btn-modal-open:hover {
  border-color: var(--saffron);
  color: var(--saffron);
}

/* ══ HERO OM — gold foil shimmer ══ */
.om-hero {
  display: block;
  margin: 0 auto 16px;
  background: linear-gradient(
    90deg,
    #4c3200 0%,
    #a3791a 25%,
    #e5ba42 50%,
    #fff3cc 75%,
    #4c3200 100%
  );
  background-size: 400% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 18px rgba(229, 186, 66, 0.5));
  animation:
    floatOm 3s ease-in-out infinite,
    goldFoilShimmer 10s linear infinite;
}
.hero {
  background: linear-gradient(
    160deg,
    var(--deep) 0%,
    #2e1a08 60%,
    #1a1208 100%
  );
  padding: 64px 0 56px;
  text-align: center;
}
@keyframes floatOm {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}
@keyframes goldFoilShimmer {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 400% 50%;
  }
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(30px, 5.5vw, 52px);
  font-weight: 300;
  color: #fdf0e6;
  line-height: 1.2;
  margin-bottom: 14px;
}
.hero h1 em {
  font-style: italic;
  color: var(--saffron);
}
.hero-sub {
  font-size: 15.5px;
  color: rgba(253, 240, 230, 0.65);
  max-width: 580px;
  margin: 0 auto 28px;
  font-weight: 300;
  line-height: 1.7;
}
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 26px;
  flex-wrap: wrap;
}
.hero-stat-num {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 600;
  color: var(--saffron);
  display: block;
}
.hero-stat-label {
  display: block;
  font-size: 11px;
  color: rgba(253, 240, 230, 0.45);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 2px;
}
.hero-tg-row {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.hero-tg-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: 9px;
  background: rgba(0, 136, 204, 0.18);
  border: 1.5px solid rgba(0, 136, 204, 0.32);
  color: #74c7ec;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
}
.hero-tg-btn:hover {
  background: rgba(0, 136, 204, 0.3);
  transform: translateY(-2px);
}
.hero-lt-btn {
  background: rgba(57, 211, 83, 0.12);
  border-color: rgba(57, 211, 83, 0.28);
  color: #3fd358;
}
.hero-lt-btn:hover {
  background: rgba(57, 211, 83, 0.22);
}

/* ══ FOOTER ══ */
footer {
  background: #0d0b06;
  border-top: 1px solid rgba(200, 146, 10, 0.2);
  padding: 32px 0 22px;
  color: rgba(253, 240, 230, 0.5);
  font-size: 13px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 26px;
  margin-bottom: 22px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--serif);
  font-size: 17px;
  color: #fdf0e6;
  margin-bottom: 8px;
}
.footer-logo span {
  color: var(--saffron);
}
.footer-tagline {
  font-size: 12px;
  color: rgba(253, 240, 230, 0.45);
  line-height: 1.6;
  max-width: 230px;
}
.footer-col-title {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--saffron);
  margin-bottom: 11px;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.footer-link {
  font-size: 12.5px;
  color: rgba(253, 240, 230, 0.55);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 7px;
  transition: color 0.15s;
}
.footer-link:hover {
  color: rgba(253, 240, 230, 0.9);
}
.footer-bottom{border-top:1px solid rgba(200,146,10,.12); padding-top:16px; display:flex; justify-content:center; align-items:center; flex-wrap:wrap; gap:10px; text-align:center;}
.footer-copy {
  font-size: 11.5px;
  color: rgba(253, 240, 230, 0.32);
}
.footer-admin-link{color:rgba(253,240,230,.3); text-decoration:underline; font-size:11px; cursor:pointer;}
.footer-admin-link:hover{color:rgba(253,240,230,.6)}
.footer-curator{color:rgba(253,240,230,.5); font-size:11.5px; text-decoration:none; border:none; cursor:default; font-weight:normal;}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 640px) {
  .nav-search {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  .nav-right > *:not(.hamburger):not(.theme-btn) {
    display: none;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}


/* ════════════════════════════════════════════════════════════
   ADMIN PANEL — admin.html specific styles
   ════════════════════════════════════════════════════════════ */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0
}

:root {
  --saffron: #E8650A;
  --saffron-l: #FDF0E6;
  --saffron-d: #A84D07;
  --gold: #C8920A;
  --deep: #1A1208;
  --bg: #F7F4EF;
  --surface: #FFFFFF;
  --surface2: #FAFAF8;
  --text: #1E1510;
  --text2: #6B5840;
  --text3: #9C8670;
  --border: #E5DFD3;
  --border2: #C8BBA8;
  --danger: #D93030;
  --danger-bg: #FEF0F0;
  --success: #1B8C3E;
  --success-bg: #EEF7F1;
  --info: #0284C7;
  --info-bg: #E0F2FE;
  --radius: 10px;
  --font: 'Outfit', system-ui, sans-serif;
  --serif: 'Crimson Pro', Georgia, serif;
  --shadow: 0 1px 3px rgba(0, 0, 0, .08), 0 4px 16px rgba(0, 0, 0, .05);
}

[data-theme="dark"] {
  --bg: #0F0C07;
  --surface: #1A1510;
  --surface2: #211A11;
  --text: #F0E8D8;
  --text2: #A8957E;
  --text3: #6B5840;
  --border: #332A1C;
  --border2: #4A3D28;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.55;
  transition: background .3s, color .3s
}

a {
  color: inherit
}

/* ══ OM ICON (Yatra One glyph) ══ */
.om-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Yatra One', system-ui;
  line-height: 1;
  font-style: normal;
  font-weight: 400;
  color: var(--saffron);
  user-select: none;
}

.om-icon::before {
  content: 'ॐ'
}

.om-nav-adm {
  font-size: 22px
}

.om-login {
  font-size: 38px;
  display: block;
  margin-bottom: 8px;
  animation: omPulse 2s ease-in-out infinite
}

@keyframes omPulse {

  0%,
  100% {
    opacity: .8;
    transform: scale(1)
  }

  50% {
    opacity: 1;
    transform: scale(1.07)
  }
}

/* ══ LOADER ══ */
#admLoader {
  position: fixed;
  inset: 0;
  background: var(--deep);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  transition: opacity .4s, visibility .4s;
}

#admLoader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none
}

.adm-loader-om {
  font-size: 50px;
  animation: admPulse 1.3s ease-in-out infinite
}

@keyframes admPulse {

  0%,
  100% {
    transform: scale(1);
    opacity: .7
  }

  50% {
    transform: scale(1.1);
    opacity: 1
  }
}

.adm-loader-bar-wrap {
  width: 170px;
  height: 3px;
  background: rgba(255, 255, 255, .1);
  border-radius: 99px;
  overflow: hidden
}

.adm-loader-bar {
  height: 100%;
  width: 30%;
  background: linear-gradient(90deg, var(--saffron), var(--gold));
  border-radius: 99px;
  animation: admLoaderSlide 1s ease-in-out infinite
}

@keyframes admLoaderSlide {
  0% {
    transform: translateX(-100%)
  }

  100% {
    transform: translateX(330%)
  }
}

.adm-loader-text {
  font-size: 12.5px;
  color: rgba(253, 240, 230, .55)
}

/* ══ LOGIN ══ */
#loginScreen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, var(--deep) 0%, #2E1A08 100%);
  padding: 20px;
}

.login-box {
  background: var(--surface);
  border-radius: 18px;
  padding: 40px;
  width: 390px;
  max-width: 100%;
  box-shadow: 0 24px 64px rgba(0, 0, 0, .35);
}

.login-logo {
  text-align: center;
  margin-bottom: 26px
}

.login-logo h1 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600
}

.login-logo p {
  font-size: 12.5px;
  color: var(--text2);
  margin-top: 4px
}

.form-group {
  margin-bottom: 15px
}

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--text2);
  margin-bottom: 6px
}

.form-group .input-wrap {
  position: relative
}

.form-group input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: 9px;
  font-size: 14px;
  font-family: var(--font);
  color: var(--text);
  background: var(--surface);
  outline: none;
  transition: border .18s;
}

.form-group input:focus {
  border-color: var(--saffron)
}

.pwd-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text3);
  font-size: 14px;
}

.btn-login {
  width: 100%;
  padding: 11px;
  background: var(--saffron);
  color: #fff;
  border: none;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font);
  margin-top: 5px;
  transition: background .18s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-login:hover {
  background: var(--saffron-d)
}

.btn-login:disabled {
  opacity: .6;
  cursor: not-allowed
}

.login-error {
  color: var(--danger);
  font-size: 12.5px;
  text-align: center;
  margin-top: 11px;
  min-height: 18px
}

.login-footer {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  text-align: center
}

.login-footer p {
  font-size: 11px;
  color: var(--text3)
}

/* ══ DASHBOARD ══ */
#dashboard {
  display: none
}

.topbar {
  background: var(--deep);
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  position: sticky;
  top: 0;
  z-index: 200;
  border-bottom: 1px solid rgba(232, 101, 10, .3);
  gap: 10px;
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #FDF0E6;
  font-size: 15px;
  font-weight: 600;
  flex-shrink: 0;
}

.topbar-brand-name {
  font-family: var(--serif)
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  overflow-x: auto;
}

.topbar-user {
  font-size: 12.5px;
  color: rgba(253, 240, 230, .6);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.topbar-status {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  display: inline-block;
  flex-shrink: 0;
}

.btn-tb {
  padding: 6px 11px;
  border-radius: 7px;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  font-family: var(--font);
  transition: all .18s;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 5px;
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-tb-ghost {
  background: rgba(255, 255, 255, .08);
  color: rgba(253, 240, 230, .8);
  border-color: rgba(255, 255, 255, .15)
}

.btn-tb-ghost:hover {
  background: rgba(255, 255, 255, .15)
}

.btn-tb-danger {
  background: rgba(217, 48, 48, .18);
  color: #fca5a5;
  border-color: rgba(217, 48, 48, .3)
}

.btn-tb-danger:hover {
  background: rgba(217, 48, 48, .32)
}

.theme-toggle-tb {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, .15);
  background: rgba(255, 255, 255, .08);
  color: rgba(253, 240, 230, .8);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 13px;
  flex-shrink: 0;
}

.theme-toggle-tb:hover {
  background: rgba(255, 255, 255, .15)
}

.sidebar-toggle-btn {
  display: none;
}

/* ══ LAYOUT ══ */
.layout {
  display: flex;
  min-height: calc(100vh - 56px)
}

.sidebar {
  width: 220px;
  flex-shrink: 0;
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 16px 0;
  position: sticky;
  top: 56px;
  height: calc(100vh - 56px);
  overflow-y: auto;
  transition: transform .25s ease;
}

.sb-section {
  padding: 0 12px;
  margin-bottom: 16px
}

.sb-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: .1em;
  padding: 0 8px;
  margin-bottom: 6px
}

.sb-link {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 11px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 400;
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  font-family: var(--font);
  transition: background .15s;
  color: var(--text);
}

.sb-link:hover {
  background: var(--bg)
}

.sb-link.active {
  background: var(--saffron-l);
  color: var(--saffron-d);
  font-weight: 500
}

.sb-icon {
  font-size: 14px;
  width: 18px;
  text-align: center
}

.sb-badge {
  margin-left: auto;
  padding: 1px 7px;
  border-radius: 99px;
  font-size: 10px;
  font-weight: 600;
  background: var(--border);
  color: var(--text2);
}

.sb-link.active .sb-badge {
  background: var(--saffron);
  color: #fff
}

.content {
  flex: 1;
  padding: 24px 26px;
  overflow-x: auto;
  max-width: 100%
}

.page {
  display: none
}

.page.active {
  display: block;
  animation: pageIn .25s ease
}

@keyframes pageIn {
  from {
    opacity: 0;
    transform: translateY(6px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  gap: 14px;
  flex-wrap: wrap
}

.page-title {
  font-size: 20px;
  font-weight: 600
}

.page-title small {
  display: block;
  font-size: 12.5px;
  font-weight: 400;
  color: var(--text2);
  margin-top: 2px
}

.btn-primary {
  padding: 9px 17px;
  background: var(--saffron);
  color: #fff;
  border: none;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font);
  transition: background .18s;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 7px;
}

.btn-primary:hover {
  background: var(--saffron-d)
}

.btn-secondary {
  padding: 8px 15px;
  background: var(--surface);
  color: var(--text);
  border: 1.5px solid var(--border2);
  border-radius: 9px;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  font-family: var(--font);
  transition: all .18s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-secondary:hover {
  border-color: var(--saffron);
  color: var(--saffron)
}

.btn-danger {
  padding: 7px 14px;
  background: var(--danger-bg);
  color: var(--danger);
  border: 1px solid rgba(217, 48, 48, .25);
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  font-family: var(--font);
  transition: all .18s;
}

.btn-danger:hover {
  background: var(--danger);
  color: #fff
}

.btn-sm {
  padding: 5px 11px;
  font-size: 12px;
  border-radius: 7px
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  margin-bottom: 18px
}

.card-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: space-between
}

.card-sub {
  font-size: 12px;
  color: var(--text2);
  margin-bottom: 14px
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 13px;
  margin-bottom: 22px
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--saffron), var(--gold))
}

.stat-icon {
  font-size: 17px;
  margin-bottom: 7px;
  color: var(--saffron)
}

.stat-num {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  line-height: 1
}

.stat-label {
  font-size: 11.5px;
  color: var(--text2);
  margin-top: 4px
}

.cat-list {
  list-style: none
}

.cat-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface2);
  margin-bottom: 9px;
  transition: box-shadow .18s, border-color .18s;
}

.cat-item:hover {
  border-color: var(--border2);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .06)
}

.cat-item.sortable-ghost {
  opacity: .3
}

.drag-handle {
  color: var(--text3);
  font-size: 15px;
  flex-shrink: 0;
  cursor: grab;
  padding: 6px;
  touch-action: none;
}

.cat-icon-display {
  font-size: 19px;
  flex-shrink: 0;
  width: 28px;
  text-align: center
}

.cat-info {
  flex: 1;
  min-width: 0
}

.cat-name-display {
  font-weight: 500;
  font-size: 13.5px
}

.cat-count-display {
  font-size: 11.5px;
  color: var(--text2)
}

.cat-actions {
  display: flex;
  gap: 5px;
  flex-shrink: 0
}

.file-table-wrap {
  overflow-x: auto
}

table {
  width: 100%;
  border-collapse: collapse
}

th {
  text-align: left;
  padding: 9px 12px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text2);
  text-transform: uppercase;
  letter-spacing: .07em;
  border-bottom: 2px solid var(--border);
  background: var(--surface2);
  white-space: nowrap;
}

td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  font-size: 13px
}

tr:hover td {
  background: var(--saffron-l)
}

[data-theme="dark"] tr:hover td {
  background: rgba(232, 101, 10, .08)
}

.drag-file-handle {
  cursor: grab;
  touch-action: none;
}

.td-name {
  font-weight: 500;
  max-width: 260px
}

.td-size {
  color: var(--text2);
  white-space: nowrap
}

.td-order {
  text-align: center;
  color: var(--text2);
  font-size: 12.5px
}

.td-actions {
  display: flex;
  gap: 5px;
  align-items: center
}

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 12, 7, .6);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 18px;
  backdrop-filter: blur(3px);
}

.modal-overlay.open {
  display: flex
}

.modal {
  background: var(--surface);
  border-radius: 16px;
  padding: 26px;
  width: 520px;
  max-width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 64px rgba(0, 0, 0, .3);
}

.modal-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center
}

.modal-close {
  background: none;
  border: none;
  font-size: 17px;
  cursor: pointer;
  color: var(--text2);
  line-height: 1;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center
}

.modal-close:hover {
  background: var(--bg);
  color: var(--text)
}

.field {
  margin-bottom: 14px
}

.field label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--text2);
  margin-bottom: 6px
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  font-family: var(--font);
  color: var(--text);
  background: var(--surface);
  outline: none;
  transition: border .18s;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--saffron)
}

.field textarea {
  height: 65px;
  resize: vertical
}

.modal-footer {
  display: flex;
  gap: 9px;
  justify-content: flex-end;
  margin-top: 20px
}

#toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 12px 18px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 4px 20px rgba(0, 0, 0, .18);
  z-index: 9999;
  opacity: 0;
  transform: translateY(8px);
  transition: all .25s;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

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

#toast.success {
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid rgba(27, 140, 62, .25)
}

#toast.error {
  background: var(--danger-bg);
  color: var(--danger);
  border: 1px solid rgba(217, 48, 48, .25)
}

#toast.info {
  background: var(--info-bg);
  color: var(--info);
  border: 1px solid rgba(2, 132, 199, .25)
}

.cat-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 14px
}

.cat-pill {
  padding: 6px 14px;
  border-radius: 99px;
  border: 1.5px solid var(--border2);
  cursor: pointer;
  font-size: 12.5px;
  background: var(--surface);
  color: var(--text);
  transition: all .15s;
  font-family: var(--font)
}

.cat-pill.active {
  background: var(--saffron);
  border-color: var(--saffron);
  color: #fff
}

.profile-hero {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--deep), #2E1A08);
  color: #fff;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.profile-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--saffron), var(--gold));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 25px;
  font-weight: 700;
  flex-shrink: 0;
  border: 3px solid rgba(255, 255, 255, .2);
}

.profile-hero-info h3 {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600
}

.profile-hero-info p {
  font-size: 12.5px;
  color: rgba(255, 255, 255, .6);
  margin-top: 3px
}

.profile-socials {
  display: flex;
  gap: 7px;
  margin-top: 10px;
  flex-wrap: wrap
}

.profile-social-btn {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .15);
  color: rgba(255, 255, 255, .75);
  font-size: 13px;
  text-decoration: none;
  transition: all .18s;
}

.profile-social-btn:hover {
  background: var(--saffron);
  color: #fff;
  transform: translateY(-2px)
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 11px
}

.info-box {
  background: var(--surface2);
  border-radius: 10px;
  padding: 12px 14px;
  border: 1px solid var(--border)
}

.info-box-label {
  font-size: .65rem;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--text2);
  margin-bottom: 4px
}

.info-box-val {
  font-size: .84rem;
  font-weight: 600;
  word-break: break-all
}

.bulk-bar {
  display: none;
  align-items: center;
  gap: 11px;
  padding: 10px 15px;
  background: var(--saffron-l);
  border: 1.5px solid rgba(232, 101, 10, .3);
  border-radius: 9px;
  margin-bottom: 14px;
}

.bulk-bar.show {
  display: flex
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 0;
  border-bottom: 1px solid var(--border)
}

.toggle-row:last-child {
  border-bottom: none
}

.toggle-row-title {
  font-size: 13px;
  font-weight: 500
}

.toggle-row-desc {
  font-size: 11.5px;
  color: var(--text2);
  margin-top: 2px
}

.switch {
  position: relative;
  width: 42px;
  height: 23px;
  flex-shrink: 0
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0
}

.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: var(--border2);
  border-radius: 99px;
  transition: .3s
}

.slider::before {
  position: absolute;
  content: '';
  height: 17px;
  width: 17px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: .3s
}

input:checked+.slider {
  background: var(--saffron)
}

input:checked+.slider::before {
  transform: translateX(19px)
}

/* Activity log: IP + device columns */
.log-entry {
  display: flex;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
  flex-wrap: wrap
}

.log-action-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: var(--saffron-l);
  color: var(--saffron-d);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  flex-shrink: 0
}

.log-meta {
  flex: 1;
  font-size: 12.5px;
  min-width: 140px
}

.log-detail {
  font-size: 11px;
  color: var(--text2);
  margin-top: 1px
}

.log-device {
  font-size: 10.5px;
  color: var(--text3);
  background: var(--bg);
  padding: 1px 7px;
  border-radius: 5px;
  border: 1px solid var(--border);
  display: inline-block;
  margin-top: 3px
}

.log-time {
  font-size: 11px;
  color: var(--text3);
  white-space: nowrap;
  flex-shrink: 0
}

/* ══ MOBILE RESPONSIVE ══ */
@media(max-width:768px) {
  .sidebar-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .15);
    color: #fff;
    padding: 6px 11px;
    border-radius: 7px;
    font-size: 12.5px;
    cursor: pointer;
    font-family: var(--font);
  }

  .topbar-user {
    display: none
  }

  .layout {
    flex-direction: column;
    position: relative
  }

  .sidebar {
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    height: auto;
    max-height: calc(100vh - 56px);
    overflow-y: auto;
    z-index: 150;
    border-right: none;
    border-bottom: 1px solid var(--border);
    transform: translateY(-110%);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .15);
  }

  .sidebar.mobile-open {
    transform: translateY(0)
  }

  .sb-section {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 5px;
    margin-bottom: 8px
  }

  .sb-label {
    grid-column: 1/-1;
    margin-bottom: 2px
  }

  .content {
    padding: 16px 14px
  }

  .profile-hero {
    flex-direction: column;
    text-align: center
  }

  .modal {
    padding: 20px
  }
}

/* --- Premium PDF Viewer Styles --- */
.pdf-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  background: rgba(20, 20, 20, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-color, #f4f4f4);
  font-family: inherit;
  position: sticky;
  top: 0;
  z-index: 10;
  transition: all 0.3s ease;
}

.pdf-tools-left, .pdf-tools-center, .pdf-tools-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pdf-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: inherit;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
}
.pdf-btn:hover { 
  background: rgba(255, 255, 255, 0.15); 
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.pdf-btn:active {
  transform: translateY(0);
}
.pdf-btn:disabled { 
  opacity: 0.4; 
  cursor: not-allowed; 
  transform: none;
  box-shadow: none;
}

.pdf-select {
  background: rgba(255, 255, 255, 0.05);
  color: inherit;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 12px;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.3s ease;
}
.pdf-select:focus {
  border-color: rgba(255, 255, 255, 0.3);
}
.pdf-select option { background: #222; color: #fff; }

.pdf-canvas {
  margin: 30px auto;
  display: block;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
  border-radius: 4px;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.5s ease;
  max-width: 95%;
}

@media (max-width: 768px) {
  .pdf-toolbar {
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px;
    justify-content: center;
  }
  .pdf-tools-left, .pdf-tools-center, .pdf-tools-right {
    flex: 1 1 auto;
    justify-content: center;
  }
  .pdf-canvas { margin: 15px auto; }
}

/* Themes */
.pdf-theme-light { filter: none; }
.pdf-theme-dark { filter: invert(0.92) hue-rotate(180deg) contrast(1.1); }
.pdf-theme-sepia { filter: sepia(0.8) contrast(0.85) brightness(0.9); }
