:root {
  --bg: #0f172a;
  --sidebar-1: #1b1f3b;
  --sidebar-2: #11132a;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e7eaf3;
  --primary: #6366f1;
  --primary-d: #4f46e5;
  --violet: #7c3aed;
  --green: #16a34a;
  --green-bg: #dcfce7;
  --red: #dc2626;
  --red-bg: #fee2e2;
  --amber: #d97706;
  --amber-bg: #fef3c7;
  --blue: #2563eb;
  --blue-bg: #dbeafe;
  --gray-bg: #f1f5f9;
  --shadow-sm: 0 1px 2px rgba(15,23,42,.06), 0 1px 3px rgba(15,23,42,.05);
  --shadow-md: 0 4px 16px rgba(15,23,42,.07), 0 2px 6px rgba(15,23,42,.05);
  --shadow-lg: 0 18px 40px rgba(15,23,42,.12);
  --radius: 16px;
  /* семантические поверхности (тема) */
  --page-bg: #f5f6fb;
  --surface-2: #f5f7fc;
  --topbar-bg: rgba(255,255,255,.8);
  --text-soft: #334155;
  --glow-1: rgba(99,102,241,.06);
  --glow-2: rgba(124,58,237,.06);
}

/* ---------- Тёмная тема ---------- */
[data-theme="dark"] {
  --card: #1b2236;
  --text: #e6e9f5;
  --text-soft: #c2c8de;
  --muted: #93a0bd;
  --border: #2b344f;
  --gray-bg: #232c44;
  --page-bg: #0b0f1f;
  --surface-2: #232c44;
  --topbar-bg: rgba(16,20,40,.82);
  --green-bg: rgba(22,163,74,.18);
  --green: #4ade80;
  --red-bg: rgba(220,38,38,.20);
  --red: #f87171;
  --amber-bg: rgba(217,119,6,.20);
  --amber: #fbbf24;
  --blue-bg: rgba(37,99,235,.22);
  --blue: #60a5fa;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow-md: 0 6px 20px rgba(0,0,0,.45);
  --shadow-lg: 0 20px 44px rgba(0,0,0,.55);
  --glow-1: rgba(99,102,241,.10);
  --glow-2: rgba(124,58,237,.10);
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: "Inter", "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-feature-settings: "cv02","cv03","cv04","cv11", "ss01";
  background:
    radial-gradient(1100px 700px at 100% -5%, var(--glow-1), transparent 55%),
    radial-gradient(900px 600px at -5% 110%, var(--glow-2), transparent 55%),
    var(--page-bg);
  color: var(--text);
  font-size: 14px;
  transition: background-color .25s ease, color .25s ease;
  line-height: 1.5;
  letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
a { color: var(--primary-d); text-decoration: none; }
a:hover { text-decoration: none; color: var(--primary); }

/* Качественные эмодзи (Twemoji заменяет символы на SVG-картинки) */
img.emoji { height: 1.15em; width: 1.15em; vertical-align: -.18em; margin: 0 .04em; display: inline-block; }
.nav a .ico img.emoji { height: 1.25em; width: 1.25em; vertical-align: -.25em; }

/* ---------- Layout ---------- */
.layout { display: flex; min-height: 100vh; }
.sidebar {
  width: 340px; color: #c7cde4; position: fixed; top: 0; bottom: 0; z-index: 20;
  display: flex; flex-direction: column;
  background: linear-gradient(185deg, var(--sidebar-1), var(--sidebar-2));
  border-right: 1px solid rgba(255,255,255,.05);
}
.sidebar .brand {
  display: flex; align-items: center; gap: 14px; padding: 24px 22px 20px;
  font-size: 21px; font-weight: 800; color: #fff; letter-spacing: -.01em;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.sidebar .brand .brand-logo {
  width: 46px; height: 46px; flex: none; display: flex; align-items: center; justify-content: center;
  border-radius: 13px; background: linear-gradient(160deg, #6366f1, #7c3aed);
  box-shadow: 0 6px 16px rgba(99,102,241,.45);
}
.sidebar .brand .brand-logo svg { width: 28px; height: 28px; }
.sidebar .brand small { display: block; font-weight: 500; font-size: 12px; color: #8b93b8; margin-top: 3px; letter-spacing: .02em; }

.nav { flex: 1; padding: 16px 14px; overflow-y: auto; }
.nav a {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; margin-bottom: 4px;
  color: #b9c0dc; font-weight: 600; font-size: 15.5px; border-radius: 13px;
  position: relative; transition: background .15s, color .15s, transform .12s;
}
.nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav a.active {
  color: #fff;
  background: linear-gradient(100deg, rgba(99,102,241,.95), rgba(124,58,237,.92));
  box-shadow: 0 8px 20px rgba(99,102,241,.4);
}
.nav a .ico { width: 28px; text-align: center; font-size: 19px; flex: none; }
.nav .badge {
  margin-left: auto; background: #ef4444; color: #fff; border-radius: 20px;
  min-width: 20px; text-align: center; padding: 1px 7px; font-size: 11px; font-weight: 700;
  box-shadow: 0 2px 6px rgba(239,68,68,.4);
}
.nav a.active .badge { background: rgba(255,255,255,.25); box-shadow: none; }
.sidebar .foot { padding: 16px 22px; border-top: 1px solid rgba(255,255,255,.07); font-size: 13px; }
.sidebar .foot a { color: #fca5a5 !important; font-weight: 600; }
.sidebar .foot a:hover { color: #fecaca !important; }

.main { margin-left: 340px; flex: 1; display: flex; flex-direction: column; min-width: 0; }
.topbar {
  background: var(--topbar-bg); backdrop-filter: saturate(150%) blur(10px);
  -webkit-backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--border); padding: 16px 30px;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 10;
}
.topbar h1 { font-size: 19px; margin: 0; font-weight: 800; letter-spacing: -.02em; }
.topbar .who {
  display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-size: 13.5px; font-weight: 600;
  background: var(--card); border: 1px solid var(--border); padding: 8px 16px; border-radius: 30px; box-shadow: var(--shadow-sm);
}
.topbar-right { display: flex; align-items: center; gap: 12px; }
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px;
  border: 1px solid var(--border); background: var(--card); color: var(--text-soft);
  border-radius: 12px; cursor: pointer; box-shadow: var(--shadow-sm);
  transition: background .15s, color .15s, transform .12s, box-shadow .15s;
}
.theme-toggle:hover { color: var(--primary); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.theme-toggle svg { width: 19px; height: 19px; }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: inline-flex; }
[data-theme="dark"] .theme-toggle .icon-sun { display: inline-flex; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

.content { padding: 30px; max-width: 1240px; width: 100%; }

/* ---------- Cards / grid ---------- */
.grid { display: grid; gap: 20px; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-md); overflow: hidden;
}
.card .card-h {
  padding: 16px 20px; border-bottom: 1px solid var(--border); font-weight: 700; font-size: 14.5px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.card .card-b { padding: 20px; }

/* Stat cards */
.stat {
  position: relative; overflow: hidden; background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow-md);
  transition: transform .14s, box-shadow .14s;
}
.stat:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.stat::before {
  content: ""; position: absolute; top: -30px; right: -30px; width: 110px; height: 110px;
  border-radius: 50%; opacity: .12; background: var(--primary);
}
.stat .label { color: var(--muted); font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.stat .value { font-size: 30px; font-weight: 800; margin-top: 8px; letter-spacing: -.02em; }
.grid.cols-3 .stat:nth-child(1)::before { background: #6366f1; }
.grid.cols-3 .stat:nth-child(2)::before { background: #0ea5e9; }
.grid.cols-3 .stat:nth-child(3)::before { background: #16a34a; }
.grid.cols-3 .stat:nth-child(4)::before { background: #f59e0b; }
.grid.cols-3 .stat:nth-child(5)::before { background: #8b5cf6; }
.grid.cols-3 .stat:nth-child(6)::before { background: #ec4899; }

/* ---------- Tables ---------- */
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--border); }
th { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; background: var(--surface-2); }
tbody tr { transition: background .12s; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--surface-2); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- Badges ---------- */
.badge-s { display: inline-block; padding: 4px 11px; border-radius: 30px; font-size: 11.5px; font-weight: 700; white-space: nowrap; letter-spacing: .01em; }
.st-new, .st-open, .st-pending { background: var(--amber-bg); color: var(--amber); }
.st-processing, .st-awaiting_data, .st-answered { background: var(--blue-bg); color: var(--blue); }
.st-done, .st-approved, .st-active, .st-closed { background: var(--green-bg); color: var(--green); }
.st-canceled, .st-refunded, .st-rejected, .st-blocked { background: var(--red-bg); color: var(--red); }

/* ---------- Buttons / forms ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 9px 15px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--card); color: var(--text); font-weight: 600; cursor: pointer;
  font-size: 13px; transition: background .14s, border-color .14s, transform .1s, box-shadow .14s; font-family: inherit;
}
.btn:hover { background: var(--gray-bg); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn.primary { background: linear-gradient(135deg, #6366f1, #7c3aed); border-color: transparent; color: #fff; box-shadow: 0 8px 18px rgba(99,102,241,.35); }
.btn.primary:hover { filter: brightness(1.05); box-shadow: 0 10px 22px rgba(99,102,241,.45); }
.btn.green { background: var(--green); border-color: transparent; color: #fff; box-shadow: 0 6px 14px rgba(22,163,74,.3); }
.btn.green:hover { filter: brightness(1.05); }
.btn.red { background: var(--red); border-color: transparent; color: #fff; box-shadow: 0 6px 14px rgba(220,38,38,.3); }
.btn.red:hover { filter: brightness(1.05); }
.btn.sm { padding: 6px 11px; font-size: 12px; border-radius: 8px; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; }
form.inline { display: inline; }

label { display: block; font-size: 13px; font-weight: 600; margin: 14px 0 6px; color: var(--text-soft); }
input[type=text], input[type=password], input[type=number], input[type=email], textarea, select {
  width: 100%; padding: 10px 13px; border: 1.5px solid var(--border); border-radius: 10px; font-size: 14px;
  font-family: inherit; background: var(--card); color: var(--text); transition: border-color .14s, box-shadow .14s;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(99,102,241,.13); }
textarea { min-height: 96px; resize: vertical; }
.field-row { display: flex; gap: 14px; }
.field-row > div { flex: 1; }
.help { color: var(--muted); font-size: 12px; margin-top: 5px; }

/* ---------- Flash / misc ---------- */
.flash { padding: 13px 16px; border-radius: 12px; margin-bottom: 16px; font-weight: 600; border: 1px solid transparent; }
.flash.success { background: var(--green-bg); color: #166534; border-color: #bbf7d0; }
.flash.error { background: var(--red-bg); color: #991b1b; border-color: #fecaca; }
.tabs { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.tabs a { padding: 8px 16px; border-radius: 10px; background: var(--card); border: 1px solid var(--border); color: var(--muted); font-weight: 600; box-shadow: var(--shadow-sm); }
.tabs a:hover { color: var(--text); }
.tabs a.active { background: linear-gradient(135deg, #6366f1, #7c3aed); color: #fff; border-color: transparent; box-shadow: 0 6px 16px rgba(99,102,241,.35); }
.muted { color: var(--muted); }
.mono { font-variant-numeric: tabular-nums; }
.empty { text-align: center; color: var(--muted); padding: 48px 20px; font-weight: 500; }
.section-title { font-size: 16px; font-weight: 800; margin: 28px 0 14px; letter-spacing: -.01em; }
.kv { display: grid; grid-template-columns: 180px 1fr; gap: 10px 16px; }
.kv .k { color: var(--muted); font-weight: 600; }
.pill-link { font-weight: 600; }

/* ---------- Редактор карточки + Telegram-предпросмотр ---------- */
.editor-grid { display: flex; gap: 22px; align-items: flex-start; }
.editor-main { flex: 1 1 auto; min-width: 0; }
.editor-side { flex: 0 0 350px; position: sticky; top: 88px; }
.tg-label { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; margin-bottom: 10px; }
.tg-screen {
  border-radius: 18px; padding: 16px;
  background:
    radial-gradient(circle at 20% 15%, rgba(255,255,255,.5), transparent 40%),
    linear-gradient(160deg, #b6c8da, #9fb3c8);
  border: 1px solid rgba(15,23,42,.12); box-shadow: var(--shadow-md) inset, var(--shadow-sm);
}
.tg-bubble {
  background: #fff; color: #16202b; border-radius: 14px; border-top-left-radius: 5px;
  padding: 12px 14px; box-shadow: 0 1px 2px rgba(0,0,0,.15); font-size: 13.5px; line-height: 1.55;
  max-width: 92%;
}
.tg-bubble b { color: #0f172a; }
.tg-media { margin: -2px -2px 8px; border-radius: 10px; overflow: hidden; }
.tg-media img, .tg-media video { width: 100%; display: block; max-height: 220px; object-fit: cover; background: #000; }
.tg-text { margin: 2px 0; }
.tg-desc { white-space: pre-wrap; color: #475569; }
.tg-buttons { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.tg-btn {
  background: rgba(255,255,255,.95); color: #2481cc; text-align: center; font-weight: 600;
  padding: 10px 12px; border-radius: 11px; font-size: 13px; box-shadow: 0 1px 2px rgba(0,0,0,.12);
}
.tg-btn-back { color: #5b6b7c; }
@media (max-width: 1100px) {
  .editor-grid { flex-direction: column; }
  .editor-side { position: static; flex-basis: auto; width: 100%; max-width: 420px; }
}

/* ---------- Визуальный редактор (rich text) ---------- */
.rte { border: 1.5px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--card); transition: border-color .14s, box-shadow .14s; }
.rte:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(99,102,241,.13); }
.rte-toolbar { display: flex; gap: 4px; padding: 7px 8px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.rte-toolbar button { width: 34px; height: 32px; border: 1px solid transparent; background: transparent; border-radius: 8px; cursor: pointer; color: var(--text-soft); font-size: 15px; display: inline-flex; align-items: center; justify-content: center; transition: background .12s, color .12s; }
.rte-toolbar button:hover { background: var(--card); border-color: var(--border); }
.rte-toolbar button.active { background: var(--primary); color: #fff; border-color: transparent; }
.rte-toolbar .rte-sep { width: 1px; background: var(--border); margin: 4px 4px; }
.rte-area { min-height: 120px; max-height: 360px; overflow-y: auto; padding: 12px 14px; font-size: 14px; line-height: 1.55; color: var(--text); outline: none; }
.rte-area:empty::before { content: attr(data-placeholder); color: var(--muted); pointer-events: none; }
.rte-area img.emoji { height: 1.15em; width: 1.15em; }

/* ---------- Медиа карточки ---------- */
.media-box { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; }
.media-frame { width: 220px; border-radius: 14px; overflow: hidden; border: 1px solid var(--border); background: var(--surface-2); }
.media-frame img, .media-frame video { width: 100%; display: block; max-height: 260px; object-fit: contain; background: #000; }
.media-empty { width: 220px; min-height: 130px; border: 2px dashed var(--border); border-radius: 14px; display: flex; flex-direction: column; gap: 6px; align-items: center; justify-content: center; color: var(--muted); font-size: 13px; text-align: center; padding: 14px; }
.media-empty .ic { font-size: 26px; }
.media-controls { flex: 1 1 220px; min-width: 220px; }
.media-type-badge { display: inline-block; padding: 2px 9px; border-radius: 20px; font-size: 11px; font-weight: 700; background: var(--blue-bg); color: var(--blue); text-transform: uppercase; letter-spacing: .03em; }
.file-input { display: block; width: 100%; padding: 9px; border: 1.5px dashed var(--border); border-radius: 10px; background: var(--card); font-size: 13px; cursor: pointer; }

/* ---------- Современный список товаров ---------- */
.prod-list { display: flex; flex-direction: column; }
.prod-item { display: flex; align-items: center; gap: 16px; padding: 14px 20px; border-bottom: 1px solid var(--border); transition: background .12s; }
.prod-item:last-child { border-bottom: 0; }
.prod-item:hover { background: var(--surface-2); }
.prod-thumb { width: 60px; height: 60px; border-radius: 13px; flex: none; background: linear-gradient(160deg, var(--surface-2), var(--card)); display: flex; align-items: center; justify-content: center; overflow: hidden; border: 1px solid var(--border); font-size: 24px; }
.prod-thumb img, .prod-thumb video { width: 100%; height: 100%; object-fit: cover; }
.prod-info { flex: 1 1 auto; min-width: 0; }
.prod-info .t { font-weight: 700; font-size: 15px; display: flex; align-items: center; gap: 6px; }
.prod-info .d { color: var(--muted); font-size: 12.5px; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 560px; }
.prod-meta { display: flex; align-items: center; gap: 20px; color: var(--muted); font-size: 13px; flex: none; }
.prod-meta .m-num { font-variant-numeric: tabular-nums; }
.prod-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; flex: none; }
@media (max-width: 980px) {
  .prod-item { flex-wrap: wrap; }
  .prod-meta { order: 3; gap: 14px; }
  .prod-actions { order: 4; width: 100%; justify-content: flex-start; }
}

/* ---------- Login ---------- */
.login-body { background: #0b1020; overflow: hidden; }
.login-bg { position: fixed; inset: 0; z-index: 0;
  background:
    radial-gradient(900px 600px at 15% 10%, rgba(99,102,241,.18), transparent 60%),
    radial-gradient(800px 600px at 85% 90%, rgba(124,58,237,.20), transparent 60%),
    linear-gradient(160deg, #0b1020 0%, #121a36 55%, #0b1020 100%);
}
.login-bg .orb { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55;
  animation: float 14s ease-in-out infinite; }
.login-bg .orb-1 { width: 340px; height: 340px; left: -80px; top: -60px;
  background: radial-gradient(circle, #6366f1, transparent 70%); }
.login-bg .orb-2 { width: 380px; height: 380px; right: -100px; bottom: -90px;
  background: radial-gradient(circle, #7c3aed, transparent 70%); animation-delay: -5s; }
.login-bg .orb-3 { width: 240px; height: 240px; right: 25%; top: 12%;
  background: radial-gradient(circle, #0ea5e9, transparent 70%); animation-delay: -9s; opacity:.35; }
@keyframes float {
  0%,100% { transform: translate(0,0) scale(1); }
  50%     { transform: translate(24px,-28px) scale(1.08); }
}

.login-wrap { position: relative; z-index: 1; display:flex; align-items:center; justify-content:center;
  min-height:100vh; padding: 20px; }
.login-card {
  position: relative; width: 380px; max-width: 100%; padding: 40px 36px 30px;
  text-align: center; border-radius: 20px;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid rgba(255,255,255,.6);
  box-shadow: 0 24px 60px rgba(2,6,23,.55), 0 2px 8px rgba(2,6,23,.25);
  animation: cardIn .5s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes cardIn { from { opacity:0; transform: translateY(16px) scale(.98);} to { opacity:1; transform:none; } }
.login-logo { width: 64px; height: 64px; margin: 0 auto 16px; display:flex; align-items:center; justify-content:center;
  border-radius: 18px; background: linear-gradient(160deg, #eef2ff, #f5f3ff);
  box-shadow: 0 8px 22px rgba(99,102,241,.35); }
.login-card h1 { margin: 0 0 4px; font-size: 24px; font-weight: 800; letter-spacing:-.02em;
  background: linear-gradient(90deg,#4f46e5,#7c3aed); -webkit-background-clip: text; background-clip: text; color: transparent; }
.login-card p.sub { color: var(--muted); margin: 0 0 24px; font-size: 13px; }

.login-card .field { position: relative; margin-bottom: 14px; text-align: left; }
.login-card .field-ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--muted); display:flex; pointer-events: none; transition: color .15s; }
.login-card .field input {
  width: 100%; padding: 13px 14px 13px 44px; font-size: 15px;
  border: 1.5px solid var(--border); border-radius: 12px; background: #fff;
  transition: border-color .15s, box-shadow .15s; }
.login-card .field input::placeholder { color: #94a3b8; }
.login-card .field input:focus { outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(99,102,241,.15); }
.login-card .field input:focus + .field-ico,
.login-card .field:focus-within .field-ico { color: var(--primary); }

.btn-login {
  width: 100%; margin-top: 8px; padding: 13px 16px; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 15px; font-weight: 700; color: #fff; border-radius: 12px;
  background: linear-gradient(135deg, #6366f1, #7c3aed);
  box-shadow: 0 10px 24px rgba(99,102,241,.45); transition: transform .12s, box-shadow .12s, filter .12s; }
.btn-login:hover { transform: translateY(-1px); box-shadow: 0 14px 30px rgba(99,102,241,.55); filter: brightness(1.04); }
.btn-login:active { transform: translateY(0); box-shadow: 0 6px 16px rgba(99,102,241,.4); }
.btn-login svg { transition: transform .15s; }
.btn-login:hover svg { transform: translateX(3px); }

.login-foot { margin: 18px 0 0; font-size: 11px; color: #94a3b8; }
.login-card .flash { text-align: left; }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .sidebar { width: 70px; }
  .sidebar .brand { justify-content: center; padding: 18px 0; }
  .sidebar .brand .brand-text { display: none; }
  .nav a { justify-content: center; padding: 12px 0; }
  .nav a span.txt { display: none; }
  .nav .badge { position: absolute; top: 6px; right: 10px; margin: 0; }
  .sidebar .foot { text-align: center; padding: 14px 0; }
  .sidebar .foot span { display: none; }
  .main { margin-left: 70px; }
  .content { padding: 20px; }
  .grid.cols-3, .grid.cols-2 { grid-template-columns: 1fr; }
}
