h1,
h2,
h3,
h4,
h5,
h6,
p,
a {
    font-family: 'Manrope', sans-serif;
}

.mobile-menu {
    padding: 2rem;
    background: #fff;
}

@media (max-width: 1023px) {
    .mobile-menu {
        position: fixed;
        top: 82px;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 45;
        margin: 0;
        max-height: calc(100vh - 82px);
        overflow-y: auto;
        border-top: 1px solid #e5e7eb;
        box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
        -webkit-overflow-scrolling: touch;
    }

    /* Mobil menyuda keraksiz bloklar ko‘rinmasin */
    .mobile-menu .w-full.max-w-xs,
    .mobile-menu > .top-full.right-0.mt-2.w-full.bg-white.shadow-lg.p-2.rounded {
        display: none !important;
    }
}

.dropdown-enter-active,
.dropdown-leave-active {
    transition: opacity 0.1s ease-out, transform 0.1s ease-out;
}
.dropdown-enter-from,
.dropdown-leave-to {
    opacity: 0;
    transform: scale(0.9);
}

.mobile-menu ul {
    width: 100%;
    text-align: center;
}

.mobile-menu li {
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 1rem;
    padding-top: 1rem;
}

.mobile-dropdown-menu li{
    border-bottom: none;
    border-top: 1px solid #e0e0e0;
}

.mobile-dropdown-menu li:last-child {
    padding-bottom: 0;
}

.mobile-dropdown-menu{
   margin-top: 12px;
}

/* .group:hover h3,
.group:hover p {
    color: #ffffff;
} */

@keyframes scaleUp {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.2);
    }
}

.group-hover\:scale-120:hover {
    animation: scaleUp 0.3s forwards;
}

@keyframes slideDown {
    0% {
        transform: translateY(-20px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.search-slide-down {
    animation: slideDown 0.3s forwards;
}

/* home page */
.main-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* Hero slayd qutisi — asl nisbat */
.main-slider .swiper-slide {
    position: relative;
    display: block;
    padding: 0;
    text-align: center;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 1900 / 800;
}

.main-slider .swiper-slide img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Markazda Kitobxon — engil qora parda (rasm markazda, umumiy object-position: center) */
.main-slider .swiper-slide--kitobxon::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.38);
    z-index: 1;
    pointer-events: none;
}

/* Talabalar slaydi: matn chapda — rasmning chap/qirra qismi ko‘rinsin */
.main-slider .swiper-slide--talabalar img {
    object-position: left center;
}

/* Juda engil qora pardasi — matn o‘qiladi */
.main-slider .swiper-slide--talabalar::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.38);
    z-index: 1;
    pointer-events: none;
}

.main-slider .swiper-slide--xodimlar img {
    object-position: left center;
}

.main-slider .swiper-slide--xodimlar::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.38);
    z-index: 1;
    pointer-events: none;
}

.main-slider .swiper-slide-content {
    position: absolute;
    left: clamp(1rem, 6vw, 6rem);
    right: auto;
    bottom: clamp(1.25rem, 9vh, 5rem);
    width: min(92%, 50rem);
    text-align: left;
    z-index: 2;
}

@media (max-width: 640px) {
    .main-slider .swiper-slide {
        min-height: 250px;
    }

    .main-slider .swiper-slide-content {
        left: 1rem;
        right: 1rem;
        bottom: 0.875rem;
        width: min(92%, 19rem);
        padding: 0;
    }

    .main-slider .swiper-slide-content h2 {
        font-size: clamp(1.3rem, 5.8vw, 1.75rem);
        line-height: 1.2;
        margin-bottom: 0.4rem;
    }

    .main-slider .swiper-slide-content p {
        font-size: clamp(0.88rem, 3.7vw, 1rem);
        line-height: 1.35;
        margin-bottom: 0.55rem;
        max-width: 30ch;
    }

    .main-slider .swiper-slide-content a {
        font-size: 0.95rem;
        line-height: 1.2;
        padding: 0.6rem 1rem;
        border-radius: 9999px;
    }

    .main-slider .swiper-slide-content p br {
        display: none;
    }

    .main-slider .swiper-slide--kitobxon::after,
    .main-slider .swiper-slide--talabalar::after,
    .main-slider .swiper-slide--xodimlar::after {
        background: rgba(0, 0, 0, 0.48);
    }
}

@media(min-width: 1400px) {
    .main-slider .swiper-slide-content {
        left: 10%;
        width: min(68%, 58rem);
    }
}

#product-slider .swiper-button-prev, #product-slider .swiper-button-next{
    color: #fff;
}

.brands-section-premium__head {
    max-width: 72rem;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.brands-section-premium__title {
    font-family: "Fraunces", "Georgia", "Times New Roman", serif;
    font-optical-sizing: auto;
    font-weight: 800;
    font-size: clamp(1.0625rem, 1.85vw + 0.55rem, 1.6875rem);
    line-height: 1.15;
    letter-spacing: -0.025em;
    color: #0a0f18;
    margin: 0 auto;
    padding: 0 0.5rem;
    width: max-content;
    max-width: 100%;
    text-align: center;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.9);
    white-space: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.brands-section-premium__title::-webkit-scrollbar {
    display: none;
}

.brands-section-premium__lab {
    font-family: "Sora", system-ui, sans-serif;
    font-weight: 500;
    font-size: clamp(0.8125rem, 1.05vw + 0.52rem, 1.0625rem);
    line-height: 1.5;
    letter-spacing: 0.04em;
    margin: 0.65rem 0 0;
    padding: 0 1rem;
    max-width: 42rem;
    background: linear-gradient(
        105deg,
        #1e3a5f 0%,
        #1d4ed8 38%,
        #5b21b6 72%,
        #9d174d 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 1px 10px rgba(29, 78, 216, 0.08));
}

.brands-section-premium__lab::before {
    content: "";
    display: block;
    width: min(4.5rem, 18vw);
    height: 1px;
    margin: 0 auto 0.6rem;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(15, 23, 42, 0.1) 20%,
        rgba(15, 23, 42, 0.2) 50%,
        rgba(15, 23, 42, 0.1) 80%,
        transparent
    );
}

@media (max-width: 380px) {
    .brands-section-premium__title {
        width: auto;
        white-space: normal;
        overflow-x: visible;
        text-wrap: balance;
        font-size: 1.0625rem;
        line-height: 1.25;
    }
}

@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
    .brands-section-premium__lab {
        color: #0369a1;
        -webkit-text-fill-color: unset;
        background: none;
        filter: none;
    }
}

@keyframes brandsMarqueeLoop {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(calc(-190px * 10), 0, 0);
    }
}

.brandsCarousel {
    --brand-slot: 190px;
    --brand-track-img-max: 154px;
    max-width: 960px;
    max-height: 188px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
}

.brandsCarousel::before,
.brandsCarousel::after {
    content: "";
    width: 96px;
    height: 100%;
    min-height: 168px;
    position: absolute;
    top: 0;
    z-index: 2;
    pointer-events: none;
}

.brandsCarousel::before {
    left: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
}

.brandsCarousel::after {
    right: 0;
    background: linear-gradient(to left, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
}

.carouselTrack {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    width: calc(var(--brand-slot) * 20);
    animation: brandsMarqueeLoop 25s linear infinite;
    animation-fill-mode: forwards;
    will-change: transform;
}

.brandLogo {
    flex: 0 0 var(--brand-slot);
    width: var(--brand-slot);
    height: 168px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    overflow: hidden;
    padding: 0 8px;
    box-sizing: border-box;
}

.brandLogo img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: var(--brand-track-img-max);
    object-fit: contain;
    display: block;
}

@media (prefers-reduced-motion: reduce) {
    .carouselTrack {
        animation: none;
        justify-content: center;
        width: 100%;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .brandLogo {
        flex: 0 0 auto;
    }
}

.swiper {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    text-align: center;
    font-size: 16px;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
}

.swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (min-width: 1024px) {
    .swiper-slide {
        padding: 25px;
    }
}

@media (max-width: 1023px) {

    .swiper-button-prev,
    .swiper-button-next {
        display: none;
    }
}

img.cursor-pointer:hover {
    opacity: 0.8;
}

/* single product tabs */
.tab {
    padding: 0.5rem 1rem;
    color: #010717; 
    border-bottom-width: 2px;
    border-color: transparent;
    font-size: 1rem;
    font-weight: 500; 
    cursor: pointer;
    transition: all 0.3s ease;
}
.tab:hover {
    color: #323232; 
    border-color: #ff0042; 
}
.tab.active {
    color: #ff0042; 
    border-color: #ff0042;
}
.tab-content {
    display: none;
}
.tab-content:not(.hidden) {
    display: block;
}

/* Kitob sahifalari: gorizontal tablar — scroll saqlanadi, scrollbar vizual shovqinni kamaytiradi */
.book-tablist-scroll {
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.book-tablist-scroll::-webkit-scrollbar {
    display: none;
}

.custom-checkbox {
    appearance: none;
    background-color: #fff;
    border: 1px solid #d1d5db;
    padding: 0.5rem;
    display: inline-block;
    position: relative;
    cursor: pointer;
    outline: none;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 0.25rem;
}

.custom-checkbox:checked {
    background-color: #ff0042;
    border-color: #ff0042;
}

/* tailwind.config secondary — HTML da hover:text-secondary ishlatilgan; build qayta ishlamasa ham ishlaydi */
.hover\:text-secondary:hover {
    color: #ff8fab;
}

/* --- PDF o‘qish sahifasi (read-otgan-kunlar) ---
   Tailwind build da arbitrary grid/sticky yo‘q — layout to‘liq shu yerda */
.pdf-reader-body {
    --pdf-main-pt: 0;
}

.pdf-reader-main {
    padding-top: var(--pdf-main-pt);
    padding-bottom: 2.5rem;
}

.pdf-reader-root {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Markaziy o‘qish konteyneri (~namunadagi 80% kenglik hissiyati) */
.pdf-read-shell {
    width: 100%;
    max-width: 72rem;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

@media (min-width: 1024px) {
    .pdf-read-shell {
        width: 88%;
        max-width: 80rem;
    }
}

/* Chap ~30% + o‘ng ~70% */
.pdf-read-layout {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    align-items: stretch;
}

@media (min-width: 1024px) {
    .pdf-read-layout {
        flex-direction: row;
        gap: 3.5rem;
        align-items: flex-start;
    }
}

.pdf-read-aside {
    width: 100%;
    min-width: 0;
}

@media (min-width: 1024px) {
    .pdf-read-aside {
        flex: 0 0 30%;
        max-width: 30%;
    }
}

.pdf-read-aside-inner {
    position: static;
}

@media (min-width: 1024px) {
    .pdf-read-aside-inner {
        position: sticky;
        top: 6.5rem;
    }
}

.pdf-read-content {
    width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

@media (min-width: 1024px) {
    .pdf-read-content {
        flex: 1 1 0;
        min-width: 0;
        min-height: 0;
    }

    /* Qator: ustunlar balandligi tenglashmasa ham o‘ng ustun ichida flex bolalar cho‘ziladi */
    .pdf-read-layout {
        align-items: stretch;
    }
}

/* Ochilgan kitob — qog‘oz tekstura + muhr */
.book-texture {
    background-color: #fcfaf7;
    background-image:
        radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.85), transparent 55%),
        linear-gradient(
            to right,
            rgba(0, 0, 0, 0.04) 0%,
            transparent 2%,
            transparent 98%,
            rgba(0, 0, 0, 0.04) 100%
        );
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.08),
        0 2px 4px -1px rgba(0, 0, 0, 0.05),
        inset 0 0 80px rgba(0, 0, 0, 0.02);
}

.book-spine-gradient {
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.14) 0%,
        rgba(0, 0, 0, 0.05) 12%,
        transparent 28%
    );
}

/* Tailwind buildda yo‘q — flex bolalarda min-balans */
.min-h-0 {
    min-height: 0;
}

/* Ochilgan kitob ramkasi: balandlik JS → --pdf-read-frame-h (viewport qoldig‘i), ichida scroll */
.pdf-book-open-frame {
    position: relative;
    height: var(--pdf-read-frame-h, min(78dvh, 48rem));
    max-height: var(--pdf-read-frame-h, min(78dvh, 48rem));
    min-height: 15rem;
    border-radius: 0 1rem 1rem 0;
    border-left: 4px solid #d1d5db;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

/* Tashqi kitob ramkasi ustun bo‘yicha to‘liq; PDF o‘lchami alohida (--pdf-page-disp-*) */
.pdf-book-open-frame[data-pdf-frame-fit-page="true"] {
    height: auto;
    max-height: none;
    min-height: 0;
    width: 100%;
    max-width: 100%;
}

.pdf-book-open-frame .pdf-read-pdf-frame--in-book {
    flex: 1 1 0;
    min-height: 0;
    height: 100%;
    max-height: 100%;
    align-self: stretch;
}

.pdf-book-open-frame .pdf-read-pdf-frame--in-book > #pdf-main-stage {
    flex: 1 1 0;
    min-height: 0;
    height: 100%;
    max-height: 100%;
}

.pdf-book-open-frame .pdf-read-pdf-frame--in-book #pdf-stage-fullbleed {
    flex: 1 1 0 !important;
    min-height: 0 !important;
    height: 100%;
    max-height: 100%;
}

.pdf-book-open-frame .pdf-read-pdf-frame--in-book #pdf-reader-scroll-root {
    flex: 1 1 0 !important;
    min-height: 0 !important;
}

.pdf-read-title-row {
    max-width: 100%;
}

.pdf-book-open-frame .pdf-book-spine {
    position: absolute;
    inset: 0 auto 0 0;
    width: 0.75rem;
    z-index: 5;
    pointer-events: none;
}

.pdf-book-open-frame .pdf-read-pdf-frame-inner {
    position: relative;
    z-index: 1;
    margin-left: 0.5rem;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 12px 40px -8px rgba(0, 0, 0, 0.2);
    flex: 1 1 0;
    min-height: 0;
    height: 100%;
    max-height: 100%;
    align-self: stretch;
    display: flex;
    flex-direction: column;
}

@media (min-width: 640px) {
    .pdf-book-open-frame .pdf-read-pdf-frame-inner {
        margin-left: 0.75rem;
    }
}

.pdf-book-open-frame[data-pdf-frame-fit-page="true"] .pdf-read-pdf-frame-inner {
    flex: 0 0 auto !important;
    height: auto !important;
    max-height: none !important;
    align-self: stretch;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.pdf-read-pdf-frame--in-book.pdf-read-viewer-block {
    flex: 1 1 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.pdf-read-pdf-frame--in-book .pdf-reader-stage {
    flex: 1 1 0;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.pdf-read-pdf-frame--in-book #pdf-stage-fullbleed {
    flex: 1 1 0;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.pdf-read-pdf-frame--in-book #pdf-reader-scroll-root {
    flex: 1 1 0;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
}

/* Sahifa o‘lchami = qora quti; kenglik PDF chizilishi bilan, ramka ichida markazda */
.pdf-book-open-frame[data-pdf-frame-fit-page="true"] .pdf-read-pdf-frame--in-book #pdf-reader-scroll-root {
    flex: 0 0 auto !important;
    min-height: 0 !important;
    width: var(--pdf-page-disp-w, min(100%, 28rem));
    height: var(--pdf-page-disp-h, min(70dvh, 40rem));
    max-width: 100%;
    box-sizing: border-box;
    align-self: center;
}

.pdf-read-pdf-frame--in-book #pdf-reader-scroll-root::-webkit-scrollbar {
    width: 10px;
}

.pdf-read-pdf-frame--in-book #pdf-reader-scroll-root::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

/* PDF sahifalarini ramka ichidagi scroll maydoniga to‘liq moslash (markazda, ortiqcha bo‘shliq kam) */
.pdf-read-pdf-frame--in-book #pdf-reader-scroll-root .pdf-canvas-container {
    width: 100%;
    min-height: 100%;
    box-sizing: border-box;
    padding: 0.375rem 0.5rem 0.75rem;
}

.pdf-book-open-frame[data-pdf-frame-fit-page="true"] .pdf-read-pdf-frame--in-book #pdf-reader-scroll-root .pdf-canvas-container {
    padding: 0 !important;
    margin: 0;
    min-height: 0;
    height: 100%;
    box-sizing: border-box;
}

.pdf-book-open-frame[data-pdf-frame-fit-page="true"] .pdf-read-pdf-frame--in-book {
    flex: 0 0 auto !important;
    height: auto !important;
    max-height: none !important;
}

.pdf-book-open-frame[data-pdf-frame-fit-page="true"] .pdf-read-pdf-frame--in-book > #pdf-main-stage {
    flex: 0 0 auto !important;
    height: auto !important;
    max-height: none !important;
}

.pdf-book-open-frame[data-pdf-frame-fit-page="true"] .pdf-read-pdf-frame--in-book #pdf-stage-fullbleed {
    flex: 0 0 auto !important;
    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;
}

.pdf-book-open-frame[data-pdf-frame-fit-page="true"] .pdf-read-pdf-frame--in-book.pdf-read-viewer-block {
    flex: 0 0 auto !important;
    height: auto !important;
    max-height: none !important;
}

.pdf-book-open-frame[data-pdf-frame-fit-page="true"] .pdf-read-pdf-frame--in-book .pdf-reader-stage {
    flex: 0 0 auto !important;
    height: auto !important;
    max-height: none !important;
}

.pdf-read-pdf-frame--in-book .pdf-page-shell {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.pdf-read-pdf-frame--in-book .pdf-page-canvas {
    max-width: 100%;
    height: auto;
}

.pdf-read-pdf-frame--in-book .pdf-fallback-in-frame {
    flex: 1 1 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.pdf-read-pdf-frame--in-book .pdf-fallback-in-frame .pdf-fallback-iframe {
    flex: 1 1 0;
    min-height: min(50vh, 28rem);
}

/* PDF — ichki ramka (ochilgan kitob ichida) */
.pdf-read-viewer-block {
    width: 100%;
    min-width: 0;
}

.pdf-read-pdf-frame {
    border-radius: 1rem;
    border: 2px solid #e2e5eb;
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.06),
        0 20px 40px -12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    background: #fff;
    box-sizing: border-box;
}

/* Ochilgan kitob ichidagi PDF — tashqi border yo‘q */
.pdf-read-pdf-frame--in-book {
    border: none;
    border-radius: 0.5rem;
    box-shadow: none;
    background: transparent;
}

.pdf-read-pdf-frame .pdf-reader-stage,
.pdf-read-pdf-frame--in-book .pdf-reader-stage {
    border-radius: 0;
    box-shadow: none;
}

.pdf-read-pdf-frame .pdf-fallback-block,
.pdf-read-pdf-frame--in-book .pdf-fallback-block {
    margin-top: 0;
    border-radius: 0;
    border: 0;
    min-height: 0;
}

.pdf-read-star {
    color: #f5a623;
}

.pdf-read-cover-shadow {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.22);
}

.pdf-reader-stage {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    border-radius: 1rem;
}

/* Standalone PDF ramka (in-book bo‘lmagan) */
.pdf-read-pdf-frame:not(.pdf-read-pdf-frame--in-book) .pdf-reader-stage,
.pdf-read-viewer-block:not(.pdf-read-pdf-frame--in-book) .pdf-reader-stage {
    display: flex;
    flex-direction: column;
    overflow: visible;
}

.pdf-read-pdf-frame:not(.pdf-read-pdf-frame--in-book) #pdf-stage-fullbleed,
.pdf-read-viewer-block:not(.pdf-read-pdf-frame--in-book) #pdf-stage-fullbleed {
    display: flex;
    flex-direction: column;
    overflow: visible;
}

.pdf-read-pdf-frame:not(.pdf-read-pdf-frame--in-book) .pdf-reader-canvas-wrap,
.pdf-read-viewer-block:not(.pdf-read-pdf-frame--in-book) .pdf-reader-canvas-wrap {
    overflow: visible;
    min-height: 0;
}

.pdf-read-viewer-block .pdf-reader-pane-meta {
    flex-shrink: 0;
}

.pdf-canvas-container {
    max-width: 100%;
    box-sizing: border-box;
}

.pdf-toolbar-korinish-label {
    display: none;
}

@media (min-width: 1024px) {
    .pdf-toolbar-korinish-label {
        display: inline;
    }
}

.pdf-fallback-block {
    min-height: 65vh;
}

@media (min-width: 1024px) {
    .pdf-fallback-block {
        min-height: 70vh;
    }
}

.pdf-fallback-iframe {
    display: block;
    min-height: 65vh;
}

@media (min-width: 1024px) {
    .pdf-fallback-iframe {
        min-height: 70vh;
    }
}

.pdf-reader-sidebar-scroll {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.15) transparent;
}

.pdf-reader-sidebar-scroll::-webkit-scrollbar {
    width: 6px;
}

.pdf-reader-sidebar-scroll::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.12);
    border-radius: 999px;
}

.pdf-sidebar-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 44px;
    padding: 0.65rem 1rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.pdf-sidebar-btn--ghost {
    background: #f8f9fb;
    border: 1px solid #e8eaef;
    color: #323232;
}

.pdf-sidebar-btn--ghost:hover {
    border-color: #ff0042;
    color: #ff0042;
    background: #fff;
}

.pdf-sidebar-btn--primary {
    background: #ff0042;
    border: 1px solid #ff0042;
    color: #fff;
}

.pdf-sidebar-btn--primary:hover {
    background: transparent;
    color: #ff0042;
}

.pdf-kbd-dark {
    font-family: ui-monospace, monospace;
    font-size: 0.65rem;
    padding: 0.15rem 0.4rem;
    border-radius: 0.25rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.pdf-reader-body kbd:not(.pdf-kbd-dark) {
    font-family: ui-monospace, monospace;
    font-size: 0.7rem;
    padding: 0.1rem 0.35rem;
}

.pdf-reader-toolbar {
    background: linear-gradient(180deg, rgba(30, 34, 42, 0.98) 0%, rgba(22, 25, 31, 0.98) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: relative;
    z-index: 2;
}

.pdf-toolbar-meta {
    padding-bottom: 0.125rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 0.125rem;
}

@media (min-width: 640px) {
    .pdf-reader-toolbar--stacked .pdf-toolbar-meta {
        padding-bottom: 0.35rem;
        margin-bottom: 0.15rem;
    }
}

.pdf-reader-canvas-wrap {
    background: radial-gradient(ellipse 120% 80% at 50% 0%, #2a303c 0%, #12151a 45%, #0a0c0f 100%);
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.pdf-reader-canvas-wrap::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.pdf-reader-canvas-wrap::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.pdf-reader-canvas-wrap::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 0, 66, 0.45);
    background-clip: padding-box;
}

.pdf-page-canvas {
    display: block;
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
    height: auto;
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.25),
        0 24px 48px -12px rgba(0, 0, 0, 0.45);
    border-radius: 2px;
}

.pdf-page-shell {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

#pdf-stage-fullbleed:fullscreen {
    min-height: 100vh;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #12151a;
}

/* To‘liq ekran: brauzer oynasi ichida qulay bo‘lishi uchun ichki scroll (oddiy sahifa emas) */
#pdf-stage-fullbleed:fullscreen .pdf-reader-canvas-wrap {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* To‘liq ekranda sahifa o‘lchamidagi quti emas, butun maydon */
#pdf-stage-fullbleed:fullscreen #pdf-reader-scroll-root {
    width: 100% !important;
    height: auto !important;
    max-width: none !important;
    flex: 1 1 0 !important;
    min-height: 0 !important;
}

/* Kitob muqovasi proporsiyasi (Tailwind arbitrary buildda bo‘lmasa ham ishlaydi) */
.popular-book-thumb {
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

/* Bosh sahifa «Mavjud adabiyotlar»: quti 2:3, rasm buzilmaydi */
.popular-book-thumb-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 2 / 3;
    border-radius: 0.5rem;
    overflow: hidden;
    background-color: #f3f4f6;
}

.popular-book-thumb-fill {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Eng ko‘p o‘qilayotgan adabiyotlar: Flowbite tugma namunalari
   (https://flowbite.com/docs/components/button/) — loyiha primary #ff0042 ga moslashtirildi */
.btn-popular-cta {
    display: block;
    width: 100%;
    text-align: center;
    font-weight: 600;
    font-size: 0.875rem;
    line-height: 1.25rem;
    padding: 0.625rem 1rem;
    border-radius: 9999px;
    color: #fff;
    background-color: #ff0042;
    border: 1px solid #ff0042;
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease,
        box-shadow 0.15s ease;
}

.btn-popular-cta:hover {
    background-color: #d60038;
    border-color: #d60038;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

.btn-popular-cta:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgb(255 0 66 / 0.4), 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

.btn-popular-catalog {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.9375rem;
    line-height: 1.25rem;
    padding: 0.75rem 1.75rem;
    border-radius: 0.5rem;
    color: #ff0042;
    background-color: transparent;
    border: 2px solid #ff0042;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease,
        box-shadow 0.15s ease;
}

.btn-popular-catalog:hover {
    background-color: #ff0042;
    color: #fff;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.12);
}

.btn-popular-catalog:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgb(255 0 66 / 0.35);
}

.btn-popular-catalog i {
    font-size: 0.875rem;
    transition: transform 0.15s ease;
}

.btn-popular-catalog:hover i {
    transform: translateX(3px);
}

/* ========== Foydalanuvchilar fikri — 3D testimonial karusel (loyiha ranglari) ========== */
.user-feedback-section {
    background-color: #faf7f3;
}

/* Butun blok (sarlavha + karusel) katta ekranda ekranning ~45% i — tor, markazda */
.user-feedback-section__container {
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 640px) {
    .user-feedback-section__container {
        width: 45%;
        padding-left: 0;
        padding-right: 0;
    }
}

.feedback-carousel {
    position: relative;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding: 0 2.75rem;
    /* Matn o‘lchami kartochka kengligiga nisbatan (cqi) */
    container-type: inline-size;
    container-name: feedback-carousel;
}

@media (min-width: 640px) {
    .feedback-carousel {
        padding: 0 3.25rem;
    }
}

@media (min-width: 768px) {
    .feedback-carousel {
        padding: 0 3.75rem;
    }
}

.feedback-carousel__viewport {
    position: relative;
    width: 100%;
    min-height: 460px;
    height: 460px;
    perspective: 1200px;
}

/* Tor konteyner (45%): qatorlar ko‘payadi — balandlik yetarli bo‘lsin */
@media (min-width: 640px) {
    .feedback-carousel__viewport {
        min-height: 500px;
        height: 500px;
    }
}

@media (min-width: 992px) {
    .feedback-carousel__viewport {
        min-height: 460px;
        height: 460px;
    }
}

.feedback-carousel__card {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.5rem;
    background: #fff;
    border-radius: 1rem;
    border: 1px solid #e5e5e5;
}

@media (min-width: 768px) {
    .feedback-carousel__card {
        padding: 2rem;
    }
}

/* Iqtibos matni: brend shrifti (Manrope) emas — Lora serif; o‘lcham kartochka/konteynerga nisbatan */
.feedback-carousel__quote {
    margin: 0 0 1rem;
    font-family: "Lora", Georgia, "Times New Roman", serif;
    font-size: clamp(1.0625rem, 0.55rem + 2.35cqi, 1.375rem);
    line-height: 1.68;
    color: #3a3b44;
    font-weight: 500;
}

@supports not (font-size: 1cqi) {
    .feedback-carousel__quote {
        font-size: clamp(1.0625rem, 0.92rem + 0.45vw, 1.375rem);
    }
}

@media (min-width: 768px) {
    .feedback-carousel__quote {
        margin-bottom: 1.5rem;
    }
}

.feedback-carousel__author {
    display: flex;
    align-items: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e5e5;
}

.feedback-carousel__avatar {
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    border-radius: 9999px;
    margin-right: 0.875rem;
    overflow: hidden;
    border: 2px solid rgb(255 255 255 / 0.95);
    box-shadow: 0 2px 8px rgb(1 7 23 / 0.12);
    background: #e5e5e5;
}

.feedback-carousel__avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.feedback-carousel__name {
    margin: 0;
    font-weight: 600;
    font-size: 0.875rem;
    color: #010717;
}

.feedback-carousel__role {
    margin: 0;
    font-size: 0.75rem;
    color: #4c4d56;
}

.feedback-carousel__btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4c4d56;
    background: rgb(255 255 255 / 0.88);
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.feedback-carousel__btn:hover,
.feedback-carousel__btn:focus-visible {
    background: #fff;
    color: #010717;
    outline: none;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.12);
}

.feedback-carousel__btn--prev {
    left: 0;
}

.feedback-carousel__btn--next {
    right: 0;
}

@media (min-width: 640px) {
    .feedback-carousel__btn {
        width: 2.5rem;
        height: 2.5rem;
    }
}

.feedback-carousel__btn-icon {
    width: 1rem;
    height: 1rem;
}

@media (min-width: 640px) {
    .feedback-carousel__btn-icon {
        width: 1.25rem;
        height: 1.25rem;
    }
}

.feedback-carousel__empty {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2.5rem;
    color: #4c4d56;
    font-size: 0.875rem;
}

/* Kartochka holatlari (asl karusel mantig‘i) */
.slide {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transition: transform 0.6s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.6s cubic-bezier(0.65, 0, 0.35, 1);
    will-change: transform, opacity;
}

.slide[data-status="active"] {
    opacity: 1;
    transform: translateY(0%) translateX(0%) translateZ(0px) scale(1);
    z-index: 10;
}

.slide[data-status="next"] {
    opacity: 0.85;
    transform: translateY(4%) translateX(18%) translateZ(-50px) scale(0.92);
    z-index: 9;
}

.slide[data-status="prev"] {
    opacity: 0.85;
    transform: translateY(4%) translateX(-18%) translateZ(-50px) scale(0.92);
    z-index: 9;
}

.slide[data-status="background-next"] {
    opacity: 0.6;
    transform: translateY(8%) translateX(30%) translateZ(-100px) scale(0.84);
    z-index: 8;
}

.slide[data-status="background-prev"] {
    opacity: 0.6;
    transform: translateY(8%) translateX(-30%) translateZ(-100px) scale(0.84);
    z-index: 8;
}

.slide[data-status="hidden"] {
    opacity: 0;
    transform: translateY(12%) translateX(0%) translateZ(-150px) scale(0.76);
    z-index: 1;
    pointer-events: none;
}

/* shadow-xl buildda bo‘lmasa — JS bilan qo‘shiladi */
.shadow-xl {
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

/* #product-banners — 3D kitob karuseli (faqat shu bo‘limda) */
.popular-books-3d-section {
    background-color: #f9fafb;
}

#product-banners .product-banners__carousel-host {
    position: relative;
    min-height: 480px;
    margin: 0 auto;
    padding: 0 1rem 2rem;
    overflow: visible;
}

#product-banners .carousel {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 280px;
    height: 400px;
    margin: 0;
    -webkit-perspective: 800px;
    perspective: 800px;
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
}

#product-banners .carousel-content {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
    -webkit-transform: translateZ(-268px) rotateY(0);
    transform: translateZ(-268px) rotateY(0);
    -webkit-animation: product-banners-carousel 10s infinite cubic-bezier(1, 0.015, 0.295, 1.225) forwards;
    animation: product-banners-carousel 10s infinite cubic-bezier(1, 0.015, 0.295, 1.225) forwards;
}

#product-banners .carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 280px;
    height: 400px;
    border-radius: 6px;
    overflow: visible;
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    box-shadow: none;
}

/* Polga tushadigan yumaloq soyasi — doimiy, juda yengil (animatsiyasiz) */
#product-banners .carousel-item::after {
    content: "";
    position: absolute;
    left: 50%;
    right: auto;
    bottom: 0;
    width: 290px;
    max-width: calc(100% + 10px);
    height: 48px;
    -webkit-transform-origin: center bottom;
    transform-origin: center bottom;
    -webkit-transform: translate(-50%, 72%) rotateX(82deg);
    transform: translate(-50%, 72%) rotateX(82deg);
    background: radial-gradient(
        ellipse 100% 100% at 50% 50%,
        rgba(0, 0, 0, 0.07) 0%,
        rgba(0, 0, 0, 0.025) 48%,
        transparent 72%
    );
    -webkit-filter: blur(12px);
    filter: blur(12px);
    pointer-events: none;
    z-index: -1;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    opacity: 1;
}

#product-banners .carousel-item:nth-child(1) {
    -webkit-transform: rotateY(0) translateZ(268px);
    transform: rotateY(0) translateZ(268px);
}

#product-banners .carousel-item:nth-child(2) {
    -webkit-transform: rotateY(120deg) translateZ(268px);
    transform: rotateY(120deg) translateZ(268px);
}

#product-banners .carousel-item:nth-child(3) {
    -webkit-transform: rotateY(240deg) translateZ(268px);
    transform: rotateY(240deg) translateZ(268px);
}

#product-banners .carousel-item-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 1;
    border-radius: 6px;
    overflow: hidden;
    color: inherit;
    text-decoration: none;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

#product-banners .carousel-item-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    vertical-align: top;
}

#product-banners .carousel-item-title {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0.5rem 0.4rem 0.45rem;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    color: #fff;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.82), transparent);
}

@-webkit-keyframes product-banners-carousel {
    0%,
    17.5% {
        -webkit-transform: translateZ(-268px) rotateY(0);
        transform: translateZ(-268px) rotateY(0);
    }
    27.5%,
    45% {
        -webkit-transform: translateZ(-268px) rotateY(-120deg);
        transform: translateZ(-268px) rotateY(-120deg);
    }
    55%,
    72.5% {
        -webkit-transform: translateZ(-268px) rotateY(-240deg);
        transform: translateZ(-268px) rotateY(-240deg);
    }
    82.5%,
    100% {
        -webkit-transform: translateZ(-268px) rotateY(-360deg);
        transform: translateZ(-268px) rotateY(-360deg);
    }
}

@keyframes product-banners-carousel {
    0%,
    17.5% {
        -webkit-transform: translateZ(-268px) rotateY(0);
        transform: translateZ(-268px) rotateY(0);
    }
    27.5%,
    45% {
        -webkit-transform: translateZ(-268px) rotateY(-120deg);
        transform: translateZ(-268px) rotateY(-120deg);
    }
    55%,
    72.5% {
        -webkit-transform: translateZ(-268px) rotateY(-240deg);
        transform: translateZ(-268px) rotateY(-240deg);
    }
    82.5%,
    100% {
        -webkit-transform: translateZ(-268px) rotateY(-360deg);
        transform: translateZ(-268px) rotateY(-360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    #product-banners .carousel-content {
        -webkit-animation: none;
        animation: none;
        -webkit-transform: translateZ(-268px) rotateY(0);
        transform: translateZ(-268px) rotateY(0);
    }

}

/* Do‘kon: katalog kartochkalari orasida 50px (Tailwind arbitrary gap buildda yo‘q) */
#shop-books-grid {
    gap: 50px;
    row-gap: 50px;
    column-gap: 50px;
}

/* Do‘kon: tez kunda — placeholder kitoblar */
@keyframes book-soon-pulse {
    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.55), 0 4px 14px rgba(180, 83, 9, 0.35);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(245, 158, 11, 0), 0 6px 20px rgba(217, 119, 6, 0.45);
        transform: scale(1.03);
    }
}

.book-soon-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 2;
    padding: 0.35rem 0.75rem;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(135deg, #d97706 0%, #b45309 45%, #f59e0b 100%);
    border-radius: 9999px;
    border: 2px solid rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
    animation: book-soon-pulse 2s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
    .book-soon-badge {
        animation: none;
        box-shadow: 0 4px 12px rgba(180, 83, 9, 0.35);
    }
}

/* Kitob sahifasi: asosiy muqova ~150px kichraytirilgan, butun muqova ko‘rinadi (qirqilmaydi) */
.book-detail-cover-col {
    display: flex;
    flex-direction: column;
    align-items: center;
}

@media (min-width: 1024px) {
    .book-detail-cover-col {
        align-items: flex-start;
    }
}

.book-detail-cover-col > .grid {
    width: 100%;
    max-width: 450px;
}

.book-video-feature {
    position: relative;
}

.book-inline-video-panel {
    width: 100%;
    margin-top: 0.75rem;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    transform-origin: top center;
    transform: translateY(-16px) scaleY(0.92);
    transition: max-height 0.45s ease, opacity 0.35s ease, transform 0.45s ease;
}

.book-inline-video-panel.is-open {
    max-height: 960px;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scaleY(1);
}

.book-inline-video-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 0.75rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.book-inline-video-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #252525;
    margin: 0 0 0.625rem;
}

.book-inline-video-frame {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
    border-radius: 0.5rem;
}

@media (min-width: 1024px) {
    .book-inline-video-panel {
        position: absolute;
        top: 0;
        left: calc(100% + 1rem);
        width: min(calc(28rem + 400px), calc(100vw - 5rem));
        margin-top: 0;
        z-index: 6;
    }
}

#main-image-container.book-main-cover-wrap {
    width: 100%;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
    padding: 0.75rem;
    background-color: #f3f4f6;
    border-radius: 0.5rem;
    box-sizing: border-box;
}

img#main-image.book-main-cover-img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 675px;
    aspect-ratio: 2 / 3;
    object-fit: contain;
    object-position: center;
    margin-left: auto;
    margin-right: auto;
}

/* Kitob sahifasi CTA: bosh sahifa «Mavjud adabiyotlar» tugmalari (btn-popular-*) bilan uyg‘un qator */
.book-detail-cta-stack {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
}

@media (min-width: 640px) {
    .book-detail-cta-stack {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: stretch;
    }

    .book-detail-cta-stack > .book-detail-cta-btn {
        flex: 1 1 calc(33.333% - 0.5rem);
        min-width: 9.5rem;
    }
}

.book-detail-cta-stack .book-detail-cta-btn {
    width: 100%;
}

@media (min-width: 640px) {
    .book-detail-cta-stack .book-detail-cta-btn {
        width: auto;
    }
}

/* Qora asosiy — «Kitobni o‘qish» (Flowbite tuzilishi, btn-popular-cta bilan bir xil ritm) */
.btn-book-read {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    line-height: 1.25rem;
    padding: 0.625rem 1.125rem;
    min-height: 2.75rem;
    border-radius: 9999px;
    color: #fff;
    background-color: #252525;
    border: 1px solid #252525;
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease,
        box-shadow 0.15s ease;
    text-decoration: none;
    cursor: pointer;
    box-sizing: border-box;
}

.btn-book-read:hover {
    background-color: transparent;
    color: #252525;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.08), 0 2px 4px -2px rgb(0 0 0 / 0.06);
}

.btn-book-read:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgb(37 37 37 / 0.35), 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

.book-detail-cta-stack .btn-popular-cta {
    width: 100%;
    min-height: 2.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.book-detail-cta-stack .btn-popular-catalog {
    width: 100%;
    min-height: 2.75rem;
    border-radius: 9999px;
}

.book-detail-cta-tests span {
    flex: 1;
    text-align: center;
}

.btn-book-read--disabled,
.btn-book-read--disabled:hover,
.btn-book-read--disabled:focus-visible {
    background-color: #d1d5db !important;
    border-color: #9ca3af !important;
    color: #4b5563 !important;
    box-shadow: none !important;
    cursor: not-allowed;
    pointer-events: none;
}

/* Alpine.js */
[x-cloak] {
    display: none !important;
}

/* Account / profil sahifasi */
.profile-header {
    background: linear-gradient(135deg, #4158d0 0%, #c850c0 100%);
    min-height: 150px;
    border-radius: 15px;
}

.profile-pic {
    width: 120px;
    height: 120px;
    border: 4px solid #fff;
    margin-top: -60px;
    background-color: #fff;
}

.account-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    text-align: left;
    padding: 12px 16px;
    border-radius: 10px;
    margin: 4px 0;
    color: #6b7280;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.account-nav-link:hover {
    background-color: #f3f4f6;
    color: #374151;
}

.account-nav-link-active {
    background-color: #fff;
    color: #4158d0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.settings-card {
    transition: box-shadow 0.25s ease;
}

.settings-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.activity-item {
    border-left: 2px solid #e5e7eb;
    padding-left: 1.25rem;
    position: relative;
}

.activity-item::before {
    content: '';
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #4158d0;
    position: absolute;
    left: -7px;
    top: 5px;
}

/* ========== Premium shaxsiy kabinet (account.html) ========== */
.cabinet-page {
    font-family: 'Manrope', sans-serif;
}

.cabinet-hero {
    background: linear-gradient(135deg, #010717 0%, #1a1f2e 45%, #3d0a18 100%);
    position: relative;
}

.cabinet-hero__glow {
    background:
        radial-gradient(ellipse 80% 60% at 20% 20%, rgba(255, 0, 66, 0.35) 0%, transparent 55%),
        radial-gradient(ellipse 60% 50% at 90% 80%, rgba(255, 143, 171, 0.25) 0%, transparent 50%);
    animation: cabinet-glow-shift 14s ease-in-out infinite alternate;
}

@keyframes cabinet-glow-shift {
    0% { opacity: 0.85; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.03); }
}

.cabinet-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
}

.cabinet-chip--light {
    background: rgba(255, 0, 66, 0.25);
    border-color: rgba(255, 143, 171, 0.4);
}

.cabinet-stat-tile {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 1rem;
    padding: 0.85rem 1rem;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.cabinet-stat-tile:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 143, 171, 0.45);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.cabinet-stat-tile__label {
    display: block;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.55);
}

.cabinet-stat-tile__value {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin-top: 0.25rem;
}

.cabinet-stat-tile__hint {
    display: block;
    font-size: 0.65rem;
    margin-top: 0.2rem;
    color: rgba(255, 255, 255, 0.5);
}

.cabinet-reveal {
    animation: cabinet-fade-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.cabinet-reveal--2 {
    animation-delay: 0.1s;
}

.cabinet-reveal--3 {
    animation-delay: 0.15s;
}

@keyframes cabinet-fade-up {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cabinet-side {
    position: sticky;
    top: 5.5rem;
}

.cabinet-nav-btn {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    text-align: left;
    padding: 0.7rem 0.85rem;
    border-radius: 0.75rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: #4c4d56;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.cabinet-nav-btn:hover {
    background: #f4f5f8;
    color: #010717;
}

.cabinet-nav-btn--active {
    background: linear-gradient(135deg, rgba(255, 0, 66, 0.1) 0%, rgba(255, 143, 171, 0.12) 100%);
    color: #ff0042;
    box-shadow: 0 4px 14px rgba(255, 0, 66, 0.12);
}

.cabinet-pill-strip {
    scrollbar-width: thin;
    scrollbar-color: #ff0042 #f4f5f8;
}

.cabinet-card {
    background: #fff;
    border-radius: 1.25rem;
    border: 1px solid #e5e5e5;
    box-shadow: 0 4px 24px rgba(1, 7, 23, 0.06);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.cabinet-card:hover {
    box-shadow: 0 8px 36px rgba(1, 7, 23, 0.09);
}

.cabinet-float {
    animation: cabinet-card-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.cabinet-float--delay {
    animation-delay: 0.08s;
}

@keyframes cabinet-card-in {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cabinet-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.65rem;
    border-radius: 9999px;
    font-weight: 700;
}

.cabinet-pill--soft {
    background: rgba(255, 0, 66, 0.08);
}

.cabinet-progress-animate {
    animation: cabinet-progress-pulse 2.2s ease-in-out infinite;
}

@keyframes cabinet-progress-pulse {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.08); }
}

.cabinet-subtab {
    padding: 0.45rem 1rem;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 800;
    border: 2px solid #e5e5e5;
    color: #4c4d56;
    background: #fff;
    transition: all 0.2s ease;
}

.cabinet-subtab:hover {
    border-color: rgba(255, 0, 66, 0.35);
    color: #010717;
}

.cabinet-subtab--on {
    border-color: #ff0042;
    background: #ff0042;
    color: #fff;
    box-shadow: 0 4px 14px rgba(255, 0, 66, 0.25);
}

.cabinet-book-card {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-radius: 1rem;
    border: 1px solid #e5e5e5;
    background: #fafafa;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.cabinet-book-card:hover {
    border-color: rgba(255, 0, 66, 0.25);
    box-shadow: 0 6px 20px rgba(1, 7, 23, 0.06);
}

.cabinet-book-card__cover {
    width: 5rem;
    height: 7rem;
    object-fit: cover;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.cabinet-book-card--empty {
    justify-content: center;
    align-items: center;
    min-height: 6rem;
    background: #f4f5f8;
}

.cabinet-score {
    font-size: 1.125rem;
    font-weight: 800;
    color: #ff0042;
}

.cabinet-podium__avatar {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 9999px;
    background: linear-gradient(135deg, #ff0042, #ff8fab);
    color: #fff;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 8px 20px rgba(255, 0, 66, 0.25);
}

.cabinet-podium__avatar.ring-amber-300 {
    box-shadow: 0 0 0 4px rgba(252, 211, 77, 0.6), 0 12px 28px rgba(255, 0, 66, 0.3);
}

.cabinet-podium__bar {
    background: linear-gradient(180deg, #4c4d56 0%, #323232 100%);
}

.cabinet-podium__bar--gold {
    background: linear-gradient(180deg, #ff8fab 0%, #ff0042 100%);
}

.cabinet-badge-card {
    border-radius: 1rem;
    border: 2px dashed #e5e5e5;
    padding: 1.25rem 1rem;
    text-align: center;
    background: #fafafa;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.cabinet-badge-card:hover {
    transform: translateY(-4px);
}

.cabinet-badge-card--earned {
    border-style: solid;
    border-color: rgba(255, 0, 66, 0.25);
    background: linear-gradient(180deg, #fff 0%, rgba(255, 0, 66, 0.04) 100%);
    box-shadow: 0 6px 20px rgba(255, 0, 66, 0.08);
}

.cabinet-input {
    width: 100%;
    border-radius: 9999px;
    border: 1px solid #e5e5e5;
    padding: 0.65rem 1.1rem;
    font-size: 0.9rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.cabinet-input:focus {
    outline: none;
    border-color: #ff0042;
    box-shadow: 0 0 0 3px rgba(255, 0, 66, 0.15);
}

/* ========== TailAdmin-layout kabinet (account.html) ========== */
.ta-shell {
    font-family: 'Manrope', sans-serif;
    background: #fff;
}

.ta-shell--dim {
    overflow: hidden;
}

@media (min-width: 1024px) {
    .ta-shell--dim {
        overflow: visible;
    }
}

.ta-backdrop {
    position: fixed;
    inset: 0;
    z-index: 40;
    background: rgba(15, 23, 42, 0.45);
}

.ta-side-heading {
    padding: 0 0.75rem 0.5rem;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #94a3b8;
}

.ta-side-link {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 0.75rem;
    border-radius: 0.5rem;
    padding: 0.65rem 0.75rem;
    margin-bottom: 0.125rem;
    text-align: left;
    font-size: 0.875rem;
    font-weight: 600;
    color: #1c2434;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.ta-side-link:hover {
    background: #f1f5f9;
}

.ta-side-link--active {
    background: rgba(255, 0, 66, 0.08);
    color: #ff0042;
    box-shadow: inset 3px 0 0 0 #ff0042;
}

.ta-side-link--active i {
    color: #ff0042 !important;
}

a.ta-side-link--ghost {
    text-decoration: none;
}

.ta-card {
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.ta-card-pad {
    padding: 1.5rem;
}

@media (min-width: 640px) {
    .ta-card-pad {
        padding: 1.75rem 2rem;
    }
}

.ta-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
    background: #fff;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.ta-btn-outline:hover {
    border-color: #ff0042;
    color: #ff0042;
    background: rgba(255, 0, 66, 0.04);
}

.ta-social-btn {
    display: inline-flex;
    height: 2.5rem;
    width: 2.5rem;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    border: 1px solid #e2e8f0;
    color: #64748b;
    transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.ta-social-btn:hover {
    border-color: #ff0042;
    color: #ff0042;
    background: rgba(255, 0, 66, 0.05);
}

.ta-field {
    min-width: 10rem;
    flex: 1;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
    padding: 0.5rem 0.875rem;
    font-size: 0.875rem;
}

.ta-field:focus {
    outline: none;
    border-color: #ff0042;
    box-shadow: 0 0 0 3px rgba(255, 0, 66, 0.12);
}

.ta-subtab {
    border-radius: 9999px;
    border: 1px solid #e2e8f0;
    background: #fff;
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: #64748b;
    cursor: pointer;
    transition: all 0.15s ease;
}

.ta-subtab:hover {
    border-color: rgba(255, 0, 66, 0.35);
    color: #1c2434;
}

.ta-subtab--on {
    border-color: #ff0042;
    background: #ff0042;
    color: #fff;
    box-shadow: 0 2px 8px rgba(255, 0, 66, 0.25);
}

/* shop.html — katalog paneli (tarmoq/ro‘yxat tanlangan holat) */
.shop-toolbar-panel {
    background: linear-gradient(180deg, #fff 0%, #fafafa 100%);
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    padding: 0.9rem 1rem;
}

.shop-toolbar-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
}

.shop-toolbar-chip {
    min-height: 2.5rem;
    white-space: nowrap;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.shop-toolbar-search-wrap {
    width: 100%;
}

.shop-toolbar-search-label {
    display: block;
    font-size: 0.78rem;
    line-height: 1.1rem;
    font-weight: 700;
    color: #4b5563;
    margin-bottom: 0.45rem;
    padding-left: 0.35rem;
}

.shop-toolbar-search-controls {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    width: 100%;
}

.shop-toolbar-input,
.shop-toolbar-select {
    min-height: 2.5rem;
}

@media (min-width: 640px) {
    .shop-toolbar-search-controls {
        flex-direction: row;
        align-items: center;
    }
}

@media (min-width: 1280px) {
    .shop-toolbar-search-wrap {
        width: auto;
        min-width: min(100%, 31rem);
    }
}

.shop-toolbar-btn {
    background-color: #fff !important;
    color: #374151 !important;
    border-color: #d1d5db !important;
}

.shop-toolbar-btn:hover {
    border-color: #ff0042 !important;
    color: #ff0042 !important;
}

.shop-toolbar-btn.shop-toolbar-btn--active {
    background-color: #ff0042 !important;
    color: #fff !important;
    border-color: #ff0042 !important;
    box-shadow: 0 6px 16px rgba(255, 0, 66, 0.25);
}

#shop-filter-soon.shop-toolbar-btn--soon-on {
    background-color: #d97706 !important;
    border-color: #d97706 !important;
    color: #fff !important;
    box-shadow: 0 6px 16px rgba(217, 119, 6, 0.25);
}

/* tests-grant.html — tab va test variantlari */
.grant-tab--active {
    border-color: #ff0042 !important;
    background-color: #fff5f7 !important;
    color: #ff0042 !important;
}

.grant-opt--correct {
    border-color: #16a34a !important;
    background-color: #f0fdf4 !important;
}

.grant-opt--wrong {
    border-color: #dc2626 !important;
    background-color: #fef2f2 !important;
}

/* tests-grant — yakuniy diagramma (SVG donut, tashqi kutubxona shart emas) */
.grant-results-hero {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 55%, #ffffff 100%);
}

.grant-donut-wrap {
    filter: drop-shadow(0 10px 28px rgba(28, 36, 52, 0.08));
}

.grant-donut-arc {
    transition: stroke-dashoffset 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

.grant-mini-bars .h-3 > div {
    transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.grant-review-item:last-child {
    margin-bottom: 0;
}
