:root {
  --blue: #0768bd;
  --blue-2: #0b82e6;
  --soft-blue: #dbe8ff;
  --ink: #111827;
  --muted: #667085;
  --line: #d8dde7;
  --bg: #fbf8fa;
  --card: #fff;
  --shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--bg);
  font-family: Tahoma, Arial, sans-serif;
  line-height: 1.6;
}

body.login-page {
  display: grid;
  place-items: center;
  padding: 2rem;
  background:
    radial-gradient(circle at 18% 12%, rgba(11, 130, 230, 0.14), transparent 26rem),
    radial-gradient(circle at 82% 85%, rgba(7, 104, 189, 0.12), transparent 28rem),
    #f8fbff;
}

a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }

.dash-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 18rem;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 1.5rem;
  padding: 2.2rem 1.2rem;
  background: #fff;
  border-left: 1px solid var(--line);
  z-index: 10;
}

.brand-box {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  color: var(--blue);
}

.login-shell {
  width: min(100%, 70rem);
  min-height: 38rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.12);
  overflow: hidden;
}

.login-panel {
  display: grid;
  align-content: center;
  gap: 2rem;
  padding: clamp(2rem, 5vw, 4rem);
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  color: var(--blue);
}

.login-brand strong {
  display: block;
  font-size: 1.7rem;
  font-weight: 950;
}

.login-brand small {
  color: var(--muted);
}

.login-card h1 {
  margin: 0 0 0.4rem;
  font-size: 2.2rem;
  font-weight: 950;
}

.login-card p {
  margin: 0 0 1.6rem;
  color: var(--muted);
}

.login-error {
  min-height: 1.6rem;
  margin: -0.35rem 0 1rem !important;
  color: #b42318 !important;
  font-size: 0.92rem;
  font-weight: 800;
}

.login-card .primary-btn {
  width: 100%;
  margin-top: 0.4rem;
}

.login-art {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 1rem;
  padding: 3rem;
  color: #fff;
  text-align: center;
  background:
    radial-gradient(circle at 50% 32%, rgba(255, 255, 255, 0.32), transparent 10rem),
    linear-gradient(135deg, #075eb8, #0b82e6);
}

.login-orb {
  width: 12rem;
  height: 12rem;
  border: 1.4rem solid rgba(255, 255, 255, 0.82);
  border-inline-start-color: rgba(255, 255, 255, 0.22);
  border-radius: 50%;
}

.login-art h2 {
  margin: 0;
  font-size: 2rem;
  font-weight: 950;
}

.login-art p {
  max-width: 25rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
}

.brand-icon,
.stat-card i,
.wait-icon {
  width: 3.2rem;
  height: 3.2rem;
  display: grid;
  place-items: center;
  color: var(--blue);
  background: var(--soft-blue);
  border-radius: 0.75rem;
  font-size: 1.35rem;
}

.brand-box strong {
  display: block;
  font-size: 1.55rem;
  font-weight: 900;
}

.brand-box small,
.admin-card small { color: var(--muted); }

.side-nav {
  display: grid;
  align-content: start;
  gap: 0.25rem;
}

.side-nav a {
  min-height: 3.35rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0 1rem;
  color: #1f2937;
  border-radius: 0.55rem;
  font-size: 1.02rem;
}

.side-nav a i { font-size: 1.2rem; }

.side-nav a.active {
  color: var(--blue);
  background: #dbe8ff;
  border-right: 4px solid var(--blue);
  font-weight: 800;
}

.admin-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}

.avatar {
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #102033, #0b82e6);
  border-radius: 999px;
  font-weight: 900;
}

.avatar.img {
  background: radial-gradient(circle at 50% 35%, #f4d0b6 0 16%, transparent 17%), linear-gradient(135deg, #203b47, #95cdd8);
}

.avatar.second { background: radial-gradient(circle at 50% 35%, #efd1c0 0 16%, transparent 17%), linear-gradient(135deg, #112233, #d8eef0); }

.dash-main {
  min-height: 100vh;
  margin-right: 18rem;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 8;
  min-height: 4.7rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 2.5rem;
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.top-icons {
  display: flex;
  gap: 1rem;
}

.top-icons button {
  border: 0;
  background: transparent;
  color: #1f2937;
  font-size: 1.25rem;
}

.has-dot { position: relative; }
.has-dot::after {
  content: "";
  position: absolute;
  top: 0.1rem;
  inset-inline-start: 0.1rem;
  width: 0.42rem;
  height: 0.42rem;
  background: #c1121f;
  border-radius: 50%;
}

.top-search {
  width: min(100%, 34rem);
  min-height: 3rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0 1rem;
  background: #f3f2f3;
  border: 1px solid var(--line);
  border-radius: 1rem;
}

.top-search input,
.filter-shell input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
}

.view {
  display: none;
  padding: 2.4rem 2.4rem 4rem;
}

.view.active { display: block; }

.page-head {
  margin: 0 0 2rem;
  text-align: right;
}

.page-head h1 {
  margin: 0 0 0.35rem;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 950;
  letter-spacing: 0;
}

.page-head p,
.page-head small { color: #344054; font-size: 1rem; }

.page-head.with-action {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
}

.primary-btn,
.form-actions button:first-child {
  min-height: 3.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0 1.3rem;
  border: 0;
  border-radius: 0.55rem;
  color: #fff;
  background: var(--blue);
  box-shadow: 0 12px 24px rgba(7, 104, 189, 0.18);
  font-weight: 900;
}

.primary-btn.wide { width: fit-content; }

.head-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.stats-grid,
.role-cards,
.page-cards,
.ad-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.4rem;
  margin-bottom: 2rem;
}

.stats-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.stat-card,
.chart-card,
.table-card,
.form-card,
.role-cards article,
.page-cards article,
.ad-card,
.info-card,
.empty-builder,
.admin-tip,
.stacked-panels article,
.category-big {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  box-shadow: var(--shadow);
}

.stat-card {
  position: relative;
  min-height: 8rem;
  padding: 1.4rem;
}

.stat-card i {
  position: absolute;
  top: 1.3rem;
  inset-inline-end: 1.3rem;
}

.stat-card small {
  display: block;
  color: #344054;
  margin-top: 1.1rem;
}

.stat-card strong {
  display: block;
  margin-top: 0.3rem;
  font-size: 2rem;
  font-weight: 950;
}

.badge,
.status,
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.22rem 0.6rem;
  font-size: 0.78rem;
  font-weight: 800;
}

.badge.green,
.status.live { color: #079455; background: #dcfae6; }
.badge.blue,
.status.scheduled,
.pill.blue { color: var(--blue); background: #dbe8ff; }
.badge.red,
.status.deleted { color: #b42318; background: #fee4e2; }
.badge.gray,
.pill.gray,
.status.off { color: #475467; background: #eef0f3; }
.status.warning { color: #b76e00; background: #fff3d6; }

.meter {
  height: 0.4rem;
  margin-top: 1.3rem;
  background: #e5e7eb;
  border-radius: 999px;
}

.meter b {
  display: block;
  height: 100%;
  background: var(--blue);
  border-radius: inherit;
}

.mini-wave {
  position: absolute;
  inset-inline: 0.5rem;
  bottom: 0;
  height: 2.1rem;
  background: linear-gradient(135deg, transparent 12%, #e3f2ff 13% 25%, transparent 26% 38%, #d4eaff 39% 55%, transparent 56%);
}

.overview-stats {
  align-items: stretch;
}

.overview-stat {
  min-height: 11rem;
  padding-top: 3.2rem;
  overflow: hidden;
}

.overview-stat .badge {
  position: absolute;
  top: 1.3rem;
  inset-inline-start: 1.3rem;
}

.overview-stat em {
  display: block;
  margin-top: 1rem;
  color: var(--muted);
  font-style: normal;
}

.revenue-stat strong {
  position: relative;
  z-index: 1;
}

.mini-bars {
  position: absolute;
  inset-inline: 1rem;
  bottom: 0;
  height: 3.1rem;
  display: flex;
  align-items: end;
  gap: 0.25rem;
  opacity: 0.95;
}

.mini-bars span {
  flex: 1;
  background: #e4f0fb;
  clip-path: polygon(0 100%, 50% 15%, 100% 100%);
}

.mini-bars span:nth-child(1) { height: 42%; }
.mini-bars span:nth-child(2) { height: 72%; }
.mini-bars span:nth-child(3) { height: 58%; }
.mini-bars span:nth-child(4) { height: 92%; }
.mini-bars span:nth-child(5) { height: 70%; }

.overview-grid {
  display: grid;
  grid-template-columns: 1fr 22rem;
  gap: 1.4rem;
}

.chart-card { padding: 2rem; }

.chart-card.big { grid-row: span 2; }

.section-title h2,
.chart-card h2 {
  margin: 0;
  font-size: 1.7rem;
  font-weight: 950;
}

.section-title p { margin: 0.2rem 0 0; color: var(--muted); }

.visitor-chart {
  margin: 2rem 0 1.2rem;
}

.visitor-chart svg {
  width: 100%;
  height: 20rem;
  display: block;
}

.chart-area {
  fill: url(#visitorFill);
}

.chart-line {
  fill: none;
  stroke: var(--blue);
  stroke-width: 9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chart-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.3rem;
  color: #667085;
  font-size: 0.82rem;
  text-align: center;
}

.chart-footer {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  text-align: center;
  color: var(--muted);
}

.chart-footer b { display: block; color: var(--blue); }
.chart-footer .danger { color: #b42318; }

.donut {
  width: 9.5rem;
  height: 9.5rem;
  display: grid;
  place-items: center;
  margin: 1.5rem auto;
  border-radius: 50%;
  background: conic-gradient(var(--blue) 0 68%, #4f8df5 68% 90%, #eef0f3 90%);
  color: #111;
  font-weight: 950;
  font-size: 1.5rem;
  box-shadow: inset 0 0 0 2.2rem #fff;
}

.device-layout {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1.2rem;
  margin-top: 1.2rem;
}

.device-legend p {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 0.55rem;
  margin: 0.55rem 0;
}

.dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
}

.dot.blue { background: var(--blue); }
.dot.light { background: #4f8df5; }
.dot.gray { background: #e5e7eb; }

.growth-card {
  display: grid;
  align-content: center;
  gap: 1.2rem;
}

.growth-metric {
  display: grid;
  grid-template-columns: 1fr 11rem;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: #fbfcff;
  border: 1px solid #eef2f7;
  border-radius: 0.75rem;
}

.growth-copy small,
.growth-copy span {
  display: block;
  color: #667085;
}

.growth-copy strong {
  display: block;
  color: #101828;
  font-size: 1.55rem;
  font-weight: 950;
  line-height: 1.1;
  margin: 0.2rem 0;
}

.sparkline {
  width: 100%;
  height: 4rem;
  display: block;
}

.spark-path {
  fill: none;
  stroke: #10b981;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.spark-fill {
  fill: rgba(16, 185, 129, 0.13);
}

.spark-path.second {
  stroke: #0b82e6;
}

.spark-fill.second {
  fill: rgba(11, 130, 230, 0.12);
}

.filter-shell {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 0.8rem;
  align-items: center;
  margin-bottom: 1.4rem;
  padding: 1.2rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
}

.filter-shell.compact {
  grid-template-columns: repeat(3, auto) 1fr;
  margin: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
}

.filter-shell button,
.filter-shell label,
.table-foot button,
.form-actions button:not(:first-child),
.form-actions a {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0.45rem;
}

.filter-shell label {
  width: 100%;
}

.table-card { overflow: hidden; margin-bottom: 2rem; }

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  padding: 1.2rem;
  border-bottom: 1px solid var(--line);
  text-align: right;
  vertical-align: middle;
}

thead th {
  background: #f3f2f3;
  color: #1f2937;
  font-weight: 900;
}

.title-cell,
.user-cell {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.thumb,
.app-ico {
  width: 3rem;
  height: 3rem;
  flex: 0 0 auto;
  border-radius: 0.55rem;
  background: linear-gradient(135deg, #102033, #0874d1);
}

.thumb.dark,
.app-ico.dark { background: linear-gradient(135deg, #111827, #19c48a); }
.thumb.silver { background: linear-gradient(135deg, #dce4e8, #72828c); }
.app-ico.red { background: linear-gradient(135deg, #111827, #d35a24); }

.pill {
  color: #344054;
  background: #eef0f3;
  border-radius: 0.45rem;
}

.actions {
  color: #1f2937;
  white-space: nowrap;
}

.actions i {
  margin-inline-end: 0.9rem;
  font-size: 1.15rem;
}

.actions i:last-child { color: #c1121f; }

.table-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.2rem;
}

.table-foot button.active {
  color: #fff;
  background: var(--blue);
}

.form-card {
  padding: 2rem;
  margin-bottom: 2rem;
}

.tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
  margin: -2rem -2rem 2rem;
}

.tabs button {
  min-height: 4.5rem;
  flex: 1;
  border: 0;
  background: #fff;
  font-weight: 900;
}

.tabs button.active {
  color: var(--blue);
  background: #edf4ff;
  box-shadow: inset 0 -3px 0 var(--blue);
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

label {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 1.2rem;
  font-weight: 800;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid #cfd5df;
  border-radius: 0.45rem;
  background: #fff;
  color: #111827;
  outline: 0;
  padding: 0.85rem 1rem;
}

textarea { min-height: 8rem; resize: vertical; }
.editor { min-height: 20rem; border-top: 0; border-radius: 0 0 0.45rem 0.45rem; }

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.4rem;
}

.upload-zone {
  min-height: 10.5rem;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.5rem;
  color: #475467;
  background: #fbfbfc;
  border: 2px dashed #c7ceda;
  border-radius: 0.75rem;
  text-align: center;
}

.upload-zone i {
  font-size: 2rem;
  color: var(--blue);
}

.upload-zone.small { min-height: 7rem; }

.editor-tools {
  display: flex;
  gap: 1rem;
  padding: 0.8rem 1rem;
  border: 1px solid #cfd5df;
  border-radius: 0.45rem 0.45rem 0 0;
  background: #f8fafc;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.app-form-layout {
  display: grid;
  grid-template-columns: 1fr 20rem;
  gap: 1.5rem;
}

.stacked-panels {
  display: grid;
  gap: 1.4rem;
  order: 2;
}

.stacked-panels article { padding: 1.5rem; }

.shot-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  margin-top: 1rem;
}

.shot-row span,
.app-icon-preview {
  min-height: 7rem;
  background: #eee;
  border: 1px solid var(--line);
  border-radius: 0.45rem;
}

.app-icon-preview {
  width: 8rem;
  min-height: 8rem;
  margin: 1rem auto;
  border-radius: 1.3rem;
  transform: rotate(-12deg);
}

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

.ad-card {
  position: relative;
  padding: 1.8rem;
}

.ad-card > i {
  position: absolute;
  top: 1.6rem;
  inset-inline-end: 1.6rem;
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  color: var(--blue);
  background: var(--soft-blue);
  border-radius: 0.65rem;
  font-size: 1.25rem;
}

.switch {
  display: inline-flex;
  align-items: center;
}

.switch input { display: none; }

.switch span {
  width: 3rem;
  height: 1.55rem;
  background: #d8dce2;
  border-radius: 999px;
  position: relative;
}

.switch span::after {
  content: "";
  position: absolute;
  width: 1.15rem;
  height: 1.15rem;
  top: 0.2rem;
  inset-inline-start: 0.22rem;
  background: #fff;
  border-radius: 50%;
  transition: 0.2s;
}

.switch input:checked + span { background: var(--blue); }
.switch input:checked + span::after { inset-inline-start: 1.62rem; }

.ad-card textarea { font-family: Consolas, monospace; background: #f3f2f3; }

.settings-stack {
  display: grid;
  gap: 1.4rem;
}

.upload-line,
.cache-row {
  min-height: 4.4rem;
  display: grid;
  place-items: center;
  color: var(--blue);
  background: #fbfbfc;
  border: 2px dashed #c7ceda;
  border-radius: 0.55rem;
}

.cache-row {
  display: flex;
  justify-content: space-between;
  padding: 1rem;
  color: #111827;
  border-style: solid;
}

.cache-row button,
.empty-builder button,
.category-big footer button,
.admin-tip button {
  min-height: 2.7rem;
  border: 1px solid var(--blue);
  border-radius: 0.45rem;
  color: var(--blue);
  background: #fff;
  padding: 0 1rem;
}

.category-grid-dash {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.category-big {
  position: relative;
  overflow: hidden;
}

.blue-strip {
  height: 8rem;
  background: linear-gradient(135deg, #075eb8, #0b82e6);
}

.category-big > i {
  position: absolute;
  top: 6rem;
  inset-inline-end: 2rem;
  width: 4.2rem;
  height: 4.2rem;
  display: grid;
  place-items: center;
  color: var(--blue);
  background: #fff;
  border-radius: 0.65rem;
  box-shadow: var(--shadow);
  font-size: 1.55rem;
}

.category-big h2,
.category-big p,
.category-big small,
.category-big .status,
.category-big div:not(.blue-strip),
.category-big footer {
  margin-inline: 2rem;
}

.category-big h2 { margin-top: 3.2rem; font-size: 1.7rem; }

.category-big p { color: #344054; }

.category-big div:not(.blue-strip) {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 0.7rem;
  padding: 1.3rem 0;
  border-block: 1px solid var(--line);
}

.category-big div b { color: var(--blue); font-size: 1.4rem; }

.category-big footer {
  display: flex;
  gap: 1rem;
  padding: 1.4rem 0;
}

.danger-btn { color: #b42318 !important; border-color: #f3b7b3 !important; }

.empty-builder {
  min-height: 20rem;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.8rem;
  margin-bottom: 2rem;
  border-style: dashed;
  text-align: center;
}

.empty-builder i { font-size: 3.2rem; color: #475467; }

.admin-tip {
  padding: 2rem;
  color: #fff;
  background: linear-gradient(135deg, #0868c5, #0b82e6);
}

.page-cards {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.page-cards article {
  padding: 1.8rem;
  min-height: 15rem;
}

.page-cards article > i {
  width: 3.8rem;
  height: 3.8rem;
  display: grid;
  place-items: center;
  color: var(--blue);
  background: var(--soft-blue);
  border-radius: 0.75rem;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.page-cards footer {
  display: flex;
  gap: 0.7rem;
  margin-top: 1.4rem;
}

.page-cards button {
  width: 3.1rem;
  height: 3.1rem;
  border: 0;
  border-radius: 0.45rem;
  background: #f1f1f2;
}

.role-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.role-cards article { padding: 1.8rem; }

.role-cards article > i {
  width: 3.4rem;
  height: 3.4rem;
  display: grid;
  place-items: center;
  color: var(--blue);
  background: #e9f3ff;
  border-radius: 0.65rem;
  margin-bottom: 1rem;
}

.role-cards footer {
  display: flex;
  justify-content: space-between;
  margin-top: 1.4rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.empty-state {
  min-height: 25rem;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.6rem;
  text-align: center;
}

.empty-state i {
  width: 5rem;
  height: 5rem;
  display: grid;
  place-items: center;
  background: #f1f1f2;
  border-radius: 50%;
  color: #8b939f;
  font-size: 2rem;
}

.empty-state a { color: var(--blue); font-weight: 900; }

.info-card { padding: 1.6rem; }

.activity-bottom {
  display: grid;
  grid-template-columns: 18rem 1fr;
  gap: 1.5rem;
}

.blue-note {
  padding: 2rem;
  color: #fff;
  background: var(--blue);
  border-radius: 0.85rem;
  box-shadow: var(--shadow);
}

.blue-note button {
  width: 100%;
  min-height: 3.2rem;
  margin-top: 4rem;
  color: var(--blue);
  background: #fff;
  border: 0;
  border-radius: 0.45rem;
  font-weight: 900;
}

.bar-chart {
  height: 16rem;
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 1.8rem;
}

.bar-chart span {
  width: 3rem;
  height: 45%;
  background: #dbe5ff;
  border-radius: 0.45rem 0.45rem 0 0;
}

.bar-chart span:nth-child(2) { height: 32%; }
.bar-chart span:nth-child(3) { height: 65%; }
.bar-chart span:nth-child(4) { height: 42%; }
.bar-chart span:nth-child(5) { height: 78%; }
.bar-chart span:nth-child(6) { height: 55%; }
.bar-chart .active { background: var(--blue); }

.modal-layer {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  place-items: center;
  padding: 1rem;
  background: rgba(17, 24, 39, 0.45);
  backdrop-filter: blur(5px);
}

.modal-layer.is-open { display: grid; }

.conversion-modal {
  position: relative;
  width: min(100%, 64rem);
  padding: 2rem;
  background: #fff;
  border-radius: 0.85rem;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.28);
}

.modal-subtitle {
  margin: -0.4rem 0 1.5rem;
  color: var(--muted);
}

.ad-modal textarea {
  min-height: 9rem;
}

.modal-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}

.close-modal {
  position: absolute;
  top: 1.5rem;
  inset-inline-start: 1.5rem;
  border: 0;
  background: transparent;
  color: #8b939f;
  font-size: 1.4rem;
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wide-row { width: 12rem; }

@media (max-width: 1100px) {
  .dash-sidebar {
    position: static;
    width: auto;
    grid-template-rows: auto;
  }

  .side-nav {
    grid-template-columns: repeat(3, 1fr);
  }

  .admin-card { display: none; }

  .dash-main { margin-right: 0; }

  .stats-grid,
  .page-cards,
  .ad-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .overview-grid,
  .app-form-layout,
  .activity-bottom {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  body.login-page {
    padding: 1rem;
  }

  .login-shell {
    grid-template-columns: 1fr;
  }

  .login-art {
    min-height: 18rem;
  }

  .topbar,
  .view {
    padding-inline: 1rem;
  }

  .topbar,
  .page-head.with-action,
  .table-foot {
    flex-direction: column;
    align-items: stretch;
  }

  .side-nav,
  .stats-grid,
  .stats-grid.three,
  .role-cards,
  .page-cards,
  .ad-grid,
  .category-grid-dash,
  .form-grid,
  .wait-suggestions .blog-grid {
    grid-template-columns: 1fr;
  }

  .table-card {
    overflow-x: auto;
  }

  table {
    min-width: 48rem;
  }

  .filter-shell {
    grid-template-columns: 1fr;
  }
}
