/* ============================================================
   Counter Advanced Style - v5 (Clean Rewrite)
   Location: Counter/Conf/counter.css
   Fonts:    ../Fonts/Lalezar-ExtraBold.woff2
             ../Fonts/Shabnam-Bold-P.woff2
   ============================================================ */

/* ============================================================
   1) FONTS
   ============================================================ */
@font-face{
    font-family:'COUN_Lalezar';
    src:url('../Fonts/Lalezar-ExtraBold.woff2') format('woff2');
    font-weight:normal;
    font-style:normal;
    font-display:swap;
}
@font-face{
    font-family:'COUN_Shabnam';
    src:url('../Fonts/Shabnam-Bold-P.woff2') format('woff2');
    font-weight:normal;
    font-style:normal;
    font-display:swap;
}

/* ============================================================
   2) RESET & BASE
   ============================================================ */
*,
*::before,
*::after{box-sizing:border-box}

body.coun-dash-body,
body.coun-login-body,
body.coun-test-body{
    background:#0f172a;
    margin:0;
    padding:0;
    direction:rtl;
    font-family:'COUN_Shabnam',Tahoma,sans-serif;
    color:#e2e8f0;
    line-height:1.5;
}

[class^="icon-"],
[class*=" icon-"]{
    vertical-align:middle;
    display:inline-block;
    line-height:1;
}

/* ============================================================
   3) TITLES
   ============================================================ */
.coun-wrapper h1,
.coun-dash-head h1,
.coun-panel-title,
.coun-drawer-title,
.coun-card-value,
.coun-login h2,
.coun-test-head h1,
.coun-modal-title,
.coun-search-results-head,
.coun-chart-title,
.coun-chart-stat-val,
.coun-os-count,
.coun-d-card .val{
    font-family:'COUN_Lalezar','COUN_Shabnam',Tahoma,sans-serif;
    font-weight:normal;
    letter-spacing:.5px;
}

/* ============================================================
   4) WRAPPER
   ============================================================ */
.coun-wrapper{
    max-width:1200px;
    margin:20px auto;
    padding:0 12px;
}

/* ============================================================
   5) CARDS (KPI)
   ============================================================ */
.coun-cards{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(210px,1fr));
    gap:14px;
    margin-bottom:20px;
}
.coun-card{
    position:relative;
    background:linear-gradient(135deg,#1e293b 0%,#0f172a 100%);
    border:1px solid #334155;
    border-radius:16px;
    padding:18px;
    overflow:hidden;
    transition:.3s;
    box-shadow:0 4px 20px rgba(0,0,0,.3);
}
.coun-card:hover{
    transform:translateY(-4px);
    border-color:#38bdf8;
    box-shadow:0 8px 30px rgba(56,189,248,.25);
}
.coun-card::before{
    content:"";
    position:absolute;
    top:0;right:0;
    width:80px;height:80px;
    background:radial-gradient(circle,rgba(56,189,248,.25),transparent 70%);
    border-radius:50%;
    pointer-events:none;
}
.coun-card-icon{font-size:26px;margin-bottom:6px;display:block}
.coun-card-icon i{font-size:26px}
.coun-card-title{font-size:12px;color:#94a3b8;margin-bottom:6px}
.coun-card-value{font-size:28px;color:#f1f5f9;line-height:1.2}
.coun-card-sub{font-size:11px;color:#64748b;margin-top:4px}
.coun-card-sub.jdate{color:#38bdf8}

.coun-card.blue{border-color:#0ea5e9}
.coun-card.blue .coun-card-value,
.coun-card.blue .coun-card-icon i{color:#38bdf8}

.coun-card.green{border-color:#22c55e}
.coun-card.green .coun-card-value,
.coun-card.green .coun-card-icon i{color:#4ade80}

.coun-card.purple{border-color:#a855f7}
.coun-card.purple .coun-card-value,
.coun-card.purple .coun-card-icon i{color:#c084fc}

.coun-card.orange{border-color:#f97316}
.coun-card.orange .coun-card-value,
.coun-card.orange .coun-card-icon i{color:#fb923c}

.coun-card.cyan{border-color:#06b6d4}
.coun-card.cyan .coun-card-value,
.coun-card.cyan .coun-card-icon i{color:#22d3ee}

/* ============================================================
   6) PROGRESS BAR
   ============================================================ */
.coun-progress{
    height:10px;
    background:#0f172a;
    border-radius:10px;
    overflow:hidden;
    margin-top:12px;
}
.coun-progress-bar{
    height:100%;
    background:linear-gradient(90deg,#38bdf8,#a855f7);
    border-radius:10px;
    transition:width .8s ease;
    box-shadow:0 0 12px rgba(168,85,247,.5);
}
.coun-progress-text{
    font-size:12px;
    color:#94a3b8;
    margin-top:8px;
    display:flex;
    justify-content:space-between;
    flex-wrap:wrap;
    gap:8px;
}
.coun-progress-text .c1{color:#38bdf8}
.coun-progress-text .c2{color:#94a3b8}
.coun-progress-text .c3{color:#a855f7}
.coun-progress-text i{color:#64748b;margin-left:4px}

/* ============================================================
   7) PANELS
   ============================================================ */
.coun-panel{
    background:#1e293b;
    border:1px solid #334155;
    border-radius:16px;
    padding:18px;
    margin-bottom:20px;
    box-shadow:0 4px 20px rgba(0,0,0,.3);
}
.coun-panel-title{
    font-size:17px;
    color:#e2e8f0;
    margin-bottom:16px;
    display:flex;
    align-items:center;
    gap:10px;
}
.coun-panel-title i{color:#38bdf8;font-size:18px}
.coun-panel-title::before{
    content:"";
    width:4px;
    height:20px;
    background:linear-gradient(180deg,#38bdf8,#a855f7);
    border-radius:4px;
}

/* ============================================================
   8) TRIPLE CHARTS ROW
   ============================================================ */
.coun-charts-row{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:16px;
    margin-bottom:20px;
}
@media(max-width:1000px){
    .coun-charts-row{grid-template-columns:1fr 1fr}
    .coun-charts-row .coun-chart-card:last-child{grid-column:1 / -1}
}
@media(max-width:700px){
    .coun-charts-row{grid-template-columns:1fr}
    .coun-charts-row .coun-chart-card:last-child{grid-column:auto}
}

.coun-chart-card{
    background:linear-gradient(180deg,#1e293b 0%,#0f172a 100%);
    border:1px solid #334155;
    border-radius:16px;
    padding:16px;
    box-shadow:0 4px 20px rgba(0,0,0,.3);
    display:flex;
    flex-direction:column;
    transition:.3s;
    overflow:hidden;
    position:relative;
}
.coun-chart-card:hover{
    transform:translateY(-4px);
    border-color:#a855f7;
    box-shadow:0 10px 30px rgba(168,85,247,.25);
}

/* ---- Chart Head ---- */
.coun-chart-head{
    display:flex;
    align-items:center;
    gap:10px;
    margin-bottom:12px;
    padding-bottom:10px;
    border-bottom:1px solid #334155;
}
.coun-chart-icon{
    width:38px;
    height:38px;
    border-radius:10px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:18px;
    flex-shrink:0;
}
.coun-chart-icon.blue{
    background:rgba(56,189,248,.15);
    color:#38bdf8;
    border:1px solid rgba(56,189,248,.35);
}
.coun-chart-icon.purple{
    background:rgba(168,85,247,.15);
    color:#c084fc;
    border:1px solid rgba(168,85,247,.35);
}
.coun-chart-icon.green{
    background:rgba(34,197,94,.15);
    color:#4ade80;
    border:1px solid rgba(34,197,94,.35);
}
.coun-chart-title{
    font-size:15px;
    color:#e2e8f0;
}
.coun-chart-sub{
    font-size:11px;
    color:#64748b;
    margin-top:2px;
}

/* ---- Chart Body ---- */
.coun-chart-body{
    flex:1;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:6px 0;
    min-height:220px;
    position:relative;
}

/* ---- Line chart ---- */
.coun-svg-line{
    width:100%;
    height:180px;
    display:block;
    overflow:visible;
}
.coun-svg-line circle{
    transition:.2s;
    cursor:pointer;
}
.coun-svg-line circle:hover{
    r:5;
    fill:#38bdf8;
}

/* ---- Month bars (Jalali) ---- */
.coun-month-bars{
    display:flex;
    align-items:flex-end;
    gap:3px;
    height:230px;
    width:100%;
    padding:10px 0 0;
}
.coun-month-col{
    flex:1;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:flex-end;
    height:100%;
    gap:4px;
    position:relative;
    cursor:pointer;
    min-width:0;
}
.coun-month-bar{
    width:100%;
    border-radius:4px 4px 0 0;
    transition:height .7s cubic-bezier(.16,1,.3,1), filter .2s;
    min-height:4px;
}
.coun-month-col:hover .coun-month-bar{
    filter:brightness(1.4);
    transform:scaleY(1.03);
}
.coun-month-val{
    font-size:10px;
    color:#cbd5e1;
    font-weight:bold;
    opacity:.75;
    transition:.2s;
    font-family:monospace;
}
.coun-month-col:hover .coun-month-val{
    opacity:1;
    color:#fff;
}
.coun-month-lbl{
    font-size:11px;
    color:#94a3b8;
    text-align:center;
    line-height:1;
    white-space:nowrap;
    writing-mode:vertical-rl;
    transform:rotate(-120deg);
    height:70px;
    padding-top:6px;
    font-family:'COUN_Shabnam',Tahoma,sans-serif;
    letter-spacing:.5px;
    transition:.2s;
}
.coun-month-col:hover .coun-month-lbl{
    color:#fff;
    text-shadow:0 0 8px currentColor;
}

/* ---- Donut chart ---- */
.coun-svg-donut{
    width:180px;
    height:180px;
    max-width:100%;
    display:block;
}
.coun-svg-donut path{
    transition:.25s;
    cursor:pointer;
    transform-origin:100px 100px;
}
.coun-svg-donut path:hover{
    opacity:1 !important;
    transform:scale(1.04);
    filter:drop-shadow(0 0 8px rgba(56,189,248,.5));
}

/* ---- Chart Footer Stats ---- */
.coun-chart-foot{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:8px;
    margin-top:12px;
    padding-top:12px;
    border-top:1px solid #334155;
}
.coun-chart-stat{text-align:center}
.coun-chart-stat-lbl{
    font-size:10px;
    color:#64748b;
    margin-bottom:3px;
}
.coun-chart-stat-val{
    font-size:16px;
    font-weight:bold;
}

/* ---- Donut Legend ---- */
.coun-chart-legend{
    display:flex;
    flex-direction:column;
    gap:5px;
    margin-top:12px;
    padding-top:12px;
    border-top:1px solid #334155;
}
.coun-chart-legend-item{
    display:flex;
    align-items:center;
    gap:8px;
    font-size:11px;
}
.coun-chart-legend-dot{
    width:10px;
    height:10px;
    border-radius:3px;
    flex-shrink:0;
}
.coun-chart-legend-lbl{
    color:#94a3b8;
    min-width:42px;
    font-family:monospace;
}
.coun-chart-legend-val{
    color:#cbd5e1;
    margin-right:auto;
    font-size:10px;
}

/* ============================================================
   9) BARS — dual (current vs previous)
   ============================================================ */
.coun-bars2{
    display:flex;
    align-items:flex-end;
    gap:6px;
    height:200px;
    padding:10px 4px;
}
.coun-bar-col2{
    flex:1;
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:6px;
    height:100%;
    justify-content:flex-end;
    position:relative;
}
.coun-bar-pair{
    display:flex;
    gap:3px;
    align-items:flex-end;
    height:100%;
    width:100%;
    justify-content:center;
}
.coun-bar2{
    width:42%;
    border-radius:6px 6px 0 0;
    min-height:4px;
    transition:height .6s ease,filter .2s;
}
.coun-bar2.cur{
    background:linear-gradient(180deg,#38bdf8,#0ea5e9);
    box-shadow:0 0 10px rgba(56,189,248,.4);
}
.coun-bar2.prev{
    background:linear-gradient(180deg,#94a3b8,#475569);
    opacity:.85;
}
.coun-bar2:hover{filter:brightness(1.35)}
.coun-bar-num{
    font-size:10px;
    font-weight:bold;
    display:flex;
    gap:3px;
    align-items:center;
}
.coun-bar-num .cur-n{color:#38bdf8}
.coun-bar-num .sep{color:#475569}
.coun-bar-num .prev-n{color:#94a3b8}
.coun-bar-lbl{
    font-size:10px;
    color:#64748b;
    text-align:center;
    line-height:1.2;
}

.coun-legend{
    display:flex;
    gap:18px;
    justify-content:center;
    margin-top:12px;
    font-size:12px;
    color:#94a3b8;
}
.coun-legend-item{display:flex;align-items:center;gap:6px}
.coun-legend-dot{width:12px;height:12px;border-radius:3px;display:inline-block}
.coun-legend-dot.cur{background:linear-gradient(180deg,#38bdf8,#0ea5e9)}
.coun-legend-dot.prev{background:linear-gradient(180deg,#94a3b8,#475569)}

/* ============================================================
   10) BARS — single (hourly, rainbow)
   ============================================================ */
.coun-bars{
    display:flex;
    align-items:flex-end;
    gap:4px;
    height:160px;
    padding:10px 4px;
}
.coun-bar-col{
    flex:1;
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:6px;
    height:100%;
    justify-content:flex-end;
}
.coun-bar{
    width:100%;
    border-radius:6px 6px 0 0;
    min-height:4px;
    transition:height .6s ease,filter .2s;
}
.coun-bar:hover{filter:brightness(1.35)}

/* ============================================================
   11) HORIZONTAL BARS
   ============================================================ */
.coun-hbar{display:flex;align-items:center;gap:10px;margin:10px 0}
.coun-hbar-name{
    width:110px;
    font-size:12px;
    color:#cbd5e1;
    display:flex;
    align-items:center;
    gap:6px;
}
.coun-hbar-name i{font-size:14px}
.coun-hbar-track{
    flex:1;
    height:24px;
    background:#0f172a;
    border-radius:8px;
    overflow:hidden;
}
.coun-hbar-fill{
    height:100%;
    display:flex;
    align-items:center;
    padding:0 10px;
    color:#fff;
    font-size:11px;
    font-weight:bold;
    border-radius:8px;
    transition:width .6s ease;
    text-shadow:0 1px 2px rgba(0,0,0,.4);
}

/* ============================================================
   12) OS CARDS
   ============================================================ */
.coun-os-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(160px,1fr));
    gap:12px;
}
.coun-os-card{
    background:#0f172a;
    border:2px solid #334155;
    border-radius:14px;
    padding:14px;
    text-align:center;
    transition:.3s;
    position:relative;
    overflow:hidden;
}
.coun-os-card:hover{
    transform:translateY(-4px);
    box-shadow:0 8px 24px rgba(0,0,0,.4);
}
.coun-os-icon{font-size:32px;margin-bottom:6px}
.coun-os-icon i{font-size:32px}
.coun-os-name{font-size:12px;color:#94a3b8;margin-bottom:6px}
.coun-os-count{font-size:24px;font-weight:bold}
.coun-os-pct{font-size:11px;color:#64748b;margin-top:2px}
.coun-os-bar{
    height:5px;
    background:#1e293b;
    border-radius:10px;
    overflow:hidden;
    margin-top:10px;
}
.coun-os-bar-fill{height:100%;border-radius:10px;transition:width .7s ease}

/* ============================================================
   13) TABLES
   ============================================================ */
.coun-table{width:100%;border-collapse:collapse;font-size:13px}
.coun-table th{
    background:#0f172a;
    color:#94a3b8;
    padding:12px 10px;
    text-align:right;
    font-weight:normal;
    font-size:12px;
    border-bottom:1px solid #334155;
}
.coun-table td{
    padding:10px;
    border-bottom:1px solid #1e293b;
    color:#cbd5e1;
    vertical-align:middle;
}
.coun-table td i{font-size:14px;margin-left:4px;vertical-align:middle}
.coun-table tr:hover td{background:#0f172a}
.coun-table .num{color:#38bdf8;font-weight:bold}
.coun-table .dim{color:#64748b;font-size:12px}
.coun-table .page-cell{
    font-size:11px;
    color:#94a3b8;
    max-width:220px;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}
.coun-badge{
    display:inline-flex;
    align-items:center;
    gap:5px;
    padding:3px 10px;
    border-radius:20px;
    font-size:11px;
    background:#0f172a;
    border:1px solid #334155;
}
.coun-badge i{font-size:11px}
.coun-badge.new{background:#052e16;color:#4ade80;border-color:#166534}
.coun-badge.ret{background:#1e3a8a;color:#93c5fd;border-color:#1d4ed8}
.coun-rank{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:24px;
    height:24px;
    border-radius:50%;
    background:#0f172a;
    border:1px solid #334155;
    color:#94a3b8;
    font-size:11px;
    font-weight:bold;
}

/* ============================================================
   14) BUTTONS
   ============================================================ */
.coun-btn-view{
    display:inline-flex;
    align-items:center;
    gap:6px;
    padding:7px 14px;
    background:linear-gradient(135deg,#0ea5e9,#6366f1);
    border:none;
    border-radius:10px;
    color:#fff;
    font-family:'COUN_Shabnam',Tahoma,sans-serif;
    font-size:11px;
    cursor:pointer;
    transition:.25s;
    box-shadow:0 4px 12px rgba(14,165,233,.25);
    position:relative;
    overflow:hidden;
}
.coun-btn-view i{font-size:12px}
.coun-btn-view::after{
    content:"";
    position:absolute;
    inset:0;
    background:linear-gradient(135deg,transparent 30%,rgba(255,255,255,.35) 50%,transparent 70%);
    transform:translateX(-100%);
    transition:transform .5s;
}
.coun-btn-view:hover{
    transform:translateY(-2px);
    box-shadow:0 8px 20px rgba(14,165,233,.55);
    background:linear-gradient(135deg,#38bdf8,#818cf8);
}
.coun-btn-view:hover::after{transform:translateX(100%)}

.coun-search-btn{
    padding:9px 18px;
    background:linear-gradient(135deg,#a855f7,#7c3aed);
    color:#fff;
    border:none;
    border-radius:10px;
    font-size:13px;
    margin-left:8px;
    box-shadow:0 4px 12px rgba(168,85,247,.3);
    transition:.25s;
    display:inline-flex;
    align-items:center;
    gap:6px;
    cursor:pointer;
    font-family:'COUN_Shabnam',Tahoma,sans-serif;
}
.coun-search-btn:hover{transform:translateY(-2px);box-shadow:0 8px 20px rgba(168,85,247,.55)}

/* ============================================================
   15) GRID
   ============================================================ */
.coun-grid-2{display:grid;grid-template-columns:1fr 1fr;gap:18px}
@media(max-width:800px){.coun-grid-2{grid-template-columns:1fr}}

/* ============================================================
   16) ONLINE PULSE
   ============================================================ */
.coun-online{display:inline-flex;align-items:center;gap:6px}
.coun-pulse{
    width:9px;
    height:9px;
    background:#22c55e;
    border-radius:50%;
    box-shadow:0 0 0 0 rgba(34,197,94,.7);
    animation:coun-pulse 1.8s infinite;
}
@keyframes coun-pulse{
    0%{box-shadow:0 0 0 0 rgba(34,197,94,.7)}
    70%{box-shadow:0 0 0 12px rgba(34,197,94,0)}
    100%{box-shadow:0 0 0 0 rgba(34,197,94,0)}
}

/* ============================================================
   17) LOGIN
   ============================================================ */
.coun-login{
    max-width:420px;
    margin:80px auto;
    background:#1e293b;
    padding:32px;
    border-radius:18px;
    box-shadow:0 10px 40px rgba(0,0,0,.5);
    text-align:center;
    border:1px solid #334155;
}
.coun-login-icon{font-size:52px;color:#38bdf8;margin-bottom:12px}
.coun-login h2{color:#38bdf8;margin:0 0 22px;font-size:28px}
.coun-login input{
    width:100%;
    padding:13px;
    margin:8px 0;
    background:#0f172a;
    border:1px solid #334155;
    border-radius:10px;
    color:#e2e8f0;
    font-family:'COUN_Shabnam',Tahoma,sans-serif;
    font-size:14px;
}
.coun-login input:focus{outline:none;border-color:#38bdf8}
.coun-login button{
    width:100%;
    padding:13px;
    background:linear-gradient(135deg,#38bdf8,#a855f7);
    border:none;
    border-radius:10px;
    color:#fff;
    cursor:pointer;
    font-family:'COUN_Shabnam',Tahoma,sans-serif;
    font-size:15px;
    margin-top:10px;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    transition:.25s;
}
.coun-login button:hover{opacity:.9;transform:translateY(-2px)}
.coun-err{color:#f87171;font-size:12px;margin-top:12px}

/* ============================================================
   18) DASHBOARD HEADER
   ============================================================ */
.coun-dash-head{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:20px;
    flex-wrap:wrap;
    gap:10px;
}
.coun-dash-head h1{
    color:#38bdf8;
    margin:0;
    font-size:26px;
    display:flex;
    align-items:center;
    gap:10px;
}
.coun-dash-head h1 i{font-size:26px}
.coun-logout{
    padding:9px 18px;
    background:linear-gradient(135deg,#dc2626,#b91c1c);
    color:#fff;
    border-radius:10px;
    text-decoration:none;
    font-size:13px;
    box-shadow:0 4px 12px rgba(220,38,38,.3);
    transition:.25s;
    display:inline-flex;
    align-items:center;
    gap:6px;
}
.coun-logout:hover{transform:translateY(-2px);box-shadow:0 8px 20px rgba(220,38,38,.5)}
.coun-refresh{
    padding:9px 18px;
    background:linear-gradient(135deg,#0ea5e9,#0284c7);
    color:#fff;
    border-radius:10px;
    text-decoration:none;
    font-size:13px;
    margin-left:8px;
    box-shadow:0 4px 12px rgba(14,165,233,.3);
    transition:.25s;
    display:inline-flex;
    align-items:center;
    gap:6px;
}
.coun-refresh:hover{transform:translateY(-2px);box-shadow:0 8px 20px rgba(14,165,233,.5)}

/* ============================================================
   19) SCROLL AREA
   ============================================================ */
.coun-scroll{max-height:420px;overflow-y:auto}
.coun-scroll::-webkit-scrollbar{width:6px}
.coun-scroll::-webkit-scrollbar-thumb{background:#334155;border-radius:6px}
.coun-scroll::-webkit-scrollbar-track{background:#0f172a}

/* ============================================================
   20) FOOTER
   ============================================================ */
.coun-footer{
    text-align:center;
    color:#475569;
    font-size:12px;
    padding:20px;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:6px;
}

/* ============================================================
   21) DRAWER
   ============================================================ */
.coun-drawer-overlay{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.6);
    backdrop-filter:blur(3px);
    opacity:0;
    visibility:hidden;
    transition:.3s;
    z-index:9998;
}
.coun-drawer-overlay.open{opacity:1;visibility:visible}

.coun-drawer{
    position:fixed;
    top:0;
    left:-460px;
    width:440px;
    max-width:92vw;
    height:100vh;
    background:linear-gradient(180deg,#1e293b,#0f172a);
    border-right:1px solid #334155;
    box-shadow:8px 0 40px rgba(0,0,0,.6);
    transition:left .35s ease;
    z-index:9999;
    display:flex;
    flex-direction:column;
    direction:rtl;
    font-family:'COUN_Shabnam',Tahoma,sans-serif;
}
.coun-drawer.open{left:0}

.coun-drawer-head{
    padding:20px;
    background:linear-gradient(135deg,#0ea5e9,#6366f1);
    display:flex;
    justify-content:space-between;
    align-items:center;
    box-shadow:0 4px 20px rgba(0,0,0,.3);
}
.coun-drawer-title{
    font-size:20px;
    color:#fff;
    margin-bottom:2px;
    display:flex;
    align-items:center;
    gap:8px;
}
.coun-drawer-ip{font-size:13px;color:#e0f2fe;font-family:monospace}
.coun-drawer-close{
    width:36px;
    height:36px;
    border-radius:10px;
    background:rgba(255,255,255,.15);
    border:none;
    color:#fff;
    font-size:16px;
    cursor:pointer;
    transition:.25s;
}
.coun-drawer-close:hover{background:rgba(255,255,255,.3);transform:rotate(90deg)}

.coun-drawer-body{flex:1;overflow-y:auto;padding:20px}
.coun-drawer-body::-webkit-scrollbar{width:6px}
.coun-drawer-body::-webkit-scrollbar-thumb{background:#334155;border-radius:6px}

.coun-drawer-loading{text-align:center;color:#64748b;padding:40px 0;font-size:14px}
.coun-drawer-loading i{
    font-size:24px;
    display:block;
    margin-bottom:8px;
    animation:coun-spin 1.5s linear infinite;
}
@keyframes coun-spin{to{transform:rotate(360deg)}}

.coun-d-stat{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:16px}
.coun-d-card{
    background:#0f172a;
    border:1px solid #334155;
    border-radius:12px;
    padding:12px;
    text-align:center;
}
.coun-d-card .lbl{font-size:11px;color:#94a3b8;margin-bottom:4px}
.coun-d-card .val{font-size:20px;color:#38bdf8}
.coun-d-card .val.small{font-size:14px}

.coun-d-section{margin-bottom:18px}
.coun-d-section-title{
    font-size:14px;
    color:#e2e8f0;
    margin-bottom:10px;
    padding-bottom:8px;
    border-bottom:1px solid #334155;
    display:flex;
    align-items:center;
    gap:8px;
}
.coun-d-section-title i{color:#38bdf8}

.coun-d-ua{
    background:#0f172a;
    border:1px solid #334155;
    border-radius:10px;
    padding:10px;
    font-size:10px;
    color:#94a3b8;
    word-break:break-all;
    line-height:1.5;
    font-family:monospace;
    direction:ltr;
    text-align:left;
}

.coun-d-visit{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:8px 10px;
    background:#0f172a;
    border-radius:8px;
    margin-bottom:6px;
    font-size:12px;
    border-right:3px solid #0ea5e9;
}
.coun-d-visit .dt{color:#cbd5e1}
.coun-d-visit .pg{
    color:#64748b;
    font-size:11px;
    max-width:180px;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}
.coun-d-visit .dur{color:#38bdf8;font-weight:bold}

.coun-d-hour-bar{
    display:flex;
    align-items:flex-end;
    gap:2px;
    height:60px;
    margin-top:8px;
}
.coun-d-hour-col{
    flex:1;
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:2px;
    justify-content:flex-end;
    height:100%;
}
.coun-d-hour{
    width:100%;
    background:linear-gradient(180deg,#38bdf8,#6366f1);
    border-radius:3px 3px 0 0;
    min-height:2px;
}
.coun-d-hour-lbl{font-size:8px;color:#64748b}

.coun-d-top-page{
    display:flex;
    justify-content:space-between;
    padding:6px 10px;
    background:#0f172a;
    border-radius:8px;
    margin-bottom:5px;
    font-size:12px;
}
.coun-d-top-page .c{color:#a855f7;font-weight:bold}

/* ============================================================
   22) SEARCH MODAL
   ============================================================ */
.coun-modal-overlay{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.7);
    backdrop-filter:blur(4px);
    z-index:10000;
    display:flex;
    align-items:flex-start;
    justify-content:center;
    padding:20px 12px;
    opacity:0;
    visibility:hidden;
    transition:.3s;
    overflow-y:auto;
    direction:rtl;
}
.coun-modal-overlay.open{opacity:1;visibility:visible}

.coun-modal{
    background:#1e293b;
    border:1px solid #334155;
    border-radius:14px;
    width:100%;
    max-width:840px;
    box-shadow:0 25px 60px rgba(0,0,0,.6);
    transform:translateY(-20px) scale(.97);
    transition:.3s cubic-bezier(.16,1,.3,1);
    overflow:hidden;
    margin:auto;
}
.coun-modal-overlay.open .coun-modal{
    transform:translateY(0) scale(1);
}

.coun-modal-head{
    padding:12px 18px;
    background:linear-gradient(135deg,#a855f7,#6366f1);
    display:flex;
    justify-content:space-between;
    align-items:center;
}
.coun-modal-title{
    font-size:16px;
    color:#fff;
    display:flex;
    align-items:center;
    gap:8px;
}
.coun-modal-title i{font-size:16px}

.coun-modal-close{
    width:30px;
    height:30px;
    border-radius:8px;
    background:rgba(255,255,255,.15);
    border:none;
    color:#fff;
    font-size:13px;
    cursor:pointer;
    transition:.25s;
    display:flex;
    align-items:center;
    justify-content:center;
}
.coun-modal-close:hover{background:rgba(255,255,255,.3);transform:rotate(90deg)}

.coun-modal-body{padding:16px 18px}

.coun-form-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:10px 12px;
    align-items:start;
}
@media(min-width:720px){
    .coun-form-grid{grid-template-columns:repeat(4,1fr)}
}

.coun-form-group{
    display:flex;
    flex-direction:column;
    gap:4px;
    min-width:0;
    position:relative;
}
.coun-form-group label{
    font-size:11px;
    color:#94a3b8;
    display:flex;
    align-items:center;
    gap:4px;
    line-height:1.2;
}
.coun-form-group label i{color:#38bdf8;font-size:11px}

.coun-form-group input[type="text"],
.coun-form-group select{
    width:100%;
    padding:7px 10px;
    background:#0f172a;
    border:1.5px solid #334155;
    border-radius:8px;
    color:#e2e8f0;
    font-family:'COUN_Shabnam',Tahoma,sans-serif;
    font-size:12px;
    transition:.2s;
    height:34px;
    line-height:1.2;
}
.coun-form-group input[type="text"]:focus,
.coun-form-group select:focus{
    outline:none;
    border-color:#a855f7;
    box-shadow:0 0 0 3px rgba(168,85,247,.15);
}
.coun-form-group input::placeholder{color:#475569;font-size:11px}
.coun-form-group select option{background:#0f172a;color:#e2e8f0}

/* Date picker inside form */
.coun-form-group .pdp-wrap{width:100%;position:relative}
.coun-form-group .pdp-input{
    width:100%;
    padding:7px 32px 7px 10px;
    height:34px;
    background:#0f172a;
    border:1.5px solid #334155;
    border-radius:8px;
    color:#e2e8f0;
    font-family:'COUN_Shabnam',Tahoma,sans-serif;
    font-size:12px;
    line-height:1.2;
    direction:ltr;
    text-align:right;
}
.coun-form-group .pdp-input:focus{
    outline:none;
    border-color:#a855f7;
    box-shadow:0 0 0 3px rgba(168,85,247,.15);
}
.coun-form-group .pdp-icon{
    position:absolute;
    top:50%;
    left:10px;
    transform:translateY(-50%);
    font-size:13px;
    color:#64748b;
    pointer-events:none;
}

.coun-modal-foot{
    padding:12px 18px;
    background:#0f172a;
    border-top:1px solid #334155;
    display:flex;
    justify-content:flex-end;
    gap:8px;
}
.coun-btn-reset,
.coun-btn-search-submit{
    padding:8px 16px;
    border:none;
    border-radius:8px;
    font-family:'COUN_Shabnam',Tahoma,sans-serif;
    font-size:12px;
    cursor:pointer;
    transition:.2s;
    display:inline-flex;
    align-items:center;
    gap:6px;
}
.coun-btn-reset{background:#334155;color:#cbd5e1}
.coun-btn-reset:hover{background:#475569;color:#fff}
.coun-btn-search-submit{
    background:linear-gradient(135deg,#a855f7,#6366f1);
    color:#fff;
    box-shadow:0 4px 12px rgba(168,85,247,.35);
}
.coun-btn-search-submit:hover{
    transform:translateY(-1px);
    box-shadow:0 6px 16px rgba(168,85,247,.5);
}

/* Search results */
.coun-search-results{
    border-top:1px solid #334155;
    background:#0f172a;
}
.coun-search-results-head{
    padding:10px 18px;
    background:#0f172a;
    color:#e2e8f0;
    font-size:13px;
    display:flex;
    align-items:center;
    gap:8px;
    border-bottom:1px solid #334155;
}
.coun-search-results-head i{color:#a855f7}
.coun-search-results-head span{color:#a855f7;font-weight:bold}
.coun-search-results-body{
    max-height:340px;
    overflow-y:auto;
    padding:8px 12px;
}
.coun-search-results-body::-webkit-scrollbar{width:6px}
.coun-search-results-body::-webkit-scrollbar-thumb{background:#334155;border-radius:6px}

.coun-sr-item{
    display:grid;
    grid-template-columns:100px 1fr auto;
    gap:10px;
    padding:9px 11px;
    background:#1e293b;
    border-radius:8px;
    margin-bottom:6px;
    font-size:12px;
    border-right:3px solid #a855f7;
    align-items:center;
}
.coun-sr-ip{
    color:#38bdf8;
    font-weight:bold;
    font-family:monospace;
    font-size:11px;
    word-break:break-all;
}
.coun-sr-info{color:#cbd5e1;overflow:hidden;min-width:0}
.coun-sr-page{
    font-size:11px;
    color:#94a3b8;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}
.coun-sr-meta{
    font-size:10px;
    color:#64748b;
    margin-top:3px;
    display:flex;
    gap:8px;
    flex-wrap:wrap;
}
.coun-sr-meta span{display:inline-flex;align-items:center;gap:3px}
.coun-sr-btn{
    padding:5px 10px;
    background:linear-gradient(135deg,#0ea5e9,#6366f1);
    color:#fff;
    border:none;
    border-radius:6px;
    font-size:10px;
    cursor:pointer;
    transition:.2s;
    display:inline-flex;
    align-items:center;
    gap:4px;
}
.coun-sr-btn:hover{
    transform:translateY(-1px);
    box-shadow:0 4px 12px rgba(14,165,233,.4);
}
.coun-sr-empty{
    text-align:center;
    padding:24px;
    color:#64748b;
    font-size:12px;
}
.coun-sr-empty i{font-size:26px;display:block;margin-bottom:6px;color:#475569}

/* Date picker override */
body .pdp-calendar{
    z-index:10001 !important;
    position:fixed !important;
}

/* ============================================================
   23) TEST PAGE
   ============================================================ */
.coun-test-wrap{max-width:1000px;margin:20px auto;padding:0 12px}
.coun-test-head{text-align:center;margin-bottom:24px}
.coun-test-head h1{
    color:#38bdf8;
    margin:0 0 6px;
    font-size:28px;
    display:inline-flex;
    align-items:center;
    gap:10px;
}
.coun-test-head h1 i{font-size:28px}
.coun-test-sub{color:#64748b;font-size:13px}

.coun-test-summary{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:14px;
    margin-bottom:24px;
}
.coun-test-sum-card{
    padding:20px;
    border-radius:14px;
    text-align:center;
    box-shadow:0 4px 20px rgba(0,0,0,.3);
}
.coun-test-sum-card .num{
    font-size:32px;
    font-weight:bold;
}
.coun-test-sum-card .lbl{
    font-size:12px;
    opacity:.8;
    margin-top:6px;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:6px;
}
.coun-test-sum-card.total{
    background:linear-gradient(135deg,#1e293b,#0f172a);
    border:1px solid #334155;
}
.coun-test-sum-card.pass{
    background:linear-gradient(135deg,#052e16,#14532d);
    border:1px solid #166534;
}
.coun-test-sum-card.pass .num,
.coun-test-sum-card.pass i{color:#4ade80}
.coun-test-sum-card.fail{
    background:linear-gradient(135deg,#450a0a,#7f1d1d);
    border:1px solid #991b1b;
}
.coun-test-sum-card.fail .num,
.coun-test-sum-card.fail i{color:#f87171}

.coun-test-list{
    background:#1e293b;
    border-radius:14px;
    overflow:hidden;
    border:1px solid #334155;
}
.coun-test-item{
    padding:14px 18px;
    border-bottom:1px solid #334155;
    display:grid;
    grid-template-columns:40px 1fr auto;
    gap:12px;
    align-items:center;
    transition:.2s;
}
.coun-test-item:hover{background:#0f172a}
.coun-test-item:last-child{border-bottom:none}
.coun-test-icon{
    width:34px;
    height:34px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:14px;
}
.coun-test-icon.pass{background:#052e16;color:#4ade80;border:1px solid #166534}
.coun-test-icon.fail{background:#450a0a;color:#f87171;border:1px solid #991b1b}
.coun-test-name{font-weight:bold;color:#e2e8f0;font-size:14px}
.coun-test-msg{font-size:12px;color:#94a3b8;margin-top:3px}
.coun-test-badge{
    padding:5px 12px;
    border-radius:20px;
    font-size:11px;
    font-weight:bold;
    display:inline-flex;
    align-items:center;
    gap:5px;
}
.coun-test-badge.pass{background:#052e16;color:#4ade80}
.coun-test-badge.fail{background:#450a0a;color:#f87171}

.coun-test-actions{
    text-align:center;
    margin-top:24px;
    display:flex;
    gap:10px;
    justify-content:center;
    flex-wrap:wrap;
}
.coun-test-btn{
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding:11px 22px;
    color:#fff;
    text-decoration:none;
    border-radius:10px;
    font-size:13px;
    font-weight:bold;
    transition:.25s;
}
.coun-test-btn.primary{background:linear-gradient(135deg,#38bdf8,#0284c7)}
.coun-test-btn.purple{background:linear-gradient(135deg,#a855f7,#7c3aed)}
.coun-test-btn:hover{
    transform:translateY(-2px);
    box-shadow:0 8px 20px rgba(56,189,248,.4);
}
.coun-test-footer{
    text-align:center;
    color:#94a3b8;
    font-size:13px;
    padding:20px;
    margin-top:12px;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;
}

/* ============================================================
   24) RESPONSIVE
   ============================================================ */
@media(max-width:640px){
    .coun-dash-head{flex-direction:column;align-items:stretch}
    .coun-dash-head > div{display:flex;flex-wrap:wrap;gap:6px}
    .coun-search-btn,
    .coun-refresh,
    .coun-logout{margin-left:0;font-size:12px;padding:8px 14px}
    .coun-cards{grid-template-columns:1fr 1fr}
    .coun-form-grid{grid-template-columns:1fr}
    .coun-modal{margin:0;border-radius:12px}
    .coun-sr-item{grid-template-columns:1fr;gap:6px}
    .coun-sr-btn{width:100%;justify-content:center}
}

.coun-month-col.future{opacity:.45}
.coun-month-col.future .coun-month-bar{
    background:linear-gradient(180deg,#334155,#1e293b) !important;
    box-shadow:none;
}

.coun-month-list{display:flex;flex-direction:column;gap:4px;width:100%}
.coun-ml-row{
    display:grid;
    grid-template-columns:64px 1fr 32px;
    gap:8px;
    align-items:center;
    padding:4px 6px;
    border-radius:6px;
    transition:.2s;
}
.coun-ml-row:hover{background:#0f172a}
.coun-ml-name{
    font-size:11px;
    color:#94a3b8;
    text-align:right;
}
.coun-ml-track{
    height:8px;
    background:#0f172a;
    border-radius:5px;
    overflow:hidden;
}
.coun-ml-fill{
    height:100%;
    border-radius:5px;
    transition:width .7s cubic-bezier(.16,1,.3,1);
}
.coun-ml-val{
    font-size:11px;
    color:#38bdf8;
    font-weight:bold;
    text-align:left;
    font-family:monospace;
}

.coun-month-lolli{
    display:flex;
    align-items:flex-end;
    gap:4px;
    height:230px;
    width:100%;
    padding:0;
}
.coun-lolli-col{
    flex:1;
    display:flex;
    flex-direction:column;
    align-items:center;
    height:100%;
    gap:4px;
    min-width:0;
}
.coun-lolli-val{
    font-size:10px;
    color:#cbd5e1;
    font-weight:bold;
    font-family:monospace;
}
.coun-lolli-line-wrap{
    flex:1;
    width:100%;
    position:relative;
    display:flex;
    justify-content:center;
    align-items:flex-end;
}
.coun-lolli-line{
    width:3px;
    border-radius:3px;
    transition:height .7s cubic-bezier(.16,1,.3,1);
    position:relative;
    min-height:4px;
}
.coun-lolli-dot{
    position:absolute;
    bottom:0;
    width:10px;
    height:10px;
    border-radius:50%;
    transform:translateY(50%);
    transition:.2s;
}
.coun-lolli-col:hover .coun-lolli-dot{
    transform:translateY(50%) scale(1.4);
}
.coun-lolli-lbl{
    font-size:11px;
    color:#94a3b8;
    writing-mode:vertical-rl;
    transform:rotate(180deg);
    height:60px;
    text-align:center;
    padding-top:4px;
    font-family:'COUN_Shabnam',Tahoma,sans-serif;
}