/* MyClients v2 — UI, აწყობილია ფოტოს მიხედვით */

:root{
    --bg:#f4f5fa;
    --card:#ffffff;
    --border:#ecedf5;
    --line:#f2f3f8;
    --text:#20222e;
    --muted:#8a8fa6;
    --primary:#6c5ce7;
    --primary-dark:#5b4bd6;
    --primary-light:#efedfd;
    --green:#16a34a;   --green-bg:#e7f7ee;
    --red:#e5484d;     --red-bg:#fdecec;
    --orange:#f59e0b;  --orange-bg:#fdf1e0;
    --blue:#3b82f6;    --blue-bg:#e8f1fe;
    --teal:#14b8a6;    --teal-bg:#e2f7f4;
    --radius:16px;
    --topbar-h:66px;
    --shadow:0 1px 2px rgba(23,25,35,.04), 0 10px 28px -14px rgba(23,25,35,.10);
}
*{box-sizing:border-box}
html{font-size:15px}
body{
    margin:0;
    font-family:'Noto Sans Georgian',system-ui,-apple-system,sans-serif;
    background:var(--bg);
    color:var(--text);
    -webkit-font-smoothing:antialiased;
}
a{color:var(--primary);text-decoration:none}
h1,h2,h3{margin:0}

/* ================= ზედა ჰედერი ================= */
.topbar{
    position:sticky;top:0;z-index:50;
    height:var(--topbar-h);
    background:#fff;border-bottom:1px solid var(--border);
    display:flex;align-items:center;gap:18px;
    padding:0 22px;
}
.burger{
    width:40px;height:40px;border-radius:11px;border:0;background:transparent;
    display:grid;place-items:center;color:#454a5e;cursor:pointer;flex-shrink:0;
}
.burger:hover{background:#f3f3f9}
.burger svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}

.topbar .logo{display:flex;align-items:center;gap:11px;color:var(--text);flex-shrink:0}
.topbar .logo b{font-size:18px;font-weight:800;letter-spacing:-.2px}
.logo-ic{
    width:38px;height:38px;border-radius:12px;flex-shrink:0;
    background:linear-gradient(135deg,#8474f4,#6c5ce7);
    display:grid;place-items:center;box-shadow:0 6px 14px -6px rgba(108,92,231,.55);
}
.logo-ic svg{width:20px;height:20px}
.logo-img{height:38px;max-width:190px;object-fit:contain;display:block}

.gsearch{
    flex:1;max-width:460px;margin:0 auto;
    display:flex;align-items:center;gap:10px;
    background:#f4f5fa;border:1px solid transparent;border-radius:13px;
    padding:0 14px;height:44px;
    transition:border-color .12s,background .12s,box-shadow .12s;
}
.gsearch:focus-within{background:#fff;border-color:var(--primary);box-shadow:0 0 0 3px rgba(108,92,231,.12)}
.gsearch svg{width:18px;height:18px;flex-shrink:0;fill:none;stroke:#8a8fa6;stroke-width:1.8;stroke-linecap:round}
.gsearch input{flex:1;border:0;background:transparent;outline:none;font:inherit;font-size:13.5px;color:var(--text);min-width:0}
.gsearch input::placeholder{color:#9aa0b4}
.kbd{
    background:#fff;border:1px solid var(--border);border-radius:7px;
    padding:2px 8px;font-size:11px;font-weight:600;color:#8a8fa6;white-space:nowrap;
}

.top-right{display:flex;align-items:center;gap:14px;margin-left:auto;flex-shrink:0}

.bell{
    position:relative;width:44px;height:44px;border-radius:13px;
    background:#fff;border:1px solid var(--border);cursor:pointer;
    display:grid;place-items:center;color:#454a5e;
}
.bell:hover{background:#f8f8fc}
.bell svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.bell .badge{
    position:absolute;top:-6px;right:-6px;min-width:19px;height:19px;padding:0 5px;
    background:var(--primary);color:#fff;border-radius:99px;border:2px solid #fff;
    font-size:10.5px;font-weight:700;display:grid;place-items:center;
}

.uchip{
    display:flex;align-items:center;gap:11px;cursor:pointer;
    background:transparent;border:0;padding:5px 6px;border-radius:13px;font:inherit;
}
.uchip:hover{background:#f6f6fb}
.uchip-info{text-align:left;min-width:0}
.uchip-info b{display:block;font-size:13.5px;font-weight:700;white-space:nowrap}
.uchip-info small{display:block;color:var(--muted);font-size:11.5px}
.uchip .chev{width:16px;height:16px;fill:none;stroke:#8a8fa6;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

/* დროფდაუნები */
.dropwrap{position:relative}
.drop{
    position:absolute;top:calc(100% + 10px);left:0;z-index:70;
    background:#fff;border:1px solid var(--border);border-radius:15px;
    box-shadow:0 22px 46px -16px rgba(20,22,40,.25);
    width:320px;max-width:calc(100vw - 30px);padding:8px;display:none;
}
.drop.right{left:auto;right:0}
.drop.open{display:block}
.drop-h{font-size:13px;font-weight:800;padding:9px 12px 7px}
.drop-empty{padding:18px 12px;color:var(--muted);font-size:13.5px;text-align:center}
.d-item{
    display:flex;align-items:center;gap:11px;
    padding:10px 12px;border-radius:11px;color:var(--text);
}
.d-item:hover{background:#f6f6fb}
.d-item>svg{width:18px;height:18px;flex-shrink:0;fill:none;stroke:#5d6274;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.d-item.danger>svg{stroke:var(--red)}
.d-item.danger:hover{background:var(--red-bg)}
.d-main{min-width:0;flex:1}
.d-main b{display:block;font-size:13.5px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.d-main small{display:block;color:var(--muted);font-size:12px;margin-top:1px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.d-dot{width:8px;height:8px;border-radius:50%;flex-shrink:0}
.d-dot.orange{background:var(--orange)}
.d-dot.red{background:var(--red)}
.drop-f{display:block;text-align:center;padding:10px;font-size:13px;font-weight:600;border-top:1px solid var(--line);margin-top:6px}

/* ================= განლაგება ================= */
.app{display:flex;min-height:calc(100vh - var(--topbar-h))}

.sidebar{
    width:248px;flex-shrink:0;
    background:#fff;border-right:1px solid var(--border);
    padding:16px 14px;display:flex;flex-direction:column;gap:10px;
    position:sticky;top:var(--topbar-h);height:calc(100vh - var(--topbar-h));overflow-y:auto;
}
.nav{display:flex;flex-direction:column;gap:3px;flex:1}
.nav a{
    display:flex;align-items:center;gap:12px;
    padding:11px 14px;border-radius:12px;
    color:#5d6274;font-weight:500;font-size:14px;
    transition:background .15s,color .15s;
}
.nav a:hover{background:#f6f6fb;color:var(--text)}
.nav a.active{background:var(--primary-light);color:var(--primary);font-weight:600}
.nav svg{width:20px;height:20px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}

.side-widget{
    border:1px solid var(--border);border-radius:15px;padding:15px 15px 10px;
    background:linear-gradient(180deg,#fbfbff, #f7f6ff);
}
.side-widget small{display:block;color:var(--muted);font-size:12px;font-weight:500}
.side-widget b{display:block;font-size:20px;font-weight:800;letter-spacing:-.4px;margin-top:3px}
.side-widget .up{color:var(--green);font-size:12px;font-weight:600}
.side-widget .down{color:var(--red);font-size:12px;font-weight:600}
.spark-box{height:52px;margin-top:8px}

.main{flex:1;min-width:0;padding:26px 30px 48px}

.page-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;flex-wrap:wrap;margin-bottom:22px}
.page-head h1{font-size:23px;font-weight:800;letter-spacing:-.2px}
.page-head .sub{color:var(--muted);font-size:14px;margin-top:5px}
.head-actions{display:flex;align-items:center;gap:12px}

/* ================= ღილაკები ================= */
.btn{
    display:inline-flex;align-items:center;gap:8px;justify-content:center;
    background:var(--primary);color:#fff;border:0;cursor:pointer;
    padding:12px 20px;border-radius:12px;
    font:inherit;font-size:14px;font-weight:600;
    box-shadow:0 8px 18px -8px rgba(108,92,231,.6);
    transition:background .15s,transform .1s;
}
.btn:hover{background:var(--primary-dark)}
.btn:active{transform:translateY(1px)}
.btn-light{
    display:inline-flex;align-items:center;gap:7px;justify-content:center;
    background:#fff;color:#454a5e;border:1px solid var(--border);cursor:pointer;
    padding:11px 16px;border-radius:12px;font:inherit;font-size:13.5px;font-weight:600;
}
.btn-light:hover{background:#f6f6fb}
.link-btn{
    display:inline-block;background:var(--primary-light);color:var(--primary);
    padding:7px 14px;border-radius:10px;font-size:12.5px;font-weight:600;white-space:nowrap;border:0;cursor:pointer;font-family:inherit;
}
.link-btn:hover{background:#e5e1fb}
.icon-btn{
    display:inline-grid;place-items:center;width:34px;height:34px;border-radius:10px;
    background:transparent;border:0;cursor:pointer;color:var(--muted);
}
.icon-btn:hover{background:#f3f3f9;color:var(--text)}
.icon-btn.danger:hover{background:var(--red-bg);color:var(--red)}
.icon-btn svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

/* ================= სტატისტიკა ================= */
.stats{display:grid;grid-template-columns:repeat(5,1fr);gap:16px;margin-bottom:18px}
.stat{
    background:var(--card);border:1px solid var(--border);border-radius:var(--radius);
    box-shadow:var(--shadow);padding:20px 18px;
    display:flex;align-items:center;gap:15px;min-width:0;
}
.stat-ic{width:54px;height:54px;border-radius:50%;flex-shrink:0;display:grid;place-items:center}
.stat-ic svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.stat-ic.purple{background:#efeafd;color:#7c5cff}
.stat-ic.blue{background:var(--blue-bg);color:var(--blue)}
.stat-ic.green{background:var(--green-bg);color:var(--green)}
.stat-ic.orange{background:var(--orange-bg);color:var(--orange)}
.stat-ic.grad{background:linear-gradient(135deg,#efeafd,#fbeafd);color:#a044ce}
.stat-info{min-width:0}
.stat-label{color:var(--muted);font-size:12.5px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.stat-value{font-size:24px;font-weight:800;letter-spacing:-.4px;line-height:1.25;white-space:nowrap}
.stat-sub{font-size:12px;font-weight:600;color:var(--muted);margin-top:1px}
.stat-sub.up{color:var(--green)}
.stat-sub.warn{color:var(--orange)}

/* ================= ბარათები ================= */
.card{
    background:var(--card);border:1px solid var(--border);border-radius:var(--radius);
    box-shadow:var(--shadow);display:flex;flex-direction:column;min-width:0;
}
.card-h{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:18px 20px 6px}
.card-title{font-size:15px;font-weight:700}
.card-body{padding:6px 20px 14px;flex:1}
.card-f{border-top:1px solid var(--line);padding:12px;text-align:center}
.card-f a{font-size:13px;font-weight:600}

.grid-3{display:grid;grid-template-columns:1.12fr 1fr 1fr;gap:16px;margin-bottom:18px}
.grid-2{display:grid;grid-template-columns:1.45fr 1fr;gap:16px}

.row{display:flex;align-items:center;gap:12px;padding:11px 0;border-bottom:1px solid var(--line)}
.row:last-child{border-bottom:0}
.row-main{flex:1;min-width:0}
.row-title{font-size:14px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.row-sub{color:var(--muted);font-size:12.5px;margin-top:1px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.row-end{text-align:right;flex-shrink:0}
.row-end .amount{font-size:14px;font-weight:700}
.row-end .date{font-size:12px;color:var(--muted);font-weight:500}
.row-end .date.overdue,.row-end .amount.overdue{color:var(--red)}

.avatar{
    width:38px;height:38px;border-radius:12px;flex-shrink:0;
    display:grid;place-items:center;color:#fff;font-size:15px;font-weight:700;
}
.avatar.round{border-radius:50%}
.avatar.sm{width:34px;height:34px;font-size:13px;border-radius:10px}
.avatar.sm.round{border-radius:50%}
.avatar.lg{width:74px;height:74px;font-size:27px;border-radius:50%}
img.avatar-img{object-fit:cover;display:block}

.dots{letter-spacing:2.5px;font-weight:800;color:#3a3e50;font-size:13px}
.mini-act{display:flex;gap:6px;flex-shrink:0}

/* ================= შეხსენებები ================= */
.rem-title{font-size:16px;font-weight:800;margin:22px 0 13px}
.rem-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.rem-card{
    background:#fff;border:1px solid var(--border);border-radius:15px;box-shadow:var(--shadow);
    padding:16px;display:flex;flex-direction:column;gap:10px;
}
.rem-top{display:flex;align-items:center;gap:11px}
.rem-ic{width:40px;height:40px;border-radius:12px;flex-shrink:0;display:grid;place-items:center}
.rem-ic svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.rem-ic.red{background:var(--red-bg);color:var(--red)}
.rem-ic.blue{background:var(--blue-bg);color:var(--blue)}
.rem-ic.green{background:var(--green-bg);color:var(--green)}
.rem-ic.orange{background:var(--orange-bg);color:var(--orange)}
.rem-card b{font-size:13.5px;font-weight:700;display:block}
.rem-card small{display:block;color:var(--muted);font-size:12px;margin-top:1px}
.rem-card .link-btn{align-self:flex-start}

/* ================= ცხრილები ================= */
.table-card{padding:0;overflow:hidden}
.table-wrap{overflow-x:auto}
table.tbl{width:100%;border-collapse:collapse;min-width:640px}
.tbl th{
    text-align:left;padding:13px 18px;font-size:12px;font-weight:600;color:var(--muted);
    border-bottom:1px solid var(--border);background:#fbfbfe;white-space:nowrap;
}
.tbl td{padding:13px 18px;font-size:14px;border-bottom:1px solid var(--line);vertical-align:middle}
.tbl tr:last-child td{border-bottom:0}
.tbl tbody tr:hover{background:#fafafe}
.tbl .t-actions{text-align:right;white-space:nowrap}
.tbl .strong{font-weight:600}
.tbl small{display:block;color:var(--muted);font-size:12px;margin-top:1px}
.cell-name{display:flex;align-items:center;gap:11px;min-width:0}

.pill{display:inline-block;padding:4px 11px;border-radius:99px;font-size:12px;font-weight:600;white-space:nowrap}
.pill.green{background:var(--green-bg);color:var(--green)}
.pill.red{background:var(--red-bg);color:var(--red)}
.pill.orange{background:var(--orange-bg);color:#d97706}
.pill.blue{background:var(--blue-bg);color:var(--blue)}
.pill.purple{background:var(--primary-light);color:var(--primary)}
.pill.gray{background:#f0f1f6;color:#6b7086}

.empty{padding:36px 20px;text-align:center;color:var(--muted);font-size:14px}
.empty b{display:block;color:var(--text);font-size:15px;margin-bottom:4px}

/* ================= ფორმები / მოდალი ================= */
.modal{
    position:fixed;inset:0;z-index:80;display:none;place-items:center;
    background:rgba(22,24,36,.5);padding:20px;backdrop-filter:blur(2px);
}
.modal.open{display:grid}
.modal-card{
    background:#fff;border-radius:18px;width:100%;max-width:540px;
    max-height:92vh;overflow-y:auto;padding:24px;
    box-shadow:0 30px 60px -20px rgba(20,22,40,.35);
}
.modal-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}
.modal-title{font-size:17px;font-weight:800}
.modal-x{width:34px;height:34px;border-radius:10px;border:0;background:#f3f3f9;cursor:pointer;font-size:16px;color:#5d6274}
.modal-x:hover{background:#e9e9f2}

.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px}
.field.full{grid-column:1/-1}
.field label{display:block;font-size:12.5px;font-weight:600;color:#4a4f63;margin-bottom:6px}
.field input,.field select,.field textarea{
    width:100%;padding:10px 13px;border:1.5px solid #e3e5ef;border-radius:11px;
    font:inherit;font-size:14px;background:#fbfbfe;color:var(--text);outline:none;
    transition:border-color .12s,box-shadow .12s;
}
.field textarea{resize:vertical;min-height:70px}
.field input:focus,.field select:focus,.field textarea:focus{
    border-color:var(--primary);background:#fff;box-shadow:0 0 0 3px rgba(108,92,231,.13);
}
.field input[type=checkbox]{width:auto}
.form-foot{display:flex;justify-content:flex-end;gap:10px;margin-top:18px}

/* ================= ჩარტები ================= */
.chart-box{position:relative;height:265px}
.chart-head-val{font-size:23px;font-weight:800;letter-spacing:-.4px}
.chart-head-val .delta{font-size:13px;font-weight:600;color:var(--green);margin-left:8px}
.chart-head-val .delta.down{color:var(--red)}

.donut-wrap{position:relative;height:215px;display:grid;place-items:center;margin:6px 0 10px}
.donut-center{position:absolute;inset:0;display:grid;place-items:center;pointer-events:none}
.donut-center>div{text-align:center}
.donut-center b{display:block;font-size:22px;font-weight:800;letter-spacing:-.4px}
.donut-center small{color:var(--muted);font-size:12.5px}

.legend{display:flex;flex-direction:column;gap:9px;padding-bottom:6px}
.legend-row{display:flex;align-items:center;gap:9px;font-size:13.5px}
.legend-dot{width:9px;height:9px;border-radius:50%;flex-shrink:0}
.legend-row .l-name{flex:1;color:#454a5e}
.legend-row .l-val{font-weight:700}
.legend-row .l-pct{color:var(--muted);font-size:12.5px;width:44px;text-align:right}

/* ================= flash / toast ================= */
.flash{
    padding:13px 17px;border-radius:12px;margin-bottom:16px;font-size:14px;font-weight:500;
    background:var(--green-bg);color:#0e7a38;border:1px solid #cdeeda;word-break:break-word;
}
.flash.error{background:var(--red-bg);color:#c2363b;border-color:#f6d2d3}
.flash.raw{background:#f0f4ff;color:#2b3a67;border-color:#d9e2fb}
.flash a{font-weight:700}

.toast{
    position:fixed;left:50%;bottom:26px;transform:translateX(-50%) translateY(16px);
    background:#22242f;color:#fff;padding:11px 20px;border-radius:99px;
    font-size:13.5px;font-weight:600;opacity:0;pointer-events:none;z-index:99;
    transition:opacity .2s,transform .2s;
}
.toast.show{opacity:1;transform:translateX(-50%) translateY(0)}

/* ================= ავტორიზაცია (ფოტოს დიზაინი) ================= */
.auth2{
    min-height:100vh;background:#fff;
    display:flex;flex-direction:column;align-items:center;
    padding:34px 22px 0;position:relative;overflow:hidden;
}
.auth2-in{width:100%;max-width:396px;position:relative;z-index:2}
.auth2 .auth-logo{justify-content:center}
.auth2 h1{font-size:21px;font-weight:800;text-align:center;letter-spacing:-.2px;margin-top:6px}
.auth2 .hint{color:var(--muted);font-size:13.5px;text-align:center;margin:6px 0 22px}
.auth2 .field{margin-bottom:14px;position:relative}
.auth2 .field input{padding-left:42px;height:48px;background:#fbfbfe}
.f-ic{
    position:absolute;left:14px;bottom:13px;width:18px;height:18px;
    fill:none;stroke:#9aa0b4;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;pointer-events:none;
}
.auth-row{display:flex;justify-content:space-between;align-items:center;margin:2px 0 16px;font-size:13px}
.check{display:flex;align-items:center;gap:8px;color:#4a4f63;font-weight:500;cursor:pointer}
.check input{width:16px;height:16px;accent-color:var(--primary)}
.auth2 .btn{width:100%;height:48px;font-size:14.5px}
.divider{
    display:flex;align-items:center;gap:12px;color:var(--muted);font-size:12.5px;margin:18px 0;
}
.divider::before,.divider::after{content:"";flex:1;height:1px;background:var(--line)}
.g-btn{
    width:100%;height:48px;display:flex;align-items:center;justify-content:center;gap:11px;
    background:#fff;border:1px solid #e3e5ef;border-radius:12px;cursor:pointer;
    font:inherit;font-size:14px;font-weight:600;color:#3a3e50;
}
.g-btn:hover{background:#f8f8fc}
.g-btn svg{width:19px;height:19px}
.auth-alt{text-align:center;font-size:13.5px;color:var(--muted);margin:20px 0 10px}
.auth-art{margin-top:auto;width:min(430px,90%);position:relative;z-index:1;pointer-events:none}
.auth-art svg{display:block;width:100%}

/* ინსტალატორი (ძველი სტილი შენარჩუნებულია) */
.auth{min-height:100vh;display:grid;place-items:center;background:var(--bg);padding:20px}
.auth-card{
    background:#fff;border:1px solid var(--border);border-radius:20px;
    box-shadow:var(--shadow);width:100%;max-width:400px;padding:32px 30px;
}
.auth-card.wide{max-width:560px}
.auth-logo{display:flex;align-items:center;gap:13px;margin-bottom:22px}
.auth-logo .logo-ic{width:46px;height:46px}
.auth-logo b{font-size:19px;font-weight:800;display:block}
.auth-logo small{color:var(--muted);font-size:12px}
.auth h2{font-size:18px;font-weight:800;margin-bottom:4px}
.auth .hint{color:var(--muted);font-size:13.5px;margin:0 0 18px}
.auth .field{margin-bottom:13px}
.auth .btn{width:100%;justify-content:center;margin-top:6px}

.req-list{list-style:none;margin:0 0 18px;padding:0}
.req-list li{
    display:flex;justify-content:space-between;align-items:center;gap:10px;
    padding:11px 2px;border-bottom:1px solid var(--line);font-size:14px;
}
.req-list li:last-child{border-bottom:0}
.ok-mark{color:var(--green);font-weight:800}
.no-mark{color:var(--red);font-weight:800}
.steps{display:flex;gap:8px;margin-bottom:20px}
.step-dot{flex:1;height:5px;border-radius:99px;background:#e7e8f1}
.step-dot.on{background:var(--primary)}

/* ================= ფილტრები ================= */
.filters{display:flex;gap:8px;margin-bottom:16px;flex-wrap:wrap}
.filters a{
    padding:8px 15px;border-radius:99px;background:#fff;border:1px solid var(--border);
    color:#5d6274;font-size:13px;font-weight:600;
}
.filters a.on{background:var(--primary);border-color:var(--primary);color:#fff}

/* ================= პროფილი / ადმინი ================= */
.profile-row{display:flex;align-items:center;gap:18px;margin-bottom:16px}
.upload-note{color:var(--muted);font-size:12.5px;margin-top:6px}
.sec-title{font-size:13px;font-weight:700;color:#4a4f63;margin:6px 0 10px;text-transform:uppercase;letter-spacing:.4px}

/* ================= რესპონსივი ================= */
@media (max-width:1420px){
    .stats{grid-template-columns:repeat(3,1fr)}
}
@media (max-width:1180px){
    .grid-3{grid-template-columns:1fr 1fr}
    .grid-2{grid-template-columns:1fr}
    .rem-grid{grid-template-columns:1fr 1fr}
}
@media (max-width:960px){
    .gsearch{display:none}
    .uchip-info{display:none}
}
@media (max-width:860px){
    .sidebar{
        position:fixed;left:0;top:var(--topbar-h);bottom:0;z-index:60;
        transform:translateX(-105%);transition:transform .2s ease;
        box-shadow:0 20px 50px rgba(20,22,40,.2);height:auto;
    }
    body.side-open .sidebar{transform:translateX(0)}
    .main{padding:20px 16px 40px}
    .stats{grid-template-columns:1fr 1fr}
    .grid-3{grid-template-columns:1fr}
    .rem-grid{grid-template-columns:1fr}
    .form-grid{grid-template-columns:1fr}
    .topbar{padding:0 14px;gap:10px}
}
@media (max-width:520px){
    .stats{grid-template-columns:1fr}
    .topbar .logo b{display:none}
}
