
:root{--purple:#8034ff;--purple-soft:#f2ecff;--ink:#0c1022;--text:#34415b;--muted:#8290a9;--line:#e6eaf2;--radius:14px;--sidebar:234px}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:#fff;color:var(--ink);font-family:Arial,Helvetica,sans-serif;font-size:14px;letter-spacing:-.25px}button,input,select{font:inherit}button,a,input,select{outline-offset:4px}button{cursor:pointer}button{color:inherit}a{color:inherit;text-decoration:none}button:disabled{cursor:default}.sprite{position:absolute;width:0;height:0;overflow:hidden}.icon{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}button{border:0;background:none}button:hover{filter:brightness(.97)}button:focus-visible,a:focus-visible{outline:3px solid #b996ff}.muted{color:var(--muted)}small{display:block;color:var(--muted);font-size:12px;line-height:1.6}.dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--purple);font-size:0;vertical-align:middle;margin-left:2px}.card{border:1px solid var(--line);border-radius:var(--radius);background:linear-gradient(120deg,#fff,#fcfdff)}
.sidebar{position:fixed;inset:0 auto 0 0;width:var(--sidebar);border-right:1px solid #edf0f5;background:#fff;display:flex;flex-direction:column;padding:25px 19px 18px;z-index:20;overflow-y:auto}.brand{font-size:25px;letter-spacing:-1.4px;font-weight:800;margin:0 10px 3px;white-space:nowrap}.brand-tagline{margin:0 10px 28px;font-size:12px;color:var(--muted);white-space:nowrap}.store-switch{display:flex;align-items:center;gap:12px;border:1px solid var(--line);border-radius:10px;height:43px;margin:0 7px 19px;padding:0 13px;font-size:13px}.store-switch>.icon:last-child{margin-left:auto;width:18px}.nav{display:flex;flex-direction:column;gap:5px}.nav-item{height:42px;display:flex;align-items:center;gap:14px;width:100%;padding:0 14px;border-radius:12px;text-align:left;color:var(--text);font-size:13px;font-weight:500;white-space:nowrap;transition:background .15s,color .15s}.nav-item.active{color:#fff;background:var(--ink);box-shadow:0 10px 22px rgba(12,16,34,.16)}.nav-item.active .icon{stroke:#fff}.nav-item .icon{width:21px;height:21px}.nav-item:hover{background:#f8f6fd}.nav-item.active:hover{background:var(--ink)}.badge{margin-left:auto;padding:4px 8px;background:var(--purple-soft);color:var(--purple);border-radius:20px;font-size:12px}.sidebar-bottom{margin-top:auto}.bottom-nav{display:flex;flex-direction:column;gap:5px;margin-bottom:22px}.profile{border-top:1px solid #edf0f5;padding-top:17px;display:flex;align-items:center;gap:10px}.avatar{width:40px;height:40px;object-fit:cover;border-radius:50%}.profile strong{font-size:13px;font-weight:500}.profile small{font-size:11px}.profile .icon-button{margin-left:auto}
.main{margin-left:var(--sidebar);padding:0 28px 18px}.topbar{height:76px;display:flex;align-items:center;gap:20px}.breadcrumb{display:flex;align-items:center;gap:13px;color:var(--text);font-size:13px}.breadcrumb .icon{width:18px;height:18px}.breadcrumb .icon:nth-child(2){width:12px;color:#7c889e}.top-actions{display:flex;align-items:center;gap:16px;margin-left:auto}.search{width:335px;height:44px;display:flex;gap:10px;align-items:center;padding:0 15px;background:#f3f5f8;border-radius:12px;color:#697994}.search .icon{width:18px}.search input{border:0;background:transparent;width:100%;font-size:13px;outline:0;color:var(--ink)}.search input::placeholder{color:#8290a9}.icon-button{display:flex;align-items:center;justify-content:center;width:30px;height:32px;padding:0;color:#34415b}.notification{position:relative}.notification:after{content:'';position:absolute;right:6px;top:4px;width:7px;height:7px;border:2px solid white;border-radius:50%;background:var(--purple)}.button{display:inline-flex;gap:10px;align-items:center;justify-content:center;border-radius:10px;height:44px;padding:0 21px;white-space:nowrap;font-size:13px;font-weight:600}.button.outline{border:1px solid #dfe5ee;background:#fff}.button.primary{background:var(--purple);color:#fff}.button.dark{background:#222629;color:#fff}.button .icon{width:18px;height:18px}.button.small{height:34px;border-radius:8px;padding:0 12px;font-size:11px}.mobile-menu{display:none}
.heading{display:flex;align-items:flex-start;justify-content:space-between;margin:11px 0 22px;gap:16px}h1{font-size:44px;letter-spacing:-2.5px;line-height:1.1;margin:0 0 6px;font-weight:800}.heading p{color:var(--muted);font-size:16px;margin:0;line-height:1.4}.date-range{margin-top:5px;height:44px;padding:0 13px;gap:12px;font-size:12px;font-weight:400}.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}.metric{height:116px;padding:17px;display:flex;position:relative;gap:18px;overflow:hidden}.metric-icon{width:46px;height:46px;border-radius:12px;display:grid;place-items:center;color:var(--purple);background:var(--purple-soft);flex-shrink:0}.metric-icon .icon{width:26px;height:26px}.symbol{font-size:28px;font-weight:400}.metric-text{position:relative;z-index:1}.metric-text p{font-size:13px;color:#728099;margin:5px 0 4px}.metric-text strong{font-size:27px;letter-spacing:-.6px;line-height:1}.trend{display:flex;align-items:center;gap:5px;margin-top:10px;color:var(--purple);font-size:12px;white-space:nowrap}.trend .icon{width:14px;height:14px;stroke-width:2}.trend b{font-weight:500}.trend span{color:var(--muted)}.spark{position:absolute;right:16px;top:30px;width:86px;height:56px}.metric-text strong{display:block}
.overview{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-top:18px}.overview .card{height:260px;padding:15px 19px 17px}h2{font-size:18px;letter-spacing:-.6px;margin:0;font-weight:700}.panel-heading{height:32px;display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.period{height:32px;font-weight:400;font-size:11px;padding:0 12px;gap:12px}.period .icon{width:14px}.chart-wrap{height:184px;width:100%}.chart{display:block;width:100%;height:100%;overflow:visible}.chart text{fill:#7c89a0;font:11px Arial,sans-serif}.chart .grid{stroke:#e9edf4;stroke-width:1}.chart .line{fill:none;stroke:var(--purple);stroke-width:1.7}.website-status{display:flex;gap:22px;align-items:flex-start}.store-preview{display:block;width:49.5%;height:190px;border:1px solid #e4e4e7;border-radius:6px;object-fit:cover}.status-info{flex:1;min-width:0;padding-top:2px}.domain{font-weight:700;font-size:18px;display:flex;gap:6px;align-items:center;letter-spacing:-.4px}.domain .icon{width:17px;height:17px;color:#71809a}.publication{display:flex;align-items:center;gap:9px;color:var(--purple);font-size:13px;margin:9px 0 3px}.publication:before{content:'';display:inline-block;width:9px;height:9px;background:var(--purple);border-radius:50%}.publication.draft{color:#7e8b9f}.publication.draft:before{background:#8b95a7}.updated{font-size:11px;margin:6px 0 16px;color:var(--muted)}.page-links{display:flex;gap:5px;margin-bottom:17px}.page-link{height:38px;display:flex;align-items:center;gap:6px;font-size:10px;padding:0 8px;border:1px solid var(--line);border-radius:7px;white-space:nowrap}.page-link .icon{width:13px;height:13px}.status-actions{display:flex;gap:15px;align-items:center}.text-button{font-size:12px;white-space:nowrap;padding:6px 3px}.status-actions .button{padding:0 25px}
.websites-section{margin-top:27px}.section-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}.websites-grid{display:grid;grid-template-columns:1fr 1fr 1fr;gap:14px}.site-card{height:113px;border:1px solid var(--line);border-radius:10px;display:flex;gap:12px;align-items:flex-start;padding:12px}.site-thumb{width:120px;height:86px;border-radius:4px;border:1px solid #e9eaee;object-fit:cover;flex-shrink:0}.site-content{flex:1;min-width:0}.site-title-row{display:flex;align-items:center;justify-content:space-between;gap:7px;margin-bottom:4px}.site-title-row strong{font-size:14px;letter-spacing:-.4px}.site-title-row .button{margin-left:auto}.site-domain{font-size:12px;color:var(--muted);display:flex;align-items:center;gap:5px;margin-top:3px}.site-domain .icon{width:13px;height:13px}.site-card .publication{margin-top:18px;font-size:12px}.site-card .icon-button{width:20px;height:29px;margin-right:-3px}.site-card .icon-button .icon{width:16px}.create-site{border-style:dashed;align-items:center;text-align:left;gap:19px;padding:16px 21px;background:#fff}.create-site .plus-circle{width:50px;height:50px;background:var(--purple-soft);color:var(--purple);border-radius:50%;display:grid;place-items:center;flex-shrink:0}.create-site .plus-circle .icon{width:24px}.create-site strong{display:block;font-size:17px;letter-spacing:-.6px;margin-bottom:7px}.create-site p{font-size:13px;color:var(--muted);line-height:1.4;margin:0}
.orders-section{margin-top:23px}.view-orders{display:flex;align-items:center;gap:10px;color:var(--purple);font-size:12px;padding:0 6px}.view-orders .icon{width:17px;height:17px}.table-container{border:1px solid var(--line);border-radius:10px;overflow:auto}table{border-collapse:collapse;width:100%;text-align:left;white-space:nowrap;font-size:12px}thead{background:#f7f9fc;font-size:11px;font-weight:400;color:#1e2b44}th{height:34px;font-weight:400}td{height:47px;border-top:1px solid var(--line)}th,td{padding:4px 13px}th:first-child,td:first-child{width:58px;padding-left:17px}th:last-child,td:last-child{width:47px;padding-right:13px}th:nth-child(2){width:105px}th:nth-child(3){width:25%}th:nth-child(4){width:11%}th:nth-child(5){width:22%}th:nth-child(6){width:14%}.sort{display:inline-block;color:var(--muted);font-size:10px;margin-left:8px}input[type=checkbox]{appearance:none;width:16px;height:16px;border:1.5px solid #c6d0df;border-radius:4px;background:#fff;vertical-align:middle;margin:0;cursor:pointer}input[type=checkbox]:checked{background:var(--purple);border-color:var(--purple);box-shadow:inset 0 0 0 3px #fff}.order-number{font-weight:600}.customer{display:flex;align-items:center;gap:12px}.initials{background:var(--purple-soft);color:var(--purple);width:36px;height:36px;display:grid;place-items:center;border-radius:50%;font-size:11px;flex-shrink:0}.payment{display:flex;align-items:center;gap:11px;font-size:12px}.visa,.mastercard{width:31px;height:28px;border:1px solid #e9edf4;border-radius:7px;background:#fff;display:flex;justify-content:center;align-items:center;flex-shrink:0}.visa{font-size:10px;font-weight:800;font-style:italic;color:#1735af;letter-spacing:-.7px}.mastercard i{width:13px;height:13px;border-radius:50%;background:#ed283a}.mastercard i+i{margin-left:-5px;background:#ffac00;opacity:.95}.status-pill{font-size:11px;color:var(--purple);background:#eee6ff;padding:6px 12px;border-radius:20px}.horizontal .icon{transform:rotate(90deg);width:18px}td small{line-height:1.5;font-size:12px}.empty-search{padding:20px;color:var(--muted);display:none}
.dialog{border:1px solid var(--line);border-radius:18px;max-width:520px;width:calc(100% - 32px);padding:27px;color:var(--ink);box-shadow:0 20px 80px #0b10222b}.dialog::backdrop{background:#0c102250;backdrop-filter:blur(3px)}.dialog-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.dialog p{color:var(--muted);line-height:1.5}.form-field{display:block;margin:16px 0;font-size:13px;font-weight:600}.form-field input,.form-field select,.form-field textarea{display:block;box-sizing:border-box;width:100%;margin-top:8px;padding:12px;border:1px solid #dbe2ed;border-radius:8px;background:#fff;font:inherit;color:var(--ink)}.dialog-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:22px}.toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);border:1px solid var(--line);padding:14px 22px;background:#23262c;color:#fff;border-radius:12px;box-shadow:0 8px 25px #0002;z-index:100;display:none;font-size:13px}.sidebar-overlay{display:none}
@media(min-width:1800px){.main{max-width:1800px;margin-right:auto}.overview .card{height:290px}.chart-wrap{height:213px}.store-preview{height:215px}.site-card{height:126px}.site-thumb{height:99px;width:138px}}
@media(max-width:1450px){:root{--sidebar:215px}.main{padding:0 24px 24px}.brand{font-size:23px}.search{width:275px}h1{font-size:39px}.metric{gap:12px;padding:14px}.metric-icon{width:39px;height:42px}.spark{width:65px;right:12px;top:30px}.metric-text strong{font-size:25px}.trend{font-size:11px;gap:3px}.overview .card{padding:15px}.website-status{gap:14px}.store-preview{width:45%}.page-link{padding:0 6px;gap:3px;font-size:9px}.status-actions{gap:8px}.status-actions .button{padding:0 17px}.site-card{gap:10px;padding:10px}.site-thumb{width:92px}.site-title-row{flex-wrap:wrap;gap:4px}.site-title-row .button{height:27px;font-size:10px;padding:0 8px}.site-title-row strong{font-size:13px}.site-card .publication{margin-top:10px}.create-site{padding:14px}.create-site strong{font-size:15px}.create-site p{font-size:12px}}
@media(max-width:1200px){:root{--sidebar:190px}.sidebar{padding-left:12px;padding-right:12px}.brand{font-size:21px;margin-left:7px}.nav-item{gap:12px;font-size:13px;padding:0 12px}.search{width:220px}.top-actions{gap:10px}.top-actions .button{padding:0 13px}.heading{align-items:center}h1{font-size:32px;letter-spacing:-1.7px}.heading p{font-size:14px}.date-range{font-size:10px;gap:6px;padding:0 9px}.metrics{gap:12px}.metric{gap:10px}.metric-icon{width:34px;height:36px}.metric-icon .icon{width:22px}.spark{display:none}.overview{grid-template-columns:1fr}.overview .card{height:auto;min-height:255px}.store-preview{width:45%;max-width:370px;height:190px}.website-status{gap:24px}.page-link{padding:0 12px;font-size:11px;gap:6px}.status-info{padding-top:8px}.websites-grid{grid-template-columns:1fr 1fr}.create-site{grid-column:1/-1;height:95px}.site-thumb{width:110px}.site-title-row strong{font-size:14px}.site-title-row .button{height:31px}.table-container table{min-width:930px}}
@media(max-width:850px){:root{--sidebar:225px}.sidebar{transform:translateX(-100%);transition:transform .2s}.sidebar.open{transform:translateX(0)}.sidebar-overlay.show{display:block;position:fixed;inset:0;background:#0c102250;z-index:19}.main{margin-left:0;padding:0 20px 24px}.mobile-menu{display:flex}.breadcrumb{gap:8px}.topbar{gap:10px}.search{width:220px}.top-actions .outline{display:none}.top-actions{gap:9px}.heading{margin-top:15px}.metrics{gap:12px}.metric{height:116px;padding:12px;gap:10px}.metric-text strong{font-size:23px}.metric-text p{font-size:12px}.metric-icon{width:32px;height:35px}.trend{flex-wrap:wrap;font-size:10px}.trend span{font-size:9px}}
@media(max-width:600px){.main{padding:0 16px 20px}.topbar{height:68px}.search{width:38px;padding:10px}.search input{display:none}.top-actions .button.primary{padding:0 10px;gap:5px;font-size:11px;height:38px}.notification{display:none}.breadcrumb{font-size:12px}.top-actions{gap:8px}.heading{display:block;margin:13px 0 19px}h1{font-size:31px;letter-spacing:-1.7px;max-width:350px}.heading p{font-size:13px;line-height:1.5;max-width:320px}.date-range{margin-top:13px;height:36px;font-size:11px;padding:0 10px;gap:10px}.metrics{grid-template-columns:1fr 1fr;gap:10px}.metric{height:110px;gap:11px}.metric-text strong{font-size:23px}.metric-icon{width:36px;height:38px}.trend{gap:4px;font-size:11px}.trend span{font-size:10px}.overview{gap:14px;margin-top:14px}.overview .card{padding:13px;min-height:235px}.chart-wrap{height:176px}.panel-heading{margin-bottom:10px}h2{font-size:17px}.website-status{gap:15px;flex-direction:column}.store-preview{width:100%;max-width:none;height:220px;object-fit:cover;object-position:center}.status-info{width:100%;padding-top:0}.page-links{margin-bottom:14px}.page-link{flex:1;padding:0 6px;justify-content:center;font-size:10px}.status-actions{justify-content:space-between}.websites-section{margin-top:21px}.websites-grid{grid-template-columns:1fr}.site-card{height:120px;padding:12px;gap:15px}.site-thumb{width:115px;height:94px}.site-title-row{flex-wrap:nowrap;align-items:flex-start}.site-title-row strong{font-size:14px}.site-title-row .button{font-size:10px}.site-card .publication{margin-top:18px}.create-site{grid-column:auto;height:105px}.create-site strong{font-size:17px}.create-site p{font-size:13px}.orders-section{margin-top:21px}.view-orders{font-size:11px;gap:5px}.dialog{padding:20px}.toast{width:calc(100% - 32px);text-align:center}.sidebar .brand{font-size:25px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.sidebar{transition:none}}

/* ======================================================================
   Additions below: screens the reference dashboard didn't cover (login,
   onboarding/generate wizard, editor tabs, etc). Same tokens/voice as above.
   ====================================================================== */
.shell{display:block;}
.sidebar-bottom .nav{border-top:1px solid #edf0f5;padding-top:14px;}
.sidebar{background:#fbfbfd;}
.store-switch{background:#fff;border-color:#e9ecf3;}
.nav-item{font-weight:500;}
.nav-item .icon{width:19px;height:19px;stroke-width:1.6;}
.nav-item.active{font-weight:600;}
.pixel-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:16px;}
.pixel-card{padding:20px;}
.pixel-card-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px;}
.pixel-glyph{width:40px;height:40px;border-radius:10px;display:flex;align-items:center;justify-content:center;font-weight:800;font-size:16px;}
.pixel-card h3{font-size:16px;margin:0 0 4px;}
.pixel-status{font-size:11px;}
.pixel-verified{display:inline-flex;align-items:center;gap:4px;font-size:11px;font-weight:700;color:#1aa14c;background:#e9f9ef;padding:4px 9px;border-radius:999px;}
.pixel-verified .icon{width:12px;height:12px;stroke-width:3;}
.pixel-card .button{width:100%;margin-top:4px;}
#pixelFormCode{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:12px;}
.ads-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:18px;}
.ad-card{padding:0;overflow:hidden;}
.ad-card-img{width:100%;aspect-ratio:1;object-fit:cover;display:block;background:var(--purple-soft);}
.ad-card-body{padding:16px;}
.ad-card-body h3{font-size:14px;margin:8px 0 2px;}
.ad-card .button.small{height:32px;padding:0 12px;font-size:11px;}
.ad-batch-card{padding:18px;margin-bottom:22px;}
.ad-batch-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px;}
.ad-copy-panel{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px;margin-top:18px;border-top:1px solid var(--line);padding-top:16px;}
.ad-copy-group .pill{margin-bottom:8px;}
.ad-copy-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px;}
.ad-copy-list li{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;font-size:12px;background:var(--purple-soft);border-radius:8px;padding:6px 8px;}
.ad-copy-list li span{flex:1;line-height:1.4;}
.ad-copy-list li .icon-button{width:22px;height:22px;flex-shrink:0;}
.site-thumb{overflow:hidden;background:var(--purple-soft);display:flex;align-items:center;justify-content:center;color:var(--purple);font-size:11px;}
.button.danger{color:#e5484d;}
.button.danger:hover{background:#fdeaea;}

/* status-pill color states, beyond the reference's single purple style */
.status-pill.pending{background:#fdf2e3;color:#c98a12;}
.status-pill.processing{background:#e8effd;color:#3568d4;}
.status-pill.shipped{background:var(--purple-soft);color:var(--purple);}
.status-pill.delivered,.status-pill.paid{background:#e6f7ef;color:#1fa971;}
.status-pill.cancelled{background:#fdeaea;color:#e5484d;}

/* flash messages */
.flash{padding:12px 16px;border-radius:9px;font-size:13px;font-weight:600;margin-bottom:14px;}
.flash.success{background:#e6f7ef;color:#1fa971;}
.flash.error{background:#fdeaea;color:#e5484d;}

/* auth pages (login/signup): split layout — tilted collage of our own templates on the left,
   the form centered on the right. Collage is hidden below ~960px so mobile just gets the form. */
.auth-split{min-height:100vh;display:flex;}
.auth-left{flex:1 1 50%;position:relative;overflow:hidden;background:var(--purple-soft);display:none;}
.auth-collage{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;}
.auth-collage-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;width:150%;transform:rotate(-11deg) scale(1.15);}
.auth-collage-grid img{width:100%;aspect-ratio:3/4;object-fit:cover;object-position:top;border-radius:14px;box-shadow:0 18px 40px rgba(12,16,34,.18);background:#fff;}
.auth-right{flex:1 1 50%;display:flex;align-items:center;justify-content:center;padding:24px;background:#fff;}
.auth-form-wrap{width:100%;max-width:420px;}
.auth-brand{display:flex;align-items:center;gap:10px;font-weight:800;font-size:20px;letter-spacing:-.03em;margin-bottom:28px;}
.beta-pill{background:var(--ink);color:#fff;font-size:10px;font-weight:700;padding:3px 9px;border-radius:999px;letter-spacing:.02em;}
.auth-form-wrap h1{font-size:26px;margin-bottom:4px;letter-spacing:-.6px;}
.auth-form-wrap p.sub{color:var(--muted);font-size:14px;margin:0 0 22px;}
@media (min-width:960px){.auth-left{display:block;}}

.form-hint{color:var(--muted);font-size:12px;margin-top:4px;}
.form-error{color:#e5484d;font-size:12px;margin-top:4px;}
.row{display:flex;align-items:center;gap:0.5rem;margin-top:1rem;}
.form-row-2{display:grid;grid-template-columns:1fr 1fr;gap:14px;}
.auth-form-wrap .input-icon-wrap{position:relative;display:flex;align-items:center;}
.auth-form-wrap .input-icon-wrap>.icon{position:absolute;left:12px;top:50%;transform:translateY(-50%);width:16px;height:16px;color:var(--muted);pointer-events:none;}
.auth-form-wrap .input-icon-wrap input{width:100%;box-sizing:border-box;padding:11px 14px 11px 38px!important;border:1px solid #dbe2ed;border-radius:9px;font:inherit;color:var(--ink);}
.auth-form-wrap .input-icon-wrap input[type="password"]{padding-right:38px!important;}
.input-icon-toggle{position:absolute;right:10px;background:none;border:none;padding:4px;cursor:pointer;color:var(--muted);display:flex;}
.input-icon-toggle .icon{width:16px;height:16px;}
.form-check-row{display:flex;align-items:flex-start;gap:9px;font-size:13px;color:var(--text);margin:14px 0 20px;cursor:pointer;}
.form-check-row input{margin-top:2px;}

/* editor tabs (Homepage / Products / FAQ / Settings) */
.tabs{display:flex;gap:4px;border-bottom:1px solid var(--line);margin-bottom:20px;}
.tab{padding:10px 14px;font-size:13px;font-weight:600;color:var(--muted);border-bottom:2px solid transparent;}
.tab.active{color:var(--purple);border-color:var(--purple);}
.empty-state,.empty{text-align:center;padding:40px 20px;color:var(--muted);}
.faq-item{border-bottom:1px solid var(--line);padding:16px 0;}

/* create-website wizard: basics -> upload & generate, all in one page */
.create-wrap{min-height:100vh;background:linear-gradient(180deg,#faf8ff 0%,#f7f8fb 320px);padding:48px 24px;}
.create-card{max-width:620px;margin:0 auto;background:#fff;border:1px solid var(--line);border-radius:20px;padding:36px 40px;box-shadow:0 20px 60px -30px rgba(12,16,34,.15);}
.stepper{display:flex;align-items:center;gap:10px;margin-bottom:28px;}
.stepper .step{display:flex;align-items:center;gap:8px;font-size:12px;font-weight:700;color:var(--muted);}
.stepper .step .num{width:22px;height:22px;border-radius:50%;background:#eef0f5;color:var(--muted);display:flex;align-items:center;justify-content:center;font-size:11px;transition:.2s;}
.stepper .step.active .num{background:var(--purple);color:#fff;}
.stepper .step.active{color:var(--ink);}
.stepper .step.done .num{background:#1fa971;color:#fff;}
.stepper .line{flex:1;height:2px;background:var(--line);}

.type-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:16px;}
.type-card{border:1.5px solid var(--line);border-radius:12px;padding:14px 12px;cursor:pointer;text-align:center;transition:.15s;}
.type-card:hover{border-color:#cabdf5;background:#fbfaff;}
.type-card.selected{border-color:var(--purple);background:var(--purple-soft);}
.type-card .icon{font-size:22px;margin-bottom:6px;}
.type-card .label{font-size:12.5px;font-weight:700;color:var(--ink);}
.type-card .desc{font-size:11px;color:var(--muted);margin-top:2px;line-height:1.3;}

.create-dropzone{border:2px dashed #c9c5ba;border-radius:14px;padding:28px 16px;text-align:center;cursor:pointer;color:var(--muted);font-size:13.5px;transition:.15s;background:#fbfbfc;}
.create-dropzone.drag{background:var(--purple-soft);border-color:var(--purple);}
.create-dropzone .big{font-size:26px;display:block;margin-bottom:6px;}

.gen-log{background:#0c1022;color:#b9f2cf;padding:14px;border-radius:12px;font-size:12px;max-height:220px;overflow:auto;margin-top:16px;white-space:pre-wrap;font-family:ui-monospace,Consolas,monospace;}
.gen-mockup{width:100%;display:block;margin-top:14px;}

/* generic form field (dialog forms already styled by the reference; this covers standalone ones) */
.form-field label{display:block;font-size:13px;font-weight:600;color:var(--ink);margin-bottom:6px;}
.form-field textarea{display:block;box-sizing:border-box;width:100%;padding:12px;border:1px solid #dbe2ed;border-radius:8px;font:inherit;color:var(--ink);resize:vertical;min-height:80px;}

/* dashboard visitors card (analytics) + pages list table */
.visitors-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:4px;}
.stat-row{display:flex;justify-content:space-between;gap:8px;font-size:13px;padding:4px 0;border-bottom:1px solid var(--line);}
.stat-row:last-child{border-bottom:0;}
.input{display:block;box-sizing:border-box;width:100%;padding:10px 12px;border:1px solid #dbe2ed;border-radius:8px;font:inherit;color:var(--ink);}
.table-container table td{vertical-align:middle;}

/* product photo gallery (multi-image upload, reorder-to-feature, remove) */
.image-gallery{display:flex;flex-wrap:wrap;gap:10px;}
.gallery-thumb{position:relative;width:72px;height:72px;border-radius:8px;overflow:hidden;border:2px solid var(--line);cursor:pointer;flex-shrink:0;}
.gallery-thumb img{width:100%;height:100%;object-fit:cover;display:block;}
.gallery-thumb.featured{border-color:var(--purple);}
.featured-badge{position:absolute;top:3px;left:3px;background:var(--purple);color:#fff;font-size:10px;line-height:1;padding:3px 4px;border-radius:4px;}
.gallery-remove{position:absolute;top:3px;right:3px;width:18px;height:18px;border-radius:50%;background:rgba(10,10,20,.65);color:#fff;display:flex;align-items:center;justify-content:center;border:0;padding:0;}
.gallery-remove .icon{width:10px;height:10px;stroke:#fff;}
.gallery-add{width:72px;height:72px;border:2px dashed var(--line);border-radius:8px;display:flex;align-items:center;justify-content:center;cursor:pointer;color:var(--muted);font-size:24px;flex-shrink:0;}
.gallery-add:hover{border-color:var(--purple);color:var(--purple);}

/* product catalog rows (store/multi-product sites) */
.product-row{border:1px solid var(--line);border-radius:12px;margin-bottom:10px;overflow:hidden;background:#fff;}
.product-row summary{display:flex;align-items:center;gap:14px;padding:12px 16px;cursor:pointer;list-style:none;}
.product-row summary::-webkit-details-marker{display:none;}
.product-row-thumb{width:44px;height:44px;border-radius:8px;object-fit:cover;background:#f3f4f7;flex-shrink:0;}
.product-row-body{flex:1;min-width:0;}
.product-row-name{font-weight:700;font-size:13px;}
.product-row-meta{margin-top:3px;}
.product-row-price{font-weight:700;font-size:13px;white-space:nowrap;}
.compare-price{color:var(--muted);text-decoration:line-through;font-weight:400;font-size:11px;margin-left:6px;}
.pill{display:inline-block;background:var(--purple-soft);color:var(--purple);font-size:10px;font-weight:600;padding:2px 8px;border-radius:999px;margin-right:4px;}
.product-row-form{padding:18px 16px;border-top:1px solid var(--line);background:#fbfbfd;}

/* catalog editor: category/subcategory rows, colors/sizes tables, add/edit slide-in panel */
.catalog-row{display:flex;align-items:center;gap:10px;padding:10px 8px;border-radius:10px;cursor:pointer;}
.catalog-row:hover{background:#f8f6fd;}
.catalog-row.selected{background:var(--purple-soft);}
.catalog-row-icon{width:34px;height:34px;border-radius:9px;background:#f0edff;color:var(--purple);display:flex;align-items:center;justify-content:center;flex-shrink:0;}
.catalog-row-icon .icon{width:17px;height:17px;}
.catalog-row-body{flex:1;min-width:0;font-size:13px;}
.catalog-row .pill{flex-shrink:0;}

.toggle-switch{width:36px;height:20px;border-radius:999px;background:#dfe2e8;position:relative;flex-shrink:0;transition:.15s;}
.toggle-switch:before{content:"";position:absolute;top:2px;left:2px;width:16px;height:16px;border-radius:50%;background:#fff;transition:.15s;box-shadow:0 1px 3px rgba(0,0,0,.2);}
.toggle-switch.on{background:#111;}
.toggle-switch.on:before{left:18px;}

.color-swatch{display:inline-block;width:20px;height:20px;border-radius:50%;border:1px solid var(--line);}

.catalog-slidein{position:fixed;inset:0;z-index:100;}
.catalog-slidein-backdrop{position:absolute;inset:0;background:rgba(10,10,20,.35);}
.catalog-slidein-panel{position:absolute;top:0;right:0;bottom:0;width:min(420px,100%);background:#fff;box-shadow:-20px 0 50px rgba(0,0,0,.15);padding:24px;overflow-y:auto;}
.icon-picker{display:flex;flex-wrap:wrap;gap:8px;}
.icon-option{width:42px;height:42px;border:1.5px solid var(--line);border-radius:10px;display:flex;align-items:center;justify-content:center;background:#fff;}
.icon-option.selected{border-color:#111;background:#f4f1ff;}
.icon-option .icon{width:18px;height:18px;}

/* ---- i18n: language switcher + RTL (Arabic) + Kufi font ----
   RTL flips the structural chrome (sidebar side, main content offset, text direction) via
   [dir="rtl"] on <html> (set by I18N.applyDocumentAttrs()). Deep micro-layout details inside
   individual forms/tables aren't individually mirrored — the browser's native dir handling
   already right-aligns text and reverses inline flex content for anything not explicitly
   pinned left/right in pixels, which covers the vast majority of this app's layouts. */
.lang-switcher{height:34px;border:1px solid var(--line);border-radius:8px;background:#fff;font-size:12px;padding:0 8px;margin:0 10px 16px;color:var(--text);cursor:pointer;width:calc(100% - 20px)}
.auth-brand{position:relative}
.auth-lang-switch{position:absolute;top:0;right:0;width:auto;margin:0;height:30px}
html[dir="rtl"] .auth-lang-switch{right:auto;left:0}

html.lang-ar, html.lang-ar body{font-family:"Noto Kufi Arabic",Arial,sans-serif}

html[dir="rtl"] .sidebar{inset:0 0 0 auto;border-right:0;border-left:1px solid #edf0f5}
html[dir="rtl"] .main{margin-left:0;margin-right:var(--sidebar)}
html[dir="rtl"] body{text-align:right}
html[dir="rtl"] .nav-item{text-align:right}
html[dir="rtl"] .brand,html[dir="rtl"] .brand-tagline,html[dir="rtl"] .lang-switcher{text-align:center}
html[dir="rtl"] .search input{text-align:right}
html[dir="rtl"] .top-actions{margin-left:0;margin-right:auto}
html[dir="rtl"] .badge{margin-left:0;margin-right:auto}
@media(max-width:850px){html[dir="rtl"] .sidebar{transform:translateX(100%)}html[dir="rtl"] .sidebar.open{transform:translateX(0)}}
