/* ============================================================
   ARK-X PROTECTION — Custom Admin Theme
   Bootstrap 5 Dark Mode + Custom Components
   ============================================================ */

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
  --arkx-primary:     #06b6d4;
  --arkx-primary-rgb: 6, 182, 212;
  --arkx-secondary:   #8b5cf6;
  --arkx-success:     #22c55e;
  --arkx-danger:      #ef4444;
  --arkx-warning:     #f59e0b;
  --arkx-info:        #3b82f6;
  --arkx-orange:      #f97316;

  --arkx-bg:          #080f1d;
  --arkx-sidebar:     #0d1829;
  --arkx-surface:     #111c2e;
  --arkx-card:        #111c2e;
  --arkx-topbar:      #0d1829;

  --arkx-border:      rgba(255, 255, 255, 0.07);
  --arkx-border-cyan: rgba(6, 182, 212, 0.2);

  --arkx-text:        #e2e8f0;
  --arkx-muted:       #64748b;
  --arkx-muted-light: #94a3b8;

  --sidebar-width:     255px;
  --sidebar-collapsed: 68px;
  --topbar-height:     60px;

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

  --shadow-sm:  0 1px 3px rgba(0,0,0,0.3), 0 1px 2px rgba(0,0,0,0.2);
  --shadow:     0 4px 16px rgba(0,0,0,0.4);
  --shadow-lg:  0 10px 40px rgba(0,0,0,0.5);

  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Base ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--arkx-bg);
  color: var(--arkx-text);
  font-size: 0.9rem;
  line-height: 1.6;
  overflow-x: hidden;
}

.font-mono { font-family: 'JetBrains Mono', 'Fira Code', monospace !important; }

/* ── Scrollbar ─────────────────────────────────────────────── */
::-webkit-scrollbar       { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.22); }

/* ============================================================
   SIDEBAR
   ============================================================ */
.arkx-sidebar {
  position: fixed;
  inset-block: 0;
  left: 0;
  width: var(--sidebar-width);
  background: var(--arkx-sidebar);
  border-right: 1px solid var(--arkx-border);
  display: flex;
  flex-direction: column;
  z-index: 1050;
  transition: width var(--transition);
  overflow: hidden;
}

.arkx-sidebar.collapsed {
  width: var(--sidebar-collapsed);
}

/* Logo */
.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 18px;
  border-bottom: 1px solid var(--arkx-border);
  min-height: var(--topbar-height);
  white-space: nowrap;
  overflow: hidden;
}

.sidebar-logo-icon {
  flex-shrink: 0;
  width: 36px; height: 36px;
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.3);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--arkx-primary);
  font-size: 1.1rem;
}

.sidebar-brand {
  display: block;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 2px;
  color: var(--arkx-primary);
  line-height: 1.1;
}

.sidebar-brand-sub {
  display: block;
  font-size: 0.6rem;
  letter-spacing: 3px;
  color: var(--arkx-muted);
  text-transform: uppercase;
}

/* Navigation */
.sidebar-nav {
  flex: 1;
  padding: 12px 0;
  overflow-y: auto;
  overflow-x: hidden;
}

.sidebar-sep {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--arkx-muted);
  padding: 12px 20px 6px;
  white-space: nowrap;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  color: var(--arkx-muted-light);
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  transition: color var(--transition), background var(--transition);
  border-radius: 0;
  overflow: hidden;
}

.sidebar-link:hover {
  background: rgba(255,255,255,0.04);
  color: var(--arkx-text);
}

.sidebar-link.active {
  background: rgba(6, 182, 212, 0.08);
  color: var(--arkx-primary);
}

.sidebar-active-bar {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--arkx-primary);
  border-radius: 3px 0 0 3px;
}

.sidebar-icon {
  flex-shrink: 0;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
}

.sidebar-label {
  font-size: 0.875rem;
  font-weight: 500;
}

/* User section */
.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-top: 1px solid var(--arkx-border);
  white-space: nowrap;
  overflow: hidden;
}

.sidebar-user-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--arkx-border-cyan);
}

.sidebar-user-info { flex: 1; overflow: hidden; }

.sidebar-user-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--arkx-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-user-role {
  font-size: 0.7rem;
  color: var(--arkx-muted);
}

.sidebar-logout {
  flex-shrink: 0;
  color: var(--arkx-muted);
  font-size: 0.85rem;
  padding: 6px;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}
.sidebar-logout:hover { color: var(--arkx-danger); background: rgba(239,68,68,0.1); }

.sidebar-version {
  padding: 8px 20px;
  font-size: 0.65rem;
  color: var(--arkx-muted);
  letter-spacing: 0.5px;
  border-top: 1px solid var(--arkx-border);
}

/* ============================================================
   MAIN LAYOUT
   ============================================================ */
.arkx-main {
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: margin-left var(--transition);
}

.arkx-main.sidebar-collapsed {
  margin-left: var(--sidebar-collapsed);
}

/* ── Topbar ────────────────────────────────────────────────── */
.arkx-topbar {
  height: var(--topbar-height);
  background: var(--arkx-topbar);
  border-bottom: 1px solid var(--arkx-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  position: sticky;
  top: 0;
  z-index: 1000;
  gap: 12px;
}

.topbar-left { display: flex; align-items: center; gap: 14px; }
.topbar-right { display: flex; align-items: center; gap: 8px; }

.topbar-toggle {
  background: transparent;
  border: 1px solid var(--arkx-border);
  color: var(--arkx-muted-light);
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}
.topbar-toggle:hover {
  color: var(--arkx-primary);
  border-color: var(--arkx-border-cyan);
  background: rgba(6,182,212,0.06);
}

.topbar-page-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--arkx-text);
}

.topbar-clock {
  font-size: 0.8rem;
  color: var(--arkx-muted);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.5px;
}

/* ── License timer chip ─────────────────────────────────────────────────── */
.topbar-license {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius);
  border: 1px solid;
  letter-spacing: 0.3px;
}
.topbar-license.license-ok {
  color: #4ade80;
  background: rgba(74,222,128,.07);
  border-color: rgba(74,222,128,.2);
}
.topbar-license.license-warn {
  color: #facc15;
  background: rgba(250,204,21,.07);
  border-color: rgba(250,204,21,.25);
}
.topbar-license.license-critical,
.topbar-license.license-expired {
  color: #f87171;
  background: rgba(248,113,113,.09);
  border-color: rgba(248,113,113,.3);
  animation: pulse 1.8s infinite;
}

/* ── Renew link (inside license chip) ──────────────────────────────────── */
.topbar-license.has-renew { gap: 6px; }
.topbar-renew-inner {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 4px;
  padding-left: 8px;
  border-left: 1px solid currentColor;
  color: inherit;
  font-size: .72rem;
  font-weight: 700;
  text-decoration: none;
  opacity: .8;
  transition: opacity .15s;
  white-space: nowrap;
}
.topbar-renew-inner:hover { opacity: 1; color: inherit; text-decoration: none; }
.topbar-renew-inner i { font-size: .65rem; }

/* ── Notification badge dot ─────────────────────────────────────────────── */
.topbar-notif-badge {
  position: absolute;
  top: 4px; right: 4px;
  width: 8px; height: 8px;
  background: var(--arkx-danger);
  border-radius: 50%;
  border: 2px solid var(--arkx-surface);
  animation: pulse 1.8s infinite;
}

/* ── Notifications dropdown menu ────────────────────────────────────────── */
.topbar-notif-menu { min-width: 300px; }
.notif-item { border-left: 3px solid transparent; }
.notif-danger  { border-left-color: var(--arkx-danger);  color: #f87171; background: rgba(248,113,113,.05); }
.notif-warning { border-left-color: #facc15; color: #facc15; background: rgba(250,204,21,.05); }

.topbar-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--arkx-muted-light);
  padding: 5px 12px;
  background: rgba(34, 197, 94, 0.06);
  border: 1px solid rgba(34, 197, 94, 0.15);
  border-radius: var(--radius);
}

.status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.status-dot-success { background: var(--arkx-success); box-shadow: 0 0 6px rgba(34,197,94,0.6); animation: pulse 2s infinite; }
.status-dot-danger  { background: var(--arkx-danger); }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.topbar-icon-btn {
  background: transparent;
  border: 1px solid var(--arkx-border);
  color: var(--arkx-muted-light);
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  font-size: 0.9rem;
}
.topbar-icon-btn:hover { color: var(--arkx-primary); border-color: var(--arkx-border-cyan); }

.topbar-user-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid var(--arkx-border);
  color: var(--arkx-text);
  padding: 5px 12px 5px 6px;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}
.topbar-user-btn:hover { border-color: var(--arkx-border-cyan); background: rgba(6,182,212,0.05); }
.topbar-user-btn::after { display: none; } /* hide bootstrap caret */

.topbar-user-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--arkx-border-cyan);
}

/* ── Content ───────────────────────────────────────────────── */
.arkx-content {
  flex: 1;
  padding: 0;
}

.page-wrapper {
  padding: 28px 24px;
}

.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.page-heading {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--arkx-text);
  margin: 0 0 4px;
}

.page-desc {
  font-size: 0.85rem;
  color: var(--arkx-muted);
  margin: 0;
}

/* ── Footer ────────────────────────────────────────────────── */
.arkx-footer {
  border-top: 1px solid var(--arkx-border);
  padding: 12px 24px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--arkx-muted);
  flex-wrap: wrap;
  gap: 8px;
}

/* ── Flash ─────────────────────────────────────────────────── */
.arkx-flash { padding-bottom: 0; }
.arkx-flash .alert { font-size: 0.875rem; }

/* ============================================================
   CARDS
   ============================================================ */
.arkx-card {
  background: var(--arkx-card);
  border: 1px solid var(--arkx-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.arkx-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--arkx-border);
  gap: 12px;
  flex-wrap: wrap;
}

.arkx-card-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--arkx-text);
  display: flex;
  align-items: center;
}

.arkx-card-body  { padding: 20px; }
.arkx-card-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--arkx-border);
  background: rgba(0,0,0,0.08);
}

/* ── Stat Cards ────────────────────────────────────────────── */
.stat-card {
  background: var(--arkx-card);
  border: 1px solid var(--arkx-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.stat-card-icon {
  flex-shrink: 0;
  width: 50px; height: 50px;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
}

.stat-card-body { flex: 1; min-width: 0; }

.stat-card-value {
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 4px;
  font-variant-numeric: tabular-nums;
}

.stat-card-label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--arkx-muted);
  margin-bottom: 4px;
}

.stat-card-sub {
  font-size: 0.75rem;
  color: var(--arkx-muted);
}

/* Variants */
.stat-card-cyan  { border-color: rgba(6,182,212,0.2); }
.stat-card-cyan  .stat-card-icon  { background: rgba(6,182,212,0.12); color: var(--arkx-primary); }
.stat-card-cyan  .stat-card-value { color: var(--arkx-primary); }

.stat-card-red   { border-color: rgba(239,68,68,0.2); }
.stat-card-red   .stat-card-icon  { background: rgba(239,68,68,0.12); color: var(--arkx-danger); }
.stat-card-red   .stat-card-value { color: var(--arkx-danger); }

.stat-card-green { border-color: rgba(34,197,94,0.2); }
.stat-card-green .stat-card-icon  { background: rgba(34,197,94,0.12); color: var(--arkx-success); }
.stat-card-green .stat-card-value { color: var(--arkx-success); }

.stat-card-orange{ border-color: rgba(249,115,22,0.2); }
.stat-card-orange .stat-card-icon { background: rgba(249,115,22,0.12); color: var(--arkx-orange); }
.stat-card-orange .stat-card-value{ color: var(--arkx-orange); }

/* ============================================================
   TABLE
   ============================================================ */
.arkx-table {
  font-size: 0.85rem;
  margin: 0;
  color: var(--arkx-text);
}

.arkx-table thead th {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--arkx-muted);
  border-bottom: 1px solid var(--arkx-border) !important;
  padding: 12px 16px;
  background: rgba(0,0,0,0.2);
  white-space: nowrap;
}

.arkx-table tbody td {
  padding: 11px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  vertical-align: middle;
}

.arkx-table tbody tr:last-child td { border-bottom: none; }

.arkx-table tbody tr:hover { background: rgba(255,255,255,0.02); }

/* ── Wide data tables — native horizontal scrollbar ─────────────────────────
   Keep the table's own horizontal scroll (Bootstrap default) and style it so
   it's visible when a table fits within the viewport height. For tall tables
   whose native bar sits below the fold, a floating bar is added by app.js
   (see .arkx-hscroll below). */
.table-responsive { scrollbar-color: rgba(148,163,184,0.5) transparent; }
.table-responsive::-webkit-scrollbar { height: 10px; width: 10px; }
.table-responsive::-webkit-scrollbar-track { background: rgba(255,255,255,0.04); }
.table-responsive::-webkit-scrollbar-thumb {
  background: rgba(148,163,184,0.4);
  border-radius: 6px;
}
.table-responsive::-webkit-scrollbar-thumb:hover { background: rgba(148,163,184,0.6); }

/* Floating horizontal scrollbar pinned to the bottom of the viewport. Mirrors
   the primary wide table so the right-most columns are always reachable without
   scrolling the whole page down to the table's own scrollbar. Managed by app.js;
   hidden by default and only shown when that table overflows AND its own bar is
   below the fold. */
.arkx-hscroll {
  position: fixed;
  bottom: 0;
  z-index: 1035;
  height: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  background: rgba(10,15,25,0.92);
  border-top: 1px solid rgba(255,255,255,0.1);
  display: none;
  scrollbar-color: rgba(148,163,184,0.7) transparent;
}
.arkx-hscroll > div { height: 1px; }
.arkx-hscroll::-webkit-scrollbar { height: 16px; }
.arkx-hscroll::-webkit-scrollbar-track { background: transparent; }
.arkx-hscroll::-webkit-scrollbar-thumb {
  background: rgba(148,163,184,0.6);
  border-radius: 8px;
  border: 3px solid transparent;
  background-clip: padding-box;
}
.arkx-hscroll::-webkit-scrollbar-thumb:hover {
  background: rgba(148,163,184,0.85);
  background-clip: padding-box;
}

.table-avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--arkx-border);
}

/* ============================================================
   BADGES
   ============================================================ */
.badge {
  padding: 0.3em 0.65em;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  border-radius: 5px;
}

.badge-danger    { background: rgba(239,68,68,0.15);    color: #f87171; border: 1px solid rgba(239,68,68,0.3); }
.badge-warning   { background: rgba(245,158,11,0.15);   color: #fbbf24; border: 1px solid rgba(245,158,11,0.3); }
.badge-info      { background: rgba(59,130,246,0.15);   color: #60a5fa; border: 1px solid rgba(59,130,246,0.3); }
.badge-success   { background: rgba(34,197,94,0.12);    color: #4ade80; border: 1px solid rgba(34,197,94,0.25); }
.badge-secondary { background: rgba(100,116,139,0.15);  color: #94a3b8; border: 1px solid rgba(100,116,139,0.3); }
.badge-primary   { background: rgba(6,182,212,0.15);    color: #22d3ee; border: 1px solid rgba(6,182,212,0.3); }

/* ============================================================
   FORMS & INPUTS
   ============================================================ */
.arkx-input,
.form-control.arkx-input,
.form-select.arkx-input {
  background: rgba(255,255,255,0.04) !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  color: var(--arkx-text) !important;
  border-radius: var(--radius-sm) !important;
  font-size: 0.875rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.arkx-input:focus,
.form-control.arkx-input:focus,
.form-select.arkx-input:focus {
  border-color: rgba(6,182,212,0.4) !important;
  box-shadow: 0 0 0 3px rgba(6,182,212,0.08) !important;
  background: rgba(6,182,212,0.03) !important;
  outline: none;
}

.arkx-input::placeholder { color: var(--arkx-muted) !important; }

/* Select dropdown options — dark background in all browsers */
select.arkx-input,
.form-select.arkx-input,
select.form-control {
  background-color: var(--arkx-sidebar) !important;
  color-scheme: dark;
}

.arkx-input option,
.form-select option,
select option {
  background-color: var(--arkx-sidebar);
  color: var(--arkx-text);
}

.arkx-input option:hover,
.form-select option:hover,
select option:hover,
.arkx-input option:checked,
.form-select option:checked,
select option:checked {
  background-color: var(--arkx-primary) !important;
  color: #fff !important;
}

.input-group-text {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--arkx-muted);
}

.form-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--arkx-muted-light);
  margin-bottom: 5px;
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn-arkx-primary {
  background: linear-gradient(135deg, #0891b2, #06b6d4);
  border: none;
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  box-shadow: 0 2px 12px rgba(6,182,212,0.2);
}

.btn-arkx-primary:hover {
  background: linear-gradient(135deg, #0e7490, #0891b2);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(6,182,212,0.3);
}

.btn-arkx-primary:active { transform: translateY(0); }

/* Override Bootstrap defaults for dark theme */
.btn-outline-secondary {
  border-color: var(--arkx-border);
  color: var(--arkx-muted-light);
}
.btn-outline-secondary:hover {
  background: rgba(255,255,255,0.06);
  color: var(--arkx-text);
  border-color: rgba(255,255,255,0.15);
}

.btn-outline-danger  { border-color: rgba(239,68,68,0.4); color: #f87171; }
.btn-outline-danger:hover { background: rgba(239,68,68,0.1); color: #f87171; border-color: #ef4444; }

.btn-outline-info    { border-color: rgba(59,130,246,0.4); color: #60a5fa; }
.btn-outline-info:hover { background: rgba(59,130,246,0.1); color: #60a5fa; border-color: #3b82f6; }

.btn-outline-success { border-color: rgba(34,197,94,0.4); color: #4ade80; }
.btn-outline-success:hover { background: rgba(34,197,94,0.1); color: #4ade80; border-color: #22c55e; }

/* ── Dropdown ──────────────────────────────────────────────── */
.arkx-dropdown {
  background: var(--arkx-surface);
  border: 1px solid var(--arkx-border);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius);
  min-width: 200px;
  padding: 6px;
}

.arkx-dropdown .dropdown-header {
  padding: 8px 12px;
  color: var(--arkx-text);
  font-size: 0.82rem;
}

.arkx-dropdown .dropdown-item {
  color: var(--arkx-muted-light);
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
  padding: 7px 12px;
  transition: all var(--transition);
}

.arkx-dropdown .dropdown-item:hover {
  background: rgba(255,255,255,0.05);
  color: var(--arkx-text);
}

.arkx-dropdown .dropdown-divider { border-color: var(--arkx-border); }

/* ── Alerts (Bootstrap override) ──────────────────────────── */
.alert { font-size: 0.875rem; border-radius: var(--radius); }

.alert-success {
  background: rgba(34,197,94,0.08);
  border-color: rgba(34,197,94,0.2);
  color: #4ade80;
}

.alert-danger {
  background: rgba(239,68,68,0.08);
  border-color: rgba(239,68,68,0.2);
  color: #f87171;
}

.alert-info {
  background: rgba(59,130,246,0.08);
  border-color: rgba(59,130,246,0.2);
  color: #60a5fa;
}

/* ============================================================
   AUTH PAGES
   ============================================================ */
.arkx-auth-body {
  min-height: 100vh;
  background: linear-gradient(135deg, #040a14 0%, #071120 50%, #040c18 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.auth-bg-grid {
  position: fixed; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(6,182,212,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6,182,212,0.025) 1px, transparent 1px);
  background-size: 40px 40px;
  animation: gridMove 25s linear infinite;
}

@keyframes gridMove {
  0%   { transform: translate(0, 0); }
  100% { transform: translate(40px, 40px); }
}

.auth-bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 0;
  pointer-events: none;
}

.auth-bg-glow-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(6,182,212,0.08) 0%, transparent 70%);
  top: -100px; left: -100px;
  animation: glowFloat1 12s ease-in-out infinite;
}

.auth-bg-glow-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(139,92,246,0.07) 0%, transparent 70%);
  bottom: -50px; right: -50px;
  animation: glowFloat2 15s ease-in-out infinite;
}

@keyframes glowFloat1 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(40px, 30px); } }
@keyframes glowFloat2 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-30px, -20px); } }

.auth-wrapper {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.auth-card {
  width: 100%;
  background: rgba(13, 24, 41, 0.85);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(6, 182, 212, 0.12);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.03);
}

.auth-logo {
  text-align: center;
  margin-bottom: 28px;
}

.auth-logo-icon {
  width: 64px; height: 64px;
  background: rgba(6,182,212,0.1);
  border: 1px solid rgba(6,182,212,0.25);
  border-radius: var(--radius-lg);
  display: inline-flex;
  align-items: center; justify-content: center;
  font-size: 1.8rem;
  color: var(--arkx-primary);
  margin-bottom: 14px;
  box-shadow: 0 0 30px rgba(6,182,212,0.15);
}

.auth-title {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 3px;
  color: var(--arkx-primary);
  margin: 0 0 6px;
}

.auth-subtitle {
  font-size: 0.78rem;
  color: var(--arkx-muted);
  margin: 0;
  letter-spacing: 0.5px;
}

.auth-form .form-label { color: var(--arkx-muted-light); }

.auth-link {
  font-size: 0.82rem;
  color: var(--arkx-primary);
  text-decoration: none;
  transition: opacity var(--transition);
}
.auth-link:hover { opacity: 0.8; color: var(--arkx-primary); }

.auth-version-tag {
  margin-top: 20px;
  font-size: 0.72rem;
  color: var(--arkx-muted);
  letter-spacing: 1px;
  text-align: center;
}

/* ============================================================
   ERROR PAGES
   ============================================================ */
.error-wrapper {
  text-align: center;
  padding: 3rem;
  position: relative;
  z-index: 1;
}

.error-code {
  font-size: 8rem;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, #06b6d4, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}

.error-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 12px; }
.error-desc  { color: var(--arkx-muted); font-size: 0.95rem; }

/* ============================================================
   PROFILE
   ============================================================ */
.profile-avatar {
  width: 90px; height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--arkx-border-cyan);
  box-shadow: 0 0 20px rgba(6,182,212,0.15);
}

/* ============================================================
   UTILITIES
   ============================================================ */
.text-cyan    { color: var(--arkx-primary)   !important; }
.text-purple  { color: var(--arkx-secondary) !important; }
.text-red     { color: var(--arkx-danger)    !important; }
.text-green   { color: var(--arkx-success)   !important; }

/* Pagination Bootstrap override */
.pagination { gap: 4px; }
.page-link {
  background: var(--arkx-surface);
  border-color: var(--arkx-border);
  color: var(--arkx-muted-light);
  border-radius: var(--radius-sm) !important;
  font-size: 0.8rem;
  padding: 5px 10px;
}
.page-link:hover { background: rgba(255,255,255,0.06); color: var(--arkx-text); border-color: var(--arkx-border-cyan); }
.page-item.active .page-link { background: var(--arkx-primary); border-color: var(--arkx-primary); color: #000; }
.page-item.disabled .page-link { background: transparent; opacity: 0.4; }

/* Form check */
.form-check-input {
  background-color: rgba(255,255,255,0.06) !important;
  border-color: rgba(255,255,255,0.2) !important;
}
.form-check-input:checked {
  background-color: var(--arkx-primary) !important;
  border-color: var(--arkx-primary) !important;
}

/* HR */
hr { border-color: var(--arkx-border); opacity: 1; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 992px) {
  .arkx-sidebar {
    transform: translateX(-100%);
    transition: transform var(--transition), width var(--transition);
    width: var(--sidebar-width);
    z-index: 1050;
  }

  .arkx-sidebar.mobile-open { transform: translateX(0); }

  .arkx-main {
    margin-left: 0 !important;
    width: 100%;
    overflow-x: hidden;
  }

  .page-wrapper {
    padding: 16px 12px;
    width: 100%;
  }

  .auth-card { padding: 28px 24px; }
}

/* ── Mobile topbar — hide elements that clutter small screens ── */
@media (max-width: 767px) {
  /* Hide live clock — frees ~80px */
  .topbar-clock { display: none !important; }

  /* Language switcher — show flag only, hide text label */
  .lang-sw--topbar .lang-sw__name { display: none; }
  .lang-sw--topbar .lang-sw__btn  { padding: 5px 8px; min-width: 0; }

  /* License chip — hide timer text, keep icon badge */
  #topbarLicenseChip #topbarLicenseTimer { display: none; }
  #topbarLicenseChip { padding: 5px 8px; gap: 0; }

  /* Renew link inside chip — hide text on mobile, keep icon */
  .topbar-renew-inner span { display: none; }

  /* Tighten topbar gaps */
  .topbar-right { gap: 4px; }
  .topbar-left  { gap: 8px; }

  /* Shrink page title slightly so breadcrumb doesn't overflow */
  .topbar-page-title { font-size: .82rem; }
}

@media (max-width: 576px) {
  .stat-card-value { font-size: 1.5rem; }
  .auth-card       { padding: 24px 18px; }
  .auth-title      { font-size: 1rem; }
  .topbar-right    { gap: 4px; }

  /* Stat cards — 2×2 grid instead of 4×1 for better space use */
  .stat-grid-col { flex: 0 0 50%; max-width: 50%; }

  /* Adapt card inner layout to narrower columns */
  .stat-grid-col .stat-card { padding: 12px 10px; gap: 10px; }
  .stat-grid-col .stat-card-icon { width: 40px; height: 40px; font-size: 1.1rem; }
  .stat-grid-col .stat-card-value { font-size: 1.4rem; }
  .stat-grid-col .stat-card-label { font-size: .7rem; }
  .stat-grid-col .stat-card-sub   { font-size: .68rem; }
}

/* ============================================================
   PUBLIC PAGES — Home & Pricing
   ============================================================ */

/* ── Reveal animation (only when JS is ready) ──────────────── */
html.js-ready .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
html.js-ready .reveal.revealed {
  opacity: 1;
  transform: none;
}

/* ── Public body ───────────────────────────────────────────── */
.pub-body {
  background: var(--arkx-bg);
  color: var(--arkx-text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
}

/* ── Header / Nav ──────────────────────────────────────────── */
.pub-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(8, 15, 29, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--arkx-border);
}
.pub-header-accent {
  height: 2px;
  background: linear-gradient(90deg, var(--arkx-primary), var(--arkx-secondary), transparent);
}
.pub-nav { padding: 0; }
.pub-nav-container { min-height: 62px; }

.pub-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--arkx-text) !important;
}
.pub-brand-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--arkx-primary), var(--arkx-secondary));
  border-radius: 8px;
  font-size: 1rem;
  color: #fff;
  flex-shrink: 0;
}
.pub-brand-icon--sm { width: 26px; height: 26px; font-size: .75rem; border-radius: 6px; }
.pub-brand-text { font-size: .9rem; font-weight: 700; letter-spacing: .04em; line-height: 1.2; }
.pub-brand-sub  { display: block; font-size: .6rem; letter-spacing: .1em; color: var(--arkx-muted-light); font-weight: 500; }

.pub-navlist { gap: 2px; }
.pub-nav-link {
  color: var(--arkx-muted-light) !important;
  font-size: .875rem;
  font-weight: 500;
  padding: 6px 14px !important;
  border-radius: 6px;
  transition: color var(--transition), background var(--transition);
  text-decoration: none;
}
.pub-nav-link:hover,
.pub-nav-link--active {
  color: var(--arkx-text) !important;
  background: rgba(255,255,255,0.06);
}
.pub-btn-login {
  position: relative;
  z-index: 1;
  --bs-btn-border-color: rgba(255,255,255,0.25);
  --bs-btn-hover-border-color: var(--arkx-primary);
  --bs-btn-hover-bg: rgba(6,182,212,0.08);
  --bs-btn-hover-color: var(--arkx-text);
  background: transparent;
  border: 1px solid rgba(255,255,255,0.25) !important;
  color: var(--arkx-text);
  border-radius: 8px;
  font-size: .8rem;
  font-weight: 600;
  padding: 6px 16px;
  transition: border-color var(--transition), background var(--transition);
}
.pub-btn-login:hover {
  border-color: var(--arkx-primary) !important;
  background: rgba(6,182,212,0.08) !important;
  color: var(--arkx-text) !important;
}

/* Actions wrapper (lang + login) — inline on desktop */
.pub-collapse-actions {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-left: .5rem;
}

/* ── Mobile nav (< 992px — before Bootstrap lg) ────────────── */
@media (max-width: 991.98px) {
  /* Hamburger button */
  .pub-toggler {
    border-color: rgba(255,255,255,.2);
    border-radius: 8px;
    padding: .3rem .5rem;
  }
  .pub-toggler:focus { box-shadow: none; outline: none; }

  /* Open dropdown panel */
  #pubMenu {
    background: rgba(6,12,26,.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255,255,255,.07);
    border-radius: 0 0 16px 16px;
    padding: .6rem .75rem .9rem;
    margin: 0 -12px;
  }

  /* Nav links: full-width, big touch targets */
  .pub-navlist {
    flex-direction: column !important;
    gap: 2px !important;
    width: 100%;
    margin: 0 0 .5rem !important;
  }
  .pub-navlist .nav-item { width: 100%; }
  .pub-nav-link {
    display: block !important;
    width: 100%;
    padding: .7rem .85rem !important;
    border-radius: 8px;
    font-size: .9rem !important;
  }
  .pub-nav-link--active {
    background: rgba(6,182,212,.1) !important;
    color: var(--arkx-primary) !important;
  }

  /* Actions row: lang + login side by side */
  .pub-collapse-actions {
    margin-left: 0;
    padding-top: .65rem;
    border-top: 1px solid rgba(255,255,255,.07);
    gap: .5rem;
    width: 100%;
  }
  .pub-collapse-actions .lang-sw { flex: 1; }
  .pub-collapse-actions .lang-sw--pub .lang-sw__btn {
    width: 100%;
    justify-content: center;
    padding: .55rem .75rem;
  }
  .pub-collapse-actions .pub-btn-login {
    flex: 1;
    text-align: center;
    padding: .55rem .75rem;
    font-size: .82rem;
  }
}

/* ── Buttons ───────────────────────────────────────────────── */
.pub-btn-primary {
  position: relative;
  z-index: 1;
  /* override Bootstrap hover variables so border never disappears */
  --bs-btn-bg: var(--arkx-primary);
  --bs-btn-color: #04111a;
  --bs-btn-border-color: var(--arkx-primary);
  --bs-btn-hover-bg: var(--arkx-primary);
  --bs-btn-hover-color: #04111a;
  --bs-btn-hover-border-color: var(--arkx-primary);
  background: var(--arkx-primary);
  color: #04111a;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  transition: opacity var(--transition), transform var(--transition);
}
.pub-btn-primary:hover {
  opacity: .88;
  color: #04111a !important;
  background-color: var(--arkx-primary) !important;
  border-color: var(--arkx-primary) !important;
  transform: translateY(-1px);
}
.pub-btn-ghost {
  position: relative;
  z-index: 1;
  /* override Bootstrap hover variables so border never disappears */
  --bs-btn-bg: transparent;
  --bs-btn-color: var(--arkx-text);
  --bs-btn-border-color: rgba(255,255,255,0.3);
  --bs-btn-hover-bg: rgba(255,255,255,0.07);
  --bs-btn-hover-color: var(--arkx-text);
  --bs-btn-hover-border-color: rgba(255,255,255,0.55);
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3) !important;
  color: var(--arkx-text);
  font-weight: 600;
  border-radius: 8px;
  transition: border-color var(--transition), background var(--transition);
}
.pub-btn-ghost:hover {
  border-color: rgba(255,255,255,0.55) !important;
  background: rgba(255,255,255,0.07) !important;
  color: var(--arkx-text) !important;
}

/* ── Sections ──────────────────────────────────────────────── */
.pub-section { padding: 80px 0; }
.pub-section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.pub-section-head--left { text-align: left; margin-left: 0; }
.pub-eyebrow {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--arkx-primary);
  margin-bottom: 10px;
}
.pub-section-title { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; margin-bottom: 16px; color: #fff; }
.pub-section-lead  { font-size: .95rem; color: var(--arkx-muted-light); line-height: 1.7; margin: 0; }

/* ── Hero ──────────────────────────────────────────────────── */
.pub-hero { padding: 48px 0 80px; }
.pub-hero-row { min-height: 420px; }
.pub-hero-title {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.18;
  color: #fff;
  margin-bottom: 20px;
}
.pub-hero-lead {
  font-size: 1rem;
  color: var(--arkx-muted-light);
  line-height: 1.75;
  max-width: 520px;
  margin-bottom: 32px;
}

/* Announcement strip */
.pub-announcement {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(6,182,212,0.08);
  border: 1px solid rgba(6,182,212,0.25);
  border-radius: 50px;
  padding: 6px 16px 6px 8px;
  font-size: .8rem;
  color: var(--arkx-muted-light);
  margin-bottom: 28px;
  max-width: 100%;
}
.pub-announcement-badge {
  background: rgba(6,182,212,0.18);
  color: var(--arkx-primary);
  border-radius: 50px;
  padding: 2px 10px;
  font-size: .72rem;
  font-weight: 700;
  white-space: nowrap;
}
.pub-announcement-text { margin: 0; }

/* Hero stats card */
.pub-hero-card {
  background: var(--arkx-surface);
  border: 1px solid var(--arkx-border-cyan);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
}
.pub-hero-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--arkx-border);
  font-size: .78rem;
  color: var(--arkx-muted-light);
  font-weight: 600;
}
.pub-live-badge {
  background: rgba(34,197,94,0.15);
  color: #22c55e;
  border: 1px solid rgba(34,197,94,0.3);
  border-radius: 4px;
  padding: 1px 7px;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .08em;
}
.pub-hero-card-sweep {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(6,182,212,0.04) 100%);
  pointer-events: none;
}

/* Stats rotator */
.pub-stats-rotator { min-height: 110px; position: relative; }
.pub-stat-slide {
  display: none;
  align-items: center;
  gap: 18px;
  padding: 24px 20px;
}
.pub-stat-slide.active { display: flex; }
.pub-stat-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.pub-stat-icon--shield { background: rgba(6,182,212,0.12);  color: var(--arkx-primary); }
.pub-stat-icon--scan   { background: rgba(139,92,246,0.12); color: var(--arkx-secondary); }
.pub-stat-icon--timer  { background: rgba(249,115,22,0.12); color: var(--arkx-orange); }
.pub-stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 4px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.pub-stat-label { font-size: .8rem; color: var(--arkx-muted-light); margin: 0; }
.pub-stat-static { font-size: 2rem; font-weight: 800; color: #fff; }

/* ── Panel showcase ────────────────────────────────────────── */
.pub-panel-section { background: linear-gradient(180deg, transparent, rgba(6,182,212,0.03), transparent); }
.pub-panel-frame {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: var(--arkx-surface);
  border: 1px solid var(--arkx-border-cyan);
}
.pub-panel-glow {
  position: absolute;
  top: -80px; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 300px;
  background: radial-gradient(ellipse, rgba(6,182,212,0.12), transparent 70%);
  pointer-events: none;
}
.pub-panel-screen { padding: 32px 32px 0; }
.pub-panel-mockup {
  background: var(--arkx-sidebar);
  border-radius: 12px 12px 0 0;
  border: 1px solid var(--arkx-border);
  border-bottom: none;
  overflow: hidden;
  min-height: 320px;
}
.pub-mockup-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: var(--arkx-bg);
  border-bottom: 1px solid var(--arkx-border);
}
.pub-mockup-bar span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
}
.pub-mockup-bar span:nth-child(1) { background: #ef4444; }
.pub-mockup-bar span:nth-child(2) { background: #f59e0b; }
.pub-mockup-bar span:nth-child(3) { background: #22c55e; }
.pub-mockup-title {
  width: auto !important;
  height: auto !important;
  border-radius: 0 !important;
  background: transparent !important;
  font-size: .72rem;
  color: var(--arkx-muted);
  margin-left: 8px;
  font-family: 'JetBrains Mono', monospace;
}
.pub-mockup-body { display: flex; height: 280px; }
.pub-mockup-sidebar {
  width: 56px;
  background: rgba(0,0,0,0.2);
  border-right: 1px solid var(--arkx-border);
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pub-mockup-nav-item {
  height: 28px;
  border-radius: 6px;
  background: rgba(255,255,255,0.05);
}
.pub-mockup-nav-item.active { background: rgba(6,182,212,0.2); }
.pub-mockup-content { flex: 1; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.pub-mockup-stat-row { display: flex; gap: 8px; }
.pub-mockup-stat {
  flex: 1; height: 48px;
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--arkx-border);
}
.pub-mockup-stat--cyan   { border-color: rgba(6,182,212,0.2); }
.pub-mockup-stat--red    { border-color: rgba(239,68,68,0.2); }
.pub-mockup-stat--green  { border-color: rgba(34,197,94,0.2); }
.pub-mockup-chart {
  flex: 1;
  border-radius: 8px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--arkx-border);
  background-image: repeating-linear-gradient(
    90deg, transparent, transparent 20%,
    rgba(6,182,212,0.04) 20%, rgba(6,182,212,0.04) 21%
  ), linear-gradient(to top,
    transparent 0%, transparent 30%,
    rgba(6,182,212,0.15) 55%,
    rgba(6,182,212,0.05) 80%,
    transparent 100%
  );
}
.pub-mockup-table {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}
.pub-mockup-table div {
  height: 18px;
  border-radius: 3px;
  background: rgba(255,255,255,0.04);
}
.pub-panel-scrim {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 55%;
  background: linear-gradient(to top, var(--arkx-surface) 30%, transparent);
  pointer-events: none;
}
.pub-panel-info {
  position: relative;
  padding: 32px 40px 40px;
}
.pub-panel-eyebrow { font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--arkx-primary); display: block; margin-bottom: 8px; }
.pub-panel-title   { font-size: clamp(1.4rem, 2.5vw, 1.9rem); font-weight: 800; color: #fff; margin-bottom: 12px; }
.pub-panel-lead    { color: var(--arkx-muted-light); font-size: .9rem; line-height: 1.7; margin-bottom: 20px; }
.pub-panel-list    { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.pub-panel-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .87rem;
  color: var(--arkx-muted-light);
}
.pub-panel-list li i { color: var(--arkx-primary); font-size: 1rem; flex-shrink: 0; }

/* ── Feature cards ─────────────────────────────────────────── */
.pub-feat-card {
  background: var(--arkx-surface);
  border: 1px solid var(--arkx-border);
  border-radius: 14px;
  padding: 28px 24px;
  height: 100%;
  transition: border-color var(--transition), transform var(--transition);
}
.pub-feat-card:hover { border-color: rgba(6,182,212,0.3); transform: translateY(-3px); }
.pub-feat-icon {
  width: 46px; height: 46px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 18px;
}
.pub-feat-icon--cyan   { background: rgba(6,182,212,0.12);  color: var(--arkx-primary); }
.pub-feat-icon--red    { background: rgba(239,68,68,0.12);  color: var(--arkx-danger); }
.pub-feat-icon--purple { background: rgba(139,92,246,0.12); color: var(--arkx-secondary); }
.pub-feat-icon--orange { background: rgba(249,115,22,0.12); color: var(--arkx-orange); }
.pub-feat-icon--green  { background: rgba(34,197,94,0.12);  color: var(--arkx-success); }
.pub-feat-title { font-size: .95rem; font-weight: 700; color: #fff; margin-bottom: 10px; }
.pub-feat-desc  { font-size: .83rem; color: var(--arkx-muted-light); line-height: 1.65; margin: 0; }

/* ── Steps ─────────────────────────────────────────────────── */
.pub-steps-section { background: linear-gradient(180deg, transparent, rgba(139,92,246,0.03), transparent); }
.pub-steps-time { font-size: .82rem; color: var(--arkx-primary); margin-top: 8px; }
.pub-step {
  background: var(--arkx-surface);
  border: 1px solid var(--arkx-border);
  border-radius: 16px;
  overflow: hidden;
  height: 100%;
  transition: border-color var(--transition);
}
.pub-step:hover { border-color: rgba(139,92,246,0.3); }
.pub-step-svg { width: 100%; display: block; }
.pub-step-num {
  display: block;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .1em;
  color: var(--arkx-secondary);
  opacity: .6;
  padding: 16px 20px 0;
}
.pub-step-title { font-size: 1rem; font-weight: 700; color: #fff; padding: 8px 20px 0; margin: 0; }
.pub-step-desc  { font-size: .83rem; color: var(--arkx-muted-light); line-height: 1.65; padding: 10px 20px 24px; margin: 0; }

/* ── Pricing cards ─────────────────────────────────────────── */
.pub-price-card {
  position: relative;
  z-index: 1;
  background: var(--arkx-surface);
  border: 1px solid var(--arkx-border);
  border-radius: 16px;
  transition: border-color var(--transition), transform var(--transition), z-index 0s;
}
.pub-price-card:hover { border-color: rgba(6,182,212,0.3); transform: translateY(-4px); z-index: 2; }
.pub-price-card--featured {
  border-color: rgba(6,182,212,0.35);
  background: linear-gradient(145deg, var(--arkx-surface), rgba(6,182,212,0.05));
}
.pub-price-card-inner {
  padding: 28px 28px 32px;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.pub-price-card-header { margin-bottom: 16px; }
.pub-price-card-footer { margin-top: auto; padding-top: 24px; }

.pub-price-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(6,182,212,0.1);
  color: var(--arkx-primary);
  border: 1px solid rgba(6,182,212,0.2);
  border-radius: 50px;
  padding: 3px 12px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  margin-bottom: 14px;
}
.pub-price-badge--featured {
  background: rgba(139,92,246,0.12);
  color: var(--arkx-secondary);
  border-color: rgba(139,92,246,0.25);
}
.pub-price-name  { font-size: 1.15rem; font-weight: 700; color: #fff; margin-bottom: 8px; }
.pub-price-desc  { font-size: .82rem; color: var(--arkx-muted-light); margin-bottom: 0; line-height: 1.6; }
.pub-price-save  { font-size: .78rem; color: var(--arkx-success); margin: 12px 0 0; }

.pub-price-block { margin: 20px 0; }
.pub-price       { display: flex; flex-direction: column; gap: 2px; margin: 0; }
.pub-price-line  { display: flex; align-items: baseline; gap: 10px; }
.pub-price-was   { font-size: .9rem; color: var(--arkx-muted); text-decoration: line-through; }
.pub-price-main  { display: flex; align-items: baseline; gap: 0; }
.pub-price-amount   { font-size: 2.8rem; font-weight: 800; color: #fff; line-height: 1; }
.pub-price-currency { font-size: 1.1rem; font-weight: 600; color: var(--arkx-muted-light); }
.pub-price-period   { font-size: .78rem; color: var(--arkx-muted); }
.pub-price-alt      { font-size: .85rem; font-weight: 500; color: var(--arkx-muted-light); margin-left: .5rem; opacity: .75; }
.pub-price--promo .pub-price-main { color: var(--arkx-primary); }
.pub-price--promo .pub-price-amount { color: var(--arkx-primary); }

.pub-price-list {
  list-style: none;
  padding: 0;
  margin: 0 0 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pub-price-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .85rem;
  color: var(--arkx-muted-light);
}
.pub-price-list li i { color: var(--arkx-primary); font-size: .9rem; flex-shrink: 0; }
.pub-pricing-footnote { text-align: center; color: var(--arkx-muted); font-size: .78rem; margin-top: 28px; }
.pub-pricing-footnote a { color: var(--arkx-primary); }

/* ── CTA section ───────────────────────────────────────────── */
.pub-cta-section { background: linear-gradient(180deg, transparent, rgba(139,92,246,0.04), transparent); }
.pub-cta {
  position: relative;
  background: var(--arkx-surface);
  border: 1px solid rgba(139,92,246,0.25);
  border-radius: 20px;
  padding: 56px 40px;
  text-align: center;
  overflow: hidden;
}
.pub-cta-glow {
  position: absolute;
  z-index: 0;
  top: -60px; left: 50%;
  transform: translateX(-50%);
  width: 400px; height: 200px;
  background: radial-gradient(ellipse, rgba(139,92,246,0.15), transparent 70%);
  pointer-events: none;
}
.pub-cta-title { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; color: #fff; margin-bottom: 14px; position: relative; }
.pub-cta-lead  { color: var(--arkx-muted-light); font-size: .95rem; max-width: 500px; margin: 0 auto 28px; position: relative; }

/* ── Footer ────────────────────────────────────────────────── */
.pub-footer {
  background: var(--arkx-sidebar);
  border-top: 1px solid var(--arkx-border);
  padding: 32px 0;
}
.pub-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.pub-footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
  font-weight: 700;
  color: var(--arkx-text);
  letter-spacing: .05em;
}
.pub-footer-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .8rem;
  color: var(--arkx-muted);
}
.pub-footer-nav a { color: var(--arkx-muted-light); text-decoration: none; transition: color var(--transition); }
.pub-footer-nav a:hover { color: var(--arkx-primary); }
.pub-footer-copy { font-size: .75rem; color: var(--arkx-muted); margin: 0; text-align: center; }

/* ── Pricing page specific ─────────────────────────────────── */
.pub-page-hero { padding: 56px 0 40px; }
.pub-page-hero-inner { text-align: center; }
.pub-page-title { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; color: #fff; margin: 0; }
.pub-pricing-section   { padding-top: 0; }
.pub-pricing-details-section {}
.pub-pricing-cta-section {}

.pub-pillar {
  background: var(--arkx-surface);
  border: 1px solid var(--arkx-border);
  border-radius: 12px;
  padding: 24px;
  height: 100%;
}
.pub-pillar-icon { display: block; font-size: 1.6rem; color: var(--arkx-primary); margin-bottom: 14px; }
.pub-pillar-title { font-size: .95rem; font-weight: 700; color: #fff; margin-bottom: 8px; }
.pub-pillar-text  { font-size: .82rem; color: var(--arkx-muted-light); margin: 0; line-height: 1.65; }

.pub-detail-panel {
  background: var(--arkx-surface);
  border: 1px solid var(--arkx-border);
  border-radius: 14px;
  padding: 28px;
  height: 100%;
}
.pub-detail-panel--accent { border-color: rgba(6,182,212,0.2); }
.pub-detail-panel-title { font-size: .95rem; font-weight: 700; color: #fff; margin-bottom: 18px; }
.pub-detail-list {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.pub-detail-list li { font-size: .85rem; color: var(--arkx-muted-light); line-height: 1.65; }
.pub-detail-list li strong { color: var(--arkx-text); }

/* FAQ */
.pub-faq-item {
  background: var(--arkx-surface);
  border: 1px solid var(--arkx-border) !important;
  border-radius: 10px !important;
  margin-bottom: 8px;
  overflow: hidden;
}
.pub-faq-btn {
  background: transparent !important;
  color: var(--arkx-text) !important;
  font-size: .88rem;
  font-weight: 600;
  padding: 18px 20px;
  box-shadow: none !important;
}
.pub-faq-btn:not(.collapsed) { color: var(--arkx-primary) !important; }
.pub-faq-btn::after { filter: invert(1) brightness(0.7); }
.pub-faq-body {
  font-size: .85rem;
  color: var(--arkx-muted-light);
  line-height: 1.7;
  padding: 0 20px 18px;
  background: transparent;
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 991px) {
  .pub-hero    { padding: 36px 0 60px; }
  .pub-section { padding: 60px 0; }
  .pub-cta     { padding: 40px 24px; }
  .pub-panel-screen { padding: 20px 20px 0; }
  .pub-panel-info   { padding: 24px 24px 32px; }
}
@media (max-width: 767px) {
  .pub-hero-title   { font-size: 1.9rem; }
  .pub-section      { padding: 48px 0; }
  .pub-section-head { margin-bottom: 36px; }
  .pub-price-card-inner { padding: 22px 20px 24px; }
  .pub-footer-inner { flex-direction: column; align-items: flex-start; }
  .pub-price-amount { font-size: 2.2rem; }
}

/* ── Language Switcher ──────────────────────────────────────────────────────── */
.lang-sw { position: relative; }

/* Shared button reset */
.lang-sw__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  color: var(--arkx-text, #f1f5f9);
  font-size: .82rem;
  font-weight: 600;
  padding: 5px 10px 5px 8px;
  cursor: pointer;
  transition: background .15s, border-color .15s;
  white-space: nowrap;
  line-height: 1;
}
.lang-sw__btn:hover,
.lang-sw__btn:focus-visible {
  background: rgba(6,182,212,.15);
  border-color: rgba(6,182,212,.45);
  outline: none;
}
/* Bootstrap override: remove default dropdown-toggle caret arrow */
.lang-sw__btn.dropdown-toggle::after { display: none; }

/* fi = flag-icons class; force a consistent size */
.lang-sw__flag.fi,
.lang-sw__item-flag.fi {
  display: inline-block;
  width: 1.25em;
  line-height: 1em;
  border-radius: 2px;
  flex-shrink: 0;
}
.lang-sw__flag.fi  { font-size: 1rem; }
.lang-sw__item-flag.fi { font-size: 1.15rem; }
.lang-sw__name  { font-size: .8rem; }

/* Dropdown menu */
.lang-sw__menu {
  min-width: 175px;
  background: var(--arkx-surface, #0d1f2d);
  border: 1px solid var(--arkx-border, #1a3048);
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,.45);
  padding: 4px 0;
  overflow: hidden;
}
.lang-sw__item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  font-size: .84rem;
  color: var(--arkx-muted-light, #94a3b8) !important;
  transition: background .12s, color .12s;
  cursor: pointer;
  text-decoration: none;
}
.lang-sw__item:hover,
.lang-sw__item:focus { background: rgba(6,182,212,.1); color: var(--arkx-text, #f1f5f9) !important; }
.lang-sw__item.active {
  background: rgba(6,182,212,.15);
  color: var(--arkx-primary, #06b6d4) !important;
  font-weight: 600;
}
.lang-sw__item-flag { flex-shrink: 0; }
.lang-sw__item-name { flex: 1; }
.lang-sw__check     { font-size: .7rem; color: var(--arkx-primary, #06b6d4); margin-left: auto; }

/* ── topbar variant — no changes needed, inherits above */

/* ── auth variant — positioned absolutely in top-right */
.lang-sw--auth {
  position: fixed;
  top: 16px;
  right: 20px;
  z-index: 1050;
}
.lang-sw--auth .lang-sw__btn {
  background: rgba(13,31,45,.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* ── pub (public nav) variant */
.lang-sw--pub .lang-sw__btn {
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.15);
}
.lang-sw--pub .lang-sw__menu { margin-top: 4px !important; }

/* ── Clients Marquee ──────────────────────────────────────────────────────── */
.pub-clients-section {
    padding: 48px 0 56px;
    background: var(--arkx-bg, #060b14);
    border-top: 1px solid rgba(255,255,255,.05);
    border-bottom: 1px solid rgba(255,255,255,.05);
    overflow: hidden;
}
.pub-clients-title {
    text-align: center;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--arkx-muted, #475569);
    margin-bottom: 32px;
}
.pub-marquee-wrap {
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent 0%, #000 12%, #000 88%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 12%, #000 88%, transparent 100%);
}
.pub-marquee-track {
    display: flex;
    align-items: center;
    gap: 0;
    width: max-content;
    animation: pub-marquee 30s linear infinite;
}
.pub-marquee-track:hover { animation-play-state: paused; }
.pub-marquee-item {
    flex-shrink: 0;
    width: 140px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
    opacity: .55;
    transition: opacity .25s;
    filter: grayscale(40%);
}
.pub-marquee-item:hover { opacity: 1; filter: none; }
.pub-marquee-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}
@keyframes pub-marquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
    .pub-marquee-track { animation: none; }
}
