/* ===== Современная светлая тема ===== */
:root {
  --bg: #f4f5f8;
  --bg-grad-1: #eef1f7;
  --bg-grad-2: #f7f8fb;
  --surface: #ffffff;
  --surface-2: #f8f9fc;
  --surface-3: #f1f3f8;
  --border: #e6e8ef;
  --border-strong: #d6d9e3;
  --text: #14161c;
  --text-2: #424755;
  --muted: #8b909e;
  --primary: #4f46e5;
  --primary-600: #4338ca;
  --primary-soft: #eceaff;
  --accent: #7c5cff;
  --ok: #16a34a;
  --ok-soft: #e7f6ec;
  --warn: #c2740c;
  --warn-soft: #fbf0dd;
  --info: #2563eb;
  --info-soft: #e7efff;
  --danger: #dc2626;
  --danger-soft: #fceaea;
  --shadow-sm: 0 1px 2px rgba(20,22,28,.04), 0 1px 3px rgba(20,22,28,.06);
  --shadow-md: 0 4px 12px rgba(20,22,28,.07), 0 2px 6px rgba(20,22,28,.05);
  --shadow-lg: 0 18px 50px rgba(20,22,28,.16);
  --radius: 16px;
  --radius-sm: 11px;
  --radius-lg: 22px;
  --r-pill: 999px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body {
  margin: 0; padding: 0; min-height: 100vh;
  background:
    radial-gradient(1200px 600px at 100% -10%, #eae7ff 0%, transparent 55%),
    radial-gradient(900px 500px at -10% 0%, #e6f0ff 0%, transparent 50%),
    linear-gradient(180deg, var(--bg-grad-1), var(--bg-grad-2));
  background-attachment: fixed;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  font-size: 15.5px; line-height: 1.5;
}
a { color: var(--primary); text-decoration: none; }
.wrap { max-width: 540px; margin: 0 auto; padding: 18px 16px 120px; }
.icon { width: 20px; height: 20px; display: inline-block; vertical-align: middle; flex: none; }
.icon-sm { width: 16px; height: 16px; }

/* ===== Брендинг / логотип ===== */
.brand { display: flex; flex-direction: column; align-items: center; gap: 12px; margin: 40px 0 22px; }
.logo-mark {
  width: 60px; height: 60px; border-radius: 18px;
  background: linear-gradient(140deg, var(--primary), var(--accent));
  display: grid; place-items: center; color: #fff;
  box-shadow: 0 10px 26px rgba(79,70,229,.32);
}
.logo-mark .icon { width: 30px; height: 30px; }
.brand h1 { font-size: 19px; font-weight: 680; margin: 0; letter-spacing: -.2px; }
.brand p { color: var(--muted); font-size: 13px; margin: 0; }

/* ===== Карточка ===== */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-md);
  animation: rise .35s cubic-bezier(.2,.7,.3,1) both;
}
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.card h2 { font-size: 18px; margin: 0 0 3px; letter-spacing: -.2px; }
.card .sub { color: var(--muted); font-size: 13.5px; margin: 0 0 18px; }

/* ===== Поля ===== */
label { display: block; font-size: 13px; color: var(--text-2); font-weight: 550; margin: 15px 0 7px; }
.field { position: relative; }
input[type=text], input[type=password], input[type=search], input[type=file], textarea, select {
  width: 100%; padding: 13px 14px; font-size: 15.5px; color: var(--text);
  background: var(--surface); border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm); outline: none; transition: border-color .15s, box-shadow .15s, background .15s;
}
input::placeholder, textarea::placeholder { color: #aab0bd; }
input:focus, textarea:focus, select:focus {
  border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); background: #fff;
}
textarea { resize: vertical; min-height: 92px; font-family: inherit; }
select { appearance: none; 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='%238b909e' stroke-width='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 12px center; padding-right: 38px; }

/* ===== Кнопки ===== */
.btn {
  width: 100%; padding: 13px 16px; font-size: 15.5px; font-weight: 620; font-family: inherit;
  border: none; border-radius: var(--radius-sm); color: #fff; cursor: pointer; margin-top: 18px;
  background: linear-gradient(135deg, var(--primary), var(--primary-600));
  box-shadow: 0 6px 18px rgba(79,70,229,.26); transition: transform .08s ease, box-shadow .2s, opacity .2s;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.btn:hover { box-shadow: 0 8px 22px rgba(79,70,229,.34); }
.btn:active { transform: translateY(1px) scale(.995); }
.btn:disabled { opacity: .55; cursor: default; box-shadow: none; }
.btn.secondary { background: var(--surface-2); color: var(--text); border: 1.5px solid var(--border-strong); box-shadow: none; }
.btn.secondary:hover { background: var(--surface-3); }
.btn.ghost { background: transparent; color: var(--text-2); border: 1.5px solid var(--border); box-shadow: none; margin-top: 10px; }
.btn.danger { background: linear-gradient(135deg, #ef4444, #dc2626); box-shadow: 0 6px 18px rgba(220,38,38,.24); }
.btn.small { width: auto; padding: 9px 14px; font-size: 13.5px; margin: 0; box-shadow: none; }
.btn.icon-btn { width: 42px; height: 42px; padding: 0; border-radius: 12px; }

.err { color: var(--danger); font-size: 13px; margin-top: 12px; min-height: 18px; }
.note { color: var(--muted); font-size: 12.5px; margin-top: 10px; }

/* ===== QR / TOTP ===== */
.qr { display: block; width: 188px; height: 188px; margin: 10px auto; border-radius: 14px; background: #fff; padding: 8px; box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
.secret { text-align: center; font-family: ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: 2px; background: var(--surface-2); border: 1px dashed var(--border-strong); border-radius: 12px; padding: 12px; word-break: break-all; font-size: 14px; color: var(--text-2); }

/* ===== Цифровой код-пад ===== */
.code-dots { display: flex; gap: 14px; justify-content: center; margin: 20px 0 24px; }
.dot { width: 13px; height: 13px; border-radius: 50%; background: var(--border-strong); transition: transform .15s, background .15s; }
.dot.filled { background: var(--primary); transform: scale(1.12); }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 320px; margin: 0 auto; }
.key {
  font-size: 23px; font-weight: 600; padding: 15px 0; border-radius: 16px; border: 1.5px solid var(--border);
  background: var(--surface); color: var(--text); cursor: pointer; transition: transform .08s, background .12s, border-color .12s;
  display: grid; place-items: center;
}
.key:hover { background: var(--surface-2); }
.key:active { transform: scale(.94); background: var(--primary-soft); border-color: var(--primary); }
.key.blank { background: transparent; border: none; cursor: default; }
.key .icon { width: 22px; height: 22px; color: var(--text-2); }
.otp-input { text-align: center; letter-spacing: 12px; font-size: 24px; font-weight: 700; font-family: ui-monospace, monospace; }

/* ===== Топбар ===== */
.appbar {
  position: sticky; top: 0; z-index: 20; margin: -18px -16px 14px; padding: 12px 16px;
  background: rgba(247,248,251,.82); backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.appbar .bl { display: flex; align-items: center; gap: 10px; }
.appbar .logo-mark { width: 38px; height: 38px; border-radius: 11px; box-shadow: 0 4px 12px rgba(79,70,229,.28); }
.appbar .logo-mark .icon { width: 20px; height: 20px; }
.appbar .title { font-weight: 680; font-size: 15px; letter-spacing: -.2px; }
.appbar .title small { display: block; font-weight: 500; font-size: 11.5px; color: var(--muted); }
.appbar .br { display: flex; align-items: center; gap: 8px; }

.iconbtn {
  width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface);
  display: grid; place-items: center; cursor: pointer; color: var(--text-2); transition: background .12s, color .12s, border-color .12s; position: relative;
}
.iconbtn:hover { background: var(--surface-2); color: var(--text); }
.iconbtn.active { color: var(--primary); border-color: var(--primary); background: var(--primary-soft); }
.iconbtn .dot-badge { position: absolute; top: 7px; right: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--danger); border: 2px solid var(--surface); }

.avatar {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; font-weight: 650; font-size: 14px;
  cursor: pointer; border: 2px solid #fff; box-shadow: var(--shadow-sm); user-select: none;
}

/* ===== Навигация (pill tabs) ===== */
.tabs { display: flex; gap: 7px; margin: 6px 0 16px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  padding: 9px 15px; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--border);
  font-size: 13.5px; font-weight: 560; white-space: nowrap; cursor: pointer; color: var(--text-2);
  display: inline-flex; align-items: center; gap: 7px; transition: all .15s;
}
.tab:hover { background: var(--surface-2); }
.tab.active { background: var(--text); color: #fff; border-color: var(--text); box-shadow: var(--shadow-sm); }
.tab .count { background: rgba(0,0,0,.08); border-radius: var(--r-pill); padding: 1px 7px; font-size: 11.5px; font-weight: 650; }
.tab.active .count { background: rgba(255,255,255,.22); }

/* ===== Карточка заявки ===== */
.ticket {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 15px 16px;
  margin-bottom: 11px; cursor: pointer; box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
  transition: transform .12s, box-shadow .2s, border-color .15s; animation: rise .3s ease both;
}
.ticket:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.ticket::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--border-strong); }
.ticket.pri-urgent::before { background: var(--danger); }
.ticket.pri-high::before { background: var(--warn); }
.ticket.pri-normal::before { background: var(--info); }
.ticket.pri-low::before { background: #b9bdc9; }
.ticket .row1 { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.ticket .ttl { font-weight: 615; font-size: 15px; letter-spacing: -.1px; }
.ticket .id { color: var(--muted); font-weight: 600; }
.ticket .meta { color: var(--muted); font-size: 12.5px; margin-top: 7px; display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; }
.ticket .meta .mi { display: inline-flex; align-items: center; gap: 5px; }
.ticket .meta .icon { width: 14px; height: 14px; }

.badge { font-size: 11.5px; font-weight: 620; padding: 4px 11px; border-radius: var(--r-pill); white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.b-new { background: var(--info-soft); color: #1f5fe0; }
.b-in_progress { background: var(--warn-soft); color: var(--warn); }
.b-done { background: var(--ok-soft); color: var(--ok); }
.b-rejected { background: var(--danger-soft); color: var(--danger); }

/* ===== Пустое состояние / скелетоны ===== */
.empty { text-align: center; color: var(--muted); padding: 48px 18px; }
.empty .icon { width: 42px; height: 42px; color: var(--border-strong); margin-bottom: 10px; }
.empty p { margin: 0; font-size: 14px; }
.skeleton { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); height: 78px; margin-bottom: 11px; position: relative; overflow: hidden; }
.skeleton::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(0,0,0,.04), transparent); animation: shimmer 1.3s infinite; }
@keyframes shimmer { 100% { transform: translateX(100%); } }

/* ===== FAB ===== */
.fab {
  position: fixed; right: max(18px, calc(50% - 270px + 18px)); bottom: 24px; height: 54px; padding: 0 22px;
  border-radius: var(--r-pill); background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; border: none;
  font-size: 15px; font-weight: 620; cursor: pointer; z-index: 30; box-shadow: 0 12px 30px rgba(79,70,229,.42);
  display: inline-flex; align-items: center; gap: 8px; transition: transform .1s, box-shadow .2s;
}
.fab:hover { box-shadow: 0 14px 34px rgba(79,70,229,.5); }
.fab:active { transform: scale(.96); }

/* ===== Модалки ===== */
.modal-bg { position: fixed; inset: 0; background: rgba(20,22,28,.42); backdrop-filter: blur(3px); display: flex; align-items: flex-end; justify-content: center; z-index: 50; animation: fade .2s ease; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: var(--surface); border-radius: var(--radius-lg) var(--radius-lg) 0 0; width: 100%; max-width: 540px;
  padding: 8px 20px 26px; max-height: 92vh; overflow-y: auto; box-shadow: var(--shadow-lg); animation: slideup .3s cubic-bezier(.2,.7,.3,1);
}
@keyframes slideup { from { transform: translateY(100%); } to { transform: none; } }
.modal .grip { width: 40px; height: 4px; border-radius: 4px; background: var(--border-strong); margin: 8px auto 16px; }
.modal h3 { margin: 0 0 14px; font-size: 18px; letter-spacing: -.2px; }
@media (min-width: 600px) { .modal-bg { align-items: center; } .modal { border-radius: var(--radius-lg); margin: 16px; } }

.hidden { display: none !important; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; overflow: hidden; }

/* Публичная форма: успех */
.success-ico { width: 72px; height: 72px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); display: grid; place-items: center; margin: 8px auto 16px; }
.success-ico .icon { width: 36px; height: 36px; }
.center { text-align: center; }
.staff-link { text-align: center; margin-top: 22px; font-size: 13px; color: var(--muted); }

/* Выбор блока/этажа/кабинета кнопками */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-btn {
  padding: 11px 18px; border-radius: 13px; border: 1.5px solid var(--border-strong);
  background: var(--surface); color: var(--text-2); cursor: pointer; font-weight: 580; font-size: 14.5px;
  font-family: inherit; transition: all .14s ease; min-width: 52px; text-align: center;
}
.chip-btn:hover { border-color: var(--primary); color: var(--primary); }
.chip-btn.sel {
  background: linear-gradient(135deg, var(--primary), var(--primary-600)); color: #fff;
  border-color: transparent; box-shadow: 0 5px 14px rgba(79,70,229,.28);
}
.chip-btn.sel:hover { color: #fff; }
.picker-block { margin-top: 8px; }
.picker-block.dim { opacity: .4; pointer-events: none; }
.picker-label { font-size: 12.5px; color: var(--muted); font-weight: 600; margin: 14px 0 7px; text-transform: uppercase; letter-spacing: .4px; }
.divider-or { text-align: center; color: var(--muted); font-size: 12.5px; margin: 16px 0 4px; position: relative; }
.divider-or::before, .divider-or::after { content: ""; position: absolute; top: 50%; width: 38%; height: 1px; background: var(--border); }
.divider-or::before { left: 0; } .divider-or::after { right: 0; }

/* ===== Фото ===== */
.photos { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 12px; }
.photos img { width: 86px; height: 86px; object-fit: cover; border-radius: 12px; border: 1px solid var(--border); cursor: zoom-in; transition: transform .12s; }
.photos img:hover { transform: scale(1.04); }
.uploader { border: 1.5px dashed var(--border-strong); border-radius: var(--radius-sm); padding: 14px; text-align: center; color: var(--muted); font-size: 13px; cursor: pointer; transition: border-color .15s, background .15s; }
.uploader:hover { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); }

/* ===== Детали заявки ===== */
.kv { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--surface-3); font-size: 14px; }
.kv .k { color: var(--muted); min-width: 96px; font-size: 13px; }
.kv .v { color: var(--text); font-weight: 500; }
.detail-head { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }

/* ===== Личный кабинет ===== */
.profile-hero { display: flex; align-items: center; gap: 14px; padding: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); margin-bottom: 14px; }
.profile-hero .av { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; font-size: 22px; font-weight: 650; }
.profile-hero .nm { font-size: 18px; font-weight: 670; letter-spacing: -.2px; }
.profile-hero .rl { font-size: 13px; color: var(--muted); margin-top: 2px; }
.role-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: var(--r-pill); background: var(--primary-soft); color: var(--primary-600); margin-top: 6px; }

.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 11px; margin-bottom: 16px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow-sm); transition: transform .12s, box-shadow .2s; }
.stat:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.stat .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; margin-bottom: 10px; }
.stat .ic .icon { width: 19px; height: 19px; }
.stat .n { font-size: 26px; font-weight: 720; letter-spacing: -.5px; line-height: 1; }
.stat .l { font-size: 12.5px; color: var(--muted); margin-top: 5px; }
.ic-blue { background: var(--info-soft); color: var(--info); }
.ic-amber { background: var(--warn-soft); color: var(--warn); }
.ic-green { background: var(--ok-soft); color: var(--ok); }
.ic-violet { background: var(--primary-soft); color: var(--primary); }

.section { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); margin-bottom: 14px; overflow: hidden; }
.section > .head { padding: 15px 18px; font-weight: 620; font-size: 14.5px; border-bottom: 1px solid var(--surface-3); display: flex; align-items: center; gap: 9px; }
.section > .body { padding: 16px 18px; }
.row-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 18px; border-bottom: 1px solid var(--surface-3); cursor: pointer; transition: background .12s; }
.row-item:last-child { border-bottom: none; }
.row-item:hover { background: var(--surface-2); }
.row-item .li { display: flex; align-items: center; gap: 12px; }
.row-item .li .icon { color: var(--text-2); }
.row-item .lt { font-size: 14px; font-weight: 520; }
.row-item .ls { font-size: 12px; color: var(--muted); margin-top: 1px; }
.row-item .chev { color: var(--muted); }

.activity-item { display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--surface-3); }
.activity-item:last-child { border-bottom: none; }
.activity-item .ad { width: 9px; height: 9px; border-radius: 50%; background: var(--primary); margin-top: 6px; flex: none; }
.activity-item .at { font-size: 13.5px; font-weight: 520; }
.activity-item .as { font-size: 12px; color: var(--muted); margin-top: 1px; }

/* ===== Тосты ===== */
#toasts { position: fixed; left: 50%; bottom: 92px; transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: 8px; width: calc(100% - 32px); max-width: 420px; pointer-events: none; }
.toast { background: var(--text); color: #fff; padding: 12px 15px; border-radius: 13px; font-size: 13.5px; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 10px; animation: toastin .25s cubic-bezier(.2,.7,.3,1); }
.toast.ok { background: #15803d; }
.toast.err { background: #b91c1c; }
.toast .icon { width: 18px; height: 18px; flex: none; }
@keyframes toastin { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ===== Лайтбокс ===== */
.lightbox { position: fixed; inset: 0; background: rgba(10,12,16,.9); z-index: 120; display: grid; place-items: center; padding: 24px; animation: fade .2s; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 12px; box-shadow: var(--shadow-lg); }

/* ===== Свитч ===== */
.switch { width: 46px; height: 28px; border-radius: 999px; background: var(--border-strong); position: relative; cursor: pointer; transition: background .2s; flex: none; }
.switch.on { background: var(--primary); }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: var(--shadow-sm); }
.switch.on::after { transform: translateX(18px); }

/* ============================================================
   ПОЛИРОВКА / премиум-вид (добавления, переопределяют выше)
   ============================================================ */
body {
  background:
    radial-gradient(1100px 520px at 88% -10%, #eae6ff 0%, transparent 58%),
    radial-gradient(820px 460px at -10% -6%, #e1ecff 0%, transparent 55%),
    radial-gradient(760px 760px at 50% 122%, #ece9ff 0%, transparent 60%),
    linear-gradient(180deg, #f2f4fb 0%, #f7f8fc 100%);
  background-attachment: fixed;
}

/* Логотип со свечением и мягкой пульсацией */
.logo-mark { position: relative; isolation: isolate; }
.logo-mark::after {
  content: ""; position: absolute; inset: -8px; border-radius: inherit;
  background: linear-gradient(140deg, var(--primary), var(--accent));
  filter: blur(16px); opacity: .45; z-index: -1;
  animation: glow 3.6s ease-in-out infinite;
}
@keyframes glow { 0%,100% { opacity:.38; } 50% { opacity:.6; } }

/* Заголовки бренда с лёгким градиентом */
.brand h1 {
  background: linear-gradient(92deg, #1a1c24, #4b3fb0 120%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

/* Карточки: тонкий внутренний хайлайт + глубже тень */
.card, .section, .stat, .profile-hero, .ticket {
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 6px 22px rgba(28,30,50,.07), 0 2px 6px rgba(28,30,50,.05);
}
.card { border-radius: 20px; }

/* Кнопки: блик сверху + лёгкое поднятие */
.btn { position: relative; overflow: hidden; letter-spacing: .1px; }
.btn::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.20), rgba(255,255,255,0) 46%);
  pointer-events: none;
}
.btn:not(.secondary):not(.ghost):hover { transform: translateY(-1px); }

/* Поля: мягче рамка, выразительный фокус */
input[type=text], input[type=password], input[type=search], textarea, select {
  border-color: var(--border); background: #fcfcfe;
}
input:focus, textarea:focus, select:focus { box-shadow: 0 0 0 4px rgba(79,70,229,.14); }

/* Бейджи статусов — чуть объёмнее */
.badge { box-shadow: inset 0 0 0 1px rgba(0,0,0,.03); }

/* Аватар и плитки выбора — мягкое свечение при наведении */
.avatar { transition: transform .12s, box-shadow .2s; }
.avatar:hover { transform: scale(1.05); box-shadow: 0 6px 18px rgba(79,70,229,.4); }
.chip-btn.sel { box-shadow: 0 6px 16px rgba(79,70,229,.32); }

/* Тонкая акцентная полоска под топбаром */
.appbar { box-shadow: 0 1px 0 rgba(20,22,28,.04), 0 8px 24px -16px rgba(79,70,229,.4); }

/* Плавное появление вкладок-контента */
#view { animation: rise .32s cubic-bezier(.2,.7,.3,1) both; }

/* Поднимаем читаемость подписей */
.card .sub, .brand p { letter-spacing: .1px; }

/* Кнопка отправки на формах — заметный градиент */
#btn-submit, #btn-password, #btn-enroll, #btn-totp {
  background: linear-gradient(135deg, #5b54e8, #7c5cff);
  box-shadow: 0 8px 22px rgba(92,76,255,.34);
}

/* Капча на публичной форме */
.captcha-row { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.captcha-img { border: 1px solid var(--border-strong); border-radius: 10px; background: #fff; display: block; }
.captcha-refresh { width: 44px; height: 44px; flex: none; border-radius: 11px; border: 1.5px solid var(--border-strong); background: var(--surface); color: var(--text-2); cursor: pointer; display: grid; place-items: center; transition: border-color .15s, color .15s; }
.captcha-refresh:hover { border-color: var(--primary); color: var(--primary); }
#captcha-input { text-transform: uppercase; letter-spacing: 4px; font-weight: 600; }
