/* ══════════════════════════════════════════════════════════════
   SMM Spot — Reels Bundles UI (landing services slider + bundles page)
   Uses site CSS vars → auto adapts to light / dark theme.
   ══════════════════════════════════════════════════════════════ */

/* ── Shared: section eyebrow note ─────────────────────────── */
.bundles-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 18px auto 0;
    font-size: var(--fs-sm);
    color: var(--text-muted);
    text-align: center;
    max-width: 720px;
}
.bundles-note i { color: #10b981; }
.bundles-note strong { color: var(--text); }

/* ── Slider shell ─────────────────────────────────────────── */
[data-slider] { position: relative; }

.slider-viewport {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: 8px 4px 18px;
    margin: 0 -4px;
    scrollbar-width: none;
}
.slider-viewport::-webkit-scrollbar { display: none; }

.slider-slide { scroll-snap-align: start; flex: 0 0 auto; }

/* Arrows + dots + counter */
.slider-ui {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 4px;
}
.slider-btn {
    width: 44px;
    height: 44px;
    border-radius: var(--r-full);
    border: var(--border);
    background: var(--card-bg);
    color: var(--text);
    font-size: 15px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--t);
    backdrop-filter: blur(10px);
}
.slider-btn:hover {
    background: var(--gradient);
    color: #fff;
    border-color: transparent;
    box-shadow: var(--shadow-glow-sm);
    transform: translateY(-2px);
}
.slider-btn:disabled { opacity: 0.35; cursor: default; transform: none; }
.slider-dots { display: flex; gap: 8px; align-items: center; }
.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: var(--r-full);
    border: none;
    background: var(--text-faint);
    opacity: 0.35;
    cursor: pointer;
    padding: 0;
    transition: var(--t);
}
.slider-dot.is-active {
    width: 28px;
    opacity: 1;
    background: var(--gradient);
}
.slider-count {
    font-size: var(--fs-sm);
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
    min-width: 52px;
    text-align: center;
}

/* ── Landing: bundle header (same centered style as other sections) ── */
.bundles-head { margin: 36px 0 24px; }
.bundles-head .section-subtitle { max-width: 620px; }
.bundles-head .link-more {
    font-weight: 700;
    color: var(--accent);
    text-decoration: none;
    white-space: nowrap;
}
.bundles-head .link-more:hover { text-decoration: underline; }

.bundle-media-slide { width: min(340px, 82vw); }

.bundle-media-card {
    background: var(--card-bg);
    border: var(--border);
    border-radius: var(--r-xl);
    overflow: hidden;
    transition: var(--t);
    height: 100%;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(10px);
}
.bundle-media-card:hover {
    transform: translateY(-4px);
    border-color: rgba(79, 70, 229, 0.35);
    box-shadow: var(--shadow-md);
}
.bundle-media-top { position: relative; overflow: hidden; aspect-ratio: 16 / 10.2; background: var(--bg-secondary); }
/* Exact source ratios → cover shows the full image with zero cropping */
.bundle-media-top.ratio-32 { aspect-ratio: 3 / 2; }
.bundle-media-top.ratio-wide { aspect-ratio: 1672 / 941; }
.bundle-media-top img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.bundle-media-card:hover .bundle-media-top img { transform: scale(1.045); }

.bundle-flag {
    position: absolute;
    top: 10px;
    left: 10px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #fff;
    background: var(--gradient);
    padding: 5px 10px;
    border-radius: var(--r-full);
}
.bundle-flag.hot { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.bundle-flag.new { background: linear-gradient(135deg, #10b981, #0ea5e9); }

.bundle-price-pill {
    position: absolute;
    right: 10px;
    bottom: 10px;
    background: rgba(8, 9, 26, 0.8);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    border-radius: var(--r-md);
    padding: 6px 10px;
    text-align: right;
    line-height: 1.3;
}
.bundle-price-pill .from { display: block; font-size: 9px; opacity: 0.7; text-transform: uppercase; letter-spacing: 0.06em; }
.bundle-price-pill .val { display: block; font-family: var(--font-heading); font-weight: 800; font-size: var(--fs-base); }
.bundle-price-pill .val small { font-size: 10px; font-weight: 600; opacity: 0.8; }

.bundle-media-body { padding: 14px 14px 12px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.bundle-media-body h4 {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}
.bundle-media-body .cats {
    font-size: 12.5px;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.55;
}
.bundle-rate-line {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    font-size: 11px;
    color: var(--text-faint);
    margin: 0;
}
.bundle-rate-line i { color: #10b981; }
.bundle-media-cta { display: flex; margin-top: auto; padding-top: 8px; }
.bundle-more {
    display: block;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--accent);
    text-decoration: none;
    padding: 8px 0 2px;
}
.bundle-more:hover { text-decoration: underline; }
.bundle-more i { font-size: 10px; margin-left: 2px; }
.btn-buy {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--gradient);
    color: #fff;
    font-weight: 700;
    font-size: var(--fs-sm);
    padding: 12px 16px;
    border-radius: var(--r-lg);
    text-decoration: none;
    transition: var(--t);
    border: none;
}
.btn-buy:hover { background: var(--gradient-hover); transform: translateY(-1px); color: #fff; }

/* Growth icon cards: direct-buy row */
.service-card .service-buy-row { display: flex; margin-top: 12px; position: relative; z-index: 1; }
.service-card .service-buy {
    flex: 1;
    text-align: center;
    font-size: var(--fs-sm);
    font-weight: 700;
    color: #fff;
    background: var(--gradient);
    border-radius: var(--r-md);
    padding: 10px 12px;
    text-decoration: none;
    transition: var(--t);
}
.service-card .service-buy:hover { background: var(--gradient-hover); box-shadow: var(--shadow-glow-sm); color: #fff; }

/* ── Reels bundles page ───────────────────────────────────── */
.rb-cta-row.end { margin-top: 24px; justify-content: center; text-align: center; }
.rb-hero { position: relative; overflow: hidden; padding: calc(var(--navbar-height) + 48px) 0 12px; }
.rb-orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.5; pointer-events: none; }
.rb-orb-1 { width: 420px; height: 420px; top: -120px; left: -120px; background: rgba(79, 70, 229, 0.25); }
.rb-orb-2 { width: 380px; height: 380px; bottom: -140px; right: -100px; background: rgba(14, 165, 233, 0.22); }

.rb-hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 48px;
    align-items: center;
    position: relative;
}
.rb-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: var(--fs-xs);
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    background: var(--gradient-subtle);
    border: var(--border-primary);
    padding: 8px 14px;
    border-radius: var(--r-full);
    margin-bottom: 18px;
}
.rb-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4.6vw, 3.4rem);
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text);
    margin: 0 0 16px;
}
.rb-sub { color: var(--text-muted); font-size: var(--fs-lg); line-height: 1.65; margin: 0 0 22px; max-width: 52ch; }
.rb-cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.rb-trust { display: flex; gap: 18px; flex-wrap: wrap; font-size: var(--fs-sm); color: var(--text-muted); }
.rb-trust span { display: inline-flex; align-items: center; gap: 7px; }
.rb-trust i { color: #10b981; }

.rb-phone-wrap { display: flex; justify-content: center; position: relative; }
.rb-phone {
    width: min(480px, 92vw);
    border-radius: 22px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 30px 80px rgba(79, 70, 229, 0.35);
    animation: rbFloat 6s ease-in-out infinite;
}
.rb-phone img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; display: block; }
.rb-chip-float {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--card-bg);
    border: var(--border);
    backdrop-filter: blur(12px);
    color: var(--text);
    font-size: var(--fs-xs);
    font-weight: 700;
    padding: 10px 14px;
    border-radius: var(--r-full);
    box-shadow: var(--shadow-md);
    animation: rbFloat 4s ease-in-out infinite;
    white-space: nowrap;
}
.rb-chip-float i { color: #f59e0b; }
.rb-chip-1 { top: 12%; left: -8px; }
.rb-chip-2 { bottom: 22%; right: -12px; animation-delay: 1.2s; }
@keyframes rbFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* Category marquee — infinite auto-scroll tags */
.rb-marquee { overflow: hidden; padding: 25px 0 12px; }
.rb-marquee-track {
    display: flex;
    gap: 10px;
    width: max-content;
    animation: rbMarquee 26s linear infinite;
}
.rb-marquee:hover .rb-marquee-track { animation-play-state: paused; }
@keyframes rbMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.rb-chip {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--text);
    background: var(--card-bg);
    border: var(--border);
    padding: 10px 16px;
    border-radius: var(--r-full);
    text-decoration: none;
    transition: var(--t);
    white-space: nowrap;
}
.rb-chip:hover, .rb-chip.is-on { background: var(--gradient); color: #fff; border-color: transparent; }

/* Reel cards rail — snap scroll, 2-up on phones */
.reel-rail {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 4px 2px 8px;
    margin: 20px -2px 0;
}
.reel-rail::-webkit-scrollbar { display: none; }
.reel-card {
    flex: 0 0 300px;
    scroll-snap-align: start;
    background: var(--card-bg);
    border: var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(10px);
    transition: var(--t);
}
.reel-card:hover {
    transform: translateY(-4px);
    border-color: rgba(79, 70, 229, 0.4);
    box-shadow: var(--shadow-md);
}
.reel-thumb { position: relative; aspect-ratio: 941 / 1672; overflow: hidden; background: var(--bg-secondary); }
.reel-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1); }
.reel-card:hover .reel-thumb img { transform: scale(1.05); }
.reel-body { padding: 14px 14px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.reel-body h4 { font-family: var(--font-heading); font-size: 15px; font-weight: 700; color: var(--text); margin: 0; }
.reel-body p { font-size: 12.5px; color: var(--text-muted); margin: 0; line-height: 1.6; }
.reel-body .btn-buy { margin-top: 10px; font-size: 13px; padding: 11px 12px; }
/* Steps */
.rb-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 24px; counter-reset: step; }
.rb-step {
    background: var(--card-bg);
    border: var(--border);
    border-radius: var(--r-xl);
    padding: 22px 20px;
    position: relative;
    overflow: hidden;
}
.rb-step::before {
    counter-increment: step;
    content: "0" counter(step);
    position: absolute;
    top: 8px;
    right: 16px;
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    opacity: 0.08;
    color: var(--text);
}
.rb-step .n {
    width: 44px;
    height: 44px;
    border-radius: var(--r-lg);
    background: var(--gradient);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-bottom: 14px;
}
.rb-step h3 { font-family: var(--font-heading); font-size: var(--fs-lg); color: var(--text); margin: 0 0 8px; }
.rb-step p { color: var(--text-muted); font-size: var(--fs-sm); line-height: 1.65; margin: 0; }

/* FAQ (details-based, centered, no JS) */
.rb-faq { display: grid; gap: 10px; margin: 18px auto 0; max-width: 760px; }
.rb-faq details {
    background: var(--card-bg);
    border: var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
    transition: var(--t);
}
.rb-faq details[open] { border-color: rgba(79, 70, 229, 0.45); }
.rb-faq summary {
    cursor: pointer;
    padding: 18px 20px;
    font-weight: 700;
    color: var(--text);
    font-size: var(--fs-base);
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.rb-faq summary::-webkit-details-marker { display: none; }
.rb-faq summary i { color: var(--accent); transition: var(--t); }
.rb-faq details[open] summary i { transform: rotate(45deg); }
.rb-faq .a { padding: 0 20px 20px; color: var(--text-muted); font-size: var(--fs-sm); line-height: 1.7; }

/* Sticky mobile buy bar */
.rb-stickybar {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: var(--z-navbar);
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: rgba(8, 9, 26, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(14px);
    color: #fff;
    border-radius: var(--r-xl);
    padding: 12px 12px 12px 18px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
}
html:not([data-theme="dark"]) .rb-stickybar { background: rgba(15, 23, 42, 0.94); }
.rb-stickybar .p { line-height: 1.3; }
.rb-stickybar .p strong { display: block; font-size: var(--fs-base); }
.rb-stickybar .p span { font-size: var(--fs-xs); opacity: 0.75; }
.rb-stickybar .btn-buy { flex: 0 0 auto; padding: 12px 22px; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1023px) {
    .rb-hero-grid { grid-template-columns: 1fr; gap: 28px; }
    .rb-phone-wrap { order: -1; }
    .rb-phone { width: min(340px, 88vw); }
    .rb-chip-1 { left: 2%; }
    .rb-chip-2 { right: 0; }
    .rb-steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .rb-hero { padding: calc(var(--navbar-height) + 24px) 0 8px; overflow: clip; }
    .rb-phone-wrap { flex-wrap: wrap; gap: 10px; margin-top: 20px; }
    /* Floating chips become a static centered row — zero overflow risk */
    .rb-chip-float { position: static; animation: none; }
    .rb-stickybar { padding: 10px 10px 10px 14px; border-radius: var(--r-lg); }
    /* All CTA rows stack full-width */
    .rb-cta-row { flex-direction: column; align-items: stretch; gap: 10px; }
    .rb-cta-row .btn { width: 100%; justify-content: center; }
    .rb-title { font-size: clamp(1.7rem, 7.5vw, 2.2rem); }
    .rb-sub { font-size: var(--fs-sm); margin-bottom: 14px; }
    .rb-trust { gap: 8px 12px; font-size: 12px; }
    .rb-marquee { margin: 0 -16px; padding-left: 16px; }
    .rb-chip { padding: 8px 13px; font-size: 12.5px; }
    /* Reel cards: exactly 2-up on phones */
    .reel-rail { gap: 10px; margin-top: 14px; }
    .reel-card { flex-basis: calc(50% - 5px); }
    .reel-body { padding: 10px 10px 12px; }
    .reel-body h4 { font-size: 13px; }
    .reel-body p { font-size: 11.5px; }
    .reel-body .btn-buy { font-size: 12px; padding: 9px 6px; }
    .rb-steps { grid-template-columns: 1fr; gap: 10px; margin-top: 16px; }
    .rb-step { padding: 18px 16px; }
    .rb-stickybar { display: flex; }
    .rb-faq summary { padding: 15px 16px; font-size: 13.5px; }
    .rb-faq .a { padding: 0 16px 16px; font-size: 13px; }
    .rb-chip-float { font-size: 11px; padding: 8px 12px; }
    /* Keep footer content clear of the sticky buy bar */
    .page-reels .footer { padding-bottom: 88px; }
    /* Landing slider: swipe only on phones */
    .bundle-media-slide { width: 82vw; max-width: 340px; }
    [data-slider] .slider-ui { display: none; }
    .bundles-head { margin: 28px 0 18px; }
}
@media (prefers-reduced-motion: reduce) {
    .slider-viewport { scroll-behavior: auto; }
    .rb-chip-float { animation: none; }
    .rb-phone { animation: none; }
    .rb-marquee-track { animation: none; }
    .bundle-media-top img { transition: none; }
}
