/* ===== MailApp — sistema de diseño propio ===== */
:root {
  --bg: #eef1f7;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e7eaf1;
  --primary: #6366f1;
  --primary-600: #4f46e5;
  --grad: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  --grad-soft: linear-gradient(135deg, #eef2ff 0%, #f5f3ff 100%);
  --sidebar-1: #111827;
  --sidebar-2: #1e293b;
  --danger: #ef4444;
  --success: #10b981;
  --warning: #f59e0b;
  --info: #3b82f6;
  --radius: 18px;
  --radius-sm: 11px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 12px 30px -14px rgba(15, 23, 42, .18);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 4px 12px -6px rgba(15, 23, 42, .12);
}
/* Panel admin = acento rosa/rojo para diferenciarlo */
.theme-admin {
  --primary: #f43f5e;
  --primary-600: #e11d48;
  --grad: linear-gradient(135deg, #f43f5e 0%, #fb7185 100%);
  --grad-soft: linear-gradient(135deg, #fff1f2 0%, #ffe4e6 100%);
  --sidebar-1: #1c1117;
  --sidebar-2: #3b1d2a;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased;
}
a { color: var(--primary-600); text-decoration: none; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* ===== Botones ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; cursor: pointer; font: inherit; font-weight: 600; font-size: 14px;
  padding: 10px 16px; border-radius: 12px; transition: .18s ease; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 18px -8px var(--primary); }
.btn-primary:hover { filter: brightness(1.05); box-shadow: 0 10px 22px -8px var(--primary); }
.btn-ghost { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { background: #eef2ff; border-color: #c7d2fe; }
.btn-danger { background: #fee2e2; color: #b91c1c; }
.btn-danger:hover { background: #fecaca; }
.btn-success { background: #dcfce7; color: #047857; }
.btn-block { width: 100%; }
.btn-sm { padding: 6px 10px; font-size: 13px; border-radius: 9px; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 11px; border: 0; cursor: pointer;
  background: transparent; color: var(--muted); transition: .15s;
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.btn-icon-danger { background: #fff1f2; color: #e11d48; border: 0; width: 32px; height: 32px; border-radius: 9px; cursor: pointer; transition: .15s; }
.btn-icon-danger:hover { background: #ffe4e6; }

/* ===== Formularios ===== */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label { font-size: 12.5px; font-weight: 600; color: #475569; }
input, select, textarea {
  width: 100%; padding: 11px 13px; font: inherit; font-size: 14px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--text); transition: .15s;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 16%, transparent);
}
textarea { resize: vertical; min-height: 96px; font-family: ui-monospace, "Cascadia Code", Consolas, monospace; }
.form-row { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; }
.col-1 { grid-column: span 1; } .col-2 { grid-column: span 2; } .col-3 { grid-column: span 3; }
.col-4 { grid-column: span 4; } .col-5 { grid-column: span 5; } .col-6 { grid-column: span 6; }
.col-7 { grid-column: span 7; } .col-8 { grid-column: span 8; } .col-9 { grid-column: span 9; }
.col-10 { grid-column: span 10; } .col-11 { grid-column: span 11; } .col-12 { grid-column: span 12; }
.col-end { display: flex; align-items: flex-end; }

/* ===== Layout app ===== */
.app { display: grid; grid-template-columns: 264px 1fr; min-height: 100vh; }
.sidebar {
  background: linear-gradient(180deg, var(--sidebar-1), var(--sidebar-2));
  color: #cbd5e1; display: flex; flex-direction: column; padding: 18px 14px;
  position: sticky; top: 0; height: 100vh;
}
.sidebar-brand { display: flex; align-items: center; gap: 11px; padding: 6px 10px 18px; color: #fff; font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.sidebar-brand .logo { width: 38px; height: 38px; border-radius: 11px; background: var(--grad); display: grid; place-items: center; color: #fff; font-size: 18px; box-shadow: 0 8px 18px -8px var(--primary); }
.menu { display: flex; flex-direction: column; gap: 3px; flex: 1; overflow-y: auto; }
.menu-label { font-size: 10.5px; font-weight: 700; letter-spacing: .09em; color: #64748b; padding: 16px 12px 6px; }
.menu-item {
  display: flex; align-items: center; gap: 12px; padding: 11px 13px; border-radius: 12px;
  color: #cbd5e1; font-weight: 500; font-size: 14.5px; cursor: pointer; transition: .15s; border: 0; background: transparent; width: 100%; text-align: left;
}
.menu-item i { width: 20px; text-align: center; font-size: 15px; color: #94a3b8; transition: .15s; }
.menu-item:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.menu-item:hover i { color: #fff; }
.menu-item.active { background: var(--grad); color: #fff; box-shadow: 0 10px 22px -10px var(--primary); }
.menu-item.active i { color: #fff; }
.sidebar-user { display: flex; align-items: center; gap: 11px; padding: 12px; margin-top: 10px; border-radius: 13px; background: rgba(255, 255, 255, .05); }
.sidebar-user .avatar { width: 40px; height: 40px; border-radius: 11px; background: var(--grad); display: grid; place-items: center; color: #fff; font-weight: 700; }
.sidebar-user .u-name { color: #fff; font-weight: 600; font-size: 14px; line-height: 1.2; }
.sidebar-user .u-role { color: #94a3b8; font-size: 12px; }

.main { display: flex; flex-direction: column; min-width: 0; }
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 14px;
  padding: 14px 26px; background: rgba(255, 255, 255, .8); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border);
}
.page-title { font-size: 20px; font-weight: 750; letter-spacing: -.02em; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 999px; background: var(--grad-soft); color: var(--primary-600); font-weight: 600; font-size: 13px; }
.hamburger { display: inline-flex; }
.content { padding: 24px 30px; width: 100%; }

/* ===== Tarjetas / paneles ===== */
.panel { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 22px; overflow: hidden; }
.panel-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--border); }
.panel-title { font-weight: 700; font-size: 16px; }
.panel-body { padding: 20px 22px; }
.panel-accent { border-top: 3px solid var(--primary); }

/* ===== Stat cards ===== */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 22px; }
.stat-card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; display: flex; align-items: center; gap: 16px; transition: .18s; }
.stat-card:hover { transform: translateY(-3px); box-shadow: 0 16px 36px -16px rgba(15, 23, 42, .28); }
.stat-icon { width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center; font-size: 21px; color: #fff; flex: none; }
.stat-value { font-size: 26px; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.stat-label { color: var(--muted); font-size: 13.5px; margin-top: 4px; }
.bg-indigo { background: linear-gradient(135deg, #6366f1, #818cf8); }
.bg-emerald { background: linear-gradient(135deg, #10b981, #34d399); }
.bg-amber { background: linear-gradient(135deg, #f59e0b, #fbbf24); }
.bg-slate { background: linear-gradient(135deg, #64748b, #94a3b8); }
.bg-rose { background: linear-gradient(135deg, #f43f5e, #fb7185); }

/* ===== Tablas ===== */
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; }
table.data th { text-align: left; padding: 12px 16px; font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--border); }
table.data td { padding: 13px 16px; border-bottom: 1px solid var(--surface-2); font-size: 14px; vertical-align: middle; }
table.data tbody tr:hover { background: var(--surface-2); }
table.data tbody tr:last-child td { border-bottom: 0; }
.empty-row td { color: var(--muted); text-align: center; padding: 28px; }

/* ===== Badges ===== */
.badge { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.badge-soft { background: var(--grad-soft); color: var(--primary-600); }
.badge-gray { background: #f1f5f9; color: #475569; }
.badge-green { background: #dcfce7; color: #047857; }
.badge-line { background: #fff; border: 1px solid var(--border); color: #475569; font-weight: 500; margin: 2px; }

/* ===== Etiquetas (tags) ===== */
.tag-pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; background: var(--grad-soft); color: var(--primary-600); margin: 2px 3px 2px 0; }
.tags-box { display: flex; flex-wrap: wrap; gap: 4px; min-height: 34px; align-items: center; padding: 6px; border: 1px dashed var(--border); border-radius: 11px; background: #fafbff; }
.tag-chip { display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--grad-soft); color: var(--primary-600); }
.tag-chip i { cursor: pointer; opacity: .6; transition: .15s; }
.tag-chip i:hover { opacity: 1; color: #e11d48; }
.tag-filter { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.tag-filter .tagf { cursor: pointer; padding: 4px 11px; border-radius: 999px; font-size: 12px; font-weight: 600; border: 1px solid var(--border); background: #fff; color: #475569; transition: .15s; }
.tag-filter .tagf:hover { border-color: var(--primary); color: var(--primary-600); }
.tag-filter .tagf.active { background: var(--grad); color: #fff; border-color: transparent; }

/* ===== API / docs ===== */
.codebox { background: #0f172a; color: #e2e8f0; border-radius: 11px; padding: 14px 16px; font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: 12.5px; line-height: 1.55; overflow-x: auto; white-space: pre; margin: 0; }
code { background: #f1f5f9; color: #be185d; padding: 1px 6px; border-radius: 6px; font-family: ui-monospace, Consolas, monospace; font-size: 12.5px; }
.ep { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.ep:last-child { border-bottom: 0; }
.ep .verb { font-weight: 700; font-size: 11px; padding: 3px 8px; border-radius: 6px; min-width: 52px; text-align: center; }
.ep .verb.get { background: #dbeafe; color: #1e40af; }
.ep .verb.post { background: #dcfce7; color: #047857; }
.ep .path { font-family: ui-monospace, Consolas, monospace; color: #0f172a; }
.progressbar { height: 12px; background: #e2e8f0; border-radius: 999px; overflow: hidden; margin: 8px 0 6px; }
.progressbar-fill { height: 100%; width: 0%; background: var(--grad); border-radius: 999px; transition: width .3s ease; }
.ep-doc { border: 1px solid var(--border); border-radius: 11px; margin-bottom: 8px; overflow: hidden; background: #fff; }
.ep-doc > summary { display: flex; align-items: center; gap: 10px; padding: 10px 12px; cursor: pointer; list-style: none; font-size: 13px; }
.ep-doc > summary::-webkit-details-marker { display: none; }
.ep-doc > summary .desc { color: var(--muted); margin-left: auto; text-align: right; font-size: 12px; }
.ep-doc[open] > summary { background: #f8fafc; border-bottom: 1px solid var(--border); }
.ep-doc .ep-body { padding: 12px; display: grid; gap: 12px; }
.ep-doc .verb { font-weight: 700; font-size: 11px; padding: 3px 8px; border-radius: 6px; min-width: 52px; text-align: center; }
.ep-doc .verb.get { background: #dbeafe; color: #1e40af; }
.ep-doc .verb.post { background: #dcfce7; color: #047857; }
.ep-doc .verb.patch { background: #fef3c7; color: #b45309; }
.ep-doc .verb.delete { background: #fee2e2; color: #b91c1c; }
.ep-doc .path { font-family: ui-monospace, Consolas, monospace; color: #0f172a; }
.code-label { font-size: 11px; font-weight: 700; color: #64748b; margin-bottom: 5px; text-transform: uppercase; letter-spacing: .05em; }

/* ===== Permisos (checkboxes) ===== */
.perm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; margin: 8px 0 16px; }
.perm-item { display: flex; align-items: center; gap: 9px; padding: 9px 12px; border: 1px solid var(--border); border-radius: 11px; cursor: pointer; transition: .15s; font-size: 13.5px; }
.perm-item:hover { border-color: var(--primary); background: var(--grad-soft); }
.perm-item input { width: auto; }

/* ===== Callout ===== */
.callout { background: var(--grad-soft); border-radius: var(--radius); padding: 20px 22px; }
.callout h3 { font-size: 16px; margin-bottom: 6px; }
.callout p { color: #475569; font-size: 14px; }

/* ===== Login ===== */
.auth { position: fixed; inset: 0; display: grid; place-items: center; padding: 20px;
  background: radial-gradient(1200px 600px at 10% -10%, color-mix(in srgb, var(--primary) 30%, transparent), transparent),
              radial-gradient(900px 500px at 110% 110%, #8b5cf655, transparent), var(--sidebar-1); }
.auth-card { width: 100%; max-width: 410px; background: var(--surface); border-radius: 22px; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .6); padding: 34px 30px; }
.auth-brand { display: flex; align-items: center; gap: 11px; font-size: 22px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 6px; }
.auth-brand .logo { width: 42px; height: 42px; border-radius: 12px; background: var(--grad); display: grid; place-items: center; color: #fff; }
.auth-card h2 { font-size: 17px; margin-top: 14px; }
.auth-card form { margin-top: 16px; display: flex; flex-direction: column; gap: 13px; }
.auth-links { margin-top: 16px; display: flex; flex-direction: column; gap: 7px; font-size: 14px; }

/* ===== Toasts ===== */
.toasts { position: fixed; top: 18px; right: 18px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; }
.toast { padding: 13px 16px; border-radius: 13px; background: #fff; box-shadow: var(--shadow); font-size: 14px; font-weight: 500; display: flex; align-items: center; gap: 10px; min-width: 240px; border-left: 4px solid var(--muted); animation: toastIn .25s ease; }
.toast.success { border-left-color: var(--success); } .toast.success i { color: var(--success); }
.toast.danger { border-left-color: var(--danger); } .toast.danger i { color: var(--danger); }
.toast.warning { border-left-color: var(--warning); } .toast.warning i { color: var(--warning); }
@keyframes toastIn { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: none; } }

/* ===== Overlay (móvil) ===== */
.overlay { display: none; position: fixed; inset: 0; background: rgba(15, 23, 42, .5); z-index: 40; }

/* ===== Editor de plantillas (bloques) ===== */
.builder { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.palette { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.palette .btn { background: var(--surface-2); color: var(--text); border: 1px dashed var(--border); }
.palette .btn:hover { border-color: var(--primary); color: var(--primary-600); background: var(--grad-soft); }
.block-card { border: 1px solid var(--border); border-radius: 13px; padding: 12px; margin-bottom: 10px; background: var(--surface); }
.block-card.dragging { opacity: .5; }
.block-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.block-type { font-size: 12px; font-weight: 700; color: var(--primary-600); text-transform: uppercase; letter-spacing: .04em; flex: 1; }
.block-head .icon-btn { width: 30px; height: 30px; }
.preview-box { border: 1px solid var(--border); border-radius: 13px; padding: 18px; background: #fff; min-height: 200px; overflow: auto; }
.preview-label { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 8px; }
.editbar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--grad-soft); border-radius: 11px; margin-bottom: 14px; font-size: 14px; }

/* ===== Dominios / DNS ===== */
.status-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.sbadge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; }
.sbadge.ok { background: #dcfce7; color: #047857; }
.sbadge.no { background: #fee2e2; color: #b91c1c; }
.dns-detail { background: var(--surface-2); border-radius: 13px; padding: 14px; margin-top: 4px; }
.dns-record { background: #fff; border: 1px solid var(--border); border-radius: 11px; padding: 12px 14px; margin-bottom: 10px; }
.dns-record .r-top { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.dns-record .r-host { font-weight: 600; font-size: 13.5px; word-break: break-all; }
.dns-record .r-val { display: flex; align-items: center; gap: 8px; background: var(--surface-2); border-radius: 8px; padding: 8px 10px; font-family: ui-monospace, Consolas, monospace; font-size: 12.5px; word-break: break-all; }
.copy-btn { flex: none; }

/* ===== Modal ===== */
.modal-overlay { position: fixed; inset: 0; background: rgba(15, 23, 42, .55); z-index: 1000; display: none; align-items: flex-start; justify-content: center; padding: 48px 16px; overflow: auto; }
.modal-overlay.show { display: flex; }
.modal { background: var(--surface); border-radius: 18px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .55); width: 100%; max-width: 640px; animation: modalIn .18s ease; }
.modal.lg { max-width: 900px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--border); }
.modal-title { font-weight: 700; font-size: 17px; }
.modal-body { padding: 20px 22px; }
@keyframes modalIn { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }

/* ===== Responsive ===== */
@media (max-width: 760px) { .builder { grid-template-columns: 1fr; } }
@media (max-width: 980px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; top: 0; left: 0; width: 270px; z-index: 50; transform: translateX(-100%); transition: transform .25s ease; }
  .sidebar.open { transform: none; box-shadow: 0 0 60px rgba(0, 0, 0, .4); }
  .overlay.show { display: block; }
  .hamburger { display: inline-flex; }
  .content { padding: 18px; }
  .form-row > [class*="col-"] { grid-column: span 12; }
  .topbar { padding: 12px 16px; }
}
@media (max-width: 520px) { .stat-grid { grid-template-columns: 1fr; } .chip { display: none; } }

/* ===== Sidebar colapsado ===== */
.app.collapsed { grid-template-columns: 76px 1fr; }
.app.collapsed .mlabel, .app.collapsed .menu-label, .app.collapsed .sidebar-user > div:not(.avatar), .app.collapsed .btext { display: none; }
.app.collapsed .menu-item { justify-content: center; padding: 12px; }
.app.collapsed .sidebar-brand { justify-content: center; padding-left: 0; padding-right: 0; }
.app.collapsed .sidebar-user { justify-content: center; }
@media (max-width: 860px) { .app.collapsed { grid-template-columns: 1fr; } }

/* ===== DataTables (simple-datatables) ===== */
.datatable-top, .datatable-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.datatable-top { padding: 2px 2px 16px; }
.datatable-bottom { padding: 16px 2px 2px; }
.datatable-search { order: 2; }
.datatable-dropdown { order: 1; color: var(--muted); font-size: 13px; }
.datatable-input { padding: 10px 14px; border: 1px solid var(--border); border-radius: 11px; font: inherit; font-size: 14px; min-width: 240px; background: var(--surface-2); transition: .15s; }
.datatable-input:focus { outline: none; border-color: var(--primary); background: var(--surface); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 16%, transparent); }
.datatable-selector { padding: 8px 10px; border: 1px solid var(--border); border-radius: 10px; font: inherit; background: var(--surface-2); cursor: pointer; }
.datatable-info { color: var(--muted); font-size: 13px; }
.datatable-pagination-list { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.datatable-pagination-list-item-link { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; padding: 0 11px; border-radius: 10px; color: var(--text); font-size: 14px; font-weight: 500; text-decoration: none; }
.datatable-pagination-list-item-link:hover { background: var(--surface-2); }
.datatable-pagination-list-item.datatable-active .datatable-pagination-list-item-link { background: var(--grad); color: #fff; box-shadow: 0 6px 14px -6px var(--primary); }
.datatable-pagination-list-item.datatable-disabled .datatable-pagination-list-item-link, .datatable-pagination-list-item.datatable-ellipsis .datatable-pagination-list-item-link { color: #cbd5e1; cursor: default; background: transparent; }
.datatable-table { width: 100% !important; }
table.datatable-table thead th { background: var(--surface-2); cursor: pointer; user-select: none; }
table.datatable-table thead th a, .datatable-sorter { color: var(--muted); font-weight: 700; }

/* ===== Menú de usuario (topbar) ===== */
.userbox { position: relative; }
.user-btn { display: flex; align-items: center; gap: 8px; background: transparent; border: 1px solid var(--border); border-radius: 999px; padding: 5px 12px 5px 6px; cursor: pointer; font: inherit; color: var(--text); }
.user-btn:hover { background: var(--surface-2); }
.avatar-sm { width: 30px; height: 30px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 13px; flex: none; }
.user-menu { position: absolute; right: 0; top: calc(100% + 8px); width: 250px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); padding: 8px; display: none; z-index: 200; }
.user-menu.show { display: block; animation: modalIn .15s ease; }
.user-menu .um-head { padding: 10px 12px 12px; border-bottom: 1px solid var(--border); margin-bottom: 6px; }
.user-menu .um-name { font-weight: 700; font-size: 15px; }
.user-menu .um-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 10px; border: 0; background: transparent; cursor: pointer; font: inherit; font-size: 14px; color: var(--text); text-align: left; }
.user-menu .um-item:hover { background: var(--surface-2); }
.user-menu .um-item.danger { color: #b91c1c; }
.user-menu .um-item.danger:hover { background: #fef2f2; }
