/* 엔진톡 디자인 시스템 — 밝은 파스텔 톤 */
:root {
  --em-bg: #f6f5ff;
  --em-surface: #ffffff;
  --em-surface-2: #faf9ff;
  --em-text: #2d2a4a;
  --em-muted: #7b7899;
  --em-line: #e9e6fb;
  --em-primary: #7c83fd;
  --em-primary-dark: #5f66e6;
  --em-primary-soft: #e8e9ff;
  --em-lilac: #c9b6ff;
  --em-mint: #8fe3cf;
  --em-peach: #ffc9b9;
  --em-sky: #a9d8ff;
  --em-pink: #ffc4e1;
  --em-danger: #ff6b8b;
  --em-radius: 18px;
  --em-shadow: 0 10px 30px rgba(124, 131, 253, .14);
  --em-shadow-sm: 0 4px 14px rgba(124, 131, 253, .10);
  --bs-body-font-family: 'NanumSquare', 'Nanum Gothic', -apple-system, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  --bs-body-color: var(--em-text);
  --bs-primary: var(--em-primary);
  --bs-primary-rgb: 124, 131, 253;
  --bs-link-color: var(--em-primary-dark);
  --bs-link-hover-color: var(--em-primary);
  --nav-h: 64px;
}
* { -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  background: var(--em-bg);
  color: var(--em-text);
  min-height: 100vh;
  min-height: 100dvh;
  padding-top: var(--nav-h);
  word-break: keep-all;
  overflow-x: hidden;
}
body.app-body { height: 100vh; height: 100dvh; overflow: hidden; display: flex; flex-direction: column; }
.text-muted { color: var(--em-muted) !important; }
.grecaptcha-badge { visibility: hidden !important; }

/* 배경 블롭 */
.bg-blobs { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bg-blobs span { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; animation: blob 18s ease-in-out infinite; }
.bg-blobs span:nth-child(1) { width: 420px; height: 420px; background: var(--em-lilac); top: -120px; left: -80px; }
.bg-blobs span:nth-child(2) { width: 360px; height: 360px; background: var(--em-mint); right: -100px; top: 25%; animation-delay: -6s; opacity: .4; }
.bg-blobs span:nth-child(3) { width: 380px; height: 380px; background: var(--em-peach); bottom: -140px; left: 30%; animation-delay: -12s; opacity: .45; }
@keyframes blob { 0%,100% { transform: translate(0,0) scale(1); } 33% { transform: translate(40px,30px) scale(1.08); } 66% { transform: translate(-30px,20px) scale(.95); } }

/* 내비게이션 */
.em-nav {
  height: var(--nav-h);
  background: rgba(255,255,255,.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--em-line);
}
.em-nav .navbar-brand { color: var(--em-text); font-size: 1.2rem; letter-spacing: -.02em; }
.brand-logo { border-radius: 9px; transition: transform .4s cubic-bezier(.34,1.56,.64,1); }
.navbar-brand:hover .brand-logo { transform: rotate(-8deg) scale(1.1); }
.em-nav .navbar-nav { gap: .35rem; }
.em-nav .nav-link { color: var(--em-muted); font-weight: 700; border-radius: 12px; padding: .45rem .9rem; transition: all .2s; }
.em-nav .nav-link:hover, .em-nav .nav-link.active { color: var(--em-primary-dark); background: var(--em-primary-soft); }
@media (max-width: 991.98px) {
  .em-nav .navbar-collapse {
    position: absolute; top: 100%; left: 0; right: 0; z-index: 1031;
    background: #fff; padding: 12px 16px 16px; border-bottom: 1px solid var(--em-line); box-shadow: var(--em-shadow);
    max-height: calc(100vh - var(--nav-h)); overflow-y: auto;
  }
  .em-nav .navbar-collapse .nav-link { padding: .7rem .9rem; }
  .em-nav .navbar-nav { gap: .1rem; }
  .em-nav .navbar-collapse .d-flex { padding-top: 8px; flex-wrap: wrap; }
}
.em-nav .navbar-toggler { color: var(--em-primary-dark); padding: .25rem .5rem; box-shadow: none; }
.em-nav .navbar-toggler:focus { box-shadow: 0 0 0 .2rem rgba(124,131,253,.2); }

/* 버튼 */
.btn { font-weight: 700; border-radius: 12px; transition: transform .15s, box-shadow .2s, background .2s; }
.btn:active { transform: scale(.97); }
.btn-brand { color: #fff; background: linear-gradient(135deg, var(--em-primary), #a58bff); border: 0; box-shadow: 0 6px 16px rgba(124,131,253,.35); }
.btn-brand:hover, .btn-brand:focus { color: #fff; transform: translateY(-1px); box-shadow: 0 10px 22px rgba(124,131,253,.45); }
.btn-brand:disabled { opacity: .65; }
.btn-soft { color: var(--em-primary-dark); background: var(--em-primary-soft); border: 0; }
.btn-soft:hover { color: var(--em-primary-dark); background: #dcdeff; }
.btn-ghost { color: var(--em-muted); background: transparent; border: 1px solid var(--em-line); }
.btn-ghost:hover { background: var(--em-surface-2); color: var(--em-text); }
.btn-danger-soft { color: #e0456b; background: #ffe6ed; border: 0; }
.btn-danger-soft:hover { color: #fff; background: var(--em-danger); }
.btn-lg { padding: .8rem 1.6rem; border-radius: 14px; }

/* 폼 */
.form-control, .form-select { border-radius: 12px; border: 1.5px solid var(--em-line); background: #fff; padding: .65rem .9rem; }
.form-control-sm, .form-select-sm { padding: .4rem .75rem; font-size: .875rem; border-radius: 10px; }
.btn-sm { padding: .4rem .8rem; border-radius: 10px; }
form[role="search"] .btn-sm { min-width: 40px; }
.form-control:focus, .form-select:focus { border-color: var(--em-primary); box-shadow: 0 0 0 .22rem rgba(124,131,253,.18); }
.form-label { font-weight: 700; font-size: .9rem; }
.input-icon { position: relative; }
.input-icon > i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--em-muted); pointer-events: none; }
.input-icon .form-control { padding-left: 2.5rem; }
.form-check-input:checked { background-color: var(--em-primary); border-color: var(--em-primary); }

/* 카드 */
.em-card { background: var(--em-surface); border: 1px solid var(--em-line); border-radius: var(--em-radius); box-shadow: var(--em-shadow-sm); }
.em-card-pad { padding: 1.5rem; }
.glass { background: rgba(255,255,255,.72); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,.9); border-radius: 24px; box-shadow: var(--em-shadow); }

/* 푸터 */
.em-footer { padding: 28px 0 32px; border-top: 1px solid var(--em-line); background: rgba(255,255,255,.6); margin-top: 3rem; }

/* 공통 모달 */
.em-modal { border: 0; border-radius: 24px; box-shadow: 0 24px 60px rgba(95,102,230,.25); overflow: hidden; }
.modal.fade .modal-dialog { transform: translateY(24px) scale(.96); transition: transform .35s cubic-bezier(.34,1.56,.64,1), opacity .2s; }
.modal.show .modal-dialog { transform: none; }
.modal-backdrop.show { opacity: .35; background: #3b3866; }
.em-modal-icon { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 14px; display: grid; place-items: center; font-size: 1.9rem; animation: pop .5s cubic-bezier(.34,1.56,.64,1); }
.em-modal-icon.info { background: var(--em-primary-soft); color: var(--em-primary-dark); }
.em-modal-icon.success { background: #dcf8ef; color: #1fa883; }
.em-modal-icon.danger { background: #ffe6ed; color: #e0456b; }
.em-modal-icon.warning { background: #fff1d6; color: #e29a14; }
.em-modal-icon.question { background: #efe7ff; color: #8a5df0; }
.em-modal-msg { white-space: pre-line; word-break: keep-all; overflow-wrap: anywhere; }
.em-modal .modal-footer .btn { min-width: 96px; }
@keyframes pop { 0% { transform: scale(.3); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }

.toast { border: 0; border-radius: 14px; box-shadow: var(--em-shadow); }

/* 등장 애니메이션 */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.22,1,.36,1); }
.reveal.in { opacity: 1; transform: none; }
.fade-up { animation: fadeUp .6s cubic-bezier(.22,1,.36,1) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } .reveal { opacity: 1; transform: none; } }

/* ───── 랜딩 ───── */
.hero { padding: 72px 0 40px; }
.hero h1 { font-size: clamp(2rem, 5.2vw, 3.6rem); font-weight: 800; letter-spacing: -.04em; line-height: 1.2; }
.grad-text { background: linear-gradient(120deg, var(--em-primary), #c18bff 55%, #ff8fbf); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { color: var(--em-muted); font-size: 1.1rem; }
.pill { display: inline-flex; gap: .4rem; align-items: center; padding: .35rem .85rem; border-radius: 99px; background: #fff; border: 1px solid var(--em-line); color: var(--em-primary-dark); font-weight: 700; font-size: .85rem; box-shadow: var(--em-shadow-sm); }
.chat-mock { max-width: 400px; margin: 0 auto; padding: 18px; position: relative; animation: float 6s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.chat-mock .mock-head { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--em-line); margin-bottom: 14px; }
.mock-avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; flex: none; }
.mock-msg { max-width: 82%; padding: 9px 13px; border-radius: 16px; margin-bottom: 10px; font-size: .92rem; opacity: 0; animation: fadeUp .6s forwards; }
.mock-msg.l { background: var(--em-primary-soft); border-bottom-left-radius: 4px; }
.mock-msg.r { background: linear-gradient(135deg, var(--em-primary), #a58bff); color: #fff; margin-left: auto; border-bottom-right-radius: 4px; }
.mock-msg.bot { background: #dcf8ef; border-bottom-left-radius: 4px; font-family: ui-monospace, Menlo, monospace; font-size: .82rem; }
.mock-msg:nth-of-type(1) { animation-delay: .4s; } .mock-msg:nth-of-type(2) { animation-delay: 1.2s; } .mock-msg:nth-of-type(3) { animation-delay: 2s; } .mock-msg:nth-of-type(4) { animation-delay: 2.8s; }
.floaty { position: absolute; font-size: 1.6rem; animation: float 5s ease-in-out infinite; }
.section { padding: 56px 0; }
.section h2 { font-weight: 800; letter-spacing: -.03em; }
.feature { padding: 1.5rem; height: 100%; transition: transform .3s cubic-bezier(.34,1.56,.64,1), box-shadow .3s; }
.feature:hover { transform: translateY(-6px); box-shadow: var(--em-shadow); }
.feature .ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 1.5rem; margin-bottom: 14px; }
.ico.c1 { background: var(--em-primary-soft); color: var(--em-primary-dark); }
.ico.c2 { background: #dcf8ef; color: #1fa883; }
.ico.c3 { background: #ffe9e1; color: #e8805f; }
.ico.c4 { background: #e3f2ff; color: #3b9ae6; }
.ico.c5 { background: #ffe6f3; color: #e0589a; }
.ico.c6 { background: #fff1d6; color: #e29a14; }
.step-num { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--em-primary), #a58bff); color: #fff; display: grid; place-items: center; font-weight: 800; flex: none; }
pre.code { background: #2f2b52; color: #e9e6ff; border-radius: 16px; padding: 1.1rem 1.2rem; overflow-x: auto; font-size: .85rem; margin: 0; position: relative; }
pre.code .c { color: #8f8bbd; } pre.code .k { color: #8fe3cf; } pre.code .s { color: #ffc9b9; }
.cta-box { background: linear-gradient(135deg, #8f94ff, #c9a8ff 55%, #ffb3d6); color: #fff; border-radius: 28px; padding: 3rem 1.5rem; text-align: center; box-shadow: var(--em-shadow); }
.cta-box .btn { background: #fff; color: var(--em-primary-dark); }

/* ───── 인증 ───── */
.auth-wrap { min-height: calc(100vh - var(--nav-h) - 120px); display: grid; place-items: center; padding: 32px 12px; }
.auth-card { width: 100%; max-width: 440px; padding: 2rem 1.75rem; animation: fadeUp .6s cubic-bezier(.22,1,.36,1) both; }
.auth-logo { width: 64px; height: 64px; border-radius: 20px; box-shadow: var(--em-shadow); animation: pop .6s cubic-bezier(.34,1.56,.64,1); }
.pw-toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--em-muted); padding: 6px 10px; }

/* ───── 메신저 ───── */
.messenger { flex: 1; min-height: 0; display: grid; grid-template-columns: 340px 1fr; grid-template-rows: minmax(0, 1fr); max-width: 1280px; width: 100%; margin: 0 auto; padding: 14px; gap: 14px; }
.side, .chat { background: var(--em-surface); border: 1px solid var(--em-line); border-radius: 22px; box-shadow: var(--em-shadow-sm); min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
.side-head { padding: 14px 14px 8px; display: flex; align-items: center; gap: 8px; }
.side-head .side-tabs { flex: 1; min-width: 0; }
.side-menu-btn { width: 44px; height: 44px; padding: 0; display: grid; place-items: center; border-radius: 14px; font-size: 1.2rem; }
.side-tabs { display: flex; gap: 6px; background: var(--em-primary-soft); padding: 4px; border-radius: 14px; }
.side-tabs button { flex: 1; border: 0; background: transparent; padding: .5rem; border-radius: 11px; font-weight: 800; color: var(--em-muted); transition: all .2s; }
.side-tabs button.active { background: #fff; color: var(--em-primary-dark); box-shadow: var(--em-shadow-sm); }
.side-tabs .badge { background: var(--em-danger); }
.side-pane { flex: 1; min-height: 0; overflow-y: auto; padding: 6px 8px 12px; display: none; }
.side-pane.active { display: block; animation: fadeUp .3s both; }
.side-actions { padding: 6px 10px 10px; display: flex; gap: 8px; }
.list-item { display: flex; align-items: center; gap: 12px; padding: 11px 10px; border-radius: 16px; cursor: pointer; transition: background .15s, transform .15s; position: relative; border: 0; background: transparent; width: 100%; text-align: left; color: inherit; }
.list-item:hover { background: var(--em-surface-2); }
.list-item.active { background: var(--em-primary-soft); }
.list-item:active { transform: scale(.985); }
.avatar { width: 46px; height: 46px; border-radius: 16px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 1.05rem; flex: none; text-shadow: 0 1px 2px rgba(0,0,0,.12); }
.avatar.sm { width: 34px; height: 34px; border-radius: 12px; font-size: .85rem; }
.li-body { min-width: 0; flex: 1; }
.li-title { font-weight: 800; display: flex; align-items: center; gap: 6px; }
.li-title span.t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.li-sub { color: var(--em-muted); font-size: .85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.li-meta { text-align: right; font-size: .75rem; color: var(--em-muted); flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.unread { background: var(--em-danger); color: #fff; border-radius: 99px; min-width: 20px; height: 20px; padding: 0 6px; display: inline-grid; place-items: center; font-weight: 800; font-size: .72rem; animation: pop .35s; }
.unread.muted { background: #b9bdd6; }
#btnMute.is-muted { color: var(--em-muted); background: var(--em-primary-soft); }
.empty { text-align: center; color: var(--em-muted); padding: 40px 16px; }
.empty i { font-size: 2.6rem; color: var(--em-lilac); display: block; margin-bottom: 8px; }

.chat-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--em-line); background: var(--em-surface); }
.chat-head .back { display: none; }
.chat-body { flex: 1; min-height: 0; overflow-y: auto; padding: 16px 16px 8px; background: linear-gradient(180deg, #fbfaff, #f6f5ff); scroll-behavior: smooth; overscroll-behavior: contain; }
.chat-empty { height: 100%; display: grid; place-items: center; text-align: center; color: var(--em-muted); padding: 24px; }
.chat-empty img { width: 96px; opacity: .9; margin-bottom: 12px; animation: float 5s ease-in-out infinite; }
.day-sep { text-align: center; margin: 14px 0; }
.day-sep span { background: #ebe9fb; color: var(--em-muted); font-size: .75rem; padding: 3px 12px; border-radius: 99px; font-weight: 700; }
.msg { display: flex; gap: 8px; margin-bottom: 8px; max-width: 100%; animation: msgIn .3s cubic-bezier(.22,1,.36,1) both; }
@keyframes msgIn { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.msg .bubble-wrap { max-width: min(86%, 720px); min-width: 0; }
.msg .name { font-size: .78rem; font-weight: 800; color: var(--em-muted); margin: 0 4px 3px; display: flex; gap: 6px; align-items: center; }
.bubble { background: #fff; border: 1px solid var(--em-line); padding: 9px 13px; border-radius: 6px 18px 18px 18px; overflow-wrap: anywhere; word-break: break-word; box-shadow: 0 2px 6px rgba(124,131,253,.06); }
.msg.mine { flex-direction: row-reverse; }
.msg.mine .bubble { background: linear-gradient(135deg, var(--em-primary), #a58bff); color: #fff; border: 0; border-radius: 18px 6px 18px 18px; }
.msg.mine .bubble a { color: #fff; text-decoration: underline; }
.msg.mine .bubble code, .msg.mine .bubble pre { background: rgba(255,255,255,.2); color: #fff; }
.msg.mine .name { display: none; }
.msg .time { font-size: .68rem; color: var(--em-muted); white-space: nowrap; margin: 3px 6px 0; opacity: .85; }
.msg.mine .time { text-align: right; }
.msg.api .bubble { background: #eafaf5; border-color: #c8f0e4; }
.badge-api { background: #c8f0e4; color: #17806a; font-size: .65rem; padding: 2px 7px; border-radius: 99px; }
.msg.system { justify-content: center; }
.msg.system .sys { background: #ebe9fb; color: var(--em-muted); font-size: .78rem; padding: 4px 14px; border-radius: 99px; text-align: center; }
.md > :last-child { margin-bottom: 0; }
.md p { margin-bottom: .45rem; }
.md pre { background: #2f2b52; color: #e9e6ff; border-radius: 10px; padding: 10px 12px; overflow-x: auto; font-size: .82rem; margin: .4rem 0; }
.md code { background: #efedff; color: #6a52d9; padding: 1px 5px; border-radius: 6px; font-size: .85em; }
.md pre code { background: none; color: inherit; padding: 0; }
.md blockquote { border-left: 3px solid var(--em-lilac); padding-left: 10px; margin: .4rem 0; opacity: .85; }
.md table { border-collapse: collapse; font-size: .85rem; margin: .4rem 0; display: block; overflow-x: auto; }
.md th, .md td { border: 1px solid var(--em-line); padding: 3px 8px; }
.md img { max-width: 100%; border-radius: 10px; }
.md h1, .md h2, .md h3, .md h4 { font-size: 1.05rem; font-weight: 800; margin: .3rem 0; }
.md ul, .md ol { padding-left: 1.2rem; margin-bottom: .4rem; }
.msg.mine .md th, .msg.mine .md td { border-color: rgba(255,255,255,.35); }

.composer { padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--em-line); background: #fff; display: flex; gap: 8px; align-items: flex-end; }
.composer textarea { resize: none; max-height: 140px; border-radius: 16px; padding: .6rem .9rem; line-height: 1.45; }
.composer .send { width: 46px; height: 46px; border-radius: 15px; flex: none; display: grid; place-items: center; padding: 0; font-size: 1.1rem; }
.composer .send i { display: block; line-height: 1; margin: 0; transform: translate(1px, 0); }
.composer .send i::before { display: block; }
.composer .hint { font-size: .7rem; color: var(--em-muted); }
.new-msg-btn { position: absolute; left: 50%; bottom: 92px; transform: translateX(-50%); z-index: 5; animation: fadeUp .3s both; }

.key-box { font-family: ui-monospace, Menlo, monospace; font-size: .78rem; background: #f3f2ff; border-radius: 10px; padding: 6px 10px; word-break: break-all; }
.member-row { display: flex; align-items: center; gap: 10px; padding: 8px 4px; border-bottom: 1px dashed var(--em-line); }
.member-row:last-child { border: 0; }
.nav-pills .nav-link { border-radius: 12px; font-weight: 700; color: var(--em-muted); }
.nav-pills .nav-link.active { background: var(--em-primary-soft); color: var(--em-primary-dark); }

@media (max-width: 991.98px) {
  .messenger { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr); padding: 0; gap: 0; position: relative; height: calc(100vh - var(--nav-h)); height: calc(100dvh - var(--nav-h)); flex: none; }
  .side, .chat { border-radius: 0; border-width: 0; box-shadow: none; }
  .chat { position: absolute; inset: 0; transform: translateX(100%); transition: transform .35s cubic-bezier(.22,1,.36,1); z-index: 3; }
  .messenger.chat-open .chat { transform: none; }
  .chat-head .back { display: inline-flex; }
  .msg .bubble-wrap { max-width: 90%; }
}

/* ───── 문서 / 관리자 ───── */
.page-wrap { max-width: 1100px; margin: 0 auto; padding: 28px 16px 8px; }
.page-title { font-weight: 800; letter-spacing: -.03em; }
.docs h2 { font-size: 1.35rem; font-weight: 800; margin-top: 2.2rem; padding-top: .4rem; }
.docs h3 { font-size: 1.05rem; font-weight: 800; margin-top: 1.4rem; }
.docs table { font-size: .9rem; }
.docs code:not(pre code) { background: #efedff; color: #6a52d9; padding: 2px 6px; border-radius: 6px; }
.method { font-weight: 800; font-size: .78rem; padding: 3px 9px; border-radius: 8px; color: #fff; }
.method.post { background: #2fbf9b; } .method.get { background: #5aa7ee; }
.table > :not(caption) > * > * { padding: .8rem .75rem; }
.badge-soft-gray { background: #eceefa; color: #7a7f9e; font-weight: 800; }
.device-badge { font-size: .78rem; padding: .45em .8em; border-radius: 99px; }
.device-table .table { font-size: .9rem; }
.table-em { --bs-table-bg: transparent; }
.table-em thead th { background: var(--em-surface-2); color: var(--em-muted); font-size: .8rem; font-weight: 800; border-bottom: 1px solid var(--em-line); white-space: nowrap; }
.table-em tbody tr { transition: background .15s; }
.table-em tbody tr:hover { background: var(--em-surface-2); }
.stat-card { padding: 1.1rem 1.25rem; }
.stat-card .num { font-size: 1.8rem; font-weight: 800; letter-spacing: -.03em; }
.admin-tabs .nav-link { font-weight: 800; }
.pagination .page-link { border-radius: 10px; margin: 0 2px; border: 0; color: var(--em-primary-dark); background: transparent; }
.pagination .active > .page-link { background: var(--em-primary); color: #fff; }
.badge-soft { background: var(--em-primary-soft); color: var(--em-primary-dark); font-weight: 800; }
.badge-soft-green { background: #dcf8ef; color: #17806a; font-weight: 800; }
.badge-soft-red { background: #ffe6ed; color: #e0456b; font-weight: 800; }
.badge-soft-yellow { background: #fff1d6; color: #b67608; font-weight: 800; }
.view-msgs { max-height: 62vh; overflow-y: auto; background: #f8f7ff; border-radius: 16px; padding: 12px; }
.view-msg { background: #fff; border: 1px solid var(--em-line); border-radius: 12px; padding: 8px 12px; margin-bottom: 8px; }
.view-msg .meta { font-size: .75rem; color: var(--em-muted); margin-bottom: 4px; }

@media (max-width: 575.98px) {
  .hero { padding-top: 40px; }
  .auth-card { padding: 1.5rem 1.2rem; }
}
