/* ==========================================================================
   BeDar VPN 관리자 포털 — Design System
   bedar-platform CMS/Admin 스타일 계승 (독립 구현)
   ========================================================================== */

:root {
  --bg: #f4f5f7;
  --card: #ffffff;
  --ink: #1f2430;
  --ink-2: #4a5568;
  --muted: #6b7280;
  --line: #e6e8ec;
  --line-2: #d1d5db;

  --accent: #d1533b;
  --accent-hover: #ba432c;
  --accent-light: #fdf1ee;
  --accent-ink: #ffffff;

  --ok: #1f9d57;
  --ok-bg: #e7f6ee;
  --ok-border: #b8e6ce;

  --warn: #b8791b;
  --warn-bg: #fbf1dd;
  --warn-border: #f4dcaf;

  --danger: #c0392b;
  --danger-bg: #fbe9e7;
  --danger-border: #f5c4be;
  --danger-hover: #a93226;

  --info: #2c6bb3;
  --info-bg: #e8f0fb;
  --info-border: #c3d9f5;

  --muted-bg: #eef0f3;

  --sidebar-bg: #20242f;
  --sidebar-text: #f6f7f9;
  --sidebar-muted: #9da5b4;
  --sidebar-hover: rgba(255,255,255,.07);
  --sidebar-active: rgba(209, 83, 59, .2);
  --sidebar-active-text: #f3917e;
  --sidebar-border: rgba(255,255,255,.07);
  --sidebar-w: clamp(240px, 14vw, 272px);

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;

  --shadow-sm: 0 1px 2px rgba(20,24,33,.04);
  --shadow: 0 1px 3px rgba(20,24,33,.06), 0 1px 2px rgba(20,24,33,.04);
  --shadow-md: 0 4px 6px -1px rgba(20,24,33,.07), 0 2px 4px -1px rgba(20,24,33,.04);
  --shadow-lg: 0 10px 30px rgba(20,24,33,.14);

  --font-sans: "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body, #app { height: 100%; }
body { font-family: var(--font-sans); font-size: 15px; line-height: 1.55; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
a { color: var(--info); text-decoration: none; }
h1, h2, h3 { letter-spacing: -.3px; }

/* ── Utilities ── */
.hidden { display: none !important; }
.mono { font-family: var(--font-mono); font-size: 13px; }
.muted { color: var(--muted); }
.strong { font-weight: 600; }
.small { font-size: 13px; }
.center { text-align: center; }
.text-ok { color: var(--ok); }
.text-warn { color: var(--warn); }
.text-danger { color: var(--danger); }
.text-accent { color: var(--accent); }

/* ── Card ── */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ── Pill / Badge ── */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
}
.pill-ok { background: var(--ok-bg); color: var(--ok); border: 1px solid var(--ok-border); }
.pill-warn { background: var(--warn-bg); color: var(--warn); border: 1px solid var(--warn-border); }
.pill-danger { background: var(--danger-bg); color: var(--danger); border: 1px solid var(--danger-border); }
.pill-info { background: var(--info-bg); color: var(--info); border: 1px solid var(--info-border); }
.pill-muted { background: var(--muted-bg); color: var(--muted); border: 1px solid var(--line); }
.pill-accent { background: var(--accent-light); color: var(--accent); border: 1px solid rgba(209,83,59,.22); }

.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--ok);
  display: inline-block;
  animation: pulse-ring 2.2s infinite;
}
@keyframes pulse-ring {
  0%   { box-shadow: 0 0 0 0 rgba(31,157,87,.7); }
  70%  { box-shadow: 0 0 0 6px rgba(31,157,87,0); }
  100% { box-shadow: 0 0 0 0 rgba(31,157,87,0); }
}

.dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.dot-off { background: var(--muted); }
.dot-on  { background: var(--ok); box-shadow: 0 0 0 3px rgba(31,157,87,.2); }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600; font-size: 14px;
  cursor: pointer; border: 1px solid transparent;
  transition: all .15s ease;
  user-select: none; white-space: nowrap;
}
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover:not(:disabled) { background: var(--accent-hover); }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover:not(:disabled) { background: var(--muted-bg); color: var(--ink); }
.btn-sm { padding: 5px 11px; font-size: 13px; }
.btn-xs { padding: 3px 8px; font-size: 12px; }
.btn-block { width: 100%; }
.btn-danger { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-danger:hover:not(:disabled) { background: var(--danger-hover); }
.btn-secondary {
  background: var(--card); color: var(--ink);
  border-color: var(--line-2);
}
.btn-secondary:hover:not(:disabled) { background: var(--bg); }

/* ── Form Fields ── */
.field-group { display: flex; flex-direction: column; gap: 6px; }
.field-label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field-input {
  width: 100%; padding: 10px 13px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: #fbfbfc; color: var(--ink); font-size: 14px;
  transition: all .15s;
}
.field-input:disabled {
  background: #f1f3f6;
  color: #94a3b8;
  cursor: not-allowed;
  border-color: #e2e8f0;
}
.field-input:focus { outline: none; border-color: var(--accent); background: #fff; box-shadow: 0 0 0 3px rgba(209,83,59,.12); }
.input-wrapper { position: relative; }
.input-wrapper .field-input { padding-right: 42px; }
.pwd-eye {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: var(--muted); cursor: pointer; padding: 4px;
}
.pwd-eye:hover { color: var(--ink); }

/* ==========================================================================
   LOGIN
   ========================================================================== */

.login-shell {
  min-height: 100vh; display: flex;
  align-items: center; justify-content: center;
  padding: 24px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.login-box {
  width: 100%; max-width: 400px;
  padding: 36px 32px;
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-lg);
  display: flex; flex-direction: column; gap: 22px;
}

.login-brand { display: flex; align-items: center; gap: 13px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.login-logo-img { width: 44px; height: 44px; object-fit: contain; border-radius: 10px; flex-shrink: 0; background: #fff; }
.login-brand-name { font-size: 20px; font-weight: 800; color: var(--ink); letter-spacing: -.4px; }
.login-brand-sub { font-size: 12.5px; color: var(--muted); margin-top: 1px; }
.logo-mark {
  width: 44px; height: 44px; border-radius: 11px;
  display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 800; font-size: 16px; letter-spacing: -.5px; flex-shrink: 0;
}

#login-form { display: flex; flex-direction: column; gap: 16px; }

.mock-role-switcher {
  padding: 10px 12px;
  background: #fef9f3;
  border: 1px dashed #e6c68a;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.mock-label { font-size: 12px; font-weight: 700; color: var(--warn); }
.mock-radio { display: flex; align-items: center; gap: 5px; font-size: 13px; cursor: pointer; }

.login-err {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 12px;
  background: var(--danger-bg); border: 1px solid var(--danger-border);
  color: var(--danger); font-size: 13px; border-radius: var(--radius-sm);
}

.login-footer-info {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding-top: 14px; border-top: 1px solid var(--line);
  font-size: 12.5px; color: var(--muted);
}

/* ==========================================================================
   ADMIN SHELL LAYOUT
   ========================================================================== */

.admin-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
  background: var(--bg);
}

/* ── SIDEBAR ── */
.sidebar {
  position: sticky; top: 0;
  height: 100vh;
  background: var(--sidebar-bg);
  color: var(--sidebar-text);
  padding: 0 0 20px;
  overflow-y: auto;
  display: flex; flex-direction: column;
  z-index: 50;
}

/* Scrollbar */
.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border-radius: 99px; }

.side-brand {
  padding: 14px 14px 10px;
  border-bottom: 1px solid var(--sidebar-border);
  flex-shrink: 0;
}
.side-brand-btn {
  width: 100%; display: flex; align-items: center; gap: 10px;
  background: none; border: none; color: var(--sidebar-text);
  cursor: pointer; border-radius: var(--radius-sm);
  padding: 8px 8px; text-align: left;
  transition: background .15s;
}
.side-brand-btn:hover { background: var(--sidebar-hover); }
.side-logo-img { width: 36px; height: 36px; object-fit: contain; border-radius: 8px; background: rgba(255,255,255,.12); padding: 3px; flex-shrink: 0; }
.side-brand-text { display: flex; flex-direction: column; }
.side-brand-name { font-size: 15px; font-weight: 800; letter-spacing: -.3px; }
.side-brand-sub { font-size: 11.5px; color: var(--sidebar-muted); }

.sidebar-nav { padding: 10px 10px; flex: 1; }

.nav-group { margin-bottom: 6px; }
.nav-group-label {
  font-size: 10.5px; font-weight: 700; letter-spacing: .8px;
  text-transform: uppercase; color: var(--sidebar-muted);
  padding: 14px 10px 5px;
}
.nav-item {
  display: flex; align-items: center; gap: 9px;
  width: 100%; padding: 9px 10px;
  background: none; border: none; border-radius: var(--radius-sm);
  color: rgba(246,247,249,.75); font-size: 14px; font-weight: 500;
  cursor: pointer; text-align: left;
  transition: all .15s;
}
.nav-item:hover { background: var(--sidebar-hover); color: var(--sidebar-text); }
.nav-item.on {
  background: var(--sidebar-active);
  color: var(--sidebar-active-text);
  font-weight: 600;
}
.nav-ico { font-size: 16px; flex-shrink: 0; width: 22px; text-align: center; }

/* ── SIDEBAR BACKDROP (mobile) ── */
.sidebar-backdrop {
  display: none;
  position: fixed; inset: 0; z-index: 45;
  background: rgba(0,0,0,.45);
}

/* ── MAIN AREA ── */
.main-area { display: flex; flex-direction: column; min-height: 100vh; overflow: hidden; }

/* ── TOPBAR ── */
.app-header {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 12px 24px;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
  flex-shrink: 0;
}
.header-left { display: flex; align-items: center; gap: 14px; }
.header-title { font-size: 18px; font-weight: 700; color: var(--ink); }
.header-sub { font-size: 12.5px; }
.header-right { display: flex; align-items: center; gap: 12px; }
.mobile-menu-btn { display: none; }

.header-vpn-status {
  display: flex; align-items: center; gap: 7px;
  padding: 5px 12px;
  background: var(--muted-bg); border: 1px solid var(--line);
  border-radius: 9999px;
}

/* Profile Menu */
.profile { position: relative; }
.profile-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  background: var(--card); border: 1px solid var(--line-2);
  border-radius: var(--radius-sm); cursor: pointer;
  font-size: 13.5px; font-weight: 600;
  transition: all .15s;
}
.profile-btn:hover { border-color: var(--muted); background: var(--bg); }
.profile-avatar {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center;
  font-size: 12px; font-weight: 800; flex-shrink: 0;
}

.menu-dropdown {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 41;
  min-width: 230px;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 7px;
}
.menu-backdrop {
  position: fixed; inset: 0; z-index: 40; cursor: default;
}
.menu-header { padding: 10px 12px 8px; }
.menu-header-name { font-weight: 700; font-size: 15px; color: var(--ink); }
.menu-header-role { font-size: 12px; color: var(--muted); margin-top: 2px; }
.menu-divider { height: 1px; background: var(--line); margin: 4px 0; }
.menu-item {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 9px 12px;
  background: none; border: none; border-radius: var(--radius-sm);
  color: var(--ink); font-size: 13.5px; text-align: left;
  cursor: pointer; transition: background .12s;
}
.menu-item:hover { background: var(--muted-bg); }
.menu-item-danger { color: var(--danger); }
.menu-item-danger:hover { background: var(--danger-bg); }

/* Content area */
.content {
  flex: 1; padding: 24px;
  display: flex; flex-direction: column; gap: 20px;
  overflow-y: auto;
}

/* ==========================================================================
   DASHBOARD PAGE
   ========================================================================== */

.hero-card {
  border-radius: var(--radius);
  overflow: hidden;
}
.hero-main {
  padding: 24px 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  background: linear-gradient(180deg, #fff 0%, #fafbfc 100%);
}
.hero-status-area { display: flex; flex-direction: column; gap: 8px; }
.hero-badge-row { display: flex; align-items: center; gap: 8px; }
.hero-title { font-size: 22px; font-weight: 800; color: var(--ink); letter-spacing: -.4px; }
.hero-desc { font-size: 14px; color: var(--muted); }
.hero-metrics-strip {
  display: flex; align-items: stretch; flex-wrap: wrap;
  padding: 0;
  background: #fafbfc;
  border-top: 1px solid var(--line);
}
.metric-item {
  flex: 1; min-width: 170px;
  display: flex; flex-direction: column; gap: 3px;
  padding: 14px 20px;
  border-right: 1px solid var(--line);
}
.metric-item:last-child { border-right: none; }
.metric-label { font-size: 11.5px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .4px; }
.metric-value { font-size: 16px; font-weight: 700; font-family: var(--font-mono); }
.metric-sub { font-size: 11.5px; }

/* VPN Toggle Switch */
.vpn-toggle-wrap { display: flex; flex-direction: column; align-items: center; gap: 7px; flex-shrink: 0; }
.switch-ctl { position: relative; display: inline-block; width: 76px; height: 40px; cursor: pointer; }
.switch-inp { opacity: 0; width: 0; height: 0; }
.switch-track {
  position: absolute; inset: 0;
  background: #d1d5db; border-radius: 9999px;
  transition: background .3s;
  box-shadow: inset 0 2px 4px rgba(0,0,0,.1);
}
.switch-track::before {
  content: ""; position: absolute;
  width: 32px; height: 32px; left: 4px; bottom: 4px;
  background: #fff; border-radius: 50%;
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 2px 4px rgba(0,0,0,.2);
}
.switch-inp:checked ~ .switch-track { background: var(--ok); }
.switch-inp:checked ~ .switch-track::before { transform: translateX(36px); }
.switch-lbl { font-size: 13px; font-weight: 700; color: var(--ink); }

/* Stats grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.stat-card { padding: 18px 20px; }
.stat-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.stat-label { font-size: 13px; font-weight: 600; color: var(--muted); }
.stat-value { font-size: 26px; font-weight: 800; color: var(--ink); letter-spacing: -.3px; }
.stat-unit { font-size: 16px; font-weight: 600; color: var(--muted); }
.stat-sub { font-size: 12px; color: var(--muted); margin-top: 3px; }

/* ==========================================================================
   TABLE / PAGE CARDS
   ========================================================================== */

.page-section { display: flex; flex-direction: column; gap: 4px; }
.section-label { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; padding-left: 2px; }

.table-card { overflow: hidden; }
.table-toolbar {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.toolbar-title { font-size: 15px; font-weight: 700; color: var(--ink); }
.toolbar-count { font-size: 13px; color: var(--muted); }
.toolbar-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }

.search-box { position: relative; display: flex; align-items: center; }
.search-box svg { position: absolute; left: 10px; color: var(--muted); pointer-events: none; }
.search-input {
  padding: 7px 12px 7px 32px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: #fbfbfc; font-size: 13.5px; min-width: 200px;
}
.search-input:focus { outline: none; border-color: var(--accent); background: #fff; }

.table-scroll { overflow-x: auto; }
table.grid { width: 100%; border-collapse: collapse; text-align: left; }
.grid th {
  padding: 11px 16px; background: #fafbfc;
  border-bottom: 1px solid var(--line);
  font-size: 12.5px; font-weight: 700; color: var(--muted);
  white-space: nowrap;
}
.grid td {
  padding: 13px 16px; border-bottom: 1px solid var(--line);
  vertical-align: middle; font-size: 14px;
}
.grid tbody tr:last-child td { border-bottom: none; }
.grid tbody tr:hover { background: #fbfbfc; }
.cell-name { font-weight: 600; color: var(--ink); }
.cell-sub { font-size: 12px; color: var(--muted); margin-top: 1px; }
td.actions { text-align: right; white-space: nowrap; }

.table-footer {
  padding: 11px 18px;
  background: #fafbfc; border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
}
.pager { display: flex; align-items: center; gap: 8px; }
.page-num { font-size: 12.5px; color: var(--muted); }

.empty-row td { text-align: center; color: var(--muted); padding: 36px; font-size: 14px; }

/* Filter Bar */
.filter-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 18px; border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.filter-bar select, .filter-bar input[type="date"], .filter-bar input[type="text"] {
  padding: 6px 10px; border: 1px solid var(--line);
  border-radius: var(--radius-sm); background: #fbfbfc;
  font-size: 13.5px; min-width: 130px; height: 34px;
}
.filter-bar select:focus, .filter-bar input:focus { outline: none; border-color: var(--accent); }

/* ==========================================================================
   SYSTEM SETTINGS PAGE
   ========================================================================== */

.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.settings-card { padding: 22px 24px; }
.settings-card-title { font-size: 15px; font-weight: 700; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.settings-field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.settings-field:last-child { margin-bottom: 0; }
.settings-field label { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.settings-field input, .settings-field select {
  padding: 9px 12px; border: 1px solid var(--line);
  border-radius: var(--radius-sm); background: #fbfbfc;
  font-size: 14px; width: 100%;
}
.settings-field input:focus, .settings-field select:focus { outline: none; border-color: var(--accent); }
.settings-field input[readonly] { background: var(--muted-bg); color: var(--muted); cursor: not-allowed; }
.settings-mock-note {
  padding: 10px 14px; background: var(--warn-bg); border: 1px solid var(--warn-border);
  border-radius: var(--radius-sm); font-size: 12.5px; color: var(--warn); margin-bottom: 14px;
}

/* Access Denied banner */
.access-denied {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; padding: 60px;
  text-align: center;
}
.access-denied-icon { font-size: 48px; }
.access-denied-title { font-size: 20px; font-weight: 800; color: var(--ink); }
.access-denied-sub { color: var(--muted); font-size: 14px; max-width: 360px; }

/* ==========================================================================
   MODAL
   ========================================================================== */

.modal-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(20,24,33,.5);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.modal-card {
  width: 100%; max-width: 440px;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: 28px 28px 24px;
  display: flex; flex-direction: column; gap: 16px;
}
.modal-header { display: flex; align-items: center; justify-content: space-between; }
.modal-title { font-size: 18px; font-weight: 800; }
.modal-close-btn { color: var(--muted); }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 6px; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1024px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .settings-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .admin-shell { grid-template-columns: 1fr; }

  .sidebar {
    position: fixed; top: 0; left: -100%; height: 100vh;
    width: var(--sidebar-w);
    transition: left .25s ease;
    z-index: 50;
  }
  .admin-shell.nav-open .sidebar { left: 0; }
  .admin-shell.nav-open .sidebar-backdrop { display: block; }

  .mobile-menu-btn { display: flex; }
  .content { padding: 16px; }
  .cards-grid { grid-template-columns: 1fr; }
  .hero-main { flex-direction: column; align-items: flex-start; }
  .hero-metrics-strip { flex-direction: column; }
  .metric-item { border-right: none; border-bottom: 1px solid var(--line); }
  .metric-item:last-child { border-bottom: none; }
  .header-vpn-status { display: none; }
  .toolbar-actions { flex-wrap: wrap; width: 100%; }
  .search-input { min-width: unset; width: 100%; }
}

/* ==========================================================================
   EMPLOYEE VPN SCREEN
   ========================================================================== */

.emp-shell {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}
.emp-wrap {
  width: 100%; max-width: 420px;
  display: flex; flex-direction: column; align-items: center; gap: 20px;
}
.emp-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 4px; }
.emp-logo { width: 52px; height: 52px; object-fit: contain; border-radius: 13px; }
.emp-brand-text { display: flex; flex-direction: column; }
.emp-brand-name { font-size: 22px; font-weight: 800; color: var(--ink); letter-spacing: -.4px; }
.emp-brand-sub  { font-size: 13px; color: var(--muted); }
.emp-card {
  width: 100%; padding: 28px 28px 24px;
  box-shadow: var(--shadow-lg); border-radius: var(--radius-lg);
  display: flex; flex-direction: column; gap: 16px;
}
.emp-card-title { font-size: 17px; font-weight: 800; color: var(--ink); }
.emp-card-desc  { color: var(--muted); font-size: 14px; }

/* Tailscale 준비 상태 영역 */
.ts-prep-box {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ts-prep-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.ts-prep-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
}
.ts-prep-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.ts-prep-actions a.btn, .ts-prep-actions button.btn {
  font-size: 12.5px;
  padding: 7px 10px;
  justify-content: center;
}

/* 관리자 대시보드 내 PC VPN 상태 배너 */
.admin-pc-vpn-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}
.admin-pc-vpn-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.admin-pc-vpn-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
}

.field-input-lg { padding: 13px 14px; font-size: 16px; }
.btn-lg { padding: 13px 20px; font-size: 16px; }
.vpn-status-header {
  display: flex; align-items: center; gap: 14px;
  padding-bottom: 16px; border-bottom: 1px solid var(--line);
}
.ms-auto { margin-left: auto; }
.vpn-indicator {
  position: relative; width: 44px; height: 44px;
  display: grid; place-items: center; flex-shrink: 0;
}
.vpn-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 3px solid var(--line); transition: border-color .4s;
}
.vpn-dot-center {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--muted); transition: background .4s;
}
.vpn-indicator.vpn-on .vpn-ring { border-color: var(--ok); animation: ring-pulse 2s infinite; }
.vpn-indicator.vpn-on .vpn-dot-center { background: var(--ok); }
@keyframes ring-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(31,157,87,.4); }
  70%  { box-shadow: 0 0 0 8px rgba(31,157,87,0); }
  100% { box-shadow: 0 0 0 0 rgba(31,157,87,0); }
}
.vpn-status-label { font-size: 16px; font-weight: 700; color: var(--ink); }
.vpn-ip-rows { display: flex; flex-direction: column; }
.vpn-ip-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 0; border-bottom: 1px solid var(--line);
}
.vpn-ip-row:last-child { border-bottom: none; }
.vpn-ip-label { font-size: 13px; color: var(--muted); font-weight: 500; }
.vpn-ip-value { font-size: 14px; font-weight: 600; }
.btn-disconnect {
  background: var(--danger-bg); color: var(--danger);
  border: 1px solid var(--danger-border);
  padding: 10px 16px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600; cursor: pointer;
  transition: all .15s; width: 100%;
}
.btn-disconnect:hover { background: var(--danger); color: #fff; }
.emp-footer-info {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 12.5px; color: var(--muted);
}
.admin-login-link { text-align: center; }
.btn-text-link {
  background: none; border: none; cursor: pointer;
  color: var(--muted); font-size: 13px; text-decoration: underline;
  text-decoration-color: transparent; transition: all .15s;
}
.btn-text-link:hover { color: var(--ink); text-decoration-color: var(--muted); }
.login-back-row { text-align: center; padding-top: 4px; }
