:root {
  --page: #f4f5f8;
  --surface: #ffffff;
  --surface-2: #f7f8fa;
  --text: #1c1d26;
  --text-2: #5a5e6e;
  --muted: #9499a8;
  --border: #e7e9ef;
  --border-strong: #d6d9e2;
  --radius: 8px;
  --radius-lg: 12px;

  --accent: #4f46e5;        /* indigo — owner console */
  --accent-dark: #4338ca;
  --accent-bg: #eceafe;
  --accent-text: #3a31c4;

  --green: #1ea362;
  --green-bg: #e7f6ee;
  --green-text: #0f7a43;
  --danger: #d8482f;
  --danger-bg: #fbeae6;
  --muted-bg: #eef0f4;
}

* { box-sizing: border-box; }
html, body { margin: 0; font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; background: var(--page); color: var(--text); font-size: 14px; -webkit-font-smoothing: antialiased; }
a { color: var(--accent-text); text-decoration: none; }

.app { display: flex; min-height: 100vh; }
.sidebar { width: 214px; flex-shrink: 0; background: #1e1f2b; color: #c7cad6; border-right: 1px solid #2a2c3a; display: flex; flex-direction: column; padding: 16px 12px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 9px; padding: 4px 8px 4px; font-weight: 600; font-size: 14px; color: #fff; line-height: 1.15; }
.brand .ti { font-size: 22px; color: #8b85f5; }
.brand-tag { font-size: 10px; letter-spacing: .08em; color: #8b85f5; background: #2a2740; padding: 2px 7px; border-radius: 99px; margin: 6px 8px 14px; display: inline-block; }
.nav-item { display: flex; align-items: center; gap: 11px; padding: 9px 11px; margin-bottom: 2px; border-radius: var(--radius); font-size: 13.5px; color: #aab0c0; cursor: pointer; }
.nav-item .ti { font-size: 18px; }
.nav-item:hover { background: #2a2c3a; color: #fff; }
.nav-item.active { background: var(--accent); color: #fff; font-weight: 500; }
.nav-item.soon { color: #6b7080; cursor: default; }
.nav-item.soon small { margin-left: auto; font-size: 10px; background: #2a2c3a; color: #6b7080; padding: 1px 7px; border-radius: 99px; }
.sidebar-foot { margin-top: auto; border-top: 1px solid #2a2c3a; padding-top: 12px; }
.sidebar-user { font-size: 12px; color: #8b90a0; padding: 0 8px 8px; }
.sidebar-user b { display: block; color: #e7e9ef; font-weight: 500; }

.main { flex: 1; min-width: 0; }
.content { padding: 22px 26px; max-width: 1100px; }

.page-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; gap: 12px; }
.page-head h1 { font-size: 19px; font-weight: 600; margin: 0; }
.page-head .sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }

.card2 { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.card2 .body { padding: 16px 18px; }
.metric { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 14px 16px; }
.metric .label { font-size: 12.5px; color: var(--muted); }
.metric .value { font-size: 24px; font-weight: 600; margin-top: 3px; }
.grid { display: grid; gap: 12px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 820px) { .grid-3 { grid-template-columns: 1fr; } }

.btn2 { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 500; line-height: 1; padding: 9px 15px; border-radius: var(--radius); border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); cursor: pointer; }
.btn2:hover { background: var(--surface-2); }
.btn2 .ti { font-size: 16px; }
.btn2.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn2.primary:hover { background: var(--accent-dark); }
.btn2.sm { padding: 6px 11px; font-size: 12.5px; }

.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12.5px; color: var(--text-2); margin-bottom: 5px; }
.input { width: 100%; height: 38px; padding: 0 12px; border: 1px solid var(--border-strong); border-radius: var(--radius); font-size: 14px; background: var(--surface); }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-bg); }

.table2 { width: 100%; border-collapse: collapse; }
.table2 thead th { text-align: left; font-size: 11px; letter-spacing: .03em; color: var(--muted); font-weight: 500; text-transform: uppercase; padding: 10px 16px; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.table2 tbody td { padding: 11px 16px; border-bottom: 1px solid var(--border); font-size: 13.5px; vertical-align: middle; }
.table2 tbody tr:last-child td { border-bottom: none; }
.table2 .empty { text-align: center; color: var(--muted); padding: 34px 0; }
.avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--accent-bg); color: var(--accent-text); display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 600; }
.name-cell { display: flex; align-items: center; gap: 10px; }

.pill { font-size: 11.5px; font-weight: 500; padding: 3px 9px; border-radius: 99px; display: inline-block; }
.pill.green { background: var(--green-bg); color: var(--green-text); }
.pill.gray { background: var(--muted-bg); color: var(--text-2); }
.pill.indigo { background: var(--accent-bg); color: var(--accent-text); }

.alert2 { padding: 9px 13px; border-radius: var(--radius); font-size: 13px; margin-bottom: 14px; }
.alert2.err { background: var(--danger-bg); color: var(--danger); }
.muted { color: var(--muted); }

.auth-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; background: #1e1f2b; }
.auth-card { width: 340px; background: var(--surface); border-radius: var(--radius-lg); padding: 30px 28px; }
.auth-brand { display: flex; align-items: center; gap: 9px; justify-content: center; font-weight: 600; font-size: 16px; }
.auth-brand .ti { font-size: 24px; color: var(--accent); }
.auth-sub { text-align: center; font-size: 12.5px; color: var(--muted); margin: 4px 0 22px; }
