/**
 * Bolmaster customer panel — static styles for custom Filament Blade views.
 * Tailwind utilities in custom views are not compiled; use these bm-* classes.
 */

.bm-page {
    max-width: 72rem;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.fi-page .bm-page,
.fi-main .bm-page {
    width: 100%;
}

.bm-stack > * + * {
    margin-top: 1.5rem;
}

.bm-text-center {
    text-align: center;
}

.bm-muted {
    color: #6b7280;
    font-size: 0.875rem;
    line-height: 1.5;
}

.dark .bm-muted {
    color: #9ca3af;
}

.bm-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #030712;
    margin: 0;
}

.dark .bm-title {
    color: #f9fafb;
}

.bm-subtitle {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0.25rem 0 0;
    line-height: 1.5;
}

.dark .bm-subtitle {
    color: #9ca3af;
}

.bm-card {
    background: #ffffff;
    border-radius: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.dark .bm-card {
    background: #111827;
    border-color: rgba(255, 255, 255, 0.1);
}

.bm-card-pad {
    padding: 1.5rem;
}

.bm-card-pad-lg {
    padding: 2rem;
}

.bm-card-header {
    background: linear-gradient(135deg, #0066cc 0%, #004c99 100%);
    color: #ffffff;
    padding: 2rem 1.5rem;
    text-align: center;
}

.bm-card-header-eyebrow {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.85;
    margin: 0;
}

.bm-card-header-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0.5rem 0 0;
    line-height: 1.25;
}

.bm-card-header-text {
    font-size: 0.875rem;
    margin: 0.75rem auto 0;
    max-width: 36rem;
    line-height: 1.6;
    opacity: 0.92;
}

.bm-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.375rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.bm-card-footer {
    border-top: 1px solid #f3f4f6;
    padding: 1.5rem;
    text-align: center;
}

.dark .bm-card-footer {
    border-top-color: rgba(255, 255, 255, 0.1);
}

.bm-grid-2,
.bm-grid-3,
.bm-grid-4,
.bm-grid-5 {
    display: grid;
    gap: 1rem;
}

@media (min-width: 640px) {
    .bm-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bm-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
    .bm-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .bm-grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }

    .bm-page .fi-sc-columns-3 > .fi-grid-col {
        align-items: stretch;
    }
}

.bm-grid-2-1 {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    .bm-grid-2-1 {
        grid-template-columns: 1fr 2fr;
    }
}

.bm-stat-card {
    border-radius: 0.75rem;
    padding: 1.25rem;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.bm-stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
}

.bm-stat-label {
    margin-top: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
}

a.bm-stat-card--link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

a.bm-stat-card--link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.bm-step-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-radius: 0.75rem;
    padding: 1.25rem;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
}

.dark .bm-step-card {
    background: rgba(31, 41, 55, 0.5);
    border-color: rgba(255, 255, 255, 0.1);
}

.bm-step-card--done {
    background: #ecfdf5;
    border-color: #a7f3d0;
}

.dark .bm-step-card--done {
    background: rgba(6, 78, 59, 0.2);
    border-color: rgba(16, 185, 129, 0.4);
}

.bm-step-card--active {
    position: relative;
    background: #ffffff;
    border: 2px solid #0066cc;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.15);
}

.dark .bm-step-card--active {
    background: #1f2937;
}

.bm-step-badge {
    position: absolute;
    top: -0.625rem;
    border-radius: 9999px;
    background: #0066cc;
    color: #ffffff;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.125rem 0.625rem;
}

.bm-step-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 700;
    color: #ffffff;
    background: #0066cc;
}

.bm-step-num--done {
    background: #10b981;
}

.bm-step-num--muted {
    background: #e5e7eb;
    color: #6b7280;
}

.dark .bm-step-num--muted {
    background: #374151;
    color: #d1d5db;
}

.bm-step-title {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #111827;
}

.dark .bm-step-title {
    color: #f9fafb;
}

.bm-step-desc {
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: #6b7280;
}

.dark .bm-step-desc {
    color: #9ca3af;
}

.bm-item-card {
    display: flex;
    flex-direction: column;
    border-radius: 0.75rem;
    background: #ffffff;
    padding: 1.25rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.dark .bm-item-card {
    background: #111827;
    border-color: rgba(255, 255, 255, 0.1);
}

.bm-item-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.bm-item-eyebrow {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #6b7280;
}

.bm-item-title {
    margin-top: 0.25rem;
    font-size: 1rem;
    font-weight: 700;
    color: #030712;
}

.dark .bm-item-title {
    color: #f9fafb;
}

.bm-badge {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    border-radius: 9999px;
    padding: 0.125rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.bm-badge--success { background: #dcfce7; color: #166534; }
.bm-badge--warning { background: #fef3c7; color: #92400e; }
.bm-badge--danger { background: #fee2e2; color: #991b1b; }
.bm-badge--info { background: #f3f4f6; color: #374151; }
.bm-badge--primary { background: #dbeafe; color: #1e40af; }

.bm-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
    font-size: 0.875rem;
}

.bm-meta-label {
    font-size: 0.75rem;
    color: #6b7280;
}

.bm-meta-value {
    font-weight: 600;
    color: #111827;
}

.dark .bm-meta-value {
    color: #f9fafb;
}

.bm-section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #374151;
}

.dark .bm-section-title {
    color: #d1d5db;
}

.bm-dot {
    display: inline-block;
    width: 0.625rem;
    height: 0.625rem;
    border-radius: 9999px;
}

.bm-empty {
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    background: #eff6ff;
    border: 1px solid rgba(0, 102, 204, 0.15);
}

.dark .bm-empty {
    background: rgba(0, 102, 204, 0.1);
    border-color: rgba(0, 102, 204, 0.25);
}

.bm-empty-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #030712;
    margin: 0;
}

.dark .bm-empty-title {
    color: #f9fafb;
}

.bm-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.bm-list-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f3f4f6;
    font-size: 0.875rem;
}

.bm-list-item:last-child {
    border-bottom: none;
}

.dark .bm-list-item {
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

a.bm-list-item--link {
    text-decoration: none;
    color: inherit;
    transition: background 0.15s ease;
    border-radius: 0.5rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    margin-left: -0.5rem;
    margin-right: -0.5rem;
}

a.bm-list-item--link:hover {
    background: rgba(0, 102, 204, 0.06);
}

.bm-filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.bm-filter-tab {
    border-radius: 9999px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    color: #374151;
    font-size: 0.8125rem;
    font-weight: 500;
    padding: 0.375rem 0.875rem;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.bm-filter-tab:hover {
    border-color: #0066cc;
    color: #0066cc;
}

.bm-filter-tab--active {
    background: #0066cc;
    border-color: #0066cc;
    color: #ffffff;
}

.bm-callout {
    border-radius: 0.5rem;
    padding: 1rem;
    font-size: 0.875rem;
    line-height: 1.5;
}

.bm-callout--success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #14532d;
}

.bm-callout--warning {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #78350f;
}

.bm-callout--info {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e3a8a;
}

.bm-error-box {
    margin-top: 0.75rem;
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
    background: #fef2f2;
    color: #991b1b;
}

.bm-link {
    font-size: 0.875rem;
    color: #0066cc;
    text-decoration: none;
}

.bm-link:hover {
    text-decoration: underline;
}

.bm-chart-wrap {
    background: #ffffff;
    border-radius: 0.75rem;
    padding: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.dark .bm-chart-wrap {
    background: #111827;
    border-color: rgba(255, 255, 255, 0.1);
}

.bm-chart-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.75rem;
    color: #111827;
}

.dark .bm-chart-title {
    color: #f9fafb;
}

.bm-gauge-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100%;
}

.bm-gauge-label {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #111827;
}

.dark .bm-gauge-label {
    color: #f9fafb;
}

.bm-gauge-sublabel {
    font-size: 0.75rem;
    color: #6b7280;
}

.bm-gauge-value {
    font-size: 1.5rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: #111827;
}

.dark .bm-gauge-value {
    color: #f9fafb;
}

.bm-pricing-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: 1rem;
    background: #ffffff;
    padding: 2rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.bm-pricing-card--featured {
    border: 2px solid #0066cc;
    box-shadow: 0 4px 16px rgba(0, 102, 204, 0.12);
}

.bm-pricing-badge {
    position: absolute;
    top: -0.75rem;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 9999px;
    background: #0066cc;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.25rem 0.75rem;
}

.bm-hero-eyebrow {
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #0066cc;
    margin: 0;
}

.bm-hero-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0.5rem 0 0;
    color: #030712;
    line-height: 1.2;
}

.dark .bm-hero-title {
    color: #f9fafb;
}

.bm-hero-text {
    margin: 0.75rem auto 0;
    max-width: 42rem;
    font-size: 1rem;
    color: #4b5563;
    line-height: 1.6;
}

.dark .bm-hero-text {
    color: #9ca3af;
}

.bm-hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.25rem;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid rgba(0, 102, 204, 0.15);
}

.bm-actions {
    margin-top: 1rem;
    padding-top: 0.5rem;
}

.bm-table-wrap {
    overflow-x: auto;
    width: 100%;
}

.bm-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.bm-table th {
    text-align: left;
    padding: 0 0.75rem 0.5rem 0;
    border-bottom: 1px solid #e5e7eb;
    color: #6b7280;
    font-weight: 500;
}

.bm-table td {
    padding: 0.5rem 0.75rem 0.5rem 0;
    border-bottom: 1px solid #f3f4f6;
    vertical-align: top;
}

.bm-table tr:last-child td {
    border-bottom: none;
}

.bm-impersonation {
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #9a3412;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.875rem;
}

/* Admin dashboard cards (launch readiness, queue monitor) */

.bm-gauge-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100%;
    padding: 2rem 1.5rem;
}

.bm-card-icon-header {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    margin-bottom: 1.25rem;
}

.bm-card-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.625rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    background: #eff6ff;
    flex-shrink: 0;
    line-height: 1;
}

.dark .bm-card-icon {
    background: rgba(0, 102, 204, 0.18);
}

.bm-check-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.bm-check-row {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border-radius: 0.625rem;
    background: #f9fafb;
    border: 1px solid #f3f4f6;
}

.bm-check-row--ok {
    border-left: 3px solid #16a34a;
}

.bm-check-row--fail {
    border-left: 3px solid #dc2626;
}

.dark .bm-check-row {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.06);
}

.bm-check-icon {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 0.0625rem;
}

.bm-check-icon--ok {
    background: #dcfce7;
    color: #166534;
}

.bm-check-icon--fail {
    background: #fee2e2;
    color: #991b1b;
}

.bm-check-label {
    font-weight: 600;
    font-size: 0.875rem;
    color: #111827;
    line-height: 1.35;
}

.dark .bm-check-label {
    color: #f9fafb;
}

.bm-check-detail {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 0.125rem;
    line-height: 1.45;
}

.bm-link-card {
    display: block;
    border-radius: 0.75rem;
    padding: 1rem 1.125rem;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
    height: 100%;
}

.bm-link-card:hover {
    border-color: #0066cc;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.1);
    transform: translateY(-1px);
}

.dark .bm-link-card {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.1);
}

.bm-link-card-title {
    font-weight: 600;
    font-size: 0.875rem;
    color: #111827;
}

.dark .bm-link-card-title {
    color: #f9fafb;
}

.bm-link-card-desc {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 0.25rem;
    line-height: 1.45;
}

.bm-stat-card--primary {
    border-top: 3px solid #0066cc;
}

.bm-stat-card--warning {
    border-top: 3px solid #d97706;
}

.bm-stat-card--danger {
    border-top: 3px solid #dc2626;
}

.bm-stat-card--info {
    border-top: 3px solid #6366f1;
}

.bm-code-block {
    background: #f1f5f9;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.75rem;
    word-break: break-all;
    color: #1e293b;
    border: 1px solid #e2e8f0;
}

.dark .bm-code-block {
    background: rgba(255, 255, 255, 0.05);
    color: #e2e8f0;
    border-color: rgba(255, 255, 255, 0.08);
}

.bm-doc-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.bm-doc-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.75rem;
    border-radius: 0.5rem;
    background: #f9fafb;
    font-size: 0.875rem;
    color: #374151;
}

.dark .bm-doc-row {
    background: rgba(255, 255, 255, 0.03);
    color: #d1d5db;
}

.bm-doc-icon {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 0.375rem;
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.dark .bm-doc-icon {
    background: rgba(255, 255, 255, 0.08);
}

.bm-feature-grid {
    display: grid;
    gap: 0.5rem;
}

.bm-feature-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 0.875rem;
    border-radius: 0.5rem;
    background: #f9fafb;
    font-size: 0.875rem;
}

.dark .bm-feature-row {
    background: rgba(255, 255, 255, 0.03);
}

.bm-callout--danger {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.dark .bm-callout--danger {
    background: rgba(127, 29, 29, 0.25);
    border-color: rgba(248, 113, 113, 0.3);
    color: #fecaca;
}

.bm-callout-title {
    font-weight: 600;
    margin-bottom: 0.375rem;
}

.bm-callout-meta {
    font-size: 0.75rem;
    opacity: 0.85;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    margin-top: 0.5rem;
}

.bm-callout-time {
    font-size: 0.75rem;
    opacity: 0.7;
    margin-top: 0.375rem;
}

.bm-grid-quick-links {
    display: grid;
    gap: 0.75rem;
}

@media (min-width: 640px) {
    .bm-grid-quick-links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.bm-grid-deploy {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    .bm-grid-deploy {
        grid-template-columns: 1fr 2fr;
    }
}

.bm-table td.bm-table-mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.75rem;
    color: #6b7280;
}

.bm-table-empty {
    text-align: center;
    padding: 2rem 1rem;
}

.bm-table-empty-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    opacity: 0.5;
}

/* Cost rules hero + form controls */
.bm-hero-card {
    display: grid;
    gap: 1.25rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #eff6ff 0%, #ffffff 55%, #f0fdf4 100%);
    border: 1px solid rgba(0, 102, 204, 0.12);
}

.dark .bm-hero-card {
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.12) 0%, rgba(17, 24, 39, 1) 55%, rgba(16, 185, 129, 0.08) 100%);
    border-color: rgba(255, 255, 255, 0.08);
}

@media (min-width: 768px) {
    .bm-hero-card {
        grid-template-columns: 1.4fr 1fr;
        align-items: center;
    }
}

.bm-hero-card__stats {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bm-section-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.bm-grid-2 {
    display: grid;
    gap: 1rem;
}

@media (min-width: 768px) {
    .bm-grid-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.bm-select {
    display: block;
    width: 100%;
    border-radius: 0.5rem;
    border: 1px solid #d1d5db;
    background: #ffffff;
    padding: 0.625rem 0.75rem;
    font-size: 0.875rem;
    color: #111827;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.dark .bm-select {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(17, 24, 39, 0.95);
    color: #f9fafb;
}

.bm-stat-card--soft {
    background: #f9fafb;
}

.dark .bm-stat-card--soft {
    background: rgba(255, 255, 255, 0.03);
}

.bm-stat-card--primary {
    border-left: 4px solid #0066cc;
    background: #eff6ff;
}

.dark .bm-stat-card--primary {
    background: rgba(0, 102, 204, 0.12);
}

.bm-onboarding-progress {
    height: 0.5rem;
    border-radius: 9999px;
    background: #e5e7eb;
    overflow: hidden;
}

.bm-onboarding-progress__bar {
    height: 100%;
    border-radius: 9999px;
    background: linear-gradient(90deg, #16a34a, #0066cc);
    transition: width 0.3s ease;
}

.bm-checklist-item {
    display: flex;
    gap: 0.875rem;
    padding: 0.875rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.bm-checklist-item:last-child {
    border-bottom: none;
}

.bm-checklist-item__icon {
    flex-shrink: 0;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

.bm-checklist-item__icon--done {
    background: #dcfce7;
    color: #166534;
}

.bm-checklist-item__icon--todo {
    background: #f3f4f6;
    color: #6b7280;
}

.bm-margin-negative {
    color: #dc2626;
    font-weight: 600;
}

.bm-margin-positive {
    color: #16a34a;
    font-weight: 600;
}

.bm-flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.bm-flex-wrap {
    flex-wrap: wrap;
}

.bm-gap-3 {
    gap: 0.75rem;
}

.bm-text-sm {
    font-size: 0.8125rem;
}

.bm-segmented {
    display: inline-flex;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 0.75rem;
    overflow: hidden;
    background: #f9fafb;
}

.bm-segment {
    border: 0;
    background: transparent;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
}

.bm-segment--active {
    background: #0066cc;
    color: #ffffff;
}

.dark .bm-segmented {
    background: #1f2937;
    border-color: rgba(255, 255, 255, 0.1);
}

.dark .bm-segment {
    color: #e5e7eb;
}

.dark .bm-segment--active {
    background: #0066cc;
    color: #ffffff;
}

.bm-link {
    color: #0066cc;
    text-decoration: none;
    font-weight: 500;
}

.bm-link:hover {
    text-decoration: underline;
}

/* Product detail page */
.bm-product-detail-card {
    overflow: visible;
}

.bm-product-hero {
    display: grid;
    gap: 1.5rem;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    background: linear-gradient(180deg, rgba(0, 102, 204, 0.04) 0%, rgba(255, 255, 255, 0) 100%);
}

@media (min-width: 768px) {
    .bm-product-hero {
        grid-template-columns: 220px 1fr;
        align-items: start;
        padding: 2rem;
    }
}

.bm-product-hero__image {
    width: 100%;
    max-width: 220px;
    max-height: 220px;
    object-fit: contain;
    border-radius: 0.875rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #ffffff;
}

.bm-product-hero__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    border-radius: 0.875rem;
    border: 1px dashed rgba(15, 23, 42, 0.15);
    background: #f9fafb;
    padding: 1rem;
    text-align: center;
    color: #6b7280;
    font-size: 0.875rem;
}

.bm-product-hero__eyebrow {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #0066cc;
}

.bm-product-hero__title {
    margin: 0.35rem 0 0;
    font-size: 1.5rem;
    line-height: 1.25;
    font-weight: 700;
    color: #030712;
}

.bm-product-hero__subtitle {
    margin: 0.5rem 0 0;
    color: #6b7280;
    font-size: 0.9375rem;
    line-height: 1.5;
}

.bm-product-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.bm-product-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    background: #f3f4f6;
    color: #374151;
    font-size: 0.8125rem;
    font-weight: 500;
}

.bm-product-hero__stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 1.25rem;
}

@media (min-width: 640px) {
    .bm-product-hero__stats {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.bm-product-stat {
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 0.75rem;
    padding: 0.875rem 1rem;
    background: #ffffff;
}

.bm-product-stat__label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
}

.bm-product-stat__value {
    display: block;
    margin-top: 0.25rem;
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
}

.bm-product-tabs-wrap {
    width: 100%;
}

.bm-product-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    padding: 0.75rem 1rem 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    background: #fafafa;
}

.bm-product-tab {
    appearance: none;
    border: 0;
    background: transparent;
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.65rem 0.95rem;
    border-radius: 0.65rem 0.65rem 0 0;
    cursor: pointer;
}

.bm-product-tab--active,
.bm-product-tab.bm-product-tab--active {
    background: #ffffff;
    color: #0066cc;
    box-shadow: inset 0 -2px 0 #0066cc;
}

.bm-product-tab-panels {
    min-height: 12rem;
}

.bm-product-detail-grid {
    gap: 1.5rem;
}

.bm-detail-list {
    margin: 0.75rem 0 0;
}

.bm-detail-row {
    display: grid;
    grid-template-columns: minmax(8rem, 38%) 1fr;
    gap: 0.75rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.05);
}

.bm-detail-row dt {
    margin: 0;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #6b7280;
}

.bm-detail-row dd {
    margin: 0;
    font-size: 0.9375rem;
    color: #111827;
}

.bm-badge--soft {
    background: #eef2ff;
    color: #3730a3;
}

.bm-timeline {
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
}

.bm-timeline__item {
    display: grid;
    grid-template-columns: 1rem 1fr;
    gap: 0.75rem;
    padding-bottom: 1rem;
    position: relative;
}

.bm-timeline__item:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 0.45rem;
    top: 1rem;
    bottom: 0;
    width: 2px;
    background: rgba(15, 23, 42, 0.08);
}

.bm-timeline__dot {
    width: 0.875rem;
    height: 0.875rem;
    border-radius: 9999px;
    margin-top: 0.2rem;
    background: #0066cc;
}

.bm-timeline__item--success .bm-timeline__dot { background: #16a34a; }
.bm-timeline__item--info .bm-timeline__dot { background: #0066cc; }
.bm-timeline__item--muted .bm-timeline__dot { background: #9ca3af; }

.bm-timeline__title {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #111827;
}

.bm-timeline__time {
    margin: 0.15rem 0 0;
    font-size: 0.8125rem;
    color: #6b7280;
}

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

.dark .bm-product-hero {
    background: linear-gradient(180deg, rgba(0, 102, 204, 0.12) 0%, rgba(17, 24, 39, 0) 100%);
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

.dark .bm-product-hero__title,
.dark .bm-product-stat__value,
.dark .bm-detail-row dd,
.dark .bm-timeline__title {
    color: #f9fafb;
}

.dark .bm-product-tabs {
    background: #0f172a;
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

.dark .bm-product-tab--active,
.dark .bm-product-tab.bm-product-tab--active {
    background: #111827;
}
