/* Support Center — customer portal (workstream A). Bootstrap 5.3 + Bootstrap Icons. */
:root {
  --brand: #4f46e5;
  --brand-600: #4338ca;
  --brand-50: #eef2ff;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --surface: #ffffff;
  --bg: #f6f7fb;
  --sidebar-w: 256px;
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .04);
  --shadow: 0 10px 30px -12px rgba(15, 23, 42, .18);
  --bs-primary: #4f46e5;
  --bs-primary-rgb: 79, 70, 229;
  --bs-link-color: #4f46e5;
  --bs-link-color-rgb: 79, 70, 229;
  --bs-link-hover-color: #4338ca;
  --bs-body-font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--ink); font-size: .9375rem; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; }
a:hover { text-decoration: underline; }
.btn:hover, .sidebar-link:hover, .dropdown-item:hover, .card-link:hover, .nav-link:hover { text-decoration: none; }
:focus-visible { outline: 3px solid rgba(79, 70, 229, .45); outline-offset: 2px; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 2000; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { left: 8px; }
main:focus { outline: none; }
code { color: #be185d; }
.fw-600 { font-weight: 600; }
.fs-12 { font-size: 12px; }
.fs-13 { font-size: 13px; }
.text-muted { color: var(--muted) !important; }
.min-w-0 { min-width: 0; }

/* Buttons & forms */
.btn { border-radius: 10px; font-weight: 500; }
.btn-primary { --bs-btn-bg: var(--brand); --bs-btn-border-color: var(--brand); --bs-btn-hover-bg: var(--brand-600); --bs-btn-hover-border-color: var(--brand-600); --bs-btn-active-bg: var(--brand-600); --bs-btn-disabled-bg: var(--brand); --bs-btn-disabled-border-color: var(--brand); }
.btn-outline-primary { --bs-btn-color: var(--brand); --bs-btn-border-color: var(--brand); --bs-btn-hover-bg: var(--brand); --bs-btn-hover-border-color: var(--brand); --bs-btn-active-bg: var(--brand-600); }
.btn-soft { background: var(--brand-50); color: var(--brand); border: 0; }
.btn-soft:hover { background: #e0e7ff; color: var(--brand-600); }
.form-control, .form-select { border-radius: 10px; border-color: #d7dde6; }
.form-control:focus, .form-select:focus, .form-check-input:focus { border-color: #a5b4fc; box-shadow: 0 0 0 .2rem rgba(79, 70, 229, .15); }
.form-check-input:checked { background-color: var(--brand); border-color: var(--brand); }
.form-label { font-weight: 600; font-size: .875rem; margin-bottom: .35rem; }
.form-text { color: var(--muted); }
.text-bg-primary { background-color: var(--brand) !important; }
.badge { font-weight: 600; letter-spacing: .01em; }

/* Cards */
.card { border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); background: var(--surface); }
.card-header { background: transparent; border-bottom: 1px solid var(--line); padding: 1rem 1.25rem; font-weight: 600; }
.card-header:first-child { border-radius: var(--radius) var(--radius) 0 0; }
.card-body { padding: 1.25rem; }
.card-footer { background: #fafbfd; border-top: 1px solid var(--line); }
.section-title { font-size: 1.05rem; font-weight: 700; margin: 0; }

/* App layout */
.layout { display: flex; min-height: 100vh; }
.sidebar { width: var(--sidebar-w); background: #0f172a; color: #cbd5e1; position: fixed; inset: 0 auto 0 0; display: flex; flex-direction: column; z-index: 1040; transition: transform .25s ease; }
.sidebar-brand, .public-nav .brand { display: flex; align-items: center; gap: .65rem; font-weight: 700; font-size: 1.05rem; }
.sidebar-brand { color: #fff; padding: 1.1rem 1.25rem; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.sidebar-brand:hover { color: #fff; text-decoration: none; }
.brand-icon { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, #6366f1, #8b5cf6); color: #fff; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; }
.brand-icon img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.sidebar-nav { padding: .75rem; overflow-y: auto; flex: 1; }
.nav-section-title { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: #64748b; padding: 1rem .75rem .4rem; font-weight: 700; }
.sidebar-link { display: flex; align-items: center; gap: .7rem; color: #cbd5e1; padding: .6rem .75rem; border-radius: 10px; font-weight: 500; margin-bottom: 2px; }
.sidebar-link i:first-child { font-size: 1.05rem; width: 20px; text-align: center; }
.sidebar-link:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.sidebar-link.active { background: rgba(99, 102, 241, .22); color: #fff; box-shadow: inset 3px 0 0 #818cf8; }
.sidebar-footer { padding: .9rem 1rem; border-top: 1px solid rgba(255, 255, 255, .06); }
.sidebar-user { display: flex; align-items: center; gap: .65rem; min-width: 0; }
.sidebar-user .user-info { min-width: 0; }
.sidebar-user .user-name { color: #fff; font-weight: 600; font-size: .875rem; }
.sidebar-user .user-role { color: #94a3b8; font-size: .75rem; }
.sidebar-user .btn-icon { color: #94a3b8; }
.sidebar-user .btn-icon:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.sidebar-overlay { position: fixed; inset: 0; background: rgba(15, 23, 42, .45); z-index: 1030; }
.main-content { margin-left: var(--sidebar-w); flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 1020; background: rgba(255, 255, 255, .9); backdrop-filter: saturate(180%) blur(8px); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: .75rem; padding: .7rem 1.5rem; min-height: 64px; }
.topbar-title { font-size: 1.1rem; font-weight: 700; margin: 0; flex: 1; min-width: 0; }
.topbar-actions { display: flex; align-items: center; gap: .5rem; }
.search-box { position: relative; }
.search-box i { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: .85rem; }
.search-box input { padding-left: 32px; width: 230px; border-radius: 999px; background: #f1f5f9; border-color: transparent; }
.btn-icon { width: 38px; height: 38px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; border: 0; background: transparent; color: #475569; }
.btn-icon:hover { background: #f1f5f9; color: var(--ink); }
.user-btn { width: auto; padding: 0 .35rem; gap: .35rem; }
.notification-badge { position: absolute; top: 3px; right: 3px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: #ef4444; color: #fff; font-size: 10px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.page-content { padding: 1.5rem; flex: 1; width: 100%; max-width: 1400px; }
.app-footer { margin-top: 2.5rem; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .8rem; display: flex; gap: 1rem; flex-wrap: wrap; }
.app-footer a { color: var(--muted); }
.maintenance-bar { background: #fef3c7; color: #92400e; text-align: center; padding: .4rem; font-size: .85rem; position: relative; z-index: 1050; }
@media (max-width: 991.98px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: none; box-shadow: var(--shadow); }
  .main-content { margin-left: 0; }
  .topbar { padding: .6rem 1rem; }
  .page-content { padding: 1rem; }
}

/* Notifications dropdown */
.notif-dropdown { width: min(360px, calc(100vw - 24px)); border-radius: 12px; overflow: hidden; }
.notif-list { max-height: 380px; overflow-y: auto; }
.notif-item { display: flex; gap: .75rem; padding: .75rem 1rem; border-bottom: 1px solid #f1f5f9; color: var(--ink); }
.notif-item:hover { background: #f8fafc; text-decoration: none; color: var(--ink); }
.notif-item.unread { background: #f5f7ff; }
.notif-item.unread .notif-title::after { content: ""; display: inline-block; width: 7px; height: 7px; background: var(--brand); border-radius: 50%; margin-left: 6px; vertical-align: middle; }
.notif-icon { width: 34px; height: 34px; border-radius: 50%; background: var(--brand-50); color: var(--brand); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.notif-title { font-weight: 600; font-size: .85rem; }
.notif-msg { font-size: .8rem; color: var(--muted); }
.notif-time { font-size: .72rem; color: #94a3b8; }

/* Avatars */
.avatar { border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.avatar-placeholder { --av-hue: 240; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; color: hsl(var(--av-hue) 55% 35%); background: hsl(var(--av-hue) 70% 92%); flex-shrink: 0; }
.avatar-xs { width: 24px; height: 24px; font-size: 11px; }
.avatar-sm { width: 34px; height: 34px; font-size: 14px; }
.avatar-md { width: 44px; height: 44px; font-size: 17px; }
.avatar-lg { width: 88px; height: 88px; font-size: 32px; }

/* Stats */
.stat-card { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.25rem; height: 100%; }
.stat-icon { width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; flex-shrink: 0; }
.stat-icon.blue { background: #e0e7ff; color: #4338ca; }
.stat-icon.green { background: #dcfce7; color: #15803d; }
.stat-icon.yellow { background: #fef3c7; color: #b45309; }
.stat-icon.red { background: #fee2e2; color: #b91c1c; }
.stat-icon.cyan { background: #cffafe; color: #0e7490; }
.stat-value { font-size: 1.5rem; font-weight: 800; line-height: 1.1; }
.stat-label { color: var(--muted); font-size: .8rem; }
a.stat-link { color: inherit; }
a.stat-link:hover .card { border-color: #c7d2fe; box-shadow: var(--shadow); }

/* Tables / lists */
.table { margin: 0; --bs-table-hover-bg: #f8fafc; }
.table > :not(caption) > * > * { padding: .8rem 1rem; border-color: #eef2f6; vertical-align: middle; }
.table thead th { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; background: #fafbfd; }
.ticket-row { position: relative; }
.ticket-row .ticket-subject { font-weight: 600; color: var(--ink); }
.ticket-row.unread .ticket-subject::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); margin-right: 8px; vertical-align: middle; }
.ticket-row.unread { background: #fbfbff; }
.ticket-list-item { display: block; padding: 1rem 1.25rem; border-bottom: 1px solid #eef2f6; color: inherit; }
.ticket-list-item:hover { background: #f8fafc; text-decoration: none; color: inherit; }
.ticket-list-item:last-child { border-bottom: 0; }
.ticket-list-item.unread .ticket-subject::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); margin-right: 8px; vertical-align: middle; }
.status-tabs { display: flex; gap: .35rem; flex-wrap: wrap; }
.status-tabs a { padding: .45rem .9rem; border-radius: 999px; color: #475569; font-weight: 500; font-size: .85rem; background: #fff; border: 1px solid var(--line); }
.status-tabs a.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.status-tabs a:hover { text-decoration: none; border-color: #cbd5e1; }
.status-tabs .count { opacity: .7; margin-left: .25rem; }
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--muted); }
.empty-state .bi { font-size: 2.6rem; color: #c7d2fe; display: block; margin-bottom: .75rem; }

/* Ticket thread */
.thread { display: flex; flex-direction: column; gap: 1rem; }
.reply { display: flex; gap: .85rem; }
.reply-bubble { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.reply.is-staff .reply-bubble { border-color: #c7d2fe; background: #fafaff; }
.reply.is-mine .reply-bubble { background: #fff; }
.reply-header { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; padding: .7rem 1rem; border-bottom: 1px solid #eef2f6; font-size: .85rem; }
.reply-author { font-weight: 700; }
.reply-role { font-size: .7rem; padding: .15rem .5rem; border-radius: 999px; background: #e0e7ff; color: #3730a3; font-weight: 700; }
.reply-time { color: var(--muted); margin-left: auto; font-size: .78rem; }
.reply-content { padding: 1rem; overflow-wrap: anywhere; line-height: 1.6; }
.reply-content p:last-child { margin-bottom: 0; }
.reply-content img { max-width: 100%; height: auto; border-radius: 8px; }
.reply-content pre { background: #0f172a; color: #e2e8f0; padding: .85rem 1rem; border-radius: 10px; overflow-x: auto; font-size: .82rem; }
.reply-content pre code { color: inherit; }
.reply-content blockquote { border-left: 3px solid #c7d2fe; padding-left: .85rem; color: #475569; }
.reply-attachments { padding: 0 1rem 1rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.attachment-chip { display: inline-flex; align-items: center; gap: .45rem; border: 1px solid var(--line); border-radius: 10px; padding: .4rem .7rem; font-size: .8rem; color: var(--ink); background: #fff; max-width: 100%; }
.attachment-chip:hover { border-color: #a5b4fc; text-decoration: none; }
.attachment-chip .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }
.info-list { margin: 0; }
.info-list > div { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px dashed #eef2f6; font-size: .875rem; }
.info-list > div:last-child { border-bottom: 0; }
.info-list dt { color: var(--muted); font-weight: 500; }
.info-list dd { margin: 0; text-align: right; font-weight: 600; overflow-wrap: anywhere; }

/* Rich-text editor */
.rte { border: 1px solid #d7dde6; border-radius: 12px; background: #fff; overflow: hidden; }
.rte:focus-within { border-color: #a5b4fc; box-shadow: 0 0 0 .2rem rgba(79, 70, 229, .15); }
.rte-toolbar { display: flex; flex-wrap: wrap; gap: 2px; padding: .35rem; border-bottom: 1px solid #eef2f6; background: #fafbfd; }
.rte-toolbar button { border: 0; background: transparent; width: 32px; height: 30px; border-radius: 7px; color: #475569; }
.rte-toolbar button:hover, .rte-toolbar button.active { background: #e0e7ff; color: var(--brand); }
.rte-area { min-height: 180px; max-height: 520px; overflow-y: auto; padding: .85rem 1rem; outline: none; line-height: 1.6; }
.rte-area:empty::before { content: attr(data-placeholder); color: #94a3b8; }
.rte-area pre { background: #0f172a; color: #e2e8f0; padding: .6rem .8rem; border-radius: 8px; }
.rte textarea.form-control { border: 0; border-radius: 0; min-height: 180px; box-shadow: none; }

/* Drop zone */
.dropzone { border: 2px dashed #cbd5e1; border-radius: 12px; padding: 1.25rem; text-align: center; color: var(--muted); background: #fafbfd; transition: .15s; cursor: pointer; }
.dropzone.dragover { border-color: var(--brand); background: var(--brand-50); color: var(--brand); }
.file-list { list-style: none; padding: 0; margin: .75rem 0 0; display: flex; flex-direction: column; gap: .4rem; }
.file-list li { display: flex; align-items: center; gap: .6rem; border: 1px solid var(--line); border-radius: 10px; padding: .45rem .7rem; font-size: .85rem; background: #fff; }
.file-list li.invalid { border-color: #fecaca; background: #fef2f2; }
.file-list .name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Wizard */
.step-wizard { display: flex; gap: .5rem; counter-reset: step; margin-bottom: 1.25rem; overflow-x: auto; padding-bottom: 2px; }
.step { flex: 1; min-width: 110px; display: flex; align-items: center; gap: .55rem; padding: .65rem .8rem; border-radius: 12px; background: #fff; border: 1px solid var(--line); color: var(--muted); font-size: .82rem; font-weight: 600; }
.step-num { width: 26px; height: 26px; border-radius: 50%; background: #f1f5f9; display: inline-flex; align-items: center; justify-content: center; font-size: .78rem; flex-shrink: 0; }
.step.active { border-color: var(--brand); color: var(--brand); box-shadow: 0 0 0 3px rgba(79, 70, 229, .1); }
.step.active .step-num { background: var(--brand); color: #fff; }
.step.done { color: #15803d; }
.step.done .step-num { background: #dcfce7; color: #15803d; }
.wizard-js .wizard-pane { display: none; }
.wizard-js .wizard-pane.active { display: block; animation: fadeIn .2s ease; }
.wizard-pane + .wizard-pane { margin-top: 1rem; }
.wizard-js .wizard-pane + .wizard-pane { margin-top: 0; }
.wizard-nav { display: none; }
.wizard-js .wizard-nav { display: flex; }
.wizard-js .nojs-submit { display: none; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* Choice cards (radio) */
.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .75rem; }
.choice { position: relative; display: block; cursor: pointer; margin: 0; }
.choice input { position: absolute; opacity: 0; inset: 0; pointer-events: none; }
.choice-body { display: flex; gap: .75rem; align-items: flex-start; border: 1.5px solid var(--line); border-radius: 12px; padding: .9rem; background: #fff; height: 100%; transition: .12s; }
.choice:hover .choice-body { border-color: #a5b4fc; }
.choice input:checked + .choice-body { border-color: var(--brand); background: #f7f7ff; box-shadow: 0 0 0 3px rgba(79, 70, 229, .12); }
.choice input:focus-visible + .choice-body { outline: 3px solid rgba(79, 70, 229, .45); outline-offset: 2px; }
.choice input:disabled + .choice-body { opacity: .55; cursor: not-allowed; }
.choice-title { font-weight: 700; font-size: .9rem; }
.choice-meta { font-size: .78rem; color: var(--muted); }
.choice[hidden] { display: none; }
.product-thumb { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; background: var(--brand-50); color: var(--brand); display: inline-flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }

/* Licenses */
.license-card { height: 100%; transition: .15s; }
.license-card:hover { box-shadow: var(--shadow); }
.license-key { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .85rem; background: #f1f5f9; padding: .2rem .5rem; border-radius: 6px; letter-spacing: .02em; }
.support-meter { height: 6px; border-radius: 3px; background: #eef2f6; overflow: hidden; }
.support-meter > span { display: block; height: 100%; border-radius: 3px; }

/* Star rating */
.star-rating { display: inline-flex; flex-direction: row-reverse; gap: .2rem; }
.star-rating input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-rating label { font-size: 1.9rem; color: #cbd5e1; cursor: pointer; line-height: 1; }
.star-rating label:hover, .star-rating label:hover ~ label, .star-rating input:checked ~ label { color: #f59e0b; }
.star-rating input:focus-visible + label { outline: 2px solid rgba(79, 70, 229, .5); border-radius: 4px; }
.stars-static { color: #f59e0b; }

/* Public pages */
.layout-public { display: flex; flex-direction: column; min-height: 100vh; background: #fff; }
.public-nav { border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 1020; }
.public-nav nav { min-height: 64px; }
.public-nav .brand { color: var(--ink); }
.public-nav .brand:hover { text-decoration: none; }
.public-main { flex: 1; }
.public-footer { border-top: 1px solid var(--line); padding: 1.25rem 0; color: var(--muted); font-size: .85rem; background: #fafbfd; }
.public-footer a { color: var(--muted); }
.hero { background: radial-gradient(1200px 400px at 10% -10%, #e0e7ff 0, transparent 60%), radial-gradient(900px 400px at 100% 0, #f3e8ff 0, transparent 55%), #fff; padding: 4.5rem 0 3.5rem; }
.hero h1 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 800; letter-spacing: -.02em; }
.hero p.lead { color: #475569; max-width: 640px; }
.feature { display: flex; gap: .9rem; }
.feature .stat-icon { width: 42px; height: 42px; font-size: 1.15rem; }
.product-card { height: 100%; transition: .15s; }
.product-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.product-card .product-thumb { width: 52px; height: 52px; }
.auth-wrap { min-height: calc(100vh - 140px); display: flex; align-items: center; justify-content: center; padding: 2.5rem 1rem; background: radial-gradient(800px 300px at 50% -10%, #eef2ff 0, transparent 70%); }
.auth-card { width: 100%; max-width: 440px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 2rem; }
.auth-card.wide { max-width: 520px; }
.auth-title { font-size: 1.45rem; font-weight: 800; margin-bottom: .25rem; }
.auth-subtitle { color: var(--muted); margin-bottom: 1.5rem; }
.auth-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--brand-50); color: var(--brand); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 1rem; }
.password-wrap { position: relative; }
.password-wrap .toggle-pw { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: var(--muted); width: 34px; height: 34px; border-radius: 8px; }
.password-wrap input { padding-right: 44px; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.otp-input { font-size: 1.6rem; letter-spacing: .5em; text-align: center; font-family: ui-monospace, Menlo, Consolas, monospace; }
.backup-codes { display: grid; grid-template-columns: repeat(2, 1fr); gap: .4rem; font-family: ui-monospace, Menlo, Consolas, monospace; }
.backup-codes span { background: #f1f5f9; border-radius: 8px; padding: .4rem; text-align: center; }
#qrcode img, #qrcode canvas { margin: 0 auto; }

/* Profile tabs */
.settings-nav .nav-link { color: #475569; border-radius: 10px; padding: .55rem .85rem; font-weight: 500; display: flex; align-items: center; gap: .55rem; }
.settings-nav .nav-link.active { background: var(--brand-50); color: var(--brand); }

/* Announcements */
.announcement { border-radius: 12px; border: 1px solid; padding: .85rem 1rem; display: flex; gap: .75rem; align-items: flex-start; }
.announcement-info { background: #eff6ff; border-color: #bfdbfe; color: #1e3a8a; }
.announcement-warning { background: #fffbeb; border-color: #fde68a; color: #78350f; }
.announcement-success { background: #f0fdf4; border-color: #bbf7d0; color: #14532d; }
.announcement-danger { background: #fef2f2; border-color: #fecaca; color: #7f1d1d; }
.announcement .content p:last-child { margin-bottom: 0; }

/* Misc */
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { position: relative; padding: 0 0 .9rem 1.2rem; font-size: .82rem; }
.timeline li::before { content: ""; position: absolute; left: 3px; top: 6px; width: 7px; height: 7px; border-radius: 50%; background: #a5b4fc; }
.timeline li::after { content: ""; position: absolute; left: 6px; top: 16px; bottom: 0; width: 1px; background: #e2e8f0; }
.timeline li:last-child::after { display: none; }
.pagination { --bs-pagination-active-bg: var(--brand); --bs-pagination-active-border-color: var(--brand); --bs-pagination-color: var(--brand); }
.toast { border-radius: 12px; }
@media (max-width: 575.98px) {
  .card-body { padding: 1rem; }
  .auth-card { padding: 1.4rem; }
  .reply > .avatar, .reply > .avatar-placeholder { display: none; }
  .hero { padding: 2.5rem 0 2rem; }
  .info-list > div { flex-direction: column; gap: .15rem; }
  .info-list dd { text-align: left; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
.text-truncate-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ===================== Home page ===================== */
.home-hero { position: relative; overflow: hidden; color: #fff; padding: 72px 0 96px; background: radial-gradient(1200px 500px at 85% -10%, rgba(124, 58, 237, .55), transparent 60%), radial-gradient(900px 500px at -10% 110%, rgba(14, 165, 233, .35), transparent 60%), linear-gradient(135deg, #0f172a 0%, #1e1b4b 55%, #312e81 100%); }
.home-hero-glow { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 44px 44px; -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent 95%); mask-image: linear-gradient(to bottom, #000 30%, transparent 95%); pointer-events: none; }
.home-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); font-size: .85rem; color: #e0e7ff; margin-bottom: 18px; }
.home-eyebrow i { color: #fbbf24; }
.home-title { font-size: clamp(2.1rem, 4.6vw, 3.6rem); font-weight: 800; line-height: 1.08; letter-spacing: -.02em; margin-bottom: 16px; }
.home-grad { background: linear-gradient(90deg, #a5b4fc, #67e8f9); -webkit-background-clip: text; background-clip: text; color: transparent; }
.home-lead { font-size: 1.15rem; color: #c7d2fe; max-width: 560px; margin-bottom: 26px; }
.home-search { position: relative; display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 16px; padding: 8px 8px 8px 46px; max-width: 580px; box-shadow: 0 20px 40px rgba(2, 6, 23, .35); }
.home-search > i { position: absolute; left: 18px; color: #64748b; font-size: 1.1rem; }
.home-search input { flex: 1; min-width: 0; border: 0; outline: 0; font-size: 1rem; color: #0f172a; background: transparent; padding: 8px 0; }
.home-search .btn { border-radius: 11px; padding: 10px 20px; font-weight: 600; }
.home-cta { color: var(--brand-600) !important; font-weight: 600; }
.home-trust { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: #c7d2fe; font-size: .92rem; }
.home-trust i { color: #34d399; margin-right: 4px; }
.home-panel { background: rgba(255,255,255,.96); color: #0f172a; border-radius: 20px; padding: 18px; box-shadow: 0 30px 60px rgba(2, 6, 23, .45); transform: rotate(-1.5deg); }
.home-panel-head { display: flex; align-items: center; gap: 6px; color: #475569; padding-bottom: 12px; border-bottom: 1px solid #e2e8f0; margin-bottom: 14px; }
.home-panel-head .dot { width: 10px; height: 10px; border-radius: 50%; }
.home-panel-head .dot.r { background: #f87171; } .home-panel-head .dot.y { background: #fbbf24; } .home-panel-head .dot.g { background: #34d399; }
.home-status { background: #dcfce7; color: #166534; font-weight: 600; }
.home-msg { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 14px; font-size: .92rem; margin-bottom: 10px; }
.home-msg.customer { background: #f1f5f9; }
.home-msg.agent { background: var(--brand-50); border: 1px solid #e0e7ff; }
.home-msg-meta { font-size: .75rem; color: #64748b; margin-bottom: 2px; }
.home-avatar { width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #cbd5e1; color: #0f172a; font-weight: 700; font-size: .8rem; flex-shrink: 0; }
.home-avatar.agent { background: var(--brand); color: #fff; }
.home-panel-foot { font-size: .82rem; color: #475569; display: flex; align-items: center; gap: 6px; padding-top: 6px; }
.home-panel-foot i { color: var(--brand); }
.home-steps { margin-top: -56px; position: relative; z-index: 2; margin-bottom: 48px; }
.home-step { position: relative; background: #fff; border: 1px solid #e2e8f0; border-radius: 18px; padding: 22px 22px 20px; height: 100%; box-shadow: 0 12px 30px rgba(15, 23, 42, .08); transition: transform .2s, box-shadow .2s; }
.home-step:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(15, 23, 42, .12); }
.home-step h2 { font-weight: 700; margin: 12px 0 6px; }
.home-step p, .home-card p { color: #64748b; font-size: .92rem; margin: 0; }
.home-step-num { position: absolute; top: 16px; right: 18px; font-size: 2.2rem; font-weight: 800; color: #eef2ff; line-height: 1; }
.home-step-icon { width: 46px; height: 46px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.25rem; }
.home-step-icon.blue { background: #e0e7ff; color: #4338ca; }
.home-step-icon.green { background: #dcfce7; color: #15803d; }
.home-step-icon.amber { background: #fef3c7; color: #b45309; }
.home-step-icon.cyan { background: #cffafe; color: #0e7490; }
.home-section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.home-section-head h2 { font-size: 1.6rem; font-weight: 800; letter-spacing: -.01em; margin: 2px 0 4px; }
.home-section-head p { color: #64748b; margin: 0; }
.home-kicker { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); }
.home-count { font-size: .85rem; color: #64748b; background: #f1f5f9; border-radius: 999px; padding: 4px 12px; }
.home-empty { text-align: center; background: linear-gradient(180deg, #fff, #f8fafc); border: 1px dashed #cbd5e1; border-radius: 20px; padding: 48px 20px; }
.home-empty-icon { width: 64px; height: 64px; border-radius: 18px; background: var(--brand-50); color: var(--brand); display: inline-flex; align-items: center; justify-content: center; font-size: 1.8rem; margin-bottom: 14px; }
.home-empty p { color: #64748b; }
.home-product { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid #e2e8f0; border-radius: 18px; padding: 20px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.home-product:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(15, 23, 42, .1); border-color: #c7d2fe; }
.home-product-top { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 12px; }
.home-product-top h3 { font-size: 1.05rem; font-weight: 700; margin: 0 0 6px; }
.home-product-thumb { width: 56px; height: 56px; border-radius: 14px; object-fit: cover; flex-shrink: 0; background: linear-gradient(135deg, #eef2ff, #e0f2fe); color: var(--brand); display: inline-flex; align-items: center; justify-content: center; font-size: 1.5rem; }
.home-tag { font-size: .72rem; font-weight: 600; color: #475569; background: #f1f5f9; border-radius: 999px; padding: 3px 9px; }
.home-product-desc { color: #64748b; font-size: .9rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 12px; }
.home-product-support { font-size: .85rem; color: #166534; background: #f0fdf4; border-radius: 10px; padding: 7px 10px; margin-bottom: 16px; }
.home-product-support i { margin-right: 6px; }
.home-product-actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px; }
.home-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 18px; padding: 22px; height: 100%; }
.home-card h3 { font-size: 1.02rem; font-weight: 700; margin: 12px 0 6px; }
.home-faq { display: grid; gap: 12px; }
.home-faq details { background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 4px 18px; }
.home-faq details[open] { border-color: #c7d2fe; box-shadow: 0 8px 24px rgba(79, 70, 229, .08); }
.home-faq summary { cursor: pointer; list-style: none; font-weight: 600; padding: 14px 28px 14px 0; position: relative; }
.home-faq summary::-webkit-details-marker { display: none; }
.home-faq summary::after { content: "\F282"; font-family: "bootstrap-icons"; position: absolute; right: 0; top: 14px; color: #64748b; transition: transform .2s; }
.home-faq details[open] summary::after { transform: rotate(180deg); }
.home-faq details p { color: #475569; margin: 0 0 16px; }
.home-cta-band { margin-top: 56px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding: 34px 36px; border-radius: 22px; color: #fff; background: linear-gradient(120deg, #4f46e5, #7c3aed 55%, #0ea5e9); box-shadow: 0 24px 50px rgba(79, 70, 229, .3); }
.home-cta-band h2 { font-weight: 800; margin: 0 0 4px; }
.home-cta-band p { margin: 0; color: #e0e7ff; }
.home-cta-band .btn { color: var(--brand-600); font-weight: 600; }
@media (max-width: 991.98px) { .home-panel { transform: none; } .home-hero { padding: 48px 0 84px; } }
@media (max-width: 575.98px) {
  .home-search { padding-left: 40px; } .home-search > i { left: 14px; }
  .home-search .btn { padding: 9px 14px; }
  .home-cta-band { padding: 26px 22px; }
  .home-section-head h2 { font-size: 1.35rem; }
}
