/* Break Check Volunteer Discount Card
   Brand: navy #0E2647, yellow #FFC72C, electric blue #206bd0
*/

.bc-card-root {
    --bc-navy: #0E2647;
    --bc-navy-2: #081e49;
    --bc-blue: #206bd0;
    --bc-blue-light: #4a8ce3;
    --bc-yellow: #FFC72C;
    --bc-yellow-dark: #e6a800;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    max-width: 420px;
    margin: 24px auto;
    padding: 16px;
    color: #111827;
}

/* ── The card ──────────────────────────────────────────────────────────── */
.bc-card {
    position: relative;
    aspect-ratio: 1.586 / 1; /* credit-card proportions */
    max-width: 380px;
    margin: 0 auto;
    background: linear-gradient( 135deg, #081e49 0%, #0E2647 45%, #1a3a6d 100% );
    border-radius: 18px;
    color: #fff;
    padding: 22px;
    box-shadow:
        0 20px 50px rgba(14, 38, 71, 0.35),
        0 6px 12px rgba(14, 38, 71, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transform: perspective(1000px) rotateX(0deg);
    transition: transform 0.4s ease;
}
.bc-card:hover {
    transform: perspective(1000px) rotateX(2deg) rotateY(-2deg);
}

/* Subtle geometric pattern overlay */
.bc-card-pattern {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient( circle at 20% 20%, rgba(255, 199, 44, 0.08) 0%, transparent 40% ),
        radial-gradient( circle at 80% 90%, rgba(32, 107, 208, 0.15) 0%, transparent 50% );
    pointer-events: none;
    z-index: 1;
}

/* The shine — a diagonal white beam that sweeps across every 5s */
.bc-card-shine {
    position: absolute;
    top: -50%;
    left: -80%;
    width: 60%;
    height: 200%;
    background: linear-gradient(
        105deg,
        transparent 30%,
        rgba(255, 255, 255, 0.05) 40%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0.05) 60%,
        transparent 70%
    );
    transform: rotate(20deg);
    animation: bc-card-shine 4.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    pointer-events: none;
    z-index: 2;
}
@keyframes bc-card-shine {
    0%   { left: -80%; opacity: 0; }
    15%  { opacity: 1; }
    50%  { left: 140%; opacity: 1; }
    60%  { opacity: 0; }
    100% { left: 140%; opacity: 0; }
}

/* Header */
.bc-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 3;
}
.bc-card-shield {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}
.bc-card-shield img,
.bc-card-shield svg { width: 100%; height: 100%; display: block; object-fit: contain; }
.bc-card-brand-name {
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -0.3px;
    line-height: 1.1;
}
.bc-card-brand-tag {
    font-size: 10px;
    font-weight: 500;
    color: var(--bc-yellow);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-top: 2px;
}

/* Body */
.bc-card-body {
    position: relative;
    z-index: 3;
    margin: 8px 0;
}
.bc-card-name-label {
    font-size: 10px;
    color: rgba(255,255,255,0.55);
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin-bottom: 2px;
}
.bc-card-name {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.3px;
    line-height: 1.15;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}
.bc-card-charity {
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    margin-top: 6px;
}
.bc-card-charity strong { color: var(--bc-yellow); font-weight: 600; }

/* Footer */
.bc-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    position: relative;
    z-index: 3;
}
.bc-card-since-label {
    font-size: 9px;
    color: rgba(255,255,255,0.45);
    letter-spacing: 1.2px;
    text-transform: uppercase;
}
.bc-card-since-value {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.9);
    font-variant-numeric: tabular-nums;
}
.bc-card-chip {
    width: 34px;
    height: 26px;
    background: linear-gradient(135deg, #d4af37 0%, #f5d76e 50%, #b8890c 100%);
    border-radius: 4px;
    position: relative;
    box-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
.bc-card-chip::before, .bc-card-chip::after {
    content: '';
    position: absolute;
    left: 3px; right: 3px;
    height: 1px;
    background: rgba(0,0,0,0.2);
}
.bc-card-chip::before { top: 8px; }
.bc-card-chip::after  { top: 16px; }

/* ── Credit badge ──────────────────────────────────────────────────────── */
.bc-card-credit {
    max-width: 380px;
    margin: 20px auto 0;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border-radius: 12px;
    border: 1px solid transparent;
}
.bc-card-credit-available {
    background: linear-gradient(135deg, #fef9e7 0%, #fef3c7 100%);
    border-color: var(--bc-yellow);
    box-shadow: 0 2px 8px rgba(255, 199, 44, 0.2);
}
.bc-card-credit-used {
    background: #f8fafc;
    border-color: #e2e8f0;
}
.bc-card-credit-badge {
    background: var(--bc-navy);
    color: var(--bc-yellow);
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(14, 38, 71, 0.2);
}
.bc-card-credit-badge-used {
    background: #cbd5e1;
    color: #64748b;
    font-size: 14px;
    padding: 10px 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: none;
}
.bc-card-credit-text { display: flex; flex-direction: column; gap: 2px; }
.bc-card-credit-text strong { font-size: 15px; color: var(--bc-navy); font-weight: 700; }
.bc-card-credit-text small { font-size: 12px; color: var(--bc-muted, #6b7280); line-height: 1.4; }

/* ── Action buttons ────────────────────────────────────────────────────── */
.bc-card-actions {
    max-width: 380px;
    margin: 20px auto 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.bc-card-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border-radius: 12px;
    text-decoration: none;
    color: #fff;
    background: var(--bc-navy);
    border: 1px solid transparent;
    box-shadow: 0 2px 6px rgba(14, 38, 71, 0.15);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    cursor: pointer;
}
.bc-card-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(14, 38, 71, 0.25); text-decoration: none; }
.bc-card-btn:active { transform: translateY(0); }
.bc-card-btn-yellow {
    background: var(--bc-yellow);
    color: var(--bc-navy);
    box-shadow: 0 2px 6px rgba(255, 199, 44, 0.3);
}
.bc-card-btn-yellow:hover { box-shadow: 0 4px 12px rgba(255, 199, 44, 0.4); }
.bc-card-btn-disabled {
    background: #f3f4f6;
    color: #9ca3af;
    cursor: not-allowed;
    box-shadow: none;
}
.bc-card-btn-icon { font-size: 26px; line-height: 1; }
.bc-card-btn-label { display: flex; flex-direction: column; text-align: left; }
.bc-card-btn-label small {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    opacity: 0.7;
    font-weight: 500;
    margin-bottom: 2px;
}
.bc-card-btn-label strong { font-size: 17px; font-weight: 700; letter-spacing: 0.5px; }

/* ── Add-to-home-screen hint ───────────────────────────────────────────── */
.bc-card-add-hint {
    max-width: 380px;
    margin: 20px auto 0;
    text-align: center;
}
.bc-card-add-btn {
    background: transparent;
    border: 1.5px dashed #cbd5e1;
    border-radius: 12px;
    padding: 12px 16px;
    color: #475569;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.15s ease;
    font-family: inherit;
}
.bc-card-add-btn:hover { border-color: var(--bc-blue); color: var(--bc-navy); background: #f8fafc; }
.bc-card-add-note {
    font-size: 12px;
    color: #94a3b8;
    margin: 8px 0 0;
}

/* ── Modal ─────────────────────────────────────────────────────────────── */
.bc-card-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 99999;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
    animation: bc-card-modal-fade 0.2s ease-out;
}
.bc-card-modal[hidden] { display: none; }
@keyframes bc-card-modal-fade {
    from { opacity: 0; }
    to   { opacity: 1; }
}
.bc-card-modal-panel {
    background: #fff;
    border-radius: 20px 20px 0 0;
    padding: 24px 24px 40px;
    max-width: 440px;
    width: 100%;
    position: relative;
    animation: bc-card-modal-slide 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes bc-card-modal-slide {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
}
@media (min-width: 500px) {
    .bc-card-modal { align-items: center; }
    .bc-card-modal-panel { border-radius: 20px; }
}
.bc-card-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: 0;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #94a3b8;
    padding: 6px 10px;
}
.bc-card-modal-close:hover { color: var(--bc-navy); }
.bc-card-modal h3 {
    margin: 0 0 16px 0;
    color: var(--bc-navy);
    font-size: 18px;
}

.bc-card-step {
    display: flex;
    gap: 14px;
    margin: 14px 0;
    align-items: flex-start;
}
.bc-card-step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--bc-navy);
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.bc-card-step-body p { margin: 0; font-size: 14px; line-height: 1.5; color: #374151; }
.bc-card-step-body .bc-card-icon-inline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: #f1f5f9;
    border-radius: 5px;
    padding: 2px;
    vertical-align: -6px;
    margin: 0 3px;
}
.bc-card-step-body .bc-card-icon-inline svg { width: 100%; height: 100%; }

.bc-card-guard { text-align: center; padding: 60px 20px; color: #6b7280; }
