/*
 * BoostPanel SMM — Dashboard Styles
 * Complements theme.css; only loaded on `page-panel.php` template.
 * All CSS custom properties from theme.css are available.
 * ===================================================================
 */

/* ─── 0. Reset / base ──────────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

/* Scrollbar-hide utility */
.bp-scroll-hide {
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.bp-scroll-hide::-webkit-scrollbar {
    display: none;
}

/* ─── 1. Layout shell ──────────────────────────────────────────────── */
.bp-panel-body {
    min-height: 100vh;
    background: var(--bp-body-bg, #f0f4ff);
    color: var(--bp-text);
    font-family: var(--bp-font, 'Inter', system-ui, sans-serif);
    line-height: 1.6;
    overflow-x: hidden;
}

[data-theme="dark"] .bp-panel-body {
    background: var(--bp-body-bg-dark, #060c1a);
}

.bp-panel-wrap {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

/* ─── 2. Background blobs + pattern ───────────────────────────────── */
.bp-panel-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.bp-panel-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.25;
}

.bp-panel-blob--tl {
    width: 48rem;
    height: 48rem;
    top: -12rem;
    left: -14rem;
    background: radial-gradient(circle at 40% 40%, var(--bp-primary, #2563eb), var(--bp-secondary, #9333ea));
    animation: bp-blob-drift 18s ease-in-out infinite alternate;
}

.bp-panel-blob--br {
    width: 40rem;
    height: 40rem;
    bottom: -10rem;
    right: -10rem;
    background: radial-gradient(circle at 60% 60%, var(--bp-secondary, #9333ea), var(--bp-primary, #2563eb));
    animation: bp-blob-drift 22s ease-in-out infinite alternate-reverse;
}

@keyframes bp-blob-drift {
    from { transform: translate(0, 0) scale(1); }
    to   { transform: translate(3rem, 2rem) scale(1.08); }
}

.bp-panel-pattern {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle, rgba(37,99,235,0.12) 1px, transparent 1px);
    background-size: 2.5rem 2.5rem;
    mask-image: linear-gradient(180deg, rgba(0,0,0,0.6), rgba(0,0,0,0.15));
    -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0.6), rgba(0,0,0,0.15));
}

/* ─── 3. Header ────────────────────────────────────────────────────── */
.bp-panel-header {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(255,255,255,0.70);
    border-bottom: 1px solid rgba(37,99,235,0.12);
    box-shadow: 0 1px 0 rgba(37,99,235,0.06);
}

[data-theme="dark"] .bp-panel-header {
    background: rgba(6,12,26,0.80);
    border-bottom-color: rgba(255,255,255,0.08);
}

.bp-panel-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 80rem;
    margin-inline: auto;
    padding-inline: clamp(1rem, 4vw, 2rem);
    height: 3.75rem;
    gap: 1rem;
}

/* Brand (logo icon + title) */
.bp-panel-header__brand {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.bp-panel-header__logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.5rem;
    background: linear-gradient(135deg, var(--bp-primary, #2563eb), var(--bp-secondary, #9333ea));
    box-shadow: 0 4px 12px rgba(37,99,235,0.35);
    flex-shrink: 0;
    text-decoration: none;
    transition: box-shadow 0.2s var(--bp-ease, ease);
}
.bp-panel-header__logo-link:hover {
    box-shadow: 0 6px 18px rgba(37,99,235,0.50);
}

.bp-panel-header__logo-link .bp-icon {
    width: 1.1rem;
    height: 1.1rem;
    color: #fff;
}

.bp-panel-header__title {
    font-size: 0.9375rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--bp-text);
    white-space: nowrap;
}

/* Right cluster */
.bp-panel-header__right {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    flex-shrink: 0;
}

/* Theme toggle button */
.bp-panel-theme-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    border: 1px solid var(--bp-glass-border, rgba(37,99,235,0.15));
    background: var(--bp-glass-bg, rgba(255,255,255,0.60));
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: inset 1px 1px 0 var(--bp-glass-edge, rgba(255,255,255,0.70));
    cursor: pointer;
    color: var(--bp-text);
    transition: background 0.2s, box-shadow 0.2s;
}
.bp-panel-theme-btn:hover {
    background: rgba(37,99,235,0.08);
    box-shadow: 0 0 0 2px rgba(37,99,235,0.20), inset 1px 1px 0 var(--bp-glass-edge, rgba(255,255,255,0.70));
}
.bp-panel-theme-btn .bp-icon {
    width: 1.1rem;
    height: 1.1rem;
}

/* Account pill */
.bp-panel-account {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem 0.25rem 0.3125rem;
    border-radius: 9999px;
    cursor: default;
}

.bp-glass--pill {
    background: var(--bp-glass-bg, rgba(255,255,255,0.60));
    border: 1px solid var(--bp-glass-border, rgba(37,99,235,0.15));
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: inset 1px 1px 0 var(--bp-glass-edge, rgba(255,255,255,0.70));
}

.bp-panel-account__avatar {
    width: 1.875rem;
    height: 1.875rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bp-primary, #2563eb), var(--bp-secondary, #9333ea));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    flex-shrink: 0;
}

.bp-panel-account__uid {
    font-size: 0.75rem;
    font-weight: 600;
    opacity: 0.75;
    white-space: nowrap;
}

/* ─── 4. Main & content container ─────────────────────────────────── */
.bp-panel-main {
    flex: 1;
    padding-block: 4.5rem 4rem;
}

.bp-panel-content {
    max-width: 80rem;
    margin-inline: auto;
    padding-inline: clamp(1rem, 4vw, 2rem);
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

/* ─── 5. Nav strip ─────────────────────────────────────────────────── */
.bp-panel-nav-wrap {
    position: relative;
    overflow: visible;
}

.bp-panel-nav-shell {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.bp-panel-nav {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex: 1 1 auto;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0.375rem;
    border-radius: 1rem;
    border: 1px solid var(--bp-glass-border, rgba(37,99,235,0.15));
    background: rgba(255,255,255,0.46);
    box-shadow: inset 1px 1px 0 rgba(255,255,255,0.55);
}
.bp-panel-nav::-webkit-scrollbar { display: none; }

.bp-panel-nav__item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    padding: 0.4375rem 0.9375rem;
    border-radius: 9999px;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: var(--bp-text-muted, rgba(15,23,42,0.65));
    background: rgba(255,255,255,0.58);
    border: 1px solid rgba(37,99,235,0.14);
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s, color 0.15s, box-shadow 0.2s, border-color 0.2s;
    flex-shrink: 0;
}
.bp-panel-nav__item:hover {
    background: rgba(255,255,255,0.92);
    border-color: rgba(37,99,235,0.32);
    color: var(--bp-text);
    box-shadow: 0 0 0 1px rgba(37,99,235,0.14), 0 10px 24px rgba(37,99,235,0.18);
}
.bp-panel-nav__item--active {
    background: rgba(37,99,235,0.10);
    border-color: rgba(37,99,235,0.25);
    color: var(--bp-primary, #2563eb);
    box-shadow: 0 4px 12px rgba(37,99,235,0.18), inset 0 1px 0 rgba(255,255,255,0.40);
    font-weight: 700;
}
[data-theme="dark"] .bp-panel-nav__item--active {
    background: rgba(37,99,235,0.15);
    box-shadow: 0 4px 12px rgba(37,99,235,0.30), inset 0 1px 0 rgba(255,255,255,0.10);
}

.bp-panel-nav__toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 1rem;
    border: 1px solid rgba(37,99,235,0.18);
    background: rgba(15,23,42,0.88);
    color: #fff;
    font: inherit;
    font-size: 0.8125rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 14px 28px rgba(15,23,42,0.22);
    transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
    flex-shrink: 0;
}

.bp-panel-nav__toggle:hover {
    transform: translateY(-1px);
    filter: brightness(1.1);
    box-shadow: 0 18px 32px rgba(37,99,235,0.28);
}

.bp-panel-nav__toggle-icon {
    font-size: 1rem;
    line-height: 1;
}

.bp-panel-nav-drawer {
    position: absolute;
    top: calc(100% + 0.65rem);
    right: 0;
    z-index: 250;
    width: min(80vw, 22rem);
}

.bp-panel-nav-drawer__panel {
    width: 100%;
    max-height: min(60vh, 24rem);
    padding: 0.9rem;
    background: #11213f;
    color: #fff;
    border-radius: 1.1rem;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 18px 42px rgba(4,10,26,0.36);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.bp-panel-nav-drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.bp-panel-nav-drawer__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(255,255,255,0.08);
    color: #fff;
    cursor: pointer;
}

.bp-panel-nav--drawer {
    flex-direction: column;
    align-items: stretch;
    overflow: auto;
    max-height: calc(min(60vh, 24rem) - 3.5rem);
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.bp-panel-nav--drawer .bp-panel-nav__item {
    width: 100%;
    justify-content: flex-start;
    padding: 0.9rem 1rem;
    border-radius: 0.95rem;
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.88);
}

.bp-panel-nav--drawer .bp-panel-nav__item:hover,
.bp-panel-nav--drawer .bp-panel-nav__item--active {
    background: rgba(255,255,255,0.18);
    border-color: rgba(255,255,255,0.22);
    color: #fff;
    box-shadow: none;
}

/* ─── 6. Stats row ─────────────────────────────────────────────────── */
.bp-panel-stats-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.bp-panel-stats-filters {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.bp-panel-stats-note {
    font-size: 0.8125rem;
    color: var(--bp-text-muted);
}

.bp-panel-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.bp-order-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.bp-stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-radius: var(--bp-radius-lg, 1.25rem);
    animation: bp-stat-rise 0.4s both;
}

@keyframes bp-stat-rise {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.bp-stat-card__icon {
    font-size: 1.75rem;
    line-height: 1;
    flex-shrink: 0;
}

.bp-stat-card__body {
    display: flex;
    flex-direction: column;
    gap: 0.1875rem;
}

.bp-stat-card__value {
    font-size: 1.5rem;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--bp-text);
}

.bp-stat-card__label {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.40;
}

.bp-stat-card__sublabel {
    font-size: 0.6875rem;
    opacity: 0.50;
}

.bp-stat-card--compact {
    min-height: 7rem;
}

/* ─── 7. Platform selector ─────────────────────────────────────────── */
.bp-platform-selector {
    overflow: hidden;
}

.bp-platform-row {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    flex-wrap: wrap;
    padding-bottom: 0.25rem;
    justify-content: flex-start;
}

.bp-platform-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.3125rem;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 0.875rem;
    border: 1px solid var(--bp-glass-border, rgba(37,99,235,0.15));
    background: var(--bp-glass-bg, rgba(255,255,255,0.55));
    backdrop-filter: blur(var(--bp-blur, 40px));
    -webkit-backdrop-filter: blur(var(--bp-blur, 40px));
    box-shadow: inset 1px 1px 0 var(--bp-glass-edge, rgba(255,255,255,0.70));
    cursor: pointer;
    color: var(--bp-text);
    transition: transform 0.18s var(--bp-ease, ease), box-shadow 0.18s, border-color 0.18s, background 0.18s;
    flex-shrink: 0;
    padding: 0;
}

.bp-platform-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37,99,235,0.15), inset 1px 1px 0 var(--bp-glass-edge, rgba(255,255,255,0.70));
}

.bp-platform-btn--active {
    background: rgba(37,99,235,0.10);
    border-color: rgba(37,99,235,0.40);
    box-shadow:
        0 0 0 2px rgba(37,99,235,0.20),
        0 6px 18px rgba(37,99,235,0.25),
        inset 1px 1px 0 rgba(255,255,255,0.50);
    transform: translateY(-2px);
}
[data-theme="dark"] .bp-platform-btn--active {
    background: rgba(37,99,235,0.18);
    border-color: rgba(37,99,235,0.55);
    box-shadow:
        0 0 0 2px rgba(37,99,235,0.30),
        0 6px 20px rgba(37,99,235,0.35),
        inset 1px 1px 0 rgba(255,255,255,0.15);
}

.bp-platform-btn__icon {
    width: 1.5rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.375rem;
    line-height: 1;
}
.bp-platform-btn__icon svg {
    width: 1.375rem;
    height: 1.375rem;
}
.bp-platform-btn__img {
    width: 1.375rem;
    height: 1.375rem;
    object-fit: contain;
}

.bp-platform-btn__name {
    font-size: 0.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.55;
    text-align: center;
    line-height: 1;
}

/* ─── 8. Order Terminal ────────────────────────────────────────────── */
.bp-order-terminal {
    border-radius: var(--bp-radius-lg, 1.25rem);
    padding: 1.75rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.375rem;
    overflow: visible !important; /* allow absolutely-positioned custom dropdowns to escape */
    /* backdrop-filter creates a stacking context that clips z-indexed descendants.
       Override it on the terminal so the dropdowns can appear above the panel. */
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}
/* Ensure all ancestor containers within the order section don't clip dropdowns */
.bp-order-terminal .bp-dash-select-wrap,
.bp-order-terminal .bp-dash-group,
.bp-order-terminal .bp-order-form,
.bp-order-terminal .bp-order-row,
.bp-order-terminal .bp-term-panel {
    overflow: visible;
}

.bp-terminal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.bp-terminal-title {
    font-size: 1.0625rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.bp-terminal-instructions-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.6875rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--bp-primary, #2563eb);
    text-decoration: none;
    flex-shrink: 0;
    opacity: 0.85;
    transition: opacity 0.2s;
}
.bp-terminal-instructions-link:hover { opacity: 1; }

.bp-terminal-pulse {
    display: inline-block;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--bp-primary, #2563eb);
    box-shadow: 0 0 0 0 rgba(37,99,235,0.45);
    animation: bp-pulse 2s ease-in-out infinite;
}

@keyframes bp-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(37,99,235,0.45); }
    60%  { box-shadow: 0 0 0 5px rgba(37,99,235,0); }
    100% { box-shadow: 0 0 0 0 rgba(37,99,235,0); }
}

/* Form layout */
.bp-order-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow: visible;
}
/* Ensure term-panel allows dropdown overflow */
.bp-term-panel {
    overflow: visible;
}

.bp-order-row--2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

/* Input group */
.bp-dash-group {
    display: flex;
    flex-direction: column;
    gap: 0.4375rem;
}

.bp-dash-label {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.45;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.bp-dash-label-hint {
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    opacity: 0.70;
    color: var(--bp-primary, #2563eb);
}

.bp-order-field-hint {
    font-size: 0.75rem;
    line-height: 1.5;
    opacity: 0.64;
}

/* Text / number / URL inputs */
.bp-dash-input-wrap {
    position: relative;
    min-width: 0;
}

.bp-dash-input {
    width: 100%;
    padding: 0.75rem 1.125rem;
    border-radius: 0.875rem;
    border: 1.5px solid var(--bp-glass-border, rgba(37,99,235,0.15));
    background: rgba(0,0,0,0.04);
    color: var(--bp-text);
    font-size: 0.875rem;
    font-weight: 500;
    font-family: inherit;
    outline: none;
    transition: background 0.18s, border-color 0.18s, transform 0.15s, box-shadow 0.18s;
    appearance: none;
    -webkit-appearance: none;
}

.bp-dash-input--has-icon {
    padding-left: 2.75rem;
}

.bp-dash-input-ico {
    position: absolute;
    left: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1rem;
    height: 1rem;
    opacity: 0.35;
    pointer-events: none;
    color: var(--bp-text);
}

[data-theme="dark"] .bp-dash-input {
    background: rgba(255,255,255,0.05);
}

.bp-dash-input:focus {
    background: #fff;
    border-color: var(--bp-primary, #2563eb);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.14);
    transform: translateY(-1px);
}
[data-theme="dark"] .bp-dash-input:focus {
    background: rgba(15,23,42,0.90);
}

/* Select inputs */
.bp-dash-select-wrap {
    position: relative;
    min-width: 0;
}

.bp-dash-select {
    width: 100%;
    padding: 0.75rem 2.75rem 0.75rem 1.125rem;
    border-radius: 0.875rem;
    border: 1.5px solid var(--bp-glass-border, rgba(37,99,235,0.15));
    background: rgba(0,0,0,0.04);
    color: var(--bp-text);
    font-size: 0.875rem;
    font-weight: 500;
    font-family: inherit;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    transition: background 0.18s, border-color 0.18s, transform 0.15s, box-shadow 0.18s;
}

[data-theme="dark"] .bp-dash-select {
    background: rgba(255,255,255,0.05);
}

.bp-dash-select:focus {
    background: #fff;
    border-color: var(--bp-primary, #2563eb);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.14);
    transform: translateY(-1px);
}
[data-theme="dark"] .bp-dash-select:focus {
    background: rgba(15,23,42,0.90);
}

.bp-dash-select-ico {
    position: absolute;
    right: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1rem;
    height: 1rem;
    opacity: 0.45;
    pointer-events: none;
    color: var(--bp-text);
}

/* Calc boxes */
.bp-order-calc {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.bp-order-extra-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.bp-order-dripfeed {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem 1.125rem;
    border-radius: 1rem;
}

.bp-order-dripfeed__trigger,
.bp-order-check {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.bp-order-dripfeed__trigger {
    justify-content: space-between;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    text-align: left;
}

.bp-order-dripfeed--disabled {
    opacity: .86;
}

.bp-order-dripfeed__trigger:disabled {
    cursor: not-allowed;
    color: var(--bp-text-muted);
    opacity: .72;
}

.bp-order-dripfeed__trigger:disabled .bp-order-dripfeed__trigger-icon {
    color: var(--bp-text-muted);
}

.bp-order-dripfeed__trigger-icon {
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1;
    color: var(--bp-primary, #2563eb);
}

.bp-order-dripfeed__hint {
    font-size: 0.8125rem;
    line-height: 1.55;
    opacity: 0.68;
}

.bp-service-guide__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.bp-order-dripfeed__summary {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    font-size: 0.8125rem;
    line-height: 1.5;
    opacity: 0.82;
}

.bp-service-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgba(37,99,235,0.08);
    border: 1px solid rgba(37,99,235,0.14);
    color: var(--bp-primary, #2563eb);
    font-size: 0.6875rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.bp-calc-box {
    display: flex;
    flex-direction: column;
    gap: 0.1875rem;
    padding: 0.875rem 1.125rem;
    border-radius: 0.875rem;
}

.bp-calc-box--fee {
    background: rgba(37,99,235,0.07) !important;
    border-color: rgba(37,99,235,0.20) !important;
}
[data-theme="dark"] .bp-calc-box--fee {
    background: rgba(37,99,235,0.12) !important;
    border-color: rgba(37,99,235,0.30) !important;
}

.bp-calc-box__label {
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    opacity: 0.40;
}

.bp-calc-box__value {
    font-size: 1.1875rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.bp-calc-box__value--fee {
    color: var(--bp-primary, #2563eb);
}

/* Submit button */
.bp-order-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.9375rem 2rem;
    border-radius: 0.875rem;
    border: none;
    background: var(--bp-primary, #2563eb);
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 700;
    font-family: inherit;
    letter-spacing: 0.01em;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(37,99,235,0.35), 0 2px 4px rgba(37,99,235,0.25);
    transition: transform 0.15s var(--bp-ease, ease), box-shadow 0.15s;
    outline: none;
}
.bp-order-submit:hover {
    transform: translateY(-2px) scale(1.015);
    box-shadow: 0 10px 28px rgba(37,99,235,0.45), 0 4px 8px rgba(37,99,235,0.30);
}
.bp-order-submit:active {
    transform: scale(0.97);
    box-shadow: 0 4px 12px rgba(37,99,235,0.30);
}
.bp-order-submit .bp-icon {
    width: 1.0625rem;
    height: 1.0625rem;
}

/* ─── 9. Instructions panel ────────────────────────────────────────── */
.bp-instr-panel {
    border-radius: var(--bp-radius-lg, 1.25rem);
    padding: 1.75rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.bp-instr-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.bp-instr-panel__title {
    font-size: 1.0625rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.bp-instr-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.bp-instr-card {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.25rem;
    border-radius: 1rem;
}

.bp-instr-card__num {
    font-size: 1.375rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    color: var(--bp-primary, #2563eb);
    line-height: 1;
}

.bp-instr-card__title {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--bp-primary, #2563eb);
}

.bp-instr-card__desc {
    font-size: 0.8125rem;
    line-height: 1.55;
    opacity: 0.72;
}

.bp-instr-card--service {
    background: linear-gradient(135deg, rgba(37,99,235,0.12), rgba(15,23,42,0.02));
}

.bp-oh-link--plain {
    cursor: default;
    text-decoration: none;
}

.bp-oh-service {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.bp-oh-service__name {
    display: block;
    font-weight: 700;
}

.bp-oh-service__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.bp-oh-source,
.bp-oh-meta-item,
.bp-oh-status {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    font-size: 0.6875rem;
    font-weight: 800;
    line-height: 1.25;
    white-space: nowrap;
}

.bp-oh-meta-item {
    background: rgba(15,23,42,0.06);
    color: rgba(15,23,42,0.72);
}

.bp-oh-meta-item--amount {
    gap: 0.2rem;
}

.bp-oh-source--standard {
    background: rgba(37,99,235,0.10);
    color: #1d4ed8;
}

.bp-oh-source--bulk {
    background: rgba(245,158,11,0.14);
    color: #b45309;
}

.bp-oh-source--automation {
    background: rgba(14,165,233,0.14);
    color: #0369a1;
}

.bp-oh-status--pending {
    background: rgba(59,130,246,0.12);
    color: #1d4ed8;
}

.bp-oh-status--processing,
.bp-oh-status--in_progress {
    background: rgba(245,158,11,0.16);
    color: #b45309;
}

.bp-oh-status--completed {
    background: rgba(34,197,94,0.14);
    color: #15803d;
}

.bp-oh-status--partial {
    background: rgba(249,115,22,0.16);
    color: #c2410c;
}

.bp-oh-status--cancelled {
    background: rgba(100,116,139,0.16);
    color: #475569;
}

.bp-oh-status--failed {
    background: rgba(239,68,68,0.14);
    color: #b91c1c;
}

.bp-oh-status--refunded {
    background: rgba(168,85,247,0.14);
    color: #7e22ce;
}

/* ─── 10. Footer ───────────────────────────────────────────────────── */
.bp-panel-footer {
    padding: 1.25rem clamp(1rem, 4vw, 2rem);
    text-align: center;
    border-top: 1px solid var(--bp-glass-border, rgba(37,99,235,0.10));
}

.bp-panel-footer__copy {
    font-size: 0.75rem;
    opacity: 0.40;
}

/* ─── 11. Responsive ───────────────────────────────────────────────── */
@media (max-width: 56rem) {
    .bp-panel-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 40rem) {
    .bp-panel-header__title {
        display: none;
    }

    .bp-panel-stats {
        grid-template-columns: 1fr;
    }

    .bp-panel-main {
        padding-block: 4.25rem 3rem;
    }

    .bp-order-row--2,
    .bp-order-calc,
    .bp-order-extra-fields,
    .bp-instr-grid,
    .bp-order-overview {
        grid-template-columns: 1fr;
    }

    .bp-order-terminal,
    .bp-instr-panel {
        padding: 1.25rem 1.125rem;
    }

    .bp-stat-card {
        padding: 1rem 1.25rem;
    }

    .bp-panel-content {
        padding-inline: 1rem;
        gap: 1.25rem;
    }
}

/* ═══════════════════════════════════════════════════════════════════
   12. TAB SYSTEM
   ═══════════════════════════════════════════════════════════════════ */

.bp-tab-panel {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    animation: bp-stat-rise 0.25s both;
}

.bp-tab-panel--hidden {
    display: none !important;
}

/* Nav items are now buttons */
.bp-panel-nav__item {
    font-family: inherit;
}

/* ═══════════════════════════════════════════════════════════════════
   13. Filter bar (status pills)
   ═══════════════════════════════════════════════════════════════════ */

.bp-filter-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.bp-filter-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.875rem;
    border-radius: 9999px;
    font-size: 0.8125rem;
    font-weight: 600;
    border: 1px solid var(--bp-glass-border, rgba(37,99,235,0.15));
    background: var(--bp-glass-bg, rgba(255,255,255,0.55));
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--bp-text-muted, rgba(15,23,42,0.65));
    cursor: pointer;
    transition: background 0.18s, border-color 0.18s, color 0.15s, box-shadow 0.18s;
    font-family: inherit;
}
.bp-filter-pill:hover {
    background: rgba(37,99,235,0.07);
    color: var(--bp-text);
}
.bp-filter-pill--active {
    background: rgba(37,99,235,0.10);
    border-color: rgba(37,99,235,0.30);
    color: var(--bp-primary, #2563eb);
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(37,99,235,0.15);
}

/* ═══════════════════════════════════════════════════════════════════
   14. Table box (panel container)
   ═══════════════════════════════════════════════════════════════════ */

.bp-table-box {
    border-radius: var(--bp-radius-lg, 1.25rem);
    overflow: hidden;
}

.bp-table-box__head {
    padding: 1.125rem 1.75rem;
    border-bottom: 1px solid var(--bp-glass-border, rgba(37,99,235,0.12));
    text-align: center;
}

.bp-table-box__title {
    font-size: 0.6875rem;
    font-weight: 900;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    opacity: 0.50;
}

.bp-table-scroll {
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(37,99,235,0.20) transparent;
}
.bp-table-scroll::-webkit-scrollbar { height: 4px; }
.bp-table-scroll::-webkit-scrollbar-thumb { background: rgba(37,99,235,0.20); border-radius: 2px; }

/* ═══════════════════════════════════════════════════════════════════
   15. Table
   ═══════════════════════════════════════════════════════════════════ */

.bp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8125rem;
}

.bp-table thead tr {
    border-bottom: 1px solid var(--bp-glass-border, rgba(37,99,235,0.12));
}

.bp-table th {
    padding: 0.75rem 1rem;
    font-size: 0.625rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    opacity: 0.40;
    text-align: left;
    white-space: nowrap;
}

.bp-table td {
    padding: 0.875rem 1rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--bp-glass-border, rgba(37,99,235,0.07));
    color: var(--bp-text);
}

.bp-table tbody tr:last-child td {
    border-bottom: none;
}

.bp-table tbody tr:hover td {
    background: rgba(37,99,235,0.035);
}
[data-theme="dark"] .bp-table tbody tr:hover td {
    background: rgba(255,255,255,0.04);
}

.bp-table__id {
    font-weight: 800;
    color: var(--bp-primary, #2563eb);
    white-space: nowrap;
}

.bp-table__num {
    font-weight: 700;
    white-space: nowrap;
}

.bp-table__desc {
    max-width: 16rem;
    white-space: pre-wrap;
    word-break: break-word;
}

.bp-table-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    padding: 3rem 1rem;
    font-size: 0.875rem;
    opacity: 0.55;
}

/* Status badges */
.bp-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.625rem;
    border-radius: 9999px;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: capitalize;
    white-space: nowrap;
}
.bp-status-badge--pending     { background: rgba(245,158,11,0.12); color: #d97706; }
.bp-status-badge--in_progress { background: rgba(37,99,235,0.12);  color: #2563eb; }
.bp-status-badge--completed   { background: rgba(22,163,74,0.12);  color: #16a34a; }
.bp-status-badge--partial     { background: rgba(147,51,234,0.12); color: #9333ea; }
.bp-status-badge--cancelled   { background: rgba(220,38,38,0.12);  color: #dc2626; }
.bp-status-badge--deposited   { background: rgba(22,163,74,0.12);  color: #16a34a; }
.bp-status-badge--failed      { background: rgba(220,38,38,0.12);  color: #dc2626; }

/* ID with copy button */
.bp-id-cell {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

.bp-copy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 0.375rem;
    border: none;
    background: transparent;
    cursor: pointer;
    color: var(--bp-text-muted, rgba(15,23,42,0.55));
    opacity: 0.55;
    transition: opacity 0.15s, background 0.15s;
    padding: 0;
    font-family: inherit;
}
.bp-copy-btn:hover {
    opacity: 1;
    background: rgba(37,99,235,0.08);
}
.bp-copy-btn .bp-icon {
    width: 0.875rem;
    height: 0.875rem;
}

/* Service name + code */
.bp-svc-name {
    display: block;
    font-weight: 600;
}
.bp-svc-code {
    display: inline-block;
    margin-top: 0.125rem;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: rgba(37,99,235,0.08);
    color: var(--bp-primary, #2563eb);
    padding: 0.1rem 0.4rem;
    border-radius: 0.25rem;
}

/* Link truncate */
.bp-link-cell {
    max-width: 10rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
}

/* Action buttons row */
.bp-action-btns {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    white-space: nowrap;
}

.bp-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3125rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.6875rem;
    font-weight: 700;
    border: 1px solid transparent;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s, border-color 0.15s, transform 0.12s;
}
.bp-action-btn:hover { transform: translateY(-1px); }
.bp-action-btn:active { transform: scale(0.97); }

.bp-action-btn--detail {
    background: rgba(37,99,235,0.08);
    border-color: rgba(37,99,235,0.20);
    color: var(--bp-primary, #2563eb);
}
.bp-action-btn--detail:hover { background: rgba(37,99,235,0.14); }

.bp-action-btn--again {
    background: rgba(22,163,74,0.08);
    border-color: rgba(22,163,74,0.25);
    color: #16a34a;
}
.bp-action-btn--again:hover { background: rgba(22,163,74,0.14); }

.bp-action-btn--refill {
    background: rgba(245,158,11,0.10);
    border-color: rgba(245,158,11,0.28);
    color: #d97706;
}
.bp-action-btn--refill:hover { background: rgba(245,158,11,0.16); }

.bp-action-btn--cancel {
    background: rgba(220,38,38,0.07);
    border-color: rgba(220,38,38,0.20);
    color: #dc2626;
}
.bp-action-btn--cancel:hover { background: rgba(220,38,38,0.13); }

/* Invoice download button */
.bp-action-btn--invoice {
    background: rgba(147,51,234,0.07);
    border-color: rgba(147,51,234,0.20);
    color: #9333ea;
}
.bp-action-btn--invoice:hover { background: rgba(147,51,234,0.13); }

/* ═══════════════════════════════════════════════════════════════════
   16. Sub-tab bar (Deposit / Support inner tabs)
   ═══════════════════════════════════════════════════════════════════ */

.bp-subtab-bar {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.bp-subtab-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.625rem 1.375rem;
    border-radius: 0.875rem;
    font-size: 0.8125rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    border: 1.5px solid var(--bp-glass-border, rgba(37,99,235,0.15));
    background: var(--bp-glass-bg, rgba(255,255,255,0.55));
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--bp-text-muted, rgba(15,23,42,0.65));
    cursor: pointer;
    font-family: inherit;
    transition: background 0.18s, border-color 0.18s, color 0.15s, box-shadow 0.18s;
}
.bp-subtab-btn:hover {
    background: rgba(37,99,235,0.07);
    color: var(--bp-text);
}
.bp-subtab-btn--active {
    background: rgba(37,99,235,0.10);
    border-color: rgba(37,99,235,0.30);
    color: var(--bp-primary, #2563eb);
    box-shadow: 0 3px 10px rgba(37,99,235,0.15);
}

.bp-subtab-panel {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    animation: bp-stat-rise 0.22s both;
}

.bp-subtab-panel--hidden {
    display: none !important;
}

/* ═══════════════════════════════════════════════════════════════════
   17. Deposit specifics
   ═══════════════════════════════════════════════════════════════════ */

.bp-deposit-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: start;
}

.bp-deposit-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem 1.75rem;
}

.bp-deposit-instructions .bp-deposit-instructions__body {
    padding: 1.25rem 1.75rem;
    font-size: 0.875rem;
    line-height: 1.6;
    opacity: 0.85;
}

.bp-wallet-display {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 0.875rem;
    overflow: hidden;
    flex-wrap: wrap;
}

.bp-wallet-display__label {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.45;
    flex-shrink: 0;
}

.bp-wallet-display__addr {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.8125rem;
    word-break: break-all;
    flex: 1;
    color: var(--bp-primary, #2563eb);
}

.bp-wallet-copy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    border: 1px solid var(--bp-glass-border, rgba(37,99,235,0.15));
    background: transparent;
    cursor: pointer;
    color: var(--bp-text-muted, rgba(15,23,42,0.55));
    flex-shrink: 0;
    transition: background 0.15s, color 0.15s;
    font-family: inherit;
}
.bp-wallet-copy-btn:hover {
    background: rgba(37,99,235,0.10);
    color: var(--bp-primary, #2563eb);
    border-color: rgba(37,99,235,0.25);
}
.bp-wallet-copy-btn .bp-icon {
    width: 0.9375rem;
    height: 0.9375rem;
}

@media (max-width: 56rem) {
    .bp-deposit-wrap { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════════
   18. Support / Ticket form
   ═══════════════════════════════════════════════════════════════════ */

.bp-ticket-form,
.bp-invoice-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem 1.75rem;
}

.bp-dash-textarea {
    resize: vertical;
    min-height: 6rem;
    line-height: 1.55;
}

/* ═══════════════════════════════════════════════════════════════════
   19. Invoice form
   ═══════════════════════════════════════════════════════════════════ */

/* Uses .bp-invoice-form and .bp-order-row--2 already defined */

/* ═══════════════════════════════════════════════════════════════════
   20. API Docs
   ═══════════════════════════════════════════════════════════════════ */

.bp-api-key-box {
    border-radius: var(--bp-radius-lg, 1.25rem);
    overflow: hidden;
    padding: 1.25rem 1.75rem;
}

.bp-api-key-box__actions {
    margin-top: 0.9rem;
    display: flex;
    justify-content: flex-start;
}

.bp-api-key-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    min-height: 2.9rem;
    padding: 0.8rem 1.15rem;
    border-radius: 0.95rem;
    border: 1px solid rgba(37,99,235,0.22);
    background: linear-gradient(135deg, rgba(37,99,235,0.94), rgba(15,118,110,0.92));
    color: #fff;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    box-shadow: 0 14px 28px rgba(37,99,235,0.22);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.bp-api-key-cta:hover {
    transform: translateY(-1px);
    filter: brightness(1.06);
    box-shadow: 0 18px 34px rgba(37,99,235,0.28);
}

.bp-api-key-cta:active {
    transform: translateY(0);
}

.bp-api-key-cta__icon {
    font-size: 1rem;
    line-height: 1;
}

.bp-api-endpoint-note {
    margin-top: 0.75rem;
    font-size: 0.8125rem;
    opacity: 0.60;
}
.bp-api-endpoint-note code {
    font-family: 'Courier New', Courier, monospace;
    background: rgba(37,99,235,0.07);
    padding: 0.1rem 0.4rem;
    border-radius: 0.3rem;
    font-size: 0.8125rem;
}

.bp-api-doc-body {
    padding: 1.5rem 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.bp-api-doc-section {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.bp-api-doc-steps,
.bp-api-doc-list {
    margin: 0;
    padding-left: 1.2rem;
    display: grid;
    gap: 0.45rem;
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--bp-text);
}

.bp-api-doc-steps li,
.bp-api-doc-list li {
    margin: 0;
}

.bp-api-doc-h3 {
    font-size: 0.9375rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.bp-api-doc-desc {
    font-size: 0.875rem;
    line-height: 1.55;
    opacity: 0.70;
}

.bp-api-code-block {
    border-radius: 0.75rem;
    overflow: hidden;
    border: 1px solid var(--bp-glass-border, rgba(37,99,235,0.15));
}

.bp-api-code-block__bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.875rem;
    background: rgba(37,99,235,0.06);
    border-bottom: 1px solid var(--bp-glass-border, rgba(37,99,235,0.10));
    font-size: 0.75rem;
    flex-wrap: wrap;
}
[data-theme="dark"] .bp-api-code-block__bar {
    background: rgba(255,255,255,0.04);
}

.bp-api-code-block__bar code {
    font-family: 'Courier New', Courier, monospace;
    flex: 1;
    font-size: 0.75rem;
    word-break: break-all;
}

.bp-api-code-block__method {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.5rem;
    border-radius: 0.3rem;
    font-size: 0.6875rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    flex-shrink: 0;
}
.bp-api-code-block__method--post {
    background: rgba(37,99,235,0.12);
    color: var(--bp-primary, #2563eb);
}

.bp-api-pre {
    padding: 0.875rem 1rem;
    overflow-x: auto;
    background: transparent;
    scrollbar-width: thin;
}
.bp-api-pre code {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.8125rem;
    word-break: break-all;
    white-space: pre-wrap;
}

.bp-api-param-table {
    font-size: 0.8125rem;
}
.bp-api-param-table th {
    opacity: 0.45;
    font-size: 0.625rem;
}
.bp-api-param-table td code {
    font-family: 'Courier New', Courier, monospace;
    background: rgba(37,99,235,0.07);
    padding: 0.1rem 0.35rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
}

/* ═══════════════════════════════════════════════════════════════════
   21. Modals
   ═══════════════════════════════════════════════════════════════════ */

.bp-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(6,12,26,0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s;
}

.bp-modal-overlay--visible {
    opacity: 1;
    pointer-events: auto;
}

.bp-modal {
    width: 100%;
    max-width: 30rem;
    border-radius: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow: hidden;
    transform: translateY(1rem) scale(0.97);
    transition: transform 0.22s var(--bp-ease, ease);
}

.bp-modal-overlay--visible .bp-modal {
    transform: translateY(0) scale(1);
}

.bp-modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--bp-glass-border, rgba(37,99,235,0.12));
}

.bp-modal__title {
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.bp-modal__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    border: none;
    background: transparent;
    cursor: pointer;
    color: var(--bp-text-muted, rgba(15,23,42,0.55));
    transition: background 0.15s, color 0.15s;
    font-family: inherit;
}
.bp-modal__close:hover {
    background: rgba(220,38,38,0.10);
    color: #dc2626;
}
.bp-modal__close .bp-icon {
    width: 1.125rem;
    height: 1.125rem;
}

.bp-modal__body {
    padding: 1.25rem 1.5rem;
}

.bp-balance-modal__body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.875rem;
    text-align: center;
    min-height: 10rem;
}

.bp-balance-modal__icon {
    font-size: 2rem;
    line-height: 1;
}

.bp-balance-modal__text {
    max-width: 24rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--bp-text, #0f172a);
}

.bp-confirm-modal__body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.875rem;
    text-align: center;
    min-height: 9rem;
}

.bp-confirm-modal__icon {
    font-size: 2rem;
    line-height: 1;
}

.bp-confirm-modal__text {
    max-width: 24rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--bp-text, #0f172a);
}

.bp-od-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.bp-od-row {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.bp-od-label {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.40;
    min-width: 7.5rem;
    flex-shrink: 0;
    padding-top: 0.1rem;
}

.bp-od-val {
    font-size: 0.8125rem;
    font-weight: 600;
    word-break: break-all;
}

.bp-od-link {
    color: var(--bp-primary, #2563eb);
    text-decoration: none;
}
.bp-od-link:hover { text-decoration: underline; }

.bp-modal__foot {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.625rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--bp-glass-border, rgba(37,99,235,0.12));
    flex-wrap: wrap;
}

.bp-modal-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.125rem;
    border-radius: 0.625rem;
    font-size: 0.8125rem;
    font-weight: 700;
    border: 1.5px solid transparent;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s, border-color 0.15s, transform 0.12s;
}
.bp-modal-btn:hover { transform: translateY(-1px); }
.bp-modal-btn:active { transform: scale(0.97); }

.bp-modal-btn--secondary {
    background: var(--bp-glass-bg, rgba(255,255,255,0.55));
    border-color: var(--bp-glass-border, rgba(37,99,235,0.15));
    color: var(--bp-text-muted, rgba(15,23,42,0.65));
}
.bp-modal-btn--secondary:hover { background: rgba(37,99,235,0.06); }

.bp-modal-btn--primary {
    background: rgba(37,99,235,0.10);
    border-color: rgba(37,99,235,0.30);
    color: var(--bp-primary, #2563eb);
}
.bp-modal-btn--primary:hover { background: rgba(37,99,235,0.16); }

.bp-modal-btn--danger {
    background: rgba(220,38,38,0.07);
    border-color: rgba(220,38,38,0.25);
    color: #dc2626;
}
.bp-modal-btn--danger:hover { background: rgba(220,38,38,0.13); }

/* ═══════════════════════════════════════════════════════════════════
   22. Toast
   ═══════════════════════════════════════════════════════════════════ */

.bp-toast {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%) translateY(0.5rem);
    z-index: 9999;
    background: rgba(15,23,42,0.92);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s, transform 0.2s;
    white-space: nowrap;
    max-width: calc(100vw - 2rem);
}
.bp-toast--visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: none;
}

/* ── Order success notice ─────────────────────────────────────── */
.bp-order-notice {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.25rem 1rem 1.5rem;
    border-radius: var(--bp-radius, 0.75rem);
    margin-bottom: 1rem;
    background: rgba(22, 163, 74, 0.12);
    border: 1px solid rgba(22, 163, 74, 0.35);
    backdrop-filter: blur(8px);
    animation: bpNoticeIn 0.3s ease;
}

.bp-order-notice--success {
    border-left: 4px solid #16a34a;
    color: var(--bp-text, #e0e0e0);
}

.bp-order-notice__body {
    flex: 1;
    font-size: 0.9rem;
    line-height: 1.5;
}

.bp-order-notice__body strong {
    display: block;
    font-size: 1rem;
    color: #4ade80;
    margin-bottom: 0.25rem;
}

/* ═══════════════════════════════════════════════════════════════
   TERMINAL SUB-TABS  (Quick / Mass / Automation)
═══════════════════════════════════════════════════════════════ */

.bp-term-tabs {
    display: flex;
    gap: 0.375rem;
    padding: 0.75rem 0 1rem;
    flex-wrap: wrap;
}

.bp-term-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 1rem;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 9999px;
    background: rgba(255,255,255,.06);
    color: var(--bp-text-muted, #a3b3c2);
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    white-space: nowrap;
}
.bp-term-tab:hover {
    background: rgba(255,255,255,.12);
    color: #fff;
    border-color: rgba(255,255,255,.25);
}
.bp-term-tab--active {
    background: var(--bp-primary, #6366f1);
    color: #fff;
    border-color: transparent;
}
.bp-term-panel--hidden {
    display: none !important;
}

/* ═══════════════════════════════════════════════════════════════
   MASS ORDER  PANEL
═══════════════════════════════════════════════════════════════ */

.bp-mass-textarea {
    min-height: 160px;
    font-family: 'Fira Mono', 'Consolas', 'Courier New', monospace;
    font-size: 0.8125rem;
    line-height: 1.6;
    resize: vertical;
}

.bp-mass-actions {
    display: flex;
    gap: 0.75rem;
    margin: 0.75rem 0 0;
}

.bp-mass-preview {
    margin-top: 1.25rem;
    border-radius: var(--bp-radius, 0.75rem);
    padding: 1rem 1.25rem;
}

.bp-mass-preview--locked {
    opacity: 0.88;
    border: 1px dashed rgba(37,99,235,0.22);
}

.bp-mass-preview__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.75rem;
}
.bp-mass-preview__head h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    margin: 0;
}
.bp-mass-preview__count {
    font-size: 0.8125rem;
    opacity: .65;
}

.bp-mass-row {
    display: grid;
    grid-template-columns: 1.75rem 1fr 1.5fr 5.5rem 5rem;
    gap: 0.375rem 0.625rem;
    align-items: center;
    padding: 0.45rem 0;
    font-size: 0.8rem;
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.bp-mass-row:last-child { border-bottom: none; }

.bp-mass-preview__header.bp-mass-row {
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    opacity: .6;
    border-bottom: 1px solid rgba(255,255,255,.18);
}

.bp-mass-row__link {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    opacity: .75;
}

.bp-mass-row__cost {
    text-align: right;
    font-weight: 600;
    color: var(--bp-primary-light, #818cf8);
}

.bp-mass-errors {
    padding: 0.6rem 0.25rem;
    font-size: 0.8rem;
    color: #f87171;
    opacity: .9;
}

.bp-mass-preview__empty {
    padding: 0.9rem 0.25rem;
    font-size: 0.8125rem;
    line-height: 1.6;
    color: var(--bp-text-muted);
}

.bp-mass-preview__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255,255,255,.1);
    font-size: 0.9rem;
}
.bp-mass-preview__foot strong {
    font-size: 1.0625rem;
    color: #4ade80;
}

.bp-mass-preview__hint {
    font-size: .78rem;
    color: var(--bp-text-muted);
    flex: 1 1 220px;
}

.bp-order-submit--locked {
    opacity: .58;
    cursor: not-allowed;
    box-shadow: none;
}

.bp-mass-preview--locked .bp-order-submit--locked {
    background: rgba(148,163,184,0.18);
    border-color: rgba(148,163,184,0.24);
    color: rgba(255,255,255,0.82);
}

/* Automation placeholder (legacy — kept for compat) */
.bp-auto-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 3rem 2rem;
    text-align: center;
    border-radius: var(--bp-radius, 0.75rem);
}
.bp-auto-placeholder__icon {
    font-size: 2.5rem;
    line-height: 1;
}
.bp-auto-placeholder h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
}
.bp-auto-placeholder p {
    margin: 0;
    font-size: 0.875rem;
    opacity: .65;
}

/* ── Automation Rules UI ── */
.bp-auto-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}
.bp-auto-title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 .25rem;
    color: var(--bp-text);
}
.bp-auto-subtitle {
    font-size: .8125rem;
    color: var(--bp-text-muted);
    margin: 0;
}
.bp-auto-header > *,
.bp-auto-form-wrap,
.bp-auto-bulk-panel,
.bp-auto-rules-list,
.bp-auto-access-shell,
.bp-auto-access-banner,
#bp-auto-default-panel {
    min-width: 0;
}
.bp-auto-section-title {
    font-size: .9375rem;
    font-weight: 700;
    margin: 0 0 1rem;
    color: var(--bp-text);
}
.bp-auto-form-wrap {
    padding: 1.25rem;
    border-radius: var(--bp-radius, 0.75rem);
    margin-bottom: 1rem;
}
.bp-auto-mode-bar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .625rem;
    margin-bottom: 1rem;
    padding: .5rem;
    border: 1px solid var(--bp-glass-border, rgba(37,99,235,.15));
    border-radius: .875rem;
    background: rgba(148, 163, 184, .08);
}
.bp-auto-mode-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    min-height: 44px;
    padding: .75rem 1rem;
    border: 1px solid transparent;
    border-radius: .75rem;
    background: transparent;
    color: var(--bp-text-muted);
    font-size: .875rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.bp-auto-mode-btn:hover {
    color: var(--bp-text);
    background: rgba(255,255,255,.14);
}
.bp-auto-mode-btn--active {
    color: #fff;
    background: linear-gradient(135deg, #2563eb, #0f766e);
    border-color: rgba(37,99,235,.35);
    box-shadow: 0 14px 32px rgba(37,99,235,.22);
}
.bp-auto-bulk-panel {
    display: grid;
    gap: 1rem;
    padding: 1.25rem;
    margin-bottom: 1rem;
    border-radius: var(--bp-radius, 0.75rem);
}
.bp-auto-bulk-hint {
    margin: 0;
    font-size: .8125rem;
    line-height: 1.65;
    color: var(--bp-text-muted);
}
.bp-auto-bulk-hint code {
    display: inline-block;
    margin-left: .25rem;
    padding: .2rem .45rem;
    border-radius: .45rem;
    background: rgba(15, 23, 42, .08);
    color: var(--bp-text);
    font-size: .75rem;
}
.bp-auto-bulk-textarea {
    min-height: 180px;
    resize: vertical;
}
.bp-auto-bulk-meta-grid {
    align-items: start;
}
.bp-auto-bulk-cost-card {
    margin-top: 0;
}
.bp-auto-bulk-actions {
    display: flex;
    justify-content: flex-end;
}
#bp-auto-bulk-preview {
    display: grid;
    gap: .75rem;
}
.bp-auto-bulk-errors {
    display: grid;
    gap: .5rem;
}
.bp-auto-bulk-error {
    margin: 0;
    padding: .75rem .9rem;
    border: 1px solid rgba(239,68,68,.2);
    border-radius: .65rem;
    background: rgba(239,68,68,.08);
    color: #b91c1c;
    font-size: .8125rem;
}
.bp-auto-bulk-table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    overflow: hidden;
    border-radius: .75rem;
    background: rgba(255,255,255,.04);
}
.bp-auto-bulk-table th,
.bp-auto-bulk-table td {
    padding: .75rem .8rem;
    border-bottom: 1px solid var(--bp-glass-border, rgba(37,99,235,.12));
    text-align: left;
    vertical-align: top;
    font-size: .8125rem;
}
.bp-auto-bulk-table th {
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--bp-text-muted);
    background: rgba(148, 163, 184, .08);
}
.bp-auto-bulk-total {
    margin: 0;
    color: var(--bp-text);
    font-size: .825rem;
}
.bp-auto-bulk-submit-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
#bp-auto-bulk-progress {
    font-size: .8125rem;
    color: var(--bp-text-muted);
}
#bp-auto-default-panel {
    display: grid;
    gap: 1rem;
}
@media (max-width: 700px) {
    .bp-auto-mode-bar {
        grid-template-columns: 1fr;
    }
    .bp-auto-bulk-actions,
    .bp-auto-bulk-submit-wrap {
        justify-content: stretch;
    }
    .bp-auto-bulk-actions > * ,
    .bp-auto-bulk-submit-wrap > * {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 980px) {
    .bp-auto-header {
        flex-direction: column;
        align-items: stretch;
    }
    .bp-auto-access-banner {
        justify-content: flex-start;
    }
    .bp-auto-svc-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding-right: 0;
        position: static;
    }
    .bp-auto-svc-row > .bp-auto-svc-dd-wrap:not(.bp-auto-svc-dd-wrap--service),
    .bp-auto-svc-row > .bp-auto-svc-dd-wrap--service,
    .bp-auto-svc-mode-wrap {
        grid-column: 1 / -1;
    }
    .bp-auto-svc-qty-wrap {
        grid-column: auto;
    }
    .bp-auto-svc-remove {
        position: static;
        grid-column: 1 / -1;
        justify-self: flex-end;
        align-self: start;
    }
    .bp-auto-svc-range-note {
        grid-column: 1 / -1;
        margin-top: 0;
    }
}

/* ── Services section header ──────────────── */
.bp-auto-services-header {
    display: flex;
    flex-direction: column;
    gap: .25rem;
    margin-bottom: .75rem;
}
.bp-auto-services-hint {
    font-size: .78rem;
    color: var(--bp-text-muted);
}

/* ── Service rows ─────────────────────────── */
.bp-auto-svc-row {
    display: grid;
    grid-template-columns: minmax(10rem, 12rem) minmax(0, 1fr) minmax(11rem, 12rem) 8rem 8rem 2rem;
    gap: .625rem;
    align-items: start;
    margin-bottom: .625rem;
}
.bp-auto-svc-row > * {
    min-width: 0;
}
@media (max-width: 640px) {
    .bp-auto-svc-row {
        grid-template-columns: 1fr;
        padding-right: 0;
        position: static;
    }
    .bp-auto-svc-qty-wrap {
        grid-column: 1;
    }
    .bp-auto-svc-remove {
        position: static;
        grid-column: 1;
        justify-self: flex-end;
        align-self: start;
    }
    .bp-auto-svc-range-note {
        grid-column: 1;
        margin-top: 0;
    }
}
.bp-auto-svc-qty-wrap {
    display: flex;
    flex-direction: column;
    gap: .25rem;
}
.bp-auto-svc-mode-wrap {
    display: flex;
    flex-direction: column;
    gap: .35rem;
}
.bp-auto-svc-mode-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
}
.bp-auto-svc-mode-bounds {
    display: inline-flex;
    align-items: center;
    min-height: 1.65rem;
    padding: .16rem .55rem;
    border-radius: 999px;
    background: rgba(37,99,235,.08);
    border: 1px solid rgba(37,99,235,.14);
    color: var(--bp-primary, #2563eb);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .02em;
}
.bp-auto-svc-mode-toggle {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    min-width: 0;
}
.bp-auto-svc-mode-btn {
    flex: 1 1 8rem;
    min-height: 2rem;
    padding: .35rem .65rem;
    border-radius: 999px;
    border: 1px solid rgba(37,99,235,.18);
    background: rgba(37,99,235,.05);
    color: var(--bp-text-muted);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .02em;
    cursor: pointer;
    transition: border-color .15s, background .15s, color .15s;
}
.bp-auto-svc-mode-btn--active {
    border-color: rgba(37,99,235,.42);
    background: rgba(37,99,235,.14);
    color: var(--bp-primary, #2563eb);
}
.bp-auto-svc-range-note {
    grid-column: 4 / span 2;
    margin-top: -.2rem;
}
.bp-auto-svc-range-hint {
    font-size: .72rem;
    color: var(--bp-text-muted);
    line-height: 1.4;
}
.bp-auto-svc-qty-label {
    font-size: .72rem;
    font-weight: 600;
    color: var(--bp-text-muted);
    text-transform: uppercase;
    letter-spacing: .03em;
}
.bp-auto-svc-remove {
    align-self: center;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--bp-text-muted);
    font-size: .9rem;
    padding: .25rem;
    border-radius: .25rem;
    transition: color .15s, background .15s;
    line-height: 1;
}
.bp-auto-svc-remove:hover { color: #ef4444; background: rgba(239,68,68,.08); }

@media (max-width: 1180px) {
    .bp-auto-svc-row {
        grid-template-columns: 1fr;
        gap: .75rem;
    }
    .bp-auto-svc-row > .bp-auto-svc-dd-wrap,
    .bp-auto-svc-row > .bp-auto-svc-mode-wrap,
    .bp-auto-svc-row > .bp-auto-svc-qty-wrap,
    .bp-auto-svc-row > .bp-auto-svc-range-note,
    .bp-auto-svc-row > .bp-auto-svc-remove {
        grid-column: 1;
    }
    .bp-auto-svc-row > .bp-auto-svc-dd-wrap,
    .bp-auto-svc-row > .bp-auto-svc-mode-wrap,
    .bp-auto-svc-row > .bp-auto-svc-qty-wrap {
        width: 100%;
    }
    .bp-auto-svc-remove {
        justify-self: flex-end;
        align-self: start;
    }
    .bp-auto-svc-range-note {
        margin-top: 0;
    }
    .bp-auto-svc-input,
    .bp-auto-svc-category-wrap,
    .bp-auto-svc-dd,
    .bp-auto-svc-dd-wrap {
        width: 100%;
        max-width: 100%;
    }
}

/* ── Searchable dropdown ──────────────────── */
.bp-auto-svc-dd-wrap {
    position: relative;
    min-width: 0;
}
.bp-auto-svc-dd {
    position: relative;
}
.bp-auto-svc-category-wrap {
    width: 100%;
}
.bp-auto-svc-dd-wrap--service {
    min-width: 0;
}
.bp-auto-svc-input {
    width: 100%;
    box-sizing: border-box;
}
.bp-auto-svc-list {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 9999;
    background: var(--bp-glass-bg, rgba(255,255,255,0.95));
    backdrop-filter: blur(var(--bp-blur, 20px));
    -webkit-backdrop-filter: blur(var(--bp-blur, 20px));
    border: 1px solid var(--bp-glass-border, rgba(37,99,235,0.15));
    border-radius: var(--bp-radius, .5rem);
    max-height: 260px;
    overflow-y: auto;
    box-shadow: 0 8px 24px var(--bp-shadow, rgba(0,0,0,.18)), inset 1px 1px 0 var(--bp-glass-edge, rgba(255,255,255,.6));
    padding: .25rem 0;
}
[data-theme="dark"] .bp-auto-svc-list {
    background: rgba(18,22,38,0.96);
}
.bp-auto-svc-list-item {
    display: grid;
    grid-template-columns: 3rem 1fr auto auto;
    align-items: center;
    gap: .5rem;
    padding: .5rem .75rem;
    cursor: pointer;
    font-size: .8125rem;
    transition: background .12s;
}
.bp-auto-svc-list-item:hover { background: var(--bp-glass-bg, rgba(255,255,255,.06)); }
.bp-auto-dd-id {
    font-weight: 700;
    color: var(--bp-primary, #2563eb);
    white-space: nowrap;
}
.bp-auto-dd-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--bp-text);
}
.bp-auto-dd-cat {
    font-size: .72rem;
    color: var(--bp-text-muted);
    white-space: nowrap;
    background: var(--bp-glass-bg, rgba(255,255,255,.06));
    padding: 2px 6px;
    border-radius: 999px;
}
.bp-auto-dd-rate {
    font-size: .72rem;
    font-weight: 600;
    color: #22c55e;
    white-space: nowrap;
}
.bp-auto-svc-list-empty {
    padding: .75rem 1rem;
    font-size: .8125rem;
    color: var(--bp-text-muted);
    text-align: center;
}
@media (max-width: 640px) {
    .bp-auto-svc-list {
        max-height: min(50vh, 320px);
    }
    .bp-auto-svc-list-item {
        grid-template-columns: 3rem minmax(0, 1fr);
    }
    .bp-auto-dd-cat,
    .bp-auto-dd-rate {
        grid-column: 2;
    }
}

/* ── Add service button ───────────────────── */
.bp-auto-add-svc-btn {
    display: inline-flex;
    align-items: center;
    gap: .375rem;
    padding: .4375rem .875rem;
    font-size: .8125rem;
    font-weight: 600;
    border: 1.5px dashed var(--bp-glass-border, rgba(255,255,255,.15));
    border-radius: .5rem;
    background: transparent;
    color: var(--bp-primary, #2563eb);
    cursor: pointer;
    transition: background .15s, border-color .15s;
    margin-bottom: 1rem;
}
.bp-auto-add-svc-btn:hover {
    background: rgba(37,99,235,.08);
    border-color: var(--bp-primary, #2563eb);
}

/* ── Main form grid ───────────────────────── */
.bp-auto-form-grid {
    display: grid;
    gap: 0.875rem;
}
.bp-auto-form-grid > * {
    min-width: 0;
}
.bp-auto-form-grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.bp-auto-form-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 600px) {
    .bp-auto-form-grid--2 { grid-template-columns: 1fr; }
    .bp-auto-form-grid--3 { grid-template-columns: 1fr; }
}
.bp-auto-field-hint {
    display: block;
    font-size: .75rem;
    color: var(--bp-text-muted);
    margin-top: .3rem;
}

/* ── No-end-date checkbox label ───────────── */
.bp-auto-noend-label {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .8125rem;
    color: var(--bp-text-muted);
    margin-top: .5rem;
    cursor: pointer;
}
.bp-auto-noend-label input[type="checkbox"] {
    width: 15px;
    height: 15px;
    accent-color: var(--bp-primary, #2563eb);
    flex-shrink: 0;
}

/* ── Cost estimate card ───────────────────── */
.bp-auto-cost-card {
    margin-top: 1.25rem;
    padding: 1rem 1.25rem;
    border-radius: .625rem;
    background: rgba(34, 197, 94, .07);
    border: 1px solid rgba(34, 197, 94, .2);
}
.bp-auto-cost-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.bp-auto-cost-label {
    font-size: .875rem;
    font-weight: 600;
    color: var(--bp-text);
}
.bp-auto-cost-value {
    font-size: 1.125rem;
    font-weight: 800;
    color: #22c55e;
    letter-spacing: .02em;
}
.bp-auto-cost-note {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-size: .78rem;
    color: var(--bp-text-muted);
    margin: .5rem 0 .875rem;
    line-height: 1.5;
}
.bp-auto-cost-note svg { flex-shrink: 0; margin-top: 2px; opacity: .7; }

/* ── Budget cap row ───────────────────────── */
.bp-auto-budget-row {
    display: flex;
    flex-direction: column;
    gap: .3rem;
}
.bp-auto-budget-input-wrap {
    display: flex !important;
    align-items: center;
    max-width: 220px;
}
.bp-auto-budget-sym {
    padding: 0 .625rem;
    font-weight: 700;
    color: var(--bp-text-muted);
    flex-shrink: 0;
}
.bp-auto-budget-input {
    flex: 1;
    border-left: none !important;
    border-radius: 0 .375rem .375rem 0 !important;
}

/* ── Form footer ──────────────────────────── */
.bp-auto-form-footer {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.25rem;
}
.bp-auto-cancel-edit-btn {
    padding: .5625rem 1.25rem;
    font-size: .875rem;
    font-weight: 600;
    border: 1.5px solid var(--bp-glass-border, rgba(255,255,255,.15));
    border-radius: .5rem;
    background: transparent;
    color: var(--bp-text-muted);
    cursor: pointer;
    transition: background .15s, border-color .15s, color .15s;
}
.bp-auto-cancel-edit-btn:hover {
    background: rgba(239,68,68,.08);
    border-color: #ef4444;
    color: #ef4444;
}
.bp-auto-coming-soon-note {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .8125rem;
    color: var(--bp-text-muted);
    margin: 0;
    flex: 1;
    min-width: 200px;
}

.bp-auto-access-banner {
    display: flex;
    align-items: center;
    gap: .625rem;
    flex-wrap: wrap;
    justify-content: flex-end;
    font-size: .8rem;
    color: var(--bp-text-muted);
}

.bp-auto-access-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 1.75rem;
    padding: 0 .7rem;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.bp-auto-access-pill--free {
    background: rgba(37,99,235,.12);
    color: var(--bp-primary, #2563eb);
    border: 1px solid rgba(37,99,235,.24);
}

.bp-auto-access-pill--active {
    background: rgba(34,197,94,.12);
    color: #22c55e;
    border: 1px solid rgba(34,197,94,.24);
}

.bp-auto-access-pill--locked {
    background: rgba(239,68,68,.12);
    color: #ef4444;
    border: 1px solid rgba(239,68,68,.24);
}

.bp-auto-access-countdown {
    font-weight: 700;
    color: var(--bp-text);
}

.bp-auto-access-shell {
    position: relative;
}

.bp-auto-access-shell--locked {
    min-height: 320px;
}

.bp-auto-access-shell--locked .bp-auto-mode-bar,
.bp-auto-access-shell--locked .bp-auto-bulk-panel,
.bp-auto-access-shell--locked #bp-auto-default-panel {
    filter: blur(7px);
    pointer-events: none;
    user-select: none;
}

.bp-auto-access-shell--preview .bp-auto-mode-bar,
.bp-auto-access-shell--preview .bp-auto-bulk-panel,
.bp-auto-access-shell--preview #bp-auto-default-panel {
    filter: none;
    pointer-events: auto;
    user-select: auto;
}

.bp-auto-access-overlay {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}

.bp-auto-access-card {
    width: min(100%, 28rem);
    padding: 1.15rem;
    border-radius: .9rem;
    background: rgba(255,255,255,.92);
    border: 1px solid rgba(15,23,42,.08);
    box-shadow: 0 16px 50px rgba(15,23,42,.14);
    text-align: center;
}

[data-theme="dark"] .bp-auto-access-card {
    background: rgba(16,23,42,.94);
    border-color: rgba(148,163,184,.16);
}

.bp-auto-access-card__eyebrow {
    display: inline-block;
    margin-bottom: .45rem;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--bp-primary, #2563eb);
}

.bp-auto-access-card__title {
    margin: 0 0 .5rem;
    font-size: 1.15rem;
    color: var(--bp-text);
}

.bp-auto-access-card__text,
.bp-auto-access-card__empty {
    margin: 0;
    font-size: .84rem;
    line-height: 1.6;
    color: var(--bp-text-muted);
}

.bp-auto-access-plans {
    display: grid;
    gap: .625rem;
    grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
    margin-top: 1rem;
}

.bp-auto-access-plan-btn {
    display: flex;
    flex-direction: column;
    gap: .25rem;
    align-items: center;
    justify-content: center;
    padding: .85rem;
    border-radius: .8rem;
    border: 1px solid rgba(37,99,235,.2);
    background: rgba(37,99,235,.06);
    color: var(--bp-text);
    cursor: pointer;
    transition: transform .16s, border-color .16s, background .16s;
}

.bp-auto-access-plan-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    border-color: rgba(37,99,235,.38);
    background: rgba(37,99,235,.1);
}

.bp-auto-access-plan-btn:disabled {
    opacity: .65;
    cursor: wait;
}

.bp-auto-access-preview-btn {
    margin-top: .85rem;
    width: 100%;
    min-height: 2.65rem;
    border-radius: .8rem;
    border: 1px solid rgba(148,163,184,.25);
    background: transparent;
    color: var(--bp-text);
    font-weight: 700;
    cursor: pointer;
    transition: border-color .16s, background .16s;
}

.bp-auto-access-preview-btn:hover {
    border-color: rgba(37,99,235,.35);
    background: rgba(37,99,235,.06);
}

.bp-auto-preview-note {
    display: flex;
    align-items: flex-start;
    gap: .45rem;
    margin-bottom: .9rem;
    padding: .85rem 1rem;
    font-size: .8rem;
    line-height: 1.55;
    color: var(--bp-text-muted);
}

.bp-auto-preview-note strong {
    color: var(--bp-text);
    white-space: nowrap;
}

.bp-auto-preview-close {
    margin-left: auto;
    flex-shrink: 0;
    min-height: 2.2rem;
    padding: 0 .85rem;
    border-radius: 999px;
    border: 1px solid rgba(148,163,184,.24);
    background: transparent;
    color: var(--bp-text);
    font-weight: 700;
    cursor: pointer;
}

@media (max-width: 640px) {
    .bp-auto-preview-note {
        flex-direction: column;
    }
    .bp-auto-preview-close {
        margin-left: 0;
    }
}

/* ── Saved rules list ─────────────────────── */
.bp-auto-rules-list {
    padding: 1.25rem;
    border-radius: var(--bp-radius, 0.75rem);
}
.bp-auto-rules-list__head {
    display: flex;
    align-items: center;
    gap: .625rem;
    margin-bottom: 1rem;
}
.bp-auto-rules-list__head h4 {
    font-size: .9375rem;
    font-weight: 700;
    margin: 0;
    color: var(--bp-text);
}
.bp-auto-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
    padding: 2rem 1rem;
    text-align: center;
    opacity: .55;
}
.bp-auto-empty span { font-size: 2rem; line-height: 1; }
.bp-auto-empty p { margin: 0; font-size: .875rem; }
.bp-badge--muted {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.5rem;
    height: 1.5rem;
    padding: 0 .5rem;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 700;
    background: var(--bp-glass-bg);
    border: 1px solid var(--bp-glass-border);
    color: var(--bp-text-muted);
}

/* ── Rule card ────────────────────────────── */
.bp-auto-rule-card {
    display: flex;
    flex-direction: column;
    gap: .625rem;
    padding: .875rem 0;
    border-bottom: 1px solid var(--bp-glass-border, rgba(255,255,255,.07));
}
.bp-auto-rule-card:last-child { border-bottom: none; }
.bp-auto-rule-card__head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .5rem;
}
.bp-auto-rule-card__num {
    font-weight: 700;
    font-size: .875rem;
    color: var(--bp-primary, #2563eb);
}
.bp-auto-status-badge {
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    padding: 2px 8px;
    border-radius: 999px;
}
.bp-auto-status--running,
.bp-auto-status--active {
    background: rgba(34,197,94,.15);
    color: #22c55e;
    border: 1px solid rgba(34,197,94,.3);
}
.bp-auto-status--stopped {
    background: rgba(239,68,68,.12);
    color: #ef4444;
    border: 1px solid rgba(239,68,68,.25);
}
.bp-auto-status--paused {
    background: rgba(234,179,8,.12);
    color: #eab308;
    border: 1px solid rgba(234,179,8,.25);
}
.bp-auto-status--completed {
    background: rgba(37,99,235,.12);
    color: var(--bp-primary, #2563eb);
    border: 1px solid rgba(37,99,235,.25);
}
.bp-auto-status--cancelled {
    background: rgba(107,114,128,.12);
    color: #6b7280;
    border: 1px solid rgba(107,114,128,.24);
}

/* ── Rule action buttons ─────────────────── */
.bp-auto-rule-card__actions {
    margin-left: auto;
    display: flex;
    gap: .375rem;
    flex-wrap: wrap;
}
.bp-auto-btn {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .3125rem .6875rem;
    font-size: .75rem;
    font-weight: 600;
    border-radius: .375rem;
    border: 1px solid transparent;
    cursor: pointer;
    background: var(--bp-glass-bg, rgba(255,255,255,.06));
    color: var(--bp-text-muted);
    transition: background .15s, color .15s, border-color .15s;
}
.bp-auto-btn:disabled {
    opacity: .45;
    cursor: not-allowed;
}
.bp-auto-btn--edit:hover   { background: rgba(37,99,235,.12); color: var(--bp-primary, #2563eb); border-color: rgba(37,99,235,.25); }
.bp-auto-btn--start:hover  { background: rgba(34,197,94,.1); color: #22c55e; border-color: rgba(34,197,94,.25); }
.bp-auto-btn--toggle:hover { background: rgba(234,179,8,.1);  color: #eab308; border-color: rgba(234,179,8,.25); }
.bp-auto-btn--del:hover    { background: rgba(239,68,68,.1);  color: #ef4444; border-color: rgba(239,68,68,.25); }
.bp-auto-btn--cancel:hover { background: rgba(107,114,128,.12); color: #6b7280; border-color: rgba(107,114,128,.24); }

/* ── Rule card body ───────────────────────── */
.bp-auto-rule-card__svcs {
    display: flex;
    flex-wrap: wrap;
    gap: .375rem;
}
.bp-auto-rule-svc-pill {
    display: inline-flex;
    align-items: center;
    font-size: .78rem;
    font-weight: 600;
    background: var(--bp-glass-bg, rgba(255,255,255,.06));
    border: 1px solid var(--bp-glass-border, rgba(255,255,255,.1));
    border-radius: 999px;
    padding: 2px 10px;
    color: var(--bp-text);
}
.bp-auto-rule-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: .375rem .875rem;
    font-size: .78rem;
    color: var(--bp-text-muted);
}
.bp-auto-rule-card__submeta {
    display: grid;
    gap: .5rem;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    font-size: .78rem;
    color: var(--bp-text-muted);
}
.bp-auto-rule-card__meta > *,
.bp-auto-rule-card__submeta > *,
.bp-auto-rule-svc-pill {
    min-width: 0;
    overflow-wrap: anywhere;
}
.bp-auto-rule-card__meta strong { color: var(--bp-text); font-weight: 600; }
.bp-auto-rule-url-text {
    word-break: break-all;
    color: var(--bp-primary, #2563eb);
}
.bp-auto-error-text {
    color: #ef4444;
    word-break: break-word;
}
@media (max-width: 520px) {
    .bp-auto-rule-card__actions { width: 100%; order: 3; margin-left: 0; }
    .bp-auto-btn { flex: 1; justify-content: center; }
}

/* ── Mass drip-feed card ─────────────────── */
.bp-mass-dripfeed {
    margin-top: 1rem;
    padding: 1rem 1.125rem;
    border-radius: var(--bp-radius, 0.75rem);
    border: 1px solid var(--bp-glass-border, rgba(255,255,255,.1));
}
.bp-mass-dripfeed__toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: transparent;
    border: 0;
    color: var(--bp-text);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
}
.bp-mass-dripfeed__toggle span:last-child {
    font-size: .78rem;
    color: var(--bp-text-muted);
    font-weight: 600;
}
.bp-mass-dripfeed__panel {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--bp-glass-border, rgba(255,255,255,.08));
}
.bp-mass-dripfeed__summary {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem 1.25rem;
    margin-top: .875rem;
    font-size: .82rem;
    color: var(--bp-text-muted);
}
.bp-mass-dripfeed__summary strong {
    color: var(--bp-text);
    font-weight: 700;
}

/* ── Notes & tracking ────────────────────── */
.bp-notes-layout {
    display: grid;
    grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
    gap: 1rem;
}
.bp-notes-form,
.bp-notes-list-wrap {
    padding: 1.25rem;
    border-radius: var(--bp-radius, 0.75rem);
}
.bp-notes-textarea {
    min-height: 180px;
    resize: vertical;
}
.bp-notes-timer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: end;
}
.bp-notes-timer-action {
    display: flex;
    flex-direction: column;
    grid-column: 1 / -1;
}
.bp-notes-timer-btn {
    min-height: 46px;
    border-radius: .75rem;
}
.bp-notes-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: .75rem;
    margin-bottom: 1rem;
}
.bp-notes-list {
    display: flex;
    flex-direction: column;
    gap: .875rem;
}
.bp-note-card {
    padding: 1rem 1.05rem;
    border-radius: .9rem;
    background: var(--bp-glass-bg, rgba(255,255,255,.06));
    border: 1px solid var(--bp-glass-border, rgba(255,255,255,.1));
    display: grid;
    gap: .75rem;
}
.bp-note-card--overdue {
    border-color: rgba(239,68,68,.35);
    background: rgba(239,68,68,.08);
}
.bp-note-card__head,
.bp-note-card__meta,
.bp-note-card__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .5rem .75rem;
}
.bp-note-card__head {
    justify-content: space-between;
}
.bp-note-card__title {
    font-size: .95rem;
    font-weight: 700;
    color: var(--bp-text);
    margin: 0;
    min-width: 0;
    overflow-wrap: anywhere;
}
.bp-note-card__body {
    margin: 0;
    color: var(--bp-text-muted);
    white-space: pre-wrap;
    line-height: 1.6;
    overflow-wrap: anywhere;
}
.bp-note-card__meta {
    font-size: .78rem;
    color: var(--bp-text-muted);
}
.bp-notes-layout > *,
.bp-notes-toolbar > *,
.bp-notes-timer-grid > *,
.bp-note-card__head > *,
.bp-note-card__meta > *,
.bp-note-card__actions > * {
    min-width: 0;
}
.bp-notes-form,
.bp-notes-list-wrap {
    min-width: 0;
    overflow: visible;
}
.bp-notes-form .bp-dash-input,
.bp-notes-form .bp-dash-select,
.bp-notes-form textarea,
.bp-notes-list-wrap .bp-dash-input,
.bp-notes-list-wrap .bp-dash-select {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}
.bp-notes-form input[type="datetime-local"] {
    max-width: 100%;
    min-width: 0;
}
.bp-note-card__meta span {
    overflow-wrap: anywhere;
}
.bp-note-card__meta strong {
    color: var(--bp-text);
}
.bp-note-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 1.5rem;
    padding: 0 .55rem;
    border-radius: 999px;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    border: 1px solid transparent;
}
.bp-note-badge--overdue {
    background: rgba(239,68,68,.15);
    color: #ef4444;
    border-color: rgba(239,68,68,.28);
}
.bp-note-badge--soon {
    background: rgba(234,179,8,.12);
    color: #eab308;
    border-color: rgba(234,179,8,.24);
}
.bp-note-badge--active {
    background: rgba(37,99,235,.12);
    color: var(--bp-primary, #2563eb);
    border-color: rgba(37,99,235,.22);
}

@media (max-width: 980px) {
    .bp-notes-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .bp-notes-toolbar,
    .bp-notes-timer-grid {
        grid-template-columns: 1fr;
    }
    .bp-note-card__actions .bp-auto-btn {
        flex: 1 1 100%;
        justify-content: center;
    }
}

/* ── Network search autocomplete panel ──────────────────────── */
.bp-dash-input-wrap { position: relative; }
.bp-net-search-panel {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--bp-glass-bg, rgba(255,255,255,0.95));
    backdrop-filter: blur(var(--bp-blur, 20px));
    -webkit-backdrop-filter: blur(var(--bp-blur, 20px));
    border: 1px solid var(--bp-glass-border, rgba(37,99,235,0.15));
    border-radius: var(--bp-radius, .5rem);
    max-height: 280px;
    overflow-y: auto;
    box-shadow: 0 8px 24px var(--bp-shadow, rgba(0,0,0,.15)), inset 1px 1px 0 var(--bp-glass-edge, rgba(255,255,255,.6));
    padding: .375rem 0;
}
[data-theme="dark"] .bp-net-search-panel { background: rgba(18,22,38,0.96); }
.bp-net-search-item {
    display: grid;
    grid-template-columns: 3rem 1fr auto auto;
    align-items: center;
    gap: .5rem;
    padding: .5rem .75rem;
    cursor: pointer;
    font-size: .8125rem;
    transition: background .12s;
}
.bp-net-search-item:hover { background: rgba(37,99,235,.06); }
.bp-net-search-id   { font-weight: 700; color: var(--bp-primary, #2563eb); white-space: nowrap; }
.bp-net-search-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--bp-text); }
.bp-net-search-cat  {
    font-size: .72rem; color: var(--bp-text-muted); white-space: nowrap;
    background: var(--bp-glass-bg); padding: 2px 6px; border-radius: 999px;
}
.bp-net-search-rate  { font-size: .72rem; font-weight: 600; color: #22c55e; white-space: nowrap; }
.bp-net-search-empty { padding: .75rem 1rem; font-size: .8125rem; color: var(--bp-text-muted); text-align: center; }

/* ── Automation calculate button ─────────────────────────────── */
.bp-auto-cost-row { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; }
.bp-auto-calc-btn {
    display: inline-flex; align-items: center; gap: .3rem;
    padding: .3125rem .75rem; font-size: .75rem; font-weight: 600;
    border: 1px solid var(--bp-glass-border); border-radius: .375rem;
    background: var(--bp-glass-bg); color: var(--bp-text-muted);
    cursor: pointer; transition: background .15s, color .15s;
    margin-left: auto;
}
.bp-auto-calc-btn:hover { background: rgba(37,99,235,.1); color: var(--bp-primary, #2563eb); }

/* ═══════════════════════════════════════════════════════════════
   BLOG  TAB  (post card grid + pagination)
═══════════════════════════════════════════════════════════════ */

.bp-blog-wrap {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.bp-blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.bp-blog-card {
    display: flex;
    flex-direction: column;
    border-radius: var(--bp-radius, 0.75rem);
    overflow: hidden;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.bp-blog-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,.25);
}

/* top 60% → image */
.bp-blog-card__img-wrap {
    display: block;
    position: relative;
    overflow: hidden;
    flex: 0 0 auto;
    height: 0;
    padding-bottom: 56.25%;  /* 16:9 — roughly 60% of card space */
}
.bp-blog-card__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.bp-blog-card:hover .bp-blog-card__img {
    transform: scale(1.04);
}
.bp-blog-card__img-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    background: rgba(255,255,255,.05);
    height: 160px;
}

/* bottom 40% → text */
.bp-blog-card__body {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    padding: 0.875rem 1rem 1rem;
    flex: 1 1 auto;
}

.bp-blog-card__title {
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.bp-blog-card__title a {
    color: inherit;
    text-decoration: none;
}
.bp-blog-card__title a:hover {
    color: var(--bp-primary-light, #818cf8);
}

.bp-blog-card__desc {
    font-size: 0.8125rem;
    line-height: 1.5;
    opacity: .7;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bp-blog-card__meta {
    margin-top: auto;
    font-size: 0.75rem;
    opacity: .55;
}

/* Pagination */
.bp-blog-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.375rem;
    padding: 0.5rem 0 0.25rem;
}

.bp-blog-pagination__btn {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.875rem;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 9999px;
    background: rgba(255,255,255,.06);
    color: var(--bp-text-muted, #a3b3c2);
    font-size: 0.8125rem;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}
.bp-blog-pagination__btn:hover {
    background: rgba(255,255,255,.14);
    color: #fff;
}
.bp-blog-pagination__btn--active {
    background: var(--bp-primary, #6366f1);
    color: #fff;
    border-color: transparent;
    pointer-events: none;
}

/* Custom HTML tab content */
.bp-custom-tab-content {
    padding: 1.5rem;
    line-height: 1.7;
}
.bp-custom-tab-content h1,
.bp-custom-tab-content h2,
.bp-custom-tab-content h3 { margin-top: 1.25em; margin-bottom: .5em; }
.bp-custom-tab-content p  { margin-bottom: 0.75em; }
.bp-custom-tab-content a  { color: var(--bp-primary-light, #818cf8); }

/* Other Website tab */
.bp-website-links-box__head {
    align-items: flex-start;
}

.bp-website-links-box__intro {
    margin: 0.35rem 0 0;
    color: var(--bp-text-muted, rgba(15,23,42,0.6));
    font-size: 0.92rem;
    line-height: 1.6;
}

.bp-website-links-list {
    display: grid;
    gap: 1rem;
    padding: 1.25rem;
}

.bp-website-link-card {
    position: relative;
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 1.2rem;
    border-radius: calc(var(--bp-radius-lg, 1.25rem) - 0.15rem);
    border: 1px solid rgba(37,99,235,0.12);
    background:
        radial-gradient(circle at top right, rgba(14,165,233,0.12), transparent 32%),
        linear-gradient(135deg, rgba(255,255,255,0.76), rgba(239,246,255,0.74));
    color: inherit;
    text-decoration: none;
    overflow: hidden;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.bp-website-link-card::after {
    content: '';
    position: absolute;
    inset: auto 0 0 0;
    height: 3px;
    background: linear-gradient(90deg, var(--bp-primary, #2563eb), #0ea5e9);
    opacity: 0;
    transition: opacity 0.18s ease;
}

.bp-website-link-card:hover,
.bp-website-link-card:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(37,99,235,0.22);
    box-shadow: 0 18px 36px rgba(37,99,235,0.12);
}

.bp-website-link-card:hover::after,
.bp-website-link-card:focus-visible::after {
    opacity: 1;
}

.bp-website-link-card[aria-disabled="true"] {
    pointer-events: none;
    opacity: 0.65;
}

.bp-website-link-card__icon {
    width: 72px;
    height: 72px;
    border-radius: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    background: linear-gradient(135deg, rgba(37,99,235,0.14), rgba(14,165,233,0.18));
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
}

.bp-website-link-card__body {
    min-width: 0;
    display: grid;
    gap: 0.45rem;
}

.bp-website-link-card__title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.bp-website-link-card__title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--bp-text, #0f172a);
}

.bp-website-link-card__chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.32rem 0.7rem;
    border-radius: 999px;
    background: rgba(37,99,235,0.1);
    color: var(--bp-primary, #2563eb);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.bp-website-link-card__description,
.bp-website-link-card__features {
    font-size: 0.9rem;
    line-height: 1.6;
}

.bp-website-link-card__description {
    color: var(--bp-text, #0f172a);
}

.bp-website-link-card__features {
    color: var(--bp-text-muted, rgba(15,23,42,0.65));
}

.bp-website-link-card__arrow {
    font-size: 1.35rem;
    color: var(--bp-primary, #2563eb);
}

.bp-website-links-empty {
    color: var(--bp-text-muted, rgba(15,23,42,0.65));
}

/* VIP Info tab */
.bp-vip-shell {
    display: grid;
    gap: 1rem;
}

.bp-vip-intro-box__head,
.bp-vip-content-box__head {
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.bp-vip-intro-box__eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    background: rgba(234,179,8,0.14);
    color: #92400e;
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.bp-vip-intro-box__desc {
    margin: 0.7rem 0 0;
    max-width: 760px;
    color: var(--bp-text-muted, rgba(15,23,42,0.68));
    line-height: 1.7;
}

.bp-vip-access-banner {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
    color: var(--bp-text-muted, rgba(15,23,42,0.7));
    font-size: 0.9rem;
}

.bp-vip-access-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.36rem 0.72rem;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.bp-vip-access-pill--free {
    background: rgba(34,197,94,0.14);
    color: #166534;
}

.bp-vip-access-pill--active {
    background: rgba(37,99,235,0.14);
    color: #1d4ed8;
}

.bp-vip-access-pill--locked {
    background: rgba(248,113,113,0.14);
    color: #b91c1c;
}

.bp-vip-access-countdown {
    font-weight: 700;
    color: var(--bp-text, #0f172a);
}

.bp-vip-access-shell {
    position: relative;
}

.bp-vip-access-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    border-radius: var(--bp-radius-lg, 1.25rem);
    background: linear-gradient(135deg, rgba(255,255,255,0.74), rgba(226,232,240,0.82));
    backdrop-filter: blur(9px);
}

.bp-vip-access-card {
    width: min(100%, 680px);
    padding: 1.5rem;
    border-radius: 1.25rem;
    border: 1px solid rgba(37,99,235,0.12);
    background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(239,246,255,0.95));
    box-shadow: 0 28px 60px rgba(15,23,42,0.16);
}

.bp-vip-access-card__eyebrow {
    display: inline-flex;
    margin-bottom: 0.7rem;
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--bp-primary, #2563eb);
}

.bp-vip-access-card__title {
    margin: 0;
    font-size: 1.4rem;
    line-height: 1.2;
}

.bp-vip-access-card__text {
    margin: 0.75rem 0 0;
    color: var(--bp-text-muted, rgba(15,23,42,0.68));
    line-height: 1.65;
}

.bp-vip-access-plans {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 1.25rem;
}

.bp-vip-access-plan-btn {
    min-width: 150px;
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    padding: 0.95rem 1rem;
    border: 1px solid rgba(37,99,235,0.12);
    border-radius: 1rem;
    background: rgba(255,255,255,0.82);
    color: var(--bp-text, #0f172a);
    cursor: pointer;
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.bp-vip-access-plan-btn:hover {
    transform: translateY(-2px);
    border-color: rgba(37,99,235,0.22);
    box-shadow: 0 16px 28px rgba(37,99,235,0.12);
}

.bp-vip-access-plan-btn strong {
    font-size: 0.96rem;
}

.bp-vip-access-card__empty {
    margin: 1rem 0 0;
    color: var(--bp-text-muted, rgba(15,23,42,0.68));
}

.bp-vip-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.bp-vip-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
    padding: 1.25rem;
}

.bp-vip-card {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    padding: 1.15rem;
    border-radius: 1.2rem;
    border: 1px solid rgba(37,99,235,0.12);
    background:
        radial-gradient(circle at top right, rgba(37,99,235,0.11), transparent 36%),
        linear-gradient(180deg, rgba(255,255,255,0.88), rgba(248,250,252,0.94));
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.bp-vip-card:hover {
    transform: translateY(-2px);
    border-color: rgba(37,99,235,0.2);
    box-shadow: 0 18px 32px rgba(15,23,42,0.1);
}

.bp-vip-card--locked {
    opacity: 0.82;
}

.bp-vip-card__head,
.bp-vip-card__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.bp-vip-card__badge,
.bp-vip-card__status {
    display: inline-flex;
    align-items: center;
    padding: 0.34rem 0.68rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
}

.bp-vip-card__badge {
    background: rgba(15,23,42,0.08);
    color: var(--bp-text, #0f172a);
}

.bp-vip-card__status {
    background: rgba(37,99,235,0.08);
    color: var(--bp-primary, #2563eb);
}

.bp-vip-card__title {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 1.02rem;
    line-height: 1.35;
}

.bp-vip-card__icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 0.9rem;
    background: rgba(15,23,42,0.06);
    border: 1px solid rgba(37,99,235,0.12);
    overflow: hidden;
    flex-shrink: 0;
}

.bp-vip-card__icon-wrap--glyph {
    font-size: 1.2rem;
}

.bp-vip-card__icon-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bp-vip-card__desc {
    margin: 0;
    color: var(--bp-text-muted, rgba(15,23,42,0.68));
    line-height: 1.65;
    white-space: pre-line;
}

.bp-vip-card__price {
    font-weight: 800;
    color: var(--bp-primary, #2563eb);
}

.bp-vip-card__action {
    border: none;
    border-radius: 999px;
    padding: 0.7rem 1rem;
    background: linear-gradient(135deg, var(--bp-primary, #2563eb), #0ea5e9);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.16s ease, transform 0.16s ease;
}

.bp-vip-card__action:hover:not(:disabled) {
    transform: translateY(-1px);
}

.bp-vip-card__action:disabled {
    background: #cbd5e1;
    color: #475569;
    cursor: not-allowed;
}

.bp-vip-empty {
    color: var(--bp-text-muted, rgba(15,23,42,0.68));
}

@media (max-width: 720px) {
    .bp-website-link-card {
        grid-template-columns: 56px minmax(0, 1fr);
        padding: 1rem;
    }

    .bp-website-link-card__icon {
        width: 56px;
        height: 56px;
        border-radius: 18px;
        font-size: 1.5rem;
    }

    .bp-website-link-card__title-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .bp-website-link-card__arrow {
        display: none;
    }

    .bp-vip-access-overlay {
        padding: 0.85rem;
    }

    .bp-vip-access-card {
        padding: 1rem;
    }

    .bp-vip-card__head,
    .bp-vip-card__foot {
        align-items: flex-start;
        flex-direction: column;
    }
}

.bp-order-notice__close {
    background: none;
    border: none;
    color: inherit;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 0.25rem;
    opacity: 0.7;
    flex-shrink: 0;
    margin-left: auto;
}

.bp-order-notice__close:hover {
    opacity: 1;
}

@keyframes bpNoticeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Custom glass select dropdown ─────────────────────────────── */
.bp-custom-select-wrap {
    position: relative;
}
/* Hide the native <select> visually but keep it accessible */
.bp-custom-select-wrap select {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    width: 100%;
    height: 100%;
}
.bp-custom-select__face {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    width: 100%;
    padding: 0.625rem 0.875rem;
    border-radius: var(--bp-radius-sm, 0.75rem);
    border: 1px solid var(--bp-glass-border, rgba(148,163,184,0.25));
    background: var(--bp-glass-bg, rgba(255,255,255,0.07));
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--bp-text);
    font-size: 0.875rem;
    font-family: inherit;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
    user-select: none;
    -webkit-user-select: none;
    box-sizing: border-box;
}
.bp-custom-select__face:hover,
.bp-custom-select__face[aria-expanded="true"] {
    border-color: var(--bp-primary, #2563eb);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}
.bp-custom-select__label {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.bp-custom-select__arrow {
    flex-shrink: 0;
    color: var(--bp-text-muted, rgba(15,23,42,0.45));
    transition: transform 0.18s;
    line-height: 0;
}
.bp-custom-select__face[aria-expanded="true"] .bp-custom-select__arrow {
    transform: rotate(180deg);
}
.bp-custom-select__panel {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 9999;
    max-height: 260px;
    overflow-y: auto;
    overflow-x: hidden;
    border-radius: var(--bp-radius-sm, 0.75rem);
    padding: 0.375rem;
    border: 1px solid var(--bp-glass-border, rgba(148,163,184,0.25));
    box-shadow: 0 8px 32px rgba(0,0,0,0.22);
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    /* scrollbar */
    scrollbar-width: thin;
    scrollbar-color: rgba(100,116,139,0.3) transparent;
}
.bp-custom-select__panel::-webkit-scrollbar { width: 5px; }
.bp-custom-select__panel::-webkit-scrollbar-track { background: transparent; }
.bp-custom-select__panel::-webkit-scrollbar-thumb {
    background: rgba(100,116,139,0.3);
    border-radius: 3px;
}
.bp-custom-select__item {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    border: none;
    background: transparent;
    color: var(--bp-text);
    font-size: 0.875rem;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.12s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.bp-custom-select__item:hover {
    background: rgba(37,99,235,0.10);
}
.bp-custom-select__item--active {
    background: rgba(37,99,235,0.08);
    color: var(--bp-primary, #2563eb);
    font-weight: 600;
}
.bp-custom-select__empty {
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
    color: var(--bp-text-muted, rgba(15,23,42,0.5));
    text-align: center;
}
/* Dark mode adjustments */
[data-theme="dark"] .bp-custom-select__face {
    background: rgba(30,41,59,0.6);
    border-color: rgba(148,163,184,0.15);
}
[data-theme="dark"] .bp-custom-select__item:hover {
    background: rgba(37,99,235,0.18);
}
[data-theme="dark"] .bp-custom-select__item--active {
    background: rgba(37,99,235,0.16);
}
[data-theme="dark"] .bp-custom-select__panel {
    background: rgba(15,23,42,0.97);
    border-color: rgba(148,163,184,0.15);
}

/* ---------------------------------------------------------------
   SINGLE BLOG POST PAGE
--------------------------------------------------------------- */

.bp-single-wrap {
    max-width: 860px;
    margin-inline: auto;
}

.bp-single-main {
    padding: 1.5rem 1rem 3rem;
}

/* Back link */
.bp-single-back {
    margin-bottom: 1.25rem;
}
.bp-single-back__link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--bp-text-muted, #a3b3c2);
    text-decoration: none;
    transition: color 0.15s;
}
.bp-single-back__link:hover {
    color: var(--bp-primary-light, #818cf8);
}
.bp-single-back__link .bp-icon {
    width: 1rem;
    height: 1rem;
}

/* Hero image */
.bp-single-hero {
    overflow: hidden;
    border-radius: var(--bp-radius, 0.75rem) var(--bp-radius, 0.75rem) 0 0;
    max-height: 420px;
}
.bp-single-hero__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Article title */
.bp-single-title {
    font-size: clamp(1.375rem, 3.5vw, 2rem);
    font-weight: 800;
    line-height: 1.25;
    margin: 0;
}

/* Meta row */
.bp-single-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1.25rem;
    padding: 0.75rem 1.5rem 0.5rem;
    font-size: 0.8125rem;
    opacity: .75;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.bp-single-meta__item {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}
.bp-single-meta__cat,
.bp-single-meta__author {
    color: var(--bp-primary-light, #818cf8);
    text-decoration: none;
}
.bp-single-meta__cat:hover { text-decoration: underline; }

/* Post content */
.bp-single-content {
    padding: 1.5rem;
    font-size: 0.9375rem;
    line-height: 1.75;
}
.bp-single-content h1,
.bp-single-content h2,
.bp-single-content h3,
.bp-single-content h4 {
    margin-top: 1.5em;
    margin-bottom: .5em;
    font-weight: 700;
    line-height: 1.3;
}
.bp-single-content p  { margin-bottom: 1em; }
.bp-single-content ul,
.bp-single-content ol { margin-left: 1.5rem; margin-bottom: 1em; }
.bp-single-content li { margin-bottom: .35em; }
.bp-single-content a  { color: var(--bp-primary-light, #818cf8); text-decoration: underline; }
.bp-single-content blockquote {
    margin: 1.25em 0;
    padding: .75rem 1rem .75rem 1.25rem;
    border-left: 3px solid var(--bp-primary, #6366f1);
    background: rgba(255,255,255,.04);
    border-radius: 0 .5rem .5rem 0;
    font-style: italic;
    opacity: .9;
}
.bp-single-content img {
    max-width: 100%;
    height: auto;
    border-radius: .5rem;
}
.bp-single-content code {
    font-family: 'Fira Mono', monospace;
    font-size: .875em;
    background: rgba(255,255,255,.08);
    padding: .15em .4em;
    border-radius: .3em;
}
.bp-single-content pre {
    background: rgba(0,0,0,.3);
    border-radius: .5rem;
    padding: 1rem 1.25rem;
    overflow-x: auto;
    margin-bottom: 1em;
}
.bp-single-content pre code { background: none; padding: 0; }

/* Tags */
.bp-single-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .375rem;
    padding: .75rem 1.5rem 1.25rem;
    border-top: 1px solid rgba(255,255,255,.07);
}
.bp-single-tag {
    display: inline-block;
    padding: .25rem .7rem;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 9999px;
    font-size: .75rem;
    color: var(--bp-text-muted, #a3b3c2);
    text-decoration: none;
    transition: background .15s, color .15s;
}
.bp-single-tag:hover {
    background: var(--bp-primary, #6366f1);
    color: #fff;
    border-color: transparent;
}

/* Prev / Next navigation */
.bp-single-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
}

.bp-single-nav__item {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    padding: 1rem 1.25rem;
    border-radius: var(--bp-radius, .75rem);
    text-decoration: none;
    color: inherit;
    transition: transform .18s ease, box-shadow .18s ease;
}
.bp-single-nav__item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,.2);
}

.bp-single-nav__item--next {
    text-align: right;
}

.bp-single-nav__dir {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    opacity: .6;
}
.bp-single-nav__dir .bp-icon {
    width: .875rem;
    height: .875rem;
}

.bp-single-nav__title {
    font-size: .9rem;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 600px) {
    .bp-single-nav { grid-template-columns: 1fr; }
    .bp-blog-grid  { grid-template-columns: 1fr; }
    .bp-mass-row   { grid-template-columns: 1.5rem 1fr 4rem 4rem; }
    .bp-mass-row__link { display: none; }
}

/* ═══════════════════════════════════════════════════════════════════
   DYNAMIC DEPOSIT FORM
═══════════════════════════════════════════════════════════════════ */

/* Gateway picker grid */
.bp-gw-picker {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 0.75rem;
    padding: 1.25rem 1.5rem;
}

/* Individual gateway card */
.bp-gw-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.375rem;
    padding: 1rem 0.75rem;
    border-radius: var(--bp-radius, 0.75rem);
    border: 1.5px solid var(--bp-glass-border, rgba(148,163,184,0.25));
    background: var(--bp-glass-bg, rgba(255,255,255,0.55));
    cursor: pointer;
    transition: border-color 0.18s, background 0.18s, transform 0.12s;
    font-family: inherit;
    text-align: center;
    min-height: 90px;
    justify-content: center;
}
.bp-gw-card:hover {
    border-color: var(--bp-primary, #2563eb);
    background: rgba(37,99,235,0.07);
    transform: translateY(-1px);
}
.bp-gw-card[aria-checked="true"] {
    border-color: var(--bp-primary, #2563eb);
    background: rgba(37,99,235,0.1);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}
.bp-gw-card__icon {
    font-size: 1.75rem;
    line-height: 1;
}
.bp-gw-card__name {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--bp-text);
    line-height: 1.25;
}
.bp-gw-card__fee {
    font-size: 0.7rem;
    color: var(--bp-text-muted, rgba(15,23,42,0.55));
    background: rgba(100,116,139,0.1);
    padding: 0.1em 0.45em;
    border-radius: 999px;
}
[data-theme="dark"] .bp-gw-card {
    background: rgba(30,41,59,0.5);
    border-color: rgba(148,163,184,0.18);
}
[data-theme="dark"] .bp-gw-card:hover {
    background: rgba(37,99,235,0.14);
}
[data-theme="dark"] .bp-gw-card[aria-checked="true"] {
    background: rgba(37,99,235,0.18);
}

/* Step 2 form wrapper */
#bp-deposit-step2 {
    padding: 0 1.5rem 1.5rem;
}

/* Selected-method display bar */
.bp-deposit-selected-method {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.625rem 1rem;
    border-radius: var(--bp-radius-sm, 0.5rem);
    font-size: 0.9375rem;
    font-weight: 600;
}
.bp-deposit-change-btn {
    margin-left: auto;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--bp-primary, #2563eb);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.2em 0.5em;
    border-radius: 0.375rem;
    transition: background 0.15s;
    font-family: inherit;
}
.bp-deposit-change-btn:hover {
    background: rgba(37,99,235,0.1);
}

/* Amount field with currency symbol prefix */
.bp-dash-input--with-sym {
    padding-left: 2rem;
}
.bp-deposit-currency-sym {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--bp-text-muted, rgba(15,23,42,0.55));
    pointer-events: none;
}
/* Ensure the .bp-dash-input-wrap is position:relative (it should already be, but ensure) */
.bp-dash-input-wrap {
    position: relative;
}

/* Fee / min-max hint */
.bp-dash-label-hint {
    font-size: 0.75rem;
    font-weight: 400;
    margin-left: 0.4rem;
    color: var(--bp-text-muted, rgba(15,23,42,0.5));
}
.bp-deposit-fee-note {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.8125rem;
    color: var(--bp-text-muted, rgba(15,23,42,0.55));
    font-style: italic;
}

/* Wallet display (crypto send-to address) */
.bp-wallet-display {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: var(--bp-radius-sm, 0.5rem);
    margin-bottom: 0.25rem;
    flex-wrap: wrap;
}
.bp-wallet-display__label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--bp-text-muted, rgba(15,23,42,0.6));
    white-space: nowrap;
}
.bp-wallet-display__addr {
    flex: 1;
    font-family: 'Fira Mono', 'Courier New', monospace;
    font-size: 0.8125rem;
    word-break: break-all;
    color: var(--bp-text);
}
.bp-wallet-copy-btn {
    flex-shrink: 0;
    background: rgba(37,99,235,0.1);
    border: 1px solid rgba(37,99,235,0.2);
    border-radius: 0.375rem;
    padding: 0.3rem 0.5rem;
    cursor: pointer;
    color: var(--bp-primary, #2563eb);
    transition: background 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.bp-wallet-copy-btn:hover { background: rgba(37,99,235,0.2); }

/* Extra info (bank details, network, memo, etc.) */
.bp-deposit-extra-info {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.35rem 1rem;
    font-size: 0.875rem;
    padding: 0.75rem 0;
}
.bp-deposit-extra-info dt {
    font-weight: 600;
    color: var(--bp-text-muted, rgba(15,23,42,0.6));
    white-space: nowrap;
}
.bp-deposit-extra-info dd {
    margin: 0;
    word-break: break-word;
    font-family: 'Fira Mono', monospace;
    font-size: 0.8125rem;
}

/* Card/redirected payment notice */
.bp-deposit-card-notice {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border-radius: var(--bp-radius-sm, 0.5rem);
    border: 1px solid rgba(37,99,235,0.25);
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
}
.bp-deposit-card-notice span { font-size: 1.375rem; flex-shrink: 0; }
.bp-deposit-card-notice p { margin: 0; }

/* Gateway instructions */
.bp-deposit-gw-instructions {
    padding: 0.75rem 1rem;
    margin-bottom: 0.75rem;
    border-radius: var(--bp-radius-sm, 0.5rem);
    border-left: 3px solid var(--bp-primary, #2563eb);
    background: rgba(37,99,235,0.04);
    font-size: 0.875rem;
    line-height: 1.6;
}
[data-theme="dark"] .bp-deposit-gw-instructions {
    background: rgba(37,99,235,0.08);
}

/* Result / status message */
.bp-deposit-result {
    margin-top: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: var(--bp-radius-sm, 0.5rem);
    font-size: 0.9rem;
    font-weight: 500;
}
.bp-deposit-result--ok {
    background: rgba(16,185,129,0.12);
    color: #059669;
    border: 1px solid rgba(16,185,129,0.3);
}
.bp-deposit-result--err {
    background: rgba(239,68,68,0.1);
    color: #dc2626;
    border: 1px solid rgba(239,68,68,0.25);
}

/* Loading spinner on submit button */
.bp-order-submit.bp-loading {
    opacity: 0.7;
    pointer-events: none;
}


/* ═══════════════════════════════════════════════════════════════════
   MASS ORDER MODE SWITCH
═══════════════════════════════════════════════════════════════════ */

.bp-mass-mode-bar {
    display: flex;
    gap: 0.375rem;
    margin-bottom: 1rem;
    padding: 0.25rem;
    background: rgba(100,116,139,0.1);
    border-radius: 0.625rem;
    width: fit-content;
}
.bp-mass-mode-btn {
    padding: 0.4rem 1rem;
    border-radius: 0.5rem;
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--bp-text-muted, rgba(15,23,42,0.6));
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}
.bp-mass-mode-btn:hover {
    background: rgba(37,99,235,0.08);
    color: var(--bp-primary, #2563eb);
}
.bp-mass-mode-btn--active {
    background: var(--bp-glass-bg, rgba(255,255,255,0.8));
    color: var(--bp-primary, #2563eb);
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}
[data-theme="dark"] .bp-mass-mode-btn--active {
    background: rgba(30,41,59,0.8);
}

/* Selector mode rows container */
.bp-mass-sel-rows {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    margin-bottom: 0.75rem;
    overflow: visible;
}

/* Single selector-mode row */
.bp-mass-sel-row {
    display: grid;
    grid-template-columns: minmax(0,1fr) 88px 2rem;
    gap: 0.5rem;
    align-items: start;
    padding: 0.625rem 0.75rem;
    background: var(--bp-glass-bg, rgba(255,255,255,0.55));
    border: 1px solid var(--bp-glass-border, rgba(148,163,184,0.2));
    border-radius: var(--bp-radius-sm, 0.5rem);
    overflow: visible;
}

/* URL spans full row under the grid */
.bp-mass-sel-row__url {
    grid-column: 1 / -1;
    width: 100%;
}

/* Searchable service wrapper */
.bp-mass-svc-wrap {
    position: relative;
    min-width: 0;
    grid-column: 1;
}
.bp-mass-svc-input {
    width: 100%;
    padding-right: 0.75rem;
}
.bp-mass-svc-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 9998;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--bp-glass-border, rgba(148,163,184,0.25));
    border-radius: var(--bp-radius-sm, 0.625rem);
    box-shadow: 0 8px 28px rgba(0,0,0,0.2);
    max-height: 200px;
    overflow-y: auto;
    padding: 0.3rem;
    display: none;
    scrollbar-width: thin;
    scrollbar-color: rgba(100,116,139,.3) transparent;
}
.bp-mass-svc-dropdown::-webkit-scrollbar { width: 4px; }
.bp-mass-svc-dropdown::-webkit-scrollbar-thumb { background: rgba(100,116,139,.3); border-radius: 3px; }
.bp-mass-svc-item {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0.4rem 0.625rem;
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: 0.8125rem;
    color: var(--bp-text);
    cursor: pointer;
    border-radius: 0.4rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: background 0.1s;
}
.bp-mass-svc-item:hover, .bp-mass-svc-item.bp-sel { background: rgba(37,99,235,0.1); color: var(--bp-primary, #2563eb); }
.bp-mass-svc-empty { color: var(--bp-text-muted); cursor: default; }
[data-theme="dark"] .bp-mass-svc-dropdown { background: rgba(15,23,42,0.97); border-color: rgba(148,163,184,0.15); }

.bp-mass-sel-row__qty {
    width: 100%;
}
.bp-mass-sel-row__remove {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--bp-text-muted, rgba(15,23,42,0.4));
    font-size: 1.125rem;
    line-height: 1;
    padding: 0.2rem 0.35rem;
    border-radius: 0.375rem;
    transition: color 0.12s, background 0.12s;
    font-family: inherit;
}
.bp-mass-sel-row__remove:hover {
    color: #ef4444;
    background: rgba(239,68,68,0.08);
}
[data-theme="dark"] .bp-mass-sel-row {
    background: rgba(30,41,59,0.5);
    border-color: rgba(148,163,184,0.12);
}

/* Add more row button */
.bp-mass-sel-add-wrap {
    margin-bottom: 0.75rem;
}

@media (max-width: 640px) {
    .bp-mass-sel-row {
        grid-template-columns: minmax(0,1fr) 2rem;
    }
    .bp-mass-svc-wrap {
        grid-column: 1;
    }
    .bp-mass-sel-row__qty {
        grid-column: 1;
    }
    .bp-mass-sel-row__remove {
        grid-column: 2;
        grid-row: 1;
    }
}


/* ═══════════════════════════════════════════════════════════════════
   CURRENCY SELECTOR (header)
═══════════════════════════════════════════════════════════════════ */

.bp-currency-selector {
    position: relative;
}

.bp-currency-btn {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.55rem;
    height: 2.25rem;
    background: var(--bp-glass-bg, rgba(255,255,255,0.55));
    border: 1px solid var(--bp-glass-border, rgba(148,163,184,0.28));
    border-radius: 0.625rem;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--bp-text);
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    white-space: nowrap;
    backdrop-filter: blur(6px);
}
.bp-currency-btn:hover {
    background: rgba(37,99,235,0.08);
    border-color: rgba(37,99,235,0.35);
}
.bp-currency-flag {
    font-size: 1rem;
    line-height: 1;
}
.bp-currency-sym {
    font-size: 0.9375rem;
    font-weight: 700;
}
.bp-currency-chevron {
    opacity: 0.55;
    transition: transform 0.2s;
    flex-shrink: 0;
}
.bp-currency-selector[aria-expanded="true"] .bp-currency-chevron,
.bp-currency-btn[aria-expanded="true"] .bp-currency-chevron {
    transform: rotate(180deg);
}

/* Dropdown panel */
.bp-currency-panel {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    width: 240px;
    max-height: 320px;
    overflow-y: auto;
    background: var(--bp-glass-bg, rgba(255,255,255,0.95));
    backdrop-filter: blur(16px) saturate(1.4);
    border: 1px solid var(--bp-glass-border, rgba(148,163,184,0.28));
    border-radius: var(--bp-radius, 0.75rem);
    box-shadow: 0 12px 40px rgba(0,0,0,0.18);
    padding: 0.375rem;
    z-index: 9999;
    display: none; /* toggled via JS */
    scrollbar-width: thin;
    scrollbar-color: rgba(100,116,139,0.3) transparent;
}
.bp-currency-panel::-webkit-scrollbar { width: 5px; }
.bp-currency-panel::-webkit-scrollbar-track { background: transparent; }
.bp-currency-panel::-webkit-scrollbar-thumb { background: rgba(100,116,139,0.3); border-radius: 3px; }

.bp-currency-panel.bp-currency-panel--open {
    display: block;
    animation: bpDropIn 0.16s ease-out;
}

@keyframes bpDropIn {
    from { opacity: 0; transform: translateY(-6px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0)    scale(1); }
}

/* Individual currency item */
.bp-currency-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    text-align: left;
    padding: 0.45rem 0.625rem;
    border: none;
    background: transparent;
    border-radius: 0.5rem;
    font-family: inherit;
    font-size: 0.8125rem;
    color: var(--bp-text);
    cursor: pointer;
    transition: background 0.12s;
    white-space: nowrap;
}
.bp-currency-item:hover {
    background: rgba(37,99,235,0.08);
}
.bp-currency-item--active {
    background: rgba(37,99,235,0.1);
    color: var(--bp-primary, #2563eb);
    font-weight: 600;
}
.bp-currency-item__flag { font-size: 1rem; flex-shrink: 0; }
.bp-currency-item__sym  { font-weight: 700; width: 2rem; flex-shrink: 0; }
.bp-currency-item__label { overflow: hidden; text-overflow: ellipsis; }

[data-theme="dark"] .bp-currency-btn {
    background: rgba(30,41,59,0.6);
    border-color: rgba(148,163,184,0.18);
}
[data-theme="dark"] .bp-currency-panel {
    background: rgba(15,23,42,0.96);
    border-color: rgba(148,163,184,0.15);
}
[data-theme="dark"] .bp-currency-item:hover {
    background: rgba(37,99,235,0.15);
}
[data-theme="dark"] .bp-currency-item--active {
    background: rgba(37,99,235,0.18);
}

/* -- PayPal checkout panel --------------------------------------------- */
.bp-paypal-checkout-wrap {
    margin-top: 16px;
    padding: 20px;
    border-radius: 12px;
    max-height: 80vh;
    overflow-y: auto;
    box-sizing: border-box;
}
.bp-paypal-checkout-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    font-weight: 700;
    font-size: .95rem;
}
.bp-paypal-amount-display {
    text-align: center;
    font-weight: 600;
    margin-bottom: 12px;
    opacity: .8;
    font-size: .9rem;
}
#paypal-button-container {
    min-height: 48px;
}
.bp-paypal-status {
    text-align: center;
    font-size: .85rem;
    margin-top: 10px;
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(245,158,11,.12);
    color: #b45309;
}
