/* 
   pages.css — Specific styles for marketing, legal, and informative pages
   To avoid inline CSS and keep main style.css clean.
*/

/* ═══════════════════════════════════════════════════════════════
   1. LEGAL PAGES (Privacy & Terms)
   ═══════════════════════════════════════════════════════════════ */
.legal-container {
    max-width: 1200px;
    margin: 0 auto;
}

.legal-section {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
}

.legal-section h2 {
    color: var(--primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--highlight);
}

.legal-section h3 {
    color: var(--neutral-900);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.legal-section p {
    line-height: 1.8;
    color: var(--neutral-700);
    margin-bottom: 1rem;
}

.legal-section ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.legal-section li {
    line-height: 1.8;
    color: var(--neutral-700);
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .legal-section {
        padding: 1.5rem 1rem;
    }
}

/* ═══════════════════════════════════════════════════════════════
   2. HERO SECTIONS (Shared between Home/About/Contact)
   ═══════════════════════════════════════════════════════════════ */
.page-hero {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border-radius: var(--border-radius);
    margin-bottom: 3rem;
}

.page-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.page-hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.95;
}

/* ═══════════════════════════════════════════════════════════════
   3. HOME PAGE: HERO V2
   ═══════════════════════════════════════════════════════════════ */
.hero-v2 {
    position: relative;
    min-height: 200px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #f0faf5;
}

.hero-v2__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-v2__bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 70% center;
}

.hero-v2__bg-fade {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(240, 250, 245, 1) 0%,
        rgba(240, 250, 245, 0.97) 25%,
        rgba(240, 250, 245, 0.88) 40%,
        rgba(240, 250, 245, 0.55) 60%,
        rgba(240, 250, 245, 0.15) 80%,
        transparent 100%
    );
    pointer-events: none;
}

.hero-v2__container {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    padding: 0.75rem 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    align-items: center;
}

.hero-v2__card {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    padding: 1.25rem 1.75rem;
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.06), 0 1px 4px rgba(0, 0, 0, 0.04);
    max-width: 540px;
}

.hero-v2__headline {
    font-size: clamp(1.4rem, 2.6vw, 2rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: #111827;
    margin-bottom: 0.25rem;
}

.hero-v2__subheadline {
    font-size: 0.9rem;
    line-height: 1.4;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.hero-v2__features {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

.hero-v2__feature-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.35rem 0.75rem;
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: default;
}

.hero-v2__feature-row:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.hero-v2__feature-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
}

.hero-v2__feature-icon--green { background: #dcfce7; color: #166534; }
.hero-v2__feature-icon--purple { background: #ede9fe; color: #6d28d9; }
.hero-v2__feature-icon--amber { background: #fef3c7; color: #b45309; }
.hero-v2__feature-icon--teal { background: #d1fae5; color: #047857; }

.hero-v2__feature-text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}

.hero-v2__feature-text strong {
    font-size: 0.92rem;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.3;
}

.hero-v2__feature-text span {
    font-size: 0.8rem;
    color: #6b7280;
    line-height: 1.35;
}

.hero-v2__cta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.hero-v2__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1.6rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.88rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
    font-family: inherit;
    border: none;
}

.hero-v2__btn--primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 14px rgba(4, 120, 87, 0.25);
}

.hero-v2__btn--primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(4, 120, 87, 0.35);
}

.hero-v2__btn--outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid rgba(4, 120, 87, 0.3);
}

.hero-v2__btn--outline:hover {
    background: rgba(4, 120, 87, 0.05);
    border-color: var(--primary);
    color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(4, 120, 87, 0.12);
}

.hero-v2__trust {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 1.1rem;
    background: #ffffff;
    border: 1px solid rgba(4, 120, 87, 0.08);
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
}

.hero-v2__trust:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(4, 120, 87, 0.08);
    border-color: rgba(4, 120, 87, 0.15);
}

.hero-v2__trust-stars {
    display: flex;
    gap: 0.12rem;
    color: #f59e0b;
    font-size: 0.9rem;
}

.hero-v2__trust-text {
    font-size: 0.82rem;
    color: #6b7280;
}

.hero-v2__trust-text strong {
    color: #111827;
    font-weight: 700;
    display: inline-block;
    min-width: 4rem;
    text-align: center;
    font-variant-numeric: tabular-nums;
    vertical-align: bottom;
}

.hero-fade-in {
    opacity: 0;
    transform: translateY(18px);
    animation: heroFadeUp 0.65s ease forwards;
}

.hero-fade-in--delay-1 { animation-delay: 0.1s; }
.hero-fade-in--delay-2 { animation-delay: 0.2s; }
.hero-fade-in--delay-3 { animation-delay: 0.3s; }
.hero-fade-in--delay-4 { animation-delay: 0.4s; }
.hero-fade-in--delay-5 { animation-delay: 0.5s; }

@keyframes heroFadeUp {
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1024px) {
    .hero-v2__container { grid-template-columns: 1.2fr 0.8fr; padding: 2.5rem 1.5rem; }
    .hero-v2__card { max-width: 100%; }
}

@media (max-width: 768px) {
    .hero-v2 { min-height: auto; }
    .hero-v2__bg-fade {
        background: linear-gradient(to bottom, rgba(240, 250, 245, 0.92) 0%, rgba(240, 250, 245, 0.8) 50%, rgba(240, 250, 245, 0.55) 100%);
    }
    .hero-v2__container { grid-template-columns: 1fr; padding: 1.25rem 1rem; }
    .hero-v2__card { max-width: 100%; padding: 1.25rem 1.25rem; text-align: center; }
    .hero-v2__feature-row { text-align: left; }
    .hero-v2__cta { justify-content: center; }
    .hero-v2__btn { width: 100%; }
    .hero-v2__trust { justify-content: center; }
}

@media (max-width: 480px) {
    .hero-v2__container { padding: 1rem 0.75rem; }
    .hero-v2__card { padding: 1.15rem 1rem; border-radius: 14px; }
    .hero-v2__headline { font-size: 1.3rem; }
    .hero-v2__subheadline { font-size: 0.85rem; }
}

/* ═══════════════════════════════════════════════════════════════
   4. SECTION UTILITIES (Generic)
   ═══════════════════════════════════════════════════════════════ */
.section-white {
    background: white;
    padding: 3rem 2rem;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
}

.section-highlight {
    background: var(--highlight);
    padding: 3rem 2rem;
    border-radius: var(--border-radius);
    margin-bottom: 3rem;
}

.section-primary-gradient {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border-radius: var(--border-radius);
}

.content-narrow {
    max-width: 800px;
    margin: 0 auto;
}

/* ═══════════════════════════════════════════════════════════════
   5. ABOUT PAGE SPECIFIC
   ═══════════════════════════════════════════════════════════════ */
.value-card {
    text-align: center;
}

.value-card-icon {
    margin-bottom: 1.5rem;
    color: var(--primary);
    font-size: 3rem;
}

.offer-item {
    padding: 1.5rem;
}

.offer-item h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: var(--neutral-900);
}

.offer-item h3 i {
    color: var(--primary);
}

.stat-item {
    text-align: center;
    padding: 1rem;
}

.stat-number {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

/* ═══════════════════════════════════════════════════════════════
   6. CONTACT PAGE SPECIFIC
   ═══════════════════════════════════════════════════════════════ */
.contact-hero {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 3rem 2rem;
    border-radius: var(--border-radius);
    margin-bottom: 3rem;
    text-align: center;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

.contact-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.info-icon {
    width: 40px;
    height: 40px;
    background: var(--highlight);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--neutral-200);
}

.social-icon {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

/* Feature Frames (Bottom of Contact Page) */
.feature-frame {
    position: relative;
    background: white;
    border: 2px solid var(--primary);
    border-radius: 16px;
    padding: 3rem 2rem 2rem 2rem;
    margin-bottom: 3rem;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
    margin-top: 2rem;
}

.feature-frame-badge {
    position: absolute;
    top: -18px;
    left: 3rem;
    background: var(--primary);
    color: white;
    padding: 0.5rem 1.75rem;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

.feature-frame-content {
    color: #1e3a8a;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    font-size: 1.05rem;
    line-height: 1.6;
}

.feature-frame-list {
    list-style: none;
    padding: 0;
    margin: 0;
    color: #1f2937;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.8;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.feature-frame-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.feature-frame-list i {
    color: var(--primary);
    font-size: 1.5rem;
    line-height: 1;
}

/* ═══════════════════════════════════════════════════════════════
   7. NEWSLETTER SECTION — Premium Redesign
   ═══════════════════════════════════════════════════════════════ */
.newsletter-banner {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 5rem 2rem;
    border-radius: 16px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Subtle decorative radial glow behind the form */
.newsletter-banner::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
    pointer-events: none;
}

.newsletter-form-p {
    margin-bottom: 2.5rem;
    font-size: 1.15rem;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.6;
}

.newsletter-form-inline {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 560px;
    margin: 0 auto;
    padding: 0 1rem;
    background: transparent;
    box-shadow: none;
    position: relative;
    z-index: 1;
}

.newsletter-form-inline input {
    flex: 1;
    padding: 1rem 1.25rem;
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 10px;
    width: 100%;
    font-size: 1.05rem;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
}

.newsletter-form-inline input::placeholder {
    color: rgba(255, 255, 255, 0.55);
}

.newsletter-form-inline input:focus {
    outline: none;
    border-color: #fbbf24;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.25), 0 0 20px rgba(251, 191, 36, 0.12);
}

.newsletter-form-inline button {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    border: none;
    padding: 1rem 2rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    width: 100%;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
}

.newsletter-form-inline button:hover {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(245, 158, 11, 0.45);
}

.newsletter-form-inline button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

@media (min-width: 768px) {
    .newsletter-form-inline {
        flex-direction: row !important;
        gap: 0.75rem !important;
    }
    .newsletter-form-inline button {
        width: auto !important;
        white-space: nowrap;
        padding: 1rem 2.5rem;
    }
}

@media (max-width: 480px) {
    .newsletter-banner {
        padding: 3.5rem 1rem;
        border-radius: 12px;
    }
    .newsletter-form-inline input {
        padding: 0.9rem 1rem;
        font-size: 1rem;
    }
    .newsletter-form-inline button {
        padding: 0.9rem 1.5rem;
    }
}

#newsletter-message.success {
    background: rgba(209, 250, 229, 0.95);
    color: #065f46;
    border-radius: 8px;
    font-weight: 500;
}

#newsletter-message.error {
    background: rgba(254, 226, 226, 0.95);
    color: #991b1b;
    border-radius: 8px;
    font-weight: 500;
}

#newsletter-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.2) !important;
}

/* ═══════════════════════════════════════════════════════════════
   8. BROWSE PAGE SPECIFIC
   ═══════════════════════════════════════════════════════════════ */
.browse-container {
    max-width: 1280px;
    margin: 0 auto;
}

.browse-seo-intro {
    max-width: 900px;
    margin: 2rem auto;
    padding: 2rem;
    background: linear-gradient(135deg, #f0fdf4 0%, #f9fafb 100%);
    border-radius: 12px;
    margin-bottom: 3rem;
}

.browse-seo-text {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--neutral-700);
    margin: 0;
    text-align: justify;
}

.browse-grid {
    display: grid;
    gap: 1.5rem;
}

.browse-empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: var(--border-radius);
    margin: 2rem 0;
}

/* ═══════════════════════════════════════════════════════════════
   9. ITEM (PRODUCT) PAGE SPECIFIC
   ═══════════════════════════════════════════════════════════════ */
.item-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1rem;
}

.item-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 992px) {
    .item-container { padding: 2rem; }
    .item-grid { grid-template-columns: 2fr 1fr; gap: 2rem; }
}

.item-content-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) { .item-content-card { padding: 2rem; } }

.item-section-title {
    margin-bottom: 1rem;
    color: var(--primary);
    font-size: 1.15rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

@media (min-width: 768px) { .item-section-title { font-size: 1.25rem; } }

.item-detail-row {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.875rem 1rem;
    background: linear-gradient(135deg, var(--neutral-50) 0%, white 100%);
    border-radius: 6px;
    border-left: 3px solid var(--primary-light);
    margin-bottom: 0.75rem;
}

.item-detail-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--neutral-600);
    font-weight: 600;
}

.item-detail-value {
    font-size: 0.95rem;
    color: var(--neutral-900);
    font-weight: 500;
    word-break: break-word;
}

.item-price-badge {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    font-weight: 700;
}

/* Purchase Card */
.purchase-card-v2 {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(4, 120, 87, 0.15);
    border: 2px solid var(--primary-light);
}

@media (min-width: 992px) {
    .purchase-card-v2 { padding: 2rem; position: sticky; top: 100px; }
    .purchase-card-mobile { display: none; }
}

@media (max-width: 991px) { .purchase-card-desktop { display: none; } }

/* M-Pesa Form */
.mpesa-input-v2 {
    width: 100%;
    padding: 0.875rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.mpesa-spinner-v2 {
    width: 40px; height: 40px;
    border: 4px solid #e5e7eb;
    border-top: 4px solid var(--primary, #047857);
    border-radius: 50%;
    animation: mpesa-spin-v2 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes mpesa-spin-v2 {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.mpesa-success-icon-v2 {
    width: 48px; height: 48px; margin: 0 auto 1rem;
    background: #10b981; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 1.5rem; font-weight: bold;
}

/* Related Items */
.related-section {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 2px solid var(--neutral-200);
}

.related-card-v2 {
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    cursor: pointer;
}

.related-card-v2:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* ═══════════════════════════════════════════════════════════════
   10. AUTH PAGES MINOR TWEAKS
   ═══════════════════════════════════════════════════════════════ */
.auth-logo-img {
    height: 48px;
    width: auto;
}

.auth-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.auth-forgot-link {
    color: var(--primary);
    font-size: 0.9rem;
    text-decoration: none;
    font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════════
   11. BACK TO TOP BUTTON
   ═══════════════════════════════════════════════════════════════ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    border: none;
    cursor: pointer;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    color: white;
}

.back-to-top i {
    font-size: 1.25rem;
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
}

/* ═══════════════════════════════════════════════════════════════
   12. WHATSAPP FLOATING BUTTON
   ═══════════════════════════════════════════════════════════════ */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 55px;
    height: 55px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background: #128c7e;
    color: white;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.3);
}

.whatsapp-float i {
    font-size: 1.8rem;
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        left: 20px;
        width: 48px;
        height: 48px;
    }
    .whatsapp-float i {
        font-size: 1.5rem;
    }
}

/* ═══════════════════════════════════════════════════════════════
   13. POPULAR PAGE SPECIFIC
   ═══════════════════════════════════════════════════════════════ */
.popular-header {
    text-align: center;
    margin-bottom: 3rem;
}

.popular-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.popular-subtitle {
    color: var(--neutral-600);
    font-size: 1.1rem;
}

/* Card overrides for popular page */
.popular-card {
    background: white;
    border: 1px solid var(--neutral-200);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: left;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease !important;
}

.popular-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary) !important;
    box-shadow: 0 12px 24px rgba(4, 120, 87, 0.08), 0 4px 12px rgba(0, 0, 0, 0.04) !important;
}

.popular-card.hidden {
    display: none !important;
}

.popular-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.popular-card-badge-update {
    font-size: 0.65rem;
    font-weight: 700;
    color: #10b981;
    background: #dcfce7;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    text-transform: uppercase;
}

.popular-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--neutral-900);
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 3.2rem;
}

.popular-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.popular-card-meta {
    font-size: 0.85rem;
    color: var(--neutral-600);
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-bottom: 0.25rem;
}

.popular-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.75rem;
    border-top: 1px solid var(--neutral-100);
    margin-top: auto;
}

.popular-card-price {
    font-weight: 800;
    font-size: 1.2rem;
}

.price-free {
    color: #10b981;
}

.price-currency {
    color: var(--neutral-900);
    font-size: 0.85rem;
    font-weight: 600;
}

.popular-card-views {
    color: var(--neutral-500);
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.views-icon {
    color: var(--neutral-400);
}

.btn-download-free {
    display: inline-block;
    width: 100%;
    text-align: center;
    text-decoration: none;
    padding: 0.75rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    background: #10b981;
    color: white;
    border: none;
    transition: all 0.2s ease;
}

.btn-view-details {
    display: inline-block;
    width: 100%;
    text-align: center;
    text-decoration: none;
    padding: 0.75rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    background: var(--neutral-900);
    color: white;
    border: none;
    transition: all 0.2s ease;
}

.btn-download-free:hover {
    background: #059669;
    color: white;
}

.btn-view-details:hover {
    background: #111827;
    color: white;
}

.no-results-container {
    display: none;
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: var(--border-radius);
    border: 1px solid var(--neutral-200);
    margin-top: 2rem;
}

.no-results-icon {
    font-size: 3rem;
    color: var(--neutral-400);
    display: block;
    margin-bottom: 1rem;
}

.no-results-text {
    font-size: 1.1rem;
    color: var(--neutral-600);
    margin: 0;
}

.empty-popular-container {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: var(--border-radius);
}

.empty-popular-text {
    font-size: 1.1rem;
    color: var(--neutral-600);
}

.why-section {
    background: white;
    padding: 3rem 2rem;
    border-radius: var(--border-radius);
    margin-top: 3rem;
    border: 1px solid var(--neutral-200);
    box-shadow: var(--shadow-sm);
}

.why-title {
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 800;
    color: var(--neutral-900);
}

.why-col {
    text-align: center;
    padding: 1.5rem;
}

.why-icon-wrapper {
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.why-icon {
    font-size: 3rem;
}

.why-subtitle {
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.why-description {
    color: var(--neutral-600);
    font-size: 0.9rem;
}

/* Filter controls */
.filter-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    background: white;
    padding: 1.25rem;
    border-radius: 12px;
    border: 1px solid var(--neutral-200);
    box-shadow: var(--shadow-sm);
}
.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.filter-tab-btn {
    background: var(--neutral-50);
    border: 1px solid var(--neutral-200);
    color: var(--neutral-600);
    padding: 0.55rem 1.25rem;
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}
.filter-tab-btn:hover {
    background: var(--highlight);
    color: var(--primary);
    border-color: var(--primary-light);
}
.filter-tab-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}
.filter-search-wrapper {
    position: relative;
    flex: 1;
    max-width: 350px;
    min-width: 250px;
}
.filter-search-input {
    width: 100%;
    padding: 0.65rem 1rem 0.65rem 3rem !important; /* increased padding-left to 3rem to fix icon overlap */
    border: 1px solid var(--neutral-200);
    border-radius: 50px;
    font-size: 0.9rem;
    font-family: inherit;
    transition: all 0.2s ease;
}
.filter-search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(4, 120, 87, 0.1);
}
.filter-search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--neutral-400);
    pointer-events: none;
    font-size: 1rem;
}

/* File type badges */
.file-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.file-badge.doc {
    background-color: #eff6ff;
    color: #1d4ed8;
}
.file-badge.pdf {
    background-color: #fef2f2;
    color: #b91c1c;
}
.file-badge.ppt {
    background-color: #fff7ed;
    color: #c2410c;
}
.file-badge.xls {
    background-color: #f0fdf4;
    color: #15803d;
}
.file-badge.other {
    background-color: #f3f4f6;
    color: #374151;
}

/* Card rank gradients */
.rank-badge-1 {
    background: linear-gradient(135deg, #fffbeb, #fef3c7) !important;
    border: 1px solid #f59e0b !important;
    color: #b45309 !important;
}
.rank-badge-2 {
    background: linear-gradient(135deg, #f9fafb, #f3f4f6) !important;
    border: 1px solid #d1d5db !important;
    color: #4b5563 !important;
}
.rank-badge-3 {
    background: linear-gradient(135deg, #fff7ed, #ffedd5) !important;
    border: 1px solid #ea580c !important;
    color: #c2410c !important;
}
