@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Playfair+Display:ital,wght@0,600;0,700;1,600&display=swap");
:root {
  --ink: #10121b;
  --muted: #73788a;
  --line: #e8e8f2;
  --primary: #6657ff;
  --primary2: #9a54ff;
  --pink: #ff4f9a;
  --cyan: #20c9ff;
  --yellow: #ffc857;
  --bg: #f7f7fc;
  --card: #fff;
  --shadow: 0 20px 55px rgba(35, 28, 86, 0.09);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
html {
  min-height: 100%;
  margin: 0;
}
body {
  font-family: "DM Sans", sans-serif;
  color: var(--ink);
  background: radial-gradient(
      circle at 0 0,
      rgba(102, 87, 255, 0.06),
      transparent 24%
    ),
    radial-gradient(
      circle at 100% 20%,
      rgba(255, 79, 154, 0.05),
      transparent 20%
    ),
    var(--bg);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main {
  flex: 1;
  min-height: 55vh;
}
.fk-nav {
  position: relative;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(22px);
  border-bottom: 1px solid rgba(225, 225, 237, 0.85);
  box-shadow: 0 10px 35px rgba(30, 25, 75, 0.05);
  z-index: 1060;
}
.fk-nav .container {
  position: relative;
}
.navbar-brand {
  font-size: 1.32rem;
  letter-spacing: -0.07em;
  color: var(--ink);
  text-decoration: none;
}
.navbar-brand span {
  background: linear-gradient(90deg, var(--primary), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.mobile-nav-toggle {
  display: none;
  border: 0;
  background: #171925;
  color: #fff;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}
.fk-nav-drawer {
  display: flex;
  align-items: center;
  gap: 25px;
  flex: 1;
  margin-left: 45px;
}
.drawer-head {
  display: none;
}
.drawer-search {
  flex: 1;
  display: flex;
  justify-content: center;
}
.search {
  max-width: 540px;
  width: 100%;
  display: flex;
  background: #f1f1f6;
  border: 1px solid #e7e7ef;
  border-radius: 999px;
  padding: 4px;
  transition: 0.25s;
}
.search:focus-within {
  background: #fff;
  border-color: #bdb7ff;
  box-shadow: 0 0 0 5px rgba(102, 87, 255, 0.08);
}
.search input,
.filter-form input,
.filter-form select {
  border: 0;
  background: transparent;
  padding: 11px 15px;
  outline: 0;
  width: 100%;
  font-size: 0.9rem;
}
.search button {
  border: 0;
  background: linear-gradient(135deg, #151722, #39344f);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: 0.25s;
}
.search button:hover {
  transform: rotate(-8deg) scale(1.08);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-actions .nav-link {
  display: flex;
  gap: 7px;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
}
.nav-actions form {
  margin: 0;
}
.hero {
  margin: 18px;
  border-radius: 36px;
  min-height: 570px;
  display: flex;
  align-items: center;
  background: radial-gradient(
      circle at 80% 18%,
      rgba(255, 79, 154, 0.62),
      transparent 22%
    ),
    radial-gradient(circle at 68% 88%, rgba(32, 201, 255, 0.3), transparent 29%),
    linear-gradient(120deg, #11131e, #30288b 48%, #6958ff);
  color: #fff;
  overflow: hidden;
  position: relative;
  box-shadow: 0 35px 90px rgba(72, 61, 190, 0.2);
}
.hero:before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  right: -180px;
  top: -190px;
  box-shadow: 0 0 0 60px rgba(255, 255, 255, 0.025),
    0 0 0 120px rgba(255, 255, 255, 0.018);
}
.hero .container {
  max-width: 1220px;
  position: relative;
  z-index: 1;
}
.hero-copy {
  max-width: 780px;
  padding: 90px 0;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--primary);
}
.hero .eyebrow {
  color: #dedaff;
}
.hero h1 {
  font-size: clamp(3.2rem, 7vw, 6.4rem);
  line-height: 0.94;
  letter-spacing: -0.075em;
  margin: 18px 0;
}
.hero h1 em {
  font-family: "Playfair Display", serif;
}
.hero p {
  font-size: 1.1rem;
  max-width: 600px;
  color: #e5e6ee;
  line-height: 1.75;
}
.hero .btn {
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.18);
  transition: 0.25s;
}
.hero .btn:hover {
  transform: translateY(-4px);
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 22px;
}
.section-head h2,
.section-head h1 {
  margin: 5px 0;
  letter-spacing: -0.055em;
}
.category-card {
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 24px;
  color: var(--ink);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
  background: linear-gradient(145deg, #fff, #faf9ff);
  transition: 0.3s;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(35, 28, 86, 0.035);
}
.category-card:after {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  right: -50px;
  bottom: -50px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    rgba(102, 87, 255, 0.14),
    rgba(255, 79, 154, 0.13)
  );
}
.category-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 24px 50px rgba(35, 28, 86, 0.11);
  border-color: #d8d2ff;
}
.category-card small {
  color: var(--muted);
}
.book-card {
  height: 100%;
  transition: 0.35s;
  position: relative;
}
.book-card:hover {
  transform: translateY(-8px);
}
.cover,
.detail-cover {
  background: linear-gradient(145deg, #f0eff8, #dfdced);
  height: 315px;
  overflow: hidden;
  display: block;
  position: relative;
  box-shadow: 0 20px 42px rgba(31, 28, 62, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.75);
}
.cover:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.2));
  opacity: 0.3;
  pointer-events: none;
}
.cover img,
.detail-cover img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  transition: 0.55s;
}
.book-card:hover .cover img {
  transform: scale(1.035);
}
.cover-placeholder {
  height: 100%;
  display: grid;
  place-items: center;
  font-size: 4rem;
  color: #aaa;
}
.badge {
  position: absolute;
  top: 13px;
  left: 13px;
  padding: 7px 11px;
  border-radius: 99px;
  font-size: 0.68rem;
  font-weight: 800;
  z-index: 2;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}
.badge.free {
  background: #e4fff1;
  color: #147849;
}
.badge.paid {
  background: #fff0d8;
  color: #9a5b00;
}
.cover-arrow {
  position: absolute;
  right: 13px;
  bottom: 13px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.88);
  color: #151722;
  z-index: 2;
  opacity: 0;
  transform: translateY(7px);
  transition: 0.25s;
}
.book-card:hover .cover-arrow {
  opacity: 1;
  transform: none;
}
.book-info {
  padding: 14px 3px 2px;
}
.book-info small {
  display: block;
  color: var(--primary);
  font-weight: 800;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.book-info h5 {
  font-size: 1.03rem;
  line-height: 1.3;
  margin: 6px 0;
}
.book-info p {
  color: var(--muted);
  margin: 0;
  font-size: 0.88rem;
}
.book-info strong {
  font-size: 1.03rem;
  margin-top: 9px;
  display: block;
}
.free-label {
  display: inline-block;
  margin-top: 8px;
  color: #16834e;
  font-weight: 700;
  font-size: 0.84rem;
}
.listing-hero,
.page-hero {
  border-radius: 28px;
  padding: 35px;
  background: linear-gradient(
    135deg,
    rgba(102, 87, 255, 0.12),
    rgba(255, 79, 154, 0.09) 55%,
    rgba(32, 201, 255, 0.08)
  );
  border: 1px solid rgba(102, 87, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}
.listing-hero h1,
.page-hero h1 {
  font-size: clamp(2.1rem, 5vw, 4rem);
  letter-spacing: -0.065em;
  margin: 8px 0;
}
.listing-hero p,
.page-hero p {
  margin: 0;
  color: var(--muted);
}
.listing-hero > i {
  font-size: 5rem;
  color: var(--primary);
  opacity: 0.25;
}
.filter-form {
  display: flex;
  gap: 8px;
  border: 1px solid var(--line);
  padding: 6px;
  border-radius: 20px;
  max-width: 900px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 40px rgba(30, 25, 75, 0.06);
}
.filter-input {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}
.filter-input i {
  color: var(--primary);
  margin-left: 8px;
}
.filter-form select {
  width: auto;
  border-left: 1px solid var(--line);
}
.detail-cover {
  height: 450px;
  max-width: 420px;
  margin: auto;
}
.content-body {
  line-height: 1.9;
  font-size: 1.06rem;
}
.reader-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.reader-content {
  max-width: 850px;
  margin: auto;
  font-size: 1.12rem;
  line-height: 1.95;
}
.reader-content img {
  max-width: 100%;
  height: auto;
  border-radius: 18px;
}
.comment {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.checkout-card,
.info-card,
.policy-card {
  max-width: 850px;
  margin: auto;
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}
.contact-icon {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--pink));
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: 18px;
}
.contact-line {
  display: flex;
  gap: 13px;
  align-items: center;
  margin-top: 20px;
}
.contact-line > i {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #f0efff;
  color: var(--primary);
  display: grid;
  place-items: center;
}
.contact-line small,
.contact-line strong {
  display: block;
}
.contact-line small {
  color: var(--muted);
}
.contact-form label {
  font-weight: 700;
  font-size: 0.82rem;
  margin-bottom: 6px;
}
.price-line {
  display: flex;
  justify-content: space-between;
  font-size: 1.3rem;
  border-top: 1px solid var(--line);
  padding: 20px 0;
  margin: 25px 0;
}
.notification-list {
  max-width: 850px;
}
.notification {
  display: flex;
  gap: 15px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  text-decoration: none;
  color: inherit;
  background: #fff;
  margin-bottom: 10px;
  transition: 0.25s;
}
.notification:hover {
  transform: translateX(4px);
  box-shadow: 0 12px 30px rgba(30, 25, 75, 0.07);
}
.notification-icon {
  width: 45px;
  height: 45px;
  flex: 0 0 45px;
  border-radius: 14px;
  background: #f0efff;
  display: grid;
  place-items: center;
  color: var(--primary);
}
footer {
  border-top: 1px solid var(--line);
  margin-top: auto;
  padding: 24px 0 20px;
  color: #707586;
  font-size: 0.82rem;
  background: rgba(255, 255, 255, 0.82);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.footer-links {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}
.footer-links a {
  color: #555b6e;
  text-decoration: none;
}
.footer-links a:hover {
  color: var(--primary);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 15px;
}
.empty {
  text-align: center;
  padding: 75px 25px;
  border: 1px dashed #d8d9e4;
  border-radius: 25px;
  width: 100%;
  background: #fff;
  box-shadow: 0 10px 30px rgba(30, 25, 75, 0.03);
}
.empty > i {
  font-size: 2.3rem;
  color: var(--primary);
}
.form-control,
.form-select {
  border-radius: 14px;
  border-color: #e1e2eb;
  padding: 0.78rem 1rem;
}
.form-control:focus,
.form-select:focus {
  border-color: #bdb8ff;
  box-shadow: 0 0 0 4px rgba(99, 91, 255, 0.09);
}
.btn-primary {
  border: 0;
  background: linear-gradient(135deg, var(--primary), var(--primary2));
  box-shadow: 0 10px 22px rgba(99, 91, 255, 0.2);
}
.fade-up {
  animation: fadeup 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
@keyframes fadeup {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.fk-swal {
  border-radius: 24px !important;
}
.nav-open {
  overflow: hidden;
}
@media (max-width: 900px) {
  .mobile-nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }
  .fk-nav-drawer {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: min(390px, 88vw);
    max-width: 390px;
    background: #fff;
    z-index: 1060;
    margin: 0;
    padding: 22px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    box-shadow: 25px 0 70px rgba(20, 18, 50, 0.18);
    transform: translateX(-105%);
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .fk-nav-drawer.open {
    transform: translateX(0);
  }
  .drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .drawer-head button {
    border: 0;
    background: #f3f3f7;
    width: 40px;
    height: 40px;
    border-radius: 13px;
  }
  .drawer-search {
    display: block;
  }
  .drawer-search .search {
    max-width: none;
  }
  .nav-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .nav-actions .nav-link,
  .nav-actions .btn,
  .nav-actions form {
    width: 100%;
  }
  .nav-actions .nav-link {
    padding: 13px 12px;
    border-radius: 13px;
    background: #f7f7fb;
  }
  .nav-actions form .btn {
    padding: 13px 12px;
    text-align: left;
  }
  .mobile-nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 25, 0.45);
    z-index: 1055;
    opacity: 0;
    visibility: hidden;
    transition: 0.25s;
  }
  .mobile-nav-backdrop.show {
    opacity: 1;
    visibility: visible;
  }
  .hero {
    margin: 9px;
    border-radius: 28px;
    min-height: 530px;
  }
  .hero-copy {
    padding: 60px 10px;
  }
  .hero h1 {
    font-size: clamp(2.8rem, 13vw, 4.8rem);
  }
  .hero p {
    font-size: 1rem;
  }
  .filter-form {
    max-width: none;
    flex-wrap: wrap;
    border-radius: 18px;
  }
  .filter-input,
  .filter-form select,
  .filter-form .btn {
    width: 100%;
  }
  .filter-form select {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .section-head {
    align-items: start;
    gap: 12px;
  }
  .reader-top {
    align-items: start;
    flex-direction: column;
  }
  .detail-cover {
    max-width: 330px;
    height: 380px;
  }
  .cover {
    height: 285px;
  }
  .listing-hero,
  .page-hero {
    padding: 28px;
  }
  .listing-hero > i {
    font-size: 3.5rem;
  }
  .checkout-card,
  .info-card,
  .policy-card {
    padding: 25px;
  }
}
@media (max-width: 575px) {
  .container {
    padding-left: 17px;
    padding-right: 17px;
  }
  .cover {
    height: 255px;
    border-radius: 22px;
  }
  .book-info h5 {
    font-size: 1.08rem;
  }
  .hero {
    min-height: 500px;
  }
  .hero h1 {
    font-size: clamp(2.65rem, 14vw, 4rem);
  }
  .listing-hero h1,
  .page-hero h1 {
    font-size: 2.3rem;
  }
  .listing-hero > i {
    display: none;
  }
  .footer-links {
    justify-content: flex-start;
    gap: 12px 18px;
  }
  .footer-bottom {
    font-size: 0.76rem;
  }
  .detail-cover {
    height: 340px;
  }
  .page-hero {
    border-radius: 22px;
  }
  .filter-form .btn {
    justify-content: center;
  }
}


/* Funnykart Premium UI Overrides */
html,
body {
    min-height: 100%;
}

body {
    min-height: 100vh;
}

main {
    flex: 1 0 auto;
}

footer {
    flex-shrink: 0;
}

.page-toolbar {
    display: flex;
    align-items: center;
    min-height: 42px;
    margin-bottom: 18px;
}

.page-back {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 10px 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255,255,255,.94);
    color: var(--ink);
    text-decoration: none;
    font-size: .82rem;
    font-weight: 700;
    box-shadow: 0 8px 24px rgba(30,25,75,.06);
    transition: transform .25s ease, box-shadow .25s ease, color .25s ease, background .25s ease;
}

.page-back:hover {
    color: #fff;
    background: linear-gradient(135deg,var(--primary),var(--pink));
    border-color: transparent;
    transform: translateX(-3px);
    box-shadow: 0 12px 28px rgba(102,87,255,.22);
}

.book-card {
    height: 100%;
    padding: 10px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    border: 1px solid #ececf4;
    border-radius: 24px;
    box-shadow: 0 12px 34px rgba(35,28,86,.08);
    transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}

.book-card:hover {
    transform: translateY(-8px);
    border-color: #dcd7ff;
    box-shadow: 0 24px 55px rgba(60,48,150,.15);
}

.book-card .cover {
    flex: 0 0 auto;
    height: 245px;
    border: 0;
    box-shadow: none;
    border-top-left-radius: 25px;
    border-top-right-radius: 25px;
}

.book-card .cover img {
    object-fit: fill;
    
}

.book-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 18px;
    background: #fff;
}

.book-category {
    margin-bottom: 7px;
    color: var(--primary);
    font-size: .68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .1em;
}

.book-title {
    display: block;
    color: var(--ink);
    font-size: 1.04rem;
    font-weight: 800;
    line-height: 1.35;
    text-decoration: none;
    transition: color .2s ease;
}

.book-title:hover {
    color: var(--primary);
}

.book-author {
    margin-top: 7px;
    color: var(--muted);
    font-size: .84rem;
}

.book-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 15px;
}

.book-price {
    color: var(--ink);
    font-size: 1rem;
    font-weight: 800;
}

.free-price {
    color: #138a59;
}

.book-arrow-bottom {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    color: #fff;
    background: linear-gradient(135deg,var(--primary),var(--primary2));
    border-radius: 50%;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(102,87,255,.2);
    transition: transform .25s ease, box-shadow .25s ease;
}

.book-arrow-bottom:hover {
    color: #fff;
    transform: rotate(8deg) scale(1.08);
    box-shadow: 0 12px 25px rgba(102,87,255,.3);
}

.book-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
    padding-top: 16px;
}

.book-actions .btn {
    font-size: .78rem;
    font-weight: 700;
}

.user-book-card .book-card-body {
    min-height: 175px;
}

.empty {
    animation: fadeup .55s ease both;
}

.fk-nav {
    z-index: 3000;
}

.mobile-nav-backdrop {
    z-index: 2990;
}

@media (max-width: 900px) {
    .fk-nav {
        z-index: 3000;
    }

    .fk-nav-drawer {
        z-index: 3002 !important;
        width: min(350px, calc(100vw - 28px));
        max-width: 350px;
        height: 100dvh;
        top: 0;
        bottom: auto;
        left: 0;
        padding: 20px;
        border-radius: 0 24px 24px 0;
        box-shadow: 20px 0 65px rgba(16,18,35,.24);
        background: #fff;
        isolation: isolate;
    }

    .fk-nav-drawer.open {
        transform: translateX(0);
    }

    .mobile-nav-backdrop {
        z-index: 2995;
        background: rgba(10,10,25,.62);
        backdrop-filter: blur(3px);
    }

    .drawer-head {
        padding-bottom: 8px;
        border-bottom: 1px solid var(--line);
    }

    .drawer-head button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: var(--ink);
        cursor: pointer;
    }

    .drawer-search {
        margin-top: 3px;
    }

    .nav-actions {
        gap: 8px;
    }

    .nav-actions .nav-link,
    .nav-actions .btn,
    .nav-actions form {
        min-height: 46px;
        display: flex;
        align-items: center;
    }

    .book-card .cover {
        height: 235px;
    }
}

@media (max-width: 575px) {
    .book-card .cover {
        height: 220px;
    }

    .book-card-body {
        padding: 16px;
    }

    .book-title {
        font-size: 1rem;
    }

    .page-toolbar {
        margin-bottom: 14px;
    }

    .page-back {
        padding: 9px 14px;
    }

    footer {
        padding-bottom: max(20px, env(safe-area-inset-bottom));
    }
}
