/* =========================================================================
   ActivTrak — powered by Digitoria Marketing Solutions
   Modern premium SaaS UI · Light theme
   Pure restyle: every existing class name / selector is preserved.
   ========================================================================= */

:root {
  /* Surfaces */
  --bg: #f7f8fa;
  --bg-soft: #eef1f6;
  --card: #ffffff;

  /* Text */
  --ink: #101828;
  --ink-2: #344054;
  --muted: #667085;

  /* Lines & structure */
  --line: #e7e9ef;
  --line-2: #eef0f5;

  /* Brand — premium indigo / violet */
  --brand: #5b5bef;
  --brand2: #7c5cf5;
  --brand-ink: #4338ca;
  --brand-050: #f2f2ff;
  --brand-100: #e8e9ff;
  --brand-tint: #eef0ff;

  /* Semantic */
  --green: #16a34a;
  --red: #ef4444;
  --amber: #f59e0b;

  /* Radii */
  --r-sm: 10px;
  --r-md: 12px;
  --r-lg: 14px;
  --r-xl: 18px;

  /* Elevation */
  --shadow-xs: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 8px 24px rgba(16, 24, 40, .06);
  --shadow-md: 0 4px 12px rgba(16, 24, 40, .08), 0 16px 40px rgba(16, 24, 40, .08);
  --shadow-lg: 0 24px 64px rgba(16, 24, 40, .18);
  --ring: 0 0 0 3px rgba(91, 91, 239, .28);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: Inter, "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-osx-font-smoothing: grayscale;
  font-feature-settings: "cv11", "ss01";
}

/* Tabular, aligned figures for stats / tables / timers */
.stat .n,
.abar,
td,
th,
.thr,
.key,
pre.cmd,
code { font-variant-numeric: tabular-nums; }

a {
  color: var(--brand);
  text-decoration: none;
  transition: color .15s ease;
}
a:hover { color: var(--brand-ink); }

::selection { background: rgba(91, 91, 239, .18); }

/* Scrollbars (subtle) */
* { scrollbar-width: thin; scrollbar-color: #cfd4df transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb { background: #d3d7e0; border-radius: 999px; border: 2px solid transparent; background-clip: content-box; }
*::-webkit-scrollbar-thumb:hover { background: #b8bdca; background-clip: content-box; }

.brand { font-weight: 800; letter-spacing: -.3px; color: var(--ink); }
.brand span {
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--brand);
}

/* =========================================================================
   Base form controls
   ========================================================================= */
label {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-2);
  display: block;
  margin: 14px 0 6px;
}

input,
select,
textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-size: 14px;
  font-family: inherit;
  background: #fff;
  color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
  appearance: none;
  -webkit-appearance: none;
}
input::placeholder,
textarea::placeholder { color: #98a2b3; }

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23667085' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 34px;
  cursor: pointer;
}

input:hover,
select:hover,
textarea:hover { border-color: #cfd4e0; }

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: var(--ring);
  background: #fff;
}

/* Buttons — primary gradient pill */
button {
  cursor: pointer;
  border: 0;
  border-radius: var(--r-sm);
  padding: 11px 18px;
  font-weight: 600;
  font-size: 14px;
  font-family: inherit;
  line-height: 1.2;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  color: #fff;
  width: 100%;
  margin-top: 18px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .10), 0 6px 16px rgba(91, 91, 239, .22);
  transition: transform .12s ease, box-shadow .18s ease, filter .18s ease, background .18s ease;
}
button:hover { filter: brightness(1.04); box-shadow: 0 2px 4px rgba(16, 24, 40, .12), 0 10px 22px rgba(91, 91, 239, .30); }
button:active { transform: translateY(1px); box-shadow: 0 1px 2px rgba(16, 24, 40, .12); }
button:disabled { opacity: .55; cursor: not-allowed; filter: none; box-shadow: none; }

button:focus-visible,
a:focus-visible,
.tab:focus-visible,
.nav-item:focus-visible,
.stat[data-hash]:focus-visible,
tr.click:focus-visible,
.modal-x:focus-visible,
.switch:focus-visible {
  outline: none;
  box-shadow: var(--ring);
}

/* Ghost / secondary button */
button.ghost,
.ghost {
  background: #fff;
  color: var(--brand);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
  width: auto;
  margin: 0;
}
button.ghost:hover,
.ghost:hover {
  background: var(--brand-050);
  border-color: #d9dbf5;
  color: var(--brand-ink);
  filter: none;
}

.err { color: var(--red); font-size: 13px; margin-top: 10px; min-height: 16px; font-weight: 500; }

/* =========================================================================
   Login
   ========================================================================= */
.center {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(1100px 520px at 15% -10%, rgba(124, 92, 245, .10), transparent 60%),
    radial-gradient(1000px 520px at 100% 0%, rgba(91, 91, 239, .10), transparent 55%),
    var(--bg);
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow);
}

.login {
  width: 380px;
  max-width: 100%;
  padding: 32px;
  box-shadow: var(--shadow-md);
}
.login h1 { font-size: 22px; font-weight: 800; letter-spacing: -.4px; margin: 0 0 6px; }
.login p { color: var(--muted); margin: 0 0 18px; font-size: 13px; }
.login-foot {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line-2);
  text-align: center;
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: .01em;
}

/* =========================================================================
   Top bar (used on some screens)
   ========================================================================= */
.topbar {
  height: 60px;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: saturate(160%) blur(8px);
  -webkit-backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 5;
}

.wrap { max-width: 1180px; margin: 24px auto; padding: 0 18px; }

/* =========================================================================
   Stat cards
   ========================================================================= */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 22px;
}

.stat {
  position: relative;
  padding: 20px;
  border-radius: var(--r-lg);
  color: #fff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 10px 26px rgba(16, 24, 40, .10);
  overflow: hidden;
  isolation: isolate;
}
/* soft glossy sheen */
.stat::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, 0) 45%);
  pointer-events: none;
  z-index: -1;
}
.stat .n { font-size: 34px; font-weight: 800; line-height: 1; letter-spacing: -.5px; }
.stat .l { margin-top: 8px; opacity: .92; font-size: 13px; font-weight: 500; }

.s1 { background: linear-gradient(135deg, #6d7bff, #5b5bef); }
.s2 { background: linear-gradient(135deg, #22c07a, #10a06a); }
.s3 { background: linear-gradient(135deg, #94a3b8, #64748b); }
.s4 { background: linear-gradient(135deg, #fbbf24, #f59e0b); }
.s5 { background: linear-gradient(135deg, #fb6d6d, #ef4444); }
.s6 { background: linear-gradient(135deg, #22c1dc, #0891b2); }

/* =========================================================================
   Panels & tables
   ========================================================================= */
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.panel h2 {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -.1px;
  margin: 0;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}

table { width: 100%; border-collapse: collapse; }
th, td {
  text-align: left;
  padding: 13px 18px;
  font-size: 14px;
  border-bottom: 1px solid var(--line-2);
  color: var(--ink-2);
}
th {
  color: var(--muted);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .06em;
  background: #fbfbfd;
  position: sticky;
  top: 0;
}
tbody tr:last-child td { border-bottom: 0; }
tbody tr:nth-child(even) td { background: #fcfcfe; }

tr.click,
.click { cursor: pointer; }
tr.click { transition: background .12s ease; }
tr.click:hover td,
tbody tr.click:hover td { background: var(--brand-050); }

.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 7px;
  vertical-align: baseline;
}
.dot.on { background: var(--green); box-shadow: 0 0 0 3px rgba(22, 163, 74, .14); }
.dot.off { background: #cbd5e1; box-shadow: 0 0 0 3px rgba(203, 213, 225, .22); }

.muted { color: var(--muted); }

/* =========================================================================
   Gallery / tabs / toolbar / screenshot grid
   ========================================================================= */
.tabs { display: flex; gap: 6px; padding: 14px 18px; flex-wrap: wrap; }
.tab {
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.tab:hover { background: var(--brand-050); color: var(--brand-ink); }
.tab.active {
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  color: #fff;
  box-shadow: 0 2px 8px rgba(91, 91, 239, .30);
}
.tab.active:hover { color: #fff; }
.tab.soon {
  background: #f2f4f7;
  color: #98a2b3;
  cursor: not-allowed;
}
.tab.soon::after {
  content: "soon";
  margin-left: 6px;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .06em;
  background: #e4e7ec;
  color: #667085;
  padding: 1px 5px;
  border-radius: 6px;
  vertical-align: middle;
}

.toolbar { display: flex; gap: 12px; align-items: center; padding: 0 18px 16px; flex-wrap: wrap; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
  padding: 18px;
}
.shot {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-xs);
  transition: transform .14s ease, box-shadow .18s ease, border-color .18s ease;
}
.shot:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #d9dbf5; }
.shot img { width: 100%; display: block; aspect-ratio: 16 / 10; object-fit: cover; background: #f1f5f9; }
.shot .t { font-size: 12px; color: var(--muted); padding: 9px 11px; border-top: 1px solid var(--line-2); }

.empty {
  padding: 48px 40px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

/* =========================================================================
   App shell — sidebar layout
   ========================================================================= */
.layout { display: flex; min-height: 100vh; }

.sidebar {
  width: 248px;
  background: #fff;
  border-right: 1px solid var(--line);
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}
.sidebar .logo {
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -.4px;
  padding: 20px 20px;
  border-bottom: 1px solid var(--line-2);
  color: var(--ink);
}

.side-nav { padding: 12px 12px; flex: 1 1 auto; }

.nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  margin: 2px 0;
  border-radius: var(--r-sm);
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  position: relative;
  border-left: 3px solid transparent;
  transition: background .14s ease, color .14s ease;
}
.nav-item:hover { background: var(--bg-soft); color: var(--ink); }
.nav-item.active {
  background: var(--brand-tint);
  color: var(--brand-ink);
  font-weight: 600;
}
.nav-item.active::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, var(--brand), var(--brand2));
}
.nav-item .ico { width: 18px; text-align: center; opacity: .85; font-size: 15px; }
.nav-item.active .ico { opacity: 1; }

.nav-sub { display: none; padding-left: 14px; }
.nav-group.open .nav-sub { display: block; }
.nav-sub .nav-item { padding: 8px 12px 8px 30px; font-size: 13px; }

.nav-badge {
  margin-left: auto;
  font-size: 10px;
  font-weight: 700;
  background: linear-gradient(135deg, #fbbf24, var(--amber));
  color: #fff;
  padding: 1px 7px;
  border-radius: 999px;
  box-shadow: 0 1px 2px rgba(245, 158, 11, .35);
}

/* Pinned footer — Powered by Digitoria */
.side-foot {
  margin-top: auto;
  padding: 14px 20px 18px;
  border-top: 1px solid var(--line-2);
  font-size: 11px;
  line-height: 1.5;
  color: var(--muted);
}
.side-foot span,
.side-foot b { color: var(--ink-2); font-weight: 600; }

.main { flex: 1; min-width: 0; }
.content { padding: 26px; max-width: 1280px; }
.page-title { font-size: 22px; font-weight: 800; letter-spacing: -.5px; margin: 0 0 16px; color: var(--ink); }
.crumb { color: var(--muted); font-size: 13px; margin-bottom: 6px; font-weight: 500; }

/* 6-up compact stat row */
.cards.six { grid-template-columns: repeat(6, 1fr); }
.cards.six .stat { padding: 16px; }
.cards.six .stat .n { font-size: 26px; }

.stat[data-hash] { cursor: pointer; transition: transform .12s ease, box-shadow .2s ease; }
.stat[data-hash]:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(16, 24, 40, .12), 0 20px 44px rgba(16, 24, 40, .16);
}
.stat[data-hash]:active { transform: translateY(-1px); }

/* =========================================================================
   Rows / buttons / badges
   ========================================================================= */
.row { display: flex; gap: 16px; flex-wrap: wrap; }
.row > * { flex: 1; min-width: 280px; }

.btn-sm {
  padding: 8px 14px;
  font-size: 13px;
  width: auto;
  margin: 0;
  display: inline-block;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .10), 0 4px 10px rgba(91, 91, 239, .18);
}
.btn-danger {
  background: linear-gradient(135deg, #f5656a, #dc2626);
  box-shadow: 0 1px 2px rgba(16, 24, 40, .10), 0 4px 10px rgba(220, 38, 38, .22);
  color: #fff;
}
.btn-danger:hover { filter: brightness(1.04); }
.btn-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

.badge {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 600;
  line-height: 1.5;
}
.badge.on { background: #dcfce7; color: #166534; box-shadow: inset 0 0 0 1px rgba(22, 101, 52, .12); }
.badge.off { background: #f2f4f7; color: #667085; box-shadow: inset 0 0 0 1px rgba(102, 112, 133, .12); }

/* config chip remove "×" */
.cfg-x {
  color: #98a2b3;
  transition: color .14s ease, transform .14s ease;
}
.cfg-x:hover { color: var(--red); transform: scale(1.15); }

/* =========================================================================
   Live cast
   ========================================================================= */
.live-wrap {
  background: #0b1020;
  border-radius: var(--r-lg);
  overflow: hidden;
  position: relative;
  min-height: 420px;
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .04), var(--shadow);
}
.live-wrap img { width: 100%; display: block; }
.live-msg { color: #cbd5e1; font-size: 15px; font-weight: 500; letter-spacing: .01em; }
.live-bar { display: flex; gap: 10px; align-items: center; padding: 14px 0; flex-wrap: wrap; }

.pill {
  font-size: 12px;
  color: var(--ink-2);
  background: #fff;
  border: 1px solid var(--line);
  padding: 6px 11px;
  border-radius: 999px;
  font-weight: 500;
  box-shadow: var(--shadow-xs);
}

/* =========================================================================
   Settings form
   ========================================================================= */
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; padding: 18px; }
.field label { margin: 0 0 6px; }
.field .hint { font-size: 12px; color: var(--muted); margin-top: 5px; line-height: 1.45; }

.switch {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  cursor: pointer;
  font-size: 13px;
  color: var(--ink-2);
  user-select: none;
}
.switch input { width: auto; }
/* Native checkbox / radio accent */
input[type="checkbox"],
input[type="radio"] { accent-color: var(--brand); width: auto; cursor: pointer; }

.section-head {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
  padding: 18px 18px 0;
  grid-column: 1 / -1;
}

/* =========================================================================
   Analytics — donut legend, category chips, app bars, hourly timeline
   ========================================================================= */
.legend {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  padding: 0 16px 16px;
  font-size: 12px;
  color: var(--muted);
  justify-content: center;
}
.legend .lg { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

.cat {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  padding: 2px 9px;
  border-radius: 999px;
  font-weight: 600;
  line-height: 1.5;
}
.cat.productive { background: #dcfce7; color: #166534; }
.cat.unproductive { background: #fee2e2; color: #991b1b; }
.cat.neutral { background: #f2f4f7; color: #475467; }

.approw { display: flex; flex-direction: column; gap: 5px; }
.approw > span { font-size: 13px; color: var(--ink-2); }
.abar { height: 7px; background: #eef1f7; border-radius: 999px; overflow: hidden; }
.abar > div { height: 100%; border-radius: 999px; transition: width .4s ease; }

.timeline { display: flex; align-items: flex-end; gap: 3px; height: 130px; }
.tcol {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
}
.tbar {
  width: 100%;
  background: #e9edf3;
  border-radius: 4px 4px 0 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 2px;
  overflow: hidden;
}
.tact {
  width: 100%;
  background: linear-gradient(180deg, var(--brand2), var(--brand));
  border-radius: 4px 4px 0 0;
  transition: height .35s ease;
}
.thr { font-size: 9px; color: #98a2b3; margin-top: 4px; }

.brk td { padding: 9px 18px; }
.brk .b { font-weight: 700; color: var(--ink); }

/* =========================================================================
   Modal + forms
   ========================================================================= */
.modal-ov {
  position: fixed;
  inset: 0;
  background: rgba(16, 24, 40, .48);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  display: grid;
  place-items: center;
  z-index: 100;
  padding: 20px;
  animation: ov-in .16s ease;
}
.modal {
  background: #fff;
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow: auto;
  animation: modal-in .2s cubic-bezier(.2, .8, .2, 1);
}
.modal-h {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
}
.modal-h b { font-size: 17px; font-weight: 700; letter-spacing: -.2px; }
.modal-x {
  cursor: pointer;
  font-size: 24px;
  color: var(--muted);
  line-height: .7;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: background .14s ease, color .14s ease;
}
.modal-x:hover { color: var(--ink); background: var(--bg-soft); }
.modal-b { padding: 22px; }

.form2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 0; }
.form2 .full { grid-column: 1 / -1; }
.form2 label { margin: 0 0 5px; }
.form2 button { margin: 4px 0 0; }

.ok-box {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--r-md);
  padding: 14px;
  color: #166534;
  font-size: 13.5px;
}

.key {
  font-family: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;
  background: var(--brand-100);
  color: var(--brand-ink);
  padding: 6px 12px;
  border-radius: 8px;
  display: inline-block;
  font-weight: 600;
  letter-spacing: .01em;
}

pre.cmd {
  background: #0b1020;
  color: #cbd5e1;
  padding: 13px 15px;
  border-radius: var(--r-md);
  overflow: auto;
  font-size: 12px;
  line-height: 1.6;
  font-family: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05);
}

code {
  background: var(--bg-soft);
  color: var(--brand-ink);
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 12px;
  font-family: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;
}

/* =========================================================================
   Motion
   ========================================================================= */
@keyframes ov-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes modal-in {
  from { opacity: 0; transform: translateY(10px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

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

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 1180px) {
  .cards.six { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1024px) {
  .sidebar { width: 212px; }
  .sidebar .logo { font-size: 18px; padding: 16px; }
  .side-nav { padding: 10px 8px; }
  .nav-sub .nav-item { padding-left: 26px; }
  .content { padding: 20px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .layout { flex-direction: column; }
  .sidebar {
    width: 100%;
    height: auto;
    position: static;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
  }
  .side-nav { display: flex; flex-wrap: wrap; gap: 4px; }
  .nav-item { border-left: 0; margin: 0; }
  .nav-item.active::before { display: none; }
  .side-foot { margin-top: 0; }
  .cards,
  .cards.six { grid-template-columns: 1fr 1fr; }
  .form2 { grid-template-columns: 1fr; }
  .content { padding: 16px; }
  .page-title { font-size: 20px; }
}
