/* --- 9. Features tabs --- */
.features-tabs {
    background: var(--bg-light);
    padding: 100px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.features-on-hero-bg {
    background: transparent !important;
    border-top: 0;
    border-bottom: 0;
    position: relative;
    z-index: 1;
}

.features-on-hero-bg h2,
.features-on-hero-bg h3,
.features-on-hero-bg p {
    color: #f1f5f9 !important;
}

.features-on-hero-bg .nav-custom-pills .nav-link {
    background: rgba(10, 20, 54, 0.78);
    border-color: rgba(148, 163, 184, 0.26);
    color: #dbe6ff;
}

.features-on-hero-bg .preview-box {
    background: rgba(8, 16, 44, 0.82);
    border-color: rgba(148, 163, 184, 0.24);
}

.text-only-capabilities {
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
}

.capability-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 16px;
}

.cap-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.30);
    background: rgba(10, 20, 54, 0.58);
    color: #e2e8f0;
    font-weight: 700;
    font-size: 0.95rem;
    transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.cap-chip:hover {
    transform: translateY(-2px);
    border-color: rgba(99, 102, 241, 0.55);
    background: rgba(30, 41, 86, 0.7);
}

.cap-chip i {
    color: #93c5fd;
}

.cap-card {
    height: 100%;
    border: 1px solid rgba(148, 163, 184, 0.30);
    border-radius: 14px;
    background: linear-gradient(165deg, rgba(9, 17, 45, 0.68), rgba(8, 14, 36, 0.6));
    padding: 18px;
    text-align: right;
    box-shadow: 0 8px 24px rgba(2, 6, 23, 0.22);
    transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.cap-card:hover {
    transform: translateY(-4px);
    border-color: rgba(99, 102, 241, 0.58);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.35);
}

.cap-card h3 {
    margin: 0 0 10px;
    font-size: 1.15rem;
    color: #f8fafc;
    font-weight: 800;
    line-height: 1.35;
}

.cap-card p {
    margin: 0;
    color: #c7d2fe !important;
    font-size: 0.98rem;
    line-height: 1.9;
}

.cap-grid > div {
    display: flex;
}

.marketing-slider-wrap {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
}

.marketing-slider {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 32px) / 3);
    gap: 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 6px 4px 10px;
    scrollbar-width: none;
    width: 100%;
    scroll-snap-type: x mandatory;
}

.marketing-slider::-webkit-scrollbar {
    display: none;
}

.marketing-nav-btn {
    width: 44px;
    min-width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    background: rgba(8, 16, 44, 0.8);
    color: #dbeafe;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.marketing-nav-btn:hover {
    border-color: rgba(99, 102, 241, 0.7);
    color: #ffffff;
    background: rgba(30, 41, 86, 0.95);
}

.marketing-feature-card {
    width: 100%;
    min-height: 245px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 20px;
    background: linear-gradient(160deg, rgba(14, 25, 58, 0.68), rgba(12, 20, 45, 0.62));
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    padding: 24px;
    text-align: right;
    box-shadow: 0 10px 24px rgba(2, 6, 23, 0.26);
    transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease, background 0.28s ease;
    animation: none !important;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    scroll-snap-align: start;
}

.marketing-feature-card::before {
    content: "";
    position: absolute;
    left: -45px;
    bottom: -45px;
    width: 170px;
    height: 170px;
    background: radial-gradient(circle at center, rgba(157, 125, 174, 0.12), rgba(157, 125, 174, 0));
    pointer-events: none;
}

.marketing-feature-card:hover {
    transform: translateY(-6px);
    border-color: rgba(157, 125, 174, 0.48);
    box-shadow: 0 18px 34px rgba(66, 46, 89, 0.16);
    background: linear-gradient(160deg, rgba(66, 46, 89, 0.72), rgba(48, 33, 63, 0.66));
}

.mfc-icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(157, 125, 174, 0.16), rgba(182, 167, 210, 0.20));
    color: #422E59;
    font-size: 1.2rem;
    margin-bottom: 14px;
    border: 1px solid rgba(157, 125, 174, 0.22);
}

.marketing-feature-card h3 {
    margin: 0 0 10px;
    color: #f8fafc;
    font-size: 1.24rem;
    font-weight: 800;
    line-height: 1.4;
}

.marketing-feature-card p {
    margin: 0 0 14px;
    color: #dbeafe !important;
    font-size: 0.98rem;
    line-height: 1.85;
}

.mfc-tag {
    display: inline-block;
    border-radius: 999px;
    border: 1px solid rgba(129, 140, 248, 0.4);
    background: rgba(79, 70, 229, 0.14);
    color: #c7d2fe;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 5px 12px;
}

/* Unify landing-card styling with the shared background */
.feature-item,
.package-card,
.accordion-item,
.partners-section .partner-brand,
.site-footer {
    background: linear-gradient(160deg, rgba(13, 24, 56, 0.62), rgba(10, 18, 42, 0.56));
    border: 1px solid rgba(148, 163, 184, 0.24);
    box-shadow: 0 10px 24px rgba(2, 6, 23, 0.24);
}

[data-bs-theme="dark"] .card,
[data-bs-theme="dark"] .accordion-item {
    background: linear-gradient(160deg, rgba(13, 24, 56, 0.62), rgba(10, 18, 42, 0.56));
    border-color: rgba(148, 163, 184, 0.24);
}

/* Glass cards: testimonials, pricing, and FAQ */
.testimonials-section .card,
.pricing-section .package-card,
.faq-section .accordion-item {
    background: linear-gradient(160deg, rgba(14, 26, 62, 0.62), rgba(10, 19, 45, 0.56)) !important;
    border: 1px solid rgba(148, 163, 184, 0.28) !important;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 12px 30px rgba(2, 6, 23, 0.28);
    color: #e2e8f0;
}

.testimonials-section .text-muted,
.pricing-section .text-muted,
.faq-section .text-muted,
.faq-section .accordion-body {
    color: #cbd5e1 !important;
}

.registered-coffee-section {
    padding: 34px 0;
    background: linear-gradient(180deg, rgba(7, 14, 40, 0.02), rgba(37, 99, 235, 0.045));
}

.registered-coffee-showcase {
    width: min(100%, 1120px);
    margin: 0 auto;
    padding: 24px 0 22px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 18px 50px rgba(2, 6, 23, 0.18);
    overflow: hidden;
}

.registered-coffee-copy {
    max-width: 760px;
    margin: 0 auto 18px;
    padding: 0 22px;
    text-align: center;
}

.registered-coffee-copy h2 {
    margin: 0 0 10px;
    color: var(--text-main);
    font-size: 1.65rem;
    font-weight: 900;
    line-height: 1.35;
}

.registered-coffee-copy p {
    margin: 0;
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.9;
}

.registered-coffee-marquee {
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
    direction: ltr;
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.registered-coffee-marquee-track {
    display: flex;
    align-items: center;
    width: max-content;
    animation: registeredCoffeeMarquee 56s linear infinite;
}

.registered-coffee-marquee:hover .registered-coffee-marquee-track {
    animation-play-state: paused;
}

.registered-coffee-marquee-group {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    padding-inline: 8px;
}

.registered-coffee-logo-card {
    min-width: 230px;
    height: 78px;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.22);
    box-shadow: 0 12px 28px rgba(2, 6, 23, 0.16);
    color: #0f172a;
    direction: rtl;
}

.registered-coffee-logo-card img {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    object-fit: contain;
}

.registered-coffee-logo-fallback {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(135deg, #e0f2fe, #dbeafe);
    color: #0f3b72;
    border: 1px solid rgba(37, 99, 235, 0.14);
    font-size: 1.35rem;
    font-weight: 900;
}

.registered-coffee-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.3;
}

@keyframes registeredCoffeeMarquee {
    from {
        transform: translateX(-50%);
    }
    to {
        transform: translateX(0);
    }
}

.faq-section .accordion-button {
    background: rgba(15, 28, 62, 0.45) !important;
    color: #f1f5f9 !important;
    border: 0 !important;
}

.faq-section .accordion-button:not(.collapsed) {
    background: rgba(59, 130, 246, 0.18) !important;
    box-shadow: none !important;
}

.pricing-section .package-card hr {
    border-color: rgba(148, 163, 184, 0.28);
}

.pricing-highlight-section {
    position: relative;
    z-index: 2;
}

.pricing-highlight-section .package-card {
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 24px;
    padding: 28px 24px;
    background: linear-gradient(160deg, rgba(13, 24, 56, 0.62), rgba(10, 18, 42, 0.56));
    position: relative;
    overflow: hidden;
}

.package-badge-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 52px;
    color: #ffffff;
    font-size: 1.15rem;
    box-shadow: 0 10px 20px rgba(2, 6, 23, 0.22);
}

.package-badge-icon.bronze {
    background: linear-gradient(135deg, #a16207, #d97706);
}

.package-badge-icon.gold {
    background: linear-gradient(135deg, #b45309, #f59e0b);
}

.pricing-highlight-section .package-card h4 {
    font-size: 1.35rem;
}

.pricing-highlight-section .package-card p.small {
    font-size: 0.9rem;
}

.package-ribbon {
    position: absolute;
    top: 18px;
    left: 18px;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    z-index: 2;
    box-shadow: 0 10px 20px rgba(2, 6, 23, 0.16);
}

.package-ribbon.bronze {
    background: rgba(217, 119, 6, 0.14);
    color: #f59e0b;
    border: 1px solid rgba(217, 119, 6, 0.22);
}

.package-ribbon.gold {
    background: rgba(59, 130, 246, 0.14);
    color: #93c5fd;
    border: 1px solid rgba(59, 130, 246, 0.22);
}

.pricing-highlight-section .package-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 36px rgba(2, 6, 23, 0.24);
}

.pricing-highlight-section .btn-main {
    box-shadow: 0 10px 24px rgba(79, 70, 229, 0.26);
}

.whatsapp-float-btn {
    position: fixed;
    right: 18px;
    bottom: 140px;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: #ffffff;
    font-size: 1.75rem;
    box-shadow: 0 16px 34px rgba(18, 140, 126, 0.35);
    z-index: 10050;
    text-decoration: none;
    touch-action: manipulation;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.whatsapp-float-btn:hover {
    transform: translateY(-3px) scale(1.03);
    color: #ffffff;
}

@media (max-width: 768px) {
    .whatsapp-float-btn {
        right: 16px !important;
        left: auto !important;
        bottom: calc(180px + env(safe-area-inset-bottom)) !important;
        width: 60px !important;
        height: 60px !important;
        font-size: 1.75rem !important;
    }
}

.nav-custom-pills {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 10px;
    border: none;
    gap: 10px;
}

.nav-custom-pills .nav-link {
    color: var(--text-muted);
    font-weight: 700;
    border-radius: 12px;
    margin: 0;
    transition: 0.4s;
    padding: 12px 25px;
    white-space: nowrap;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
}

.nav-custom-pills .nav-link:hover {
    background: var(--bg-light);
    color: var(--primary-color);
}

.nav-custom-pills .nav-link.active {
    background: var(--primary-color) !important;
    color: white !important;
    border-color: var(--primary-color);
    box-shadow: 0 10px 20px rgba(79, 70, 229, 0.2);
    transform: translateY(-2px);
}

.preview-box {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.1);
    border: 8px solid var(--card-bg);
    margin-top: 20px;
    transition: transform 0.3s ease;
    background: var(--card-bg);
}

.preview-box:hover {
    transform: translateY(-5px);
}
