/* ==========================
   Base / Reset
========================== */
:root{
  /* Colors */
  --bg: #222B3A;
  --surface: #1a2234;
  --surface-2: #1a202c;
  --card-bg: #111827;
  --text: #f1f1f1;
  --muted: #9ca3af;
  --primary: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  --info: #3b82f6;

  --shadow-1: 0 2px 8px rgba(0,0,0,.12);
  --shadow-2: 0 10px 30px rgba(0,0,0,.25);

  --r: 10px;
  --r-sm: 6px;
  --sp-1: 8px;
  --sp-2: 12px;
  --sp-3: 16px;
  --sp-4: 20px;
  --sp-5: 24px;

  --container-max: 1600px;
  --container-pad: 20px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  background-color: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}


h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 .6em 0;
}

.book-description {
  font-size: 17px;
  line-height: 1.8;
  margin: 0; /* normalize */
}


a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg, video, canvas { display: block; max-width: 100%; height: auto; }
input, select, textarea, button { font: inherit; }
:focus-visible { outline: 2px solid color-mix(in srgb, var(--primary) 60%, transparent); outline-offset: 2px; }

/* ==========================
   Layout
========================== */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  width: 100%;
  box-sizing: border-box;
}

.container-fluid {
  width: 100%;
  padding: 0 var(--container-pad);
  box-sizing: border-box;
}

@media (max-width: 768px) {
  :root { --container-pad: 14px; }
}

/* ==========================
   Utilities
========================== */
.muted { color: var(--muted); }
.hidden { display: none !important; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.center { display: grid; place-items: center; }
.rounded { border-radius: var(--r); }
.rounded-sm { border-radius: var(--r-sm); }
.shadow-1 { box-shadow: var(--shadow-1); }
.shadow-2 { box-shadow: var(--shadow-2); }

/* ==========================
   Footer
========================== */
.site-footer {
  background-color: var(--surface-2);
  text-align: center;
  padding: 20px 0;
  margin-top: 40px;
  color: #999;
}

/* ==========================
   Ads
========================== */
.ad-wrapper {
  max-width: var(--container-max);
  margin: 0 auto;
  text-align: center;
  overflow: hidden;
  padding: 12px 0;
}

.ad-wrapper iframe,
.ad-wrapper ins,
.ad-wrapper script {
  max-width: 100% !important;
  height: auto;
  display: block;
  margin: 0 auto;
}

.top_code-ad,
.bottom_code-ad,
.sidebar_code-ad,
.in_content_code-ad { display: block; }

/* ==========================
   Toasts
========================== */
.toast-stack{
  position: fixed;
  top: 18px; right: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 10000;
}

.toast-message{
  min-width: 220px;
  max-width: 420px;
  padding: 12px 14px;
  border-radius: 8px;
  box-shadow: var(--shadow-2);
  font-weight: 600;
  opacity: .01;
  transform: translateY(-6px);
  transition: opacity .2s ease, transform .2s ease;
}

.toast-message.show{ opacity: 1; transform: translateY(0); }

.toast-message.success{
  background: color-mix(in srgb, var(--primary) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--primary) 40%, transparent);
  color: #bbf7d0;
}
.toast-message.error{
  background: color-mix(in srgb, var(--danger) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--danger) 40%, transparent);
  color: #fecaca;
}
.toast-message.warning{
  background: color-mix(in srgb, var(--warning) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--warning) 40%, transparent);
  color: #fde68a;
}
.toast-message.info{
  background: color-mix(in srgb, var(--info) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--info) 40%, transparent);
  color: #bfdbfe;
}


/* ==========================
   Tiny Header
========================== */
.tiny-header {
  background-color: #111827;
  padding: 8px 0;
  font-size: 14px;
  color: var(--text);
  border-bottom: 1px solid #374151;
}

.tiny-header .container {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 16px;
}

/* linkovi desno */
.tiny-links {
  display: flex;
  align-items: center;
  gap: 20px; 
}
.tiny-links a {
  color: var(--text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 1;
  padding: 6px 2px;
  transition: color .2s ease;
}
.tiny-links a:hover { color: #f59e0b; }

.logout-form { display: inline-flex; align-items: center; }
.logout-form .logout-link {
  background: none; border: 0; padding: 6px 2px;
  font: inherit; color: inherit; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
}
.logout-form .logout-link i { margin-right: .35rem; }

.tiny-user-chip {
  display: inline-flex; align-items: center; gap: 8px;
  color: inherit; text-decoration: none;
  padding: 6px 2px;
}

.tiny-avatar {
  width: 22px; height: 22px;
  display: inline-block; overflow: hidden;
  flex: 0 0 22px; border-radius: 6px;
  background: #374151;
}
.tiny-avatar img {
  width: 100%; height: 100%;
  display: block; object-fit: cover;
}
.tiny-avatar-initial {
  width: 22px; height: 22px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #374151; color: #fff; border-radius: 6px;
  font-size: 12px; font-weight: 700;
}

@media (max-width: 640px) {
  .tiny-header { font-size: 13px; }
  .tiny-header .container { gap: 10px; }
  .tiny-links { gap: 12px; }
  .logout-form .logout-link i { margin-right: .25rem; }
}

/* ==========================
   Main Header
========================== */
.site-header {
  background: #1a202c;
  padding: 10px 0;
  border-bottom: 4px solid #f4691d;
  position: relative;
  z-index: 1001;
}

.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: nowrap;
}

.header-left,
.header-right {
  flex: 0 0 180px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-width: 0;
}
.header-left  { justify-content: flex-start; }
.header-right { justify-content: flex-end; gap: 20px; }

.header-center {
  flex: 1 1 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
  padding: 0 16px;
}


.logo img {
  height: 40px;
  display: block;
  margin: 0;
}


.header-search.dark-full {
  display: flex;
  align-items: center;
  width: min(750px, 100%);
  min-width: 320px;
  background: none;
  margin: 0 auto;
  border-radius: 8px;
}
.header-search.dark-full input[type="text"] {
  flex: 1;
  background: #2b2b2b;
  color: #fff;
  border: none;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 16px;
  min-width: 0;
}
.header-search.dark-full input[type="text"]::placeholder { color: #aaa; }
.header-search.dark-full input[type="text"]:focus-visible {
  outline: 2px solid color-mix(in srgb, #f4691d 55%, transparent);
  outline-offset: 2px;
}
.header-search.dark-full button {
  background: #f4691d;
  color: #fff;
  border: none;
  padding: 10px 16px;
  margin-left: 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 18px;
  transition: background .2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.header-search.dark-full button:hover { background: #d85a17; }


.header-icons {
  display: flex;
  align-items: center;
  gap: 20px;
}
.header-icons a {
  color: var(--text);
  font-size: 24px;
  transition: color .2s ease;
  text-decoration: none !important;
  line-height: 1;
  padding: 6px 2px;
}
.header-icons a:hover { color: #f4691d; }

.menu-toggle {
  background: none;
  border: none;
  color: var(--text);
  font-size: 28px;
  cursor: pointer;
  margin-left: 16px;
  display: none;
}

/* ====== Responsive ====== */
@media (max-width: 1024px) {
  .header-left, .header-right { flex-basis: 120px; }
  .header-center { padding: 0 8px; }
}

@media (max-width: 768px) {
  .header-flex {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 0;
  }
  .header-left,
  .header-right {
    flex: none;
    width: 100%;
    justify-content: center;
    min-width: 0;
    gap: 0;
  }
  .header-center {
    width: 100%;
    padding: 0;
    margin: 0 0 6px 0;
    min-width: 0;
  }

  .header-search.dark-full {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin: 0;
    padding: 8px 8px;
    flex-wrap: wrap;
  }
  .header-search.dark-full input[type="text"] {
    width: 100%;
    margin-bottom: 8px;
  }
  .header-search.dark-full button {
    display: none;
  }

  .header-right { gap: 24px; margin: 0 0 8px 0; }
  .header-icons { gap: 24px; font-size: 26px; }
  .menu-toggle { display: inline-block; font-size: 28px; margin-left: 0; }
}

/* ==========================
   Homepage Layout & Widgets
========================== */


.card-container {
  display: flex;
  gap: 30px;
  background: var(--bg);
  color: var(--text);
  width: 100%;
}

.books-section { flex: 3; min-width: 0; width: 100%; }

.widgets {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}


.widget-box {
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
}
.widget-header {
  background: linear-gradient(to right, #f59e0b, #f97316);
  padding: 9px 16px;
  color: #111827;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
}
.widget-header::before {
  content: "";
  width: 6px; height: 100%;
  background-color: #fff;
  border-radius: 0 6px 6px 0;
  display: block;
}
.widget-content { padding: 0; }
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget li { margin-bottom: 8px; color: var(--muted); }

.category-widget-list {
  list-style: none;
  padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 12px;
}
.category-widget-item {
  display: flex; align-items: center;
  background: var(--widget-bg);
  padding: 10px;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0,0,0,.2);
  transition: background var(--transition);
  color: var(--text);
  border-radius: var(--radius);
}
.category-widget-item img {
  width: 100px; height: 60px; object-fit: cover;
  border-radius: var(--radius);
  margin-right: 10px; flex-shrink: 0;
  border: 2px solid #f59e0b;
}

.author-widget-list .category-widget-item img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 50%; /* opcionalno, ako želiš da budu kružne sličice */
}

.category-widget-item span { font-size: 14px; font-weight: 500; }
.category-widget-item:hover,
.category-widget-item:focus-visible {
  background: #475569;
  color: #fbbf24;
  outline: 2px solid transparent;
}


.latest-header { margin-bottom: 8px; }
.latest-title { font-size: 1.75rem; color: #fff; margin: 0; font-weight: 700; }
.latest-underline {
  width: 100%; height: 4px; background: #e63946; margin: 6px 0 16px;
}

.recent-comments-widget-list {
  display: flex; flex-direction: column; gap: 12px;
}
.comment-widget-item {
  padding: 8px; background: var(--card-bg);
  border-radius: var(--radius); font-size: 13px;
}
.comment-date { font-size: 11px; color: #999; }

.section { margin: 32px 0; }
.banner-two-column,
.banner-three-column {
  display: grid; gap: 20px; margin: 30px 0;
  width: 100%; box-sizing: border-box;
}
.banner-two-column  { grid-template-columns: repeat(2, 1fr); }
.banner-three-column{ grid-template-columns: repeat(3, 1fr); }
.banner-slot {
  position: relative; overflow: hidden;
  border-radius: var(--radius-lg);
  background: #0f1a38;
  transition: transform .2s, box-shadow .2s;
  display: flex; align-items: center; justify-content: center;
  min-height: 120px; width: 100%;
}
.banner-slot img {
  width: 100%; height: auto; display: block; object-fit: cover; border-radius: 6px; background: #111;
}
.banner-slot:hover, .banner-slot:focus-within {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0,0,0,.18);
}
.single-banner { margin: 30px 0; }
.single-banner img { width: 100%; display: block; border-radius: 8px; object-fit: cover; }

.featured-categories-section,
.categories-carousel,
.featured-authors-carousel {
  width: 100%; max-width: 100%; margin: 0; padding: 0;
}
.featured-categories-section { padding: 20px 0; background: transparent; }

.categories-carousel { padding: 10px 0; }
.categories-carousel .swiper-slide { width: 300px; flex-shrink: 0; }

.fc-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.fc-card {
  display: block; background: #1f2937; border-radius: 12px 12px 0 0;
  overflow: hidden; transition: transform .3s; text-decoration: none; color: inherit;
}
.fc-card:hover { transform: translateY(-5px); }
.fc-card img { width: 100%; height: 173px; object-fit: cover; display: block; }
.fc-name {
  position: relative; height: 36px; color: #fff; font-size: 15px; font-weight: 600;
  display: flex; align-items: center; justify-content: center; margin: 0; padding: 0; text-align: center; z-index: 1;
}
.fc-name::before {
  content: ''; position: absolute; inset: 0; background: #f4691d; z-index: -1;
}
.fc-card:hover .fc-name::before, .fc-card:hover .fc-name { background: #ff7e3d; }
.fc-title { font-size: 26px; font-weight: 700; margin-bottom: 6px; color: #fff; }
.highlight-fc-bg {
  display: inline-block; color: #111827; background: #f4691d; padding: 6px 24px;
  clip-path: polygon(10px 0%, calc(100% - 10px) 0%, 100% 100%, 0% 100%);
}

.slider-swiper .swiper-slide {
  width: auto !important;
  flex-direction: column; align-items: center; justify-content: flex-start;
  padding: 0 !important;
}

.fc-subcat-category {
  display: inline-block; background-color: #374151; color: #fbbf24;
  font-size: 12px; font-weight: 500; padding: 4px 10px; margin: 8px auto 12px;
  text-align: center; max-width: 90%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.fc-subcat-badges { display: inline-flex; gap: 6px; margin: 8px 0 12px; flex-wrap: wrap; }

.book-columns-wrapper {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; align-items: flex-start;
  margin: 0 auto; width: 100%; padding: 36px 0 12px 0; box-sizing: border-box;
}
.book-column {
  background: var(--card-bg, #111827);
  border-radius: 12px; padding: 20px 18px 18px; box-shadow: 0 4px 20px rgba(0,0,0,.13);
  display: flex; flex-direction: column; min-width: 0;
}
.column-title {
  font-size: 20px; font-weight: 700; color: #f4691d; margin-bottom: 20px;
  border-bottom: 2px solid #f4691d; padding-bottom: 8px; letter-spacing: .2px; text-transform: uppercase;
}
.book-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 17px;
}
.book-list-item {
  display: flex; gap: 15px; align-items: flex-start; background: #1f2937;
  border-radius: 8px; padding: 10px 12px; transition: background .18s; box-shadow: 0 1px 7px rgba(0,0,0,.08);
}
.book-list-item:hover { background: #253047; }
.book-list-item img {
  width: 58px; height: 86px; border-radius: 5px; object-fit: cover; background: #222f3a; flex-shrink: 0; display: block;
}
.book-info { display: flex; flex-direction: column; justify-content: center; min-width: 0; flex: 1; }
.book-title-link { color: #fff; text-decoration: none; font-weight: 600; }
.book-title-link h4 {
  font-size: 15px; margin: 0 0 3px 0; font-weight: 700; line-height: 1.3;
  max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.book-title-link:hover h4 { color: #f59e0b; text-decoration: underline; }
.book-info p { font-size: 13px; color: #fbbf24; margin: 0 0 3px 0; font-weight: 500; }
.book-info .views { font-size: 12px; color: #9ca3af; margin-top: 3px; }

/* ===== Responsive ===== */
@media (max-width: 1200px) {
  .fc-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1024px) {
  .card-container { gap: 18px; }
}
@media (max-width: 900px) {
  .banner-two-column, .banner-three-column { grid-template-columns: 1fr; }
  .fc-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 800px) {
  .book-columns-wrapper { grid-template-columns: 1fr; gap: 18px; }
  .book-column { padding: 12px 8px; }
}
@media (max-width: 768px) {
  .card-container {
    flex-direction: column; gap: 20px; width: 100%;
  }
  .books-section, .widgets { width: 100%; min-width: 0; }
  .latest-title { font-size: 24px; text-align: center; }
  .highlight-latest-bg { display: block; text-align: center; margin: 0 auto; }
  .category-widget-item img { width: 35px; height: 35px; }
  .widget h3 { font-size: 16px; }
  .comment-widget-item { font-size: 12px; }
  .comment-date { font-size: 10px; }
}
@media (max-width: 640px) {
  .featured-categories-section,
  .featured-subcategories-section,
  .featured-childcategories-section { padding-left: 0; padding-right: 0; }

  .categories-carousel .swiper-wrapper,
  .subcategories-carousel .swiper-wrapper,
  .childcategories-carousel .swiper-wrapper { justify-content: flex-start; }

  .categories-carousel .swiper-slide,
  .subcategories-carousel .swiper-slide,
  .childcategories-carousel .swiper-slide {
    width: 100% !important; margin: 0 auto;
  }
}

/* ==========================
   Slider Section
========================== */
.slider-section {
  max-width: 1600px;
  margin: 0 auto 64px;
  padding: 24px 16px;
  box-sizing: border-box;
}

.slider-header { margin-bottom: 8px; }
.slider-title { font-size: 1.75rem; color: #fff; margin: 0; }
.slider-underline { width: 100%; height: 4px; background: #e63946; margin-bottom: 16px; }

.slider-swiper { overflow: hidden; padding: 16px 0; }
.slider-swiper .swiper-wrapper {
  display: flex;
  align-items: flex-start;
}
.slider-swiper .swiper-slide { flex: 0 0 auto; }

.slider-card {
  display: flex; flex-direction: column;
  background: #1a2234; border-radius: 8px; overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  height: 450px;
}
.slider-card img {
  width: 100%; height: 300px;
  object-fit: cover; display: block;
}
.slider-info {
  padding: 12px; margin-top: auto; text-align: center;
  height: 150px; overflow: hidden;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
.slider-info .book-title{
  margin: 0 0 8px; font-size: 1rem; font-weight: 600; color: #fff; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis;
}
.slider-info .book-category,
.slider-info .book-author{
  margin: 4px 0; font-size: .85rem; color: #d1d5db; opacity: .9;
}

@media (max-width: 576px) {
  .slider-swiper .swiper-slide { flex-basis: 100%; max-width: 100%; }
}

@media (min-width: 577px) and (max-width: 767px) {
  .slider-swiper .swiper-slide {
    flex-basis: calc((100% - 12px) / 2);
    max-width:  calc((100% - 12px) / 2);
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .slider-swiper .swiper-slide {
    flex-basis: calc((100% - 2 * 16px) / 3);
    max-width:  calc((100% - 2 * 16px) / 3);
  }
}

@media (min-width: 992px) and (max-width: 1199px) {
  .slider-swiper .swiper-slide {
    flex-basis: calc((100% - 3 * 16px) / 4);
    max-width:  calc((100% - 3 * 16px) / 4);
  }
}

@media (min-width: 1200px) and (max-width: 1799px) {
  .slider-swiper .swiper-slide {
    flex-basis: calc((100% - 4 * 20px) / 5);
    max-width:  calc((100% - 4 * 20px) / 5);
  }
}

@media (min-width: 1800px) {
  .slider-swiper .swiper-slide {
    flex-basis: calc((100% - 5 * 20px) / 6);
    max-width:  calc((100% - 5 * 20px) / 6);
  }
}

/* ==========================
   Search Page
========================== */
.search-page {
  padding: 40px 0 60px;
}

.search-page h2 {
  font-size: 28px;
  margin: 0 0 30px;
  color: var(--accent, #f4691d);
}
.search-page h3 {
  margin-top: 40px;
  color: #fff;
}

.search-book-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 25px;
  margin-top: 20px;
}
@media (max-width: 1400px) { .search-book-grid { grid-template-columns: repeat(5, 1fr); } }
@media (max-width: 1200px) { .search-book-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 992px)  { .search-book-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px)  { .search-book-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 400px)  { .search-book-grid { grid-template-columns: 1fr; } }

.search-input-wrap { position:relative }
.search-input-wrap { position: relative; }
.search-suggestions {
  position: absolute;
  left: 0; right: 0;
  top: calc(100% + 6px);
  background: #1a1a1a;
  color: #fff;
  border: 1px solid #444;
  border-radius: 6px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  z-index: 9999;
  max-height: 260px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.search-suggestions:empty { display: none; }
.suggestion-item a {
  display: block;
  padding: 10px 12px;
  text-decoration: none;
  color: inherit;
  line-height: 1.3;
}
.suggestion-item a:hover,
.suggestion-item a:focus-visible {
  background-color: #333;
  outline: none;
}


.search-page .page-btn {
  background-color: #1a1a1a;
  color: #fff;
  padding: 8px 14px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid var(--accent, #f4691d);
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.search-page .page-btn:hover,
.search-page .page-btn.active {
  background-color: var(--accent, #f4691d);
  color: #fff;
  border-color: var(--accent, #f4691d);
}

/* ==========================
   Menu / Nav
========================== */
.menu-wrapper {
  background-color: #111827;
  border-radius: var(--radius, 0px);
  margin: 30px 0 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,.2);
}

.header-nav {
  flex-grow: 1;
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 20px;
  transition: transform .3s ease, opacity .3s ease;
}

.menu-wrapper .header-nav {
  gap: 2px;
  padding: 10px 0;
}

.header-nav a,
.menu-wrapper .header-nav a {
  color: #f1f1f1;
  font-weight: 500;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 6px;
  transition: background .2s ease, color .2s ease;
}
.header-nav a:hover,
.menu-wrapper .header-nav a:hover {
  background-color: #2b2b2b;
  color: #f4691d;
}

.header-nav a.active,
.menu-wrapper .header-nav a.active {
  background-color: #f4691d;
  color: #fff !important;
}

.overlay {
  position: fixed; inset: 0;
  background-color: rgba(0,0,0,.6);
  opacity: 0; visibility: hidden;
  transition: opacity .3s ease;
  z-index: 999;
}
.overlay.active { opacity: 1; visibility: visible; z-index: 1000; }

body.nav-open { overflow: hidden; }

.mobile-menu-header { display: none; }

@media (max-width: 768px) {
  .header-nav {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: 250px;
    background-color: #1a202c;
    flex-direction: column;
    transform: translateX(100%);
    opacity: 0;
    pointer-events: none;
    z-index: 1001;
    padding: 56px 0 16px;
    overflow-y: auto;
  }
  .header-nav.active {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    position: absolute;
    inset: 0 auto auto 0;
    height: 56px;
    background-color: #1f2937;
    border-bottom: 1px solid #374151;
    z-index: 1002;
  }
  .menu-title {
    font-size: 17px;
    font-weight: 600;
    color: #f1f1f1;
  }
  .menu-close {
    background: none; border: 0;
    font-size: 22px; color: #f1f1f1; cursor: pointer;
  }

  .header-nav a {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 16px;
    margin: 4px 12px;
    font-size: 16px; font-weight: 500;
    color: #f1f1f1;
    border-radius: 8px;
    background-color: transparent;
    transition: background-color .2s ease, color .2s ease;
  }
  .header-nav a i {
    font-size: 17px; min-width: 20px; text-align: center;
  }
  .header-nav a:hover { background-color: #2b2b2b; color: #f4691d; }
  .header-nav a.active { background-color: #f4691d; color: #fff !important; }
}


/* ==========================
   Book Preview (page)
========================== */
.book-preview-wrapper {
  background-color: #1f2937;
  color: #fff;
  padding: 20px 0;
}

.book-preview-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
}

.book-main {
  flex: 3;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 30px;
  min-width: 0;
}
.book-left { flex-shrink: 0; }

.book-cover img {
  width: 240px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,.4);
}


.book-details {
  flex: 1;
  background: #374151;
  padding: 10px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,.3);
}
.preview-book-title { color: #fbbf24; }

.book-meta p {
  margin: 6px 0;
  font-size: 15px;
}

.book-meta-box {
  background-color: #1f2937;
  border: 1px solid #374151;
  border-radius: 8px;
  padding: 16px 20px;
  margin-top: 20px;
  color: #f1f5f9;
  font-size: 15px;
  line-height: 1.6;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 10px;
}
.meta-label {
  min-width: 130px;
  font-weight: 600;
  color: #fbbf24;
}
.meta-tags .meta-label { align-self: flex-start; margin-top: 4px; }

.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-label {
  background-color: #374151;
  color: #e0f2fe;
  font-size: 13px;
  padding: 5px 10px;
  border-radius: 999px;
  display: inline-block;
  white-space: nowrap;
  line-height: 1;
}

.book-description {
  margin-top: 20px;
  font-size: 18px;
  line-height: 1.6;
  color: #ddd;
}

.book-actions {
  margin-top: 25px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.btn {
  padding: 10px 18px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  display: inline-block;
  transition: background .2s ease, opacity .2s ease;
}
.btn:hover { opacity: .9; }
.btn-download { background-color: #2563eb; }
.btn-read     { background-color: #10b981; }
.btn-favorite { background-color: #f59e0b; }
.btn-report   { background-color: #ef4444; }
#report-cancel.btn {
  background-color: #374151;
  color: #fff;
  border: 1px solid #4b5563;
}
#report-cancel.btn:hover { background-color: #4b5563; color: #e5e7eb; }

.widget-bar {
  width: 300px;
  min-width: 280px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.widget h3 {
  margin: 0 0 15px;
  font-size: 18px;
  color: #fbbf24;
}
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget ul li { margin-bottom: 10px; font-size: 14px; }
.widget.banner img { width: 100%; height: auto; border-radius: 6px; }

.modern-action-bar {
  display: flex;
  justify-content: space-around;
  align-items: center;
  background-color: #111827;
  border-radius: 12px;
  padding: 14px 24px;
  color: #e5e7eb;
  margin-top: 30px;
  box-shadow: 0 0 10px rgba(0,0,0,.3);
}
.action-item {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-size: 14px; text-decoration: none; cursor: pointer; color: inherit;
}
.action-item a, .action-item button {
  all: unset; display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.action-item svg {
  width: 28px; height: 28px;
  stroke: #e5e7eb; transition: transform .2s ease, stroke .2s ease;
}
.action-item:hover svg { transform: scale(1.15); stroke: #fbbf24; }
.separator { width: 1px; height: 40px; background-color: #374151; }

.book-cover.framed {
  position: relative; z-index: 2; padding: 14px;
  border-radius: 20px; box-shadow: 0 16px 32px rgba(0,0,0,.4);
  transition: transform .3s ease;
}
.book-cover.framed.glassy {
  background: rgba(255,255,255,.05);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.08);
}
.book-cover.framed img {
  display: block; border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,.3);
  transform: rotate(-1.5deg) scale(1.02);
  transition: transform .3s ease;
}
.book-cover.framed:hover img { transform: rotate(0) scale(1.04); }

.book-rating {
  display: inline-block;
  width: max-content;
  padding: 10px 14px 8px;
  background: #1f2937;
  border-radius: 10px;
  color: #fff;
}
.book-rating h4 { margin-bottom: 10px; }

.star-wrapper { display: flex; gap: 6px; flex-wrap: wrap; }
.star-wrapper input[type="radio"] { display: none; }
.star-wrapper label {
  position: relative; font-size: 35px; padding: 5px; border-radius: 6px;
  background: #374151; color: #ccc; cursor: pointer;
  transition: transform .2s ease, color .2s ease;
}
.star-wrapper input[type="radio"]:checked + label {
  background-color: #f59e0b; color: #111827; font-weight: 700;
}
.star-wrapper label::after{
  content: attr(data-tooltip);
  position: absolute; bottom: 120%; left: 50%; transform: translateX(-50%);
  background: #111; color: #fff; padding: 4px 8px; font-size: 12px;
  border-radius: 4px; white-space: nowrap; opacity: 0; pointer-events: none;
  transition: opacity .2s; z-index: 10;
}
.star-wrapper label:hover::after { opacity: 1; }

.rating-message { margin-top: 8px; font-size: 18px; }

.rated-stars { display: inline-flex; gap: 4px; }
.rated-stars .star { font-size: 40px; color: #ccc; transition: color .2s ease; }
.rated-stars .star.filled { color: gold; }

.user-rating-view {
  display: flex; align-items: center; gap: 10px; margin-top: 10px;
}

.avg-rating {
  margin-top: 10px;
  padding: 10px 14px;
  background-color: #1f2937;
  border: 1px solid #374151;
  border-radius: 16px;
  width: 100%; box-sizing: border-box;
}
.avg-rating .avg-text { font-size: 14px; margin-bottom: 6px; color: #e5e7eb; }
.avg-rating .star-wrapper { display: flex; flex-wrap: nowrap; gap: 3px; }
.avg-rating .star { font-size: 25px; color: #9ca3af; line-height: 1; }
.avg-rating .star.filled { color: #facc15; }

#report-modal{
  position: fixed;
  inset: 0;
  background-color: rgba(0,0,0,.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
#report-modal.is-open{ display: flex; }

#report-modal .modal-content{
  background-color: #1f2937;
  color: #fff;
  padding: 30px;
  border-radius: 12px;
  width: 100%;
  max-width: 500px;
  box-shadow: 0 10px 25px rgba(0,0,0,.5);
}
#report-modal .modal-content h2{ margin-top:0; color:#fbbf24; }
#report-modal .modal-content label{
  display:block; margin:15px 0 5px; font-weight:500;
}
#report-modal .modal-content input[type="text"],
#report-modal .modal-content textarea{
  width:100%; padding:10px; background:#374151; color:#fff;
  border:none; border-radius:6px; resize:vertical;
}
#report-modal .modal-buttons{
  display:flex; justify-content:flex-end; gap:10px; margin-top:20px;
}
.btn-report { cursor: pointer; }

.related-title {
  margin-bottom: 15px; font-size: 18px; color: #fbbf24; border: none;
}
.related-list { list-style: none; padding: 0; margin: 0; }
.related-item {
  display: flex; align-items: center;
  background: #374151; padding: 10px; border-radius: 8px; margin-bottom: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,.2);
  transition: background .2s ease;
}
.related-item img {
  width: 50px; height: 50px; object-fit: cover; border-radius: 6px; margin-right: 10px;
}
.related-item a {
  font-size: 14px; color: #e5e7eb; text-decoration: none; font-weight: 500; transition: color .2s ease;
}
.related-item a:hover { color: #fbbf24; }

.recommended-list { list-style: none; padding-left: 0; }
.recommended-list li { margin-bottom: 8px; font-size: 14px; }
.recommended-list a { color: #fbbf24; text-decoration: none; transition: color .2s ease; }
.recommended-list a:hover { color: #fff; }

.in-content-ad-wrapper {
  grid-column: span 5;
  text-align: center;
  margin: 20px 0;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .book-preview-container { flex-direction: column; align-items: center; justify-content: center; text-align: center; }
  .book-main { flex-direction: column; align-items: center; width: 100%; }
  .book-left { margin-bottom: 20px; }
  .book-details {
    width: 100%; max-width: 600px; margin: 0 auto 20px; box-sizing: border-box;
  }
  .widget-bar { width: 100%; max-width: 600px; margin: 30px auto 0; }
}
@media (max-width: 600px) {
  .book-details {
    width: 100%; max-width: 400px; margin: 20px auto; padding: 0 16px; box-sizing: border-box;
  }
  .star-wrapper label { font-size: 22px; padding: 4px 6px; }
  .rated-stars .star { font-size: 22px; }
  .rating-message { font-size: 14px; }
  .book-title { font-size: 20px; text-align: center; }
  .book-rating { padding: 12px; }
  .avg-rating p { font-size: 14px; }
}

@media (max-width: 640px) {
  .book-details.lifted {
    float: none !important;
    margin: 12px auto 0 !important;
    width: 100% !important;
    box-sizing: border-box;
    padding: 0 10px;
  }
  .book-details.lifted,
  .book-details.lifted .book-meta,
  .book-details.lifted .book-meta-box { max-width: 100%; }

  .book-details .vote-stars {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    justify-items: center;
    align-items: center;
    max-width: 100%;
    white-space: normal;
  }
  .book-details .vote-stars input[type="radio"] {
    position: absolute; left: -9999px;
  }
  .book-details .vote-stars label {
    display: grid; place-items: center;
    width: 36px; height: 36px; font-size: 20px; line-height: 1;
    border-radius: 8px; background: #0f172a; user-select: none;
  }
}
@media (min-width: 641px) {
  .book-details .vote-stars {
    display: flex; flex-wrap: nowrap; gap: 8px; align-items: center;
  }
}


.book-columns-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
  justify-content: start;
  gap: 20px; padding: 40px 0; align-items: start;
}
.book-column {
  flex: 1; min-width: 250px; min-height: 100px;
  background-color: #1a202c; border-radius: 10px; padding: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,.3);
  display: flex; flex-direction: column; height: auto;
}
.column-title {
  font-size: 20px; margin-bottom: 16px; color: #f4691d;
  border-bottom: 2px solid #f4691d; padding-bottom: 6px;
}
.book-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 16px; flex-grow: 1;
}
.book-list-item {
  display: flex; gap: 12px; align-items: flex-start;
  background: #111827; padding: 10px; border-radius: 6px;
  transition: background .2s ease; height: 120px;
}
.book-list-item:hover { background: #2d3748; }
.book-list-item img {
  width: 60px; height: 90px; object-fit: cover; border-radius: 4px;
}
.book-info {
  display: flex; flex-direction: column; justify-content: space-between; min-height: 90px;
}
.book-info h4 {
  font-size: 16px; margin: 0 0 4px; color: #f1f1f1;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; text-overflow: ellipsis; min-height: 44px;
}
.book-info p { margin: 0; font-size: 13px; color: #9ca3af; }

.book-card img {
  width: 100%; height: 300px; object-fit: cover;
  border-top-left-radius: 8px; border-top-right-radius: 8px; display: block;
}
.book-title { font-size: 16px; margin: 10px 0 4px; }
.book-title a { color: #fff; text-decoration: none; font-weight: 600; }
.book-title a:hover { color: #f59e0b; }
.book-meta { font-size: 13px; color: #9ca3af; margin: 0; }


/* ==========================
   Book Grid (listing pages)
========================== */
.book-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
  padding: 0;
}


.book-grid .book-card {
  background-color: #374151;
  border-radius: 8px;
  overflow: hidden;
  text-align: center;
  transition: transform .2s ease;
  padding-bottom: 12px;
}
.book-grid .book-card:hover { transform: translateY(-5px); }

.book-grid .book-card img {
  width: 100%;
  height: 300px;               /* grid thumbnail visina */
  object-fit: cover;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  display: block;
}

.book-grid .book-title {
  font-size: 16px;
  margin: 10px 0 4px;
}
.book-grid .book-title a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}
.book-grid .book-title a:hover { color: #f59e0b; }

/* Responsive */
@media (max-width: 1024px) {
  .book-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .book-grid { grid-template-columns: repeat(2, 1fr); }
  .book-grid .book-card img { height: 240px; }
}
@media (max-width: 600px) {
  .book-grid { grid-template-columns: 1fr !important; }
  .book-grid .book-card img { height: auto; aspect-ratio: 2 / 3; }
  .book-grid .book-title { font-size: 15px; }
  .book-grid .book-meta { font-size: 12px; }
}

/* ==========================
   Authors (listing)
========================== */
.authors-items-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
}

.authors-card {
  display: block;
  background: #1f2937;
  border-radius: 12px 12px 0 0;
  overflow: hidden;
  transition: transform .3s ease;
  text-decoration: none;
  color: inherit;
  position: relative;
}
.authors-card:hover { transform: translateY(-5px); }

.authors-card-image {
  width: 100%;
  height: 173px;
  object-fit: cover;
  display: block;
}

.authors-card-name {
  position: relative;
  height: 36px;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  text-align: center;
  z-index: 1;
}
.authors-card-name::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent, #f4691d);
  z-index: -1;
  transition: background .2s ease;
}
.authors-card:hover .authors-card-name::before { background: #ff7e3d; }

.authors-no-items {
  padding: 16px;
  background: rgba(255,255,255,.04);
  border-radius: 6px;
  font-size: 1rem;
  color: #e5e7eb;
}

.authors-latest-title {
  margin: 7px 0 6px;
  font-size: 30px;
  font-weight: 700;
  text-align: left;
}
.authors-highlight-latest-bg {
  display: inline-block;
  color: #111827;
  background: var(--accent, #f4691d);
  padding: 6px 24px;
  margin-top: -10px;
  clip-path: polygon(10px 0%, calc(100% - 10px) 0%, 100% 100%, 0% 100%);
}
.authors-latest-line-underline {
  height: 2px;
  background: var(--accent, #f4691d);
  width: 100%;
  display: block;
  position: relative;
  z-index: 1;
  margin: -7px 0 24px;
}

/* Author Bio Widget */
.author-bio-widget {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding: 12px;
}

.author-bio-widget .author-bio-img img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.author-bio-widget .author-bio-text {
  font-size: 14px;
  line-height: 1.5;
  color: #e5e7eb; /* svijetlo siva za tamnu temu */
  max-height: 220px;
  overflow-y: auto;
  padding-right: 6px;
}

.author-bio-text {
  padding: 10px 14px;
  line-height: 1.6;
  color: #d1d5db;
  font-size: 14px; 
}


.author-bio-widget .author-bio-text::-webkit-scrollbar {
  width: 5px;
}
.author-bio-widget .author-bio-text::-webkit-scrollbar-thumb {
  background: #4b5563;
  border-radius: 4px;
}
.author-bio-widget .author-bio-text::-webkit-scrollbar-track {
  background: transparent;
}

/* Responsive */
@media (min-width: 768px) {
  .author-bio-widget {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
  }
  .author-bio-widget .author-bio-img img {
    width: 90px;
    height: 90px;
  }
  .author-bio-widget .author-bio-text {
    flex: 1;
  }
}

@media (max-width: 1200px) {
  .authors-items-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 992px) {
  .authors-items-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .authors-items-grid { grid-template-columns: 1fr; }
  .authors-latest-title { font-size: 24px; text-align: center; }
  .authors-highlight-latest-bg { display: block; margin: 0 auto; }
}


/* ==========================
   Comments
========================== */
.comment-section {
  margin-top: 40px;
  padding: 20px;
  background-color: #1f2937;
  color: #fff;
  box-sizing: border-box;
}

.comment-header {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f5f5f5;
  padding: 10px 15px;
  margin-bottom: 15px;
  border-radius: 6px;
  color: #333;
}
.comment-header h3 { margin: 0; font-size: 18px; font-weight: 700; color: #333; }
.comment-header i  { font-size: 20px; color: #333; }
.comment-header span { color: #e74c3c; }

.comment-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 30px;
}

.comment {
  background: #374151;
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  border-radius: 6px;
}
.comment.reply { margin-left: 40px; background: #2d3748; }

.comment-body{
  display: flex;
  gap: 12px;
  align-items: flex-start;
  text-align: left;
}
.comment-body .avatar{
  flex: 0 0 50px;
}
.comment-body .avatar img,
.profile-image{
  width: 50px;
  height: 50px;
  object-fit: cover;
  display: block;
  border-radius: 4px;
}
.comment-body .content{
  flex: 1 1 auto;
  min-width: 0;
}

.comment-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.left-meta {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.2;
  margin-top: 4px;
}

.username { font-weight: 700; color: #fff; font-size: 14px; }
.date     { color: #9ca3af; font-size: 13px; }
.text     { color: #e5e7eb; font-size: 15px; margin-top: 4px; }


.reply-btn {
  background: transparent;
  color: #f97316;
  border: 1px solid #f97316;
  padding: 4px 10px;
  border-radius: 5px;
  font-size: 13px;
  cursor: pointer;
  transition: background .2s ease-in-out, color .2s ease-in-out, border-color .2s ease-in-out;
}
.reply-btn:hover { background-color: #f97316; color: #fff; }

.replies {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 12px;
  margin-left: 40px;
}

.comment-form,
.reply-form {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
  margin-top: 30px;
  padding: 16px;
  background-color: #2d2f36;
  border-radius: 8px;
}
.comment-form .avatar,
.reply-form .avatar { flex-shrink: 0; }
.comment-form .avatar img,
.reply-form .avatar img {
  width: 50px; height: 50px; object-fit: cover; display: block; border-radius: 4px;
}

.comment-input-area { flex: 1; display: flex; flex-direction: column; gap: 6px; box-sizing: border-box; }
.comment-input-area textarea,
.reply-form textarea {
  width: 100%; min-height: 80px;
  background: #374151; border: none; border-radius: 6px;
  padding: 10px; color: #fff; resize: vertical; box-sizing: border-box;
}
.comment-input-area button,
.reply-form button {
  align-self: flex-end;
  padding: 8px 14px;
  background-color: var(--accent, #f4691d);
  border: none; border-radius: 6px;
  cursor: pointer; color: #fff;
  transition: background-color .2s ease, opacity .2s ease;
}
.reply-form button { background-color: #f97316; }
.reply-form button:hover { background-color: #fb923c; }

@media (max-width: 600px) {
  .comment-section { background: transparent; padding: 0 0 12px; margin-top: 20px; }
  .comment-header { padding: 10px 12px; margin: 0 0 10px; }

  .comment-list { gap: 12px; }
  .comment, .reply-form { padding: 12px; }
  .text { font-size: 14px; }

  .comment-meta-row {
    display: flex; flex-direction: row; align-items: center; justify-content: flex-start;
    flex-wrap: nowrap; gap: 8px; margin-bottom: 6px;
  }
  .left-meta { display: flex; align-items: center; gap: 8px; margin-top: 0; min-width: 0; flex: 1 1 auto; }
  .profile-image { width: 40px; height: 40px; flex: 0 0 40px; }

  .left-meta .username {
    font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1 1 auto;
  }
  .left-meta .date {
    font-size: 11px; color: #9ca3af; white-space: nowrap; margin-left: 6px; flex: 0 0 auto;
  }
  .reply-btn { margin-left: auto; flex: 0 0 auto; }

  .comment-form, .reply-form { flex-direction: column; align-items: stretch; gap: 10px; }
  .comment-form .avatar, .reply-form .avatar { margin: 0 0 8px; }
  .comment-form .avatar img, .reply-form .avatar img { width: 40px; height: 40px; }
  .comment-input-area button, .reply-form button { align-self: stretch; text-align: center; }

  .comment-body { flex-direction: column; gap: 8px; }
  .replies, .comment.reply, .comment.reply .comment {
    margin-left: 0; padding-left: 16px; box-sizing: border-box; max-width: 100%;
  }
}

@media (max-width: 600px) {
  .comment.reply,
  .comment.reply .comment {
    background: transparent !important;
    box-shadow: none !important;
    border-left: 2px solid #2b3448;
    padding-left: 16px;
  }
}

@media (max-width: 600px) {
  .comment-body{
    display: grid !important;
    grid-template-columns: 40px 1fr;
    column-gap: 10px;
    align-items: start;
  }
  .comment-body .avatar{ grid-column: 1; }
  .comment-body .content{ grid-column: 2; }

  .comment-meta-row{
    display: flex !important;
    align-items: flex-start !important;
    gap: 8px !important;
  }
  .left-meta{
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 2px !important;
    margin-top: 0 !important;
    min-width: 0;
    flex: 1 1 auto;
  }
  .left-meta .username{
    font-size: 13px; font-weight: 700;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    max-width: 60vw; line-height: 1.2;
  }
  .left-meta .date{
    margin-left: 0 !important;
    font-size: 11px !important; line-height: 1.2; color: #9ca3af !important; white-space: nowrap;
  }
  .reply-btn{ margin-left: auto; }
}

.comment-input-area textarea:focus-visible,
.reply-form textarea:focus-visible,
.reply-btn:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--accent, #f4691d) 60%, transparent);
  outline-offset: 2px;
}

/* ==========================
   Contact Page
========================== */
.contact-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 30px;
}

.contact-info {
  flex: 1;
  min-width: 300px;
  background-color: var(--surface, #1a2234);
  padding: 30px;
  border-radius: 12px;
  color: var(--text, #f1f1f1);
  font-size: 16px;
  line-height: 1.7;
}
.contact-info h4 {
  font-size: 22px;
  margin: 0 0 10px;
  color: var(--accent, #f97316);
}
.contact-info .info-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 10px 0;
  color: #ddd;
}
.contact-info .info-item i {
  color: var(--accent, #f97316);
  min-width: 20px;
}
.contact-info .social-icons { margin-top: 20px; }
.contact-info .social-icons a {
  color: var(--text, #f1f1f1);
  font-size: 20px;
  margin-right: 12px;
  transition: color .2s ease;
  text-decoration: none;
}
.contact-info .social-icons a:hover { color: var(--accent, #f97316); }


.contact-form {
  flex: 2;
  min-width: 320px;
  background-color: var(--surface, #1a2234);
  padding: 30px;
  border: 1px solid #2f3c59;
  border-radius: 12px;
  color: var(--text, #f1f1f1);
}
.contact-form .form-group { margin-bottom: 20px; }
.contact-form label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px 12px;
  background-color: #0f172a;
  border: 1px solid #374151;
  border-radius: 6px;
  color: #fff;
  font-size: 16px;
  box-sizing: border-box;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: #94a3b8; }

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent, #f97316);
  outline: 2px solid color-mix(in srgb, var(--accent, #f97316) 50%, transparent);
  outline-offset: 2px;
  box-shadow: 0 0 0 2px rgba(249,115,22,.25);
}


.contact-form .is-error {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 2px rgba(239,68,68,.2) !important;
}
.contact-form .field-hint {
  margin-top: 6px;
  font-size: 13px;
  color: #9ca3af;
}
.contact-form .field-error {
  margin-top: 6px;
  font-size: 13px;
  color: #fecaca;
}


.submit-btn {
  background-color: var(--accent, #f97316);
  color: #fff;
  padding: 12px 24px;
  font-size: 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color .2s ease, opacity .2s ease;
}
.submit-btn:hover { background-color: #ea580c; }

/* Responsive */
@media (max-width: 900px) {
  .contact-wrapper { gap: 24px; }
}
@media (max-width: 640px) {
  .contact-info, .contact-form { padding: 20px; }
  .contact-form input, .contact-form textarea { font-size: 15px; }
  .submit-btn { width: 100%; }
}


.favorites-book-grid{
  display:grid;
  grid-template-columns:repeat(6,1fr);
  gap:25px;
  margin-top:20px;
}

.favorites-book-grid > .book-card{
  background:#374151;
  border-radius:8px;
  overflow:hidden;
  text-align:center;
  transition:transform .2s ease;
  padding:0 0 12px;
  display:flex;
  flex-direction:column;
}
.favorites-book-grid > .book-card:hover{ transform:translateY(-4px); }

.favorites-book-grid .book-card img{
  width:100%;
  height:300px;
  object-fit:cover;
  display:block;
  border-top-left-radius:8px;
  border-top-right-radius:8px;
}

.favorites-book-grid .book-title{
  font-size:16px;
  margin:10px 0 4px;
}
.favorites-book-grid .book-title a{
  color:#fff; text-decoration:none; font-weight:600;
}
.favorites-book-grid .book-title a:hover{ color:#f59e0b; }
.favorites-book-grid .book-meta{
  font-size:13px; color:#9ca3af; margin:0;
}

.favorites-book-grid .unsave-btn{
  margin:10px auto 0;
  background:#ef4444; color:#fff;
  border:none; border-radius:6px;
  padding:8px 14px; font-size:14px; cursor:pointer;
  transition:background-color .25s ease;
  display:inline-flex; align-items:center; gap:8px;
}
.favorites-book-grid .unsave-btn:hover{ background:#dc2626; }

/* Responsive */
@media (max-width:1024px){ .favorites-book-grid{ grid-template-columns:repeat(3,1fr);} }
@media (max-width:768px){
  .favorites-book-grid{ grid-template-columns:repeat(2,1fr); }
  .favorites-book-grid .book-card img{ height:240px; }
}
@media (max-width:480px){
  .favorites-book-grid{ grid-template-columns:1fr; }
  .favorites-book-grid .book-card img{ height:auto; aspect-ratio:2/3; }
}


/* ==========================
   Featured Authors Carousel
========================== */
.authors-carousel { 
  padding: 8px 0 2px; /* malo zraka da hover/fokus ne bude odrezan */
}

.authors-carousel .swiper-wrapper {
  align-items: center;
  gap: 0; /* razmak ionako dolazi iz Swiper spaceBetween */
}

.authors-carousel .swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 0 0 auto; /* nema fiksne 分irine */
}


.author-card {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  background: transparent;
  padding: 0;
  box-sizing: border-box;
  transition: filter .2s;
}
.author-card:hover { filter: drop-shadow(0 2px 6px rgba(16,24,39,.18)); }
@media (hover: none) { .author-card:hover { filter: none; } }

.author-card img.author-image {
  display: block;
  border-radius: 50%;
  object-fit: cover;
  background: #181818;
  border: 2.5px solid var(--accent, #f4691d);
  box-shadow: 0 2px 8px rgba(16,24,39,.12);
  width: 72px;
  height: 72px;
}
@media (min-width: 640px)  { .author-card img.author-image { width: 80px;  height: 80px; } }
@media (min-width: 900px)  { .author-card img.author-image { width: 88px;  height: 88px; } }
@media (min-width: 1200px) { .author-card img.author-image { width: 92px;  height: 92px; } }
@media (min-width: 1536px) { .author-card img.author-image { width: 100px; height: 100px; } }

.author-card .author-name {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text, #f1f1f1);
  line-height: 1.3;
  max-width: 140px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==========================
   Pages Grid Layout
========================== */
.pages-fc-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  margin-top: 24px;
}

.pages-fc-card {
  background: var(--card-bg, #1f2937);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  transition: transform .3s ease;
}
.pages-fc-card:hover { transform: translateY(-4px); }

.pages-fc-card img {
  width: 100%;
  height: 173px;
  object-fit: cover;
  display: block;
}

.pages-fc-name {
  padding: 12px;
  text-align: center;
  font-weight: 600;
  color: var(--text, #fff);
  font-size: 16px;
}

/* Responsive */
@media (max-width: 1024px) {
  .pages-fc-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .pages-fc-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .pages-fc-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    justify-items: center;
  }
  .pages-fc-card { width: 100%; max-width: 400px; }
  .page-container { padding: 0 16px; }
}

/* ==========================
   Profile
========================== */
.profile-wrapper {
  max-width: 1600px;
  margin: 40px auto;
  padding: 0 var(--container-pad);
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

.profile-card {
  background-color: #1f2937;
  color: var(--text, #f1f1f1);
  padding: 25px 20px;
  border-radius: 12px;
  flex: 1 1 380px;
  min-width: 320px;
  box-shadow: 0 0 12px rgba(0,0,0,.4);
  transition: transform .3s ease;
  box-sizing: border-box;
}
.profile-card:hover { transform: translateY(-4px); }
.profile-card a {
  color: var(--accent, #f4691d);
  text-decoration: none;
  font-weight: 500;
}
.profile-card a:hover { color: #ff7e3d; text-decoration: underline; }

.profile-image {
  width: 120px; height: 120px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto 20px;
  border: 2px solid var(--accent, #f4691d);
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}

.alert {
  padding: 12px;
  margin-bottom: 20px;
  border-radius: 6px;
  font-weight: 500;
}
.alert-success {
  background-color: #14532d;
  color: #4ade80;
  border: 1px solid #22c55e;
}
.alert-error {
  background-color: #7f1d1d;
  color: #fca5a5;
  border: 1px solid #f87171;
}

.form-box { margin-bottom: 30px; }
.form-box label {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 6px; font-weight: 500; color: #e2e8f0;
}
.form-box label i { color: var(--accent, #f4691d); }

.form-box input[type="text"],
.form-box input[type="email"],
.form-box input[type="password"],
.form-box input[type="file"] {
  width: 100%;
  padding: 12px;
  margin-bottom: 12px;
  border: 1px solid #374151;
  border-radius: 6px;
  background-color: #111827;
  color: #f1f1f1;
  box-sizing: border-box;
}
.form-box input[type="text"]:focus,
.form-box input[type="email"]:focus,
.form-box input[type="password"]:focus,
.form-box input[type="file"]:focus {
  outline: 2px solid color-mix(in srgb, var(--accent, #f4691d) 55%, transparent);
  outline-offset: 2px;
  border-color: var(--accent, #f4691d);
}

.form-box input[type="submit"] {
  background-color: var(--accent, #f4691d);
  color: #fff;
  border: none;
  padding: 12px;
  width: 100%;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 700;
  transition: background-color .2s ease, opacity .2s ease;
  box-sizing: border-box;
}
.form-box input[type="submit"]:hover { background-color: #d4550b; }

/* Responsive */
@media (max-width: 768px) {
  .profile-wrapper { flex-direction: column; padding: 0 10px; }
  .profile-card { min-width: 0; }
}

.form-box .is-error {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 2px rgba(239,68,68,.18) !important;
}
.form-box .field-hint { margin-top: 6px; font-size: 13px; color: #9ca3af; }
.form-box .field-error { margin-top: 6px; font-size: 13px; color: #fecaca; }

/* ==========================
   Global Popup
========================== */
.global-popup {
  position: fixed;
  inset: 0;
  background-color: rgba(0,0,0,.55);
  display: none;                /* skriven dok nema .show */
  justify-content: center;
  align-items: center;
  z-index: 9999;
  backdrop-filter: blur(2px);
}

.global-popup-content {
  background-color: var(--card-bg, #1f2937);
  color: var(--text, #fff);
  padding: 30px 40px;
  border-radius: 10px;
  text-align: center;
  font-size: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transform: scale(.7);
  opacity: 0;
  transition: transform .4s ease, opacity .4s ease;
  min-width: 320px;
  max-width: 90%;
}

.global-popup.show .global-popup-content {
  transform: scale(1);
  opacity: 1;
}

.checkmark {
  font-size: 60px;
  color: #10b981;
  margin-bottom: 20px;
  animation: pop .4s ease;
}

@keyframes pop {
  from { transform: scale(0); }
  to   { transform: scale(1); }
}

/* ==========================
   Subscription Plans
========================== */
.plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
}

.plan-card {
  background: var(--card-bg, #1f2937);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,.4);
  transition: transform .3s ease, border-color .3s ease;
}
.plan-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent, #f4691d);
}

.plan-name {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #ffec3d;
}
.plan-price {
  font-size: 20px;
  margin-bottom: 8px;
  color: var(--text, #f1f1f1);
}
.plan-duration {
  font-size: 14px;
  color: #bbb;
  margin-bottom: 18px;
}

.btn-select {
  background-color: var(--accent, #f4691d);
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color .2s ease;
}
.btn-select:hover { background-color: #d4550b; }

.plan-alert {
  max-width: 600px;
  margin: 20px auto;
  padding: 12px 20px;
  border-radius: 6px;
  text-align: center;
}
.plan-alert.success {
  background-color: #1e4620;
  color: #a8ffb0;
  border: 1px solid #2d6a36;
}
.plan-alert.error {
  background-color: #471010;
  color: #ffc9c9;
  border: 1px solid #9b2c2c;
}

/* ==========================
   Payments / Checkout
========================== */
.checkout-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px var(--container-pad, 16px);
}
.checkout-title {
  font-size: 30px;
  margin: 8px 0 18px;
  color: var(--text, #f1f1f1);
}

.summary-card {
  border: 1px solid #2b2b2b;
  border-radius: 16px;
  padding: 22px;
  background: #151923;
  color: #e8e8e8;
}
.summary-top { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.summary-plan { font-weight: 800; font-size: 22px; }
.summary-duration { color: #9aa; margin-top: 6px; font-size: 14px; }
.summary-right { text-align: right; min-width: 150px; }
.summary-price { font-weight: 900; font-size: 32px; }
.summary-note { font-size: 12px; color: #8a9; }

.gateway-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
  margin-top: 14px;
}
.gateway-card {
  border: 1px solid #2b2b2b;
  border-radius: 16px;
  background: #141820;
  color: #e8e8e8;
  padding: 22px;
  cursor: pointer;
  position: relative;
  outline: none;
  transition: transform .08s ease, border-color .08s ease, box-shadow .08s ease;
}
.gateway-card:hover { transform: translateY(-2px); border-color: #3e5fb0; }
.gateway-card.selected {
  border-color: var(--accent, #f4691d);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent, #f4691d) 30%, transparent) inset;
}
.gateway-card:focus-visible {
  border-color: var(--accent, #f4691d);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent, #f4691d) 45%, transparent);
}

.gateway-head { display: flex; align-items: center; gap: 14px; font-weight: 700; font-size: 18px; margin-bottom: 12px; }

.gateway-icon {
  min-width: 96px;
  height: 64px;
  padding: 10px;
  background: #fff;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
}

.gateway-icon img,
.logo-img {
  max-height: 48px;
  max-width: 100%;
  height: auto;
  width: auto;
  display: block;
  object-fit: contain;
}
.gateway-icon i { font-size: 28px; color: #111827; }

.gateway-name { font-size: 16px; }
.gateway-desc { font-size: 15px; color: #aab; min-height: 44px; }

.badge {
  position: absolute; top: 12px; right: 12px;
  font-size: 11px; padding: 4px 8px; border-radius: 999px;
  border: 1px solid #3a3a3a; color: #9ab; background: #10131b;
}
.badge.sandbox, .badge.test { border-color: var(--accent, #f4691d); color: #cfc3ff; }
.badge.live { border-color: var(--accent, #f4691d); color: #dbe8ff; }

.actions { display: flex; gap: 16px; align-items: center; margin-top: 22px; flex-wrap: wrap; }
.btn-primary {
  background: #2f7ae5;
  color: #fff;
  border: 0;
  border-radius: 10px;
  padding: 12px 20px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color .2s ease, opacity .2s ease;
}
.btn-primary:hover { background: #2a6cd0; }
.btn-primary:disabled { opacity: .6; cursor: not-allowed; }
.link-muted { color: #9ab; text-decoration: none; }
.link-muted:hover { text-decoration: underline; }

/* Responsive */
@media (max-width: 640px) {
  .checkout-title { font-size: 26px; }
  .summary-plan { font-size: 20px; }
  .summary-price { font-size: 28px; }
  .gateway-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   FRONTEND LOGIN
   ============================================================ */
.login-page {
  --bg:#0c111b;
  --card:#222B3A;
  --text:#f1f1f1;
  --muted:#9ca3af;
  --input-bg:#111827;
  --input-border:#2f3c59;
  --accent:#f4691d;
  --accent-hover:#d4550b;
  --danger:#ef4444;
  --shadow:0 10px 28px rgba(0,0,0,.25);

  min-height:100dvh;
  display:grid;
  place-items:center;
  background:var(--bg);
  color:var(--text);
  padding:20px;
  box-sizing:border-box;
  font-family: Arial, sans-serif;
}

.login-page .login-box{
  width:100%;
  max-width:420px;
  background:var(--card);
  border-radius:12px;
  padding:26px 24px;
  box-shadow:var(--shadow);
  text-align:left;
}

.login-page .login-header{
  display:flex; align-items:center; justify-content:center;
  margin-bottom:8px;
}
.login-page .login-logo{
  max-width:240px; max-height:56px; object-fit:contain; display:block;
}
.login-page .login-title{
  margin:0; font-size:1.4rem; font-weight:800; color:#fff; letter-spacing:.2px;
}

.login-page h2 {
  margin: 12px 0 18px;
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  text-align: center;
}

.login-page .error{
  margin:0 0 12px;
  padding:10px 12px;
  border-radius:8px;
  background:#1e293b;
  border-left:4px solid var(--danger);
  color:#fecaca;
  font-size:.95rem;
}

.login-page .login-form{
  display:flex; flex-direction:column; gap:12px;
}

.login-page .login-form input[type="text"],
.login-page .login-form input[type="password"],
.login-page .login-form input[type="email"]{
  width:100%;
  padding:12px 12px;
  background:var(--input-bg);
  border:1px solid var(--input-border);
  border-radius:8px;
  color:var(--text);
  font-size:1rem;
  outline:none;
  transition:border-color .2s, box-shadow .2s;
}
.login-page .login-form input::placeholder{ color:#adb8ce; }
.login-page .login-form input:focus{
  border-color:#10b981;
  box-shadow:0 0 0 2px rgba(16,185,129,.25);
}

.login-page .remember-me{
  display:flex; align-items:center; justify-content:space-between;
  margin-top:2px; color:#d1d8e5; font-size:.95rem;
  gap:10px;
  flex-wrap:wrap;
}
.login-page .remember-me label{ display:inline-flex; align-items:center; gap:8px; }
.login-page .remember-me input[type="checkbox"]{
  width:16px; height:16px; accent-color:#10b981;
}
.login-page .links a{
  color:var(--accent);
  text-decoration:none;
}
.login-page .links a:hover{
  text-decoration:underline;
}

.login-page .login-form input[type="submit"]{
  width:100%;
  background:var(--accent);
  color:#fff;
  border:none;
  padding:12px 14px;
  margin-top:4px;
  border-radius:8px;
  cursor:pointer;
  font-size:1rem; font-weight:700;
  transition:background .2s, transform .04s ease-in, opacity .2s;
}
.login-page .login-form input[type="submit"]:hover{ background:var(--accent-hover); }
.login-page .login-form input[type="submit"]:active{ transform:translateY(1px); }
.login-page .login-form input[type="submit"]:disabled{ opacity:.65; cursor:not-allowed; }

/* Responsive */
@media (max-width:480px){
  .login-page .login-box{ padding:22px 18px; border-radius:10px; }
  .login-page h2{ font-size:1.15rem; }
  .login-page .login-form input{ font-size:.98rem; padding:11px 10px; }
  .login-page .login-logo{ max-width:120px; max-height:48px; }
}


/* ==========================
   Pagination (Frontend)
========================== */
.pagination-wrapper {
  display: flex;
  justify-content: center;
  margin: 24px 0;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pagination a,
.page-btn {
  color: #fff;
  background-color: #1a1a1a;
  padding: 8px 14px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid #f4691d;
  font-size: 14px;
  transition: background-color .25s ease;
}

.pagination a:hover,
.page-btn:hover,
.pagination a.active,
.page-btn.active {
  background-color: #f4691d;
  color: #fff;
}

a {
  text-decoration: none;
  color: inherit;
}

a:hover, a:focus {
  text-decoration: none;
  color: var(--sidebar-active);
}

/* ==========================
   404 Not Found
========================== */

.not-found-wrap {
    max-width: 680px;
    margin: 80px auto;
    padding: 24px;
    text-align: center;
    color: #e8e8e8;
  }
  .not-found-card {
    background: #141820;
    border: 1px solid #2b2b2b;
    border-radius: 14px;
    padding: 32px 22px;
  }
  .not-found-card h1 {
    font-size: 3rem;
    margin: 0 0 10px;
    color: #ff5555;
  }
  .not-found-card p {
    margin: 0 0 20px;
    color: #aaa;
  }
  .not-found-card a {
    display: inline-block;
    margin: 6px 8px;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    background: #2f7ae5;
    color: #fff;
  }
  .not-found-card a.secondary {
    background: #293042;
  }