/* ============================================================
   BB2 pages — BondBase2 wired test pages.
   Reuses cardboard tokens (imported via cardboard.css)
   Adds shared layouts for the authenticated app shell.
   ============================================================ */

/* ── Shared shell ── */
.bb2-topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 24px;
    background: rgba(10, 10, 10, 0.72);
    backdrop-filter: blur(18px) saturate(1.4);
    -webkit-backdrop-filter: blur(18px) saturate(1.4);
    border-bottom: 1px solid var(--cb-border);
}

.bb2-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--cb-text-primary);
    font-weight: 600;
    font-size: 0.88rem;
    text-transform: lowercase;
    letter-spacing: -0.01em;
}

.bb2-nav {
    display: flex;
    gap: 4px;
}

.bb2-nav a {
    font-size: 0.8rem;
    padding: 8px 12px;
    border-radius: 8px;
    color: var(--cb-text-muted);
    text-decoration: none;
    text-transform: lowercase;
    transition: all 0.2s ease;
}

.bb2-nav a:hover { color: var(--cb-text-primary); background: rgba(255,255,255,0.04); }
.bb2-nav a.active { color: var(--cb-text-primary); background: rgba(255,255,255,0.06); }

.bb2-top-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bb2-email {
    font-size: 0.76rem;
    color: var(--cb-text-muted);
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bb2-btn {
    font-family: var(--cb-font);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 9px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.05);
    color: var(--cb-text-primary);
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s var(--cb-ease);
}
.bb2-btn:hover { background: rgba(255,255,255,0.09); border-color: rgba(255,255,255,0.16); }
.bb2-btn:active { transform: scale(0.98); }
.bb2-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.bb2-btn--primary {
    background: var(--cb-text-primary);
    color: var(--cb-bg-page);
    border-color: var(--cb-text-primary);
}
.bb2-btn--primary:hover { opacity: 0.9; background: var(--cb-text-primary); }

.bb2-btn--danger {
    color: var(--cb-danger);
    border-color: rgba(255, 68, 68, 0.25);
    background: rgba(255, 68, 68, 0.06);
}
.bb2-btn--danger:hover { background: rgba(255, 68, 68, 0.12); }

.bb2-btn--sm { padding: 6px 10px; font-size: 0.74rem; }

/* ── Page layout ── */
.bb2-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 32px 24px 80px;
}

.bb2-page-header {
    margin-bottom: 28px;
}

.bb2-page-title {
    font-size: 1.75rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    text-transform: lowercase;
    margin: 0 0 6px;
}

.bb2-page-sub {
    font-size: 0.88rem;
    color: var(--cb-text-muted);
    margin: 0;
}

/* ── Cards ── */
.bb2-card {
    background: var(--cb-bg-surface);
    border: 1px solid var(--cb-border);
    border-radius: var(--cb-radius-lg);
    padding: 24px;
    margin-bottom: 20px;
}

.bb2-card h2 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 16px;
    text-transform: lowercase;
    letter-spacing: -0.01em;
}

.bb2-card-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--cb-border);
}
.bb2-card-row:last-child { border-bottom: none; }

.bb2-muted { color: var(--cb-text-muted); font-size: 0.82rem; }

/* ── Status / notices ── */
.bb2-notice {
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 0.82rem;
    margin-bottom: 16px;
}
.bb2-notice--info    { background: rgba(79,195,247,0.08);  border: 1px solid rgba(79,195,247,0.18);  color: #9dd9f5; }
.bb2-notice--error   { background: rgba(239,68,68,0.08);   border: 1px solid rgba(239,68,68,0.15);   color: #ef4444; }
.bb2-notice--success { background: rgba(34,197,94,0.08);   border: 1px solid rgba(34,197,94,0.16);   color: #22c55e; }
.bb2-notice--warn    { background: rgba(255,183,77,0.08);  border: 1px solid rgba(255,183,77,0.16);  color: #FFB74D; }

/* ── Tables ── */
.bb2-table-wrap {
    overflow-x: auto;
    border-radius: var(--cb-radius-md);
    border: 1px solid var(--cb-border);
}
.bb2-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.84rem;
}
.bb2-table th, .bb2-table td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid var(--cb-border);
    white-space: nowrap;
}
.bb2-table th {
    font-weight: 500;
    color: var(--cb-text-muted);
    text-transform: lowercase;
    font-size: 0.72rem;
    letter-spacing: 0.02em;
    background: var(--cb-bg-subtle);
}
.bb2-table tr:last-child td { border-bottom: none; }
.bb2-table tr:hover td { background: rgba(255,255,255,0.02); }

.bb2-num { text-align: right; font-variant-numeric: tabular-nums; }

/* ── Empty state ── */
.bb2-empty {
    padding: 40px 20px;
    text-align: center;
    color: var(--cb-text-muted);
    font-size: 0.86rem;
}

/* ── Upload field ── */
.bb2-file-row {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}
.bb2-file-row input[type="file"] {
    font-family: var(--cb-font);
    font-size: 0.82rem;
    color: var(--cb-text-secondary);
}

/* ── Pricing ── */
.bb2-pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 20px;
}

.bb2-plan {
    background: var(--cb-bg-surface);
    border: 1px solid var(--cb-border);
    border-radius: var(--cb-radius-lg);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.bb2-plan--featured { border-color: rgba(255,255,255,0.18); background: var(--cb-bg-elevated); }

.bb2-plan-name {
    font-size: 0.8rem;
    color: var(--cb-text-muted);
    text-transform: lowercase;
    letter-spacing: 0.04em;
}
.bb2-plan-price {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}
.bb2-plan-price span { font-size: 0.8rem; font-weight: 400; color: var(--cb-text-muted); }
.bb2-plan-hint { font-size: 0.78rem; color: var(--cb-text-muted); }

/* ── Inline form row ── */
.bb2-inline-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    margin-bottom: 12px;
}
.bb2-inline-form input {
    padding: 11px 12px;
    border-radius: 10px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    color: var(--cb-text-primary);
    font-family: var(--cb-font);
    font-size: 0.82rem;
    outline: none;
}
.bb2-inline-form input:focus { border-color: rgba(255,255,255,0.2); background: rgba(255,255,255,0.07); }

/* ── Summary cards (portfolio value / p&l) ── */
.bb2-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}
.bb2-summary-card {
    background: var(--cb-bg-surface);
    border: 1px solid var(--cb-border);
    border-radius: var(--cb-radius-md);
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.bb2-summary-label {
    font-size: 0.7rem;
    color: var(--cb-text-muted);
    text-transform: lowercase;
    letter-spacing: 0.02em;
}
.bb2-summary-value {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}
.bb2-summary-sub {
    font-size: 0.76rem;
    color: var(--cb-text-muted);
    font-variant-numeric: tabular-nums;
}

/* ── Filter chip row (horizontal, with counts + values) ── */
.bb2-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}
.bb2-chip {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid var(--cb-border);
    background: var(--cb-bg-surface);
    color: var(--cb-text-muted);
    font-family: var(--cb-font);
    font-size: 0.76rem;
    text-transform: lowercase;
    cursor: pointer;
    transition: all 0.2s var(--cb-ease);
    min-width: 92px;
}
.bb2-chip:hover { border-color: rgba(255,255,255,0.18); color: var(--cb-text-primary); }
.bb2-chip.active {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.22);
    color: var(--cb-text-primary);
}
.bb2-chip-label { display: flex; gap: 6px; align-items: baseline; }
.bb2-chip-count { font-weight: 700; font-size: 0.8rem; font-variant-numeric: tabular-nums; }
.bb2-chip-value { font-size: 0.68rem; color: var(--cb-text-muted); font-variant-numeric: tabular-nums; }

/* ── P&L colors + category tags + bond cell ── */
.bb2-profit { color: #22c55e; }
.bb2-loss   { color: #ff4444; }
.bb2-side-buy  { color: #22c55e; font-weight: 600; }
.bb2-side-sell { color: #ff4444; font-weight: 600; }

.bb2-tag {
    display: inline-block;
    padding: 2px 7px;
    font-size: 0.64rem;
    font-weight: 600;
    text-transform: lowercase;
    letter-spacing: 0.02em;
    border-radius: 6px;
    background: rgba(255,255,255,0.06);
    color: var(--cb-text-muted);
    border: 1px solid var(--cb-border);
}
.bb2-tag--government { color: #9dd9f5; border-color: rgba(79,195,247,0.22); background: rgba(79,195,247,0.08); }
.bb2-tag--corporate  { color: #FFB74D; border-color: rgba(255,183,77,0.22); background: rgba(255,183,77,0.08); }
.bb2-tag--sgb        { color: #ffd966; border-color: rgba(255,217,102,0.22); background: rgba(255,217,102,0.08); }
.bb2-tag--tax-free   { color: #c792ea; border-color: rgba(199,146,234,0.22); background: rgba(199,146,234,0.08); }
.bb2-tag--manual     { color: var(--cb-text-muted); }

.bb2-bond-cell {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 160px;
}
.bb2-bond-name { font-weight: 600; font-size: 0.86rem; color: var(--cb-text-primary); text-transform: lowercase; }
.bb2-bond-sub  { font-size: 0.7rem; color: var(--cb-text-muted); font-family: monospace; letter-spacing: 0.02em; }

.bb2-stack { display: flex; flex-direction: column; gap: 1px; align-items: flex-end; }
.bb2-stack-sub { font-size: 0.7rem; color: var(--cb-text-muted); }

/* Sortable column headers */
.bb2-table th.sortable { cursor: pointer; user-select: none; }
.bb2-table th.sortable:hover { color: var(--cb-text-primary); }
.bb2-table th.sortable.active { color: var(--cb-text-primary); }
.bb2-table th.sortable.active::after { content: ' \25BC'; font-size: 0.6rem; opacity: 0.7; }
.bb2-table th.sortable.active.asc::after { content: ' \25B2'; }

/* Upload card — compact two-column */
.bb2-upload-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);   /* let cells shrink past content's min-width */
    gap: 12px;
}
@media (max-width: 640px) { .bb2-upload-grid { grid-template-columns: minmax(0, 1fr); } }

/* ── Modal (upload + confirmations) ── */
.bb2-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(5, 5, 5, 0.72);
    backdrop-filter: blur(14px) saturate(1.2);
    -webkit-backdrop-filter: blur(14px) saturate(1.2);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    animation: bb2-fade-in 160ms var(--cb-ease) forwards;
}
.bb2-modal-card {
    background: var(--cb-bg-elevated, var(--cb-bg-surface));
    border: 1px solid var(--cb-border);
    border-radius: var(--cb-radius-lg);
    max-width: 580px;
    width: 100%;
    max-height: calc(100vh - 48px);
    /* No scroll on the card itself — the body takes the remaining height and
       hands scrolling off to the past-uploads list inside it. */
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: translateY(8px);
    animation: bb2-rise 180ms var(--cb-ease) forwards;
}
.bb2-modal-header, .bb2-modal-footer { flex: 0 0 auto; }
.bb2-modal-body {
    min-width: 0;
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
/* Inside the body, only the past-uploads section scrolls. Everything above it
   stays at its natural height; the list fills whatever room is left. */
.bb2-upl-past {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
/* The body itself is the scroll port. Making the <ul> inside scroll instead
   requires a height:100% chain that doesn't resolve reliably when a sibling
   grows — so keep the scroll on the element that actually owns the flex row. */
.bb2-upl-past > #bb2-upl-past-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    /* Thin scrollbar so it doesn't crowd the row actions */
    scrollbar-width: thin;
}
.bb2-upl-past > #bb2-upl-past-body::-webkit-scrollbar { width: 8px; }
.bb2-upl-past > #bb2-upl-past-body::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.14);
    border-radius: 4px;
}
.bb2-upl-past > #bb2-upl-past-body::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.22);
}
.bb2-upl-past > #bb2-upl-past-body > ul {
    max-height: none !important;
    height: auto !important;
    overflow: visible !important;
}
.bb2-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid var(--cb-border);
}
.bb2-modal-title {
    margin: 0;
    font-size: 1.02rem;
    font-weight: 600;
    text-transform: lowercase;
    letter-spacing: -0.01em;
}
.bb2-modal-close {
    background: transparent;
    border: none;
    color: var(--cb-text-muted);
    font-size: 1.3rem;
    cursor: pointer;
    line-height: 1;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.15s var(--cb-ease);
}
.bb2-modal-close:hover { color: var(--cb-text-primary); background: rgba(255,255,255,0.05); }

/* Past-uploads delete button. Red border + subtle red tint for a
   clear "destructive action" signal without shouting on every row. */
.bb2-upl-delete {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 7px;
    border-radius: 6px;
    border: 1px solid rgba(239, 83, 80, 0.35);
    background: rgba(239, 83, 80, 0.06);
    color: rgba(239, 83, 80, 0.82);
    cursor: pointer;
    transition: border-color 0.14s var(--cb-ease), background 0.14s var(--cb-ease), color 0.14s var(--cb-ease), transform 0.08s var(--cb-ease);
}
.bb2-upl-delete:hover {
    border-color: rgba(239, 83, 80, 0.75);
    background: rgba(239, 83, 80, 0.14);
    color: #ef5350;
}
.bb2-upl-delete:active { transform: scale(0.94); }
.bb2-upl-delete:disabled { opacity: 0.55; cursor: not-allowed; }
.bb2-upl-delete svg { display: block; }
.bb2-modal-body { padding: 20px 22px; }
.bb2-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 22px;
    border-top: 1px solid var(--cb-border);
}
.bb2-steps {
    list-style: none;
    counter-reset: bb2s;
    padding: 0;
    margin: 0 0 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.bb2-steps li {
    counter-increment: bb2s;
    position: relative;
    padding: 7px 12px 7px 36px;
    border-radius: var(--cb-radius-md);
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--cb-border);
    font-size: 0.78rem;
    color: var(--cb-text-secondary);
    line-height: 1.4;
}
.bb2-steps li::before {
    content: counter(bb2s);
    position: absolute;
    left: 10px;
    top: 7px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--cb-text-primary);
    color: var(--cb-bg-page);
    font-size: 0.68rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-variant-numeric: tabular-nums;
}
.bb2-steps li a { color: var(--cb-text-primary); text-decoration: underline; text-underline-offset: 2px; }
.bb2-steps li code {
    background: rgba(255,255,255,0.06);
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 0.78rem;
}

/* File picker block inside modal */
.bb2-file-pick {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px 14px;
    border-radius: var(--cb-radius-md);
    background: rgba(255,255,255,0.03);
    border: 1px dashed rgba(255,255,255,0.14);
    min-width: 0;                   /* allow shrinking inside the grid cell */
    overflow: hidden;               /* long file names in native input don't push the card */
}
.bb2-file-pick input[type="file"] { max-width: 100%; }
.bb2-file-pick label {
    font-size: 0.74rem;
    color: var(--cb-text-muted);
    text-transform: lowercase;
    letter-spacing: 0.02em;
}
.bb2-file-pick input[type="file"] {
    font-family: var(--cb-font);
    font-size: 0.78rem;
    color: var(--cb-text-secondary);
    padding: 4px 0;
}
.bb2-file-pick .bb2-file-hint {
    font-size: 0.7rem;
    color: var(--cb-text-muted);
}

/* ── Inline drill-down (trade history under a bond row) ── */
.bb2-expand-row > td {
    padding: 0 !important;
    background: rgba(255,255,255,0.02);
    border-bottom: 1px solid var(--cb-border);
}
.bb2-expand-inner {
    padding: 14px 18px 18px;
    border-left: 2px solid rgba(255,255,255,0.12);
    margin: 0 8px;
}
.bb2-expand-head {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-bottom: 10px;
    font-size: 0.76rem;
}
.bb2-expand-stat {
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.bb2-expand-stat-label {
    color: var(--cb-text-muted);
    text-transform: lowercase;
    font-size: 0.68rem;
    letter-spacing: 0.02em;
}
.bb2-expand-stat-value {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--cb-text-primary);
}
.bb2-expand-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.78rem;
}
.bb2-expand-table th,
.bb2-expand-table td {
    padding: 7px 10px;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    white-space: nowrap;
}
.bb2-expand-table th {
    font-weight: 500;
    color: var(--cb-text-muted);
    text-transform: lowercase;
    font-size: 0.68rem;
    letter-spacing: 0.02em;
}
.bb2-expand-table tr:last-child td { border-bottom: none; }

.bb2-row-click { cursor: pointer; }
.bb2-row-click .bb2-caret {
    display: inline-block;
    margin-left: 6px;
    transition: transform 0.18s var(--cb-ease);
    font-size: 0.62rem;
    color: var(--cb-text-muted);
}
.bb2-row-click.bb2-expanded .bb2-caret { transform: rotate(90deg); color: var(--cb-text-primary); }
.bb2-row-click.bb2-expanded td { background: rgba(255,255,255,0.04); }

/* ── Live-cell flash (used when SSE pushes a new LTP/YTM) ── */
.bb2-live {
    transition: background-color 0.4s var(--cb-ease);
    border-radius: 4px;
}
.bb2-live-up   { background-color: rgba(34,197,94,0.18); }
.bb2-live-down { background-color: rgba(255,68,68,0.18); }

/* ── Watchlist search (scoped to bb2 watchlist page; mirrors cb-discover-search) ── */
.bb2-search {
    margin-bottom: 22px;
}
.bb2-search-box {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--cb-bg-surface);
    border: 1px solid var(--cb-border);
    border-radius: var(--cb-radius-lg);
    padding: 14px 18px;
    transition: border-color 0.2s var(--cb-ease);
}
.bb2-search-box:focus-within {
    border-color: rgba(255,255,255,0.22);
    background: var(--cb-bg-elevated, var(--cb-bg-surface));
}
.bb2-search-box svg { color: var(--cb-text-muted); flex-shrink: 0; }
.bb2-search-box input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--cb-text-primary);
    font-family: var(--cb-font);
    font-size: 0.92rem;
    letter-spacing: -0.005em;
}
.bb2-search-box input::placeholder { color: var(--cb-text-muted); }
.bb2-search-box .bb2-clear {
    color: var(--cb-text-muted);
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
    padding: 4px 6px;
    border-radius: 6px;
    background: transparent;
    border: none;
}
.bb2-search-box .bb2-clear:hover { color: var(--cb-text-primary); background: rgba(255,255,255,0.05); }

.bb2-search-results {
    margin-top: 8px;
    background: var(--cb-bg-surface);
    border: 1px solid var(--cb-border);
    border-radius: var(--cb-radius-md);
    max-height: 420px;
    overflow-y: auto;
}
.bb2-search-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    gap: 10px;
    cursor: pointer;
    border-bottom: 1px solid var(--cb-border);
    transition: background 0.15s var(--cb-ease);
}
.bb2-search-item:last-child { border-bottom: none; }
.bb2-search-item:hover { background: rgba(255,255,255,0.04); }
.bb2-search-item-name {
    font-size: 0.84rem;
    color: var(--cb-text-primary);
    text-transform: lowercase;
}
.bb2-search-item-meta {
    font-size: 0.72rem;
    color: var(--cb-text-muted);
    font-variant-numeric: tabular-nums;
}

/* ── Watchlist styles are scoped inline in bb2/watchlist.html (mirrors portfolio.html pattern) ── */

/* ── CTA row (single button above a card) ── */
.bb2-cta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}
.bb2-cta-row-left { font-size: 0.82rem; color: var(--cb-text-muted); }

/* ── Misc animations ── */
@keyframes bb2-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes bb2-rise {
    from { transform: translateY(8px); opacity: 0; }
    to   { transform: translateY(0);   opacity: 1; }
}

/* ── Responsive ── */
@media (max-width: 640px) {
    .bb2-topbar { padding: 12px 16px; }
    .bb2-nav a { padding: 6px 8px; font-size: 0.76rem; }
    .bb2-email { display: none; }
    .bb2-page { padding: 20px 16px 60px; }
    .bb2-page-title { font-size: 1.4rem; }
    .bb2-card { padding: 18px; }
    .bb2-pricing-grid { grid-template-columns: 1fr; }
    .bb2-modal-card { max-height: calc(100vh - 24px); }
    .bb2-modal-header, .bb2-modal-body, .bb2-modal-footer { padding-left: 18px; padding-right: 18px; }
    .bb2-expand-inner { padding: 12px; margin: 0; }
}
