:root{color-scheme:dark;--bg:#07101d;--bg2:#0a1424;--panel:rgba(16,28,49,.84);--panel-solid:#101c31;--panel2:#14243e;--text:#f6f8fe;--muted:#8ca0bc;--line:#243956;--accent:#79a7ff;--accent2:#5ce0c7;--green:#59dc91;--yellow:#ffca69;--red:#ff7185;--purple:#b894ff;--shadow:0 24px 70px rgba(0,0,0,.3);--radius:22px}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;min-height:100vh;background:radial-gradient(circle at 12% -5%,#15376c 0,transparent 28%),radial-gradient(circle at 91% 8%,#113b44 0,transparent 25%),linear-gradient(180deg,var(--bg),#060c17 70%);color:var(--text);font:15px/1.5 Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}button,input,textarea,select{font:inherit}.boot{min-height:100vh;display:grid;place-items:center;align-content:center;gap:8px;color:var(--muted)}.boot-logo{width:68px;height:68px;display:grid;place-items:center;border-radius:24px;background:linear-gradient(145deg,var(--accent),var(--accent2));color:#06101d;font-size:32px;box-shadow:0 20px 60px #62a0ff40}.boot strong{font-size:25px;color:#fff}.shell{width:min(1380px,calc(100% - 28px));margin:18px auto 60px}.topbar{position:sticky;top:10px;z-index:30;display:flex;align-items:center;gap:14px;padding:11px 14px;background:rgba(8,17,31,.78);border:1px solid #263a57;border-radius:19px;backdrop-filter:blur(18px);box-shadow:0 14px 50px rgba(0,0,0,.2)}.brand{display:flex;align-items:center;gap:10px;font-weight:900;letter-spacing:-.02em}.brand-mark{width:38px;height:38px;border-radius:13px;display:grid;place-items:center;background:linear-gradient(145deg,var(--accent),var(--accent2));color:#07111d}.search{position:relative;flex:1;max-width:580px}.search input{width:100%;background:#0d192c;border:1px solid #283b5a;border-radius:13px;color:#fff;padding:11px 14px 11px 40px;outline:none}.search:before{content:"⌕";position:absolute;left:14px;top:7px;font-size:23px;color:#8296b5}.top-actions{margin-left:auto;display:flex;gap:8px}.icon-btn,.pill-btn,.btn{border:1px solid #2a4163;background:#12213a;color:#eaf0fb;border-radius:13px;padding:10px 13px;cursor:pointer;transition:.18s;font-weight:750}.icon-btn:hover,.pill-btn:hover,.btn:hover{transform:translateY(-1px);border-color:#6087c7}.btn.primary{background:linear-gradient(135deg,#77a5ff,#5cdfc8);color:#07111d;border:0}.btn.danger{background:#351724;color:#ffb7c2;border-color:#6c2b3d}.btn.success{background:#123425;color:#9ef1c2;border-color:#2e7350}.btn.ghost{background:transparent}.badge{display:inline-flex;align-items:center;gap:6px;padding:5px 9px;border-radius:999px;background:#172a48;border:1px solid #2c466e;color:#bcd0f2;font-size:12px;font-weight:800}.badge.green{background:#123225;border-color:#2b704d;color:#a1edc2}.badge.red{background:#361825;border-color:#7a3145;color:#ffb8c4}.badge.yellow{background:#3a2e13;border-color:#785d24;color:#ffe19c}.hero-store{margin:30px 0 20px;padding:30px;border:1px solid var(--line);border-radius:30px;background:linear-gradient(120deg,rgba(27,49,86,.92),rgba(12,41,43,.84));box-shadow:var(--shadow);display:grid;grid-template-columns:1.2fr .8fr;gap:22px;overflow:hidden;position:relative}.hero-store:after{content:"✦";position:absolute;font-size:280px;right:-35px;top:-105px;color:#8ed6ff0b}.hero-store h1{font-size:clamp(34px,5vw,67px);line-height:1;margin:7px 0 14px;letter-spacing:-.055em}.hero-store p{max-width:680px;color:#b4c4dc;font-size:16px}.hero-stats{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;align-content:center}.hero-stat{padding:18px;border:1px solid #385276;background:#0d1b2d7a;border-radius:18px}.hero-stat strong{font-size:27px;display:block}.filters{display:flex;gap:8px;overflow:auto;padding:6px 1px 14px}.filters button{white-space:nowrap}.filters .active{background:#274a7d;border-color:#4d78b8}.section-title{display:flex;align-items:end;justify-content:space-between;margin:17px 2px 13px}.section-title h2{font-size:24px;margin:0;letter-spacing:-.03em}.section-title p{margin:2px 0;color:var(--muted)}.product-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.product-card{position:relative;display:flex;flex-direction:column;min-height:275px;border:1px solid var(--line);border-radius:23px;padding:18px;background:linear-gradient(180deg,rgba(18,33,57,.94),rgba(11,21,38,.94));box-shadow:0 12px 35px rgba(0,0,0,.16);transition:.2s;overflow:hidden}.product-card:hover{transform:translateY(-3px);border-color:#45678f;box-shadow:0 20px 48px rgba(0,0,0,.25)}.product-card .emoji{font-size:36px;margin-bottom:11px}.product-card h3{font-size:19px;margin:0 32px 5px 0}.product-card .desc{color:var(--muted);font-size:13px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.price{font-size:25px;font-weight:900;letter-spacing:-.03em;margin-top:auto}.stock{color:#9cb1ce;font-size:13px}.card-actions{display:grid;grid-template-columns:1fr auto;gap:8px;margin-top:13px}.fav{position:absolute;right:13px;top:13px;width:36px;height:36px;padding:0;border-radius:12px;font-size:18px}.chips{display:flex;gap:6px;flex-wrap:wrap;margin:8px 0}.empty{padding:55px 25px;text-align:center;border:1px dashed #30496c;border-radius:23px;color:var(--muted)}.bottom-nav{display:none}.drawer-backdrop,.modal-backdrop{position:fixed;inset:0;background:#01060dc9;backdrop-filter:blur(7px);z-index:60}.drawer{position:fixed;z-index:61;right:0;top:0;height:100%;width:min(520px,100%);padding:24px;background:#0d182a;border-left:1px solid #29415f;overflow:auto;box-shadow:-30px 0 70px #0008}.modal{position:fixed;z-index:61;left:50%;top:50%;transform:translate(-50%,-50%);width:min(560px,calc(100% - 22px));max-height:90vh;overflow:auto;background:#111e33;border:1px solid #2e4768;border-radius:25px;padding:23px;box-shadow:var(--shadow)}.modal.wide{width:min(900px,calc(100% - 22px))}.close{float:right;width:38px;height:38px;padding:0}.form{display:grid;gap:13px}.form label{display:grid;gap:6px;color:#b9c9df;font-weight:700;font-size:13px}.form input,.form textarea,.form select,.field{width:100%;background:#091526;border:1px solid #293f5f;color:#fff;border-radius:13px;padding:12px 13px;outline:none}.form input:focus,.form textarea:focus,.form select:focus{border-color:#6d9cff;box-shadow:0 0 0 3px #6d9cff1c}.divider{display:flex;align-items:center;gap:10px;color:#6e819d;margin:3px 0}.divider:before,.divider:after{content:"";height:1px;background:#283b58;flex:1}.telegram-btn{display:flex;align-items:center;justify-content:center;gap:9px;background:#249bd7;color:#fff;border:0;border-radius:13px;padding:12px;font-weight:850;text-decoration:none}.qty{display:grid;grid-template-columns:52px 1fr 52px;gap:8px}.qty button{font-size:22px}.quick-qty{display:flex;gap:7px;flex-wrap:wrap}.quick-qty button{padding:7px 10px}.cart-line{display:grid;grid-template-columns:1fr auto;gap:10px;padding:14px 0;border-bottom:1px solid #233651}.cart-line h4{margin:0}.totals{margin-top:18px;background:#0a1628;border:1px solid #273d5c;border-radius:17px;padding:15px}.total-row{display:flex;justify-content:space-between;margin:7px 0;color:#aabbd2}.total-row.final{font-size:20px;color:#fff;font-weight:900;border-top:1px solid #2a3d59;padding-top:11px;margin-top:11px}.payment-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.payment-card{padding:16px;border:1px solid #30496d;border-radius:16px;background:#10203a;cursor:pointer;text-align:left;color:#fff}.payment-card strong{display:block;font-size:17px}.payment-card span{color:var(--muted);font-size:12px}.receipt-drop{display:grid;place-items:center;text-align:center;min-height:160px;border:2px dashed #38577f;border-radius:18px;background:#0b182b;padding:20px}.receipt-drop.drag{border-color:#66dec7;background:#102b2a}.status-flow{display:grid;grid-template-columns:repeat(6,1fr);gap:5px;margin:16px 0}.status-flow div{height:7px;border-radius:10px;background:#243751}.status-flow .done{background:linear-gradient(90deg,#59d895,#66d7d0)}.order-list{display:grid;gap:12px}.order-card{border:1px solid var(--line);border-radius:21px;background:#0f1c31;padding:18px}.order-head{display:flex;justify-content:space-between;gap:10px;align-items:start}.order-head h3{margin:0}.order-items{margin:12px 0;padding:12px;background:#0a1628;border-radius:13px}.order-actions{display:flex;gap:8px;flex-wrap:wrap}.page{margin-top:24px}.profile-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.profile-card{border:1px solid var(--line);border-radius:22px;padding:20px;background:#0f1d32}.wallet-value{font-size:42px;font-weight:950;letter-spacing:-.05em}.linkbox{display:flex;gap:8px}.linkbox input{flex:1}.toast-stack{position:fixed;right:18px;bottom:18px;z-index:100;display:grid;gap:8px}.toast{max-width:400px;padding:13px 16px;border:1px solid #345175;border-radius:14px;background:#132541;box-shadow:var(--shadow);animation:toastin .2s ease}.toast.error{background:#351622;border-color:#773146}.toast.success{background:#103124;border-color:#28704d}@keyframes toastin{from{transform:translateY(8px);opacity:0}}/* ADMIN */.admin-shell{display:grid;grid-template-columns:245px 1fr;min-height:100vh}.admin-side{position:sticky;top:0;height:100vh;background:#091321;border-right:1px solid #223653;padding:18px}.admin-logo{display:flex;align-items:center;gap:10px;font-weight:900;font-size:17px;padding:7px}.admin-nav{display:grid;gap:5px;margin-top:25px}.admin-nav button{border:0;background:transparent;color:#8ea3c0;text-align:left;padding:11px 12px;border-radius:12px;cursor:pointer;font-weight:750}.admin-nav button.active,.admin-nav button:hover{background:#172945;color:#fff}.admin-main{padding:24px;min-width:0}.admin-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:22px}.admin-header h1{margin:0;font-size:29px}.metric-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.metric{border:1px solid var(--line);background:linear-gradient(160deg,#11213a,#0b1729);border-radius:19px;padding:17px}.metric span{color:var(--muted);font-size:12px}.metric strong{display:block;font-size:26px;margin-top:5px}.table-wrap{overflow:auto;border:1px solid var(--line);border-radius:18px;background:#0c182a}table{width:100%;border-collapse:collapse;min-width:760px}th,td{text-align:left;padding:12px 14px;border-bottom:1px solid #223650}th{color:#8498b5;font-size:11px;text-transform:uppercase;letter-spacing:.05em}.receipt-admin{display:grid;grid-template-columns:minmax(300px,1.2fr) 1fr;gap:15px}.receipt-preview{min-height:500px;border-radius:18px;border:1px solid var(--line);overflow:hidden;background:#07111f}.receipt-preview iframe,.receipt-preview img{width:100%;height:100%;min-height:500px;object-fit:contain;border:0}.admin-actions{display:grid;gap:9px}.settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.settings-section{border:1px solid var(--line);border-radius:19px;padding:18px;background:#0e1b2e}.settings-section h3{margin-top:0}.login-page{min-height:100vh;display:grid;place-items:center;padding:20px}.login-card{width:min(460px,100%);border:1px solid var(--line);border-radius:27px;background:#101d32;padding:27px;box-shadow:var(--shadow)}@media(max-width:1100px){.product-grid{grid-template-columns:repeat(3,1fr)}.metric-grid{grid-template-columns:repeat(2,1fr)}.admin-shell{grid-template-columns:78px 1fr}.admin-side .label,.admin-logo span{display:none}.admin-nav button{text-align:center;font-size:20px}}@media(max-width:760px){body{padding-bottom:76px}.shell{width:min(100% - 16px,1380px);margin-top:8px}.topbar{top:5px}.brand span,.top-actions .label{display:none}.hero-store{grid-template-columns:1fr;padding:22px;border-radius:24px}.hero-stats{grid-template-columns:1fr 1fr}.product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.product-card{padding:13px;min-height:240px;border-radius:18px}.product-card .emoji{font-size:29px}.product-card h3{font-size:15px}.price{font-size:20px}.bottom-nav{position:fixed;display:grid;grid-template-columns:repeat(5,1fr);bottom:8px;left:8px;right:8px;z-index:45;background:#0b172be8;border:1px solid #2b4263;backdrop-filter:blur(18px);border-radius:17px;padding:5px;box-shadow:0 15px 45px #0009}.bottom-nav button{border:0;background:transparent;color:#8ea1bd;padding:7px 2px;border-radius:10px;font-size:10px}.bottom-nav button b{display:block;font-size:20px}.bottom-nav button.active{background:#1c3152;color:#fff}.profile-grid,.settings-grid,.receipt-admin{grid-template-columns:1fr}.status-flow{grid-template-columns:repeat(6,1fr)}.admin-shell{display:block}.admin-side{position:fixed;z-index:40;bottom:8px;top:auto;left:8px;right:8px;width:auto;height:auto;border:1px solid #294261;border-radius:16px;padding:5px;background:#091524e8;backdrop-filter:blur(16px)}.admin-logo{display:none}.admin-nav{grid-template-columns:repeat(7,1fr);margin:0;gap:2px}.admin-nav button{padding:8px 2px;font-size:18px}.admin-nav .label{display:none}.admin-main{padding:14px 10px 80px}.metric-grid{grid-template-columns:1fr 1fr}.search{max-width:none}.drawer{padding:17px}.modal{padding:18px}}@media(max-width:480px){.product-grid{grid-template-columns:1fr 1fr}.hero-stats{grid-template-columns:1fr 1fr}.hero-stat{padding:12px}.metric-grid{grid-template-columns:1fr}.payment-grid{grid-template-columns:1fr}.topbar{gap:6px}.icon-btn,.pill-btn{padding:9px}.product-card .desc{display:none}}

/* ==========================================================================\n   COMMERCE V6.1 — STOREFRONT DESIGN SYSTEM\n   Five storefront themes share one semantic DOM and one commerce core.\n   ========================================================================== */
html[data-theme="midnight"]{color-scheme:dark;--theme-id:midnight}

/* PEARL COMMERCE — bright, minimal, conversion-first */
html[data-theme="pearl"]{color-scheme:light;--bg:#f6f7fb;--bg2:#eef1f7;--panel:rgba(255,255,255,.9);--panel-solid:#fff;--panel2:#f2f4f8;--text:#131722;--muted:#697386;--line:#dfe4ec;--accent:#5b65f5;--accent2:#6f7cf7;--green:#198754;--yellow:#9b6b00;--red:#d9455f;--purple:#7459d9;--shadow:0 24px 70px rgba(24,35,58,.12);--radius:18px}
html[data-theme="pearl"] body{background:linear-gradient(180deg,#f9fafc 0,#f1f4f9 100%);color:var(--text)}
html[data-theme="pearl"] .boot strong,html[data-theme="pearl"] .product-card,html[data-theme="pearl"] .order-card,html[data-theme="pearl"] .profile-card{color:#171b25}
html[data-theme="pearl"] .topbar{background:rgba(255,255,255,.88);border-color:#e0e5ed;box-shadow:0 10px 35px rgba(36,45,67,.08)}
html[data-theme="pearl"] .brand-mark{background:#151922;color:#fff;border-radius:11px}
html[data-theme="pearl"] .search input,html[data-theme="pearl"] .form input,html[data-theme="pearl"] .form textarea,html[data-theme="pearl"] .form select,html[data-theme="pearl"] .field{background:#f7f8fb;border-color:#dce1ea;color:#151922}
html[data-theme="pearl"] .icon-btn,html[data-theme="pearl"] .pill-btn,html[data-theme="pearl"] .btn{background:#fff;border-color:#dce2eb;color:#1a2030;box-shadow:0 3px 12px rgba(26,34,50,.04)}
html[data-theme="pearl"] .btn.primary{background:#151922;color:#fff;box-shadow:none}
html[data-theme="pearl"] .btn.ghost{background:transparent;box-shadow:none}
html[data-theme="pearl"] .badge{background:#f0f2f7;border-color:#dce1ea;color:#4b5565}
html[data-theme="pearl"] .badge.green{background:#e9f7ef;border-color:#bfe7cf;color:#187345}
html[data-theme="pearl"] .badge.yellow{background:#fff5d8;border-color:#f1d88c;color:#795b00}
html[data-theme="pearl"] .badge.red{background:#fff0f2;border-color:#f3c9d0;color:#b62e48}
html[data-theme="pearl"] .hero-store{background:radial-gradient(circle at 92% 12%,#dfe3ff 0,transparent 31%),linear-gradient(135deg,#fff,#f3f5fa);border-color:#dfe4ec;box-shadow:0 25px 65px rgba(28,38,63,.08)}
html[data-theme="pearl"] .hero-store:after{color:#5b65f508}
html[data-theme="pearl"] .hero-store p,html[data-theme="pearl"] .section-title p,html[data-theme="pearl"] .muted{color:#6f7888}
html[data-theme="pearl"] .hero-stat{background:#ffffffd9;border-color:#e0e4ec;color:#111827;box-shadow:0 8px 24px rgba(35,44,67,.05)}
html[data-theme="pearl"] .filters .active{background:#151922;border-color:#151922;color:#fff}
html[data-theme="pearl"] .product-card{background:#fff;border-color:#e0e5ed;box-shadow:0 10px 30px rgba(30,39,60,.07);border-radius:18px}
html[data-theme="pearl"] .product-card:hover{border-color:#c8ced9;box-shadow:0 20px 45px rgba(30,39,60,.12)}
html[data-theme="pearl"] .product-card .desc,html[data-theme="pearl"] .stock{color:#707a8c}
html[data-theme="pearl"] .modal,html[data-theme="pearl"] .drawer{background:#fff;border-color:#dde3eb;color:#171b25}
html[data-theme="pearl"] .drawer-backdrop,html[data-theme="pearl"] .modal-backdrop{background:#27304473}
html[data-theme="pearl"] .totals,html[data-theme="pearl"] .order-items,html[data-theme="pearl"] .payment-card,html[data-theme="pearl"] .receipt-drop{background:#f6f7fa;border-color:#dce2eb;color:#171b25}
html[data-theme="pearl"] .total-row{color:#667184}html[data-theme="pearl"] .total-row.final{color:#171b25;border-color:#dce2eb}
html[data-theme="pearl"] .order-card,html[data-theme="pearl"] .profile-card{background:#fff;border-color:#e0e5ed;box-shadow:0 8px 25px rgba(30,39,60,.05)}
html[data-theme="pearl"] .bottom-nav{background:#fffffff0;border-color:#dfe4ec;box-shadow:0 14px 42px rgba(30,39,60,.14)}
html[data-theme="pearl"] .bottom-nav button{color:#6c7585}html[data-theme="pearl"] .bottom-nav button.active{background:#151922;color:#fff}
html[data-theme="pearl"] .login-card{background:#fff;border-color:#e0e5ed;color:#171b25}
html[data-theme="pearl"] .toast{background:#fff;border-color:#dce2eb;color:#171b25;box-shadow:0 16px 40px rgba(30,39,60,.14)}

/* CYBER NEON — sharp, technical, high contrast */
html[data-theme="neon"]{color-scheme:dark;--bg:#050507;--bg2:#08090b;--panel:rgba(10,11,14,.92);--panel-solid:#0b0c0f;--panel2:#101218;--text:#f7f8fa;--muted:#9197a4;--line:#272b33;--accent:#c8ff3d;--accent2:#ff3fd1;--green:#c8ff3d;--yellow:#ffe34f;--red:#ff4c72;--purple:#a86dff;--shadow:0 24px 70px rgba(0,0,0,.58);--radius:10px}
html[data-theme="neon"] body{background-color:#050507;background-image:linear-gradient(rgba(200,255,61,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(200,255,61,.035) 1px,transparent 1px),radial-gradient(circle at 75% -10%,#8d1f8430,transparent 35%);background-size:34px 34px,34px 34px,auto;color:#f7f8fa}
html[data-theme="neon"] .topbar{background:#08090bea;border:1px solid #30343d;border-radius:8px;box-shadow:0 0 0 1px #c8ff3d08,0 18px 55px #0008}
html[data-theme="neon"] .brand{letter-spacing:.04em;text-transform:uppercase}.theme-neon{}
html[data-theme="neon"] .brand-mark{border-radius:5px;background:#c8ff3d;color:#050507;box-shadow:0 0 26px #c8ff3d45}
html[data-theme="neon"] .search input,html[data-theme="neon"] .form input,html[data-theme="neon"] .form textarea,html[data-theme="neon"] .form select,html[data-theme="neon"] .field{background:#08090b;border-color:#30343d;color:#fff;border-radius:6px}
html[data-theme="neon"] .icon-btn,html[data-theme="neon"] .pill-btn,html[data-theme="neon"] .btn{background:#0b0c0f;border-color:#343942;color:#f7f8fa;border-radius:6px}
html[data-theme="neon"] .btn.primary{background:#c8ff3d;color:#050507;border:1px solid #c8ff3d;box-shadow:0 0 24px #c8ff3d22}
html[data-theme="neon"] .btn:hover,html[data-theme="neon"] .pill-btn:hover,html[data-theme="neon"] .icon-btn:hover{border-color:#c8ff3d;box-shadow:0 0 0 1px #c8ff3d33}
html[data-theme="neon"] .badge{border-radius:4px;background:#101217;border-color:#343942;color:#c8ff3d;text-transform:uppercase;letter-spacing:.06em}
html[data-theme="neon"] .badge.yellow{background:#1d1907;border-color:#5e5114;color:#ffe34f}
html[data-theme="neon"] .hero-store{border-radius:12px;border-color:#3b404a;background:linear-gradient(110deg,#0a0b0e 0,#0a0b0e 58%,#1a0b1b 100%);box-shadow:inset 0 0 0 1px #c8ff3d0b,0 28px 75px #0009}
html[data-theme="neon"] .hero-store:before{content:"SYSTEM // ONLINE";position:absolute;right:22px;bottom:14px;color:#c8ff3d55;font:700 10px/1 ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.16em}
html[data-theme="neon"] .hero-store h1{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;text-transform:uppercase;letter-spacing:-.065em}
html[data-theme="neon"] .hero-store p{color:#a1a6b0}
html[data-theme="neon"] .hero-stat{background:#08090bcf;border-color:#343942;border-radius:6px}
html[data-theme="neon"] .filters .active{background:#c8ff3d;color:#050507;border-color:#c8ff3d}
html[data-theme="neon"] .product-card{background:linear-gradient(180deg,#0c0d10,#08090b);border-color:#2d3139;border-radius:9px;box-shadow:none}
html[data-theme="neon"] .product-card:before{content:"";height:2px;position:absolute;left:0;right:0;top:0;background:linear-gradient(90deg,#c8ff3d,#ff3fd1);opacity:.45}
html[data-theme="neon"] .product-card:hover{transform:translateY(-2px);border-color:#c8ff3d;box-shadow:0 0 30px #c8ff3d10}
html[data-theme="neon"] .product-card .desc,html[data-theme="neon"] .stock{color:#8d94a1}
html[data-theme="neon"] .modal,html[data-theme="neon"] .drawer,html[data-theme="neon"] .order-card,html[data-theme="neon"] .profile-card{background:#0a0b0e;border-color:#353a43;border-radius:9px}
html[data-theme="neon"] .totals,html[data-theme="neon"] .order-items,html[data-theme="neon"] .payment-card,html[data-theme="neon"] .receipt-drop{background:#07080a;border-color:#333841;border-radius:7px}
html[data-theme="neon"] .bottom-nav{background:#08090bf3;border-color:#333841;border-radius:7px}html[data-theme="neon"] .bottom-nav button.active{background:#c8ff3d;color:#050507;border-radius:4px}
html[data-theme="neon"] .login-card{background:#0a0b0e;border-color:#343942;border-radius:10px}

/* ATELIER LUXE — warm editorial / luxury */
html[data-theme="atelier"]{color-scheme:light;--bg:#f2ecdf;--bg2:#e8dfcf;--panel:rgba(255,250,240,.93);--panel-solid:#fffaf0;--panel2:#eee5d5;--text:#17140f;--muted:#776d5f;--line:#d8cbb7;--accent:#b18a46;--accent2:#d7bc83;--green:#52765b;--yellow:#9a742f;--red:#a34c48;--purple:#765f78;--shadow:0 28px 72px rgba(59,45,27,.14);--radius:8px}
html[data-theme="atelier"] body{background:#f2ecdf;color:#17140f;font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif}
html[data-theme="atelier"] h1,html[data-theme="atelier"] h2,html[data-theme="atelier"] h3,html[data-theme="atelier"] .price,html[data-theme="atelier"] .brand{font-family:Georgia,"Times New Roman",serif}
html[data-theme="atelier"] .topbar{background:#f8f2e8ed;border-color:#d5c7b1;border-radius:4px;box-shadow:none}
html[data-theme="atelier"] .brand-mark{background:#17140f;color:#f6ead5;border-radius:50%;font-family:Georgia,serif}
html[data-theme="atelier"] .search input,html[data-theme="atelier"] .form input,html[data-theme="atelier"] .form textarea,html[data-theme="atelier"] .form select,html[data-theme="atelier"] .field{background:#fffaf0;border-color:#d8cbb7;color:#17140f;border-radius:3px}
html[data-theme="atelier"] .icon-btn,html[data-theme="atelier"] .pill-btn,html[data-theme="atelier"] .btn{background:#f8f2e8;border-color:#cfc0a8;color:#201c16;border-radius:3px;box-shadow:none}
html[data-theme="atelier"] .btn.primary{background:#17140f;color:#f6ead5;border-color:#17140f}
html[data-theme="atelier"] .btn.ghost{background:transparent}
html[data-theme="atelier"] .badge{background:transparent;border-color:#cbb996;color:#735f3e;border-radius:2px;text-transform:uppercase;letter-spacing:.08em;font-family:ui-sans-serif,system-ui,sans-serif;font-size:10px}
html[data-theme="atelier"] .hero-store{border-radius:5px;border-color:#cdbda3;background:linear-gradient(100deg,#fffaf0,#ece1cf);box-shadow:none;padding:42px}
html[data-theme="atelier"] .hero-store:after{content:"A";font-family:Georgia,serif;font-style:italic;color:#b18a460b;right:20px;top:-90px}
html[data-theme="atelier"] .hero-store h1{font-size:clamp(40px,5.7vw,78px);font-weight:500;letter-spacing:-.055em}
html[data-theme="atelier"] .hero-store p{color:#756a5b}
html[data-theme="atelier"] .hero-stat{background:#fffaf0a8;border-color:#d3c4ac;border-radius:3px}
html[data-theme="atelier"] .filters .active{background:#17140f;border-color:#17140f;color:#f8f0df}
html[data-theme="atelier"] .section-title h2{font-weight:500;font-size:30px}
html[data-theme="atelier"] .product-grid{gap:18px}
html[data-theme="atelier"] .product-card{background:#fffaf0;border-color:#d6c8b2;border-radius:4px;box-shadow:none;padding:21px}
html[data-theme="atelier"] .product-card:hover{transform:none;border-color:#a98e63;box-shadow:0 18px 40px rgba(68,52,31,.08)}
html[data-theme="atelier"] .product-card .emoji{filter:saturate(.78)}
html[data-theme="atelier"] .product-card .desc,html[data-theme="atelier"] .stock,html[data-theme="atelier"] .muted{color:#786e60}
html[data-theme="atelier"] .modal,html[data-theme="atelier"] .drawer,html[data-theme="atelier"] .order-card,html[data-theme="atelier"] .profile-card,html[data-theme="atelier"] .login-card{background:#fffaf0;border-color:#d3c4ad;color:#17140f;border-radius:5px}
html[data-theme="atelier"] .drawer-backdrop,html[data-theme="atelier"] .modal-backdrop{background:#31271b80}
html[data-theme="atelier"] .totals,html[data-theme="atelier"] .order-items,html[data-theme="atelier"] .payment-card,html[data-theme="atelier"] .receipt-drop{background:#f4ecdf;border-color:#d7cab5;color:#17140f;border-radius:3px}
html[data-theme="atelier"] .total-row{color:#766b5d}html[data-theme="atelier"] .total-row.final{color:#17140f;border-color:#d4c6b0}
html[data-theme="atelier"] .bottom-nav{background:#f8f2e8f5;border-color:#d1c3ad;border-radius:4px;box-shadow:0 10px 35px rgba(63,48,29,.15)}html[data-theme="atelier"] .bottom-nav button{color:#786d5f}html[data-theme="atelier"] .bottom-nav button.active{background:#17140f;color:#f7ecd9;border-radius:2px}

/* AURORA GLASS — cool glassmorphism / mobile-first */
html[data-theme="aurora"]{color-scheme:dark;--bg:#061522;--bg2:#081d2c;--panel:rgba(13,39,57,.62);--panel-solid:#0d293d;--panel2:#123a52;--text:#f4fbff;--muted:#9bb8c9;--line:#ffffff1f;--accent:#68dcff;--accent2:#8c7cff;--green:#66e3b0;--yellow:#ffd477;--red:#ff8297;--purple:#b797ff;--shadow:0 28px 80px rgba(0,15,29,.38);--radius:28px}
html[data-theme="aurora"] body{background:radial-gradient(circle at 5% 3%,#176f8c72 0,transparent 33%),radial-gradient(circle at 93% 15%,#6a48bc58 0,transparent 32%),radial-gradient(circle at 48% 85%,#095d6845 0,transparent 38%),linear-gradient(160deg,#06121d,#071b29 58%,#07111e);background-attachment:fixed;color:#f4fbff}
html[data-theme="aurora"] .topbar{background:rgba(9,30,44,.58);border-color:#ffffff20;border-radius:24px;backdrop-filter:blur(28px) saturate(145%);box-shadow:0 18px 55px #00101f45}
html[data-theme="aurora"] .brand-mark{background:linear-gradient(145deg,#68dcff,#8c7cff);box-shadow:0 0 32px #68dcff35;border-radius:15px}
html[data-theme="aurora"] .search input,html[data-theme="aurora"] .form input,html[data-theme="aurora"] .form textarea,html[data-theme="aurora"] .form select,html[data-theme="aurora"] .field{background:#071b2b99;border-color:#ffffff20;color:#fff;backdrop-filter:blur(14px);border-radius:16px}
html[data-theme="aurora"] .icon-btn,html[data-theme="aurora"] .pill-btn,html[data-theme="aurora"] .btn{background:#0d2a3fa8;border-color:#ffffff1f;color:#eefbff;border-radius:16px;backdrop-filter:blur(14px)}
html[data-theme="aurora"] .btn.primary{background:linear-gradient(135deg,#68dcff,#8c7cff);color:#071522;box-shadow:0 12px 30px #68dcff24}
html[data-theme="aurora"] .badge{background:#0d2c43a6;border-color:#ffffff1f;color:#bfeeff;backdrop-filter:blur(10px)}
html[data-theme="aurora"] .hero-store{border-radius:34px;border-color:#ffffff21;background:linear-gradient(120deg,rgba(11,57,76,.69),rgba(30,27,73,.56));backdrop-filter:blur(28px) saturate(140%);box-shadow:0 30px 90px #00111f55,inset 0 1px 0 #ffffff14}
html[data-theme="aurora"] .hero-store:after{color:#b8eeff0e}
html[data-theme="aurora"] .hero-store p{color:#b0cad8}
html[data-theme="aurora"] .hero-stat{background:#081c2c75;border-color:#ffffff1d;border-radius:22px;backdrop-filter:blur(14px)}
html[data-theme="aurora"] .filters .active{background:linear-gradient(135deg,#2b718c,#51458f);border-color:#79dfff80}
html[data-theme="aurora"] .product-card{background:linear-gradient(180deg,rgba(16,47,68,.72),rgba(7,27,42,.72));border-color:#ffffff1d;border-radius:27px;backdrop-filter:blur(22px) saturate(135%);box-shadow:0 16px 45px #00101f3d,inset 0 1px 0 #ffffff0d}
html[data-theme="aurora"] .product-card:hover{border-color:#7ee3ff70;box-shadow:0 25px 65px #00101f55,0 0 34px #68dcff0e}
html[data-theme="aurora"] .product-card .desc,html[data-theme="aurora"] .stock{color:#9dbdce}
html[data-theme="aurora"] .modal,html[data-theme="aurora"] .drawer,html[data-theme="aurora"] .order-card,html[data-theme="aurora"] .profile-card,html[data-theme="aurora"] .login-card{background:rgba(9,31,47,.88);border-color:#ffffff20;backdrop-filter:blur(30px) saturate(140%);border-radius:28px}
html[data-theme="aurora"] .totals,html[data-theme="aurora"] .order-items,html[data-theme="aurora"] .payment-card,html[data-theme="aurora"] .receipt-drop{background:#061b2a82;border-color:#ffffff1d;border-radius:20px}
html[data-theme="aurora"] .bottom-nav{background:#071d2dd9;border-color:#ffffff20;border-radius:24px;backdrop-filter:blur(30px) saturate(150%)}html[data-theme="aurora"] .bottom-nav button.active{background:linear-gradient(135deg,#2b718c,#544897);color:#fff;border-radius:16px}

/* Theme-independent design manager in Admin */
.design-intro{display:grid;grid-template-columns:1.35fr .65fr;gap:18px;padding:25px;border:1px solid var(--line);border-radius:24px;background:linear-gradient(135deg,#12223c,#0c192c);margin-bottom:18px;overflow:hidden;position:relative}.design-intro:after{content:"✦";position:absolute;right:-18px;top:-78px;font-size:220px;color:#79a7ff0b}.design-intro h2{font-size:clamp(28px,3.6vw,48px);line-height:1.02;letter-spacing:-.05em;margin:12px 0}.design-intro p{max-width:720px;color:var(--muted)}.design-intro-stat{align-self:stretch;display:flex;flex-direction:column;justify-content:center;padding:22px;border:1px solid #365174;border-radius:19px;background:#0a1729a8}.design-intro-stat small,.design-intro-stat span{color:var(--muted)}.design-intro-stat strong{font-size:26px;margin:5px 0}.design-workspace{display:grid;grid-template-columns:minmax(420px,.9fr) minmax(500px,1.1fr);gap:18px;align-items:start}.theme-selector-grid{display:grid;grid-template-columns:1fr 1fr;gap:11px}.theme-choice{width:100%;padding:10px;border:1px solid #2a4163;background:#0e1b2f;color:#fff;border-radius:18px;text-align:left;cursor:pointer;transition:.18s}.theme-choice:hover{transform:translateY(-2px);border-color:#587fb9}.theme-choice.selected{border-color:#76a6ff;box-shadow:0 0 0 3px #76a6ff18}.theme-thumb{height:112px;border-radius:12px;padding:9px;overflow:hidden;position:relative}.theme-mini-top{display:flex;gap:4px;align-items:center;height:13px}.theme-mini-top i{width:8px;height:8px;border-radius:50%}.theme-mini-top span{width:22px;height:5px;border-radius:6px}.theme-mini-hero{height:48px;margin-top:6px;border-radius:7px;display:flex;align-items:center;gap:8px;padding:8px}.theme-mini-hero b{font-size:20px}.theme-mini-hero span{width:55%;height:7px;border-radius:5px}.theme-mini-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:5px;margin-top:6px}.theme-mini-grid i{height:25px;border-radius:5px}.theme-choice-copy{display:flex;gap:8px;justify-content:space-between;margin-top:9px}.theme-choice-copy strong{display:block;font-size:14px}.theme-choice-copy small{display:block;color:#8398b4;font-size:10px;line-height:1.35;margin-top:3px}.theme-check{font-size:10px;color:#9fc3ff;white-space:nowrap}.theme-swatches{display:flex;gap:5px;margin-top:8px}.theme-swatches i{width:14px;height:14px;border-radius:50%;border:1px solid #ffffff24}.theme-thumb-midnight{background:linear-gradient(145deg,#07101d,#16345b)}.theme-thumb-midnight .theme-mini-top i,.theme-thumb-midnight .theme-mini-hero span{background:#79a7ff}.theme-thumb-midnight .theme-mini-top span,.theme-thumb-midnight .theme-mini-grid i{background:#173150}.theme-thumb-midnight .theme-mini-hero{background:#102b42}.theme-thumb-pearl{background:#f2f4f8}.theme-thumb-pearl .theme-mini-top i{background:#111827}.theme-thumb-pearl .theme-mini-top span{background:#d2d7e1}.theme-thumb-pearl .theme-mini-hero{background:#fff}.theme-thumb-pearl .theme-mini-hero span{background:#151922}.theme-thumb-pearl .theme-mini-grid i{background:#fff;border:1px solid #dce1e8}.theme-thumb-neon{background-color:#050507;background-image:linear-gradient(#c8ff3d0c 1px,transparent 1px),linear-gradient(90deg,#c8ff3d0c 1px,transparent 1px);background-size:12px 12px}.theme-thumb-neon .theme-mini-top i,.theme-thumb-neon .theme-mini-hero span{background:#c8ff3d}.theme-thumb-neon .theme-mini-top span{background:#343940}.theme-thumb-neon .theme-mini-hero{background:#0c0d10;border:1px solid #333840}.theme-thumb-neon .theme-mini-grid i{background:#0c0d10;border:1px solid #343940}.theme-thumb-atelier{background:#f2ecdf}.theme-thumb-atelier .theme-mini-top i,.theme-thumb-atelier .theme-mini-hero span{background:#17140f}.theme-thumb-atelier .theme-mini-top span{background:#cdbfa9}.theme-thumb-atelier .theme-mini-hero{background:#fffaf0;border:1px solid #d5c6ae}.theme-thumb-atelier .theme-mini-grid i{background:#fffaf0;border:1px solid #d5c6ae;border-radius:2px}.theme-thumb-aurora{background:radial-gradient(circle at 15% 10%,#1c779a,#071827 50%),radial-gradient(circle at 90% 20%,#6850ae,#071827 55%)}.theme-thumb-aurora .theme-mini-top i,.theme-thumb-aurora .theme-mini-hero span{background:#68dcff}.theme-thumb-aurora .theme-mini-top span{background:#ffffff36}.theme-thumb-aurora .theme-mini-hero,.theme-thumb-aurora .theme-mini-grid i{background:#ffffff12;border:1px solid #ffffff22;backdrop-filter:blur(6px)}.live-preview-panel{position:sticky;top:18px;border:1px solid var(--line);border-radius:22px;background:#0b1729;padding:13px}.preview-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}.preview-toolbar>div:first-child{display:grid}.preview-toolbar span{font-size:11px;color:var(--muted)}.device-switch{display:flex;gap:4px}.device-switch button{width:35px;height:30px;border:1px solid #2d4669;border-radius:8px;background:#101f36;color:#a8bad2;cursor:pointer}.device-switch button.active{background:#27496f;color:#fff;border-color:#5d83ba}.preview-canvas{height:620px;border-radius:15px;overflow:hidden;background:#050a12;display:flex;justify-content:center;align-items:flex-start;padding:0;transition:.2s}.preview-canvas iframe{height:100%;width:100%;border:0;background:#07101d;transition:width .25s;border-radius:0}.preview-canvas[data-preview-device="tablet"] iframe{width:760px;max-width:92%}.preview-canvas[data-preview-device="mobile"] iframe{width:390px;max-width:88%}.design-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:11px}

@media(max-width:1150px){.design-workspace{grid-template-columns:1fr}.live-preview-panel{position:static}.theme-selector-grid{grid-template-columns:repeat(3,1fr)}.preview-canvas{height:560px}}
@media(max-width:760px){.admin-nav{grid-template-columns:repeat(8,1fr)}.design-intro{grid-template-columns:1fr;padding:18px}.design-intro-stat{padding:15px}.theme-selector-grid{grid-template-columns:1fr 1fr}.preview-canvas{height:510px}.live-preview-panel{padding:9px}.design-actions{flex-direction:column}.design-actions .btn{width:100%;text-align:center}}
@media(max-width:480px){.theme-selector-grid{grid-template-columns:1fr}.theme-thumb{height:96px}.preview-toolbar{align-items:flex-start;flex-direction:column}.preview-canvas{height:470px}.preview-canvas[data-preview-device="mobile"] iframe{width:100%;max-width:100%}}

/* Small-screen storefront refinements shared by all five themes */
@media(max-width:620px){.hero-store h1{font-size:clamp(32px,11vw,48px)}.hero-store p{font-size:14px}.hero-stat strong{font-size:22px}.topbar{padding:8px 9px}.search input{padding-top:10px;padding-bottom:10px}.card-actions{grid-template-columns:1fr}.card-actions .btn{width:100%}.product-card{min-width:0}.order-head{flex-direction:column}.linkbox{flex-wrap:wrap}.linkbox .field{min-width:0}.wallet-value{font-size:36px}}

/* Accessibility, touch and extreme viewport hardening */
:where(button,a,input,textarea,select):focus-visible{outline:3px solid color-mix(in srgb,var(--accent) 70%,white 30%);outline-offset:2px}
@media(pointer:coarse){.btn,.pill-btn,.icon-btn,.bottom-nav button{min-height:44px}.theme-choice{min-height:44px}.filters button{min-height:42px}}
@media(max-width:380px){.product-grid{grid-template-columns:1fr}.hero-stats{grid-template-columns:1fr 1fr}.shell{width:min(100% - 12px,1380px)}.product-card .desc{display:block}.top-actions{gap:4px}.topbar{border-radius:15px}.search input{min-width:0}}
@media(max-height:560px) and (orientation:landscape){.modal{max-height:96vh}.preview-canvas{height:430px}}
@supports(padding:max(0px)){@media(max-width:760px){body{padding-bottom:max(84px,calc(70px + env(safe-area-inset-bottom)))}.bottom-nav{bottom:max(8px,env(safe-area-inset-bottom));left:max(8px,env(safe-area-inset-left));right:max(8px,env(safe-area-inset-right))}.drawer{padding-bottom:max(17px,env(safe-area-inset-bottom))}}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}

/* V6.2.3 — Telegram Mini App mobile safe-area integration */
html.telegram-miniapp{--tg-safe-top:0px;--tg-safe-right:0px;--tg-safe-bottom:0px;--tg-safe-left:0px;--tg-content-safe-top:0px;--tg-content-safe-right:0px;--tg-content-safe-bottom:0px;--tg-content-safe-left:0px}
html.telegram-miniapp .shell{margin-top:0;padding-top:calc(var(--tg-content-safe-top) + 10px);padding-left:max(0px,var(--tg-content-safe-left));padding-right:max(0px,var(--tg-content-safe-right))}
html.telegram-miniapp .topbar{top:calc(var(--tg-content-safe-top) + 8px)}
html.telegram-miniapp .drawer{padding-top:max(24px,calc(var(--tg-content-safe-top) + 14px));padding-right:max(24px,calc(var(--tg-content-safe-right) + 14px));padding-bottom:max(24px,calc(var(--tg-content-safe-bottom) + 14px))}
html.telegram-miniapp .modal{margin-top:calc(var(--tg-content-safe-top) / 2);max-height:calc(90vh - var(--tg-content-safe-top) - var(--tg-content-safe-bottom))}
@media(max-width:760px){
 html.telegram-miniapp body{padding-bottom:max(96px,calc(78px + var(--tg-content-safe-bottom)))}
 html.telegram-miniapp .shell{width:min(100% - 12px,1380px);padding-top:calc(var(--tg-content-safe-top) + 12px)}
 html.telegram-miniapp .topbar{top:calc(var(--tg-content-safe-top) + 6px);z-index:45}
 html.telegram-miniapp .bottom-nav{bottom:max(8px,calc(var(--tg-content-safe-bottom) + 8px));left:max(8px,calc(var(--tg-content-safe-left) + 8px));right:max(8px,calc(var(--tg-content-safe-right) + 8px));z-index:55}
 html.telegram-miniapp .top-actions{position:relative;z-index:2}
}

/* V6.2.3 — Admin Light appearance */
html[data-admin-theme="light"]{color-scheme:light;--bg:#f3f6fb;--bg2:#eef2f8;--panel:#ffffff;--panel-solid:#ffffff;--panel2:#f7f9fc;--text:#172033;--muted:#68758a;--line:#dbe3ef;--accent:#356df3;--accent2:#28b8a4;--green:#188b55;--yellow:#a96b00;--red:#c33e55;--purple:#7957d5;--shadow:0 20px 55px rgba(35,55,90,.12)}
html[data-admin-theme="light"] body{background:linear-gradient(180deg,#f7f9fd,#eef3f9 70%);color:var(--text)}
html[data-admin-theme="light"] .admin-side{background:#ffffff;border-right-color:#dbe3ee;box-shadow:8px 0 30px rgba(50,70,100,.04)}
html[data-admin-theme="light"] .admin-logo{color:#172033}
html[data-admin-theme="light"] .admin-nav button{color:#65738a}
html[data-admin-theme="light"] .admin-nav button.active,html[data-admin-theme="light"] .admin-nav button:hover{background:#eaf1ff;color:#1d4fc4}
html[data-admin-theme="light"] .admin-main{background:transparent}
html[data-admin-theme="light"] .admin-header h1,html[data-admin-theme="light"] h1,html[data-admin-theme="light"] h2,html[data-admin-theme="light"] h3{color:#172033}
html[data-admin-theme="light"] .metric{background:linear-gradient(160deg,#ffffff,#f6f9fd);border-color:#dce4ef;box-shadow:0 8px 24px rgba(44,65,95,.06)}
html[data-admin-theme="light"] .metric strong{color:#172033}
html[data-admin-theme="light"] .profile-card,html[data-admin-theme="light"] .order-card,html[data-admin-theme="light"] .product-card,html[data-admin-theme="light"] .settings-section,html[data-admin-theme="light"] .integration,html[data-admin-theme="light"] .live-preview-panel{background:#ffffff;border-color:#dce4ef;color:#172033;box-shadow:0 10px 30px rgba(44,65,95,.06)}
html[data-admin-theme="light"] .product-card:hover{border-color:#adc0dd;box-shadow:0 16px 36px rgba(44,65,95,.1)}
html[data-admin-theme="light"] .form label{color:#4c5a70}
html[data-admin-theme="light"] .form input,html[data-admin-theme="light"] .form textarea,html[data-admin-theme="light"] .form select,html[data-admin-theme="light"] .field{background:#ffffff;border-color:#ccd7e5;color:#172033}
html[data-admin-theme="light"] .form input:focus,html[data-admin-theme="light"] .form textarea:focus,html[data-admin-theme="light"] .form select:focus{border-color:#5682ed;box-shadow:0 0 0 3px rgba(53,109,243,.12)}
html[data-admin-theme="light"] .btn,html[data-admin-theme="light"] .icon-btn,html[data-admin-theme="light"] .pill-btn{background:#f4f7fb;border-color:#ccd8e7;color:#253149}
html[data-admin-theme="light"] .btn:hover,html[data-admin-theme="light"] .icon-btn:hover,html[data-admin-theme="light"] .pill-btn:hover{border-color:#91a7c6;background:#edf3fb}
html[data-admin-theme="light"] .btn.primary{background:linear-gradient(135deg,#477cf3,#31c1ad);color:#fff;border:0}
html[data-admin-theme="light"] .btn.danger{background:#fff0f2;color:#b72f47;border-color:#efbcc5}
html[data-admin-theme="light"] .btn.success{background:#eaf9f0;color:#147442;border-color:#b5e2c8}
html[data-admin-theme="light"] .btn.ghost{background:transparent}
html[data-admin-theme="light"] .badge{background:#edf3fb;border-color:#d3deec;color:#4c627f}
html[data-admin-theme="light"] .badge.green{background:#e9f8ef;border-color:#b8e2c7;color:#187142}
html[data-admin-theme="light"] .badge.red{background:#fff0f3;border-color:#eebdc7;color:#b53249}
html[data-admin-theme="light"] .badge.yellow{background:#fff7e6;border-color:#ead5a1;color:#8b6200}
html[data-admin-theme="light"] .table-wrap{border-color:#dce4ef;background:#fff}
html[data-admin-theme="light"] table{color:#263349}
html[data-admin-theme="light"] th{background:#f4f7fb;color:#5d6b81;border-bottom-color:#dce4ef}
html[data-admin-theme="light"] td{border-bottom-color:#e7edf4}
html[data-admin-theme="light"] tr:hover td{background:#f8faff}
html[data-admin-theme="light"] .modal{background:#ffffff;border-color:#d5dfeb;color:#172033;box-shadow:0 24px 70px rgba(32,52,84,.22)}
html[data-admin-theme="light"] .drawer{background:#ffffff;border-left-color:#d5dfeb;color:#172033}
html[data-admin-theme="light"] .drawer-backdrop,html[data-admin-theme="light"] .modal-backdrop{background:rgba(29,42,63,.38)}
html[data-admin-theme="light"] .login-card{background:#ffffff;border-color:#d5dfeb;color:#172033;box-shadow:0 25px 70px rgba(32,52,84,.14)}
html[data-admin-theme="light"] .empty{border-color:#cdd8e6;color:#6c788c;background:rgba(255,255,255,.55)}
html[data-admin-theme="light"] .total-row{color:#5d6b80}
html[data-admin-theme="light"] .total-row.final{color:#172033;border-top-color:#dce4ef}
html[data-admin-theme="light"] .order-items,html[data-admin-theme="light"] .totals{background:#f5f8fc;border-color:#dce4ef;color:#263349}
html[data-admin-theme="light"] .toast{background:#ffffff;border-color:#cbd7e6;color:#172033;box-shadow:0 14px 38px rgba(32,52,84,.16)}
html[data-admin-theme="light"] .toast.error{background:#fff0f2;border-color:#efbcc5;color:#9d283d}
html[data-admin-theme="light"] .toast.success{background:#eaf9f0;border-color:#b5e2c8;color:#14683d}
html[data-admin-theme="light"] .design-intro{background:linear-gradient(135deg,#ffffff,#eef4ff);border-color:#d7e1ef}
html[data-admin-theme="light"] .design-intro-stat{background:#ffffff;border-color:#cedbed}
html[data-admin-theme="light"] .theme-choice{background:#ffffff;border-color:#d6e0ec;color:#172033}
html[data-admin-theme="light"] .theme-choice.selected{border-color:#5d83ec;box-shadow:0 0 0 3px rgba(53,109,243,.1)}
html[data-admin-theme="light"] .live-preview-panel{background:#ffffff}
html[data-admin-theme="light"] .device-switch button{background:#f2f5fa;color:#516078;border-color:#d1dce9}
html[data-admin-theme="light"] .device-switch button.active{background:#e5edff;color:#234fb7;border-color:#8fa9df}
html[data-admin-theme="light"] pre{background:#f4f7fb!important;color:#253149!important;border-color:#dce4ef!important}
@media(max-width:760px){.admin-header-actions{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}.admin-header-actions .btn{padding:9px 10px}}
/* V6.2.6 receipt upload feedback */
.upload-progress{position:relative;height:24px;margin-top:10px;border:1px solid var(--line);border-radius:999px;overflow:hidden;background:rgba(0,0,0,.14)}
.upload-progress.hidden{display:none}.upload-progress i{position:absolute;inset:0 auto 0 0;width:0;background:linear-gradient(90deg,var(--accent),var(--accent2));transition:width .15s ease}.upload-progress span{position:relative;z-index:1;display:grid;place-items:center;height:100%;font-size:11px;font-weight:900;color:var(--text)}
.receipt-drop{cursor:pointer;touch-action:manipulation}.receipt-drop:active{transform:scale(.997)}
.telegram-btn{cursor:pointer;width:100%}

/* V6.2.7 Telegram legacy login widget */
.telegram-widget-host{min-height:54px;display:flex;align-items:center;justify-content:center;margin:16px 0}.telegram-widget-host iframe{max-width:100%}.telegram-domain-help{font-size:.86rem;line-height:1.45}.error-box{padding:12px 14px;border:1px solid rgba(239,68,68,.35);border-radius:12px;background:rgba(239,68,68,.08)}
