:root {
  --primary: #0b5ea8;
  --primary-rgb: 11, 94, 168;
  --primary-50: color-mix(in srgb, var(--primary) 8%, white);
  --primary-100: color-mix(in srgb, var(--primary) 15%, white);
  --primary-200: color-mix(in srgb, var(--primary) 28%, white);
  --primary-600: color-mix(in srgb, var(--primary) 88%, black);
  --primary-700: color-mix(in srgb, var(--primary) 76%, black);
  --danger: #ef476f;
  --success: #20b486;
  --warning: #f5a524;
  --info: #2997ff;
  --navy: #063a78;
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --text: #14213d;
  --muted: #6b7890;
  --border: #e4eaf2;
  --shadow: none;
  --shadow-sm: none;
  --sidebar-w: 272px;
  --topbar-h: 72px;
  --radius: 16px;
  --radius-sm: 11px;
  --font: "Segoe UI Variable Text", "Segoe UI Variable Display", "Segoe UI", Tahoma, Arial, sans-serif;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #09101d;
  --surface: #111a2a;
  --surface-2: #172235;
  --text: #edf3ff;
  --muted: #9aa9bf;
  --border: #263349;
  --navy: #080f1d;
  --shadow: none;
  --shadow-sm: none;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  min-height: 100vh;
}
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

.app { min-height: 100vh; }
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar-w);
  background: var(--surface);
  border-right: 1px solid var(--border);
  z-index: 50;
  display: flex;
  flex-direction: column;
  transition: width .25s ease, transform .25s ease;
}
.brand {
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 22px;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  white-space: nowrap;
}
.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: white;
  background: linear-gradient(145deg, var(--primary), var(--primary-700));
  box-shadow: none;
  flex: 0 0 auto;
}
.brand-logo img { width: 100%; height: 100%; object-fit: contain; border-radius: inherit; }
.brand-title { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.brand-title strong { font-size: 15px; letter-spacing: .4px; overflow: hidden; text-overflow: ellipsis; }
.brand-title span { margin-top: 4px; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 1.2px; }
.sidebar-scroll { padding: 14px 12px 24px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.nav-group { margin-bottom: 17px; }
.nav-label { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 1.2px; color: var(--muted); padding: 0 12px 8px; }
.nav-link {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  margin: 3px 0;
  color: color-mix(in srgb, var(--text) 78%, var(--muted));
  border-radius: 10px;
  font-weight: 620;
  transition: .18s ease;
  white-space: nowrap;
}
.nav-link:hover { color: var(--primary); background: var(--primary-50); }
.nav-link.active { color: var(--primary); background: var(--primary-100); box-shadow: none; }
.nav-link svg { width: 19px; height: 19px; flex: 0 0 auto; }
.nav-link .nav-text { overflow: hidden; text-overflow: ellipsis; }
.nav-badge { margin-left: auto; min-width: 22px; height: 20px; padding: 0 7px; border-radius: 999px; display: grid; place-items: center; background: var(--surface-2); color: var(--muted); font-size: 11px; }
.nav-link.active .nav-badge { background: var(--primary); color: white; }
.sidebar-footer { margin-top: auto; padding: 12px; border-top: 1px solid var(--border); }
.help-card { border-radius: 13px; padding: 14px; background: linear-gradient(140deg, var(--primary), var(--primary-700)); color: white; overflow: hidden; position: relative; }
.help-card:after { content: ""; width: 100px; height: 100px; border-radius: 50%; position: absolute; right: -32px; bottom: -50px; background: rgba(255,255,255,.12); }
.help-card strong { display: block; margin-bottom: 5px; }
.help-card p { margin: 0 0 11px; opacity: .83; font-size: 12px; }
.help-card a { display: inline-flex; font-weight: 750; font-size: 12px; }

.main { margin-left: var(--sidebar-w); min-height: 100vh; transition: margin .25s ease; }
.topbar {
  height: var(--topbar-h);
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 28px;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.icon-btn {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: .18s ease;
}
.icon-btn:hover { color: var(--primary); background: var(--primary-50); border-color: var(--primary-200); transform: translateY(-1px); }
.icon-btn svg { width: 19px; height: 19px; }
.menu-toggle { display: none; }
.topbar-search { width: min(430px, 42vw); position: relative; }
.topbar-search input { width: 100%; height: 42px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); color: var(--text); padding: 0 42px 0 41px; outline: none; transition: .18s ease; }
.topbar-search input:focus { border-color: var(--primary); box-shadow: none; background: var(--surface); }
.topbar-search .search-icon { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); display: grid; }
.topbar-search .shortcut { position: absolute; right: 11px; top: 50%; transform: translateY(-50%); border: 1px solid var(--border); padding: 1px 6px; border-radius: 6px; color: var(--muted); font-size: 11px; background: var(--surface); }
.topbar-spacer { flex: 1; }
.topbar-user { display: flex; align-items: center; gap: 11px; padding-left: 5px; cursor: pointer; position: relative; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(145deg, var(--primary-100), var(--primary-200)); color: var(--primary-700); display: grid; place-items: center; font-weight: 800; border: 2px solid var(--surface); box-shadow: none; }
.user-meta { line-height: 1.15; white-space: nowrap; }
.user-meta strong { display: block; font-size: 13px; }
.user-meta span { display: block; color: var(--muted); font-size: 11px; margin-top: 3px; }
.badge-dot { position: relative; }
.badge-dot:after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--danger); position: absolute; top: 7px; right: 7px; border: 2px solid var(--surface); }
.dropdown { position: absolute; top: calc(100% + 12px); right: 0; width: 250px; background: var(--surface); border: 1px solid var(--border); box-shadow: none; border-radius: 14px; padding: 8px; opacity: 0; visibility: hidden; transform: translateY(-7px); transition: .18s ease; z-index: 80; }
.dropdown.open { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-title { padding: 10px 11px; font-weight: 800; }
.dropdown a, .dropdown button { width: 100%; border: 0; background: transparent; color: var(--text); padding: 10px 11px; border-radius: 9px; display: flex; gap: 10px; align-items: center; cursor: pointer; text-align: left; }
.dropdown a:hover, .dropdown button:hover { background: var(--surface-2); color: var(--primary); }
.dropdown hr { border: 0; border-top: 1px solid var(--border); margin: 6px 0; }
.notification-item { display: grid !important; grid-template-columns: 34px 1fr; align-items: start !important; gap: 10px; }
.notification-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--primary-100); color: var(--primary); }
.notification-item small { color: var(--muted); display: block; margin-top: 2px; }

.content { padding: 28px; max-width: 1660px; margin: 0 auto; }
.page-head { display: flex; align-items: flex-start; gap: 20px; margin-bottom: 24px; }
.page-head-main { min-width: 0; }
.eyebrow { color: var(--primary); text-transform: uppercase; letter-spacing: 1.25px; font-size: 11px; font-weight: 850; margin-bottom: 5px; }
h1 { font-size: clamp(25px, 3vw, 37px); line-height: 1.15; margin: 0; letter-spacing: -.6px; }
.page-description { color: var(--muted); margin: 8px 0 0; max-width: 790px; }
.page-actions { margin-left: auto; display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.breadcrumb { display: flex; gap: 7px; align-items: center; color: var(--muted); font-size: 12px; margin-bottom: 8px; }
.breadcrumb a:hover { color: var(--primary); }

.btn { min-height: 40px; padding: 9px 15px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text); display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 720; cursor: pointer; transition: .18s ease; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); box-shadow: none; border-color: var(--primary-200); color: var(--primary); }
.btn svg { width: 17px; height: 17px; }
.btn-primary { background: var(--primary); color: white; border-color: var(--primary); box-shadow: none; }
.btn-primary:hover { color: white; background: var(--primary-600); border-color: var(--primary-600); }
.btn-danger { background: var(--danger); color: white; border-color: var(--danger); }
.btn-soft { background: var(--primary-50); color: var(--primary); border-color: var(--primary-100); }
.btn-sm { min-height: 34px; padding: 7px 10px; font-size: 12px; border-radius: 8px; }
.btn-icon { width: 36px; padding: 0; }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: none; }
.card-head { min-height: 62px; display: flex; align-items: center; gap: 14px; padding: 17px 20px; border-bottom: 1px solid var(--border); }
.card-head h2, .card-head h3 { margin: 0; font-size: 16px; }
.card-head p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.card-title { min-width: 0; }
.card-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.card-body { padding: 20px; }
.card-footer { padding: 14px 20px; border-top: 1px solid var(--border); display: flex; align-items: center; gap: 10px; }

.stat-card { padding: 18px; position: relative; overflow: hidden; min-height: 126px; }
.stat-card:after { content: ""; width: 84px; height: 84px; border-radius: 50%; position: absolute; right: -24px; top: -26px; background: var(--primary-50); }
.stat-top { display: flex; align-items: center; gap: 10px; position: relative; z-index: 1; }
.stat-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: var(--primary-100); color: var(--primary); }
.stat-icon svg { width: 21px; height: 21px; }
.stat-title { color: var(--muted); font-weight: 650; }
.stat-value { font-size: 25px; font-weight: 850; margin: 14px 0 2px; letter-spacing: -.4px; }
.stat-change { color: var(--muted); font-size: 12px; }
.stat-change strong.up { color: var(--success); }
.stat-change strong.down { color: var(--danger); }

.alert { display: flex; align-items: flex-start; gap: 11px; padding: 14px 16px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--info) 25%, var(--border)); background: color-mix(in srgb, var(--info) 8%, var(--surface)); color: var(--text); }
.alert strong { color: var(--info); }
.alert.warning { border-color: color-mix(in srgb, var(--warning) 35%, var(--border)); background: color-mix(in srgb, var(--warning) 9%, var(--surface)); }
.alert.warning strong { color: var(--warning); }
.alert.success { border-color: color-mix(in srgb, var(--success) 35%, var(--border)); background: color-mix(in srgb, var(--success) 9%, var(--surface)); }
.alert.success strong { color: var(--success); }

.status { display: inline-flex; align-items: center; gap: 6px; height: 25px; padding: 0 9px; border-radius: 999px; font-weight: 760; font-size: 11px; white-space: nowrap; }
.status:before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status.active, .status.completed, .status.paid, .status.operational, .status.published, .status.resolved { color: #12815e; background: rgba(32,180,134,.12); }
.status.pending, .status.warning, .status.medium, .status.draft { color: #9b6900; background: rgba(245,165,36,.15); }
.status.inactive, .status.failed, .status.cancelled, .status.high, .status.offline { color: #c92b50; background: rgba(239,71,111,.13); }
.status.info, .status.open, .status.processing, .status.scheduled { color: #146fc0; background: rgba(41,151,255,.13); }
.status.low { color: #6267d8; background: rgba(91,91,214,.12); }

.table-toolbar { padding: 14px 16px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; border-bottom: 1px solid var(--border); }
.table-toolbar .form-control, .table-toolbar .form-select { width: auto; min-width: 160px; }
.toolbar-spacer { flex: 1; }
.table-responsive { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; white-space: nowrap; }
th { color: var(--muted); font-size: 11px; letter-spacing: .3px; text-transform: uppercase; font-weight: 800; background: var(--surface-2); }
tbody tr { transition: background .15s ease; }
tbody tr:hover { background: var(--primary-50); }
tbody tr:last-child td { border-bottom: 0; }
.table-main { display: flex; align-items: center; gap: 11px; }
.table-avatar { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: var(--primary-700); background: var(--primary-100); font-weight: 820; flex: 0 0 auto; }
.table-main strong { display: block; }
.table-main small { display: block; color: var(--muted); margin-top: 2px; }
.table-actions { display: flex; align-items: center; gap: 5px; }
.table-pagination { min-height: 58px; padding: 11px 16px; display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--border); color: var(--muted); }
.pagination-buttons { margin-left: auto; display: flex; align-items: center; gap: 5px; }
.page-btn { min-width: 34px; height: 34px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--text); cursor: pointer; }
.page-btn:hover, .page-btn.active { background: var(--primary); border-color: var(--primary); color: white; }
.empty-row { text-align: center; color: var(--muted); padding: 35px !important; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-group { min-width: 0; }
.form-group.full { grid-column: 1 / -1; }
.form-label { display: block; margin-bottom: 7px; font-size: 12px; font-weight: 750; }
.form-hint { color: var(--muted); font-size: 11px; margin-top: 5px; }
.form-control, .form-select, textarea.form-control {
  width: 100%;
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  outline: none;
  background: var(--surface);
  color: var(--text);
  transition: .18s ease;
}
textarea.form-control { min-height: 100px; resize: vertical; }
.form-control:focus, .form-select:focus { border-color: var(--primary); box-shadow: none; }
.input-group { display: flex; }
.input-group .form-control { border-radius: 10px 0 0 10px; }
.input-group .btn { border-radius: 0 10px 10px 0; }
.checkbox-row { display: flex; align-items: center; gap: 9px; }
.switch { width: 42px; height: 24px; position: relative; display: inline-block; flex: 0 0 auto; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch-slider { position: absolute; cursor: pointer; inset: 0; background: var(--border); border-radius: 999px; transition: .2s; }
.switch-slider:before { content: ""; width: 18px; height: 18px; position: absolute; left: 3px; top: 3px; border-radius: 50%; background: white; box-shadow: none; transition: .2s; }
.switch input:checked + .switch-slider { background: var(--primary); }
.switch input:checked + .switch-slider:before { transform: translateX(18px); }

.chart { width: 100%; min-height: 270px; position: relative; }
.chart svg { display: block; width: 100%; height: 100%; overflow: visible; }
.chart-labels { display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; padding: 0 6px; }
.legend { display: flex; gap: 15px; align-items: center; flex-wrap: wrap; }
.legend-item { display: inline-flex; gap: 7px; align-items: center; color: var(--muted); font-size: 12px; }
.legend-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--primary); }
.legend-dot.alt { background: var(--info); }
.legend-dot.success { background: var(--success); }

.progress { height: 8px; overflow: hidden; background: var(--surface-2); border-radius: 999px; }
.progress-bar { height: 100%; background: var(--primary); border-radius: inherit; }
.metric-row { display: grid; grid-template-columns: 130px 1fr 52px; gap: 12px; align-items: center; margin: 14px 0; }
.metric-row strong { text-align: right; }

.quick-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.quick-chip { border: 1px solid var(--border); border-radius: 10px; padding: 9px 12px; display: inline-flex; align-items: center; gap: 8px; background: var(--surface); color: var(--muted); font-weight: 700; cursor: pointer; }
.quick-chip:hover { background: var(--primary-50); color: var(--primary); border-color: var(--primary-200); }

.activity-list { display: grid; gap: 0; }
.activity-item { display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--border); }
.activity-item:last-child { border-bottom: 0; }
.activity-marker { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--primary-100); color: var(--primary); }
.activity-item p { margin: 0; }
.activity-item small { color: var(--muted); }

.server-card { padding: 18px; }
.server-top { display: flex; align-items: flex-start; gap: 12px; }
.server-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--primary-100); color: var(--primary); }
.server-top h3 { margin: 1px 0 2px; font-size: 15px; }
.server-top p { margin: 0; color: var(--muted); font-size: 12px; }
.server-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.server-meta div { background: var(--surface-2); border-radius: 9px; padding: 9px; }
.server-meta small { color: var(--muted); display: block; }
.server-meta strong { display: block; margin-top: 2px; }

.kanban { display: grid; grid-template-columns: repeat(4, minmax(250px, 1fr)); gap: 16px; overflow-x: auto; align-items: start; }
.kanban-col { background: var(--surface-2); border: 1px solid var(--border); border-radius: 14px; padding: 12px; min-height: 330px; }
.kanban-head { display: flex; align-items: center; gap: 8px; padding: 3px 4px 12px; font-weight: 800; }
.kanban-count { margin-left: auto; min-width: 24px; height: 22px; display: grid; place-items: center; border-radius: 999px; background: var(--surface); color: var(--muted); font-size: 11px; }
.ticket-card { background: var(--surface); border: 1px solid var(--border); border-radius: 11px; padding: 13px; margin-bottom: 10px; box-shadow: none; cursor: pointer; }
.ticket-card:hover { border-color: var(--primary-200); transform: translateY(-1px); }
.ticket-card h4 { margin: 0 0 8px; font-size: 13px; }
.ticket-meta { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 11px; }

.chat-layout { display: grid; grid-template-columns: 310px minmax(0, 1fr); min-height: 680px; overflow: hidden; }
.chat-sidebar { border-right: 1px solid var(--border); }
.chat-search { padding: 14px; border-bottom: 1px solid var(--border); }
.chat-list { max-height: 650px; overflow-y: auto; }
.chat-person { display: grid; grid-template-columns: 42px 1fr auto; gap: 10px; align-items: center; padding: 13px 14px; border-bottom: 1px solid var(--border); cursor: pointer; }
.chat-person:hover, .chat-person.active { background: var(--primary-50); }
.chat-person strong { display: block; }
.chat-person small { color: var(--muted); display: block; max-width: 165px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.online { width: 8px; height: 8px; background: var(--success); border-radius: 50%; }
.chat-main { display: flex; flex-direction: column; min-width: 0; }
.chat-head { height: 68px; border-bottom: 1px solid var(--border); display: flex; align-items: center; padding: 0 18px; gap: 12px; }
.chat-messages { flex: 1; padding: 22px; overflow-y: auto; background: linear-gradient(var(--surface-2), var(--surface)); }
.message-row { display: flex; margin-bottom: 16px; }
.message { max-width: min(640px, 80%); padding: 11px 14px; border: 1px solid var(--border); background: var(--surface); border-radius: 4px 14px 14px 14px; box-shadow: none; }
.message-row.mine { justify-content: flex-end; }
.message-row.mine .message { background: var(--primary); color: white; border-color: var(--primary); border-radius: 14px 4px 14px 14px; }
.message small { display: block; opacity: .65; margin-top: 5px; }
.chat-compose { padding: 14px; border-top: 1px solid var(--border); display: flex; gap: 10px; }
.chat-compose .form-control { flex: 1; }

.tree-list { list-style: none; margin: 0; padding: 0; }
.tree-item { border: 1px solid var(--border); background: var(--surface); border-radius: 11px; padding: 12px; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; cursor: grab; }
.tree-item.dragging { opacity: .45; }
.drag-handle { color: var(--muted); }
.tree-child { margin-left: 32px; }
.tree-item .spacer { flex: 1; }

.hero-preview { min-height: 310px; border-radius: 14px; padding: 35px; display: flex; align-items: center; position: relative; overflow: hidden; color: white; background: linear-gradient(125deg, var(--navy), var(--primary)); }
.hero-preview:before, .hero-preview:after { content: ""; position: absolute; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); }
.hero-preview:before { width: 320px; height: 320px; right: -80px; top: -110px; }
.hero-preview:after { width: 220px; height: 220px; right: 100px; bottom: -150px; }
.hero-copy { max-width: 570px; position: relative; z-index: 1; }
.hero-copy .pill { display: inline-flex; padding: 5px 10px; border-radius: 999px; background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.2); font-size: 11px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; }
.hero-copy h2 { font-size: 32px; margin: 14px 0 10px; line-height: 1.15; }
.hero-copy p { opacity: .78; }
.hero-visual { width: 260px; height: 210px; margin-left: auto; position: relative; z-index: 1; display: grid; place-items: center; }
.hero-server { width: 150px; height: 155px; border-radius: 18px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(10px); padding: 18px; transform: rotate(-3deg); box-shadow: none; }
.hero-server span { display: block; height: 24px; border-radius: 7px; margin: 7px 0; background: rgba(255,255,255,.15); position: relative; }
.hero-server span:after { content: ""; position: absolute; right: 8px; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: #55e6a5; box-shadow: none; }

.faq-item { border-bottom: 1px solid var(--border); }
.faq-question { width: 100%; border: 0; background: transparent; color: var(--text); padding: 16px 0; display: flex; align-items: center; gap: 12px; text-align: left; font-weight: 750; cursor: pointer; }
.faq-question span:last-child { margin-left: auto; }
.faq-answer { display: none; padding: 0 0 17px; color: var(--muted); }
.faq-item.open .faq-answer { display: block; }

.customizer {
  position: fixed;
  inset: 0 0 0 auto;
  width: 370px;
  background: var(--surface);
  border-left: 1px solid var(--border);
  z-index: 100;
  box-shadow: none;
  transform: translateX(100%);
  transition: transform .25s ease;
  display: flex;
  flex-direction: column;
}
.customizer.open { transform: translateX(0); }
.customizer-head { height: var(--topbar-h); display: flex; align-items: center; padding: 0 20px; border-bottom: 1px solid var(--border); }
.customizer-head h3 { margin: 0; }
.customizer-head button { margin-left: auto; }
.customizer-body { padding: 20px; overflow-y: auto; }
.customizer-section { margin-bottom: 24px; }
.customizer-section h4 { margin: 0 0 11px; }
.color-palette { display: grid; grid-template-columns: repeat(6, 1fr); gap: 9px; }
.color-swatch { aspect-ratio: 1; border-radius: 10px; border: 3px solid var(--surface); outline: 1px solid var(--border); cursor: pointer; }
.color-swatch.active { outline: 2px solid var(--text); }
.mode-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.mode-option { border: 1px solid var(--border); border-radius: 10px; padding: 11px; text-align: center; cursor: pointer; }
.mode-option.active { border-color: var(--primary); color: var(--primary); background: var(--primary-50); }
.backdrop { position: fixed; inset: 0; background: rgba(3, 12, 26, .48); z-index: 90; opacity: 0; visibility: hidden; transition: .2s ease; }
.backdrop.open { opacity: 1; visibility: visible; }

.modal-wrap { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 20px; background: rgba(5, 15, 30, .52); opacity: 0; visibility: hidden; transition: .18s ease; }
.modal-wrap.open { opacity: 1; visibility: visible; }
.modal { width: min(720px, 100%); max-height: min(820px, 94vh); overflow: auto; border-radius: 17px; background: var(--surface); border: 1px solid var(--border); box-shadow: none; transform: scale(.96) translateY(8px); transition: .2s ease; }
.modal-wrap.open .modal { transform: scale(1) translateY(0); }
.modal-head { min-height: 66px; padding: 16px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 12px; }
.modal-head h3 { margin: 0; }
.modal-head button { margin-left: auto; }
.modal-body { padding: 20px; }
.modal-footer { padding: 14px 20px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 10px; }

.toast-stack { position: fixed; right: 20px; bottom: 20px; z-index: 150; display: grid; gap: 10px; }
.toast { min-width: 280px; max-width: 390px; border: 1px solid var(--border); border-left: 4px solid var(--success); border-radius: 11px; background: var(--surface); box-shadow: none; padding: 13px 15px; display: flex; gap: 10px; align-items: flex-start; animation: toastIn .25s ease; }
.toast.error { border-left-color: var(--danger); }
.toast strong { display: block; }
.toast small { display: block; color: var(--muted); margin-top: 2px; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } }

.login-page { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(420px, .9fr); background: var(--surface); }
.login-visual { background: linear-gradient(135deg, var(--navy), var(--primary)); color: white; padding: 7vw; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.login-visual:before { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; right: -190px; top: -170px; border: 1px solid rgba(255,255,255,.16); box-shadow: none; }
.login-visual h1 { max-width: 670px; font-size: clamp(38px, 5vw, 68px); }
.login-visual p { max-width: 600px; font-size: 17px; opacity: .75; }
.login-panel { display: grid; place-items: center; padding: 40px; background: var(--bg); }
.login-card { width: min(430px, 100%); }
.login-card h2 { font-size: 28px; margin: 24px 0 5px; }
.login-card > p { color: var(--muted); margin: 0 0 25px; }

body.compact { --sidebar-w: 90px; }
body.compact .brand-title, body.compact .nav-label, body.compact .nav-text, body.compact .nav-badge, body.compact .help-card { display: none; }
body.compact .brand { justify-content: center; padding: 0; }
body.compact .nav-link { justify-content: center; padding: 10px; }
body.compact .sidebar-scroll { padding-inline: 10px; }
body.compact .sidebar-footer { padding: 8px; }
body.dense .card-body { padding: 15px; }
body.dense th, body.dense td { padding: 9px 12px; }
body.dense .content { padding-top: 20px; }

.mobile-overlay { display: none; }
.hide { display: none !important; }
.text-muted { color: var(--muted); }
.text-primary { color: var(--primary); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-right { text-align: right; }
.fw-800 { font-weight: 800; }
.mt-0 { margin-top: 0; }
.mt-20 { margin-top: 20px; }
.mb-0 { margin-bottom: 0; }
.mb-20 { margin-bottom: 20px; }
.gap-10 { gap: 10px; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.w-full { width: 100%; }

@media (max-width: 1280px) {
  .grid-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
  .sidebar { transform: translateX(-100%); width: 280px; }
  body.sidebar-open .sidebar { transform: translateX(0); }
  .main { margin-left: 0; }
  .menu-toggle { display: inline-grid; }
  .mobile-overlay { display: block; position: fixed; inset: 0; background: rgba(5,15,30,.5); z-index: 45; opacity: 0; visibility: hidden; transition: .2s; }
  body.sidebar-open .mobile-overlay { opacity: 1; visibility: visible; }
  body.compact .brand-title, body.compact .nav-label, body.compact .nav-text, body.compact .nav-badge, body.compact .help-card { display: initial; }
  body.compact .brand { justify-content: flex-start; padding: 0 22px; }
  body.compact .nav-link { justify-content: flex-start; padding: 10px 12px; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .topbar { padding: 0 14px; }
  .topbar-search { display: none; }
  .user-meta { display: none; }
  .content { padding: 19px 14px 30px; }
  .page-head { display: block; }
  .page-actions { margin: 16px 0 0; justify-content: flex-start; }
  .grid-2, .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr; }
  .span-2, .span-3 { grid-column: auto; }
  .form-grid { grid-template-columns: 1fr; }
  .form-group.full { grid-column: auto; }
  .card-head { padding: 15px; }
  .card-body { padding: 15px; }
  .table-toolbar { align-items: stretch; }
  .table-toolbar .form-control, .table-toolbar .form-select, .table-toolbar .btn { width: 100%; }
  .toolbar-spacer { display: none; }
  .table-pagination { flex-wrap: wrap; }
  .pagination-buttons { width: 100%; margin-left: 0; }
  .chat-layout { grid-template-columns: 1fr; }
  .chat-sidebar { display: none; }
  .customizer { width: min(370px, 100%); }
  .hero-preview { padding: 25px; }
  .hero-visual { display: none; }
  .login-page { grid-template-columns: 1fr; }
  .login-visual { display: none; }
  .login-panel { min-height: 100vh; padding: 24px; }
}
@media print {
  .sidebar, .topbar, .page-actions, .table-toolbar, .table-pagination, .customizer, .toast-stack { display: none !important; }
  .main { margin: 0; }
  .content { max-width: none; padding: 0; }
  .card { box-shadow: none; break-inside: avoid; }
}
.breadcrumb svg { width: 13px; height: 13px; flex: 0 0 auto; }
.activity-item > div:nth-child(2) small { display: block; }


/* Link You Technologies visual system */
html, body, button, input, select, textarea, table, th, td, h1, h2, h3, h4, h5, h6, p, a, span, label, strong, small {
  text-shadow: none !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
:root {
  --linkyou-blue: #0b5ea8;
  --linkyou-blue-dark: #063a78;
  --linkyou-blue-light: #4c9ed9;
  --linkyou-cyan: #42b9e8;
}
.brand-logo { background: linear-gradient(145deg, var(--linkyou-blue-light), var(--linkyou-blue-dark)); }
.btn-primary, .help-card { background: linear-gradient(135deg, var(--primary), var(--primary-700)); }
.status.suspended { color: #9b6900; background: rgba(245,165,36,.15); }
.status.hidden { color: #5f6f86; background: rgba(107,120,144,.14); }
.table-actions { min-width: max-content; }
.table-action { width: 32px; height: 32px; padding: 0; }
.table-action.action-hide { color: #52657e; }
.table-action.action-suspend { color: #a56b00; }
.table-action.action-delete { color: var(--danger); }
.table-action.is-active { background: var(--surface-2); border-color: currentColor; }
.table-action:hover { transform: none; box-shadow: none; }
.table-action.action-delete:hover { background: rgba(239,71,111,.08); border-color: rgba(239,71,111,.3); color: var(--danger); }
.table-action.action-suspend:hover { background: rgba(245,165,36,.1); border-color: rgba(245,165,36,.35); color: #9b6900; }
.table-action.action-hide:hover { background: rgba(107,120,144,.09); border-color: rgba(107,120,144,.28); color: #40536c; }

/* Authentication and error pages */
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(430px, .92fr); background: var(--surface); }
.auth-cover { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; padding: clamp(42px, 7vw, 110px); color: #fff; background: linear-gradient(135deg, var(--linkyou-blue-dark) 0%, var(--linkyou-blue) 55%, var(--linkyou-blue-light) 100%); }
.auth-cover:before, .auth-cover:after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.auth-cover:before { width: 540px; height: 540px; right: -180px; top: -180px; border: 1px solid rgba(255,255,255,.15); box-shadow: none; }
.auth-cover:after { width: 250px; height: 250px; left: -90px; bottom: -100px; background: rgba(66,185,232,.18); border: 1px solid rgba(255,255,255,.12); }
.auth-brand { position: absolute; left: clamp(32px, 6vw, 95px); top: 34px; display: flex; align-items: center; gap: 12px; z-index: 2; }
.auth-brand .brand-logo { width: 42px; height: 42px; }
.auth-brand strong { display: block; font-size: 16px; letter-spacing: .2px; }
.auth-brand span { display: block; margin-top: 2px; font-size: 11px; letter-spacing: 1.15px; text-transform: uppercase; opacity: .72; }
.auth-cover-copy { position: relative; z-index: 1; max-width: 660px; }
.auth-cover-copy .eyebrow { color: #bfe9ff; }
.auth-cover-copy h1 { max-width: 650px; font-size: clamp(38px, 5vw, 67px); letter-spacing: -1.6px; }
.auth-cover-copy p { max-width: 590px; margin: 18px 0 0; font-size: 17px; line-height: 1.75; opacity: .82; }
.auth-cover-points { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; margin-top: 30px; max-width: 560px; }
.auth-cover-point { display: flex; align-items: center; gap: 9px; font-size: 13px; color: rgba(255,255,255,.9); }
.auth-cover-point svg { width: 18px; height: 18px; color: #bfe9ff; }
.auth-panel { min-height: 100vh; display: grid; place-items: center; padding: clamp(28px, 5vw, 70px); background: var(--bg); }
.auth-card { width: min(460px, 100%); }
.auth-card.is-wide { width: min(520px, 100%); }
.auth-card .auth-card-logo { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; color: white; background: linear-gradient(145deg, var(--primary), var(--primary-700)); }
.auth-card .auth-card-logo svg { width: 24px; height: 24px; }
.auth-card h2 { margin: 24px 0 7px; font-size: 30px; line-height: 1.22; letter-spacing: -.55px; }
.auth-card > p, .auth-description { margin: 0 0 26px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 22px 0; color: var(--muted); font-size: 12px; }
.auth-divider:before, .auth-divider:after { content: ""; height: 1px; flex: 1; background: var(--border); }
.auth-social { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; }
.auth-link-row { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-top: 18px; color: var(--muted); }
.auth-link-row.center { justify-content: center; text-align: center; }
.auth-link-row a { color: var(--primary); font-weight: 700; }
.auth-note { display: flex; gap: 10px; align-items: flex-start; margin-top: 20px; padding: 13px 14px; border: 1px solid var(--border); border-radius: 11px; background: var(--surface); color: var(--muted); font-size: 12px; }
.auth-note svg { width: 18px; height: 18px; flex: 0 0 auto; color: var(--primary); }
.auth-success-icon { width: 76px; height: 76px; margin-bottom: 20px; display: grid; place-items: center; border-radius: 22px; color: var(--primary); background: var(--primary-100); border: 1px solid var(--primary-200); }
.auth-success-icon svg { width: 38px; height: 38px; }
.otp-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 9px; margin: 22px 0; }
.otp-input { min-width: 0; height: 56px; padding: 0; border: 1px solid var(--border); border-radius: 11px; background: var(--surface); color: var(--text); text-align: center; font-size: 21px; font-weight: 800; outline: none; }
.otp-input:focus { border-color: var(--primary); box-shadow: none; }
.password-meter { height: 5px; margin-top: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.password-meter span { display: block; width: 72%; height: 100%; border-radius: inherit; background: var(--success); }
.auth-basic-page { min-height: 100vh; display: grid; place-items: center; padding: 30px 18px; background: radial-gradient(circle at 15% 10%, var(--primary-100), transparent 28%), var(--bg); }
.auth-basic-card { width: min(460px, 100%); padding: clamp(25px, 4vw, 38px); border: 1px solid var(--border); border-radius: 18px; background: var(--surface); box-shadow: none; }
.auth-basic-card .auth-card-logo { margin: 0 auto; }
.auth-basic-card h2, .auth-basic-card > p { text-align: center; }
.auth-basic-card .auth-link-row { font-size: 13px; }
.error-page { min-height: 100vh; display: grid; place-items: center; padding: 32px 18px; background: var(--bg); }
.error-card { width: min(720px, 100%); text-align: center; }
.error-code { font-size: clamp(100px, 22vw, 210px); line-height: .86; font-weight: 800; letter-spacing: -10px; color: var(--primary); opacity: .13; }
.error-symbol { width: 82px; height: 82px; margin: -34px auto 24px; position: relative; display: grid; place-items: center; border-radius: 24px; color: white; background: linear-gradient(145deg, var(--primary), var(--primary-700)); }
.error-symbol svg { width: 40px; height: 40px; }
.error-card h1 { font-size: clamp(30px, 5vw, 48px); }
.error-card p { max-width: 530px; margin: 13px auto 24px; color: var(--muted); font-size: 15px; line-height: 1.75; }
.error-actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }

/* Reseller and client portals */
.portal-tag { display: inline-flex; align-items: center; height: 24px; margin-left: 4px; padding: 0 8px; border-radius: 999px; color: var(--primary); background: var(--primary-100); font-size: 10px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; }
.portal-welcome { min-height: 190px; display: grid; grid-template-columns: minmax(0,1fr) 250px; gap: 22px; align-items: center; padding: 28px; overflow: hidden; position: relative; color: #fff; background: linear-gradient(120deg, var(--linkyou-blue-dark), var(--primary)); border-radius: var(--radius); }
.portal-welcome:after { content: ""; position: absolute; width: 310px; height: 310px; right: -115px; top: -105px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); box-shadow: none; }
.portal-welcome-copy { position: relative; z-index: 1; }
.portal-welcome h2 { margin: 0 0 9px; font-size: 29px; }
.portal-welcome p { max-width: 690px; margin: 0; color: rgba(255,255,255,.78); }
.portal-welcome-actions { position: relative; z-index: 1; display: flex; justify-content: flex-end; gap: 9px; flex-wrap: wrap; }
.portal-welcome .btn { border-color: rgba(255,255,255,.28); color: white; background: rgba(255,255,255,.1); }
.portal-welcome .btn-primary { background: white; color: var(--linkyou-blue-dark); border-color: white; }
.portal-kpi-note { color: var(--muted); font-size: 12px; margin-top: 7px; }
.portal-list { display: grid; gap: 0; }
.portal-list-item { display: grid; grid-template-columns: 42px minmax(0,1fr) auto; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--border); }
.portal-list-item:last-child { border-bottom: 0; }
.portal-list-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; color: var(--primary); background: var(--primary-100); }
.portal-list-icon svg { width: 20px; height: 20px; }
.portal-list-item small { display: block; margin-top: 3px; color: var(--muted); }
.service-tile { padding: 18px; border: 1px solid var(--border); border-radius: 13px; background: var(--surface); }
.service-tile-top { display: flex; gap: 12px; align-items: flex-start; }
.service-tile h3 { margin: 0; font-size: 15px; }
.service-tile p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.service-tile-meta { display: flex; justify-content: space-between; gap: 12px; margin-top: 17px; padding-top: 13px; border-top: 1px solid var(--border); font-size: 12px; color: var(--muted); }

@media (max-width: 980px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-cover { display: none; }
  .portal-welcome { grid-template-columns: 1fr; }
  .portal-welcome-actions { justify-content: flex-start; }
}
@media (max-width: 560px) {
  .auth-panel { padding: 24px 18px; }
  .auth-social { grid-template-columns: 1fr; }
  .otp-grid { gap: 5px; }
  .otp-input { height: 49px; font-size: 18px; }
  .auth-link-row { align-items: flex-start; flex-direction: column; }
  .error-code { letter-spacing: -6px; }
}

/* ---------- Global shadow override ----------
   Catches every box-shadow source (Bootstrap defaults, focus rings,
   .shadow utility classes, inline styles) so nothing on this panel
   ever shows a shadow, per the no-shadows design requirement. */
*, *::before, *::after {
  box-shadow: none !important;
}
