/* ============================================================
   UCP Portal — design system
   ============================================================ */

:root {
  --ucp-navy-950: #0a0e1a;
  --ucp-navy-900: #0f1526;
  --ucp-navy-800: #161d33;
  --ucp-navy-700: #1f2843;
  --ucp-navy-600: #2a3556;

  --ucp-teal-500: #14b8a6;
  --ucp-teal-400: #2dd4bf;
  --ucp-teal-300: #5eead4;

  --ucp-blue-500: #3b82f6;
  --ucp-violet-500: #8b5cf6;

  --ucp-orange-600: #e88f00;
  --ucp-orange-500: #ffa300;
  --ucp-orange-400: #ffb733;
  --ucp-orange-100: #fff2dc;

  --ucp-green-500: #22c55e;
  --ucp-amber-500: #f59e0b;
  --ucp-red-500: #ef4444;
  --ucp-red-400: #f87171;

  --ucp-bg: #f4f6fb;
  --ucp-surface: #ffffff;
  --ucp-surface-2: #f8fafc;
  --ucp-border: #e6e9f2;
  --ucp-border-strong: #d7dbe8;
  --ucp-text: #131a2c;
  --ucp-text-dim: #5a6480;
  --ucp-text-faint: #96a0bd;
  --ucp-accent: var(--ucp-navy-800);

  --ucp-radius-sm: 6px;
  --ucp-radius-md: 8px;
  --ucp-radius-lg: 12px;
  --ucp-shadow-sm: 0 1px 2px rgba(16, 24, 48, 0.05);
  --ucp-shadow-md: 0 4px 12px rgba(16, 24, 48, 0.06);
  --ucp-shadow-lg: 0 12px 32px rgba(16, 24, 48, 0.10);

  --ucp-sidebar-w: 264px;
  --ucp-topbar-h: 68px;

  --ucp-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ucp-serif: Georgia, "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--ucp-font);
  background: var(--ucp-bg);
  color: var(--ucp-text);
  font-size: 14.5px;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }

/* ---------- layout shell ---------- */

.ucp-shell {
  display: flex;
  min-height: 100vh;
}

.ucp-sidebar {
  width: var(--ucp-sidebar-w);
  flex-shrink: 0;
  background: linear-gradient(180deg, var(--ucp-navy-950), var(--ucp-navy-900) 85%);
  color: #cdd4e8;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  z-index: 40;
  transition: transform 0.25s ease;
}

.ucp-sidebar::-webkit-scrollbar { width: 6px; }
.ucp-sidebar::-webkit-scrollbar-thumb { background: var(--ucp-navy-600); border-radius: 4px; }

.ucp-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px 20px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.ucp-brand-mark {
  width: 40px; height: 40px; border-radius: 11px;
  background: radial-gradient(circle at 32% 28%, #fff, #fdf3e2 55%, #fbe8c9 100%);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(255, 163, 0, 0.28);
  flex-shrink: 0;
}
.ucp-brand-mark img { width: 26px; height: auto; display: block; }

.ucp-brand-text { line-height: 1.2; }
.ucp-brand-text strong {
  display: block; color: #fff; font-size: 15px; letter-spacing: 0.01em;
  font-family: var(--ucp-serif);
}
.ucp-brand-text span { font-size: 10.5px; color: var(--ucp-orange-400); text-transform: uppercase; letter-spacing: 0.09em; font-weight: 600; }

.ucp-nav { padding: 14px 12px; flex: 1; }
.ucp-nav-group { margin-bottom: 6px; }
.ucp-nav-label {
  font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.09em;
  color: #5c6889; padding: 14px 12px 6px;
}

.ucp-nav-group-toggle {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  background: none; border: none; cursor: pointer; font-family: inherit;
  padding: 9px 12px; margin: 1px 0; border-radius: var(--ucp-radius-sm);
  font-size: 12.5px; font-weight: 700; color: #b7c0dd; letter-spacing: 0.02em;
  transition: background 0.15s ease, color 0.15s ease;
}
.ucp-nav-group-toggle:hover { background: rgba(255,255,255,0.06); color: #fff; }
.ucp-nav-group-toggle .ucp-nav-group-label { display: flex; align-items: center; gap: 9px; }
.ucp-nav-group-toggle .ucp-ic { width: 17px; display: inline-flex; align-items: center; justify-content: center; opacity: 0.85; }
.ucp-nav-group-toggle .ucp-chevron { font-size: 10px; opacity: 0.6; transition: transform 0.18s ease; }
.ucp-nav-group.open .ucp-nav-group-toggle .ucp-chevron { transform: rotate(90deg); }
.ucp-nav-group.has-active .ucp-nav-group-toggle { color: #fff; }

.ucp-nav-group-body { overflow: hidden; max-height: 0; transition: max-height 0.2s ease; }
.ucp-nav-group.open .ucp-nav-group-body { max-height: 600px; }

.ucp-nav-link {
  display: flex; align-items: center; gap: 11px;
  padding: 8px 12px; margin: 1px 0;
  border-radius: 7px; font-size: 13px; font-weight: 500;
  color: #b7c0dc;
  transition: background 0.12s ease, color 0.12s ease;
}
.ucp-nav-link:hover { background: rgba(255,255,255,0.06); color: #fff; }
.ucp-nav-link.active { background: rgba(255,255,255,0.07); color: #fff; box-shadow: inset 2px 0 0 var(--ucp-orange-500); }
.ucp-nav-link .ucp-ic { width: 17px; display: inline-flex; align-items: center; justify-content: center; opacity: 0.85; }
.ucp-icon { display: block; flex-shrink: 0; }

.ucp-sub-nav { padding-left: 14px; margin-top: 2px; margin-bottom: 6px; }
.ucp-sub-nav .ucp-nav-link { font-size: 12.8px; padding: 7px 12px; color: #8e99bd; }
.ucp-sub-nav .ucp-nav-link.active { color: #fff; }

.ucp-sidebar-footer {
  padding: 14px 18px; border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 11.5px; color: #5c6889;
}

/* ---------- main column ---------- */

.ucp-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.ucp-topbar {
  height: var(--ucp-topbar-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 26px;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ucp-border);
  position: sticky; top: 0; z-index: 30;
}

.ucp-topbar-title h1 { font-size: 18px; }
.ucp-topbar-title .ucp-breadcrumb { font-size: 12px; color: var(--ucp-text-faint); margin-top: 2px; }

.ucp-topbar-actions { display: flex; align-items: center; gap: 14px; }

.ucp-icon-btn {
  width: 36px; height: 36px; border-radius: var(--ucp-radius-md);
  display: flex; align-items: center; justify-content: center;
  background: var(--ucp-surface-2); border: 1px solid var(--ucp-border);
  cursor: pointer; position: relative; transition: all 0.15s ease;
}
.ucp-icon-btn:hover { background: #eef1f8; border-color: var(--ucp-border-strong); }

.ucp-badge-dot {
  position: absolute; top: -3px; right: -3px;
  min-width: 16px; height: 16px; border-radius: 999px;
  background: var(--ucp-red-500); color: #fff; font-size: 9.5px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; padding: 0 3px;
  border: 2px solid var(--ucp-surface);
}

.ucp-user-chip { display: flex; align-items: center; gap: 10px; cursor: pointer; padding: 4px 8px 4px 4px; border-radius: 999px; }
.ucp-user-chip:hover { background: var(--ucp-surface-2); }
.ucp-avatar {
  width: 32px; height: 32px; border-radius: 999px;
  background: var(--ucp-navy-900); border: 1px solid var(--ucp-navy-700);
  color: #e8ecf6; display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 11.5px; letter-spacing: 0.02em;
}
.ucp-user-chip .name { font-size: 13px; font-weight: 600; line-height: 1.1; }
.ucp-user-chip .role { font-size: 11px; color: var(--ucp-text-faint); }

.ucp-dropdown-panel {
  position: absolute; right: 0; top: 44px; z-index: 50;
  background: var(--ucp-surface); border: 1px solid var(--ucp-border);
  border-radius: var(--ucp-radius-md); box-shadow: var(--ucp-shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(-4px) scale(0.98);
  transform-origin: top right;
  transition: opacity 0.12s ease, transform 0.12s ease, visibility 0.12s;
}
.ucp-dropdown-panel.open { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }

.ucp-content { padding: 26px; max-width: 1600px; width: 100%; margin: 0 auto; animation: ucp-fade-up 0.25s ease; }

@keyframes ucp-fade-up {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- KPI cards ---------- */

.ucp-kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-bottom: 22px; }

.ucp-kpi-card {
  background: var(--ucp-surface); border: 1px solid var(--ucp-border);
  border-radius: var(--ucp-radius-lg); padding: 18px 20px;
  box-shadow: var(--ucp-shadow-sm); transition: box-shadow 0.15s ease, border-color 0.15s ease;
  position: relative; overflow: hidden;
}
.ucp-kpi-card:hover { box-shadow: var(--ucp-shadow-md); border-color: var(--ucp-border-strong); }
.ucp-kpi-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 2px;
  background: var(--ucp-accent);
  opacity: 0.55;
}
.ucp-kpi-label { font-size: 11.5px; color: var(--ucp-text-faint); text-transform: uppercase; letter-spacing: 0.07em; font-weight: 600; }
.ucp-kpi-value { font-size: 26px; font-weight: 800; margin-top: 6px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.ucp-kpi-sub { font-size: 12px; color: var(--ucp-text-dim); margin-top: 4px; }
.ucp-kpi-delta { display: inline-flex; align-items: center; gap: 3px; font-size: 11.5px; font-weight: 700; margin-top: 8px; padding: 2px 8px; border-radius: 999px; }
.ucp-kpi-delta.up { color: #0d8a51; background: #e5f9ee; }
.ucp-kpi-delta.down { color: #c0261f; background: #fdeceb; }
.ucp-kpi-delta.flat { color: var(--ucp-text-dim); background: var(--ucp-surface-2); }

/* ---------- cards / panels ---------- */

.ucp-panel {
  background: var(--ucp-surface); border: 1px solid var(--ucp-border);
  border-radius: var(--ucp-radius-lg); box-shadow: var(--ucp-shadow-sm);
  margin-bottom: 20px;
}
.ucp-panel-header { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--ucp-border); }
.ucp-panel-header h3 { font-size: 15px; }
.ucp-panel-header .ucp-sub { font-size: 12px; color: var(--ucp-text-faint); margin-top: 2px; font-weight: 400; }
.ucp-panel-body { padding: 20px 22px; }
.ucp-panel-body.flush { padding: 0; }

/* ---------- buttons ---------- */

.ucp-btn {
  display: inline-flex; align-items: center; gap: 7px; justify-content: center;
  border-radius: var(--ucp-radius-sm); padding: 9px 16px; font-size: 13px; font-weight: 600;
  border: 1px solid transparent; cursor: pointer; transition: background 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease, transform 0.08s ease;
  font-family: inherit;
}
.ucp-btn:active { transform: scale(0.98); }
.ucp-btn-primary { background: var(--ucp-navy-900); color: #fff; }
.ucp-btn-primary:hover { background: var(--ucp-navy-800); }
.ucp-btn-accent { background: var(--ucp-orange-500); color: #221200; box-shadow: var(--ucp-shadow-sm); }
.ucp-btn-accent:hover { background: var(--ucp-orange-600); }
.ucp-btn-outline { background: var(--ucp-surface); border-color: var(--ucp-border); color: var(--ucp-text); }
.ucp-btn-outline:hover { background: var(--ucp-surface-2); border-color: var(--ucp-border-strong); }
.ucp-btn-ghost { background: transparent; color: var(--ucp-text-dim); }
.ucp-btn-ghost:hover { background: var(--ucp-surface-2); color: var(--ucp-text); }
.ucp-btn-danger { background: #fdeceb; color: #c0261f; }
.ucp-btn-danger:hover { background: #fbdcda; }
.ucp-btn-sm { padding: 6px 12px; font-size: 12px; }
.ucp-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ---------- forms ---------- */

.ucp-field { margin-bottom: 15px; }
.ucp-field label { display: block; font-size: 12.5px; font-weight: 600; margin-bottom: 6px; color: var(--ucp-text-dim); }
.ucp-field .hint { font-size: 11px; color: var(--ucp-text-faint); margin-top: 4px; }
.ucp-field .errors { font-size: 11.5px; color: var(--ucp-red-500); margin-top: 4px; font-weight: 600; }

.ucp-input, .ucp-select, .ucp-textarea, input[type=text], input[type=email], input[type=password],
input[type=date], input[type=time], input[type=number], select, textarea {
  width: 100%; padding: 9px 12px; border-radius: var(--ucp-radius-sm); border: 1px solid var(--ucp-border);
  background: var(--ucp-surface); font-size: 13.5px; font-family: inherit; color: var(--ucp-text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.ucp-input:focus, .ucp-select:focus, .ucp-textarea:focus, input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--ucp-teal-500); box-shadow: 0 0 0 3px rgba(20,184,166,0.11);
}
.ucp-form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px 18px; }
.ucp-form-actions { display: flex; gap: 10px; margin-top: 18px; }

/* ---------- tables ---------- */

.ucp-table-wrap { overflow-x: auto; }
table.ucp-table { width: 100%; border-collapse: collapse; font-size: 13px; }
table.ucp-table th {
  text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: 0.045em;
  color: var(--ucp-text-faint); font-weight: 600; padding: 11px 16px; border-bottom: 1px solid var(--ucp-border);
  background: var(--ucp-surface-2); white-space: nowrap;
}
table.ucp-table td { padding: 12px 16px; border-bottom: 1px solid var(--ucp-border); vertical-align: middle; }
table.ucp-table tbody tr { transition: background 0.12s ease; }
table.ucp-table tbody tr:hover { background: var(--ucp-surface-2); }
table.ucp-table tbody tr:last-child td { border-bottom: none; }
.ucp-num { text-align: right; font-variant-numeric: tabular-nums; }
.ucp-table-fixednum th.ucp-num, .ucp-table-fixednum td.ucp-num { min-width: 112px; white-space: nowrap; }

/* Spreadsheet-style grid: full cell borders, a frozen first column, and a
   visually separated total column -- for tables meant to read like a
   schedule (e.g. Monthly Sales) rather than a plain list. */
.ucp-table-grid { border: 1px solid var(--ucp-border); }
.ucp-table-grid th, .ucp-table-grid td { border-right: 1px solid var(--ucp-border); border-bottom: 1px solid var(--ucp-border); }
.ucp-table-grid th:last-child, .ucp-table-grid td:last-child { border-right: none; }
.ucp-table-grid tbody tr:last-child td { border-bottom: 1px solid var(--ucp-border); }
.ucp-table-grid tbody tr:nth-child(even) { background: var(--ucp-surface-2); }
.ucp-table-grid tbody tr:nth-child(even):hover,
.ucp-table-grid tbody tr:hover { background: rgba(255,163,0,0.06); }
.ucp-table-grid th:first-child, .ucp-table-grid td:first-child {
  position: sticky; left: 0; background: var(--ucp-surface); font-weight: 700; z-index: 1;
  border-right: 1px solid var(--ucp-border);
}
.ucp-table-grid thead th:first-child { background: var(--ucp-surface-2); z-index: 2; }
.ucp-table-grid tbody tr:nth-child(even) td:first-child { background: var(--ucp-surface-2); }
.ucp-table-grid th:last-child, .ucp-table-grid td:last-child {
  border-left: 2px solid var(--ucp-border-strong, var(--ucp-border));
}
.ucp-table-empty { padding: 40px 20px; text-align: center; color: var(--ucp-text-faint); }

/* ---------- badges / status ---------- */

.ucp-badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 600; letter-spacing: 0; white-space: nowrap;
}
.ucp-badge::before { content: ""; width: 6px; height: 6px; border-radius: 999px; background: currentColor; }
.ucp-badge.green { background: #e5f9ee; color: #0d8a51; }
.ucp-badge.amber { background: #fef3e0; color: #b3690a; }
.ucp-badge.red { background: #fdeceb; color: #c0261f; }
.ucp-badge.blue { background: #e8f0fe; color: #1a56db; }
.ucp-badge.gray { background: var(--ucp-surface-2); color: var(--ucp-text-dim); }
.ucp-badge.violet { background: #f1ebfd; color: #6d28d9; }

.ucp-category-badges { display: flex; flex-wrap: wrap; gap: 10px; padding: 16px 18px; }
.ucp-category-badge {
  display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 12px;
  background: var(--ucp-surface-2); font-size: 12.5px; font-weight: 600; color: var(--ucp-text-dim);
}
.ucp-category-badge .dot { width: 9px; height: 9px; border-radius: 999px; background: currentColor; }
.ucp-category-badge .amount { font-weight: 800; color: var(--ucp-text); }
.ucp-category-badge.retail { color: #6d28d9; }
.ucp-category-badge.online { color: #0d8a51; }
.ucp-category-badge.b2b { color: #1a56db; }
.ucp-category-badge.other { color: #5c6889; }
.ucp-category-badge.total { background: none; border: 1px dashed var(--ucp-border); }

/* progress */
.ucp-progress { height: 8px; border-radius: 999px; background: var(--ucp-surface-2); overflow: hidden; }
.ucp-progress > span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--ucp-orange-400), var(--ucp-orange-600)); transition: width 0.6s ease; }

/* ---------- activity feed ---------- */

.ucp-feed { display: flex; flex-direction: column; }
.ucp-feed-item { display: flex; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--ucp-border); }
.ucp-feed-item:last-child { border-bottom: none; }
.ucp-feed-dot { width: 30px; height: 30px; border-radius: 999px; background: var(--ucp-surface-2); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 13px; }
.ucp-feed-text { font-size: 13px; }
.ucp-feed-text b { font-weight: 700; }
.ucp-feed-time { font-size: 11.5px; color: var(--ucp-text-faint); margin-top: 2px; }

/* ---------- login page ---------- */

.ucp-auth-shell {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 20% 20%, #16233f, var(--ucp-navy-950) 55%);
  padding: 20px;
}
.ucp-auth-card {
  width: 100%; max-width: 400px; background: var(--ucp-surface); border-radius: var(--ucp-radius-lg);
  box-shadow: var(--ucp-shadow-lg); padding: 34px 32px; animation: ucp-fade-up 0.4s ease;
}
.ucp-auth-brand { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-bottom: 22px; }
.ucp-auth-brand .ucp-brand-mark {
  width: 58px; height: 58px; border-radius: 15px;
  background: radial-gradient(circle at 32% 28%, #fff, #fdf3e2 55%, #fbe8c9 100%);
  box-shadow: 0 6px 18px rgba(255,163,0,0.25);
}
.ucp-auth-brand .ucp-brand-mark img { width: 36px; }
.ucp-auth-brand h1 { font-size: 19px; }
.ucp-auth-brand p { font-size: 12px; color: var(--ucp-text-faint); margin-top: 2px; }

/* ---------- login page: split-screen ---------- */

.ucp-login-shell { min-height: 100vh; display: flex; background: var(--ucp-surface); }

.ucp-login-form-side {
  flex: 1 1 460px; max-width: 520px; display: flex; flex-direction: column;
  justify-content: center; padding: 48px 56px; position: relative; z-index: 2;
}
.ucp-login-form-inner { width: 100%; max-width: 360px; margin: 0 auto; animation: ucp-fade-up 0.5s ease; }

.ucp-login-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 40px; }
.ucp-login-brand .ucp-brand-mark {
  width: 54px; height: 54px; border-radius: 15px;
  background: radial-gradient(circle at 32% 28%, #fff, #fdf3e2 55%, #fbe8c9 100%);
  box-shadow: 0 6px 20px rgba(255,163,0,0.25);
}
.ucp-login-brand .ucp-brand-mark img { width: 34px; }
.ucp-login-brand .ucp-brand-word { font-family: var(--ucp-serif); font-size: 26px; font-weight: 700; color: var(--ucp-text); line-height: 1; }
.ucp-login-brand .ucp-brand-tagline { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ucp-orange-600); margin-top: 4px; }

.ucp-login-form-inner h1 { font-size: 22px; margin-bottom: 6px; }
.ucp-login-form-inner .ucp-login-sub { font-size: 13.5px; color: var(--ucp-text-dim); margin-bottom: 28px; }

.ucp-login-form-inner .ucp-field label { font-size: 12px; }
.ucp-login-form-inner .ucp-input,
.ucp-login-form-inner input[type=text],
.ucp-login-form-inner input[type=password] {
  padding: 12px 14px; font-size: 14px; border-radius: var(--ucp-radius-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.ucp-login-form-inner .ucp-input:focus,
.ucp-login-form-inner input:focus { border-color: var(--ucp-orange-500); box-shadow: 0 0 0 3px rgba(255,163,0,0.12); }

.ucp-login-submit {
  width: 100%; padding: 13px; font-size: 14.5px; border-radius: var(--ucp-radius-sm);
  background: var(--ucp-orange-500);
  color: #221200; font-weight: 700; border: none; cursor: pointer;
  box-shadow: var(--ucp-shadow-sm);
  transition: background 0.12s ease, box-shadow 0.12s ease, transform 0.08s ease;
}
.ucp-login-submit:hover { background: var(--ucp-orange-600); box-shadow: var(--ucp-shadow-md); }
.ucp-login-submit:active { transform: scale(0.98); }

.ucp-login-fineprint { text-align: center; margin-top: 22px; font-size: 12px; color: var(--ucp-text-faint); }
.ucp-login-fineprint a { color: var(--ucp-orange-600); font-weight: 600; }
.ucp-login-fineprint a:hover { text-decoration: underline; }

.ucp-login-error {
  background: #fdeceb; color: #c0261f; border-radius: 10px; padding: 11px 14px;
  font-size: 12.5px; font-weight: 500; margin-bottom: 18px;
  border-left: 3px solid var(--ucp-red-500); animation: ucp-fade-up 0.3s ease;
}

/* the animated visual side */
.ucp-login-visual-side {
  flex: 1.15; position: relative; overflow: hidden;
  background:
    radial-gradient(circle at 15% 20%, rgba(255,163,0,0.16), transparent 45%),
    radial-gradient(circle at 85% 75%, rgba(20,184,166,0.12), transparent 45%),
    linear-gradient(160deg, var(--ucp-navy-950) 0%, var(--ucp-navy-900) 55%, #101a35 100%);
}
.ucp-login-visual-side::before {
  content: ""; position: absolute; inset: 0; opacity: 0.5;
  background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(circle at 50% 40%, #000 0%, transparent 72%);
          mask-image: radial-gradient(circle at 50% 40%, #000 0%, transparent 72%);
}

.ucp-login-visual-content {
  position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column;
  justify-content: center; padding: 60px; color: #fff;
}
.ucp-login-eyebrow {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ucp-orange-400); margin-bottom: 14px;
}
.ucp-login-visual-content h2 {
  font-family: var(--ucp-serif); font-size: 32px; font-weight: 700; max-width: 420px; line-height: 1.3;
  color: #fff;
}
.ucp-login-visual-content p { font-size: 13.5px; color: rgba(255,255,255,0.6); max-width: 380px; margin-top: 14px; line-height: 1.65; }

.ucp-login-modules { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 44px; }
.ucp-login-modules div {
  display: flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
  font-size: 12.5px; font-weight: 600; color: rgba(255,255,255,0.85);
}
.ucp-login-modules .ucp-ic { display: inline-flex; opacity: 0.85; color: var(--ucp-orange-400); }

@media (max-width: 980px) {
  .ucp-login-visual-side { display: none; }
  .ucp-login-form-side { flex: 1; max-width: none; }
}
@media (max-width: 520px) {
  .ucp-login-form-side { padding: 32px 22px; }
}

/* ---------- toasts ---------- */

.ucp-toasts { position: fixed; top: 18px; right: 18px; z-index: 100; display: flex; flex-direction: column; gap: 10px; }
.ucp-toast {
  min-width: 280px; max-width: 360px; background: var(--ucp-navy-900); color: #fff;
  border-radius: var(--ucp-radius-md); padding: 13px 16px; box-shadow: var(--ucp-shadow-lg);
  display: flex; align-items: flex-start; gap: 10px; animation: ucp-toast-in 0.22s ease;
  font-size: 13px;
}
.ucp-toast.success { border-left: 3px solid var(--ucp-green-500); }
.ucp-toast.error { border-left: 3px solid var(--ucp-red-500); }
.ucp-toast.info { border-left: 3px solid var(--ucp-blue-500); }
.ucp-toast.warning { border-left: 3px solid var(--ucp-amber-500); }
@keyframes ucp-toast-in { from { opacity: 0; transform: translateX(20px);} to { opacity: 1; transform: translateX(0);} }

/* ---------- misc ---------- */

.ucp-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; align-items: center; }
.ucp-filters select, .ucp-filters input { width: auto; min-width: 140px; }

.ucp-grid-2 { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; }
.ucp-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 1100px) { .ucp-grid-2, .ucp-grid-3 { grid-template-columns: 1fr; } }

.ucp-empty-state { text-align: center; padding: 50px 20px; color: var(--ucp-text-faint); }
.ucp-empty-state .ucp-ic { display: flex; align-items: center; justify-content: center; margin: 0 auto 10px; opacity: 0.5; }

.ucp-skeleton { background: linear-gradient(90deg, var(--ucp-surface-2) 25%, #eef1f8 37%, var(--ucp-surface-2) 63%); background-size: 400% 100%; animation: ucp-shimmer 1.4s ease infinite; border-radius: 8px; }
@keyframes ucp-shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

.ucp-mobile-toggle { display: none; }

@media (max-width: 960px) {
  .ucp-sidebar { position: fixed; left: 0; transform: translateX(-100%); box-shadow: var(--ucp-shadow-lg); }
  .ucp-sidebar.open { transform: translateX(0); }
  .ucp-mobile-toggle { display: flex; }
  .ucp-content { padding: 16px; }
  .ucp-topbar { padding: 0 14px; }
  .ucp-kpi-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .ucp-kpi-grid { grid-template-columns: 1fr; }
  .ucp-user-chip .name, .ucp-user-chip .role { display: none; }
}

.text-dim { color: var(--ucp-text-dim); }
.text-faint { color: var(--ucp-text-faint); }
.mt-0 { margin-top: 0; }
.flex { display: flex; }
.gap-8 { gap: 8px; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
