/* ==========================================================================
   Cardwisechoice — light design system (public site + dashboard)
   Ink on paper; the virtual card is the only object with real depth.
   ========================================================================== */

:root {
    --paper: #ffffff;
    --mist: #f5f6f8;
    --mist-2: #eef0f3;
    --line: #e6e8ec;
    --line-2: #d9dce2;
    --slate: #5b6170;
    --slate-2: #8a909c;
    --ink: #101828;
    --ink-2: #1d2939;
    --ember: #ff5b14;
    --ember-soft: #fff1ea;
    --ok: #0e9f6e;
    --ok-soft: #e7f6ef;
    --warn: #b54708;
    --warn-soft: #fef4e6;
    --bad: #d92d20;
    --bad-soft: #fdecea;
    --info: #2347f5;
    --info-soft: #ecf0ff;

    --r-sm: 10px;
    --r: 14px;
    --r-lg: 20px;
    --r-xl: 28px;
    --shadow-1: 0 1px 2px rgba(16, 24, 40, .05);
    --shadow-2: 0 12px 32px -12px rgba(16, 24, 40, .18);
    --ring: 0 0 0 4px rgba(255, 91, 20, .18);

    --font: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --header-h: 72px;
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body.cw {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}
:where(.cw) :is(h1, h2, h3, h4, h5, h6) {
    font-family: var(--font);
    color: var(--ink);
    font-weight: 600;
    letter-spacing: -.02em;
    line-height: 1.2;
    margin: 0 0 .5em;
}
:where(.cw) p { margin: 0 0 1em; }
:where(.cw) a { color: inherit; text-decoration: none; transition: color .15s; }
:where(.cw) a:hover { color: var(--ember); }
:where(.cw) img { max-width: 100%; height: auto; }
.cw ::selection { background: var(--ink); color: #fff; }
.cw :focus-visible { outline: 2px solid var(--ember); outline-offset: 2px; border-radius: 6px; }
.cw .num, .cw .money { font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.cw .text-slate { color: var(--slate) !important; }
.cw .container { max-width: 1200px; }
.cw-skip { position: absolute; left: -999px; top: 8px; z-index: 1000; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; }
.cw-skip:focus { left: 8px; color: #fff; }

/* ---------- Brand mark (pure CSS, no image) ---------- */
.cw-logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; letter-spacing: -.035em; color: var(--ink); white-space: nowrap; }
.cw-logo:hover { color: var(--ink); }
.cw-mark { position: relative; width: 30px; height: 30px; border-radius: 9px; background: var(--ink); flex-shrink: 0; }
.cw-mark::before { content: ""; position: absolute; inset: 7px; border: 3px solid #fff; border-right-color: transparent; border-radius: 50%; transform: rotate(45deg); }
.cw-mark::after { content: ""; position: absolute; width: 6px; height: 6px; border-radius: 50%; background: var(--ember); right: 6px; top: 12px; }
.cw-logo--light { color: #fff; }
.cw-logo--light .cw-mark { background: #fff; }
.cw-logo--light .cw-mark::before { border-color: var(--ink); border-right-color: transparent; }

/* ---------- Buttons ---------- */
.cw-btn {
    --b-bg: var(--ink); --b-fg: #fff; --b-bd: var(--ink);
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 48px; padding: 0 22px; border-radius: 12px;
    background: var(--b-bg); color: var(--b-fg) !important; border: 1px solid var(--b-bd);
    font: 600 15px/1 var(--font); letter-spacing: -.01em; white-space: nowrap;
    cursor: pointer; transition: transform .15s, background .15s, box-shadow .15s, border-color .15s;
}
.cw-btn:hover { background: var(--ink-2); color: #fff; box-shadow: var(--shadow-2); }
.cw-btn:active { transform: translateY(1px); }
.cw-btn i { font-size: 18px; }
.cw-btn--ember { --b-bg: var(--ember); --b-bd: var(--ember); }
.cw-btn--ember:hover { background: #ec4d08; }
.cw-btn--ghost { --b-bg: #fff; --b-fg: var(--ink); --b-bd: var(--line-2); }
.cw-btn--ghost:hover { background: var(--mist); color: var(--ink) !important; box-shadow: none; border-color: var(--slate-2); }
.cw-btn--light { --b-bg: #fff; --b-fg: var(--ink); --b-bd: #fff; }
.cw-btn--light:hover { background: #f1f2f4; color: var(--ink) !important; }
.cw-btn--sm { height: 38px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.cw-btn--lg { height: 56px; padding: 0 28px; font-size: 16px; border-radius: 14px; }
.cw-btn--block { width: 100%; }
.cw-btn[disabled], .cw-btn.disabled { opacity: .45; pointer-events: none; }
.cw-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--line-2); padding-bottom: 1px; }
.cw-link:hover { border-color: var(--ember); }

/* ---------- Pills & badges ---------- */
.cw-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--mist); color: var(--slate); font-size: 13px; font-weight: 500; line-height: 1.2; }
.cw-pill .dot, .cw-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ember); display: inline-block; flex-shrink: 0; }
.cw-dot--ok { background: var(--ok); box-shadow: 0 0 0 4px rgba(14, 159, 110, .14); }
.cw-badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; line-height: 1.5; background: var(--mist); color: var(--slate); white-space: nowrap; }
.cw-badge--ok { background: var(--ok-soft); color: var(--ok); }
.cw-badge--warn { background: var(--warn-soft); color: var(--warn); }
.cw-badge--bad { background: var(--bad-soft); color: var(--bad); }
.cw-badge--info { background: var(--info-soft); color: var(--info); }
.cw-badge--ink { background: var(--ink); color: #fff; }
/* Legacy badge classes used across templates */
.cw .badge { font-weight: 600; border-radius: 999px; padding: .4em .8em; }
.cw .badge--success, .cw .badge.bg--success { background: var(--ok-soft) !important; color: var(--ok) !important; }
.cw .badge--warning, .cw .badge.bg--warning { background: var(--warn-soft) !important; color: var(--warn) !important; }
.cw .badge--danger, .cw .badge.bg--danger { background: var(--bad-soft) !important; color: var(--bad) !important; }
.cw .badge--primary, .cw .badge--info, .cw .badge.bg--primary { background: var(--info-soft) !important; color: var(--info) !important; }
.cw .badge--dark, .cw .badge--secondary { background: var(--mist-2) !important; color: var(--slate) !important; }

/* ---------- Header ---------- */
.cw-header { position: sticky; top: 0; z-index: 900; background: rgba(255, 255, 255, .86); -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.cw-header.is-scrolled { border-bottom-color: var(--line); }
.cw-header__in { height: var(--header-h); display: flex; align-items: center; gap: 28px; }
.cw-nav { display: flex; align-items: center; gap: 4px; margin: 0 auto 0 12px; padding: 0; list-style: none; }
.cw-nav a { display: block; padding: 8px 12px; border-radius: 10px; font-size: 15px; font-weight: 500; color: var(--slate); }
.cw-nav a:hover { color: var(--ink); background: var(--mist); }
.cw-nav a.active { color: var(--ink); }
.cw-nav a.active::after { content: ""; display: block; height: 2px; width: 14px; margin: 3px auto -5px; border-radius: 2px; background: var(--ember); }
.cw-header__act { display: flex; align-items: center; gap: 10px; }
.cw-burger { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: #fff; align-items: center; justify-content: center; font-size: 22px; color: var(--ink); cursor: pointer; }
.cw-drawer { display: none; }
@media (max-width: 1099px) {
    .cw-nav, .cw-header__act .cw-hide-m { display: none; }
    .cw-burger { display: inline-flex; margin-left: auto; }
    .cw-header__in { gap: 12px; }
    .cw-drawer { display: block; position: fixed; inset: var(--header-h) 0 0 0; background: #fff; z-index: 899; padding: 12px 20px 32px; overflow-y: auto; transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s; }
    .cw-drawer.open { opacity: 1; transform: none; visibility: visible; }
    .cw-drawer a.cw-drawer__ln { display: flex; justify-content: space-between; align-items: center; padding: 16px 4px; border-bottom: 1px solid var(--line); font-size: 18px; font-weight: 500; color: var(--ink); }
    .cw-drawer a.cw-drawer__ln.active { color: var(--ember); }
    .cw-drawer__cta { display: grid; gap: 10px; margin-top: 24px; }
    body.cw-lock { overflow: hidden; }
}

/* Language picker */
.cw-lang { position: relative; }
.cw-lang__btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font: 500 14px var(--font); color: var(--ink); cursor: pointer; }
.cw-lang__btn img { width: 18px; height: 18px; border-radius: 50%; object-fit: cover; }
.cw-lang__menu { position: absolute; right: 0; top: calc(100% + 6px); min-width: 170px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-2); padding: 6px; list-style: none; margin: 0; display: none; z-index: 950; }
.cw-lang.open .cw-lang__menu { display: block; }
.cw-lang__menu li { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; font-size: 14px; cursor: pointer; }
.cw-lang__menu li:hover { background: var(--mist); }
.cw-lang__menu img { width: 18px; height: 18px; border-radius: 50%; object-fit: cover; }

/* ---------- Sections ---------- */
.cw-sec { padding: 96px 0; }
.cw-sec--mist { background: var(--mist); }
.cw-sec--tight { padding: 64px 0; }
.cw-head { max-width: 640px; margin-bottom: 48px; }
.cw-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.cw-head--row { max-width: none; display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.cw-h1 { text-wrap: balance; font-size: clamp(38px, 5vw, 60px); font-weight: 650; letter-spacing: -.045em; line-height: 1.02; }
.cw-h2 { text-wrap: balance; font-size: clamp(28px, 3.4vw, 42px); font-weight: 600; letter-spacing: -.035em; line-height: 1.08; }
.cw-h3 { font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
.cw-lead { font-size: 18px; line-height: 1.6; color: var(--slate); max-width: 560px; }
.cw-sub { color: var(--slate); font-size: 17px; margin: 12px 0 0; }
@media (max-width: 767px) {
    .cw-sec { padding: 64px 0; }
    .cw-head { margin-bottom: 32px; }
    .cw-head--row { display: block; }
    .cw-head--row .cw-link { margin-top: 16px; }
}

/* ---------- Page header (inner pages) ---------- */
.cw-phead { position: relative; padding: 56px 0 48px; background: var(--mist); overflow: hidden; }
.cw-phead::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(16, 24, 40, .09) 1px, transparent 1px); background-size: 22px 22px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%); mask-image: linear-gradient(90deg, transparent, #000 60%); pointer-events: none; }
.cw-phead .container { position: relative; }
.cw-crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 14px; color: var(--slate-2); margin: 0 0 14px; padding: 0; list-style: none; }
.cw-crumbs a { color: var(--slate); }
.cw-crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line-2); }
.cw-phead__title { font-size: clamp(32px, 4.4vw, 52px); font-weight: 650; letter-spacing: -.04em; line-height: 1.05; margin: 0; max-width: 820px; }
.cw-phead__sub { color: var(--slate); font-size: 17px; margin: 14px 0 0; max-width: 620px; }

/* ==========================================================================
   Virtual card art — the one physical object on the page
   ========================================================================== */
.cw-card {
    --c-bg: #16171b; --c-fg: #fff; --c-dim: rgba(255, 255, 255, .62); --c-edge: rgba(255, 255, 255, .08);
    position: relative; display: block; width: 100%; aspect-ratio: 1.586; border-radius: 4.6% / 7.3%;
    background: var(--c-bg); color: var(--c-fg); overflow: hidden; isolation: isolate;
    box-shadow: 0 1px 1px rgba(16, 24, 40, .06), 0 10px 18px -8px rgba(16, 24, 40, .28), 0 30px 50px -28px rgba(16, 24, 40, .35), inset 0 0 0 1px var(--c-edge);
    container-type: inline-size; user-select: none;
}
.cw-card::before { /* soft studio light */
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: radial-gradient(120% 90% at 0% 0%, rgba(255, 255, 255, .22), transparent 55%), radial-gradient(80% 60% at 100% 100%, rgba(0, 0, 0, .22), transparent 60%);
}
.cw-card::after { /* fine grain */
    content: ""; position: absolute; inset: 0; z-index: -1; opacity: .16; mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.cw-card__in { position: absolute; inset: 0; padding: 7.5cqw 8cqw; display: flex; flex-direction: column; justify-content: space-between; }
.cw-card__top, .cw-card__bot { display: flex; align-items: flex-start; justify-content: space-between; gap: 4cqw; }
.cw-card__bot { align-items: flex-end; }
.cw-card__brand { display: inline-flex; align-items: center; gap: 2.4cqw; font-weight: 700; font-size: 5.2cqw; letter-spacing: -.04em; line-height: 1; }
.cw-card__mark { position: relative; width: 6.6cqw; height: 6.6cqw; border-radius: 1.8cqw; background: var(--c-fg); flex-shrink: 0; }
.cw-card__mark::before { content: ""; position: absolute; inset: 1.5cqw; border: .7cqw solid var(--c-bg); border-right-color: transparent; border-radius: 50%; transform: rotate(45deg); }
.cw-card__mark::after { content: ""; position: absolute; width: 1.3cqw; height: 1.3cqw; border-radius: 50%; background: var(--ember); right: 1.3cqw; top: 2.65cqw; }
.cw-card__nfc { width: 6cqw; height: 6cqw; color: var(--c-dim); }
.cw-card__label { display: block; font-size: 3.6cqw; color: var(--c-dim); font-weight: 500; line-height: 1.2; margin-bottom: 1.4cqw; }
.cw-card__name { display: block; font-size: 4.6cqw; font-weight: 600; letter-spacing: -.01em; line-height: 1.15; max-width: 58cqw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cw-card__digits { display: block; font-size: 4.2cqw; letter-spacing: .08em; font-variant-numeric: tabular-nums; margin-top: 1.6cqw; color: var(--c-dim); }
.cw-card__net { height: 9cqw; display: flex; align-items: flex-end; color: var(--c-fg); }
.cw-card__net svg { height: 100%; width: auto; display: block; }
.cw-card__net .w { font-weight: 700; font-size: 4.4cqw; letter-spacing: .02em; }
.cw-card__net--amex .w { padding: .8cqw 1.6cqw; border: .4cqw solid currentColor; border-radius: 1cqw; font-size: 3.4cqw; }

/* Finishes */
.cw-card--noir { --c-bg: #16171b; }
.cw-card--ember { --c-bg: #f2541b; --c-dim: rgba(255, 255, 255, .78); }
.cw-card--pearl { --c-bg: #f7f7f8; --c-fg: #101828; --c-dim: rgba(16, 24, 40, .55); --c-edge: rgba(16, 24, 40, .08); }
.cw-card--pearl::before { background: radial-gradient(90% 70% at 85% 10%, rgba(255, 196, 214, .55), transparent 60%), radial-gradient(80% 70% at 10% 95%, rgba(178, 214, 255, .6), transparent 60%), radial-gradient(60% 60% at 50% 50%, rgba(255, 255, 255, .8), transparent 70%); }
.cw-card--graphite { --c-bg: #3a3d45; }
.cw-card--cobalt { --c-bg: #2347f5; --c-dim: rgba(255, 255, 255, .72); }
.cw-card--moss { --c-bg: #2d5a4d; }
.cw-card--blush { --c-bg: #f2d6cf; --c-fg: #3b1d16; --c-dim: rgba(59, 29, 22, .6); --c-edge: rgba(59, 29, 22, .08); }
.cw-card--sand { --c-bg: #e8dcc8; --c-fg: #2b2418; --c-dim: rgba(43, 36, 24, .6); --c-edge: rgba(43, 36, 24, .08); }

/* Hover: a slight lift + a light sweep (only where the card is a link) */
a .cw-card, .cw-card--hover { transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s; }
a:hover .cw-card, .cw-card--hover:hover { transform: translateY(-4px) rotate(-.6deg); box-shadow: 0 1px 1px rgba(16, 24, 40, .06), 0 18px 28px -10px rgba(16, 24, 40, .3), 0 44px 60px -30px rgba(16, 24, 40, .4), inset 0 0 0 1px var(--c-edge); }
.cw-card__sheen { position: absolute; inset: -40% -60%; z-index: 0; background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, .22) 50%, transparent 60%); transform: translateX(-60%); transition: transform .8s cubic-bezier(.2, .7, .2, 1); pointer-events: none; }
a:hover .cw-card__sheen { transform: translateX(60%); }

/* ---------- Product tiles ---------- */
.cw-pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 28px 24px; }
.cw-ptile { display: flex; flex-direction: column; }
.cw-ptile__stage { display: block; padding: 22px; border-radius: var(--r-lg); background: var(--mist); transition: background .2s; }
.cw-ptile:hover .cw-ptile__stage { background: var(--mist-2); }
.cw-ptile__body { padding: 16px 4px 0; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.cw-ptile__name { font-size: 16px; font-weight: 600; letter-spacing: -.015em; margin: 0; line-height: 1.35; }
.cw-ptile__name a { color: var(--ink); }
.cw-ptile__meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 14px; color: var(--slate); }
.cw-ptile__price { font-size: 17px; font-weight: 600; color: var(--ink); }
.cw-stock { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--slate); }
.cw-stock::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
.cw-stock--out { color: var(--bad); }
.cw-stock--out::before { background: var(--bad); }
.cw-ptile--soldout .cw-ptile__stage { opacity: .55; }

/* Category chips */
.cw-chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; margin-bottom: 28px; scrollbar-width: none; }
.cw-chips::-webkit-scrollbar { display: none; }
.cw-chip { flex-shrink: 0; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 14px; font-weight: 500; color: var(--slate); white-space: nowrap; transition: all .15s; }
.cw-chip:hover { border-color: var(--ink); color: var(--ink); }
.cw-chip.active { background: var(--ink); border-color: var(--ink); color: #fff; }

/* Horizontal rail (featured categories) */
.cw-rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 18px; margin: 0 -4px; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.cw-rail > * { scroll-snap-align: start; }
@media (min-width: 1200px) { .cw-rail { grid-auto-columns: calc((100% - 60px) / 4); } }

/* ==========================================================================
   Home
   ========================================================================== */
.cw-hero { position: relative; padding: 72px 0 88px; overflow: hidden; }
.cw-hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.cw-hero .cw-pill { margin-bottom: 26px; }
.cw-hero .cw-h1 { margin-bottom: 22px; }
.cw-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.cw-facts { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 40px 0 0; padding: 26px 0 0; border-top: 1px solid var(--line); list-style: none; }
.cw-facts li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--slate); }
.cw-facts i { font-size: 20px; color: var(--ink); }

/* The deck: three cards fanned on a soft stage */
.cw-deck { position: relative; aspect-ratio: 1 / .92; max-width: 560px; margin-left: auto; width: 100%; }
.cw-deck__stage { position: absolute; inset: 6% 2% 0; border-radius: 50%; background: radial-gradient(closest-side, var(--mist-2), rgba(238, 240, 243, 0) 100%); }
.cw-deck .cw-card { position: absolute; width: 66%; left: 17%; top: 28%; transform-origin: 50% 120%; transition: transform .9s cubic-bezier(.2, .8, .2, 1); }
.cw-deck .cw-card:nth-child(2) { transform: rotate(-14deg) translate(-12%, -8%); }
.cw-deck .cw-card:nth-child(3) { transform: rotate(-2deg) translate(0, -2%); }
.cw-deck .cw-card:nth-child(4) { transform: rotate(11deg) translate(13%, 2%); }
.cw-js .cw-deck:not(.dealt) .cw-card { transform: rotate(0) translate(0, 6%); }
.cw-deck__toast { position: absolute; right: 2%; bottom: 6%; display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-2); font-size: 14px; line-height: 1.3; z-index: 5; transition: opacity .5s .9s, transform .5s .9s; }
.cw-deck__toast b { display: block; font-weight: 600; }
.cw-deck__toast span { color: var(--slate); font-size: 13px; }
.cw-deck__toast .ic { width: 36px; height: 36px; border-radius: 10px; background: var(--ok-soft); color: var(--ok); display: grid; place-items: center; font-size: 20px; }
.cw-js .cw-deck:not(.dealt) .cw-deck__toast { opacity: 0; transform: translateY(8px); }
@media (max-width: 991px) {
    .cw-hero { padding: 40px 0 64px; }
    .cw-hero__grid { grid-template-columns: 1fr; gap: 36px; }
    .cw-deck { margin: 0 auto; max-width: 440px; }
}

/* Merchant strip */
.cw-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 22px 0; overflow: hidden; }
.cw-strip__in { display: flex; align-items: center; gap: 28px; }
.cw-strip__lbl { flex-shrink: 0; font-size: 14px; color: var(--slate); }
.cw-marquee { flex: 1; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.cw-marquee__run { display: inline-flex; gap: 44px; white-space: nowrap; animation: cw-scroll 38s linear infinite; padding-right: 44px; }
.cw-marquee:hover .cw-marquee__run { animation-play-state: paused; }
.cw-marquee__run span { font-size: 17px; font-weight: 600; letter-spacing: -.02em; color: var(--slate-2); }
@keyframes cw-scroll { to { transform: translateX(-50%); } }
@media (max-width: 767px) { .cw-strip__lbl { display: none; } }

/* Tiles and icon chips sitting on a grey section switch to white */
.cw-sec--mist .cw-ptile__stage, .cw-sec--mist .cw-feat__ic { background: #fff; }
.cw-sec--mist .cw-ptile:hover .cw-ptile__stage { background: #fff; box-shadow: var(--shadow-2); }

/* Feature list (why choose) — a list, not a card wall */
.cw-feat { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 56px; }
.cw-feat__item { display: grid; grid-template-columns: 48px 1fr; gap: 18px; padding: 26px 0; border-top: 1px solid var(--line); }
.cw-feat__ic { width: 48px; height: 48px; border-radius: 12px; background: var(--mist); display: grid; place-items: center; font-size: 24px; color: var(--ink); }
.cw-feat__ic i { font-size: 24px; }
.cw-feat__item h3 { font-size: 18px; margin: 2px 0 6px; }
.cw-feat__item p { color: var(--slate); margin: 0; font-size: 15.5px; }
@media (max-width: 767px) { .cw-feat { grid-template-columns: 1fr; } }

/* Steps (a real sequence, so numbered) */
.cw-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0; counter-reset: s; border-top: 1px solid var(--line); }
.cw-step { position: relative; padding: 28px 28px 8px 0; }
.cw-step + .cw-step { padding-left: 28px; border-left: 1px solid var(--line); }
.cw-step__n { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 14px; font-weight: 600; margin-bottom: 22px; }
.cw-step h3 { font-size: 18px; margin-bottom: 8px; }
.cw-step p { color: var(--slate); font-size: 15.5px; margin: 0; }
@media (max-width: 767px) {
    .cw-step, .cw-step + .cw-step { padding: 24px 0; border-left: 0; border-bottom: 1px solid var(--line); }
    .cw-step { display: grid; grid-template-columns: 48px 1fr; }
    .cw-step__n { margin: 0; }
}

/* About split */
.cw-split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.cw-split__media { border-radius: var(--r-xl); overflow: hidden; background: var(--mist); aspect-ratio: 4 / 3; }
.cw-split__media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 991px) { .cw-split { grid-template-columns: 1fr; gap: 36px; } }

/* Stats */
.cw-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cw-stat { padding: 32px 24px; }
.cw-stat + .cw-stat { border-left: 1px solid var(--line); }
.cw-stat b { display: block; font-size: 40px; font-weight: 650; letter-spacing: -.04em; line-height: 1; }
.cw-stat span { color: var(--slate); font-size: 15px; }
@media (max-width: 575px) { .cw-stat + .cw-stat { border-left: 0; border-top: 1px solid var(--line); } }

/* CTA band */
.cw-cta { position: relative; overflow: hidden; border-radius: var(--r-xl); background: var(--ink); color: #fff; padding: 64px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.cw-cta h2 { color: #fff; font-size: clamp(28px, 3.4vw, 42px); letter-spacing: -.035em; margin-bottom: 14px; }
.cw-cta p { color: rgba(255, 255, 255, .7); font-size: 17px; margin-bottom: 28px; }
.cw-cta__cards { position: relative; height: 220px; }
.cw-cta__cards .cw-card { position: absolute; width: 300px; max-width: 80%; right: 0; top: 10px; transform: rotate(-8deg); }
.cw-cta__cards .cw-card + .cw-card { right: 70px; top: 54px; transform: rotate(4deg); }
@media (max-width: 991px) { .cw-cta { grid-template-columns: 1fr; padding: 40px 28px; } .cw-cta__cards { height: 190px; } }

/* Blog cards */
.cw-posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 40px 28px; }
.cw-post { display: flex; flex-direction: column; }
.cw-post__img { display: block; aspect-ratio: 16 / 10; border-radius: var(--r); overflow: hidden; background: var(--mist); margin-bottom: 18px; }
.cw-post__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.cw-post:hover .cw-post__img img { transform: scale(1.03); }
.cw-post__meta { font-size: 13.5px; color: var(--slate-2); margin-bottom: 8px; display: flex; gap: 14px; }
.cw-post__title { font-size: 19px; font-weight: 600; letter-spacing: -.02em; line-height: 1.35; margin: 0 0 10px; }
.cw-post__title a { color: var(--ink); }
.cw-post__ex { color: var(--slate); font-size: 15px; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ==========================================================================
   Content pages
   ========================================================================== */
.cw-prose { font-size: 17px; line-height: 1.75; color: #2a3140; max-width: 760px; }
.cw-prose > *:first-child { margin-top: 0; }
.cw-prose h1, .cw-prose h2 { font-size: 28px; margin: 1.8em 0 .6em; letter-spacing: -.03em; }
.cw-prose h3 { font-size: 22px; margin: 1.6em 0 .5em; }
.cw-prose h4, .cw-prose h5, .cw-prose h6 { font-size: 18px; margin: 1.4em 0 .5em; }
.cw-prose p, .cw-prose li { color: #2a3140; }
.cw-prose a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--ember); text-underline-offset: 3px; }
.cw-prose img { border-radius: var(--r); margin: 1em 0; }
.cw-prose ul, .cw-prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.cw-prose li { margin-bottom: .4em; }
.cw-prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--ember); color: var(--slate); }
.cw-prose table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: 15px; display: block; overflow-x: auto; }
.cw-prose th, .cw-prose td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; vertical-align: top; }
.cw-prose th { background: var(--mist); font-weight: 600; }
.cw-prose code { background: var(--mist); padding: 2px 6px; border-radius: 6px; font-size: .9em; }
/* Pasted rich-text often carries inline colors meant for a dark theme */
.cw-prose [style*="color"] { color: inherit !important; }
.cw-prose [style*="background"] { background: transparent !important; }
.cw-prose span[style*="font-size"] { font-size: inherit !important; }
.cw-prose [style*="font-family"] { font-family: inherit !important; }

/* Article layout */
.cw-article { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 64px; }
.cw-article__cover { border-radius: var(--r-lg); overflow: hidden; margin-bottom: 36px; background: var(--mist); }
.cw-article__cover img { width: 100%; display: block; }
.cw-aside { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; display: grid; gap: 28px; }
.cw-aside__box { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; }
.cw-aside__box h4 { font-size: 15px; margin-bottom: 14px; color: var(--slate); font-weight: 600; letter-spacing: -.01em; }
.cw-mini { display: grid; grid-template-columns: 72px 1fr; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.cw-mini:first-of-type { border-top: 0; padding-top: 0; }
.cw-mini img { width: 72px; height: 52px; border-radius: 8px; object-fit: cover; }
.cw-mini b { font-size: 14px; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cw-share { display: flex; gap: 8px; align-items: center; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.cw-share a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-size: 18px; color: var(--ink); }
.cw-share a:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
@media (max-width: 991px) { .cw-article { grid-template-columns: 1fr; gap: 48px; } .cw-aside { position: static; } }

/* Panels & forms */
.cw-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; }
.cw-panel--mist { background: var(--mist); border-color: transparent; }
.cw-panel__h { font-size: 18px; margin-bottom: 4px; }
.cw-panel__sub { color: var(--slate); font-size: 14.5px; margin: 0 0 20px; }
.cw .form-label, .cw label.form--label, .cw .form-group > label { display: block; font-size: 14px; font-weight: 500; color: var(--ink); margin-bottom: 8px; }
.cw .form-control, .cw .form--control, .cw .form-select, .cw select.form--control, .cw input[type="text"].form--control {
    height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-2); background-color: #fff; color: var(--ink);
    font: 400 15px var(--font); box-shadow: var(--shadow-1); transition: border-color .15s, box-shadow .15s; width: 100%;
}
.cw textarea.form-control, .cw textarea.form--control { height: auto; min-height: 130px; padding: 12px 14px; line-height: 1.5; }
.cw .form-control:focus, .cw .form--control:focus, .cw .form-select:focus { border-color: var(--ember); box-shadow: var(--ring); outline: 0; }
.cw .form-control::placeholder, .cw .form--control::placeholder { color: var(--slate-2); }
.cw .form-control:disabled, .cw .form-control[readonly], .cw .form--control[readonly] { background: var(--mist); }
.cw select option { background: #fff; color: var(--ink); }
.cw .input-group { flex-wrap: nowrap; }
.cw .input-group > .form-control, .cw .input-group > .form--control { box-shadow: none; }
.cw .input-group-text { border-radius: 12px; border: 1px solid var(--line-2); background: var(--mist); color: var(--slate); font-size: 15px; font-weight: 500; padding: 0 14px; }
.cw .form-check-input { width: 18px; height: 18px; border-color: var(--line-2); margin-top: .2em; }
.cw .form-check-input:checked { background-color: var(--ink); border-color: var(--ink); }
.cw .form-check-input:focus { box-shadow: var(--ring); border-color: var(--ember); }
.cw .form-group { margin-bottom: 18px; }
.cw label.required::after { content: " *"; color: var(--bad); }
.cw .invalid-feedback, .cw .text--danger { color: var(--bad) !important; }

/* Legacy button classes rendered by shared partials and gateway pages */
.cw .cmn--btn, .cw .btn--base, .cw .btn.btn--base, .cw .btn--primary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 12px; background: var(--ink) !important; border: 1px solid var(--ink) !important; color: #fff !important; font: 600 15px var(--font); }
.cw .cmn--btn:hover, .cw .btn--base:hover, .cw .btn--primary:hover { background: var(--ink-2) !important; color: #fff !important; }
.cw .btn--danger { background: var(--bad) !important; border-color: var(--bad) !important; color: #fff !important; border-radius: 12px; }
.cw .btn--success { background: var(--ok) !important; border-color: var(--ok) !important; color: #fff !important; border-radius: 12px; }
.cw .btn--dark, .cw .btn--secondary { background: var(--mist-2) !important; border-color: var(--mist-2) !important; color: var(--ink) !important; border-radius: 12px; }
.cw .btn-sm, .cw .btn--sm { min-height: 36px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.cw .w-100.cmn--btn, .cw .btn.w-100 { width: 100%; }

/* Tables (with mobile stacking for data tables) */
.cw .table { margin: 0; color: var(--ink); --bs-table-bg: transparent; --bs-table-color: var(--ink); }
.cw .table > :not(caption) > * > * { padding: 14px 16px; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink); vertical-align: middle; font-size: 14.5px; box-shadow: none; }
.cw .table thead th { font-size: 13px; font-weight: 500; color: var(--slate); background: var(--mist); border-bottom: 1px solid var(--line); white-space: nowrap; }
.cw .table thead th:first-child { border-radius: 10px 0 0 10px; }
.cw .table thead th:last-child { border-radius: 0 10px 10px 0; }
.cw .table tbody tr:last-child td { border-bottom: 0; }
.cw .table tbody tr:hover td { background: #fafbfc; }
.cw .table-responsive { border-radius: 12px; }
@media (max-width: 767px) {
    .cw .table--responsive--md thead, .cw .table--responsive--lg thead, .cw .table--responsive--sm thead, .cw .table--responsive--xl thead { display: none; }
    .cw .table--responsive--md tbody tr, .cw .table--responsive--lg tbody tr, .cw .table--responsive--sm tbody tr, .cw .table--responsive--xl tbody tr { display: block; padding: 6px 0; border-bottom: 1px solid var(--line); }
    .cw .table--responsive--md tbody td, .cw .table--responsive--lg tbody td, .cw .table--responsive--sm tbody td, .cw .table--responsive--xl tbody td { display: flex; justify-content: space-between; gap: 16px; text-align: right; border: 0 !important; padding: 8px 4px !important; }
    .cw .table--responsive--md tbody td::before, .cw .table--responsive--lg tbody td::before, .cw .table--responsive--sm tbody td::before, .cw .table--responsive--xl tbody td::before { content: attr(data-label); color: var(--slate); font-weight: 500; text-align: left; }
    .cw .table--responsive--md tbody td[colspan], .cw .table--responsive--lg tbody td[colspan] { justify-content: center; }
    .cw .table--responsive--md tbody td[colspan]::before, .cw .table--responsive--lg tbody td[colspan]::before { content: none; }
}

/* Pagination */
.cw .pagination { gap: 6px; flex-wrap: wrap; justify-content: center; margin: 40px 0 0; }
.cw .page-item .page-link { min-width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px !important; border: 1px solid var(--line); color: var(--ink); background: #fff; font-weight: 500; font-size: 14px; padding: 0 10px; box-shadow: none; }
.cw .page-item.active .page-link { background: var(--ink); border-color: var(--ink); color: #fff; }
.cw .page-item.disabled .page-link { color: var(--slate-2); background: var(--mist); }

/* Modals, dropdowns, alerts, accordions */
.cw .modal-content { border: 0; border-radius: var(--r-lg); box-shadow: 0 30px 80px -20px rgba(16, 24, 40, .35); color: var(--ink); background: #fff; }
.cw .modal-header { border-bottom: 1px solid var(--line); padding: 18px 22px; }
.cw .modal-title { font-size: 18px; font-weight: 600; }
.cw .modal-body { padding: 22px; }
.cw .modal-footer { border-top: 1px solid var(--line); padding: 14px 22px; }
.cw .modal-backdrop.show { opacity: .4; }
.cw .btn-close { opacity: .6; }
.cw .dropdown-menu { border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-2); padding: 6px; }
.cw .dropdown-item { border-radius: 8px; padding: 9px 12px; font-size: 14.5px; }
.cw .alert { border-radius: 12px; border: 1px solid var(--line); background: var(--mist); color: var(--ink); font-size: 15px; }
.cw .alert--warning, .cw .alert-warning { background: var(--warn-soft); border-color: #fbd9a8; color: #7a3a07; }
.cw .alert--danger, .cw .alert-danger { background: var(--bad-soft); border-color: #f6c1bc; color: #8a1c13; }
.cw .alert--success, .cw .alert-success { background: var(--ok-soft); border-color: #b4e3cf; color: #075e41; }
.cw .alert--info, .cw .alert-info, .cw .alert--primary { background: var(--info-soft); border-color: #c9d4ff; color: #1730a8; }
.cw .accordion-item { border: 0; border-bottom: 1px solid var(--line); background: transparent; }
.cw .accordion-button { font-weight: 600; font-size: 17px; padding: 22px 0; background: transparent; color: var(--ink); box-shadow: none; }
.cw .accordion-button:not(.collapsed) { color: var(--ink); background: transparent; }
.cw .accordion-body { padding: 0 0 22px; color: var(--slate); }
.cw .list-group-item { border-color: var(--line); color: var(--ink); background: transparent; padding: 12px 0; }
.cw hr { border-color: var(--line); opacity: 1; }

/* Empty state */
.cw-empty { text-align: center; padding: 48px 20px; color: var(--slate); }
.cw-empty__ic { width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 16px; background: var(--mist); display: grid; place-items: center; font-size: 26px; color: var(--ink); }
.cw-empty h4 { font-size: 17px; margin-bottom: 6px; }
.cw-empty p { font-size: 15px; margin: 0 auto 18px; max-width: 340px; }

/* ==========================================================================
   Card details page
   ========================================================================== */
.cw-pd { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: start; }
.cw-pd__stage { position: sticky; top: calc(var(--header-h) + 24px); border-radius: var(--r-xl); background: var(--mist); padding: 12% 11%; }
.cw-pd__stage::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background-image: radial-gradient(rgba(16, 24, 40, .08) 1px, transparent 1px); background-size: 20px 20px; -webkit-mask-image: radial-gradient(closest-side, transparent 55%, #000); mask-image: radial-gradient(closest-side, transparent 55%, #000); }
.cw-pd__stage .cw-card { transform: rotate(-3deg); }
.cw-pd__name { font-size: clamp(30px, 3.4vw, 42px); font-weight: 650; letter-spacing: -.035em; line-height: 1.08; margin: 16px 0 18px; }
.cw-pd__price { display: flex; align-items: baseline; gap: 14px; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.cw-pd__price b { font-size: 36px; font-weight: 650; letter-spacing: -.035em; }
.cw-pd__feats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; margin: 0 0 28px; padding: 0; list-style: none; }
.cw-pd__feats li { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--ink-2); }
.cw-pd__feats i { width: 28px; height: 28px; border-radius: 8px; background: var(--mist); display: grid; place-items: center; font-size: 16px; }
.cw-qty { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 12px; height: 48px; overflow: hidden; background: #fff; }
.cw-qty button { width: 44px; height: 100%; border: 0; background: transparent; font-size: 20px; color: var(--ink); cursor: pointer; }
.cw-qty button:hover { background: var(--mist); }
.cw-qty input { width: 56px; height: 100%; border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line); text-align: center; font: 600 16px var(--font); color: var(--ink); -moz-appearance: textfield; }
.cw-qty input::-webkit-outer-spin-button, .cw-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.cw-buy { display: flex; gap: 12px; align-items: center; }
.cw-buy .cw-btn { flex: 1; }
.cw-assure { display: grid; gap: 12px; margin-top: 28px; padding: 20px; border-radius: var(--r); background: var(--mist); font-size: 14.5px; color: var(--slate); }
.cw-assure div { display: flex; gap: 10px; align-items: flex-start; }
.cw-assure i { font-size: 18px; color: var(--ink); margin-top: 2px; }
@media (max-width: 991px) { .cw-pd { grid-template-columns: 1fr; gap: 32px; } .cw-pd__stage { position: static; } }
@media (max-width: 575px) { .cw-pd__feats { grid-template-columns: 1fr; } }

/* ==========================================================================
   Footer
   ========================================================================== */
.cw-footer { background: var(--mist); padding: 72px 0 28px; margin-top: 0; font-size: 15px; }
.cw-footer__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.cw-footer__about { color: var(--slate); max-width: 360px; margin: 18px 0 0; font-size: 14.5px; line-height: 1.65; }
.cw-footer h5 { font-size: 14px; color: var(--slate-2); font-weight: 500; margin-bottom: 16px; letter-spacing: 0; }
.cw-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.cw-footer ul a { color: var(--ink); }
.cw-footer ul a:hover { color: var(--ember); }
.cw-footer__bot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line-2); color: var(--slate); font-size: 14px; }
.cw-social { display: flex; gap: 8px; }
.cw-social a { width: 38px; height: 38px; border-radius: 50%; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; font-size: 17px; color: var(--ink); }
.cw-social a:hover { background: var(--ink); color: #fff; }
.cw-social a i { font-size: 17px; }
@media (max-width: 991px) { .cw-footer__grid { grid-template-columns: 1fr 1fr; } .cw-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 575px) { .cw-footer { padding-top: 56px; } .cw-footer__grid { gap: 32px 20px; } }

/* Cookie notice */
.cw-cookie { position: fixed; left: 16px; bottom: 16px; z-index: 990; max-width: 380px; display: flex; align-items: center; gap: 16px; padding: 14px 14px 14px 18px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-2); font-size: 14px; color: var(--slate); }
.cw-cookie p { margin: 0; line-height: 1.45; }
.cw-cookie a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 575px) { .cw-cookie { right: 16px; max-width: none; bottom: 12px; } .cw-app .cw-cookie { bottom: 84px; } }

/* Floating support button (contact FAB partial) */
.cw .cf-fab, .cw .contact-fab { z-index: 800; }

/* ==========================================================================
   Auth pages
   ========================================================================== */
.cw-auth { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.cw-auth__form { display: flex; flex-direction: column; padding: 28px clamp(20px, 5vw, 72px); }
.cw-auth__form-in { width: 100%; max-width: 420px; margin: auto; padding: 40px 0; }
.cw-auth__form h1 { font-size: 32px; font-weight: 650; letter-spacing: -.035em; margin: 0 0 8px; }
.cw-auth__form .cw-sub { margin: 0 0 32px; font-size: 16px; }
.cw-auth__side { position: relative; background: var(--ink); color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; border-radius: 28px; margin: 12px; }
.cw-auth__side::before { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; right: -160px; top: -140px; background: radial-gradient(closest-side, rgba(255, 91, 20, .35), transparent); }
.cw-auth__deck { position: absolute; inset: 10% 8% 38% 8%; }
.cw-auth__deck .cw-card { position: absolute; width: 62%; max-width: 380px; }
.cw-auth__deck .cw-card:nth-child(1) { left: 6%; top: 8%; transform: rotate(-10deg); }
.cw-auth__deck .cw-card:nth-child(2) { right: 4%; top: 30%; transform: rotate(7deg); }
.cw-auth__side h2 { position: relative; color: #fff; font-size: 30px; letter-spacing: -.035em; max-width: 420px; margin-bottom: 10px; }
.cw-auth__side p { position: relative; color: rgba(255, 255, 255, .66); max-width: 420px; margin: 0; }
.cw-auth__foot { font-size: 15px; color: var(--slate); margin-top: 24px; text-align: center; }
.cw-auth__foot a { color: var(--ink); font-weight: 600; }
.cw-or { display: flex; align-items: center; gap: 14px; color: var(--slate-2); font-size: 13px; margin: 22px 0; }
.cw-or::before, .cw-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.cw-pass { position: relative; }
.cw-pass .form-control, .cw-pass .form--control { padding-right: 48px; }
.cw-pass__eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border: 0; background: transparent; color: var(--slate); font-size: 20px; cursor: pointer; border-radius: 8px; }
.cw-pass__eye:hover { background: var(--mist); color: var(--ink); }
@media (max-width: 991px) { .cw-auth { grid-template-columns: 1fr; } .cw-auth__side { display: none; } }
/* Verification code inputs from the shared partial */
.cw .verification-code { display: flex; gap: 8px; }
.cw .verification-code input { height: 54px; text-align: center; font-size: 22px; font-weight: 600; border-radius: 12px; border: 1px solid var(--line-2); }

/* ==========================================================================
   Dashboard shell
   ========================================================================== */
body.cw-app { background: var(--mist); }
.cw-app__shell { display: grid; grid-template-columns: 264px minmax(0, 1fr); min-height: 100vh; }
.cw-side { position: sticky; top: 0; height: 100vh; background: #fff; border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 20px 14px; z-index: 950; }
.cw-side__logo { padding: 4px 10px 22px; }
.cw-side__nav { flex: 1; overflow-y: auto; display: grid; align-content: start; gap: 2px; padding-bottom: 12px; scrollbar-width: thin; }
.cw-side__lbl { font-size: 12.5px; color: var(--slate-2); font-weight: 500; padding: 16px 12px 6px; margin: 0; }
.cw-side__ln { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 10px; font-size: 14.5px; font-weight: 500; color: var(--slate) !important; position: relative; }
.cw-side__ln i { font-size: 20px; width: 20px; text-align: center; color: var(--slate-2); }
.cw-side__ln:hover { background: var(--mist); color: var(--ink) !important; }
.cw-side__ln.active { background: var(--mist); color: var(--ink) !important; font-weight: 600; }
.cw-side__ln.active i { color: var(--ink); }
.cw-side__ln.active::before { content: ""; position: absolute; left: -14px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--ember); }
.cw-side__ln--danger, .cw-side__ln--danger i { color: var(--bad) !important; }
.cw-side__foot { border-top: 1px solid var(--line); padding-top: 12px; display: grid; gap: 2px; }
.cw-side__help { margin: 4px 0 12px; padding: 16px; border-radius: var(--r); background: var(--mist); font-size: 13.5px; color: var(--slate); }
.cw-side__help b { display: block; color: var(--ink); font-size: 14.5px; margin-bottom: 4px; }
.cw-side__help a { color: var(--ink); font-weight: 600; }
.cw-top { position: sticky; top: 0; z-index: 900; height: 68px; display: flex; align-items: center; gap: 14px; padding: 0 32px; background: rgba(245, 246, 248, .85); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid transparent; }
.cw-top.is-scrolled { border-bottom-color: var(--line); }
.cw-top__title { font-size: 20px; font-weight: 600; letter-spacing: -.025em; margin: 0; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cw-top__bal { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.15; padding-right: 4px; }
.cw-top__bal small { font-size: 12px; color: var(--slate); }
.cw-top__bal b { font-size: 15.5px; font-weight: 600; }
.cw-ava, .cw-ava:hover { color: #fff; }
.cw-ava { width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 15px; border: 0; cursor: pointer; flex-shrink: 0; }
.cw-ham { display: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: #fff; font-size: 22px; color: var(--ink); align-items: center; justify-content: center; cursor: pointer; }
.cw-main { padding: 8px 32px 48px; min-width: 0; }
.cw-main__in { max-width: 1180px; }
.cw-overlay { position: fixed; inset: 0; background: rgba(16, 24, 40, .4); z-index: 940; opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; }
.cw-overlay.show { opacity: 1; visibility: visible; }
.cw-tabbar { display: none; }
@media (max-width: 1099px) {
    .cw-app__shell { grid-template-columns: 1fr; }
    .cw-side { position: fixed; left: 0; top: 0; bottom: 0; width: 284px; transform: translateX(-100%); transition: transform .25s cubic-bezier(.2, .7, .2, 1); box-shadow: var(--shadow-2); }
    .cw-side.open { transform: none; }
    .cw-ham { display: inline-flex; }
    .cw-top { padding: 0 16px; height: 64px; }
    .cw-top__title { font-size: 18px; }
    .cw-main { padding: 8px 16px 104px; }
    .cw-tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 930; background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-top: 1px solid var(--line); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); }
    .cw-tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0; font-size: 11.5px; font-weight: 500; color: var(--slate-2); }
    .cw-tabbar a i { font-size: 23px; }
    .cw-tabbar a.active { color: var(--ink); }
    .cw-tabbar a.cw-tabbar__main i { width: 44px; height: 44px; border-radius: 14px; background: var(--ink); color: #fff; display: grid; place-items: center; margin-top: -18px; box-shadow: 0 8px 20px -6px rgba(16, 24, 40, .5); }
}
@media (max-width: 575px) { .cw-top__bal { display: none; } }

/* Dashboard building blocks */
.cw-grid { display: grid; gap: 20px; }
.cw-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cw-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cw-grid--main { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
@media (max-width: 991px) { .cw-grid--2, .cw-grid--3, .cw-grid--main { grid-template-columns: 1fr; } }
.cw-box { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); }
.cw-box__h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.cw-box__h h3, .cw-box__h h4, .cw-box__h h5 { font-size: 16px; margin: 0; font-weight: 600; }
.cw-box__b { padding: 22px; }
.cw-box__b--flush { padding: 0; }
.cw-greet { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin: 8px 0 22px; }
.cw-greet h2 { font-size: 26px; letter-spacing: -.03em; margin: 0 0 4px; }
.cw-greet p { color: var(--slate); margin: 0; }
.cw-bal { position: relative; overflow: hidden; border-radius: var(--r-lg); background: var(--ink); color: #fff; padding: 26px; display: flex; flex-direction: column; justify-content: space-between; min-height: 220px; }
.cw-bal::before { content: ""; position: absolute; width: 360px; height: 360px; border-radius: 50%; right: -120px; top: -150px; background: radial-gradient(closest-side, rgba(255, 91, 20, .38), transparent); pointer-events: none; }
.cw-bal__lbl { position: relative; display: flex; align-items: center; gap: 8px; color: rgba(255, 255, 255, .66); font-size: 14px; }
.cw-bal__amt { position: relative; font-size: clamp(34px, 4vw, 46px); font-weight: 650; letter-spacing: -.04em; line-height: 1.05; margin: 10px 0 0; color: #fff; }
.cw-bal__amt small { font-size: .42em; font-weight: 500; color: rgba(255, 255, 255, .6); letter-spacing: 0; margin-left: 4px; }
.cw-bal__act { position: relative; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.cw-bal__act .cw-btn { height: 44px; }
.cw-bal__act .cw-btn--glass { --b-bg: rgba(255, 255, 255, .1); --b-bd: rgba(255, 255, 255, .14); }
.cw-bal__act .cw-btn--glass:hover { background: rgba(255, 255, 255, .18); }
.cw-kpis { display: grid; grid-template-columns: repeat(3, 1fr); }
.cw-kpi { padding: 18px 22px; }
.cw-kpi + .cw-kpi { border-left: 1px solid var(--line); }
.cw-kpi span { display: block; font-size: 13.5px; color: var(--slate); margin-bottom: 4px; }
.cw-kpi b { font-size: 24px; font-weight: 600; letter-spacing: -.03em; }
@media (max-width: 575px) { .cw-kpi { padding: 14px; } .cw-kpi b { font-size: 20px; } }
.cw-qa { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cw-qa a { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: var(--r); border: 1px solid var(--line); background: #fff; font-size: 14px; font-weight: 500; color: var(--ink); transition: border-color .15s, background .15s; }
.cw-qa a:hover { border-color: var(--ink); color: var(--ink); }
.cw-qa i { width: 36px; height: 36px; border-radius: 10px; background: var(--mist); display: grid; place-items: center; font-size: 20px; }
@media (max-width: 575px) { .cw-qa { grid-template-columns: repeat(3, 1fr); gap: 8px; } .cw-qa a { padding: 12px; font-size: 13px; } }
.cw-act { display: grid; }
.cw-act__row { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 22px; border-top: 1px solid var(--line); }
.cw-act__row:first-child { border-top: 0; }
.cw-act__ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; background: var(--mist); }
.cw-act__ic--in { background: var(--ok-soft); color: var(--ok); }
.cw-act__ic--out { background: var(--bad-soft); color: var(--bad); }
.cw-act__t b { display: block; font-size: 14.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cw-act__t span { font-size: 13px; color: var(--slate); }
.cw-act__amt { text-align: right; font-weight: 600; font-size: 15px; }
.cw-act__amt--in { color: var(--ok); }
.cw-act__amt small { display: block; font-weight: 400; color: var(--slate-2); font-size: 12px; }

/* Owned card list (My cards) */
.cw-owned { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.cw-owned__item { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; display: flex; flex-direction: column; gap: 16px; }
.cw-owned__meta { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--slate); }
.cw-owned__meta b { color: var(--ink); font-weight: 600; display: block; font-size: 15px; }

/* Key/value rows (card details, deposit summary) */
.cw-kv { display: grid; }
.cw-kv > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 15px; }
.cw-kv > div:first-child { border-top: 0; }
.cw-kv span { color: var(--slate); }
.cw-kv b { font-weight: 600; text-align: right; word-break: break-word; }
.cw-copy { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line); background: #fff; font: 500 13px var(--font); color: var(--ink); cursor: pointer; }
.cw-copy:hover { border-color: var(--ink); }
.cw-copy.copied { background: var(--ok-soft); border-color: var(--ok-soft); color: var(--ok); }

/* Deposit method picker */
.cw-methods { display: grid; gap: 8px; }
.cw-method { position: relative; display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; cursor: pointer; transition: border-color .15s, box-shadow .15s; margin: 0; }
.cw-method:hover { border-color: var(--line-2); }
.cw-method input { position: absolute; opacity: 0; pointer-events: none; }
.cw-method__img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: var(--mist); flex-shrink: 0; }
.cw-method__t { flex: 1; min-width: 0; }
.cw-method__t b { display: block; font-weight: 600; font-size: 15px; }
.cw-method__t span { font-size: 13px; color: var(--slate); }
.cw-method__tick { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; font-size: 13px; color: transparent; flex-shrink: 0; }
.cw-method:has(input:checked) { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.cw-method:has(input:checked) .cw-method__tick { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- Motion: one page-load moment; reveals only enhance ---------- */
.cw-js [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1); }
.cw-js [data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
    .cw-js [data-reveal] { opacity: 1; transform: none; }
}

/* Utility */
.cw-gap-sm { gap: 8px; }
.cw-mt-0 { margin-top: 0 !important; }
.cw-center { text-align: center; }
.cw-hide { display: none !important; }
@media (max-width: 575px) { .cw-btn--lg { height: 52px; } }

/* ==========================================================================
   Plans, tools, contact, banking
   ========================================================================== */
.cw-plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.cw-plan { display: flex; flex-direction: column; gap: 10px; padding: 24px; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; }
.cw-plan--featured { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.cw-plan__art { padding: 18px; border-radius: var(--r); background: var(--mist); margin-bottom: 6px; }
.cw-plan__name { font-size: 19px; margin: 0; }
.cw-plan__price { font-size: 34px; font-weight: 650; letter-spacing: -.035em; margin: 6px 0 2px; }
.cw-plan__price small { font-size: 15px; color: var(--slate); font-weight: 500; letter-spacing: 0; }
.cw-plan__list { list-style: none; margin: 0 0 14px; padding: 14px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; flex: 1; align-content: start; }
.cw-plan__list li { display: flex; gap: 10px; font-size: 15px; color: var(--ink-2); }
.cw-plan__list i { color: var(--ok); font-size: 18px; margin-top: 2px; }
.cw-plan__logo { width: 48px; height: 48px; border-radius: 12px; object-fit: contain; background: var(--mist); }
.cw-tools { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 16px; }
.cw-tool { display: flex; align-items: center; gap: 16px; padding: 20px; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.cw-tool:hover { border-color: var(--ink); color: var(--ink); box-shadow: var(--shadow-2); }
.cw-tool__ic { width: 52px; height: 52px; border-radius: 14px; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 26px; flex-shrink: 0; }
.cw-tool__t { flex: 1; min-width: 0; }
.cw-tool__t b { display: block; font-size: 17px; font-weight: 600; margin-bottom: 2px; }
.cw-tool__t > span { font-size: 14.5px; color: var(--slate); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cw-tool__go { font-size: 20px; color: var(--slate-2); transition: transform .2s; }
.cw-tool:hover .cw-tool__go { transform: translateX(3px); color: var(--ink); }
.cw-contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.cw-contact__item { display: flex; flex-direction: column; gap: 4px; padding: 24px; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.cw-contact__item:hover { border-color: var(--ink); color: var(--ink); box-shadow: var(--shadow-2); }
.cw-contact__item b { font-size: 17px; margin-top: 14px; }
.cw-contact__item > span { font-size: 15.5px; font-weight: 500; word-break: break-word; }
.cw-contact__item em { font-style: normal; font-size: 14px; color: var(--slate); }
.cw-contact__ic { width: 48px; height: 48px; border-radius: 14px; background: var(--mist); display: grid; place-items: center; font-size: 26px; color: var(--ink); }
.cw-acct { display: grid; gap: 12px; padding: 24px; border-radius: var(--r-xl); background: var(--mist); max-width: 480px; margin-left: auto; width: 100%; }
.cw-acct__row { display: flex; align-items: center; gap: 14px; padding: 16px; background: #fff; border-radius: var(--r); box-shadow: var(--shadow-1); }
.cw-acct__row:nth-child(2) { margin-left: 28px; }
.cw-acct__sym { width: 44px; height: 44px; border-radius: 12px; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 20px; font-weight: 600; flex-shrink: 0; }
.cw-acct__t { flex: 1; min-width: 0; }
.cw-acct__t b { display: block; font-weight: 600; }
.cw-acct__t span { font-size: 13.5px; color: var(--slate); }
@media (max-width: 991px) { .cw-acct { margin: 0; } .cw-acct__row:nth-child(2) { margin-left: 0; } }
.cw-checks { list-style: none; margin: 0; padding: 0; display: grid; }
.cw-checks li { display: flex; gap: 14px; align-items: center; padding: 18px 0; border-top: 1px solid var(--line); font-size: 17px; font-weight: 500; }
.cw-checks li:last-child { border-bottom: 1px solid var(--line); }
.cw-checks i { width: 40px; height: 40px; border-radius: 12px; background: var(--mist); display: grid; place-items: center; font-size: 20px; }
.cw-faq details { border-bottom: 1px solid var(--line); }
.cw-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 22px 0; font-weight: 600; font-size: 17px; }
.cw-faq summary::-webkit-details-marker { display: none; }
.cw-faq summary::after { content: "+"; font-size: 24px; font-weight: 400; color: var(--slate); transition: transform .2s; }
.cw-faq details[open] summary::after { transform: rotate(45deg); }
.cw-faq details > div { padding: 0 0 22px; color: var(--slate); line-height: 1.7; max-width: 680px; }

/* Card data block (purchased card details) */
.cw-carddata { padding: 16px 18px; border-radius: 12px; background: var(--mist); font: 500 15px/1.75 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--ink); word-break: break-word; }
.cw-kpi { display: block; color: var(--ink); transition: background .15s; }
.cw-kpi:hover { background: var(--mist); color: var(--ink); }
.cw-kpis .cw-kpi:first-child { border-radius: var(--r-lg) 0 0 var(--r-lg); }
.cw-kpis .cw-kpi:last-child { border-radius: 0 var(--r-lg) var(--r-lg) 0; }

/* ==========================================================================
   Generic components used by pages that keep their original markup
   ========================================================================== */
.cw .card, .cw .custom--card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: none; color: var(--ink); }
.cw .card-header { background: transparent; border-bottom: 1px solid var(--line); padding: 18px 22px; font-weight: 600; }
.cw .card-header .card-title, .cw .card-title { font-size: 16px; font-weight: 600; margin: 0; color: var(--ink); }
.cw .card-body { padding: 22px; }
.cw .card-footer { background: transparent; border-top: 1px solid var(--line); padding: 16px 22px; }
.cw .list-group { border-radius: 12px; }
.cw .list-group-item { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.cw .table-responsive { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 6px; }
.cw .text--base { color: var(--ink) !important; }
.cw .bg--base { background: var(--ink) !important; color: #fff; }
.cw .bg--section, .cw .bg--body { background: transparent !important; }
.cw .verification-code-wrapper { width: 100%; max-width: 480px; margin: 40px auto; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; }
.cw .verification-area { background: transparent !important; }
.cw .verification-text { color: var(--slate); font-size: 15px; }
.cw .verification-code { position: relative; }
.cw .verification-code input { width: 100%; letter-spacing: 1.2em; padding-left: 1.2em; }
.cw .verification-code .boxes { display: none; }
.cw .maintenance-page { min-height: 60vh; display: flex; align-items: center; }
.cw .maintenance-page img { max-width: 360px; border-radius: var(--r-lg); }
.cw .social-login-btn { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 12px; background: #fff; color: var(--ink) !important; font-weight: 600; font-size: 14px; }
.cw .social-login-btn:hover { background: var(--mist); }
.cw .social-login-icon { font-size: 20px; }
.cw .registration-socails__content { margin: 18px 0 !important; }
.cw .registration-socails__desc { display: flex; align-items: center; gap: 14px; color: var(--slate-2); font-size: 13px; margin: 0; }
.cw .registration-socails__desc::before, .cw .registration-socails__desc::after { content: ""; flex: 1; height: 1px; background: var(--line); }
/* Inner dashboard pages that wrap themselves in .container keep the shell's width */
.cw-main .container { max-width: none; padding-left: 0; padding-right: 0; }

/* ==========================================================================
   Mobile refinements
   ========================================================================== */
@media (max-width: 767px) {
    .cw .container { padding-left: 20px; padding-right: 20px; }
    .cw-main .container { padding-left: 0; padding-right: 0; }
}
@media (max-width: 991px) { .cw-article { grid-template-columns: minmax(0, 1fr); } }
.cw-prose { overflow-wrap: anywhere; }
.cw-prose img, .cw-prose iframe, .cw-prose video { max-width: 100% !important; height: auto; }
.cw-prose [style*="width"] { max-width: 100% !important; }
@media (max-width: 575px) {
    .cw-acct .cw-badge { display: none; }
    .cw-acct { padding: 16px; }
    /* Two cards per row on phones: denser browsing, still legible card art */
    .cw-pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; }
    .cw-ptile__stage { padding: 10px; border-radius: 14px; }
    .cw-ptile__body { padding-top: 10px; gap: 4px; }
    .cw-ptile__name { font-size: 14px; }
    .cw-ptile__meta { flex-direction: column; align-items: flex-start; gap: 2px; font-size: 12.5px; }
    .cw-ptile__price { font-size: 15px; }
    .cw-rail { grid-auto-columns: 72%; }
    .cw-deck { max-width: 340px; }
    .cw-deck .cw-card { width: 64%; left: 18%; }
    .cw-deck__toast { right: 0; bottom: 0; }
    .cw-hero .cw-h1 { font-size: 36px; }
    .cw-facts { gap: 10px 20px; }
}

/* Password rules popup added by secure_password.js */
.cw .input-popup { display: none; position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 20; padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-2); }
.cw .hover-input-popup .input-popup { display: block; }
.cw .input-popup p { margin: 0; padding: 3px 0 3px 22px; position: relative; font-size: 13.5px; }
.cw .input-popup p::before { position: absolute; left: 0; top: 3px; font-family: 'Line Awesome Free'; font-weight: 900; }
.cw .input-popup p.error { color: var(--slate); }
.cw .input-popup p.error::before { content: "\f00d"; color: var(--bad); }
.cw .input-popup p.success { color: var(--ok); }
.cw .input-popup p.success::before { content: "\f00c"; color: var(--ok); }

/* About section: card composition instead of a photo */
.cw-split__media--cards { position: relative; display: grid; place-items: center; }
.cw-split__media--cards .cw-card { position: absolute; width: 58%; }
.cw-split__media--cards .cw-card:first-child { transform: translate(-14%, -10%) rotate(-9deg); }
.cw-split__media--cards .cw-card:last-child { transform: translate(14%, 12%) rotate(6deg); }

/* Short laptop screens: keep every sidebar link reachable */
@media (max-height: 860px) and (min-width: 1100px) { .cw-side__help { display: none; } }
/* Payment method fallback badge when a gateway has no logo */
.cw-method__img--txt { display: grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--ink); }

/* Floating chat button sits above the dashboard tab bar on phones */
@media (max-width: 1099px) { .cw-app .contact-fab { bottom: calc(84px + env(safe-area-inset-bottom)) !important; } }

/* Social sign-in (Continue with Google) on login and register */
.cw-oauth { display: grid; gap: 10px; }
.cw-oauth__btn { display: flex; align-items: center; justify-content: center; gap: 12px; height: 52px; padding: 0 20px; border: 1px solid var(--line-2); border-radius: 14px; background: #fff; color: var(--ink); font-size: 15px; font-weight: 600; text-decoration: none; transition: background-color .15s, border-color .15s; }
.cw-oauth__btn:hover, .cw-oauth__btn:focus { background: var(--mist); border-color: var(--slate-2); color: var(--ink); }
.cw-oauth__btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.cw-oauth__btn svg { width: 20px; height: 20px; flex: none; }
.cw-oauth__btn i { font-size: 20px; }
.cw-oauth__note { margin: 2px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--slate-2); text-align: center; }
.cw-oauth__note a { color: var(--slate); text-decoration: underline; }
.cw-oauth + .cw-or { margin: 20px 0 22px; }

/* Customer card page: virtual card details with copy buttons */
.cw-vc { display: grid; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin-bottom: 18px; background: #fff; }
.cw-vc__row { display: grid; grid-template-columns: minmax(110px, 36%) minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 14px; border-top: 1px solid var(--line); font-size: 15px; min-height: 52px; }
.cw-vc__row:first-child { border-top: 0; }
.cw-vc__row > span:first-child { color: var(--slate); }
.cw-vc__row > b { font-weight: 600; word-break: break-word; color: var(--ink); }
.cw-vc__row > b.num { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .03em; }
.cw-vc__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 10px; }
.cw-vc__head h3, .cw-vc__h { font-size: 15px; color: var(--slate); font-weight: 500; margin: 0; }
.cw-vc__h { margin: 4px 0 10px; }
.cw-card__exp { display: block; margin-top: 1.2cqw; font-size: 3.1cqw; letter-spacing: .08em; color: var(--c-dim); }
@media (max-width: 575px) {
    .cw-vc__row { grid-template-columns: minmax(0, 1fr) auto; row-gap: 2px; }
    .cw-vc__row > span:first-child { grid-column: 1 / -1; font-size: 13px; }
}
/* On phones the card itself comes first */
@media (max-width: 991px) { .cw-vc-page > div:last-child { order: -1; } .cw-vc-page .cw-pd__stage { padding: 6% 10% !important; } }

/* Customer card details page (user/card_details) */
.cvd { display: grid; gap: 18px; }
.cvd-hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 36px; padding: 26px; align-items: center; }
.cvd-hero__art { display: grid; gap: 18px; padding: 9% 9% 7%; border-radius: 22px; background: radial-gradient(120% 120% at 0% 0%, #f8f9fb 0%, #eceff3 100%); }
.cvd-hero__art .cw-card { width: 100%; max-width: 420px; margin: 0 auto; }
.cvd-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.cvd-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.cvd-status { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.cvd-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.cvd-status--ready { color: var(--ok); background: var(--ok-soft); }
.cvd-status--wait { color: #b54708; background: #fff6e5; }
.cvd-title { margin: 0 0 4px; font-size: 28px; line-height: 1.15; letter-spacing: -.035em; }
.cvd-sub { margin: 0 0 22px; font-size: 14px; color: var(--slate); }
.cvd-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.cvd-f { position: relative; min-width: 0; padding: 12px 54px 12px 15px; border-radius: 14px; border: 1px solid var(--line); background: var(--mist); }
.cvd-f--wide { grid-column: 1 / -1; }
.cvd-f > span { display: block; margin-bottom: 3px; font-size: 12px; color: var(--slate); }
.cvd-f > b { display: block; font-size: 16px; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.cvd-f > b.num { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 17px; letter-spacing: .05em; }
.cvd-f > .cvd-copy { position: absolute; top: 50%; right: 9px; transform: translateY(-50%); }
.cvd-copy { width: 36px; height: 36px; padding: 0; justify-content: center; font-size: 0; border-radius: 10px; }
.cvd-copy i { font-size: 17px; }
.cvd-copy--sm { width: 32px; height: 32px; }
.cvd-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.cvd-chip { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 13px; color: var(--slate); }
.cvd-chip b { color: var(--ink); font-weight: 600; }
.cvd-callout { padding: 18px 20px; border-radius: 16px; border: 1px solid #fde3b0; background: #fffaf0; color: #6b3a07; }
.cvd-callout h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 16px; color: #6b3a07; }
.cvd-callout p { margin: 0; font-size: 14.5px; line-height: 1.65; }
.cvd-callout__foot { margin-top: 10px !important; font-size: 13px !important; color: #8a5a20; }
.cvd-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.cvd-grid--one { grid-template-columns: minmax(0, 1fr); }
.cvd-panel { padding: 22px 24px; }
.cvd-panel__h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.cvd-panel h2 { margin: 0; font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.cvd-list > div { display: grid; grid-template-columns: 104px minmax(0, 1fr) 32px; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.cvd-list > div:first-child { border-top: 0; }
.cvd-list span { color: var(--slate); }
.cvd-list b { font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.cvd-list b.num { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 14px; }
.cvd-note { display: flex; gap: 10px; margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: var(--mist); font-size: 14px; line-height: 1.6; color: var(--ink); }
.cvd-note i { font-size: 18px; color: var(--slate); }
.cvd-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 18px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; }
.cvd-links a { display: inline-flex; align-items: center; gap: 6px; color: var(--slate); }
.cvd-links a:hover { color: var(--ink); }
@media (max-width: 991px) {
    .cvd-hero { grid-template-columns: minmax(0, 1fr); gap: 22px; padding: 16px; }
    .cvd-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 575px) {
    .cvd-title { font-size: 23px; }
    .cvd-panel { padding: 18px; }
    .cvd-f > b.num { font-size: 15.5px; letter-spacing: .03em; }
    .cvd-list > div { grid-template-columns: 84px minmax(0, 1fr) 32px; }
}

/* Dashboard: activation announcement for cards still waiting for their data */
.cw-actv { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; margin-bottom: 18px; padding: 24px 26px; border-radius: var(--r-lg); background: var(--ink); color: #fff; }
.cw-actv::before { content: ""; position: absolute; z-index: -1; width: 460px; height: 460px; right: -140px; top: -220px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 91, 20, .5), transparent); }
.cw-actv::after { content: ""; position: absolute; inset: 0; padding: 1px; border-radius: inherit; pointer-events: none; background: linear-gradient(115deg, rgba(255, 91, 20, .95), rgba(255, 255, 255, .06) 45%, rgba(255, 91, 20, .55)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.cw-actv__icon { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 16px; background: var(--ember); color: #fff; font-size: 27px; box-shadow: 0 12px 30px -8px rgba(255, 91, 20, .75); }
.cw-actv__tag { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 12.5px; font-weight: 600; color: #ffb48f; }
.cw-actv__pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--ember); animation: cwActvPulse 1.8s ease-out infinite; }
@keyframes cwActvPulse { 0% { box-shadow: 0 0 0 0 rgba(255, 91, 20, .65); } 70% { box-shadow: 0 0 0 10px rgba(255, 91, 20, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 91, 20, 0); } }
.cw-actv h3 { margin: 0 0 8px; font-size: 21px; letter-spacing: -.025em; color: #fff; }
.cw-actv p { max-width: 72ch; margin: 0 0 18px; font-size: 15px; line-height: 1.65; color: rgba(255, 255, 255, .8); }
.cw-actv__cards { display: flex; flex-wrap: wrap; gap: 6px; margin: -8px 0 16px; }
.cw-actv__cards span { padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .1); font-size: 12.5px; color: #fff; }
.cw-actv__btns { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.cw-actv__btns .cw-btn--glass { --b-bg: rgba(255, 255, 255, .1); --b-bd: rgba(255, 255, 255, .18); --b-fg: #fff; color: #fff !important; }
.cw-actv__btns .cw-btn--glass:hover { background: rgba(255, 255, 255, .18); }
.cw-actv__link { display: inline-flex; align-items: center; gap: 6px; margin-left: 4px; font-size: 14px; color: rgba(255, 255, 255, .78) !important; }
.cw-actv__link:hover { color: #fff !important; }
@media (max-width: 575px) {
    .cw-actv { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 20px 18px; }
    .cw-actv__icon { width: 44px; height: 44px; border-radius: 14px; font-size: 22px; }
    .cw-actv h3 { font-size: 18px; }
    .cw-actv__btns .cw-btn { flex: 1 1 100%; justify-content: center; }
    .cw-actv__link { margin: 4px auto 0; }
}
@media (prefers-reduced-motion: reduce) { .cw-actv__pulse { animation: none; } }
