/* =====================================================================
   SoftSub storefront styles
   Sections: 1 Variables  2 Base  3 Header  4 Mobile tab bar  5 Buttons & forms
             6 Logo tiles  7 Hero  8 Sections  9 Product card  10 Shop
             11 Product page  12 Cart & checkout  13 Account & auth  14 Footer  15 Misc
   ===================================================================== */

/* 1 ---------- Variables ---------- */
:root {
    --ink: #0b1020;
    --ink-2: #151b33;
    --text: #1d2440;
    --muted: #667085;
    --line: #e6e8f0;
    --bg: #f6f7fb;
    --card: #ffffff;
    --primary: #4b3bff;
    --primary-dark: #3a2be0;
    --primary-soft: #eeecff;
    --accent: #ff7a1a;
    --accent-soft: #fff1e6;
    --success: #12b76a;
    --success-soft: #e7f8ef;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow-sm: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .06);
    --shadow: 0 10px 30px -8px rgba(30, 27, 90, .18);
    --shadow-lg: 0 24px 60px -16px rgba(30, 27, 90, .35);
    --font-head: 'Plus Jakarta Sans', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;

    --bs-primary: #4b3bff;
    --bs-primary-rgb: 75, 59, 255;
    --bs-link-color: #4b3bff;
    --bs-link-hover-color: #3a2be0;
    --bs-body-font-family: var(--font-body);
    --bs-body-color: var(--text);
    --bs-border-color: var(--line);
}

/* 2 ---------- Base ---------- */
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6, .font-head { font-family: var(--font-head); letter-spacing: -.02em; color: var(--ink); font-weight: 800; }
a { text-decoration: none; }
img { max-width: 100%; }
::selection { background: var(--primary); color: #fff; }
.text-muted, .text-secondary { color: var(--muted) !important; }
.text-primary { color: var(--primary) !important; }
.bg-primary-soft { background: var(--primary-soft); }
.fw-800 { font-weight: 800; }
.section { padding: 72px 0; }
.section-sm { padding: 40px 0; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    color: var(--primary); background: var(--primary-soft); padding: 6px 12px; border-radius: 999px;
}
.section-title { font-size: clamp(1.7rem, 3.2vw, 2.4rem); line-height: 1.15; }
.section-sub { color: var(--muted); font-size: 1.05rem; max-width: 620px; }
:focus-visible { outline: 3px solid rgba(75, 59, 255, .45); outline-offset: 2px; border-radius: 6px; }

/* 3 ---------- Header ---------- */
.announce { background: var(--ink); color: #cfd4ec; font-size: .82rem; }
.announce a { color: #fff; font-weight: 600; }
.announce .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); display: inline-block; box-shadow: 0 0 0 4px rgba(18, 183, 106, .25); }

.site-header {
    position: sticky; top: 0; z-index: 1030;
    background: rgba(255, 255, 255, .88);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 18px; height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-family: var(--font-head); font-weight: 800; font-size: 1.35rem; letter-spacing: -.03em; }
.brand:hover { color: var(--ink); }
.brand-mark {
    width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; color: #fff; font-size: 1.15rem;
    background: linear-gradient(135deg, #6a5cff, #3a2be0 60%, #ff7a1a 130%);
    box-shadow: 0 6px 16px -4px rgba(75, 59, 255, .55);
}
.brand b { color: var(--primary); }

.search-box { position: relative; flex: 1; max-width: 520px; }
.search-box .form-control {
    height: 46px; border-radius: 999px; padding-left: 46px; padding-right: 16px;
    background: #f1f3f9; border: 1px solid transparent; font-size: .95rem;
}
.search-box .form-control:focus { background: #fff; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(75, 59, 255, .12); }
.search-box .bi-search { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.suggest {
    position: absolute; left: 0; right: 0; top: calc(100% + 8px); background: #fff; border-radius: 16px;
    box-shadow: var(--shadow-lg); border: 1px solid var(--line); overflow: hidden; display: none; z-index: 1040;
}
.suggest.show { display: block; }
.suggest a { display: flex; align-items: center; gap: 12px; padding: 10px 14px; color: var(--text); }
.suggest a:hover, .suggest a.active { background: var(--primary-soft); }
.suggest .s-name { font-weight: 600; font-size: .92rem; }
.suggest .s-price { font-size: .78rem; color: var(--muted); }
.suggest .s-empty { padding: 14px; color: var(--muted); font-size: .9rem; }

.main-nav { display: flex; gap: 4px; }
.main-nav a, .main-nav .dropdown-toggle {
    color: var(--text); font-weight: 600; font-size: .93rem; padding: 8px 12px; border-radius: 10px; background: none; border: 0;
}
.main-nav a:hover, .main-nav .dropdown-toggle:hover, .main-nav a.active { background: var(--primary-soft); color: var(--primary); }
.dropdown-menu { border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 8px; }
.dropdown-item { border-radius: 8px; padding: 8px 12px; font-weight: 500; }
.dropdown-item:hover { background: var(--primary-soft); color: var(--primary); }

.icon-btn {
    position: relative; width: 44px; height: 44px; border-radius: 12px; display: inline-grid; place-items: center;
    color: var(--ink); background: transparent; border: 0; font-size: 1.3rem; transition: background .15s;
}
.icon-btn:hover { background: var(--primary-soft); color: var(--primary); }
.cart-count {
    position: absolute; top: 2px; right: 0; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px;
    background: var(--accent); color: #fff; font-size: .7rem; font-weight: 700; display: grid; place-items: center;
    border: 2px solid #fff; transition: transform .2s;
}
.cart-count.bump { transform: scale(1.4); }
.cart-count:empty, .cart-count[data-count="0"] { display: none; }

.mobile-search { display: none; padding: 0 0 12px; }
.mobile-search.show { display: block; }

/* 4 ---------- Mobile bottom tab bar ---------- */
.tabbar { display: none; }
@media (max-width: 991.98px) {
    body { padding-bottom: 76px; }
    .header-inner { height: 60px; gap: 8px; }
    .tabbar {
        display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 1035;
        background: rgba(255, 255, 255, .96); backdrop-filter: blur(14px); border-top: 1px solid var(--line);
        padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
        box-shadow: 0 -8px 24px -12px rgba(16, 24, 40, .2);
    }
    .tabbar a, .tabbar button {
        display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0; border: 0; background: none;
        font-size: .68rem; font-weight: 600; color: var(--muted); position: relative; border-radius: 12px;
    }
    .tabbar i { font-size: 1.35rem; line-height: 1; }
    .tabbar .active { color: var(--primary); }
    .tabbar .active i::before { filter: drop-shadow(0 4px 8px rgba(75, 59, 255, .4)); }
    .tabbar .cart-count { top: 0; right: calc(50% - 26px); border-color: #fff; }
    .section { padding: 48px 0; }
}

/* 5 ---------- Buttons & forms ---------- */
.btn { font-weight: 600; border-radius: 12px; padding: .62rem 1.2rem; transition: transform .12s, box-shadow .2s, background .2s; }
.btn:active { transform: scale(.97); }
.btn-lg { padding: .85rem 1.6rem; border-radius: 14px; font-size: 1.02rem; }
.btn-primary { --bs-btn-bg: var(--primary); --bs-btn-border-color: var(--primary); --bs-btn-hover-bg: var(--primary-dark); --bs-btn-hover-border-color: var(--primary-dark); --bs-btn-active-bg: var(--primary-dark); --bs-btn-active-border-color: var(--primary-dark); --bs-btn-disabled-bg: var(--primary); --bs-btn-disabled-border-color: var(--primary); box-shadow: 0 8px 20px -8px rgba(75, 59, 255, .7); }
.btn-primary:hover { box-shadow: 0 12px 26px -8px rgba(75, 59, 255, .8); transform: translateY(-1px); }
.btn-accent { --bs-btn-color: #fff; --bs-btn-bg: var(--accent); --bs-btn-border-color: var(--accent); --bs-btn-hover-color: #fff; --bs-btn-hover-bg: #e86a0c; --bs-btn-hover-border-color: #e86a0c; --bs-btn-active-bg: #e86a0c; --bs-btn-active-color: #fff; box-shadow: 0 8px 20px -8px rgba(255, 122, 26, .8); }
.btn-soft { background: var(--primary-soft); color: var(--primary); border-color: transparent; }
.btn-soft:hover { background: #e2dfff; color: var(--primary-dark); }
.btn-outline-primary { --bs-btn-color: var(--primary); --bs-btn-border-color: var(--primary); --bs-btn-hover-bg: var(--primary); --bs-btn-hover-border-color: var(--primary); --bs-btn-active-bg: var(--primary); }
.btn-ghost { background: #fff; border: 1px solid var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-wa { background: #25d366; color: #fff; border-color: #25d366; }
.btn-wa:hover { background: #1fb957; color: #fff; }
.form-control, .form-select { border-radius: 12px; border-color: #d5d9e6; padding: .7rem .95rem; font-size: 1rem; }
.form-control:focus, .form-select:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(75, 59, 255, .12); }
.form-label { font-weight: 600; font-size: .88rem; margin-bottom: .35rem; color: var(--ink); }
.form-check-input:checked { background-color: var(--primary); border-color: var(--primary); }
.form-text { font-size: .8rem; }
.input-icon { position: relative; }
.input-icon > i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.input-icon .form-control { padding-left: 42px; }
.card-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
@media (max-width: 575.98px) { .form-control, .form-select { font-size: 16px; } /* stops iOS zoom on focus */ }

/* 6 ---------- Logo tiles (software icons) ---------- */
.logo-tile {
    --size: 56px; width: var(--size); height: var(--size); flex: 0 0 var(--size);
    border-radius: calc(var(--size) * .28); display: grid; place-items: center;
    background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); overflow: hidden;
}
.logo-tile img { width: 58%; height: 58%; object-fit: contain; }
.logo-tile.mono { color: #fff; font-family: var(--font-head); font-weight: 800; font-size: calc(var(--size) * .36); border: 0; letter-spacing: -.04em; }
.logo-tile.sm { --size: 40px; } .logo-tile.lg { --size: 76px; } .logo-tile.xl { --size: 104px; }

/* 7 ---------- Hero ---------- */
.hero { position: relative; background: var(--ink); color: #fff; overflow: hidden; isolation: isolate; }
.hero::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background:
        radial-gradient(600px 400px at 85% 10%, rgba(75, 59, 255, .55), transparent 70%),
        radial-gradient(500px 360px at 5% 90%, rgba(255, 122, 26, .28), transparent 70%);
}
.hero::after {
    content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
    background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
    background-size: 44px 44px; mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 75%);
}
.hero .container { padding-top: 64px; padding-bottom: 72px; }
.hero h1 { color: #fff; font-size: clamp(2.1rem, 5.4vw, 3.9rem); line-height: 1.05; letter-spacing: -.035em; }
.hero h1 .hl { background: linear-gradient(90deg, #ffb27a, #ff7a1a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { color: #b9c0e0; font-size: 1.12rem; max-width: 540px; }
.hero-search { background: #fff; border-radius: 18px; padding: 8px; display: flex; gap: 8px; box-shadow: var(--shadow-lg); max-width: 560px; position: relative; }
.hero-search .form-control { border: 0; box-shadow: none; height: 50px; background: transparent; padding-left: 44px; }
.hero-search .bi-search { position: absolute; left: 26px; top: 28px; transform: translateY(-50%); color: var(--muted); }
.hero-search .suggest { top: calc(100% + 8px); color: var(--text); }
.hero-chips a { display: inline-flex; align-items: center; gap: 6px; font-size: .84rem; font-weight: 600; color: #dfe3f7; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); padding: 6px 12px; border-radius: 999px; transition: .15s; }
.hero-chips a:hover { background: rgba(255, 255, 255, .18); color: #fff; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 22px; color: #b9c0e0; font-size: .9rem; }
.hero-trust strong { color: #fff; font-family: var(--font-head); font-size: 1.35rem; display: block; line-height: 1.1; }
.stars { color: #ffb400; letter-spacing: 1px; }

.hero-stack { position: relative; height: 430px; }
.float-card {
    position: absolute; background: rgba(255, 255, 255, .96); color: var(--text); border-radius: 18px; padding: 14px 16px;
    display: flex; align-items: center; gap: 12px; box-shadow: var(--shadow-lg); min-width: 230px;
    animation: float 6s ease-in-out infinite;
}
.float-card .n { font-family: var(--font-head); font-weight: 800; color: var(--ink); line-height: 1.2; }
.float-card .p { font-size: .8rem; color: var(--muted); }
.float-card .pill { margin-left: auto; font-size: .7rem; font-weight: 700; color: var(--success); background: var(--success-soft); padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.float-card:nth-child(1) { top: 10px; left: 8%; animation-delay: 0s; }
.float-card:nth-child(2) { top: 100px; right: 0; animation-delay: -1.5s; }
.float-card:nth-child(3) { top: 210px; left: 0; animation-delay: -3s; }
.float-card:nth-child(4) { top: 310px; right: 6%; animation-delay: -4.5s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@media (max-width: 991.98px) { .hero .container { padding-top: 36px; padding-bottom: 44px; } .hero-stack { display: none; } }
@media (max-width: 575.98px) {
    .hero-search { flex-direction: column; padding: 10px; }
    .hero-search .bi-search { top: 33px; left: 24px; }
    .hero-search .btn { width: 100%; }
}

/* marquee of logos */
.marquee { overflow: hidden; background: #fff; border-bottom: 1px solid var(--line); padding: 18px 0; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 44px; width: max-content; animation: scroll 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { display: flex; align-items: center; gap: 10px; font-weight: 700; color: #4b5578; white-space: nowrap; font-family: var(--font-head); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* 8 ---------- Sections ---------- */
.cat-card {
    display: flex; flex-direction: column; gap: 10px; height: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 22px; color: var(--text); transition: transform .2s, box-shadow .2s, border-color .2s; position: relative; overflow: hidden;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; color: var(--text); }
.cat-card .ico { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; font-size: 1.5rem; background: var(--primary-soft); color: var(--primary); transition: .2s; }
.cat-card:hover .ico { background: var(--primary); color: #fff; transform: rotate(-6deg) scale(1.05); }
.cat-card h3 { font-size: 1.1rem; margin: 6px 0 0; }
.cat-card p { color: var(--muted); font-size: .9rem; margin: 0; }
.cat-card .go { margin-top: auto; font-weight: 700; font-size: .88rem; color: var(--primary); }

/* Plan switch (segmented control) */
.plan-switch { display: inline-flex; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 4px; box-shadow: var(--shadow-sm); gap: 2px; }
.plan-switch button { border: 0; background: none; padding: 9px 18px; border-radius: 10px; font-weight: 700; font-size: .9rem; color: var(--muted); transition: .18s; position: relative; white-space: nowrap; }
.plan-switch button.active { background: var(--primary); color: #fff; box-shadow: 0 6px 14px -6px rgba(75, 59, 255, .8); }
.plan-switch .save { font-size: .62rem; background: var(--accent); color: #fff; padding: 2px 6px; border-radius: 999px; margin-left: 6px; vertical-align: 2px; }
@media (max-width: 575.98px) { .plan-switch { width: 100%; } .plan-switch button { flex: 1; padding: 10px 6px; font-size: .84rem; } .plan-switch .save { display: none; } }

/* steps */
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; height: 100%; }
.step .num { position: absolute; top: 16px; right: 18px; font-family: var(--font-head); font-weight: 800; font-size: 2.6rem; color: #eef0f7; line-height: 1; }
.step .ico { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(135deg, #6a5cff, #4b3bff); color: #fff; font-size: 1.5rem; margin-bottom: 16px; box-shadow: 0 10px 20px -8px rgba(75, 59, 255, .7); }
.step h3 { font-size: 1.05rem; }
.step p { color: var(--muted); font-size: .92rem; margin: 0; }

/* calculator */
.calc { background: var(--ink); border-radius: 24px; color: #fff; position: relative; overflow: hidden; isolation: isolate; }
.calc::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(500px 300px at 100% 0, rgba(75, 59, 255, .5), transparent 70%), radial-gradient(400px 300px at 0 100%, rgba(255, 122, 26, .25), transparent 70%); }
.calc h2 { color: #fff; }
.calc .form-select { background-color: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .2); }
.calc .form-select option { color: #111; }
.calc-result { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); border-radius: 18px; padding: 24px; }
.calc-result .big { font-family: var(--font-head); font-weight: 800; font-size: clamp(2rem, 5vw, 3rem); line-height: 1; color: #ffb27a; }
.calc .seg button { border: 1px solid rgba(255, 255, 255, .2); background: transparent; color: #dfe3f7; border-radius: 10px; padding: 8px 16px; font-weight: 600; }
.calc .seg button.active { background: #fff; color: var(--ink); border-color: #fff; }

/* bento */
.bento { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; height: 100%; transition: .2s; }
.bento:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.bento .ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 1.3rem; margin-bottom: 14px; }
.bento h3 { font-size: 1.1rem; }
.bento p { color: var(--muted); margin: 0; font-size: .93rem; }
.bento.dark { background: var(--ink); color: #c8cdea; border: 0; }
.bento.dark h3 { color: #fff; }
.bento.dark p { color: #b9c0e0; }

/* testimonials */
.t-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; height: 100%; display: flex; flex-direction: column; gap: 14px; }
.t-card p { margin: 0; color: var(--text); }
.avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-family: var(--font-head); flex: 0 0 44px; }
.t-scroll { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 16px; margin: 0 -4px; scrollbar-width: none; }
.t-scroll::-webkit-scrollbar { display: none; }
.t-scroll > * { flex: 0 0 min(86%, 360px); scroll-snap-align: start; }
@media (min-width: 992px) { .t-scroll { display: grid; grid-template-columns: repeat(3, 1fr); overflow: visible; } .t-scroll > * { flex: none; } }

/* faq */
.accordion { --bs-accordion-border-color: var(--line); --bs-accordion-btn-focus-box-shadow: 0 0 0 4px rgba(75, 59, 255, .12); --bs-accordion-active-bg: var(--primary-soft); --bs-accordion-active-color: var(--primary); --bs-accordion-border-radius: 14px; }
.accordion-item { border-radius: 14px !important; overflow: hidden; margin-bottom: 10px; border: 1px solid var(--line) !important; }
.accordion-button { font-weight: 700; font-family: var(--font-head); padding: 18px 20px; }
.accordion-button:not(.collapsed) { box-shadow: none; }

/* CTA */
.cta-band { background: linear-gradient(120deg, #4b3bff, #6a5cff 55%, #ff7a1a 140%); color: #fff; border-radius: 28px; padding: 48px 36px; position: relative; overflow: hidden; }
.cta-band h2 { color: #fff; }
.cta-band::after { content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%; right: -100px; top: -140px; background: rgba(255, 255, 255, .12); }
@media (max-width: 575.98px) { .cta-band { padding: 32px 22px; border-radius: 22px; } }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .float-card, .marquee-track { animation: none; } html { scroll-behavior: auto; } }

/* 9 ---------- Product card ---------- */
.p-card {
    position: relative; display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 20px; transition: transform .2s, box-shadow .2s, border-color .2s;
}
.p-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.p-card .p-top { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.p-card .p-name { font-size: 1.08rem; font-weight: 800; margin: 0; line-height: 1.2; color: var(--ink); }
.p-card .p-name a { color: inherit; }
.p-card .p-name a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); } /* whole card clickable */
.p-card .p-vendor { font-size: .8rem; color: var(--muted); }
.p-card .p-tag { color: var(--muted); font-size: .9rem; margin: 0 0 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.p-card .p-foot { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.p-card .price { font-family: var(--font-head); font-weight: 800; font-size: 1.4rem; color: var(--ink); line-height: 1; }
.p-card .per { font-size: .78rem; color: var(--muted); }
.p-card .add-btn { position: relative; z-index: 2; width: 46px; height: 46px; padding: 0; border-radius: 14px; font-size: 1.2rem; display: grid; place-items: center; }
.p-badge { position: absolute; top: 14px; right: 14px; z-index: 1; font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; padding: 4px 9px; border-radius: 999px; background: var(--accent-soft); color: #c2570a; }
.p-badge.green { background: var(--success-soft); color: #067647; }
.save-pill { display: inline-block; font-size: .72rem; font-weight: 700; color: #067647; background: var(--success-soft); padding: 2px 8px; border-radius: 999px; }
.rating { font-size: .82rem; color: var(--muted); display: inline-flex; align-items: center; gap: 4px; }
.rating i { color: #ffb400; }

/* 10 ---------- Shop page ---------- */
.page-head { background: linear-gradient(180deg, #fff, var(--bg)); border-bottom: 1px solid var(--line); padding: 34px 0 26px; }
.breadcrumb { font-size: .85rem; margin-bottom: 10px; --bs-breadcrumb-divider-color: var(--muted); }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--primary); }
.filter-list a { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-radius: 10px; color: var(--text); font-weight: 600; font-size: .92rem; }
.filter-list a:hover { background: var(--primary-soft); }
.filter-list a.active { background: var(--primary); color: #fff; }
.filter-list .count { font-size: .75rem; opacity: .7; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.cat-scroller { display: none; }
@media (max-width: 991.98px) {
    .cat-scroller { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 14px; scrollbar-width: none; margin: 0 -12px; padding-left: 12px; padding-right: 12px; }
    .cat-scroller::-webkit-scrollbar { display: none; }
    .cat-scroller a { flex: 0 0 auto; padding: 8px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 600; font-size: .86rem; color: var(--text); white-space: nowrap; }
    .cat-scroller a.active { background: var(--primary); color: #fff; border-color: var(--primary); }
}
.empty { text-align: center; padding: 60px 20px; }
.empty .bi { font-size: 3rem; color: #b8bdd6; }

/* 11 ---------- Product page ---------- */
.product-hero { display: flex; gap: 22px; align-items: center; }
.plan-option { display: block; cursor: pointer; margin: 0; }
.plan-option input { position: absolute; opacity: 0; pointer-events: none; }
.plan-option .box {
    display: flex; align-items: center; gap: 14px; border: 2px solid var(--line); border-radius: 16px; padding: 16px 18px; background: #fff;
    transition: border-color .15s, box-shadow .15s, background .15s; position: relative;
}
.plan-option:hover .box { border-color: #c9c4ff; }
.plan-option input:checked + .box { border-color: var(--primary); background: var(--primary-soft); box-shadow: 0 0 0 4px rgba(75, 59, 255, .1); }
.plan-option input:focus-visible + .box { outline: 3px solid rgba(75, 59, 255, .45); outline-offset: 2px; }
.plan-option .radio { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #c3c8dc; flex: 0 0 22px; display: grid; place-items: center; transition: .15s; }
.plan-option input:checked + .box .radio { border-color: var(--primary); background: var(--primary); box-shadow: inset 0 0 0 4px #fff; }
.plan-option .pname { font-weight: 800; font-family: var(--font-head); color: var(--ink); }
.plan-option .psub { font-size: .82rem; color: var(--muted); }
.plan-option .pprice { margin-left: auto; text-align: right; font-family: var(--font-head); font-weight: 800; font-size: 1.2rem; color: var(--ink); line-height: 1.1; }
.plan-option .ribbon { position: absolute; top: -11px; right: 16px; font-size: .68rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; background: var(--accent); color: #fff; padding: 3px 10px; border-radius: 999px; }
.buy-box { position: sticky; top: 90px; }
.feature-list { list-style: none; padding: 0; margin: 0; }
.feature-list li { display: flex; gap: 10px; padding: 7px 0; align-items: flex-start; }
.feature-list i { color: var(--success); margin-top: 2px; }
.trust-mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; font-size: .75rem; color: var(--muted); }
.trust-mini i { display: block; font-size: 1.3rem; color: var(--primary); margin-bottom: 2px; }
.sticky-buy { display: none; }
@media (max-width: 991.98px) {
    .sticky-buy {
        display: flex; align-items: center; gap: 12px; position: fixed; left: 0; right: 0; bottom: 64px; z-index: 1034;
        background: #fff; border-top: 1px solid var(--line); padding: 10px 14px; box-shadow: 0 -10px 24px -12px rgba(16, 24, 40, .25);
    }
    .sticky-buy .sp { font-family: var(--font-head); font-weight: 800; font-size: 1.2rem; color: var(--ink); line-height: 1.1; }
    .buy-box { position: static; }
    body.has-sticky-buy { padding-bottom: 150px; }
    .product-hero { flex-direction: column; align-items: flex-start; gap: 14px; }
}

/* "Choose duration" popup: centred dialog on desktop, bottom sheet on phones */
.plan-modal .modal-dialog { max-width: 480px; }
.plan-modal .modal-content { border: 0; border-radius: 22px; padding: 22px; box-shadow: var(--shadow-lg); position: relative; }
.plan-modal .pm-close { position: absolute; top: 16px; right: 16px; z-index: 2; }
.plan-modal .pm-head { display: flex; align-items: center; gap: 14px; padding-right: 28px; }
.plan-modal .pm-ask { font-weight: 700; color: var(--ink); margin: 18px 0 12px; }
.plan-modal .pm-options { padding-top: 6px; }
.plan-modal .pm-foot { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line); }
.plan-modal .qty button:disabled { opacity: .35; }
.sheet-handle { width: 44px; height: 5px; border-radius: 5px; background: #d5d9e6; margin: -8px auto 14px; }
.modal-backdrop.show { opacity: .55; }
@media (max-width: 575.98px) {
    .plan-modal .modal-dialog { margin: 0; max-width: none; min-height: 100%; display: flex; align-items: flex-end; }
    .plan-modal.fade .modal-dialog { transform: translateY(100%); transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
    .plan-modal.show .modal-dialog { transform: none; }
    .plan-modal .modal-content { width: 100%; border-radius: 24px 24px 0 0; padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); max-height: 92vh; overflow-y: auto; }
    .plan-modal .pm-close { top: 14px; right: 14px; }
    .plan-modal .plan-option .box { padding: 14px; }
}
@media (prefers-reduced-motion: reduce) { .plan-modal.fade .modal-dialog { transition: none; } }

/* 12 ---------- Cart & checkout ---------- */
.cart-line { display: flex; gap: 16px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.cart-line:last-child { border-bottom: 0; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.qty button { width: 36px; height: 38px; border: 0; background: none; font-size: 1.1rem; color: var(--text); }
.qty button:hover { background: var(--primary-soft); color: var(--primary); }
.qty span { min-width: 30px; text-align: center; font-weight: 700; }
.summary { position: sticky; top: 90px; }
.summary .row-line { display: flex; justify-content: space-between; padding: 6px 0; color: var(--muted); }
.summary .row-line.total { color: var(--ink); font-family: var(--font-head); font-weight: 800; font-size: 1.35rem; border-top: 1px dashed var(--line); margin-top: 8px; padding-top: 14px; }
.summary .row-line .text-success { font-weight: 600; }
.stepper { display: flex; align-items: center; gap: 10px; font-size: .86rem; font-weight: 600; color: var(--muted); flex-wrap: wrap; }
.stepper .s { display: inline-flex; align-items: center; gap: 8px; }
.stepper .s b { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #e6e8f0; color: var(--muted); font-size: .78rem; }
.stepper .s.done b, .stepper .s.now b { background: var(--primary); color: #fff; }
.stepper .s.now { color: var(--ink); }
.stepper .line { width: 28px; height: 2px; background: #dfe2ee; }
.pay-option { display: block; cursor: pointer; margin: 0; }
.pay-option input { position: absolute; opacity: 0; }
.pay-option .box { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 2px solid var(--line); border-radius: 14px; background: #fff; transition: .15s; font-weight: 700; }
.pay-option .box i { font-size: 1.4rem; color: var(--primary); }
.pay-option input:checked + .box { border-color: var(--primary); background: var(--primary-soft); }
.pay-option input:focus-visible + .box { outline: 3px solid rgba(75, 59, 255, .45); outline-offset: 2px; }
.pay-details { display: none; background: #f7f8fc; border: 1px dashed #c9cde0; border-radius: 14px; padding: 16px; margin-top: 12px; }
.pay-details.show { display: block; animation: pop .25s ease; }
@keyframes pop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.copy-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid #e9ebf3; }
.copy-row:last-child { border-bottom: 0; }
.copy-row small { color: var(--muted); display: block; }
.copy-row strong { word-break: break-all; }
.copy-btn { border: 1px solid var(--line); background: #fff; border-radius: 9px; padding: 4px 10px; font-size: .78rem; font-weight: 600; color: var(--primary); white-space: nowrap; }
.copy-btn.done { background: var(--success-soft); color: #067647; border-color: transparent; }
.success-check { width: 92px; height: 92px; border-radius: 50%; background: var(--success-soft); color: var(--success); display: grid; place-items: center; font-size: 3rem; margin: 0 auto 18px; animation: pop .5s ease; box-shadow: 0 0 0 12px rgba(18, 183, 106, .1); }
@media (max-width: 991.98px) { .summary { position: static; } }

/* 13 ---------- Account & auth ---------- */
.acct-nav a { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 12px; font-weight: 600; color: var(--text); }
.acct-nav a:hover { background: var(--primary-soft); color: var(--primary); }
.acct-nav a.active { background: var(--primary); color: #fff; }
@media (max-width: 991.98px) {
    .acct-nav { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 6px; }
    .acct-nav::-webkit-scrollbar { display: none; }
    .acct-nav a { white-space: nowrap; background: #fff; border: 1px solid var(--line); padding: 9px 14px; }
}
.stat-tile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.stat-tile .v { font-family: var(--font-head); font-weight: 800; font-size: 1.6rem; color: var(--ink); line-height: 1.1; }
.stat-tile .l { color: var(--muted); font-size: .85rem; }
.sub-card { display: flex; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.progress { height: 8px; border-radius: 8px; background: #eceef6; }
.progress-bar { background: var(--primary); }
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline li { position: relative; padding: 0 0 18px 28px; }
.timeline li::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: -6px; width: 2px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline li::after { content: ""; position: absolute; left: 0; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.auth-wrap { min-height: calc(100vh - 140px); display: grid; align-items: center; padding: 36px 0; }
.auth-side { background: var(--ink); color: #c8cdea; border-radius: 24px; padding: 40px; height: 100%; position: relative; overflow: hidden; isolation: isolate; }
.auth-side::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(400px 300px at 100% 0, rgba(75, 59, 255, .6), transparent 70%), radial-gradient(300px 250px at 0 100%, rgba(255, 122, 26, .3), transparent 70%); }
.auth-side h2 { color: #fff; }
.auth-side li { display: flex; gap: 10px; margin-bottom: 12px; }
.auth-side li i { color: #ffb27a; }

/* 14 ---------- Footer ---------- */
.footer { background: var(--ink); color: #aab1d1; padding: 64px 0 24px; margin-top: 40px; }
.footer h6 { color: #fff; font-size: .92rem; margin-bottom: 14px; }
.footer a { color: #aab1d1; display: block; padding: 4px 0; font-size: .92rem; }
.footer a:hover { color: #fff; }
.footer .brand { color: #fff; }
.footer .brand b { color: #ffb27a; }
.footer .social a { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(255, 255, 255, .08); color: #fff; margin-right: 8px; padding: 0; font-size: 1.1rem; }
.footer .social a:hover { background: var(--primary); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 40px; padding-top: 20px; font-size: .85rem; }
.pay-chip { display: inline-block; font-size: .72rem; font-weight: 700; padding: 4px 10px; border-radius: 8px; background: rgba(255, 255, 255, .08); color: #dfe3f7; margin: 0 6px 6px 0; }

/* 15 ---------- Misc ---------- */
.toast-wrap { position: fixed; z-index: 2000; right: 16px; top: 84px; display: flex; flex-direction: column; gap: 10px; max-width: calc(100vw - 32px); }
.toast-card { background: var(--ink); color: #fff; border-radius: 14px; padding: 14px 16px; display: flex; gap: 12px; align-items: center; box-shadow: var(--shadow-lg); animation: slidein .3s ease; min-width: 280px; }
.toast-card i.ok { color: #4ade80; font-size: 1.4rem; }
.toast-card a { color: #ffb27a; font-weight: 700; margin-left: auto; white-space: nowrap; }
@keyframes slidein { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: none; } }
@media (max-width: 575.98px) { .toast-wrap { left: 12px; right: 12px; top: 70px; } .toast-card { min-width: 0; } }
.wa-float { position: fixed; right: 18px; bottom: 22px; z-index: 1033; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; font-size: 1.7rem; box-shadow: 0 12px 28px -8px rgba(37, 211, 102, .8); transition: transform .2s; }
.wa-float:hover { transform: scale(1.08); color: #fff; }
@media (max-width: 991.98px) { .wa-float { bottom: 84px; right: 14px; width: 50px; height: 50px; font-size: 1.5rem; } body.has-sticky-buy .wa-float { bottom: 140px; } }
.prose { max-width: 780px; }
.prose h2 { font-size: 1.35rem; margin-top: 2rem; }
.prose p, .prose li { color: #3c4568; line-height: 1.75; }
.alert { border-radius: 14px; border: 0; }
.pagination { --bs-pagination-active-bg: var(--primary); --bs-pagination-active-border-color: var(--primary); --bs-pagination-color: var(--text); --bs-pagination-border-radius: 10px; gap: 4px; flex-wrap: wrap; }
.pagination .page-link { border-radius: 10px !important; border-color: var(--line); }
.badge-status { font-weight: 700; padding: .45em .8em; border-radius: 999px; font-size: .74rem; }
.table > :not(caption) > * > * { padding: .85rem 1rem; }
.table-responsive-cards th { font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; }
