/* ============================================================
   SUFI SAINTS — shop.css (Shop / Books Page)
   Aesthetic: Mystical Islamic Art · Deep Jewel Tones · Gold Accents
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@400;700;900&family=Cinzel:wght@400;600;700&family=Lora:ital,wght@0,400;0,500;0,600;1,400;1,500&display=swap');

/* ================= CSS VARIABLES ================= */

:root {
    --deep-navy:    #0a1628;
    --royal-blue:   #0d2246;
    --midnight:     #050e1f;
    --gold:         #c9a84c;
    --gold-light:   #e8c97a;
    --gold-pale:    #f5e6b8;
    --cream:        #fdf6e3;
    --text-dark:    #1a1a2e;
    --text-mid:     #4a4a6a;
    --white:        #ffffff;
    --shadow-gold:  0 4px 24px rgba(201,168,76,0.18);
    --shadow-deep:  0 8px 40px rgba(5,14,31,0.35);
    --border-gold:  1px solid rgba(201,168,76,0.35);
    --radius-sm:    8px;
    --radius-md:    16px;
    --radius-lg:    28px;
    --transition:   all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ================= RESET & BASE ================= */

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Lora', Georgia, serif;
    background: var(--cream);
    color: var(--text-dark);
    line-height: 1.8;
    overflow-x: hidden;
}

/* ================= HEADER ================= */

header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--midnight);
    border-bottom: 2px solid var(--gold);
    box-shadow: 0 2px 30px rgba(201,168,76,0.15);
}

header::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(
        45deg, transparent, transparent 20px,
        rgba(201,168,76,0.03) 20px, rgba(201,168,76,0.03) 40px
    );
    pointer-events: none;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 30px;
    position: relative;
}

.logo {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--gold);
    box-shadow: 0 0 0 3px rgba(201,168,76,0.2), var(--shadow-gold);
    transition: var(--transition);
    flex-shrink: 0;
}

.logo:hover {
    transform: rotate(5deg);
    box-shadow: 0 0 0 4px rgba(201,168,76,0.5);
}

.heading-title {
    flex: 1;
    text-align: center;
    font-family: 'Cinzel Decorative', serif;
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--gold-light);
    margin: 0 20px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 2px 8px rgba(201,168,76,0.5);
    letter-spacing: 2px;
}

nav {
    display: flex;
    align-items: center;
}

.navbar {
    list-style: none;
    display: flex;
    gap: 6px;
    margin: 0;
    padding: 0;
}

.navbar li { list-style: none; }

.navbar a {
    font-family: 'Cinzel', serif;
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    letter-spacing: 1.2px;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    transition: var(--transition);
    display: block;
}

.navbar a:hover,
.navbar a.active {
    color: var(--gold-light);
    border-color: rgba(201,168,76,0.4);
    background: rgba(201,168,76,0.08);
    text-shadow: 0 0 12px rgba(201,168,76,0.4);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    padding: 6px;
    border-radius: 6px;
    border: 1px solid rgba(201,168,76,0.3);
    transition: var(--transition);
}

.hamburger:hover {
    border-color: var(--gold);
    background: rgba(201,168,76,0.08);
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--gold-light);
    border-radius: 2px;
}

/* ================= SEARCH BAR ================= */

.search-bar-section {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    margin: 36px auto 10px;
    max-width: 560px;
    padding: 0 20px;
}

#search-bar {
    flex: 1;
    padding: 13px 20px;
    background: var(--white);
    border: var(--border-gold);
    border-right: none;
    border-radius: 50px 0 0 50px;
    font-family: 'Lora', serif;
    font-size: 0.95rem;
    color: var(--text-dark);
    outline: none;
    transition: var(--transition);
}

#search-bar::placeholder {
    color: var(--text-light, #aaa);
    font-style: italic;
}

#search-bar:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201,168,76,0.12);
}

.search-bar-section button {
    padding: 13px 24px;
    background: linear-gradient(135deg, var(--royal-blue), #1a3a6b);
    color: var(--gold-light);
    border: 2px solid rgba(201,168,76,0.5);
    border-left: none;
    border-radius: 0 50px 50px 0;
    font-family: 'Cinzel', serif;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: var(--transition);
}

.search-bar-section button:hover {
    background: linear-gradient(135deg, #1a3a6b, #002855);
    border-color: var(--gold);
    color: var(--gold-light);
    letter-spacing: 2px;
}

/* ================= BOOK SECTION ================= */

.book-section {
    max-width: 1100px;
    margin: 20px auto 40px;
    padding: 20px 24px;
}

.book-section h2 {
    font-family: 'Cinzel Decorative', serif;
    font-size: 1.8rem;
    color: var(--royal-blue);
    text-align: center;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

/* Ornament */
.book-section > p.ornament-line,
.book-section::before {
    content: '✦  ✦  ✦';
    display: block;
    text-align: center;
    color: var(--gold);
    letter-spacing: 14px;
    font-size: 0.82rem;
    opacity: 0.55;
    margin-bottom: 36px;
}

/* INDIVIDUAL BOOK CARD */
.book {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: center;
    background: var(--white);
    border: var(--border-gold);
    border-radius: var(--radius-lg);
    padding: 34px 36px;
    margin-bottom: 32px;
    box-shadow: var(--shadow-gold);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    animation: bookReveal 0.6s ease both;
}

@keyframes bookReveal {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Top accent */
.book::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.book:hover {
    box-shadow: var(--shadow-gold), 0 16px 50px rgba(201,168,76,0.15);
    transform: translateY(-4px);
}

/* BOOK DETAILS */
.book-details {
    flex: 2;
    min-width: 220px;
}

.book-title {
    font-family: 'Cinzel', serif;
    font-size: 1.65rem;
    color: var(--royal-blue);
    margin-bottom: 12px;
    letter-spacing: 0.5px;
    line-height: 1.3;
}

.book-summary {
    font-size: 1rem;
    color: var(--text-mid);
    margin-bottom: 14px;
    line-height: 1.8;
    font-style: italic;
}

.book-author {
    font-family: 'Cinzel', serif;
    font-size: 0.82rem;
    color: var(--gold);
    letter-spacing: 1px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 22px;
}

/* BUY BUTTON */
.buy-now-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--royal-blue), #1a3a6b);
    color: var(--gold-light);
    padding: 12px 28px;
    text-decoration: none;
    border-radius: 50px;
    font-family: 'Cinzel', serif;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    border: 2px solid rgba(201,168,76,0.5);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.buy-now-button:hover {
    background: linear-gradient(135deg, #1a3a6b, #002855);
    border-color: var(--gold);
    color: var(--gold-light);
    letter-spacing: 2.5px;
    box-shadow: var(--shadow-gold);
    transform: translateY(-2px);
}

/* BOOK IMAGE */
.book-image-container {
    flex: 1;
    text-align: center;
    min-width: 140px;
}

.book-image {
    max-width: 100%;
    max-height: 300px;
    object-fit: contain;
    border-radius: var(--radius-md);
    border: 2px solid rgba(201,168,76,0.3);
    box-shadow: var(--shadow-deep);
    transition: var(--transition);
}

.book-image:hover {
    transform: scale(1.04) rotate(1deg);
    box-shadow: var(--shadow-deep), var(--shadow-gold);
    border-color: var(--gold);
}

/* ================= BOOK IMAGE CAROUSEL ================= */

.book-carousel {
    position: relative;
    flex: 1;
    min-width: 140px;
    text-align: center;
    user-select: none;
}

.carousel-track-wrapper {
    overflow: hidden;
    border-radius: var(--radius-md);
    border: 2px solid rgba(201,168,76,0.3);
    box-shadow: var(--shadow-deep);
    transition: border-color 0.3s ease;
    background: var(--midnight);
}

.book-carousel:hover .carousel-track-wrapper {
    border-color: var(--gold);
}

.carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.carousel-slide {
    min-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--midnight);
}

.carousel-slide img {
    width: 100%;
    max-height: 300px;
    object-fit: contain;
    display: block;
    border-radius: calc(var(--radius-md) - 2px);
}

/* Slide label (optional badge e.g. "Inauguration") */
.carousel-label {
    position: absolute;
    bottom: 38px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(5,14,31,0.72);
    color: var(--gold-light);
    font-family: 'Cinzel', serif;
    font-size: 0.68rem;
    letter-spacing: 1.2px;
    padding: 3px 12px;
    border-radius: 20px;
    border: 1px solid rgba(201,168,76,0.35);
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.book-carousel:hover .carousel-label {
    opacity: 1;
}

/* Prev / Next arrows */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(5,14,31,0.65);
    border: 1px solid rgba(201,168,76,0.4);
    color: var(--gold-light);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: var(--transition);
    opacity: 0;
}

.book-carousel:hover .carousel-btn {
    opacity: 1;
}

.carousel-btn:hover {
    background: var(--royal-blue);
    border-color: var(--gold);
    box-shadow: var(--shadow-gold);
}

.carousel-btn.prev { left: 8px; }
.carousel-btn.next { right: 8px; }

/* Dot indicators */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 10px;
}

.carousel-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(201,168,76,0.3);
    border: 1px solid rgba(201,168,76,0.5);
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
}

.carousel-dot.active {
    background: var(--gold);
    border-color: var(--gold);
    transform: scale(1.25);
}

.carousel-dot:hover {
    background: var(--gold-light);
}

/* Counter badge top-right */
.carousel-counter {
    position: absolute;
    top: 8px;
    right: 10px;
    background: rgba(5,14,31,0.7);
    color: var(--gold-pale);
    font-family: 'Cinzel', serif;
    font-size: 0.65rem;
    letter-spacing: 1px;
    padding: 2px 8px;
    border-radius: 20px;
    border: 1px solid rgba(201,168,76,0.3);
    pointer-events: none;
    z-index: 5;
}

/* Mobile tweaks */
@media (max-width: 768px) {
    .carousel-btn { opacity: 1; width: 28px; height: 28px; font-size: 0.85rem; }
    .carousel-slide img { max-height: 220px; }
}

/* ================= FOOTER ================= */

footer {
    background: linear-gradient(180deg, var(--midnight) 0%, #020914 100%);
    color: var(--gold-pale);
    border-top: 2px solid var(--gold);
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-light), transparent);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    padding: 50px 50px 30px;
}

.footer-section {
    flex: 1;
    min-width: 180px;
}

.footer-section h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.05rem;
    color: var(--gold-light);
    margin-bottom: 14px;
    letter-spacing: 1px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(201,168,76,0.3);
}

.footer-section p,
.footer-section ul {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.65);
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li { margin-bottom: 6px; }

.footer-section ul li a {
    color: rgba(201,168,76,0.8);
    text-decoration: none;
    font-family: 'Cinzel', serif;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--gold-light);
    letter-spacing: 1.5px;
}

.footer-bottom {
    font-family: 'Cinzel', serif;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.4);
    border-top: 1px solid rgba(201,168,76,0.15);
    padding: 16px 0;
    text-align: center;
    letter-spacing: 1px;
}

/* ================= MOBILE ================= */

@media (max-width: 768px) {
    .heading-title { font-size: 1.1rem; }

    .hamburger { display: flex; }

    nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
    }

    .navbar {
        width: 100%;
        background: var(--midnight);
        border-top: 1px solid rgba(201,168,76,0.3);
        flex-direction: column;
        align-items: center;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
    }

    .navbar.active {
        max-height: 500px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    }

    .navbar li {
        width: 100%;
        text-align: center;
        border-top: 1px solid rgba(201,168,76,0.1);
    }

    .navbar a {
        display: block;
        width: 100%;
        padding: 12px 20px;
        border-radius: 0;
        border: none;
        font-size: 0.85rem;
    }

    .logo-container { padding: 10px 16px; }

    .search-bar-section {
        margin: 24px auto 6px;
        padding: 0 14px;
    }

    .book-section { padding: 16px 14px; }

    .book {
        flex-direction: column;
        padding: 24px 20px;
        gap: 20px;
    }

    .book-image-container {
        order: -1;
        width: 100%;
    }

    .book-image { max-height: 220px; }
    .book-title { font-size: 1.3rem; }

    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 30px 20px 20px;
    }
}

@media (max-width: 480px) {
    .logo { width: 46px; height: 46px; }
    .heading-title { font-size: 0.92rem; }

    #search-bar { font-size: 0.88rem; padding: 11px 14px; }
    .search-bar-section button { font-size: 0.75rem; padding: 11px 16px; }

    .book { padding: 20px 14px; border-radius: var(--radius-md); }
    .book-title { font-size: 1.15rem; }
    .book-summary { font-size: 0.92rem; }

    .buy-now-button {
        font-size: 0.75rem;
        padding: 10px 22px;
        letter-spacing: 1.5px;
    }

    .footer-bottom { font-size: 0.72rem; }
}

/* ================= BOOK PREVIEW SECTION ================= */

.book-preview-section {
    max-width: 980px;
    margin: 10px auto 38px;
    padding: 32px 24px 36px;
    background: linear-gradient(135deg, #fdfaf3 0%, #f5f0e4 60%, #fdf6e3 100%);
    border: 1px solid rgba(201,168,76,0.28);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

/* Decorative top shimmer */
.book-preview-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, var(--gold) 40%, var(--gold-light) 60%, transparent 100%);
    border-radius: 20px 20px 0 0;
}

/* Subtle background pattern */
.book-preview-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(201,168,76,0.06) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
    border-radius: 20px;
}

/* Header row */
.preview-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 4px;
}

.preview-ornament {
    color: var(--gold);
    font-size: 0.7rem;
    opacity: 0.7;
    letter-spacing: 2px;
}

.preview-title {
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--royal-blue);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin: 0;
}

.preview-subtitle {
    text-align: center;
    font-family: 'Lora', serif;
    font-style: italic;
    font-size: 0.85rem;
    color: var(--text-mid);
    margin-bottom: 24px;
    opacity: 0.8;
}

/* 3-page grid */
.preview-pages-wrapper {
    display: flex;
    gap: 16px;
    align-items: flex-end;
    justify-content: center;
    position: relative;
    z-index: 1;
}

/* Individual page card */
.preview-page {
    flex: 1;
    max-width: 240px;
    animation: previewReveal 0.55s ease both;
    animation-delay: var(--delay, 0s);
}

@keyframes previewReveal {
    from { opacity: 0; transform: translateY(14px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.preview-page-inner {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    border: 1.5px solid rgba(201,168,76,0.3);
    box-shadow: 0 4px 18px rgba(5,14,31,0.14), 0 1px 4px rgba(201,168,76,0.1);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: zoom-in;
    background: var(--midnight);
}

.preview-page-inner:hover {
    transform: translateY(-5px) scale(1.025);
    border-color: var(--gold);
    box-shadow: 0 10px 34px rgba(5,14,31,0.22), 0 0 0 1px rgba(201,168,76,0.4), var(--shadow-gold);
}

.preview-page-inner img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    object-position: top;
    display: block;
    transition: transform 0.4s ease;
}

.preview-page-inner:hover img {
    transform: scale(1.03);
}

/* Featured (centre) page — slightly taller */
.preview-page.featured {
    transform: translateY(-8px);
}

.preview-page.featured .preview-page-inner {
    border-color: rgba(201,168,76,0.5);
    box-shadow: 0 8px 28px rgba(5,14,31,0.2), 0 0 0 2px rgba(201,168,76,0.25), var(--shadow-gold);
}

.preview-page.featured .preview-page-inner img {
    height: 270px;
}

.preview-page.featured:hover {
    transform: translateY(-14px);
}

/* Page number badge */
.page-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, rgba(5,14,31,0.75) 0%, transparent 100%);
    padding: 22px 10px 8px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.preview-page-inner:hover .page-overlay {
    opacity: 1;
}

.page-num {
    font-family: 'Cinzel', serif;
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--gold-light);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Coming Soon placeholder */
.preview-coming-soon {
    height: 210px;
    background: linear-gradient(135deg, #f0ead8, #e8dfc5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: default;
}

.preview-page.featured .preview-coming-soon {
    height: 250px;
}

.coming-soon-icon {
    font-size: 2rem;
    opacity: 0.4;
    margin-bottom: 4px;
}

.preview-coming-soon p {
    font-family: 'Cinzel', serif;
    font-size: 0.7rem;
    color: var(--text-mid);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    opacity: 0.6;
    margin: 0;
}

/* Lightbox overlay for full-page view */
.preview-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(5,14,31,0.92);
    z-index: 20000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(6px);
    animation: modalFadeIn 0.25s ease;
    cursor: zoom-out;
}

.preview-lightbox.open {
    display: flex;
}

.preview-lightbox img {
    max-width: 88vw;
    max-height: 88vh;
    object-fit: contain;
    border-radius: 12px;
    border: 2px solid rgba(201,168,76,0.4);
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
    animation: modalSlideUp 0.3s ease;
}

.lightbox-close {
    position: absolute;
    top: 20px; right: 26px;
    background: rgba(201,168,76,0.15);
    border: 1px solid rgba(201,168,76,0.4);
    color: var(--gold-light);
    width: 38px; height: 38px;
    border-radius: 50%;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s;
}

.lightbox-close:hover {
    background: rgba(201,168,76,0.3);
    border-color: var(--gold);
}

/* Responsive */
@media (max-width: 768px) {
    .preview-pages-wrapper {
        gap: 10px;
    }
    .preview-page-inner img { height: 160px; }
    .preview-page.featured .preview-page-inner img { height: 185px; }
    .preview-coming-soon { height: 140px; }
    .preview-page.featured .preview-coming-soon { height: 165px; }
    .preview-page { max-width: 160px; }
}

@media (max-width: 480px) {
    .book-preview-section { padding: 22px 14px 26px; }
    .preview-page-inner img { height: 120px; }
    .preview-page.featured .preview-page-inner img { height: 140px; }
    .preview-page { max-width: 110px; }
    .preview-title { font-size: 0.85rem; letter-spacing: 2px; }
}


/* ============================================================
   ANNOUNCEMENT MARQUEE BAR — Islamic Premium Style
   ============================================================ */

/* ---- Outer container ---- */
.announcement-bar {
    position: sticky;
    top: 0;
    z-index: 999;
    display: flex;
    align-items: center;
    background: linear-gradient(
        90deg,
        #5a0000 0%,
        #8b0000 30%,
        #b30000 50%,
        #8b0000 70%,
        #5a0000 100%
    );
    border-top: 1px solid rgba(255, 80, 80, 0.55);
    border-bottom: 2px solid rgba(255, 80, 80, 0.55);
    overflow: hidden;
    height: 46px;
    

    /* Subtle geometric trellis overlay */
    background-image:
        linear-gradient(
            90deg,
            #5a0000 0%,
            #8b0000 30%,
            #b30000 50%,
            #8b0000 70%,
            #5a0000 100%
        ),
        repeating-linear-gradient(
            60deg,
            transparent,
            transparent 18px,
            rgba(255,255,255,0.05) 18px,
            rgba(255,255,255,0.05) 19px
        ),
        repeating-linear-gradient(
            -60deg,
            transparent,
            transparent 18px,
            rgba(255,255,255,0.05) 18px,
            rgba(255,255,255,0.05) 19px
        );

    background-blend-mode: normal, screen, screen;
}

/* Top shimmer line */
.announcement-bar::before {
    content: '';
    position: sticky;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(201,168,76,0.0) 10%,
        rgba(232,201,122,0.8) 50%,
        rgba(201,168,76,0.0) 90%,
        transparent 100%
    );
}

/* ---- Decorative star emblems ---- */
.announcement-emblem {
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: sticky;
    top: 0;
    z-index: 2;
}
.announcement-emblem svg {
    width: 24px;
    height: 24px;
    filter: drop-shadow(0 0 5px rgba(201,168,76,0.55));
}
.announcement-emblem--left {
    background: linear-gradient(90deg, rgba(5,14,31,0.9), transparent);
    animation: emblemPulse 3s ease-in-out infinite;
}
.announcement-emblem--right {
    background: linear-gradient(-90deg, rgba(5,14,31,0.9), transparent);
    animation: emblemPulse 3s ease-in-out infinite 1.5s;
}
@keyframes emblemPulse {
    0%, 100% { opacity: 0.85; transform: scale(1);   }
    50%       { opacity: 1;    transform: scale(1.07); }
}

/* ---- Scrolling track ---- */
.marquee-track {
    flex: 1 1 auto;
    overflow: hidden;
    position: sticky;
    top: 0; left: 0; right: 0;
    /* Fade edges into the bar background */
    -webkit-mask-image: linear-gradient(
        90deg,
        transparent 0%,
        black 12%,
        black 88%,
        transparent 100%
    );
    mask-image: linear-gradient(
        90deg,
        transparent 0%,
        black 12%,
        black 88%,
        transparent 100%
    );
}

/* ---- Inner scrolling ribbon ---- */
.marquee-inner {
    display: inline-flex;
    white-space: nowrap;
    animation: marqueeScroll 22s linear infinite;
    will-change: transform;
}
.marquee-inner:hover {
    animation-play-state: paused;
}

@keyframes marqueeScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-33.333%); }
}

/* ---- Individual text chunks ---- */
.marquee-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0 48px;
    font-family: 'Cinzel', serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2.5px;
    color: rgba(232, 201, 122, 0.88);
    text-transform: uppercase;
}

/* Language names — highlighted accent */
.marquee-lang {
    color: var(--gold-light);
    font-weight: 700;
    letter-spacing: 3px;
    font-size: 0.82rem;
    position: sticky;
    top: 0;
    text-shadow: 0 0 12px rgba(232,201,122,0.45);
}

/* Bullet separators */
.marquee-sep {
    color: var(--gold);
    font-size: 0.65rem;
    opacity: 0.7;
    margin: 0 2px;
}

/* Star ornaments */
.marquee-bismillah,
.marquee-bismallah {
    color: var(--gold);
    font-size: 0.75rem;
    opacity: 0.75;
    animation: starSpin 6s linear infinite;
    display: inline-block;
    text-shadow: 0 0 8px rgba(201,168,76,0.6);
}
@keyframes starSpin {
    0%   { transform: rotate(0deg);   opacity: 0.6; }
    50%  { transform: rotate(180deg); opacity: 1;   }
    100% { transform: rotate(360deg); opacity: 0.6; }
}

/* ---- Responsive ---- */
@media (max-width: 600px) {
    .announcement-bar        { height: 40px; }
    .announcement-emblem     { width: 36px; height: 40px; }
    .announcement-emblem svg { width: 18px; height: 18px; }
    .marquee-item {
        font-size: 0.7rem;
        letter-spacing: 1.8px;
        padding: 0 32px;
        gap: 7px;
    }
    .marquee-lang { font-size: 0.72rem; letter-spacing: 2px; }
    .marquee-inner { animation-duration: 18s; }
}



/* ============================================================
   WHATSAPP BUY SYSTEM
   ============================================================ */

/* ---- Wrapper ---- */
.whatsapp-buy-wrapper {
    margin-top: 28px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
}

/* ---- The Buy Button ---- */
.whatsapp-buy-btn {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    background: linear-gradient(135deg, #075e54 0%, #128c7e 55%, #25d366 100%);
    color: #ffffff;
    text-decoration: none;
    padding: 14px 30px 14px 24px;
    border-radius: 50px;
    font-family: 'Cinzel', serif;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 2.2px;
    text-transform: uppercase;
    border: 2px solid rgba(37, 211, 102, 0.45);
    box-shadow:
        0 4px 20px rgba(37, 211, 102, 0.28),
        0 1px 0 rgba(255,255,255,0.12) inset;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* Shimmer sweep on hover */
.whatsapp-buy-btn::before {
    content: '';
    position: absolute;
    top: 0; left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent 0%,
        rgba(255,255,255,0.18) 50%,
        transparent 100%
    );
    transform: skewX(-20deg);
    transition: left 0.55s ease;
    pointer-events: none;
}
.whatsapp-buy-btn:hover::before {
    left: 125%;
}

.whatsapp-buy-btn:hover {
    background: linear-gradient(135deg, #064e46 0%, #0fa570 55%, #1db954 100%);
    border-color: rgba(37, 211, 102, 0.75);
    box-shadow:
        0 6px 28px rgba(37, 211, 102, 0.42),
        0 1px 0 rgba(255,255,255,0.15) inset;
    transform: translateY(-2px);
    letter-spacing: 2.6px;
    color: #ffffff;
}

.whatsapp-buy-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 12px rgba(37,211,102,0.25);
}

/* WhatsApp logo inside button */
.whatsapp-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.25));
}

/* ---- Notice box ---- */
.whatsapp-notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: linear-gradient(
        135deg,
        rgba(13, 34, 70, 0.07) 0%,
        rgba(201, 168, 76, 0.10) 100%
    );
    border: 1px solid rgba(201, 168, 76, 0.38);
    border-left: 4px solid var(--gold);
    border-radius: 10px;
    padding: 13px 16px;
    max-width: 520px;
    position: relative;
    overflow: hidden;
}

/* Faint geometric background texture */
.whatsapp-notice::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 12px,
            rgba(201,168,76,0.04) 12px,
            rgba(201,168,76,0.04) 13px
        );
    pointer-events: none;
}

.whatsapp-notice-icon {
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 1px;
}

.whatsapp-notice p {
    font-family: 'Lora', serif;
    font-size: 0.855rem;
    font-style: italic;
    color: var(--royal-blue);
    line-height: 1.65;
    margin: 0;
    position: relative; /* above ::before overlay */
}

/* ---- Responsive ---- */
@media (max-width: 600px) {
    .whatsapp-buy-btn {
        font-size: 0.75rem;
        letter-spacing: 1.8px;
        padding: 12px 22px 12px 18px;
    }
    .whatsapp-icon { width: 19px; height: 19px; }
    .whatsapp-notice { max-width: 100%; }
    .whatsapp-notice p { font-size: 0.8rem; }
}

