/* Bulk Magnet Builder — mobile-first premium UI */

/* Shared tokens — #bulkConfigModal is moved to document.body at runtime */
.bmb-page,
#bulkConfigModal {
    --bmb-ink: #141210;
    --bmb-gold: #c6a972;
    --bmb-gold-dark: #9e7c0c;
    --bmb-gold-light: #f3e8c8;
    --bmb-muted: #5c5650;
    --bmb-cream: #f7f4ef;
    --bmb-surface: #ffffff;
    --bmb-border: rgba(20, 18, 16, 0.14);
    --bmb-panel: #faf8f5;
    --bmb-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --bmb-touch: 44px;
    --bmb-radius: 14px;
    --bmb-radius-lg: 18px;
}

.bmb-page {
    background: var(--bmb-cream);
    color: var(--bmb-ink);
    padding: 16px 0 calc(100px + env(safe-area-inset-bottom, 0px));
    min-height: 80vh;
    font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.bmb-page .container {
    max-width: 1120px;
    padding-left: 16px;
    padding-right: 16px;
}

/* Override global style.css button { width:100px; height:40px; color:#fff } */
.bmb-page button,
#bulkConfigModal button {
    font-family: inherit;
    width: auto !important;
    height: auto !important;
    min-height: 0;
    border-radius: 0;
    background: transparent;
    color: inherit;
}

.bmb-page button.bmb-size-btn,
.bmb-page button.bmb-tab,
.bmb-page button.bmb-chip,
.bmb-page button.bmb-qty-chip,
.bmb-page button.bmb-segment-btn,
.bmb-page .bmb-qty-control button,
.bmb-page .bmb-btn-upload,
#bulkConfigModal button.bmb-size-btn,
#bulkConfigModal button.bmb-tab,
#bulkConfigModal button.bmb-chip,
#bulkConfigModal button.bmb-qty-chip,
#bulkConfigModal button.bmb-segment-btn,
#bulkConfigModal button.bmb-type-card,
#bulkConfigModal button.bmb-type-card--modal,
#bulkConfigModal .bmb-qty-control button,
#bulkConfigModal button.bmb-crop-tool,
#bulkConfigModal button.bmb-size-btn--crop,
#bulkConfigModal button.bmb-btn-ghost,
#bulkConfigModal button.bmb-btn-footer-close {
    background: var(--bmb-surface) !important;
    color: var(--bmb-ink) !important;
}

#bulkConfigModal button.bmb-btn-primary,
#bulkConfigModal button.bmb-btn-footer-save {
    background: var(--bmb-gold-dark) !important;
    color: #fff !important;
}

/* Typography & labels */
.bmb-field-label,
.bmb-section-label {
    display: block;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--bmb-ink) !important;
    margin-bottom: 8px;
}

.bmb-page .form-label,
.bmb-page .text-muted {
    color: var(--bmb-muted) !important;
}

.bmb-page .form-label.small {
    font-size: 12px !important;
    font-weight: 800 !important;
    color: var(--bmb-ink) !important;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Hero */
.bmb-hero {
    text-align: center;
    margin-bottom: 24px;
    padding: 0 4px;
}

.bmb-hero__eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--bmb-gold-dark);
    margin-bottom: 8px;
}

.bmb-hero h1 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.65rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 10px;
    color: var(--bmb-ink);
    line-height: 1.15;
}

.bmb-hero p {
    color: var(--bmb-muted);
    margin: 0 auto 8px;
    font-size: 15px;
    line-height: 1.55;
}

.bmb-hero__trust {
    font-size: 12px;
    color: var(--bmb-gold-dark);
    font-weight: 600;
}

/* Cards */
.bmb-card {
    background: var(--bmb-surface);
    border-radius: var(--bmb-radius-lg);
    box-shadow: 0 4px 24px rgba(20, 18, 16, 0.07);
    border: 1px solid var(--bmb-border);
    padding: 18px;
    margin-bottom: 16px;
}

.bmb-card__head {
    margin-bottom: 16px;
}

.bmb-card__title,
.bmb-card h2.h5,
.bmb-card h2.h6 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--bmb-ink);
    margin: 0 0 4px;
}

.bmb-card__sub {
    font-size: 14px;
    color: var(--bmb-muted);
    margin: 0;
    line-height: 1.45;
}

/* Upload zone */
.bmb-upload-zone {
    border: 2px dashed rgba(198, 169, 114, 0.55);
    border-radius: var(--bmb-radius);
    padding: 28px 16px;
    text-align: center;
    background: linear-gradient(180deg, #fffdf8 0%, #faf6ee 100%);
    cursor: pointer;
    transition: border-color 0.2s var(--bmb-ease), background 0.2s var(--bmb-ease), transform 0.15s;
}

.bmb-upload-zone:active {
    transform: scale(0.99);
}

.bmb-upload-zone:hover,
.bmb-upload-zone.dragover {
    border-color: var(--bmb-gold);
    background: var(--bmb-gold-light);
}

.bmb-upload-icon {
    font-size: 2rem;
    margin-bottom: 8px;
    line-height: 1;
}

.bmb-upload-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--bmb-ink);
    margin-bottom: 6px;
}

.bmb-upload-sub {
    font-size: 13px;
    color: var(--bmb-muted);
    margin-bottom: 16px;
    line-height: 1.4;
}

.bmb-btn-upload {
    min-height: var(--bmb-touch);
    padding: 12px 24px !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    background: var(--bmb-gold-dark) !important;
    color: #fff !important;
    border: none !important;
}

/* Form controls */
.bmb-select {
    display: block;
    width: 100%;
    min-height: var(--bmb-touch);
    padding: 10px 14px;
    font-size: 15px;
    font-weight: 600;
    color: var(--bmb-ink) !important;
    background: var(--bmb-surface) !important;
    border: 2px solid var(--bmb-border) !important;
    border-radius: 12px;
    -webkit-text-fill-color: var(--bmb-ink) !important;
    appearance: auto;
}

.bmb-page .form-select,
.bmb-page .form-control {
    min-height: var(--bmb-touch);
    font-size: 15px;
    font-weight: 600;
    color: var(--bmb-ink) !important;
    border: 2px solid var(--bmb-border) !important;
    border-radius: 12px;
    -webkit-text-fill-color: var(--bmb-ink) !important;
}

/* Defaults panel */
.bmb-defaults {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.bmb-defaults__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.bmb-defaults__block {
    background: var(--bmb-panel);
    border: 1px solid var(--bmb-border);
    border-radius: var(--bmb-radius);
    padding: 14px;
}

.bmb-field {
    display: flex;
    flex-direction: column;
}

.bmb-btn-apply-all {
    width: 100% !important;
    min-height: 48px;
    font-size: 15px;
    border-radius: 14px !important;
}

/* Segment control (resolution) */
.bmb-segment {
    display: inline-flex;
    gap: 6px;
    padding: 4px;
    background: #e8e4de;
    border-radius: 12px;
}

.bmb-segment--full {
    display: flex;
    width: 100%;
}

.bmb-segment-btn {
    flex: 1;
    min-height: 40px;
    border: 2px solid transparent !important;
    background: var(--bmb-surface) !important;
    color: var(--bmb-muted) !important;
    font-size: 13px;
    font-weight: 700;
    padding: 8px 14px;
    border-radius: 9px !important;
    cursor: pointer;
    transition: 0.15s;
}

.bmb-segment-btn.active {
    background: var(--bmb-gold-light) !important;
    color: var(--bmb-gold-dark) !important;
    border-color: var(--bmb-gold-dark) !important;
    box-shadow: 0 2px 8px rgba(20, 18, 16, 0.1);
}

/* Qty grid */
.bmb-qty-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 6px;
}

.bmb-qty-chip {
    min-height: 40px;
    border: 2px solid var(--bmb-border);
    border-radius: 10px !important;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    background: var(--bmb-surface) !important;
    color: var(--bmb-ink) !important;
    transition: 0.15s;
    padding: 0 4px;
    text-align: center;
}

.bmb-qty-chip.active,
.bmb-chip.active {
    border-color: var(--bmb-gold-dark) !important;
    background: var(--bmb-gold-light) !important;
    color: var(--bmb-gold-dark) !important;
    box-shadow: inset 0 0 0 1px var(--bmb-gold);
}

.bmb-qty-control {
    display: flex;
    align-items: stretch;
    border: 2px solid var(--bmb-border);
    border-radius: 12px;
    overflow: hidden;
    background: var(--bmb-surface);
}

.bmb-qty-control--wide {
    width: 100%;
    max-width: 200px;
    margin-top: 10px;
}

.bmb-qty-control button {
    flex: 0 0 var(--bmb-touch);
    min-height: var(--bmb-touch);
    border: 0;
    background: var(--bmb-panel) !important;
    font-size: 20px;
    font-weight: 700;
    color: var(--bmb-ink) !important;
    cursor: pointer;
}

.bmb-qty-control input {
    flex: 1;
    min-width: 0;
    border: 0;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    color: var(--bmb-ink) !important;
    background: var(--bmb-surface) !important;
    -webkit-text-fill-color: var(--bmb-ink) !important;
}

/* Layout */
.bmb-layout {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Design grid — Lightroom / Canva style tiles */
.bmb-design-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

@media (min-width: 768px) {
    .bmb-design-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 14px;
    }
}

@media (min-width: 1200px) {
    .bmb-design-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.bmb-design-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--bmb-border);
    border-radius: var(--bmb-radius-lg);
    background: var(--bmb-surface);
    box-shadow: 0 2px 16px rgba(20, 18, 16, 0.06);
    overflow: hidden;
    transition: box-shadow 0.2s var(--bmb-ease), border-color 0.2s, transform 0.2s var(--bmb-ease);
}

.bmb-design-card:hover {
    border-color: rgba(198, 169, 114, 0.45);
    box-shadow: 0 8px 28px rgba(20, 18, 16, 0.1);
    transform: translateY(-1px);
}

.bmb-design-card__media {
    position: relative;
    width: 100%;
    min-height: 140px;
    aspect-ratio: 1;
    background: linear-gradient(145deg, #faf8f5 0%, #f0ebe3 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.bmb-design-card__media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    padding: 10px;
}

.bmb-design-card__footer {
    padding: 10px 12px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    border-top: 1px solid var(--bmb-border);
    background: var(--bmb-panel);
}

.bmb-design-card__status {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.bmb-design-card__status--ready { color: #15803d; }
.bmb-design-card__status--review { color: #b45309; }
.bmb-design-card__status--setup { color: var(--bmb-gold-dark); }
.bmb-design-card__status--uploading { color: var(--bmb-muted); }

.bmb-design-card__detail {
    font-size: 12px;
    color: var(--bmb-muted);
    line-height: 1.35;
    min-height: 1.35em;
}

.bmb-design-card__qty {
    font-size: 11px;
    font-weight: 700;
    color: var(--bmb-ink-soft);
}

.bmb-design-card__remove {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 4;
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    background: rgba(20, 18, 16, 0.72);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.15s ease, background 0.15s ease;
    font-size: 12px;
}

.bmb-design-card:hover .bmb-design-card__remove,
.bmb-design-card__remove:focus-visible {
    opacity: 1;
}

.bmb-design-card__remove:hover {
    background: #b91c1c;
}

@media (max-width: 767px) {
    .bmb-design-card__remove {
        opacity: 1;
    }
}

.bmb-design-card__actions {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    margin-top: 6px;
}

.bmb-design-card__actions .bmb-btn-primary,
.bmb-design-card__actions .bmb-btn-ghost:first-child {
    width: 100% !important;
}

.bmb-design-card__top {
    display: flex;
    align-items: baseline;
    gap: 8px;
    min-width: 0;
}

.bmb-design-card__index {
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: var(--bmb-gold-dark);
    text-transform: uppercase;
}

.bmb-design-card__name {
    font-size: 14px;
    font-weight: 700;
    color: var(--bmb-ink);
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    word-break: break-word;
}

.bmb-design-card__hint {
    font-size: 12px;
    color: var(--bmb-muted);
    line-height: 1.4;
}

.bmb-design-card__hint strong {
    color: #15803d;
    font-weight: 700;
}

.bmb-design-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.bmb-design-tag {
    font-size: 11px;
    font-weight: 700;
    color: var(--bmb-ink);
    background: var(--bmb-panel);
    border: 1px solid var(--bmb-border);
    padding: 4px 8px;
    border-radius: 999px;
    white-space: nowrap;
}

.bmb-design-price {
    font-size: 14px;
    font-weight: 800;
    color: var(--bmb-gold-dark);
    margin-left: auto;
}

.bmb-design-actions {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    margin-top: auto;
    padding-top: 4px;
}

.bmb-design-actions .bmb-btn-sm {
    min-height: 40px;
    white-space: nowrap;
}

.bmb-design-actions .bmb-btn-primary {
    width: 100% !important;
}

.bmb-btn-remove {
    min-width: 76px !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
}

.bmb-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 10px;
    padding: 4px 8px;
    border-radius: 999px;
    font-weight: 700;
    z-index: 3;
}

.bmb-badge.pending { background: #fef3c7; color: #92400e; }
.bmb-badge.done { background: #dcfce7; color: #166534; }
.bmb-badge.review { background: #ffedd5; color: #c2410c; }
.bmb-badge.loading { background: #e5e7eb; color: #4b5563; }

.bmb-progress { height: 4px; background: #e5e7eb; }
.bmb-progress > span { display: block; height: 100%; background: var(--bmb-gold); transition: width 0.2s; }

.bmb-summary { order: -1; }

.bmb-summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--bmb-muted);
}

.bmb-summary-row strong { color: var(--bmb-ink); }

.bmb-summary-total {
    font-size: 28px;
    font-weight: 800;
    margin: 0;
    color: var(--bmb-gold-dark);
}

.bmb-progress-track {
    height: 8px;
    background: #e8e4de;
    border-radius: 999px;
    overflow: hidden;
    margin: 12px 0 8px;
}

.bmb-progress-track > span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--bmb-gold-dark), var(--bmb-gold));
    transition: width 0.25s;
}

.bmb-cart-hint {
    font-size: 13px;
    color: var(--bmb-muted);
    line-height: 1.45;
    margin-bottom: 12px;
}

.bmb-cart-hint strong { color: var(--bmb-ink); }

/* Mobile sticky bar */
.bmb-mobile-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    background: var(--bmb-surface);
    border-top: 1px solid var(--bmb-border);
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -8px 32px rgba(20, 18, 16, 0.1);
}

.bmb-mobile-bar .bmb-cta {
    flex-shrink: 0;
    min-height: var(--bmb-touch);
    padding: 12px 20px !important;
    white-space: nowrap;
}

/* Buttons */
.bmb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    padding: 12px 20px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: 0.15s;
    line-height: 1.2;
    min-height: var(--bmb-touch);
}

.bmb-btn-sm { padding: 8px 14px; font-size: 13px; min-height: 36px; }

.bmb-btn-primary {
    background: var(--bmb-gold-dark) !important;
    color: #fff !important;
    border-color: var(--bmb-gold-dark) !important;
}

.bmb-btn-primary:hover { background: #7a6110 !important; }
.bmb-btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

.bmb-btn-ghost {
    background: var(--bmb-surface) !important;
    color: var(--bmb-ink) !important;
    border-color: var(--bmb-border) !important;
}

.bmb-page .btn-primary.bmb-cta,
.bmb-mobile-bar .bmb-cta {
    background: var(--bmb-gold-dark) !important;
    border-color: var(--bmb-gold-dark) !important;
    color: #fff !important;
    font-weight: 700;
    border-radius: 14px;
    min-height: 48px;
}

.bmb-page .btn-sm {
    min-height: 40px;
    font-weight: 700;
}

.bmb-toast {
    position: fixed;
    bottom: calc(80px + env(safe-area-inset-bottom, 0px));
    left: 16px;
    right: 16px;
    z-index: 3000;
    background: #141210;
    color: #fff;
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    box-shadow: 0 12px 40px rgba(20, 18, 16, 0.25);
}

/* Upload banner */
.bmb-upload-banner {
    position: sticky;
    top: 60px;
    z-index: 100;
    margin-bottom: 12px;
    background: #141210;
    color: #fff;
    border-radius: 12px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.bmb-upload-banner-track {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    overflow: hidden;
}

.bmb-upload-banner-track > span {
    display: block;
    height: 100%;
    background: var(--bmb-gold);
}

.bmb-spinner {
    width: 28px;
    height: 28px;
    border: 3px solid rgba(255, 255, 255, 0.25);
    border-top-color: #fff;
    border-radius: 50%;
    animation: bmb-spin 0.8s linear infinite;
    flex-shrink: 0;
}

@keyframes bmb-spin { to { transform: rotate(360deg); } }

@keyframes bmb-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(158, 124, 12, 0.55); }
    50% { box-shadow: 0 0 0 8px rgba(158, 124, 12, 0); }
}

.bmb-btn-pulse {
    animation: bmb-pulse 1.2s ease-in-out infinite;
    position: relative;
    z-index: 1;
}

#bmb-designs-section.bmb-section-flash {
    animation: bmb-section-flash 1.5s ease-out;
}

@keyframes bmb-section-flash {
    0% { box-shadow: 0 0 0 0 rgba(198, 169, 114, 0.6); }
    100% { box-shadow: 0 4px 24px rgba(20, 18, 16, 0.07); }
}

.bmb-card-loading {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    font-size: 12px;
    color: var(--bmb-muted);
    gap: 8px;
    z-index: 2;
}

[x-cloak] { display: none !important; }

/* ========== MODAL ========== */
/* Override global style.css:
   body .modal-dialog { position:absolute; top:10% }
   .modal-content { margin:6% auto; padding:20px; text-align:center } */
#bulkConfigModal {
    z-index: 1060 !important;
    position: fixed !important;
    inset: 0 !important;
    padding: 0 !important;
    overflow-x: hidden;
    overflow-y: auto;
    display: none;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
    -webkit-font-smoothing: antialiased;
    color: var(--bmb-ink);
}

#bulkConfigModal:not(.show) {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

#bulkConfigModal.show,
#bulkConfigModal.modal.show {
    display: flex !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

body #bulkConfigModal .modal-dialog.bmb-modal-dialog {
    position: relative !important;
    top: 0 !important;
    left: auto !important;
    right: auto !important;
    color: var(--bmb-ink) !important;
    margin: 0 !important;
    max-width: 100%;
    width: 100%;
    height: 100%;
    max-height: 100dvh;
    display: flex !important;
    flex-direction: column !important;
    pointer-events: none;
    transform: none !important;
    align-self: stretch !important;
}

#bulkConfigModal .modal-content.bmb-modal,
#bulkConfigModal .bmb-modal {
    margin: 0 !important;
    padding: 0 !important;
    text-align: left !important;
    background-color: #ffffff !important;
    border: none !important;
    width: 100% !important;
}

#bulkConfigModal.show .modal-dialog.bmb-modal-dialog {
    transform: none !important;
}

#bulkConfigModal .modal-dialog.bmb-modal-dialog .bmb-modal {
    pointer-events: auto;
}

#bulkConfigModal .bmb-modal {
    position: relative;
    border: 0;
    border-radius: 0;
    display: grid !important;
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    background: var(--bmb-surface) !important;
    overflow: hidden !important;
    min-height: 0;
}

#bulkConfigModal .bmb-modal-header,
#bulkConfigModal .bmb-modal-preview-strip,
#bulkConfigModal .bmb-modal-footer {
    flex-shrink: 0;
}

/* Never vertically center — keeps dialog flush to top */
#bulkConfigModal .modal-dialog-centered::before {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
}

#bulkConfigModal .modal-dialog-centered {
    align-items: stretch !important;
    min-height: 0 !important;
}

#bulkConfigModal .modal-dialog.modal-dialog-scrollable .bmb-modal {
    max-height: 100dvh;
}

/* Mobile fullscreen (BS4 lacks modal-fullscreen-md-down) */
@media (max-width: 991.98px) {
    #bulkConfigModal .modal-dialog.bmb-modal-dialog {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        margin: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
        height: 100% !important;
        max-height: 100% !important;
    }

    #bulkConfigModal .bmb-modal {
        height: 100dvh !important;
        max-height: 100dvh !important;
        border-radius: 0 !important;
        grid-template-rows: auto auto minmax(0, 1fr) auto;
    }

    #bulkConfigModal .modal-dialog.modal-dialog-scrollable .bmb-modal {
        max-height: 100dvh !important;
    }

    #bulkConfigModal .bmb-modal-body {
        overflow-y: auto !important;
    }

    #bulkConfigModal .bmb-config-options {
        overflow: visible !important;
    }
}

.bmb-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    background: linear-gradient(135deg, #141210 0%, #2a2318 100%);
    color: #fff;
    flex-shrink: 0;
    position: relative;
    z-index: 12;
    pointer-events: auto;
}

.bmb-modal-header__text { min-width: 0; flex: 1; }

.bmb-modal-eyebrow {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--bmb-gold);
}

.bmb-modal-title {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 0.95rem;
    font-weight: 700;
    margin: 4px 0 0;
    color: #fff !important;
    line-height: 1.45;
}

.bmb-modal-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px 4px;
}

.bmb-modal-breadcrumb__item {
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.95rem;
}

.bmb-modal-breadcrumb__type {
    color: var(--bmb-gold);
    font-size: 0.85rem;
    font-weight: 600;
    font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
}

.bmb-modal-breadcrumb__sep {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
    font-weight: 400;
    padding: 0 2px;
}

.bmb-modal-breadcrumb__item--active {
    color: #fff;
    font-weight: 800;
    background: rgba(198, 169, 114, 0.22);
    padding: 2px 8px;
    border-radius: 6px;
    font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
}

.bmb-modal-filename {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.65);
    margin-top: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bmb-modal-close {
    border: 0;
    background: rgba(255, 255, 255, 0.15) !important;
    color: #fff !important;
    width: 40px !important;
    height: 40px !important;
    min-height: 40px;
    border-radius: 10px;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
    position: relative;
    z-index: 13;
    pointer-events: auto !important;
}

.bmb-preview-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 160px;
    width: 100%;
    color: var(--bmb-muted);
    font-size: 13px;
    font-weight: 600;
    background: var(--bmb-panel);
    border: 1px dashed var(--bmb-border);
    border-radius: 12px;
}

.bmb-preview-placeholder i {
    font-size: 28px;
    color: var(--bmb-gold-dark);
    opacity: 0.65;
}

/* Mobile preview strip */
.bmb-modal-preview-strip {
    display: flex;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bmb-panel);
    border-bottom: 1px solid var(--bmb-border);
    flex-shrink: 0;
}

.bmb-preview-wrap--compact {
    flex: 0 0 88px;
    width: 88px;
    min-height: 88px;
    padding: 6px;
    border-radius: 12px;
    background: var(--bmb-cream);
    border: 1px solid var(--bmb-border);
    display: flex;
    align-items: center;
    justify-content: center;
}

.bmb-preview-wrap--compact .bmb-preview-img {
    max-height: 76px;
    max-width: 100%;
    width: auto;
    object-fit: contain;
}

.bmb-preview-strip-meta {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    justify-content: center;
}

.bmb-rec-inline {
    font-size: 13px;
    color: var(--bmb-ink);
}

.bmb-rec-inline__label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #15803d;
    margin-right: 6px;
}

#bulkConfigModal .bmb-modal-body,
#bulkConfigModal .modal-body.bmb-modal-body {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding: 16px;
    padding-bottom: 24px;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    min-height: 0 !important;
    max-height: none !important;
    flex: 1 1 auto !important;
    background: #ffffff !important;
}

.bmb-config-layout {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-height: min-content;
}

.bmb-config-preview { display: none; }

.bmb-config-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bmb-config-panel {
    background: var(--bmb-panel);
    border: 1px solid var(--bmb-border);
    border-radius: var(--bmb-radius);
    padding: 14px;
}

.bmb-section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.bmb-selected-pill {
    font-size: 11px;
    font-weight: 600;
    color: var(--bmb-gold-dark);
    background: var(--bmb-gold-light);
    border: 2px solid var(--bmb-gold-dark);
    padding: 5px 12px;
    border-radius: 999px;
    white-space: nowrap;
}

.bmb-selected-pill strong {
    font-weight: 800;
    color: var(--bmb-ink);
}

/* Type cards */
.bmb-type-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.bmb-type-card {
    display: block;
    border: 2px solid var(--bmb-border);
    border-radius: 12px;
    padding: 11px 14px;
    background: var(--bmb-surface);
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: var(--bmb-ink) !important;
    min-height: 40px;
    transition: 0.15s;
}

.bmb-type-card span { color: var(--bmb-ink) !important; }

.bmb-type-card input { position: absolute; opacity: 0; pointer-events: none; }

.bmb-type-card.active {
    border-color: var(--bmb-gold-dark);
    background: var(--bmb-gold-light);
    box-shadow: inset 0 0 0 1px var(--bmb-gold);
}

.bmb-type-card.active span { color: var(--bmb-gold-dark) !important; }

/* Corners */
.bmb-corner-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
}

.bmb-corner-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 0;
    min-width: 0;
    min-height: 40px;
    border: 2px solid var(--bmb-border);
    border-radius: 999px;
    padding: 8px 10px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    background: var(--bmb-surface);
    color: var(--bmb-ink) !important;
    text-align: center;
    white-space: nowrap;
}

.bmb-corner-chip input { position: absolute; opacity: 0; pointer-events: none; }

.bmb-corner-chip.active {
    border-color: var(--bmb-gold-dark);
    background: var(--bmb-gold-dark);
    color: #fff !important;
}

.bmb-corner-chip.active span { color: #fff !important; }

/* Size tabs */
.bmb-size-tabs {
    display: flex;
    width: 100%;
    gap: 4px;
    padding: 4px;
    background: #e8e4de;
    border-radius: 12px;
}

.bmb-size-tabs--full .bmb-tab { flex: 1; text-align: center; }

.bmb-tab {
    border: 0 !important;
    background: transparent !important;
    color: var(--bmb-muted) !important;
    font-size: 13px;
    font-weight: 700;
    padding: 10px 8px;
    border-radius: 9px !important;
    cursor: pointer;
    min-height: 40px;
}

.bmb-tab.active {
    background: var(--bmb-surface) !important;
    color: var(--bmb-ink) !important;
    box-shadow: 0 2px 6px rgba(20, 18, 16, 0.1);
}

/* Size grid */
.bmb-size-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.bmb-size-grid--all {
    max-height: 280px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.bmb-size-btn {
    border: 2px solid var(--bmb-border);
    background: var(--bmb-surface) !important;
    border-radius: 10px;
    padding: 10px 10px;
    text-align: left;
    min-height: 58px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    cursor: pointer;
    color: var(--bmb-ink) !important;
    position: relative;
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.bmb-size-label {
    font-weight: 700;
    font-size: 13px;
    line-height: 1.2;
    color: var(--bmb-ink) !important;
}

.bmb-size-hint {
    font-size: 11px;
    color: var(--bmb-muted) !important;
    line-height: 1.3;
}

.bmb-size-badge { font-size: 10px; font-weight: 700; }
.bmb-size-badge.ok { color: #15803d !important; }
.bmb-size-badge.warn { color: #b45309 !important; }

.bmb-size-badge--selected {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    color: #fff !important;
    background: var(--bmb-gold-dark) !important;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.bmb-size-btn.active {
    border-color: var(--bmb-gold-dark) !important;
    border-width: 3px !important;
    background: linear-gradient(180deg, #fff9eb 0%, var(--bmb-gold-light) 100%) !important;
    box-shadow: 0 0 0 2px rgba(158, 124, 12, 0.2), inset 0 0 0 1px var(--bmb-gold);
}

.bmb-size-btn.active .bmb-size-label {
    color: var(--bmb-gold-dark) !important;
    font-weight: 800;
    font-size: 14px;
}

.bmb-size-btn.recommended:not(.active) { border-color: #86efac; }

.bmb-custom-size {
    display: flex;
    align-items: flex-end;
    gap: 10px;
}

.bmb-custom-size > div { flex: 1; }

.bmb-custom-x {
    font-size: 20px;
    font-weight: 700;
    color: var(--bmb-muted);
    padding-bottom: 12px;
}

/* Preview (desktop) */
.bmb-preview-wrap {
    background: var(--bmb-cream);
    border-radius: 12px;
    padding: 12px;
    position: relative;
}

.bmb-preview-img {
    width: 100%;
    max-height: min(360px, 42vh);
    object-fit: contain;
    object-position: center;
    display: block;
    margin: 0 auto;
    background: transparent;
}

.bmb-preview-loading {
    position: absolute;
    inset: 8px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.88);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--bmb-ink);
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
}

.bmb-quality-panel {
    background: var(--bmb-surface);
    border: 1px solid var(--bmb-border);
    border-radius: 12px;
    padding: 12px;
}

.bmb-quality-meta { font-size: 12px; color: var(--bmb-muted); }
.bmb-dot { margin: 0 4px; color: #cbd5e1; }

.bmb-rec-box {
    background: #ecfdf5;
    border-radius: 10px;
    padding: 10px 12px;
    margin-top: 8px;
}

.bmb-rec-title {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #15803d;
}

.bmb-rec-size { font-size: 14px; font-weight: 700; color: #14532d; margin-top: 2px; }
.bmb-rec-reason { font-size: 12px; color: #166534; margin-top: 4px; line-height: 1.4; }

/* Modal footer — sticky, always readable */
.bmb-modal-footer {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 16px;
    padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(180deg, #fff 0%, #faf8f5 100%);
    border-top: 2px solid var(--bmb-border);
    box-shadow: 0 -8px 32px rgba(20, 18, 16, 0.1);
    z-index: 5;
}

.bmb-footer-price {
    display: block;
    width: 100%;
}

.bmb-footer-price-label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--bmb-muted) !important;
    margin-bottom: 4px;
}

.bmb-footer-price-value {
    display: block;
    font-size: 22px;
    font-weight: 800;
    color: var(--bmb-ink) !important;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.bmb-footer-price-value.text-muted {
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1.45;
}

.bmb-footer-price-value--inline {
    display: inline !important;
    font-size: 22px !important;
}

.bmb-footer-price-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
}

.bmb-footer-mrp {
    font-size: 14px;
    font-weight: 600;
    color: var(--bmb-muted) !important;
    text-decoration: line-through;
}

.bmb-footer-mrp--inline {
    margin-left: 6px;
    font-size: 13px;
}

.bmb-footer-discount {
    font-size: 11px;
    font-weight: 800;
    color: #fff;
    background: #dc2626;
    padding: 3px 8px;
    border-radius: 999px;
    letter-spacing: 0.02em;
}

.bmb-footer-coupon-hint {
    font-size: 11px;
    font-weight: 600;
    color: var(--bmb-gold-dark);
    margin-top: 6px;
    line-height: 1.4;
}

.bmb-footer-price-sub {
    display: inline;
    font-size: 14px;
    font-weight: 600;
    color: var(--bmb-muted) !important;
}

.bmb-footer-total {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--bmb-muted) !important;
    margin-top: 4px;
}

.bmb-footer-actions {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
    width: 100%;
}

.bmb-btn-footer-close {
    min-width: 92px !important;
    min-height: 48px !important;
}

.bmb-btn-footer-save {
    min-height: 48px !important;
    font-size: 15px !important;
    width: 100% !important;
}

/* ========== TABLET+ ========== */
@media (min-width: 576px) {
    .bmb-page { padding-top: 24px; }

    .bmb-hero h1 { font-size: 2rem; }

    .bmb-defaults__grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .bmb-design-card__media {
        flex: 0 0 120px;
        width: 120px;
        min-height: 120px;
    }

    .bmb-design-card__media img {
        min-height: 120px;
        max-height: 160px;
    }

    .bmb-qty-grid {
        grid-template-columns: repeat(7, minmax(0, 1fr));
        gap: 8px;
    }

    .bmb-qty-chip {
        min-height: 44px;
        font-size: 14px;
    }

    .bmb-corner-chip {
        font-size: 13px;
        padding: 10px 14px;
    }

    .bmb-type-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bmb-size-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .bmb-toast {
        left: auto;
        right: 24px;
        bottom: 24px;
        max-width: 360px;
        text-align: left;
    }
}

/* ========== DESKTOP ========== */
@media (min-width: 992px) {
    .bmb-page {
        padding: 40px 0 80px;
    }

    .bmb-card { padding: 24px; margin-bottom: 24px; }

    .bmb-hero { margin-bottom: 36px; }
    .bmb-hero h1 { font-size: 2.25rem; }

    .bmb-layout {
        display: grid;
        grid-template-columns: 1fr 320px;
        gap: 24px;
        align-items: start;
    }

    .bmb-summary {
        order: 0;
        position: sticky;
        top: 88px;
    }

    .bmb-summary-card {
        padding: 0;
        overflow: hidden;
    }

    .bmb-mobile-bar { display: none; }

    .bmb-page { padding-bottom: 40px; }

    /* Modal: top-aligned dialog on desktop (no vertical centering gap) */
    #bulkConfigModal.modal {
        display: flex !important;
        align-items: flex-start !important;
        justify-content: center !important;
        padding: 12px 16px !important;
    }

    body #bulkConfigModal .modal-dialog.bmb-modal-dialog {
        margin: 0 auto !important;
        top: 0 !important;
        max-width: 1040px;
        width: 100%;
        height: calc(100dvh - 24px);
        max-height: calc(100dvh - 24px);
        flex: 0 0 auto;
    }

    #bulkConfigModal .modal-dialog.modal-dialog-scrollable .bmb-modal {
        max-height: calc(100dvh - 24px);
    }

    #bulkConfigModal .bmb-modal {
        border-radius: 20px;
        box-shadow: 0 24px 80px rgba(20, 18, 16, 0.28);
        height: 100%;
        max-height: 100%;
        /* preview strip hidden → header | scroll body | footer */
        grid-template-rows: auto minmax(0, 1fr) auto;
    }

    .bmb-modal-preview-strip { display: none !important; }

    .bmb-modal-header { padding: 20px 24px; }
    .bmb-modal-title { font-size: 1.05rem; }

    .bmb-modal-breadcrumb__item { font-size: 1.05rem; }

    #bulkConfigModal .bmb-modal-body {
        padding: 20px 24px 24px;
        overflow: hidden !important;
        display: flex !important;
        flex-direction: column !important;
    }

    .bmb-config-layout {
        flex: 1 1 auto;
        flex-direction: row;
        gap: 24px;
        align-items: stretch;
        min-height: 0;
        overflow: hidden;
    }

    .bmb-config-preview {
        display: flex;
        flex-direction: column;
        flex: 0 0 34%;
        max-width: 34%;
        min-height: 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .bmb-preview-wrap {
        min-height: 180px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .bmb-config-options {
        flex: 1 1 auto;
        min-width: 0;
        min-height: 0;
        overflow-y: auto !important;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        padding-right: 6px;
        padding-bottom: 8px;
    }

    .bmb-size-grid {
        grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
    }

    .bmb-modal-footer {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 24px;
        padding: 18px 24px;
    }

    .bmb-footer-price {
        flex: 1;
        min-width: 240px;
    }

    .bmb-footer-actions {
        width: auto;
        flex-shrink: 0;
        grid-template-columns: auto auto;
        gap: 12px;
    }

    .bmb-btn-footer-save {
        min-width: 180px !important;
        width: auto !important;
    }

    .bmb-footer-price-value { font-size: 24px; }

}

/* ========== WORKSPACE MODE (collapsed hero) ========== */
.bmb-page--workspace {
    padding-top: 12px;
}

.bmb-page--workspace .bmb-hero {
    display: none;
}

.bmb-page--workspace .bmb-card--upload {
    display: none;
}

.bmb-page--workspace .bmb-hero-split--compact {
    margin-bottom: 16px;
}

/* ========== HERO SPLIT & COLLAGE ========== */
.bmb-hero-split {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 24px;
    align-items: center;
}

.bmb-hero-split__copy {
    text-align: left;
}

.bmb-hero-split__copy .bmb-hero__eyebrow {
    text-align: left;
}

.bmb-hero-split__copy h1 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.12;
    margin-bottom: 12px;
    color: var(--bmb-ink);
}

.bmb-hero-split__sub {
    font-size: 15px;
    color: var(--bmb-muted);
    line-height: 1.55;
    margin-bottom: 14px;
}

.bmb-hero-trust-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.bmb-hero-trust-chip {
    font-size: 11px;
    font-weight: 700;
    color: var(--bmb-gold-dark);
    background: var(--bmb-gold-light);
    border: 1px solid rgba(158, 124, 12, 0.25);
    padding: 6px 10px;
    border-radius: 999px;
}

.bmb-hero-split__link {
    font-size: 13px;
    font-weight: 600;
    color: var(--bmb-gold-dark);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.bmb-hero-collage {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    min-height: 220px;
}

.bmb-hero-collage__item {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--bmb-border);
    background: var(--bmb-surface);
    box-shadow: 0 8px 24px rgba(20, 18, 16, 0.08);
}

.bmb-hero-collage__item img {
    width: 100%;
    height: 100%;
    min-height: 100px;
    object-fit: cover;
    display: block;
}

.bmb-hero-collage__item--wide {
    grid-column: span 2;
}

.bmb-upload-samples {
    margin-top: 20px;
}

.bmb-upload-samples__label {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--bmb-muted);
    margin-bottom: 10px;
}

.bmb-upload-samples__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.bmb-upload-samples__item {
    text-align: center;
    margin: 0;
}

.bmb-upload-samples__item img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--bmb-border);
    display: block;
}

.bmb-upload-samples__item figcaption {
    font-size: 11px;
    font-weight: 600;
    color: var(--bmb-ink);
    margin-top: 6px;
    line-height: 1.3;
}

.bmb-hero-collage__item--tall {
    grid-row: span 2;
}

/* ========== STEPPER ========== */
.bmb-stepper {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 20px;
    padding: 4px;
    background: var(--bmb-surface);
    border: 1px solid var(--bmb-border);
    border-radius: 999px;
    box-shadow: 0 2px 12px rgba(20, 18, 16, 0.06);
}

.bmb-stepper__step {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    color: var(--bmb-muted);
    transition: background 0.2s var(--bmb-ease), color 0.2s;
}

.bmb-stepper__num {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    background: #e8e4de;
    color: var(--bmb-muted);
}

.bmb-stepper__step--active {
    background: var(--bmb-gold-light);
    color: var(--bmb-gold-dark);
}

.bmb-stepper__step--active .bmb-stepper__num {
    background: var(--bmb-gold-dark);
    color: #fff;
}

.bmb-stepper__step--done {
    color: #15803d;
}

.bmb-stepper__step--done .bmb-stepper__num {
    background: #dcfce7;
    color: #166534;
}

.bmb-stepper__check {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    background: #dcfce7;
    color: #166534;
}

.bmb-stepper__label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ========== TYPE CARDS (visual material) ========== */
.bmb-type-card--visual {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0;
    overflow: hidden;
    min-height: 0;
}

.bmb-type-card--visual input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.bmb-type-card__media {
    aspect-ratio: 4 / 3;
    background: linear-gradient(145deg, #faf8f5 0%, #f0ebe3 100%);
    overflow: hidden;
}

.bmb-type-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.bmb-type-card__body {
    padding: 10px 12px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.bmb-type-card__name {
    font-size: 14px;
    font-weight: 800;
    color: var(--bmb-ink);
    line-height: 1.25;
}

.bmb-type-card__meta {
    font-size: 11px;
    font-weight: 600;
    color: var(--bmb-muted);
    line-height: 1.35;
}

.bmb-type-card__best {
    font-size: 11px;
    color: var(--bmb-gold-dark);
    font-weight: 600;
}

.bmb-type-card__price {
    font-size: 12px;
    font-weight: 800;
    color: var(--bmb-gold-dark);
    margin-top: 2px;
}

.bmb-type-card--visual.active {
    border-color: var(--bmb-gold-dark);
    box-shadow: 0 0 0 2px rgba(158, 124, 12, 0.15), inset 0 0 0 1px var(--bmb-gold);
}

.bmb-type-card--visual.active .bmb-type-card__name {
    color: var(--bmb-gold-dark);
}

/* ========== APPLY DEFAULTS CARD ========== */
.bmb-apply-card {
    background: linear-gradient(180deg, #fffdf8 0%, var(--bmb-panel) 100%);
    border: 1px solid rgba(198, 169, 114, 0.35);
    border-radius: var(--bmb-radius-lg);
    padding: 16px;
    margin-bottom: 16px;
}

.bmb-apply-card__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.bmb-apply-card__summary {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}

.bmb-apply-card__toggle {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    background: var(--bmb-surface);
    border: 1px solid var(--bmb-border);
    border-radius: 12px;
    margin-bottom: 14px;
    cursor: pointer;
}

.bmb-apply-card__toggle input {
    margin-top: 3px;
    flex-shrink: 0;
    accent-color: var(--bmb-gold-dark);
}

.bmb-apply-card__toggle-text {
    font-size: 13px;
    color: var(--bmb-ink);
    line-height: 1.45;
}

.bmb-apply-card__toggle-text strong {
    display: block;
    font-weight: 800;
    margin-bottom: 2px;
}

.bmb-defaults__block--size {
    margin-bottom: 14px;
}

.bmb-field-hint {
    font-size: 12px;
    color: var(--bmb-muted);
    line-height: 1.45;
}

.bmb-size-tier-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.bmb-size-tier {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: 12px 10px;
    border: 2px solid var(--bmb-border);
    border-radius: 12px;
    background: var(--bmb-surface);
    text-align: left;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.bmb-size-tier:hover {
    border-color: rgba(198, 169, 114, 0.65);
}

.bmb-size-tier.active {
    border-color: var(--bmb-gold-dark);
    background: linear-gradient(180deg, #fffdf8 0%, #fff8eb 100%);
    box-shadow: 0 0 0 1px rgba(198, 169, 114, 0.25);
}

.bmb-size-tier__name {
    font-size: 14px;
    font-weight: 800;
    color: var(--bmb-ink);
}

.bmb-size-tier__hint {
    font-size: 11px;
    color: var(--bmb-muted);
    line-height: 1.3;
}

.bmb-size-tier-note {
    font-size: 12px;
    color: var(--bmb-muted);
    margin: 10px 0 0;
    line-height: 1.45;
}

.bmb-advanced-size {
    margin-top: 12px;
    font-size: 12px;
    color: var(--bmb-muted);
}

.bmb-advanced-size summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--bmb-ink-soft);
    user-select: none;
}

.bmb-advanced-size[open] summary {
    margin-bottom: 8px;
}

@media (max-width: 575px) {
    .bmb-size-tier-grid {
        grid-template-columns: 1fr;
    }
}

/* ========== DESIGN CARD STATUS COLORS ========== */
.bmb-design-card--ready {
    border-color: rgba(22, 101, 52, 0.35);
}

.bmb-design-card--ready .bmb-design-card__media {
    background: linear-gradient(145deg, #f0fdf4 0%, #ecfdf5 100%);
}

.bmb-design-card--review {
    border-color: rgba(180, 83, 9, 0.45);
    box-shadow: 0 0 0 1px rgba(180, 83, 9, 0.12);
}

.bmb-design-card--review .bmb-design-card__media {
    background: linear-gradient(145deg, #fffbeb 0%, #fef3c7 100%);
}

.bmb-design-card--setup {
    border-color: rgba(198, 169, 114, 0.45);
}

.bmb-design-card--setup .bmb-design-card__media {
    background: linear-gradient(145deg, #fffdf8 0%, #faf6ee 100%);
}

.bmb-design-card--uploading {
    opacity: 0.92;
    pointer-events: none;
}

.bmb-design-card__status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 4px;
}

.bmb-design-card--ready .bmb-design-card__status-dot { background: #16a34a; }
.bmb-design-card--review .bmb-design-card__status-dot { background: #d97706; }
.bmb-design-card--setup .bmb-design-card__status-dot { background: var(--bmb-gold-dark); }
.bmb-design-card--uploading .bmb-design-card__status-dot { background: #94a3b8; animation: bmb-pulse-dot 1.2s ease-in-out infinite; }

@keyframes bmb-pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.85); }
}

/* ========== QUALITY BADGE ON CARDS ========== */
.bmb-quality-badge {
    position: absolute;
    bottom: 8px;
    left: 8px;
    z-index: 3;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 4px 7px;
    border-radius: 999px;
    line-height: 1;
}

.bmb-quality-badge--excellent {
    background: #dcfce7;
    color: #166534;
    border: 1px solid rgba(22, 101, 52, 0.2);
}

.bmb-quality-badge--good {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid rgba(180, 83, 9, 0.2);
}

.bmb-quality-badge--warn {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid rgba(153, 27, 27, 0.2);
}

/* ========== SUMMARY BREAKDOWN ========== */
.bmb-summary-breakdown {
    margin: 0;
    padding: 0 20px 16px;
    border-top: 1px dashed var(--bmb-border);
}

.bmb-summary-breakdown__title {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--bmb-muted);
    margin-bottom: 10px;
}

.bmb-summary-breakdown__row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    font-size: 13px;
    color: var(--bmb-muted);
    margin-bottom: 8px;
    line-height: 1.35;
}

.bmb-summary-breakdown__row strong {
    color: var(--bmb-ink);
    font-weight: 700;
    text-align: right;
}

.bmb-summary-breakdown__meta {
    display: block;
    font-size: 11px;
    color: var(--bmb-muted);
    margin-top: 2px;
}

.bmb-summary-mrp {
    font-size: 14px;
    font-weight: 600;
    color: var(--bmb-muted);
    text-decoration: line-through;
    margin-right: 8px;
}

.bmb-summary-discount {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    color: #fff;
    background: #dc2626;
    padding: 3px 8px;
    border-radius: 999px;
}

/* ========== PROGRESS RING ========== */
.bmb-progress-ring {
    --bmb-ring-size: 56px;
    --bmb-ring-stroke: 5px;
    --bmb-ring-pct: 0;
    width: var(--bmb-ring-size);
    height: var(--bmb-ring-size);
    border-radius: 50%;
    background: conic-gradient(
        var(--bmb-gold-dark) calc(var(--bmb-ring-pct) * 1%),
        #e8e4de 0
    );
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.bmb-progress-ring__inner {
    width: calc(var(--bmb-ring-size) - var(--bmb-ring-stroke) * 2);
    height: calc(var(--bmb-ring-size) - var(--bmb-ring-stroke) * 2);
    border-radius: 50%;
    background: var(--bmb-surface);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    color: var(--bmb-ink);
    line-height: 1.1;
}

.bmb-progress-ring__label {
    font-size: 9px;
    font-weight: 700;
    color: var(--bmb-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ========== SKELETON LOADERS ========== */
.bmb-skeleton {
    background: linear-gradient(90deg, #ece8e2 25%, #f5f2ec 50%, #ece8e2 75%);
    background-size: 200% 100%;
    animation: bmb-skeleton-shimmer 1.2s ease-in-out infinite;
    border-radius: 8px;
}

.bmb-skeleton--text {
    height: 14px;
    margin-bottom: 8px;
}

.bmb-skeleton--text-sm {
    height: 10px;
    width: 60%;
}

.bmb-skeleton--price {
    height: 28px;
    width: 120px;
    margin: 12px 0;
}

.bmb-skeleton--row {
    height: 36px;
    margin-bottom: 8px;
}

@keyframes bmb-skeleton-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ========== TRUST FOOTER ========== */
.bmb-trust-footer {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--bmb-border);
}

.bmb-trust-footer__title {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--bmb-ink);
    margin-bottom: 16px;
    text-align: center;
}

.bmb-trust-steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 24px;
}

.bmb-trust-step {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px;
    background: var(--bmb-surface);
    border: 1px solid var(--bmb-border);
    border-radius: var(--bmb-radius);
}

.bmb-trust-step__num {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--bmb-gold-light);
    color: var(--bmb-gold-dark);
    font-size: 12px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bmb-trust-step__text {
    font-size: 14px;
    color: var(--bmb-muted);
    line-height: 1.45;
}

.bmb-trust-step__text strong {
    display: block;
    color: var(--bmb-ink);
    font-weight: 700;
    margin-bottom: 2px;
}

.bmb-trust-strip {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 16px;
    font-size: 12px;
    font-weight: 700;
    color: var(--bmb-gold-dark);
    margin-bottom: 20px;
}

.bmb-trust-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

/* ========== FINISH GRID ========== */
.bmb-finish-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 24px;
}

.bmb-finish-grid__item {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--bmb-border);
    background: var(--bmb-surface);
}

.bmb-finish-grid__item img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
}

.bmb-finish-grid__label {
    padding: 8px 10px;
    font-size: 11px;
    font-weight: 700;
    color: var(--bmb-ink);
    text-align: center;
    background: var(--bmb-panel);
}

/* ========== CROP EDITOR (overlay) ========== */
.bmb-crop-overlay {
    position: absolute;
    inset: 0;
    z-index: 20;
    background: rgba(20, 18, 16, 0.88);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
}

.bmb-crop-overlay__panel {
    width: 100%;
    max-width: 640px;
    max-height: calc(100% - 24px);
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
}

.bmb-crop-overlay__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--bmb-border);
    background: linear-gradient(180deg, #fffdf8 0%, #fff 100%);
}

.bmb-crop-overlay__title {
    font-size: 15px;
    font-weight: 800;
    color: var(--bmb-ink);
}

.bmb-crop-overlay__sub {
    font-size: 12px;
    color: var(--bmb-muted);
    margin-top: 2px;
}

.bmb-crop-overlay__close {
    border: none;
    background: transparent;
    font-size: 28px;
    line-height: 1;
    color: var(--bmb-muted);
    cursor: pointer;
    padding: 0 4px;
}

.bmb-crop-editor--overlay {
    display: flex;
    flex-direction: column;
    padding: 12px 12px 0;
    background: #141210;
    flex: 1;
    min-height: 0;
}

.bmb-crop-overlay__controls {
    padding: 14px 16px 16px;
    background: var(--bmb-surface);
    border-top: 1px solid var(--bmb-border);
}

.bmb-crop-editor__stage {
    flex: 1;
    min-height: 240px;
    max-height: min(52vh, 420px);
    overflow: hidden;
    border-radius: 12px;
    background: #0a0908;
}

.bmb-crop-editor__stage img {
    max-width: 100%;
    display: block;
}

.bmb-crop-editor__stage .cropper-container {
    max-height: min(52vh, 420px);
}

.bmb-crop-editor__toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    justify-content: center;
}

.bmb-crop-tool {
    display: inline-flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-width: 56px !important;
    width: auto !important;
    height: auto !important;
    min-height: 52px !important;
    padding: 6px 8px !important;
    border: 2px solid var(--bmb-border) !important;
    border-radius: 10px !important;
    background: var(--bmb-panel) !important;
    color: var(--bmb-ink) !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    cursor: pointer;
    line-height: 1.2;
}

.bmb-crop-tool i {
    font-size: 16px;
    color: var(--bmb-gold-dark);
}

.bmb-crop-tool span {
    color: var(--bmb-ink) !important;
}

.bmb-crop-tool:hover {
    border-color: var(--bmb-gold-dark) !important;
    background: var(--bmb-gold-light) !important;
}

.bmb-crop-size-picker {
    margin-top: 14px;
}

.bmb-size-grid--crop {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 12px;
}

.bmb-size-btn--crop {
    min-height: 40px !important;
    padding: 8px 6px !important;
    font-size: 12px !important;
}

.bmb-size-btn--crop.active {
    border-color: var(--bmb-gold-dark) !important;
    background: var(--bmb-gold-light) !important;
    color: var(--bmb-gold-dark) !important;
}

.bmb-custom-size--crop {
    margin-top: 4px;
}

.bmb-custom-size--crop .bmb-select {
    min-height: 44px;
    font-size: 14px !important;
    color: var(--bmb-ink) !important;
    background: var(--bmb-surface) !important;
    border: 2px solid var(--bmb-border) !important;
}

.bmb-crop-editor__hint {
    font-size: 11px;
    color: var(--bmb-muted);
    text-align: center;
    margin: 12px 0 0;
}

.bmb-crop-editor__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 12px;
}

.bmb-size-grid--manual {
    margin-bottom: 12px;
}

.bmb-manual-size-divider {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--bmb-muted);
    text-align: center;
    margin: 12px 0;
}

/* ========== FILTER TABS ========== */
.bmb-filter-tabs {
    display: flex;
    gap: 6px;
    padding: 4px;
    background: #e8e4de;
    border-radius: 12px;
    margin-bottom: 14px;
}

.bmb-filter-tab {
    flex: 1;
    min-height: 38px;
    border: 0;
    background: transparent;
    color: var(--bmb-muted);
    font-size: 12px;
    font-weight: 700;
    border-radius: 9px;
    cursor: pointer;
    padding: 8px 10px;
    transition: 0.15s;
}

.bmb-filter-tab.active {
    background: var(--bmb-surface);
    color: var(--bmb-ink);
    box-shadow: 0 2px 6px rgba(20, 18, 16, 0.1);
}

.bmb-filter-tab__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    margin-left: 4px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    background: rgba(20, 18, 16, 0.08);
}

.bmb-filter-tab.active .bmb-filter-tab__count {
    background: var(--bmb-gold-light);
    color: var(--bmb-gold-dark);
}

.bmb-hero-split__link-wrap {
    font-size: 13px;
    color: var(--bmb-muted);
    margin-bottom: 14px;
}

.bmb-type-card__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 120px;
    font-size: 2rem;
    color: var(--bmb-gold-dark);
}

.bmb-designs-head {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 14px;
}

.bmb-mobile-bar--enhanced {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px;
}

.bmb-mobile-bar__copy {
    min-width: 0;
}

.bmb-mobile-bar__price strong {
    font-size: 16px;
    color: var(--bmb-gold-dark);
}

.bmb-mobile-bar--enhanced .bmb-summary-mrp {
    font-size: 12px;
    margin-right: 6px;
}

.bmb-workspace__toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.bmb-workspace__count {
    font-size: 12px;
    font-weight: 700;
    color: var(--bmb-muted);
    margin-left: 10px;
}

/* ========== TABLET+ PREMIUM LAYOUT ========== */
@media (min-width: 576px) {
    .bmb-hero-split {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }

    .bmb-hero-split__copy h1 {
        font-size: 2rem;
    }

    .bmb-stepper__label {
        display: inline;
    }

    .bmb-trust-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bmb-finish-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 992px) {
    .bmb-page--workspace {
        padding-top: 24px;
    }

    .bmb-hero-split__copy h1 {
        font-size: 2.35rem;
    }

    .bmb-trust-steps {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .bmb-type-grid--visual {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .bmb-stepper__label {
        display: none;
    }

    .bmb-stepper__step--active .bmb-stepper__label {
        display: inline;
    }
}

/* ========== PREMIUM APP POLISH (v20260910q) ========== */
.bmb-workspace-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    padding: 12px 14px;
    background: var(--bmb-surface);
    border: 1px solid var(--bmb-border);
    border-radius: var(--bmb-radius-lg);
}

.bmb-workspace-header__count {
    font-size: 15px;
    color: var(--bmb-ink);
}

.bmb-workspace-header__count strong {
    font-size: 18px;
    color: var(--bmb-gold-dark);
}

.bmb-apply-card__eyebrow {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--bmb-gold-dark);
    margin-bottom: 4px;
}

.bmb-apply-card--defaults {
    margin-bottom: 20px;
}

.bmb-type-grid--compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 768px) {
    .bmb-type-grid--compact {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.bmb-type-card--compact .bmb-type-card__body {
    padding: 8px 10px 10px;
}

.bmb-type-card--compact .bmb-type-card__name {
    font-size: 12px;
}

.bmb-upload-zone--premium {
    border-width: 2px;
    border-style: dashed;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bmb-upload-zone--premium .bmb-upload-zone__inner {
    text-align: center;
    padding: 24px 16px;
}

.bmb-upload-zone--premium .bmb-upload-title {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* ========== SUMMARY SIDEBAR (checkout panel) ========== */
.bmb-summary-card {
    border: 1px solid rgba(198, 169, 114, 0.35);
    box-shadow:
        0 4px 24px rgba(20, 18, 16, 0.06),
        0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

.bmb-summary-card__hero {
    padding: 20px 20px 16px;
    background: linear-gradient(145deg, #141210 0%, #2a2318 55%, #1a1714 100%);
    color: #fff;
}

.bmb-summary-card__hero-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.bmb-summary-card__eyebrow {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(243, 232, 200, 0.85);
}

.bmb-summary-card__title {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
    color: #fff;
    margin: 0 0 4px;
    line-height: 1.2;
}

.bmb-summary-card__sub {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.62);
    margin: 0;
    line-height: 1.4;
}

.bmb-summary-card__sub--ready {
    color: #86efac;
    font-weight: 600;
}

.bmb-summary-ring--compact {
    --bmb-ring-size: 44px;
    --bmb-ring-stroke: 4px;
    flex-shrink: 0;
}

.bmb-summary-ring--compact .bmb-summary-ring__inner {
    width: calc(var(--bmb-ring-size) - var(--bmb-ring-stroke) * 2 - 4px);
    height: calc(var(--bmb-ring-size) - var(--bmb-ring-stroke) * 2 - 4px);
    background: rgba(20, 18, 16, 0.92);
    font-size: 11px;
    font-weight: 800;
    color: var(--bmb-gold-light);
}

.bmb-summary-ring--complete {
    background: conic-gradient(
        #22c55e calc(var(--bmb-ring-pct) * 1%),
        rgba(255, 255, 255, 0.15) 0
    );
}

.bmb-summary-ring--complete .bmb-summary-ring__inner {
    color: #86efac;
}

.bmb-summary-ring {
    width: var(--bmb-ring-size);
    height: var(--bmb-ring-size);
    border-radius: 50%;
    background: conic-gradient(
        var(--bmb-gold) calc(var(--bmb-ring-pct) * 1%),
        rgba(255, 255, 255, 0.12) 0
    );
    display: grid;
    place-items: center;
}

.bmb-summary-ring__inner {
    width: calc(var(--bmb-ring-size) - var(--bmb-ring-stroke) * 2 - 4px);
    height: calc(var(--bmb-ring-size) - var(--bmb-ring-stroke) * 2 - 4px);
    border-radius: 50%;
    background: var(--bmb-surface);
    display: grid;
    place-items: center;
    font-size: 11px;
    font-weight: 800;
    color: var(--bmb-gold-dark);
}

.bmb-summary-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 16px 20px 0;
}

.bmb-summary-stat {
    background: var(--bmb-panel);
    border: 1px solid var(--bmb-border);
    border-radius: 12px;
    padding: 12px 14px;
    text-align: center;
}

.bmb-summary-stat__value {
    display: block;
    font-size: 26px;
    font-weight: 800;
    color: var(--bmb-ink);
    line-height: 1;
    margin-bottom: 4px;
}

.bmb-summary-stat__label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--bmb-muted);
}

.bmb-summary-progress {
    padding: 16px 20px;
    margin-bottom: 0;
}

.bmb-summary-progress__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.bmb-summary-progress__title {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--bmb-muted);
}

.bmb-summary-progress__count {
    font-size: 12px;
    font-weight: 800;
    color: var(--bmb-gold-dark);
}

.bmb-progress-track--summary {
    height: 6px;
    margin-bottom: 0;
    background: #ebe6de;
}

.bmb-summary-breakdown__list {
    max-height: 160px;
    overflow-y: auto;
    padding-right: 4px;
}

.bmb-summary-breakdown__line {
    display: block;
}

.bmb-summary-breakdown__type {
    display: block;
    font-weight: 700;
    color: var(--bmb-ink);
    font-size: 13px;
}

.bmb-summary-pricing--panel {
    margin: 0 16px 16px;
    padding: 14px 16px;
    background: linear-gradient(180deg, #fffdf8 0%, #faf6ee 100%);
    border: 1px solid rgba(198, 169, 114, 0.35);
    border-radius: 14px;
}

.bmb-summary-pricing__row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    font-size: 13px;
    color: var(--bmb-muted);
    margin-bottom: 6px;
}

.bmb-summary-pricing__row--total {
    margin-top: 4px;
    padding-top: 0;
    border-top: none;
    font-size: 14px;
    color: var(--bmb-ink);
}

.bmb-summary-total {
    margin: 0;
    text-align: right;
}

.bmb-summary-total__line {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.bmb-summary-pricing__row--total strong {
    font-size: 28px;
    font-weight: 800;
    color: var(--bmb-gold-dark);
    line-height: 1;
}

.bmb-summary-pricing__hint {
    font-size: 11px;
    color: var(--bmb-muted);
    text-align: right;
    margin: 6px 0 0;
}

.bmb-summary-card__footer {
    padding: 0 16px 18px;
}

.bmb-summary-cta {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 15px !important;
    letter-spacing: 0.01em;
    box-shadow: 0 8px 24px rgba(158, 124, 12, 0.22);
    transition: transform 0.15s var(--bmb-ease), box-shadow 0.15s var(--bmb-ease);
}

.bmb-summary-cta--ready:not(:disabled):hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(158, 124, 12, 0.28);
}

.bmb-summary-cta__icon {
    font-size: 13px;
    opacity: 0.9;
}

.bmb-summary-trust {
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 16px;
    font-size: 11px;
    font-weight: 600;
    color: var(--bmb-muted);
}

.bmb-summary-trust li {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.bmb-summary-trust i {
    color: var(--bmb-gold-dark);
    font-size: 10px;
}

.bmb-trust-footer--minimal {
    text-align: center;
    padding-bottom: 24px;
}

.bmb-trust-strip--minimal {
    margin-bottom: 12px;
}

.bmb-trust-footer__hub {
    font-size: 14px;
    color: var(--bmb-muted);
    margin: 0;
}

.bmb-trust-footer__hub a {
    font-weight: 700;
    color: var(--bmb-gold-dark);
}

.bmb-config-panel--types {
    padding-bottom: 4px;
}

.bmb-type-grid--modal {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.bmb-type-card--modal {
    position: relative;
    cursor: pointer;
    border: 2px solid var(--bmb-border);
    border-radius: 10px;
    background: var(--bmb-surface);
    padding: 0;
    text-align: center;
    overflow: hidden;
    min-width: 0;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.bmb-type-card--modal .bmb-type-card__media {
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    background: linear-gradient(145deg, #faf8f5 0%, #f0ebe3 100%);
}

.bmb-type-card--modal .bmb-type-card__media img {
    object-fit: contain;
    width: 100%;
    height: 100%;
    max-height: 56px;
}

.bmb-type-card--modal .bmb-type-card__body {
    padding: 5px 4px 7px;
    border-top: 1px solid var(--bmb-border);
}

.bmb-type-card--modal .bmb-type-card__name {
    font-size: 9px;
    font-weight: 800;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: center;
}

.bmb-type-card__selected {
    position: absolute;
    top: 5px;
    right: 5px;
    z-index: 2;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--bmb-gold-dark);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(20, 18, 16, 0.25);
}

.bmb-type-card--modal.active {
    border-color: var(--bmb-gold-dark);
    border-width: 3px;
    box-shadow: 0 0 0 3px rgba(198, 169, 114, 0.35);
    background: linear-gradient(180deg, #fffdf8 0%, #fff8eb 100%);
    transform: translateY(-1px);
}

.bmb-type-card--modal.active .bmb-type-card__name {
    color: var(--bmb-gold-dark);
}

@media (max-width: 575px) {
    .bmb-type-grid--modal {
        grid-template-columns: repeat(4, minmax(72px, 1fr));
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

.bmb-footer-config-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.bmb-footer-config-chip {
    font-size: 11px;
    font-weight: 700;
    color: var(--bmb-ink);
    background: var(--bmb-panel);
    border: 1px solid var(--bmb-border);
    padding: 3px 8px;
    border-radius: 999px;
    white-space: nowrap;
}

.bmb-design-card__meta-line {
    font-size: 11px;
    font-weight: 700;
    color: var(--bmb-ink-soft);
    line-height: 1.3;
}

.bmb-rec-quality,
.bmb-rec-inline__quality {
    font-size: 12px;
    font-weight: 700;
    color: #15803d;
    margin-top: 4px;
}

.bmb-rec-inline__quality {
    display: block;
}
