:root {
  --bg: #eef0fa;
  --card: #fbfcff;
  --text: #20263a;
  --muted: #8a94a6;
  --border: #e6e9f5;
  --inp: #f2f4fb;
  --soft: #e8eaf8;
  --navpill: #e4e6fb;
  --indigo: #5b5fc7;
  --indigo2: #6a5ae0;
  --violet: #8a7bf0;
  --pink: #e061ae;
  --red: #e8384f;
  --red-soft: #fbe9ec;
  --green: #10b981;
  --warning: #f59e0b;
  --info: #3b82f6;
  --shadow: 0 4px 18px rgba(90,95,199,.10);
  --shadow-lg: 0 14px 40px rgba(90,95,199,.18);
  --r: 20px;
}

[data-theme="dark"] {
  --bg: #101321;
  --card: #191d2e;
  --text: #e8ecf8;
  --muted: #8b93a7;
  --border: #262b40;
  --inp: #1e2338;
  --soft: #232945;
  --navpill: #262b4a;
  --indigo: #9fa3f5;
  --indigo2: #8a7cf0;
  --red: #ff5d73;
  --red-soft: #3a2029;
  --green: #34d399;
  --shadow: 0 4px 18px rgba(0,0,0,.45);
  --shadow-lg: 0 14px 40px rgba(0,0,0,.6);
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; overflow: hidden; }
body {
  font-family: 'Segoe UI', Tahoma, sans-serif;
  background: var(--bg);
  color: var(--text);
  display: flex;
  flex-direction: column;
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
}
button, input, select, textarea { font-family: inherit; }

.mi {
  font-family: 'Material Symbols Rounded';
  font-weight: normal;
  font-style: normal;
  font-size: 22px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  font-variation-settings: 'FILL' 1, 'wght' 500, 'GRAD' 0, 'opsz' 24;
  pointer-events: none;
}

.t-green { background: rgba(16,185,129,.16); color: #10b981; }
.t-red { background: rgba(232,56,79,.14); color: #e8384f; }
.t-orange { background: rgba(245,158,11,.16); color: #f59e0b; }
.t-blue { background: rgba(59,130,246,.15); color: #3b82f6; }
.t-purple { background: rgba(139,92,246,.15); color: #8b5cf6; }
.t-teal { background: rgba(13,148,136,.15); color: #0d9488; }
.t-indigo { background: rgba(91,95,199,.15); color: #5b5fc7; }
.t-amber { background: rgba(249,115,22,.15); color: #f97316; }

[data-theme="dark"] .t-green { color: #34d399; }
[data-theme="dark"] .t-red { color: #ff8098; }
[data-theme="dark"] .t-orange { color: #fbbf24; }
[data-theme="dark"] .t-blue { color: #60a5fa; }
[data-theme="dark"] .t-purple { color: #a78bfa; }
[data-theme="dark"] .t-teal { color: #2dd4bf; }
[data-theme="dark"] .t-indigo { color: #9fa3f5; }
[data-theme="dark"] .t-amber { color: #fb923c; }

.loading {
  position: fixed; inset: 0;
  background: linear-gradient(135deg, #8a7bf0, #e061ae);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  z-index: 9999; color: #fff;
  transition: opacity .45s;
}
.loading.hidden { opacity: 0; pointer-events: none; }
.loading img { width: 96px; height: 96px; border-radius: 26px; object-fit: contain; background: rgba(10,12,40,.35); padding: 12px; margin-bottom: 14px; }

.spinner {
  width: 32px; height: 32px;
  border: 3px solid rgba(255,255,255,.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .9s linear infinite;
  margin-top: 16px;
}
.spinner.dark { border-color: var(--border); border-top-color: var(--indigo); margin: 16px auto; }
@keyframes spin { to { transform: rotate(360deg); } }

header {
  background: var(--card);
  padding: 10px 14px;
  flex-shrink: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  box-shadow: 0 2px 12px rgba(90,95,199,.08);
  z-index: 5;
}
.h-logo { width: 44px; height: 44px; border-radius: 14px; object-fit: contain; background: linear-gradient(135deg, #23265c, #3b3f8f); padding: 7px; flex-shrink: 0; }
.h-title { font-size: 17px; font-weight: 800; color: var(--indigo); display: flex; align-items: center; gap: 6px; }
.h-sub { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.cbtn {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--soft);
  border: none; color: var(--indigo);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.cbtn:active { transform: scale(.9); }
.cbtn .mi { font-size: 20px; }
.cbtn.on-bell { background: rgba(16,185,129,.16); color: var(--green); }

.pill {
  border-radius: 22px;
  background: var(--soft);
  border: none; color: var(--indigo);
  padding: 0 14px; height: 40px;
  display: flex; align-items: center; gap: 6px;
  font-weight: 800; font-size: 13px;
  cursor: pointer;
}
.pill .mi { font-size: 18px; }

main {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 14px 14px 92px;
  -webkit-overflow-scrolling: touch;
}

.screen { display: none; animation: fade .35s; }
.screen.active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.card { background: var(--card); border-radius: var(--r); padding: 16px; margin-bottom: 12px; box-shadow: var(--shadow); }
.sec { font-size: 15px; font-weight: 800; margin: 16px 4px 10px; display: flex; justify-content: space-between; align-items: center; }
.sec .link { font-size: 12px; color: var(--indigo); font-weight: 800; cursor: pointer; display: flex; align-items: center; gap: 4px; }

.welcome {
  background: linear-gradient(135deg, #8a7bf0 0%, #c86dd8 55%, #e061ae 100%);
  border-radius: 26px; padding: 20px 18px;
  color: #fff; display: flex; align-items: center; gap: 14px;
  box-shadow: var(--shadow-lg); margin-bottom: 14px;
  position: relative; overflow: hidden;
}
.welcome .av { width: 60px; height: 60px; border-radius: 18px; background: rgba(255,255,255,.22); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.welcome .av .mi { font-size: 30px; }
.welcome .t { font-size: 17px; font-weight: 800; }
.welcome .s { font-size: 12px; opacity: .92; margin-top: 4px; }
.welcome .role { display: inline-block; background: rgba(255,255,255,.22); padding: 3px 10px; border-radius: 10px; font-size: 11px; font-weight: 700; margin-top: 6px; }

.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 12px; }
.stat { background: var(--card); border-radius: var(--r); padding: 14px; box-shadow: var(--shadow); }
.stat .ic { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 8px; }
.stat .ic .mi { font-size: 20px; }
.stat .v { font-size: 20px; font-weight: 800; }
.stat .l { font-size: 11px; color: var(--muted); font-weight: 600; }

.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 12px; }
.quick .q { background: var(--card); border-radius: 14px; padding: 10px 4px; text-align: center; box-shadow: var(--shadow); }
.quick .q .mi { font-size: 19px; color: var(--indigo); }
.quick .q .v { font-size: 15px; font-weight: 800; }
.quick .q .l { font-size: 9px; color: var(--muted); }

.qa { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.qa button { background: var(--card); border: none; border-radius: 18px; padding: 13px 4px; text-align: center; cursor: pointer; box-shadow: var(--shadow); color: var(--text); }
.qa button:active { transform: scale(.93); }
.qa .ic { width: 44px; height: 44px; border-radius: 14px; margin: 0 auto 7px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.qa .ic .mi { font-size: 21px; }
.qa .lb { font-size: 10px; font-weight: 700; }

.li {
  background: var(--card); border-radius: 16px;
  padding: 12px 13px; margin-bottom: 10px;
  box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 11px;
  cursor: pointer; color: var(--text);
}
.li:active { transform: scale(.98); }
.li .ic { width: 44px; height: 44px; border-radius: 14px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; }
.li .ic .mi { font-size: 20px; }
.li .c { flex: 1; min-width: 0; }
.li .t { font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.li .s { font-size: 11px; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.li .m { text-align: left; flex-shrink: 0; }
.li .amt { font-size: 13px; font-weight: 800; color: var(--indigo); }
.chev { color: var(--muted); font-size: 18px; }

.st { font-size: 10px; padding: 3px 9px; border-radius: 10px; font-weight: 700; display: inline-block; margin-top: 3px; }
.st.red { background: rgba(232,56,79,.12); color: var(--red); }
.st.green { background: rgba(16,185,129,.14); color: var(--green); }
.st.orange { background: rgba(245,158,11,.16); color: #f59e0b; }
.st.blue { background: rgba(59,130,246,.14); color: #3b82f6; }

.inp { width: 100%; padding: 13px 14px; border: 1.5px solid var(--border); border-radius: 14px; font-size: 15px; background: var(--inp); color: var(--text); margin-bottom: 12px; }
.inp:focus { outline: none; border-color: var(--indigo); }
textarea.inp { resize: vertical; min-height: 80px; }
.lbl { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; color: var(--muted); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hint { font-size: 11px; color: var(--muted); margin: -8px 0 12px; display: flex; align-items: center; gap: 5px; }
.hint .mi { font-size: 14px; }

.btn { width: 100%; padding: 14px; border: none; border-radius: 14px; font-size: 15px; font-weight: 800; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }
.btn:active { transform: scale(.97); }
.btn .mi { font-size: 19px; }
.btn.primary { background: linear-gradient(135deg, var(--indigo2), var(--violet)); color: #fff; box-shadow: 0 6px 18px rgba(106,90,224,.35); }
.btn.red { background: var(--red); color: #fff; }
.btn.green { background: var(--green); color: #fff; }
.btn.wa { background: #25d366; color: #fff; }
.btn.gray { background: var(--soft); color: var(--indigo); border: 1px solid var(--border); }

nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--card);
  display: flex; z-index: 100;
  padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
  box-shadow: 0 -6px 24px rgba(90,95,199,.10);
}
nav button { flex: 1; background: none; border: none; padding: 4px 2px; cursor: pointer; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 3px; }
nav button .iw { padding: 6px 13px; border-radius: 16px; display: flex; align-items: center; justify-content: center; }
nav button .mi { font-size: 21px; }
nav button .l { font-size: 9px; font-weight: 800; }
nav button.on { color: var(--indigo); }
nav button.on .iw { background: var(--navpill); }

.overlay { position: fixed; inset: 0; background: rgba(20,22,40,.5); display: none; align-items: flex-end; justify-content: center; z-index: 1000; backdrop-filter: blur(3px); }
.overlay.on { display: flex; }
.sheet { background: var(--card); border-radius: 26px 26px 0 0; padding: 20px 16px calc(22px + env(safe-area-inset-bottom)); width: 100%; max-width: 520px; max-height: 90vh; overflow-y: auto; animation: up .32s; }
@keyframes up { from { transform: translateY(100%); } to { transform: none; } }
.handle { width: 44px; height: 5px; background: var(--border); border-radius: 3px; margin: 0 auto 16px; }
.m-title { font-size: 18px; font-weight: 800; margin-bottom: 4px; display: flex; align-items: center; gap: 9px; }
.m-title .mi { color: var(--indigo); }
.m-sub { font-size: 13px; color: var(--muted); margin-bottom: 16px; }

.toasts { position: fixed; top: 14px; left: 14px; right: 14px; z-index: 9999; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast { background: var(--card); border-radius: 14px; padding: 12px 14px; box-shadow: var(--shadow-lg); display: flex; gap: 10px; align-items: center; border-right: 4px solid var(--indigo); animation: tin .3s; }
.toast.ok { border-right-color: var(--green); }
.toast.err { border-right-color: var(--red); }
.toast.warn { border-right-color: var(--warning); }
.toast .mi { font-size: 19px; }
.toast .m { font-size: 13px; font-weight: 700; flex: 1; }
@keyframes tin { from { transform: translateY(-100%); opacity: 0; } to { transform: none; opacity: 1; } }

.offline { position: fixed; top: 0; left: 0; right: 0; background: var(--warning); color: #fff; text-align: center; padding: 7px; font-size: 12px; font-weight: 700; z-index: 9998; display: none; }
.offline.on { display: block; }

.empty { text-align: center; padding: 24px 14px; color: var(--muted); }
.empty .mi { font-size: 38px; margin-bottom: 8px; opacity: .4; display: block; }
.empty .t { font-size: 13px; font-weight: 700; color: var(--text); }

.chips { display: flex; gap: 7px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 10px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex-shrink: 0; padding: 8px 14px; border-radius: 20px; border: none; background: var(--soft); color: var(--muted); font-size: 12px; font-weight: 800; cursor: pointer; display: flex; align-items: center; gap: 6px; }
.chip .mi { font-size: 16px; }
.chip.on { background: var(--indigo); color: #fff; }

.chart { background: var(--card); border-radius: var(--r); padding: 16px; box-shadow: var(--shadow); margin-bottom: 12px; }
.chart .ct { font-weight: 800; font-size: 14px; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.chart .ct .mi { color: var(--indigo); font-size: 18px; }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 120px; }
.bars .b { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; justify-content: flex-end; }
.bars .b .bar { width: 100%; border-radius: 6px 6px 0 0; background: linear-gradient(180deg, var(--violet), var(--indigo)); min-height: 4px; }
.bars .b .v { font-size: 9px; color: var(--muted); font-weight: 700; }
.bars .b .l { font-size: 9px; color: var(--muted); }

.donut-wrap { display: flex; align-items: center; gap: 16px; }
.donut { width: 110px; height: 110px; border-radius: 50%; flex-shrink: 0; position: relative; }
.donut::after { content: ''; position: absolute; inset: 22px; background: var(--card); border-radius: 50%; }
.legend { flex: 1; }
.legend .row { display: flex; align-items: center; gap: 8px; font-size: 12px; margin-bottom: 6px; }
.legend .dot { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; }

.tbl { width: 100%; border-collapse: collapse; font-size: 12px; }
.tbl th { background: var(--soft); color: var(--indigo); padding: 8px 6px; text-align: right; font-weight: 800; border-radius: 6px; }
.tbl td { padding: 8px 6px; border-bottom: 1px solid var(--border); color: var(--text); }
.tbl-wrap { overflow-x: auto; }

#camVideo { width: 100%; border-radius: 16px; background: #000; max-height: 260px; object-fit: cover; }
.opt-row { display: flex; gap: 8px; margin-bottom: 8px; }
.opt-row .inp { margin-bottom: 0; flex: 1; }
.opt-row .rm { width: 44px; border: none; border-radius: 12px; background: var(--red-soft); color: var(--red); cursor: pointer; }

.ann-img { width: 100%; max-height: 200px; border-radius: 12px; object-fit: cover; margin-bottom: 10px; }
.svc-actions { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.svc-actions .btn { flex: 1; min-width: 120px; padding: 10px; font-size: 13px; }

.qrcard { background: linear-gradient(135deg, #8a7bf0 0%, #c86dd8 55%, #e061ae 100%); border-radius: 26px; padding: 22px 16px; text-align: center; color: #fff; box-shadow: var(--shadow-lg); }
.qrcard .box { background: #fff; border-radius: 18px; padding: 14px; display: inline-block; margin: 12px 0; }
.qrcard .code { font-family: monospace; font-size: 13px; letter-spacing: 1px; opacity: .9; word-break: break-all; }
.qr-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.qr-actions .btn { background: rgba(255,255,255,.2); color: #fff; padding: 12px; }

.big-btn { background: var(--card); border: none; border-radius: var(--r); padding: 26px 14px; text-align: center; cursor: pointer; box-shadow: var(--shadow); color: var(--text); }
.big-btn:active { transform: scale(.96); }
.big-btn .ic { width: 76px; height: 76px; border-radius: 22px; margin: 0 auto 12px; display: flex; align-items: center; justify-content: center; }
.big-btn .ic .mi { font-size: 38px; color: #fff; }
.big-btn .lb { font-size: 15px; font-weight: 800; }
.big-btn .s { font-size: 11px; color: var(--muted); margin-top: 4px; }

.log-item { background: var(--card); border-radius: 14px; padding: 12px; margin-bottom: 8px; display: flex; align-items: center; gap: 12px; box-shadow: var(--shadow); }
.log-item .ic { width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.log-item .ic .mi { font-size: 22px; color: #fff; }
.log-item .ic.ok { background: var(--green); }
.log-item .ic.err { background: var(--red); }
.log-item .c { flex: 1; min-width: 0; }
.log-item .t { font-size: 14px; font-weight: 700; }
.log-item .s { font-size: 11px; color: var(--muted); margin-top: 2px; }
.log-item .time { font-size: 11px; color: var(--muted); flex-shrink: 0; }

.result-card { border-radius: 30px; padding: 36px 22px; text-align: center; box-shadow: var(--shadow-lg); margin-bottom: 16px; color: #fff; }
.result-card.ok { background: linear-gradient(135deg, #10b981, #059669); }
.result-card.err { background: linear-gradient(135deg, #e8384f, #c2185b); }
.result-card .ic { width: 96px; height: 96px; border-radius: 50%; background: rgba(255,255,255,.22); display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; }
.result-card .ic .mi { font-size: 56px; color: #fff; }
.result-card .t { font-size: 26px; font-weight: 800; margin-bottom: 8px; }
.result-card .s { font-size: 15px; opacity: .95; margin-bottom: 14px; }
.result-card .details { background: rgba(255,255,255,.15); border-radius: 14px; padding: 14px; font-size: 14px; line-height: 1.9; text-align: right; }

.clock { font-size: 13px; color: var(--muted); font-weight: 700; display: flex; align-items: center; gap: 5px; }
.clock .mi { font-size: 17px; color: var(--indigo); }

.install { position: fixed; bottom: 86px; left: 14px; right: 14px; background: var(--card); border: 1px solid var(--border); padding: 13px 15px; border-radius: 18px; display: none; align-items: center; justify-content: space-between; gap: 12px; z-index: 998; box-shadow: var(--shadow-lg); }
.install.on { display: flex; }

.banner { border-radius: var(--r); padding: 14px 16px; margin-bottom: 12px; display: flex; gap: 12px; align-items: center; color: #fff; cursor: pointer; box-shadow: var(--shadow); }
.banner.due { background: linear-gradient(135deg, #e5484d, #c7383d); }
.banner.poll { background: linear-gradient(135deg, #0d9488, #0f766e); }
.banner .ic { width: 44px; height: 44px; border-radius: 12px; background: rgba(255,255,255,.18); display: flex; align-items: center; justify-content: center; font-size: 19px; flex-shrink: 0; }
.banner .t { font-size: 14px; font-weight: 800; }
.banner .s { font-size: 12px; opacity: .92; margin-top: 2px; }
/* ═══════ Custom Confirm Dialog ═══════ */
.confirm-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 9999;
  opacity: 0;
  transition: opacity .2s ease;
}
.confirm-backdrop.on { opacity: 1; }

.confirm-card {
  background: var(--card);
  border-radius: 22px;
  width: 100%;
  max-width: 360px;
  padding: 26px 22px 20px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,.25), 0 4px 16px rgba(0,0,0,.1);
  transform: translateY(20px) scale(.95);
  opacity: 0;
  transition: transform .25s cubic-bezier(.34,1.56,.64,1), opacity .2s ease;
  border: 1px solid var(--border);
}
.confirm-backdrop.on .confirm-card {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.confirm-icon-wrap {
  width: 68px;
  height: 68px;
  border-radius: 22px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  animation: confirm-pulse 2s ease-in-out infinite;
}
.confirm-icon-wrap .mi { font-size: 36px; color: #fff; position: relative; z-index: 1; }

.confirm-icon-wrap.primary { background: linear-gradient(135deg,#6366f1,#4f46e5); box-shadow: 0 8px 24px rgba(99,102,241,.35); color:#6366f1; }
.confirm-icon-wrap.danger  { background: linear-gradient(135deg,#ef4444,#dc2626); box-shadow: 0 8px 24px rgba(239,68,68,.35); color:#ef4444; }
.confirm-icon-wrap.success { background: linear-gradient(135deg,#10b981,#059669); box-shadow: 0 8px 24px rgba(16,185,129,.35); color:#10b981; }
.confirm-icon-wrap.warning { background: linear-gradient(135deg,#f59e0b,#d97706); box-shadow: 0 8px 24px rgba(245,158,11,.35); color:#f59e0b; }

.confirm-icon-wrap::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 26px;
  border: 2px solid currentColor;
  opacity: .15;
  animation: confirm-ring 2s ease-out infinite;
}

@keyframes confirm-ring {
  0% { transform: scale(1); opacity: .3; }
  100% { transform: scale(1.25); opacity: 0; }
}
@keyframes confirm-pulse {
  0%,100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

.confirm-title {
  font-weight: 800;
  font-size: 17px;
  margin-bottom: 8px;
  color: var(--text);
  line-height: 1.4;
}
.confirm-sub {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 22px;
}

.confirm-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.confirm-actions.single { grid-template-columns: 1fr; }

.confirm-btn {
  padding: 14px 16px;
  border-radius: 14px;
  border: none;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  transition: all .15s;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.confirm-btn .mi { font-size: 18px; }
.confirm-btn:active { transform: scale(.97); }

.confirm-btn.cancel {
  background: var(--soft);
  color: var(--text);
  border: 1.5px solid var(--border);
}
.confirm-btn.cancel:hover { background: var(--border); }

.confirm-btn.confirm {
  background: linear-gradient(135deg,#6366f1,#4f46e5);
  color: #fff;
  box-shadow: 0 6px 16px rgba(99,102,241,.3);
}
.confirm-btn.confirm:hover { filter: brightness(1.08); }

.confirm-btn.confirm.danger {
  background: linear-gradient(135deg,#ef4444,#dc2626);
  box-shadow: 0 6px 16px rgba(239,68,68,.3);
}
.confirm-btn.confirm.success {
  background: linear-gradient(135deg,#10b981,#059669);
  box-shadow: 0 6px 16px rgba(16,185,129,.3);
}
.confirm-btn.confirm.warning {
  background: linear-gradient(135deg,#f59e0b,#d97706);
  box-shadow: 0 6px 16px rgba(245,158,11,.3);
}
