/* ============================================================
   BulkLog Buylist — front-end styles
   Matches topdeck126-hifi-mockup_3.html screens 4 & 17
   ============================================================ */

:root {
    --blb-indigo:     #4338CA;
    --blb-indigo-500: #6366F1;
    --blb-indigo-200: #C7D2FE;
    --blb-indigo-100: #E0E7FF;
    --blb-gold:       #FFCC00;
    --blb-gold-soft:  #F6CF7B;
    --blb-gold-deep:  #E0A93B;
    --blb-ink:        #1F2937;
    --blb-paper:      #ffffff;
    --blb-paper-2:    #F5F6FF;
    --blb-muted:      #6B7280;
    --blb-muted-2:    #9AA1B2;
    --blb-green:      #059669;
    --blb-mint:       #A7F3D0;
    --blb-red:        #EF4444;
    --blb-out:        2px solid #1F2937;
    --blb-radius:     14px;
    --blb-radius-sm:  10px;
    --blb-shadow-card: 0 8px 20px -10px rgba(23,20,70,.45);
    --blb-shadow-sm:   0 4px 12px -4px rgba(23,20,70,.28);
}

/* ── Utilities ── */
.blb-green  { color: var(--blb-green); }
.blb-muted  { color: var(--blb-muted); }
.blb-req    { color: var(--blb-red); }

/* ── Wrap ── */
.blb-wrap,
.blb-submit-wrap {
    font-family: "Inter", sans-serif;
    color: var(--blb-ink);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* ============================================================
   BANNER
   ============================================================ */
.blb-banner {
    background: linear-gradient(135deg, #0F766E, #059669);
    color: #fff;
    border: var(--blb-out);
    border-radius: 18px;
    margin-bottom: 20px;
    padding: 20px 26px;
    box-shadow: 0 6px 0 var(--blb-ink);
}
.blb-banner__inner {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}
.blb-banner__kicker {
    font-family: "Afacad Flux", "Inter", sans-serif;
    font-weight: 900;
    text-transform: uppercase;
    font-size: 22px;
    color: var(--blb-gold);
    display: block;
    margin-bottom: 4px;
}
.blb-banner p {
    font-size: 13px;
    color: rgba(255,255,255,.9);
    max-width: 420px;
    margin: 0;
}
.blb-banner .blb-btn {
    margin-left: auto;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.blb-layout,
.blb-submit-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 24px;
    align-items: start;
}
.blb-sidebar {
    position: sticky;
    top: 16px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.blb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: "Inter", sans-serif;
    font-weight: 700;
    font-size: 13px;
    padding: 11px 20px;
    border-radius: var(--blb-radius-sm);
    border: var(--blb-out);
    cursor: pointer;
    background: var(--blb-paper);
    color: var(--blb-ink);
    text-decoration: none;
    transition: transform .1s ease, box-shadow .1s ease;
    box-shadow: 0 3px 0 var(--blb-ink);
}
.blb-btn:active  { transform: translateY(3px); box-shadow: 0 0 0 var(--blb-ink); }
.blb-btn--gold   { background: var(--blb-gold); color: var(--blb-ink); }
.blb-btn--ghost  { background: transparent; color: #fff; border-color: #fff; box-shadow: 0 3px 0 rgba(255,255,255,.5); }
.blb-btn--sm     { padding: 8px 14px; font-size: 12px; box-shadow: 0 2px 0 var(--blb-ink); }
.blb-btn--block  { display: flex; width: 100%; margin: 0 16px 12px; width: calc(100% - 32px); }

/* ============================================================
   TOOLBAR
   ============================================================ */
.blb-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}
.blb-toolbar--meta {
    margin-bottom: 8px;
}
.blb-toolbar__count {
    margin-left: auto;
    font-size: 12px;
    color: var(--blb-indigo-200);
    font-weight: 600;
}

/* Search */
.blb-search {
    flex: 1;
    min-width: 220px;
    background: #fff;
    border: var(--blb-out);
    border-radius: 12px;
    height: 46px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    color: var(--blb-muted);
    font-size: 14px;
    box-shadow: 0 3px 0 var(--blb-ink);
}
.blb-search input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 14px;
    color: var(--blb-ink);
    background: transparent;
}
.blb-search input::placeholder { color: var(--blb-muted); }

/* Payout segment toggle */
.blb-seg {
    display: inline-flex;
    border: var(--blb-out);
    border-radius: 999px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 0 var(--blb-ink);
}
.blb-seg__opt {
    padding: 9px 16px;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--blb-muted);
    cursor: pointer;
    user-select: none;
}
.blb-seg__opt.is-on {
    background: var(--blb-indigo-500);
    color: #fff;
}

/* ============================================================
   FILTER CHIPS
   ============================================================ */
.blb-filterbar {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}
.blb-filter-group {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
    align-items: center;
}
.blb-fchip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1.5px solid var(--blb-ink);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 2px 0 var(--blb-ink);
    padding: 7px 13px;
    font-size: 12.5px;
    font-weight: 700;
    text-decoration: none;
    color: var(--blb-ink);
    cursor: pointer;
    transition: background .1s;
}
.blb-fchip--label {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
    color: var(--blb-muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .06em;
    padding-left: 0;
    cursor: default;
}
.blb-fchip.is-on {
    background: var(--blb-indigo-500);
    color: #fff;
    border-color: var(--blb-indigo-500);
}
.blb-fchip__ct { font-weight: 500; opacity: .7; }

/* Toggle chips (In stock / Only cards we want) — checkbox style */
.blb-fchip--toggle {
    border: 1.5px solid var(--blb-ink);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 2px 0 var(--blb-ink);
    padding: 9px 14px;
    font-size: 12.5px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: default;
}
.blb-fchip--toggle.is-on {
    background: var(--blb-indigo-500);
    color: #fff;
    border-color: var(--blb-indigo-500);
}
.blb-fchip__box {
    width: 15px;
    height: 15px;
    border: 1.5px solid var(--blb-ink);
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
}
.blb-fchip--toggle.is-on .blb-fchip__box {
    background: #fff;
    border-color: #fff;
}
.blb-fchip--toggle.is-on .blb-fchip__box::after {
    content: "";
    width: 4px;
    height: 8px;
    border: solid var(--blb-indigo-500);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) translateY(-1px);
}

/* Visual-only chip (Card type, Price) — no hover, no dropdown */
.blb-fchip--visual {
    cursor: default;
    opacity: .7;
}

/* Dropdown-style filter chip (Set ▾ / Rarity ▾ / Finish ▾ / Condition ▾) */
.blb-filterbar {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
}
.blb-fdd {
    position: relative;
    display: inline-block;
}
.blb-fchip--dd {
    font: inherit;
    font-family: "Inter", sans-serif;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    line-height: 1.2;
    padding: 9px 14px;
    display: inline-flex;
    align-items: center;
}

/* Sort dropdown in the search row — matches search bar height */
.blb-toolbar > .blb-fdd > .blb-fchip--dd {
    height: 46px;
    box-sizing: border-box;
}
.blb-fchip--dd .blb-fchip__caret {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    margin: -3px 0 0 4px;
    opacity: .75;
    transition: transform .15s ease;
}
.blb-fdd.is-open .blb-fchip--dd .blb-fchip__caret {
    transform: rotate(-135deg);
    margin-top: 2px;
}
.blb-fdd__menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 30;
    min-width: 220px;
    max-width: 320px;
    max-height: 340px;
    overflow-y: auto;
    background: #fff;
    border: var(--blb-out);
    border-radius: 12px;
    box-shadow: 0 12px 28px -8px rgba(23,20,70,.5), 0 4px 0 var(--blb-ink);
    padding: 6px;
}
.blb-fdd.is-open .blb-fdd__menu { display: block; }
.blb-fdd__item {
    display: block;
    padding: 9px 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--blb-ink);
    text-decoration: none;
    border-radius: 7px;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.blb-fdd__item:hover { background: var(--blb-paper-2); }
.blb-fdd__item.is-selected {
    background: var(--blb-indigo-500);
    color: #fff;
}
.blb-fdd__item--clear {
    color: var(--blb-red);
    border-bottom: 1px solid #EEF0FA;
    border-radius: 7px 7px 0 0;
    margin-bottom: 4px;
    font-weight: 700;
}

/* ============================================================
   CARD ROWS (buylist list)
   ============================================================ */
.blb-list {
    background: #fff;
    border: var(--blb-out);
    border-radius: 16px;
    box-shadow: var(--blb-shadow-card);
    overflow: hidden;
}
.blb-row {
    display: grid;
    grid-template-columns: 84px minmax(220px, 1fr) 185px 175px 180px;
    gap: 22px;
    align-items: center;
    padding: 18px 22px;
    border-bottom: 1.5px solid #EEF0FA;
}
.blb-row:last-child { border-bottom: none; }

/* Thumbnail */
.blb-row__thumb {
    width: 88px;
    height: 116px;
    border: 1.5px solid var(--blb-indigo-100);
    border-radius: 9px;
    overflow: hidden;
    background: var(--blb-paper-2);
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.blb-row__thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* Card info */
.blb-row__name {
    font-weight: 800;
    font-size: 19px;
    margin-bottom: 10px;
    letter-spacing: -.01em;
}
.blb-row__tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}
.blb-tag {
    display: inline-flex;
    align-items: center;
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .03em;
    padding: 4px 10px;
    border-radius: 7px;
    background: #fff;
    color: var(--blb-ink);
    border: 1.5px solid var(--blb-ink);
}
.blb-row__demand {
    font-size: 12px;
    font-weight: 700;
    color: var(--blb-muted);
    text-transform: uppercase;
    letter-spacing: .05em;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.blb-row__demand::before {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--blb-muted-2);
    flex: none;
}

/* Column label */
.blb-col__label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--blb-muted);
    letter-spacing: .08em;
    margin-bottom: 9px;
}

/* Condition select */
.blb-sel-wrap {
    position: relative;
}
.blb-cond-sel {
    width: 100%;
    border: 1.5px solid var(--blb-ink);
    border-radius: 10px;
    height: 50px;
    padding: 0 36px 0 15px;
    font-size: 14px;
    font-weight: 600;
    background: #fff;
    box-shadow: 0 2px 0 var(--blb-ink);
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    color: var(--blb-ink);
}
.blb-sel-wrap::after {
    content: "";
    position: absolute;
    right: 13px;
    top: 50%;
    transform: translateY(-60%) rotate(45deg);
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--blb-muted);
    border-bottom: 2px solid var(--blb-muted);
    pointer-events: none;
}

/* Price display */
.blb-row__pay {}
.blb-row__cash {
    display: block;
    font-family: "Afacad Flux", "Inter", sans-serif;
    font-weight: 900;
    font-size: 27px;
    color: var(--blb-ink);
    line-height: 1;
}
.blb-row__alt {
    display: block;
    font-size: 11px;
    color: var(--blb-muted);
    font-weight: 600;
    margin-top: 5px;
}

/* Actions column */
.blb-row__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Qty stepper */
.blb-qty {
    display: inline-flex;
    align-items: center;
    border: 1.5px solid var(--blb-ink);
    border-radius: 9px;
    overflow: hidden;
    background: #fff;
    align-self: flex-end;
    height: 42px;
}
.blb-qty__btn {
    width: 38px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--blb-muted);
    cursor: pointer;
    border: none;
    background: transparent;
    line-height: 1;
}
.blb-qty__n {
    width: 40px;
    text-align: center;
    font-weight: 700;
    font-size: 14px;
    border-left: 1.5px solid var(--blb-ink);
    border-right: 1.5px solid var(--blb-ink);
    height: 42px;
    line-height: 42px;
}

/* Add button */
.blb-add-btn {
    background: var(--blb-ink);
    color: #fff;
    border: 1.5px solid var(--blb-ink);
    border-radius: 10px;
    font-weight: 800;
    font-size: 12.5px;
    text-transform: uppercase;
    letter-spacing: .05em;
    padding: 13px;
    text-align: center;
    box-shadow: 0 3px 0 #000;
    cursor: pointer;
    width: 100%;
    transition: transform .1s, box-shadow .1s;
}
.blb-add-btn:active {
    transform: translateY(3px);
    box-shadow: 0 0 0 #000;
}
.blb-add-btn.is-adding {
    opacity: .6;
    cursor: wait;
}
.blb-add-btn.is-added {
    background: var(--blb-green);
    border-color: var(--blb-green);
}

/* Empty state */
.blb-empty {
    padding: 40px 24px;
    text-align: center;
    color: var(--blb-muted);
    font-size: 14px;
}
.blb-empty--page {
    padding: 60px 24px;
}

/* ============================================================
   PAGINATION
   ============================================================ */
.blb-pager {
    display: flex;
    justify-content: center;
    gap: 7px;
    margin-top: 24px;
}
.blb-pg {
    min-width: 38px;
    height: 38px;
    padding: 0 8px;
    border: var(--blb-out);
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    background: #fff;
    box-shadow: 0 3px 0 var(--blb-ink);
    text-decoration: none;
    color: var(--blb-ink);
}
.blb-pg.is-on { background: var(--blb-gold); }

/* ============================================================
   CART PANEL (right sidebar)
   ============================================================ */
.blb-cart-panel {
    background: #fff;
    border: var(--blb-out);
    border-radius: 16px;
    box-shadow: var(--blb-shadow-card);
    overflow: hidden;
}
.blb-cart-panel__head {
    font-family: "Afacad Flux", "Inter", sans-serif;
    font-weight: 900;
    text-transform: uppercase;
    font-size: 15px;
    margin: 0;
    padding: 16px 18px;
    background: var(--blb-indigo-500);
    color: #fff;
}
.blb-cart-panel__count {
    font-size: 13px;
    font-weight: 600;
    opacity: .85;
}
.blb-cart-panel__items {
    max-height: 360px;
    overflow-y: auto;
}
.blb-cart-empty {
    padding: 20px 18px;
    font-size: 13px;
    color: var(--blb-muted);
}

/* Cart item row */
.blb-cart-item {
    display: flex;
    gap: 10px;
    padding: 12px 16px;
    border-bottom: 1px solid #EEF0FA;
    align-items: center;
}
.blb-cart-item:last-child { border-bottom: none; }
.blb-cart-item__thumb {
    width: 40px;
    height: 54px;
    border-radius: 6px;
    overflow: hidden;
    background: var(--blb-paper-2);
    padding: 3px;
    flex: none;
    border: 1px solid #E5E7EB;
}
.blb-cart-item__thumb img {
    height: 100%;
    width: 100%;
    object-fit: contain;
}
.blb-cart-item__info { flex: 1; min-width: 0; }
.blb-cart-item__name {
    font-weight: 700;
    font-size: 12.5px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.blb-cart-item__meta {
    font-size: 11px;
    color: var(--blb-muted);
}
.blb-cart-item__price {
    font-family: "Afacad Flux", "Inter", sans-serif;
    font-weight: 900;
    font-size: 14px;
    flex: none;
}
.blb-cart-item__rm {
    width: 26px;
    height: 26px;
    border: 1.5px solid var(--blb-ink);
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    box-shadow: 0 2px 0 var(--blb-ink);
    color: var(--blb-red);
    font-size: 14px;
    cursor: pointer;
    flex: none;
    line-height: 1;
    padding: 0;
}

/* Totals */
.blb-cart-panel__totals {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.blb-cart-panel__tl {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 600;
    padding: 4px 0;
}
.blb-cart-panel__tl--big {
    font-family: "Afacad Flux", "Inter", sans-serif;
    font-weight: 900;
    font-size: 18px;
    border-top: 2px dashed var(--blb-indigo-100);
    padding-top: 10px;
    margin-top: 4px;
}
.blb-cart-panel__fine {
    padding: 0 16px 16px;
    font-size: 11px;
    color: var(--blb-muted);
    line-height: 1.5;
    margin: 0;
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.blb-how {
    margin-top: 48px;
    padding: 32px 0;
    border-top: 2px dashed rgba(255,255,255,.25);
}
.blb-how__title {
    font-family: "Afacad Flux", "Inter", sans-serif;
    font-weight: 900;
    text-transform: uppercase;
    font-size: 26px;
    color: var(--blb-gold, #FFCC00);
    margin: 0 0 24px;
}
.blb-how__steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.blb-how__step {
    background: #fff;
    border: var(--blb-out);
    border-radius: 16px;
    box-shadow: var(--blb-shadow-card);
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.blb-how__num {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--blb-gold);
    border: var(--blb-out);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Afacad Flux", "Inter", sans-serif;
    font-weight: 900;
    font-size: 18px;
    box-shadow: 0 3px 0 var(--blb-ink);
}
.blb-how__step strong { font-size: 15px; }
.blb-how__step p { font-size: 13px; color: var(--blb-muted); margin: 0; }

/* ============================================================
   SUBMIT PAGE — form cards
   ============================================================ */
.blb-form-card {
    background: #fff;
    border: var(--blb-out);
    border-radius: 16px;
    box-shadow: var(--blb-shadow-card);
    padding: 24px;
    margin-bottom: 20px;
}
.blb-form-card__title {
    font-family: "Afacad Flux", "Inter", sans-serif;
    font-weight: 900;
    text-transform: uppercase;
    font-size: 18px;
    margin: 0 0 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--blb-ink);
}
.blb-step-num {
    width: 28px;
    height: 28px;
    border-radius: 9px;
    background: var(--blb-gold);
    border: 1.5px solid var(--blb-ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    box-shadow: 0 2px 0 var(--blb-ink);
}

/* Submit line item */
.blb-submit-line {
    display: grid;
    grid-template-columns: 52px 1fr 120px 52px 96px;
    gap: 12px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #EEF0FA;
}
.blb-submit-line:last-child { border-bottom: none; }
.blb-submit-line__thumb {
    width: 52px;
    height: 70px;
    border: 1px solid var(--blb-indigo-100);
    border-radius: 7px;
    overflow: hidden;
    background: var(--blb-paper-2);
    padding: 3px;
}
.blb-submit-line__thumb img { height: 100%; width: 100%; object-fit: contain; }
.blb-submit-line__name { font-weight: 800; font-size: 13px; }
.blb-submit-line__meta { font-size: 11px; color: var(--blb-muted); margin-top: 2px; }
.blb-submit-line__cond { font-size: 12px; font-weight: 600; color: var(--blb-ink); }
.blb-submit-line__qty  { font-size: 12px; color: var(--blb-muted); text-align: center; }
.blb-submit-line__pay  {
    font-family: "Afacad Flux", "Inter", sans-serif;
    font-weight: 900;
    font-size: 16px;
    color: var(--blb-green);
    text-align: right;
}
.blb-form-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 14px;
    margin-top: 4px;
    border-top: 2px dashed var(--blb-indigo-100);
    font-size: 13px;
    font-weight: 700;
    color: var(--blb-ink);
}

/* Choice rows (send method / payout) */
.blb-choice {
    border: 1.5px solid var(--blb-indigo-100);
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    cursor: pointer;
    margin-bottom: 10px;
    transition: .12s;
    position: relative;
}
.blb-choice:last-of-type { margin-bottom: 0; }
.blb-choice input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.blb-choice.is-on {
    border-color: var(--blb-indigo-500);
    background: var(--blb-paper-2);
    box-shadow: inset 0 0 0 1.5px var(--blb-indigo-500);
}
.blb-choice__radio {
    width: 20px;
    height: 20px;
    border: 2px solid var(--blb-ink);
    border-radius: 50%;
    flex: none;
    margin-top: 1px;
    position: relative;
    background: #fff;
}
.blb-choice.is-on .blb-choice__radio::after {
    content: "";
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: var(--blb-indigo-500);
}
.blb-choice__body { flex: 1; }
.blb-choice__title {
    font-weight: 800;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.blb-choice__desc { font-size: 12px; color: var(--blb-muted); margin-top: 2px; }
.blb-choice__price {
    font-family: "Afacad Flux", "Inter", sans-serif;
    font-weight: 900;
    font-size: 16px;
    white-space: nowrap;
}
.blb-choice__price.free { color: var(--blb-green); }

.blb-badge {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
    padding: 2px 7px;
    border-radius: 5px;
    background: var(--blb-indigo-100);
    color: var(--blb-indigo-500);
    border: 1px solid var(--blb-indigo-200);
}

/* Form fields */
.blb-frow {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.blb-field {
    margin-bottom: 14px;
}
.blb-field:last-child { margin-bottom: 0; }
.blb-field label {
    display: block;
    font-weight: 700;
    font-size: 12.5px;
    margin-bottom: 6px;
    color: var(--blb-ink);
}
.blb-input {
    width: 100%;
    border: 1.5px solid var(--blb-ink);
    border-radius: 9px;
    height: 44px;
    background: #fff;
    padding: 0 13px;
    font-size: 13.5px;
    color: var(--blb-ink);
    box-shadow: 0 2px 0 var(--blb-ink);
    box-sizing: border-box;
    font-family: "Inter", sans-serif;
}
.blb-input:focus {
    outline: none;
    border-color: var(--blb-indigo-500);
    box-shadow: 0 0 0 3px var(--blb-indigo-100);
}
.blb-input--error {
    border-color: var(--blb-red) !important;
    box-shadow: 0 0 0 3px rgba(220,38,38,.15), 0 2px 0 var(--blb-red) !important;
    background: #fff5f5 !important;
}
.blb-field__hint {
    display: block;
    font-size: 12px;
    color: var(--blb-muted, #6b7280);
    margin-top: 5px;
}

/* Checkline */
.blb-checkline {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 12px;
    color: var(--blb-ink);
}
.blb-checkline__box {
    width: 19px;
    height: 19px;
    border: 1.5px solid var(--blb-ink);
    border-radius: 5px;
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 0 var(--blb-ink);
    background: #fff;
}
.blb-checkline__box.is-on {
    background: var(--blb-indigo-500);
    border-color: var(--blb-indigo-500);
}
.blb-checkline__box.is-on::after {
    content: "";
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) translateY(-1px);
}

/* Notice */
.blb-notice {
    background: #fff;
    border: var(--blb-out);
    border-left: 5px solid var(--blb-indigo-500);
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
}
.blb-notice--error { border-left-color: var(--blb-red); }
.blb-notice--success { border-left-color: var(--blb-green); }

/* Submitted confirmation */
.blb-submitted {
    text-align: center;
    padding: 60px 24px;
}
.blb-submitted__icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--blb-green);
    color: #fff;
    font-size: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

/* ============================================================
   NOTICE (AJAX feedback)
   ============================================================ */
.blb-cart-sidebar .blb-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--blb-ink);
    color: #fff;
    padding: 12px 18px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(0,0,0,.3);
    z-index: 999;
    animation: blb-toast-in .2s ease;
}
@keyframes blb-toast-in {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   MODAL (buylist terms popup)
   ============================================================ */
.blb-modal[hidden] { display: none; }
.blb-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: blb-modal-in .15s ease;
}
.blb-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(23, 20, 70, .55);
    cursor: pointer;
}
.blb-modal__dialog {
    position: relative;
    background: #fff;
    border: var(--blb-out);
    border-radius: 16px;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, .4), 0 6px 0 var(--blb-ink);
    max-width: 560px;
    width: 100%;
    max-height: calc(100vh - 40px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.blb-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: 1.5px solid var(--blb-ink);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 0 var(--blb-ink);
    color: var(--blb-ink);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.blb-modal__title {
    font-family: "Afacad Flux", "Inter", sans-serif;
    font-weight: 900;
    text-transform: uppercase;
    font-size: 22px;
    margin: 0;
    padding: 20px 56px 12px 24px;
    color: var(--blb-ink);
    border-bottom: 1.5px solid #EEF0FA;
}
.blb-modal__body {
    padding: 20px 24px;
    overflow-y: auto;
    flex: 1;
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--blb-ink);
}
.blb-modal__body p {
    margin: 0 0 14px;
}
.blb-modal__body p:last-child { margin-bottom: 0; }
.blb-modal__body strong { color: var(--blb-ink); }
.blb-modal__footer {
    padding: 14px 24px 18px;
    display: flex;
    justify-content: flex-end;
    border-top: 1.5px solid #EEF0FA;
}
@keyframes blb-modal-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}
body.blb-modal-open { overflow: hidden; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
    .blb-row {
        grid-template-columns: 72px 1fr 155px 155px;
    }
    .blb-row__actions { grid-column: 1 / -1; flex-direction: row; align-items: center; }
    .blb-row__name { font-size: 17px; }
}
@media (max-width: 820px) {
    .blb-layout,
    .blb-submit-layout {
        grid-template-columns: 1fr;
    }
    .blb-sidebar { position: static; }
    .blb-row {
        grid-template-columns: 64px 1fr 1fr;
        row-gap: 12px;
    }
    .blb-row__info { grid-column: 2 / -1; }
    .blb-row__col {
        grid-column: span 1;
    }
    .blb-row__actions {
        grid-column: 1 / -1;
        flex-direction: row;
        align-items: center;
    }
    .blb-how__steps { grid-template-columns: 1fr; }
    .blb-submit-line { grid-template-columns: 44px 1fr 80px; }
    .blb-submit-line__qty,
    .blb-submit-line__pay { grid-column: 2; }
    .blb-frow { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .blb-row { padding: 14px; gap: 10px; }
    .blb-banner { padding: 16px; }
    .blb-banner .blb-btn { margin-left: 0; margin-top: 4px; }

    .blb-row {
        grid-template-columns: 56px 1fr;
        row-gap: 8px;
    }
    .blb-row__thumb {
        width: 56px;
        height: 74px;
        padding: 4px;
    }
    .blb-row__name { font-size: 14px; margin-bottom: 4px; }
    .blb-row__tags { margin-bottom: 4px; }
    .blb-tag { font-size: 9.5px; padding: 3px 7px; }

    .blb-row__col {
        grid-column: 1 / -1;
        display: flex;
        align-items: center;
        gap: 10px;
    }
    .blb-col__label { margin-bottom: 0; white-space: nowrap; }
    .blb-row__actions {
        grid-column: 1 / -1;
        flex-direction: row;
        align-items: center;
        gap: 8px;
    }
    .blb-qty { height: 38px; }
    .blb-qty__btn { width: 32px; height: 38px; }
    .blb-qty__n { width: 34px; height: 38px; line-height: 38px; font-size: 13px; }
    .blb-add-btn { padding: 10px; font-size: 11px; flex: 1; }
    .blb-cond-sel { height: 40px; font-size: 13px; }
    .blb-row__cash { font-size: 22px; }

    .blb-search { min-width: 0; flex-basis: 100%; height: 42px; }
    .blb-toolbar { gap: 8px; }
    .blb-toolbar .blb-btn--sm { flex-shrink: 0; }

    .blb-cart-panel__head { font-size: 13px; padding: 12px 14px; }

    .blb-pager { flex-wrap: wrap; }
    .blb-pg { min-width: 34px; height: 34px; font-size: 12px; }

    .blb-fchip--dd { font-size: 12px; padding: 7px 11px; }

    .blb-list { border-radius: 12px; }

    .blb-form-card { padding: 16px; }
    .blb-submit-line { grid-template-columns: 40px 1fr; gap: 8px; }
    .blb-submit-line__cond,
    .blb-submit-line__qty,
    .blb-submit-line__pay { grid-column: 2; }
    .blb-submit-line__thumb { width: 40px; height: 54px; }
}

@media (max-width: 400px) {
    .blb-row { padding: 12px; }
    .blb-row__name { font-size: 13px; }
    .blb-row__cash { font-size: 20px; }
    .blb-tag { font-size: 9px; padding: 2px 6px; }
    .blb-btn--block { margin: 0 10px 12px; width: calc(100% - 20px); }
}
