:root{color-scheme:dark;--bg: #0b0f17;--bg-elevated: #121826;--bg-card: #171f30;--bg-hover: #1e293b;--border: #263248;--text: #f1f5f9;--text-muted: #94a3b8;--amber: #f59e0b;--amber-hover: #d97706;--amber-soft: rgba(245, 158, 11, .14);--green: #10b981;--green-soft: rgba(16, 185, 129, .14);--red: #ef4444;--red-soft: rgba(239, 68, 68, .14);--blue: #38bdf8;--radius: 12px}*{box-sizing:border-box}body{margin:0;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;background:var(--bg);color:var(--text);line-height:1.5}button,input,select,textarea{font:inherit;color:inherit}.layout{display:grid;grid-template-columns:280px 1fr;min-height:100vh}@media(max-width:900px){.layout{grid-template-columns:1fr}}.sidebar{background:var(--bg-elevated);border-right:1px solid var(--border);padding:20px;display:flex;flex-direction:column;gap:18px}.brand{display:flex;align-items:center;gap:10px;font-weight:700;font-size:1.05rem;color:var(--amber)}.shop-list{display:flex;flex-direction:column;gap:8px}.shop-item{width:100%;text-align:left;padding:10px 12px;border-radius:10px;border:1px solid transparent;background:transparent;cursor:pointer;transition:background .15s,border-color .15s}.shop-item:hover{background:var(--bg-hover)}.shop-item.active{background:var(--amber-soft);border-color:#f59e0b73}.shop-item-title{font-weight:600;font-size:.95rem}.shop-item-sub{font-size:.78rem;color:var(--text-muted)}.main{padding:24px 28px;max-width:1200px;width:100%}.topbar{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:20px}.title{margin:0;font-size:1.55rem;font-weight:700}.subtitle{margin:4px 0 0;color:var(--text-muted);font-size:.9rem}.tabs{display:flex;flex-wrap:wrap;gap:8px;border-bottom:1px solid var(--border);padding-bottom:12px;margin-bottom:22px}.tab-btn{display:inline-flex;align-items:center;gap:8px;padding:9px 14px;border-radius:9px;border:1px solid var(--border);background:var(--bg-elevated);cursor:pointer;font-size:.9rem;font-weight:500}.tab-btn.active{background:var(--amber);color:#111827;border-color:var(--amber);font-weight:600}.card{background:var(--bg-card);border:1px solid var(--border);border-radius:var(--radius);padding:18px}.stack{display:flex;flex-direction:column;gap:16px}.row{display:flex;flex-wrap:wrap;gap:12px;align-items:center}.row-between{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px}.grid-2{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:16px}.grid-4{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:14px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:9px 14px;border-radius:9px;border:1px solid var(--border);background:var(--bg-hover);cursor:pointer;font-size:.88rem;font-weight:500;text-decoration:none}.btn:hover:not(:disabled){filter:brightness(1.1)}.btn:disabled{opacity:.5;cursor:not-allowed}.btn-primary{background:var(--amber);color:#111827;border-color:var(--amber);font-weight:600}.btn-danger{background:var(--red-soft);color:#fca5a5;border-color:#ef444459}.btn-ghost{background:transparent}.field{display:flex;flex-direction:column;gap:6px;flex:1;min-width:180px}.field label{font-size:.82rem;color:var(--text-muted);font-weight:500}.input,.select,.textarea{width:100%;padding:9px 12px;border-radius:8px;border:1px solid var(--border);background:#0d131f;color:var(--text);font-size:.92rem}.input:focus,.select:focus,.textarea:focus{outline:2px solid rgba(245,158,11,.45);border-color:var(--amber)}.badge{display:inline-flex;align-items:center;gap:5px;padding:3px 9px;border-radius:999px;font-size:.76rem;font-weight:600}.badge-green{background:var(--green-soft);color:#6ee7b7}.badge-amber{background:var(--amber-soft);color:#fcd34d}.badge-red{background:var(--red-soft);color:#fca5a5}.badge-muted{background:#94a3b824;color:var(--text-muted)}.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse;font-size:.88rem}th,td{text-align:left;padding:10px 12px;border-bottom:1px solid var(--border)}th{color:var(--text-muted);font-weight:600;font-size:.8rem;text-transform:uppercase;letter-spacing:.03em}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#020617c7;display:flex;align-items:center;justify-content:center;padding:16px;z-index:50}.modal{background:var(--bg-card);border:1px solid var(--border);border-radius:16px;width:100%;max-width:660px;max-height:90vh;overflow-y:auto;padding:22px}.alert-error{background:var(--red-soft);border:1px solid rgba(239,68,68,.4);color:#fecaca;padding:10px 14px;border-radius:10px;font-size:.88rem}.alert-info{background:#38bdf81f;border:1px solid rgba(56,189,248,.35);color:#bae6fd;padding:10px 14px;border-radius:10px;font-size:.88rem}.wa-phone{max-width:440px;border-radius:18px;overflow:hidden;border:1px solid var(--border);background:#0b141a}.wa-header{background:#202c33;padding:12px 16px;display:flex;align-items:center;justify-content:space-between}.wa-chat{padding:14px;min-height:360px;max-height:460px;overflow-y:auto;display:flex;flex-direction:column;gap:10px;background:radial-gradient(circle at top right,#111b21,#0b141a)}.wa-bubble{max-width:88%;padding:9px 12px;border-radius:10px;font-size:.88rem;white-space:pre-wrap}.wa-bubble-in{align-self:flex-start;background:#202c33}.wa-bubble-out{align-self:flex-end;background:#005c4b}.wa-actions{display:flex;flex-direction:column;gap:6px;margin-top:8px}.wa-action-btn{width:100%;text-align:left;padding:8px 10px;border-radius:8px;border:1px solid rgba(56,189,248,.35);background:#0f172a8c;color:#7dd3fc;cursor:pointer;font-size:.84rem}.wa-action-btn:hover{background:#38bdf824}
