* { box-sizing: border-box; }
body {
    font-family: var(--font);
    background: #ffffff;
    color: #1e293b;
    margin: 0;
    padding-top: calc(var(--header-h) + var(--subnav-h));
}

/* ============================================================
   TOPBAR — gradient with soft border and glass highlights
   ============================================================ */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--header-h);
    background:
        radial-gradient(circle at top right, rgba(255,255,255,.14) 0%, transparent 45%),
        linear-gradient(135deg, var(--grad-start), var(--grad-end));
    color: #fff;
    z-index: 1050;
    border-bottom: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 4px 20px rgba(15,23,42,.22);
}
.site-header .container {
    height: 100%;
    max-width: 1320px;
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* ---- BRAND with logo chip ---- */
.brand {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    text-decoration: none;
    color: #fff;
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: -.02em;
    flex-shrink: 0;
}
.brand .logo-chip {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 5px;
    box-shadow: 0 4px 14px rgba(0,0,0,.22), inset 0 0 0 1px rgba(15,23,42,.05);
    flex-shrink: 0;
}
.brand .logo-chip img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}
.brand .logo-chip i {
    font-size: 1.4rem;
    color: var(--primary);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.brand .brand-name { line-height: 1; }
.brand .brand-tag {
    display: block;
    font-size: .62rem;
    font-weight: 600;
    color: rgba(255,255,255,.55);
    text-transform: uppercase;
    letter-spacing: .12em;
    margin-top: 3px;
}

/* ---- SEARCH (always white background) ---- */
.header-search {
    flex: 1 1 auto;
    max-width: 620px;
    position: relative;
    display: flex;
    align-items: center;
}
.header-search input {
    width: 100%;
    height: 42px;
    padding: 0 54px 0 1.25rem;
    border-radius: 50px;
    border: 0;
    background: #ffffff;
    color: #0f172a;
    font-size: .92rem;
    font-weight: 500;
    transition: box-shadow .2s;
    outline: none;
    box-shadow: 0 2px 10px rgba(0,0,0,.15), 0 0 0 0 rgba(255,255,255,.5);
}
.header-search input::placeholder { color: #94a3b8; font-weight: 400; }
.header-search input:focus {
    box-shadow: 0 4px 18px rgba(0,0,0,.2), 0 0 0 3px rgba(255,255,255,.35);
}
.header-search button {
    position: absolute;
    top: 50%;
    right: 5px;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 0;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .88rem;
    transition: transform .15s;
    box-shadow: 0 3px 10px rgba(99,102,241,.4);
}
.header-search button:hover { transform: translateY(-50%) scale(1.08); }

/* ---- RIGHT ACTIONS ---- */
.header-nav {
    display: flex;
    align-items: center;
    gap: .35rem;
    margin-left: auto;
    flex-shrink: 0;
}

/* Icon button */
.header-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.1);
    border: 0;
    color: #fff;
    font-size: 1.1rem;
    position: relative;
    cursor: pointer;
    transition: .2s;
    text-decoration: none;
    flex-shrink: 0;
}
.header-icon:hover { background: rgba(255,255,255,.22); color: #fff; }

/* Badge — bright gradient with glow */
.badge-dot {
    position: absolute;
    top: -3px;
    right: -3px;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 50px;
    background: linear-gradient(135deg, #fbbf24, #f43f5e);
    color: #fff;
    font-size: .66rem;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    border: 2.5px solid #1e293b;
    box-shadow: 0 3px 10px rgba(244,63,94,.6), 0 0 0 1px rgba(255,255,255,.25);
    animation: badgePulse 2.5s ease-in-out infinite;
}
@keyframes badgePulse {
    0%, 100% { transform: scale(1); box-shadow: 0 3px 10px rgba(244,63,94,.6), 0 0 0 1px rgba(255,255,255,.25); }
    50% { transform: scale(1.08); box-shadow: 0 3px 16px rgba(244,63,94,.85), 0 0 0 1px rgba(255,255,255,.35); }
}

/* Cart button */
.cart-btn {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: 0 1rem 0 .9rem;
    height: 42px;
    border-radius: 50px;
    background: #ffffff;
    border: 0;
    color: #0f172a;
    font-weight: 800;
    font-size: .85rem;
    cursor: pointer;
    transition: .2s;
    text-decoration: none;
    flex-shrink: 0;
    box-shadow: 0 3px 12px rgba(0,0,0,.15);
}
.cart-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.24); color: #0f172a; }
.cart-btn i { font-size: 1.05rem; color: var(--primary); }
.cart-btn .cart-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 7px;
    border-radius: 50px;
    background: linear-gradient(135deg, #fbbf24, #f43f5e);
    color: #fff;
    font-size: .72rem;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 2px 8px rgba(244,63,94,.5);
    animation: badgePulse 2.5s ease-in-out infinite;
}

/* User trigger */
.user-trigger {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .35rem .8rem .35rem .35rem;
    border-radius: 50px;
    background: rgba(255,255,255,.12);
    border: 1.5px solid rgba(255,255,255,.2);
    cursor: pointer;
    transition: .2s;
    text-decoration: none;
    color: #fff;
    font-weight: 700;
    font-size: .85rem;
    flex-shrink: 0;
}
.user-trigger:hover { background: rgba(255,255,255,.22); color: #fff; border-color: rgba(255,255,255,.4); }
.user-trigger .avatar {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fbbf24, #a855f7);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: .82rem;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.user-trigger .name { max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* CTA */
.btn-cta {
    padding: .55rem 1.25rem;
    height: 42px;
    border-radius: var(--radius);
    background: #ffffff;
    color: var(--grad-start);
    font-weight: 800;
    font-size: .85rem;
    text-decoration: none;
    border: 0;
    cursor: pointer;
    transition: .2s;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(0,0,0,.2);
}
.btn-cta:hover { color: var(--grad-start); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.3); }

/* Hamburger */
.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(255,255,255,.12);
    border: 0;
    color: #fff;
    font-size: 1.3rem;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ============================================================
   SUB NAV — white with clear divider
   ============================================================ */
.sub-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    height: var(--subnav-h);
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    z-index: 1040;
}
.sub-nav .container {
    height: 100%;
    max-width: 1320px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}
.sub-nav-links,
.sub-nav-cms {
    display: flex;
    align-items: center;
    gap: .1rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
.sub-nav a {
    padding: .35rem .8rem;
    border-radius: 50px;
    font-size: .82rem;
    font-weight: 600;
    color: #475569;
    text-decoration: none;
    transition: .15s;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    white-space: nowrap;
}
.sub-nav a:hover { background: #f1f5f9; color: var(--primary); }
.sub-nav a.highlight {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    box-shadow: 0 3px 12px rgba(99,102,241,.28);
}
.sub-nav a.highlight:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(99,102,241,.4); }
.sub-nav-cms a { color: #94a3b8; font-size: .8rem; }
.sub-nav-cms a:hover { color: var(--primary); background: #f1f5f9; }

/* ============================================================
   DRAWER
   ============================================================ */
.drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,.5);
    backdrop-filter: blur(4px);
    z-index: 1055;
    opacity: 0; visibility: hidden;
    transition: opacity .3s, visibility .3s;
}
.drawer-backdrop.open { opacity: 1; visibility: visible; }
.drawer {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: 350px;
    max-width: 88vw;
    background: #fff;
    z-index: 1060;
    transform: translateX(100%);
    transition: transform .35s cubic-bezier(.4,0,.2,1);
    display: flex;
    flex-direction: column;
    box-shadow: -20px 0 60px rgba(15,23,42,.2);
}
.drawer.open { transform: translateX(0); }
.drawer-head {
    padding: 1.15rem 1.25rem;
    background: linear-gradient(135deg, var(--grad-start), var(--grad-end));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}
.drawer-head .brand { font-size: 1rem; gap: .6rem; }
.drawer-head .brand .logo-chip { width: 36px; height: 36px; padding: 4px; border-radius: 10px; }
.drawer-head .brand .brand-tag { display: none; }
.drawer-close {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,.15);
    border: 0; color: #fff;
    cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1rem;
    transition: .2s;
}
.drawer-close:hover { background: rgba(255,255,255,.28); }

.drawer-search { padding: 1rem 1.25rem 0; flex-shrink: 0; }
.drawer-search .header-search { max-width: none; }
.drawer-search .header-search input {
    background: #f1f5f9;
    color: #0f172a;
    border: 1.5px solid #e2e8f0;
    box-shadow: none;
}
.drawer-search .header-search input:focus {
    background: #fff;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99,102,241,.1);
}
.drawer-search .header-search button { box-shadow: none; }

.drawer-user {
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: .8rem;
    border-bottom: 1px solid #f1f5f9;
    flex-shrink: 0;
}
.drawer-user .avatar {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 1.2rem;
    box-shadow: 0 4px 12px rgba(99,102,241,.3);
}
.drawer-user .name { font-weight: 700; color: #0f172a; font-size: .92rem; }
.drawer-user .role { font-size: .72rem; color: #94a3b8; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; }

.drawer-nav { flex: 1; overflow-y: auto; padding: .5rem 0 1rem; }
.drawer-nav .section-label {
    padding: .85rem 1.25rem .35rem;
    font-size: .68rem;
    font-weight: 800;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: .1em;
}
.drawer-nav a {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .65rem 1.25rem;
    color: #334155;
    text-decoration: none;
    font-weight: 600;
    font-size: .9rem;
    transition: .15s;
}
.drawer-nav a:hover { background: #f8fafc; color: var(--primary); }
.drawer-nav a i {
    width: 34px; height: 34px;
    border-radius: 10px;
    display: inline-flex; align-items: center; justify-content: center;
    background: #f1f5f9;
    color: var(--primary);
    font-size: .95rem;
    flex-shrink: 0;
}
.drawer-nav a:hover i { background: linear-gradient(135deg, var(--primary), var(--secondary)); color: #fff; }
.drawer-nav a .badge {
    margin-left: auto;
    background: linear-gradient(135deg, #fbbf24, #f43f5e);
    color: #fff;
    padding: .18rem .6rem;
    border-radius: 50px;
    font-size: .68rem;
    font-weight: 900;
    box-shadow: 0 2px 6px rgba(244,63,94,.4);
}

.drawer-foot {
    padding: 1rem 1.25rem calc(1rem + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid #f1f5f9;
    flex-shrink: 0;
}

/* ============================================================
   MOBILE
   ============================================================ */
@media (max-width: 991px) {
    :root { --header-h: 62px; --subnav-h: 0px; }
    .header-search { display: none; }
    .header-nav { display: none; }
    .sub-nav { display: none; }
    .menu-toggle { display: inline-flex; }
    .brand .brand-tag { display: none; }
}

/* How It Works section */
.how-it-works-section {
    background-color: #ffffff;
    background-image:
        linear-gradient(rgba(15,23,42,.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15,23,42,.03) 1px, transparent 1px);
    background-size: 40px 40px;
    padding: 3.5rem 0;
    position: relative;
}

.hiw-grid {
    display: grid;
    gap: 1.5rem;
    align-items: stretch;
}
@media (max-width: 992px) {
    .hiw-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 576px) {
    .hiw-grid { grid-template-columns: 1fr !important; }
}

.hiw-step {
    background: #fff;
    border-radius: 1.25rem;
    padding: 2rem 1.5rem;
    text-align: center;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 14px rgba(15,23,42,.04);
    transition: .3s;
    height: 100%;
    position: relative;
    overflow: hidden;
}
.hiw-step:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 44px rgba(15,23,42,.1);
    border-color: rgba(99,102,241,.25);
}

.hiw-step .hiw-num {
    position: absolute;
    top: .75rem; right: 1rem;
    font-size: 4rem;
    font-weight: 900;
    line-height: 1;
    color: #f1f5f9;
    letter-spacing: -.05em;
    z-index: 0;
    pointer-events: none;
}

.hiw-step .hiw-icon {
    position: relative;
    z-index: 1;
    width: 64px;
    height: 64px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    color: #fff;
    margin-bottom: 1rem;
    box-shadow: 0 10px 24px rgba(99,102,241,.25);
}

.hiw-step h5 {
    position: relative;
    z-index: 1;
    font-weight: 800;
    color: #0f172a;
    font-size: 1.1rem;
    margin-bottom: .5rem;
    letter-spacing: -.01em;
}

.hiw-step p {
    position: relative;
    z-index: 1;
    color: #64748b;
    font-size: .88rem;
    line-height: 1.6;
    margin: 0;
}