@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800;900&family=Manrope:wght@500;600;700;800&display=swap');
:root{--navy:#073b79;--deep:#062e62;--blue:#0789cb;--green:#43bd1f;--ink:#13243a;--muted:#718095;--paper:#fbfaf6;--white:#fff;--line:#e8e8e0;--soft:#f1f4f4;--shadow:0 18px 48px rgba(13,50,79,.1);font-family:'Cairo',sans-serif;color:var(--ink);background:var(--paper)}*{box-sizing:border-box}body{margin:0;min-height:100vh;background:var(--paper);font-size:14px;line-height:1.7}button,input,select,textarea{font:inherit}button{cursor:pointer}a{color:inherit;text-decoration:none}[hidden]{display:none!important}.topbar{height:78px;padding:0 max(5%,calc((100vw - 1180px)/2));display:flex;align-items:center;justify-content:space-between;background:#fff;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:11px}.brand img{width:48px;height:48px;object-fit:contain;border-radius:10px;mix-blend-mode:multiply}.brand span{display:grid;line-height:1.25}.brand strong{font-weight:900;color:var(--navy);font-size:17px}.brand small{margin-top:4px;font:700 9px 'Manrope',sans-serif;letter-spacing:.12em;color:#788698}.top-actions{display:flex;align-items:center;gap:14px}.store-link{font-weight:800;font-size:11px;color:var(--blue)}main{max-width:1120px;margin:0 auto;padding:38px 24px 70px}.button{min-height:44px;padding:0 18px;display:inline-flex;align-items:center;justify-content:center;gap:10px;border:0;border-radius:8px;font-weight:800;font-size:12px;transition:transform .2s,background .2s;white-space:nowrap}.button:hover{transform:translateY(-1px)}.button-primary{background:var(--navy);color:white;box-shadow:0 8px 18px #073b7924}.button-primary:hover{background:var(--blue)}.button-quiet{background:#fff;border:1px solid #dfe5e8;color:var(--navy)}.full{width:100%}.login-wrap{min-height:calc(100vh - 180px);display:grid;place-items:center}.login-card{width:min(100%,440px);padding:42px 36px 34px;text-align:center;border:1px solid #e9ece6;border-radius:17px;background:#fff;box-shadow:var(--shadow)}.mark{width:62px;height:62px;display:grid;place-items:center;margin:0 auto 15px;border-radius:20px 50% 50%;transform:rotate(-7deg);background:linear-gradient(145deg,var(--navy),var(--blue));color:#b7f176;font-size:34px;font-weight:900}.eyebrow{margin:0 0 5px;color:var(--green);font-size:10px;font-weight:900;letter-spacing:.04em}.login-card h1,.welcome h1{margin:0;color:var(--deep);font-size:30px;font-weight:900;line-height:1.35}.muted{color:var(--muted);font-size:12px;line-height:1.8}.login-card .muted{margin:11px auto 23px;max-width:330px}.security-note{margin:15px 0 0;color:#89949e;font-size:10px}.loading-wrap{min-height:60vh;display:flex;align-items:center;justify-content:center;gap:12px;color:var(--muted)}.spinner{width:24px;height:24px;border:3px solid #dfe9e8;border-top-color:var(--blue);border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.welcome{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:8px 0 28px}.welcome .muted{margin:5px 0 0}.session-badge{display:flex;align-items:center;gap:8px;padding:9px 13px;border:1px solid #e5eae5;border-radius:30px;background:white;color:#687789;font:11px 'Manrope',sans-serif}.online-dot{width:8px;height:8px;border-radius:50%;background:var(--green);box-shadow:0 0 0 4px #43bd1f1a}.notice{margin:0 0 18px;padding:11px 15px;border:1px solid #d8edce;border-radius:8px;background:#f0f8ec;color:#377c27;font-size:12px;font-weight:700}.notice.error{border-color:#f2d3cd;background:#fff3f1;color:#ad4030}.tabs{display:flex;gap:7px;padding:5px;margin-bottom:24px;border:1px solid #e8ebe6;border-radius:10px;background:#f3f4ef;width:max-content;max-width:100%}.tab{padding:8px 18px;border:0;border-radius:7px;background:transparent;color:#6e7d8c;font-size:11px;font-weight:800}.tab.active{background:white;color:var(--navy);box-shadow:0 2px 8px #13243a0d}.panel{padding:27px;border:1px solid #e8ebe6;border-radius:13px;background:#fff;box-shadow:0 6px 24px #193d5a08}.section-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:22px}.section-head h2{margin:0;color:var(--deep);font-size:24px;font-weight:900}.section-head .muted{margin:2px 0 0}.products-list{display:grid;gap:11px}.product-row{min-width:0;display:grid;grid-template-columns:92px minmax(0,1fr) auto;align-items:center;gap:17px;padding:13px;border:1px solid #ebeee8;border-radius:10px;background:#fff}.product-thumb{width:92px;height:76px;display:grid;place-items:center;overflow:hidden;border-radius:8px;background:#f0f3ed;color:#929da6;font-size:9px;text-align:center}.product-thumb img{width:100%;height:100%;object-fit:cover}.product-info{min-width:0}.product-tags{display:flex;align-items:center;gap:8px;color:var(--green);font-size:9px;font-weight:800}.product-tags .published,.product-tags .draft{padding:2px 8px;border-radius:20px;background:#eaf7e5;color:#448e2d}.product-tags .draft{background:#fff4e1;color:#99702d}.product-info h3{margin:4px 0 0;color:var(--navy);font-size:15px;font-weight:900}.product-info p{overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;margin:2px 0;color:#798695;font-size:10px;line-height:1.65}.product-info>small{color:#6b7a8a;font-size:9px}.row-actions{display:flex;gap:7px}.small-button{min-height:34px;padding:0 11px;border:1px solid #e2e8e8;border-radius:6px;background:#fff;color:var(--navy);font-size:10px;font-weight:800}.small-button:hover{border-color:var(--blue);color:var(--blue)}.small-button.danger{color:#b64c3e}.small-button.danger:hover{border-color:#e5aaa1;background:#fff8f6}.empty-state{padding:50px 20px;text-align:center;color:var(--muted)}.empty-state>span{width:48px;height:48px;margin:auto;display:grid;place-items:center;border-radius:50%;background:#edf5e8;color:var(--green);font-size:22px}.empty-state h3{margin:9px 0 0;color:var(--navy);font-size:16px}.empty-state p{margin:4px 0;font-size:11px}.settings-form fieldset{margin:0 0 20px;padding:17px 18px;border:1px solid #e9ede7;border-radius:10px}.settings-form legend{padding:0 7px;color:var(--navy);font-size:13px;font-weight:900}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.form-grid label,.upload-field>label{display:grid;gap:5px;color:#3c4e62;font-size:11px;font-weight:800}.form-grid label small{font-weight:500;color:#929da6}.form-grid .wide{grid-column:1/-1}input:not([type=checkbox]):not([type=color]):not([type=file]),select,textarea{width:100%;min-height:42px;padding:9px 11px;border:1px solid #dfe6e3;border-radius:7px;outline:none;background:#fff;color:var(--ink);font-size:12px}textarea{resize:vertical}input:focus,select:focus,textarea:focus{border-color:#63aeda!important;box-shadow:0 0 0 3px #0789cb16}.color-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:15px}.color-grid label{display:flex;align-items:center;justify-content:space-between;gap:9px;color:#526276;font-size:11px;font-weight:700}.color-grid input{width:44px;height:35px;padding:3px;border:1px solid #dfe6e3;border-radius:6px;background:#fff}.upload-field input[type=file]{width:100%;padding:8px;border:1px dashed #cfdad8;border-radius:7px;background:#fbfcfa;color:#677587;font-size:10px}.image-current{display:block;margin-top:3px;color:#81909d;font-size:9px}.form-actions{display:flex;align-items:center;justify-content:flex-start;gap:12px;margin-top:18px}.dialog{width:min(650px,calc(100% - 26px));max-height:calc(100vh - 30px);padding:25px;border:0;border-radius:14px;background:var(--paper);color:var(--ink);box-shadow:0 25px 80px #07192e42;overflow:auto}.dialog::backdrop{background:#07192e80;backdrop-filter:blur(4px)}.dialog-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:19px}.dialog-head h2{margin:0;color:var(--navy);font-size:23px;font-weight:900}.icon-button{width:36px;height:36px;display:grid;place-items:center;border:1px solid #e4e7e3;border-radius:50%;background:white;color:var(--navy);font-size:23px}.check-label{display:flex!important;align-items:center;gap:9px!important}.check-label input{accent-color:var(--green);width:17px;height:17px}footer{padding:20px;text-align:center;border-top:1px solid var(--line);color:#82909a;font:700 9px 'Manrope',sans-serif;letter-spacing:.1em}footer span{color:var(--green);padding:0 5px}
@media(max-width:700px){main{padding:25px 15px 48px}.topbar{height:68px;padding:0 15px}.brand img{width:42px;height:42px}.brand strong{font-size:15px}.brand small{font-size:8px}.top-actions{gap:8px}.store-link{font-size:10px}.top-actions .button{min-height:36px;padding:0 10px;font-size:10px}.welcome{display:block;margin:5px 0 21px}.welcome h1{font-size:26px}.session-badge{width:max-content;max-width:100%;margin-top:13px;font-size:9px}.panel{padding:18px 13px}.section-head{align-items:flex-start;flex-direction:column;gap:13px}.section-head h2{font-size:21px}.section-head>.button{width:100%}.product-row{grid-template-columns:66px minmax(0,1fr);gap:11px;padding:10px}.product-thumb{width:66px;height:66px}.product-info h3{font-size:13px}.row-actions{grid-column:2;justify-content:flex-start}.small-button{min-height:31px}.form-grid{grid-template-columns:1fr;gap:12px}.form-grid .wide{grid-column:auto}.color-grid{grid-template-columns:1fr}.settings-form fieldset{padding:13px}.form-actions{align-items:stretch;flex-direction:column}.form-actions .button{width:100%}.login-card{padding:33px 23px}.tabs{width:100%}.tab{flex:1;padding-inline:12px}.dialog{padding:19px 15px}.dialog-head h2{font-size:20px}}

.image-preview{display:block;width:min(100%,560px);max-height:220px;margin-top:10px;object-fit:cover;border:1px solid #e4e9e2;border-radius:9px;background:#f0f3ed}.image-preview[hidden]{display:none}

.login-error{margin:12px 0 0;padding:9px 12px;border:1px solid #f2d3cd;border-radius:7px;background:#fff3f1;color:#ad4030;font-size:11px;font-weight:700;line-height:1.7}
