/* Reset & Font */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: #f4f1ea;
    background-image: radial-gradient(circle at 50% 0%, #FAF6EE 0%, #e2ded5 100%);
    color: #3e3a36;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 10px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.05);
}
::-webkit-scrollbar-thumb {
    background: rgba(180, 150, 110, 0.4);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(180, 150, 110, 0.7);
}

/* ==========================================================================
   MOBILE-FIRST (Default Styles)
   ========================================================================== */

/* App Wrapper */
.wraper {
    width: 100%;
    max-width: 420px;
    background: #fdfbf8;
    border: 1px solid rgba(180, 150, 110, 0.2);
    box-shadow: 
        0 10px 25px rgba(0, 0, 0, 0.08),
        0 0 40px rgba(180, 150, 110, 0.05);
    display: flex;
    flex-direction: column;
    position: relative;
    padding-bottom: 15px;
    border-radius: 20px;
    overflow: hidden;
}

/* Brand Panel (Header + Slider + Categories) */
.brand-panel {
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px 10px 6px 10px;
    background: linear-gradient(180deg, rgba(180, 150, 110, 0.05) 0%, rgba(0,0,0,0) 100%);
    position: relative;
}

/* Logo SVG */
.logo {
    height: 34px;
    width: auto;
    filter: drop-shadow(0 1px 3px rgba(180, 150, 110, 0.2));
}

/* Slider Container */
.slider-container {
    width: 90%;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    border: 1.5px solid rgba(180, 150, 110, 0.3);
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.slider-wrapper {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide {
    min-width: 100%;
    height: 100%;
}

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

/* Slider Pagination */
.slider-pagination {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.85);
    padding: 3px 6px;
    border-radius: 10px;
    border: 1px solid rgba(180, 150, 110, 0.2);
}

.pagination-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(180, 150, 110, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination-dot.active {
    background: #b45309;
    width: 12px;
    border-radius: 2px;
}

/* Category Navigation / Announcement Marquee */
.notice {
    display: flex;
    align-items: center;
    background: rgba(180, 150, 110, 0.08);
    border: 1px solid rgba(180, 150, 110, 0.2);
    padding: 6px 10px;
    margin: 8px 15px 2px 15px;
    border-radius: 8px;
    overflow: hidden;
}

.notice-icon {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    flex-shrink: 0;
    fill: #b45309;
}

.marquee-wrap {
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
}

.marquee-wrap p {
    display: inline-block;
    padding-left: 100%;
    animation: marquee 22s linear infinite;
    color: #4c463f;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.3px;
}

@keyframes marquee {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}

/* Main Content */
.main-content {
    padding: 4px 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Featured Book Display Card */
.cta-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #ffffff;
    border: 1px solid rgba(180, 150, 110, 0.2);
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    font-size: 0.75rem;
    color: #b45309;
    background: rgba(180, 150, 110, 0.1);
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
    border: 1px solid rgba(180, 150, 110, 0.15);
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background-color: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.8);
    animation: pulse-green 1.5s infinite;
}

@keyframes pulse-green {
    0% {
        transform: scale(0.9);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.8);
    }
    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
    }
    100% {
        transform: scale(0.9);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

/* Bookstore Primary Action Button */
.btn-primary {
    width: 100%;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    text-transform: uppercase;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(217, 119, 6, 0.35);
    background: linear-gradient(135deg, #fbbf24 0%, #e07a07 100%);
}

.btn-primary:active {
    transform: translateY(1px);
}

.btn-primary .icon {
    width: 18px;
    height: 18px;
    fill: #ffffff;
}

.cta-hint {
    font-size: 0.72rem;
    color: #8c8276;
    margin-top: 8px;
    text-align: center;
    font-weight: 500;
}

/* Books Catalog List Section */
.vpn-section {
    background: #ffffff;
    border: 1px solid rgba(180, 150, 110, 0.15);
    border-radius: 12px;
    padding: 12px 14px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.vpn-title {
    font-size: 0.85rem;
    color: #4a453f;
    margin-bottom: 8px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-align: center;
    text-transform: uppercase;
}

/* Books Catalog Container */
.books-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.book-card {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 8px;
    border-bottom: 1px solid rgba(180, 150, 110, 0.1);
}

.book-card:last-child {
    border-bottom: none;
}

.book-img {
    width: 55px;
    height: 75px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

.book-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.book-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: #2c2925;
}

.book-author {
    font-size: 0.72rem;
    color: #7c7267;
}

.book-rating {
    font-size: 0.7rem;
    color: #f59e0b;
}

.book-price {
    font-size: 0.8rem;
    font-weight: 700;
    color: #b45309;
}

.btn-buy-sm {
    background: #2b6cb0;
    color: #ffffff;
    border: none;
    padding: 6px 10px;
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn-buy-sm:hover {
    background: #1a365d;
}

/* Social Grid Section (Store Info Cards) */
.social-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.social-title {
    font-size: 0.8rem;
    color: #8c8276;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    text-align: center;
    font-weight: 700;
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.social-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 2px;
    border-radius: 10px;
    background: #ffffff;
    border: 1px solid rgba(180, 150, 110, 0.15);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.25s ease;
}

.social-item svg {
    width: 22px;
    height: 22px;
    fill: #7c7267;
    margin-bottom: 4px;
    transition: all 0.25s ease;
}

.social-item span {
    font-size: 0.65rem;
    color: #7c7267;
    font-weight: 600;
}

/* Store details hover glows */
#link-telegram:hover {
    border-color: #0088cc;
    background: rgba(0, 136, 204, 0.05);
    transform: translateY(-2px);
}
#link-telegram:hover svg { fill: #0088cc; }
#link-telegram:hover span { color: #0088cc; }

#link-homepage:hover {
    border-color: #b45309;
    background: rgba(180, 150, 110, 0.05);
    transform: translateY(-2px);
}
#link-homepage:hover svg { fill: #b45309; }
#link-homepage:hover span { color: #b45309; }

#link-whatsapp:hover {
    border-color: #25d366;
    background: rgba(37, 211, 102, 0.05);
    transform: translateY(-2px);
}
#link-whatsapp:hover svg { fill: #25d366; }
#link-whatsapp:hover span { color: #25d366; }

#link-facebook:hover {
    border-color: #1877f2;
    background: rgba(24, 119, 242, 0.05);
    transform: translateY(-2px);
}
#link-facebook:hover svg { fill: #1877f2; }
#link-facebook:hover span { color: #1877f2; }

/* Modal Checkout Popup */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 15px;
}

.modal-content {
    background: #fdfbf8;
    border: 1.5px solid rgba(180, 150, 110, 0.3);
    border-radius: 16px;
    width: 100%;
    max-width: 380px;
    position: relative;
    animation: modalSlide 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    overflow: hidden;
}

@keyframes modalSlide {
    from {
        transform: translateY(20px) scale(0.95);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(180, 150, 110, 0.15);
}

.modal-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: #b45309;
    letter-spacing: 0.5px;
}

.modal-close {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    border-radius: 50%;
}

.modal-close:hover {
    background: rgba(0,0,0,0.05);
}

.modal-close svg {
    width: 18px;
    height: 18px;
    fill: #7c7267;
}

.modal-body {
    padding: 16px;
    max-height: 75vh;
    overflow-y: auto;
}

/* Order Form styling */
.order-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.form-group label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #4a453f;
}

.form-group input, .form-group textarea, .form-group select {
    padding: 8px 12px;
    font-size: 0.8rem;
    border: 1px solid rgba(180, 150, 110, 0.3);
    border-radius: 6px;
    background: #ffffff;
    color: #3e3a36;
    outline: none;
    width: 100%;
}

.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    border-color: #d97706;
    box-shadow: 0 0 0 2px rgba(217, 119, 6, 0.1);
}

.btn-submit-order {
    background: #b45309;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 8px;
}

.btn-submit-order:hover {
    background: #7c2d12;
}

/* Footer & Net wrapper copyright */
.footer {
    margin-top: auto;
    padding: 8px 10px 3px 10px;
    text-align: center;
    border-top: 1px solid rgba(180, 150, 110, 0.1);
}

.footer p {
    font-size: 0.7rem;
    color: #8c8276;
}

/* ==========================================================================
   TABLET & DESKTOP LAYOUT (2 Columns)
   ========================================================================== */
@media (min-width: 768px) {
    body {
        padding: 30px;
    }

    /* Floating dashboard wrapper container styling */
    .wraper {
        max-width: 900px;
        display: grid;
        grid-template-columns: 1.1fr 1fr;
        grid-template-areas: 
            "left-col right-col"
            "footer footer";
        padding: 24px;
        gap: 25px;
        border-radius: 20px;
        border: 1px solid rgba(180, 150, 110, 0.25);
        box-shadow: 
            0 20px 40px rgba(0, 0, 0, 0.05),
            0 0 50px rgba(180, 150, 110, 0.03);
    }

    /* Left Side Branding Column */
    .brand-panel {
        grid-area: left-col;
        min-width: 0;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        gap: 15px;
        border-right: 1px solid rgba(180, 150, 110, 0.15);
        padding-right: 25px;
    }

    .header {
        padding: 0 0 5px 0;
        justify-content: flex-start;
        background: none;
    }

    .logo {
        height: 40px;
    }

    .slider-container {
        width: 100%;
        margin: 0;
        border-radius: 12px;
        border: 1px solid rgba(180, 150, 110, 0.25);
    }

    .notice {
        margin: 0;
        border-radius: 10px;
    }

    /* Right Side Action Column */
    .main-content {
        grid-area: right-col;
        min-width: 0;
        padding: 0;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        gap: 15px;
    }

    .cta-section {
        flex: 1.1;
        justify-content: center;
        padding: 24px 20px;
        border-radius: 16px;
    }

    .vpn-section {
        flex: 1.3;
        padding: 16px 20px;
        border-radius: 14px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .social-section {
        margin-top: 0;
        flex-shrink: 0;
    }

    /* Footer spanning full width at the bottom */
    .footer {
        grid-area: footer;
        width: 100%;
        margin-top: 10px;
        padding-top: 14px;
        border-top: 1px solid rgba(180, 150, 110, 0.15);
        text-align: center;
    }
}
