/* InstaShadow account pages: shared shell (header, sidebar, footer, mobile menu and nav) and the dashboard.
   Class names and data attributes are InstaCognito's: the scripts (app.dashboard.js, plan-pill.js, ...) are shared. */
:root{
    --grad:linear-gradient(90deg,#11D411 0%,#27DEBF 97%);
    --grad-text:linear-gradient(90deg,#11D411 0%,#27DEBF 97%);
    --green:#11D411;
    --teal:#27DEBF;
    --text:#fff;
    --muted:rgba(255,255,255,.8);
    --soft:rgba(255,255,255,.5);
    --panel-bg:rgba(255,255,255,.06);
    --field-bg:rgba(255,255,255,.2);
    --field-line:rgba(255,255,255,.2);
    --line:rgba(255,255,255,.12);
    --danger:#F26D76;
    --success:#11D411;
    --header-h:70px;
    --sidebar-w:92px;
    --content-w:1090px;
    --radius:18px;
    --font:Roboto,"Helvetica Neue",Arial,sans-serif;
    /* Kept for page styles shared with InstaCognito's files */
    --dash-gradient:var(--grad);
    --dash-gradient-horizontal:var(--grad);
    --dash-title-gradient:var(--grad);
    --dash-button-gradient:var(--grad);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth;background:#000}
body{
    margin:0;
    min-width:320px;
    font-family:var(--font);
    color:var(--text);
    background:transparent;
    line-height:1.35;
    -webkit-font-smoothing:antialiased;
    text-rendering:optimizeLegibility;
}
/* The design's soft green glows (blurred ellipses): top left, right, lower left */
body::before{
    content:"";
    position:fixed;
    inset:0;
    z-index:-1;
    pointer-events:none;
    background:
        radial-gradient(560px 500px at 0 0,rgba(185,255,169,.20),rgba(185,255,169,0) 70%),
        radial-gradient(1000px 980px at calc(100% + 120px) 46%,rgba(185,255,169,.15),rgba(185,255,169,0) 70%),
        radial-gradient(1000px 980px at -200px 100%,rgba(185,255,169,.11),rgba(185,255,169,0) 70%),
        #000;
}
img{display:block;max-width:100%;height:auto}
a{color:inherit}
button,input,select{font:inherit}
button{cursor:pointer}
button:disabled{cursor:not-allowed;opacity:.7}
[hidden]{display:none!important}

.sr-only{
    position:absolute!important;
    width:1px!important;
    height:1px!important;
    padding:0!important;
    margin:-1px!important;
    overflow:hidden!important;
    clip:rect(0,0,0,0)!important;
    white-space:nowrap!important;
    border:0!important;
}
.grad-text{
    color:var(--green);
    background:var(--grad-text);
    -webkit-background-clip:text;
    background-clip:text;
    -webkit-text-fill-color:transparent;
}

/* ───────────────────────────────── Header ───────────────────────────────── */
.dash-header{
    position:relative;
    z-index:60;
    height:var(--header-h);
    background:#000;
    border-bottom:1px solid rgba(255,255,255,.2);
}
.dash-header__inner{
    height:100%;
    width:min(calc(100% - 2 * (var(--sidebar-w) + 32px)),var(--content-w));
    margin:0 auto;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:24px;
}
.dash-brand{
    display:inline-flex;
    align-items:center;
    text-decoration:none;
    flex:0 0 auto;
}
.dash-brand img{width:146px;height:auto}
.dash-head-actions{
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:22px;
    min-width:0;
}
.dash-price-link{
    min-width:80px;
    height:32px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:0 16px;
    color:var(--green);
    text-decoration:none;
    font-size:14px;
    line-height:1;
    border:1px solid var(--green);
    border-radius:8px;
    background:transparent;
    transition:background .15s,border-color .15s;
}
.dash-price-link:hover,
.dash-price-link.is-active{background:rgba(17,212,17,.1);border-color:var(--teal)}
.dash-account{
    display:flex;
    align-items:center;
    gap:10px;
    min-width:0;
}
.dash-user{
    display:inline-flex;
    align-items:center;
    gap:12px;
    min-width:0;
    color:#fff;
    text-decoration:none;
}
.dash-avatar{
    width:40px;
    height:40px;
    flex:0 0 40px;
    display:inline-grid;
    place-items:center;
    color:#fff;
    font-size:20px;
    font-weight:700;
    line-height:1;
    border-radius:50%;
    background:var(--grad);
}
.dash-account__meta{
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    gap:4px;
    min-width:0;
}
.dash-username{
    max-width:140px;
    color:#fff;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    font-size:13px;
    font-weight:700;
    line-height:16px;
    text-decoration:none;
}
.dash-plan-pill{
    display:inline-flex;
    align-items:center;
    gap:7px;
    height:26px;
    padding:0 3px 0 8px;
    color:#fff;
    text-decoration:none;
    font-size:11px;
    font-weight:500;
    border:1px solid var(--green);
    border-radius:7px;
    background:transparent;
    white-space:nowrap;
}
.dash-plan-pill strong{
    display:inline-flex;
    align-items:center;
    height:20px;
    padding:0 8px;
    color:#fff;
    font-size:11px;
    font-weight:500;
    border-radius:5px;
    background:var(--grad);
}
.dash-plan-pill.is-payment-failed{border-color:var(--danger)}
.dash-plan-pill.is-payment-failed strong{background:var(--danger)}
.dash-logout{margin:0}
.dash-logout button{
    width:30px;
    height:30px;
    display:grid;
    place-items:center;
    border:0;
    background:transparent;
    padding:0;
    opacity:.9;
}
.dash-logout button:hover{opacity:1}
.dash-logout img{width:24px;height:24px}

/* Language menu */
.lang{position:relative;color:#fff}
.lang summary{
    list-style:none;
    cursor:pointer;
    user-select:none;
    display:flex;
    align-items:center;
    gap:8px;
    padding:6px 4px;
    border-radius:10px;
    color:#fff;
    font-size:16px;
    font-weight:600;
    line-height:1;
}
.lang summary::-webkit-details-marker{display:none}
.chev{
    width:7px;
    height:7px;
    display:inline-block;
    border:1.5px solid currentColor;
    border-top:0;
    border-left:0;
    transform:rotate(45deg) translateY(-3px);
    transition:transform .15s ease;
}
.lang[open] .chev{transform:rotate(-135deg) translateY(-1px)}
.menu{
    position:absolute;
    right:0;
    top:calc(100% + 12px);
    background:#0b0f0b;
    border:1px solid rgba(17,212,17,.25);
    border-radius:18px;
    box-shadow:0 20px 48px rgba(0,0,0,.6);
    padding:12px;
    min-width:min(92vw,400px);
    max-height:calc(100vh - 96px);
    max-height:calc(100dvh - 96px);
    overflow-y:auto;
    overscroll-behavior:contain;
    z-index:9999;
}
.menu-grid{display:grid;gap:10px;grid-template-columns:repeat(2,minmax(0,1fr))}
.menu-grid a:only-child{grid-column:1/-1}
.lang a{
    display:flex;
    align-items:center;
    gap:10px;
    min-width:0;
    text-decoration:none;
    color:#fff;
    padding:12px 14px;
    border-radius:12px;
    background:rgba(255,255,255,.04);
    border:1px solid rgba(255,255,255,.08);
    font-size:16px;
    font-weight:600;
    transition:border-color .15s,background .15s,transform .06s;
}
.lang a:hover{border-color:rgba(17,212,17,.5)}
.lang a:active{transform:translateY(1px)}
.lang a[aria-current="true"]{border-color:var(--green);background:rgba(17,212,17,.12)}
.flag{font-size:18px;line-height:1}
.lang[open]{isolation:isolate}

/* Mobile account menu (hamburger) */
.dash-burger{display:none}

/* ───────────────────────────────── Sidebar ───────────────────────────────── */
.dash-sidebar{
    position:fixed;
    z-index:50;
    left:0;
    top:var(--header-h);
    bottom:0;
    width:var(--sidebar-w);
    background:#000;
    border-radius:0 0 18px 0;
}
.dash-sidebar__nav{
    display:flex;
    flex-direction:column;
    align-items:center;
    padding-top:34px;
    gap:10px;
}
.dash-sidebar__nav a{
    position:relative;
    width:76px;
    height:76px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:flex-start;
    gap:6px;
    padding-top:12px;
    color:#fff;
    text-decoration:none;
    font-size:12px;
    line-height:14px;
    border-radius:18px;
}
.dash-sidebar__nav a::before{
    content:"";
    position:absolute;
    inset:0;
    border:1px solid transparent;
    border-radius:18px;
    background:linear-gradient(#101010,#101010) padding-box,
        linear-gradient(160deg,#C9E88A 0%,rgba(113,130,77,0) 100%) border-box;
    opacity:0;
    transition:opacity .15s;
}
.dash-sidebar__nav a.is-active::before{opacity:1}
.dash-sidebar__nav a:hover::before{opacity:.45}
.dash-sidebar__nav a > *{position:relative}
.dash-sidebar__nav img{width:32px;height:32px;object-fit:contain}

/* ───────────────────────────────── Main ───────────────────────────────── */
.dash-main{
    position:relative;
    min-height:890px;
    overflow:hidden;
}
.dash-content{
    position:relative;
    z-index:1;
    width:min(calc(100% - 2 * (var(--sidebar-w) + 32px)),var(--content-w));
    margin:0 auto;
    padding:44px 0 50px;
}
.dash-title-block{margin:0 0 24px}
.dash-title-block h1{
    margin:0 0 10px;
    font-size:27px;
    line-height:32px;
    font-weight:800;
    color:var(--green);
    background:var(--grad-text);
    -webkit-background-clip:text;
    background-clip:text;
    -webkit-text-fill-color:transparent;
    width:max-content;
    max-width:100%;
}
.dash-title-block p{
    margin:0;
    color:var(--muted);
    font-size:17px;
    line-height:22px;
    font-weight:400;
}

.dash-search-panel{
    position:relative;
    display:grid;
    grid-template-columns:1fr 150px;
    align-items:center;
    gap:16px;
    margin:0 0 22px;
}
.dash-search-panel input{
    width:100%;
    height:46px;
    color:#fff;
    font-size:16px;
    padding:0 16px;
    border:1px solid var(--field-line);
    border-radius:5px;
    outline:none;
    background:var(--field-bg);
    transition:border-color .15s,box-shadow .15s;
}
.dash-search-panel input::placeholder{color:rgba(255,255,255,.5);opacity:1}
.dash-search-panel input:focus{
    border-color:var(--green);
    box-shadow:0 0 0 3px rgba(17,212,17,.18);
}
.dash-search-panel button[type="submit"]{
    height:46px;
    border:0;
    border-radius:5px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    color:#fff;
    font-weight:600;
    font-size:17px;
    background:var(--grad);
}
.dash-search-panel button[type="submit"] svg{width:18px;height:18px}
.dash-search-panel button[type="submit"]:hover{filter:brightness(1.06)}
.dash-search-error{
    position:absolute;
    left:2px;
    bottom:-22px;
    margin:0;
    min-height:14px;
    color:var(--danger);
    font-size:13px;
    line-height:1.1;
}
.dash-search-panel.has-error{margin-bottom:44px}
.dash-search-panel.is-loading button[type="submit"] span{opacity:.55}
.dash-search-panel.is-loading button[type="submit"]::after{
    content:"";
    width:16px;
    height:16px;
    border:2px solid rgba(255,255,255,.48);
    border-top-color:#fff;
    border-radius:50%;
    animation:dash-spin .75s linear infinite;
}
@keyframes dash-spin{to{transform:rotate(360deg)}}

.dash-panel{
    border-radius:var(--radius);
    background:var(--panel-bg);
}
.dash-panel__head{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:20px;
    padding:28px 30px 0;
}
.dash-panel h2{
    margin:0;
    color:#fff;
    font-size:17px;
    font-weight:800;
    line-height:1.15;
}
.dash-panel p{
    margin:6px 0 0;
    color:var(--muted);
    font-size:13px;
    line-height:20px;
}
.dash-panel--recent{min-height:440px;margin-bottom:22px}
body[data-dashboard-state="list"] .dash-panel--recent{min-height:0}
.dash-filter-trigger{
    min-width:80px;
    height:32px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:6px;
    padding:0 14px;
    color:#fff;
    border:1px solid #888;
    border-radius:9px;
    background:rgba(255,255,255,.26);
    font-size:13px;
    line-height:22px;
}
.dash-filter-trigger:hover{background:rgba(255,255,255,.32)}
.dash-filter-trigger img{width:15px;height:15px}
body[data-dashboard-state="list"] .dash-filter-trigger{display:inline-flex}
body[data-dashboard-state="empty"] .dash-filter-trigger{display:none}

.recent-loading{
    min-height:340px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:18px;
    color:#fff;
}
.recent-loading__spinner{
    width:46px;
    height:46px;
    border:4px solid rgba(17,212,17,.18);
    border-top-color:var(--green);
    border-radius:50%;
    animation:dashboard-loading-spin .75s linear infinite;
}
.recent-loading strong{font-size:16px;font-weight:500}
@keyframes dashboard-loading-spin{to{transform:rotate(360deg)}}

.recent-empty{
    min-height:360px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    padding:6px 24px 40px;
    text-align:center;
}
.recent-empty img{width:100px;height:100px;margin-bottom:16px}
.recent-empty h3{
    margin:0 0 22px;
    color:#fff;
    font-size:30px;
    line-height:1.1;
    font-weight:800;
}
.primary-action{
    min-width:250px;
    height:46px;
    padding:0 25px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    color:#fff;
    font-weight:600;
    font-size:17px;
    border:0;
    border-radius:5px;
    background:var(--grad);
}
.primary-action:hover{filter:brightness(1.06)}
.primary-action img{width:16px;height:16px;margin:0}

body[data-dashboard-state="list"] [data-empty-state]{display:none}
body[data-dashboard-state="empty"] [data-list-state]{display:none!important}
body[data-dashboard-state="list"] [data-list-state]{display:block}
body[data-dashboard-loading="true"] [data-empty-state],
body[data-dashboard-loading="true"] [data-list-state]{display:none!important}
body[data-dashboard-loading="false"] [data-loading-state]{display:none}

.recent-list{padding:22px 30px 26px}
.recent-table-wrap{overflow-x:auto}
.recent-table{
    width:100%;
    min-width:760px;
    border-collapse:separate;
    border-spacing:0;
    table-layout:fixed;
}
.recent-table thead th{
    height:48px;
    color:#fff;
    font-size:13px;
    font-weight:400;
    line-height:22px;
    text-align:center;
    padding:0 12px;
    background:var(--panel-bg);
    white-space:nowrap;
    border-radius:0;
}
.recent-table thead th:first-child{border-radius:12px 0 0 12px}
.recent-table thead th:last-child{border-radius:0 12px 12px 0}
.recent-table th:first-child{width:26%}
.recent-table th:nth-child(2){width:20%}
.recent-table th:nth-child(3){width:15%}
.recent-table th:nth-child(4){width:13%}
.recent-table th:nth-child(5){width:26%}
.recent-table th button{
    position:relative;
    width:10px;
    height:12px;
    margin-left:6px;
    border:0;
    padding:0;
    background:transparent;
    vertical-align:-1px;
}
.recent-table th button::before,
.recent-table th button::after{
    content:"";
    position:absolute;
    left:2px;
    width:5px;
    height:5px;
    border:1.5px solid #fff;
    border-right:0;
    border-bottom:0;
}
.recent-table th button::before{top:0;transform:rotate(45deg)}
.recent-table th button::after{bottom:0;transform:rotate(225deg)}
.recent-table tbody tr:first-child td{padding-top:14px}
.recent-table td{
    padding:6px 10px;
    height:70px;
    vertical-align:middle;
    color:#fff;
    font-size:14px;
}
.recent-table td:first-child{padding-left:14px}
.report-user{
    display:flex;
    align-items:center;
    gap:12px;
    min-width:0;
}
.report-avatar{
    width:50px;
    height:50px;
    flex:0 0 50px;
    border-radius:50%;
    display:grid;
    place-items:center;
    color:#fff;
    font-size:22px;
    font-weight:700;
    background:var(--grad);
    overflow:hidden;
}
.report-avatar img{width:100%;height:100%;object-fit:cover}
.report-name{min-width:0}
.report-name strong{
    display:block;
    max-width:150px;
    color:#fff;
    font-size:14px;
    font-weight:700;
    line-height:17px;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}
.report-name span{
    display:block;
    margin-top:4px;
    color:#fff;
    font-size:11px;
    line-height:13px;
}
/* Value over its change, the trend bars beside them (the script nests change + bars in .metric-detail) */
.metric-cell{
    display:grid;
    grid-template-columns:auto auto;
    grid-template-rows:auto auto;
    justify-content:center;
    align-items:center;
    column-gap:12px;
    row-gap:4px;
    min-width:0;
}
.metric-detail{display:contents}
.metric-value{
    grid-column:1;
    grid-row:1;
    color:#fff;
    font-size:14px;
    font-weight:500;
    line-height:17px;
    text-align:right;
}
.metric-delta{
    grid-column:1;
    grid-row:2;
    justify-self:end;
    color:var(--green);
    font-size:11px;
    line-height:13px;
    font-weight:500;
    white-space:nowrap;
}
.metric-cell > .metric-value:only-child{grid-row:1 / span 2}
.metric-detail > .growth-sparkline{grid-column:2;grid-row:1 / span 2}
.metric-delta.is-negative{color:var(--danger)}
.report-date{
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:2px;
    color:#fff;
    font-size:11px;
    font-weight:500;
    line-height:13px;
    text-align:center;
}
.report-date > :nth-child(2){color:rgba(255,255,255,.51)}
.report-actions{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    flex-wrap:wrap;
}
.small-action{
    flex:0 0 auto;
    height:28px;
    min-width:0;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:6px;
    padding:0 10px;
    color:var(--green);
    text-decoration:none;
    font-size:11px;
    font-weight:500;
    line-height:1;
    white-space:nowrap;
    border:1px solid var(--green);
    border-radius:7px;
    background:transparent;
    transition:background .15s;
}
.small-action:hover{background:rgba(17,212,17,.1)}
.small-action span{white-space:nowrap}
.small-action img{width:16px;height:16px;flex:0 0 16px}
.recent-table .report-actions{flex-wrap:nowrap;gap:12px}
.recent-table .small-action{flex:0 1 auto;min-width:0}

/* Followers trend: green bars up, red down, on a thin base line */
.growth-sparkline{
    position:relative;
    display:inline-flex;
    align-items:center;
    gap:1px;
    height:34px;
    min-width:56px;
    outline:none;
    background:linear-gradient(#383838,#383838) center/100% 1px no-repeat;
}
.growth-sparkline::after{
    content:attr(data-tooltip);
    position:absolute;
    left:50%;
    bottom:calc(100% + 8px);
    transform:translateX(-50%) translateY(3px);
    width:max-content;
    max-width:190px;
    padding:6px 9px;
    color:#fff;
    background:rgba(20,20,20,.96);
    border:1px solid rgba(17,212,17,.3);
    border-radius:7px;
    box-shadow:0 10px 22px rgba(0,0,0,.4);
    font-size:11px;
    font-weight:700;
    line-height:1.1;
    white-space:nowrap;
    opacity:0;
    visibility:hidden;
    transition:opacity .15s ease,transform .15s ease,visibility .15s ease;
    z-index:20;
}
.growth-sparkline:hover::after,
.growth-sparkline:focus-visible::after{
    opacity:1;
    visibility:visible;
    transform:translateX(-50%) translateY(0);
}
.growth-candle{
    position:relative;
    display:block;
    width:4px;
    height:34px;
    flex:0 0 4px;
}
.growth-candle::before{
    content:"";
    position:absolute;
    left:0;
    width:4px;
    height:var(--h,8px);
    border-radius:100px;
}
.growth-candle.is-up::before{bottom:50%;background:linear-gradient(180deg,#27DEBF,#11D411)}
.growth-candle.is-down::before{top:50%;background:var(--danger)}
/* Older markup of the sparkline */
.sparkline{display:flex;align-items:flex-end;gap:2px;height:23px;min-width:54px}
.sparkline i{display:block;width:4px;min-height:4px;border-radius:2px;background:var(--green)}

.recent-pagination{
    display:flex;
    justify-content:flex-end;
    align-items:center;
    gap:10px;
    margin-top:14px;
    color:#9E9EA8;
    font-size:12px;
}
.recent-pagination button{
    min-width:22px;
    height:28px;
    padding:0 4px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border:0;
    border-radius:5px;
    background:transparent;
    color:#9E9EA8;
    font-size:12px;
    line-height:1;
    transition:background .15s,color .15s;
}
.recent-pagination button:hover:not(:disabled){color:#fff;background:rgba(255,255,255,.08)}
.recent-pagination button:disabled{opacity:.35;cursor:not-allowed}
.recent-pagination button.is-active{
    min-width:17px;
    width:auto;
    height:17px;
    padding:0 4px;
    color:#000;
    font-weight:500;
    background:#2ED3AE;
}
.recent-pagination .page-step{font-size:22px;font-weight:400;line-height:0;color:#EAEAEA}
.recent-pagination .page-edge img{width:8px;height:10px}
.recent-pagination .page-ellipsis{color:#9E9EA8;font-size:12px;padding:0 2px}
.mobile-report-list{display:none}
.dash-no-results{padding:38px 16px!important;text-align:center;color:rgba(255,255,255,.6);font-size:15px;font-weight:500}

.dash-panel--usage{
    min-height:120px;
    padding:28px 30px 28px;
}
.usage-head{
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:20px;
    margin-bottom:18px;
}
.usage-head h2{color:#fff;font-size:17px}
.usage-head p{margin-top:6px;color:var(--muted);font-size:13px;line-height:20px}
.usage-head > span{
    color:#fff;
    font-size:14px;
    line-height:20px;
}
.usage-head > span strong{font-weight:400}
.usage-track{
    width:100%;
    height:8px;
    border-radius:26px;
    background:rgba(255,255,255,.23);
    overflow:hidden;
}
.usage-track span{
    display:block;
    height:100%;
    min-width:2px;
    border-radius:inherit;
    background:var(--green);
}
.usage-mobile-count{display:none}
body[data-dashboard-loading="true"] .usage-head > span,
body[data-dashboard-loading="true"] .usage-mobile-count{visibility:hidden}
body[data-dashboard-loading="true"] .usage-track span{
    width:32%!important;
    animation:dashboard-usage-loading 1.1s ease-in-out infinite alternate;
}
@keyframes dashboard-usage-loading{
    from{transform:translateX(-105%);opacity:.35}
    to{transform:translateX(320%);opacity:.8}
}
.usage-alert{
    margin:0 0 14px;
    padding:10px 12px;
    border:1px solid rgba(242,109,118,.35);
    border-radius:10px;
    color:#FF9CA3;
    background:rgba(242,109,118,.1);
    font-size:13px;
    font-weight:500;
    line-height:1.4;
}
.usage-alert a{color:inherit;text-decoration:underline}

/* ───────────────────────────────── Footer ───────────────────────────────── */
.auth-footer{
    position:relative;
    background:transparent;
    padding:0 20px 32px;
    text-align:center;
}
.auth-footer__inner{max-width:1120px;margin:0 auto}
.auth-footer__brand{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;margin-bottom:24px}
.auth-footer__logo{width:160px;height:auto;margin:0 auto}
.auth-footer__utility{
    display:flex;
    justify-content:center;
    align-items:center;
    flex-wrap:wrap;
    gap:10px 20px;
    margin:0 auto 26px;
    color:#fff;
    font-size:14px;
    line-height:17px;
}
.auth-footer__utility a{text-decoration:underline;text-underline-offset:2px}
.auth-footer__utility a:hover{color:var(--green)}
.auth-footer__legal{
    margin:0 auto;
    max-width:903px;
    color:#8B8A8A;
    font-size:10px;
    line-height:1.2;
}

/* ───────────────────────────────── Mobile bottom navigation ───────────────────────────────── */
.mobile-dash-nav{display:none}

/* ───────────────────────────────── Filter modal ───────────────────────────────── */
.filter-overlay{
    position:fixed;
    inset:0;
    z-index:1000;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:24px;
    background:rgba(0,0,0,.7);
    backdrop-filter:blur(3px);
}
.filter-overlay[hidden]{display:none!important}
.filter-modal{
    width:min(100%,470px);
    margin:0;
    padding:30px 30px 32px;
    border-radius:20px;
    background:#151515;
    box-shadow:0 26px 70px rgba(0,0,0,.6);
}
.filter-modal__head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    margin-bottom:16px;
}
.filter-modal h2{
    margin:0;
    color:#fff;
    font-size:22px;
    line-height:1;
    font-weight:700;
}
.filter-close{
    width:30px;
    height:30px;
    padding:0;
    border:0;
    color:rgba(255,255,255,.7);
    background:transparent;
    font-size:34px;
    line-height:24px;
    font-weight:200;
}
.filter-close:hover{color:#fff}
.filter-group{margin:0 0 18px}
.filter-group label{
    display:block;
    margin-bottom:10px;
    color:#fff;
    font-size:15px;
    line-height:1;
}
.filter-row{
    display:grid;
    grid-template-columns:1fr auto 1fr;
    align-items:center;
    gap:10px;
}
.filter-row span{color:rgba(255,255,255,.5);font-size:15px}
.filter-row input{
    width:100%;
    min-width:0;
    height:44px;
    padding:0 16px;
    color:#fff;
    font-size:16px;
    border:1px solid rgba(255,255,255,.2);
    border-radius:5px;
    outline:none;
    background:rgba(255,255,255,.06);
}
.filter-row input::placeholder{color:rgba(255,255,255,.5);opacity:1}
.filter-row input:focus{border-color:var(--green);box-shadow:0 0 0 3px rgba(17,212,17,.18)}
.filter-row input[type="date"]{color:rgba(255,255,255,.6);cursor:pointer;color-scheme:dark}
.filter-row input[type="date"]::-webkit-calendar-picker-indicator{opacity:0;cursor:pointer}
.filter-actions{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:16px;
    margin-top:24px;
}
.filter-actions button{
    height:44px;
    border-radius:5px;
    font-size:16px;
    font-weight:600;
}
.filter-reset{color:#fff;border:1px solid var(--green);background:transparent}
.filter-reset:hover{background:rgba(17,212,17,.1)}
.filter-apply{color:#fff;border:0;background:var(--grad)}
.filter-apply:hover{filter:brightness(1.06)}
.date-picker{
    position:relative;
    display:block;
    width:100%;
    min-width:0;
    height:44px;
    border:1px solid rgba(255,255,255,.2);
    border-radius:5px;
    background:rgba(255,255,255,.06) url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 18 18' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23ffffff' d='M5 1.4a.75.75 0 0 1 .75.75V3h6.5v-.85a.75.75 0 1 1 1.5 0V3H15a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h1.25v-.85A.75.75 0 0 1 5 1.4ZM2.5 7.25V15c0 .28.22.5.5.5h12a.5.5 0 0 0 .5-.5V7.25h-13ZM3 4.5a.5.5 0 0 0-.5.5v.75h13V5a.5.5 0 0 0-.5-.5H3Z'/%3E%3C/svg%3E") no-repeat right 14px center;
    cursor:pointer;
}
.date-picker:focus-within{border-color:var(--green);box-shadow:0 0 0 3px rgba(17,212,17,.18)}
.date-picker__text{
    position:absolute;
    left:16px;
    right:38px;
    top:50%;
    transform:translateY(-50%);
    color:rgba(255,255,255,.5);
    font-size:16px;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
    pointer-events:none;
}
.date-picker input[type="date"]{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    margin:0;
    padding:0;
    border:0;
    opacity:0;
    cursor:pointer;
}

/* ───────────────────────────────── Narrower desktops ───────────────────────────────── */
@media (max-width:1400px){
    .dash-head-actions{gap:18px}
}

/* ───────────────────────────────── Tablet and phone ───────────────────────────────── */
@media (max-width:1100px){
    :root{--header-h:54px;--sidebar-w:0px}
    body{padding-bottom:84px}
    .dash-header{height:var(--header-h);background:#000}
    .dash-header__inner{
        width:100%;
        max-width:100%;
        padding:0 20px;
        gap:12px;
        justify-content:flex-start;
    }
    .dash-brand{margin-right:auto}
    .dash-brand img{width:200px}
    .dash-price-link,
    .dash-account,
    .dash-head-actions > .dash-logout{display:none}
    .dash-head-actions{gap:0}
    .lang{position:static}
    .lang summary{font-size:25px;padding:4px 0;gap:9px}
    .menu{
        position:absolute;
        top:100%;
        left:0;
        right:0;
        width:100%;
        min-width:100%;
        max-width:100%;
        border-radius:0 0 18px 18px;
        padding:14px;
        max-height:70vh;
        overflow:auto;
        margin-top:0;
    }
    .dash-sidebar{display:none}

    /* Hamburger: account, plan, Pricing, Log Out */
    .dash-burger{display:block;position:static}
    .dash-burger summary{
        list-style:none;
        width:30px;
        height:30px;
        margin-left:-4px;
        display:grid;
        place-items:center;
        cursor:pointer;
    }
    .dash-burger summary::-webkit-details-marker{display:none}
    .dash-burger__icon,
    .dash-burger__icon::before,
    .dash-burger__icon::after{
        display:block;
        width:18px;
        height:2px;
        border-radius:2px;
        background:#fff;
        transition:transform .15s,width .15s,background .15s;
    }
    .dash-burger__icon{position:relative;width:14px;margin-right:4px}
    .dash-burger__icon::before,
    .dash-burger__icon::after{content:"";position:absolute;left:0}
    .dash-burger__icon::before{top:-6px;width:18px}
    .dash-burger__icon::after{top:6px;width:18px}
    .dash-burger[open] .dash-burger__icon{background:transparent;margin-right:0}
    .dash-burger[open] .dash-burger__icon::before{top:0;width:24px;left:-5px;transform:rotate(45deg)}
    .dash-burger[open] .dash-burger__icon::after{top:0;width:24px;left:-5px;transform:rotate(-45deg)}
    .dash-burger__panel{
        position:absolute;
        left:0;
        right:0;
        top:100%;
        z-index:70;
        padding:20px 20px 24px;
        border-radius:0 0 26px 26px;
        background:rgba(0,0,0,.92);
        backdrop-filter:blur(6px);
        box-shadow:0 30px 60px rgba(0,0,0,.6);
    }
    .dash-burger__account{
        display:flex;
        align-items:center;
        justify-content:space-between;
        gap:12px;
        margin-bottom:22px;
    }
    .dash-burger__account .dash-avatar{width:50px;height:50px;flex-basis:50px;font-size:22px}
    .dash-burger__account .dash-username{max-width:150px}
    .dash-burger__account .dash-plan-pill{flex:0 0 auto}
    .dash-burger__pricing{
        display:flex;
        align-items:center;
        justify-content:center;
        height:39px;
        margin-bottom:20px;
        border:1px solid transparent;
        border-radius:12px;
        background:linear-gradient(#000,#000) padding-box,var(--grad) border-box;
        color:var(--green);
        font-size:18px;
        text-decoration:none;
    }
    .dash-burger__logout button{
        width:auto;
        height:auto;
        display:inline-flex;
        align-items:center;
        gap:18px;
        color:#fff;
        font-size:16px;
        font-weight:700;
        opacity:1;
    }

    .dash-main{min-height:auto}
    .dash-content{
        width:100%;
        padding:30px 20px 40px;
    }
    .dash-title-block{margin-bottom:14px}
    .dash-title-block h1{font-size:32px;line-height:38px;margin-bottom:4px}
    .dash-title-block p{font-size:16px;line-height:22px}

    .dash-search-panel{
        grid-template-columns:1fr 50px;
        gap:10px;
        margin-bottom:35px;
    }
    .dash-search-panel input{height:42px;padding:0 19px;font-size:16px}
    .dash-search-panel button[type="submit"]{width:50px;height:42px;gap:0}
    .dash-search-panel button[type="submit"] span{display:none}
    .dash-search-panel button[type="submit"] svg{width:22px;height:22px}
    .dash-search-panel.has-error{margin-bottom:44px}

    .dash-panel__head{padding:20px 20px 0;gap:12px}
    .dash-panel h2{font-size:20px}
    .dash-panel p{font-size:14px;margin-top:9px}
    .dash-panel--recent{min-height:0;margin-bottom:30px}
    .dash-filter-trigger{
        min-width:39px;
        width:39px;
        height:39px;
        padding:0;
        gap:0;
        margin:-10px -9px 0 0;
    }
    .dash-filter-trigger span{display:none}

    .recent-loading{min-height:260px}
    .recent-empty{min-height:0;padding:24px 16px 40px}
    .recent-empty img{width:60px;height:60px;margin-bottom:24px}
    .recent-empty h3{font-size:25px;margin-bottom:20px}
    .primary-action{min-width:0;height:34px;padding:0 12px;gap:8px;font-size:14px;font-weight:600}
    .primary-action img{width:16px;height:16px}

    .recent-list{padding:24px 20px 20px}
    .recent-table-wrap,.recent-pagination{display:none}
    .mobile-report-list{
        display:flex;
        flex-direction:column;
        gap:20px;
    }
    .mobile-report-card{
        display:grid;
        grid-template-columns:1fr;
        gap:12px;
        padding:0;
    }
    .mobile-report-row{
        display:grid;
        grid-template-columns:131px 1fr;
        align-items:center;
        gap:0;
        min-height:37px;
    }
    .mobile-report-label{color:#fff;font-size:14px;line-height:22px}
    .mobile-userline{display:flex;align-items:center;gap:8px;min-width:0}
    .mobile-userline .report-avatar{width:50px;height:50px;flex-basis:50px;font-size:22px}
    .mobile-userline .report-name strong{font-size:16px;max-width:120px}
    .mobile-userline .report-name span{font-size:12px;margin-top:5px}
    .mobile-report-row .metric-cell{justify-content:start;column-gap:10px}
    .mobile-report-row .metric-value,
    .mobile-report-row .metric-delta{text-align:left;justify-self:start}
    .mobile-report-row .report-date{align-items:flex-start;text-align:left}
    .mobile-report-row .growth-sparkline{min-width:62px;height:42px}
    .mobile-actions{margin-top:4px}
    .mobile-actions .report-actions{
        display:grid;
        grid-template-columns:1fr 1fr;
        gap:20px;
    }
    .mobile-actions .small-action{width:100%;height:32px;min-width:0;font-size:12px;gap:10px}
    /* Title and filter button on one line, the subtitle under both */
    .dash-panel--recent .dash-panel__head{display:grid;grid-template-columns:1fr auto;column-gap:12px}
    .dash-panel--recent .dash-panel__head > div{display:contents}
    .dash-panel--recent .dash-panel__head h2{grid-column:1;grid-row:1;align-self:center}
    .dash-panel--recent .dash-panel__head p{grid-column:1 / -1;grid-row:2}
    .dash-panel--recent .dash-filter-trigger{grid-column:2;grid-row:1}

    .dash-panel--usage{min-height:162px;padding:20px 20px 20px}
    .usage-head{display:block;margin-bottom:22px}
    .usage-head h2{font-size:20px}
    .usage-head p{font-size:14px;margin-top:9px}
    .usage-head > span{display:none}
    .usage-track{height:9px;margin-bottom:20px}
    .usage-mobile-count{
        display:block;
        margin:0!important;
        color:#fff!important;
        font-size:16px!important;
    }
    .usage-mobile-count strong{font-weight:400}

    .auth-footer{padding:0 20px 34px}
    .auth-footer__brand{margin-bottom:20px}
    .auth-footer__utility{gap:15px 16px;max-width:340px;margin-bottom:22px}
    .auth-footer__legal{max-width:310px}

    .mobile-dash-nav{
        position:fixed;
        left:0;
        right:0;
        bottom:0;
        z-index:80;
        display:grid;
        grid-template-columns:repeat(4,1fr);
        gap:4px;
        height:83px;
        padding:8px 14px 8px;
        border-radius:26px 26px 0 0;
        background:rgba(10,10,10,.92);
        backdrop-filter:blur(20px);
        -webkit-backdrop-filter:blur(20px);
        border-top:1px solid rgba(17,212,17,.2);
    }
    .mobile-dash-nav a{
        position:relative;
        display:flex;
        flex-direction:column;
        align-items:center;
        justify-content:center;
        gap:6px;
        color:#fff;
        text-decoration:none;
        font-size:12px;
        line-height:1;
        border:1px solid transparent;
        border-radius:16px;
    }
    .mobile-dash-nav a.is-active{
        background:linear-gradient(#111,#111) padding-box,
            linear-gradient(160deg,#C9E88A 0%,rgba(113,130,77,0) 100%) border-box;
    }
    .mobile-dash-nav img{width:28px;height:28px;object-fit:contain}

    .filter-overlay{align-items:flex-start;padding:90px 20px 100px;overflow:auto}
    .filter-modal{width:min(100%,350px);padding:20px 20px 22px}
    .filter-modal h2{font-size:20px}
    .filter-group{margin-bottom:14px}
    .filter-group label{font-size:14px;margin-bottom:8px}
    .filter-row{gap:8px}
    .filter-row input,
    .date-picker{height:42px}
    .filter-actions{gap:14px;margin-top:20px}
    .filter-actions button{height:42px;font-size:15px}
}

@media (max-width:380px){
    .dash-header__inner{padding:0 14px}
    .dash-brand img{width:170px}
    .dash-content{padding-left:14px;padding-right:14px}
    .recent-list{padding-left:14px;padding-right:14px}
    .mobile-report-row{grid-template-columns:112px 1fr}
    .mobile-actions{gap:12px}
    .menu{padding:12px}
    .menu-grid{gap:8px}
    .lang a{padding:11px 9px;gap:8px;font-size:14px}
}

@media (prefers-reduced-motion:reduce){
    *,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;scroll-behavior:auto!important;transition-duration:.01ms!important}
}
