:root {
  --bg: #090d16;
  --panel: #0e1524;
  --panel2: #141d30;
  --line: #1c273c;
  --line2: #283750;
  --text: #f1f5f9;
  --text-dim: #94a3b8;
  --muted: #64748b;
  --blue: #2563eb;
  --blue-hover: #1d4ed8;
  --blue-soft: rgba(37, 99, 235, 0.12);
  --blue-text: #60a5fa;
  --green: #10b981;
  --red: #ef4444;
  --amber: #f59e0b;
  --radius: 8px;
  --radius-lg: 12px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 13.5px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button, input, select {
  font: inherit;
}

button, a {
  cursor: pointer;
}

button {
  color: inherit;
}

.hidden {
  display: none !important;
}

/* Auth / Login */
.auth-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--bg);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.brand b {
  display: block;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #ffffff;
}

.brand small {
  display: block;
  font-size: 9px;
  color: var(--muted);
  letter-spacing: 1px;
}

.mark {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: var(--blue);
  color: #ffffff;
  font-weight: 800;
  font-size: 20px;
}

.auth-card {
  width: min(400px, 100%);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.eyebrow {
  font-size: 10px;
  color: var(--blue-text);
  letter-spacing: 1.5px;
  font-weight: 700;
  text-transform: uppercase;
}

.auth-card h1, .page-head h1 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin: 6px 0;
  color: #ffffff;
}

.auth-card h1 span, .page-head h1 span {
  color: var(--blue-text);
}

.muted {
  color: var(--text-dim);
  font-size: 12px;
}

.auth-card form {
  margin-top: 20px;
}

.auth-card label {
  display: block;
  color: var(--text-dim);
  font-size: 11px;
  font-weight: 500;
  margin: 14px 0 6px;
}

.auth-card input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: #090e18;
  color: #ffffff;
  border-radius: 6px;
  outline: 0;
  transition: border-color .15s;
}

.auth-card input:focus, .search input:focus {
  border-color: var(--blue);
}

.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--blue);
  border: 1px solid var(--blue);
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-size: 12.5px;
  padding: 9px 15px;
  border-radius: 6px;
  transition: background .15s;
}

.auth-card .primary {
  width: 100%;
  margin-top: 20px;
  padding: 11px;
}

.primary:hover {
  background: var(--blue-hover);
}

.outline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line2);
  background: var(--panel2);
  color: var(--text);
  border-radius: 6px;
  padding: 7px 12px;
  font-size: 11.5px;
  font-weight: 500;
  transition: all .15s;
}

.outline:hover {
  border-color: var(--blue-text);
  background: #19233a;
}

.outline.active {
  border-color: rgba(59, 130, 246, 0.5);
  background: rgba(37, 99, 235, 0.18);
  color: #60a5fa;
  font-weight: 600;
}

button:active {
  transform: scale(0.97);
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.form-error, .error-text {
  color: #f87171;
  font-size: 11.5px;
  margin-top: 8px;
}

.footnote {
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.copyright {
  color: var(--muted);
  font-size: 10.5px;
  margin-top: 20px;
}

/* Layout */
.layout {
  min-height: 100vh;
}

.sidebar {
  width: 240px;
  position: fixed;
  inset: 0 auto 0 0;
  background: var(--panel);
  border-right: 1px solid var(--line);
  padding: 20px 12px 14px;
  display: flex;
  flex-direction: column;
  z-index: 10;
}

.sidebar .brand {
  padding: 0 8px 20px;
  margin: 0;
  border-bottom: 1px solid var(--line);
}

.account-picker {
  padding: 12px 4px 6px;
}

.account-picker label {
  display: block;
  color: var(--muted);
  font-size: 9.5px;
  letter-spacing: 1.2px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.account-picker select {
  width: 100%;
  padding: 7px 9px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #090e18;
  color: var(--text);
  font-size: 11.5px;
  outline: 0;
}

.account-picker select:focus {
  border-color: var(--blue);
}

.nav-label {
  color: var(--muted);
  font-size: 9.5px;
  letter-spacing: 1.2px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 14px 8px 6px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text-dim);
  padding: 9px 10px;
  border-radius: 6px;
  margin: 1px 0;
  font-size: 12.5px;
  font-weight: 500;
  transition: all .12s;
}

.nav span {
  flex: 1;
}

.nav b {
  font-size: 10px;
  background: var(--panel2);
  color: var(--text-dim);
  padding: 2px 6px;
  border-radius: 4px;
  font-variant-numeric: tabular-nums;
}

.nav.active {
  background: var(--blue-soft);
  color: var(--blue-text);
  font-weight: 600;
}

.nav.active b {
  background: rgba(37, 99, 235, 0.25);
  color: #93c5fd;
}

.nav b.highlight {
  background: var(--blue);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 0 8px rgba(37, 99, 235, 0.4);
}

/* Vector Icons */
.icon {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

.icon-sm {
  width: 13.5px;
  height: 13.5px;
}

.icon-lg {
  width: 18px;
  height: 18px;
}

.icon.spin {
  animation: spin 1s linear infinite;
}

.nav .icon {
  color: var(--text-dim);
  transition: color 0.15s;
}

.nav:hover .icon,
.nav.active .icon {
  color: var(--blue-text);
}


.side-bottom {
  margin-top: auto;
  padding-top: 12px;
}

.conn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  background: #090e18;
  border-radius: 6px;
  color: var(--text-dim);
  font-size: 10.5px;
  margin-bottom: 10px;
}

.conn i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}

.account {
  border-top: 1px solid var(--line);
  padding: 12px 2px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.avatar {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--panel2);
  color: var(--blue-text);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 12px;
}

.account > div:nth-child(2) {
  flex: 1;
  min-width: 0;
}

.account b, .account small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account b {
  font-size: 11.5px;
  color: #ffffff;
}

.account small {
  font-size: 10px;
  color: var(--muted);
}

.account button, .menu-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-dim);
  border-radius: 6px;
  padding: 6px;
}

.account button:hover, .menu-btn:hover {
  background: var(--panel2);
  color: #ffffff;
}

/* Main Area */
.main {
  margin-left: 240px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  height: 56px;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 24px;
}

.topbar small {
  color: var(--muted);
  font-size: 11px;
}

.topbar b {
  font-size: 12px;
  color: var(--text);
}

.top-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.secure {
  font-size: 9px;
  color: var(--green);
  letter-spacing: 0.8px;
  font-weight: 600;
}

.content {
  max-width: 1400px;
  padding: 24px;
  flex: 1;
}

.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.page-head p {
  margin: 3px 0 0;
}

.search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 260px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 7px 11px;
  color: var(--muted);
}

.search input {
  background: transparent;
  border: 0;
  outline: 0;
  color: #ffffff;
  width: 100%;
  font-size: 12px;
}

/* Mail Card & List */
.mail-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.mail-toolbar {
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  background: rgba(14, 21, 36, 0.7);
}

#clearClaimedWrap {
  display: inline-flex;
  align-items: center;
  margin-left: auto;
}

#btnClearClaimed {
  margin-left: 8px;
  gap: 6px;
}

.mail-toolbar b {
  font-size: 12.5px;
  color: var(--text);
}

.mail-toolbar span {
  color: var(--muted);
  font-size: 10.5px;
}

.mail-row {
  width: 100%;
  display: grid;
  grid-template-columns: 34px minmax(130px, 1.2fr) minmax(180px, 3fr) auto auto;
  align-items: center;
  gap: 12px;
  text-align: left;
  padding: 12px 18px;
  background: transparent;
  border: 0;
  border-left: 3px solid transparent;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  transition: background .12s, border-color .12s, opacity .12s;
}

.mail-row:hover {
  background: var(--panel2);
}

.mail-row:last-child {
  border-bottom: 0;
}

/* Unread Mail: bold, white, vibrant blue accent */
.mail-row.unread {
  background: rgba(37, 99, 235, 0.05);
  border-left-color: var(--blue);
}

.mail-row.unread:hover {
  background: rgba(37, 99, 235, 0.09);
}

.mail-row.unread .mail-from {
  font-weight: 700;
  color: #ffffff;
}

.mail-row.unread .mail-subject {
  font-weight: 600;
  color: #f8fafc;
}

.mail-row.unread .mail-subject small {
  color: #94a3b8;
  font-weight: 400;
}

.mail-row.unread .mail-date {
  color: #60a5fa;
  font-weight: 600;
}

.mail-row.unread .mail-avatar {
  background: rgba(37, 99, 235, 0.22);
  border-color: rgba(37, 99, 235, 0.45);
  color: #93c5fd;
}

.mail-row.unread .mail-avatar::after {
  content: '';
  position: absolute;
  top: -2px;
  right: -2px;
  width: 9px;
  height: 9px;
  background: #3b82f6;
  border: 2px solid var(--panel);
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(59, 130, 246, 0.9);
}

/* Read Mail: dimmed, muted, relaxed */
.mail-row.read {
  background: transparent;
  border-left-color: transparent;
  opacity: 0.85;
}

.mail-row.read .mail-from {
  font-weight: 400;
  color: #94a3b8;
}

.mail-row.read .mail-subject {
  font-weight: 400;
  color: #64748b;
}

.mail-row.read .mail-subject small {
  color: #475569;
}

.mail-row.read .mail-date {
  color: #475569;
  font-weight: 400;
}

.mail-row.read .mail-avatar {
  background: #0f1626;
  border-color: #1a253a;
  color: #64748b;
  opacity: 0.7;
}

.mail-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #172439;
  border: 1px solid var(--line2);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--blue-text);
  flex-shrink: 0;
  position: relative;
}

.mail-from, .mail-subject {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 12.5px;
}

.mail-from {
  font-weight: 600;
  color: #ffffff;
}

.mail-subject-container {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  overflow: hidden;
}

.mail-subject-container .mail-subject {
  flex: 1;
  min-width: 0;
}

.btn-otp-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.38);
  border-radius: 999px;
  color: #93c5fd;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  flex-shrink: 0;
  white-space: nowrap;
  user-select: none;
  transition: all 0.14s ease;
  line-height: 1.35;
}

.btn-otp-chip:hover {
  background: rgba(37, 99, 235, 0.28);
  border-color: #60a5fa;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
}

.btn-otp-chip b {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.6px;
}

.btn-otp-chip.copied {
  background: rgba(34, 197, 94, 0.22);
  border-color: rgba(34, 197, 94, 0.6);
  color: #86efac;
}

.btn-otp-chip.copied b {
  color: #86efac;
}

.mail-subject {
  color: #cbd5e1;
  font-weight: 450;
}

.mail-subject small {
  color: var(--muted);
  font-weight: 400;
  font-size: 11.5px;
}

.mail-date {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.clip {
  color: var(--muted);
  font-size: 12px;
}

.empty {
  padding: 40px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}

/* Gmail-like Message Viewer */
.mail-view-wrap {
  padding: 20px 24px;
}

.mail-view-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}

.mail-view-toolbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mail-view-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mail-view-subject {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
  color: #ffffff;
  margin: 0 0 16px;
  letter-spacing: -0.3px;
  word-break: break-word;
}

/* Mail Detail View OTP Hero Bar */
.mail-otp-hero {
  margin: 12px 0 16px;
  padding: 12px 18px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.12) 0%, rgba(15, 23, 42, 0.6) 100%);
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.mail-otp-hero-content {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.mail-otp-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #60a5fa;
}

.mail-otp-hero-badge svg {
  width: 13px;
  height: 13px;
}

.mail-otp-hero-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 3px;
  color: #ffffff;
  text-shadow: 0 0 12px rgba(59, 130, 246, 0.4);
  cursor: pointer;
  user-select: all;
  transition: opacity 0.12s;
}

.mail-otp-hero-code:hover {
  opacity: 0.85;
}

.btn-otp-hero-copy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  background: #2563eb;
  border: 1px solid #3b82f6;
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
  white-space: nowrap;
  transition: all 0.15s ease;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
}

.btn-otp-hero-copy:hover {
  background: #1d4ed8;
  border-color: #60a5fa;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.45);
}

.btn-otp-hero-copy b {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.btn-otp-hero-copy.copied {
  background: #16a34a;
  border-color: #22c55e;
  box-shadow: 0 2px 8px rgba(22, 163, 74, 0.4);
}

.mail-view-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
}

.mail-view-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #182842;
  border: 1px solid var(--line2);
  color: var(--blue-text);
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
  text-transform: uppercase;
}

.mail-view-meta {
  flex: 1;
  min-width: 0;
}

.mail-view-sender-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.mail-view-sender {
  font-size: 13.5px;
  font-weight: 600;
  color: #ffffff;
}

.mail-view-email {
  font-size: 11.5px;
  color: var(--text-dim);
  margin-left: 6px;
  font-weight: 400;
}

.mail-view-date {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.mail-view-to {
  font-size: 11px;
  color: var(--muted);
  margin-top: 3px;
}

.mail-view-to b {
  color: var(--text-dim);
  font-weight: 500;
}

.mail-view-body-card {
  background: #0b1120;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  margin-top: 14px;
  position: relative;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.mail-view-body-card.light-mode {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

.mail-view-iframe {
  width: 100%;
  border: 0;
  display: block;
  min-height: 420px;
  background: #0b1120;
  transition: background 0.2s ease;
}

.mail-view-body-card.light-mode .mail-view-iframe {
  background: #ffffff;
}

.mail-view-text {
  padding: 24px 28px;
  color: #f1f5f9;
  background: #0b1120;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.7;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  transition: background 0.2s ease, color 0.2s ease;
}

.mail-view-body-card.light-mode .mail-view-text {
  color: #1e293b;
  background: #ffffff;
}

.mail-attachments-box {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.mail-attachments-title {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.mail-attachments-grid {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.mail-attachment-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid var(--line2);
  background: var(--panel2);
  color: var(--text);
  text-decoration: none;
  font-size: 11.5px;
  transition: all .15s;
}

.mail-attachment-chip:hover {
  border-color: var(--blue-text);
  color: var(--blue-text);
  background: #19263c;
}

.mail-attachment-chip .att-icon {
  font-size: 15px;
  color: var(--blue-text);
}

.mail-attachment-chip .att-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.mail-attachment-chip .att-name {
  font-weight: 600;
  max-width: 220px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mail-attachment-chip .att-size {
  font-size: 10px;
  color: var(--muted);
  margin-top: 2px;
}

.btn-toggle-group {
  display: inline-flex;
  border-radius: 6px;
  border: 1px solid var(--line2);
  overflow: hidden;
}

.btn-toggle-group button {
  border: 0;
  background: var(--panel);
  color: var(--text-dim);
  padding: 6px 11px;
  font-size: 11px;
  font-weight: 600;
  transition: all .1s;
}

.btn-toggle-group button.active {
  background: var(--panel2);
  color: #ffffff;
}

/* Badges & Status */
.badge {
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--panel2);
  color: var(--blue-text);
  font-weight: 600;
  letter-spacing: 0.3px;
}

.badge.ok {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
}

.badge.error {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
}

.badge.running {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
}

/* Admin Views & Accounts */
.account-card {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}

.account-card:last-child {
  border-bottom: 0;
}

.account-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.account-card h3 {
  margin: 0;
  font-size: 13.5px;
  font-weight: 600;
  color: #ffffff;
}

.account-card .meta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 11px;
  color: var(--muted);
  margin: 6px 0;
}

.account-card .account-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-dim);
}

.toggle input {
  accent-color: var(--blue);
}

.alert, .invite-result {
  padding: 12px 16px;
  border: 1px solid var(--line2);
  background: var(--panel2);
  border-radius: 6px;
  margin-bottom: 14px;
  color: var(--text);
  font-size: 12px;
}

.invite-result input {
  width: 100%;
  padding: 8px 10px;
  background: #090e18;
  border: 1px solid var(--line);
  color: #ffffff;
  border-radius: 6px;
  margin: 8px 0;
}

.admin-table {
  overflow: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 540px;
  text-align: left;
}

th {
  font-size: 9.5px;
  color: var(--muted);
  letter-spacing: 0.8px;
  background: rgba(9, 14, 24, 0.6);
  padding: 10px 16px;
  text-transform: uppercase;
}

td {
  padding: 11px 16px;
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  color: var(--text-dim);
}

.actions {
  display: flex;
  gap: 10px;
  margin: 14px 0;
}

.link-button {
  font-size: 12px;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  padding: 10px 16px;
  background: var(--panel);
  border: 1px solid var(--line2);
  border-radius: 6px;
  color: #ffffff;
  z-index: 100;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  font-size: 12px;
}

.menu-btn {
  display: none;
}

/* Responsiveness */
@media(max-width: 900px) {
  .sidebar { width: 210px; }
  .main { margin-left: 210px; }
  .content { padding: 18px; }
  .mail-row { grid-template-columns: 32px minmax(110px, 1fr) minmax(110px, 2fr) auto; }
  .mail-subject small { display: none; }
  .secure { display: none; }
}

@media(max-width: 680px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform .2s ease;
    width: 250px;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.5);
  }
  .sidebar.open { transform: translateX(0); }
  .main { margin-left: 0; }
  .topbar { height: 52px; padding: 0 14px; gap: 8px; }
  .menu-btn { display: block; }
  .content { padding: 14px; }
  .page-head { align-items: flex-start; flex-direction: column; }
  .search { width: 100%; }
  .mail-row {
    grid-template-columns: 32px minmax(0, 1fr) auto;
    gap: 6px 10px;
    padding: 11px 12px;
  }
  .mail-from { grid-column: 2; grid-row: 1; }
  .mail-subject-container {
    grid-column: 2;
    grid-row: 2;
    flex-wrap: wrap;
    gap: 6px;
  }
  .mail-subject { font-size: 11.5px; width: 100%; }
  .btn-otp-chip { font-size: 10.5px; padding: 2px 8px; }
  .mail-date { grid-column: 3; grid-row: 1; align-self: start; }
  .clip { grid-column: 3; grid-row: 2; }
  .mail-avatar { grid-row: 1/3; }
  .mail-view-wrap { padding: 14px; }
  .mail-otp-hero {
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 14px;
    gap: 12px;
  }
  .mail-otp-hero-code {
    font-size: 20px;
  }
  .btn-otp-hero-copy {
    width: 100%;
    justify-content: center;
    padding: 8px 14px;
    font-size: 12px;
  }
}

/* Preserved sidebar hover fix */
.nav:hover:not(.active) {
  background: transparent;
  color: var(--text-dim);
}

@media(hover: hover) {
  .nav:hover:not(.active) {
    background: var(--panel2);
    color: var(--text);
  }
}

.sidebar {
  height: 100dvh;
  overflow-y: auto;
}

/* Floating PWA Install Banner */
.pwa-install-banner {
  position: fixed;
  bottom: 24px;
  right: 24px;
  max-width: 400px;
  width: calc(100% - 32px);
  background: var(--panel);
  border: 1px solid var(--line2);
  border-radius: var(--radius-lg);
  padding: 13px 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(37, 99, 235, 0.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  z-index: 120;
  animation: pwaSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes pwaSlideUp {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.pwa-install-content {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.pwa-install-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--blue);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 18px;
  flex-shrink: 0;
}

.pwa-install-text {
  min-width: 0;
}

.pwa-install-text b {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.3;
}

.pwa-install-text span {
  display: block;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pwa-install-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.pwa-btn-install {
  padding: 7px 13px;
  font-size: 11.5px;
  font-weight: 600;
  border-radius: 6px;
  white-space: nowrap;
}

.pwa-btn-close {
  background: transparent;
  border: 0;
  color: var(--muted);
  font-size: 15px;
  padding: 6px 8px;
  border-radius: 4px;
  display: grid;
  place-items: center;
  transition: color 0.15s;
}

.pwa-btn-close:hover {
  color: #ffffff;
}

@media(max-width: 680px) {
  .pwa-install-banner {
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    left: 14px;
    right: 14px;
    width: auto;
    padding: 11px 13px;
  }
}

/* Outlook Inventory / Bahan Outlook */
.stock-badge {
  font-size: 10px;
  background: rgba(37, 99, 235, 0.2);
  color: var(--blue-text);
  border: 1px solid rgba(37, 99, 235, 0.4);
  padding: 1px 6px;
  border-radius: 999px;
  font-weight: 700;
  margin-left: auto;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.stat-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-card.highlight {
  border-color: rgba(37, 99, 235, 0.4);
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.08) 0%, var(--panel) 100%);
}

.stat-num {
  font-size: 26px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.stat-num.ready {
  color: var(--green);
}

.stat-label {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.7px;
  font-weight: 600;
}

.claim-hero {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.claim-hero-text h3 {
  margin: 0 0 6px;
  font-size: 16px;
  color: #ffffff;
}

.claim-hero-text p {
  margin: 0;
  color: var(--text-dim);
  font-size: 12.5px;
  max-width: 540px;
}

.btn-claim-large {
  padding: 12px 22px;
  font-size: 13.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 8px;
  white-space: nowrap;
  background: var(--blue);
  color: #ffffff;
  border: 0;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
}

.btn-claim-large:hover:not(:disabled) {
  background: var(--blue-hover);
  transform: translateY(-1px);
}

.btn-claim-large:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.import-box {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 22px;
}

.import-textarea {
  width: 100%;
  min-height: 140px;
  background: #090e18;
  border: 1px solid var(--line2);
  border-radius: 6px;
  color: #f1f5f9;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  line-height: 1.5;
  padding: 12px;
  resize: vertical;
  margin: 10px 0 14px;
}

.import-textarea:focus {
  outline: none;
  border-color: var(--blue);
}

.cred-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #090e18;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 3px 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11.5px;
  color: #e2e8f0;
}

.cred-chip button {
  background: transparent;
  border: 0;
  color: var(--blue-text);
  padding: 2px 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 3px;
  transition: color 0.15s, background 0.15s;
}

.cred-chip button:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.tab-filter-group {
  display: inline-flex;
  gap: 6px;
  margin-bottom: 14px;
}

.tab-filter-btn {
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--text-dim);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 500;
}

.tab-filter-btn.active {
  background: var(--panel2);
  border-color: var(--blue);
  color: #ffffff;
  font-weight: 600;
}

/* Floating Realtime Global Chat */
.chat-launcher {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--blue);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 90;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
  transition: transform 0.15s ease, background 0.15s ease;
}

.chat-launcher:hover {
  background: var(--blue-dark);
  transform: scale(1.05);
}

.chat-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  background: #ef4444;
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  border: 2px solid #090e18;
}

.chat-drawer {
  position: fixed;
  right: 24px;
  bottom: 84px;
  width: 360px;
  height: 480px;
  max-height: calc(100dvh - 110px);
  background: #0c1220;
  border: 1px solid var(--line2);
  border-radius: 12px;
  z-index: 95;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65);
}

.chat-header {
  padding: 12px 14px;
  background: #0e1524;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-header-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.chat-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #64748b;
  display: inline-block;
  transition: background 0.2s;
}

.chat-status-dot.active {
  background: #22c55e;
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.6);
}

.chat-header b {
  font-size: 13px;
  color: #ffffff;
}

.chat-close-btn {
  background: transparent;
  border: 0;
  color: var(--text-dim);
  cursor: pointer;
  padding: 4px;
  display: flex;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
}

.chat-close-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scroll-behavior: smooth;
}

.chat-empty {
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  padding: 50px 16px;
  line-height: 1.5;
}

.chat-msg {
  max-width: 84%;
  padding: 8px 11px;
  border-radius: 10px;
  position: relative;
  transition: opacity 0.2s, transform 0.2s;
}

.chat-msg.mine {
  align-self: flex-end;
  background: #1e3a8a;
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-bottom-right-radius: 2px;
}

.chat-msg.other {
  align-self: flex-start;
  background: #131c2e;
  border: 1px solid var(--line);
  border-bottom-left-radius: 2px;
}

.chat-msg-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.chat-msg-user {
  display: flex;
  align-items: center;
  gap: 6px;
}

.chat-msg-name {
  font-size: 11px;
  font-weight: 600;
  color: #e2e8f0;
  max-width: 140px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-role-badge {
  font-size: 8.5px;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 3px;
  letter-spacing: 0.5px;
}

.chat-role-badge.admin {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.chat-role-badge.viewer {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.chat-msg-meta {
  display: flex;
  align-items: center;
  gap: 6px;
}

.chat-msg-time {
  font-size: 10px;
  color: var(--muted);
}

.btn-del-msg {
  background: transparent;
  border: 0;
  color: #f87171;
  cursor: pointer;
  opacity: 0;
  padding: 2px;
  border-radius: 3px;
  display: inline-flex;
  transition: opacity 0.15s;
}

.chat-msg:hover .btn-del-msg {
  opacity: 1;
}

.chat-msg-text {
  font-size: 12.5px;
  color: #f8fafc;
  line-height: 1.45;
  word-break: break-word;
  white-space: pre-wrap;
}

.chat-input-bar {
  padding: 10px 12px;
  background: #090e18;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 8px;
  align-items: center;
}

.chat-input-bar input {
  flex: 1;
  background: #0e1524;
  border: 1px solid var(--line2);
  border-radius: 6px;
  padding: 8px 12px;
  color: #ffffff;
  font-size: 12px;
  outline: none;
  transition: border-color 0.15s;
}

.chat-input-bar input:focus {
  border-color: var(--blue);
}

.chat-input-bar button {
  width: 34px;
  height: 34px;
  background: var(--blue);
  color: #ffffff;
  border: 0;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s;
}

.chat-input-bar button:hover {
  background: var(--blue-dark);
}

.chat-input-bar button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

@media(max-width: 680px) {
  .chat-drawer {
    right: 10px;
    left: 10px;
    bottom: 70px;
    width: calc(100% - 20px);
    height: calc(100dvh - 120px);
  }
  .chat-launcher {
    bottom: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
  }
}

/* Email Translate Feature */
.translate-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--panel2);
  padding: 3px 6px;
  border-radius: 6px;
  border: 1px solid var(--line);
}

.translate-toggle-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--text-dim);
  cursor: pointer;
  user-select: none;
  padding: 2px 4px;
}

.translate-toggle-label input[type="checkbox"] {
  cursor: pointer;
  accent-color: var(--blue);
  width: 13px;
  height: 13px;
  margin: 0;
}

.btn-translate {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 4px;
  background: transparent;
  color: var(--text-dim);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-translate:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.btn-translate.active {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border-color: rgba(59, 130, 246, 0.35);
}

.translate-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(30, 58, 138, 0.25);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 6px;
  margin-bottom: 14px;
  font-size: 12px;
  color: #bfdbfe;
}

.translate-banner-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.translate-banner-badge {
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 6px;
  background: rgba(59, 130, 246, 0.25);
  border-radius: 4px;
  color: #93c5fd;
  letter-spacing: 0.5px;
}

.btn-revert-link {
  background: transparent;
  border: 0;
  color: #60a5fa;
  cursor: pointer;
  font-size: 11.5px;
  font-weight: 600;
  text-decoration: underline;
  padding: 0;
}

.btn-revert-link:hover {
  color: #93c5fd;
}

.mail-view-translated {
  background: #0d1424;
  color: #e2e8f0;
  border: 1px solid var(--line2);
  font-size: 13.5px;
  line-height: 1.7;
}

.mail-view-translated a {
  color: #60a5fa;
  text-decoration: underline;
}

.mail-view-translated .highlight-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  background: rgba(59, 130, 246, 0.18);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.3);
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
}

/* Outlook Multi-Folder Tabs & Badges */
.outlook-folder-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.folder-tab-pill {
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--text-dim);
  padding: 7px 13px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  transition: all 0.14s ease;
  user-select: none;
}

.folder-tab-pill:hover {
  border-color: var(--blue-text);
  color: #ffffff;
  background: var(--panel2);
}

.folder-tab-pill.active {
  background: #141f33;
  border-color: var(--blue);
  color: #ffffff;
}

.folder-tab-pill .pill-badge {
  font-size: 10px;
  background: rgba(255, 255, 255, 0.08);
  padding: 1px 6px;
  border-radius: 10px;
  font-variant-numeric: tabular-nums;
  color: var(--text-dim);
}

.folder-tab-pill.active .pill-badge {
  background: var(--blue);
  color: #ffffff;
}

.folder-tab-pill.tab-junk.active {
  border-color: #d97706;
  background: #241a0d;
}

.folder-tab-pill.tab-junk.active .pill-badge {
  background: #d97706;
  color: #ffffff;
}

.folder-tab-pill.tab-xm.active {
  border-color: #2563eb;
  background: #101c33;
}

.folder-tab-pill.tab-xm.active .pill-badge {
  background: #2563eb;
  color: #ffffff;
}

.badge.warning {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
  font-size: 9.5px;
  padding: 1px 6px;
  border-radius: 4px;
}

.badge.xm-brand {
  background: rgba(37, 99, 235, 0.18);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.35);
  font-size: 9.5px;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 700;
}

.mail-junk-banner {
  margin: 12px 0 16px;
  padding: 11px 16px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: 6px;
  color: #fde68a;
  font-size: 12px;
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.mail-junk-banner svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: #fbbf24;
}

.mail-links-card {
  margin-top: 14px;
  padding: 14px 18px;
  background: var(--panel2);
  border: 1px solid var(--line2);
  border-radius: 6px;
}

.mail-links-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-dim);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.mail-link-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 10px;
  background: #090e18;
  border: 1px solid var(--line);
  border-radius: 4px;
  margin-bottom: 6px;
  font-size: 11.5px;
}

.mail-link-item:last-child {
  margin-bottom: 0;
}

.mail-link-url {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  color: #60a5fa;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 500px;
}

/* XM Action Hero & Verification Button */
.mail-xm-action-hero {
  margin: 14px 0 18px;
  padding: 16px 20px;
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.16) 0%, rgba(15, 23, 42, 0.9) 100%);
  border: 1px solid rgba(225, 29, 72, 0.45);
  border-radius: var(--radius);
  box-shadow: 0 4px 20px rgba(225, 29, 72, 0.15), 0 2px 8px rgba(0, 0, 0, 0.4);
}

.mail-xm-url-box {
  margin-top: 10px;
  padding: 8px 12px;
  background: #090e18;
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11.5px;
  color: #93c5fd;
  word-break: break-all;
  cursor: pointer;
  user-select: all;
  transition: border-color 0.15s, background 0.15s;
}

.mail-xm-url-box:hover {
  background: #0d1526;
  border-color: #60a5fa;
  color: #bfdbfe;
}

.btn-verify-xm {
  background: #e11d48 !important;
  color: #ffffff !important;
  padding: 8px 18px !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  border-radius: 6px !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  box-shadow: 0 3px 12px rgba(225, 29, 72, 0.45) !important;
  transition: all 0.15s ease !important;
}

.btn-verify-xm:hover {
  background: #be123c !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 5px 16px rgba(225, 29, 72, 0.6) !important;
}

/* KYC XM Status Select */
.kyc-status-select {
  padding: 4px 8px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid var(--line2);
  background: var(--panel2);
  color: var(--text);
  cursor: pointer;
  outline: none;
  transition: all 0.15s ease;
}
.kyc-status-select:focus {
  border-color: var(--blue);
}
.kyc-status-select.completed {
  border-color: rgba(16, 185, 129, 0.45);
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
}
.kyc-status-select.rejected {
  border-color: rgba(239, 68, 68, 0.45);
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
}
.kyc-status-select.pending {
  border-color: rgba(245, 158, 11, 0.4);
  background: rgba(245, 158, 11, 0.1);
  color: #fbbf24;
}

/* Worker Activity Monitoring (Admin) */
.worker-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 14px;
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.worker-card:hover {
  border-color: var(--line2);
}
.worker-card.expanded {
  border-color: rgba(59, 130, 246, 0.35);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}
.worker-card-head {
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  background: var(--panel);
  transition: background 0.15s ease;
  gap: 12px;
}
.worker-card-head:hover {
  background: rgba(255, 255, 255, 0.02);
}
.worker-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.worker-avatar {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border: 1px solid var(--line2);
  color: #38bdf8;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.worker-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.worker-info b {
  font-size: 13.5px;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.worker-info .worker-sub {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.worker-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}
.worker-status-dot.online {
  background: #34d399;
  box-shadow: 0 0 6px rgba(52, 211, 153, 0.6);
}
.worker-status-dot.offline {
  background: #64748b;
}

.worker-chips {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.worker-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  background: var(--panel2);
  border: 1px solid var(--line);
  color: var(--text-dim);
}
.worker-chip.total {
  color: #93c5fd;
  border-color: rgba(147, 197, 253, 0.25);
  background: rgba(59, 130, 246, 0.08);
}
.worker-chip.acc {
  color: #34d399;
  border-color: rgba(52, 211, 153, 0.25);
  background: rgba(16, 185, 129, 0.08);
}
.worker-chip.reject {
  color: #f87171;
  border-color: rgba(248, 113, 113, 0.25);
  background: rgba(239, 68, 68, 0.08);
}
.worker-chip.pending {
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.25);
  background: rgba(245, 158, 11, 0.08);
}

.worker-chevron {
  color: var(--muted);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.worker-card.expanded .worker-chevron {
  transform: rotate(180deg);
  color: #ffffff;
}

.worker-card-body {
  border-top: 1px solid var(--line);
  background: #090e18;
  display: none;
}
.worker-card.expanded .worker-card-body {
  display: block;
}

.worker-empty-state {
  padding: 24px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.worker-empty-state svg {
  color: var(--text-dim);
  opacity: 0.6;
}





