/**
 * Megify Business Launcher Styles
 * Prefixed with .mbl- to avoid conflicts
 */

/* ─── Container ─── */
.mbl-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif !important;
    position: relative;
    color: #1a1a2e !important;
}

.mbl-container * { box-sizing: border-box; }
.mbl-container h2,
.mbl-container h3,
.mbl-container h4,
.mbl-container p,
.mbl-container span,
.mbl-container button,
.mbl-container label {
    font-family: inherit !important;
    line-height: inherit;
}

/* ─── Step Transitions ─── */
.mbl-step {
    transition: opacity 0.3s ease;
}

/* ─── Step 1: Wizard ─── */
.mbl-step-1 {
    padding: 2rem 1.5rem;
    border-radius: 20px;
    position: relative;
}

/* Wizard Progress Dots */
.mbl-wizard-progress {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}

.mbl-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
}

.mbl-dot.active {
    background: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
}

.mbl-dot.completed {
    background: #10b981;
}

/* Wizard Slides */
.mbl-wizard-slide {
    display: none;
    text-align: center;
    animation: mblFadeIn 0.3s ease;
}

.mbl-wizard-slide.active {
    display: block;
}

@keyframes mblFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.mbl-slide-title {
    font-size: 1.75rem;
    font-weight: 700 !important;
    color: #fff !important;
    margin: 0 0 0.5rem 0 !important;
    line-height: 1.2 !important;
}

.mbl-slide-subtitle {
    font-size: 1rem;
    color: #9ca3af !important;
    margin: 0 0 2rem 0 !important;
    line-height: 1.5 !important;
}

/* Option Cards */
.mbl-option-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.75rem;
    max-width: 700px;
    margin: 0 auto;
}

.mbl-option-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.25rem 1rem;
    background: rgba(255, 255, 255, 0.06) !important;
    border: 2px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    font-family: inherit;
    color: #fff !important;
}

.mbl-option-card:hover {
    background: rgba(99, 102, 241, 0.1) !important;
    border-color: rgba(99, 102, 241, 0.4) !important;
    transform: translateY(-2px);
}

.mbl-option-card.selected {
    background: rgba(99, 102, 241, 0.15) !important;
    border-color: #6366f1 !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.mbl-option-icon {
    color: #8b5cf6 !important;
    opacity: 0.8;
}

.mbl-option-card.selected .mbl-option-icon {
    color: #8b5cf6 !important;
    opacity: 1;
}

.mbl-option-label {
    font-size: 0.9375rem;
    font-weight: 600 !important;
    color: #fff !important;
}

.mbl-option-desc {
    font-size: 0.8125rem;
    color: #9ca3af !important;
    line-height: 1.3;
}

/* Textarea (Step 5) */
.mbl-textarea-wrap {
    max-width: 520px;
    margin: 0 auto;
}

.mbl-preferences-input {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    outline: none;
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
    transition: border-color 0.2s;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    line-height: 1.5;
}

.mbl-preferences-input::placeholder {
    color: #6b7280;
}

.mbl-preferences-input:focus {
    border-color: #6366f1;
}

.mbl-char-count {
    display: block;
    text-align: right;
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 0.375rem;
}

/* Wizard Navigation */
.mbl-wizard-nav {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2rem;
}

.mbl-btn-back,
.mbl-btn-next,
.mbl-btn-analyze {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.mbl-btn-back {
    color: #9ca3af;
    background: rgba(255, 255, 255, 0.08);
}

.mbl-btn-back:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.mbl-btn-next {
    color: #fff;
    background: #6366f1;
}

.mbl-btn-next:hover:not(:disabled) {
    background: #4f46e5;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.35);
}

.mbl-btn-next:disabled,
.mbl-btn-analyze:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

.mbl-btn-analyze {
    color: #fff;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    padding: 0.875rem 2rem;
    font-size: 1.0625rem;
}

.mbl-btn-analyze:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.35);
}

/* ─── Step 2: Niches ─── */
.mbl-step-2,
.mbl-step-3 {
    background: #fff;
    border-radius: 20px;
    padding: 2.5rem 2rem;
    max-width: 860px;
    margin: 0 auto;
}

.mbl-step-header {
    text-align: center;
    margin-bottom: 2rem;
}

.mbl-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 0.5rem 0;
}

.mbl-subtitle {
    color: #6b7280;
    margin: 0 !important;
    font-size: 1rem;
    line-height: 1.5;
}

/* Niches Grid */
.mbl-niches-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.mbl-niche-card {
    position: relative;
    padding: 1.5rem;
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    transition: all 0.2s;
    animation: mblSlideIn 0.4s ease forwards;
    opacity: 0;
    transform: translateY(12px);
}

.mbl-niche-card:hover {
    border-color: #c4b5fd;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.1);
}

.mbl-niche-card.recommended {
    border-color: #8b5cf6;
    box-shadow: 0 4px 24px rgba(139, 92, 246, 0.15);
}

@keyframes mblSlideIn {
    to { opacity: 1; transform: translateY(0); }
}

.mbl-badge {
    position: absolute;
    top: -10px;
    right: 16px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.mbl-niche-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 0.75rem;
}

/* Score Circle */
.mbl-score-wrap {
    text-align: center;
    margin-bottom: 0.75rem;
}

.mbl-score-svg {
    width: 80px;
    height: 48px;
    display: block;
    margin: 0 auto;
}

.mbl-score-num {
    font-size: 1.75rem;
    font-weight: 800;
    margin-top: -0.25rem;
    line-height: 1;
}

.mbl-score-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.mbl-niche-desc {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.5;
    margin: 0 0 1rem 0;
}

/* Sub-scores Mini Bars */
.mbl-scores {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    margin-bottom: 1rem;
}

.mbl-mini-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mbl-bar-label {
    font-size: 0.6875rem;
    color: #6b7280;
    width: 100px;
    flex-shrink: 0;
    text-align: right;
}

.mbl-bar-track {
    flex: 1;
    height: 6px;
    background: #f3f4f6;
    border-radius: 3px;
    overflow: hidden;
}

.mbl-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.6s ease;
}

.mbl-bar-value {
    font-size: 0.6875rem;
    font-weight: 600;
    color: #374151;
    width: 24px;
    text-align: right;
}

/* Niche Meta */
.mbl-niche-meta {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid #f3f4f6;
}

.mbl-meta-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.mbl-meta-label {
    font-size: 0.6875rem;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 600;
}

.mbl-meta-value {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1a1a2e;
}

/* Develop Button */
.mbl-btn-develop {
    width: 100%;
    padding: 0.75rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.mbl-btn-develop:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
}

.mbl-step-actions {
    display: flex;
    justify-content: center;
}

.mbl-btn-back-step {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.625rem 1.25rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: #6b7280;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: color 0.2s;
    font-family: inherit;
}

.mbl-btn-back-step:hover {
    color: #6366f1;
}

/* ─── Step 3: Blueprint Tabs ─── */
.mbl-tabs {
    display: flex;
    gap: 0.25rem;
    border-bottom: 2px solid #f3f4f6;
    margin-bottom: 1.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.mbl-tab {
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #6b7280;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    white-space: nowrap;
    margin-bottom: -2px;
}

.mbl-tab:hover {
    color: #6366f1;
}

.mbl-tab.active {
    color: #6366f1;
    border-bottom-color: #6366f1;
}

.mbl-tab-panel {
    display: none;
}

.mbl-tab-panel.active {
    display: block;
    animation: mblFadeIn 0.25s ease;
}

/* Section titles */
.mbl-section {
    margin-bottom: 1.75rem;
}

.mbl-section-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 0.75rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Structure Tab */
.mbl-menu-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    padding: 0.75rem;
    background: #1a1a2e;
    border-radius: 10px;
}

.mbl-menu-item {
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
    color: #e5e7eb;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 6px;
}

.mbl-pages-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.mbl-page-card {
    padding: 1rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
}

.mbl-page-name {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 0.25rem;
}

.mbl-page-desc {
    font-size: 0.8125rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.mbl-page-sections {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    align-items: center;
}

.mbl-section-label {
    font-size: 0.6875rem;
    color: #9ca3af;
    font-weight: 600;
}

.mbl-section-chip {
    font-size: 0.6875rem;
    padding: 0.125rem 0.5rem;
    background: #ede9fe;
    color: #6366f1;
    border-radius: 4px;
    font-weight: 500;
}

.mbl-funnel-text {
    padding: 1rem;
    background: #f5f3ff;
    border-left: 3px solid #6366f1;
    border-radius: 0 8px 8px 0;
    font-size: 0.9375rem;
    color: #374151;
    line-height: 1.6;
}

/* Brand Tab */
.mbl-brand-names {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mbl-brand-name-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
    font-family: inherit;
    width: 100%;
}

.mbl-brand-name-card:hover {
    border-color: #c4b5fd;
}

.mbl-brand-name-card.selected {
    border-color: #6366f1;
    background: #f5f3ff;
}

.mbl-brand-name-text {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1a1a2e;
    flex-shrink: 0;
}

.mbl-brand-name-reason {
    font-size: 0.8125rem;
    color: #6b7280;
    flex: 1;
    line-height: 1.3;
}

.mbl-brand-select-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.625rem;
    border-radius: 6px;
    background: #e5e7eb;
    color: #6b7280;
    white-space: nowrap;
    flex-shrink: 0;
}

.mbl-brand-name-card.selected .mbl-brand-select-badge {
    background: #6366f1;
    color: #fff;
}

.mbl-slogan {
    font-size: 1.125rem;
    font-style: italic;
    color: #374151;
    padding: 0.75rem 1.25rem;
    background: #f9fafb;
    border-radius: 10px;
    text-align: center;
}

.mbl-color-palette {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.mbl-color-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    min-width: 72px;
}

.mbl-color-swatch {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.mbl-color-label {
    font-size: 0.6875rem;
    font-weight: 600;
    color: #374151;
}

.mbl-color-hex {
    font-size: 0.625rem;
    font-family: 'SF Mono', 'Fira Code', monospace;
    color: #9ca3af;
}

.mbl-fonts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.mbl-font-card {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
}

.mbl-font-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6366f1;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.mbl-font-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1a1a2e;
}

.mbl-font-preview {
    font-size: 1.375rem;
    color: #374151;
    margin-top: 0.25rem;
}

.mbl-tone-text {
    font-size: 0.9375rem;
    color: #374151;
    line-height: 1.6;
    margin: 0 0 0.75rem 0;
}

/* Tags */
.mbl-style-tags,
.mbl-keyword-cloud,
.mbl-cluster-kws {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.mbl-tag {
    padding: 0.25rem 0.75rem;
    background: #ede9fe;
    color: #6366f1;
    border-radius: 20px;
    font-size: 0.8125rem;
    font-weight: 500;
}

.mbl-tag-sm {
    font-size: 0.6875rem;
    padding: 0.125rem 0.5rem;
}

.mbl-keyword-tag {
    padding: 0.375rem 0.875rem;
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
    border-radius: 20px;
    font-size: 0.8125rem;
    font-weight: 500;
}

/* Catalog Tab */
.mbl-category {
    margin-bottom: 0.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
}

.mbl-category-header {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 1rem 1.25rem;
    background: #f9fafb;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a2e;
    gap: 0.75rem;
    text-align: left;
}

.mbl-cat-name { flex: 1; }

.mbl-cat-count {
    font-size: 0.75rem;
    font-weight: 500;
    color: #9ca3af;
}

.mbl-cat-arrow {
    transition: transform 0.2s;
    color: #9ca3af;
}

.mbl-category-header.open .mbl-cat-arrow {
    transform: rotate(180deg);
}

.mbl-category-body {
    display: none;
    padding: 1rem 1.25rem;
}

.mbl-category-body.open {
    display: block;
}

.mbl-cat-desc {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0 0 0.75rem 0;
    line-height: 1.5;
}

.mbl-products-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.625rem;
}

.mbl-product-card {
    padding: 0.75rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.mbl-product-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1a1a2e;
}

.mbl-product-price {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #6366f1;
    margin: 0.125rem 0;
}

.mbl-product-desc {
    font-size: 0.75rem;
    color: #6b7280;
    line-height: 1.4;
}

/* SEO Tab */
.mbl-cluster {
    margin-bottom: 0.75rem;
    padding: 0.75rem 1rem;
    background: #f9fafb;
    border-radius: 10px;
}

.mbl-cluster-topic {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1a1a2e;
    display: block;
    margin-bottom: 0.5rem;
}

.mbl-article-item {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f3f4f6;
}

.mbl-article-item:last-child {
    border-bottom: none;
}

.mbl-article-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 0.25rem;
}

.mbl-article-outline {
    font-size: 0.8125rem;
    color: #6b7280;
    line-height: 1.5;
    margin-top: 0.375rem;
}

/* Meta Preview (Google-style) */
.mbl-meta-preview {
    padding: 1rem 1.25rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    max-width: 600px;
}

.mbl-meta-title-preview {
    font-size: 1.125rem;
    color: #1a0dab;
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 0.125rem;
}

.mbl-meta-url-preview {
    font-size: 0.8125rem;
    color: #006621;
    margin-bottom: 0.25rem;
}

.mbl-meta-desc-preview {
    font-size: 0.8125rem;
    color: #545454;
    line-height: 1.5;
}

/* FAQ Accordion */
.mbl-faq-item {
    border-bottom: 1px solid #f3f4f6;
}

.mbl-faq-q {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0.875rem 0;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1a1a2e;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
    gap: 0.5rem;
}

.mbl-faq-q svg {
    flex-shrink: 0;
    color: #9ca3af;
    transition: transform 0.2s;
}

.mbl-faq-item.open .mbl-faq-q svg {
    transform: rotate(180deg);
}

.mbl-faq-a {
    display: none;
    padding: 0 0 0.875rem 0;
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.6;
}

.mbl-faq-item.open .mbl-faq-a {
    display: block;
}

/* ─── Step 4: CTA ─── */
.mbl-step-4 {
    background: transparent !important;
    padding: 0 1rem !important;
}

.mbl-cta-box {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #3730a3 100%);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-top: 2rem;
}

.mbl-cta-box::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(99, 102, 241, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.08) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
}

.mbl-cta-content {
    position: relative;
    z-index: 1;
}

.mbl-cta-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.5rem 0;
}

.mbl-cta-desc {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    margin: 0 0 1.5rem 0;
    line-height: 1.5;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.mbl-cta-features {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.mbl-cta-feature {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9375rem;
}

.mbl-terms {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin: 0 auto 1.25rem;
    max-width: 400px;
    text-align: left;
}

.mbl-terms input[type="checkbox"] {
    margin-top: 0.2rem;
    width: 16px;
    height: 16px;
    accent-color: #6366f1;
    flex-shrink: 0;
    cursor: pointer;
}

.mbl-terms label {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.4;
    cursor: pointer;
}

.mbl-terms label a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: underline;
}

.mbl-terms label a:hover {
    color: #fff;
}

.mbl-btn-create {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border: none;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.mbl-btn-create:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.4);
}

.mbl-btn-restart {
    display: block;
    margin: 1rem auto 0;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    background: transparent;
    border: none;
    cursor: pointer;
    text-decoration: underline;
    font-family: inherit;
}

.mbl-btn-restart:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* ─── Loading Overlay ─── */
.mbl-loading {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    padding: 2rem;
}

/* Skeleton */
.mbl-skeleton-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    max-width: 600px;
    width: 100%;
}

.mbl-skeleton-card {
    height: 220px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    overflow: hidden;
    position: relative;
}

.mbl-skeleton-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.08) 50%, transparent 100%);
    animation: mblShimmer 1.8s ease-in-out infinite;
    transform: translateX(-100%);
}

/* Inner skeleton lines */
.mbl-skeleton-card::after {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    background:
        /* Score circle placeholder */
        radial-gradient(circle 24px at 50% 20px, rgba(255,255,255,0.12) 99%, transparent 100%),
        /* Title line */
        linear-gradient(rgba(255,255,255,0.1) 14px, transparent 0),
        /* Description line 1 */
        linear-gradient(rgba(255,255,255,0.07) 10px, transparent 0),
        /* Description line 2 */
        linear-gradient(rgba(255,255,255,0.07) 10px, transparent 0),
        /* Bar 1 */
        linear-gradient(rgba(255,255,255,0.06) 6px, transparent 0),
        /* Bar 2 */
        linear-gradient(rgba(255,255,255,0.06) 6px, transparent 0),
        /* Bar 3 */
        linear-gradient(rgba(255,255,255,0.06) 6px, transparent 0),
        /* Button */
        linear-gradient(rgba(99, 102, 241, 0.15) 36px, transparent 0);
    background-size:
        48px 48px,
        60% 14px,
        90% 10px,
        70% 10px,
        100% 6px,
        100% 6px,
        100% 6px,
        100% 36px;
    background-position:
        50% 0px,
        20% 58px,
        5% 82px,
        5% 98px,
        0 120px,
        0 134px,
        0 148px,
        0 170px;
    background-repeat: no-repeat;
    border-radius: 4px;
}

@keyframes mblShimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.mbl-loading-text {
    color: #fff !important;
    font-size: 1.125rem;
    font-weight: 500;
    text-align: center;
    margin: 1rem 0 0 0;
}

/* Progress bar */
.mbl-progress-track {
    width: 100%;
    max-width: 400px;
    height: 8px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    overflow: hidden;
}

.mbl-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    border-radius: 4px;
    transition: width 0.8s ease;
    width: 0%;
}

.mbl-loading-stage {
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    margin: 0;
}

/* ─── Error ─── */
.mbl-error {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: #fef2f2;
    border: 1px solid #fca5a5;
    border-radius: 10px;
    color: #dc2626;
    margin: 1rem auto;
    max-width: 560px;
    font-size: 0.9375rem;
    animation: mblSlideIn 0.3s ease forwards;
}

/* ─── Responsive ─── */
@media (max-width: 640px) {
    .mbl-step-1 {
        padding: 1.5rem 1rem;
    }

    .mbl-slide-title {
        font-size: 1.375rem;
    }

    .mbl-option-cards {
        grid-template-columns: 1fr;
    }

    .mbl-option-card {
        flex-direction: row;
        text-align: left;
        padding: 1rem;
        gap: 0.75rem;
    }

    .mbl-option-icon {
        flex-shrink: 0;
    }

    .mbl-option-card > div:last-child {
        flex: 1;
    }

    .mbl-niches-grid {
        grid-template-columns: 1fr;
    }

    .mbl-step-2,
    .mbl-step-3 {
        padding: 1.5rem 1rem;
        border-radius: 16px;
    }

    .mbl-title {
        font-size: 1.375rem;
    }

    .mbl-pages-grid,
    .mbl-products-grid,
    .mbl-fonts {
        grid-template-columns: 1fr;
    }

    .mbl-tabs {
        gap: 0;
    }

    .mbl-tab {
        padding: 0.625rem 0.875rem;
        font-size: 0.8125rem;
    }

    .mbl-skeleton-grid {
        grid-template-columns: 1fr;
    }

    .mbl-skeleton-card {
        height: 140px;
    }

    .mbl-cta-box {
        padding: 1.75rem 1.25rem;
        border-radius: 16px;
    }

    .mbl-cta-title {
        font-size: 1.25rem;
    }

    .mbl-btn-create {
        width: 100%;
        justify-content: center;
        font-size: 1rem;
        padding: 1rem 1.5rem;
    }

    .mbl-terms {
        max-width: 100%;
    }

    .mbl-bar-label {
        width: 80px;
        font-size: 0.625rem;
    }

    .mbl-brand-name-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .mbl-brand-select-badge {
        align-self: flex-end;
    }
}

@media (min-width: 641px) and (max-width: 900px) {
    .mbl-option-cards {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }

    .mbl-step-2,
    .mbl-step-3 {
        padding: 2rem 1.5rem;
    }
}
