@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800;900&display=swap');

:root{
    --primary:#5b5cf6;
    --primary-2:#7c3aed;
    --dark:#0f172a;
    --muted:#64748b;
    --soft:#f8fafc;
    --card:#ffffff;
    --line:#e2e8f0;
    --radius:24px;
    --shadow:0 24px 70px rgba(15,23,42,.10);
    --shadow-soft:0 12px 30px rgba(15,23,42,.08);
}
*{box-sizing:border-box}
body{
    font-family:'Cairo',system-ui,-apple-system,Segoe UI,sans-serif;
    background:radial-gradient(circle at top right, rgba(91,92,246,.18), transparent 32rem),radial-gradient(circle at 10% 30%, rgba(124,58,237,.12), transparent 28rem),#f7f8fc;
    color:var(--dark);
    min-height:100vh;
}
a{text-decoration:none}
.glass-nav{background:rgba(255,255,255,.78);backdrop-filter:blur(18px);border-bottom:1px solid rgba(226,232,240,.8)}
.brand-mark,.admin-logo{display:inline-flex;align-items:center;gap:.7rem;color:var(--dark);font-weight:900;font-size:1.35rem}
.brand-icon{width:42px;height:42px;border-radius:16px;display:inline-flex;align-items:center;justify-content:center;background:linear-gradient(135deg,var(--primary),var(--primary-2));color:white;box-shadow:0 14px 30px rgba(91,92,246,.35)}
.nav-soft .nav-link{color:#334155;font-weight:700;padding:.6rem 1rem!important;border-radius:999px}
.nav-soft .nav-link:hover{background:#eef2ff;color:var(--primary)}
.btn{font-weight:800;border-radius:16px;transition:.2s ease}
.btn:hover{transform:translateY(-1px)}
.btn-primary{background:linear-gradient(135deg,var(--primary),var(--primary-2));border:0;box-shadow:0 16px 35px rgba(91,92,246,.25)}
.card{border:1px solid rgba(226,232,240,.9);border-radius:var(--radius);box-shadow:var(--shadow-soft);background:rgba(255,255,255,.92)}
.hero{position:relative;overflow:hidden;background:linear-gradient(135deg,rgba(15,23,42,.92),rgba(91,92,246,.86)),url('https://images.unsplash.com/photo-1556742049-0cfed4f6a45d?q=80&w=1600&auto=format&fit=crop');background-size:cover;background-position:center;color:white;border-radius:36px;box-shadow:var(--shadow)}
.hero>*{position:relative;z-index:2}
.hero .display-4{font-weight:900}
.hero .lead{color:rgba(255,255,255,.85)}
.fw-black{font-weight:900}
.metric-card{padding:1.4rem;border-radius:24px;background:linear-gradient(180deg,#fff,#f8fafc);border:1px solid var(--line);box-shadow:var(--shadow-soft)}
.metric-card .icon{width:46px;height:46px;border-radius:16px;display:flex;align-items:center;justify-content:center;background:#eef2ff;color:var(--primary);font-size:1.25rem}
.metric-card h2{font-weight:900;margin:0}
.metric-card span{color:var(--muted);font-weight:700}
.product-card{overflow:hidden;transition:.22s ease;height:100%}
.product-card:hover{transform:translateY(-6px);box-shadow:0 24px 70px rgba(15,23,42,.15)}
.product-card img{height:220px;width:100%;object-fit:cover}
.product-card .price{font-weight:900;color:var(--primary);font-size:1.25rem}
.store-cover{position:relative;overflow:hidden;color:white;border-radius:34px;box-shadow:var(--shadow);background:linear-gradient(135deg,#0f172a,var(--primary))}
.ad-card{position:relative;overflow:hidden;border-radius:28px;color:white;min-height:240px;display:block;box-shadow:var(--shadow)}
.ad-card img{width:100%;height:260px;object-fit:cover;filter:brightness(.68);transition:.3s ease}
.ad-card:hover img{transform:scale(1.06)}
.ad-caption{position:absolute;bottom:0;right:0;left:0;padding:1.3rem;background:linear-gradient(transparent,rgba(15,23,42,.82))}
.site-footer{margin-top:4rem;padding:2rem 0;border-top:1px solid var(--line);background:rgba(255,255,255,.7)}
.footer-links{display:flex;gap:1rem}
.footer-links a{color:var(--muted);font-weight:700}
.form-control,.form-select{min-height:48px;border-radius:16px;border-color:#dbe3ef;font-weight:700}
.form-control:focus,.form-select:focus{box-shadow:0 0 0 .25rem rgba(91,92,246,.15);border-color:var(--primary)}
.table td,.table th{vertical-align:middle}
.badge{border-radius:999px;padding:.5rem .75rem}
.thumb{width:62px;height:62px;object-fit:cover;border-radius:16px;border:1px solid var(--line)}

.admin-body{background:#eef2f8}
.admin-layout{min-height:100vh;display:grid;grid-template-columns:290px 1fr}
.admin-sidebar{position:sticky;top:0;height:100vh;overflow-y:auto;background:linear-gradient(180deg,#0f172a,#111827);padding:1.25rem;color:white}
.admin-logo{color:white;margin-bottom:2rem}
.admin-section-label{color:#94a3b8;font-weight:900;font-size:.78rem;margin:1.5rem .75rem .6rem;text-transform:uppercase;letter-spacing:.08em}
.admin-menu{display:flex;flex-direction:column;gap:.35rem}
.admin-menu a{color:#cbd5e1;padding:.85rem 1rem;border-radius:18px;display:flex;align-items:center;gap:.75rem;font-weight:800}
.admin-menu a:hover{color:white;background:rgba(255,255,255,.08)}
.admin-main{min-width:0}
.admin-topbar{min-height:92px;padding:1.3rem 2rem;display:flex;align-items:center;gap:1rem;background:rgba(255,255,255,.82);backdrop-filter:blur(16px);border-bottom:1px solid var(--line);position:sticky;top:0;z-index:10}
.admin-title{font-size:1.45rem;margin:0;font-weight:900}
.admin-subtitle{margin:0;color:var(--muted);font-weight:700}
.admin-content{padding:2rem}
.admin-toggle{display:none}
.dashboard-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1rem}
.action-panel{padding:1.5rem;border-radius:28px;background:white;box-shadow:var(--shadow-soft);border:1px solid var(--line)}
.quick-actions{display:flex;flex-wrap:wrap;gap:.7rem}
@media(max-width:992px){
    .admin-layout{grid-template-columns:1fr}
    .admin-sidebar{position:fixed;inset:0 auto 0 0;width:290px;transform:translateX(-100%);transition:.25s ease;z-index:1000}
    body.sidebar-open .admin-sidebar{transform:translateX(0)}
    .admin-toggle{display:inline-flex}
    .dashboard-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:576px){
    .hero{border-radius:24px;padding:2rem!important}
    .dashboard-grid{grid-template-columns:1fr}
    .admin-content{padding:1rem}
    .admin-topbar{padding:1rem}
}
.auth-page {
    min-height: calc(100vh - 90px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
}

.auth-card {
    width: min(1100px, 100%);
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: rgba(255,255,255,.88);
    border: 1px solid rgba(226,232,240,.9);
    border-radius: 36px;
    overflow: hidden;
    box-shadow: 0 30px 90px rgba(15,23,42,.16);
    backdrop-filter: blur(18px);
}

.auth-visual {
    position: relative;
    padding: 3rem;
    color: white;
    background:
        linear-gradient(135deg, rgba(15,23,42,.95), rgba(91,92,246,.9)),
        url('https://images.unsplash.com/photo-1556742049-0cfed4f6a45d?q=80&w=1200&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
}

.auth-visual h1 {
    font-weight: 900;
    font-size: 2.4rem;
    margin-bottom: 1rem;
}

.auth-visual p {
    color: rgba(255,255,255,.82);
    font-size: 1.1rem;
}

.auth-points {
    display: grid;
    gap: .8rem;
    margin-top: 2rem;
}

.auth-points span {
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 18px;
    padding: .9rem 1rem;
    font-weight: 800;
    backdrop-filter: blur(10px);
}

.auth-points i {
    color: #86efac;
    margin-left: .5rem;
}

.auth-form {
    padding: 3rem;
}

.form-floating > label {
    right: 0;
    left: auto;
    padding-right: 1rem;
}

.form-floating > .form-control {
    height: 58px;
}

@media (max-width: 900px) {
    .auth-card {
        grid-template-columns: 1fr;
    }

    .auth-visual {
        min-height: 320px;
    }
}
.product-details-img {
    width: 100%;
    max-height: 620px;
    object-fit: cover;
}

.price {
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary);
}
.store-logo,
.store-logo-placeholder {
    width: 130px;
    height: 130px;
    border-radius: 32px;
    object-fit: cover;
    background: rgba(255,255,255,.18);
    border: 1px solid rgba(255,255,255,.24);
    box-shadow: 0 20px 50px rgba(15,23,42,.25);
}

.store-logo-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}
.checkout-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .75rem;
}

.checkout-step {
    padding: 1rem;
    border-radius: 18px;
    background: white;
    border: 1px solid var(--line);
    font-weight: 900;
    color: var(--muted);
    text-align: center;
}

.checkout-step.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: white;
    box-shadow: 0 16px 35px rgba(91,92,246,.25);
}

.checkout-panel {
    display: none;
}

.checkout-panel.active {
    display: block;
}

.payment-options {
    display: grid;
    gap: 1rem;
}

.payment-card {
    cursor: pointer;
}

.payment-card input {
    display: none;
}

.payment-card span {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: 1rem;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: white;
    font-weight: 900;
}

.payment-card input:checked + span {
    border-color: var(--primary);
    background: #eef2ff;
    color: var(--primary);
}
.cart-item {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--line);
}

.cart-item:last-child {
    border-bottom: 0;
}

.cart-qty {
    display: flex;
    gap: .5rem;
    align-items: center;
}

.cart-qty input {
    width: 90px;
}

@media (max-width: 768px) {
    .cart-item {
        flex-direction: column;
        align-items: stretch;
    }

    .cart-qty {
        width: 100%;
    }

    .cart-qty input {
        width: 100%;
    }
}
.hover-lift {
    transition: .25s ease;
}

.hover-lift:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 60px rgba(0,0,0,.12);
}
.plan-card {
    background: white;
    border-radius: 28px;
    padding: 2rem;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    transition: .25s ease;
}

.plan-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 80px rgba(0,0,0,.12);
}

.plan-header {
    margin-bottom: 1rem;
}

.plan-price {
    margin-bottom: 1.5rem;
}

.plan-price .amount {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--primary);
}

.plan-price .currency {
    display: block;
    color: var(--muted);
    font-weight: 700;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
    display: grid;
    gap: .7rem;
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-weight: 700;
    color: #334155;
}

.plan-features i {
    color: var(--primary);
}
.hover-lift {
    transition: .25s ease;
}

.hover-lift:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 60px rgba(0,0,0,.12);
}
.theme-preview {
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--line);
}

.preview-header {
    padding: 1rem;
    color: white;
    font-weight: 900;
}

.preview-body {
    padding: 2rem;
    background: #f8fafc;
}

.preview-btn {
    border: none;
    color: white;
    padding: .7rem 1.2rem;
    border-radius: 10px;
}
.admin-overlay {
    display: none;
}

@media (max-width: 992px) {
    body.sidebar-open .admin-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, .45);
        z-index: 900;
    }

    .admin-sidebar {
        z-index: 1000;
    }
}
/* Store operations UI */
.min-w-0{min-width:0}.admin-sidebar{scrollbar-width:thin;scrollbar-color:#334155 transparent}.admin-menu a.active{background:linear-gradient(135deg,rgba(91,92,246,.32),rgba(124,58,237,.2));color:#fff;box-shadow:inset 3px 0 0 #a5b4fc}.sidebar-store-card{display:flex;align-items:center;gap:.75rem;padding:.9rem;border:1px solid rgba(255,255,255,.09);background:rgba(255,255,255,.05);border-radius:20px}.sidebar-store-avatar,.customer-avatar{width:44px;height:44px;flex:none;border-radius:15px;background:linear-gradient(135deg,var(--primary),var(--primary-2));display:grid;place-items:center;color:#fff;font-weight:900;font-size:1.15rem}.admin-top-actions{margin-inline-start:auto;display:flex;align-items:center;gap:.65rem}.store-switcher{display:flex;align-items:center;gap:.45rem;background:#fff;border:1px solid var(--line);padding:.35rem .75rem;border-radius:999px}.store-switcher select{border:0;background:transparent;outline:0;font-weight:800;max-width:180px}.admin-mobile-nav{display:none}.page-toolbar{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:1.5rem}.page-toolbar h2{font-weight:900;margin:0 0 .25rem}.page-toolbar p{color:var(--muted);margin:0}.admin-card{background:#fff;border:1px solid var(--line);border-radius:24px;padding:1.4rem;box-shadow:var(--shadow-soft)}.admin-card-header{display:flex;justify-content:space-between;align-items:center;gap:1rem;margin-bottom:1.25rem}.admin-card-header h3,.editor-card h3{font-size:1.05rem;font-weight:900;margin:0 0 .2rem}.admin-card-header p,.editor-card p{color:var(--muted);margin:0;font-size:.86rem}.empty-state{padding:4rem 1.5rem;text-align:center;align-items:center}.empty-state-icon{width:74px;height:74px;border-radius:24px;display:grid;place-items:center;background:#eef2ff;color:var(--primary);font-size:2rem;margin:0 auto 1rem}.empty-state h2,.empty-state h3{font-weight:900}.empty-state p{color:var(--muted);max-width:520px;margin:0 auto 1.2rem}.empty-inline{display:flex;align-items:center;justify-content:center;gap:.6rem;color:var(--muted);min-height:140px}.status-pill{display:inline-flex;align-items:center;white-space:nowrap;padding:.38rem .7rem;border-radius:999px;font-size:.77rem;font-weight:900}.status-pending{background:#eef2ff;color:#4f46e5}.status-processing{background:#fff7ed;color:#c2410c}.status-shipped{background:#ecfeff;color:#0e7490}.status-completed{background:#ecfdf5;color:#047857}.status-cancelled{background:#fef2f2;color:#b91c1c}.status-refunded{background:#faf5ff;color:#7e22ce}.status-neutral{background:#f1f5f9;color:#475569}.soft-label{display:inline-flex;padding:.38rem .65rem;border-radius:10px;background:#f1f5f9;color:#475569;font-size:.8rem;font-weight:800}.icon-btn{width:38px;height:38px;border:1px solid var(--line);background:#fff;border-radius:12px;display:inline-grid;place-items:center;color:#334155}.icon-btn:hover{background:#eef2ff;color:var(--primary);border-color:#c7d2fe}.table-actions{display:flex;gap:.35rem}.admin-table>thead th{background:#f8fafc;color:#64748b;font-size:.78rem;font-weight:900;padding:1rem;white-space:nowrap;border-bottom:1px solid var(--line)}.admin-table>tbody td{padding:1rem;border-color:#eef2f7}.admin-table td>strong,.admin-table td>small{display:block}.admin-table td>small{color:var(--muted);margin-top:.2rem}.table-product{display:flex;align-items:center;gap:.75rem;min-width:220px}.table-product img{width:54px;height:54px;border-radius:14px;object-fit:cover;border:1px solid var(--line)}.table-product strong,.table-product small{display:block}.filter-card{background:#fff;border:1px solid var(--line);border-radius:20px;padding:1rem;box-shadow:var(--shadow-soft)}.filter-grid{display:grid;grid-template-columns:minmax(240px,2fr) repeat(4,minmax(135px,1fr)) auto;gap:.75rem}.filter-search{position:relative}.filter-search i{position:absolute;right:1rem;top:50%;transform:translateY(-50%);color:#94a3b8}.filter-search input{padding-right:2.7rem}.orders-filters{grid-template-columns:minmax(250px,2fr) repeat(4,1fr) auto}.inventory-filters{grid-template-columns:minmax(280px,2fr) minmax(180px,1fr) auto}.customers-filters{grid-template-columns:minmax(300px,1fr) auto}.bulk-toolbar{display:flex;align-items:center;gap:.75rem;background:#fff;border:1px solid var(--line);border-radius:18px;padding:.7rem 1rem}.bulk-toolbar select{max-width:190px;margin-inline-start:auto}.admin-pagination{display:flex;justify-content:center;gap:.4rem;margin:1.5rem 0}.admin-pagination a{width:40px;height:40px;display:grid;place-items:center;border-radius:12px;background:#fff;border:1px solid var(--line);color:#334155;font-weight:800}.admin-pagination a.active{background:var(--primary);border-color:var(--primary);color:#fff}.admin-pagination a.disabled{pointer-events:none;opacity:.35}

.dashboard-welcome{background:linear-gradient(125deg,#111827,#312e81);color:#fff;border-radius:28px;padding:1.5rem 1.7rem;display:flex;align-items:center;justify-content:space-between;gap:1rem;box-shadow:var(--shadow)}.dashboard-welcome h2{font-weight:900;margin:0 0 .35rem}.dashboard-welcome p{margin:0;color:#cbd5e1}.dashboard-welcome-actions{display:flex;gap:.6rem;flex-wrap:wrap}.dashboard-metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:1rem}.dashboard-metric{display:flex;align-items:center;gap:1rem;background:#fff;border:1px solid var(--line);border-radius:22px;padding:1.15rem;box-shadow:var(--shadow-soft)}.dashboard-metric>div:last-child{min-width:0}.dashboard-metric span,.dashboard-metric small,.dashboard-metric strong{display:block}.dashboard-metric span{font-size:.82rem;color:var(--muted);font-weight:800}.dashboard-metric strong{font-size:1.25rem;font-weight:900;margin:.1rem 0}.dashboard-metric small{color:#94a3b8;font-size:.72rem}.metric-icon{width:48px;height:48px;display:grid;place-items:center;border-radius:16px;font-size:1.3rem;flex:none}.metric-icon-success{background:#ecfdf5;color:#059669}.metric-icon-primary{background:#eef2ff;color:#4f46e5}.metric-icon-purple{background:#faf5ff;color:#9333ea}.metric-icon-warning{background:#fff7ed;color:#ea580c}.sales-chart{height:265px;display:flex;align-items:flex-end;justify-content:space-between;gap:.7rem;padding-top:1.5rem}.sales-chart-column{height:100%;flex:1;display:flex;flex-direction:column;align-items:center;gap:.4rem;min-width:0}.sales-bar-track{height:190px;width:min(42px,70%);background:#f1f5f9;border-radius:999px;display:flex;align-items:flex-end;overflow:hidden}.sales-bar{width:100%;background:linear-gradient(180deg,var(--primary),var(--primary-2));border-radius:999px;min-height:5px}.sales-value{font-size:.7rem;color:var(--muted);font-weight:700;white-space:nowrap}.sales-chart-column small{color:#64748b;font-weight:800}.attention-list{display:grid;gap:.55rem}.attention-list a{display:flex;align-items:center;gap:.75rem;padding:.75rem;border-radius:16px;color:#1e293b}.attention-list a:hover{background:#f8fafc}.attention-list a>span:nth-child(2){flex:1}.attention-list strong,.attention-list small{display:block}.attention-list small{color:var(--muted);font-size:.73rem}.attention-icon{width:42px;height:42px;border-radius:14px;display:grid;place-items:center}.rank-list{display:grid}.rank-list>div{display:flex;align-items:center;gap:.7rem;padding:.7rem 0;border-bottom:1px solid #f1f5f9}.rank-list>div:last-child{border:0}.rank-list strong,.rank-list small{display:block}.rank-list small{color:var(--muted)}.rank-number{width:28px;height:28px;border-radius:10px;background:#eef2ff;color:var(--primary);display:grid;place-items:center;font-weight:900}.compact-product-list{display:grid}.compact-product-list a{display:flex;align-items:center;gap:.7rem;padding:.65rem 0;color:#1e293b;border-bottom:1px solid #f1f5f9}.compact-product-list a:last-child{border:0}.compact-product-list img{width:42px;height:42px;border-radius:12px;object-fit:cover}.compact-product-list span{flex:1}.compact-product-list strong,.compact-product-list small{display:block}.compact-product-list small{color:var(--muted)}

.product-editor{padding-bottom:5rem}.editor-layout{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:1.25rem;align-items:start}.editor-main,.editor-sidebar{display:grid;gap:1.25rem}.editor-sidebar{position:sticky;top:115px}.editor-card{background:#fff;border:1px solid var(--line);border-radius:22px;padding:1.35rem;box-shadow:var(--shadow-soft)}.editor-card-title{display:flex;align-items:center;gap:.8rem;margin-bottom:1.2rem}.editor-card-title>span{width:42px;height:42px;display:grid;place-items:center;background:#eef2ff;color:var(--primary);border-radius:14px}.editor-card-title h3{font-weight:900;margin:0}.editor-card-title p{margin:0;color:var(--muted);font-size:.82rem}.editor-actions{position:fixed;bottom:0;left:0;right:290px;z-index:20;background:rgba(255,255,255,.92);backdrop-filter:blur(16px);border-top:1px solid var(--line);padding:.85rem 2rem;display:flex;justify-content:flex-end;gap:.7rem}.setting-switch{display:flex;justify-content:space-between;align-items:center;padding:.85rem 0;border-bottom:1px solid #f1f5f9}.setting-switch:last-child{border:0}.setting-switch .form-check-input{float:none;margin:0}.form-hint{display:flex;gap:.5rem;background:#f8fafc;color:#64748b;padding:.75rem;border-radius:14px;font-size:.78rem}.product-image-manager{display:flex;gap:.75rem;flex-wrap:wrap}.managed-image{position:relative;width:105px;height:105px;border-radius:16px;overflow:hidden;border:1px solid var(--line)}.managed-image img{width:100%;height:100%;object-fit:cover}.managed-image button{position:absolute;top:.35rem;left:.35rem;width:28px;height:28px;border:0;border-radius:9px;background:rgba(15,23,42,.8);color:#fff}.managed-image.main{outline:3px solid #c7d2fe}.managed-image.main span{position:absolute;bottom:.35rem;right:.35rem;background:var(--primary);color:#fff;border-radius:8px;padding:.2rem .4rem;font-size:.68rem}.upload-preview{width:120px;height:120px;border-radius:16px;object-fit:cover}.input-group>.form-control{min-height:48px}.input-group-text{border-radius:16px;background:#f8fafc;font-weight:800}

.mini-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem}.mini-metrics a{display:flex;align-items:center;gap:.8rem;background:#fff;border:1px solid var(--line);border-radius:20px;padding:1rem;color:#1e293b;box-shadow:var(--shadow-soft)}.mini-metric-icon{width:44px;height:44px;border-radius:14px;display:grid;place-items:center}.mini-metrics strong,.mini-metrics small{display:block}.mini-metrics strong{font-size:1.25rem}.mini-metrics small{color:var(--muted)}.stock-update-form{display:grid;grid-template-columns:90px minmax(150px,1fr) auto;gap:.45rem;min-width:360px}.stock-number{font-size:1.25rem}

.shipping-note{display:flex;gap:.8rem;align-items:flex-start;background:#eff6ff;border:1px solid #bfdbfe;border-radius:18px;padding:1rem;color:#1e40af}.shipping-note p{margin:0;color:#3b82f6}.shipping-zone-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem}.shipping-zone-card{background:#fff;border:1px solid var(--line);border-radius:22px;padding:1.2rem;box-shadow:var(--shadow-soft)}.shipping-zone-card.inactive{opacity:.65}.shipping-zone-icon{width:45px;height:45px;border-radius:15px;background:#eef2ff;color:var(--primary);display:grid;place-items:center}.shipping-zone-card h3{font-weight:900;margin:1rem 0 .2rem}.shipping-zone-card>p{color:var(--muted)}.shipping-zone-data{display:grid;grid-template-columns:1fr 1fr;gap:.6rem}.shipping-zone-data div{background:#f8fafc;border-radius:14px;padding:.7rem}.shipping-zone-data small,.shipping-zone-data strong{display:block}.free-shipping-label{margin-top:.7rem;background:#ecfdf5;color:#047857;padding:.6rem;border-radius:12px;font-weight:800;font-size:.8rem}.form-card{max-width:800px}

.order-status-tabs{display:flex;gap:.45rem;overflow-x:auto;padding-bottom:.2rem}.order-status-tabs a{white-space:nowrap;padding:.7rem 1rem;background:#fff;border:1px solid var(--line);border-radius:14px;color:#475569;font-weight:800}.order-status-tabs a.active{background:#111827;color:#fff;border-color:#111827}.order-status-tabs b{display:inline-grid;place-items:center;min-width:22px;height:22px;border-radius:8px;background:rgba(148,163,184,.2);margin-right:.25rem}.order-items-list{display:grid}.order-item-row{display:flex;align-items:center;gap:.8rem;padding:.8rem 0;border-bottom:1px solid #eef2f7}.order-item-row img{width:62px;height:62px;border-radius:15px;object-fit:cover}.order-item-row strong,.order-item-row small{display:block}.order-item-row>div:last-child{text-align:left}.order-totals{max-width:430px;margin-inline-start:auto;margin-top:1rem}.order-totals>div{display:flex;justify-content:space-between;padding:.5rem 0}.order-totals .total{border-top:2px solid #e2e8f0;font-size:1.15rem}.order-timeline{position:relative;padding-right:1rem}.timeline-item{position:relative;padding:0 2rem 1.5rem 0;border-right:2px solid #e2e8f0}.timeline-item:last-child{border-color:transparent}.timeline-item>span{position:absolute;right:-8px;top:2px;width:14px;height:14px;border-radius:50%;background:#fff;border:3px solid var(--primary)}.timeline-item strong,.timeline-item small{display:block}.timeline-item small{color:var(--muted)}.timeline-item p{background:#f8fafc;padding:.65rem;border-radius:12px;margin:.5rem 0 0}.details-list{display:grid;gap:.75rem}.details-list div{display:grid;gap:.1rem;padding-bottom:.65rem;border-bottom:1px solid #f1f5f9}.details-list span{color:var(--muted);font-size:.78rem}.details-list strong{font-size:.88rem}.customer-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem}.customer-card{display:grid;grid-template-columns:auto minmax(0,1fr);gap:.8rem;background:#fff;border:1px solid var(--line);border-radius:22px;padding:1.1rem;box-shadow:var(--shadow-soft)}.customer-card h3{font-size:1rem;font-weight:900;margin:0}.customer-card p,.customer-card small{color:var(--muted);margin:0}.customer-stats{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;border-top:1px solid #f1f5f9;border-bottom:1px solid #f1f5f9}.customer-stats div{padding:.65rem;text-align:center}.customer-stats div+div{border-right:1px solid #f1f5f9}.customer-stats strong,.customer-stats span{display:block}.customer-stats span{font-size:.7rem;color:var(--muted)}.customer-last{grid-column:1/-1}

.checkout-page{max-width:1250px}.checkout-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:1.5rem}.checkout-heading h1{font-weight:900}.checkout-heading p{color:var(--muted)}.checkout-steps{gap:.55rem}.checkout-step{display:flex;align-items:center;justify-content:center;gap:.5rem}.checkout-step b{width:28px;height:28px;border-radius:10px;display:grid;place-items:center;background:#e2e8f0}.checkout-step.active b{background:rgba(255,255,255,.2)}.checkout-form{padding:1.5rem}.checkout-actions{display:flex;justify-content:space-between;margin-top:1.5rem}.payment-choice{display:flex;align-items:center;gap:1rem;border:2px solid #c7d2fe;background:#eef2ff;border-radius:18px;padding:1rem;color:#4338ca}.payment-choice>i:first-child{font-size:1.6rem}.payment-choice div{flex:1}.payment-choice strong,.payment-choice small{display:block}.checkout-confirm-note{display:flex;gap:.75rem;margin-top:1rem;padding:1rem;border-radius:16px;background:#f8fafc;color:#475569}.checkout-confirm-note p{margin:0}.checkout-summary h3{font-weight:900}.checkout-store-group{padding:1rem 0;border-bottom:1px solid var(--line)}.checkout-store-title{display:flex;gap:.5rem;align-items:center;margin-bottom:.7rem}.checkout-summary-item{display:flex;align-items:center;gap:.6rem;padding:.45rem 0}.checkout-summary-item img{width:40px;height:40px;border-radius:10px;object-fit:cover}.checkout-summary-item span{flex:1;min-width:0}.checkout-summary-item strong,.checkout-summary-item small{display:block;font-size:.75rem}.checkout-summary-item small{color:var(--muted)}.checkout-summary-item b{font-size:.75rem}.checkout-store-shipping{display:flex;justify-content:space-between;background:#f8fafc;padding:.55rem;border-radius:10px;margin-top:.5rem;font-size:.78rem}.checkout-summary-total{padding-top:1rem}.checkout-summary-total>div{display:flex;justify-content:space-between;padding:.45rem 0}.checkout-summary-total .grand{font-size:1.05rem;border-top:2px solid var(--line);margin-top:.4rem;padding-top:.8rem}.shipping-quote-box{padding:.8rem;border-radius:14px;font-weight:800}.shipping-quote-box.success{background:#ecfdf5;color:#047857}.shipping-quote-box.error{background:#fef2f2;color:#b91c1c}

.storefront-page{max-width:1320px}.storefront-hero{min-height:410px;border-radius:36px;padding:3.5rem;display:flex;align-items:center;justify-content:space-between;gap:2rem;background:linear-gradient(120deg,var(--store-secondary),var(--store-primary));background-size:cover;background-position:center;color:#fff;box-shadow:var(--shadow)}.storefront-hero-content{max-width:700px}.storefront-kicker{display:inline-flex;padding:.5rem .8rem;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.18);border-radius:999px;font-weight:800}.storefront-hero h1{font-size:3rem;font-weight:900;margin:1rem 0}.storefront-hero p{font-size:1.1rem;color:#e2e8f0;max-width:650px}.storefront-logo{width:150px;height:150px;border-radius:36px;object-fit:cover;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.22)}.storefront-logo.placeholder{display:grid;place-items:center;font-size:3rem}.storefront-tools{display:grid;grid-template-columns:minmax(260px,2fr) 1fr 1fr auto;gap:.7rem;margin:1.5rem 0;background:#fff;border:1px solid var(--line);border-radius:20px;padding:.8rem;box-shadow:var(--shadow-soft)}.storefront-tools select,.storefront-search input{width:100%;min-height:48px;border:1px solid #dbe3ef;border-radius:14px;padding:.6rem .8rem;outline:0;font-weight:700}.storefront-search{position:relative}.storefront-search i{position:absolute;right:1rem;top:50%;transform:translateY(-50%)}.storefront-search input{padding-right:2.5rem}.storefront-section-heading{display:flex;justify-content:space-between;align-items:end;margin:2.5rem 0 1rem}.storefront-section-heading span,.storefront-section-heading small{color:var(--muted)}.storefront-section-heading h2{font-weight:900}.store-product-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:1.2rem}.store-product-card{background:#fff;border:1px solid var(--line);border-radius:22px;overflow:hidden;box-shadow:var(--shadow-soft);transition:.2s}.store-product-card:hover{transform:translateY(-5px);box-shadow:var(--shadow)}.store-product-image{position:relative;display:block;aspect-ratio:4/5;background:#f1f5f9;overflow:hidden}.store-product-image img{width:100%;height:100%;object-fit:cover;transition:.35s}.store-product-card:hover img{transform:scale(1.04)}.product-badge{position:absolute;top:.75rem;right:.75rem;padding:.4rem .65rem;border-radius:999px;font-size:.72rem;font-weight:900}.product-badge.featured{background:#fef3c7;color:#92400e}.product-badge.sale{background:#fee2e2;color:#b91c1c}.sold-overlay{position:absolute;inset:0;display:grid;place-items:center;background:rgba(15,23,42,.55);color:#fff;font-weight:900;font-size:1.05rem}.store-product-body{padding:1rem}.store-product-body>small{color:var(--muted)}.store-product-body h3{font-size:1rem;font-weight:900;margin:.35rem 0 .7rem}.store-product-body h3 a{color:#111827}.store-product-price{display:flex;align-items:center;gap:.5rem;margin-bottom:.9rem}.store-product-price strong{color:var(--primary);font-size:1.05rem}.store-product-price del{color:#94a3b8;font-size:.8rem}.product-breadcrumb{display:flex;align-items:center;gap:.45rem;flex-wrap:wrap;color:var(--muted);margin-bottom:1.2rem}.product-breadcrumb a{color:var(--primary);font-weight:800}.product-main-image{aspect-ratio:1/1.1;border-radius:28px;overflow:hidden;background:#fff;border:1px solid var(--line)}.product-main-image img{width:100%;height:100%;object-fit:cover}.product-thumbnails{display:flex;gap:.6rem;margin-top:.75rem;overflow-x:auto}.product-thumb{width:78px;height:78px;flex:none;border-radius:15px;border:2px solid transparent;padding:0;overflow:hidden;background:#fff}.product-thumb.active{border-color:var(--primary)}.product-thumb img{width:100%;height:100%;object-fit:cover}.product-buy-card{background:#fff;border:1px solid var(--line);border-radius:28px;padding:2rem;box-shadow:var(--shadow-soft);position:sticky;top:110px}.product-buy-card h1{font-weight:900;font-size:2rem}.product-detail-price{display:flex;align-items:center;gap:.75rem;margin:1rem 0}.product-detail-price strong{font-size:1.75rem;color:var(--primary)}.product-detail-price del{color:#94a3b8}.product-description{color:#475569;line-height:1.9;white-space:pre-line}.product-store-line{display:flex;align-items:center;justify-content:space-between;border-top:1px solid #f1f5f9;border-bottom:1px solid #f1f5f9;padding:1rem 0;margin:1.2rem 0}.product-store-line a{font-weight:900}.variant-options{display:flex;flex-wrap:wrap;gap:.55rem}.variant-chip input{display:none}.variant-chip span{display:flex;flex-direction:column;border:1px solid var(--line);padding:.65rem .85rem;border-radius:13px;cursor:pointer;font-weight:800}.variant-chip small{font-size:.7rem;color:var(--muted)}.variant-chip input:checked+span{border-color:var(--primary);background:#eef2ff;color:var(--primary)}.variant-chip.disabled{opacity:.4}.purchase-row{display:grid;grid-template-columns:120px 1fr;gap:.75rem}.quantity-field label{display:block;font-size:.8rem;font-weight:800}.quantity-field input{width:100%;height:48px;border:1px solid var(--line);border-radius:14px;padding:.5rem}.purchase-benefits{display:grid;grid-template-columns:repeat(3,1fr);gap:.5rem;margin-top:1rem}.purchase-benefits span{font-size:.7rem;background:#f8fafc;border-radius:12px;padding:.6rem;text-align:center;color:#64748b}.purchase-benefits i{display:block;font-size:1rem;color:var(--primary)}

@media(max-width:1200px){.dashboard-metrics{grid-template-columns:repeat(2,1fr)}.shipping-zone-grid,.customer-grid{grid-template-columns:repeat(2,1fr)}.store-product-grid{grid-template-columns:repeat(3,1fr)}.filter-grid,.orders-filters{grid-template-columns:repeat(3,1fr)}.filter-search{grid-column:span 2}}
@media(max-width:992px){.admin-sidebar{inset:0 0 0 auto;transform:translateX(100%)}body.sidebar-open .admin-sidebar{transform:translateX(0)}.admin-heading{display:none}.admin-top-actions{width:100%;justify-content:flex-end}.editor-layout{grid-template-columns:1fr}.editor-sidebar{position:static}.editor-actions{right:0}.store-product-grid{grid-template-columns:repeat(2,1fr)}.storefront-hero{padding:2.3rem}.storefront-hero h1{font-size:2.4rem}.storefront-tools{grid-template-columns:1fr 1fr}.storefront-search{grid-column:1/-1}.product-buy-card{position:static}.checkout-summary{position:static!important}}
@media(max-width:768px){body.admin-body{padding-bottom:78px}.admin-content{padding:1rem}.admin-topbar{min-height:72px}.admin-mobile-nav{position:fixed;display:grid;grid-template-columns:repeat(5,1fr);bottom:0;right:0;left:0;z-index:800;background:rgba(255,255,255,.96);backdrop-filter:blur(16px);border-top:1px solid var(--line);padding:.5rem max(.5rem,env(safe-area-inset-right)) calc(.5rem + env(safe-area-inset-bottom));box-shadow:0 -10px 30px rgba(15,23,42,.09)}.admin-mobile-nav a{display:flex;flex-direction:column;align-items:center;gap:.1rem;color:#64748b;font-size:.65rem;font-weight:800}.admin-mobile-nav a i{font-size:1.2rem}.admin-mobile-nav a.active{color:var(--primary)}.admin-mobile-nav .mobile-add{width:48px;height:48px;margin:-1.2rem auto 0;border-radius:17px;background:linear-gradient(135deg,var(--primary),var(--primary-2));color:#fff;justify-content:center;box-shadow:0 12px 25px rgba(91,92,246,.35)}.page-toolbar{align-items:flex-start}.page-toolbar>div:first-child{min-width:0}.dashboard-welcome{align-items:flex-start;flex-direction:column}.dashboard-metrics,.mini-metrics{grid-template-columns:1fr 1fr}.filter-grid,.orders-filters,.inventory-filters,.customers-filters{grid-template-columns:1fr 1fr}.filter-search{grid-column:1/-1}.stock-update-form{grid-template-columns:75px 1fr;min-width:280px}.stock-update-form button{grid-column:1/-1}.editor-actions{padding:.75rem 1rem;right:0;justify-content:stretch}.editor-actions .btn{flex:1}.shipping-zone-grid,.customer-grid{grid-template-columns:1fr}.storefront-hero{min-height:340px;padding:1.6rem;align-items:flex-start}.storefront-logo{width:90px;height:90px;border-radius:24px}.storefront-hero h1{font-size:2rem}.purchase-benefits{grid-template-columns:1fr}.checkout-heading{align-items:flex-start}.checkout-step span{display:none}}
@media(max-width:576px){.admin-top-actions .store-switcher{flex:1;min-width:0}.store-switcher select{max-width:125px}.admin-top-actions>.btn{display:none}.dashboard-metrics,.mini-metrics{grid-template-columns:1fr}.sales-chart{gap:.25rem}.sales-bar-track{width:70%}.filter-grid,.orders-filters,.inventory-filters,.customers-filters{grid-template-columns:1fr}.filter-search{grid-column:auto}.bulk-toolbar{flex-wrap:wrap}.bulk-toolbar select{margin:0;max-width:none;flex:1}.page-toolbar{flex-direction:column}.page-toolbar>.btn{width:100%}.store-product-grid{grid-template-columns:1fr 1fr;gap:.65rem}.store-product-body{padding:.75rem}.store-product-image{aspect-ratio:1/1.25}.store-product-body h3{font-size:.86rem}.storefront-tools{grid-template-columns:1fr}.storefront-search{grid-column:auto}.storefront-hero{border-radius:24px}.storefront-logo{display:none}.product-buy-card{padding:1.25rem}.purchase-row{grid-template-columns:90px 1fr}.checkout-page{padding-top:1.5rem!important}.checkout-heading>a{display:none}.checkout-form{padding:1rem}.order-item-row{align-items:flex-start}.order-item-row>div:last-child{min-width:95px}.customer-card{grid-template-columns:auto minmax(0,1fr)}}

/* Customer orders & checkout success */
.customer-order-list,
.success-orders-grid { display: grid; gap: 1rem; }
.customer-order-card,
.success-order-card,
.checkout-success-hero,
.success-grand-total { background: #fff; border: 1px solid #e8edf3; border-radius: 24px; box-shadow: 0 12px 34px rgba(15,23,42,.06); }
.customer-order-card { padding: 1.25rem; }
.customer-order-head,
.customer-order-foot,
.success-order-head,
.success-order-total,
.success-grand-total { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.customer-order-head h2,
.success-order-head h2 { font-size: 1rem; margin: .15rem 0; font-weight: 900; direction: ltr; text-align: right; }
.customer-order-head small,
.success-order-head small { color: #64748b; }
.customer-order-head > div > span { color: #94a3b8; font-size: .82rem; }
.customer-order-products { display: flex; align-items: center; gap: .75rem; padding: 1rem 0; margin: 1rem 0; border-block: 1px solid #eef2f7; overflow: hidden; }
.customer-order-products > div:not(.customer-order-more) { display: flex; align-items: center; gap: .6rem; min-width: 190px; }
.customer-order-products img { width: 54px; height: 54px; object-fit: cover; border-radius: 14px; background: #f1f5f9; }
.customer-order-products span { display: grid; min-width: 0; }
.customer-order-products strong { font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.customer-order-products small { color: #64748b; font-size: .76rem; }
.customer-order-more { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: #eef2ff; color: #4f46e5; font-weight: 900; flex: none; }
.customer-order-foot > div { display: grid; }
.customer-order-foot span { color: #64748b; font-size: .78rem; }
.customer-order-foot strong { font-size: .94rem; }
.customer-timeline { padding-block: .5rem; }
.checkout-success-page { max-width: 980px; }
.checkout-success-hero { text-align: center; padding: 2.5rem 1.5rem; margin-bottom: 1.5rem; background: radial-gradient(circle at top, #effdf5, #fff 55%); }
.checkout-success-hero > span { color: #059669; font-weight: 800; }
.checkout-success-hero h1 { font-weight: 950; margin: .5rem 0; }
.checkout-success-hero p { color: #64748b; max-width: 620px; margin: auto; }
.success-check { width: 72px; height: 72px; margin: 0 auto 1rem; border-radius: 50%; display: grid; place-items: center; background: #10b981; color: #fff; font-size: 2rem; box-shadow: 0 15px 30px rgba(16,185,129,.25); }
.success-order-card { padding: 1.25rem; }
.success-order-items { display: grid; gap: .65rem; margin-top: 1rem; }
.success-order-items > div { display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: .75rem; padding: .65rem; border-radius: 16px; background: #f8fafc; }
.success-order-items img { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; }
.success-order-items span { display: grid; }
.success-order-items small { color: #64748b; }
.success-order-total { border-top: 1px solid #eef2f7; margin-top: 1rem; padding-top: 1rem; }
.success-order-total strong { color: #4f46e5; font-size: 1.15rem; }
.success-grand-total { padding: 1.25rem 1.5rem; margin-top: 1.25rem; }
.success-grand-total strong { color: #4f46e5; font-size: 1.4rem; }
@media (max-width: 767.98px) {
  .customer-order-head, .customer-order-foot { align-items: flex-start; flex-wrap: wrap; }
  .customer-order-foot .btn { width: 100%; }
  .customer-order-products { overflow-x: auto; }
  .success-grand-total { align-items: flex-start; flex-direction: column; }
}

/* Stages 4–7: payments, subscriptions, builder, CRM, marketing and finance */
.payment-methods-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.9rem}.payment-method-input{position:relative;display:block}.payment-method-input>input{position:absolute;opacity:0;pointer-events:none}.payment-choice{height:100%;display:flex;align-items:center;gap:1rem;padding:1.15rem;border:1px solid var(--line);border-radius:20px;background:#fff;cursor:pointer;transition:.2s ease}.payment-choice>i{width:48px;height:48px;border-radius:15px;display:grid;place-items:center;background:#eef2ff;color:var(--primary);font-size:1.35rem}.payment-choice strong,.payment-choice small{display:block}.payment-choice small{color:var(--muted);margin-top:.15rem}.payment-check{margin-inline-start:auto;color:#cbd5e1;font-size:1.25rem}.payment-method-input>input:checked+.payment-choice{border-color:var(--primary);background:#f5f7ff;box-shadow:0 0 0 3px rgba(91,92,246,.1)}.payment-method-input>input:checked+.payment-choice .payment-check{color:var(--primary)}.checkout-consent{display:flex;align-items:flex-start;gap:.65rem;padding:.9rem;border-radius:15px;background:#f8fafc;color:#475569}.checkout-consent input{margin-top:.25rem}.checkout-confirm-note{display:flex;gap:.65rem;padding:.85rem;border-radius:14px;background:#fffbeb;color:#92400e;font-size:.83rem}.payment-status-card,.payment-result-card{background:#fff;border:1px solid var(--line);border-radius:24px;padding:1.4rem;box-shadow:var(--shadow-soft)}.payment-status-card{display:flex;align-items:center;gap:1rem}.payment-status-card>i,.payment-result-card>.payment-result-icon{width:58px;height:58px;display:grid;place-items:center;border-radius:18px;font-size:1.65rem;background:#eef2ff;color:var(--primary)}.payment-status-card.paid>i,.payment-result-card.success>.payment-result-icon{background:#ecfdf5;color:#059669}.payment-status-card.pending>i{background:#fff7ed;color:#c2410c}.payment-status-card.failed>i,.payment-result-card.danger>.payment-result-icon{background:#fef2f2;color:#dc2626}.payment-result-card{max-width:680px;margin:3rem auto;text-align:center}.payment-result-card>.payment-result-icon{margin:0 auto 1rem}.payment-result-card h1{font-weight:950}.payment-result-card p{color:var(--muted)}.payment-result-meta{display:grid;grid-template-columns:repeat(2,1fr);gap:.75rem;margin:1.25rem 0;text-align:right}.payment-result-meta div{padding:.85rem;background:#f8fafc;border-radius:14px}.payment-result-meta span,.payment-result-meta strong{display:block}.payment-result-meta span{font-size:.75rem;color:var(--muted)}

.settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}.settings-toggle,.setting-toggle{display:flex;align-items:flex-start;gap:.9rem;padding:1rem;border:1px solid var(--line);border-radius:18px;background:#fff}.settings-toggle input,.setting-toggle input{width:20px;height:20px;margin-top:.15rem}.settings-toggle strong,.settings-toggle small,.setting-toggle strong,.setting-toggle small{display:block}.settings-toggle small,.setting-toggle small{color:var(--muted);margin-top:.2rem}.plans-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}.plan-card{position:relative;display:flex;flex-direction:column;background:#fff;border:1px solid var(--line);border-radius:26px;padding:1.35rem;box-shadow:var(--shadow-soft)}.plan-card.active{border-color:var(--primary);box-shadow:0 18px 45px rgba(91,92,246,.14)}.plan-card .badge{align-self:flex-start}.plan-price{display:flex;align-items:end;gap:.35rem;margin:1rem 0}.plan-price strong{font-size:2rem;font-weight:950;color:#111827}.plan-price span{color:var(--muted)}.plan-features{display:grid;gap:.65rem;padding:0;margin:0 0 1.2rem;list-style:none}.plan-features li{display:flex;align-items:center;gap:.5rem;color:#475569}.plan-features i{color:#10b981}.feature-toggle-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem}.feature-toggle-grid label{display:flex;align-items:center;gap:.6rem;padding:.8rem;border:1px solid var(--line);border-radius:14px}.plan-lock{display:inline-flex;align-items:center;gap:.45rem;padding:.6rem .8rem;border-radius:12px;background:#fff7ed;color:#9a3412;font-size:.78rem;font-weight:800}

.builder-toolbar{display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap;background:#fff;border:1px solid var(--line);border-radius:20px;padding:1rem;box-shadow:var(--shadow-soft)}.builder-layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:1.25rem;align-items:start}.builder-sections{display:grid;gap:.8rem}.builder-section-card{display:grid;grid-template-columns:auto auto minmax(0,1fr) auto;align-items:center;gap:.85rem;background:#fff;border:1px solid var(--line);border-radius:20px;padding:1rem;box-shadow:var(--shadow-soft)}.builder-drag{color:#94a3b8;cursor:grab}.builder-section-icon{width:46px;height:46px;border-radius:14px;background:#eef2ff;color:var(--primary);display:grid;place-items:center;font-size:1.2rem}.builder-section-card h3{font-size:.95rem;font-weight:900;margin:0}.builder-section-card p{margin:.2rem 0 0;color:var(--muted);font-size:.78rem}.builder-actions{display:flex;align-items:center;gap:.35rem}.builder-theme-panel{position:sticky;top:96px}.editor-card-title{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:1rem}.code-box{direction:ltr;text-align:left;padding:.8rem;border-radius:14px;background:#0f172a;color:#e2e8f0;font-family:ui-monospace,monospace;font-size:.78rem;overflow:auto}.store-announcement{display:flex;align-items:center;justify-content:center;gap:.6rem;padding:.7rem 1rem;background:var(--store-primary,#5b5cf6);color:#fff;font-weight:800}.builder-section{border-radius:calc(var(--store-radius,18px) + 8px);padding:2rem;margin-bottom:1.25rem}.builder-hero{min-height:380px;display:flex;align-items:center;justify-content:space-between;gap:2rem;background-size:cover;background-position:center;color:#fff}.builder-hero h1{font-size:clamp(2rem,5vw,4rem);font-weight:950}.builder-hero p{max-width:650px;line-height:1.9}.builder-hero-logo{width:170px;height:170px;object-fit:contain;border-radius:32px;background:rgba(255,255,255,.92);padding:1rem}.promo-section{display:flex;align-items:center;justify-content:space-between;gap:2rem;background:linear-gradient(135deg,var(--store-primary),var(--store-secondary));color:#fff}.promo-section img{width:min(42%,380px);max-height:240px;object-fit:cover;border-radius:22px}.rich-text-section{text-align:center}.rich-text-section .preline{max-width:850px;margin:auto;line-height:2}.store-category-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.8rem}.store-category-grid a{display:flex;flex-direction:column;gap:.25rem;padding:1.1rem;border:1px solid rgba(148,163,184,.22);border-radius:18px;background:rgba(255,255,255,.75);color:inherit}.store-category-grid i{font-size:1.35rem;color:var(--store-primary)}.store-category-grid small{color:#64748b}.testimonial-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.8rem}.testimonial-grid blockquote{margin:0;padding:1.2rem;border:1px solid rgba(148,163,184,.22);border-radius:18px;background:rgba(255,255,255,.8)}.testimonial-grid i{font-size:1.4rem;color:var(--store-primary)}.newsletter-section{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:2rem;background:linear-gradient(135deg,var(--store-primary),var(--store-secondary));color:#fff}.newsletter-section form{display:grid;grid-template-columns:1fr 1fr auto;gap:.6rem}.newsletter-section input{height:48px;border:0;border-radius:14px;padding:.7rem 1rem}

.customer-profile-head{display:flex;align-items:center;gap:1rem}.customer-profile-head .customer-avatar{width:62px;height:62px;font-size:1.4rem}.customer-profile-kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:.75rem}.customer-profile-kpis>div{padding:1rem;border-radius:16px;background:#f8fafc}.customer-profile-kpis span,.customer-profile-kpis strong{display:block}.customer-profile-kpis span{color:var(--muted);font-size:.75rem}.customer-tags{display:flex;align-items:center;gap:.4rem;flex-wrap:wrap}.customer-tags span{display:inline-flex;align-items:center;gap:.3rem;padding:.35rem .65rem;border-radius:999px;background:#eef2ff;color:#4338ca;font-size:.75rem;font-weight:800}.campaign-list{display:grid;gap:.8rem}.campaign-card{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:.9rem;align-items:center;padding:1rem;border:1px solid var(--line);border-radius:18px;background:#fff}.campaign-card>i{width:46px;height:46px;display:grid;place-items:center;border-radius:14px;background:#eef2ff;color:var(--primary);font-size:1.2rem}.campaign-card h3{font-size:.95rem;font-weight:900;margin:0}.campaign-card p{color:var(--muted);font-size:.78rem;margin:.2rem 0 0}.campaign-progress{min-width:150px}.campaign-progress>div{height:7px;background:#e2e8f0;border-radius:999px;overflow:hidden}.campaign-progress i{display:block;height:100%;background:var(--primary)}

.finance-metrics{grid-template-columns:repeat(4,minmax(0,1fr))}.finance-breakdown{display:grid;gap:.4rem}.finance-breakdown>div{display:flex;align-items:center;justify-content:space-between;padding:.75rem;border-bottom:1px solid #eef2f7}.finance-breakdown .total{margin-top:.5rem;border:0;border-radius:15px;background:#eef2ff;color:#3730a3;font-size:1.05rem}.settlement-mini{display:flex;justify-content:space-between;align-items:center;gap:.75rem;padding:.85rem 0;border-bottom:1px solid #eef2f7}.settlement-mini>div{display:grid}.settlement-mini small{color:var(--muted)}.finance-bar{display:grid;grid-template-columns:52px minmax(0,1fr) 70px;align-items:center;gap:.55rem;margin:.7rem 0}.finance-bar>div{height:8px;background:#eef2f7;border-radius:999px;overflow:hidden}.finance-bar i{display:block;height:100%;background:linear-gradient(90deg,var(--primary),var(--primary-2));border-radius:inherit}.finance-bar strong{text-align:left;font-size:.78rem}.settlement-status-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.8rem}.settlement-card{padding:1rem;border:1px solid var(--line);border-radius:18px;background:#fff}.settlement-card strong,.settlement-card span{display:block}.settlement-card span{color:var(--muted);font-size:.78rem}

@media(max-width:1200px){.plans-grid{grid-template-columns:repeat(2,1fr)}.builder-layout{grid-template-columns:1fr}.builder-theme-panel{position:static}.store-category-grid{grid-template-columns:repeat(3,1fr)}.finance-metrics{grid-template-columns:repeat(2,1fr)}}
@media(max-width:768px){.payment-methods-grid,.settings-grid,.plans-grid,.feature-toggle-grid,.newsletter-section{grid-template-columns:1fr}.builder-section-card{grid-template-columns:auto auto minmax(0,1fr)}.builder-actions{grid-column:1/-1;justify-content:flex-end}.builder-hero,.promo-section{align-items:flex-start;flex-direction:column;min-height:auto}.builder-hero-logo,.promo-section img{width:100%;max-height:240px}.store-category-grid,.testimonial-grid{grid-template-columns:repeat(2,1fr)}.newsletter-section form{grid-template-columns:1fr}.customer-profile-head{align-items:flex-start}.customer-profile-kpis,.settlement-status-grid{grid-template-columns:repeat(2,1fr)}.campaign-card{grid-template-columns:auto minmax(0,1fr)}.campaign-progress{grid-column:1/-1}.payment-result-meta{grid-template-columns:1fr}}
@media(max-width:576px){.store-category-grid,.testimonial-grid,.customer-profile-kpis,.finance-metrics,.settlement-status-grid{grid-template-columns:1fr}.builder-section{padding:1.2rem}.builder-section-card{grid-template-columns:auto minmax(0,1fr)}.builder-drag{display:none}.builder-section-icon{width:42px;height:42px}.payment-choice{align-items:flex-start}.plan-lock{width:100%}.settlement-mini{align-items:flex-start;flex-direction:column}.finance-bar{grid-template-columns:46px minmax(0,1fr) 58px}}

/* Advanced storefront builder */
.builder-shell{display:grid;gap:1.25rem}.builder-commandbar{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1rem 1.15rem;border:1px solid #dfe7f1;border-radius:22px;background:linear-gradient(135deg,#fff,#f8faff);box-shadow:0 14px 38px rgba(15,23,42,.06)}.builder-commandbar>div{display:flex;align-items:center;gap:.7rem;flex-wrap:wrap}.builder-status{display:inline-flex;align-items:center;gap:.45rem;padding:.55rem .8rem;border-radius:999px;font-weight:800;font-size:.8rem;background:#ecfdf5;color:#047857}.builder-status.draft{background:#fff7ed;color:#c2410c}.builder-tabs{display:flex;gap:.5rem;padding:.42rem;border:1px solid #e2e8f0;border-radius:18px;background:#f8fafc;overflow-x:auto}.builder-tabs a{display:flex;align-items:center;gap:.5rem;white-space:nowrap;padding:.72rem 1rem;border-radius:13px;color:#64748b;font-weight:850}.builder-tabs a.active{background:#fff;color:#111827;box-shadow:0 8px 22px rgba(15,23,42,.08)}.builder-panel{display:grid;gap:1rem}.builder-panel-heading{display:flex;justify-content:space-between;align-items:end;gap:1rem}.builder-panel-heading h2{font-weight:950;margin:0}.builder-panel-heading p{color:#64748b;margin:.25rem 0 0}.template-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}.template-card{overflow:hidden;border:1px solid #dfe6ef;border-radius:24px;background:#fff;box-shadow:0 12px 34px rgba(15,23,42,.05);transition:.22s}.template-card:hover{transform:translateY(-4px);box-shadow:0 22px 50px rgba(15,23,42,.1)}.template-preview{height:220px;padding:14px;background:#eef2ff;position:relative;overflow:hidden}.template-preview-browser{height:100%;border-radius:14px;background:#fff;box-shadow:0 10px 30px rgba(15,23,42,.16);overflow:hidden}.template-preview-top{height:18px;background:rgba(15,23,42,.08)}.template-preview-nav{height:30px;margin:8px;border-radius:7px;background:rgba(255,255,255,.7);display:flex;gap:4px;align-items:center;padding:6px}.template-preview-nav:before{content:"";width:34px;height:9px;border-radius:4px;background:currentColor;opacity:.6}.template-preview-nav:after{content:"";width:45%;height:5px;border-radius:4px;background:currentColor;opacity:.2}.template-preview-hero{margin:8px;height:80px;border-radius:10px;background:linear-gradient(135deg,currentColor,rgba(255,255,255,.18));opacity:.86}.template-preview-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:5px;margin:8px}.template-preview-grid i{display:block;aspect-ratio:1;border-radius:6px;background:rgba(15,23,42,.1)}.template-modern{color:#5b5cf6;background:#eef2ff}.template-fashion{color:#111;background:#f7efe8}.template-beauty{color:#b76e79;background:#fdf2f8}.template-tech{color:#2563eb;background:#07111f}.template-food{color:#ea580c;background:#fff7ed}.template-living{color:#7c6f5b;background:#eeeae3}.template-luxe{color:#b89752;background:#11100e}.template-kids{color:#7c3aed;background:#fef3c7}.template-sports{color:#16a34a;background:#101914}.template-health{color:#0f766e;background:#ecfeff}.template-services{color:#0f766e;background:#e7f8f4}.template-card-body{padding:1.1rem}.template-card-head{display:flex;align-items:start;justify-content:space-between;gap:.7rem}.template-card h3{font-size:1rem;font-weight:950;margin:0}.template-card p{min-height:46px;color:#64748b;font-size:.83rem;line-height:1.7}.template-category{display:inline-flex;padding:.3rem .55rem;border-radius:999px;background:#f1f5f9;color:#475569;font-size:.68rem;font-weight:850}.template-card-actions{display:flex;gap:.5rem}.template-card-actions .btn{flex:1}.builder-editor-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(280px,.65fr);gap:1rem}.builder-form-card{padding:1.25rem;border:1px solid #e1e8f0;border-radius:22px;background:#fff}.builder-form-card h3{font-weight:950;font-size:1rem;margin-bottom:1rem}.builder-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}.builder-fields .full{grid-column:1/-1}.color-field{display:grid;grid-template-columns:52px 1fr;align-items:center;gap:.6rem}.color-field input[type=color]{width:52px;height:45px;border:0;border-radius:12px;padding:3px;background:#f1f5f9}.builder-range{display:grid;grid-template-columns:1fr auto;align-items:center;gap:.7rem}.builder-range output{min-width:48px;text-align:center;padding:.45rem;border-radius:10px;background:#eef2ff;color:#4338ca;font-weight:900}.builder-switch-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:.65rem}.builder-switch{display:flex;justify-content:space-between;align-items:center;gap:.8rem;padding:.78rem;border:1px solid #e2e8f0;border-radius:14px;background:#fbfdff}.builder-switch input{width:42px;height:22px}.builder-mini-preview{position:sticky;top:92px;overflow:hidden;border:1px solid #dbe4ee;border-radius:24px;background:#fff;box-shadow:0 18px 45px rgba(15,23,42,.08)}.builder-mini-top{display:flex;gap:5px;padding:10px;background:#f1f5f9}.builder-mini-top i{width:8px;height:8px;border-radius:50%;background:#cbd5e1}.builder-mini-site{padding:12px;background:var(--preview-bg,#f8fafc);color:var(--preview-text,#111827);font-family:var(--preview-font,Cairo)}.builder-mini-nav{height:46px;border-radius:12px;background:#fff;display:flex;align-items:center;justify-content:space-between;padding:10px;box-shadow:0 6px 18px rgba(15,23,42,.05)}.builder-mini-nav strong{color:var(--preview-primary,#5b5cf6)}.builder-mini-nav span{width:45%;height:5px;border-radius:5px;background:#e2e8f0}.builder-mini-hero{margin-top:10px;min-height:125px;padding:20px;border-radius:18px;background:linear-gradient(135deg,var(--preview-secondary,#111827),var(--preview-primary,#5b5cf6));color:#fff;display:flex;align-items:center}.builder-mini-hero h4{font-weight:950;max-width:80%}.builder-mini-products{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin-top:10px}.builder-mini-product{padding:5px;border-radius:10px;background:#fff}.builder-mini-product i{display:block;aspect-ratio:1;border-radius:7px;background:#eef2f7}.builder-mini-product span{display:block;width:70%;height:5px;border-radius:5px;background:#dbe4ee;margin:7px 0 4px}.business-mode-options{display:grid;grid-template-columns:repeat(3,1fr);gap:.7rem}.business-mode-card input{display:none}.business-mode-card span{display:flex;flex-direction:column;gap:.3rem;height:100%;padding:1rem;border:2px solid #e2e8f0;border-radius:17px;cursor:pointer}.business-mode-card i{font-size:1.4rem;color:#64748b}.business-mode-card strong{font-weight:950}.business-mode-card small{color:#64748b}.business-mode-card input:checked+span{border-color:#6366f1;background:#eef2ff}.business-mode-card input:checked+span i{color:#4f46e5}.identity-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:1rem}.social-editor{display:grid;gap:.65rem}.social-row{display:grid;grid-template-columns:150px minmax(0,1fr) 140px 70px;gap:.6rem;align-items:center;padding:.65rem;border:1px solid #e2e8f0;border-radius:14px;background:#fbfdff}.social-platform{display:flex;align-items:center;gap:.5rem;font-weight:850}.image-url-upload{display:grid;grid-template-columns:1fr auto;gap:.55rem}.image-url-upload .form-control{min-width:0}.media-status-card{display:flex;justify-content:space-between;align-items:center;gap:1rem;padding:1rem 1.15rem;margin-bottom:1rem;border-radius:20px;border:1px solid #dbe5ef;background:#fff}.media-status-card>div{display:flex;align-items:center;gap:.8rem}.media-status-card i{width:44px;height:44px;border-radius:14px;display:grid;place-items:center;font-size:1.25rem;background:#f1f5f9;color:#475569}.media-status-card strong,.media-status-card span{display:block}.media-status-card span{color:#64748b;font-size:.8rem}.media-status-card.external{background:#ecfdf5;border-color:#a7f3d0}.media-status-card.external i{background:#d1fae5;color:#047857}.media-status-card.local{background:#fff7ed;border-color:#fed7aa}.media-status-card.local i{background:#ffedd5;color:#c2410c}.media-upload-form{display:grid;grid-template-columns:minmax(0,1fr) 280px auto;gap:1rem;align-items:end}.media-dropzone{position:relative;display:flex;align-items:center;justify-content:center;flex-direction:column;min-height:145px;padding:1rem;border:2px dashed #cbd5e1;border-radius:20px;background:#f8fafc;text-align:center;cursor:pointer}.media-dropzone:hover{border-color:#6366f1;background:#eef2ff}.media-dropzone i{font-size:2rem;color:#6366f1}.media-dropzone strong{font-weight:950}.media-dropzone span{font-size:.78rem;color:#64748b}.media-dropzone input{position:absolute;inset:0;opacity:0;cursor:pointer}.media-library-grid,.media-picker-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:.85rem}.media-asset-card,.media-picker-card{overflow:hidden;border:1px solid #e2e8f0;border-radius:18px;background:#fff}.media-asset-image{position:relative;aspect-ratio:1;background:#f1f5f9}.media-asset-image img{width:100%;height:100%;object-fit:cover}.media-asset-image span{position:absolute;top:.5rem;right:.5rem;padding:.28rem .48rem;border-radius:999px;background:rgba(15,23,42,.72);color:#fff;font-size:.62rem}.media-asset-body{padding:.75rem}.media-asset-body strong,.media-asset-body small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.media-asset-body small{color:#64748b;font-size:.7rem}.media-asset-actions{display:flex;gap:.4rem;margin-top:.65rem}.media-asset-actions form{margin-right:auto}.section-list{display:grid;gap:.7rem}.section-card{display:grid;grid-template-columns:auto 56px minmax(0,1fr) auto;align-items:center;gap:.8rem;padding:.85rem;border:1px solid #e2e8f0;border-radius:18px;background:#fff}.section-card.is-disabled{opacity:.58}.section-drag{cursor:grab;color:#94a3b8;font-size:1.2rem}.section-icon{width:50px;height:50px;display:grid;place-items:center;border-radius:15px;background:#eef2ff;color:#4f46e5;font-size:1.2rem}.section-card h3{font-size:.92rem;font-weight:950;margin:0}.section-card p{margin:.15rem 0 0;color:#64748b;font-size:.75rem}.section-actions{display:flex;gap:.35rem}.section-editor-layout{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:1rem}.section-side-card{position:sticky;top:92px}.section-item-list{display:grid;gap:.7rem}.section-item-editor{padding:1rem;border:1px solid #e2e8f0;border-radius:17px;background:#fbfdff}.section-item-editor-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:.65rem}.section-item-editor-grid .wide{grid-column:1/-1}.section-item-toolbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:.7rem}.section-item-toolbar strong{font-weight:950}.media-picker-grid{grid-template-columns:repeat(3,1fr);max-height:360px;overflow:auto}.media-picker-card{position:relative;cursor:pointer}.media-picker-card img{width:100%;aspect-ratio:1;object-fit:cover}.media-picker-card button{position:absolute;inset:auto .4rem .4rem .4rem;border:0;border-radius:10px;background:rgba(15,23,42,.82);color:#fff;padding:.45rem;font-size:.7rem}.builder-empty{padding:2.5rem;text-align:center;border:2px dashed #dbe4ee;border-radius:22px;background:#f8fafc}.builder-empty i{font-size:2.2rem;color:#94a3b8}.builder-empty h3{font-weight:950;margin:.7rem 0 .2rem}.builder-empty p{color:#64748b}.sortable-ghost{opacity:.35}.sortable-chosen{box-shadow:0 20px 45px rgba(79,70,229,.16)}
@media(max-width:1200px){.template-gallery{grid-template-columns:repeat(2,1fr)}.builder-editor-grid,.identity-grid,.section-editor-layout{grid-template-columns:1fr}.builder-mini-preview,.section-side-card{position:static}.media-library-grid{grid-template-columns:repeat(4,1fr)}}
@media(max-width:850px){.builder-commandbar,.builder-panel-heading{align-items:flex-start;flex-direction:column}.builder-fields,.builder-switch-grid,.business-mode-options{grid-template-columns:1fr}.social-row{grid-template-columns:1fr}.media-upload-form{grid-template-columns:1fr}.media-library-grid{grid-template-columns:repeat(3,1fr)}.section-card{grid-template-columns:auto 48px minmax(0,1fr)}.section-actions{grid-column:2/-1}.section-item-editor-grid{grid-template-columns:1fr}.section-item-editor-grid .wide{grid-column:auto}}
@media(max-width:560px){.template-gallery{grid-template-columns:1fr}.template-preview{height:190px}.media-library-grid,.media-picker-grid{grid-template-columns:repeat(2,1fr)}.section-card{grid-template-columns:auto minmax(0,1fr)}.section-icon{display:none}.section-actions{grid-column:1/-1;overflow:auto}.builder-tabs a{padding:.65rem .8rem}.builder-form-card{padding:1rem}}
.builder-publish-state{display:flex;align-items:center;gap:.7rem}.builder-publish-state strong,.builder-publish-state small{display:block}.builder-publish-state small{color:#64748b}.status-dot{width:12px;height:12px;border-radius:50%;background:#f59e0b;box-shadow:0 0 0 6px rgba(245,158,11,.12)}.status-dot.published{background:#10b981;box-shadow:0 0 0 6px rgba(16,185,129,.12)}.builder-command-actions{display:flex;align-items:center;gap:.55rem;flex-wrap:wrap}.builder-command-actions form{margin:0}.builder-kicker{display:block;color:#6366f1;font-size:.68rem;font-weight:950;letter-spacing:.08em;text-transform:uppercase;margin-bottom:.25rem}.builder-settings-form{padding:1.35rem}.editor-card-title{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;margin-bottom:1rem}.editor-card-title h2{font-size:1.05rem;font-weight:950;margin:0}.editor-card-title p{color:#64748b;font-size:.8rem;margin:.25rem 0 0}.editor-card-title>i{width:42px;height:42px;border-radius:14px;background:#eef2ff;color:#4f46e5;display:grid;place-items:center}.form-grid-2,.form-grid-3{display:grid;gap:.85rem}.form-grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}.form-grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}.color-field-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:.75rem}.color-field-grid label{display:grid;grid-template-columns:1fr 42px;align-items:center;gap:.5rem;padding:.7rem;border:1px solid #e2e8f0;border-radius:14px;background:#fbfdff}.color-field-grid label span{font-size:.75rem;font-weight:850}.color-field-grid input{width:42px;height:36px;border:0;background:transparent}.color-field-grid code{grid-column:1/-1;color:#64748b;font-size:.65rem;direction:ltr}.range-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:.75rem}.range-grid label{display:grid;gap:.45rem;padding:.75rem;border:1px solid #e2e8f0;border-radius:14px}.range-grid span{font-size:.76rem;font-weight:850}.range-grid input[type=range]{width:100%}.switch-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:.65rem}.switch-grid.single{grid-template-columns:1fr}.switch-grid label{display:flex;align-items:center;gap:.65rem;padding:.75rem;border:1px solid #e2e8f0;border-radius:14px;background:#fbfdff;font-weight:800;font-size:.8rem}.switch-grid input{width:20px;height:20px}.business-mode-picker{display:grid;grid-template-columns:repeat(3,1fr);gap:.75rem}.business-mode-picker label{cursor:pointer}.business-mode-picker input{position:absolute;opacity:0}.business-mode-picker span{display:flex;flex-direction:column;gap:.3rem;min-height:108px;padding:1rem;border:2px solid #e2e8f0;border-radius:17px;background:#fff}.business-mode-picker i{font-size:1.4rem;color:#64748b}.business-mode-picker strong{font-weight:950}.business-mode-picker small{color:#64748b;font-size:.72rem}.business-mode-picker input:checked+span{border-color:#6366f1;background:#eef2ff}.business-mode-picker input:checked+span i{color:#4f46e5}.builder-live-preview{position:sticky;top:90px}.mini-store-preview{overflow:hidden;border:1px solid #dbe4ee;border-radius:24px;background:#fff;box-shadow:0 20px 50px rgba(15,23,42,.08)}.mini-store-preview .mini-header{height:52px;display:flex;align-items:center;justify-content:space-between;padding:.7rem;background:#fff}.mini-store-preview .mini-logo{font-weight:950;color:var(--mini-primary,#5b5cf6)}.mini-store-preview .mini-menu{width:42%;height:6px;border-radius:6px;background:#e2e8f0}.mini-store-preview .mini-hero{min-height:180px;padding:1.5rem;display:flex;align-items:center;background:linear-gradient(135deg,var(--mini-secondary,#111827),var(--mini-primary,#5b5cf6));color:#fff}.mini-store-preview .mini-hero h3{font-weight:950}.mini-products{display:grid;grid-template-columns:repeat(3,1fr);gap:.55rem;padding:.75rem;background:var(--mini-bg,#f8fafc)}.mini-products div{padding:.4rem;border-radius:12px;background:#fff}.mini-products i{display:block;aspect-ratio:1;border-radius:8px;background:#edf1f6}.mini-products span{display:block;width:70%;height:6px;margin:.45rem 0;border-radius:4px;background:#dbe4ee}.code-textarea{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;direction:ltr;text-align:left}.social-links-editor{display:grid;gap:.7rem}.social-link-row{display:grid;grid-template-columns:48px 190px minmax(0,1fr);align-items:center;gap:.75rem;padding:.75rem;border:1px solid #e2e8f0;border-radius:16px;background:#fbfdff}.social-platform-icon{width:44px;height:44px;border-radius:14px;display:grid;place-items:center;background:#eef2ff;color:#4f46e5;font-size:1.2rem}.builder-section-menu{max-height:440px;overflow:auto;min-width:270px}.builder-section-menu .dropdown-item{display:flex;gap:.65rem;align-items:center}.builder-order-save{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.85rem 1rem;border-radius:16px;background:#f8fafc;color:#64748b}.builder-visibility span{display:inline-flex;align-items:center;gap:.35rem;padding:.4rem .6rem;border-radius:999px;font-size:.7rem;font-weight:850}.builder-visibility .visible{background:#ecfdf5;color:#047857}.builder-visibility .hidden{background:#f1f5f9;color:#64748b}.upgrade-lock{text-align:center;padding:3rem}.upgrade-lock>i{font-size:2.7rem;color:#6366f1}.upgrade-lock h2{font-weight:950;margin:.8rem 0 .35rem}.upgrade-lock p{color:#64748b}.sortable-sections{min-height:80px}.section-editor-form{display:block}.section-editor-heading{display:grid;grid-template-columns:auto 1fr 260px;align-items:center;gap:1rem}.builder-section-icon.large{width:58px;height:58px;font-size:1.35rem}.section-editor-main{display:grid;gap:1rem}.section-editor-sidebar{min-width:0}.sticky-panel{position:sticky;top:90px}.section-type-select{min-width:0}.section-image-editor{display:grid;grid-template-columns:220px 1fr;gap:1rem;align-items:center}.section-image-preview{height:150px;border:2px dashed #cbd5e1;border-radius:18px;background:#f8fafc;overflow:hidden;display:grid;place-items:center;color:#94a3b8;text-align:center}.section-image-preview.mobile{height:210px;max-width:130px}.section-image-preview img{width:100%;height:100%;object-fit:cover}.input-with-action{display:grid;grid-template-columns:1fr auto;gap:.5rem}.section-items-editor{display:grid;gap:.8rem}.section-item-editor{position:relative;padding:1rem 1rem 1rem 3rem;border:1px solid #e2e8f0;border-radius:18px;background:#fbfdff}.section-item-number{position:absolute;top:1rem;left:1rem;width:25px;height:25px;border-radius:8px;background:#eef2ff;color:#4f46e5;display:grid;place-items:center;font-weight:950;font-size:.7rem}.section-item-remove{position:absolute;top:1rem;right:auto;left:2.85rem;border:0;background:transparent;color:#ef4444}.media-picker-modal{position:fixed;inset:0;z-index:1300;display:none;place-items:center;padding:1rem;background:rgba(15,23,42,.62);backdrop-filter:blur(5px)}.media-picker-modal.open{display:grid}.media-picker-dialog{width:min(920px,96vw);max-height:88vh;overflow:auto;border-radius:24px;background:#fff;box-shadow:0 30px 90px rgba(15,23,42,.3)}.media-picker-header{position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;padding:1rem 1.2rem;background:#fff;border-bottom:1px solid #e2e8f0}.media-picker-header h3{font-weight:950;margin:0}.media-picker-header p{color:#64748b;margin:0}.media-picker-header button{width:40px;height:40px;border:0;border-radius:12px;background:#f1f5f9}.media-picker-dialog .media-picker-grid{padding:1rem}.media-picker-dialog .media-picker-grid>button{position:relative;padding:0;border:1px solid #e2e8f0;border-radius:15px;overflow:hidden;background:#fff}.media-picker-dialog .media-picker-grid img{width:100%;aspect-ratio:1;object-fit:cover}.media-picker-dialog .media-picker-grid span{display:block;padding:.5rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:.7rem}
@media(max-width:1000px){.section-editor-heading{grid-template-columns:auto 1fr}.section-type-select{grid-column:1/-1}.color-field-grid{grid-template-columns:repeat(2,1fr)}.section-image-editor{grid-template-columns:160px 1fr}}
@media(max-width:760px){.form-grid-2,.form-grid-3,.color-field-grid,.range-grid,.switch-grid,.business-mode-picker{grid-template-columns:1fr}.social-link-row{grid-template-columns:44px 1fr}.social-link-row>input:last-child{grid-column:1/-1}.section-image-editor{grid-template-columns:1fr}.section-image-preview,.section-image-preview.mobile{max-width:none}.builder-order-save{align-items:flex-start;flex-direction:column}}

/* Store identity media */
.brand-media-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}.brand-media-upload{display:grid;grid-template-columns:150px minmax(0,1fr);align-items:center;gap:1rem;padding:1rem;border:1px solid #e6eaf0;border-radius:18px;background:#f8fafc}.brand-media-preview{display:grid;place-items:center;overflow:hidden;width:150px;height:110px;border:1px dashed #cbd5e1;border-radius:14px;background:#fff;color:#94a3b8;font-size:2rem}.brand-media-preview img{width:100%;height:100%;object-fit:contain}.banner-upload .brand-media-preview img{object-fit:cover}.brand-media-upload small{display:block;margin-top:.45rem;color:#64748b}.brand-media-upload .form-control{min-width:0}@media(max-width:900px){.brand-media-grid{grid-template-columns:1fr}}@media(max-width:560px){.brand-media-upload{grid-template-columns:1fr}.brand-media-preview{width:100%;height:150px}}

/* Store builder: horizontal section spacing */
.section-horizontal-padding{padding:1rem;border:1px solid rgba(148,163,184,.22);border-radius:16px;background:linear-gradient(180deg,#f8fafc,#fff)}
.section-horizontal-padding .editor-card-title{margin-bottom:.35rem}
