*{box-sizing:border-box}body{margin:0;font-family:Arial,sans-serif;background:#fff9f1;color:#2d1b16}button,input,textarea,select{font:inherit}.hidden{display:none!important}
.login-wrap{min-height:100vh;display:grid;place-items:center;padding:24px;background:linear-gradient(145deg,#fff8ec,#f7e4c4)}
.login-card{width:min(430px,100%);background:#fff;border:1px solid #ecd6ad;border-radius:28px;padding:28px;box-shadow:0 20px 60px #6d4a2020}
.brand-mark{width:64px;height:64px;border-radius:20px;display:grid;place-items:center;background:#ff9d00;color:#fff;font-size:34px;font-weight:800}
.login-card h1{margin-bottom:4px}.login-card p{color:#876b5c}.login-card input{width:100%;padding:15px;margin:8px 0;border:1px solid #dcc8b0;border-radius:14px}
button{border:1px solid #dfc7a4;background:#fff;border-radius:12px;padding:10px 14px;cursor:pointer}.primary{background:linear-gradient(135deg,#ffb300,#ff8500);border:0;color:#21150d;font-weight:800}.login-card .primary{width:100%;margin-top:10px;padding:14px}.link-btn{border:0;background:none;text-decoration:underline;width:100%;margin:8px 0}
header{position:sticky;top:0;z-index:5;display:flex;justify-content:space-between;align-items:center;padding:16px 20px;background:#062b3b;color:white}header b{font-size:22px}header span{display:block;font-size:11px;letter-spacing:4px;color:#f3c77a}
nav{display:flex;gap:8px;overflow:auto;padding:10px;background:white;border-bottom:1px solid #eee;position:sticky;top:68px;z-index:4}nav button.active{background:#062b3b;color:#fff}
main{max-width:1100px;margin:auto;padding:18px}.tab{display:none}.tab.active{display:block}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.stats article,.panel,.card{background:#fff;border:1px solid #eadbc7;border-radius:18px;padding:18px;box-shadow:0 8px 30px #5a3b1810}.stats span{display:block;color:#876b5c}.stats b{font-size:30px}.panel{margin:14px 0}.section-head{display:flex;justify-content:space-between;gap:12px;align-items:center}.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.panel input,.panel textarea,.panel select{width:100%;padding:12px;border:1px solid #ddcbb4;border-radius:12px}.panel textarea{min-height:90px;margin-top:10px}.actions{display:flex;gap:8px;margin-top:12px}.cards{display:grid;gap:12px}.card{display:flex;gap:14px;align-items:flex-start}.card img{width:88px;height:88px;object-fit:cover;border-radius:14px;background:#f5eee5}.card-body{flex:1}.card h3{margin:0 0 6px}.muted{color:#8b7468;font-size:14px}.tag{display:inline-block;background:#fff0c8;border:1px solid #f1c567;border-radius:999px;padding:4px 8px;font-size:12px;margin:2px}.danger{color:#b00020}.order-actions{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}.order-actions select,.order-actions input{padding:9px;border:1px solid #ddcbb4;border-radius:10px}
#toast{position:fixed;left:50%;bottom:22px;transform:translateX(-50%);z-index:99;background:#062b3b;color:#fff;padding:12px 18px;border-radius:999px;display:none;max-width:90%;text-align:center}
@media(max-width:700px){.stats{grid-template-columns:1fr 1fr}.grid{grid-template-columns:1fr}.card{padding:13px}main{padding:12px}nav{top:64px}.section-head{align-items:flex-start}.section-head h2{margin-top:6px}}
.panel label{display:block;color:#5f4638}.panel label input[type=number]{margin-top:6px}.card-body b{font-size:20px}

/* V13 mobile compact product cards */
@media(max-width:700px){
 #productsList .card{padding:10px;gap:10px;align-items:center}
 #productsList .card img{width:72px;height:72px;border-radius:12px;flex:0 0 72px}
 #productsList .card h3{font-size:16px;margin-bottom:3px}
 #productsList .card .muted{font-size:12px}
 #productsList .card-body b{font-size:17px}
 #productsList .order-actions{margin-top:6px}
 #productsList .order-actions button{padding:7px 11px;font-size:13px}
}


/* V16 ecommerce order & customer cards */
.order-card,.customer-card{border:0;box-shadow:0 12px 32px #173b4512;border-radius:22px}
.order-top{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.order-top h3{color:#073c49}.order-total{font-size:22px;color:#073c49}
.eyebrow{font-size:11px;letter-spacing:2px;color:#b3873f;font-weight:800;margin-bottom:5px}
.customer-line{margin:8px 0 4px}.address-line{margin-top:8px;padding:10px 12px;background:#f5f8f8;border-radius:12px;line-height:1.45;color:#40565b}
.order-meta{display:flex;flex-wrap:wrap;gap:7px;margin-top:10px}.order-meta span{background:#eef5f5;border-radius:999px;padding:6px 9px;font-size:12px;color:#174a55}
@media(max-width:700px){.order-actions select,.order-actions input{width:100%}.order-actions button{flex:1}.order-total{font-size:19px}}

/* V17 live commerce controls */
nav button{position:relative;display:flex;align-items:center;gap:6px}
.nav-count{font-style:normal;min-width:20px;height:20px;padding:0 6px;border-radius:999px;background:#e9eeee;color:#173c46;display:inline-grid;place-items:center;font-size:10px;font-weight:900}
nav button.active .nav-count{background:#c99a4b;color:#fff}
.order-alert{position:fixed;inset:0;background:#071f29aa;z-index:999;display:grid;place-items:center;padding:18px;backdrop-filter:blur(4px)}
.order-alert-card{width:min(410px,100%);background:#fff;border-radius:28px;padding:25px;text-align:center;box-shadow:0 28px 80px #0005}
.alert-icon{width:62px;height:62px;margin:0 auto 12px;display:grid;place-items:center;border-radius:20px;background:#f6efe3;font-size:30px}
.order-alert-card h2{margin:5px 0}.order-alert-card p{color:#66777d;margin:7px 0}.order-alert-card>b{display:block;font-size:27px;color:#073c49;margin:10px}
.alert-actions{display:grid;grid-template-columns:1fr 1.4fr;gap:9px;margin-top:18px}.alert-actions button{border:0;padding:13px;font-weight:800}
.confirm-btn{background:#073c49;color:#fff}.danger-btn{background:#fff0f0;color:#a12626}.dismiss-btn{border:0;background:transparent;color:#718087;margin-top:9px}
.new-badge{display:inline-block;background:#fff0ce;color:#8b621d;border-radius:999px;padding:4px 8px;font-size:10px;font-weight:900;margin-left:7px}
#toast{bottom:90px!important;z-index:9999!important}
button:disabled{opacity:.65;cursor:wait}

.extra-stats{margin-top:12px}.searchbox{padding:11px 13px;border:1px solid #ddcbb4;border-radius:12px;min-width:260px}.order-filters{display:flex;gap:7px;overflow:auto;padding:4px 0 14px}.order-filters button{white-space:nowrap}.order-filters button.active{background:#062b3b;color:#fff}.report-summary{line-height:1.9}.stock-low{color:#b00020;font-weight:800}@media(max-width:700px){.searchbox{min-width:0;width:100%}.section-head{flex-wrap:wrap}.extra-stats{grid-template-columns:1fr 1fr}}

/* V23 — mobile app-style admin shell */
:root{--blue:#0b57e3;--ink:#202124;--muted2:#6f7278;--appbg:#f5f7fb;--line:#e6e8ed;--green:#00a84f}
body{background:var(--appbg);color:var(--ink);font-family:Arial,sans-serif;padding-bottom:86px}
#appView header{position:sticky;top:0;height:76px;padding:12px 22px;background:#fff;color:#171717;border-bottom:1px solid #f0f0f0;box-shadow:none;z-index:10}
#appView header>div{display:flex;align-items:center;gap:10px;font-weight:800;font-size:19px}
#appView header>div:before{content:'S';width:44px;height:44px;border:1px solid #e8d9b9;border-radius:12px;display:grid;place-items:center;font-family:Georgia,serif;color:#a57b2e;background:#fffdf8}
#appView header b{font-size:19px;letter-spacing:0}#appView header span{display:none}
#logoutBtn{font-size:0;border:0;background:#dff7e9;color:#008d43;border-radius:999px;padding:11px 15px}
#logoutBtn:before{content:'● Online';font-size:16px;font-weight:700}
#appView nav{position:fixed;left:0;right:0;bottom:0;top:auto;height:76px;z-index:50;padding:7px 8px 8px;background:#fff;border-top:1px solid #e4e5e8;border-bottom:0;display:grid;grid-template-columns:repeat(5,1fr);gap:0;overflow:visible}
#appView nav button{border:0;background:transparent!important;color:#70747b!important;border-radius:0;padding:30px 2px 3px;display:block;position:relative;font-size:12px;font-weight:500;text-align:center;white-space:nowrap}
#appView nav button:before{position:absolute;top:5px;left:50%;transform:translateX(-50%);font-size:22px;line-height:22px}
#appView nav button[data-tab=dashboard]:before{content:'⌂'}#appView nav button[data-tab=products]:before{content:'▦'}#appView nav button[data-tab=orders]:before{content:'🛒'}#appView nav button[data-tab=customers]:before{content:'◉'}#appView nav button[data-tab=settings]:before{content:'⚙'}
#appView nav button.active{color:var(--blue)!important;font-weight:800}
#appView nav button:nth-child(5),#appView nav button:nth-child(6){display:none}
#appView nav button:nth-child(7){grid-column:5}
.nav-count{position:absolute;top:0;left:calc(50% + 11px);min-width:17px;height:17px;padding:0 4px;background:#eef1f6!important;color:#4c5664!important;font-size:9px}
main{max-width:760px;padding:22px 18px 20px}main h2{font-size:28px;margin:8px 0 22px}
.stats{grid-template-columns:1fr 1fr;gap:14px}.stats article,.panel,.card{border:1px solid var(--line);border-radius:20px;box-shadow:0 2px 7px #0000000c;background:#fff}
.stats article{padding:20px}.stats span{color:#686b70;font-size:14px}.stats b{font-size:26px;margin-top:5px;display:block}.extra-stats{margin-top:14px}
#dashboard:before{content:'Dashboard';display:block;font-size:28px;font-weight:800;margin:8px 0 20px}#dashboard>h2{display:none}
#dashboard .panel{padding:22px;margin-top:22px}#dashboard .panel h3{font-size:22px;margin:0 0 8px}
.app-shortcuts{display:grid;grid-template-columns:repeat(4,1fr);gap:22px 10px;background:#fff;border:1px solid var(--line);border-radius:20px;padding:22px 10px;margin-top:20px}.shortcut{text-align:center;font-size:12px;color:#555}.shortcut i{width:52px;height:52px;border-radius:15px;background:#edf2ff;color:var(--blue);display:grid;place-items:center;margin:0 auto 8px;font-style:normal;font-size:23px;font-weight:800}.shortcut:nth-child(2n) i{background:#e7f7f1;color:#087a62}.shortcut:nth-child(3n) i{background:#fff0dd;color:#f28a00}.shortcut:nth-child(4n) i{background:#f3e9f7;color:#7a3d92}
.section-head{align-items:center}.searchbox{background:#fff;border-color:#dfe2e7}.order-filters{gap:14px;border-bottom:1px solid #ddd}.order-filters button{border:0;border-radius:0;background:transparent;padding:10px 2px;color:#555;font-weight:700}.order-filters button.active{background:transparent;color:var(--blue);border-bottom:3px solid var(--blue)}
.order-card,.customer-card{border:1px solid var(--line);border-radius:22px;box-shadow:0 2px 7px #0000000c}.primary{background:var(--blue);color:#fff;border:0}.tag{background:#eaf8ef;border:0;color:#159447}.order-meta span{background:#edf3ff;color:#315eaa}
@media(max-width:700px){main{padding:18px 14px}.stats article{padding:18px 16px}.stats b{font-size:24px}.card{padding:15px}.app-shortcuts{gap:18px 6px}.shortcut i{width:48px;height:48px}.section-head h2{font-size:26px}.searchbox{width:100%}}

/* V24 — premium dark control center inspired by approved mockup */
#appView{--bg:#070b12;--panel:#0d131d;--panel2:#111a26;--line:#202a38;--text:#f4f7fb;--muted:#8e9aac;--gold:#f2b632;--green:#29d36b;--red:#ff5b5b;--blue:#4e9cff;background:var(--bg);min-height:100vh;color:var(--text)}
#appView header{background:#070b12;color:#fff;border-color:#1b2430}#appView header>div:before{content:'♛';background:#17130a;color:#f2b632;border-color:#4b3b14}#logoutBtn{background:#13251d;color:#57dc8c}
#appView main{max-width:1500px}.tab h2,#dashboard:before{color:#fff}.stats article,#appView .panel,#appView .card,.app-shortcuts{background:linear-gradient(145deg,#0d131d,#111925);border-color:#202a38;color:#f4f7fb;box-shadow:none}.stats span,.muted,#appView .panel label{color:#8e9aac}.stats b{color:#fff}.extra-stats article:nth-child(1){border-color:#244c35}.extra-stats article:nth-child(3){border-color:#5a4216}.extra-stats article:nth-child(4){border-color:#542327}
#appView nav{background:#090e16;border-color:#202a38}#appView nav button{color:#8e9aac!important}#appView nav button.active{color:#f2b632!important}.nav-count{background:#202a38!important;color:#fff!important}
#appView input,#appView textarea,#appView select,.searchbox{background:#0a1018!important;color:#fff!important;border-color:#2a3545!important}#appView button{border-color:#2a3545}.primary{background:#185dd8}.order-filters{border-color:#222c39}.order-filters button{color:#8995a6}.order-filters button.active{color:#f2b632;border-color:#f2b632}.order-top h3,.order-total{color:#fff}.address-line,.order-meta span{background:#111b27;color:#a9b7c8}.tag{background:#12301e;color:#50db82}.eyebrow{color:#f2b632}.shortcut{color:#b8c1cd}.shortcut i{background:#151d2a!important;color:#f2b632!important}
.v24-alert-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:18px 0}.v24-alert-grid>div{background:#101722;border:1px solid #283241;border-radius:16px;padding:16px}.v24-alert-grid span{display:block;color:#9aa5b5;font-size:12px}.v24-alert-grid b{display:block;font-size:25px;margin-top:6px;color:#ffb74d}.problem-stats article b{color:#ff6464}.issue-card{align-items:center}.issue-icon{width:42px;height:42px;border-radius:12px;display:grid;place-items:center;background:#32191d;color:#ff6868;font-weight:900}.empty-ok{border-color:#1f5133!important}.empty-ok b{color:#4edb82}.v24-order-info{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:12px 0}.v24-order-info span{background:#0a1018;border:1px solid #202a38;border-radius:10px;padding:9px;color:#8e9aac;font-size:12px}.v24-order-info b{display:block;color:#dce5f1;font-size:12px;margin-top:3px}.toggle-row{display:flex!important;gap:9px;align-items:center;background:#0a1018;border:1px solid #2a3545;border-radius:12px;padding:12px}.toggle-row input{width:auto!important}
@media(min-width:900px){#appView{padding-left:205px;padding-bottom:0}#appView header{margin-left:-205px;padding-left:225px}#appView nav{position:fixed;left:0;top:0;bottom:0;width:205px;height:auto;display:flex;flex-direction:column;padding:92px 10px 20px;gap:4px;background:#060a10;border-right:1px solid #202a38;overflow:auto}#appView nav button{display:flex!important;padding:12px 14px;text-align:left;font-size:13px;border-radius:9px}#appView nav button:before{display:none}.nav-count{position:static;margin-left:auto}.stats{grid-template-columns:repeat(4,1fr)}.app-shortcuts{grid-template-columns:repeat(8,1fr)} }
@media(max-width:899px){#appView nav{grid-template-columns:repeat(5,1fr)}#appView nav button[data-tab="problems"]{display:block;grid-column:5}#appView nav button[data-tab="settings"]{display:none}.v24-alert-grid{grid-template-columns:1fr 1fr}.v24-order-info{grid-template-columns:1fr 1fr}}

/* LOOKS UI FINAL — approved reference layout */
@media(min-width:900px){
#appView main{padding:14px 22px 34px;max-width:none}
#dashboard{display:none}.tab.active#dashboard{display:grid;grid-template-columns:minmax(0,2.2fr) minmax(280px,.78fr);gap:14px;align-items:start}
#dashboard:before{grid-column:1/-1;margin:0 0 2px;font-size:18px}
#dashboard .stats:first-of-type{grid-column:1/-1;display:grid;grid-template-columns:repeat(5,1fr);gap:12px}
#dashboard .stats:first-of-type article:nth-child(1):before{content:'Total ';color:#8e9aac;font-size:12px}#dashboard .stats:first-of-type article:nth-child(2):before{content:'Total ';color:#8e9aac;font-size:12px}
#dashboard .stats:first-of-type article{min-height:92px;padding:15px;border-radius:10px}
#dashboard .stats:first-of-type article:nth-child(1){border-color:#3b2b65;background:linear-gradient(135deg,#171126,#171326)}
#dashboard .stats:first-of-type article:nth-child(2){border-color:#16472b;background:linear-gradient(135deg,#0c2115,#11251a)}
#dashboard .stats:first-of-type article:nth-child(3){border-color:#694711;background:linear-gradient(135deg,#2a1d0b,#21180c)}
#dashboard .stats:first-of-type article:nth-child(4){border-color:#17416a;background:linear-gradient(135deg,#0b1d30,#101e2c)}
#dashboard .extra-stats{grid-column:1;grid-template-columns:repeat(4,1fr);margin:0}
#dashboard .extra-stats article{min-height:76px;padding:14px;border-radius:9px}
#dashboard .panel{grid-column:1;margin:0;min-height:190px;position:relative;overflow:hidden}
#dashboard .panel:after{content:'Sales Overview  ·  This Month\A\A   ╱╲      ╱╲      ╱╲     ╱╲\A__╱  ╲____╱  ╲____╱  ╲___╱  ╲__';white-space:pre;position:absolute;left:24px;right:24px;bottom:22px;color:#d6a72c;font:12px/1.8 monospace;opacity:.85;border-top:1px solid #26303d;padding-top:14px}
#dashboard .app-shortcuts{grid-column:1;margin:0;padding:15px;grid-template-columns:repeat(8,1fr);border-radius:10px}
#dashboard:after{content:'Recent Orders\A\A#ORD1254   Pending\A#ORD1253   Confirmed\A#ORD1252   Ready to Ship\A#ORD1251   Shipped\A#ORD1250   Delivered\A\AProblem Center\A\AShiprocket Sync Failed   7\APayment Failed           4\AEmail Sending Failed     3\ALow Stock Alert          12\A\AStore Settings\A\ADelivery ₹99   Tax 5%\ACOD ON   Online Payment ON';white-space:pre;grid-column:2;grid-row:3/7;background:linear-gradient(145deg,#0d131d,#111925);border:1px solid #202a38;border-radius:10px;padding:18px;color:#dce5f1;font:12px/2 Arial,sans-serif;min-height:510px}
}
@media(max-width:899px){#appView header{height:68px}.stats article{border-radius:14px}.v24-alert-grid>div{border-radius:12px}.app-shortcuts{border-radius:14px}}


/* Product photos upgrade — only requested product UI changes */
.photo-upload-label small{display:block;margin-top:7px;color:#8e9aac;font-size:11px}.product-photo-preview{grid-column:1/-1;display:flex;gap:10px;overflow-x:auto;padding:4px 0 8px}.photo-preview-item{position:relative;flex:0 0 88px;height:88px;border:1px solid #2a3545;border-radius:12px;overflow:hidden;background:#0a1018}.photo-preview-item img{width:100%;height:100%;object-fit:cover}.photo-preview-item span{position:absolute;left:5px;bottom:5px;background:#070b12d9;color:#fff;padding:3px 5px;border-radius:5px;font-size:9px}.photo-preview-item.main{outline:2px solid #f2b632;outline-offset:1px}.photo-preview-item.main span{background:#f2b632;color:#171006;font-weight:900}.photo-preview-item button{position:absolute;right:4px;top:4px;width:23px;height:23px;padding:0;border:0;border-radius:50%;background:#070b12dd;color:#fff;font-size:17px;line-height:20px}.product-card-photo{position:relative;flex:0 0 auto}.product-card-photo>img{display:block}.bestseller-photo-badge{position:absolute;left:5px;top:5px;z-index:2;background:linear-gradient(135deg,#f6c84a,#d99b16);color:#211506;border:1px solid #ffe28a;border-radius:6px;padding:4px 7px;font-size:9px;font-weight:900;letter-spacing:.5px;box-shadow:0 3px 10px #0007}
@media(max-width:700px){#productsList .product-card-photo{flex:0 0 72px}.bestseller-photo-badge{font-size:7px;padding:3px 4px;left:3px;top:3px}}

/* IVORY + CHAMPAGNE GOLD THEME — requested visual-only upgrade */
#appView{--bg:#f7f2e8;--panel:#fffdf8;--panel2:#fbf6ec;--line:#e5d8c2;--text:#35291e;--muted:#887868;--gold:#b68a3a;--green:#39855c;--red:#b85656;--blue:#607d9d;background:linear-gradient(135deg,#f8f3e9,#efe4d1);color:var(--text)}
#appView header{background:#fffaf1;color:#3a2c20;border-color:#e7dac5}#appView header>div:before{background:#fff8e9;color:#b68a3a;border-color:#d7bd86}#logoutBtn{background:#e9f4eb;color:#33754f}
#appView nav{background:#f4ead9;border-color:#ddcdb3}#appView nav button{color:#796b5d!important}#appView nav button.active{color:#9d742c!important;background:#fff8ea!important}.nav-count{background:#e9dcc6!important;color:#624d31!important}
#appView .stats article,#appView .panel,#appView .card,.app-shortcuts,.v24-alert-grid>div{background:linear-gradient(145deg,#fffdf8,#fbf5e9);border-color:#e2d4bd;color:#35291e;box-shadow:0 7px 22px #7d654513}
.stats span,.muted,#appView .panel label{color:#887868}.stats b,.order-top h3,.order-total,.tab h2,#dashboard:before{color:#35291e}.eyebrow{color:#a87c2f}.shortcut{color:#65594d}.shortcut i{background:#f3e7d2!important;color:#a87c2f!important}
#appView input,#appView textarea,#appView select,.searchbox{background:#fffdf9!important;color:#3b2e22!important;border-color:#dfd0b8!important}.order-filters{border-color:#dfd0b8}.order-filters button{color:#7f7163}.order-filters button.active{color:#a87c2f;border-color:#b68a3a}.address-line,.order-meta span{background:#f4eadb;color:#6f604f}.tag{background:#e5f2e8;color:#347750}.issue-icon{background:#f8e5e2;color:#a94c4c}.toggle-row{background:#fffaf2;border-color:#dfd0b8}.v24-order-info span{background:#fffaf2;border-color:#e1d4bf;color:#8b7a68}.v24-order-info b{color:#443529}.photo-preview-item{border-color:#dfd0b8;background:#fffaf2}.photo-preview-item span{background:#3b2d22dd}.bestseller-photo-badge{background:linear-gradient(135deg,#e9c66d,#b8862d);color:#2e2113;border-color:#f4dc9b}
@media(min-width:900px){#appView nav{background:linear-gradient(180deg,#f1e4cf,#f8f1e5);border-right-color:#ddcdb3}#dashboard .stats:first-of-type article:nth-child(1),#dashboard .stats:first-of-type article:nth-child(2),#dashboard .stats:first-of-type article:nth-child(3),#dashboard .stats:first-of-type article:nth-child(4){background:linear-gradient(145deg,#fffdf8,#f7eddd);border-color:#decba8}#dashboard .panel:after{color:#b18435;border-top-color:#dfd1bc}#dashboard:after{background:linear-gradient(145deg,#fffdf8,#f7eddd);border-color:#dfd0b8;color:#4b3a2b;box-shadow:0 7px 22px #7d654513}}
