/* ═══════════════════════════════════════
   MITR AI & WEB — Configure Page Styles
   Apple-Store Inspired Layout
   ═══════════════════════════════════════ */

/* Base overrides for Config Page */
.config-body {
    background-color: var(--bg);
    color: var(--text);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.config-aurora {
    opacity: 0.4;
    /* Slightly dimmer to focus on content */
    z-index: -1;
}

.config-nav {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    z-index: 100;
}

.config-nav .nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-back .back-link {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.nav-back .back-link:hover {
    color: var(--primary);
}

/* ── 2-Column Layout (Desktop) ── */
.config-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px 120px;
    /* bottom padding for sticky bar */
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

/* ── Left: Sticky Preview ── */
.config-preview {
    position: sticky;
    top: 100px;
    /* offset from nav */
}

.preview-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 4/3;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

/* ── Mini Website Mockup ── */
.pc-browser {
    height: 32px;
    background: #f1f5f9;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding: 0 12px;
    gap: 8px;
    flex-shrink: 0;
}

.pc-url {
    font-size: 10px;
    color: var(--text-3);
    background: #e2e8f0;
    padding: 2px 10px;
    border-radius: 4px;
    margin-left: auto;
}

.pc-site {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    background: #fff;
    position: relative;
}

/* Mini Nav */
.mk-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-bottom: 1px solid #e2e8f0;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.95);
}

.mk-logo {
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 4px;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mk-tabs {
    display: flex;
    gap: 2px;
    flex-wrap: wrap;
    overflow: hidden;
}

.mk-tab {
    font-size: 8px;
    padding: 3px 7px;
    border-radius: 4px;
    cursor: pointer;
    color: var(--text-3);
    transition: all 0.2s;
    white-space: nowrap;
}

.mk-tab:hover {
    background: #f1f5f9;
    color: var(--text);
}

.mk-tab.active {
    background: var(--primary);
    color: #fff;
}

/* Pages */
.mk-pages {
    flex: 1;
    position: relative;
}

.mk-page {
    display: none;
    padding: 10px 12px;
    animation: mkFadeIn 0.3s ease;
}

.mk-page.active {
    display: block;
}

@keyframes mkFadeIn {
    from {
        opacity: 0;
        transform: translateY(4px);
    }

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

/* Hero */
.mk-hero {
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    border-radius: 8px;
    padding: 14px 12px;
    margin-bottom: 10px;
}

.mk-h1 {
    font-size: 12px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 3px;
}

.mk-p {
    font-size: 7px;
    color: #475569;
    margin-bottom: 6px;
}

.mk-btn {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    font-size: 7px;
    padding: 3px 10px;
    border-radius: 4px;
}

/* Content Sections */
.mk-section {
    margin-bottom: 10px;
}

.mk-section-title {
    font-size: 8px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
}

.mk-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
}

.mk-card {
    height: 28px;
    background: #f1f5f9;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
    animation: mkPulse 2s infinite ease-in-out;
}

@keyframes mkPulse {

    0%,
    100% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }
}

.mk-lines {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mk-line {
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
}

.mk-line.w80 {
    width: 80%;
}

.mk-line.w60 {
    width: 60%;
}

.mk-line.w70 {
    width: 70%;
}

/* ══ Feature Preview Overlay ══ */
.mk-preview-overlay {
    position: absolute;
    inset: 32px 0 0 0;
    background: linear-gradient(180deg, #f8faff 0%, #fff 40%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    transform: translateY(6px);
    overflow: hidden;
}

.mk-preview-overlay.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* Preview Header — frosted glass */
.mkp-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    flex-shrink: 0;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

.mkp-icon {
    font-size: 16px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.mkp-title {
    font-size: 10px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.01em;
}

.mkp-subtitle {
    font-size: 7px;
    color: #94a3b8;
    margin-left: auto;
    font-weight: 500;
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 10px;
}

/* Preview Body */
.mkp-body {
    flex: 1;
    padding: 12px 14px;
    overflow-y: auto;
    animation: mkpSlideUp 0.45s 0.08s both cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes mkpSlideUp {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Preview Navigation Indicator */
.mkp-nav-dots {
    display: flex;
    justify-content: center;
    gap: 5px;
    padding: 8px;
    border-top: 1px solid rgba(0, 0, 0, 0.04);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    flex-shrink: 0;
}

.mkp-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #cbd5e1;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}

.mkp-dot:hover {
    background: #94a3b8;
    transform: scale(1.3);
}

.mkp-dot.active {
    background: var(--primary);
    width: 18px;
    border-radius: 4px;
    box-shadow: 0 0 6px rgba(59, 130, 246, 0.35);
}

/* ── CMS Preview ── */
.mkp-cms-sidebar {
    display: flex;
    gap: 8px;
    height: 100%;
}

.mkp-cms-menu {
    width: 54px;
    background: linear-gradient(180deg, #f8fafc, #f1f5f9);
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    padding: 6px 4px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex-shrink: 0;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.mkp-cms-menu-item {
    font-size: 5.5px;
    padding: 4px 5px;
    border-radius: 4px;
    color: #64748b;
    cursor: default;
    transition: background 0.2s;
}

.mkp-cms-menu-item.active {
    background: linear-gradient(135deg, var(--primary), #2563eb);
    color: #fff;
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.3);
}

.mkp-cms-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mkp-cms-toolbar {
    display: flex;
    gap: 3px;
    padding: 5px 6px;
    background: linear-gradient(180deg, #fff, #f8fafc);
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.mkp-cms-tool {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    background: #f1f5f9;
    font-size: 6.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    transition: all 0.15s;
    border: 1px solid transparent;
}

.mkp-cms-tool:hover {
    background: #e2e8f0;
    border-color: #cbd5e1;
}

.mkp-cms-editor {
    flex: 1;
    background: linear-gradient(180deg, #fafbff, #f8fafc);
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.02);
}

.mkp-cms-article-row {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 8px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    animation: mkpFadeInRow 0.4s both;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.2s;
}

.mkp-cms-article-row:nth-child(2) {
    animation-delay: 0.15s;
}

.mkp-cms-article-row:nth-child(3) {
    animation-delay: 0.3s;
}

.mkp-cms-thumb {
    width: 20px;
    height: 16px;
    border-radius: 3px;
    background: linear-gradient(135deg, #dbeafe 0%, #c7d2fe 50%, #e0e7ff 100%);
    flex-shrink: 0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.mkp-cms-article-title {
    font-size: 6.5px;
    font-weight: 600;
    color: #0f172a;
    flex: 1;
}

.mkp-cms-status {
    font-size: 5px;
    padding: 2px 5px;
    border-radius: 6px;
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    color: #15803d;
    font-weight: 600;
}

.mkp-cms-status.draft {
    background: linear-gradient(135deg, #fef9c3, #fef08a);
    color: #a16207;
}

@keyframes mkpFadeInRow {
    from {
        opacity: 0;
        transform: translateX(-8px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

/* Typing cursor animation for CMS editor */
.mkp-cms-typing {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 4px 6px;
    background: #fff;
    border: 1px dashed var(--primary);
    border-radius: 4px;
}

.mkp-cms-typing-text {
    font-size: 6px;
    color: #475569;
}

.mkp-cms-cursor {
    width: 1px;
    height: 8px;
    background: var(--primary);
    animation: mkpBlink 1s infinite;
}

@keyframes mkpBlink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* ── E-Commerce Preview ── */
.mkp-ecom-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    gap: 6px;
}

.mkp-ecom-search {
    flex: 1;
    height: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: linear-gradient(180deg, #fff, #f8fafc);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
}

.mkp-ecom-cart {
    font-size: 11px;
    position: relative;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.mkp-ecom-cart-badge {
    position: absolute;
    top: -4px;
    right: -5px;
    width: 10px;
    height: 10px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border-radius: 50%;
    font-size: 5px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    box-shadow: 0 1px 3px rgba(239, 68, 68, 0.4);
    animation: mkpCartBounce 0.5s 0.6s both;
}

@keyframes mkpCartBounce {
    0% {
        transform: scale(0);
    }

    60% {
        transform: scale(1.3);
    }

    100% {
        transform: scale(1);
    }
}

.mkp-ecom-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 7px;
}

.mkp-ecom-product {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 6px;
    animation: mkpProductIn 0.4s both;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s, box-shadow 0.2s;
}

.mkp-ecom-product:nth-child(2) {
    animation-delay: 0.1s;
}

.mkp-ecom-product:nth-child(3) {
    animation-delay: 0.2s;
}

.mkp-ecom-product:nth-child(4) {
    animation-delay: 0.3s;
}

@keyframes mkpProductIn {
    from {
        opacity: 0;
        transform: scale(0.88) translateY(6px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.mkp-ecom-img {
    width: 100%;
    height: 34px;
    background: linear-gradient(135deg, #dbeafe 0%, #e0e7ff 50%, #c7d2fe 100%);
    border-radius: 6px;
    margin-bottom: 5px;
    position: relative;
    overflow: hidden;
}

.mkp-ecom-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.5) 50%, transparent 60%);
    animation: mkpShimmer 2s infinite;
}

@keyframes mkpShimmer {
    from {
        transform: translateX(-100%);
    }

    to {
        transform: translateX(100%);
    }
}

.mkp-ecom-name {
    font-size: 6.5px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 2px;
}

.mkp-ecom-price {
    font-size: 7.5px;
    font-weight: 800;
    color: #dc2626;
    margin-bottom: 4px;
}

.mkp-ecom-add-btn {
    width: 100%;
    padding: 3px;
    background: linear-gradient(135deg, var(--primary), #2563eb);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 5px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.25);
}

/* ── Membership Preview ── */
.mkp-member-card {
    max-width: 140px;
    margin: 0 auto;
    background: linear-gradient(180deg, #fff, #f8fafc);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 12px;
    animation: mkpSlideUp 0.5s both;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.mkp-member-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #7c3aed);
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

.mkp-member-title {
    text-align: center;
    font-size: 9px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 10px;
}

.mkp-member-input {
    width: 100%;
    height: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: #fff;
    margin-bottom: 5px;
    position: relative;
    padding: 0 6px;
    display: flex;
    align-items: center;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: border-color 0.2s;
}

.mkp-member-input-label {
    font-size: 5px;
    color: #94a3b8;
}

.mkp-member-btn {
    width: 100%;
    padding: 5px;
    background: linear-gradient(135deg, var(--primary), #2563eb);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 6.5px;
    text-align: center;
    font-weight: 700;
    margin-top: 3px;
    margin-bottom: 6px;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.mkp-member-social {
    display: flex;
    gap: 5px;
    justify-content: center;
}

.mkp-member-social-btn {
    width: 22px;
    height: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 5px;
    font-size: 6.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: transform 0.15s;
}

.mkp-member-divider {
    text-align: center;
    font-size: 5px;
    color: #94a3b8;
    margin: 5px 0;
}

/* ── Payment Preview ── */
.mkp-pay-tabs {
    display: flex;
    gap: 3px;
    margin-bottom: 10px;
    background: #f1f5f9;
    padding: 3px;
    border-radius: 8px;
}

.mkp-pay-tab {
    flex: 1;
    padding: 4px;
    font-size: 5.5px;
    text-align: center;
    border-radius: 6px;
    background: transparent;
    color: #64748b;
    border: none;
    font-weight: 600;
    transition: all 0.2s;
}

.mkp-pay-tab.active {
    background: linear-gradient(135deg, var(--primary), #2563eb);
    color: #fff;
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.3);
}

.mkp-pay-qr {
    width: 70px;
    height: 70px;
    margin: 8px auto;
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(5, 1fr);
    gap: 1.5px;
    padding: 8px;
    animation: mkpQrPop 0.5s 0.2s both cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

@keyframes mkpQrPop {
    from {
        opacity: 0;
        transform: scale(0.6) rotate(-5deg);
    }

    to {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

.mkp-pay-qr-cell {
    border-radius: 1.5px;
}

.mkp-pay-qr-cell.filled {
    background: #0f172a;
}

.mkp-pay-qr-cell.empty {
    background: transparent;
}

.mkp-pay-amount {
    text-align: center;
    font-size: 11px;
    font-weight: 800;
    color: var(--primary);
    margin: 8px 0 4px;
    letter-spacing: -0.02em;
}

.mkp-pay-label {
    text-align: center;
    font-size: 5.5px;
    color: #64748b;
    font-weight: 500;
}

.mkp-pay-card-form {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mkp-pay-input {
    height: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 3px;
    background: #f8fafc;
    padding: 0 6px;
    display: flex;
    align-items: center;
    font-size: 5px;
    color: #94a3b8;
}

.mkp-pay-row {
    display: flex;
    gap: 4px;
}

.mkp-pay-row>* {
    flex: 1;
}

/* ── Alert/Notification Preview ── */
.mkp-alert-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mkp-alert-item {
    display: flex;
    gap: 7px;
    padding: 7px 8px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    align-items: flex-start;
    animation: mkpAlertSlide 0.4s both;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    transition: transform 0.15s;
}

.mkp-alert-item:nth-child(1) {
    border-left: 3px solid #22c55e;
}

.mkp-alert-item:nth-child(2) {
    animation-delay: 0.15s;
    border-left: 3px solid #3b82f6;
}

.mkp-alert-item:nth-child(3) {
    animation-delay: 0.3s;
    border-left: 3px solid #f59e0b;
}

.mkp-alert-item:nth-child(4) {
    animation-delay: 0.45s;
    border-left: 3px solid #a855f7;
}

@keyframes mkpAlertSlide {
    from {
        opacity: 0;
        transform: translateX(12px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.mkp-alert-icon {
    font-size: 11px;
    flex-shrink: 0;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.1));
}

.mkp-alert-content {
    flex: 1;
}

.mkp-alert-title {
    font-size: 6.5px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 2px;
}

.mkp-alert-desc {
    font-size: 5.5px;
    color: #64748b;
    line-height: 1.3;
}

.mkp-alert-time {
    font-size: 4.5px;
    color: #94a3b8;
    flex-shrink: 0;
    font-weight: 500;
}

.mkp-alert-badge-new {
    font-size: 4.5px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    padding: 2px 5px;
    border-radius: 6px;
    flex-shrink: 0;
    font-weight: 700;
    box-shadow: 0 1px 3px rgba(239, 68, 68, 0.3);
    animation: mkpNewPulse 1.5s infinite;
}

@keyframes mkpNewPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

/* ── AI Chat Preview ── */
.mkp-ai-chat {
    display: flex;
    flex-direction: column;
    gap: 5px;
    height: 100%;
}

.mkp-ai-messages {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.mkp-ai-msg {
    max-width: 82%;
    padding: 5px 8px;
    border-radius: 8px;
    font-size: 6.5px;
    line-height: 1.5;
    animation: mkpMsgIn 0.35s both;
}

.mkp-ai-msg:nth-child(2) {
    animation-delay: 0.4s;
}

.mkp-ai-msg:nth-child(3) {
    animation-delay: 0.9s;
}

.mkp-ai-msg:nth-child(4) {
    animation-delay: 1.3s;
}

@keyframes mkpMsgIn {
    from {
        opacity: 0;
        transform: translateY(6px) scale(0.92);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.mkp-ai-msg.user {
    align-self: flex-end;
    background: linear-gradient(135deg, var(--primary), #2563eb);
    color: #fff;
    border-bottom-right-radius: 3px;
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.25);
}

.mkp-ai-msg.bot {
    align-self: flex-start;
    background: #f1f5f9;
    color: #1e293b;
    border-bottom-left-radius: 3px;
    border: 1px solid #e2e8f0;
}

.mkp-ai-input-bar {
    display: flex;
    gap: 5px;
    padding: 5px 6px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    align-items: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.mkp-ai-input {
    flex: 1;
    height: 14px;
    border: none;
    font-size: 5.5px;
    background: transparent;
    color: #94a3b8;
    display: flex;
    align-items: center;
}

.mkp-ai-send {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #2563eb);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 7px;
    flex-shrink: 0;
    color: #fff;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
}

/* ── AI Seller Preview (product recommendation cards) ── */
.mkp-ai-product-rec {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 6px;
    margin-top: 2px;
    animation: mkpMsgIn 0.3s 1.4s both;
}

.mkp-ai-product-rec-img {
    width: 100%;
    height: 22px;
    background: linear-gradient(135deg, #fef3c7, #fed7aa);
    border-radius: 4px;
    margin-bottom: 3px;
}

.mkp-ai-product-rec-name {
    font-size: 6px;
    font-weight: 600;
    color: #1e293b;
}

.mkp-ai-product-rec-price {
    font-size: 6px;
    color: #ef4444;
    font-weight: 700;
}

.mkp-ai-buy-btn {
    margin-top: 3px;
    width: 100%;
    padding: 3px;
    background: #16a34a;
    color: #fff;
    border: none;
    border-radius: 3px;
    font-size: 5px;
    text-align: center;
}

/* ── Agent AI Workflow ── */
.mkp-agent-steps {
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
    padding-left: 14px;
}

.mkp-agent-steps::before {
    content: '';
    position: absolute;
    left: 5px;
    top: 6px;
    bottom: 6px;
    width: 2px;
    background: #e2e8f0;
}

.mkp-agent-step {
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
    animation: mkpStepIn 0.4s both;
}

.mkp-agent-step:nth-child(2) {
    animation-delay: 0.5s;
}

.mkp-agent-step:nth-child(3) {
    animation-delay: 1s;
}

.mkp-agent-step:nth-child(4) {
    animation-delay: 1.5s;
}

@keyframes mkpStepIn {
    from {
        opacity: 0;
        transform: translateX(-6px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.mkp-agent-dot {
    position: absolute;
    left: -12px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e2e8f0;
    border: 2px solid #fff;
    z-index: 1;
}

.mkp-agent-step.done .mkp-agent-dot {
    background: #16a34a;
}

.mkp-agent-step.active .mkp-agent-dot {
    background: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
    animation: mkpPulse 1.5s infinite;
}

@keyframes mkpPulse {

    0%,
    100% {
        box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
    }

    50% {
        box-shadow: 0 0 0 6px rgba(37, 99, 235, 0.1);
    }
}

.mkp-agent-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 6px 8px;
    flex: 1;
}

.mkp-agent-step.done .mkp-agent-card {
    border-color: #bbf7d0;
    background: #f0fdf4;
}

.mkp-agent-step.active .mkp-agent-card {
    border-color: #93c5fd;
    background: #eff6ff;
}

.mkp-agent-label {
    font-size: 6px;
    font-weight: 600;
    color: #1e293b;
}

.mkp-agent-desc {
    font-size: 5px;
    color: #64748b;
}

.mkp-agent-check {
    font-size: 6px;
    color: #16a34a;
    margin-left: auto;
}

/* ── AI Doc Preview ── */
.mkp-doc-upload {
    border: 2px dashed #e2e8f0;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    margin-bottom: 6px;
    animation: mkpSlideUp 0.4s both;
}

.mkp-doc-upload-icon {
    font-size: 16px;
    margin-bottom: 4px;
}

.mkp-doc-upload-text {
    font-size: 6px;
    color: #64748b;
}

.mkp-doc-results {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mkp-doc-result-item {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 6px;
    background: #f8fafc;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
    animation: mkpFadeInRow 0.4s both;
}

.mkp-doc-result-item:nth-child(2) {
    animation-delay: 0.2s;
}

.mkp-doc-result-item:nth-child(3) {
    animation-delay: 0.4s;
}

.mkp-doc-result-icon {
    font-size: 8px;
}

.mkp-doc-result-text {
    font-size: 5px;
    color: #1e293b;
    flex: 1;
}

.mkp-doc-result-status {
    font-size: 4px;
    padding: 1px 4px;
    border-radius: 3px;
}

.mkp-doc-result-status.pass {
    background: #dcfce7;
    color: #16a34a;
}

.mkp-doc-result-status.warn {
    background: #fef9c3;
    color: #ca8a04;
}

/* ── AI API Preview ── */
.mkp-api-endpoint {
    background: #1e293b;
    border-radius: 6px;
    padding: 8px;
    margin-bottom: 6px;
    animation: mkpSlideUp 0.4s both;
}

.mkp-api-method {
    display: inline-block;
    font-size: 5px;
    font-weight: 700;
    padding: 1px 4px;
    border-radius: 3px;
    background: #16a34a;
    color: #fff;
    margin-right: 4px;
}

.mkp-api-url {
    font-size: 6px;
    color: #94a3b8;
    font-family: monospace;
}

.mkp-api-code {
    background: #0f172a;
    border-radius: 4px;
    padding: 6px;
    font-family: monospace;
    font-size: 5px;
    color: #a5f3fc;
    line-height: 1.6;
    animation: mkpSlideUp 0.4s 0.2s both;
}

.mkp-api-response {
    margin-top: 4px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 4px;
    padding: 6px;
    font-family: monospace;
    font-size: 5px;
    color: #16a34a;
    animation: mkpSlideUp 0.4s 0.6s both;
}

/* Landing Page Preview Variant */
.mk-landing-hero {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border-radius: 8px;
    padding: 16px 12px;
    margin-bottom: 8px;
    text-align: center;
}

.mk-landing-hero .mk-h1 {
    color: #fff;
    font-size: 11px;
}

.mk-landing-hero .mk-p {
    color: #94a3b8;
    font-size: 6px;
}

.mk-landing-hero .mk-btn {
    background: #16a34a;
    font-size: 7px;
    padding: 4px 14px;
    animation: mkpPulseBtn 2s infinite;
}

@keyframes mkpPulseBtn {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.4);
    }

    50% {
        box-shadow: 0 0 0 6px rgba(22, 163, 74, 0);
    }
}

.mk-landing-stats {
    display: flex;
    gap: 4px;
    margin-bottom: 8px;
}

.mk-landing-stat {
    flex: 1;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 6px 4px;
    text-align: center;
}

.mk-landing-stat-num {
    font-size: 10px;
    font-weight: 700;
    color: var(--primary);
}

.mk-landing-stat-label {
    font-size: 4px;
    color: #64748b;
}

.mk-landing-testimonial {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 6px 8px;
    margin-bottom: 6px;
}

.mk-landing-testimonial-text {
    font-size: 5px;
    color: #475569;
    font-style: italic;
    margin-bottom: 2px;
}

.mk-landing-testimonial-author {
    font-size: 4px;
    color: #94a3b8;
    text-align: right;
}

.mk-landing-cta {
    background: var(--primary);
    color: #fff;
    text-align: center;
    padding: 8px;
    border-radius: 6px;
    font-size: 7px;
    font-weight: 600;
    cursor: pointer;
}

/* Footer */
.mk-footer {
    padding: 6px 12px;
    border-top: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.mk-footer span {
    font-size: 6px;
    color: var(--text-3);
}

/* Subpage Templates */
.mk-subpage-hero {
    background: #f8fafc;
    border-radius: 8px;
    padding: 14px 12px;
    margin-bottom: 10px;
    border: 1px solid #e2e8f0;
}

.mk-subpage-hero .mk-h1 {
    font-size: 10px;
}

/* ── Form Select Styles ── */
.wiz-form select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #334155;
    border-radius: 10px;
    background: #1e293b;
    color: #fff;
    font-size: 0.95rem;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    transition: border-color 0.2s;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2394a3b8' fill='none' stroke-width='2'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
}

.wiz-form select:focus {
    outline: none;
    border-color: var(--primary);
}

.wiz-form select option {
    background: #1e293b;
    color: #fff;
}

.preview-benefits {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pb-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--text-light);
}

/* ── Right: Options Form ── */
.config-h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.config-sub {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 40px;
}

.option-group {
    margin-bottom: 32px;
}

.og-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 16px;
}

.og-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
}

.og-header h2 small {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 400;
}

.og-info-btn {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 0.9rem;
    cursor: pointer;
}

.og-info-btn:hover {
    text-decoration: underline;
}

.og-grid {
    display: grid;
    gap: 12px;
}

/* Apple-style Option Cards */
.opt-card {
    display: flex;
    align-items: center;
    padding: 20px;
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    user-select: none;
}

.opt-card input {
    display: none;
    /* Hide native input */
}

/* Hover State */
.opt-card:hover {
    border-color: #cbd5e1;
}

/* Active/Checked State */
.opt-card.active {
    border-color: var(--primary);
    background: rgba(37, 99, 235, 0.03);
    /* slight primary tint */
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.08);
}

/* Badge for recommended */
.opt-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: var(--accent);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
}

/* Content inside card */
.opt-content {
    flex: 1;
}

.opt-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.opt-title {
    font-weight: 600;
    font-size: 1.1rem;
}

.opt-price-tag {
    font-weight: 500;
    color: var(--text);
}

.opt-desc {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.4;
    margin: 0;
}

/* Custom UI for Checkbox (div-based toggle) */
.opt-check-ui {
    width: 24px;
    height: 24px;
    border: 2px solid #cbd5e1;
    border-radius: 6px;
    margin-right: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.opt-check-wrapper.active .opt-check-ui {
    background: var(--primary);
    border-color: var(--primary);
}

.opt-check-ui::after {
    content: '';
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    opacity: 0;
    transition: opacity 0.2s;
}

.opt-check-wrapper.active .opt-check-ui::after {
    opacity: 1;
}

/* ── Named Pages System ── */
.opt-pages-card {
    cursor: default;
    border-style: dashed;
    border-color: rgba(45, 106, 223, 0.2);
}

.pages-list {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.page-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--border);
    border-radius: 10px;
    opacity: 0;
    transform: translateY(6px);
    transition: all 0.25s ease;
}

.page-item.show {
    opacity: 1;
    transform: translateY(0);
}

.page-item.removing {
    opacity: 0;
    transform: translateX(-20px);
}

.page-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary-l);
    color: var(--primary);
    font-weight: 700;
    font-size: 0.82rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-family: var(--mono);
}

.page-name-input {
    flex: 1;
    border: 1px solid transparent;
    background: transparent;
    padding: 6px 10px;
    font-size: 0.92rem;
    border-radius: 6px;
    font-family: inherit;
    color: var(--text);
    transition: border-color 0.2s, background 0.2s;
}

.page-name-input:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
}

.page-name-input::placeholder {
    color: var(--text-3, #aaa);
    font-size: 0.85rem;
}

.page-remove-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: rgba(229, 83, 75, 0.08);
    color: #E5534B;
    font-size: 0.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
    opacity: 0.5;
}

.page-remove-btn:hover {
    background: #E5534B;
    color: white;
    opacity: 1;
}

.add-page-btn {
    margin-top: 12px;
    padding: 12px 20px;
    border: 2px dashed rgba(45, 106, 223, 0.25);
    border-radius: 10px;
    background: rgba(45, 106, 223, 0.02);
    color: var(--primary);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    width: 100%;
}

.add-page-btn:hover {
    background: var(--primary-l);
    border-color: var(--primary);
}

/* Dividers */
.config-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 32px 0;
}

.pb-pad {
    margin-bottom: 140px;
}

/* ── Sticky Summary Bar (Bottom) ── */
.summary-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--border);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
    z-index: 100;
    padding: 16px 0;
    transform: translateY(100%);
    animation: slideUpBar 0.5s 0.2s forwards cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUpBar {
    to {
        transform: translateY(0);
    }
}

.sb-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sb-details {
    display: flex;
    flex-direction: column;
}

.sb-total-label {
    font-size: 0.85rem;
    color: var(--text-light);
}

.sb-total-price {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--primary);
    transition: color 0.3s;
}

.sb-total-price.updating {
    color: var(--text-light);
    /* flash gray when calculating */
}

.sb-sub {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 2px;
}

.sb-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 14px 32px;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.sb-btn:hover {
    background: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3);
}

/* Quick Modal styles override */
.wiz-summary-chip {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 12px 16px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
}

/* ── Counter Component (Subpages) ── */
.opt-counter-card {
    cursor: default;
    border-style: dashed;
}

.opt-counter {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 10px;
}

.counter-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--border);
    background: white;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    transition: all 0.2s;
}

.counter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-l);
}

.opt-counter input[type="number"] {
    width: 50px;
    text-align: center;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 6px;
    font-size: 1.05rem;
    font-weight: 600;
    font-family: var(--mono);
    -moz-appearance: textfield;
    appearance: textfield;
}

.opt-counter input[type="number"]::-webkit-outer-spin-button,
.opt-counter input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

.counter-total {
    margin-left: auto;
    font-weight: 600;
    font-size: 1rem;
    color: var(--primary);
    font-family: var(--mono);
}

/* ── Info-Only Cards (Maintenance) ── */
.opt-info-card {
    cursor: default;
    background: rgba(45, 106, 223, 0.02);
    border-color: rgba(45, 106, 223, 0.12);
    border-style: solid;
}

.opt-info-card::before {
    content: '📋';
    font-size: 1.4rem;
    margin-right: 16px;
    flex-shrink: 0;
}

/* ── Summary Bar Price ── */
.sb-left {
    display: flex;
    flex-direction: column;
}

.sb-price {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--primary);
    font-family: var(--mono);
    transition: color 0.3s;
}

.sb-price.updating {
    color: var(--text-light);
}

.sb-note {
    color: var(--text-light);
    font-size: 0.78rem;
    margin-top: 2px;
}

/* ── Wizard Summary ── */
.wiz-summary {
    background: var(--bg-alt, #f8f9fc);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    margin: 16px 0 24px;
}

.ws-label {
    font-size: 0.85rem;
    color: var(--text-light, #6B7083);
    margin-bottom: 10px;
    font-weight: 500;
}

.ws-items {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
}

.ws-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.92rem;
    padding: 6px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.ws-item.ws-fixed {
    color: var(--text-light, #6B7083);
    font-size: 0.85rem;
    border-bottom: none;
}

.ws-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.05rem;
    padding-top: 10px;
    border-top: 1px solid var(--border);
}

.ws-total strong {
    color: var(--primary);
    font-family: var(--mono, 'Inter');
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .config-container {
        grid-template-columns: 1fr;
        gap: 24px;
        padding-top: 24px;
    }

    .config-preview {
        position: relative;
        top: 0;
    }

    .preview-card {
        aspect-ratio: 16/9;
    }

    .preview-benefits {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .sb-inner {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }

    .sb-left {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .sb-note {
        display: none;
    }

    .sb-price {
        font-size: 1.5rem;
    }

    .sb-btn {
        text-align: center;
    }
}

/* ═══ Promo Code — Summary Bar ═══ */
.sb-promo {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-end;
}

.promo-input-group {
    display: flex;
    gap: 0;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.promo-input-group:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.promo-input-group input {
    width: 130px;
    padding: 8px 12px;
    border: none;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: 'Inter', monospace;
    letter-spacing: 0.05em;
    background: var(--surface);
    color: var(--text);
    outline: none;
}

.promo-input-group input::placeholder {
    color: var(--text-3);
    font-weight: 400;
    letter-spacing: 0;
}

.promo-apply-btn {
    padding: 8px 16px;
    background: var(--primary);
    color: #fff;
    border: none;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.promo-apply-btn:hover {
    background: var(--secondary);
}

.promo-apply-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.promo-result {
    font-size: 0.78rem;
    font-weight: 600;
    min-height: 18px;
}

.promo-success {
    color: #059669;
}

.promo-error {
    color: #dc2626;
}

.promo-input-group input.promo-valid {
    background: rgba(5, 150, 105, 0.06);
    color: #059669;
}

.promo-input-group input.promo-invalid {
    background: rgba(220, 38, 38, 0.04);
    color: #dc2626;
}

/* Price with discount */
.sb-price-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.sb-price-original {
    font-size: 1rem;
    color: var(--text-3);
    text-decoration: line-through;
    font-weight: 500;
}

.sb-discount-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    color: #059669;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 20px;
    animation: badgePop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes badgePop {
    from {
        transform: scale(0);
    }

    50% {
        transform: scale(1.2);
    }

    to {
        transform: scale(1);
    }
}

/* Wizard discount row */
.ws-discount-row {
    color: #059669 !important;
    font-weight: 600;
    background: rgba(5, 150, 105, 0.06);
    border-radius: 6px;
    padding: 4px 0;
}

.ws-discount-amount {
    color: #059669;
    font-weight: 700;
}

/* Mobile: promo */
@media (max-width: 700px) {
    .sb-inner {
        flex-wrap: wrap;
        gap: 10px;
    }

    .sb-promo {
        width: 100%;
        align-items: stretch;
    }

    .promo-input-group input {
        flex: 1;
        width: auto;
    }
}

/* ══ Sticky Bar Guarantee Link ══ */
.sb-guarantee {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: #15803d;
    text-decoration: none;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.08), rgba(34, 197, 94, 0.04));
    border: 1px solid rgba(34, 197, 94, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    margin-top: 4px;
    transition: all 0.25s ease;
    font-weight: 600;
}

.sb-guarantee:hover {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(34, 197, 94, 0.08));
    border-color: rgba(34, 197, 94, 0.35);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.15);
}

.sb-guarantee-arrow {
    font-size: 0.7rem;
    color: #22c55e;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.sb-guarantee:hover .sb-guarantee-arrow {
    opacity: 1;
}

@media (max-width: 600px) {
    .sb-guarantee {
        font-size: 0.7rem;
        padding: 3px 10px;
    }
}