.lb-card-wrap {
    --lb-accent: #4EB3ED;
    --lb-accent-dark: #3a9ad4;
    --lb-navy: #225482;
    --lb-navy-light: #2d6a9f;
    --lb-warm: #FFBC7D;
    --lb-red: #e74c3c;
    --lb-green: #27ae60;
    --lb-green-bg: #ecfdf4;
    --lb-green-border: #a7f3d0;
    --lb-text: #1a1a1a;
    --lb-muted: #7a8a9b;
    --lb-border: #e8edf2;
    --lb-muted-bg: #f4f6f9;
    --lb-light-blue: #f0f7fc;
    --lb-ghost: #fafbfc;
    --lb-card-bg: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    line-height: 1.5;
    max-width: 680px;
    margin: 16px auto;
    color: var(--lb-text);
    -webkit-font-smoothing: antialiased;
}
.lb-card-wrap * { box-sizing: border-box; }

/* ─── CARD ─────────────────────────────────── */
.lb-card {
    background: var(--lb-card-bg);
    border-radius: 12px;
    border: 1px solid var(--lb-border);
    overflow: hidden;
    margin-bottom: 10px;
    transition: box-shadow 0.25s ease;
    position: relative;
}
.lb-card:hover { box-shadow: 0 5px 18px rgba(34,84,130,0.08); }

/* ─── URGENCY RIBBON ───────────────────────── */
.lb-urgency {
    background: linear-gradient(90deg, var(--lb-red) 0%, #d63031 100%);
    color: #fff;
    padding: 5px 12px;
    font-family: 'Montserrat', sans-serif;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.lb-urgency .lb-pulse {
    width: 5px; height: 5px;
    background: #fff;
    border-radius: 50%;
    animation: lbPulse 1.2s ease-in-out infinite;
}
@keyframes lbPulse {
    0%,100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

/* ─── HEADER ───────────────────────────────── */
.lb-header {
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--lb-border);
}
.lb-card-img {
    width: 88px;
    height: 56px;
    object-fit: contain;
    flex-shrink: 0;
    background: var(--lb-ghost);
    border-radius: 6px;
    padding: 3px;
}
.lb-meta { flex: 1; min-width: 0; }
.lb-namerow {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 2px;
    flex-wrap: wrap;
}
.lb-bank {
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: 1px;
    color: #fff;
    padding: 2px 7px;
    border-radius: 3px;
    flex-shrink: 0;
    white-space: nowrap;
}
.lb-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 16.5px;
    font-weight: 700;
    color: var(--lb-text);
    line-height: 1.2;
    margin: 0;
}
.lb-tagline {
    font-size: 11.5px;
    color: var(--lb-muted);
    line-height: 1.35;
    margin-bottom: 4px;
}
.lb-value-summary {
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-size: 10.5px;
    font-weight: 700;
    color: var(--lb-navy);
    background: var(--lb-light-blue);
    padding: 2px 8px;
    border-radius: 4px;
}

/* ─── GIFTS ────────────────────────────────── */
.lb-gifts {
    padding: 12px 14px;
    background: linear-gradient(180deg, #f0f7fc 0%, #fff 80%);
}
.lb-gifts-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
    gap: 10px;
}
.lb-gifts-heading {
    font-family: 'Montserrat', sans-serif;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--lb-navy);
    text-transform: uppercase;
    letter-spacing: 0.7px;
    flex-shrink: 0;
}
.lb-gifts-sub {
    font-size: 10.5px;
    color: var(--lb-muted);
    line-height: 1.35;
    text-align: right;
    font-style: italic;
}
.lb-gifts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}
.lb-gifts-grid.lb-single { grid-template-columns: 1fr; }
.lb-gift {
    background: #fff;
    border: 1px solid var(--lb-border);
    border-radius: 7px;
    padding: 8px 10px;
}
.lb-gift-title {
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: var(--lb-text);
    line-height: 1.3;
    margin-bottom: 2px;
}
.lb-gift-value {
    font-family: 'Montserrat', sans-serif;
    font-size: 10.5px;
    font-weight: 700;
    color: var(--lb-accent);
    letter-spacing: 0.2px;
}
.lb-gift-desc {
    font-size: 10.5px;
    color: var(--lb-muted);
    line-height: 1.35;
    margin-top: 3px;
    font-style: italic;
}
.lb-gift-value + .lb-gift-desc {
    padding-top: 3px;
    border-top: 1px dashed var(--lb-border);
}

/* ─── STACKABLE CALLOUT (green) ────────────── */
.lb-stackable {
    background: var(--lb-green-bg);
    border: 1px solid var(--lb-green-border);
    border-left: 3px solid var(--lb-green);
    padding: 8px 10px;
    margin-top: 8px;
    border-radius: 6px;
    font-size: 11.5px;
    line-height: 1.5;
    color: #065f46;
}
.lb-stackable strong { color: #064e3b; }

/* ─── APPLY BUTTON (44px+ tap target) ─────── */
.lb-apply {
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.lb-apply-primary {
    display: block;
    width: 100%;
    min-height: 48px;
    background: linear-gradient(135deg, var(--lb-navy) 0%, var(--lb-navy-light) 100%);
    color: #fff;
    text-align: center;
    padding: 14px 16px;
    border-radius: 9px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14.5px;
    font-weight: 800;
    text-decoration: none;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    box-shadow: 0 3px 14px rgba(34,84,130,0.22);
    transition: all 0.2s;
    line-height: 1.2;
}
.lb-apply-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(34,84,130,0.3);
    background: linear-gradient(135deg, #1a3f62 0%, var(--lb-navy) 100%);
    color: #fff;
    text-decoration: none;
}
.lb-apply-primary.lb-variant {
    padding: 11px 14px;
    font-size: 12.5px;
    letter-spacing: 0.4px;
    min-height: 44px;
}
.lb-apply-primary .lb-arrow {
    display: inline-block;
    margin-left: 6px;
    font-size: 16px;
}

/* ─── REQUIREMENTS ─────────────────────────── */
.lb-req { padding: 2px 14px 12px; background: var(--lb-card-bg); }
.lb-req-heading {
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    font-weight: 700;
    color: var(--lb-muted);
    text-transform: uppercase;
    letter-spacing: 0.7px;
    margin-bottom: 5px;
    padding-top: 8px;
    border-top: 1px solid var(--lb-border);
}
.lb-req-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 11.5px;
    line-height: 1.5;
    color: #444;
}
.lb-req-list li {
    padding: 2px 0 2px 14px;
    position: relative;
}
.lb-req-list li::before {
    content: "•";
    position: absolute;
    left: 2px;
    top: 2px;
    color: var(--lb-accent);
    font-weight: 700;
}
.lb-req-list li strong { color: var(--lb-navy); font-weight: 600; }

/* ─── BOTTOM ───────────────────────────────── */
.lb-bottom {
    padding: 8px 14px;
    background: var(--lb-muted-bg);
    border-top: 1px solid var(--lb-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-size: 11px;
    color: var(--lb-muted);
}
.lb-existing {
    line-height: 1.4;
    flex: 1;
    min-width: 0;
}
.lb-existing strong { color: var(--lb-navy); }
.lb-existing a {
    color: var(--lb-accent);
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
}
.lb-existing a:hover { text-decoration: underline; }

.lb-gap {
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px dashed var(--lb-border);
    font-size: 10.5px;
    line-height: 1.4;
    color: var(--lb-muted);
    font-style: italic;
}

.lb-metarow {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 10.5px;
    color: var(--lb-muted);
    align-items: flex-end;
    flex-shrink: 0;
    text-align: right;
}
.lb-metarow .lb-deadline {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: var(--lb-red);
    white-space: nowrap;
}
.lb-metarow a {
    color: var(--lb-muted);
    text-decoration: none;
    white-space: nowrap;
    font-weight: 500;
}
.lb-metarow a:hover {
    color: var(--lb-accent);
    text-decoration: underline;
}

/* ─── MOBILE (≤640px) ─────────────────────── */
@media (max-width: 640px) {
    .lb-card-wrap { font-size: 13.5px; margin: 10px auto; }
    .lb-urgency { padding: 5px 12px; font-size: 10px; letter-spacing: 0.3px; }
    .lb-header { padding: 11px 12px; gap: 10px; }
    .lb-card-img { width: 76px; height: 48px; }
    .lb-name { font-size: 15.5px; }
    .lb-tagline { font-size: 11px; }
    .lb-value-summary { font-size: 10px; }
    .lb-gifts { padding: 11px 12px; }
    .lb-gifts-row { flex-direction: column; align-items: flex-start; gap: 3px; margin-bottom: 6px; }
    .lb-gifts-sub { text-align: left; }
    .lb-gifts-grid { grid-template-columns: 1fr; gap: 5px; }
    .lb-gift { padding: 9px 11px; }
    .lb-gift-title { font-size: 12px; }
    .lb-apply { padding: 10px 12px 12px; }
    .lb-apply-primary { padding: 14px 12px; font-size: 14px; min-height: 48px; }
    .lb-apply-primary.lb-variant { padding: 11px 12px; font-size: 12px; min-height: 44px; }
    .lb-req { padding: 2px 12px 10px; }
    .lb-req-list { font-size: 11.5px; }
    .lb-bottom {
        padding: 10px 12px;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    .lb-metarow {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: left;
        padding-top: 6px;
        border-top: 1px dashed var(--lb-border);
    }
}

/* ─── SMALL MOBILE (≤380px) ───────────────── */
@media (max-width: 380px) {
    .lb-header { padding: 10px 10px; gap: 8px; }
    .lb-card-img { width: 64px; height: 40px; }
    .lb-name { font-size: 14.5px; }
    .lb-namerow { gap: 5px; }
    .lb-gifts { padding: 10px 10px; }
    .lb-apply { padding: 10px; }
    .lb-apply-primary { padding: 12px 10px; font-size: 13px; letter-spacing: 0.3px; }
}
/* ─────────────────────────────────────────────────────────────────
 * VARIANT: apply_only — minimal, no gifts/requirements sections.
 * Uses the same header + apply-button look; just nothing else.
 * ──────────────────────────────────────────────────────────────── */
.lb-card-wrap.lb-variant-apply-only .lb-card {
    min-height: 0;
}

/* ─────────────────────────────────────────────────────────────────
 * VARIANT: app_code — referral-code box + App Store / Google Play badges.
 * ──────────────────────────────────────────────────────────────── */
.lb-card-wrap .lb-code-box {
    margin: 12px 0;
    background: linear-gradient(135deg, #fff7e6 0%, #ffefc7 100%);
    border: 1px solid #FFBC7D;
    border-radius: 10px;
    padding: 12px 14px;
}
.lb-card-wrap .lb-code-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #8B4513;
    margin-bottom: 4px;
}
.lb-card-wrap .lb-code-value {
    display: flex;
    align-items: center;
    gap: 10px;
}
.lb-card-wrap .lb-code-value code {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: 1.5px;
    background: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    flex: 1;
    border: 1px dashed #FFBC7D;
}
.lb-card-wrap .lb-code-copy {
    background: #225482;
    color: #fff;
    border: none;
    font-weight: 600;
    font-size: 13px;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    min-height: 36px;
}
.lb-card-wrap .lb-code-copy:hover {
    background: #2d6a9f;
}
.lb-card-wrap .lb-app-buttons {
    display: flex;
    gap: 10px;
    margin: 10px 0 14px;
    flex-wrap: wrap;
}
.lb-card-wrap .lb-app-badge {
    flex: 1;
    min-width: 140px;
    background: #111;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    padding: 8px 14px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 48px;
    transition: background 0.15s ease;
}
.lb-card-wrap .lb-app-badge:hover {
    background: #333;
    color: #fff;
}
.lb-card-wrap .lb-app-badge-top {
    font-size: 10px;
    opacity: 0.7;
    letter-spacing: 0.5px;
}
.lb-card-wrap .lb-app-badge-store {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
}
.lb-card-wrap .lb-app-steps {
    padding-left: 20px;
    margin: 6px 0;
}
.lb-card-wrap .lb-app-steps li {
    margin: 4px 0;
    font-size: 14px;
}
@media (max-width: 640px) {
    .lb-card-wrap .lb-code-value code { font-size: 17px; }
    .lb-card-wrap .lb-app-buttons { flex-direction: column; }
}

/* ── app_code: combined "App Store & Google Play" button ──────── */
.lb-card-wrap .lb-app-buttons-single {
    display: block;
}
.lb-card-wrap .lb-app-badge.lb-app-universal {
    min-height: 56px;
    padding: 10px 18px;
    background: linear-gradient(135deg, #111 0%, #2a2a2a 100%);
}

/* ── v1.5+: compact combined universal app button ─────────────── */
.lb-card-wrap .lb-app-buttons-single {
    display: flex;
    justify-content: flex-start;
}
.lb-card-wrap .lb-app-badge.lb-app-universal {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #0b1020 0%, #1b2554 55%, #2a3782 100%);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 8px 14px;
    min-height: 44px;
    box-shadow: 0 2px 8px rgba(11, 16, 32, 0.14);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
    color: #fff;
    text-decoration: none;
    max-width: 340px;
    width: auto;
}
.lb-card-wrap .lb-app-badge.lb-app-universal:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(11, 16, 32, 0.28);
    background: linear-gradient(135deg, #111632 0%, #27337a 55%, #3a4ab2 100%);
    color: #fff;
}
.lb-card-wrap .lb-app-badge-glyphs {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255,255,255,0.08);
    padding: 4px 6px;
    border-radius: 6px;
    flex-shrink: 0;
}
.lb-card-wrap .lb-app-badge-glyphs svg { width: 16px; height: 16px; }
.lb-card-wrap .lb-app-badge-glyphs svg {
    display: block;
}
.lb-card-wrap .lb-app-badge-glyphs svg:first-child {
    color: #fff;
}
.lb-card-wrap .lb-app-badge-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    flex: 1;
}
.lb-card-wrap .lb-app-badge-text .lb-app-badge-top {
    font-size: 9px;
    letter-spacing: 0.5px;
    opacity: 0.72;
    text-transform: uppercase;
    font-weight: 600;
}
.lb-card-wrap .lb-app-badge-text .lb-app-badge-store {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1px;
    margin-top: 1px;
}
.lb-card-wrap .lb-app-badge-arrow {
    font-size: 16px;
    font-weight: 700;
    opacity: 0.85;
    transition: transform 0.15s ease;
    flex-shrink: 0;
}
.lb-card-wrap .lb-app-badge.lb-app-universal:hover .lb-app-badge-arrow {
    transform: translateX(3px);
}
@media (max-width: 380px) {
    .lb-card-wrap .lb-app-badge-text .lb-app-badge-store { font-size: 14px; }
    .lb-card-wrap .lb-app-badge.lb-app-universal { padding: 12px 14px; gap: 10px; }
}
