/* ==========================================================================
   AURORA Â· Premium Control Panel Design System
   Dark-first Â· Glassmorphic Â· Animated icons
   ========================================================================== */

/* ----------------------------- Theme tokens ----------------------------- */
:root, [data-theme="dark"] {
  --bg: #06090f;
  --bg-2: #0a0f1c;
  --surface-1: #0e1424;
  --surface-2: #131b30;
  --card: rgba(255,255,255,0.035);
  --card-solid: #0e1424;
  --input-bg: rgba(255,255,255,0.04);
  --input-bg-focus: rgba(255,255,255,0.06);
  --sidebar-bg: linear-gradient(180deg,rgba(11,16,30,.94),rgba(7,11,22,.97));
  --topbar-bg: rgba(7,10,17,.72);
  --dropdown-bg: rgba(15,20,36,.92);

  /* aliases referenced by inline styles inside views */
  --bg-card: var(--card-solid);
  --bg-surface: var(--surface-2);

  --border: rgba(255,255,255,.085);
  --border-strong: rgba(255,255,255,.16);

  --text: #e7eaf3;
  --text-dim: #8d99b0;
  --text-heading: #ffffff;

  --accent: #818cf8;
  --accent-strong: #6366f1;
  --accent-2: #22d3ee;
  --accent-glow: rgba(129,140,248,.32);

  --success: #34d399;
  --success-bg: rgba(16,185,129,.13);
  --warning: #fbbf24;
  --warning-bg: rgba(245,158,11,.13);
  --danger: #f87171;
  --danger-bg: rgba(239,68,68,.13);
  --info: #60a5fa;
  --info-bg: rgba(59,130,246,.13);

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(0,0,0,.25), 0 8px 24px rgba(0,0,0,.14);
  --shadow-lg: 0 4px 12px rgba(0,0,0,.22), 0 24px 60px rgba(0,0,0,.32);
  --sidebar-w: 268px;
  --date-icon-filter: invert(.75) sepia(.9) saturate(2) hue-rotate(200deg);
}

[data-theme="light"] {
  --bg: #f3f5fb;
  --bg-2: #eef1f9;
  --surface-1: #ffffff;
  --surface-2: #f6f8fd;
  --card: #ffffff;
  --card-solid: #ffffff;
  --input-bg: #f6f8fd;
  --input-bg-focus: #ffffff;
  --sidebar-bg: linear-gradient(180deg,rgba(255,255,255,.98),rgba(246,248,253,.98));
  --topbar-bg: rgba(255,255,255,.78);
  --dropdown-bg: rgba(255,255,255,.95);

  --bg-card: #ffffff;
  --bg-surface: #f1f5f9;

  --border: rgba(15,23,42,.09);
  --border-strong: rgba(15,23,42,.18);

  --text: #1e293b;
  --text-dim: #64748b;
  --text-heading: #0f172a;

  --accent: #6366f1;
  --accent-strong: #4f46e5;
  --accent-2: #0891b2;
  --accent-glow: rgba(99,102,241,.18);

  --success: #059669;
  --success-bg: rgba(5,150,105,.1);
  --warning: #d97706;
  --warning-bg: rgba(217,119,6,.1);
  --danger: #dc2626;
  --danger-bg: rgba(220,38,38,.1);
  --info: #2563eb;
  --info-bg: rgba(37,99,235,.1);

  --shadow: 0 1px 2px rgba(15,23,42,.05), 0 8px 22px rgba(15,23,42,.06);
  --shadow-lg: 0 6px 16px rgba(15,23,42,.08), 0 26px 60px rgba(15,23,42,.12);
  --date-icon-filter: invert(.4) sepia(.3) saturate(.6);
}

/* ------------------------------- Base -------------------------------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: "Inter","Segoe UI",system-ui,-apple-system,sans-serif;
  color: var(--text); line-height: 1.55;
  background: var(--bg);
  background-image:
    radial-gradient(1200px 600px at 85% -10%, rgba(99,102,241,.14), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(34,211,238,.10), transparent 60%);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  transition: background .35s ease, color .35s ease;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
code {
  font-family: "Cascadia Code","Consolas",monospace;
  font-size: .92em; background: var(--input-bg);
  border: 1px solid var(--border); padding: 1px 6px;
  border-radius: 6px; color: var(--accent);
}
kbd {
  font-family: inherit; font-size: 10px; color: var(--text-dim);
  border: 1px solid var(--border); border-radius: 5px;
  padding: 2px 6px; background: var(--input-bg);
}
.mono { font-family: "Cascadia Code","Consolas",monospace; }
.act { display: inline-flex; align-items: center; gap: 8px; }

/* ----------------------------- Scrollbars ----------------------------- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(129,140,248,.5), rgba(34,211,238,.4));
  border-radius: 99px; border: 2px solid transparent; background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(129,140,248,.75), rgba(34,211,238,.6));
  background-clip: padding-box;
}

/* ------------------------- Ambient background ------------------------- */
.bg-fx { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.grid-fx {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(148,163,184,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148,163,184,.06) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 75%);
          mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 75%);
}
.blob { position: fixed; border-radius: 50%; filter: blur(120px); z-index: -1; pointer-events: none; }
.blob.a {
  width: 560px; height: 560px;
  background: radial-gradient(circle at 35% 35%, rgba(99,102,241,.55), transparent 70%);
  top: -180px; right: -120px; animation: blobDrift 26s ease-in-out infinite;
}
.blob.b {
  width: 480px; height: 480px;
  background: radial-gradient(circle at 60% 40%, rgba(34,211,238,.40), transparent 70%);
  bottom: -160px; left: -140px; animation: blobDrift 32s ease-in-out infinite reverse;
}
.blob.c {
  width: 420px; height: 420px;
  background: radial-gradient(circle at 50% 50%, rgba(217,70,239,.32), transparent 70%);
  top: 45%; left: 55%; animation: blobDrift 38s ease-in-out infinite;
}
[data-theme="light"] .blob { opacity: .35; }
[data-theme="light"] .blob.a { background: radial-gradient(circle at 35% 35%, rgba(99,102,241,.5), transparent 70%); }
[data-theme="light"] .blob.b { background: radial-gradient(circle at 60% 40%, rgba(8,145,178,.4), transparent 70%); }
[data-theme="light"] .blob.c { background: radial-gradient(circle at 50% 50%, rgba(217,70,239,.3), transparent 70%); }

/* ------------------------------- Buttons ------------------------------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 11px 20px; border: none; border-radius: 12px;
  font-size: 13.5px; font-weight: 600; font-family: inherit; cursor: pointer;
  transition: all .22s cubic-bezier(.4,0,.2,1); white-space: nowrap;
  overflow: hidden; isolation: isolate; color: var(--text);
}
.btn i { font-size: 13px; transition: transform .25s ease; position: relative; z-index: 1; }
.btn:hover i { transform: translateX(2px) scale(1.06); }
.btn:active { transform: scale(.96); }
.btn::after {
  content: ''; position: absolute; top: 0; left: -160%; width: 55%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,.4), transparent);
  transform: skewX(-20deg); transition: left .55s ease; z-index: 0; pointer-events: none;
}
.btn:hover::after { left: 160%; }
.btn > span, .btn > i { position: relative; z-index: 1; }
.btn-sm { padding: 8px 14px; font-size: 12px; border-radius: 10px; }
.btn-sm i { font-size: 11px; }
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-strong)); color: #fff; box-shadow: 0 8px 22px var(--accent-glow); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 30px var(--accent-glow); }
.btn-ghost { background: var(--input-bg); color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--input-bg-focus); border-color: var(--border-strong); color: var(--text-heading); }
.btn-success { background: linear-gradient(135deg,#34d399,#059669); color: #fff; box-shadow: 0 8px 22px rgba(16,185,129,.3); }
.btn-success:hover { transform: translateY(-1px); box-shadow: 0 12px 30px rgba(16,185,129,.35); }
.btn-warning { background: linear-gradient(135deg,#fbbf24,#d97706); color: #fff; box-shadow: 0 8px 22px rgba(245,158,11,.3); }
.btn-warning:hover { transform: translateY(-1px); box-shadow: 0 12px 30px rgba(245,158,11,.35); }
.btn-danger { background: linear-gradient(135deg,#f87171,#dc2626); color: #fff; box-shadow: 0 8px 22px rgba(239,68,68,.3); }
.btn-danger:hover { transform: translateY(-1px); box-shadow: 0 12px 30px rgba(239,68,68,.35); }

/* -------------------------------- Forms -------------------------------- */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 12.5px; font-weight: 600; color: var(--text-dim); margin-bottom: 7px; letter-spacing: .01em; }
.input, .select {
  width: 100%; padding: 11px 15px; background: var(--input-bg);
  border: 1px solid var(--border); border-radius: 12px; color: var(--text);
  font-size: 14px; font-family: inherit; outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.input::placeholder { color: var(--text-dim); opacity: .65; }
.input:focus, .select:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-glow); background: var(--input-bg-focus); }
.select {
  -webkit-appearance: none; appearance: none; cursor: pointer; padding-right: 38px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--text-dim) 50%),
    linear-gradient(135deg, var(--text-dim) 50%, transparent 50%);
  background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%;
  background-size: 5px 5px; background-repeat: no-repeat;
}
.select option { background: var(--card-solid); color: var(--text); }
.input[type="date"]::-webkit-calendar-picker-indicator { filter: var(--date-icon-filter); cursor: pointer; }
.input[type="color"] { padding: 5px; height: 46px; cursor: pointer; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 16px; }

/* ------------------------------- Badges -------------------------------- */
.pill {
  display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px;
  border-radius: 999px; font-size: 11.5px; font-weight: 700;
  letter-spacing: .02em; border: 1px solid transparent; line-height: 1;
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; position: relative; flex-shrink: 0; }
.pill .dot::after {
  content: ''; position: absolute; inset: -4px; border-radius: 50%;
  background: currentColor; opacity: .4; animation: pingSoft 1.9s ease-out infinite;
}
.pill.online { background: var(--success-bg); color: var(--success); }
.pill.warn    { background: var(--warning-bg); color: var(--warning); }
.pill.offline { background: rgba(148,163,184,.12); color: var(--text-dim); }

/* -------------------------------- Cards -------------------------------- */
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 22px; position: relative;
  transition: box-shadow .3s ease, border-color .3s ease, transform .3s ease;
}
.card:hover { box-shadow: var(--shadow-lg); border-color: var(--border-strong); }
.card-header {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  margin: -22px -22px 18px; padding: 18px 22px;
  border-bottom: 1px solid var(--border); border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(180deg, rgba(255,255,255,.03), transparent);
}
.card-title { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 700; color: var(--text-heading); }
.card-title i { color: var(--accent); font-size: 14px; filter: drop-shadow(0 0 6px var(--accent-glow)); }
.card-sub { color: var(--text-dim); font-size: 12.5px; margin: -10px 0 16px; }

/* -------------------------------- Grids -------------------------------- */
.grid { display: grid; gap: 20px; }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }

/* -------------------------------- Stats -------------------------------- */
.stat {
  display: flex; align-items: center; gap: 16px; padding: 20px 22px;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); position: relative; overflow: hidden;
  transition: box-shadow .3s ease, border-color .3s ease, transform .3s ease;
}
.stat::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  opacity: 0; transition: opacity .3s ease;
}
.stat:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--border-strong); }
.stat:hover::before { opacity: 1; }
.stat-icon {
  width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center;
  font-size: 20px; color: #fff; flex-shrink: 0; position: relative; overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,.2);
}
.stat-icon::after {
  content: ''; position: absolute; top: -40%; left: -40%; width: 80%; height: 80%;
  background: linear-gradient(135deg, rgba(255,255,255,.4), transparent 60%);
  transform: rotate(20deg);
}
.stat-icon i { animation: iconFloat 3.4s ease-in-out infinite; position: relative; z-index: 1; }
.stat-icon.c-indigo { background: linear-gradient(135deg,#818cf8,#6366f1); box-shadow: 0 8px 22px rgba(99,102,241,.4); }
.stat-icon.c-green  { background: linear-gradient(135deg,#34d399,#059669); box-shadow: 0 8px 22px rgba(16,185,129,.35); }
.stat-icon.c-pink   { background: linear-gradient(135deg,#f472b6,#db2777); box-shadow: 0 8px 22px rgba(219,39,119,.35); }
.stat-icon.c-cyan   { background: linear-gradient(135deg,#22d3ee,#0ea5e9); box-shadow: 0 8px 22px rgba(14,165,233,.35); }
.stat-label { font-size: 12px; font-weight: 700; color: var(--text-dim); text-transform: uppercase; letter-spacing: .06em; }
.stat-value { font-size: 30px; font-weight: 800; color: var(--text-heading); line-height: 1.1; margin-top: 3px; letter-spacing: -.02em; }
.stat-mini  { font-size: 12px; color: var(--text-dim); margin-top: 8px; }
.stat-mini .up { color: var(--success); font-weight: 600; }
.stat-mini .up i { font-size: 11px; margin-right: 2px; }
.stat-sub { font-size: 12.5px; color: var(--text-dim); margin-top: 6px; }

/* progress bars */
.bar { height: 6px; border-radius: 99px; background: rgba(148,163,184,.16); overflow: hidden; margin-top: 10px; }
.bar span {
  display: block; height: 100%; border-radius: 99px;
  background: linear-gradient(90deg, var(--bar-c1), var(--bar-c2));
  animation: barGrow 1.1s cubic-bezier(.22,1,.36,1) both; transform-origin: left;
  box-shadow: 0 0 10px color-mix(in srgb, var(--bar-c2) 60%, transparent);
}
.g-indigo { --bar-c1: #818cf8; --bar-c2: #6366f1; }
.g-green  { --bar-c1: #34d399; --bar-c2: #10b981; }
.g-pink   { --bar-c1: #f472b6; --bar-c2: #db2777; }
.g-cyan   { --bar-c1: #22d3ee; --bar-c2: #0ea5e9; }

/* -------------------------------- Tables -------------------------------- */
.table-wrap { overflow-x: auto; overflow-y: hidden; border: 1px solid var(--border); border-radius: 14px; background: var(--input-bg); }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
thead th {
  padding: 13px 16px; text-align: left; font-size: 11px; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase; color: var(--text-dim);
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,.04), transparent);
  white-space: nowrap;
}
tbody td { padding: 13px 16px; border-bottom: 1px solid var(--border); color: var(--text); }
tbody tr:last-child td { border-bottom: none; }
tbody tr { transition: background .15s ease; }
tbody tr:hover { background: var(--accent-glow); }

/* -------------------------------- Layout -------------------------------- */
.layout { display: flex; min-height: 100vh; position: relative; }
.main { margin-left: var(--sidebar-w); flex: 1; display: flex; flex-direction: column; min-width: 0; }
.content { padding: 26px; flex: 1; width: 100%; max-width: 1500px; margin: 0 auto; }

/* Section rhythm â€” consistent 22px gap between top-level content blocks */
.content > * + * { margin-top: 22px; }

/* ------------------------------- Sidebar ------------------------------- */
.sidebar {
  width: var(--sidebar-w); flex-shrink: 0; position: fixed; top: 0; bottom: 0; left: 0;
  z-index: 60; display: flex; flex-direction: column;
  background: var(--sidebar-bg); backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border-right: 1px solid var(--border);
  overflow-y: auto; overflow-x: hidden;
  transition: transform .32s cubic-bezier(.4,0,.2,1), width .32s cubic-bezier(.4,0,.2,1);
}
.sidebar::-webkit-scrollbar { width: 6px; }
.brand {
  display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
  padding: 22px 20px 18px; position: relative;
}
.brand-has-logo { align-items: center; }
.brand-icon-wrap {
  display: flex; align-items: center; justify-content: center; gap: 13px;
  max-width: 100%; min-width: 0;
}
.brand::after {
  content: ''; position: absolute; left: 20px; right: 20px; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
}
.brand-icon {
  position: relative; width: 44px; height: 44px; border-radius: 14px; flex-shrink: 0;
  display: grid; place-items: center; color: #fff; font-size: 19px;
  background: linear-gradient(135deg, #818cf8, #6366f1 45%, #22d3ee);
  background-size: 200% 200%; animation: gradShift 6s ease infinite;
  box-shadow: 0 10px 24px var(--accent-glow);
}
.brand-icon i { position: relative; z-index: 1; animation: iconFloat 4s ease-in-out infinite; }
.brand-icon::after {
  content: ''; position: absolute; inset: 0; border-radius: 14px;
  border: 1px solid rgba(255,255,255,.4); animation: ringPulse 3.2s ease-out infinite;
}
.brand-name {
  font-size: 16px; font-weight: 800; letter-spacing: -.01em; line-height: 1.15; color: var(--text-heading);
}
.brand-tag { display: flex; align-items: center; gap: 6px; font-size: 10.5px; color: var(--text-dim); font-weight: 600; margin-top: 2px; }
.tag-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--success);
  box-shadow: 0 0 8px var(--success); animation: pingSoft 2.2s ease-out infinite;
}

/* nav */
.nav { flex: 1; padding: 10px 14px 14px; }
.nav-label {
  display: flex; align-items: center; gap: 7px; font-size: 10px;
  text-transform: uppercase; letter-spacing: .13em; color: var(--text-dim);
  padding: 18px 10px 8px; opacity: .75; font-weight: 800;
}
.nav-label i { font-size: 9px; opacity: .85; }
.nav-link {
  position: relative; display: flex; align-items: center; gap: 12px;
  padding: 10.5px 12px; margin: 2px 0; border-radius: 12px;
  color: var(--text-dim); font-size: 13.5px; font-weight: 600;
  border: 1px solid transparent; overflow: hidden;
  transition: all .2s ease;
}
.nav-link i {
  width: 20px; text-align: center; font-size: 14.5px; flex-shrink: 0;
  transition: transform .25s ease, color .2s ease, filter .2s ease;
}
.nav-link .nav-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-link:hover { color: var(--text); background: rgba(255,255,255,.05); transform: translateX(3px); }
.nav-link:hover i { transform: scale(1.18) translateX(1px); }
.nav-link.active {
  color: var(--text-heading);
  background: linear-gradient(90deg, rgba(99,102,241,.24), rgba(34,211,238,.10));
  border-color: rgba(129,140,248,.28);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 6px 18px rgba(99,102,241,.12);
}
.nav-link.active i { color: #a5b4fc; filter: drop-shadow(0 0 7px rgba(129,140,248,.9)); animation: iconPulse 2.6s ease-in-out infinite; }
.nav-link.active::before {
  content: ''; position: absolute; left: -1px; top: 50%; transform: translateY(-50%);
  width: 4px; height: 62%; border-radius: 0 4px 4px 0;
  background: linear-gradient(180deg, #818cf8, #22d3ee);
  box-shadow: 0 0 14px var(--accent-glow);
}
.badge-dot {
  margin-left: auto; width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
  background: var(--danger); box-shadow: 0 0 10px var(--danger); animation: pingSoft 1.8s ease-out infinite;
}

/* sidebar footer status card */
.sidebar-footer { padding: 14px; border-top: 1px solid var(--border); }
.sf-card {
  display: flex; align-items: center; gap: 11px; padding: 12px 14px;
  border-radius: 14px; background: var(--input-bg); border: 1px solid var(--border);
  transition: all .2s ease;
}
.sf-card:hover { background: var(--input-bg-focus); border-color: var(--accent); transform: translateY(-1px); }
.sf-dot {
  width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0;
  background: var(--success); box-shadow: 0 0 10px var(--success); animation: pingSoft 2s ease-out infinite;
}
.sf-title { font-size: 12px; font-weight: 700; color: var(--text-heading); }
.sf-sub { font-size: 10.5px; color: var(--text-dim); }
.sf-card .fa-chevron-right { margin-left: auto; font-size: 10px; color: var(--text-dim); }

/* mobile sidebar backdrop */
.sidebar-backdrop {
  display: none; position: fixed; inset: 0; z-index: 55; background: rgba(2,6,23,.6);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none; transition: opacity .3s ease;
}
.sidebar.open ~ .sidebar-backdrop { opacity: 1; pointer-events: auto; }

/* -------------------------------- Topbar -------------------------------- */
.topbar {
  position: sticky; top: 0; z-index: 50; display: flex; align-items: center;
  justify-content: space-between; gap: 18px; height: 70px; padding: 0 26px;
  background: var(--topbar-bg); backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}
.topbar-left { display: flex; align-items: center; gap: 14px; min-width: 0; }
.menu-toggle {
  display: none; width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0;
  border: 1px solid var(--border); background: var(--input-bg);
  color: var(--text); font-size: 17px; cursor: pointer;
  transition: all .2s ease;
}
.menu-toggle:hover { background: var(--input-bg-focus); border-color: var(--accent); color: var(--accent); }
.page-title { font-size: 18px; font-weight: 800; letter-spacing: -.01em; color: var(--text-heading); }
.page-crumb { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--text-dim); margin-top: 3px; }
.page-crumb i { font-size: 10px; color: var(--accent); }
.topbar-right { display: flex; align-items: center; gap: 12px; }

/* search */
.search-box {
  display: flex; align-items: center; gap: 9px; width: 260px;
  padding: 9px 14px; border-radius: 12px;
  background: var(--input-bg); border: 1px solid var(--border);
  transition: all .25s cubic-bezier(.4,0,.2,1);
}
.search-box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-glow); width: 320px; background: var(--input-bg-focus); }
.search-box i { color: var(--text-dim); font-size: 13px; flex-shrink: 0; }
.search-box input { flex: 1; min-width: 0; background: none; border: none; outline: none; color: var(--text); font-size: 13px; font-family: inherit; }
.search-box input::placeholder { color: var(--text-dim); opacity: .65; }
.search-box kbd { flex-shrink: 0; }

/* notification bell */
.notif-btn {
  position: relative; width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0;
  display: grid; place-items: center; font-size: 16px; color: var(--text-dim);
  border: 1px solid var(--border); background: var(--input-bg); cursor: pointer;
  transition: all .2s ease;
}
.notif-btn:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 8px 20px var(--accent-glow); }
.notif-btn:hover i { animation: bellWiggle .65s ease; }
.notif-ping {
  position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 4px;
  background: linear-gradient(135deg, #f87171, #ef4444); color: #fff; font-size: 10px;
  font-weight: 800; border-radius: 99px; display: grid; place-items: center;
  border: 2px solid var(--bg); box-shadow: 0 4px 12px rgba(239,68,68,.45);
}

/* user dropdown */
.usr-dd { position: relative; }
.usr-trigger {
  display: flex; align-items: center; gap: 10px; cursor: pointer;
  padding: 6px 10px; border-radius: 13px; border: 1px solid transparent;
  transition: all .2s ease;
}
.usr-trigger:hover { background: var(--input-bg); }
.usr-trigger.open { background: var(--input-bg); border-color: var(--border-strong); }
.avatar {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, #818cf8, #22d3ee); background-size: 180% 180%;
  color: #fff; font-weight: 800; font-size: 14px; position: relative; flex-shrink: 0;
  box-shadow: 0 6px 16px var(--accent-glow);
  animation: gradShift 6s ease infinite;
}
.avatar::after {
  content: ''; position: absolute; bottom: 1px; right: 1px; width: 10px; height: 10px;
  border-radius: 50%; background: var(--success); border: 2px solid var(--bg);
}
.usr-name { font-weight: 700; font-size: 13.5px; color: var(--text-heading); line-height: 1.2; }
.usr-role { font-size: 11px; color: var(--text-dim); }
.usr-trigger .chevron { font-size: 10px; color: var(--text-dim); transition: transform .3s ease; }
.usr-trigger.open .chevron { transform: rotate(180deg); }

.usr-panel {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 120; min-width: 236px;
  background: var(--dropdown-bg); backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border); border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0,0,0,.4); padding: 8px;
  animation: dropIn .22s cubic-bezier(.22,1,.36,1) both; display: none;
}
.usr-panel.show { display: block; }
.usr-item {
  display: flex; align-items: center; gap: 11px; width: 100%; padding: 11px 12px;
  border-radius: 10px; font-size: 13px; font-weight: 600; color: var(--text);
  background: none; border: none; cursor: pointer; transition: background .12s ease; text-align: left;
}
.usr-item:hover { background: var(--accent-glow); }
.usr-item i { width: 18px; text-align: center; font-size: 14px; color: var(--accent); }
.usr-item.logout:hover { background: var(--danger-bg); }
.usr-item.logout i { color: var(--danger); }
.usr-divider { height: 1px; background: var(--border); margin: 6px 8px; }
.usr-theme-row { display: flex; gap: 6px; padding: 8px 10px; }
.theme-btn {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 10px; border-radius: 9px; border: 1px solid var(--border);
  background: transparent; color: var(--text-dim); font-size: 12px; font-weight: 600;
  cursor: pointer; transition: all .18s ease; font-family: inherit;
}
.theme-btn:hover { background: var(--input-bg); color: var(--text); }
/* topbar theme quick-toggle (sits between the menu search box and the
   profile tab). Single button that always offers the OTHER mode:
   dark theme -> sun icon (tap for light), light theme -> moon icon (tap
   for dark). Icon visibility is driven by html[data-theme], so the correct
   icon is shown before app.js even runs (no wrong-icon flash). */
.topbar-theme-btn {
  position: relative; width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0;
  display: grid; place-items: center; font-size: 15px; cursor: pointer;
  border: 1px solid var(--border); background: var(--input-bg);
  color: var(--text-dim); transition: all .2s ease;
}
.topbar-theme-btn:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 8px 20px var(--accent-glow); }
.topbar-theme-btn:hover i { animation: iconPulse 2s ease-in-out infinite; }
.topbar-theme-btn i { display: none; }
html[data-theme="dark"] .topbar-theme-btn [data-theme-icon="light"] { display: block; }
html[data-theme="light"] .topbar-theme-btn [data-theme-icon="dark"] { display: block; }

.theme-btn.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  border-color: transparent; color: #fff; box-shadow: 0 6px 16px var(--accent-glow);
}
.theme-btn.active i { animation: iconPulse 2s ease-in-out infinite; }

/* -------------------------------- Hero --------------------------------- */
.hero {
  position: relative; display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 30px 32px; border-radius: 22px; overflow: hidden;
  background: linear-gradient(120deg, rgba(99,102,241,.18), rgba(34,211,238,.10) 55%, rgba(99,102,241,.05));
  border: 1px solid rgba(129,140,248,.25);
  box-shadow: 0 18px 50px rgba(99,102,241,.16);
}
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(600px 200px at 82% -20%, rgba(129,140,248,.35), transparent);
}
.hero-text { position: relative; z-index: 1; min-width: 0; }
.hero-greeting { font-size: 24px; font-weight: 800; letter-spacing: -.02em; color: var(--text-heading); }
.hero-greeting strong {
  background: linear-gradient(90deg, #a5b4fc, #22d3ee);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub { font-size: 14px; color: var(--text-dim); margin-top: 6px; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.hero-art {
  position: relative; width: 176px; height: 176px; flex-shrink: 0;
  display: grid; place-items: center; color: rgba(129,140,248,.55); font-size: 84px;
  animation: floatY 6s ease-in-out infinite;
}
.hero-art i { position: relative; z-index: 1; filter: drop-shadow(0 10px 30px rgba(99,102,241,.5)); }
.hero-art::before {
  content: ''; position: absolute; width: 150px; height: 150px; border-radius: 50%;
  border: 1.5px dashed rgba(129,140,248,.35); animation: spinSlow 20s linear infinite;
}
.hero-art::after {
  content: ''; position: absolute; width: 108px; height: 108px; border-radius: 50%;
  background: radial-gradient(circle, rgba(129,140,248,.22), transparent 70%);
  animation: floatY 6s ease-in-out infinite reverse;
}

/* sm-heading (page titles on sub-pages) */
.sm-heading { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.sm-heading i {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, #818cf8, #22d3ee); background-size: 180% 180%;
  color: #fff; font-size: 18px; box-shadow: 0 10px 24px var(--accent-glow);
  animation: gradShift 6s ease infinite;
}
.sm-heading i { animation: gradShift 6s ease infinite, iconFloat 4s ease-in-out infinite; }
.sm-heading h1 { font-size: 22px; font-weight: 800; letter-spacing: -.01em; color: var(--text-heading); }

/* ------------------------------- Donut --------------------------------- */
.donut-wrap { display: flex; align-items: center; gap: 30px; padding: 6px 4px; flex-wrap: wrap; }
.donut {
  --pct: 0; width: 172px; height: 172px; border-radius: 50%; position: relative;
  background: conic-gradient(var(--accent-2) calc(var(--pct)*1%), rgba(148,163,184,.14) 0);
  display: grid; place-items: center; animation: donutIn 1s cubic-bezier(.22,1,.36,1) both;
  box-shadow: 0 12px 34px rgba(0,0,0,.18);
}
.donut::before {
  content: ''; position: absolute; inset: 14px; border-radius: 50%;
  background: var(--card-solid); box-shadow: inset 0 2px 14px rgba(0,0,0,.25);
}
.donut-inner { position: relative; text-align: center; }
.donut-num { font-size: 38px; font-weight: 800; color: var(--text-heading); letter-spacing: -.02em; line-height: 1; }
.donut-label { font-size: 11px; color: var(--text-dim); font-weight: 700; margin-top: 4px; text-transform: uppercase; letter-spacing: .08em; }
.legend { flex: 1; min-width: 200px; }
.legend-item { margin-bottom: 14px; }
.legend-top { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.legend-marker { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 7px; }
.legend-top .val { font-weight: 700; color: var(--text-heading); }

/* --------------------- Graphical view of servers ------------------------ */
.gv-body {
  display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(270px, 1fr);
  gap: 22px; align-items: stretch;
}
.gv-chart, .gv-side { min-width: 0; }
.gv-chart-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.gv-head-txt { min-width: 0; }
.gv-title { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--text-heading); }
.gv-title i { color: var(--accent); font-size: 13px; filter: drop-shadow(0 0 5px var(--accent-glow)); }
.chart-sub { font-size: 12px; color: var(--text-dim); margin-top: 2px; }
.gv-live {
  display: flex; align-items: center; gap: 7px; flex-shrink: 0;
  padding: 6px 12px; border-radius: 99px; border: 1px solid var(--success-bg);
  background: var(--success-bg);
  font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--success);
}
.live-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--success); }
.live-dot::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  background: var(--success); animation: pingDot 1.6s cubic-bezier(0,0,.2,1) infinite;
}
.ch-plot {
  position: relative; height: 258px; padding: 20px 16px 14px; overflow: hidden;
  border: 1px solid var(--border); border-radius: 16px;
  background:
    radial-gradient(120% 110% at 85% 0%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 55%),
    radial-gradient(120% 110% at 5% 100%, rgba(34,211,238,.07), transparent 55%),
    var(--input-bg);
}
.ch-grid {
  position: absolute; inset: 0; padding: 20px 16px 46px; pointer-events: none;
  display: flex; flex-direction: column; justify-content: space-between;
}
.ch-grid i { display: block; border-top: 1px dashed var(--border); }
.ch-cols {
  position: relative; height: 100%;
  display: flex; align-items: flex-end; gap: 12px;
}
.ch-col {
  position: relative; flex: 1; max-width: 74px; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
}
.ch-bar {
  width: 100%; max-width: 48px; position: relative; overflow: hidden;
  border-radius: 9px 9px 3px 3px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 72%, #fff), var(--c) 72%, color-mix(in srgb, var(--c) 55%, #000));
  box-shadow: 0 12px 26px color-mix(in srgb, var(--c) 28%, transparent);
  transform-origin: bottom;
  animation: chRise .9s cubic-bezier(.22,1,.36,1) forwards;
  animation-delay: var(--d);
  transition: filter .2s ease;
  cursor: pointer;
}
.ch-bar::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.7), transparent);
}
.ch-shine {
  position: absolute; top: 0; left: 0; height: 100%; width: 55%;
  background: linear-gradient(115deg, transparent, rgba(255,255,255,.28), transparent);
  transform: translateX(-150%) skewX(-14deg);
  animation: chShine 3.4s ease-in-out infinite;
  animation-delay: calc(var(--d) + .8s);
}
.ch-col:hover .ch-bar { filter: brightness(1.16) saturate(1.08); }
.ch-num {
  font-size: 12.5px; font-weight: 800; color: var(--text-heading); line-height: 1; margin-bottom: 7px;
  opacity: 0; transform: translateY(6px);
  animation: chPop .5s cubic-bezier(.22,1,.36,1) forwards;
  animation-delay: calc(var(--d) + .55s);
}
.ch-label {
  margin-top: 11px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  display: flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--text-dim);
}
.ch-label i { font-size: 9px; color: var(--accent); }
.ch-tip {
  position: absolute; top: -8px; left: 50%; z-index: 5;
  display: flex; align-items: center; gap: 6px;
  padding: 6px 11px; border-radius: 10px; white-space: nowrap;
  font-size: 12px; font-weight: 600; color: var(--text);
  background: var(--dropdown-bg); backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-strong); box-shadow: var(--shadow-lg);
  transform: translate(-50%, -6px) scale(.94); opacity: 0; pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}
.ch-tip b { font-weight: 800; color: var(--text-heading); margin-left: 2px; }
.ch-tip-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 8px var(--c); }
.ch-col:hover .ch-tip { opacity: 1; transform: translate(-50%, 0) scale(1); }

/* status breakdown panel */
.gv-side {
  display: flex; flex-direction: column; gap: 18px; padding: 20px;
  border: 1px solid var(--border); border-radius: 16px;
  background: radial-gradient(120% 120% at 100% 0%, rgba(244,114,182,.07), transparent 50%), var(--input-bg);
}
.sb-list { display: flex; flex-direction: column; gap: 18px; }
.sb-top { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; font-weight: 600; color: var(--text); margin-bottom: 7px; }
.sb-name { display: flex; align-items: center; gap: 8px; }
.sb-dot { width: 9px; height: 9px; border-radius: 3px; box-shadow: 0 0 8px currentColor; }
.sb-val { font-size: 14px; font-weight: 800; color: var(--text-heading); }
.sb-track { height: 9px; border-radius: 99px; background: rgba(148,163,184,.16); overflow: hidden; position: relative; }
.sb-fill {
  display: block; height: 100%; border-radius: 99px; width: var(--w);
  background: linear-gradient(90deg, var(--bar-c1), var(--bar-c2));
  box-shadow: 0 0 12px color-mix(in srgb, var(--bar-c2) 55%, transparent);
  position: relative; overflow: hidden;
  transform-origin: left; transform: scaleX(0);
  animation: sbFill 1s cubic-bezier(.22,1,.36,1) forwards;
  animation-delay: var(--d);
}
.sb-fill::after {
  content: ''; position: absolute; top: 0; left: 0; height: 100%; width: 60%;
  background: linear-gradient(115deg, transparent, rgba(255,255,255,.35), transparent);
  transform: translateX(-150%) skewX(-14deg);
  animation: chShine 3.4s ease-in-out infinite;
  animation-delay: calc(var(--d) + .6s);
}
.gv-health {
  margin-top: auto; display: flex; align-items: center; gap: 12px;
  padding: 14px; border-radius: 14px; border: 1px solid var(--border);
  background: linear-gradient(120deg, var(--success-bg), rgba(34,211,238,.06));
}
.health-ring {
  position: relative; width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center; color: var(--success); font-size: 17px;
  background: linear-gradient(135deg, rgba(52,211,153,.22), rgba(34,211,238,.16));
}
.health-ring::after {
  content: ''; position: absolute; inset: -5px; border-radius: 50%;
  border: 1.5px dashed color-mix(in srgb, var(--success) 45%, transparent);
  animation: spinSlow 14s linear infinite;
}
.health-title { font-size: 12.5px; font-weight: 800; color: var(--text-heading); }
.health-pct { font-size: 11.5px; color: var(--text-dim); margin-top: 1px; }
.gv-health .pill { margin-left: auto; }

/* ---------------------------- Quick actions ----------------------------- */
.qactions { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; padding: 4px 2px; }
.qaction {
  display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px 12px;
  border-radius: 14px; background: var(--input-bg); border: 1px solid var(--border);
  transition: all .22s ease; font-weight: 600; font-size: 12.5px; color: var(--text);
}
.qaction i { font-size: 22px; color: var(--accent); transition: transform .3s ease; }
.qaction:hover {
  transform: translateY(-4px); background: var(--accent-glow);
  border-color: rgba(129,140,248,.35); box-shadow: var(--shadow);
  color: var(--text-heading);
}
.qaction:hover i { transform: translateY(-3px) scale(1.15); animation: qBounce .6s ease; }

/* -------------------------------- Feed --------------------------------- */
.feed-item { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.feed-item:last-child { border-bottom: none; }
.feed-ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-size: 14px; flex-shrink: 0; }
.feed-ic i { animation: iconPulse 3s ease-in-out infinite; }
.i-info    { background: var(--info-bg); color: var(--info); }
.i-success { background: var(--success-bg); color: var(--success); }
.i-warning { background: var(--warning-bg); color: var(--warning); }
.i-danger  { background: var(--danger-bg); color: var(--danger); }

/* ------------------------- Alerts / banners ----------------------------- */
.alert {
  display: flex; align-items: center; gap: 10px; padding: 13px 16px;
  border-radius: 12px; font-size: 13px; font-weight: 500; margin-bottom: 16px; border: 1px solid;
}
.alert-success { background: var(--success-bg); border-color: var(--success-bg); color: var(--success); }
.alert-danger  { background: var(--danger-bg); border-color: var(--danger-bg); color: var(--danger); }
.alert-info    { background: var(--info-bg); border-color: var(--info-bg); color: var(--info); }
.err-banner {
  background: var(--danger-bg); border: 1px solid var(--danger-bg); color: var(--danger);
  padding: 12px 16px; border-radius: 12px; font-size: 13px; margin-bottom: 16px;
  animation: shakeX .4s ease;
}
.ok-banner {
  background: var(--success-bg); border: 1px solid var(--success-bg); color: var(--success);
  padding: 12px 16px; border-radius: 12px; font-size: 13px; margin-bottom: 16px;
}

/* -------------------------------- Toasts -------------------------------- */
.toast-wrap { position: fixed; top: 84px; right: 24px; z-index: 400; display: flex; flex-direction: column; gap: 10px; }
.toast {
  display: flex; align-items: center; gap: 10px; min-width: 280px; max-width: 420px;
  padding: 14px 18px; border-radius: 14px;
  background: var(--dropdown-bg); backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border); box-shadow: 0 18px 44px rgba(0,0,0,.35);
  font-size: 13.5px; font-weight: 600; color: var(--text);
  animation: toastIn .4s cubic-bezier(.22,1,.36,1) both;
}

/* ------------------------------ Empty state ----------------------------- */
.empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; padding: 48px 20px; text-align: center; color: var(--text-dim); font-size: 13.5px;
}
.empty i { font-size: 40px; color: var(--border-strong); animation: floatY 4s ease-in-out infinite; }
.empty > div { line-height: 1.5; }

/* -------------------------------- Modals -------------------------------- */
[id$="Modal"] { backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
#configModal > div, #updateModal > div, #credModal > div, #maskIdModal > div {
  background: var(--dropdown-bg) !important;
  border: 1px solid var(--border) !important;
  border-radius: 20px !important;
  box-shadow: 0 30px 80px rgba(0,0,0,.5) !important;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  animation: modalIn .28s cubic-bezier(.22,1,.36,1) both;
}
[id$="Modal"] input, [id$="Modal"] select { width: 100%; }

/* ------------------------------ Profile -------------------------------- */
.profile-hero {
  display: flex; align-items: center; gap: 26px; padding: 28px 32px; border-radius: 22px;
  background: linear-gradient(120deg, rgba(99,102,241,.16), rgba(34,211,238,.08));
  border: 1px solid rgba(129,140,248,.22); margin-bottom: 22px; box-shadow: var(--shadow);
  position: relative; overflow: hidden;
}
.profile-hero::after {
  content: ''; position: absolute; right: -40px; top: -40px; width: 220px; height: 220px;
  border-radius: 50%; background: radial-gradient(circle, rgba(129,140,248,.25), transparent 70%);
  pointer-events: none;
}
.profile-avatar {
  width: 84px; height: 84px; border-radius: 24px; display: grid; place-items: center;
  font-size: 34px; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, #818cf8, #22d3ee); background-size: 200% 200%;
  box-shadow: 0 14px 32px var(--accent-glow); animation: gradShift 6s ease infinite;
  position: relative;
}
.profile-avatar::after {
  content: ''; position: absolute; inset: 0; border-radius: 24px;
  border: 1px solid rgba(255,255,255,.35); animation: ringPulse 3.2s ease-out infinite;
}
.profile-name { font-size: 22px; font-weight: 800; color: var(--text-heading); }
.profile-role { margin: 5px 0; }
.profile-email { font-size: 13.5px; color: var(--text-dim); }
.profile-meta { display: flex; gap: 30px; margin-top: 16px; flex-wrap: wrap; }
.profile-stat .num { font-size: 16px; font-weight: 800; color: var(--text-heading); }
.profile-stat .lbl { font-size: 11.5px; color: var(--text-dim); margin-top: 2px; }
.profile-stat-icon { font-size: 13px; color: var(--accent); margin-right: 4px; }
.profile-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 22px; margin-bottom: 22px;
}
.profile-card-hd {
  display: flex; align-items: center; gap: 11px; margin-bottom: 18px; padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.profile-card-hd i { color: var(--accent); font-size: 15px; filter: drop-shadow(0 0 6px var(--accent-glow)); }
.profile-card-title { font-size: 15px; font-weight: 700; color: var(--text-heading); }

/* ---------------------- Server management components --------------------- */
.sm-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 22px; margin-bottom: 22px;
}
.sm-card-hd { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.sm-card-ic {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  font-size: 15px; color: #fff; background: linear-gradient(135deg, #818cf8, #22d3ee);
  box-shadow: 0 8px 18px var(--accent-glow);
}
.sm-card-title { font-size: 14px; font-weight: 700; display: block; color: var(--text-heading); }
.sm-card-sub { font-size: 12px; color: var(--text-dim); }
.sm-btns { display: flex; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.server-mgmt-btn[disabled] { opacity: .4; cursor: not-allowed; pointer-events: none; filter: grayscale(.6); }
.status-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 99px; font-size: 11.5px; font-weight: 700; }
.status-inactive { background: var(--danger-bg); color: var(--danger); }
.nic-value {
  font-family: "Cascadia Code","Consolas",monospace; font-weight: 600;
  padding: 5px 11px; border-radius: 8px; font-size: 13px;
  background: var(--input-bg); border: 1px solid var(--border);
}
.nic-value-blue { background: var(--accent-glow); color: var(--accent); border-color: rgba(129,140,248,.3); }

/* ------------------------- Searchable dropdown --------------------------- */
.sd-dropdown { position: relative; display: inline-block; width: 100%; }
.sd-trigger {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 11px 14px;
  background: var(--input-bg); border: 1px solid var(--border); border-radius: 12px;
  color: var(--text); font-size: 14px; cursor: pointer; user-select: none;
  transition: border .2s, box-shadow .2s;
}
.sd-trigger:hover { border-color: var(--accent); }
.sd-trigger.open { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-glow); }
.sd-trigger i.fa-server { color: var(--accent); font-size: 14px; }
.sd-trigger i.chevron { margin-left: auto; font-size: 11px; transition: transform .3s ease; color: var(--text-dim); }
.sd-trigger.open i.chevron { transform: rotate(180deg); }
.sd-trigger .placeholder { color: var(--text-dim); opacity: .65; }
.sd-panel {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 99;
  background: var(--dropdown-bg); backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border); border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0,0,0,.4); overflow: hidden;
  animation: dropIn .18s ease both; display: none;
}
.sd-panel.show { display: block; }
.sd-search {
  display: flex; align-items: center; gap: 9px; padding: 11px 14px;
  border-bottom: 1px solid var(--border);
}
.sd-search i { color: var(--text-dim); font-size: 12px; }
.sd-search input { flex: 1; background: none; border: none; outline: none; color: var(--text); font-size: 13px; font-family: inherit; }
.sd-search input::placeholder { color: var(--text-dim); opacity: .65; }
.sd-list { max-height: 220px; overflow-y: auto; }
.sd-option {
  display: flex; align-items: center; gap: 10px; padding: 11px 14px; cursor: pointer;
  transition: background .12s ease; font-size: 13px; font-weight: 600; color: var(--text);
}
.sd-option:hover { background: var(--accent-glow); }
.sd-option.active { background: var(--accent-glow); color: var(--accent); }
.sd-option i { color: var(--accent); font-size: 12px; width: 14px; text-align: center; }
.sd-option .opt-id { font-family: "Cascadia Code","Consolas",monospace; font-size: 13px; }
.sd-option.hidden { display: none; }
.sd-option.disabled { opacity: .5; cursor: not-allowed; }
.sd-option.disabled:hover { background: transparent; }
.sd-option.disabled i { color: var(--text-dim); }
.sd-taken {
  margin-left: auto; font-size: 9.5px; text-transform: uppercase; letter-spacing: .05em; font-weight: 800;
  color: var(--text-dim); background: var(--input-bg); border: 1px solid var(--border);
  padding: 2px 7px; border-radius: 99px; display: none;
}
.sd-option.disabled .sd-taken { display: inline-block; }
.sd-empty { padding: 14px; text-align: center; color: var(--text-dim); font-size: 12.5px; }

/* iOS toggle */
.ios-toggle { position: relative; display: inline-block; width: 46px; height: 26px; flex-shrink: 0; cursor: pointer; }
.ios-toggle input { opacity: 0; width: 0; height: 0; }
.ios-toggle-slider {
  position: absolute; inset: 0; border-radius: 26px;
  background: rgba(148,163,184,.25); border: 1px solid var(--border);
  transition: background .25s ease, box-shadow .25s;
}
.ios-toggle-slider::before {
  content: ''; position: absolute; width: 20px; height: 20px; left: 2px; bottom: 2px;
  border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.3);
  transition: transform .25s cubic-bezier(.22,1,.36,1);
}
.ios-toggle input:checked + .ios-toggle-slider {
  background: linear-gradient(135deg, #818cf8, #22d3ee); box-shadow: 0 4px 14px var(--accent-glow);
}
.ios-toggle input:checked + .ios-toggle-slider::before { transform: translateX(20px); }

/* -------------------------------- Auth ---------------------------------- */
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; position: relative; z-index: 1; }
.auth-card {
  position: relative; width: 100%; max-width: 420px; overflow: hidden;
  background: var(--dropdown-bg); backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border); border-radius: 24px;
  box-shadow: 0 30px 80px rgba(0,0,0,.4); padding: 40px 36px;
  animation: authIn .5s cubic-bezier(.22,1,.36,1) both;
}
.auth-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, #6366f1, #22d3ee, #6366f1); background-size: 200% 100%;
  animation: gradShift 6s ease infinite;
}
.auth-logo {
  position: relative; width: 58px; height: 58px; border-radius: 17px;
  display: grid; place-items: center; margin: 0 auto 16px; color: #fff; font-size: 25px;
  background: linear-gradient(135deg, #818cf8, #6366f1 45%, #22d3ee); background-size: 200% 200%;
  animation: gradShift 6s ease infinite; box-shadow: 0 12px 30px var(--accent-glow);
}
.auth-logo i { animation: iconPulse 3s ease-in-out infinite; }
.auth-title { text-align: center; font-size: 22px; font-weight: 800; letter-spacing: -.01em; margin: 0 0 6px; color: var(--text-heading); }
.auth-sub { text-align: center; color: var(--text-dim); font-size: 13.5px; margin: 0 0 26px; }
.auth-links { display: flex; justify-content: center; gap: 22px; margin-top: 18px; font-size: 13px; color: var(--text-dim); }
.auth-links a { color: var(--accent); font-weight: 600; transition: color .15s; }
.auth-links a:hover { color: var(--accent-2); text-decoration: underline; }
.auth-btn-row { display: flex; justify-content: center; margin-top: 2px; }
.auth-footer {
  margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border);
  font-size: 12px; color: var(--text-dim); text-align: center;
}

/* ------------------------------ Pagination ------------------------------- */
.pagination {
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: flex-end;
  margin-top: 16px; list-style: none;
}
.pagination .page-item { display: inline-flex; }
.pagination .page-link {
  display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px;
  padding: 0 12px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--input-bg); color: var(--text); font-size: 12.5px; font-weight: 600;
  transition: all .18s ease;
}
.pagination .page-link:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
.pagination .active .page-link { background: linear-gradient(135deg, var(--accent), var(--accent-strong)); border-color: transparent; color: #fff; box-shadow: 0 6px 16px var(--accent-glow); }
.pagination .disabled .page-link { opacity: .4; pointer-events: none; }

/* ----------------------------- Keyframes -------------------------------- */
@keyframes blobDrift { 0%,100% { transform: translate(0,0) scale(1); } 33% { transform: translate(50px,-30px) scale(1.08); } 66% { transform: translate(-40px,25px) scale(.95); } }
@keyframes gradShift { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes iconFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes iconPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.14); } }
@keyframes spinSlow { to { transform: rotate(360deg); } }
@keyframes ringPulse { 0% { transform: scale(1); opacity: .8; } 70%,100% { transform: scale(1.5); opacity: 0; } }
@keyframes pingSoft { 0% { transform: scale(1); opacity: .5; } 100% { transform: scale(2.6); opacity: 0; } }
@keyframes barGrow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes toastIn { from { opacity: 0; transform: translateX(46px); } to { opacity: 1; transform: translateX(0); } }
@keyframes dropIn { from { opacity: 0; transform: translateY(-8px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes modalIn { from { opacity: 0; transform: translateY(20px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes authIn { from { opacity: 0; transform: translateY(26px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes donutIn { from { opacity: 0; transform: rotate(-90deg) scale(.8); } to { opacity: 1; transform: rotate(0) scale(1); } }
@keyframes bellWiggle { 0%,100% { transform: rotate(0); } 25% { transform: rotate(-15deg); } 50% { transform: rotate(10deg); } 75% { transform: rotate(-6deg); } }
@keyframes qBounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes shakeX { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes chRise { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes chPop { to { opacity: 1; transform: translateY(0); } }
@keyframes chShine { 0% { transform: translateX(-150%) skewX(-14deg); } 55%, 100% { transform: translateX(340%) skewX(-14deg); } }
@keyframes sbFill { to { transform: scaleX(1); } }
@keyframes pingDot { 0% { transform: scale(1); opacity: .7; } 70%, 100% { transform: scale(2.4); opacity: 0; } }

/* ----------------------- Animated icon utilities ------------------------ */
.anim-float     { animation: iconFloat 4s ease-in-out infinite; }
.anim-spin-slow { animation: spinSlow 14s linear infinite; }
.anim-pulse     { animation: iconPulse 2.4s ease-in-out infinite; }
.anim-bounce    { animation: qBounce 1.2s ease-in-out infinite; }
.anim-grad      { background-size: 200% 200%; animation: gradShift 6s ease infinite; }

/* ----------------------- Light theme overrides -------------------------- */
[data-theme="light"] .card-header { background: linear-gradient(180deg, rgba(15,23,42,.02), transparent); }
[data-theme="light"] thead th { background: linear-gradient(180deg, rgba(15,23,42,.02), transparent); }
[data-theme="light"] tbody tr:hover { background: rgba(99,102,241,.05); }
[data-theme="light"] .nav-link:hover { background: #f1f5f9; }
[data-theme="light"] .nav-link.active {
  color: #4f46e5;
  background: linear-gradient(90deg, rgba(99,102,241,.13), rgba(8,145,178,.08));
  border-color: rgba(99,102,241,.2);
}
[data-theme="light"] .nav-link.active i { color: #6366f1; filter: drop-shadow(0 0 5px rgba(99,102,241,.6)); }
[data-theme="light"] .nav-link.active::before { background: linear-gradient(180deg, #6366f1, #0891b2); }
[data-theme="light"] .stat::before { background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
[data-theme="light"] .usr-item:hover { background: rgba(99,102,241,.08); }
[data-theme="light"] .qaction:hover { box-shadow: var(--shadow); }
[data-theme="light"] .donut { box-shadow: 0 12px 34px rgba(15,23,42,.1); }
[data-theme="light"] .donut::before { box-shadow: inset 0 2px 10px rgba(15,23,42,.08); }
[data-theme="light"] .profile-avatar, [data-theme="light"] .brand-icon, [data-theme="light"] .auth-logo,
[data-theme="light"] .sm-card-ic, [data-theme="light"] .sm-heading i { box-shadow: 0 10px 24px rgba(99,102,241,.25); }
[data-theme="light"] .ch-plot { background: linear-gradient(180deg, rgba(99,102,241,.05), rgba(99,102,241,0) 60%), #fff; }
[data-theme="light"] .gv-side { background: linear-gradient(135deg, rgba(244,114,182,.05), rgba(34,211,238,.04)), #fff; }
[data-theme="light"] .ch-bar { box-shadow: 0 10px 22px color-mix(in srgb, var(--c) 22%, transparent); }

/* ------------------------ Settings page components ------------------------ */
.hint {
  margin-top: 6px; font-size: 11.5px; line-height: 1.5;
  color: var(--text-dim); font-weight: 500;
}
.settings-note {
  font-size: 13px; line-height: 1.6; color: var(--text-dim);
  background: var(--input-bg); border: 1px solid var(--border);
  border-radius: 12px; padding: 14px 16px; margin-bottom: 16px;
}
.settings-note strong { color: var(--text-heading); }

/* event picker chips */
.event-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px; margin: 6px 0 18px;
}
.event-chip { position: relative; cursor: pointer; }
.event-chip input { position: absolute; opacity: 0; pointer-events: none; }
.event-chip span {
  display: flex; align-items: center; gap: 9px;
  padding: 10px 13px; font-size: 12.5px; font-weight: 600;
  color: var(--text-dim); border: 1px solid var(--border);
  border-radius: 12px; background: var(--input-bg);
  transition: all .18s ease;
}
.event-chip span i { font-size: 12px; opacity: 0; transform: scale(.6); transition: all .18s ease; }
.event-chip:hover span { border-color: var(--border-strong); color: var(--text); }
.event-chip input:checked + span {
  color: var(--text-heading); border-color: rgba(129,140,248,.45);
  background: linear-gradient(90deg, rgba(99,102,241,.14), rgba(34,211,238,.08));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
.event-chip input:checked + span i { opacity: 1; transform: scale(1); color: #a5b4fc; }
.event-chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
[data-theme="light"] .event-chip input:checked + span {
  border-color: rgba(99,102,241,.4);
  background: linear-gradient(90deg, rgba(99,102,241,.09), rgba(8,145,178,.05));
}
[data-theme="light"] .event-chip input:checked + span i { color: #6366f1; }

/* toggle switch */
.toggle-row {
  display: flex; align-items: center; gap: 12px;
  font-size: 13.5px; font-weight: 700; color: var(--text);
  margin-bottom: 20px; cursor: pointer; user-select: none;
}
.toggle-row input { position: absolute; opacity: 0; pointer-events: none; }
.toggle {
  position: relative; width: 42px; height: 24px; border-radius: 99px;
  background: var(--input-bg); border: 1px solid var(--border-strong);
  transition: background .2s ease, border-color .2s ease; flex-shrink: 0;
}

/* ==========================================================================
   Server Masking Â· Identity Protection workspace
   ========================================================================== */

/* -------------------------------- Hero -------------------------------- */
.mk-hero {
  position: relative; display: flex; align-items: center; gap: 28px;
  padding: 34px 36px; border-radius: 24px; overflow: hidden;
  background: linear-gradient(120deg, rgba(99,102,241,.20), rgba(34,211,238,.12) 52%, rgba(99,102,241,.06));
  border: 1px solid rgba(129,140,248,.28);
  box-shadow: 0 18px 50px rgba(99,102,241,.16);
}
.mk-hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(rgba(148,163,184,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148,163,184,.05) 1px, transparent 1px);
  background-size: 34px 34px;
  -webkit-mask-image: radial-gradient(ellipse 70% 90% at 30% 0%, #000 25%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 90% at 30% 0%, #000 25%, transparent 75%);
}
.mk-hero-orb { position: absolute; border-radius: 50%; filter: blur(70px); pointer-events: none; }
.mk-hero-orb-a { width: 300px; height: 300px; top: -120px; right: 6%; background: rgba(99,102,241,.30); animation: blobDrift 18s ease-in-out infinite; }
.mk-hero-orb-b { width: 240px; height: 240px; bottom: -130px; right: 30%; background: rgba(34,211,238,.20); animation: blobDrift 22s ease-in-out infinite reverse; }
.mk-hero-float { position: absolute; color: rgba(129,140,248,.28); font-size: 34px; pointer-events: none; }
.mk-f1 { top: 26px; left: 46%; animation: floatY 7s ease-in-out infinite; }
.mk-f2 { bottom: 24px; left: 34%; font-size: 26px; animation: floatY 9s ease-in-out infinite reverse; }
.mk-f3 { top: 50%; right: 34%; font-size: 22px; animation: floatY 6.5s ease-in-out infinite; }

.mk-hero-txt { position: relative; z-index: 1; flex: 1; min-width: 0; }
.mk-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 99px; font-size: 10.5px; font-weight: 800;
  letter-spacing: .16em; text-transform: uppercase; color: #a5b4fc;
  background: rgba(99,102,241,.14); border: 1px solid rgba(129,140,248,.30);
  box-shadow: 0 0 24px rgba(99,102,241,.22);
}
.mk-eyebrow i { animation: iconPulse 2.4s ease-in-out infinite; }
.mk-hero-title { font-size: 34px; font-weight: 900; letter-spacing: -.02em; color: var(--text-heading); margin: 14px 0 8px; }
.mk-hero-title span {
  background: linear-gradient(90deg, #a5b4fc, #22d3ee 70%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.mk-hero-sub { font-size: 14px; line-height: 1.65; color: var(--text-dim); max-width: 620px; }
.mk-hero-sub strong { color: var(--text-heading); font-weight: 700; }
.mk-hero-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; align-items: center; }
.mk-count-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 99px;
  font-size: 11.5px; font-weight: 700; color: var(--text-dim);
  background: var(--input-bg); border: 1px solid var(--border);
}
.mk-count-pill i { color: var(--info); font-size: 12px; animation: iconFloat 3.6s ease-in-out infinite; }
.mk-cp-warn i { color: var(--warning); }
.mk-cp-pink i { color: #f472b6; }

/* hero orbital art */
.mk-hero-art { position: relative; width: 190px; height: 190px; flex-shrink: 0; display: grid; place-items: center; }
.mk-art-ring { position: absolute; border-radius: 50%; }
.mk-ring-a { width: 178px; height: 178px; border: 1.5px dashed rgba(129,140,248,.45); animation: spinSlow 22s linear infinite; }
.mk-ring-b { width: 132px; height: 132px; border: 1px solid rgba(34,211,238,.30); border-top-color: rgba(34,211,238,.9); animation: mkSpinRev 14s linear infinite; }
.mk-art-core {
  position: relative; width: 88px; height: 88px; border-radius: 24px;
  display: grid; place-items: center; color: #fff; font-size: 38px;
  background: linear-gradient(135deg, #818cf8, #6366f1 45%, #22d3ee); background-size: 200% 200%;
  box-shadow: 0 16px 42px rgba(99,102,241,.5);
  animation: gradShift 6s ease infinite;
}
.mk-art-core i { position: relative; z-index: 1; animation: iconFloat 4.4s ease-in-out infinite; filter: drop-shadow(0 6px 16px rgba(0,0,0,.35)); }
.mk-art-core::after { content: ''; position: absolute; inset: 0; border-radius: 24px; border: 1px solid rgba(255,255,255,.35); animation: ringPulse 3.4s ease-out infinite; }
.mk-art-badge {
  position: absolute; right: 4px; top: 8px; width: 40px; height: 40px; border-radius: 13px;
  display: grid; place-items: center; color: #fff; font-size: 16px;
  background: linear-gradient(135deg, #34d399, #0ea5e9); box-shadow: 0 8px 20px rgba(16,185,129,.4);
  animation: iconPulse 3s ease-in-out infinite;
}
.mk-art-badge i { position: relative; z-index: 1; }

/* ------------------------------ Workspaces ----------------------------- */
.mk-ws {
  position: relative; overflow: hidden; border-radius: 22px;
  border: 1px solid var(--border); background: var(--card);
  box-shadow: var(--shadow); padding: 24px;
}
.mk-ws::before {
  content: ''; position: absolute; top: -160px; right: -120px; width: 360px; height: 360px;
  border-radius: 50%; background: radial-gradient(circle, var(--accent-glow), transparent 70%);
  pointer-events: none; opacity: .55;
}
.mk-ws-head {
  position: relative; display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin-bottom: 20px; padding-bottom: 18px; border-bottom: 1px solid var(--border);
}
.mk-ws-ic {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  font-size: 18px; color: #fff; flex-shrink: 0; position: relative; overflow: hidden;
  box-shadow: 0 10px 24px var(--accent-glow); background-size: 200% 200%;
  animation: gradShift 6s ease infinite;
}
.mk-ws-ic i { position: relative; z-index: 1; animation: iconFloat 3.8s ease-in-out infinite; }
.mk-ws-ic::after {
  content: ''; position: absolute; top: -40%; left: -40%; width: 80%; height: 80%;
  background: linear-gradient(135deg, rgba(255,255,255,.4), transparent 60%); transform: rotate(20deg);
}
.mk-ws-ic-indigo { background: linear-gradient(135deg, #818cf8, #6366f1); }
.mk-ws-ic-pink { background: linear-gradient(135deg, #f472b6, #db2777); box-shadow: 0 10px 24px rgba(219,39,119,.3); }
.mk-ws-head-txt { flex: 1; min-width: 0; }
.mk-ws-head-txt h2 { font-size: 17px; font-weight: 800; color: var(--text-heading); letter-spacing: -.01em; }
.mk-ws-head-txt p { font-size: 12.5px; color: var(--text-dim); margin-top: 2px; }
.mk-ws-meta { font-size: 11px; flex-shrink: 0; }

.mk-ws-grid { display: grid; grid-template-columns: 400px minmax(0, 1fr); gap: 20px; align-items: start; position: relative; }
.mk-ws-grid--assign { grid-template-columns: minmax(0, 1fr); margin-bottom: 28px; }
.mk-ws-grid--vault { grid-template-columns: minmax(0, 1fr); }

/* panels */
.mk-panel { padding: 22px; position: relative; }
.mk-panel-top { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.mk-panel-ic {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  font-size: 15px; color: #fff; flex-shrink: 0; position: relative; overflow: hidden;
  box-shadow: 0 8px 18px var(--accent-glow);
}
.mk-panel-ic i { position: relative; z-index: 1; animation: iconPulse 3.2s ease-in-out infinite; }
.mk-panel-ic-indigo { background: linear-gradient(135deg, #818cf8, #6366f1); }
.mk-panel-ic-cyan { background: linear-gradient(135deg, #22d3ee, #0ea5e9); box-shadow: 0 8px 18px rgba(14,165,233,.35); }
.mk-panel-ic-pink { background: linear-gradient(135deg, #f472b6, #db2777); box-shadow: 0 8px 18px rgba(219,39,119,.3); }
.mk-panel-title { font-size: 14.5px; font-weight: 800; color: var(--text-heading); }
.mk-panel-sub { font-size: 12px; color: var(--text-dim); margin-top: 2px; }

/* icon-injected inputs */
.mk-input-wrap { position: relative; }
.mk-input-wrap > i {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  font-size: 13px; color: var(--text-dim); z-index: 1; pointer-events: none;
  transition: color .2s ease;
}
.mk-input-wrap .input { padding-left: 40px; }
.mk-input-wrap:focus-within > i { color: var(--accent); filter: drop-shadow(0 0 6px var(--accent-glow)); }


/* list panels */
.mk-list-panel { min-width: 0; }
.mk-list-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; flex-wrap: wrap; }
.mk-list-search {
  display: flex; align-items: center; gap: 9px; padding: 9px 13px; border-radius: 12px;
  background: var(--input-bg); border: 1px solid var(--border);
  min-width: 220px; flex: 1; max-width: 320px;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.mk-list-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-glow); background: var(--input-bg-focus); }
.mk-list-search i { color: var(--text-dim); font-size: 13px; flex-shrink: 0; }
.mk-list-search input { flex: 1; min-width: 0; background: none; border: none; outline: none; color: var(--text); font-size: 13px; font-family: inherit; }
.mk-list-search input::placeholder { color: var(--text-dim); opacity: .65; }

.mk-table-wrap { border-radius: 14px; }
.mk-row { animation: mkFadeUp .5s cubic-bezier(.22,1,.36,1) both; animation-delay: calc(var(--i) * 45ms); }
.mk-row td { vertical-align: middle; }
.mk-th-actions { text-align: right; }
.mk-alias {
  display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 9px;
  font-family: "Cascadia Code", "Consolas", monospace; font-size: 12.5px; font-weight: 600;
  background: var(--success-bg); color: var(--success); border: 1px solid rgba(16,185,129,.25);
  white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis;
}
.mk-alias i { font-size: 11px; animation: iconPulse 3s ease-in-out infinite; }
.mk-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.mk-act { min-width: 92px; }
.mk-act:hover i { animation: qBounce .6s ease; }

/* empty state */
.mk-empty { padding: 42px 20px; }
.mk-empty-ic {
  width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center;
  font-size: 22px; color: #fff; background: linear-gradient(135deg, #818cf8, #22d3ee);
  background-size: 200% 200%; box-shadow: 0 12px 30px var(--accent-glow);
  animation: gradShift 6s ease infinite; position: relative;
}
.mk-empty-ic i { animation: iconFloat 4s ease-in-out infinite; }
.mk-empty-title { font-size: 14.5px; font-weight: 800; color: var(--text-heading); }
.mk-empty-sub { font-size: 12.5px; color: var(--text-dim); margin-top: 2px; }

/* footnote */
.mk-footnote {
  display: flex; align-items: flex-start; gap: 13px; padding: 16px 20px; border-radius: 16px;
  background: linear-gradient(120deg, var(--info-bg), rgba(34,211,238,.07));
  border: 1px solid var(--border); font-size: 12.5px; line-height: 1.6; color: var(--text-dim);
}
.mk-footnote b { color: var(--text-heading); font-weight: 800; }
.mk-footnote-ic {
  width: 38px; height: 38px; border-radius: 12px; flex-shrink: 0; display: grid; place-items: center;
  font-size: 15px; color: var(--info); background: var(--info-bg);
}
.mk-footnote-ic i { animation: iconPulse 3s ease-in-out infinite; }

/* submit buttons */
.mk-submit { width: 100%; margin-top: 4px; }
.mk-submit:hover i { animation: qBounce .6s ease; transform: scale(1.12); }


/* ------------------------------- Modals -------------------------------- */
.mk-modal {
  position: fixed; inset: 0; z-index: 300; display: none;
  align-items: flex-start; justify-content: center; padding: 20px;
  background: rgba(2,6,23,.62);
  overflow-y: auto;
}
.mk-modal.show { display: flex; }
.mk-modal.show .mk-modal-box { margin: auto; }
.mk-modal-box {
  position: relative; width: 100%; max-width: 460px; padding: 28px; overflow: hidden;
  background: var(--dropdown-bg); border: 1px solid var(--border-strong); border-radius: 22px;
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
  animation: modalIn .3s cubic-bezier(.22,1,.36,1) both;
}
.mk-modal-box::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2)); background-size: 200% 100%;
  animation: gradShift 6s ease infinite;
}
.mk-modal-close {
  position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border-radius: 10px;
  display: grid; place-items: center; background: var(--input-bg); border: 1px solid var(--border);
  color: var(--text-dim); font-size: 13px; cursor: pointer; transition: all .18s ease;
}
.mk-modal-close:hover { color: var(--danger); border-color: var(--danger); background: var(--danger-bg); transform: rotate(90deg); }
.mk-modal-head { display: flex; align-items: center; gap: 13px; margin-bottom: 20px; }
.mk-modal-ic {
  width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center;
  font-size: 17px; color: #fff; flex-shrink: 0;
  background: linear-gradient(135deg, #fbbf24, #d97706); background-size: 200% 200%;
  box-shadow: 0 8px 20px rgba(245,158,11,.3);
  animation: gradShift 6s ease infinite;
}
.mk-modal-ic i { position: relative; z-index: 1; animation: iconPulse 3s ease-in-out infinite; }
.mk-modal-title { font-size: 16px; font-weight: 800; color: var(--text-heading); }
.mk-modal-sub { font-size: 12.5px; color: var(--text-dim); margin-top: 3px; }
.mk-modal-sub .mono { color: var(--accent); background: var(--accent-glow); border-color: rgba(129,140,248,.3); }
.mk-modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }

/* ------------------------------ Keyframes ------------------------------ */
@keyframes mkFadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes mkSpinRev { to { transform: rotate(-360deg); } }
@keyframes floatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* --------------------------- Light overrides --------------------------- */
[data-theme="light"] .mk-hero { box-shadow: 0 18px 44px rgba(99,102,241,.12); }
[data-theme="light"] .mk-ws { background: rgba(255,255,255,.85); }
[data-theme="light"] .mk-footnote { background: linear-gradient(120deg, rgba(37,99,235,.08), rgba(8,145,178,.05)); }
[data-theme="light"] .mk-modal-box { background: #ffffff; }
[data-theme="light"] .mk-art-core { box-shadow: 0 16px 40px rgba(99,102,241,.3); }
[data-theme="light"] .mk-empty-ic { box-shadow: 0 12px 28px rgba(99,102,241,.22); }
[data-theme="light"] .mk-art-badge { box-shadow: 0 8px 18px rgba(16,185,129,.3); }

/* ------------------------------ Responsive ----------------------------- */
@media (max-width: 1200px) {
  .mk-hero { flex-direction: column-reverse; align-items: flex-start; }
  .mk-hero-art { align-self: center; }
}
@media (max-width: 1100px) {
  .mk-ws-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .mk-hero { padding: 26px 20px; }
  .mk-hero-title { font-size: 26px; }
  .mk-hero-art { width: 150px; height: 150px; }
  .mk-ring-a { width: 140px; height: 140px; }
  .mk-ring-b { width: 104px; height: 104px; }
  .mk-ws { padding: 18px; }
}


/* ==========================================================================
   Server IP Assignments · Network provisioning workspace
   ========================================================================== */

/* ------------------------------ Hero accent ------------------------------ */
.ipa-core {
  position: relative; width: 88px; height: 88px; border-radius: 24px;
  display: grid; place-items: center; color: #fff; font-size: 38px;
  background: linear-gradient(135deg, #2dd4bf, #0ea5e9 45%, #6366f1); background-size: 200% 200%;
  box-shadow: 0 16px 42px rgba(14,165,233,.45);
  animation: gradShift 6s ease infinite;
}
.ipa-core i { position: relative; z-index: 1; animation: iconFloat 4.4s ease-in-out infinite; filter: drop-shadow(0 6px 16px rgba(0,0,0,.35)); }
.ipa-core::after { content: ''; position: absolute; inset: 0; border-radius: 24px; border: 1px solid rgba(255,255,255,.35); animation: ringPulse 3.4s ease-out infinite; }
.ipa-badge {
  position: absolute; right: 4px; top: 8px; width: 40px; height: 40px; border-radius: 13px;
  display: grid; place-items: center; color: #fff; font-size: 16px;
  background: linear-gradient(135deg, #fbbf24, #f59e0b); box-shadow: 0 8px 20px rgba(245,158,11,.4);
  animation: iconPulse 3s ease-in-out infinite;
}
.ipa-badge i { position: relative; z-index: 1; }

/* --------------------------- Workspace accents --------------------------- */
.ipa-ws-ic { background: linear-gradient(135deg, #2dd4bf, #0ea5e9); box-shadow: 0 10px 24px rgba(14,165,233,.3); }
.ipa-panel-ic-cyan { background: linear-gradient(135deg, #22d3ee, #0ea5e9); box-shadow: 0 8px 18px rgba(14,165,233,.35); }
.ipa-panel-ic-emerald { background: linear-gradient(135deg, #34d399, #0d9488); box-shadow: 0 8px 18px rgba(13,148,136,.3); }
.ipa-panel-ic-amber { background: linear-gradient(135deg, #fbbf24, #d97706); box-shadow: 0 8px 18px rgba(217,119,6,.3); }
.mk-cp-cyan i { color: #22d3ee; }
.mk-cp-amber i { color: #fbbf24; }

/* --------------------------- Pagination footer --------------------------- */
.mk-pagination {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin-top: 16px; padding-top: 14px;
  border-top: 1px dashed var(--border);
}
.mk-pg-info {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12.5px; font-weight: 700; color: var(--text-dim);
}
.mk-pg-info i { font-size: 12px; color: var(--accent); }
.mk-pg-info b { color: var(--accent); font-weight: 800; font-variant-numeric: tabular-nums; }
.mk-pg-controls { display: flex; align-items: center; gap: 10px; }
.mk-pagination .btn { min-width: 104px; }
.mk-pagination .btn:disabled,
.mk-pagination .btn[disabled] { opacity: .45; cursor: not-allowed; pointer-events: none; filter: grayscale(.6); }

/* ipv6 conditional reveal */
.ipa-ipv6-field { display: none; margin-top: 10px; animation: mkFadeUp .3s ease both; }
.ipa-ipv6-row { display: flex; align-items: center; gap: 12px; margin-top: 2px; }
.ipa-ipv6-state {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 700; color: var(--text-dim);
  padding: 4px 10px; border-radius: 99px; background: var(--input-bg);
  border: 1px solid var(--border); transition: all .2s ease;
}
.ipa-ipv6-state .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.ipa-ipv6-on { color: var(--success); border-color: rgba(16,185,129,.3); background: var(--success-bg); }
.ipa-ipv6-on .dot { animation: pingDot 1.8s ease-out infinite; }

/* ------------------------------ Form accents ----------------------------- */
.ipa-alert {
  display: flex; align-items: flex-start; gap: 9px; padding: 10px 13px; margin-bottom: 16px;
  border-radius: 11px; font-size: 12.5px; line-height: 1.55;
  background: var(--danger-bg); color: var(--danger); border: 1px solid rgba(239,68,68,.25);
}
.ipa-alert i { animation: iconPulse 2.4s ease-in-out infinite; }
.ipa-submit { position: relative; overflow: hidden; }
.ipa-submit::after {
  content: ''; position: absolute; top: 0; bottom: 0; left: -150%; width: 55%;
  transform: skewX(-20deg); pointer-events: none;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,.38), transparent);
  animation: ipaShine 5.5s ease-in-out infinite;
}
.ipa-submit:hover i { animation: qBounce .6s ease; transform: scale(1.12); }
@keyframes ipaShine { 0% { left: -150%; } 55%, 100% { left: 160%; } }

/* ------------------------ Horizontal assign form ------------------------- */
.ipa-assign-panel { padding: 22px; }
.ipa-form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px 16px;
  align-items: start;
}
.ipa-form-grid .field { min-width: 0; }
.ipa-field-server { grid-column: 1 / -1; }
.ipa-form-actions { margin-top: 22px; display: flex; justify-content: flex-end; }
.ipa-form-actions .ipa-submit { width: auto; min-width: 0; }
.ipa-list-top { justify-content: flex-end; }
.ipa-list-top .mk-list-search { flex: 0 1 320px; }

@media (max-width: 760px) {
  .ipa-form-grid { grid-template-columns: 1fr; }
  .ipa-form-actions { justify-content: stretch; }
  .ipa-form-actions .ipa-submit { width: 100%; }
}


/* -------------------------------- IP chips ------------------------------- */
.ipa-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 8px;
  font-family: "Cascadia Code", "Consolas", monospace; font-size: 12px; font-weight: 600;
  white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis;
  border: 1px solid transparent;
}
.ipa-chip i { font-size: 10px; }
.ipa-chip-cyan { background: rgba(34,211,238,.12); color: #22d3ee; border-color: rgba(34,211,238,.28); }
.ipa-chip-cyan i { animation: iconPulse 3.2s ease-in-out infinite; }
.ipa-chip-indigo { background: var(--accent-glow); color: var(--accent); border-color: rgba(129,140,248,.3); }
.ipa-chip-indigo i { animation: iconPulse 3.6s ease-in-out infinite; }
.ipa-chip-dim { background: var(--input-bg); color: var(--text-dim); border-color: var(--border); }
.ipa-loc { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-dim); }
.ipa-loc i { color: var(--warning); font-size: 11px; animation: iconFloat 3.8s ease-in-out infinite; }
.ipa-copy {
  margin-left: 6px; padding: 5px 9px; border-radius: 7px; font-size: 11px; white-space: nowrap;
  background: var(--input-bg); border: 1px solid var(--border); color: var(--text-dim);
  cursor: pointer; transition: all .18s ease; vertical-align: middle;
}
.ipa-copy:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-1px); box-shadow: 0 4px 12px var(--accent-glow); }
.ipa-copy:hover i { animation: qBounce .5s ease; }

/* ------------------------------- Pagination ------------------------------ */
.ipa-pagination { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 16px; }
.ipa-pg-info { font-size: 12px; color: var(--text-dim); display: inline-flex; align-items: center; gap: 7px; }
.ipa-pg-info i { color: var(--accent); }
.ipa-pagination .pagination { margin: 0; }

/* ---------------------------- Assigned IPs cards -------------------------- */
.ipa-cards { display: flex; flex-direction: column; gap: 16px; }
.ipa-card {
  position: relative; overflow: hidden; padding: 14px 18px 16px;
  border: 1px solid var(--border); border-radius: 14px; background: var(--card);
  animation: mkFadeUp .5s cubic-bezier(.22,1,.36,1) both;
  animation-delay: calc(var(--i) * 45ms);
}
.ipa-card-loc {
  display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
  padding: 8px 12px; margin-bottom: 14px; border-radius: 10px;
  background: linear-gradient(135deg, rgba(34,211,238,.1), rgba(99,102,241,.08));
  border: 1px dashed rgba(34,211,238,.32);
  font-size: 12.5px; color: var(--text);
}
.ipa-card-loc > i { color: var(--warning); font-size: 13px; animation: iconFloat 3.8s ease-in-out infinite; }
.ipa-card-loc-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--text-dim); }
.ipa-card-loc-value {
  font-family: "Cascadia Code", "Consolas", monospace; font-size: 13px; font-weight: 700;
  color: var(--accent); word-break: break-word;
}
.ipa-card-grid {
  display: grid;
  grid-template-columns: minmax(80px, 1fr) minmax(140px, 1.2fr) minmax(150px, 1.3fr) minmax(150px, 1.5fr) minmax(120px, 1.1fr) minmax(130px, 1.15fr) minmax(200px, 1.7fr);
  gap: 12px 16px; align-items: start;
}
.ipa-cell { min-width: 0; }
.ipa-cell-label {
  display: flex; flex-direction: column; gap: 5px;
  font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--text-dim);
}
.ipa-cell-label::after { content: ''; width: 24px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--accent), transparent); }
.ipa-cell-value { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-width: 0; margin-top: 6px; }
.ipa-card-actions { gap: 8px; }
.ipa-chip-v6 { background: rgba(139,92,246,.13); color: #a78bfa; border-color: rgba(139,92,246,.32); }
.ipa-chip-v6 i { animation: iconPulse 3.4s ease-in-out infinite; }
[data-theme="light"] .ipa-chip-v6 { background: rgba(139,92,246,.08); }

@media (max-width: 1180px) {
  .ipa-card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ipa-cell-actions { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  .ipa-card-grid { grid-template-columns: 1fr; }
}

/* ----------------------------- Empty + modal ----------------------------- */
.ipa-empty-ic {
  width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center;
  font-size: 22px; color: #fff; background: linear-gradient(135deg, #2dd4bf, #0ea5e9 45%, #6366f1);
  background-size: 200% 200%; box-shadow: 0 12px 30px rgba(14,165,233,.35);
  animation: gradShift 6s ease infinite; position: relative;
}
.ipa-empty-ic i { animation: iconFloat 4s ease-in-out infinite; }
.ipa-modal-ic {
  width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center;
  font-size: 17px; color: #fff; flex-shrink: 0;
  background: linear-gradient(135deg, #2dd4bf, #0ea5e9); background-size: 200% 200%;
  box-shadow: 0 8px 20px rgba(14,165,233,.35);
  animation: gradShift 6s ease infinite;
}
.ipa-modal-ic i { position: relative; z-index: 1; animation: iconPulse 3s ease-in-out infinite; }

/* --------------------------- Light overrides ----------------------------- */
[data-theme="light"] .ipa-core { box-shadow: 0 16px 40px rgba(14,165,233,.3); }
[data-theme="light"] .ipa-empty-ic { box-shadow: 0 12px 28px rgba(14,165,233,.22); }
[data-theme="light"] .ipa-badge { box-shadow: 0 8px 18px rgba(245,158,11,.3); }
[data-theme="light"] .ipa-chip-cyan { background: rgba(34,211,238,.1); }

/* ------------------------------ Responsive ------------------------------- */
@media (max-width: 760px) {
  .ipa-chip { max-width: 130px; }
  .ipa-pagination { flex-direction: column; align-items: flex-start; }
}
/* ==========================================================================
   Server Credentials · Access & login vault
   ========================================================================== */

/* ------------------------------ Hero accent ------------------------------ */
.sck-core {
  position: relative; width: 88px; height: 88px; border-radius: 24px;
  display: grid; place-items: center; color: #fff; font-size: 36px;
  background: linear-gradient(135deg, #fbbf24, #f59e0b 40%, #8b5cf6); background-size: 200% 200%;
  box-shadow: 0 16px 42px rgba(245,158,11,.42);
  animation: gradShift 6s ease infinite;
}
.sck-core i { position: relative; z-index: 1; animation: iconFloat 4.4s ease-in-out infinite; filter: drop-shadow(0 6px 16px rgba(0,0,0,.35)); }
.sck-core::after { content: ''; position: absolute; inset: 0; border-radius: 24px; border: 1px solid rgba(255,255,255,.35); animation: ringPulse 3.4s ease-out infinite; }
.sck-badge {
  position: absolute; right: 4px; top: 8px; width: 40px; height: 40px; border-radius: 13px;
  display: grid; place-items: center; color: #fff; font-size: 15px;
  background: linear-gradient(135deg, #34d399, #059669); box-shadow: 0 8px 20px rgba(16,185,129,.4);
  animation: iconPulse 3s ease-in-out infinite;
}
.sck-badge i { position: relative; z-index: 1; }

/* --------------------------- Workspace accents --------------------------- */
.sck-ws-ic { background: linear-gradient(135deg, #fbbf24, #f59e0b); box-shadow: 0 10px 24px rgba(245,158,11,.3); }
.sck-panel-ic-gold { background: linear-gradient(135deg, #fbbf24, #f59e0b); box-shadow: 0 8px 18px rgba(245,158,11,.35); }
.sck-panel-ic-emerald { background: linear-gradient(135deg, #34d399, #059669); box-shadow: 0 8px 18px rgba(16,185,129,.3); }
.sck-cp-gold i { color: #fbbf24; }
.sck-cp-emerald i { color: #34d399; }

/* ------------------------------ Form accents ----------------------------- */
.sck-alert {
  display: flex; align-items: flex-start; gap: 9px; padding: 10px 13px; margin-bottom: 16px;
  border-radius: 11px; font-size: 12.5px; line-height: 1.55;
  background: var(--danger-bg); color: var(--danger); border: 1px solid rgba(239,68,68,.25);
}
.sck-alert i { animation: iconPulse 2.4s ease-in-out infinite; }
.sck-submit { position: relative; overflow: hidden; }
.sck-submit::after {
  content: ''; position: absolute; top: 0; bottom: 0; left: -150%; width: 55%;
  transform: skewX(-20deg); pointer-events: none;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,.38), transparent);
  animation: ipaShine 5.5s ease-in-out infinite;
}
.sck-submit:hover i { animation: qBounce .6s ease; transform: scale(1.12); }

/* OS quick-pick chips */
/* Assign form — two-column layout inside the full-width card */
.sck-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; align-items: start; }
.sck-form-grid .sck-os-picks { grid-column: 1 / -1; margin-top: 4px; }

.sck-os-picks { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 9px; }
.sck-os-pick {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px;
  border-radius: 8px; font-size: 11.5px; font-weight: 700; cursor: pointer;
  background: var(--input-bg); border: 1px solid var(--border); color: var(--text-dim);
  transition: all .18s ease; user-select: none;
}
.sck-os-pick:hover { transform: translateY(-1px); border-color: var(--accent); color: var(--accent); box-shadow: 0 4px 12px var(--accent-glow); }
.sck-os-pick:hover i { animation: qBounce .5s ease; }
.sck-os-pick.active { color: #f59e0b; border-color: rgba(245,158,11,.4); background: rgba(245,158,11,.1); }

/* Password field actions */
.sck-pass .input { padding-right: 84px; }
.sck-input-actions { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); display: flex; gap: 2px; }
.sck-ico-btn {
  width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center;
  background: transparent; border: none; color: var(--text-dim); cursor: pointer; font-size: 13px;
  transition: all .18s ease;
}
.sck-ico-btn:hover { color: var(--accent); background: var(--accent-glow); }
.sck-ico-btn:active { transform: scale(.92); }
.sck-ico-btn.sck-eye:hover { color: #f59e0b; background: rgba(245,158,11,.1); }
.sck-ico-btn.sck-gen { color: #f59e0b; }
.sck-ico-btn.sck-gen:hover { background: rgba(245,158,11,.12); }
.sck-ico-btn.sck-gen:hover i { animation: sckSpin .6s ease; }
@keyframes sckSpin { from { transform: rotate(-200deg) scale(.5); } to { transform: rotate(0) scale(1); } }

/* Password strength meter */
.sck-meter { display: flex; align-items: center; gap: 8px; margin-top: 9px; }
.sck-meter-bars { display: flex; gap: 4px; flex: 1; }
.sck-meter-seg { height: 5px; flex: 1; border-radius: 99px; background: var(--border); transition: background .25s ease, box-shadow .25s ease; }
.sck-meter-label { font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--text-dim); min-width: 56px; text-align: right; transition: color .25s ease; }
.sck-meter[data-level="1"] .sck-meter-seg.on { background: #ef4444; box-shadow: 0 0 8px rgba(239,68,68,.5); }
.sck-meter[data-level="2"] .sck-meter-seg.on { background: #f59e0b; box-shadow: 0 0 8px rgba(245,158,11,.5); }
.sck-meter[data-level="3"] .sck-meter-seg.on { background: #22d3ee; box-shadow: 0 0 8px rgba(34,211,238,.5); }
.sck-meter[data-level="4"] .sck-meter-seg.on { background: #34d399; box-shadow: 0 0 8px rgba(52,211,153,.5); }
.sck-meter[data-level="1"] .sck-meter-label { color: #f87171; }
.sck-meter[data-level="2"] .sck-meter-label { color: #fbbf24; }
.sck-meter[data-level="3"] .sck-meter-label { color: #22d3ee; }
.sck-meter[data-level="4"] .sck-meter-label { color: #34d399; }
/* ------------------------------ Table accents ---------------------------- */
.sck-table-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.sck-search { position: relative; flex: 1; max-width: 300px; }
.sck-search > i { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--text-dim); font-size: 13px; transition: color .2s; }
.sck-search:focus-within > i { color: var(--accent); filter: drop-shadow(0 0 6px var(--accent-glow)); }
.sck-search .input { padding-left: 38px; padding-top: 9px; padding-bottom: 9px; }

.sck-os {
  display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px; border-radius: 8px;
  font-size: 12px; font-weight: 700; white-space: nowrap; border: 1px solid transparent;
}
.sck-os i { font-size: 12px; }
.sck-os-ubuntu { background: rgba(233,84,32,.12); color: #fb923c; border-color: rgba(233,84,32,.32); }
.sck-os-centos { background: rgba(239,68,68,.12); color: #f87171; border-color: rgba(239,68,68,.32); }
.sck-os-alma { background: rgba(23,109,146,.15); color: #5fc3e9; border-color: rgba(23,109,146,.38); }
.sck-os-rocky { background: rgba(16,185,129,.12); color: #34d399; border-color: rgba(16,185,129,.32); }
.sck-os-debian { background: rgba(236,72,153,.12); color: #f472b6; border-color: rgba(236,72,153,.32); }
.sck-os-windows { background: rgba(0,168,232,.12); color: #38bdf8; border-color: rgba(0,168,232,.32); }
.sck-os-fedora { background: rgba(59,130,246,.12); color: #60a5fa; border-color: rgba(59,130,246,.32); }
.sck-os-redhat { background: rgba(220,38,38,.14); color: #f87171; border-color: rgba(220,38,38,.35); }
.sck-os-linux { background: rgba(34,211,238,.1); color: #22d3ee; border-color: rgba(34,211,238,.28); }
.sck-os-generic { background: var(--input-bg); color: var(--text-dim); border-color: var(--border); }

.sck-user { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: var(--text-heading); }
.sck-user i { color: var(--accent); font-size: 11px; animation: iconPulse 3.4s ease-in-out infinite; }
.sck-updated { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-dim); }
.sck-updated i { color: #f59e0b; font-size: 11px; animation: iconFloat 3.6s ease-in-out infinite; }
.sck-passcell { display: inline-flex; align-items: center; gap: 4px; }
.sck-passdots { font-family: "Cascadia Code", "Consolas", monospace; font-size: 13px; letter-spacing: 2px; color: var(--text-dim); }
.sck-passval { font-family: "Cascadia Code", "Consolas", monospace; font-size: 12px; color: var(--text-dim); }
.sck-pass-actions { display: inline-flex; gap: 4px; margin-left: 2px; }
.sck-mini {
  width: 27px; height: 27px; border-radius: 7px; display: inline-grid; place-items: center;
  background: var(--input-bg); border: 1px solid var(--border); color: var(--text-dim);
  cursor: pointer; font-size: 12px; transition: all .18s ease; vertical-align: middle;
}
.sck-mini:hover { transform: translateY(-1px); }
.sck-mini.reveal:hover { color: #f59e0b; border-color: #f59e0b; box-shadow: 0 4px 12px rgba(245,158,11,.25); }
.sck-mini.copy:hover { color: #34d399; border-color: #34d399; box-shadow: 0 4px 12px rgba(52,211,153,.25); }
.sck-mini.copied { color: #34d399; border-color: rgba(52,211,153,.4); }

/* ------------------------------- Pagination ------------------------------ */
.sck-pagination { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 16px; }
.sck-pg-info { font-size: 12px; color: var(--text-dim); display: inline-flex; align-items: center; gap: 7px; }
.sck-pg-info i { color: var(--accent); }
.sck-pagination .pagination { margin: 0; }

/* ----------------------------- Empty + modal ----------------------------- */
.sck-empty-ic {
  width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center;
  font-size: 22px; color: #fff; background: linear-gradient(135deg, #fbbf24, #f59e0b 40%, #8b5cf6);
  background-size: 200% 200%; box-shadow: 0 12px 30px rgba(245,158,11,.35);
  animation: gradShift 6s ease infinite; position: relative;
}
.sck-empty-ic i { animation: iconFloat 4s ease-in-out infinite; }
.sck-modal-ic {
  width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center;
  font-size: 17px; color: #fff; flex-shrink: 0;
  background: linear-gradient(135deg, #fbbf24, #f59e0b 45%, #8b5cf6); background-size: 200% 200%;
  box-shadow: 0 8px 20px rgba(245,158,11,.35); animation: gradShift 6s ease infinite;
}
.sck-modal-ic i { position: relative; z-index: 1; animation: iconPulse 3s ease-in-out infinite; }

/* --------------------------- Light overrides ----------------------------- */
[data-theme="light"] .sck-core { box-shadow: 0 16px 40px rgba(245,158,11,.3); }
[data-theme="light"] .sck-empty-ic { box-shadow: 0 12px 28px rgba(245,158,11,.22); }
[data-theme="light"] .sck-badge { box-shadow: 0 8px 18px rgba(16,185,129,.3); }

/* ------------------------------ Responsive ------------------------------- */
@media (max-width: 900px) {
  .sck-form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .sck-search { max-width: 100%; }
  .sck-pagination { flex-direction: column; align-items: flex-start; }
}
/* ==========================================================================
   Configuration & Status · Deployment control board
   ========================================================================== */

/* ------------------------------ Hero accent ------------------------------ */
.cfk-core {
  position: relative; width: 88px; height: 88px; border-radius: 24px;
  display: grid; place-items: center; color: #fff; font-size: 36px;
  background: linear-gradient(135deg, #34d399, #10b981 35%, #0ea5e9); background-size: 200% 200%;
  box-shadow: 0 16px 42px rgba(16,185,129,.4);
  animation: gradShift 6s ease infinite;
}
.cfk-core i { position: relative; z-index: 1; animation: spinSlow 16s linear infinite; filter: drop-shadow(0 6px 16px rgba(0,0,0,.35)); }
.cfk-core::after { content: ''; position: absolute; inset: 0; border-radius: 24px; border: 1px solid rgba(255,255,255,.35); animation: ringPulse 3.4s ease-out infinite; }
.cfk-badge {
  position: absolute; right: 4px; top: 8px; width: 40px; height: 40px; border-radius: 13px;
  display: grid; place-items: center; color: #fff; font-size: 15px;
  background: linear-gradient(135deg, #fbbf24, #f59e0b); box-shadow: 0 8px 20px rgba(245,158,11,.4);
  animation: iconPulse 3s ease-in-out infinite;
}
.cfk-badge i { position: relative; z-index: 1; }

/* --------------------------- Workspace accents --------------------------- */
.cfk-ws-ic { background: linear-gradient(135deg, #34d399, #0ea5e9); box-shadow: 0 10px 24px rgba(16,185,129,.3); }
.cfk-panel-ic-emerald { background: linear-gradient(135deg, #34d399, #059669); box-shadow: 0 8px 18px rgba(16,185,129,.3); }
.cfk-panel-ic-indigo { background: linear-gradient(135deg, #818cf8, #6366f1); box-shadow: 0 8px 18px rgba(99,102,241,.3); }
.cfk-cp-gold i { color: #fbbf24; }
.cfk-cp-emerald i { color: #34d399; }
.cfk-cp-amber i { color: #f59e0b; }

/* ------------------------------ Form accents ----------------------------- */
.cfk-alert {
  display: flex; align-items: flex-start; gap: 9px; padding: 10px 13px; margin-bottom: 16px;
  border-radius: 11px; font-size: 12.5px; line-height: 1.55;
  background: var(--danger-bg); color: var(--danger); border: 1px solid rgba(239,68,68,.25);
}
.cfk-alert i { animation: iconPulse 2.4s ease-in-out infinite; }
.cfk-submit { position: relative; overflow: hidden; }
.cfk-submit::after {
  content: ''; position: absolute; top: 0; bottom: 0; left: -150%; width: 55%;
  transform: skewX(-20deg); pointer-events: none;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,.38), transparent);
  animation: ipaShine 5.5s ease-in-out infinite;
}
.cfk-submit:hover i { animation: qBounce .6s ease; transform: scale(1.12); }

/* status quick-pick chips */
.cfk-status-picks { display: flex; gap: 7px; margin-top: 9px; }
.cfk-status-pick {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px;
  border-radius: 9px; font-size: 11.5px; font-weight: 700; cursor: pointer;
  background: var(--input-bg); border: 1px solid var(--border); color: var(--text-dim);
  transition: all .18s ease; user-select: none;
}
.cfk-status-pick:hover { transform: translateY(-1px); border-color: var(--accent); color: var(--accent); box-shadow: 0 4px 12px var(--accent-glow); }
.cfk-status-pick:hover i { animation: qBounce .5s ease; }
.cfk-status-pick i { font-size: 11px; }
.cfk-status-pick.active { color: #34d399; border-color: rgba(52,211,153,.45); background: rgba(52,211,153,.12); }
.cfk-status-pick.rose.active { color: #fb7185; border-color: rgba(251,113,133,.45); background: rgba(251,113,133,.12); }

/* live Server DC & RC indicator (below the Status quick-picks) */
.cfk-dcrc {
  margin-top: 10px; border-radius: 10px;
  border: 1px dashed var(--border-strong);
  background: var(--input-bg); padding: 10px 12px;
}
.cfk-dcrc-empty { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--text-dim); }
.cfk-dcrc-empty i { color: var(--accent); }
.cfk-dcrc-state {
  display: flex; align-items: center; gap: 8px;
  border-radius: 9px; padding: 8px 12px;
  border: 1px solid transparent;
  transition: all .25s ease;
}
.cfk-dcrc-state.is-connected { color: #34d399; border-color: rgba(52,211,153,.45); background: rgba(52,211,153,.12); }
.cfk-dcrc-state.is-de-active { color: #fb7185; border-color: rgba(251,113,133,.45); background: rgba(251,113,133,.12); }
.cfk-dcrc-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; position: relative; flex-shrink: 0; }
.cfk-dcrc-state.is-connected .cfk-dcrc-dot::after,
.cfk-dcrc-state.is-de-active .cfk-dcrc-dot::after {
  content: ''; position: absolute; inset: -4px; border-radius: 50%;
  background: currentColor; opacity: .35; animation: pingSoft 1.9s ease-out infinite;
}
.cfk-dcrc-label { font-size: 12px; font-weight: 800; }
.cfk-dcrc-sub { font-size: 11px; opacity: .75; margin-left: auto; text-align: right; }
.cfk-dcrc-ic { font-size: 13px; }

/* two-column + hdd grid helpers */
.cfk-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.cfk-hdd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 10px; margin-top: 2px; }

/* textarea icon alignment */
.cfk-area > i { top: 16px; transform: none; }
.cfk-area .input { padding-top: 11px; }
/* ------------------------------ Table accents ----------------------------- */
.cfk-table-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.cfk-search { position: relative; flex: 1; max-width: 320px; }
.cfk-search > i { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--text-dim); font-size: 13px; transition: color .2s; }
.cfk-search:focus-within > i { color: var(--accent); filter: drop-shadow(0 0 6px var(--accent-glow)); }
.cfk-search .input { padding-left: 38px; padding-top: 9px; padding-bottom: 9px; }

.cfk-name { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 700; color: var(--text-heading); }
.cfk-name i { color: #34d399; font-size: 11px; animation: iconPulse 3.4s ease-in-out infinite; }
.cfk-dc {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 8px;
  font-size: 11.5px; font-weight: 600; color: #60a5fa;
  background: rgba(59,130,246,.12); border: 1px solid rgba(59,130,246,.32); white-space: nowrap;
  max-width: 170px; overflow: hidden; text-overflow: ellipsis;
}
.cfk-dc i { font-size: 10px; animation: iconFloat 3.6s ease-in-out infinite; }
.cfk-spec {
  display: inline-flex; align-items: center; gap: 6px; max-width: 210px;
  font-size: 11.5px; font-weight: 600; color: var(--text-dim);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; vertical-align: middle;
}
.cfk-spec i { color: #f59e0b; font-size: 11px; animation: iconFloat 3.6s ease-in-out infinite; }
.cfk-spec-mem i { color: #22d3ee; }
.cfk-updated { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-dim); white-space: nowrap; }
.cfk-updated i { color: #f59e0b; font-size: 11px; animation: iconFloat 3.6s ease-in-out infinite; }

/* ------------------------------- Pagination ------------------------------ */
.cfk-pagination { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 16px; }
.cfk-pg-info { font-size: 12px; color: var(--text-dim); display: inline-flex; align-items: center; gap: 7px; }
.cfk-pg-info i { color: var(--accent); }
.cfk-pagination .pagination { margin: 0; }

/* ------------------------- Stacked section layout ------------------------- */
/* Assign Configuration sits on top; Deployed Configurations is its own
   standalone full-width section below it. */
.cfk-stack { display: flex; flex-direction: column; gap: 22px; position: relative; }
.cfk-assign-panel { overflow: hidden; }
.cfk-assign-inner { max-width: none; }
.cfk-deployed-panel {
  scroll-margin-top: 24px;
}
.cfk-deployed-panel::before {
  content: ''; position: absolute; top: 0; left: 22px; right: 22px; height: 3px;
  border-radius: 0 0 8px 8px;
  background: linear-gradient(90deg, #6366f1, #22d3ee 60%, transparent);
  opacity: .85;
}
/* Sync ring — flashes when the page lands here after assign/update/delete. */
.cfk-deployed-panel.cfk-synced { animation: cfkSyncFlash 1.2s ease-out; }
@keyframes cfkSyncFlash {
  0%   { box-shadow: 0 0 0 0 var(--accent-glow); border-color: var(--accent); }
  100% { box-shadow: 0 0 0 26px transparent; }
}

/* ----------------------------- Empty + modal ----------------------------- */
.cfk-empty-ic {
  width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center;
  font-size: 22px; color: #fff; background: linear-gradient(135deg, #34d399, #10b981 40%, #0ea5e9);
  background-size: 200% 200%; box-shadow: 0 12px 30px rgba(16,185,129,.35);
  animation: gradShift 6s ease infinite; position: relative;
}
.cfk-empty-ic i { animation: iconFloat 4s ease-in-out infinite; }
.cfk-modal-ic {
  width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center;
  font-size: 17px; color: #fff; flex-shrink: 0;
  background: linear-gradient(135deg, #34d399, #10b981 45%, #0ea5e9); background-size: 200% 200%;
  box-shadow: 0 8px 20px rgba(16,185,129,.35); animation: gradShift 6s ease infinite;
}
.cfk-modal-ic i { position: relative; z-index: 1; animation: iconPulse 3s ease-in-out infinite; }
.cfk-modal-box { max-width: 600px; }

/* --------------------------- Light overrides ----------------------------- */
[data-theme="light"] .cfk-core { box-shadow: 0 16px 40px rgba(16,185,129,.3); }
[data-theme="light"] .cfk-empty-ic { box-shadow: 0 12px 28px rgba(16,185,129,.22); }
[data-theme="light"] .cfk-badge { box-shadow: 0 8px 18px rgba(245,158,11,.3); }

/* ------------------------------ Responsive ------------------------------- */
@media (max-width: 760px) {
  .cfk-search { max-width: 100%; }
  .cfk-pagination { flex-direction: column; align-items: flex-start; }
  .cfk-two-col { grid-template-columns: 1fr; }
  .cfk-hdd-grid { grid-template-columns: 1fr; }
}






.toggle::after {
  content: ''; position: absolute; top: 2px; left: 2px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--text-dim); transition: transform .2s ease, background .2s ease;
}
.toggle-row input:checked + .toggle { background: var(--accent); border-color: var(--accent); }
.toggle-row input:checked + .toggle::after { transform: translateX(18px); background: #fff; }
.toggle-row input:focus-visible + .toggle { outline: 2px solid var(--accent); outline-offset: 2px; }

/* API key reveal box */
.key-reveal {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 14px 16px; border-radius: 12px;
  background: var(--input-bg); border: 1px solid var(--border-strong);
  font-size: 13px; word-break: break-all;
}

/* custom logo inside the sidebar brand tile */
.brand-icon-img {
  width: auto; height: auto; max-width: 100%;
  display: flex; align-items: center; justify-content: center;
  padding: 10px 18px; border-radius: 14px;
  background: var(--card-solid); border: 1px solid var(--border); overflow: hidden;
}
.brand-icon-img::after { display: none; }
.brand-icon-img .brand-logo { width: 100%; height: auto; max-width: 180px; max-height: 48px; object-fit: contain; }

/* highlighted row while a template is being edited */
.row-editing td { background: var(--accent-glow); }

/* ------------------------------ Responsive ------------------------------ */
@media (max-width: 1200px) {
  .grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .hero-art { display: none; }
  .search-box { width: 200px; }
  .search-box:focus-within { width: 240px; }
}
@media (max-width: 1120px) {
  .gv-body { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); box-shadow: none; }
  .sidebar.open { transform: translateX(0); box-shadow: 30px 0 80px rgba(0,0,0,.4); }
  .sidebar-backdrop { display: block; }
  .menu-toggle { display: grid; place-items: center; }
  .main { margin-left: 0; }
  .content { padding: 16px; }
  .search-box { width: 150px; }
  .search-box kbd { display: none; }
}
@media (max-width: 760px) {
  .grid.cols-4, .grid.cols-3, .grid.cols-2 { grid-template-columns: 1fr; }
  .topbar { height: 62px; padding: 0 14px; }
  .search-box { display: none; }
  .usr-name, .usr-role { display: none; }
  .usr-trigger .chevron { display: none; }
  .hero { padding: 24px 20px; }
  .hero-greeting { font-size: 20px; }
  .content { padding: 14px; }
  .profile-hero { flex-direction: column; align-items: flex-start; gap: 16px; }
  .brand-name, .brand-tag { display: none; }
  .sidebar { width: 240px; }
  .ch-plot { height: 215px; padding: 16px 10px 10px; }
  .ch-grid { padding: 16px 10px 42px; }
  .ch-label { font-size: 9.5px; }
  .gv-card .card-header { flex-wrap: wrap; gap: 10px; }
}

/* ===================== end AURORA design system ===================== */

/* ==========================================================================
   Application Setup · brand foundation workspace
   ========================================================================== */

/* ------------------------------- Hero -------------------------------- */
.asu-hero {
  background: linear-gradient(120deg, rgba(244,114,182,.13), rgba(99,102,241,.16) 50%, rgba(34,211,238,.10));
}
.asu-cp-cyan i { color: #22d3ee; }
.asu-cp-pink i { color: #f472b6; }

/* ------------------------------ Grid ------------------------------- */
.asu-grid { grid-template-columns: minmax(0, 1.55fr) minmax(340px, 1fr); gap: 22px; }
.asu-form-col { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.asu-form-col form { display: flex; flex-direction: column; gap: 20px; }
.asu-ws-ic { background: linear-gradient(135deg, #f472b6, #6366f1); box-shadow: 0 10px 24px rgba(244,114,182,.28); }
.asu-panel-ic-pink { background: linear-gradient(135deg, #f472b6, #db2777); box-shadow: 0 8px 18px rgba(219,39,119,.3); }
.asu-panel-ic-emerald { background: linear-gradient(135deg, #34d399, #059669); box-shadow: 0 8px 18px rgba(16,185,129,.35); }

/* --------------------------- Section blocks --------------------------- */
.asu-sec { border-top: 1px solid var(--border); margin-top: 18px; padding-top: 18px; }
.asu-sec-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.asu-sec-ic {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  font-size: 15px; color: #fff; flex-shrink: 0; position: relative; overflow: hidden;
}
.asu-sec-ic i { position: relative; z-index: 1; animation: iconPulse 3.2s ease-in-out infinite; }
.asu-cic-cyan { background: linear-gradient(135deg, #22d3ee, #0ea5e9); box-shadow: 0 8px 18px rgba(14,165,233,.3); }
.asu-cic-emerald { background: linear-gradient(135deg, #34d399, #059669); box-shadow: 0 8px 18px rgba(16,185,129,.3); }
.asu-sec-title { font-size: 13.5px; font-weight: 800; color: var(--text-heading); }
.asu-sec-sub { font-size: 11.5px; color: var(--text-dim); margin-top: 2px; }
.asu-recaptcha-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }

/* per-area reCAPTCHA key blocks */
.asu-rc-area {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--input-bg);
  padding: 14px;
  margin-bottom: 12px;
}
.asu-rc-area:last-child { margin-bottom: 0; }
.asu-rc-area-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.asu-rc-area-ic {
  width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center;
  font-size: 12px; color: #fff; flex-shrink: 0;
  background: linear-gradient(135deg, #22d3ee, #0ea5e9);
  box-shadow: 0 6px 14px rgba(14,165,233,.28);
}
.asu-rc-area-admin .asu-rc-area-ic {
  background: linear-gradient(135deg, #818cf8, #6366f1);
  box-shadow: 0 6px 14px rgba(99,102,241,.28);
}
.asu-rc-area-title { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.asu-rc-area-title strong { font-size: 12.5px; color: var(--text-heading); }
.asu-rc-area-title small { font-size: 11px; color: var(--text-dim); font-weight: 500; }

/* v3 score threshold block (shared by both login areas) */
.asu-rc-score {
  margin-top: 4px;
  border: 1px dashed var(--border-strong);
  border-radius: 14px;
  background: var(--input-bg);
  padding: 14px;
}
.asu-rc-score-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.asu-rc-score-ic {
  width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center;
  font-size: 12px; color: #fff; flex-shrink: 0;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  box-shadow: 0 6px 14px rgba(249,115,22,.28);
}
.asu-rc-score-note {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 11.5px; line-height: 1.55; color: var(--text-dim);
  padding: 10px 12px; border-radius: 10px;
  background: var(--accent-glow); border: 1px solid var(--border);
}
.asu-rc-score-note i { color: var(--accent-2); margin-top: 1px; }
.asu-rc-score-note strong { color: var(--text-heading); }

/* status chip */
.asu-key-chip {
  display: inline-flex; align-items: center; gap: 6px; margin-left: auto;
  padding: 5px 12px; border-radius: 99px; font-size: 10.5px; font-weight: 800;
  white-space: nowrap; transition: all .2s ease;
}
.asu-key-chip.on { background: var(--success-bg); color: var(--success); border: 1px solid rgba(16,185,129,.3); }
.asu-key-chip.off { background: var(--danger-bg); color: var(--danger); border: 1px solid rgba(239,68,68,.25); }
.asu-key-chip .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: iconPulse 2.4s ease-in-out infinite; }

/* 2FA toggle */
.asu-toggle { margin-bottom: 0; gap: 14px; }
.asu-toggle-client { margin-top: 12px; }
.asu-toggle-txt { display: flex; flex-direction: column; line-height: 1.4; }
.asu-toggle-txt strong { font-size: 13px; color: var(--text-heading); }
.asu-toggle-txt span { font-size: 11.5px; color: var(--text-dim); font-weight: 500; }

/* route-cache stale warning banner (Admin URL change) */
.asu-cache-banner {
  display: flex; align-items: flex-start; gap: 12px;
  background: linear-gradient(135deg, rgba(245,158,11,.14), rgba(249,115,22,.1));
  border: 1px solid rgba(245,158,11,.35);
  color: var(--text); padding: 13px 16px; border-radius: 12px; font-size: 13px; margin-bottom: 16px;
}
.asu-cache-banner > i { color: #f59e0b; font-size: 16px; margin-top: 1px; animation: iconPulse 2.6s ease-in-out infinite; }
.asu-cache-banner-txt { display: flex; flex-direction: column; gap: 3px; }
.asu-cache-banner-txt strong { color: #f59e0b; font-size: 13.5px; }
.asu-cache-banner-txt span { color: var(--text-dim); line-height: 1.55; }
.asu-cache-banner code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: rgba(245,158,11,.12); color: #fbbf24; border: 1px solid rgba(245,158,11,.25);
  padding: 1px 6px; border-radius: 6px; font-size: 12px;
}

/* ==================== Save button (animated) ==================== */
.asu-save {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 12px;
  width: 100%; margin-top: 20px; padding: 15px 22px;
  border: none; border-radius: 15px;
  font-family: inherit; font-size: 14px; font-weight: 800; letter-spacing: .02em;
  color: #fff; cursor: pointer; white-space: nowrap;
  overflow: hidden; isolation: isolate;
  background:
    linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,0) 48%),
    linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow:
    0 12px 28px -10px var(--accent-glow),
    inset 0 1px 0 rgba(255,255,255,.3),
    inset 0 -2px 5px rgba(0,0,0,.16);
  transition: transform .22s cubic-bezier(.34,1.56,.64,1), box-shadow .25s ease, filter .22s ease;
}
.asu-save:hover {
  transform: translateY(-2px);
  filter: brightness(1.07) saturate(1.06);
  box-shadow:
    0 18px 38px -12px var(--accent-glow),
    inset 0 1px 0 rgba(255,255,255,.36),
    inset 0 -2px 5px rgba(0,0,0,.16);
}
.asu-save:active { transform: translateY(0) scale(.985); box-shadow: 0 8px 16px -8px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,.22); }
.asu-save:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.asu-save.is-saving { pointer-events: none; }

/* perpetual shine sweep across the button face */
.asu-save::after {
  content: ''; position: absolute; top: 0; bottom: 0; left: -80%; width: 46%; z-index: 1;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,.4), transparent);
  transform: skewX(-18deg);
  animation: asuSaveShine 3.4s cubic-bezier(.4,0,.2,1) infinite;
  pointer-events: none;
}
@keyframes asuSaveShine { 0%, 46% { left: -80%; } 82%, 100% { left: 140%; } }

/* rotating light comet tracing the button border */
.asu-save-ring {
  position: absolute; inset: 0; z-index: 0; border-radius: 15px; pointer-events: none;
  padding: 2px;
  background: conic-gradient(from 0deg, transparent 0 72%, rgba(255,255,255,.85) 93%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  animation: asuSaveRing 4.5s linear infinite;
  opacity: .6;
}
@keyframes asuSaveRing { to { transform: rotate(360deg); } }

/* glass icon badge */
.asu-save-ic {
  position: relative; z-index: 2; width: 32px; height: 32px; flex-shrink: 0;
  display: grid; place-items: center; border-radius: 10px; color: #fff;
  background: rgba(255,255,255,.16);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.24);
  animation: asuSaveIconGlow 2.8s ease-in-out infinite;
}
.asu-save-ic-disk { font-size: 14px; animation: asuSaveIconFloat 3.2s ease-in-out infinite; }
.asu-save-spin { display: none; font-size: 15px; }
@keyframes asuSaveIconFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }
@keyframes asuSaveIconGlow {
  0%,100% { box-shadow: inset 0 0 0 1px rgba(255,255,255,.24), 0 0 0 0 rgba(255,255,255,0); }
  50%    { box-shadow: inset 0 0 0 1px rgba(255,255,255,.36), 0 0 18px 3px rgba(255,255,255,.24); }
}
/* "press the floppy into the slot" on hover/active */
.asu-save:hover .asu-save-ic { animation-play-state: paused; box-shadow: inset 0 0 0 1px rgba(255,255,255,.42); }
.asu-save:hover .asu-save-ic-disk { animation: none; transform: translateY(3px) scale(.9); transition: transform .25s cubic-bezier(.34,1.56,.64,1); }
.asu-save:active .asu-save-ic-disk { transform: translateY(5px) scale(.85); }

/* label + arrow */
.asu-save-label { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 9px; }
.asu-save-txt { text-shadow: 0 1px 2px rgba(0,0,0,.18); }
.asu-save-arrow { font-size: 12px; opacity: .92; transition: transform .25s cubic-bezier(.34,1.56,.64,1); }
.asu-save:hover .asu-save-arrow { transform: translateX(4px); }

/* saving state */
.asu-save.is-saving .asu-save-ic { animation-play-state: paused; }
.asu-save.is-saving .asu-save-ic-disk { display: none; }
.asu-save.is-saving .asu-save-spin { display: inline-block; }
.asu-save.is-saving::after { animation: none; }
.asu-save.is-saving .asu-save-ring { animation-play-state: paused; }

@media (prefers-reduced-motion: reduce) {
  .asu-save, .asu-save::after, .asu-save-ring, .asu-save-ic, .asu-save-ic-disk, .asu-save-arrow { animation: none !important; transition: none !important; }
}

/* --------------------------- File uploads --------------------------- */
.asu-file-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.asu-file-card { display: flex; flex-direction: column; min-width: 0; }
.asu-file-label {
  font-size: 11px; font-weight: 800; color: var(--text-dim); margin-bottom: 7px;
  text-transform: uppercase; letter-spacing: .08em;
}
.asu-drop {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; padding: 14px 10px; border-radius: 14px; cursor: pointer; text-align: center;
  border: 1.5px dashed var(--border-strong); background: var(--input-bg);
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.asu-drop:hover { border-color: var(--accent); background: var(--input-bg-focus); box-shadow: 0 0 0 4px var(--accent-glow); }
.asu-drop.has-file { border-style: solid; border-color: var(--success); background: var(--success-bg); }
.asu-drop i { font-size: 18px; color: var(--accent); animation: iconFloat 3.6s ease-in-out infinite; }
.asu-drop span { font-size: 12px; font-weight: 700; color: var(--text-heading); }
.asu-drop small { font-size: 10px; color: var(--text-dim); }
.asu-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* preview boxes */
.asu-preview-box {
  margin-top: 10px; border-radius: 14px; padding: 18px 12px;
  border: 1.5px dashed var(--border-strong); background: var(--input-bg);
  display: grid; place-items: center; min-height: 92px; text-align: center;
  transition: border-color .2s ease, background .2s ease;
}
.asu-preview-box.has-img { border-style: solid; border-color: rgba(16,185,129,.35); background: linear-gradient(120deg, var(--success-bg), transparent); }
.asu-preview { max-width: 100%; max-height: 120px; object-fit: contain; }
.asu-preview-ph { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11px; color: var(--text-dim); }
.asu-preview-ph i { font-size: 20px; color: var(--border-strong); }
.asu-preview-fav { min-height: 74px; }
.asu-preview-fav-img { max-height: 56px; max-width: 56px; }

/* logo dimensions */
.asu-dims { margin-top: 20px; border-top: 1px solid var(--border); padding-top: 16px; }
.asu-dims-title {
  display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 800;
  color: var(--text-dim); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px;
}
.asu-dims-title i { color: var(--accent); }
.asu-dims-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.asu-dims-grid .field { margin-bottom: 0; }
.asu-dims-grid label { font-size: 11px !important; }



/* --------------------------- Live preview --------------------------- */
.asu-pv { position: sticky; top: 18px; align-self: start; }
.asu-live-dot {
  position: relative; width: 10px; height: 10px; border-radius: 50%;
  background: #34d399; margin-left: auto; flex-shrink: 0;
}
.asu-live-dot::after {
  content: ''; position: absolute; inset: -5px; border-radius: 50%;
  border: 2px solid rgba(52,211,153,.5); animation: ringPulse 2s ease-out infinite;
}
.asu-pv-stage { display: flex; flex-direction: column; gap: 16px; }

/* admin browser mockup */
.asu-frame { border-radius: 14px; overflow: hidden; border: 1px solid var(--border-strong); box-shadow: 0 14px 32px rgba(2,6,23,.18); }
.asu-frame-bar { display: flex; align-items: center; gap: 6px; padding: 8px 12px; background: #0f172a; }
[data-theme="light"] .asu-frame-bar { background: #e2e8f0; }
.asu-fb-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.asu-fb-dot.r { background: #ef4444; }
.asu-fb-dot.y { background: #f59e0b; }
.asu-fb-dot.g { background: #22c55e; }
.asu-frame-url {
  margin-left: 8px; font-size: 9.5px; color: #94a3b8; background: rgba(255,255,255,.08);
  padding: 3px 10px; border-radius: 99px; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
[data-theme="light"] .asu-frame-url { background: rgba(0,0,0,.06); color: #475569; }
.asu-frame-body { display: grid; grid-template-columns: 96px minmax(0, 1fr); min-height: 152px; }
.asu-frame-side { background: linear-gradient(180deg, #0f172a, #111827); padding: 12px 10px; display: flex; flex-direction: column; gap: 8px; }
[data-theme="light"] .asu-frame-side { background: linear-gradient(180deg, #1e293b, #0f172a); }
.asu-frame-side-brand { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; margin-bottom: 10px; }
.asu-frame-logo {
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  color: #fff; font-size: 14px; background: linear-gradient(135deg, #818cf8, #22d3ee);
  overflow: hidden; position: relative;
}
.asu-frame-logo i { animation: iconPulse 3s ease-in-out infinite; }
.asu-frame-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.asu-frame-name {
  font-size: 10px; font-weight: 800; color: #e2e8f0;
  max-width: 84px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.asu-frame-nav { display: flex; align-items: center; gap: 7px; font-size: 9px; color: #64748b; padding: 6px 8px; border-radius: 7px; }
.asu-frame-nav i { font-size: 8.5px; width: 12px; text-align: center; }
.asu-frame-nav.active { background: rgba(99,102,241,.18); color: #a5b4fc; }
.asu-frame-main { background: #f1f5f9; padding: 10px; display: flex; flex-direction: column; gap: 10px; }
.asu-frame-top { display: flex; justify-content: space-between; align-items: center; font-size: 10px; font-weight: 800; color: #334155; }
.asu-frame-pill { font-size: 8px; color: #059669; background: #d1fae5; padding: 3px 8px; border-radius: 99px; font-weight: 800; white-space: nowrap; }
.asu-frame-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.asu-frame-card { height: 42px; border-radius: 8px; background: #fff; border: 1px solid #e2e8f0; box-shadow: 0 3px 8px rgba(2,6,23,.05); }

/* client area mockup */
.asu-client { border-radius: 14px; border: 1px solid var(--border-strong); padding: 14px; background: var(--card); }
.asu-client-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.asu-client-logo {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  font-size: 18px; color: #fff; background: linear-gradient(135deg, #818cf8, #22d3ee);
  overflow: hidden; flex-shrink: 0; position: relative;
}
.asu-client-logo i { animation: iconPulse 3s ease-in-out infinite; }
.asu-client-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.asu-client-name { font-size: 13px; font-weight: 800; color: var(--text-heading); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.asu-client-url { font-size: 10.5px; color: var(--text-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.asu-client-row { display: flex; align-items: center; gap: 9px; font-size: 11.5px; color: var(--text-dim); padding: 7px 0; border-top: 1px solid var(--border); }
.asu-client-row i { color: var(--accent); width: 15px; text-align: center; }

/* favicon summary */
.asu-pv-foot { display: flex; align-items: center; gap: 12px; border-radius: 14px; padding: 12px; background: var(--input-bg); border: 1px solid var(--border); }
.asu-pv-fav {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  font-size: 15px; color: var(--text-dim); background: var(--card);
  border: 1px solid var(--border-strong); overflow: hidden; flex-shrink: 0; position: relative;
}
.asu-pv-fav i { animation: iconPulse 3s ease-in-out infinite; }
.asu-pv-fav img { width: 100%; height: 100%; object-fit: contain; }
.asu-pv-foot-title { font-size: 12px; font-weight: 800; color: var(--text-heading); }
.asu-pv-foot-sub { font-size: 11px; color: var(--text-dim); margin-top: 2px; }

/* ----------------------------- Responsive ---------------------------- */
@media (max-width: 1280px) {
  .asu-file-grid { grid-template-columns: 1fr; }
  .asu-dims-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  .asu-grid { grid-template-columns: 1fr; }
  .asu-pv { position: static; }
}
@media (max-width: 760px) {
  .asu-recaptcha-grid { grid-template-columns: 1fr; }
  .asu-file-grid { grid-template-columns: 1fr; }
  .asu-dims-grid { grid-template-columns: 1fr; }
}


/* -------------------- Brand logos: light/dark mode switching -------------------- */
/* SVG wordmarks report no usable intrinsic size when width:auto is combined with
   max-width/max-height, which collapsed the light-mode logo to 0x0. A definite
   width makes Chrome/Firefox resolve the SVG's intrinsic size correctly. */
.brand-logo { width: 100%; height: auto; object-fit: contain; }
.brand-logo-dark { display: none; }
[data-theme="dark"] .brand-logo-dark { display: block; }
[data-theme="dark"] .has-dark-logo .brand-logo-light { display: none; }

/* Login page logo (auth) */
.auth-logo-img { display: flex; align-items: center; justify-content: center; }
.auth-logo-img .brand-logo { display: block; width: 100%; max-width: 220px; max-height: 64px; object-fit: contain; }
.auth-logo-img.has-dark-logo { flex-direction: column; gap: 8px; }
/* Login page logo: show only the variant matching the active theme (never both). */
.auth-logo-img .brand-logo-dark { display: none; }
[data-theme="dark"] .auth-logo-img .brand-logo-dark { display: block; }
[data-theme="dark"] .auth-logo-img.has-dark-logo .brand-logo-light { display: none; }

/* Dark-mode badge on the Application Setup branding cards */
.asu-dark-tag {
  display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; padding: 2px 8px;
  border-radius: 999px; font-size: 9.5px; font-weight: 700; letter-spacing: .03em;
  color: var(--accent); background: var(--accent-glow); vertical-align: middle;
}

/* Live-preview mockups: centered logo + tagline */
.asu-frame-side-brand { align-items: center; text-align: center; }
.asu-frame-logo.has-logo {
  width: auto; height: auto; display: flex; flex-direction: column; align-items: center;
  padding: 6px 10px; border-radius: 10px; background: var(--card-solid);
  border: 1px solid var(--border);
}
.asu-frame-tag { display: flex; align-items: center; gap: 5px; font-size: 9.5px; color: #94a3b8; font-weight: 600; }
.asu-frame-tag .tag-dot { width: 5px; height: 5px; }
.asu-client-head.has-logo { flex-direction: column; align-items: center; text-align: center; gap: 6px; }
.asu-client-logo.has-logo {
  width: auto; height: auto; display: flex; flex-direction: column; align-items: center;
  padding: 6px 12px; border-radius: 10px; background: var(--card-solid);
  border: 1px solid var(--border);
}
.asu-client-tag { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--text-dim); font-weight: 600; }

/* ============================================================
   Mail Settings page — modern redesign (2026)
   ============================================================ */

.mail-hero {
  display: flex; align-items: center; gap: 18px; padding: 26px 28px; margin-bottom: 20px;
  border-radius: 20px; border: 1px solid var(--border);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 13%, transparent), transparent 55%),
    var(--dropdown-bg);
  box-shadow: var(--shadow-md); position: relative; overflow: hidden;
}
.mail-hero::after {
  content: ''; position: absolute; right: -70px; top: -70px; width: 210px; height: 210px;
  border-radius: 50%; background: radial-gradient(circle, var(--accent-glow), transparent 70%);
  opacity: .55; animation: heroGlow 6s ease-in-out infinite; pointer-events: none;
}
.mail-hero-icon {
  width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center;
  color: #fff; font-size: 26px; flex-shrink: 0; position: relative;
  background: linear-gradient(135deg, #818cf8, #6366f1 45%, #22d3ee); background-size: 200% 200%;
  animation: gradShift 6s ease infinite; box-shadow: 0 12px 30px var(--accent-glow);
}
.mail-hero-icon i { animation: iconFloat 3.4s ease-in-out infinite; }
.mail-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 5px;
}
.mail-hero h1 { font-size: 24px; font-weight: 800; letter-spacing: -.02em; margin: 0 0 6px; color: var(--text-heading); }
.mail-hero p { margin: 0; font-size: 13.5px; color: var(--text-dim); max-width: 540px; line-height: 1.6; }
.mail-hero-status {
  margin-left: auto; display: inline-flex; align-items: center; gap: 8px; padding: 8px 15px;
  border-radius: 99px; font-size: 12px; font-weight: 700; white-space: nowrap;
  background: rgba(245, 158, 11, .12); color: #f59e0b; border: 1px solid rgba(245, 158, 11, .3);
}
.mail-hero-status.is-set { background: rgba(16, 185, 129, .12); color: #10b981; border-color: rgba(16, 185, 129, .3); }
.mail-hero-status .status-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: pingDot 2s cubic-bezier(0, 0, .2, 1) infinite; }

/* quick stat cards */
.mail-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
.mail-stat {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 16px;
  border: 1px solid var(--border); background: var(--dropdown-bg); box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.mail-stat:hover { transform: translateY(-2px); border-color: var(--border-strong); box-shadow: var(--shadow-lg); }
.mail-stat i {
  width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center;
  color: #fff; font-size: 17px; flex-shrink: 0;
}
.mail-stat i.c1 { background: linear-gradient(135deg, #818cf8, #6366f1); box-shadow: 0 6px 16px rgba(99, 102, 241, .35); animation: iconFloat 4s ease-in-out infinite; }
.mail-stat i.c2 { background: linear-gradient(135deg, #22d3ee, #0ea5e9); box-shadow: 0 6px 16px rgba(14, 165, 233, .35); animation: iconFloat 4.4s ease-in-out infinite; }
.mail-stat i.c3 { background: linear-gradient(135deg, #f472b6, #db2777); box-shadow: 0 6px 16px rgba(219, 39, 119, .35); animation: iconFloat 4.8s ease-in-out infinite; }
.mail-stat i.c4 { background: linear-gradient(135deg, #34d399, #059669); box-shadow: 0 6px 16px rgba(16, 185, 129, .35); animation: iconFloat 5.2s ease-in-out infinite; }
.mail-stat > div { min-width: 0; }
.mail-stat span { display: block; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--text-dim); margin-bottom: 3px; }
.mail-stat strong { display: block; font-size: 13.5px; color: var(--text-heading); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* page grid */
.mail-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.mail-side { display: flex; flex-direction: column; gap: 20px; }
@media (max-width: 1120px) { .mail-grid { grid-template-columns: 1fr; } .mail-stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .mail-stats { grid-template-columns: 1fr; }
  .mail-hero { flex-wrap: wrap; }
  .mail-hero-status { margin-left: 0; }
}

/* mail cards */
.mail-card { padding: 0; overflow: hidden; }
.mail-card-head {
  display: flex; align-items: center; justify-content: space-between; padding: 17px 22px;
  border-bottom: 1px solid var(--border); background: linear-gradient(180deg, rgba(255, 255, 255, .03), transparent);
}
.mail-card-title { display: flex; align-items: center; gap: 10px; font-size: 14.5px; font-weight: 700; color: var(--text-heading); }
.mail-card-title i { color: var(--accent); filter: drop-shadow(0 0 6px var(--accent-glow)); animation: iconPulse 4s ease-in-out infinite; }
.mail-card-tag {
  font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 4px 11px; border-radius: 99px; background: var(--accent-glow); color: var(--accent-2);
}
.mail-card-body { padding: 22px; }

/* mailer picker cards */
.mailer-picker { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
.mailer-opt { position: relative; }
.mailer-opt input { position: absolute; opacity: 0; pointer-events: none; }
.mailer-opt label {
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 15px 10px;
  cursor: pointer; border: 1.5px solid var(--border); border-radius: 14px; background: var(--input-bg);
  color: var(--text-dim); font-size: 12px; font-weight: 600; text-align: center;
  transition: all .22s cubic-bezier(.4, 0, .2, 1);
}
.mailer-opt label i { font-size: 20px; transition: transform .3s cubic-bezier(.34, 1.56, .64, 1); }
.mailer-opt label:hover { border-color: var(--border-strong); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.mailer-opt label:hover i { transform: translateY(-2px) scale(1.12); }
.mailer-opt input:checked + label {
  border-color: var(--accent); color: var(--accent); background: var(--accent-glow);
  box-shadow: 0 0 0 4px var(--accent-glow), 0 10px 24px var(--accent-glow);
}
.mailer-opt input:checked + label i { transform: scale(1.18); animation: mailerPop .4s cubic-bezier(.34, 1.56, .64, 1); }
@media (max-width: 560px) { .mailer-picker { grid-template-columns: repeat(2, 1fr); } }

/* icon-prefixed inputs */
.icon-field { position: relative; }
.icon-field > i {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--text-dim); font-size: 14px; pointer-events: none; z-index: 2;
  transition: color .2s ease, transform .25s ease;
}
.icon-field .input, .icon-field .select { padding-left: 42px; }
.icon-field:focus-within > i { color: var(--accent); transform: translateY(-50%) scale(1.12); }
.icon-field .pwd-toggle {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: var(--text-dim); cursor: pointer;
  font-size: 14px; padding: 6px; border-radius: 8px; transition: color .2s ease; z-index: 2;
}
.icon-field .pwd-toggle:hover { color: var(--accent); }

.smtp-fields { transition: opacity .25s ease, transform .25s ease; }
.smtp-fields.is-hidden { opacity: .35; pointer-events: none; transform: translateY(-4px); }

/* save row */
.mail-save-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 22px; padding-top: 20px; border-top: 1px dashed var(--border); }
.btn-send { min-width: 210px; }
.btn-send i { animation: sendFloat 2.6s ease-in-out infinite; }
.btn-send:disabled { opacity: .72; cursor: wait; }
.btn-send .spinner, .btn-test .spinner { display: none; }
.btn-send.is-loading .spinner, .btn-test.is-loading .spinner { display: inline-block; }
.btn-send.is-loading i, .btn-test.is-loading i { animation: spin .8s linear infinite; }
.mail-save-hint { font-size: 12px; color: var(--text-dim); display: inline-flex; align-items: center; gap: 6px; }
.mail-save-hint i { color: var(--success); }

/* OTP security toggle */
.otp-toggle {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px;
  border: 1px solid var(--border); border-radius: 14px; background: var(--input-bg);
}
.otp-toggle .otp-ic {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  font-size: 16px; color: #fff; flex-shrink: 0;
  background: linear-gradient(135deg, #34d399, #059669); box-shadow: 0 6px 16px rgba(16, 185, 129, .3);
  animation: iconPulse 4.2s ease-in-out infinite;
}
.otp-toggle .otp-txt { min-width: 0; }
.otp-toggle .otp-txt strong { display: block; font-size: 13px; color: var(--text-heading); }
.otp-toggle .otp-txt span { display: block; font-size: 11.5px; color: var(--text-dim); margin-top: 2px; }
.switch { position: relative; display: inline-block; width: 44px; height: 24px; margin-left: auto; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .slider { position: absolute; inset: 0; border-radius: 99px; background: var(--border-strong); cursor: pointer; transition: background .25s ease; }
.switch .slider::before {
  content: ''; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px;
  border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .25);
  transition: transform .25s cubic-bezier(.34, 1.56, .64, 1);
}
.switch input:checked + .slider { background: linear-gradient(135deg, #34d399, #059669); }
.switch input:checked + .slider::before { transform: translateX(20px); }

/* connection card */
.conn-row { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.conn-dot {
  width: 12px; height: 12px; border-radius: 50%; background: #f59e0b; flex-shrink: 0;
  animation: pingDot 1.8s cubic-bezier(0, 0, .2, 1) infinite; box-shadow: 0 0 0 0 rgba(245, 158, 11, .5);
}
.conn-dot.ok { background: #10b981; box-shadow: 0 0 0 0 rgba(16, 185, 129, .5); }
.conn-dot.bad { background: #ef4444; box-shadow: none; animation: none; }
.conn-row strong { display: block; font-size: 13px; color: var(--text-heading); }
.conn-row span { display: block; font-size: 11.5px; color: var(--text-dim); margin-top: 2px; word-break: break-all; }
.btn-test { width: 100%; }

/* template mini-list */
.tpl-list { display: flex; flex-direction: column; gap: 8px; margin: 14px 0 16px; }
.tpl-row {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border-radius: 12px; border: 1px solid var(--border); background: var(--input-bg);
}
.tpl-row i { color: var(--accent); font-size: 14px; width: 18px; text-align: center; }
.tpl-row .mono { font-size: 11.5px; color: var(--text-heading); }
.tpl-row span:last-child {
  margin-left: auto; font-size: 10.5px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .05em; color: var(--success);
}

/* security note */
.mail-security-note {
  display: flex; gap: 12px; padding: 14px 16px; border-radius: 14px;
  background: var(--accent-glow); border: 1px solid var(--border);
}
.mail-security-note i { color: var(--accent-2); font-size: 18px; margin-top: 2px; }
.mail-security-note p { margin: 0; font-size: 12.5px; line-height: 1.6; color: var(--text-dim); }
.mail-security-note code {
  background: var(--input-bg); border: 1px solid var(--border); padding: 2px 6px;
  border-radius: 6px; font-size: 11px; color: var(--text-heading);
}

/* inline alert */
.mail-alert { display: flex; gap: 10px; align-items: flex-start; padding: 13px 16px; border-radius: 14px; margin-bottom: 18px; font-size: 13px; line-height: 1.6; border: 1px solid; }
.mail-alert.ok { background: rgba(16, 185, 129, .1); border-color: rgba(16, 185, 129, .35); }
.mail-alert.err { background: rgba(239, 68, 68, .1); border-color: rgba(239, 68, 68, .35); }
.mail-alert i { color: inherit; }

/* ============================================================
   OTP login page + login hint (2026)
   ============================================================ */

.otp-icon {
  position: relative; width: 66px; height: 66px; border-radius: 18px; margin: 0 auto 16px;
  display: grid; place-items: center; color: #fff; font-size: 27px;
  background: linear-gradient(135deg, #818cf8, #6366f1 45%, #22d3ee); background-size: 200% 200%;
  animation: gradShift 6s ease infinite; box-shadow: 0 12px 30px var(--accent-glow);
}
.otp-icon i { animation: iconPulse 3s ease-in-out infinite; }
.auth-sub .masked { color: var(--text-heading); font-weight: 700; letter-spacing: .02em; }

.otp-boxes { display: flex; gap: 10px; justify-content: center; margin: 6px 0 20px; }
.otp-box {
  width: 52px; height: 60px; border: 1.5px solid var(--border); border-radius: 14px;
  background: var(--input-bg); color: var(--text-heading); font-size: 26px; font-weight: 800;
  text-align: center; outline: none; caret-color: var(--accent); font-family: inherit;
  transition: border-color .2s ease, box-shadow .2s ease, transform .15s ease;
}
.otp-box:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-glow); transform: translateY(-2px); }
.otp-box.filled { border-color: var(--accent-2); background: var(--accent-glow); }
@media (max-width: 480px) { .otp-box { width: 44px; height: 54px; font-size: 22px; } }

.otp-warn {
  display: flex; align-items: center; justify-content: center; gap: 8px; margin: -8px 0 16px;
  padding: 9px 12px; border-radius: 10px; font-size: 12px; font-weight: 600;
  background: rgba(245, 158, 11, .12); color: #f59e0b; border: 1px solid rgba(245, 158, 11, .3);
}
.otp-warn i { font-size: 13px; }

.btn-otp-verify { animation: authIn .5s cubic-bezier(.22, 1, .36, 1) both; }
.btn-otp-verify i { animation: sendFloat 2.6s ease-in-out infinite; }
.btn-otp-verify:disabled { opacity: .6; cursor: not-allowed; }

.otp-timer {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 12.5px; color: var(--text-dim); margin: 16px 0 0;
}
.otp-timer i { color: var(--accent-2); animation: iconPulse 3.6s ease-in-out infinite; }
.otp-resend-wrap { text-align: center; margin-top: 14px; }
.btn-resend:disabled { opacity: .55; cursor: not-allowed; }
.btn-resend .spin { display: none; }
.btn-resend.is-loading .spin { display: inline-block; animation: spin .8s linear infinite; }
.btn-resend.is-loading .tick { display: none; }

.otp-login-hint {
  display: flex; align-items: flex-start; gap: 9px; padding: 11px 13px; border-radius: 12px;
  margin: -6px 0 16px; background: var(--accent-glow); border: 1px solid var(--border);
  font-size: 12.5px; line-height: 1.5; color: var(--text-dim);
}
.otp-login-hint i { color: var(--accent-2); margin-top: 1px; }
.otp-login-hint strong { color: var(--text-heading); }

/* keyframes used by the mail + OTP pages */
@keyframes heroGlow { 0%, 100% { transform: scale(1); opacity: .55; } 50% { transform: scale(1.15); opacity: .85; } }
@keyframes mailerPop { 0% { transform: scale(.6); } 60% { transform: scale(1.25); } 100% { transform: scale(1.18); } }
@keyframes sendFloat { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(4px) translateY(-1px); } }
@keyframes spin { to { transform: rotate(360deg); } }



/* ==========================================================================
   Localization Settings · i18n workspace
   ========================================================================== */

/* -------------------------------- Hero -------------------------------- */
.loc-hero {
  background: linear-gradient(120deg, rgba(34,211,238,.18), rgba(99,102,241,.14) 48%, rgba(244,114,182,.10));
  border-color: rgba(34,211,238,.30);
  box-shadow: 0 18px 50px rgba(14,165,233,.18);
}
[data-theme="light"] .loc-hero { box-shadow: 0 18px 44px rgba(14,165,233,.14); }
.loc-cp-cyan i { color: #22d3ee; }
.loc-cp-pink i { color: #f472b6; }
.loc-art-core {
  position: relative; width: 88px; height: 88px; border-radius: 24px;
  display: grid; place-items: center; color: #fff; font-size: 38px;
  background: linear-gradient(135deg, #22d3ee, #6366f1 50%, #ec4899);
  background-size: 200% 200%; box-shadow: 0 16px 42px rgba(99,102,241,.45);
  animation: gradShift 6s ease infinite;
}
.loc-art-core i { position: relative; z-index: 1; animation: iconFloat 4.4s ease-in-out infinite; filter: drop-shadow(0 6px 16px rgba(0,0,0,.35)); }
.loc-art-core::after { content: ''; position: absolute; inset: 0; border-radius: 24px; border: 1px solid rgba(255,255,255,.35); animation: ringPulse 3.4s ease-out infinite; }
.loc-art-badge {
  position: absolute; right: 4px; top: 8px; width: 40px; height: 40px; border-radius: 13px;
  display: grid; place-items: center; color: #fff; font-size: 16px;
  background: linear-gradient(135deg, #34d399, #0ea5e9); box-shadow: 0 8px 20px rgba(14,165,233,.4);
}
.loc-art-badge i { position: relative; z-index: 1; animation: iconPulse 3s ease-in-out infinite; }
[data-theme="light"] .loc-art-core { box-shadow: 0 16px 40px rgba(14,165,233,.28); }
[data-theme="light"] .loc-art-badge { box-shadow: 0 8px 18px rgba(14,165,233,.28); }

/* ----------------------------- Workspace ----------------------------- */
.loc-ws { border-color: rgba(34,211,238,.18); overflow: visible; }
.loc-ws::before { display: none; }
.loc-ws-ic { background: linear-gradient(135deg, #22d3ee, #6366f1 50%, #ec4899); box-shadow: 0 10px 24px rgba(14,165,233,.35); }
.loc-grid { grid-template-columns: minmax(0, 1fr) 340px; }

/* ------------------------------- Panels ------------------------------ */
.loc-panel { margin-bottom: 16px; }
.loc-panel:last-child { margin-bottom: 0; }
.loc-panel-ic-amber { background: linear-gradient(135deg, #fbbf24, #f59e0b); box-shadow: 0 8px 18px rgba(245,158,11,.3); }

/* ---- combined Language + Timezone row ---- */
.loc-langtz-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0;
  align-items: start;
}
.loc-langtz-col { min-width: 0; padding-right: 22px; }
.loc-langtz-col + .loc-langtz-col {
  padding-right: 0; padding-left: 22px; border-left: 1px dashed var(--border);
}

/* ----------------------------- Dropdowns ----------------------------- */
.loc-dd { position: relative; }
.loc-dd-btn {
  width: 100%; display: flex; align-items: center; gap: 11px;
  padding: 11px 14px; border-radius: 13px; cursor: pointer;
  background: var(--input-bg); border: 1px solid var(--border);
  color: var(--text); font-family: inherit; font-size: 13.5px; text-align: left;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.loc-dd-btn:hover { border-color: var(--border-strong); }
.loc-dd.is-open .loc-dd-btn { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-glow); background: var(--input-bg-focus); }
.loc-dd-ic {
  width: 30px; height: 30px; border-radius: 9px; flex-shrink: 0;
  display: grid; place-items: center; font-size: 13px; color: var(--info);
  background: var(--info-bg);
}
.loc-dd-ic i { animation: iconPulse 3.2s ease-in-out infinite; }
.loc-dd-cur {
  flex: 1; min-width: 0; font-weight: 600; color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.loc-dd-code {
  flex-shrink: 0; font-size: 10.5px; font-weight: 700; color: var(--text-dim);
  background: var(--card); border: 1px solid var(--border);
  padding: 3px 8px; border-radius: 7px;
  font-family: "Cascadia Code", "Consolas", monospace; letter-spacing: .03em;
}
.loc-dd-chev { font-size: 11px; color: var(--text-dim); transition: transform .25s ease; }
.loc-dd.is-open .loc-dd-chev { transform: rotate(180deg); }

.loc-dd-menu {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 60;
  border-radius: 15px; background: var(--dropdown-bg); backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border); box-shadow: var(--shadow-lg); overflow: hidden;
  display: none; opacity: 0; transform: translateY(-6px) scale(.98);
  transform-origin: top; transition: opacity .18s ease, transform .18s ease;
}
.loc-dd-menu.show { display: block; opacity: 1; transform: translateY(0) scale(1); }
.loc-dd-menu-tz { min-width: 320px; }
[data-theme="light"] .loc-dd-menu { box-shadow: 0 22px 55px rgba(15,23,42,.18); }
.loc-dd-search {
  display: flex; align-items: center; gap: 9px; padding: 11px 14px;
  border-bottom: 1px solid var(--border); background: var(--input-bg);
}
.loc-dd-search > i { color: var(--text-dim); font-size: 12.5px; flex-shrink: 0; }
.loc-dd-search input { flex: 1; min-width: 0; background: none; border: none; outline: none; color: var(--text); font-size: 12.5px; font-family: inherit; }
.loc-dd-search input::placeholder { color: var(--text-dim); opacity: .6; }
.loc-dd-clear { color: var(--text-dim); font-size: 12px; cursor: pointer; opacity: .85; transition: color .15s ease; }
.loc-dd-clear:hover { color: var(--danger); }
.loc-dd-list { max-height: 280px; overflow-y: auto; padding: 7px; display: flex; flex-direction: column; gap: 2px; }
.loc-dd-list::-webkit-scrollbar { width: 8px; }
.loc-dd-list::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 99px; }
.loc-dd-item {
  display: flex; align-items: center; gap: 9px; width: 100%;
  padding: 8px 11px; border: none; background: none; cursor: pointer;
  border-radius: 9px; color: var(--text); font-family: inherit; font-size: 12.5px;
  text-align: left; transition: background .15s ease;
}
.loc-dd-item:hover { background: var(--input-bg); }
.loc-dd-item:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.loc-dd-item.selected { background: var(--info-bg); color: var(--text-heading); }
.loc-dd-item-name { flex: 1; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.loc-dd-item-zone { flex-shrink: 0; max-width: 130px; font-size: 10px; font-weight: 600; color: var(--text-dim); opacity: .75; font-family: "Cascadia Code", "Consolas", monospace; letter-spacing: .02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.loc-dd-item.selected .loc-dd-item-zone { color: var(--info); opacity: 1; }
.loc-dd-item-code { flex-shrink: 0; font-size: 10px; font-weight: 700; color: var(--text-dim); font-family: "Cascadia Code", "Consolas", monospace; letter-spacing: .03em; }
.loc-dd-item.selected .loc-dd-item-code { color: var(--info); }
.loc-dd-check { font-size: 13px; color: var(--info); opacity: 0; transform: scale(.5); transition: all .18s cubic-bezier(.34,1.56,.64,1); }
.loc-dd-item.selected .loc-dd-check { opacity: 1; transform: scale(1); }
.loc-dd-group { margin: 2px 0 4px; }
.loc-dd-group-label {
  padding: 8px 11px 4px; font-size: 9.5px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .14em; color: var(--text-dim); opacity: .7;
}
.loc-tz-now { color: var(--info); font-family: "Cascadia Code", "Consolas", monospace; font-size: 11.5px; }

/* --------------------------- Format cards ---------------------------- */
.loc-fmt-block { margin-top: 16px; }
.loc-fmt-block + .loc-fmt-block { margin-top: 22px; padding-top: 20px; border-top: 1px dashed var(--border); }
.loc-fmt-label {
  display: flex; align-items: center; gap: 8px; margin-bottom: 10px;
  font-size: 11.5px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .1em; color: var(--text-heading);
}
.loc-fmt-label i { color: var(--info); font-size: 12.5px; }
.loc-fmt-grid { display: grid; gap: 9px; }
.loc-fmt-grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.loc-fmt-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.loc-fmt-grid-2 { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); }
.loc-fmt-card {
  position: relative; display: flex; flex-direction: column; align-items: center;
  gap: 6px; padding: 13px 8px 11px; border-radius: 13px; cursor: pointer;
  text-align: center; background: var(--input-bg); border: 1px solid var(--border);
  min-width: 0; overflow: hidden; transition: all .2s ease;
}
.loc-fmt-card:hover { border-color: var(--border-strong); background: var(--input-bg-focus); transform: translateY(-2px); }
.loc-fmt-card.is-checked {
  border-color: rgba(34,211,238,.5);
  background: linear-gradient(160deg, rgba(34,211,238,.14), rgba(99,102,241,.08));
  box-shadow: 0 10px 26px rgba(14,165,233,.18), inset 0 1px 0 rgba(255,255,255,.06);
}
[data-theme="light"] .loc-fmt-card.is-checked { box-shadow: 0 10px 24px rgba(14,165,233,.14); }
.loc-fmt-card input { position: absolute; opacity: 0; pointer-events: none; }
.loc-fmt-card:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.loc-fmt-ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-size: 14px; color: #818cf8; background: rgba(99,102,241,.12); }
.loc-fmt-ic-cyan { color: #22d3ee; background: rgba(34,211,238,.12); }
.loc-fmt-ic-amber { color: #f59e0b; background: rgba(245,158,11,.12); }
.loc-fmt-card.is-checked .loc-fmt-ic { animation: iconPulse 2.4s ease-in-out infinite; }
.loc-fmt-name { font-size: 11.5px; font-weight: 700; color: var(--text); line-height: 1.35; overflow-wrap: anywhere; }
.loc-fmt-code {
  font-size: 9px; font-weight: 700; color: var(--text-dim);
  font-family: "Cascadia Code", "Consolas", monospace; letter-spacing: .02em;
  padding: 2px 6px; border-radius: 6px; background: var(--card); border: 1px solid var(--border);
}
.loc-fmt-check {
  position: absolute; top: 7px; right: 7px; font-size: 12px; color: #22d3ee;
  opacity: 0; transform: scale(.4); transition: all .2s cubic-bezier(.34,1.56,.64,1);
}
.loc-fmt-card.is-checked .loc-fmt-check { opacity: 1; transform: scale(1); }
.loc-fmt-live {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 11px;
  padding: 10px 14px; border-radius: 12px;
  background: linear-gradient(90deg, rgba(34,211,238,.08), rgba(99,102,241,.06));
  border: 1px dashed var(--border-strong);
}
[data-theme="light"] .loc-fmt-live { border-color: rgba(14,165,233,.35); }
.loc-fmt-live-tag {
  display: inline-flex; align-items: center; gap: 5px; font-size: 10px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .12em; color: var(--info);
}
.loc-fmt-live-out {
  font-size: 14px; font-weight: 800; color: var(--text-heading);
  font-family: "Cascadia Code", "Consolas", monospace; letter-spacing: .02em; word-break: break-all;
}
.loc-time-card.is-hidden { display: none; }

/* --------------------------- 12 / 24 hour mode ------------------------ */
.loc-time-mode { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-bottom: 9px; }
.loc-mode-btn {
  display: flex; align-items: center; gap: 10px; padding: 12px 13px;
  border-radius: 13px; cursor: pointer; text-align: left;
  background: var(--input-bg); border: 1px solid var(--border);
  color: var(--text); font-family: inherit; transition: all .2s ease;
}
.loc-mode-btn:hover { border-color: var(--border-strong); background: var(--input-bg-focus); }
.loc-mode-btn > i { font-size: 15px; color: var(--text-dim); transition: color .2s ease; }
.loc-mode-txt { flex: 1; min-width: 0; }
.loc-mode-txt strong { display: block; font-size: 12.5px; font-weight: 800; color: var(--text-heading); }
.loc-mode-txt small { font-size: 10.5px; color: var(--text-dim); transition: color .2s ease; }
.loc-mode-check {
  width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0; display: grid;
  place-items: center; font-size: 9px; color: #fff;
  background: var(--border-strong); opacity: 0; transform: scale(.4);
  transition: all .2s cubic-bezier(.34,1.56,.64,1);
}
.loc-mode-btn.is-active {
  border-color: rgba(34,211,238,.5);
  background: linear-gradient(160deg, rgba(34,211,238,.14), rgba(99,102,241,.08));
  box-shadow: 0 10px 26px rgba(14,165,233,.16);
}
.loc-mode-btn.is-active > i { color: #22d3ee; }
.loc-mode-btn.is-active .loc-mode-txt small { color: #67e8f9; }
[data-theme="light"] .loc-mode-btn.is-active .loc-mode-txt small { color: #0e7490; }
.loc-mode-btn.is-active .loc-mode-check { opacity: 1; transform: scale(1); background: linear-gradient(135deg, #22d3ee, #0ea5e9); }

/* ------------------------------ Week start ---------------------------- */
.loc-week-btns { display: flex; gap: 9px; flex-wrap: wrap; }
.loc-week-btn {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 16px;
  border-radius: 10px; cursor: pointer; font-size: 12px; font-weight: 700;
  font-family: inherit; color: var(--text-dim);
  background: var(--input-bg); border: 1px solid var(--border);
  transition: all .18s ease;
}
.loc-week-btn i { font-size: 10.5px; }
.loc-week-btn:hover { border-color: var(--border-strong); color: var(--text); }
.loc-week-btn.is-active {
  color: #a5b4fc; background: rgba(99,102,241,.14);
  border-color: rgba(129,140,248,.4); box-shadow: 0 6px 16px rgba(99,102,241,.18);
}
.loc-week-btn.is-active i { animation: qBounce .6s ease; }

/* ------------------------- Automatic localization --------------------- */
.loc-auto-row { display: flex; align-items: center; gap: 14px; }
.loc-auto-ic {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  font-size: 15px; color: #fff; flex-shrink: 0; box-shadow: 0 8px 18px rgba(14,165,233,.35);
  background: linear-gradient(135deg, #22d3ee, #0ea5e9);
}
.loc-auto-ic i { position: relative; z-index: 1; animation: iconPulse 3.2s ease-in-out infinite; }
.loc-auto-txt { flex: 1; min-width: 0; }
.loc-auto-status {
  display: flex; align-items: center; gap: 9px; margin-top: 14px; padding: 11px 13px;
  border-radius: 11px; font-size: 11.5px; line-height: 1.5; color: var(--text-dim);
  background: var(--input-bg); border: 1px solid var(--border); transition: all .2s ease;
}
.loc-auto-status i { color: var(--text-dim); font-size: 12px; transition: color .2s ease; }
.loc-auto-status.is-on { color: var(--success); background: var(--success-bg); border-color: rgba(16,185,129,.3); }
.loc-auto-status.is-on i { color: var(--success); animation: iconPulse 2.4s ease-in-out infinite; }

/* ------------------------------- Save row ----------------------------- */
.loc-save-row {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin-top: 4px; padding-top: 20px; border-top: 1px dashed var(--border);
}
.loc-save-btn { min-width: 230px; }
.loc-save-btn.is-loading .fa-floppy-disk { display: none; }

/* ------------------------- Sticky live preview ------------------------ */
.loc-pv { position: sticky; top: 18px; align-self: start; }
.loc-pv-card { padding: 18px; }
.loc-pv-head { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; }
.loc-pv-title { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; color: var(--text-heading); }
.loc-pv-title i { color: #fbbf24; animation: iconPulse 3s ease-in-out infinite; }

/* mini panel mockup */
.loc-pv-frame { border-color: rgba(34,211,238,.35); }
.loc-frame-side {
  background: linear-gradient(180deg, #111827, #0f172a);
  padding: 12px 10px; display: flex; flex-direction: column; gap: 7px;
}
[data-theme="light"] .loc-frame-side { background: linear-gradient(180deg, #1e293b, #0f172a); }
.loc-frame-brand {
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  color: #fff; font-size: 14px; background: linear-gradient(135deg, #22d3ee, #6366f1);
  margin-bottom: 4px;
}
.loc-frame-brand i { animation: iconPulse 3s ease-in-out infinite; }
.loc-frame-link { display: block; font-size: 9px; font-weight: 700; color: #64748b; padding: 6px 8px; border-radius: 7px; white-space: nowrap; }
.loc-frame-link.active { background: rgba(34,211,238,.16); color: #67e8f9; }
.loc-frame-main { background: #f1f5f9; padding: 10px; display: flex; flex-direction: column; gap: 10px; }
[data-theme="light"] .loc-frame-main { background: #eef2f7; }
.loc-frame-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 10px; font-weight: 800; color: #334155; }
.loc-frame-top > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.loc-frame-clock {
  display: flex; align-items: center; gap: 8px; padding: 9px 12px;
  border-radius: 9px; background: #fff; border: 1px solid #e2e8f0;
  font-size: 12px; font-weight: 800; color: #0f172a;
  font-family: "Cascadia Code", "Consolas", monospace;
  box-shadow: 0 3px 8px rgba(2,6,23,.06);
}
[data-theme="light"] .loc-frame-clock { background: #ffffff; border-color: #cbd5e1; }
.loc-frame-clock i { color: #0ea5e9; font-size: 12px; }

/* summary stats */
.loc-pv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.loc-pv-stat { min-width: 0; padding: 11px 13px; border-radius: 12px; background: var(--input-bg); border: 1px solid var(--border); }
.loc-pv-stat span { display: flex; align-items: center; gap: 6px; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--text-dim); }
.loc-pv-stat span i { font-size: 10.5px; color: var(--info); }
.loc-pv-stat strong {
  display: block; margin-top: 5px; font-size: 12.5px; font-weight: 800; color: var(--text-heading);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.loc-pv-dates { margin-top: 12px; display: flex; flex-direction: column; gap: 7px; }
.loc-pv-dt-row {
  display: flex; align-items: center; gap: 9px; padding: 9px 12px;
  border-radius: 10px; background: var(--input-bg); border: 1px solid var(--border);
  font-size: 11.5px;
}
.loc-pv-dt-row i { width: 14px; text-align: center; color: var(--info); font-size: 12px; }
.loc-pv-dt-row span { font-size: 11px; font-weight: 700; color: var(--text-dim); }
.loc-pv-dt-row strong {
  margin-left: auto; font-size: 11.5px; font-weight: 800; color: var(--text-heading);
  font-family: "Cascadia Code", "Consolas", monospace; text-align: right; word-break: break-all;
}

/* auto status */
.loc-pv-status {
  display: flex; align-items: center; gap: 9px; margin-top: 12px; padding: 10px 12px;
  border-radius: 11px; font-size: 11.5px; color: var(--text-dim);
  background: var(--input-bg); border: 1px solid var(--border); transition: all .2s ease;
}
.loc-pv-status i { color: var(--text-dim); font-size: 12px; transition: color .2s ease; }
.loc-pv-status strong { font-weight: 800; }
.loc-pv-status.is-on { color: var(--success); background: var(--success-bg); border-color: rgba(16,185,129,.3); }
.loc-pv-status.is-on i { color: var(--success); animation: iconPulse 2.4s ease-in-out infinite; }
.loc-pv-status.is-on strong { color: var(--success); }

/* ------------------------------ Responsive ---------------------------- */
@media (max-width: 1280px) {
  .loc-grid { grid-template-columns: minmax(0, 1fr); }
  .loc-pv { position: static; }
}
@media (max-width: 760px) {
  .loc-langtz-grid { grid-template-columns: 1fr; }
  .loc-langtz-col, .loc-langtz-col + .loc-langtz-col {
    padding-left: 0; padding-right: 0; border-left: none;
  }
  .loc-langtz-col + .loc-langtz-col { margin-top: 18px; }
  .loc-fmt-grid-5, .loc-fmt-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .loc-fmt-grid-2 { grid-template-columns: 1fr; }
  .loc-time-mode { grid-template-columns: 1fr; }
  .loc-pv-grid { grid-template-columns: 1fr; }
  .loc-auto-row { flex-wrap: wrap; }
}
@media (max-width: 420px) {
  .loc-fmt-grid-5, .loc-fmt-grid-4 { grid-template-columns: 1fr; }
}

/* --------------------------- Tail helpers ----------------------------- */
.loc-form-col { min-width: 0; }
.loc-switch { flex-shrink: 0; margin-left: auto; }
.loc-frame-body {
  display: grid; grid-template-columns: 96px minmax(0, 1fr);
  min-height: 152px; border-radius: 13px; overflow: hidden;
  background: #0f172a; border: 1px solid rgba(34,211,238,.35);
}


/* ============================ Mail Station ============================ */
/* ---- hero & workspace ---- */
.mlx-hero { overflow: hidden; }
.mlx-art-core { background: linear-gradient(135deg, #818cf8, #6366f1 45%, #34d399); }
.mlx-art-badge { background: linear-gradient(135deg, #34d399, #10b981); box-shadow: 0 8px 20px rgba(16,185,129,.45); }
.mlx-ws-ic { background: linear-gradient(135deg, #818cf8, #6366f1 45%, #22d3ee); }
.mlx-ws { overflow: visible; }
.mlx-ws::before { display: none; }
.mlx-ws-orb {
  position: absolute; inset: 0; overflow: hidden;
  border-radius: inherit; pointer-events: none;
}
.mlx-ws-orb::before {
  content: ''; position: absolute; top: -160px; right: -120px;
  width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow), transparent 70%);
  opacity: .55;
}
.mlx-cp-driver i { color: #818cf8; }
.mlx-cp-tpl i { color: #f472b6; }

.mlx-grid { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); align-items: stretch; }
.mlx-form-col { min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.mlx-form-col form { display: flex; flex-direction: column; gap: 18px; }
.mlx-side { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.mlx-form-col form.mlx-test-hidden-form { display: none; }

/* ---- panels ---- */
.mlx-panel { padding: 22px; }
.mlx-panel .mk-panel-top { margin-bottom: 18px; }
.mlx-panel-badge {
  margin-left: auto; flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px;
  font-size: 10.5px; font-weight: 800; letter-spacing: .04em; color: #22d3ee; white-space: nowrap;
  padding: 6px 12px; border-radius: 99px; background: rgba(34,211,238,.1); border: 1px solid rgba(34,211,238,.3);
}
.mlx-panel-badge i { animation: iconPulse 3s ease-in-out infinite; }
.mlx-panel-ic-amber { background: linear-gradient(135deg, #fbbf24, #f59e0b); box-shadow: 0 8px 18px rgba(245,158,11,.35); }

/* ---- driver picker ---- */
.mlx-drivers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.mlx-drv {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 18px 12px 16px; border-radius: 16px; cursor: pointer; text-align: center; overflow: hidden;
  background: var(--input-bg); border: 1.5px solid var(--border);
  transition: transform .28s cubic-bezier(.34,1.56,.64,1), border-color .25s, box-shadow .25s, background .25s;
}
.mlx-drv::before {
  content: ''; position: absolute; top: 0; left: -150%; width: 120%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.08), transparent);
  transform: skewX(-14deg); transition: left .65s ease; pointer-events: none;
}
.mlx-drv:hover::before { left: 150%; }
.mlx-drv input { position: absolute; opacity: 0; pointer-events: none; }
.mlx-drv:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.mlx-drv:hover { transform: translateY(-3px); border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.mlx-drv-ic {
  width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center;
  font-size: 17px; color: #fff; margin-bottom: 6px; position: relative; overflow: hidden;
  background: linear-gradient(135deg, #64748b, #475569); box-shadow: 0 8px 18px rgba(2,6,23,.3);
  transition: transform .3s cubic-bezier(.34,1.56,.64,1);
}
.mlx-drv-ic i { position: relative; z-index: 1; }
.mlx-drv:hover .mlx-drv-ic { transform: scale(1.08); }
.mlx-drv-name { font-size: 13.5px; font-weight: 800; color: var(--text-heading); letter-spacing: -.01em; }
.mlx-drv-desc { font-size: 10.5px; line-height: 1.45; color: var(--text-dim); min-height: 30px; }
.mlx-drv-check {
  position: absolute; top: 10px; right: 10px; font-size: 15px; color: var(--success);
  opacity: 0; transform: scale(.4); transition: opacity .25s ease, transform .3s cubic-bezier(.34,1.56,.64,1);
}
.mlx-drv-smtp .mlx-drv-ic { background: linear-gradient(135deg, #818cf8, #6366f1); box-shadow: 0 8px 18px rgba(99,102,241,.4); }
.mlx-drv-sendmail .mlx-drv-ic { background: linear-gradient(135deg, #22d3ee, #0ea5e9); box-shadow: 0 8px 18px rgba(14,165,233,.4); }
.mlx-drv-mail .mlx-drv-ic { background: linear-gradient(135deg, #f472b6, #db2777); box-shadow: 0 8px 18px rgba(219,39,119,.35); }
.mlx-drv-log .mlx-drv-ic { background: linear-gradient(135deg, #fbbf24, #f59e0b); box-shadow: 0 8px 18px rgba(245,158,11,.35); }
.mlx-drv.is-checked {
  border-color: var(--accent); background: var(--input-bg-focus);
  box-shadow: 0 12px 30px -8px var(--accent-glow);
}
.mlx-drv.is-checked .mlx-drv-ic { transform: scale(1.06); animation: iconPulse 2.6s ease-in-out infinite; }
.mlx-drv.is-checked .mlx-drv-check { opacity: 1; transform: scale(1); }
.mlx-drv.is-checked .mlx-drv-name { color: var(--accent); }
.mlx-drv-hint { margin-top: 14px; }
.mlx-drv-tag {
  margin-left: auto; flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px;
  font-size: 10.5px; font-weight: 800; color: #a5b4fc; white-space: nowrap;
  padding: 6px 12px; border-radius: 99px; background: rgba(99,102,241,.12); border: 1px solid rgba(129,140,248,.3);
}
.mlx-drv-tag i { animation: iconPulse 2.8s ease-in-out infinite; }


/* ---- SMTP panel toggle ---- */
.mlx-smtp-panel { transition: opacity .3s ease, transform .3s ease; }
.mlx-smtp-panel.is-hide { display: none; }

/* ---- field grids (icons stay perfectly centered) ---- */
.mlx-fgrid { display: grid; grid-template-columns: minmax(0, 1fr) 190px; gap: 16px; margin-bottom: 16px; }
.mlx-fgrid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mlx-fgrid-1 { grid-template-columns: minmax(0, 1fr); margin-bottom: 0; }
.mlx-fgrid .field { margin-bottom: 0; }
.mlx-field-narrow { min-width: 0; }
.mlx-pwd-wrap .input { padding-right: 46px; }
.mlx-pwd-toggle {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: var(--text-dim); cursor: pointer;
  font-size: 14px; padding: 6px; border-radius: 8px; z-index: 2;
  transition: color .2s ease, transform .25s ease;
}
.mlx-pwd-toggle:hover { color: var(--accent); transform: translateY(-50%) scale(1.1); }

/* ---- client OTP row ---- */
.mlx-otp { border-color: rgba(34,211,238,.22); background: linear-gradient(120deg, rgba(34,211,238,.05), transparent 60%); }
.mlx-auto-row { display: flex; align-items: center; gap: 14px; }
.mlx-auto-txt { flex: 1; min-width: 0; }
.mlx-switch { flex-shrink: 0; }

/* ---- save row ---- */
.mlx-save-row {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin-top: 4px; padding-top: 20px; border-top: 1px dashed var(--border);
}
.mlx-save-btn { min-width: 220px; }
.mlx-save-btn i { animation: sendFloat 2.6s ease-in-out infinite; }
.mlx-save-hint { font-size: 12px; color: var(--text-dim); display: inline-flex; align-items: center; gap: 6px; }
.mlx-save-hint i { color: var(--success); }

/* ---- transport status (state card) ---- */
.mlx-state {
  position: sticky; top: 90px; overflow: hidden; z-index: 5;
  background: var(--card-solid); backdrop-filter: none;
}
.mlx-state::before {
  content: ''; position: absolute; top: -120px; right: -100px; width: 260px; height: 260px;
  border-radius: 50%; background: radial-gradient(circle, var(--accent-glow), transparent 70%);
  pointer-events: none; opacity: .5;
}
.mlx-state-head {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px;
}
.mlx-state-title { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; color: var(--text-heading); }
.mlx-state-title i { color: var(--accent); animation: iconPulse 3s ease-in-out infinite; }
.mlx-state-live {
  display: inline-flex; align-items: center; gap: 6px; font-size: 10px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .1em; color: var(--success);
  padding: 5px 10px; border-radius: 99px; background: var(--success-bg); border: 1px solid rgba(16,185,129,.25);
}
.mlx-state-live .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; position: relative; flex-shrink: 0; }
.mlx-state-live .dot::after {
  content: ''; position: absolute; inset: -4px; border-radius: 50%;
  background: currentColor; opacity: .4; animation: pingSoft 1.9s ease-out infinite;
}
.mlx-state-driver {
  position: relative; display: flex; align-items: center; gap: 14px; padding: 14px;
  border-radius: 16px; background: var(--input-bg); border: 1px solid var(--border); margin-bottom: 14px;
}
.mlx-state-drv-ic {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  font-size: 19px; color: #fff; flex-shrink: 0; position: relative; overflow: hidden;
  transition: background .35s ease, box-shadow .35s ease;
}
.mlx-state-drv-ic i { position: relative; z-index: 1; animation: iconFloat 3.8s ease-in-out infinite; }
.mlx-state-ic-smtp { background: linear-gradient(135deg, #818cf8, #6366f1); box-shadow: 0 10px 24px rgba(99,102,241,.4); }
.mlx-state-ic-sendmail { background: linear-gradient(135deg, #22d3ee, #0ea5e9); box-shadow: 0 10px 24px rgba(14,165,233,.4); }
.mlx-state-ic-mail { background: linear-gradient(135deg, #f472b6, #db2777); box-shadow: 0 10px 24px rgba(219,39,119,.35); }
.mlx-state-ic-log { background: linear-gradient(135deg, #fbbf24, #f59e0b); box-shadow: 0 10px 24px rgba(245,158,11,.35); }
.mlx-state-label { display: block; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--text-dim); }
.mlx-state-name { display: block; font-size: 17px; font-weight: 900; color: var(--text-heading); margin-top: 2px; letter-spacing: -.01em; }
.mlx-state-desc { display: block; font-size: 11px; line-height: 1.5; color: var(--text-dim); margin-top: 3px; }
.mlx-state-rows { position: relative; display: flex; flex-direction: column; gap: 8px; }
.mlx-state-row {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; min-width: 0;
  border-radius: 12px; background: var(--input-bg); border: 1px solid var(--border);
}
.mlx-state-row i { width: 15px; text-align: center; font-size: 12px; color: var(--info); flex-shrink: 0; }
.mlx-state-row span { font-size: 11px; font-weight: 700; color: var(--text-dim); flex-shrink: 0; }
.mlx-state-row strong {
  margin-left: auto; font-size: 12px; font-weight: 800; color: var(--text-heading);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 60%; min-width: 0;
}
.mlx-state-foot {
  position: relative; display: flex; align-items: center; gap: 8px; margin-top: 14px;
  font-size: 11px; color: var(--text-dim); padding: 10px 12px; border-radius: 12px;
  background: var(--success-bg); border: 1px solid rgba(16,185,129,.2);
}
.mlx-state-foot i { color: var(--success); flex-shrink: 0; animation: iconPulse 3s ease-in-out infinite; }


/* ---- connection card ---- */
.mlx-conn-row { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.mlx-conn-dot {
  width: 10px; height: 10px; border-radius: 50%; background: #10b981; flex-shrink: 0; position: relative;
  animation: pingDot 2s cubic-bezier(0, 0, .2, 1) infinite;
}
.mlx-conn-dot.bad { background: #ef4444; animation: none; }
.mlx-conn-row strong { display: block; font-size: 13px; color: var(--text-heading); }
.mlx-conn-row span { display: block; font-size: 11.5px; color: var(--text-dim); margin-top: 2px; word-break: break-all; }
.mlx-test-btn { width: 100%; }
.mlx-test-btn i { animation: iconFloat 3s ease-in-out infinite; }
.mlx-test-btn.is-loading i { animation: spin .8s linear infinite; }
.mlx-test-btn:hover i { animation: qBounce .6s ease; }

/* ---- mail test tools row ---- */
.mlx-test-tools .mlx-conn-row { margin-bottom: 14px; }
.mlx-test-row { display: flex; gap: 12px; }
.mlx-test-row .mlx-test-btn { flex: 1 1 0; width: auto; min-width: 0; }
@media (max-width: 560px) { .mlx-test-row { flex-direction: column; } }

/* ---- templates card ---- */
.mlx-count-tag {
  margin-left: auto; flex-shrink: 0; min-width: 30px; height: 30px; padding: 0 10px;
  border-radius: 10px; display: grid; place-items: center; font-size: 12px; font-weight: 800;
  color: #a5b4fc; background: rgba(99,102,241,.12); border: 1px solid rgba(129,140,248,.3);
}
.mlx-tpl-list { display: flex; flex-direction: column; gap: 8px; margin: 0 0 16px; }
.mlx-tpl-row {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border-radius: 12px; background: var(--input-bg); border: 1px solid var(--border);
  color: inherit; text-decoration: none;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.mlx-tpl-row:hover {
  border-color: var(--accent); transform: translateY(-1px);
  box-shadow: 0 6px 16px var(--accent-glow);
}
.mlx-tpl-row:last-child .mono {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 55%;
}
.mlx-tpl-row i { color: var(--accent); font-size: 13px; width: 16px; text-align: center; animation: iconPulse 3.6s ease-in-out infinite; }
.mlx-tpl-row .mono { font-size: 11.5px; font-weight: 700; color: var(--text-heading); font-family: "Cascadia Code", "Consolas", monospace; }
.mlx-tpl-row span:last-child {
  margin-left: auto; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em;
  color: var(--success); padding: 3px 9px; border-radius: 99px; background: var(--success-bg);
}

/* ---- credential storage note ---- */
.mlx-security-note {
  display: flex; gap: 12px; padding: 14px 16px; border-radius: 14px;
  background: var(--input-bg); border: 1px solid var(--border);
}
.mlx-security-note i { color: var(--accent-2); font-size: 16px; margin-top: 2px; animation: iconPulse 3.4s ease-in-out infinite; }
.mlx-security-note p { margin: 0; font-size: 12.5px; line-height: 1.6; color: var(--text-dim); }
.mlx-security-note code {
  font-family: "Cascadia Code", "Consolas", monospace; font-size: 11px;
  color: var(--text-heading); background: rgba(99,102,241,.1); border: 1px solid rgba(129,140,248,.25);
  padding: 1px 5px; border-radius: 6px;
}


/* ---- responsive ---- */
@media (max-width: 1120px) {
  .mlx-grid { grid-template-columns: 1fr; }
  .mlx-state { position: static; }
  .mlx-drv-desc { min-height: 0; }
}
@media (max-width: 760px) {
  .mlx-drivers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .mlx-fgrid, .mlx-fgrid-2 { grid-template-columns: 1fr; }
  .mlx-drivers { grid-template-columns: 1fr; }
  .mlx-drv { flex-direction: row; text-align: left; align-items: center; gap: 12px; padding: 14px 16px; }
  .mlx-drv .mlx-drv-ic { margin-bottom: 0; }
  .mlx-drv-desc { min-height: 0; }
  .mlx-state-driver { align-items: flex-start; }
}

/* ---- light theme ---- */
[data-theme="light"] .mlx-state::before { opacity: .28; }
[data-theme="light"] .mlx-drv { background: #fff; }
[data-theme="light"] .mlx-state-driver { background: #f8fafc; }
[data-theme="light"] .mlx-state-row { background: #f8fafc; }
[data-theme="light"] .mlx-tpl-row { background: #f8fafc; }
[data-theme="light"] .mlx-security-note { background: #f8fafc; }



/* ==========================================================================
   Theme Studio page (/admin/theme)
   ========================================================================== */

/* workspace wrapper — the base .mk-ws is overflow:hidden which would break
   position:sticky on the live preview column, so neutralise it like mail. */
.theme-ws { overflow: visible; }
.theme-ws::before { display: none; }

/* grid: left controls / right sticky live preview */
.theme-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: 24px; align-items: start; position: relative; }
.theme-form-col { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.theme-form-col form { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.theme-pv { position: sticky; top: 90px; align-self: start; }
.theme-save { width: 100%; }

/* ---- color swatches (all families mixed together) ---- */
.theme-swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 10px; margin-top: 14px; }
.theme-swatch {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 11px 6px 9px; border: 1px solid var(--border); border-radius: 13px;
  background: var(--input-bg); cursor: pointer; text-align: center;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease, transform .2s ease;
}
.theme-swatch:hover { transform: translateY(-2px); border-color: var(--border-strong); }
.theme-swatch.active { border-color: var(--accent); background: var(--accent-glow); box-shadow: 0 0 0 3px var(--accent-glow); }
.theme-swatch input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.theme-swatch-dot { width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 2px rgba(255,255,255,.28), 0 3px 8px rgba(0,0,0,.35); }
.theme-swatch-name { font-size: 10.5px; font-weight: 700; color: var(--text-dim); line-height: 1; }
.theme-swatch.active .theme-swatch-name { color: var(--text-heading); }

/* ---- segmented control (None / UPPERCASE / lowercase) ---- */
.seg { display: flex; gap: 6px; padding: 5px; background: var(--input-bg); border: 1px solid var(--border); border-radius: 12px; }
.seg-btn {
  flex: 1; padding: 9px 10px; border: none; border-radius: 9px; background: transparent;
  color: var(--text-dim); font-size: 12px; font-weight: 700; font-family: inherit; cursor: pointer;
  transition: background .18s ease, color .18s ease, box-shadow .18s ease;
}
.seg-btn:hover { color: var(--text); background: var(--input-bg-focus); }
.seg-btn.active { background: linear-gradient(135deg, var(--accent), var(--accent-strong)); color: #fff; box-shadow: 0 5px 14px var(--accent-glow); }

/* ---- toggle rows + switch (Capitalize headings, Full width banner) ---- */
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 0; }
.toggle-row + .toggle-row { border-top: 1px solid var(--border); }
.toggle-label { font-size: 13.5px; font-weight: 700; color: var(--text-heading); }
.toggle-sub { font-size: 11.5px; color: var(--text-dim); margin-top: 2px; }
.tswitch { position: relative; width: 46px; height: 26px; flex-shrink: 0; cursor: pointer; }
.tswitch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.tswitch-track {
  position: absolute; inset: 0; border-radius: 999px; background: var(--border-strong);
  transition: background .2s ease, box-shadow .2s ease;
}
.tswitch-track::after {
  content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.35); transition: transform .2s cubic-bezier(.4,0,.2,1);
}
.tswitch input:checked + .tswitch-track { background: var(--accent); box-shadow: 0 0 12px var(--accent-glow); }
.tswitch input:checked + .tswitch-track::after { transform: translateX(20px); }
.tswitch input:focus-visible + .tswitch-track { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---- searchable font dropdown ---- */
.font-select { position: relative; }
.font-select-list {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 60;
  max-height: 270px; overflow-y: auto; padding: 6px; display: none;
  background: var(--dropdown-bg); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border); border-radius: 13px; box-shadow: var(--shadow-lg);
}
.font-select.open .font-select-list { display: block; animation: dropIn .2s cubic-bezier(.22,1,.36,1) both; }
.font-select-list::-webkit-scrollbar { width: 6px; }
.font-option {
  display: block; width: 100%; text-align: left; padding: 9px 12px; border: none; border-radius: 9px;
  background: transparent; color: var(--text); font-size: 13.5px; cursor: pointer;
  transition: background .12s ease, color .12s ease;
}
.font-option:hover, .font-option.selected { background: var(--accent-glow); color: var(--text-heading); }

/* ---- live preview frame ---- */
.theme-pv-frame { border: 1px solid var(--border); border-radius: 16px; overflow: hidden; background: var(--card-solid); box-shadow: var(--shadow); }
.pv-bar { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-bottom: 1px solid var(--border); background: var(--input-bg); }
.pv-logo {
  width: 18px; height: 18px; border-radius: 6px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--pv-accent), var(--pv-accent-strong));
  box-shadow: 0 3px 10px color-mix(in srgb, var(--pv-accent) 40%, transparent);
}
.pv-brand { font-size: 11.5px; font-weight: 800; color: var(--text-heading); }
.pv-menu { margin-left: auto; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 8px; background: var(--input-bg); border: 1px solid var(--border); color: var(--text-dim); font-size: 11px; }
.pv-banner {
  height: 84px; display: grid; place-items: center; overflow: hidden; color: #fff;
  background: linear-gradient(120deg, var(--pv-accent), color-mix(in srgb, var(--pv-accent) 42%, #22d3ee));
  font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
}
.pv-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pv-banner span i { margin-right: 6px; }
.pv-body { padding: 13px 14px; font-family: var(--pv-font); }
.pv-h1 { font-size: 13.5px; font-weight: 800; color: var(--text-heading); line-height: 1.3; }
.pv-h1.is-cap { text-transform: capitalize; }
.pv-p { font-size: 11px; color: var(--text-dim); margin-top: 8px; line-height: 1.65; }
.pv-btn {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 12px; padding: 7px 12px;
  border-radius: 9px; background: linear-gradient(135deg, var(--pv-accent), var(--pv-accent-strong));
  color: #fff; font-size: 11px; font-weight: 700;
  box-shadow: 0 6px 16px color-mix(in srgb, var(--pv-accent) 35%, transparent);
}
.theme-pv-note { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 11.5px; color: var(--text-dim); }
.theme-pv-note i { color: var(--accent); }

/* extra dropzone state for the banner upload */
.asu-drop.dragging { border-color: var(--accent); background: var(--input-bg-focus); box-shadow: 0 0 0 4px var(--accent-glow); }
/* ---- Theme Studio → Layout & Display: banner image field ---- */
.banner-field .hint { margin-bottom: 12px; }

/* "Banner Image" heading — white & bold, overrides the generic dim .field label */
.field label.banner-label {
  font-size: 13px; font-weight: 800;
  color: var(--text-heading); letter-spacing: .01em;
}

/* dimension note + remove button row */
.banner-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.banner-dims { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--text-dim); }
.banner-dims i { color: var(--accent); font-size: 11px; }
.banner-dims strong { color: var(--text-heading); font-weight: 700; }
.banner-remove-btn {
  display: none; align-items: center; gap: 7px;
  padding: 7px 13px; border-radius: 10px; cursor: pointer;
  font-size: 12px; font-weight: 700; line-height: 1;
  color: #f87171; background: rgba(248,113,113,.1);
  border: 1px solid rgba(248,113,113,.32);
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.banner-remove-btn.visible { display: inline-flex; }
.banner-remove-btn i { font-size: 12px; }
.banner-remove-btn:hover { background: rgba(248,113,113,.18); border-color: #f87171; transform: translateY(-1px); }


@media (max-width: 1180px) {
  .theme-grid { grid-template-columns: 1fr; }
  .theme-pv { position: static; }
}

/* ==========================================================================
   Client area banner (Theme → Layout & Display)
   ========================================================================== */
.client-banner { width: 100%; max-width: 1500px; margin: 0 auto; padding: 26px 26px 0; }
.client-banner img {
  width: 100%; max-height: 220px; object-fit: cover; display: block;
  border-radius: 16px; box-shadow: var(--shadow);
}
.client-banner.is-full { max-width: none; padding: 0; }
.client-banner.is-full img { max-height: 240px; border-radius: 0; }
@media (max-width: 640px) {
  .client-banner { padding: 16px 16px 0; }
  .client-banner img { max-height: 160px; }
  .client-banner.is-full img { max-height: 180px; }
}

/* ==========================================================================
   Customization Studio page (/admin/settings/customization)
   ========================================================================== */

.cz-ws { overflow: visible; }
.cz-ws::before { display: none; }
.cz-ws-ic { background: linear-gradient(135deg, #818cf8, #6366f1 45%, #22d3ee); }
.cz-cp-cyan i { color: #22d3ee; }
.cz-cp-pink i { color: #f472b6; }

/* ---- two-column areas ---- */
.cz-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-top: 22px; align-items: start; }
.cz-area { padding: 24px; position: relative; overflow: hidden; }
.cz-area::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, #22d3ee, #818cf8, #22d3ee); background-size: 200% 100%;
  animation: gradShift 6s ease infinite;
}
.cz-admin::before { background: linear-gradient(90deg, #f472b6, #818cf8, #f472b6); }

.cz-area-head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.cz-area-ic {
  width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center;
  color: #fff; font-size: 19px; flex-shrink: 0; position: relative; overflow: hidden;
  background-size: 200% 200%; box-shadow: 0 12px 28px rgba(34,211,238,.35); animation: gradShift 6s ease infinite;
}
.cz-area-ic::after {
  content: ''; position: absolute; top: -40%; left: -40%; width: 80%; height: 80%;
  background: linear-gradient(135deg, rgba(255,255,255,.4), transparent 60%); transform: rotate(20deg);
}
.cz-area-ic i { position: relative; z-index: 1; animation: iconFloat 3.8s ease-in-out infinite; }
.cz-ic-cyan { background: linear-gradient(135deg, #22d3ee, #0ea5e9 55%, #6366f1); }
.cz-ic-rose { background: linear-gradient(135deg, #f472b6, #db2777 50%, #6366f1); box-shadow: 0 12px 28px rgba(219,39,119,.35); }
.cz-area-head h3 { font-size: 16px; font-weight: 800; color: var(--text-heading); letter-spacing: -.01em; }
.cz-area-head p { font-size: 12px; color: var(--text-dim); margin-top: 2px; }
.cz-area-chip {
  margin-left: auto; flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 99px; font-size: 10.5px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .08em; color: #a5b4fc;
  background: rgba(99,102,241,.12); border: 1px solid rgba(129,140,248,.3);
}
.cz-area-chip i { animation: iconFloat 3.6s ease-in-out infinite; }
.cz-admin .cz-area-chip { color: #f9a8d4; background: rgba(219,39,119,.12); border-color: rgba(244,114,182,.35); }

/* ---- fields with animated icon labels ---- */
.cz-field label { display: flex; align-items: center; gap: 8px; }
.cz-field label i { color: var(--accent); font-size: 12px; animation: iconFloat 3.6s ease-in-out infinite; }
.cz-field .hint { font-size: 11.5px; color: var(--text-dim); margin-top: 6px; }

/* ---- raw HTML fields ---- */
.cz-htmlarea {
  min-height: 62px; resize: vertical; line-height: 1.5; font-size: 12.5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;
}
.cz-html-tag {
  display: inline-block; margin-left: 2px; padding: 2px 7px; border-radius: 99px;
  font-size: 9px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  color: #a5b4fc; background: rgba(99,102,241,.12); border: 1px solid rgba(129,140,248,.3);
}


/* ---- login page banner box ---- */
.cz-banner { margin-top: 20px; border: 1px solid var(--border); border-radius: 16px; padding: 18px; background: var(--input-bg); }
.cz-banner-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.cz-banner-ic {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  color: #fff; font-size: 15px; flex-shrink: 0; position: relative;
  background: linear-gradient(135deg, #34d399, #0ea5e9); box-shadow: 0 8px 20px rgba(16,185,129,.35);
  animation: iconPulse 3s ease-in-out infinite;
}
.cz-banner-ic i { position: relative; z-index: 1; }
.cz-banner-title { font-size: 13.5px; font-weight: 800; color: var(--text-heading); }
.cz-banner-sub { font-size: 11.5px; color: var(--text-dim); margin-top: 2px; }

/* ---- mini 2-column login preview ---- */
.cz-mini { border-radius: 14px; overflow: hidden; border: 1px solid var(--border-strong); box-shadow: var(--shadow); margin-bottom: 14px; }
.cz-mini-bar { display: flex; align-items: center; gap: 7px; padding: 8px 12px; background: #0f172a; font-size: 9.5px; color: #94a3b8; }
[data-theme="light"] .cz-mini-bar { background: #e2e8f0; color: #475569; }
.cz-mini-bar i { color: #34d399; animation: iconPulse 2.8s ease-in-out infinite; }
.cz-mini-body { display: grid; grid-template-columns: minmax(0, 1fr) 140px; min-height: 200px; }
.cz-mini-form { padding: 18px 16px; display: flex; flex-direction: column; justify-content: center; background: #f8fafc; }
.cz-mini-dot {
  width: 26px; height: 26px; border-radius: 8px; margin-bottom: 12px;
  background: linear-gradient(135deg, #818cf8, #22d3ee); box-shadow: 0 5px 14px rgba(99,102,241,.4);
  animation: iconPulse 3s ease-in-out infinite;
}
.cz-mini-title { font-size: 13px; font-weight: 800; color: #0f172a; line-height: 1.3; }
.cz-mini-sub { font-size: 9.5px; color: #64748b; margin-top: 4px; min-height: 14px; line-height: 1.4; }
.cz-mini-input { height: 24px; border-radius: 7px; background: #e2e8f0; border: 1px solid #cbd5e1; margin-top: 10px; }
.cz-mini-input:nth-of-type(2) { margin-top: 7px; }
.cz-mini-btn {
  margin-top: 12px; padding: 8px 12px; border-radius: 8px; font-size: 10px; font-weight: 700; color: #fff;
  width: max-content; background: linear-gradient(135deg, #818cf8, #6366f1);
  box-shadow: 0 5px 14px rgba(99,102,241,.4);
}
.cz-mini-btn i { margin-right: 6px; animation: iconPulse 3s ease-in-out infinite; }
.cz-mini-copy {
  margin-top: 12px; padding-top: 8px; border-top: 1px dashed #cbd5e1;
  font-size: 8.5px; color: #94a3b8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cz-mini-copy i { margin-right: 4px; }
.cz-mini-art { position: relative; overflow: hidden; min-height: 200px; display: grid; place-items: center; background: linear-gradient(120deg, #6366f1, #22d3ee); }
.cz-mini-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cz-mini-ph { display: flex; flex-direction: column; align-items: center; gap: 8px; color: rgba(255,255,255,.92); font-size: 10px; font-weight: 700; text-align: center; }
.cz-mini-ph i { font-size: 22px; animation: iconFloat 3.6s ease-in-out infinite; }

/* ---- dropzone + preview refinements for banners ---- */
.cz-drop { padding: 16px 12px; }
.cz-prev { min-height: 86px; }

/* ---- remove banner toggle ---- */
.cz-remove-row { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.cz-remove-txt { font-size: 12px; font-weight: 600; color: var(--text-dim); }

/* ---- save bar ---- */
.cz-savebar {
  display: flex; align-items: center; justify-content: flex-start; gap: 18px; flex-wrap: wrap;
  margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border);
}
.cz-save-note { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-dim); }
.cz-save-note i { color: var(--success); animation: iconPulse 3s ease-in-out infinite; }
.cz-save { min-width: 240px; justify-content: center; }
.cz-save i { animation: iconFloat 3.4s ease-in-out infinite; }
.cz-save:hover i { animation: qBounce .6s ease; }

/* ---- responsive ---- */
@media (max-width: 980px) {
  .cz-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .cz-area { padding: 18px; }
  .cz-mini-body { grid-template-columns: 1fr 96px; }
}


/* ==========================================================================
   Split login screen (Customization → Login Page Banner)
   ========================================================================== */

.auth-stack { display: flex; flex-direction: column; align-items: center; gap: 20px; width: 100%; }

.auth-split {
  position: relative; display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr);
  width: 100%; max-width: 1040px; min-height: 560px; overflow: hidden;
  background: var(--dropdown-bg); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border); border-radius: 28px; box-shadow: 0 30px 80px rgba(0,0,0,.4);
  animation: authIn .5s cubic-bezier(.22,1,.36,1) both;
}
.auth-split::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; z-index: 3;
  background: linear-gradient(90deg, #6366f1, #22d3ee, #6366f1); background-size: 200% 100%;
  animation: gradShift 6s ease infinite;
}
.auth-split-form { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: center; padding: 48px 44px; }
.auth-split-form .auth-logo { margin-bottom: 22px; }
.auth-split-form .auth-title { font-size: 26px; }
.auth-split-art { position: relative; min-width: 0; overflow: hidden; background: #0f172a; }
.auth-split-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.auth-split-art::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(15,20,36,.55), transparent 45%);
  pointer-events: none;
}
.auth-split-badge {
  position: absolute; left: 24px; bottom: 24px; z-index: 2;
  display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 16px;
  background: rgba(10,14,26,.55); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.18); color: #fff;
  animation: authIn .6s cubic-bezier(.22,1,.36,1) both .18s;
}
.auth-split-badge i { font-size: 17px; color: #22d3ee; animation: iconPulse 3s ease-in-out infinite; }
.auth-split-badge strong { display: block; font-size: 12.5px; font-weight: 800; line-height: 1.2; }
.auth-split-badge span { font-size: 10.5px; color: rgba(255,255,255,.72); }

.auth-global-footer {
  display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-dim); padding-bottom: 6px;
}
.auth-global-footer i { font-size: 11px; animation: iconPulse 3.4s ease-in-out infinite; }

@media (max-width: 860px) {
  .auth-split { grid-template-columns: 1fr; max-width: 480px; min-height: 0; }
  .auth-split-art { min-height: 220px; order: -1; }
  .auth-split-art::after { background: linear-gradient(180deg, rgba(15,20,36,.35), transparent 70%); }
  .auth-split-form { padding: 32px 26px; }
}

/* ==========================================================================
   Panel footer (copyrights under the admin panel and the client area)
   ========================================================================== */
.panel-footer {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  width: 100%; max-width: 1500px; margin: 0 auto; padding: 14px 26px;
  border-top: 1px solid var(--border); font-size: 11.5px; color: var(--text-dim);
}
.panel-footer i { color: var(--accent); margin-right: 6px; animation: iconPulse 3.4s ease-in-out infinite; }
.panel-footer-right { display: flex; align-items: center; }
@media (max-width: 640px) {
  .panel-footer { justify-content: center; text-align: center; }
}


/* ==========================================================================
   Custom Links · Quick-link workspace
   ========================================================================== */

/* ------------------------------ Hero accent ------------------------------ */
.clx-hero {
  background: linear-gradient(120deg, rgba(34,211,238,.18), rgba(99,102,241,.13) 52%, rgba(168,85,247,.07));
  border-color: rgba(34,211,238,.28);
  box-shadow: 0 18px 50px rgba(14,165,233,.14);
}
.clx-hero .mk-hero-title span {
  background: linear-gradient(90deg, #22d3ee, #a5b4fc 60%, #a855f7);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

/* hero orbital core */
.clx-core {
  position: relative; width: 88px; height: 88px; border-radius: 24px;
  display: grid; place-items: center; color: #fff; font-size: 36px;
  background: linear-gradient(135deg, #22d3ee, #6366f1 45%, #a855f7);
  background-size: 200% 200%; box-shadow: 0 16px 42px rgba(34,211,238,.4);
  animation: gradShift 6s ease infinite;
}
.clx-core i { position: relative; z-index: 1; animation: iconFloat 4.4s ease-in-out infinite; filter: drop-shadow(0 6px 16px rgba(0,0,0,.35)); }
.clx-core::after { content: ''; position: absolute; inset: 0; border-radius: 24px; border: 1px solid rgba(255,255,255,.35); animation: ringPulse 3.4s ease-out infinite; }
.clx-badge {
  position: absolute; right: 4px; top: 8px; width: 40px; height: 40px; border-radius: 13px;
  display: grid; place-items: center; color: #fff; font-size: 15px;
  background: linear-gradient(135deg, #fbbf24, #f59e0b); box-shadow: 0 8px 20px rgba(245,158,11,.4);
  animation: iconPulse 3s ease-in-out infinite;
}
.clx-badge i { position: relative; z-index: 1; }

/* workspace accents */
.clx-ws-ic { background: linear-gradient(135deg, #22d3ee, #6366f1); box-shadow: 0 10px 24px rgba(14,165,233,.3); }
.clx-panel-ic { background: linear-gradient(135deg, #22d3ee, #0ea5e9); box-shadow: 0 8px 18px rgba(14,165,233,.35); }

/* form helpers */
.clx-label { display: block; font-size: 12.5px; font-weight: 600; color: var(--text-dim); margin-bottom: 7px; letter-spacing: .01em; }
.clx-label i { margin-right: 6px; color: var(--accent); font-size: 11.5px; }
.clx-hint { font-size: 11.5px; color: var(--text-dim); margin-top: 7px; line-height: 1.55; }

/* icon picker grid */
.clx-ico-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(40px, 1fr)); gap: 8px; }
.clx-ico-opt {
  height: 42px; border-radius: 11px; display: grid; place-items: center; cursor: pointer;
  font-size: 15px; color: var(--text-dim);
  background: var(--input-bg); border: 1px solid var(--border);
  transition: all .18s ease;
}
.clx-ico-opt:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 6px 14px var(--accent-glow); }
.clx-ico-opt:hover i { animation: qBounce .5s ease; }
.clx-ico-opt.active {
  color: #fff; border-color: transparent;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: 0 6px 16px var(--accent-glow);
}
.clx-ico-opt.active i { animation: iconPulse 2.6s ease-in-out infinite; }

/* target toggle */
.clx-target { display: flex; gap: 10px; }
.clx-tgt {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 12px; border-radius: 11px; cursor: pointer; font-size: 12.5px; font-weight: 700;
  color: var(--text-dim); background: var(--input-bg); border: 1px solid var(--border);
  transition: all .18s ease; user-select: none;
}
.clx-tgt i { font-size: 12px; }
.clx-tgt:hover { color: var(--text); border-color: var(--border-strong); }
.clx-tgt.active { color: #fff; border-color: transparent; }
.clx-tgt[data-target="_self"].active { background: linear-gradient(135deg, #94a3b8, #475569); }
.clx-tgt[data-target="_blank"].active { background: linear-gradient(135deg, #22d3ee, #0ea5e9); box-shadow: 0 6px 16px rgba(14,165,233,.35); }

/* submit button */
.clx-submit { position: relative; overflow: hidden; }
.clx-submit::after {
  content: ''; position: absolute; top: 0; bottom: 0; left: -150%; width: 55%;
  transform: skewX(-20deg); pointer-events: none;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,.38), transparent);
  animation: ipaShine 5.5s ease-in-out infinite;
}
.clx-submit:hover i { animation: qBounce .6s ease; transform: scale(1.12); }


/* link table */
.clx-tbl { overflow-x: auto; }
.clx-ico {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  color: #fff; font-size: 15px; flex-shrink: 0; position: relative; overflow: hidden;
  box-shadow: 0 8px 18px rgba(0,0,0,.2);
}
.clx-ico::after {
  content: ''; position: absolute; top: -40%; left: -40%; width: 80%; height: 80%;
  background: linear-gradient(135deg, rgba(255,255,255,.4), transparent 60%); transform: rotate(20deg);
}
.clx-ico i { position: relative; z-index: 1; animation: iconFloat 3.6s ease-in-out infinite; }
.clx-ico-1 { background: linear-gradient(135deg, #818cf8, #6366f1); box-shadow: 0 8px 18px rgba(99,102,241,.35); }
.clx-ico-2 { background: linear-gradient(135deg, #22d3ee, #0ea5e9); box-shadow: 0 8px 18px rgba(14,165,233,.35); }
.clx-ico-3 { background: linear-gradient(135deg, #f472b6, #db2777); box-shadow: 0 8px 18px rgba(219,39,119,.3); }
.clx-ico-4 { background: linear-gradient(135deg, #34d399, #059669); box-shadow: 0 8px 18px rgba(16,185,129,.3); }

.clx-name { font-size: 13.5px; font-weight: 800; color: var(--text-heading); white-space: nowrap; }
.clx-domain {
  font-size: 11.5px; color: var(--text-dim); display: inline-flex; align-items: center; gap: 5px;
  margin-top: 2px; max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.clx-domain i { font-size: 10px; color: var(--accent); }

.clx-url {
  display: inline-flex; align-items: center; gap: 7px; max-width: 220px; vertical-align: middle;
  padding: 5px 11px; border-radius: 9px; font-family: "Cascadia Code", "Consolas", monospace;
  font-size: 11.5px; font-weight: 600; color: var(--text-dim);
  background: var(--input-bg); border: 1px solid var(--border);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.clx-url i { font-size: 10px; color: var(--info); flex-shrink: 0; }
.clx-copy {
  margin-left: 6px; width: 30px; height: 30px; border-radius: 8px; vertical-align: middle;
  border: 1px solid var(--border); background: var(--input-bg); color: var(--text-dim);
  cursor: pointer; font-size: 11px; transition: all .18s ease;
}
.clx-copy:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-1px); box-shadow: 0 4px 12px var(--accent-glow); }
.clx-copy:hover i { animation: qBounce .5s ease; }
.clx-copy.done { color: var(--success); border-color: rgba(16,185,129,.4); background: var(--success-bg); }

/* target pills */
.clx-pill-newtab { background: rgba(34,211,238,.12); color: #22d3ee; border-color: rgba(34,211,238,.28); }
.clx-pill-same { background: var(--input-bg); color: var(--text-dim); border-color: var(--border); }

/* empty state accent */
.clx-empty-ic {
  width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center;
  font-size: 22px; color: #fff; background: linear-gradient(135deg, #22d3ee, #6366f1);
  background-size: 200% 200%; box-shadow: 0 12px 30px rgba(34,211,238,.25);
  animation: gradShift 6s ease infinite; position: relative;
}
.clx-empty-ic i { animation: iconFloat 4s ease-in-out infinite; }
.clx-no-results { display: none; }
.clx-no-results td { padding: 24px 16px !important; }

/* light theme overrides */
[data-theme="light"] .clx-core { box-shadow: 0 16px 40px rgba(14,165,233,.25); }
[data-theme="light"] .clx-empty-ic { box-shadow: 0 12px 28px rgba(14,165,233,.2); }
[data-theme="light"] .clx-badge { box-shadow: 0 8px 18px rgba(245,158,11,.25); }

/* --------------------------- Link manager layout --------------------------- */
/* Stack the Add form and the Existing Links list on separate full-width rows. */
.clx-ws-grid { grid-template-columns: 1fr; }

.clx-add-count { margin-left: auto; }
.clx-add-grid { display: grid; grid-template-columns: 1fr 1.7fr 1fr; gap: 18px; align-items: end; }
.clx-add-grid .field { margin-bottom: 0; }
.clx-add-grid .clx-target { flex-wrap: wrap; }
.clx-add-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); flex-wrap: wrap;
}
.clx-add-foot .clx-hint { margin: 0; display: inline-flex; align-items: center; gap: 7px; }
.clx-add-foot .clx-hint i { color: var(--accent); }
.clx-add-foot .btn { min-width: 150px; }

/* Drag handle + reorder affordances */
.clx-th-drag { text-align: center; }
.clx-drag-cell { text-align: center; }
.clx-drag {
  display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px;
  border: 1px solid var(--border); background: var(--input-bg); color: var(--text-dim);
  cursor: grab; font-size: 12px; transition: all .18s ease; touch-action: none;
}
.clx-drag:hover { color: var(--accent); border-color: var(--accent); box-shadow: 0 4px 12px var(--accent-glow); }
.clx-drag:active { cursor: grabbing; }
.clx-row.dragging { opacity: .45; background: var(--input-bg-focus); }
.clx-row.drag-over { box-shadow: inset 0 2px 0 var(--accent); }

/* Edit button inside the actions cell */
.clx-edit { min-width: 92px; }

/* Edit modal */
.clx-edit-box { max-width: 540px; }
.clx-edit-ico-grid { grid-template-columns: repeat(8, 1fr); max-height: 200px; overflow-y: auto; padding-right: 4px; }
.clx-edit-ico-grid::-webkit-scrollbar { width: 6px; }
.clx-edit-ico-grid::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 99px; }

@media (max-width: 980px) {
  .clx-add-grid { grid-template-columns: 1fr; }
  .clx-edit-ico-grid { grid-template-columns: repeat(6, 1fr); }
}

/* ------------------------------ Responsive ------------------------------ */
@media (max-width: 1280px) {
  .clx-url { max-width: 150px; }
}
@media (max-width: 760px) {
  .clx-ico-grid { grid-template-columns: repeat(auto-fill, minmax(36px, 1fr)); }
  .clx-name { white-space: normal; }
}


/* ==========================================================================
   Email Templates · Template Studio workspace
   ========================================================================== */

/* ------------------------------ Hero accent ------------------------------ */
.etx-hero {
  background: linear-gradient(120deg, rgba(244,114,182,.14), rgba(129,140,248,.16) 52%, rgba(34,211,238,.08));
  border-color: rgba(244,114,182,.28);
  box-shadow: 0 18px 50px rgba(129,140,248,.16);
}
.etx-hero .mk-hero-title span {
  background: linear-gradient(90deg, #f472b6, #a5b4fc 55%, #22d3ee);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.etx-art-core {
  background: linear-gradient(135deg, #f472b6, #818cf8 45%, #22d3ee);
  background-size: 200% 200%;
  animation: gradShift 6s ease infinite;
  box-shadow: 0 16px 42px rgba(244,114,182,.4);
}
.etx-art-badge { background: linear-gradient(135deg, #22d3ee, #0ea5e9); box-shadow: 0 8px 20px rgba(14,165,233,.45); }
.etx-cp-count i { color: #f472b6; }
.etx-cp-var i { color: #22d3ee; }
.etx-cp-edit i { color: #fbbf24; }

/* ---------------------------- Workspace grid ---------------------------- */
.etx-ws-ic { background: linear-gradient(135deg, #f472b6, #818cf8 50%, #22d3ee); box-shadow: 0 10px 24px rgba(244,114,182,.3); }
.etx-grid { grid-template-columns: minmax(0, 1fr); align-items: stretch; }
.etx-form-col { min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.etx-panel-ic { background: linear-gradient(135deg, #f472b6, #db2777); box-shadow: 0 8px 18px rgba(219,39,119,.35); }
.etx-panel-ic-cyan { background: linear-gradient(135deg, #22d3ee, #0ea5e9); box-shadow: 0 8px 18px rgba(14,165,233,.35); }
.etx-cancel { margin-left: auto; }

/* ------------------------------ Field labels ----------------------------- */
.etx-field-label { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.etx-field-label label { font-size: 12.5px; font-weight: 700; color: var(--text-heading); margin-bottom: 7px; letter-spacing: .01em; }
.etx-counter {
  font-size: 10.5px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--text-dim);
  background: var(--input-bg); border: 1px solid var(--border);
  padding: 2px 8px; border-radius: 99px; margin-bottom: 7px; flex-shrink: 0;
  transition: color .2s, border-color .2s, background .2s;
}
.etx-counter.is-near { color: var(--warning); border-color: rgba(245,158,11,.4); background: var(--warning-bg); }
.etx-counter.is-full { color: var(--danger); border-color: rgba(239,68,68,.45); background: var(--danger-bg); }

/* body textarea keeps its icon top-aligned */
.etx-body-wrap > i { top: 18px; transform: none; }
.etx-body-wrap textarea.input { padding-left: 40px; padding-top: 13px; line-height: 1.6; resize: vertical; min-height: 190px; }

/* ---------------------------- Placeholder chips --------------------------- */
.etx-chips { margin-top: 16px; }
.etx-chips-label {
  display: flex; align-items: center; gap: 7px; font-size: 10.5px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .08em; color: var(--text-dim); margin-bottom: 10px;
}
.etx-chips-label i { color: var(--accent); animation: iconPulse 3s ease-in-out infinite; }
.etx-chips-row { display: flex; flex-wrap: wrap; gap: 8px; }
.etx-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 10px;
  background: var(--input-bg); border: 1px solid var(--border); color: var(--text-dim);
  font-size: 11.5px; font-weight: 600; cursor: pointer; font-family: inherit;
  transition: all .18s ease;
}
.etx-chip code {
  font-family: "Cascadia Code", "Consolas", monospace; font-size: 11.5px; font-weight: 700;
  color: #a5b4fc; background: rgba(99,102,241,.12); border: 1px solid rgba(129,140,248,.25);
  padding: 2px 7px; border-radius: 6px; transition: color .18s, background .18s;
}
.etx-chip:hover {
  transform: translateY(-2px); border-color: var(--accent); color: var(--text-heading);
  box-shadow: 0 6px 16px var(--accent-glow);
}
.etx-chip:hover code { color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-strong)); }
.etx-chip.is-popped { animation: mailerPop .45s cubic-bezier(.22,1,.36,1); }


/* ------------------------------ Submit button ---------------------------- */
.etx-submit-row { margin-top: 18px; }
.etx-submit {
  position: relative; overflow: hidden; width: 100%; border: none; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 22px; border-radius: 14px; font-size: 14px; font-weight: 800; color: #fff; font-family: inherit;
  background: linear-gradient(120deg, #f472b6, #818cf8 48%, #22d3ee); background-size: 220% 220%;
  box-shadow: 0 12px 30px rgba(244,114,182,.35);
  animation: gradShift 6s ease infinite;
  transition: transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .25s;
}
.etx-submit::after {
  content: ''; position: absolute; top: 0; left: -150%; width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.4), transparent);
  transform: skewX(-14deg); animation: chShine 3.6s ease infinite; pointer-events: none;
}
.etx-submit:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(244,114,182,.45); }
.etx-submit:hover i { animation: qBounce .6s ease; }
.etx-submit.is-loading { pointer-events: none; opacity: .85; }
.etx-submit.is-loading i { animation: spin .8s linear infinite; }

/* ------------------------------ Mail frame ------------------------------ */
.etx-mail {
  border-radius: 16px; overflow: hidden; border: 1px solid var(--border-strong);
  background: var(--input-bg); box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
.etx-mail-chrome {
  display: flex; align-items: center; gap: 6px; padding: 10px 14px;
  background: linear-gradient(180deg, rgba(255,255,255,.05), transparent);
  border-bottom: 1px solid var(--border);
}
.etx-dot { width: 9px; height: 9px; border-radius: 50%; }
.etx-dot-a { background: #f87171; }
.etx-dot-b { background: #fbbf24; }
.etx-dot-c { background: #34d399; }
.etx-mail-name {
  margin-left: 8px; font-size: 11px; font-weight: 700; color: var(--text-dim);
  display: inline-flex; align-items: center; gap: 6px;
}
.etx-mail-name i { color: var(--accent); animation: iconFloat 3.4s ease-in-out infinite; }
.etx-mail-inner { padding: 14px 16px 16px; }
.etx-mail-row { display: flex; gap: 10px; font-size: 12px; margin-bottom: 7px; align-items: baseline; }
.etx-mail-k {
  flex-shrink: 0; width: 48px; font-size: 10px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .08em; color: var(--text-dim);
}
.etx-mail-v { color: var(--text); word-break: break-word; }
.etx-mail-subject { font-weight: 800; color: var(--text-heading); }
.etx-mail-body {
  margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--border-strong);
  font-size: 12.5px; line-height: 1.7; color: var(--text-dim); word-break: break-word;
}
.etx-mail-empty { font-style: italic; opacity: .6; }
.etx-mail-head {
  display: flex; align-items: center; gap: 12px; padding: 18px 20px 14px;
  border-bottom: 1px solid var(--border);
}
.etx-mail-logo { max-width: 150px; max-height: 54px; object-fit: contain; flex-shrink: 0; }
.etx-mail-logo--mono {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  color: #fff; font-weight: 800; font-size: 18px; flex-shrink: 0;
  background: linear-gradient(135deg, #818cf8, #6366f1 45%, #22d3ee);
  box-shadow: 0 8px 18px rgba(99, 102, 241, .35);
}
.etx-mail-head-txt { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.etx-mail-head-txt strong { font-size: 14px; color: var(--text-heading); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.etx-mail-head-txt span { font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-dim); }
.etx-mail-foot {
  display: flex; flex-direction: column; gap: 4px; padding: 14px 20px 16px;
  border-top: 1px solid var(--border); font-size: 11px; line-height: 1.7; color: var(--text-dim);
}
.etx-mail-foot strong { color: var(--text-heading); font-size: 11.5px; }
.etx-mail-foot a { color: var(--accent); text-decoration: none; }


/* ----------------------------- Template table ---------------------------- */
.etx-list-panel { min-width: 0; }
/* Standalone library section — spans the full workspace width below the grid. */
.etx-library { grid-column: 1 / -1; }
.etx-library .etx-subject-cell { max-width: 560px; }
.etx-row-editing { background: rgba(99,102,241,.07); box-shadow: inset 3px 0 0 var(--accent); }
.etx-tpl { display: flex; align-items: center; gap: 12px; min-width: 0; }
.etx-tpl-ico {
  width: 42px; height: 42px; border-radius: 13px; flex-shrink: 0; display: grid; place-items: center;
  color: #fff; font-size: 15px; position: relative; overflow: hidden;
  box-shadow: 0 8px 18px rgba(0,0,0,.2);
}
.etx-tpl-ico::after {
  content: ''; position: absolute; top: -40%; left: -40%; width: 80%; height: 80%;
  background: linear-gradient(135deg, rgba(255,255,255,.4), transparent 60%); transform: rotate(20deg);
}
.etx-tpl-ico i { position: relative; z-index: 1; animation: iconFloat 3.6s ease-in-out infinite; }
.etx-ico-1 { background: linear-gradient(135deg, #f472b6, #db2777); box-shadow: 0 8px 18px rgba(219,39,119,.35); }
.etx-ico-2 { background: linear-gradient(135deg, #818cf8, #6366f1); box-shadow: 0 8px 18px rgba(99,102,241,.35); }
.etx-ico-3 { background: linear-gradient(135deg, #22d3ee, #0ea5e9); box-shadow: 0 8px 18px rgba(14,165,233,.35); }
.etx-ico-4 { background: linear-gradient(135deg, #34d399, #059669); box-shadow: 0 8px 18px rgba(16,185,129,.3); }
.etx-tpl-txt { min-width: 0; }
.etx-name {
  font-size: 13.5px; font-weight: 800; color: var(--text-heading);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.etx-slug {
  display: inline-flex; align-items: center; gap: 5px; margin-top: 3px; max-width: 180px;
  font-family: "Cascadia Code", "Consolas", monospace; font-size: 10.5px; font-weight: 600;
  color: var(--text-dim); background: var(--input-bg); border: 1px solid var(--border);
  padding: 2px 8px; border-radius: 7px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.etx-slug i { font-size: 9px; color: var(--accent); }
.etx-subject-cell {
  display: inline-block; max-width: 300px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 12.5px; color: var(--text-dim); vertical-align: middle;
}
.etx-no-results td { padding: 22px 16px !important; color: var(--text-dim); font-size: 12.5px; text-align: center; }
.etx-no-results td i { color: var(--accent); margin-right: 7px; }

/* empty state */
.etx-empty-ic { background: linear-gradient(135deg, #f472b6, #818cf8); box-shadow: 0 12px 30px rgba(244,114,182,.25); }

/* footnote */
.etx-footnote code {
  font-family: "Cascadia Code", "Consolas", monospace; font-size: 11px;
  color: #a5b4fc; background: rgba(99,102,241,.1); border: 1px solid rgba(129,140,248,.25);
  padding: 1px 5px; border-radius: 6px;
}

/* --------------------------- Light theme overrides ------------------------ */
[data-theme="light"] .etx-art-core { box-shadow: 0 16px 40px rgba(244,114,182,.3); }
[data-theme="light"] .etx-empty-ic { box-shadow: 0 12px 28px rgba(244,114,182,.22); }
[data-theme="light"] .etx-mail { background: #f8fafc; }
[data-theme="light"] .etx-chip { background: #f8fafc; }

/* ------------------------------ Responsive ------------------------------- */
@media (max-width: 1240px) {
  .etx-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .etx-subject-cell { max-width: 180px; }
  .etx-chips-row { gap: 6px; }
  .etx-mail-row { flex-direction: column; gap: 2px; }
}


/* ==========================================================================
   Active Servers · Live Fleet Monitor workspace
   ========================================================================== */

/* ------------------------------ Hero accent ------------------------------ */
.asv-hero {
  background: linear-gradient(120deg, rgba(52,211,153,.14), rgba(34,211,238,.14) 52%, rgba(99,102,241,.08));
  border-color: rgba(52,211,153,.30);
  box-shadow: 0 18px 50px rgba(16,185,129,.14);
}
.asv-hero .mk-hero-title span {
  background: linear-gradient(90deg, #34d399, #22d3ee 55%, #a5b4fc);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.asv-art-core {
  background: linear-gradient(135deg, #34d399, #0ea5e9 45%, #6366f1);
  background-size: 200% 200%;
  animation: gradShift 6s ease infinite;
  box-shadow: 0 16px 42px rgba(16,185,129,.40);
}
.asv-art-badge { background: linear-gradient(135deg, #fbbf24, #f97316); box-shadow: 0 8px 20px rgba(245,158,11,.45); }
.asv-cp-online i { color: #34d399; }

/* ------------------------------ Stat strip ------------------------------ */
.asv-stats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px;
  margin: 22px 0;
}
.asv-stat {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 20px; border-radius: 18px;
  background: var(--card); border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.asv-stat:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--border-strong); }
.asv-stat-ic {
  width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center;
  font-size: 19px; color: #fff; flex-shrink: 0; position: relative;
}
.asv-stat-ic i { position: relative; z-index: 1; animation: iconFloat 4s ease-in-out infinite; }
.asv-stat-ic::after {
  content: ''; position: absolute; inset: 0; border-radius: 15px;
  border: 1px solid rgba(255,255,255,.35); animation: ringPulse 3.6s ease-out infinite;
}
.asv-si-green { background: linear-gradient(135deg, #34d399, #059669); box-shadow: 0 10px 24px rgba(16,185,129,.35); }
.asv-si-cyan  { background: linear-gradient(135deg, #22d3ee, #0ea5e9); box-shadow: 0 10px 24px rgba(14,165,233,.35); }
.asv-si-pink  { background: linear-gradient(135deg, #f472b6, #db2777); box-shadow: 0 10px 24px rgba(219,39,119,.35); }
.asv-stat-label { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--text-dim); }
.asv-stat-value { font-size: 26px; font-weight: 900; color: var(--text-heading); line-height: 1.1; margin-top: 3px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.asv-stat-sub { font-size: 11.5px; color: var(--text-dim); margin-top: 5px; display: inline-flex; align-items: center; gap: 6px; }
.asv-live-dot {
  width: 7px; height: 7px; border-radius: 50%; background: #34d399; position: relative; flex-shrink: 0;
}
.asv-live-dot::after {
  content: ''; position: absolute; inset: -4px; border-radius: 50%;
  background: #34d399; opacity: .4; animation: pingSoft 1.9s ease-out infinite;
}

/* ---------------------------- Workspace accents --------------------------- */
.asv-ws-ic { background: linear-gradient(135deg, #34d399, #22d3ee 50%, #0ea5e9); box-shadow: 0 10px 24px rgba(16,185,129,.30); }
.asv-grid { grid-template-columns: 320px minmax(0, 1fr); align-items: stretch; }
.asv-side { padding: 20px; display: flex; flex-direction: column; min-width: 0; }
.asv-panel-ic { background: linear-gradient(135deg, #34d399, #0ea5e9); box-shadow: 0 8px 18px rgba(14,165,233,.30); }


.asv-hero-count {
  padding: 18px; border-radius: 16px; text-align: center;
  background: linear-gradient(135deg, rgba(52,211,153,.12), rgba(34,211,238,.10));
  border: 1px dashed rgba(52,211,153,.40); position: relative; overflow: hidden;
}
.asv-hero-count::before {
  content: ''; position: absolute; top: -60px; left: -60px; width: 160px; height: 160px;
  border-radius: 50%; background: radial-gradient(circle, rgba(52,211,153,.25), transparent 70%);
  animation: blobDrift 16s ease-in-out infinite;
}
.asv-hero-num { font-size: 44px; font-weight: 900; line-height: 1; color: var(--text-heading); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.asv-hero-caption { margin-top: 8px; font-size: 12px; font-weight: 700; color: var(--text-dim); display: inline-flex; align-items: center; gap: 7px; }

.asv-sec-label {
  display: flex; align-items: center; gap: 7px; margin: 16px 0 10px;
  font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--text-dim);
}
.asv-sec-label i { color: var(--accent); animation: iconPulse 3.2s ease-in-out infinite; }

.asv-locs { display: flex; flex-direction: column; gap: 11px; }
.asv-loc-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.asv-loc-name { font-size: 12px; font-weight: 700; color: var(--text-heading); display: inline-flex; align-items: center; gap: 7px; min-width: 0; }
.asv-loc-name i { color: #22d3ee; font-size: 11px; }
.asv-loc-val { font-size: 11.5px; font-weight: 800; color: var(--text-dim); font-variant-numeric: tabular-nums; }
.asv-loc-track { height: 6px; border-radius: 99px; background: var(--input-bg); border: 1px solid var(--border); overflow: hidden; margin-top: 5px; }
.asv-loc-fill {
  display: block; height: 100%; width: var(--w);
  background: linear-gradient(90deg, #34d399, #22d3ee);
  border-radius: 99px; transform-origin: left; transform: scaleX(0);
  animation: barGrow .8s cubic-bezier(.22,1,.36,1) var(--d) forwards;
}
.asv-side-empty { font-size: 12px; color: var(--text-dim); line-height: 1.6; }
.asv-api-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 13px 14px; border-radius: 14px; background: var(--input-bg); border: 1px solid var(--border);
}
.asv-api-sub { font-size: 11px; color: var(--text-dim); display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.asv-api-sub code {
  font-family: "Cascadia Code", "Consolas", monospace; font-size: 10.5px;
  color: #a5b4fc; background: rgba(99,102,241,.10); border: 1px solid rgba(129,140,248,.25);
  padding: 1px 5px; border-radius: 6px;
}


/* ---------------------------- Server cards ---------------------------- */
.asv-list-col { min-width: 0; display: flex; flex-direction: column; }
.asv-grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; }

.asv-card {
  position: relative; display: flex; flex-direction: column; gap: 14px;
  padding: 18px; border-radius: 18px;
  background: var(--card); border: 1px solid var(--border);
  box-shadow: var(--shadow); overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  animation: mkFadeUp .5s cubic-bezier(.22,1,.36,1) both;
  animation-delay: calc(var(--i) * 55ms);
}
.asv-card::before {
  content: ''; position: absolute; top: -70px; right: -70px; width: 170px; height: 170px;
  border-radius: 50%; background: radial-gradient(circle, var(--accent-glow), transparent 70%);
  pointer-events: none; opacity: .5;
}
.asv-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--border-strong); }

.asv-card-top { position: relative; display: flex; align-items: center; gap: 12px; }
.asv-medal {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  font-size: 18px; color: #fff; flex-shrink: 0; position: relative; overflow: hidden;
}
.asv-medal i { position: relative; z-index: 1; animation: iconFloat 4.2s ease-in-out infinite; }
.asv-medal::after {
  content: ''; position: absolute; top: -40%; left: -40%; width: 80%; height: 80%;
  background: linear-gradient(135deg, rgba(255,255,255,.40), transparent 60%); transform: rotate(20deg);
}
.asv-m1 { background: linear-gradient(135deg, #34d399, #0ea5e9); box-shadow: 0 10px 22px rgba(16,185,129,.35); }
.asv-m2 { background: linear-gradient(135deg, #818cf8, #6366f1); box-shadow: 0 10px 22px rgba(99,102,241,.35); }
.asv-m3 { background: linear-gradient(135deg, #22d3ee, #0ea5e9); box-shadow: 0 10px 22px rgba(14,165,233,.35); }
.asv-m4 { background: linear-gradient(135deg, #f472b6, #db2777); box-shadow: 0 10px 22px rgba(219,39,119,.35); }

.asv-id-block { flex: 1; min-width: 0; }
.asv-host { font-size: 13.5px; font-weight: 800; color: var(--text-heading); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.asv-id-chip {
  display: inline-flex; margin-top: 3px; padding: 2px 8px; border-radius: 7px;
  font-size: 10.5px; font-weight: 700; color: var(--text-dim);
  background: var(--input-bg); border: 1px solid var(--border);
}
.asv-state { flex-shrink: 0; }

.asv-card-body { position: relative; display: flex; flex-direction: column; gap: 10px; }
.asv-cell { display: flex; align-items: center; gap: 11px; min-width: 0; }
.asv-cell-ic {
  width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center;
  font-size: 13px; color: #fff; flex-shrink: 0;
}
.asv-ic-cyan { background: linear-gradient(135deg, #22d3ee, #0ea5e9); }
.asv-ic-indigo { background: linear-gradient(135deg, #818cf8, #6366f1); }
.asv-ic-green { background: linear-gradient(135deg, #34d399, #059669); }
.asv-ic-amber { background: linear-gradient(135deg, #fbbf24, #f59e0b); }
.asv-cell-txt { min-width: 0; flex: 1; }
.asv-cell-label { display: block; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--text-dim); }
.asv-cell-val, .asv-ip { display: block; font-size: 12.5px; font-weight: 600; color: var(--text); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.asv-ip { font-weight: 700; }
.asv-na { font-size: 12.5px; color: var(--text-dim); }


.asv-copy {
  width: 34px; height: 34px; border-radius: 11px; flex-shrink: 0; cursor: pointer;
  display: grid; place-items: center; font-size: 13px;
  color: var(--text-dim); background: var(--input-bg); border: 1px solid var(--border);
  transition: all .18s ease;
}
.asv-copy:hover { color: #34d399; border-color: rgba(52,211,153,.50); background: var(--success-bg); transform: translateY(-1px); }
.asv-copy:hover i { animation: qBounce .5s ease; }
.asv-copy.done { color: #fff; background: linear-gradient(135deg, #34d399, #059669); border-color: transparent; }

.asv-card-foot { position: relative; margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--border); }
.asv-manage { width: 100%; }
.asv-manage i { color: var(--accent); }
.asv-manage:hover i { animation: qBounce .6s ease; }

/* no-results */
.asv-no-results { padding: 30px 20px; text-align: center; animation: mkFadeUp .3s ease both; }
.asv-nr-ic {
  width: 52px; height: 52px; margin: 0 auto 12px; border-radius: 16px;
  display: grid; place-items: center; font-size: 20px; color: #fff;
  background: linear-gradient(135deg, #fbbf24, #f97316); box-shadow: 0 12px 26px rgba(245,158,11,.30);
  animation: iconFloat 3.6s ease-in-out infinite;
}
.asv-nr-title { font-size: 14px; font-weight: 800; color: var(--text-heading); }
.asv-nr-sub { font-size: 12.5px; color: var(--text-dim); margin-top: 3px; }

/* empty state + footnote accents */
.asv-empty code, .asv-footnote code {
  font-family: "Cascadia Code", "Consolas", monospace; font-size: 11px;
  color: #a5b4fc; background: rgba(99,102,241,.10); border: 1px solid rgba(129,140,248,.25);
  padding: 1px 5px; border-radius: 6px;
}
.asv-refresh {
  background: linear-gradient(135deg, #34d399, #22d3ee);
  background-size: 200% 200%;
  border: 1px solid rgba(103,232,249,.45);
  color: #fff;
  box-shadow: 0 8px 20px rgba(34,211,238,.28), inset 0 1px 0 rgba(255,255,255,.18);
}
.asv-refresh:hover {
  background-position: 100% 50%;
  border-color: rgba(165,243,252,.75);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(34,211,238,.38);
}
.asv-refresh.is-spinning i { animation: spin .7s linear infinite; }

/* --------------------------- Light theme overrides ------------------------ */
[data-theme="light"] .asv-art-core { box-shadow: 0 16px 40px rgba(16,185,129,.28); }
[data-theme="light"] .asv-card { background: #ffffff; }

/* ------------------------------ Responsive ------------------------------- */
@media (max-width: 1240px) {
  .asv-grid { grid-template-columns: 1fr; }
  .asv-side { order: -1; }
}
@media (max-width: 860px) {
  .asv-stats { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .asv-grid-cards { grid-template-columns: 1fr; }
}

/* ======================================================================
   In-Stock Servers (ins) — amber inventory theme
   ====================================================================== */
.ins-hero::before { background: radial-gradient(ellipse 80% 100% at 30% 0%, rgba(245,158,11,.16), transparent 62%); }
.ins-hero .mk-hero-title span {
  background: linear-gradient(90deg, #fcd34d, #fb923c 65%, #f97316);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.ins-hero .mk-eyebrow i { color: #fb923c; }
.ins-hero-orb-a { background: rgba(251,146,60,.28); }
.ins-hero-orb-b { background: rgba(244,63,94,.18); }
.ins-hero .mk-hero-float { color: rgba(251,146,60,.30); }
.ins-art-core {
  background: linear-gradient(135deg, #fbbf24, #f97316);
  box-shadow: 0 22px 44px rgba(245,158,11,.38);
  animation: iconFloat 4.4s ease-in-out infinite;
}
.ins-art-badge { background: linear-gradient(135deg, #f472b6, #db2777); box-shadow: 0 10px 22px rgba(219,39,119,.42); }

/* stat strip */
.ins-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 22px; }
.ins-stat {
  display: flex; align-items: center; gap: 14px; padding: 18px 20px;
  background: var(--card-bg); border: 1px solid var(--border); border-radius: 16px;
  position: relative; overflow: hidden; transition: transform .25s, border-color .25s, box-shadow .25s;
}
.ins-stat::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: linear-gradient(90deg, #fbbf24, #fb923c, #f472b6); opacity: .45;
}
.ins-stat:hover { transform: translateY(-3px); border-color: rgba(251,146,60,.45); box-shadow: 0 14px 30px rgba(0,0,0,.14); }
.ins-stat-ic {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  font-size: 18px; color: #fff; position: relative; flex-shrink: 0;
}
.ins-stat-ic i { position: relative; z-index: 1; animation: iconFloat 4s ease-in-out infinite; }
.ins-stat-ic::after { content: ''; position: absolute; inset: 0; border-radius: 14px; border: 1px solid rgba(255,255,255,.35); animation: ringPulse 3.2s ease-out infinite; }
.ins-si-amber { background: linear-gradient(135deg, #fbbf24, #f97316); box-shadow: 0 10px 22px rgba(245,158,11,.35); }
.ins-si-cyan   { background: linear-gradient(135deg, #22d3ee, #0ea5e9); box-shadow: 0 10px 22px rgba(14,165,233,.35); }
.ins-si-pink   { background: linear-gradient(135deg, #f472b6, #db2777); box-shadow: 0 10px 22px rgba(219,39,119,.32); }
.ins-stat-label { font-size: 11.5px; text-transform: uppercase; letter-spacing: .09em; color: var(--text-dim); font-weight: 700; }
.ins-stat-value { font-size: 26px; font-weight: 900; color: var(--text-heading); letter-spacing: -.02em; line-height: 1.15; }
.ins-stat-sub { font-size: 11.5px; color: var(--text-dim); display: flex; align-items: center; gap: 6px; margin-top: 2px; }
.ins-live-dot { width: 7px; height: 7px; border-radius: 50%; background: #34d399; position: relative; flex-shrink: 0; }
.ins-live-dot::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; background: #34d399; opacity: .4; animation: pingSoft 1.9s ease-out infinite; }

/* workspace accents */
.ins-ws-ic { background: linear-gradient(135deg, #fbbf24, #f97316); box-shadow: 0 10px 24px rgba(245,158,11,.30); }
.ins-panel-ic { background: linear-gradient(135deg, #fbbf24, #f97316); box-shadow: 0 8px 18px rgba(245,158,11,.35); }
.ins-list-col { min-width: 0; }
.ins-refresh {
  background: linear-gradient(135deg, #fbbf24, #f97316);
  background-size: 200% 200%;
  border: 1px solid rgba(253,186,116,.45);
  color: #fff;
  box-shadow: 0 8px 20px rgba(245,158,11,.30), inset 0 1px 0 rgba(255,255,255,.18);
}
.ins-refresh:hover {
  background-position: 100% 50%;
  border-color: rgba(254,215,170,.80);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(245,158,11,.40);
}
.ins-refresh.is-spinning i { animation: spin .7s linear infinite; }

/* snapshot */
.ins-hero-count {
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 20px 16px;
  margin-bottom: 18px; border-radius: 14px; position: relative; overflow: hidden;
  background: linear-gradient(135deg, rgba(251,146,60,.12), rgba(244,63,94,.08));
  border: 1px dashed rgba(251,146,60,.35);
}
.ins-hero-count::before {
  content: ''; position: absolute; width: 160px; height: 160px; top: -70px; right: -50px;
  background: radial-gradient(circle, rgba(251,146,60,.22), transparent 70%);
}
.ins-hero-num {
  font-size: 46px; font-weight: 900; line-height: 1; letter-spacing: -.03em;
  background: linear-gradient(135deg, #fcd34d, #fb923c, #f472b6);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.ins-hero-caption { font-size: 12px; color: var(--text-dim); display: flex; align-items: center; gap: 6px; }
.ins-sec-label {
  display: flex; align-items: center; gap: 7px; margin-bottom: 10px;
  font-size: 11px; text-transform: uppercase; letter-spacing: .09em; font-weight: 800; color: var(--text-dim);
}
.ins-sec-label i { color: #fb923c; animation: iconPulse 3s ease-in-out infinite; }
.ins-locs { display: flex; flex-direction: column; gap: 11px; }
.ins-loc-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ins-loc-name { font-size: 12px; font-weight: 700; color: var(--text-heading); display: inline-flex; align-items: center; gap: 7px; min-width: 0; }
.ins-loc-name i { color: #fb923c; font-size: 11px; }
.ins-loc-val { font-size: 11.5px; font-weight: 800; color: var(--text-dim); font-variant-numeric: tabular-nums; }
.ins-loc-track { height: 6px; border-radius: 99px; background: var(--input-bg); border: 1px solid var(--border); overflow: hidden; margin-top: 5px; }
.ins-loc-fill {
  display: block; height: 100%; width: var(--w);
  background: linear-gradient(90deg, #fbbf24, #fb923c, #f472b6);
  border-radius: 99px; transform-origin: left; transform: scaleX(0);
  animation: barGrow .8s cubic-bezier(.22,1,.36,1) var(--d) forwards;
}
.ins-side-empty { font-size: 12px; color: var(--text-dim); line-height: 1.6; }
.ins-mix { display: flex; flex-wrap: wrap; gap: 8px; }
.ins-mix-chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 99px;
  font-size: 11px; font-weight: 700; color: var(--text); border: 1px solid var(--border); background: var(--input-bg);
}
.ins-mix-chip b { text-transform: capitalize; }
.ins-mix-chip em { font-style: normal; font-weight: 900; color: var(--text-heading); }
.ins-mix-dot { width: 7px; height: 7px; border-radius: 50%; }
.ins-md-amber { background: #fbbf24; box-shadow: 0 0 8px rgba(251,191,36,.8); }
.ins-md-cyan   { background: #22d3ee; box-shadow: 0 0 8px rgba(34,211,238,.8); }
.ins-md-pink   { background: #f472b6; box-shadow: 0 0 8px rgba(244,114,182,.8); }
.ins-api-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 13px 14px; border-radius: 14px; background: var(--input-bg); border: 1px solid var(--border);
}
.ins-api-sub { font-size: 11px; color: var(--text-dim); display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.ins-api-sub code {
  font-family: "Cascadia Code", "Consolas", monospace; font-size: 10.5px;
  color: #fb923c; background: rgba(251,146,60,.10); border: 1px solid rgba(251,146,60,.25);
  padding: 1px 5px; border-radius: 6px;
}

/* cards */
.ins-grid-cards { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.ins-card {
  background: var(--card-bg); border: 1px solid var(--border); border-radius: 16px; padding: 18px;
  position: relative; overflow: hidden; transition: transform .25s cubic-bezier(.22,1,.36,1), border-color .25s, box-shadow .25s;
  animation: mkFadeUp .5s cubic-bezier(.22,1,.36,1) both; animation-delay: calc(var(--i) * 60ms);
}
.ins-card::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, #fbbf24, #fb923c, #f472b6); opacity: 0; transition: opacity .25s;
}
.ins-card:hover { transform: translateY(-4px); border-color: rgba(251,146,60,.45); box-shadow: 0 16px 34px rgba(0,0,0,.18); }
.ins-card:hover::before { opacity: 1; }
.ins-card-top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.ins-medal {
  width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center;
  color: #fff; font-size: 17px; flex-shrink: 0; position: relative;
}
.ins-medal i { position: relative; z-index: 1; animation: iconFloat 4.4s ease-in-out infinite; }
.ins-medal::after { content: ''; position: absolute; inset: 0; border-radius: 13px; border: 1px solid rgba(255,255,255,.35); animation: ringPulse 3.2s ease-out infinite; }
.ins-m1 { background: linear-gradient(135deg, #fbbf24, #f97316); box-shadow: 0 8px 18px rgba(245,158,11,.35); }
.ins-m2 { background: linear-gradient(135deg, #fb923c, #ea580c); box-shadow: 0 8px 18px rgba(234,88,12,.32); }
.ins-m3 { background: linear-gradient(135deg, #f472b6, #db2777); box-shadow: 0 8px 18px rgba(219,39,119,.30); }
.ins-m4 { background: linear-gradient(135deg, #22d3ee, #0ea5e9); box-shadow: 0 8px 18px rgba(14,165,233,.32); }
.ins-id-block { flex: 1; min-width: 0; }
.ins-host { font-size: 13.5px; font-weight: 800; color: var(--text-heading); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ins-id-chip { font-size: 11px; color: #fb923c; font-weight: 700; display: inline-flex; align-items: center; gap: 5px; margin-top: 2px; }
.ins-state { font-size: 11px; flex-shrink: 0; }
.ins-p-amber { background: rgba(251,191,36,.12); color: #fbbf24; }
.ins-p-cyan   { background: rgba(34,211,238,.12); color: #22d3ee; }
.ins-p-pink   { background: rgba(244,114,182,.12); color: #f472b6; }
.ins-card-body { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; }
.ins-cell {
  display: flex; align-items: center; gap: 9px; min-width: 0;
  background: var(--input-bg); border: 1px solid var(--border); border-radius: 11px; padding: 9px 11px;
}
.ins-cell-ic { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font-size: 12px; color: #fff; flex-shrink: 0; }
.ins-ic-amber { background: linear-gradient(135deg, #fbbf24, #f97316); }
.ins-ic-cyan   { background: linear-gradient(135deg, #22d3ee, #0ea5e9); }
.ins-ic-pink   { background: linear-gradient(135deg, #f472b6, #db2777); }
.ins-cell-txt { flex: 1; min-width: 0; }
.ins-cell-label { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--text-dim); }
.ins-cell-val { display: block; font-size: 12px; font-weight: 700; color: var(--text-heading); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ins-ip-wrap { display: flex; align-items: center; gap: 7px; min-width: 0; }
.ins-ip-val { font-family: "Cascadia Code", "Consolas", monospace; font-size: 11.5px; color: #fbbf24; flex: 1; min-width: 0; }
.ins-copy {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center;
  font-size: 11px; color: var(--text-dim); border: 1px solid var(--border); background: var(--card-bg); cursor: pointer;
  transition: color .2s, border-color .2s, transform .2s, background .2s;
}
.ins-copy:hover { color: #fbbf24; border-color: rgba(251,191,36,.5); transform: scale(1.08); }
.ins-copy.done { color: #34d399; border-color: rgba(52,211,153,.5); background: rgba(52,211,153,.10); }
.ins-card-foot { margin-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ins-avail { font-size: 11px; color: var(--text-dim); display: inline-flex; align-items: center; gap: 6px; }
.ins-avail i { color: #fbbf24; animation: iconPulse 3s ease-in-out infinite; }
.ins-no-results { display: none; grid-column: 1 / -1; text-align: center; padding: 36px 16px; }
.ins-nr-ic {
  width: 52px; height: 52px; margin: 0 auto 12px; border-radius: 16px; display: grid; place-items: center;
  font-size: 20px; color: #fff; background: linear-gradient(135deg, #fbbf24, #f97316); box-shadow: 0 12px 26px rgba(245,158,11,.30);
}
.ins-nr-title { font-size: 14px; font-weight: 800; color: var(--text-heading); }
.ins-nr-sub { font-size: 12.5px; color: var(--text-dim); margin-top: 3px; }

/* empty state + footnote accents */
.ins-empty code, .ins-footnote code {
  font-family: "Cascadia Code", "Consolas", monospace; font-size: 11px;
  color: #fb923c; background: rgba(251,146,60,.10); border: 1px solid rgba(251,146,60,.25);
  padding: 1px 5px; border-radius: 6px;
}
.ins-empty-ic { background: linear-gradient(135deg, #fbbf24, #f97316); box-shadow: 0 12px 26px rgba(245,158,11,.30); }

/* --------------------------- Light theme overrides ------------------------ */
[data-theme="light"] .ins-art-core { box-shadow: 0 16px 40px rgba(245,158,11,.28); }
[data-theme="light"] .ins-card { background: #ffffff; }

/* ------------------------------ Responsive ------------------------------- */
@media (max-width: 1240px) {
  .ins-grid { grid-template-columns: 1fr; }
  .ins-side { order: -1; }
}
@media (max-width: 860px) {
  .ins-stats { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .ins-grid-cards { grid-template-columns: 1fr; }
  .ins-card-body { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Notification Center (ntf) — violet announcement theme
   ========================================================================== */
/* ------------------------------ Hero accent ------------------------------ */
.ntf-hero::before { background: radial-gradient(ellipse 80% 100% at 30% 0%, rgba(167,139,250,.16), transparent 62%); }
.ntf-hero .mk-hero-title span {
  background: linear-gradient(90deg, #c4b5fd, #818cf8 55%, #22d3ee);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.ntf-hero .mk-eyebrow i { color: #a78bfa; }
.ntf-hero-orb-a { background: rgba(167,139,250,.28); }
.ntf-hero-orb-b { background: rgba(34,211,238,.18); }
.ntf-hero .mk-hero-float { color: rgba(167,139,250,.30); }
.ntf-hero-pill { background: rgba(167,139,250,.14); color: #a78bfa; border-color: rgba(167,139,250,.30); }
.ntf-hero-pill .dot { background: #a78bfa; }
.ntf-art-core {
  background: linear-gradient(135deg, #a78bfa, #6366f1 45%, #22d3ee);
  box-shadow: 0 22px 44px rgba(139,92,246,.38);
}
.ntf-art-badge { background: linear-gradient(135deg, #f472b6, #db2777); box-shadow: 0 10px 22px rgba(219,39,119,.42); }

/* ------------------------------ Stat strip ------------------------------ */
.ntf-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 22px; }
.ntf-stat {
  display: flex; align-items: center; gap: 14px; padding: 18px 20px;
  background: var(--card-bg); border: 1px solid var(--border); border-radius: 16px;
  position: relative; overflow: hidden; transition: transform .25s, border-color .25s, box-shadow .25s;
}
.ntf-stat::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: linear-gradient(90deg, #a78bfa, #22d3ee, #f472b6); opacity: .45;
}
.ntf-stat:hover { transform: translateY(-3px); border-color: rgba(167,139,250,.45); box-shadow: 0 14px 30px rgba(0,0,0,.14); }
.ntf-stat-ic {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  font-size: 18px; color: #fff; position: relative; flex-shrink: 0;
}
.ntf-stat-ic i { position: relative; z-index: 1; animation: iconFloat 4s ease-in-out infinite; }
.ntf-stat-ic::after { content: ''; position: absolute; inset: 0; border-radius: 14px; border: 1px solid rgba(255,255,255,.35); animation: ringPulse 3.2s ease-out infinite; }
.ntf-si-violet { background: linear-gradient(135deg, #a78bfa, #6366f1); box-shadow: 0 10px 22px rgba(139,92,246,.35); }
.ntf-si-cyan   { background: linear-gradient(135deg, #22d3ee, #0ea5e9); box-shadow: 0 10px 22px rgba(14,165,233,.35); }
.ntf-si-green  { background: linear-gradient(135deg, #34d399, #059669); box-shadow: 0 10px 22px rgba(16,185,129,.35); }
.ntf-stat-label { font-size: 11.5px; text-transform: uppercase; letter-spacing: .09em; color: var(--text-dim); font-weight: 700; }
.ntf-stat-value { font-size: 26px; font-weight: 900; color: var(--text-heading); letter-spacing: -.02em; line-height: 1.15; }
.ntf-stat-sub { font-size: 11.5px; color: var(--text-dim); display: flex; align-items: center; gap: 6px; margin-top: 2px; }
.ntf-stat-sub i { font-size: 10.5px; color: #a78bfa; }
.ntf-live-dot { width: 7px; height: 7px; border-radius: 50%; background: #22d3ee; position: relative; flex-shrink: 0; }
.ntf-live-dot::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; background: #22d3ee; opacity: .4; animation: pingSoft 1.9s ease-out infinite; }

/* --------------------------- Workspace accents --------------------------- */
.ntf-ws-ic { background: linear-gradient(135deg, #a78bfa, #6366f1); box-shadow: 0 10px 24px rgba(139,92,246,.30); }
.ntf-panel-ic { background: linear-gradient(135deg, #a78bfa, #6366f1); box-shadow: 0 8px 18px rgba(139,92,246,.35); }
.ntf-list-col { min-width: 0; }
.ntf-compose-btn {
  background: linear-gradient(135deg, #a78bfa, #6366f1 55%, #4f46e5);
  background-size: 200% 200%;
  border: 1px solid rgba(196,181,253,.50);
  color: #fff;
  box-shadow: 0 8px 20px rgba(139,92,246,.30), inset 0 1px 0 rgba(255,255,255,.18);
  animation: gradShift 6s ease infinite;
}
.ntf-compose-btn:hover {
  background: linear-gradient(135deg, #c4b5fd, #6366f1 55%, #4338ca);
  background-size: 200% 200%;
  border-color: rgba(221,214,254,.80);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(139,92,246,.42), inset 0 1px 0 rgba(255,255,255,.20);
}
.ntf-compose-btn i { color: #fff; }


/* ------------------------------ Compose card ----------------------------- */
.ntf-compose {
  position: relative; overflow: visible; border: 1px solid var(--border); border-radius: 18px;
  background: var(--card-bg); padding: 20px 22px; margin-bottom: 20px;
  transition: box-shadow .3s ease, border-color .3s ease;
}
.ntf-compose::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  border-radius: 18px 18px 0 0;
  background: linear-gradient(90deg, #a78bfa, #22d3ee, #f472b6); background-size: 200% 100%;
  animation: gradShift 6s ease infinite;
}
.ntf-compose.is-flash { border-color: rgba(167,139,250,.55); box-shadow: 0 0 0 5px rgba(167,139,250,.14), 0 14px 30px rgba(0,0,0,.14); }
.ntf-compose-top { display: flex; align-items: center; gap: 13px; margin-bottom: 18px; }
.ntf-compose-ic {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  font-size: 18px; color: #fff; flex-shrink: 0; position: relative;
  background: linear-gradient(135deg, #a78bfa, #6366f1); background-size: 200% 200%;
  box-shadow: 0 10px 22px rgba(139,92,246,.35); animation: gradShift 6s ease infinite;
}
.ntf-compose-ic i { position: relative; z-index: 1; animation: sendFloat 3.2s ease-in-out infinite; }
.ntf-compose-title { font-size: 15px; font-weight: 800; color: var(--text-heading); }
.ntf-compose-sub { font-size: 12.5px; color: var(--text-dim); margin-top: 2px; }
.ntf-toggle {
  position: relative; display: inline-flex; align-items: center; gap: 9px;
  font-size: 13px; color: var(--text-dim); cursor: pointer; margin-bottom: 16px; user-select: none;
}
.ntf-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.ntf-toggle-track {
  position: relative; width: 40px; height: 22px; border-radius: 99px; flex-shrink: 0;
  background: var(--input-bg); border: 1px solid var(--border-strong);
  transition: background .22s ease, border-color .22s ease;
}
.ntf-toggle-thumb {
  position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--text-dim); transition: transform .22s cubic-bezier(.22,1,.36,1), background .22s;
}
.ntf-toggle input:checked + .ntf-toggle-track { background: linear-gradient(135deg, #a78bfa, #6366f1); border-color: transparent; }
.ntf-toggle input:checked + .ntf-toggle-track .ntf-toggle-thumb { transform: translateX(18px); background: #fff; }
.ntf-send {
  background: linear-gradient(135deg, #a78bfa, #6366f1 55%, #22d3ee); background-size: 200% 200%;
  color: #fff; box-shadow: 0 8px 22px rgba(139,92,246,.35); animation: gradShift 6s ease infinite;
}
.ntf-send:hover { transform: translateY(-1px); box-shadow: 0 12px 30px rgba(139,92,246,.45); }
.ntf-send.is-sending, .ntf-read.is-sending { opacity: .85; cursor: wait; }
.ntf-send.is-sending i, .ntf-read.is-sending i { animation: spin .8s linear infinite; }


/* ---------------------- Custom dropdowns (Type / Audience) ---------------------- */
.ntf-dd { position: relative; }
.ntf-dd.is-disabled { opacity: .55; }
.ntf-dd.is-disabled .ntf-dd-trigger { cursor: not-allowed; }
.ntf-dd.is-disabled .ntf-dd-menu { pointer-events: none; }
.ntf-dd-trigger {
  width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border-radius: 12px; cursor: pointer; text-align: left; font: inherit;
  background: var(--input-bg); border: 1px solid var(--border-strong); color: var(--text);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.ntf-dd-trigger:hover { border-color: rgba(167,139,250,.45); }
.ntf-dd.is-open .ntf-dd-trigger { border-color: #a78bfa; box-shadow: 0 0 0 4px rgba(167,139,250,.14); }
.ntf-dd-val { flex: 1; min-width: 0; display: flex; align-items: center; }
.ntf-dd-caret { font-size: 11px; color: var(--text-dim); flex-shrink: 0; transition: transform .25s ease; }
.ntf-dd.is-open .ntf-dd-caret { transform: rotate(180deg); }
.ntf-dd-menu {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 70;
  /* var(--card-bg) does not exist in the theme, which left the menu
     fully transparent. Use the solid surface so every option is readable. */
  background: var(--bg-card);
  background-image: linear-gradient(180deg, rgba(255,255,255,.03), transparent);
  border: 1px solid var(--border-strong); border-radius: 14px;
  padding: 8px;
  box-shadow: 0 24px 60px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.06);
  opacity: 0; transform: translateY(-6px) scale(.98); pointer-events: none;
  transition: opacity .18s ease, transform .18s cubic-bezier(.22,1,.36,1);
}
.ntf-dd-menu.is-in { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.ntf-dd-opt {
  width: 100%; display: flex; align-items: center; gap: 10px; padding: 9px 10px;
  border: 1px solid transparent; border-radius: 10px; background: transparent;
  color: var(--text); font: inherit; font-size: 13px; font-weight: 600; text-align: left;
  cursor: pointer; transition: background .16s ease, border-color .16s ease, transform .16s ease;
}
.ntf-dd-opt + .ntf-dd-opt { margin-top: 3px; }
.ntf-dd-opt:hover { background: rgba(129,140,248,.14); border-color: rgba(167,139,250,.40); transform: translateX(3px); }
.ntf-dd-opt.is-selected { background: rgba(167,139,250,.12); border-color: rgba(167,139,250,.28); }
.ntf-dd-ic {
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  font-size: 13px; flex-shrink: 0; color: #fff; position: relative;
}
.ntf-dd-ic i { position: relative; z-index: 1; animation: iconFloat 4.4s ease-in-out infinite; }
.ntf-dd-ic.is-pick i { animation: ntfDdPop .5s cubic-bezier(.22,1,.36,1); }
.ntf-dd-ic-info    { background: linear-gradient(135deg, #22d3ee, #0ea5e9); box-shadow: 0 6px 14px rgba(14,165,233,.35); }
.ntf-dd-ic-success { background: linear-gradient(135deg, #34d399, #059669); box-shadow: 0 6px 14px rgba(16,185,129,.35); }
.ntf-dd-ic-warning { background: linear-gradient(135deg, #fbbf24, #f97316); box-shadow: 0 6px 14px rgba(245,158,11,.35); }
.ntf-dd-ic-danger  { background: linear-gradient(135deg, #fb7185, #e11d48); box-shadow: 0 6px 14px rgba(225,29,72,.32); }
.ntf-dd-ic-global  { background: linear-gradient(135deg, #a78bfa, #6366f1); box-shadow: 0 6px 14px rgba(139,92,246,.35); }
.ntf-dd-ic-client  { background: linear-gradient(135deg, #22d3ee, #818cf8); box-shadow: 0 6px 14px rgba(129,140,248,.35); font-size: 12px; font-weight: 800; }


.ntf-dd-label { flex: 1; min-width: 0; }
.ntf-dd-cname { display: block; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ntf-dd-cemail { display: block; font-size: 11px; font-weight: 500; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ntf-dd-check {
  width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
  font-size: 10px; color: #fff; background: linear-gradient(135deg, #a78bfa, #6366f1);
  opacity: 0; transform: scale(.4); transition: all .22s cubic-bezier(.22,1,.36,1);
}
.ntf-dd-opt.is-selected .ntf-dd-check { opacity: 1; transform: scale(1); animation: ntfDdPop .4s cubic-bezier(.22,1,.36,1); }
.ntf-dd-search {
  display: flex; align-items: center; gap: 8px; padding: 8px 10px; margin-bottom: 6px;
  background: var(--input-bg); border: 1px solid var(--border); border-radius: 10px; color: var(--text-dim);
}
.ntf-dd-search i { font-size: 12px; flex-shrink: 0; }
.ntf-dd-search input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--text); font: inherit; font-size: 12.5px; outline: none; }
.ntf-dd-search input::placeholder { color: var(--text-dim); }
.ntf-dd-list { max-height: none; overflow: visible; overscroll-behavior: contain; }
.ntf-dd-empty { padding: 12px; text-align: center; font-size: 12px; color: var(--text-dim); display: flex; align-items: center; justify-content: center; gap: 6px; }
@keyframes ntfDdPop {
  0% { transform: scale(.4); }
  60% { transform: scale(1.22); }
  100% { transform: scale(1); }
}

/* --------------------- Delete confirmation modal --------------------- */
.ntf-modal {
  position: fixed; inset: 0; z-index: 500; display: none;
  align-items: center; justify-content: center; padding: 20px;
}
.ntf-modal.show { display: flex; }
.ntf-modal-bg {
  position: absolute; inset: 0;
  background: rgba(2,6,23,.72);
  backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px);
  animation: ntfFadeIn .25s ease both;
}
.ntf-modal-card {
  position: relative; width: 100%; max-width: 430px; padding: 30px 28px 26px; overflow: hidden;
  background: var(--dropdown-bg); border: 1px solid var(--border-strong); border-radius: 22px;
  box-shadow: 0 30px 80px rgba(0,0,0,.55);
  animation: ntfModalIn .42s cubic-bezier(.34,1.56,.64,1) both;
  text-align: center;
}
.ntf-modal-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, #f87171, #e11d48, #fb923c); background-size: 200% 100%;
  animation: gradShift 6s ease infinite;
}
.ntf-modal-close {
  position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border-radius: 10px;
  display: grid; place-items: center; background: var(--input-bg); border: 1px solid var(--border);
  color: var(--text-dim); font-size: 13px; cursor: pointer; transition: all .18s ease;
}
.ntf-modal-close:hover { color: var(--danger); border-color: var(--danger); background: var(--danger-bg); transform: rotate(90deg); }

.ntf-modal-badge {
  position: relative; width: 76px; height: 76px; margin: 4px auto 18px;
  display: grid; place-items: center;
}
.ntf-modal-badge::before { /* expanding pulse ring */
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  background: rgba(248,113,113,.20);
  animation: ntfPing 1.7s cubic-bezier(0,0,.2,1) infinite;
}
.ntf-modal-badge::after { /* dashed orbit ring */
  content: ''; position: absolute; inset: -9px; border-radius: 50%;
  border: 1.5px dashed rgba(248,113,113,.32);
  animation: ntfSpin 14s linear infinite;
}
.ntf-modal-badge-ic {
  position: relative; z-index: 1; width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; font-size: 22px; color: #fff;
  background: linear-gradient(135deg, #fb7185, #e11d48 60%, #be123c); background-size: 200% 200%;
  box-shadow: 0 12px 30px rgba(225,29,72,.45);
  animation: gradShift 6s ease infinite;
}
.ntf-modal-badge-ic i { position: relative; z-index: 1; animation: ntfShake 2.6s ease-in-out infinite; }
.ntf-modal.show .ntf-modal-badge-ic i {
  animation: ntfTrashPop .55s cubic-bezier(.34,1.56,.64,1), ntfShake 2.6s ease-in-out .55s infinite;
}

.ntf-modal-title { font-size: 17px; font-weight: 800; color: var(--text-heading); }
.ntf-modal-sub { font-size: 12.5px; color: var(--text-dim); line-height: 1.6; margin-top: 7px; }
.ntf-modal-sub strong { color: var(--text); font-weight: 700; overflow-wrap: anywhere; }
.ntf-modal-warn {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 16px; padding: 8px 14px;
  border-radius: 99px; font-size: 11.5px; font-weight: 700; color: var(--warning);
  background: var(--warning-bg); border: 1px solid rgba(245,158,11,.28);
}
.ntf-modal-warn i { animation: iconPulse 2.4s ease-in-out infinite; }
.ntf-modal-actions { display: flex; justify-content: center; gap: 12px; margin-top: 24px; }
/* Secondary action: violet/indigo accent, matching the panel's primary style so
   it clearly reads as a button in both themes (never white-only or grey). */
/* Secondary action: vivid indigo/violet accent (never grey) in both themes so
   it clearly reads as a button next to the red confirm. */
.ntf-modal-cancel {
  min-width: 112px;
  background: linear-gradient(135deg, #a78bfa, #6366f1 55%, #4f46e5);
  background-size: 200% 200%;
  border: 1px solid rgba(196,181,253,.55);
  color: #fff;
  box-shadow: 0 8px 20px rgba(99,102,241,.30), inset 0 1px 0 rgba(255,255,255,.18);
  animation: gradShift 6s ease infinite;
}
.ntf-modal-cancel:hover {
  background: linear-gradient(135deg, #c4b5fd, #6366f1 55%, #4338ca);
  background-size: 200% 200%;
  border-color: rgba(221,214,254,.80);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(99,102,241,.42), inset 0 1px 0 rgba(255,255,255,.20);
}
.ntf-modal-cancel:active { transform: scale(.96); }
[data-theme="light"] .ntf-modal-cancel {
  background: linear-gradient(135deg, #818cf8, #6366f1 55%, #4f46e5);
  background-size: 200% 200%;
  border-color: rgba(99,102,241,.60);
  color: #fff;
  box-shadow: 0 8px 20px rgba(99,102,241,.28), inset 0 1px 0 rgba(255,255,255,.18);
  animation: gradShift 6s ease infinite;
}
[data-theme="light"] .ntf-modal-cancel:hover {
  background: linear-gradient(135deg, #a5b4fc, #6366f1 55%, #4338ca);
  background-size: 200% 200%;
  border-color: rgba(99,102,241,.85);
  color: #fff;
}
.ntf-modal-confirm {
  min-width: 132px;
  background: linear-gradient(135deg, #f87171, #e11d48 60%, #be123c); background-size: 200% 200%;
  color: #fff; box-shadow: 0 10px 26px rgba(225,29,72,.40);
  animation: gradShift 6s ease infinite;
}
.ntf-modal-confirm:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(225,29,72,.50); }
.ntf-modal-confirm.is-loading { opacity: .85; cursor: wait; pointer-events: none; }
.ntf-modal-confirm.is-loading i { animation: spin .8s linear infinite; }

@keyframes ntfFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes ntfModalIn {
  0% { opacity: 0; transform: translateY(26px) scale(.92); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes ntfPing {
  0% { transform: scale(.85); opacity: .9; }
  80%, 100% { transform: scale(1.55); opacity: 0; }
}
@keyframes ntfSpin { to { transform: rotate(360deg); } }
@keyframes ntfShake {
  0%, 86%, 100% { transform: rotate(0); }
  89% { transform: rotate(-14deg) scale(1.08); }
  92% { transform: rotate(11deg) scale(1.12); }
  95% { transform: rotate(-7deg) scale(1.06); }
  98% { transform: rotate(3deg); }
}
@keyframes ntfTrashPop {
  0% { transform: scale(0); }
  55% { transform: scale(1.35) rotate(-6deg); }
  100% { transform: scale(1) rotate(0); }
}
[data-theme="light"] .ntf-modal-card { background: #ffffff; }
[data-theme="light"] .ntf-modal-bg { background: rgba(15,23,42,.42); }


/* ------------------------------ Feed column head ----------------------------- */
.ntf-feed-head {
  display: flex; align-items: center; gap: 14px; margin-bottom: 16px; padding: 14px 16px;
  border-radius: 16px; border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(167,139,250,.10), rgba(34,211,238,.05));
}
.ntf-feed-head-ic {
  position: relative; width: 44px; height: 44px; border-radius: 13px; flex-shrink: 0;
  display: grid; place-items: center; color: #fff; font-size: 17px;
  background: linear-gradient(135deg, #a78bfa, #6366f1); box-shadow: 0 8px 20px rgba(139,92,246,.35);
}
.ntf-feed-head-ic i { position: relative; z-index: 1; animation: iconFloat 4.4s ease-in-out infinite; }
.ntf-feed-head-ic::after {
  content: ''; position: absolute; inset: 0; border-radius: 13px;
  border: 1px solid rgba(255,255,255,.35); animation: ringPulse 3.2s ease-out infinite;
}
.ntf-feed-head-txt { flex: 1; min-width: 0; }
.ntf-feed-title { margin: 0; font-size: 17px; font-weight: 900; letter-spacing: -.01em; color: var(--text-heading); }
.ntf-feed-title span {
  background: linear-gradient(100deg, #a78bfa, #22d3ee);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ntf-feed-sub { margin: 3px 0 0; font-size: 12.5px; color: var(--text-dim); }
.ntf-feed-live { flex-shrink: 0; }

/* ------------------------------ Compose footer ------------------------------ */
.ntf-compose-foot {
  display: flex; align-items: center; justify-content: flex-end; gap: 18px; flex-wrap: wrap;
  margin-top: 18px;
}
.ntf-compose-foot .ntf-toggle { margin-bottom: 0; }
.ntf-foot-hint {
  margin-right: auto; display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; color: var(--text-dim);
}
.ntf-foot-hint i { color: #a78bfa; animation: iconPulse 3.2s ease-in-out infinite; }

/* ------------------------------ Delete action ------------------------------ */
.ntf-del-form { margin: 0; display: inline-flex; flex-shrink: 0; }
.ntf-del {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: var(--input-bg); border: 1px solid var(--border); color: var(--text-dim);
  font-size: 14px; cursor: pointer; flex-shrink: 0;
  transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease;
}
.ntf-del:hover {
  color: #fb7185; background: rgba(251,113,133,.12);
  border-color: rgba(251,113,133,.35); transform: translateY(-1px);
}
.ntf-del:hover i { animation: qBounce .5s ease; }

@media (max-width: 640px) {
  .ntf-compose-foot { justify-content: flex-end; gap: 12px; }
  .ntf-foot-hint { width: 100%; margin-right: 0; }
}


/* ------------------------------- Snapshot -------------------------------- */
.ntf-hero-count {
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 20px 16px;
  margin-bottom: 18px; border-radius: 14px; position: relative; overflow: hidden;
  background: linear-gradient(135deg, rgba(167,139,250,.14), rgba(34,211,238,.08));
  border: 1px dashed rgba(167,139,250,.40);
}
.ntf-hero-count::before {
  content: ''; position: absolute; width: 160px; height: 160px; top: -70px; right: -50px;
  background: radial-gradient(circle, rgba(167,139,250,.24), transparent 70%);
}
.ntf-hero-num {
  font-size: 46px; font-weight: 900; line-height: 1; letter-spacing: -.03em;
  background: linear-gradient(135deg, #c4b5fd, #818cf8, #22d3ee);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.ntf-hero-caption { font-size: 12px; color: var(--text-dim); display: flex; align-items: center; gap: 6px; }
.ntf-sec-label {
  display: flex; align-items: center; gap: 7px; margin-bottom: 10px;
  font-size: 11px; text-transform: uppercase; letter-spacing: .09em; font-weight: 800; color: var(--text-dim);
}
.ntf-sec-label i { color: #a78bfa; animation: iconPulse 3s ease-in-out infinite; }
.ntf-mix { display: flex; flex-wrap: wrap; gap: 8px; }
.ntf-mix-chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 99px;
  font-size: 11px; font-weight: 700; color: var(--text); border: 1px solid var(--border); background: var(--input-bg);
}
.ntf-mix-chip b { text-transform: capitalize; }
.ntf-mix-chip em { font-style: normal; font-weight: 900; color: var(--text-heading); }
.ntf-mix-dot { width: 7px; height: 7px; border-radius: 50%; }
.ntf-md-info { background: #22d3ee; box-shadow: 0 0 8px rgba(34,211,238,.8); }
.ntf-md-success { background: #34d399; box-shadow: 0 0 8px rgba(52,211,153,.8); }
.ntf-md-warning { background: #fbbf24; box-shadow: 0 0 8px rgba(251,191,36,.8); }
.ntf-md-danger { background: #fb7185; box-shadow: 0 0 8px rgba(251,113,133,.8); }
.ntf-aud { display: flex; flex-direction: column; gap: 12px; }
.ntf-aud-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ntf-aud-name { font-size: 12px; font-weight: 700; color: var(--text-heading); display: inline-flex; align-items: center; gap: 7px; }
.ntf-aud-name i { color: #a78bfa; font-size: 11px; }
.ntf-aud-val { font-size: 11.5px; font-weight: 800; color: var(--text-dim); font-variant-numeric: tabular-nums; }
.ntf-aud-track { height: 6px; border-radius: 99px; background: var(--input-bg); border: 1px solid var(--border); overflow: hidden; margin-top: 5px; }
.ntf-aud-fill {
  display: block; height: 100%; width: var(--w);
  background: linear-gradient(90deg, #a78bfa, #818cf8, #22d3ee);
  border-radius: 99px; transform-origin: left; transform: scaleX(0);
  animation: barGrow .8s cubic-bezier(.22,1,.36,1) var(--d) forwards;
}
.ntf-aud-fill-pink { background: linear-gradient(90deg, #f472b6, #db2777); }
.ntf-api-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 13px 14px; border-radius: 14px; background: var(--input-bg); border: 1px solid var(--border);
}
.ntf-api-sub { font-size: 11px; color: var(--text-dim); display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.ntf-api-sub code {
  font-family: "Cascadia Code", "Consolas", monospace; font-size: 10.5px;
  color: #a78bfa; background: rgba(167,139,250,.10); border: 1px solid rgba(167,139,250,.25);
  padding: 1px 5px; border-radius: 6px;
}

/* ------------------------------ Feed cards ------------------------------- */
.ntf-feed { display: flex; flex-direction: column; gap: 14px; }
.ntf-card {
  background: var(--card-bg); border: 1px solid var(--border); border-radius: 16px; padding: 18px;
  position: relative; overflow: hidden; transition: transform .25s cubic-bezier(.22,1,.36,1), border-color .25s, box-shadow .25s;
  animation: mkFadeUp .5s cubic-bezier(.22,1,.36,1) both; animation-delay: calc(var(--i) * 60ms);
}
.ntf-card::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, #a78bfa, #22d3ee); opacity: 0; transition: opacity .25s;
}
.ntf-card:hover { transform: translateY(-4px); border-color: rgba(167,139,250,.40); box-shadow: 0 16px 34px rgba(0,0,0,.16); }
.ntf-card:hover::before { opacity: 1; }
.ntf-card-settled { opacity: .78; }
.ntf-card-info::before { background: linear-gradient(90deg, #22d3ee, #0ea5e9); }
.ntf-card-success::before { background: linear-gradient(90deg, #34d399, #059669); }
.ntf-card-warning::before { background: linear-gradient(90deg, #fbbf24, #f97316); }
.ntf-card-danger::before { background: linear-gradient(90deg, #fb7185, #e11d48); }
.ntf-card-top { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.ntf-medal {
  width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center;
  color: #fff; font-size: 17px; flex-shrink: 0; position: relative;
}
.ntf-medal i { position: relative; z-index: 1; animation: iconFloat 4.4s ease-in-out infinite; }
.ntf-medal::after { content: ''; position: absolute; inset: 0; border-radius: 13px; border: 1px solid rgba(255,255,255,.35); animation: ringPulse 3.2s ease-out infinite; }
.ntf-m-info { background: linear-gradient(135deg, #22d3ee, #0ea5e9); box-shadow: 0 8px 18px rgba(14,165,233,.35); }
.ntf-m-success { background: linear-gradient(135deg, #34d399, #059669); box-shadow: 0 8px 18px rgba(16,185,129,.35); }
.ntf-m-warning { background: linear-gradient(135deg, #fbbf24, #f97316); box-shadow: 0 8px 18px rgba(245,158,11,.35); }
.ntf-m-danger { background: linear-gradient(135deg, #fb7185, #e11d48); box-shadow: 0 8px 18px rgba(225,29,72,.32); }
.ntf-id-block { flex: 1; min-width: 0; }
.ntf-title { font-size: 13.5px; font-weight: 800; color: var(--text-heading); overflow-wrap: anywhere; }
.ntf-id-chip { font-size: 11px; color: #a78bfa; font-weight: 700; margin-top: 2px; display: inline-flex; align-items: center; gap: 5px; }
.ntf-st-active { background: rgba(167,139,250,.14); color: #a78bfa; }
.ntf-st-read { background: rgba(52,211,153,.14); color: #34d399; }
.ntf-st-dismissed { background: rgba(148,163,184,.14); color: var(--text-dim); }
.ntf-msg {
  display: flex; gap: 10px; align-items: flex-start;
  background: var(--input-bg); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; margin-bottom: 12px;
}
.ntf-msg i { font-size: 13px; color: #a78bfa; margin-top: 2px; animation: iconPulse 3.2s ease-in-out infinite; }
.ntf-msg p { font-size: 13px; line-height: 1.55; color: var(--text); margin: 0; overflow-wrap: anywhere; }
.ntf-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; }
.ntf-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px;
  font-size: 11px; font-weight: 700; color: var(--text-dim); background: var(--input-bg); border: 1px solid var(--border);
}
.ntf-chip i { font-size: 10px; }
.ntf-chip-info { color: #22d3ee; background: rgba(34,211,238,.10); border-color: rgba(34,211,238,.25); }
.ntf-chip-success { color: #34d399; background: rgba(52,211,153,.10); border-color: rgba(52,211,153,.25); }
.ntf-chip-warning { color: #fbbf24; background: rgba(251,191,36,.10); border-color: rgba(251,191,36,.25); }
.ntf-chip-danger { color: #fb7185; background: rgba(251,113,133,.10); border-color: rgba(251,113,133,.25); }
.ntf-time { font-size: 11px; color: var(--text-dim); display: inline-flex; align-items: center; gap: 6px; }
.ntf-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ntf-read { min-width: 108px; }
.ntf-read:hover i { animation: qBounce .6s ease; }
.ntf-done { font-size: 11.5px; font-weight: 700; color: #34d399; display: inline-flex; align-items: center; gap: 6px; }
.ntf-done i { animation: iconPulse 3s ease-in-out infinite; }
.ntf-foot-sub { font-size: 11px; color: var(--text-dim); }


/* no-results */
.ntf-no-results { display: none; text-align: center; padding: 36px 16px; }
.ntf-nr-ic {
  width: 52px; height: 52px; margin: 0 auto 12px; border-radius: 16px; display: grid; place-items: center;
  font-size: 20px; color: #fff; background: linear-gradient(135deg, #a78bfa, #6366f1); box-shadow: 0 12px 26px rgba(139,92,246,.30);
}
.ntf-nr-ic i { animation: iconFloat 3.6s ease-in-out infinite; }
.ntf-nr-title { font-size: 14px; font-weight: 800; color: var(--text-heading); }
.ntf-nr-sub { font-size: 12.5px; color: var(--text-dim); margin-top: 3px; }

/* empty state + footnote accents */
.ntf-empty code, .ntf-footnote code {
  font-family: "Cascadia Code", "Consolas", monospace; font-size: 11px;
  color: #a78bfa; background: rgba(167,139,250,.10); border: 1px solid rgba(167,139,250,.25);
  padding: 1px 5px; border-radius: 6px;
}
.ntf-empty-ic { background: linear-gradient(135deg, #a78bfa, #6366f1); box-shadow: 0 12px 26px rgba(139,92,246,.30); }

/* --------------------------- Light theme overrides ------------------------ */
[data-theme="light"] .ntf-art-core { box-shadow: 0 16px 40px rgba(139,92,246,.28); }
[data-theme="light"] .ntf-card { background: #ffffff; }

/* ------------------------------ Responsive ------------------------------- */
@media (max-width: 1240px) {
  .ntf-grid { grid-template-columns: 1fr; }
  .ntf-side { order: -1; }
}
@media (max-width: 860px) {
  .ntf-stats { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .ntf-card-foot { flex-direction: column; align-items: flex-start; }
  .ntf-read-form { width: 100%; }
  .ntf-read { width: 100%; }
}


/* ============================================================
   MY PROFILE — Account Center (prf-*)
   ============================================================ */

/* topbar user chip: show the uploaded avatar image */
.avatar .avatar-img {
  width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block;
}

/* ------------------------------ Hero accents ------------------------------ */
.prf-hero::before { background: radial-gradient(ellipse 80% 100% at 30% 0%, rgba(167,139,250,.16), transparent 62%); }
.prf-hero .mk-hero-title span {
  background: linear-gradient(90deg, #f0abfc, #a78bfa 55%, #22d3ee);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.prf-hero .mk-eyebrow i { color: #e879f9; }
.prf-hero-orb-a { background: rgba(192,132,252,.28); }
.prf-hero-orb-b { background: rgba(34,211,238,.18); }
.prf-hero .mk-hero-float { color: rgba(217,70,239,.30); }
.prf-cp-violet i { color: #a78bfa; }
.prf-cp-cyan i { color: #22d3ee; }
.prf-hero-pill { background: rgba(167,139,250,.14); color: #c4b5fd; border: 1px solid rgba(167,139,250,.30); }

/* hero avatar art */
.prf-art { width: 200px; height: 200px; }
.prf-art-core {
  position: relative; width: 100px; height: 100px; border-radius: 50%;
  display: grid; place-items: center; overflow: hidden;
  background: linear-gradient(135deg, #e879f9, #818cf8 45%, #22d3ee); background-size: 200% 200%;
  box-shadow: 0 16px 42px rgba(192,132,252,.45);
  animation: gradShift 6s ease infinite;
  border: 3px solid rgba(255,255,255,.25);
}
.prf-art-core::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.4); animation: ringPulse 3.4s ease-out infinite;
}
.prf-art-img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.prf-art-letter {
  font-size: 40px; font-weight: 900; color: #fff;
  text-shadow: 0 4px 14px rgba(0,0,0,.3); animation: iconPulse 3s ease-in-out infinite;
}
.prf-art-badge {
  right: 2px; top: 10px; width: 42px; height: 42px; border-radius: 14px; font-size: 17px;
  background: linear-gradient(135deg, #34d399, #0ea5e9); box-shadow: 0 8px 20px rgba(16,185,129,.4);
  animation: iconPulse 3s ease-in-out infinite;
}

/* ------------------------------ Stat strip ------------------------------ */
.prf-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  margin-bottom: 22px;
}
.prf-stat {
  position: relative; overflow: hidden; display: flex; align-items: center; gap: 14px;
  padding: 18px 20px; border-radius: 18px;
  background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow);
  transition: transform .22s cubic-bezier(.22,1,.36,1), border-color .2s ease, box-shadow .2s ease;
}
.prf-stat:hover {
  transform: translateY(-3px); border-color: rgba(167,139,250,.35);
  box-shadow: 0 14px 34px var(--accent-glow);
}
.prf-stat-ic {
  width: 46px; height: 46px; border-radius: 14px; flex-shrink: 0;
  display: grid; place-items: center; color: #fff; font-size: 17px;
  box-shadow: 0 8px 18px var(--accent-glow); position: relative; overflow: hidden;
}
.prf-stat-ic i { position: relative; z-index: 1; animation: iconFloat 3.6s ease-in-out infinite; }
.prf-si-violet { background: linear-gradient(135deg, #a78bfa, #7c3aed); }
.prf-si-cyan { background: linear-gradient(135deg, #22d3ee, #0ea5e9); }
.prf-si-pink { background: linear-gradient(135deg, #f472b6, #db2777); }
.prf-si-emerald { background: linear-gradient(135deg, #34d399, #059669); }
.prf-stat-label { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-dim); }
.prf-stat-value { font-size: 24px; font-weight: 900; color: var(--text-heading); margin-top: 2px; line-height: 1.1; }
.prf-value-sm { font-size: 17px; padding-top: 4px; }
.prf-stat-sub { font-size: 11.5px; color: var(--text-dim); margin-top: 4px; }
.prf-stat-sub i { color: var(--accent); margin-right: 3px; }

/* -------------------------------- Cards -------------------------------- */
.prf-grid { margin-top: 2px; }
.prf-col { min-width: 0; display: grid; gap: 20px; align-content: start; }
.prf-card {
  position: relative; overflow: hidden;
  animation: mkFadeUp .55s cubic-bezier(.22,1,.36,1) both;
}
.prf-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, #a78bfa, #22d3ee); background-size: 200% 100%;
  animation: gradShift 6s ease infinite;
}
.prf-ws-ic-violet { background: linear-gradient(135deg, #a78bfa, #7c3aed); box-shadow: 0 10px 24px rgba(124,58,237,.3); }
.prf-ws-ic-amber { background: linear-gradient(135deg, #fbbf24, #d97706); box-shadow: 0 10px 24px rgba(217,119,6,.3); }
.prf-ws-ic-cyan { background: linear-gradient(135deg, #22d3ee, #0ea5e9); box-shadow: 0 10px 24px rgba(14,165,233,.3); }
.prf-ws-ic-emerald { background: linear-gradient(135deg, #34d399, #059669); box-shadow: 0 10px 24px rgba(5,150,105,.3); }
.prf-ws-ic i { animation: iconPulse 3.2s ease-in-out infinite; }


/* ------------------------------ Icon inputs ------------------------------ */
.prf-input-wrap { position: relative; }
.prf-input-wrap > i {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  font-size: 13px; color: var(--text-dim); z-index: 1; pointer-events: none;
  transition: color .2s ease;
}
.prf-input-wrap .input { padding-left: 40px; padding-right: 44px; }
.prf-input-wrap:focus-within > i { color: #a78bfa; filter: drop-shadow(0 0 6px var(--accent-glow)); }
.prf-eye {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border-radius: 9px; border: none; background: transparent;
  color: var(--text-dim); cursor: pointer; display: grid; place-items: center; font-size: 13px;
  transition: all .18s ease;
}
.prf-eye:hover { color: #a78bfa; background: var(--input-bg); }
.prf-save { margin-top: 4px; }
.prf-save.is-sending { pointer-events: none; opacity: .85; }
.prf-save.is-sending i { animation: spin 1s linear infinite; }

/* ------------------------------ Avatar upload ------------------------------ */
.prf-avatar-card { text-align: center; }
.prf-upload { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 8px 0 4px; }
.prf-avatar-ring { position: relative; width: 128px; height: 128px; transition: transform .25s cubic-bezier(.22,1,.36,1); }
.prf-avatar-ring:hover { transform: scale(1.04); }
.prf-avatar-big {
  width: 100%; height: 100%; border-radius: 50%; overflow: hidden; position: relative;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #e879f9, #818cf8 45%, #22d3ee); background-size: 200% 200%;
  animation: gradShift 6s ease infinite;
  border: 3px solid rgba(255,255,255,.25);
  box-shadow: 0 14px 34px var(--accent-glow);
}
.prf-avatar-big::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.4); animation: ringPulse 3.4s ease-out infinite;
}
.prf-avatar-big img { width: 100%; height: 100%; object-fit: cover; }
.prf-avatar-letter {
  font-size: 50px; font-weight: 900; color: #fff;
  text-shadow: 0 4px 16px rgba(0,0,0,.3);
}
.prf-camera {
  position: absolute; right: -2px; bottom: 2px; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; font-size: 15px; cursor: pointer;
  background: linear-gradient(135deg, #a78bfa, #7c3aed);
  border: 3px solid var(--card); box-shadow: 0 6px 16px rgba(124,58,237,.4);
  transition: transform .2s ease;
}
.prf-camera:hover { transform: scale(1.12) rotate(-8deg); }
.prf-camera i { animation: iconPulse 3s ease-in-out infinite; }
.prf-avatar-ring.prf-is-uploading::after {
  content: ''; position: absolute; inset: -8px; border-radius: 50%;
  border: 2px dashed #a78bfa; animation: spinSlow 8s linear infinite;
}
.prf-upload-cta { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.prf-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 12px;
  font-size: 12.5px; font-weight: 700; cursor: pointer; border: 1px solid transparent;
  transition: all .18s ease; font-family: inherit;
}
.prf-btn i { font-size: 13px; }
.prf-btn-primary {
  color: #fff; background: linear-gradient(135deg, #a78bfa, #7c3aed);
  box-shadow: 0 8px 20px rgba(124,58,237,.35);
}
.prf-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(124,58,237,.45); }
.prf-btn-ghost { background: var(--input-bg); border-color: var(--border); color: var(--text-dim); }
.prf-btn-ghost:hover {
  color: #f87171; border-color: rgba(248,113,113,.4);
  background: var(--danger-bg); transform: translateY(-2px);
}
.prf-upload-hint { font-size: 11.5px; color: var(--text-dim); }
.prf-upload-hint i { color: #a78bfa; margin-right: 4px; }

/* ------------------------------ Facts list ------------------------------ */
.prf-facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.prf-facts li {
  display: flex; align-items: center; gap: 13px; padding: 11px 12px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--input-bg);
  transition: border-color .18s ease, transform .18s ease;
}
.prf-facts li:hover { border-color: rgba(167,139,250,.35); transform: translateX(3px); }
.prf-facts li > i {
  width: 32px; height: 32px; flex-shrink: 0; border-radius: 10px; display: grid; place-items: center;
  font-size: 13px; color: #a78bfa; background: var(--accent-glow);
  animation: iconFloat 4s ease-in-out infinite;
}
.prf-facts li span { display: grid; min-width: 0; }
.prf-facts strong { font-size: 12px; font-weight: 700; color: var(--text-heading); }
.prf-facts small { font-size: 12px; color: var(--text-dim); margin-top: 1px; }

/* --------------------------- Light theme overrides ------------------------ */
[data-theme="light"] .prf-art-core { box-shadow: 0 16px 40px rgba(192,132,252,.28); }
[data-theme="light"] .prf-stat { background: rgba(255,255,255,.8); }
[data-theme="light"] .prf-facts li { background: rgba(255,255,255,.6); }

/* ------------------------------ Responsive ------------------------------- */
@media (max-width: 1240px) {
  .prf-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .prf-stats { grid-template-columns: 1fr; }
  .prf-art { width: 150px; height: 150px; }
  .prf-art .mk-ring-a { width: 140px; height: 140px; }
  .prf-art .mk-ring-b { width: 104px; height: 104px; }
}


/* drag & drop highlight for the avatar uploader */
.prf-upload.prf-dragover .prf-avatar-ring { transform: scale(1.07); }
.prf-upload.prf-dragover .prf-camera { transform: scale(1.12) rotate(-8deg); }
.prf-upload.prf-dragover .prf-avatar-big::after {
  border-color: #a78bfa; border-style: dashed; animation: ringPulse 1.2s ease-out infinite;
}


/* ============================================================
   SERVER DC & RC — Disconnect / Reconnect console (sdc-*)
   ============================================================ */

/* hero accents */
.sdc-hero::before { background: radial-gradient(ellipse 80% 100% at 30% 0%, rgba(244,63,94,.16), transparent 62%); }
.sdc-hero .mk-hero-title span {
  background: linear-gradient(90deg, #fb7185, #f97316 55%, #fbbf24);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.sdc-hero-orb-a { background: rgba(244,63,94,.28); }
.sdc-hero-orb-b { background: rgba(251,146,60,.18); }
.sdc-hero .mk-hero-float { color: rgba(244,63,94,.30); }
.sdc-cp-amber i { color: #fbbf24; }
.sdc-cp-red i { color: #fb7185; }
.sdc-art-core {
  background: linear-gradient(135deg, #f87171, #dc2626);
  box-shadow: 0 22px 44px rgba(239,68,68,.38);
  animation: iconFloat 4.4s ease-in-out infinite;
}
.sdc-art-badge { background: linear-gradient(135deg, #34d399, #0ea5e9); box-shadow: 0 10px 22px rgba(16,185,129,.42); }

/* stat strip */
.sdc-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 22px; }
.sdc-stat {
  display: flex; align-items: center; gap: 14px; padding: 18px 20px;
  background: var(--card-bg); border: 1px solid var(--border); border-radius: 16px;
  position: relative; overflow: hidden; transition: transform .25s, border-color .25s, box-shadow .25s;
}
.sdc-stat::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: linear-gradient(90deg, #fb7185, #f97316, #fbbf24); opacity: .45;
}
.sdc-stat:hover { transform: translateY(-3px); border-color: rgba(251,113,133,.45); box-shadow: 0 14px 30px rgba(0,0,0,.14); }
.sdc-stat-ic {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  font-size: 18px; color: #fff; position: relative; flex-shrink: 0;
}
.sdc-stat-ic i { position: relative; z-index: 1; animation: iconFloat 4s ease-in-out infinite; }
.sdc-stat-ic::after { content: ''; position: absolute; inset: 0; border-radius: 14px; border: 1px solid rgba(255,255,255,.35); animation: ringPulse 3.2s ease-out infinite; }
.sdc-si-indigo { background: linear-gradient(135deg, #818cf8, #6366f1); box-shadow: 0 10px 22px rgba(99,102,241,.35); }
.sdc-si-red    { background: linear-gradient(135deg, #fb7185, #dc2626); box-shadow: 0 10px 22px rgba(239,68,68,.35); }
.sdc-si-green  { background: linear-gradient(135deg, #34d399, #059669); box-shadow: 0 10px 22px rgba(16,185,129,.35); }
.sdc-stat-label { font-size: 11.5px; text-transform: uppercase; letter-spacing: .09em; color: var(--text-dim); font-weight: 700; }
.sdc-stat-value { font-size: 26px; font-weight: 900; color: var(--text-heading); letter-spacing: -.02em; line-height: 1.15; }
.sdc-stat-sub { font-size: 11.5px; color: var(--text-dim); display: flex; align-items: center; gap: 6px; margin-top: 2px; }
.sdc-live-dot { width: 7px; height: 7px; border-radius: 50%; background: #34d399; position: relative; flex-shrink: 0; }
.sdc-live-dot::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; background: #34d399; opacity: .4; animation: pingSoft 1.9s ease-out infinite; }

/* workspace accents */
.sdc-ws-ic { background: linear-gradient(135deg, #fb7185, #f97316); box-shadow: 0 10px 24px rgba(244,63,94,.3); }
.sdc-panel-ic-amber { background: linear-gradient(135deg, #fbbf24, #d97706); box-shadow: 0 8px 18px rgba(245,158,11,.35); }
.sdc-panel-ic-red   { background: linear-gradient(135deg, #fb7185, #dc2626); box-shadow: 0 8px 18px rgba(239,68,68,.3); }

.sdc-btns { display: flex; gap: 12px; margin-top: 6px; }
.sdc-btns form { flex: 1 1 0; min-width: 0; }
.sdc-act { width: 100%; padding: 11px 14px; font-size: 13px; }
.sdc-act[disabled] { opacity: .4; cursor: not-allowed; pointer-events: none; filter: grayscale(.6); }
.sdc-act:hover i { animation: qBounce .6s ease; }
.sdc-time { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-dim); }
.sdc-time i { font-size: 11px; color: var(--text-dim); }
.sdc-empty-ic {
  width: 58px; height: 58px; margin: 0 auto 12px; border-radius: 18px; display: grid; place-items: center;
  font-size: 22px; color: #fff; background: linear-gradient(135deg, #34d399, #0ea5e9);
  box-shadow: 0 12px 26px rgba(16,185,129,.3);
}
.sdc-empty-ic i { animation: iconFloat 3.6s ease-in-out infinite; }

[data-theme="light"] .sdc-art-core { box-shadow: 0 16px 40px rgba(239,68,68,.3); }

@media (max-width: 860px) {
  .sdc-stats { grid-template-columns: 1fr; }
}


/* ============================================================
   SERVER ALLOCATION — Client onboarding console (slc-*)
   ============================================================ */

/* hero accents */
.slc-hero::before { background: radial-gradient(ellipse 80% 100% at 30% 0%, rgba(167,139,250,.16), transparent 62%); }
.slc-hero .mk-hero-title span {
  background: linear-gradient(90deg, #c4b5fd, #818cf8 50%, #22d3ee);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.slc-hero-orb-a { background: rgba(167,139,250,.28); }
.slc-hero-orb-b { background: rgba(34,211,238,.18); }
.slc-hero .mk-hero-float { color: rgba(167,139,250,.30); }
.slc-cp-violet i { color: #a78bfa; }
.slc-cp-cyan i { color: #22d3ee; }
.slc-cp-amber i { color: #fbbf24; }
.slc-art-core {
  background: linear-gradient(135deg, #a78bfa, #6366f1);
  box-shadow: 0 22px 44px rgba(139,92,246,.38);
  animation: iconFloat 4.4s ease-in-out infinite;
}
.slc-art-badge { background: linear-gradient(135deg, #fbbf24, #f97316); box-shadow: 0 10px 22px rgba(245,158,11,.42); }

/* stat strip */
.slc-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 22px; }
.slc-stat {
  display: flex; align-items: center; gap: 14px; padding: 18px 20px;
  background: var(--card-bg); border: 1px solid var(--border); border-radius: 16px;
  position: relative; overflow: hidden; transition: transform .25s, border-color .25s, box-shadow .25s;
}
.slc-stat::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: linear-gradient(90deg, #a78bfa, #22d3ee, #fbbf24); opacity: .45;
}
.slc-stat:hover { transform: translateY(-3px); border-color: rgba(167,139,250,.45); box-shadow: 0 14px 30px rgba(0,0,0,.14); }
.slc-stat-ic {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  font-size: 18px; color: #fff; position: relative; flex-shrink: 0;
}
.slc-stat-ic i { position: relative; z-index: 1; animation: iconFloat 4s ease-in-out infinite; }
.slc-stat-ic::after { content: ''; position: absolute; inset: 0; border-radius: 14px; border: 1px solid rgba(255,255,255,.35); animation: ringPulse 3.2s ease-out infinite; }
.slc-si-violet { background: linear-gradient(135deg, #a78bfa, #6366f1); box-shadow: 0 10px 22px rgba(139,92,246,.35); }
.slc-si-cyan   { background: linear-gradient(135deg, #22d3ee, #0ea5e9); box-shadow: 0 10px 22px rgba(14,165,233,.35); }
.slc-si-amber  { background: linear-gradient(135deg, #fbbf24, #f97316); box-shadow: 0 10px 22px rgba(245,158,11,.35); }
.slc-si-pink   { background: linear-gradient(135deg, #f472b6, #db2777); box-shadow: 0 10px 22px rgba(219,39,119,.32); }
.slc-stat-label { font-size: 11.5px; text-transform: uppercase; letter-spacing: .09em; color: var(--text-dim); font-weight: 700; }
.slc-stat-value { font-size: 26px; font-weight: 900; color: var(--text-heading); letter-spacing: -.02em; line-height: 1.15; }
.slc-stat-sub { font-size: 11.5px; color: var(--text-dim); display: flex; align-items: center; gap: 6px; margin-top: 2px; }

/* workspace accents */
.slc-ws-ic { background: linear-gradient(135deg, #a78bfa, #6366f1); box-shadow: 0 10px 24px rgba(139,92,246,.3); }
.slc-panel-ic-violet { background: linear-gradient(135deg, #a78bfa, #6366f1); box-shadow: 0 8px 18px rgba(139,92,246,.35); }
.slc-panel-ic-cyan   { background: linear-gradient(135deg, #22d3ee, #0ea5e9); box-shadow: 0 8px 18px rgba(14,165,233,.35); }

/* icon-injected inputs that also carry an eye toggle */
.slc-input-eye .input { padding-right: 44px; }

/* password strength meter */
.slc-strength { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; }
.slc-pw-track { flex: 1; display: flex; gap: 6px; }
.slc-pw-seg {
  height: 5px; flex: 1; border-radius: 99px;
  background: var(--input-bg); border: 1px solid var(--border);
  transition: background .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.slc-pw-seg.on { background: currentColor; border-color: currentColor; }
.slc-strength.is-weak   { color: #fb7185; }
.slc-strength.is-fair   { color: #fbbf24; }
.slc-strength.is-strong { color: #34d399; }
.slc-strength.is-weak   .slc-pw-seg.on { box-shadow: 0 0 8px rgba(251,113,133,.55); }
.slc-strength.is-fair   .slc-pw-seg.on { box-shadow: 0 0 8px rgba(251,191,36,.55); }
.slc-strength.is-strong .slc-pw-seg.on { box-shadow: 0 0 8px rgba(52,211,153,.55); }
.slc-pw-label { font-size: 11px; font-weight: 700; color: var(--text-dim); min-width: 64px; text-align: right; transition: color .25s ease; }
.slc-strength.is-weak   .slc-pw-label { color: #fb7185; }
.slc-strength.is-fair   .slc-pw-label { color: #fbbf24; }
.slc-strength.is-strong .slc-pw-label { color: #34d399; }

.slc-gen-row { display: flex; align-items: center; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.slc-pw-gen { white-space: nowrap; }
.slc-pw-gen i { color: #a78bfa; }
.slc-pw-gen:hover i { animation: qBounce .6s ease; }
.slc-gen-hint { font-size: 11px; color: var(--text-dim); }
.slc-gen-hint i { color: var(--accent); font-size: 10px; }

.slc-submit:hover i { animation: qBounce .6s ease; }

/* table cell content */
.slc-sid { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.slc-sid-main { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.slc-sid-ip { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--text-dim); }
.slc-sid-ip i { font-size: 10px; color: var(--accent); }
.slc-name { display: flex; align-items: center; gap: 10px; }
.slc-avatar {
  width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center;
  font-weight: 800; font-size: 13px; color: #fff; flex-shrink: 0;
  background: linear-gradient(135deg, #a78bfa, #6366f1); box-shadow: 0 6px 14px rgba(139,92,246,.3);
}
.slc-name-text { font-weight: 700; color: var(--text-heading); font-size: 13px; }
.slc-name-meta { font-size: 11px; color: var(--text-dim); margin-top: 1px; }
.slc-mail { color: var(--accent); font-size: 12.5px; text-decoration: none; font-weight: 600; }
.slc-mail:hover { text-decoration: underline; }
.slc-pass { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.slc-pass-dots { letter-spacing: 2px; color: var(--text-dim); font-size: 12px; }
.slc-none { color: var(--text-dim); font-size: 12px; font-style: italic; }

/* allocated server chips */
.slc-alloc-list { display: flex; flex-wrap: wrap; gap: 6px; max-width: 420px; }
.slc-alloc-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px 4px 10px; border-radius: 9px;
  font-size: 11.5px; font-weight: 700; font-family: "Cascadia Code", "Consolas", monospace;
  color: var(--text); background: var(--input-bg); border: 1px solid var(--border);
}
.slc-alloc-chip > i { color: var(--accent); font-size: 10px; animation: iconPulse 3.4s ease-in-out infinite; }
.slc-primary-tag {
  font-family: inherit; font-size: 9.5px; text-transform: uppercase; letter-spacing: .04em; font-weight: 800;
  color: #fbbf24; background: rgba(251,191,36,.12); border: 1px solid rgba(251,191,36,.3);
  padding: 1px 6px; border-radius: 99px;
}
.slc-additional-tag {
  font-family: inherit; font-size: 9.5px; text-transform: uppercase; letter-spacing: .04em; font-weight: 800;
  color: #22d3ee; background: rgba(34,211,238,.1); border: 1px solid rgba(34,211,238,.35);
  padding: 1px 6px; border-radius: 99px;
}
.slc-alloc-del {
  width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center;
  color: var(--text-dim); transition: all .18s ease; font-size: 10px;
}
.slc-alloc-del:hover {
  color: #fff; background: linear-gradient(135deg, #f87171, #dc2626);
  box-shadow: 0 4px 10px rgba(239,68,68,.35);
}

/* cancellation button (form): resting state is a visible icon square; the
   red hover fill must win over this later rule, so it is scoped to the form
   context with a dedicated :hover rule (otherwise the transparent background
   below overrides the generic .slc-alloc-del:hover and no fill ever shows). */
.slc-alloc-cancel { display: inline-flex; margin: 0; padding: 0; }
.slc-alloc-cancel .slc-alloc-del {
  border: 1px solid var(--border); background: transparent; cursor: pointer; padding: 0;
}
.slc-alloc-cancel .slc-alloc-del:hover,
.slc-alloc-cancel .slc-alloc-del:focus-visible {
  color: #fff; background: linear-gradient(135deg, #f87171, #dc2626);
  box-shadow: 0 4px 10px rgba(239,68,68,.35); outline: none;
}
.slc-cancel-tag {
  font-family: inherit; font-size: 9.5px; text-transform: uppercase; letter-spacing: .04em; font-weight: 800;
  color: #fb923c; background: rgba(251,146,60,.1); border: 1px solid rgba(251,146,60,.35);
  padding: 1px 6px; border-radius: 99px; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 4px;
}
.slc-cancel-tag i { font-size: 8.5px; animation: none; }

/* allocated-server dropdown (2+ additional servers collapse into a menu) */
.slc-alloc-dd { position: relative; }
.slc-alloc-dd-trigger {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  padding: 4px 10px; border-radius: 9px; border: 1px solid rgba(34,211,238,.35);
  font-size: 11.5px; font-weight: 700; font-family: "Cascadia Code", "Consolas", monospace;
  color: #22d3ee; background: rgba(34,211,238,.08); cursor: pointer;
  transition: color .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

/* ==================== Cronjob page ==================== */
.crj-grid { grid-template-columns: minmax(0, 1fr); }
.crj-2col { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 20px; align-items: start; }

.crj-check { overflow: hidden; }
.crj-check::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--success), var(--accent), #22d3ee);
  opacity: .85;
}

.crj-ic-ok { background: linear-gradient(135deg, #34d399, #059669); box-shadow: 0 8px 18px rgba(16,185,129,.35); }
.crj-ic-warn { background: linear-gradient(135deg, #fbbf24, #d97706); box-shadow: 0 8px 18px rgba(217,119,6,.35); }

.crj-status {
  margin-left: auto; display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px;
  font-size: 12.5px; font-weight: 800; letter-spacing: .04em;
  flex-shrink: 0;
}
.crj-st-ok { background: var(--success-bg); color: var(--success); border: 1px solid rgba(16,185,129,.3); }
.crj-st-warn { background: rgba(245,158,11,.12); color: var(--warning); border: 1px solid rgba(245,158,11,.3); }
.crj-st-muted { background: rgba(148,163,184,.12); color: var(--text-dim); border: 1px solid rgba(148,163,184,.3); }
.crj-status-dot { width: 9px; height: 9px; border-radius: 50%; background: currentColor; animation: crjPulse 1.6s ease-in-out infinite; }
.crj-st-ok .crj-status-dot, .crj-st-warn .crj-status-dot { animation: crjPing 1.8s ease-out infinite; }
@keyframes crjPing { 0% { box-shadow: 0 0 0 0 currentColor; } 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@keyframes crjPulse { 0%,100% { opacity: 1; } 50% { opacity: .45; } }

.crj-check-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.crj-metric {
  display: flex; gap: 13px; align-items: flex-start;
  padding: 15px 16px; border-radius: 14px;
  background: var(--card); border: 1px solid var(--border);
  min-width: 0;
}
.crj-metric-ic {
  width: 38px; height: 38px; border-radius: 12px; flex-shrink: 0;
  display: grid; place-items: center; font-size: 15px; color: var(--accent);
  background: var(--accent-glow); border: 1px solid rgba(129,140,248,.25);
}
.crj-metric-ic i { animation: iconFloat 3.6s ease-in-out infinite; }
.crj-metric-body { min-width: 0; }
.crj-metric-label { font-size: 12px; font-weight: 800; color: var(--text-heading); margin-bottom: 5px; letter-spacing: .02em; }
.crj-metric-txt { font-size: 12.5px; line-height: 1.6; color: var(--text-dim); word-break: break-word; }

.crj-check-foot {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--border-strong);
  font-size: 12px; color: var(--text-dim);
}
.crj-check-foot > i { color: var(--success); }
.crj-refresh {
  margin-left: auto; display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 13px; border-radius: 9px; cursor: pointer;
  font-family: inherit; font-size: 12px; font-weight: 700; color: var(--text-heading);
  background: var(--input-bg); border: 1px solid var(--border);
  transition: border-color .2s, background .2s, color .2s;
}
.crj-refresh:hover { border-color: var(--accent); color: var(--accent); }
.crj-refresh i { color: var(--accent); }
.crj-refresh:hover i { animation: qBounce .6s ease; }

.crj-warn {
  display: flex; flex-direction: column; gap: 6px;
  margin-top: 16px; padding: 12px 14px;
  border: 1px solid rgba(245,158,11,.35); border-left: 3px solid var(--warning);
  border-radius: 12px; background: rgba(245,158,11,.08);
  font-size: 12.5px; line-height: 1.6; color: var(--text-dim);
}
.crj-warn-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 800; color: var(--warning); letter-spacing: .02em;
}
.crj-warn-title i { color: var(--warning); }
.crj-warn div code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

.crj-lead { font-size: 13px; line-height: 1.6; color: var(--text-dim); margin-bottom: 14px; }
.crj-lead code, .crj-steps code, .crj-code-head code, .hint code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: rgba(129,140,248,.12); color: var(--accent);
  padding: 1px 6px; border-radius: 6px; font-size: 12px;
}
.crj-code {
  border: 1px solid var(--border); border-radius: 14px; overflow: hidden;
  background: linear-gradient(180deg, rgba(129,140,248,.06), rgba(129,140,248,0) 40%), var(--card);
  margin-bottom: 14px;
}
.crj-code-ghost { opacity: .92; }
.crj-code-head {
  display: flex; align-items: center; gap: 10px; justify-content: space-between;
  padding: 9px 14px; border-bottom: 1px dashed var(--border);
  font-size: 12px; font-weight: 700; color: var(--text-heading);
}
.crj-code-head i { color: var(--info); }
.crj-code-body {
  margin: 0; padding: 14px 16px; overflow-x: auto;
  font-family: 'JetBrains Mono', ui-monospace, Consolas, monospace;
  font-size: 12.5px; line-height: 1.7; color: var(--text-heading);
  white-space: pre-wrap; word-break: break-all;
}
.crj-copy {
  display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0;
  padding: 6px 11px; border-radius: 8px; cursor: pointer;
  font-family: inherit; font-size: 11.5px; font-weight: 700; color: var(--accent);
  background: rgba(129,140,248,.12); border: 1px solid rgba(129,140,248,.3);
  transition: background .18s ease, transform .18s ease;
}
.crj-copy:hover { background: rgba(129,140,248,.22); }
.crj-copy.copied { color: var(--success); border-color: rgba(16,185,129,.4); background: rgba(16,185,129,.12); }

.crj-note { margin-top: 16px; }

.crj-btn {
  width: 100%; margin-top: 4px; display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 18px; border: none; border-radius: 13px; cursor: pointer;
  font-family: inherit; font-size: 13.5px; font-weight: 800; color: #fff; white-space: nowrap;
  background:
    linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,0) 48%),
    linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow:
    0 12px 26px -10px var(--accent-glow),
    inset 0 1px 0 rgba(255,255,255,.3),
    inset 0 -2px 5px rgba(0,0,0,.16);
  transition: transform .2s cubic-bezier(.34,1.56,.64,1), filter .2s ease, box-shadow .25s ease;
}
.crj-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.06) saturate(1.05);
  box-shadow:
    0 16px 34px -12px var(--accent-glow),
    inset 0 1px 0 rgba(255,255,255,.36),
    inset 0 -2px 5px rgba(0,0,0,.16);
}
.crj-btn:active { transform: translateY(0) scale(.985); }
.crj-btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* ---- exec-disabled note + two cron options ---- */
.crj-exec-note {
  display: flex; align-items: flex-start; gap: 9px;
  margin-top: 14px; padding: 10px 13px;
  border: 1px dashed rgba(245,158,11,.4); border-left: 3px solid var(--warning);
  border-radius: 11px; background: rgba(245,158,11,.07);
  font-size: 12px; line-height: 1.6; color: var(--text-dim);
}
.crj-exec-note i { color: var(--warning); margin-top: 2px; }
.crj-exec-note code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: rgba(129,140,248,.12); color: var(--accent); padding: 1px 5px; border-radius: 6px; font-size: 11.5px; }

.crj-opt { margin-bottom: 20px; }
.crj-opt:last-child { margin-bottom: 0; }
.crj-opt-head {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-bottom: 5px;
}
.crj-opt-num {
  font-size: 10.5px; font-weight: 800; color: #fff; letter-spacing: .04em;
  padding: 3px 9px; border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25);
}
.crj-opt-name { font-size: 13px; font-weight: 800; color: var(--text-heading); }
.crj-opt-name code { font-size: 12px; }
.crj-opt-tag {
  font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 999px;
  background: rgba(129,140,248,.12); color: var(--accent);
  border: 1px solid rgba(129,140,248,.25);
}
.crj-opt-tag-ok { background: rgba(16,185,129,.12); color: var(--success); border-color: rgba(16,185,129,.3); }
.crj-opt-desc {
  margin: 0 0 10px; font-size: 12.5px; line-height: 1.65; color: var(--text-dim);
}
.crj-opt-desc code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: rgba(129,140,248,.12); color: var(--accent);
  padding: 1px 6px; border-radius: 6px; font-size: 12px;
}

/* ---- live auto-check extras ---- */
.crj-hidden { display: none !important; }

.crj-status-flash { animation: crjFlash 1s ease; }
@keyframes crjFlash {
  0%, 100% { box-shadow: 0 0 0 0 transparent; }
  35% { box-shadow: 0 0 0 6px rgba(16,185,129,.35); }
}

.crj-poll-hint {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700; opacity: .8;
}
.crj-poll-hint i { color: var(--accent); font-size: 11px; animation: qBounce 2.4s ease infinite; }

.crj-diag-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 13px; border-radius: 9px; cursor: pointer;
  font-family: inherit; font-size: 12px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, #f43f5e, #e11d48);
  border: 1px solid rgba(244,63,94,.4);
  transition: transform .2s ease, filter .2s ease, box-shadow .25s ease;
}
.crj-diag-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(1.06);
  box-shadow: 0 8px 18px -6px rgba(244,63,94,.45);
}
.crj-diag-btn:disabled { opacity: .55; cursor: not-allowed; }
.crj-diag-btn i { color: #fff; }
.crj-diag-btn:hover:not(:disabled) i { animation: qBounce .6s ease; }

.crj-diag {
  margin-top: 16px; padding: 14px; border-radius: 14px;
  background: var(--card); border: 1px solid var(--border);
}
.crj-diag-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: 13px; font-weight: 800; color: var(--text-heading); margin-bottom: 12px;
}
.crj-diag-head i { color: var(--accent); }
.crj-diag-summary {
  font-size: 11.5px; font-weight: 800; padding: 4px 10px; border-radius: 999px;
  background: rgba(148,163,184,.12); color: var(--text-dim);
}
.crj-diag-summary.ok { background: rgba(16,185,129,.12); color: var(--success); }
.crj-diag-summary.fail { background: rgba(244,63,94,.12); color: #fb7185; }
.crj-diag-body { display: grid; gap: 10px; }
.crj-diag-item {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px 14px; border-radius: 12px;
  background: var(--input-bg); border: 1px solid var(--border);
}
.crj-diag-item.ok { border-left: 3px solid var(--success); }
.crj-diag-item.fail { border-left: 3px solid #f43f5e; }
.crj-diag-ic {
  width: 24px; height: 24px; flex-shrink: 0; display: grid; place-items: center;
  font-size: 13px; border-radius: 50%; margin-top: 1px;
}
.crj-diag-item.ok .crj-diag-ic { color: var(--success); background: rgba(16,185,129,.12); }
.crj-diag-item.fail .crj-diag-ic { color: #fb7185; background: rgba(244,63,94,.12); }
.crj-diag-item-body { min-width: 0; }
.crj-diag-name { font-size: 13px; font-weight: 800; color: var(--text-heading); margin-bottom: 4px; }
.crj-diag-cmd {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11.5px; color: var(--accent); word-break: break-all; display: inline-block;
}
.crj-diag-out {
  margin: 6px 0 0; padding: 8px 10px; border-radius: 8px;
  background: rgba(2,6,23,.55); border: 1px solid var(--border);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11.5px; line-height: 1.55; color: var(--text-heading);
  white-space: pre-wrap; word-break: break-all; max-height: 160px; overflow: auto;
}
.crj-diag-item.fail .crj-diag-out { color: #fda4af; }
.crj-diag-foot {
  margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--border-strong);
  font-size: 12.5px; line-height: 1.6; color: var(--text-dim);
}
.crj-diag-foot code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: rgba(129,140,248,.12); color: var(--accent);
  padding: 1px 6px; border-radius: 6px; font-size: 11.5px;
}
.crj-diag-empty { font-size: 12.5px; color: var(--text-dim); padding: 6px 2px; }

.crj-steps { list-style: none; counter-reset: crjStep; margin: 0; padding: 0; display: grid; gap: 12px; }
.crj-steps li {
  position: relative; padding: 13px 16px 13px 52px; border-radius: 13px;
  background: var(--card); border: 1px solid var(--border);
  font-size: 13px; line-height: 1.65; color: var(--text-dim);
  counter-increment: crjStep;
}
.crj-steps li::before {
  content: counter(crjStep, decimal-leading-zero);
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 9px;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 800; color: var(--accent);
  background: var(--accent-glow); border: 1px solid rgba(129,140,248,.28);
}
.crj-steps strong { color: var(--text-heading); font-weight: 800; }
.crj-steps em { font-style: normal; color: var(--accent); font-weight: 700; }

@media (max-width: 1100px) {
  .crj-2col { grid-template-columns: 1fr; }
  .crj-check-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .crj-status { margin-left: 0; margin-top: 4px; }
}


.slc-alloc-dd-trigger > i { font-size: 10px; color: inherit; animation: none; }
.slc-alloc-dd-trigger:hover,
.slc-alloc-dd-trigger:focus-visible {
  color: #fff; border-color: transparent;
  background: linear-gradient(135deg, #22d3ee, #0ea5e9);
  box-shadow: 0 6px 14px rgba(14,165,233,.3); outline: none;
}
.slc-alloc-dd-trigger.is-open { color: #fff; border-color: transparent; background: linear-gradient(135deg, #22d3ee, #0ea5e9); }
.slc-alloc-dd-chev { transition: transform .2s ease; }
.slc-alloc-dd-trigger.is-open .slc-alloc-dd-chev { transform: rotate(180deg); }

/* The dropdown panel never sits inside the scrollable table wrapper: JS clones
   it onto <body> and positions it fixed, so it is never clipped and never
   shoves neighbouring table rows around. */
.slc-alloc-dd-panel {
  position: fixed; z-index: 200; display: none; visibility: hidden;
  flex-direction: column; align-items: stretch; gap: 6px;
  min-width: 250px; max-width: 340px; max-height: 300px; overflow-y: auto;
  padding: 8px;
  background: var(--card-solid); border: 1px solid var(--border-strong);
  border-radius: 12px; box-shadow: var(--shadow-lg);
}
.slc-alloc-dd-panel.show { display: flex; }
.slc-alloc-dd-panel .slc-alloc-chip { width: 100%; flex-wrap: wrap; }

/* light theme overrides */
[data-theme="light"] .slc-alloc-dd-panel { background: #ffffff; box-shadow: 0 18px 44px rgba(15, 23, 42, .18); }


/* delete user account button */
.slc-del-user { font-weight: 700; white-space: nowrap; }
.slc-del-user i { font-size: 11px; }
.slc-del-user:hover i { animation: qBounce .6s ease; }

/* modal icon accents */
.slc-modal-ic { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; font-size: 17px; color: #fff; flex-shrink: 0; background-size: 200% 200%; }
.slc-modal-ic i { position: relative; z-index: 1; animation: iconPulse 3s ease-in-out infinite; }
.slc-modal-ic-amber  { background: linear-gradient(135deg, #fbbf24, #d97706); box-shadow: 0 8px 20px rgba(245,158,11,.3); animation: gradShift 6s ease infinite; }
.slc-modal-ic-violet { background: linear-gradient(135deg, #a78bfa, #6366f1); box-shadow: 0 8px 20px rgba(139,92,246,.3); animation: gradShift 6s ease infinite; }
.slc-modal-ic-danger { background: linear-gradient(135deg, #f87171, #dc2626); box-shadow: 0 8px 20px rgba(239,68,68,.3); animation: gradShift 6s ease infinite; }
.slc-modal-ic-cyan   { background: linear-gradient(135deg, #22d3ee, #0ea5e9); box-shadow: 0 8px 20px rgba(14,165,233,.3); animation: gradShift 6s ease infinite; }

/* row actions + pagination */
.slc-act { min-width: 92px; }
.slc-act:hover i { animation: qBounce .6s ease; }
.slc-add-btn {
  background: linear-gradient(135deg, #22d3ee, #0ea5e9); color: #fff;
  box-shadow: 0 8px 20px rgba(14,165,233,.3); white-space: nowrap;
}
.slc-add-btn:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(14,165,233,.4); }
.slc-pagination { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 16px; }
.slc-pg-info { font-size: 12px; color: var(--text-dim); display: inline-flex; align-items: center; gap: 7px; }
.slc-pg-info i { color: var(--accent); }
.slc-pagination .pagination { margin: 0; }

.slc-empty-ic {
  width: 58px; height: 58px; margin: 0 auto 12px; border-radius: 18px; display: grid; place-items: center;
  font-size: 22px; color: #fff; background: linear-gradient(135deg, #a78bfa, #22d3ee);
  box-shadow: 0 12px 26px rgba(139,92,246,.3);
}
.slc-empty-ic i { animation: iconFloat 3.6s ease-in-out infinite; }

[data-theme="light"] .slc-art-core { box-shadow: 0 16px 40px rgba(139,92,246,.3); }

@media (max-width: 1240px) {
  .slc-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .slc-stats { grid-template-columns: 1fr; }
}


/* ==========================================================================
   Email Templates · Custom modals (preview + delete confirm)
   ========================================================================== */
.etx-modal {
  position: fixed; inset: 0; z-index: 500;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  visibility: hidden; opacity: 0;
  transition: opacity .28s ease, visibility .28s ease;
}
.etx-modal.is-open { visibility: visible; opacity: 1; }
.etx-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(2, 6, 23, .62);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.etx-modal-card {
  position: relative; z-index: 1;
  display: flex; flex-direction: column;
  width: min(100%, 620px);
  max-height: calc(100vh - 48px);
  background: var(--card-solid);
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  transform: translateY(16px) scale(.97);
  transition: transform .3s cubic-bezier(.22, 1, .36, 1);
  overflow: hidden;
}
.etx-modal.is-open .etx-modal-card { transform: none; }
.etx-modal-card--sm { width: min(100%, 440px); }
.etx-modal-head {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 22px; border-bottom: 1px solid var(--border);
}
.etx-modal-ic {
  width: 42px; height: 42px; border-radius: 13px; flex-shrink: 0;
  display: grid; place-items: center; color: #fff; font-size: 16px;
}
.etx-modal-ic--preview { background: linear-gradient(135deg, #22d3ee, #0ea5e9); box-shadow: 0 8px 18px rgba(14, 165, 233, .35); }
.etx-modal-ic--danger  { background: linear-gradient(135deg, #f87171, #dc2626); box-shadow: 0 8px 18px rgba(239, 68, 68, .35); }
.etx-modal-title { font-size: 15px; font-weight: 800; color: var(--text-heading); }
.etx-modal-sub { font-size: 12px; color: var(--text-dim); margin-top: 2px; word-break: break-word; }
.etx-modal-x {
  margin-left: auto; width: 32px; height: 32px; border-radius: 10px;
  display: grid; place-items: center; cursor: pointer;
  border: 1px solid var(--border); background: var(--input-bg); color: var(--text-dim);
  transition: color .2s ease, border-color .2s ease;
}
.etx-modal-x:hover { color: var(--danger); border-color: var(--danger); }
.etx-modal-body { padding: 22px; overflow-y: auto; }
.etx-modal-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 16px 22px; border-top: 1px solid var(--border);
}
.etx-modal-hint { display: inline-flex; align-items: center; gap: 7px; font-size: 11.5px; color: var(--text-dim); }
.etx-modal-hint i { color: var(--accent); }
.etx-modal-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* preview modal */
.etx-prev-mail .etx-mail-body { max-height: 38vh; overflow-y: auto; }

/* delete modal */
.etx-del-warn { font-size: 13px; line-height: 1.7; color: var(--text); margin: 0; }
.etx-del-warn code {
  font-family: "Cascadia Code", "Consolas", monospace; font-size: 11px;
  color: #fca5a5; background: rgba(239, 68, 68, .12); border: 1px solid rgba(239, 68, 68, .3);
  padding: 1px 5px; border-radius: 6px; word-break: break-all;
}
.etx-del-alert {
  display: flex; gap: 10px; align-items: flex-start;
  background: var(--danger-bg); border: 1px solid rgba(239, 68, 68, .25);
  border-radius: 12px; padding: 12px 14px; margin-top: 16px;
  font-size: 12px; line-height: 1.6; color: #fca5a5;
}
.etx-del-alert i { color: var(--danger); margin-top: 2px; }

/* light theme overrides */
[data-theme="light"] .etx-modal-card { background: #ffffff; box-shadow: 0 30px 70px rgba(15, 23, 42, .28); }
[data-theme="light"] .etx-modal-backdrop { background: rgba(15, 23, 42, .45); }
[data-theme="light"] .etx-prev-mail { background: #f8fafc; }
[data-theme="light"] .etx-del-warn code { color: #dc2626; background: rgba(239, 68, 68, .08); }
[data-theme="light"] .etx-del-alert { color: #b91c1c; }

/* ============ Dashboard - linkable stat cards + DC & RC status ============ */
/* Stat cards become links - keep the existing card look + cursor. */
a.stat { cursor: pointer; color: inherit; }

/* Status-breakdown divider (graphical view -> DC & RC section). */
.sb-divider {
  display: flex; align-items: center; gap: 8px;
  font-size: 10.5px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--text-dim); margin: 2px 0 -8px;
}
.sb-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
/* ==========================================================================
   TOPBAR LIVE CLOCK (all pages)
   Centered, glassmorphic, animated clock that syncs with
   Admin > Settings > Localization (timezone, language, time format)
   and falls back to the visitor's browser language/timezone when
   Automatic Localization is enabled.
   ========================================================================== */
.tbc {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  z-index: 6;
  display: flex; align-items: center; gap: 12px;
  height: 52px; padding: 0 16px 0 6px;
  border-radius: 16px;
  background: var(--input-bg);
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.06);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow: hidden;
  animation: tbcFloat 5s ease-in-out infinite;
}
/* rotating conic sheen inside the pill */
.tbc::before {
  content: '';
  position: absolute; inset: -60%;
  background: conic-gradient(from 0deg,
    transparent 0deg, var(--accent-glow) 80deg,
    transparent 170deg, var(--accent-glow) 260deg, transparent 360deg);
  opacity: .55;
  animation: tbcSpin 14s linear infinite;
  pointer-events: none;
}
.tbc-ico {
  position: relative; z-index: 1;
  width: 36px; height: 36px; border-radius: 12px; flex-shrink: 0;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff; font-size: 15px;
  box-shadow: 0 6px 18px var(--accent-glow);
  animation: tbcPulse 2.6s ease-in-out infinite;
}
.tbc-hms {
  position: relative; z-index: 1;
  display: flex; align-items: baseline; gap: 3px;
  font-weight: 800; letter-spacing: .01em;
}
.tbc-num {
  font-variant-numeric: tabular-nums;
  font-size: 24px; line-height: 1;
  color: var(--text-heading);
}
.tbc-s { font-size: 16px; color: var(--accent); transform-origin: center bottom; }
.tbc-sep { font-size: 20px; line-height: 1; color: var(--text-dim); animation: tbcBlink 1.6s steps(2, start) infinite; }
.tbc-sep-s { color: var(--accent); }
.tbc-ampm { font-size: 11px; font-weight: 800; color: var(--accent); text-transform: uppercase; margin-left: 3px; }
.tbc-info {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; gap: 3px; min-width: 0;
  border-left: 1px solid var(--border); padding-left: 12px;
}
.tbc-date { font-size: 11.5px; font-weight: 700; color: var(--text-heading); white-space: nowrap; }
.tbc-tz { display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 600; color: var(--text-dim); white-space: nowrap; }
.tbc-tz i { color: var(--accent); font-size: 9px; }
/* "Auto" badge - visible when Automatic Localization is enabled */
.tbc-auto {
  position: relative; z-index: 1;
  display: none; align-items: center; gap: 5px;
  font-size: 9.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
  color: var(--accent);
  padding: 3px 8px; border-radius: 999px;
  border: 1px solid var(--accent-glow); background: var(--accent-glow);
}
.tbc-auto.is-on { display: inline-flex; }
.tbc-auto .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent-2); animation: tbcBlink 1.2s infinite; }
.tbc-num.is-tick { animation: tbcTick .18s ease; }

@keyframes tbcSpin { to { transform: rotate(360deg); } }
@keyframes tbcFloat {
  0%, 100% { transform: translate(-50%, -50%); }
  50% { transform: translate(-50%, calc(-50% - 2px)); }
}
@keyframes tbcBlink { 50% { opacity: .3; } }
@keyframes tbcPulse {
  0%, 100% { box-shadow: 0 6px 18px var(--accent-glow); }
  50% { box-shadow: 0 6px 28px var(--accent-glow); }
}
@keyframes tbcTick {
  0% { transform: translateY(-4px) scale(.94); opacity: .35; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

/* Topbar with live clock — dedicated middle column at ALL viewport widths.
   The clock used to be absolutely centered over the whole topbar, so when the
   menu/title on the left or the search box + profile on the right got wide,
   the clock drifted on top of them (notably over the search box on admin
   pages). Giving it its own `auto` column between two shrinkable `1fr`
   columns keeps it in the free space at every width; the search box may flex
   narrower instead of letting the clock slide under it. */
.topbar.has-clock {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
}
.topbar.has-clock .topbar-left,
.topbar.has-clock .topbar-right { min-width: 0; }
.topbar.has-clock .topbar-left > div { min-width: 0; }
.topbar.has-clock .topbar-right { justify-content: flex-end; }
.topbar.has-clock .page-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar.has-clock .page-crumb { white-space: nowrap; overflow: hidden; }
.topbar.has-clock .search-box { min-width: 0; }
.topbar.has-clock .usr-dd { flex-shrink: 0; }
.topbar.has-clock .tbc {
  position: static; transform: none; justify-self: center;
  animation: tbcFloatStatic 5s ease-in-out infinite;
}
@keyframes tbcFloatStatic {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}

/* ------------------------- Responsive ------------------------- */
@media (max-width: 900px) {
  .tbc { height: 46px; gap: 9px; padding: 0 12px 0 5px; border-radius: 14px; }
  .tbc-ico { width: 32px; height: 32px; border-radius: 10px; font-size: 13px; }
  .tbc-num { font-size: 20px; }
  .tbc-s { font-size: 14px; }
  .tbc-sep { font-size: 17px; }
  .tbc-tz { display: none; }
}
@media (max-width: 760px) {
  /* Panel header: the 3-column grid that keeps the clock in its own centered
     column is now the default for .topbar.has-clock (see above), so this block
     only carries the small-screen sizing tweaks. The redundant breadcrumb is
     dropped on small screens. */
  .topbar.has-clock { gap: 8px; }
  .topbar.has-clock .topbar-left { gap: 10px; }
  .topbar.has-clock .page-title { font-size: 15px; }
  .topbar.has-clock .page-crumb { display: none; }
  .topbar.has-clock .tbc {
    animation: none;
    height: 42px; gap: 8px; padding: 0 10px 0 4px; border-radius: 13px;
  }
  .topbar.has-clock .tbc-ico { width: 30px; height: 30px; border-radius: 10px; font-size: 12px; }
  .topbar.has-clock .tbc-num { font-size: 18px; }
  .topbar.has-clock .tbc-s { font-size: 13px; }
  .topbar.has-clock .tbc-sep { font-size: 15px; }
  .topbar.has-clock .tbc-info { display: none; }
  .topbar.has-clock .topbar-right { gap: 8px; }
}
@media (max-width: 420px) {
  .tbc-ico, .tbc-ampm { display: none; }
}

/* ==========================================================================
   Section anchor buttons + anchored section targets
   ========================================================================== */
.mk-anchor-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 10px; flex-shrink: 0;
  border: 1px solid var(--border); background: var(--input-bg);
  color: var(--text-dim); font-size: 13px; cursor: pointer; text-decoration: none;
  transition: all .2s ease; margin-left: auto;
}
.mk-anchor-btn:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-glow); }
.mk-anchor-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* Keep anchored sections clear of the sticky topbar (70px) when deep-linking. */
[id].mk-anchored { scroll-margin-top: 90px; }


/* ------------------ Mail Station: sendmail driver panel ------------------ */
.mlx-sendmail-panel { transition: opacity .3s ease, transform .3s ease; }
.mlx-sendmail-panel.is-hide { display: none; }

/* -------------------- Email Settings (Email Templates) -------------------- */
.etx-settings { margin-bottom: 26px; }
.etx-settings .mk-ws-head { flex-wrap: wrap; }
.etx-settings-submit {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer; margin-left: auto;
  padding: 11px 20px; border: 0; border-radius: 13px; font-size: 13.5px; font-weight: 700;
  color: #fff; background: linear-gradient(135deg, #f59e0b, #ef4444);
  box-shadow: 0 10px 24px rgba(239, 68, 68, .32); transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}
.etx-settings-submit:hover { transform: translateY(-1px); box-shadow: 0 14px 30px rgba(239, 68, 68, .4); }
.etx-settings-submit.is-loading { opacity: .7; pointer-events: none; }
.etx-settings-submit.is-loading .fa-floppy-disk { animation: mkSpin .8s linear infinite; }

.etx-settings-grid { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 26px; align-items: start; }
.etx-settings-logo .etx-field-label { margin-bottom: 8px; }
.etx-logo-box { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.etx-logo-preview {
  width: 100%; max-width: 230px; max-height: 120px; object-fit: contain;
  border: 1px dashed var(--border-strong); border-radius: 14px;
  background: rgba(255, 255, 255, .03); padding: 12px;
}
.etx-logo-preview--empty {
  min-height: 92px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; color: var(--text-dim); font-size: 12px;
}
.etx-logo-preview--empty i { font-size: 22px; opacity: .6; }
.etx-logo-upload {
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
  padding: 8px 14px; border-radius: 10px; font-size: 12.5px; font-weight: 700;
  color: var(--accent); background: rgba(129, 140, 248, .12); border: 1px solid rgba(129, 140, 248, .35);
  transition: background .18s ease;
}
.etx-logo-upload:hover { background: rgba(129, 140, 248, .2); }
.etx-file-input { display: none; }
.etx-settings-logo .settings-note { margin-top: 2px; }

.etx-fgrid { display: grid; grid-template-columns: minmax(0, 1fr) 190px; gap: 16px; margin-bottom: 16px; }
.etx-fgrid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.etx-fgrid .field { margin-bottom: 0; }
.etx-field-narrow { max-width: 190px; }
.etx-css-input { font-family: 'JetBrains Mono', Consolas, 'Courier New', monospace; font-size: 12.5px; line-height: 1.6; }

/* Standalone template header / footer regions inside the preview modal. */
.etx-mail-part { padding: 10px 14px; font-size: 12.5px; line-height: 1.7; color: var(--text-dim); word-break: break-word; }
.etx-mail-part--header { border-bottom: 1px dashed var(--border-strong); margin-bottom: 12px; background: rgba(129, 140, 248, .06); }
.etx-mail-part--footer { border-top: 1px dashed var(--border-strong); margin-top: 12px; padding-top: 12px; font-size: 12px; color: var(--text-dim); }

@media (max-width: 1100px) {
  .etx-settings-grid { grid-template-columns: 1fr; }
  .etx-fgrid, .etx-fgrid-2 { grid-template-columns: 1fr; }
  .etx-field-narrow { max-width: none; }
}

/* ----------------- Email preview: animated template kit ------------------
   Mirrors the @keyframes + .etx-anim-* classes shipped inside
   resources/views/emails/layout.blade.php so the Template Library preview
   modal animates the stored Header / Body / Footer raw HTML exactly like a
   real send. */
@keyframes etxPulse   { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .3; transform: scale(.78); } }
@keyframes etxFloat   { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes etxShimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
@keyframes etxSpin    { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes etxGlow    { 0%,100% { box-shadow: 0 0 0 0 rgba(129,140,248,.50); } 50% { box-shadow: 0 0 0 16px rgba(129,140,248,0); } }
@keyframes etxGlowDot { 0%,100% { box-shadow: 0 0 0 0 rgba(34,211,238,.55); } 50% { box-shadow: 0 0 0 9px rgba(34,211,238,0); } }

.etx-anim-pulse   { animation: etxPulse 2s ease-in-out infinite; }
.etx-anim-float   { animation: etxFloat 3.4s ease-in-out infinite; }
.etx-anim-spin    { animation: etxSpin 8s linear infinite; }
.etx-anim-glow    { animation: etxGlow 2.8s ease-out infinite; }
.etx-anim-glowdot { animation: etxGlowDot 2.4s ease-out infinite; }
.etx-anim-shimmer {
  background-image: linear-gradient(100deg, rgba(129,140,248,.55) 25%, rgba(34,211,238,.95) 50%, rgba(129,140,248,.55) 75%) !important;
  background-size: 200% 100%;
  animation: etxShimmer 4.2s linear infinite;
}

/* Preview stage: keep the modern dark email content on a dark surface in the
   light theme too, so the preview always mirrors the real (dark) message. */
[data-theme="light"] .etx-prev-mail .etx-mail-inner { background: #0d1326; color: #c7cdea; }
[data-theme="light"] .etx-prev-mail .etx-mail-k { color: #8b93b5; }
[data-theme="light"] .etx-prev-mail .etx-mail-v { color: #e2e8f0; }
[data-theme="light"] .etx-prev-mail .etx-mail-subject { color: #f1f5f9; }

