/* USMGROW — palette USM, 2024 */
:root {
    --pink: #ff3c9a;
    --grad-signature: linear-gradient(135deg, #ff4aa2 0%, #ff2d6d 55%, #a855f7 100%);
    --grad-cool: linear-gradient(135deg, #ff4aa2 0%, #7c4dff 55%, #22c1ff 100%);
    --violet: #7c4dff;
    --blue: #22c1ff;
    --bg: #f7f8ff;
    --bg-alt: #f6f1ff;
    --slate: #6b7280;
    --slate-light: #94a3b8;
    --slate-border: #cbd5e1;
    --radius: 18px;
    --shadow: 0 10px 30px rgba(124, 77, 255, .10);
    --shadow-lg: 0 20px 50px rgba(255, 60, 154, .16);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: #1f2937;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--violet); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.usm-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, .9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--slate-border);
}
.usm-header .container {
    display: flex; align-items: center; justify-content: space-between;
    height: 64px;
}
.usm-logo {
    font-weight: 800; font-size: 1.35rem; letter-spacing: -.5px;
    background: var(--grad-signature);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.usm-nav { display: flex; gap: 20px; font-weight: 600; font-size: .95rem; }
.usm-nav a { color: var(--slate); }
.usm-nav a:hover { color: var(--pink); text-decoration: none; }
.usm-dropdown { position: relative; }
.usm-drop-toggle { cursor: pointer; white-space: nowrap; }
.usm-dropdown-menu {
    display: none; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
    min-width: 240px; max-height: 70vh; overflow-y: auto;
    background: #fff; border: 1px solid var(--slate-border, #e7e9f5); border-radius: 14px;
    box-shadow: 0 18px 45px rgba(17,24,39,.14); padding: 10px; z-index: 100;
    flex-direction: column;
}
.usm-dropdown-menu a { display: block; padding: 8px 12px; border-radius: 8px; font-size: .88rem; font-weight: 600; color: #374151; }
.usm-dropdown-menu a:hover { background: #f7f8ff; color: var(--pink, #ff3c9a); }
.usm-dropdown-section { padding: 10px 12px 4px; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; color: #94a3b8; }
.usm-dropdown:hover .usm-dropdown-menu { display: flex; }
.usm-burger { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--pink, #ff3c9a); }
@media (max-width: 720px) {
    .usm-nav { display: none; position: absolute; top: 64px; left: 0; right: 0;
        background: #fff; border-bottom: 1px solid #e7e9f5; padding: 14px 20px;
        flex-direction: column; gap: 4px; max-height: 75vh; overflow-y: auto; box-shadow: 0 18px 45px rgba(17,24,39,.12); }
    .usm-nav.open { display: flex; }
    .usm-header { position: sticky; }
    .usm-dropdown-menu { display: none; position: static; transform: none; box-shadow: none; border: none; padding: 0 0 0 14px; max-height: none; }
    .usm-dropdown-menu.open { display: flex; }
    .usm-burger { display: block; }
}

/* ---------- Hero ---------- */
.hero {
    background: var(--grad-signature);
    color: #fff;
    padding: 72px 0 96px;
    border-radius: 0 0 32px 32px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero::after {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(34,193,255,.35), transparent 45%);
    pointer-events: none;
}
.hero h1 { font-size: clamp(1.8rem, 4.5vw, 3rem); font-weight: 800; margin: 0 0 12px; letter-spacing: -1px; }
.hero p { font-size: 1.1rem; opacity: .92; max-width: 640px; margin: 0 auto 28px; }
.hero .badge-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }

.badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(255,255,255,.18);
    border: 1px solid rgba(255,255,255,.35);
    padding: 6px 14px; border-radius: 999px;
    font-size: .82rem; font-weight: 600;
}

/* ---------- Cards / sections ---------- */
.section { padding: 64px 0; }
.section-alt { background: var(--bg-alt); }
.section-title { text-align: center; font-size: 1.7rem; font-weight: 800; letter-spacing: -.5px; margin: 0 0 8px; }
.section-sub { text-align: center; color: var(--slate); max-width: 560px; margin: 0 auto 40px; }

.card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid #eef0fb;
    padding: 28px;
    transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-4, .grid-3 { grid-template-columns: 1fr; } }

/* ---------- Offer cards ---------- */
.offer-card { text-align: center; display: flex; flex-direction: column; gap: 10px; }
.offer-card .qty { font-size: 1.9rem; font-weight: 800; background: var(--grad-signature); -webkit-background-clip: text; background-clip: text; color: transparent; }
.offer-card .label { color: var(--slate); font-size: .9rem; min-height: 42px; }
.offer-card .price { font-size: 1.35rem; font-weight: 800; }
.offer-card .price .old { color: var(--slate-light); text-decoration: line-through; font-weight: 500; font-size: 1rem; margin-right: 8px; }
.offer-card img.offer-img { width: 100%; height: 130px; object-fit: contain; }

.social-badge {
    display: inline-block; padding: 4px 12px; border-radius: 999px;
    font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
    color: #fff; background: var(--grad-cool); align-self: center;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 13px 28px; border-radius: 999px;
    font-weight: 700; font-size: 1rem; border: none; cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease;
    text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--grad-signature); color: #fff; box-shadow: 0 8px 22px rgba(255, 60, 154, .35); }
.btn-primary:hover { color: #fff; box-shadow: 0 12px 30px rgba(255, 60, 154, .45); }
.btn-outline { background: #fff; color: var(--violet); border: 2px solid var(--violet); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }

/* ---------- Steps ---------- */
.steps-bar { display: flex; justify-content: center; gap: 8px; margin: 28px 0; flex-wrap: wrap; }
.step-pill {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 18px; border-radius: 999px; font-weight: 700; font-size: .9rem;
    background: #fff; color: var(--slate-light); border: 1px solid var(--slate-border);
}
.step-pill.active { background: var(--grad-signature); color: #fff; border-color: transparent; }
.step-pill img { width: 22px; height: 22px; }

.panel-box {
    background: #fff; border-radius: 24px; box-shadow: var(--shadow);
    border: 1px solid #eef0fb; padding: 36px;
    max-width: 640px; margin: 0 auto;
}
@media (max-width: 620px) { .panel-box { padding: 24px; } }

label { font-weight: 600; font-size: .92rem; display: block; margin-bottom: 8px; }

.input {
    width: 100%; padding: 14px 18px; font-size: 1rem;
    border: 2px solid var(--slate-border); border-radius: 14px;
    font-family: inherit; outline: none; transition: border .15s ease;
    background: #fbfcff;
}
.input:focus { border-color: var(--violet); }

.flash {
    max-width: 640px; margin: 18px auto 0; padding: 14px 20px;
    border-radius: 14px; font-weight: 600;
}
.flash-error { background: #ffe4ec; color: #b91c5c; border: 1px solid #ffb3cd; }

/* ---------- Media grid (step 2) ---------- */
.media-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 620px) { .media-grid { grid-template-columns: repeat(2, 1fr); } }
.media-item {
    position: relative; aspect-ratio: 1; border-radius: 16px; overflow: hidden;
    cursor: pointer; border: 3px solid transparent; background: #eceffd center/cover no-repeat;
    transition: border .15s ease, transform .15s ease;
}
.media-item:hover { transform: scale(1.02); }
.media-item.selected { border-color: var(--pink); box-shadow: 0 0 0 4px rgba(255, 60, 154, .2); }
.media-item .meta {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: 20px 10px 8px; font-size: .78rem; font-weight: 600; color: #fff;
    background: linear-gradient(transparent, rgba(0,0,0,.65));
    display: flex; justify-content: space-between;
}
.media-item .check {
    position: absolute; top: 8px; right: 8px; width: 26px; height: 26px;
    border-radius: 50%; background: rgba(255,255,255,.9); color: var(--pink);
    display: none; align-items: center; justify-content: center; font-weight: 800;
}
.media-item.selected .check { display: flex; }

.profile-head { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.profile-head img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 3px solid #fff; box-shadow: var(--shadow); }

/* ---------- Checkout ---------- */
.checkout-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 26px; align-items: start; }
@media (max-width: 880px) { .checkout-layout { grid-template-columns: 1fr; } }
.summary-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed var(--slate-border); font-size: .95rem; }
.summary-total { display: flex; justify-content: space-between; padding-top: 14px; font-size: 1.25rem; font-weight: 800; }
.old-price { color: var(--slate-light); text-decoration: line-through; font-weight: 500; font-size: .95rem; }

.upsell {
    border: 2px dashed var(--violet); border-radius: var(--radius);
    padding: 18px; background: var(--bg-alt);
}
.upsell .upsell-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.switch { position: relative; width: 52px; height: 28px; flex-shrink: 0; cursor: pointer; }
.switch input { display: none; }
.switch .slider {
    position: absolute; inset: 0; border-radius: 999px; background: var(--slate-border); transition: .2s;
}
.switch .slider::before {
    content: ''; position: absolute; width: 22px; height: 22px; border-radius: 50%;
    background: #fff; top: 3px; left: 3px; transition: .2s; box-shadow: 0 2px 6px rgba(0,0,0,.2);
}
.switch input:checked + .slider { background: var(--grad-signature); }
.switch input:checked + .slider::before { transform: translateX(24px); }

.promo-row { display: flex; gap: 10px; }
.promo-row .input { flex: 1; }

.media-thumb-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0; }
.media-thumb-row img, .media-thumb-row .thumb {
    width: 56px; height: 56px; border-radius: 10px; object-fit: cover; background: #eceffd center/cover no-repeat;
}
.media-thumb-wrap { position: relative; display: inline-block; }
.media-thumb-wrap img { display: block; }
.media-thumb-likes { position: absolute; left: 2px; bottom: 2px; right: 2px; padding: 2px 4px; border-radius: 6px; font-size: 9px; font-weight: 800; color: #fff; background: rgba(0,0,0,.7); text-align: center; white-space: nowrap; overflow: hidden; }

.secure-note { display: flex; align-items: center; gap: 10px; color: var(--slate); font-size: .85rem; justify-content: center; margin-top: 14px; }
.secure-note img { height: 22px; }

/* ---------- How it works / FAQ / reviews ---------- */
.hiw-card { text-align: center; }
.hiw-card .num {
    width: 44px; height: 44px; margin: 0 auto 14px; border-radius: 50%;
    background: var(--grad-cool); color: #fff; font-weight: 800;
    display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
}
.review-card .stars { color: #fbbf24; font-size: 1.1rem; letter-spacing: 2px; }
.review-card .who { color: var(--slate); font-size: .85rem; font-weight: 600; margin-top: 8px; }

.faq-item { border-bottom: 1px solid var(--slate-border); }
.faq-item summary {
    cursor: pointer; font-weight: 700; padding: 18px 4px; list-style: none;
    display: flex; justify-content: space-between; align-items: center;
}
.faq-item summary::after { content: '+'; font-size: 1.4rem; color: var(--pink); }
.faq-item[open] summary::after { content: '–'; }
.faq-item p { color: var(--slate); margin: 0 0 18px; }

/* ---------- Footer ---------- */
.usm-footer { background: #17123b; color: #c7cbe8; padding: 44px 0; margin-top: 64px; font-size: .9rem; }
.usm-footer a { color: #c7cbe8; }
.usm-footer a:hover { color: #fff; }
.usm-footer .cols { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.usm-footer .logo { font-weight: 800; font-size: 1.2rem; background: var(--grad-signature); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Thank you ---------- */
.thankyou-hero { background: var(--grad-cool); color: #fff; border-radius: 24px; padding: 48px; text-align: center; }
.thankyou-hero img { width: 90px; margin-bottom: 16px; }

/* ---------- Terms ---------- */
.terms-box { background: #fff; border-radius: 24px; box-shadow: var(--shadow); padding: 44px; }
.terms-box h2 { font-size: 1.3rem; margin-top: 32px; }
.terms-box li { margin-bottom: 8px; color: var(--slate); }

/* ---------- Spinner / payment ---------- */
.pay-overlay {
    position: fixed; inset: 0; background: rgba(23, 18, 59, .75); z-index: 100;
    display: none; align-items: center; justify-content: center; flex-direction: column; gap: 18px; color: #fff;
}
.pay-overlay.show { display: flex; }
.spinner {
    width: 46px; height: 46px; border-radius: 50%;
    border: 4px solid rgba(255,255,255,.3); border-top-color: #fff;
    animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
