:root{
  --bg:#07080a;--card:#111318;--card2:#0c0e12;--line:#242731;--text:#f5f7fa;
  --muted:#8e95a3;--accent:#ef233c;--accent2:#ff5d73;--ok:#30d158;
  --warn:#ff9f0a;--bad:#ff453a;--safe-bottom:env(safe-area-inset-bottom,0px);
  --safe-top:env(safe-area-inset-top,0px);
}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html{background:var(--bg);overscroll-behavior:none}
body{
  margin:0;min-height:100vh;color:var(--text);
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,sans-serif;
  background:
    radial-gradient(circle at 88% -5%,rgba(239,35,60,.20),transparent 27%),
    radial-gradient(circle at 0 45%,rgba(239,35,60,.05),transparent 24%),
    #07080a;
  overscroll-behavior-y:none;
}
body.modal-open{overflow:hidden;touch-action:none}
body:before{
  content:"";position:fixed;inset:0;pointer-events:none;opacity:.40;
  background-image:
    linear-gradient(rgba(255,255,255,.014) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.014) 1px,transparent 1px);
  background-size:34px 34px;
}
.app{
  max-width:1220px;margin:auto;
  padding:calc(18px + var(--safe-top)) 20px calc(126px + var(--safe-bottom));
  position:relative;
}

/* HEADER */
header{
  display:flex;justify-content:space-between;align-items:center;
  padding:8px 0 16px;gap:14px;
}
.brand-wrap{display:flex;align-items:center;gap:12px;min-width:0}
.brand-mark{
  width:43px;height:43px;border-radius:14px;display:grid;place-items:center;
  flex:0 0 auto;font-weight:950;font-size:20px;color:#ff7688;
  border:1px solid #4b222a;
  background:linear-gradient(145deg,#251016,#0b0c0f);
  box-shadow:0 10px 30px rgba(239,35,60,.10);
}
.brand-copy{min-width:0}
h1{
  font-size:clamp(24px,4vw,42px);line-height:1.05;margin:5px 0 7px;
  letter-spacing:-.04em;white-space:nowrap;
}
h2,h3{margin:0} h2{font-size:21px} h3{font-size:15px}
.version{
  font-size:10px;padding:4px 7px;border:1px solid #47222a;border-radius:99px;
  color:#ff7b8b;vertical-align:middle;letter-spacing:.08em;
}
.eyebrow{
  font-size:9px;letter-spacing:.20em;color:#ff7486;font-weight:850;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.live{
  display:flex;align-items:center;gap:6px;color:#7f8794;
  font-size:10px;font-weight:750;letter-spacing:.04em;
}
.live i{
  width:7px;height:7px;border-radius:50%;background:var(--ok);
  box-shadow:0 0 12px rgba(48,209,88,.65);
  animation:pulse 1.8s infinite;
}
@keyframes pulse{0%,100%{opacity:1}50%{opacity:.45}}
.head-actions,.actions{display:flex;gap:8px;flex-wrap:wrap}

/* BUTTONS */
button{
  border:0;border-radius:11px;background:linear-gradient(135deg,var(--accent),#c9152c);
  color:white;padding:10px 13px;font-weight:800;cursor:pointer;
  box-shadow:0 8px 24px rgba(239,35,60,.13);min-height:40px;
}
button:active{transform:scale(.985)}
button.ghost{
  background:#15171d;border:1px solid #2d3039;box-shadow:none;color:#d8dbe2;
}
button.danger{
  background:#260d12;border:1px solid #4e1e28;color:#ff7888;box-shadow:none;
}

/* CARDS */
.card{
  position:relative;overflow:hidden;
  background:linear-gradient(180deg,rgba(18,20,25,.98),rgba(12,14,18,.98));
  border:1px solid var(--line);border-radius:19px;padding:17px;
  box-shadow:0 16px 42px rgba(0,0,0,.24);
}
.card:before{
  content:"";position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(115deg,transparent 0 42%,rgba(255,255,255,.018) 50%,transparent 58%);
}
.login{max-width:500px;margin:10vh auto;text-align:center;padding:30px}
.login p,.section-title p{color:var(--muted);font-size:12px;margin:6px 0 0}
.shield{
  width:58px;height:58px;border:1px solid #55202a;border-radius:17px;
  margin:0 auto 16px;display:grid;place-items:center;font-weight:950;font-size:25px;
  color:#ff6b7c;background:linear-gradient(145deg,#291017,#100c10);
}
input{
  width:100%;padding:14px 15px;margin:14px 0 12px;border-radius:12px;
  border:1px solid #292c34;background:#08090c;color:white;outline:0;
}
.login button{width:100%}

/* STATS */
.stats{display:grid;grid-template-columns:repeat(6,1fr);gap:11px;margin-bottom:17px}
.stat{
  position:relative;overflow:hidden;padding:14px;border-radius:16px;
  background:linear-gradient(160deg,#121419,#0d0f13);border:1px solid var(--line);
}
.stat:after{
  content:"";position:absolute;width:60px;height:60px;border-radius:50%;
  right:-30px;top:-30px;background:rgba(239,35,60,.09);
}
.stat b{display:block;font-size:24px;letter-spacing:-.04em}
.stat span{font-size:9px;color:var(--muted);font-weight:800;letter-spacing:.02em}

/* SECTIONS */
.section-title{
  display:flex;justify-content:space-between;align-items:end;gap:15px;
  margin:18px 0 11px;
}
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:13px;margin-bottom:13px}

.item{
  display:grid;grid-template-columns:auto 1fr auto;gap:10px;align-items:center;
  padding:12px 0;border-bottom:1px solid #20232a;position:relative;
}
.item:last-child{border-bottom:0}
.dot{width:9px;height:9px;border-radius:50%;background:#6e7480;flex:0 0 auto}
.dot.online,.dot.active{background:var(--ok);box-shadow:0 0 13px rgba(48,209,88,.45)}
.dot.warning{background:var(--warn)}
.dot.offline,.dot.critical{background:var(--bad);box-shadow:0 0 13px rgba(255,69,58,.35)}
.meta{color:var(--muted);font-size:11px;margin-top:4px;overflow-wrap:anywhere}
.right{text-align:right;font-size:11px;color:#aab0bc}
.right strong{display:block;color:#f1f3f7;font-size:13px}

.tag{
  display:inline-flex;align-items:center;padding:4px 7px;border:1px solid #2d3038;
  border-radius:99px;color:#aeb4bf;font-size:8px;font-weight:850;margin-left:5px;
  text-transform:uppercase;letter-spacing:.05em;vertical-align:1px;
}

.service-card{margin-bottom:12px}
.service-card:last-child{margin-bottom:0}
.service-top{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}
.service-title{display:flex;gap:10px;align-items:flex-start;min-width:0}
.service-title>div{min-width:0}
.service-title b{font-size:15px}
.service-title .meta{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:52vw}

/* STATUS CHIP */
.status-chip{
  display:inline-flex;align-items:center;gap:6px;padding:5px 8px;border-radius:99px;
  font-size:9px;font-weight:900;letter-spacing:.05em;border:1px solid #2d3038;
  background:#12141a;color:#c6cbd5;
}
.status-chip.online{color:#62df7d;border-color:#244b2e;background:#0d1c11}
.status-chip.warning{color:#ffb43d;border-color:#553a13;background:#211506}
.status-chip.offline{color:#ff7888;border-color:#55222a;background:#241014}

/* KPIS */
.kpis{
  display:grid;grid-template-columns:repeat(4,1fr);gap:7px;margin-top:13px;
}
.kpi{
  position:relative;background:#0b0d11;border:1px solid #20232a;
  border-radius:11px;padding:9px;min-width:0;
}
.kpi span{
  display:block;font-size:8px;color:#767e8b;text-transform:uppercase;
  font-weight:850;letter-spacing:.05em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.kpi b{font-size:13px;white-space:nowrap}

/* RESOURCE + mini chart */
.resource{margin-top:10px}
.resource-head{display:flex;justify-content:space-between;color:#aeb4bf;font-size:10px}
.bar{
  height:6px;background:#242731;border-radius:99px;overflow:hidden;margin-top:5px;
}
.bar i{
  display:block;height:100%;background:linear-gradient(90deg,#c7192e,#ff5369);
  border-radius:99px;transition:width .45s ease;
}
.signal{
  display:flex;align-items:flex-end;gap:2px;height:24px;margin-top:8px;opacity:.85;
}
.signal i{
  flex:1;min-width:2px;border-radius:2px 2px 0 0;
  background:linear-gradient(180deg,#ff667b,#8f1424);
}

/* ALERT */
.snip{
  white-space:pre-wrap;word-break:break-all;background:#08090c;border:1px solid #252830;
  border-radius:11px;padding:10px;font-size:10px;color:#ff9ba7;margin-top:10px;
}
.alert{border-left:3px solid #5c626d;margin-bottom:9px}
.alert.critical{border-left-color:var(--bad)}
.alert.warning{border-left-color:var(--warn)}
.alert.success{border-left-color:var(--ok)}

/* NAV */
nav{
  position:fixed;z-index:20;left:50%;
  bottom:calc(10px + var(--safe-bottom));
  transform:translateX(-50%);
  width:min(690px,calc(100% - 20px));
  display:grid;grid-template-columns:repeat(5,1fr);padding:7px;
  background:rgba(11,12,16,.93);backdrop-filter:blur(22px);
  border:1px solid #2a2d35;border-radius:19px;
  box-shadow:0 18px 50px rgba(0,0,0,.50);
}
nav button{
  background:transparent;box-shadow:none;color:#858c98;padding:8px 4px;
  font-size:17px;min-height:48px;border:1px solid transparent;
}
nav button span{display:block;font-size:8px;margin-top:3px;font-weight:750}
nav button.active{
  background:#251016;color:#fff;border-color:#45202a;
}

/* MODAL */
.modal[hidden]{display:none !important}
.modal{
  position:fixed;z-index:50;inset:0;background:rgba(0,0,0,.76);
  backdrop-filter:blur(9px);display:grid;place-items:center;
  padding:calc(16px + var(--safe-top)) 16px calc(16px + var(--safe-bottom));
  overflow:auto;
}
.modal-card{
  width:min(760px,100%);max-height:min(88vh,760px);overflow:auto;
  overscroll-behavior:contain;-webkit-overflow-scrolling:touch;
  background:#101217;border:1px solid #2d3038;border-radius:20px;
  padding:17px;box-shadow:0 30px 80px rgba(0,0,0,.55);
}
.modal-head{
  position:sticky;top:-17px;z-index:3;display:flex;justify-content:space-between;
  align-items:center;margin:-17px -17px 16px;padding:17px;
  background:rgba(16,18,23,.97);backdrop-filter:blur(15px);
  border-bottom:1px solid #23262e;
}
.modal-head button{
  width:44px;height:44px;padding:0;display:grid;place-items:center;font-size:19px;
}
.chart{
  height:150px;display:flex;align-items:flex-end;gap:4px;
  border-bottom:1px solid #292c33;padding-top:12px;
}
.chart-col{
  flex:1;min-width:3px;position:relative;background:linear-gradient(180deg,#ff5d73,#9f1426);
  border-radius:4px 4px 0 0;
}
.chart-col:hover:after{
  content:attr(data-tip);position:absolute;bottom:100%;left:50%;transform:translateX(-50%);
  background:#07080a;border:1px solid #30333c;border-radius:7px;padding:5px;
  color:white;font-size:9px;white-space:nowrap;z-index:2;
}
.detail-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:14px}
.empty{color:var(--muted);font-size:12px;padding:14px 0}

/* TABLET */
@media(max-width:900px){
  .stats{grid-template-columns:repeat(3,1fr)}
}

/* MOBILE */
@media(max-width:700px){
  .app{
    padding:calc(10px + var(--safe-top)) 10px calc(128px + var(--safe-bottom));
  }
  header{
    position:sticky;top:0;z-index:12;
    margin:0 -10px 10px;padding:10px 10px 11px;
    background:linear-gradient(180deg,rgba(7,8,10,.98),rgba(7,8,10,.90),rgba(7,8,10,0));
    backdrop-filter:blur(16px);align-items:center;
  }
  .brand-mark{width:38px;height:38px;border-radius:12px;font-size:18px}
  h1{font-size:20px;margin:3px 0 5px}
  .version{font-size:8px;padding:3px 5px}
  .eyebrow{font-size:7.5px;max-width:210px}
  .live{font-size:8px}
  .live span{display:none}
  .head-actions{gap:5px}
  .head-actions button{
    min-height:38px;padding:8px 9px;font-size:0;
  }
  #logoutBtn:after{content:"↗";font-size:16px}
  #installBtn:after{content:"↓";font-size:16px}

  .stats{grid-template-columns:repeat(2,1fr);gap:8px;margin-bottom:12px}
  .stat{padding:12px;border-radius:14px}
  .stat b{font-size:21px}
  .stat span{font-size:7.5px}

  .grid2{grid-template-columns:1fr;gap:10px}
  .card{border-radius:16px;padding:13px}
  .section-title{
    align-items:flex-start;flex-direction:column;margin:13px 0 8px;gap:8px;
  }
  .section-title h2{font-size:18px}
  .section-title p{font-size:10px;line-height:1.35}
  .section-title .actions{width:100%;display:grid;grid-template-columns:1fr 1fr}
  .section-title .actions button{width:100%;font-size:11px}
  .section-title>button{font-size:11px}

  .service-card{margin-bottom:9px}
  .service-top{gap:8px}
  .service-title .meta{max-width:62vw;font-size:10px}
  .service-title b{font-size:14px}
  .tag{display:inline-flex;margin:4px 0 0 0;font-size:7px}
  .right{font-size:9px}
  .right strong{font-size:11px}

  .item{
    grid-template-columns:auto minmax(0,1fr);padding:10px 0;gap:9px;
  }
  .item .right{
    grid-column:2;text-align:left;display:flex;gap:7px;align-items:center;flex-wrap:wrap;
  }

  .kpis{grid-template-columns:repeat(2,1fr);gap:6px;margin-top:10px}
  .kpi{padding:8px;border-radius:10px}
  .kpi span{font-size:7.5px}
  .kpi b{font-size:12px}

  .resource{margin-top:8px}
  .resource-head{font-size:9px}
  .bar{height:5px}

  .actions{gap:6px}
  .service-card .actions{
    display:grid;grid-template-columns:1fr 1fr;
  }
  .service-card .actions button{
    width:100%;font-size:10px;padding:8px 7px;min-height:36px;
  }
  .service-card .actions button.danger{
    grid-column:1/-1;
  }

  nav{
    width:calc(100% - 16px);
    bottom:calc(8px + var(--safe-bottom));
    border-radius:17px;padding:6px;
  }
  nav button{min-height:50px;font-size:16px;padding:7px 2px}
  nav button span{font-size:7.5px}

  .modal{
    align-items:end;padding:0;
  }
  .modal-card{
    width:100%;max-height:88dvh;border-radius:22px 22px 0 0;
    padding:16px 14px calc(18px + var(--safe-bottom));
    border-left:0;border-right:0;border-bottom:0;
    animation:sheetUp .20s ease-out;
  }
  @keyframes sheetUp{
    from{transform:translateY(18px);opacity:.6}
    to{transform:translateY(0);opacity:1}
  }
  .modal-head{
    top:-16px;margin:-16px -14px 14px;padding:14px;
  }
  .modal-head h2{font-size:18px}
  .modal-head button{width:42px;height:42px}
  .detail-grid{grid-template-columns:repeat(2,1fr)}
  .chart{height:125px;gap:3px}
}

/* Small phones */
@media(max-width:380px){
  .eyebrow{max-width:170px}
  h1{font-size:18px}
  .brand-mark{width:35px;height:35px}
  .stat b{font-size:19px}
}


/* R1.2 TRAFFIC ANALYTICS PRO */
.analytics-hero{
  display:grid;grid-template-columns:1.1fr 1fr 1fr;gap:10px;margin-bottom:12px;
}
.analytics-big{
  background:linear-gradient(145deg,#16121a,#0c0e12);
  border:1px solid #2b2831;border-radius:16px;padding:16px;
}
.analytics-big span{
  display:block;color:#848b98;font-size:9px;font-weight:850;letter-spacing:.08em;
  text-transform:uppercase;
}
.analytics-big b{display:block;font-size:28px;margin-top:4px;letter-spacing:-.04em}
.analytics-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.rank{counter-reset:item}
.rank-row{
  display:grid;grid-template-columns:28px minmax(0,1fr) auto;gap:8px;
  align-items:center;padding:9px 0;border-bottom:1px solid #20232a;
}
.rank-row:last-child{border-bottom:0}
.rank-num{
  width:24px;height:24px;border-radius:8px;background:#171920;border:1px solid #292c34;
  display:grid;place-items:center;font-size:9px;color:#8e95a3;font-weight:900;
}
.rank-main{min-width:0}
.rank-main b{display:block;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rank-main span{display:block;color:#7f8794;font-size:9px;margin-top:2px}
.rank-val{text-align:right}
.rank-val b{display:block;font-size:12px}
.rank-val span{font-size:8px;color:#7f8794}
.source-bar{
  height:5px;background:#23262e;border-radius:99px;overflow:hidden;margin-top:5px;
}
.source-bar i{
  display:block;height:100%;border-radius:99px;
  background:linear-gradient(90deg,#c7192e,#ff6278);
}
.analytics-site{
  display:grid;grid-template-columns:minmax(0,1fr) repeat(3,90px);gap:8px;
  align-items:center;padding:10px 0;border-bottom:1px solid #20232a;
}
.analytics-site:last-child{border-bottom:0}
.analytics-site .site-name{min-width:0}
.analytics-site .site-name b{display:block;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.analytics-site .site-name span{font-size:9px;color:#7d8490}
.mini-num{text-align:right}
.mini-num span{display:block;font-size:8px;color:#757d89;text-transform:uppercase;font-weight:850}
.mini-num b{font-size:12px}
.realtime-dot{
  display:inline-block;width:7px;height:7px;border-radius:50%;background:#30d158;
  box-shadow:0 0 10px rgba(48,209,88,.5);margin-right:5px;
}
@media(max-width:700px){
  .analytics-hero{grid-template-columns:repeat(3,1fr);gap:6px}
  .analytics-big{padding:11px;border-radius:13px}
  .analytics-big span{font-size:7px}
  .analytics-big b{font-size:20px}
  .analytics-grid{grid-template-columns:1fr}
  .analytics-site{grid-template-columns:minmax(0,1fr) 62px 62px 62px;gap:5px}
  .mini-num span{font-size:6.5px}.mini-num b{font-size:10px}
}


/* =========================================================
   R1.2.2 TRAFFIC ANALYTICS PRO
   ========================================================= */

.analytics-pro{
  margin-top:18px;
  padding-bottom:20px;
}

.pro-title{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:16px;
  margin:20px 0 14px;
}

.pro-title h2{
  margin:5px 0 4px;
  font-size:24px;
  letter-spacing:-.03em;
}

.pro-title p{
  margin:0;
  color:var(--muted,#8f919b);
  font-size:13px;
}

.pro-eyebrow{
  color:#ef4962;
  font-size:10px;
  font-weight:800;
  letter-spacing:.18em;
}

.pro-live{
  flex:none;
  display:inline-flex;
  align-items:center;
  gap:7px;
  padding:8px 11px;
  border:1px solid rgba(49,220,100,.25);
  border-radius:999px;
  background:rgba(49,220,100,.06);
  color:#65e98d;
  font-size:10px;
  font-weight:800;
  letter-spacing:.08em;
}

.pro-live i{
  width:7px;
  height:7px;
  border-radius:50%;
  background:#31dc64;
  box-shadow:0 0 12px rgba(49,220,100,.8);
}

.pro-kpis{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
  margin-bottom:12px;
}

.pro-kpi{
  min-width:0;
  padding:16px;
  border:1px solid rgba(255,255,255,.09);
  border-radius:18px;
  background:
    linear-gradient(
      150deg,
      rgba(255,255,255,.035),
      rgba(255,255,255,.012)
    );
}

.pro-kpi span{
  display:block;
  margin-bottom:8px;
  color:#878995;
  font-size:9px;
  font-weight:800;
  letter-spacing:.12em;
}

.pro-kpi b{
  display:block;
  overflow:hidden;
  color:#f6f6f8;
  font-size:22px;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.pro-kpi small{
  display:block;
  overflow:hidden;
  margin-top:5px;
  color:#777a85;
  font-size:10px;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.pro-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
  margin-top:12px;
}

.pro-card-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:14px;
}

.pro-card-head span{
  display:block;
  margin-bottom:4px;
  color:#777a85;
  font-size:9px;
  font-weight:800;
  letter-spacing:.12em;
}

.pro-card-head h3{
  margin:0;
}

.pro-card-head strong{
  color:#f1f1f4;
  font-size:12px;
}

.pro-row{
  display:grid;
  grid-template-columns:25px minmax(0,1fr) 55px;
  align-items:center;
  gap:9px;
  padding:9px 0;
  border-bottom:1px solid rgba(255,255,255,.055);
}

.pro-row:last-child{
  border-bottom:0;
}

.pro-num{
  display:grid;
  place-items:center;
  width:22px;
  height:22px;
  border-radius:7px;
  background:rgba(255,255,255,.045);
  color:#858792;
  font-size:9px;
  font-weight:800;
}

.pro-main{
  min-width:0;
}

.pro-main b{
  display:block;
  overflow:hidden;
  color:#dddde2;
  font-size:12px;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.pro-bar{
  overflow:hidden;
  height:3px;
  margin-top:6px;
  border-radius:999px;
  background:rgba(255,255,255,.055);
}

.pro-bar i{
  display:block;
  height:100%;
  border-radius:999px;
  background:linear-gradient(
    90deg,
    #9d1731,
    #f34360
  );
  box-shadow:0 0 10px rgba(235,43,76,.25);
}

.pro-value{
  text-align:right;
}

.pro-value b{
  display:block;
  color:#f1f1f4;
  font-size:12px;
}

.pro-value span{
  display:block;
  margin-top:2px;
  color:#747680;
  font-size:8px;
  text-transform:uppercase;
}

.pro-hour-card{
  overflow:hidden;
}

.pro-hourly{
  display:flex;
  align-items:flex-end;
  gap:4px;
  height:155px;
  padding-top:14px;
}

.pro-hour{
  position:relative;
  display:flex;
  flex:1 1 0;
  align-items:flex-end;
  justify-content:center;
  height:100%;
  min-width:0;
}

.pro-hour i{
  display:block;
  width:100%;
  min-height:2px;
  border-radius:4px 4px 2px 2px;
  background:linear-gradient(
    180deg,
    #f34863,
    #821629
  );
  box-shadow:0 0 9px rgba(239,49,80,.14);
}

.pro-hour span{
  position:absolute;
  bottom:-16px;
  color:#696b74;
  font-size:7px;
}

@media(max-width:760px){

  .pro-title{
    align-items:flex-start;
  }

  .pro-title h2{
    font-size:21px;
  }

  .pro-live{
    padding:7px 9px;
    font-size:8px;
  }

  .pro-kpis{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .pro-kpi{
    padding:13px;
    border-radius:15px;
  }

  .pro-kpi b{
    font-size:18px;
  }

  .pro-grid{
    grid-template-columns:1fr;
  }

  .pro-hourly{
    gap:2px;
    height:125px;
  }

  .pro-row{
    grid-template-columns:22px minmax(0,1fr) 48px;
  }
}



/* =========================================================
   R1.2.2.1 TRAFFIC UI CONSOLIDATION VIP
   ========================================================= */

.r1221-unified{
  display:block;
  width:100%;
  padding-bottom:72px;
}


.r1221-kpis{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
  margin-bottom:12px;
}


.r1221-kpi{
  position:relative;
  overflow:hidden;
  min-width:0;

  padding:15px 16px;

  border:
    1px solid
    rgba(255,255,255,.09);

  border-radius:17px;

  background:
    linear-gradient(
      145deg,
      rgba(255,255,255,.035),
      rgba(255,255,255,.012)
    );
}


.r1221-kpi::after{
  content:"";

  position:absolute;

  top:0;
  right:0;

  width:52px;
  height:52px;

  border-radius:
    0 0 0 52px;

  background:
    rgba(232,35,68,.07);
}


.r1221-kpi span{
  position:relative;
  z-index:1;

  display:block;

  margin-bottom:7px;

  color:#858894;

  font-size:9px;
  font-weight:800;

  letter-spacing:.10em;
}


.r1221-kpi b{
  position:relative;
  z-index:1;

  display:flex;
  align-items:center;
  gap:7px;

  overflow:hidden;

  color:#f5f5f7;

  font-size:23px;
  line-height:1.1;

  letter-spacing:-.025em;

  text-overflow:ellipsis;
  white-space:nowrap;
}


.r1221-kpi small{
  position:relative;
  z-index:1;

  display:block;

  overflow:hidden;

  margin-top:6px;

  color:#70737d;

  font-size:9px;

  text-overflow:ellipsis;
  white-space:nowrap;
}


.r1221-kpi-live{
  border-color:
    rgba(53,220,105,.17);
}


.r1221-live-dot{
  display:inline-block;

  flex:none;

  width:7px;
  height:7px;

  border-radius:50%;

  background:#32df68;

  box-shadow:
    0 0 10px
    rgba(50,223,104,.72);
}


.r1221-card{
  margin-bottom:12px;
}


.r1221-card-head{
  display:flex;

  align-items:flex-start;
  justify-content:space-between;

  gap:12px;

  margin-bottom:14px;
}


.r1221-card-head span{
  display:block;

  margin-bottom:4px;

  color:#747783;

  font-size:9px;
  font-weight:800;

  letter-spacing:.12em;
}


.r1221-card-head h3{
  margin:0;

  color:#f1f1f3;

  font-size:15px;

  letter-spacing:-.015em;
}


.r1221-card-head strong{
  flex:none;

  color:#d8d9dd;

  font-size:11px;
}


.r1221-grid{
  display:grid;

  grid-template-columns:
    repeat(2,minmax(0,1fr));

  gap:12px;
}


.r1221-sites{
  overflow:hidden;
}


.r1221-site-row{
  display:grid;

  grid-template-columns:
    minmax(0,1fr)
    90px
    75px
    75px;

  align-items:center;

  gap:10px;

  min-height:54px;

  border-bottom:
    1px solid
    rgba(255,255,255,.055);
}


.r1221-site-row:last-child{
  border-bottom:0;
}


.r1221-site-main{
  min-width:0;
}


.r1221-site-main b{
  display:block;

  overflow:hidden;

  color:#e8e8eb;

  font-size:12px;

  text-overflow:ellipsis;
  white-space:nowrap;
}


.r1221-site-main span{
  display:block;

  overflow:hidden;

  margin-top:4px;

  color:#686b75;

  font-size:9px;

  text-overflow:ellipsis;
  white-space:nowrap;
}


.r1221-site-stat{
  min-width:0;

  text-align:right;
}


.r1221-site-stat span{
  display:block;

  margin-bottom:3px;

  color:#666975;

  font-size:7px;
  font-weight:800;

  letter-spacing:.06em;

  text-transform:uppercase;
}


.r1221-site-stat b{
  display:flex;

  align-items:center;
  justify-content:flex-end;

  gap:5px;

  color:#ededf0;

  font-size:12px;
}


.r1221-rank{
  display:grid;

  grid-template-columns:
    23px
    minmax(0,1fr)
    50px;

  align-items:center;

  gap:9px;

  padding:9px 0;

  border-bottom:
    1px solid
    rgba(255,255,255,.05);
}


.r1221-rank:last-child{
  border-bottom:0;
}


.r1221-rank-num{
  display:grid;
  place-items:center;

  width:22px;
  height:22px;

  border-radius:7px;

  background:
    rgba(255,255,255,.045);

  color:#82858f;

  font-size:9px;
  font-weight:800;
}


.r1221-rank-main{
  min-width:0;
}


.r1221-rank-name{
  overflow:hidden;

  color:#d9d9dd;

  font-size:11px;
  font-weight:700;

  text-overflow:ellipsis;
  white-space:nowrap;
}


.r1221-rank-bar{
  overflow:hidden;

  height:3px;

  margin-top:6px;

  border-radius:999px;

  background:
    rgba(255,255,255,.055);
}


.r1221-rank-bar i{
  display:block;

  height:100%;

  border-radius:999px;

  background:
    linear-gradient(
      90deg,
      #a31630,
      #f24763
    );

  box-shadow:
    0 0 9px
    rgba(240,50,82,.18);
}


.r1221-rank-value{
  text-align:right;
}


.r1221-rank-value b{
  display:block;

  color:#ededf0;

  font-size:11px;
}


.r1221-rank-value span{
  display:block;

  margin-top:2px;

  color:#666975;

  font-size:7px;

  text-transform:uppercase;
}


.r1221-hourly{
  display:flex;

  align-items:flex-end;

  gap:4px;

  height:150px;

  padding:
    12px
    0
    18px;
}


.r1221-hour{
  position:relative;

  display:flex;

  flex:
    1
    1
    0;

  align-items:flex-end;

  justify-content:center;

  min-width:0;

  height:100%;
}


.r1221-hour i{
  display:block;

  width:100%;

  min-height:2px;

  border-radius:
    4px
    4px
    2px
    2px;

  background:
    linear-gradient(
      180deg,
      #ef4964,
      #96182f
    );

  box-shadow:
    0 0 8px
    rgba(235,41,75,.13);
}


.r1221-hour span{
  position:absolute;

  bottom:-16px;

  color:#60636d;

  font-size:7px;
}


.r1221-online{
  display:flex;

  align-items:center;

  gap:6px;

  color:#70e994 !important;
}


.r1221-footer-note{
  display:flex;

  align-items:center;
  justify-content:center;

  gap:12px;

  padding:
    6px
    0
    4px;

  color:#6f727c;
}


.r1221-footer-note span{
  display:flex;

  align-items:center;

  gap:6px;

  color:#79dc97;

  font-size:8px;
  font-weight:800;

  letter-spacing:.09em;
}


.r1221-footer-note small{
  color:#686b75;

  font-size:8px;
}


/* Remove any residual spacing from old stacked analytics */
#analytics > .analytics-pro{
  margin-top:0;
}


/* =========================================================
   TABLET
   ========================================================= */

@media(max-width:900px){

  .r1221-kpis{
    grid-template-columns:
      repeat(2,minmax(0,1fr));
  }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media(max-width:650px){

  .r1221-unified{
    padding-bottom:84px;
  }


  .r1221-kpis{
    gap:8px;
  }


  .r1221-kpi{
    padding:13px;

    border-radius:15px;
  }


  .r1221-kpi span{
    font-size:8px;
  }


  .r1221-kpi b{
    font-size:19px;
  }


  .r1221-grid{
    grid-template-columns:1fr;

    gap:10px;
  }


  .r1221-card{
    margin-bottom:10px;
  }


  .r1221-site-row{
    grid-template-columns:
      minmax(0,1fr)
      51px
      45px
      50px;

    gap:6px;

    min-height:56px;
  }


  .r1221-site-stat span{
    font-size:6px;
  }


  .r1221-site-stat b{
    font-size:11px;
  }


  .r1221-hourly{
    gap:2px;

    height:118px;
  }


  .r1221-card-head h3{
    font-size:14px;
  }


  .r1221-rank{
    grid-template-columns:
      22px
      minmax(0,1fr)
      44px;
  }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media(max-width:390px){

  .r1221-kpi{
    padding:11px;
  }


  .r1221-kpi b{
    font-size:17px;
  }


  .r1221-site-row{
    grid-template-columns:
      minmax(0,1fr)
      45px
      39px
      43px;
  }

}



/* =========================================================
   R1.2.2.2 TRAFFIC CHART & DATA POLISH
   ========================================================= */


/* ---------------------------------------------------------
   FIX NAV OVERLAP
   --------------------------------------------------------- */

.r1222-unified{
  padding-bottom:130px !important;
}


/* ---------------------------------------------------------
   DAILY CHART
   --------------------------------------------------------- */

.r1222-daily-card{
  overflow:hidden;
}


.r1222-chart-wrap{
  width:100%;
}


.r1222-chart{
  display:flex;

  align-items:stretch;

  gap:5px;

  width:100%;

  height:185px;

  padding:
    10px
    0
    0;
}


.r1222-day{
  display:flex;

  flex:
    1
    1
    0;

  flex-direction:column;

  min-width:0;
}


.r1222-day-bar-area{
  display:flex;

  flex:1;

  align-items:flex-end;

  min-height:0;
}


.r1222-day-bar-area i{
  display:block;

  width:100%;

  min-height:2px;

  border-radius:
    5px
    5px
    2px
    2px;

  transition:
    opacity .18s ease,
    filter .18s ease,
    transform .18s ease;
}


.r1222-day-bar-area i.has-data{
  background:
    linear-gradient(
      180deg,
      #f24a65 0%,
      #c62243 55%,
      #8e152d 100%
    );

  box-shadow:
    0 0 12px
    rgba(237,48,80,.15);
}


.r1222-day-bar-area i.is-zero{
  background:
    rgba(235,53,83,.23);
}


.r1222-day:hover
.r1222-day-bar-area i{
  filter:brightness(1.16);

  transform:
    translateY(-1px);
}


.r1222-day > span{
  display:block;

  height:19px;

  padding-top:6px;

  overflow:hidden;

  color:#656873;

  font-size:7px;

  text-align:center;

  white-space:nowrap;
}


.r1222-chart-legend{
  display:flex;

  align-items:center;
  justify-content:space-between;

  gap:12px;

  margin-top:5px;

  padding-top:10px;

  border-top:
    1px solid
    rgba(255,255,255,.045);
}


.r1222-chart-legend > span{
  display:flex;

  align-items:center;

  gap:6px;

  color:#858893;

  font-size:8px;

  font-weight:700;

  letter-spacing:.04em;
}


.r1222-chart-legend > span i{
  display:block;

  width:14px;
  height:4px;

  border-radius:999px;

  background:
    linear-gradient(
      90deg,
      #a91935,
      #ef4662
    );
}


.r1222-chart-legend small{
  color:#60636d;

  font-size:8px;
}


/* ---------------------------------------------------------
   TOP PAGES
   --------------------------------------------------------- */

.r1222-page-row{
  display:grid;

  grid-template-columns:
    24px
    minmax(0,1fr)
    50px;

  align-items:center;

  gap:9px;

  padding:9px 0;

  border-bottom:
    1px solid
    rgba(255,255,255,.05);
}


.r1222-page-row:last-child{
  border-bottom:0;
}


.r1222-page-num{
  display:grid;

  place-items:center;

  width:22px;
  height:22px;

  border-radius:7px;

  background:
    rgba(255,255,255,.045);

  color:#848691;

  font-size:9px;

  font-weight:800;
}


.r1222-page-main{
  min-width:0;
}


.r1222-page-main b{
  display:block;

  overflow:hidden;

  color:#dedee2;

  font-size:11px;

  text-overflow:ellipsis;

  white-space:nowrap;
}


.r1222-page-main > span{
  display:block;

  margin-top:3px;

  color:#696c76;

  font-size:8px;
}


.r1222-page-bar{
  overflow:hidden;

  height:3px;

  margin-top:6px;

  border-radius:999px;

  background:
    rgba(255,255,255,.055);
}


.r1222-page-bar i{
  display:block;

  height:100%;

  border-radius:999px;

  background:
    linear-gradient(
      90deg,
      #a91934,
      #f04661
    );
}


.r1222-page-value{
  text-align:right;
}


.r1222-page-value b{
  display:block;

  color:#ededf0;

  font-size:11px;
}


.r1222-page-value span{
  display:block;

  margin-top:2px;

  color:#646771;

  font-size:7px;

  text-transform:uppercase;
}


/* ---------------------------------------------------------
   BETTER DENSITY
   --------------------------------------------------------- */

.r1222-unified
.r1221-card{
  border-radius:17px;
}


.r1222-unified
.r1221-grid{
  align-items:start;
}


/* ---------------------------------------------------------
   MOBILE
   --------------------------------------------------------- */

@media(max-width:650px){

  .r1222-unified{
    padding-bottom:145px !important;
  }


  .r1222-chart{
    gap:2px;

    height:145px;
  }


  .r1222-day > span{
    font-size:6px;
  }


  .r1222-page-row{
    grid-template-columns:
      22px
      minmax(0,1fr)
      44px;
  }

}


/* ---------------------------------------------------------
   VERY SMALL MOBILE
   --------------------------------------------------------- */

@media(max-width:390px){

  .r1222-chart{
    gap:1px;

    height:130px;
  }


  .r1222-chart-legend small{
    display:none;
  }

}



/* =========================================================
   R1.2.2.3 SMART NAV DOCK FIX
   ========================================================= */


/* Smooth state change */
#nav.smart-nav-r1223{
  transition:
    transform .24s ease,
    opacity .24s ease,
    width .24s ease,
    background .24s ease,
    border-color .24s ease;
}


/* =========================================================
   LARGE DESKTOP
   >= 1180px

   Convert bottom navigation into a right-side dock.
   It stays outside the main content area instead of
   covering charts/cards.
   ========================================================= */

@media (min-width:1180px){

  #nav.smart-nav-r1223{

    position:fixed !important;

    top:50% !important;
    right:18px !important;
    bottom:auto !important;
    left:auto !important;

    z-index:1000;

    display:flex !important;

    flex-direction:column !important;

    align-items:stretch !important;
    justify-content:center !important;

    gap:6px !important;

    width:76px !important;
    height:auto !important;

    padding:8px !important;

    margin:0 !important;

    border:
      1px solid
      rgba(255,255,255,.085) !important;

    border-radius:20px !important;

    background:
      rgba(10,11,15,.90) !important;

    box-shadow:
      0 16px 45px
      rgba(0,0,0,.34) !important;

    backdrop-filter:
      blur(18px);

    -webkit-backdrop-filter:
      blur(18px);

    transform:
      translateY(-50%) !important;

    opacity:.88;
  }


  #nav.smart-nav-r1223:hover,
  #nav.smart-nav-r1223.smart-nav-hover{

    width:88px !important;

    opacity:1;

    border-color:
      rgba(232,55,85,.18) !important;
  }


  #nav.smart-nav-r1223 button{

    display:flex !important;

    flex-direction:column !important;

    align-items:center !important;
    justify-content:center !important;

    gap:5px !important;

    width:100% !important;
    min-width:0 !important;
    height:58px !important;

    margin:0 !important;
    padding:7px 4px !important;

    border-radius:14px !important;

    transform:none !important;
  }


  #nav.smart-nav-r1223 button span{

    display:block !important;

    max-width:100%;

    overflow:hidden;

    font-size:8px !important;

    line-height:1.1 !important;

    text-align:center;

    text-overflow:ellipsis;

    white-space:nowrap;
  }


  #nav.smart-nav-r1223 button.active{

    background:
      linear-gradient(
        145deg,
        rgba(104,22,39,.52),
        rgba(50,15,24,.72)
      ) !important;

    border:
      1px solid
      rgba(240,69,98,.20) !important;

    box-shadow:
      inset 0 0 18px
      rgba(235,50,82,.045);
  }


  /*
   * R1.2.2.2 needed large bottom padding because nav
   * was sitting across the content.
   * Side dock no longer needs it.
   */

  .r1222-unified{
    padding-bottom:48px !important;
  }

}


/* =========================================================
   LAPTOP / TABLET LANDSCAPE
   901px - 1179px

   Keep bottom dock, but smart-hide while scrolling down.
   ========================================================= */

@media
(min-width:901px)
and
(max-width:1179px){

  #nav.smart-nav-r1223{

    transform:
      translateX(-50%)
      translateY(0) !important;

    opacity:1;
  }


  #nav.smart-nav-r1223.smart-nav-hide{

    transform:
      translateX(-50%)
      translateY(calc(100% + 24px)) !important;

    opacity:0;
  }


  .r1222-unified{
    padding-bottom:110px !important;
  }

}


/* =========================================================
   MOBILE
   <= 900px

   Preserve current bottom navigation.
   No auto hide.
   ========================================================= */

@media (max-width:900px){

  #nav.smart-nav-r1223{

    opacity:1 !important;
  }


  #nav.smart-nav-r1223.smart-nav-hide{

    opacity:1 !important;

    transform:none;
  }


  .r1222-unified{
    padding-bottom:145px !important;
  }

}


/* =========================================================
   VERY WIDE DESKTOP
   slightly more breathing room from screen edge
   ========================================================= */

@media (min-width:1500px){

  #nav.smart-nav-r1223{
    right:28px !important;
  }

}

