/* SocialBar — service & platform hub pages (matches sb-home redesign) */

.sbx-svc, .sbx-hub { padding-bottom: 40px; }

/* Hero */
.svc-hero, .hub-hero {
    position: relative;
    padding: clamp(28px, 5vw, 56px) 0 clamp(36px, 6vw, 72px);
    overflow: hidden;
}
.svc-hero__bg, .hub-hero__bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 10% 0%, rgba(124,92,255,.18), transparent 55%),
        radial-gradient(ellipse 60% 50% at 90% 20%, rgba(255,92,200,.12), transparent 50%),
        var(--sb-surface-2);
    pointer-events: none;
}
.hub-hero__bg.g-ig-bg { background: radial-gradient(ellipse 70% 55% at 20% 0%, rgba(225,48,108,.14), transparent 50%), var(--sb-surface-2); }
.hub-hero__bg.g-fb-bg { background: radial-gradient(ellipse 70% 55% at 20% 0%, rgba(24,119,242,.14), transparent 50%), var(--sb-surface-2); }
.hub-hero__bg.g-yt-bg { background: radial-gradient(ellipse 70% 55% at 20% 0%, rgba(255,0,0,.12), transparent 50%), var(--sb-surface-2); }

.svc-crumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    font-size: 13px;
    color: var(--sb-muted);
    margin-bottom: 24px;
}
.svc-crumb a { color: var(--sb-ink-soft); text-decoration: none; }
.svc-crumb a:hover { color: var(--sb-brand); }
.svc-crumb span { opacity: .45; }

.svc-hero__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(24px, 4vw, 48px);
    align-items: start;
}
@media (max-width: 960px) {
    .svc-hero__grid { grid-template-columns: 1fr; }
}

.svc-hero__copy h1 {
    font-family: var(--sb-font-head);
    font-size: clamp(32px, 5vw, 52px);
    line-height: 1.05;
    letter-spacing: -.03em;
    margin: 12px 0 16px;
    color: var(--sb-ink);
}
.svc-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    background: var(--sb-grad-soft);
    border: 1px solid var(--sb-border);
}
.svc-pill.g-ig { color: #e1306c; }
.svc-pill.g-fb { color: #1877f2; }
.svc-pill.g-yt { color: #ff0000; }
.svc-pill.g-tw { color: #1da1f2; }
.svc-pill.g-li { color: #0a66c2; }
.svc-pill.g-sc { color: #ff5500; }
.svc-pill.g-sp { color: #1db954; }
.svc-pill.g-tg { color: #229ed9; }
.svc-pill.g-wt { color: #7c5cff; }
.svc-pill.g-pin { color: #e60023; }
.svc-pill.g-rd { color: #ff4500; }

.svc-perks {
    list-style: none;
    padding: 0;
    margin: 24px 0 0;
    display: grid;
    gap: 10px;
}
.svc-perks li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    color: var(--sb-ink-soft);
}
.svc-perks svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--sb-accent); }

/* Order card */
.svc-order__card .core { padding: clamp(20px, 3vw, 28px); }
.svc-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--sb-muted);
    margin-bottom: 10px;
}
.svc-field { margin-bottom: 20px; }

.svc-tier-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.svc-tier-tab {
    border: 1px solid var(--sb-border);
    background: var(--sb-surface-2);
    color: var(--sb-ink-soft);
    border-radius: 999px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all .25s var(--sb-ease);
}
.svc-tier-tab.is-active {
    background: var(--sb-grad);
    color: #fff;
    border-color: transparent;
    box-shadow: var(--sb-shadow-md);
}
.svc-tier-name {
    margin: 10px 0 0;
    font-size: 13px;
    color: var(--sb-muted);
    line-height: 1.4;
}
.svc-tier-name--solo { margin-bottom: 4px; }

.svc-packages {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(108px, 1fr));
    gap: 10px;
}
.svc-pkg {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 14px 10px 12px;
    border: 2px solid var(--sb-border);
    border-radius: 16px;
    background: var(--sb-surface-2);
    cursor: pointer;
    transition: all .3s cubic-bezier(.32,.72,0,1);
    text-align: center;
}
.svc-pkg:hover { border-color: rgba(124,92,255,.4); transform: translateY(-2px); }
.svc-pkg.is-active {
    border-color: transparent;
    background: var(--sb-surface);
    box-shadow: 0 0 0 2px #7c5cff, var(--sb-shadow-md);
}
.svc-pkg__badge {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--sb-grad);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    padding: 3px 8px;
    border-radius: 999px;
    white-space: nowrap;
}
.svc-pkg__qty {
    font-family: var(--sb-font-head);
    font-size: 22px;
    font-weight: 700;
    color: var(--sb-ink);
    line-height: 1;
}
.svc-pkg__unit {
    font-size: 11px;
    color: var(--sb-muted);
    text-transform: lowercase;
}
.svc-pkg__price {
    margin-top: 6px;
    font-size: 14px;
    font-weight: 700;
    color: var(--sb-brand);
}

.svc-input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--sb-border);
    border-radius: 14px;
    background: var(--sb-surface-2);
    color: var(--sb-ink);
    font-size: 15px;
    transition: border-color .2s, box-shadow .2s;
}
.svc-input:focus {
    outline: none;
    border-color: rgba(124,92,255,.5);
    box-shadow: var(--sb-glow);
}
.svc-hint {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: var(--sb-muted);
}

.svc-total {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 16px 0;
    border-top: 1px solid var(--sb-border);
    margin-bottom: 16px;
}
.svc-total__label { font-size: 13px; color: var(--sb-muted); display: block; }
.svc-total__sub { font-size: 11px; color: var(--sb-muted); }
.svc-total__price {
    font-family: var(--sb-font-head);
    font-size: 28px;
    font-weight: 700;
    color: var(--sb-ink);
}

.svc-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.svc-actions .btn { flex: 1; min-width: 140px; justify-content: center; }
.svc-pay-note {
    margin: 14px 0 0;
    font-size: 12px;
    color: var(--sb-muted);
    text-align: center;
}
.svc-pay-note .fa { margin-right: 4px; opacity: .7; }
.svc-empty { color: var(--sb-ink-soft); line-height: 1.6; }

.svc-steps .step .core { min-height: 160px; }
.qa-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    max-width: 920px;
    margin: 0 auto;
}
@media (max-width: 768px) {
    .qa-grid { grid-template-columns: 1fr; }
}
.svc-cta-mini .cta__island { padding: clamp(32px, 5vw, 48px); }

/* Hub */
.hub-hero__head { max-width: 720px; }
.hub-hero__head h1 {
    font-family: var(--sb-font-head);
    font-size: clamp(36px, 6vw, 56px);
    line-height: 1.05;
    letter-spacing: -.03em;
    margin: 16px 0;
    color: var(--sb-ink);
}
.hub-pill { margin-bottom: 8px; }

.hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
}
.hub-card {
    text-decoration: none;
    color: inherit;
    display: block;
}
.hub-card .core { padding: 22px; min-height: 200px; display: flex; flex-direction: column; }
.hub-card h3 {
    font-family: var(--sb-font-head);
    font-size: 20px;
    margin: 12px 0 8px;
    color: var(--sb-ink);
}
.hub-card p {
    font-size: 14px;
    color: var(--sb-ink-soft);
    line-height: 1.55;
    flex: 1;
    margin: 0;
}
.hub-card__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}
.hub-card__icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-size: 18px;
    background: var(--sb-grad-soft);
}
.hub-card__price {
    font-size: 12px;
    font-weight: 700;
    color: var(--sb-brand);
    white-space: nowrap;
}
.hub-card__go {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--sb-brand);
}
.hub-card__go svg { width: 16px; height: 16px; }
.hub-card:hover .hub-card__go { gap: 10px; }

/* Hide legacy chrome on service pages */
.sbx-svc #header-holder,
.sbx-svc #ifeatures,
.sbx-hub #header-holder,
.sbx-hub #ifeatures { display: none !important; }

.cartmsgdiv { margin-top: 12px; }
.cartmsgdiv .alert { border-radius: 14px; font-size: 14px; }

/* =====================================================
   MOBILE UX — service & hub pages
   ===================================================== */
@media (max-width: 992px) {
    .sbx-svc, .sbx-hub { padding-bottom: 24px; }
    .svc-hero, .hub-hero { padding: 20px 0 32px; }
    .svc-hero__copy h1, .hub-hero__head h1 { font-size: clamp(28px, 8vw, 40px); }
    .sbx .sec { padding: clamp(40px, 8vw, 72px) 0; }
    .sbx .sec--tight { padding: clamp(28px, 5vw, 48px) 0; }
    .hub-grid { grid-template-columns: 1fr; gap: 14px; }
    .hub-card .core { min-height: auto; padding: 18px; }
    .svc-order__card { position: relative; top: 0; }
    .svc-actions { flex-direction: column; }
    .svc-actions .btn { width: 100%; min-width: 0; min-height: 48px; }
    .svc-total__price { font-size: 24px; }
    .seo-facts { padding: 16px 18px; }
}

@media (max-width: 680px) {
    .svc-packages {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        gap: 10px;
        padding-bottom: 6px;
        margin: 0 -4px;
    }
    .svc-pkg {
        flex: 0 0 118px;
        scroll-snap-align: start;
        min-height: 108px;
    }
    .svc-tier-tabs {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 8px;
        padding-bottom: 4px;
    }
    .svc-tier-tab { flex-shrink: 0; min-height: 44px; }
    .svc-crumb { font-size: 12px; margin-bottom: 16px; }
    .svc-steps { grid-template-columns: 1fr !important; }
    .qa-grid { grid-template-columns: 1fr !important; }
    .svc-cta-mini .cta__btns { flex-direction: column; width: 100%; }
    .svc-cta-mini .cta__btns .btn { width: 100%; min-height: 48px; justify-content: center; }
}

@media (pointer: coarse) {
    .svc-pkg, .hub-card, .svc-tier-tab, .qa__q { min-height: 44px; }
    .svc-input { font-size: 16px; /* prevents iOS zoom on focus */ }
}

/* SEO content blocks — information gain + internal links */
.seo-prose {
    max-width: 72ch;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.65;
    font-size: 15px;
}
.seo-prose__title {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    font-weight: 700;
    color: #fff;
    margin: 0 0 12px;
}
.seo-prose p { margin: 0 0 14px; }
.seo-prose a { color: #c4b5fd; text-decoration: underline; text-underline-offset: 2px; }
.seo-prose a:hover { color: #e9d5ff; }
.seo-related {
    padding: 20px 22px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.seo-related__title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 12px;
    color: #fff;
}
.seo-related__list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}
.seo-related__list a {
    display: block;
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
    line-height: 1.45;
    text-decoration: none;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.06);
}
.seo-related__list a:hover {
    border-color: rgba(167, 139, 250, 0.35);
    color: #fff;
}
.seo-related__list strong { color: #e9d5ff; font-weight: 600; }