:root {
  --bg-1:#071425;
  --bg-2:#0b1d35;
  --bg-3:#0d2443;
  --panel:rgba(11,22,41,.84);
  --panel-2:rgba(16,31,56,.92);
  --soft:rgba(255,255,255,.03);
  --text:#eef4ff;
  --muted:#b8c7e2;
  --line:rgba(167,193,240,.14);
  --line-strong:rgba(167,193,240,.22);
  --accent:#68a9ff;
  --accent-2:#9fc9ff;
  --ok:#3bd18c;
  --bad:#ff7878;
  --warn:#ffca69;
  --shadow:0 22px 60px rgba(0,0,0,.26);
  --radius:24px;
}

* { box-sizing:border-box; }
html, body { margin:0; padding:0; min-height:100%; }
body {
  font-family: Inter, Segoe UI, Arial, sans-serif;
  color:var(--text);
  background:
    radial-gradient(circle at top left, rgba(104,169,255,.18), transparent 26%),
    radial-gradient(circle at top right, rgba(59,209,140,.10), transparent 18%),
    linear-gradient(180deg, var(--bg-1), var(--bg-2) 42%, var(--bg-3));
}

a { color:inherit; text-decoration:none; }

.topbar {
  position:sticky;
  top:0;
  z-index:40;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:18px 24px;
  background:rgba(3,10,20,.72);
  backdrop-filter:blur(16px);
  border-bottom:1px solid rgba(255,255,255,.06);
}

.brand-wrap { display:flex; align-items:center; gap:14px; }
.brand-logo {
  width:56px;
  height:56px;
  border-radius:18px;
  background:linear-gradient(180deg,#122746,#0d1e39);
  border:1px solid var(--line);
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  box-shadow:var(--shadow);
}
.brand-logo img {
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
  background:#fff;
}
.brand-logo.no-logo img { display:none; }
.brand-mark {
  display:none;
  font-size:26px;
  font-weight:800;
  color:var(--accent-2);
}
.brand-logo.no-logo .brand-mark { display:block; }

.brand-texts { display:flex; flex-direction:column; gap:4px; }
.brand {
  font-size:30px;
  font-weight:900;
  line-height:1;
  letter-spacing:-.05em;
}
.brand-sub {
  color:var(--muted);
  font-size:13px;
  letter-spacing:.04em;
  text-transform:uppercase;
}

.nav {
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}
.nav a,
.logout-form button {
  padding:11px 15px;
  border-radius:15px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.03);
  color:var(--text);
  font-weight:700;
}
.nav a:hover,
.logout-form button:hover {
  border-color:rgba(104,169,255,.35);
  background:rgba(104,169,255,.08);
}
.logout-form { margin:0; }
.logout-form button { cursor:pointer; }

.container {
  max-width:1460px;
  margin:0 auto;
  padding:26px;
}

.hero-card,
.panel {
  background:linear-gradient(180deg, rgba(14,27,50,.95), rgba(8,18,35,.96));
  border:1px solid var(--line);
  border-radius:28px;
  padding:24px;
  box-shadow:var(--shadow);
}

.panel.soft {
  background:linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,.018));
}

.hero-head {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  margin-bottom:20px;
}
.eyebrow {
  display:inline-block;
  margin-bottom:10px;
  color:var(--accent-2);
  font-size:12px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.13em;
}
h1 {
  margin:0 0 10px;
  font-size:50px;
  line-height:1.02;
  letter-spacing:-.05em;
}
h2 {
  margin:22px 0 14px;
  font-size:23px;
  letter-spacing:-.03em;
}
h3 {
  margin:0 0 10px;
  font-size:18px;
}
.lead {
  margin:0;
  color:var(--muted);
  max-width:760px;
  line-height:1.65;
}
.muted { color:var(--muted); }
.small { font-size:12px; }

.grid-2, .grid-3, .grid-4, .template-grid, .monitor-grid, .queue-grid {
  display:grid;
  gap:18px;
}
.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)); }
.template-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
.monitor-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
.queue-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }

label {
  display:block;
  color:var(--muted);
  font-weight:700;
}
input, select, textarea {
  width:100%;
  margin-top:8px;
  border:1px solid rgba(140,170,220,.16);
  background:rgba(2,9,20,.58);
  color:var(--text);
  border-radius:16px;
  padding:15px 16px;
  font-size:15px;
  outline:none;
}
input:focus, select:focus, textarea:focus {
  border-color:rgba(104,169,255,.46);
  box-shadow:0 0 0 4px rgba(104,169,255,.12);
}
textarea {
  min-height:140px;
  resize:vertical;
}

.inline-checkbox {
  display:flex;
  align-items:center;
  gap:10px;
  margin-top:14px;
}
.inline-checkbox input[type="checkbox"] {
  width:18px;
  height:18px;
  margin:0;
}

.actions {
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:20px;
}
.btn,
button[type=submit] {
  appearance:none;
  border:0;
  cursor:pointer;
  border-radius:16px;
  padding:13px 18px;
  font-size:14px;
  font-weight:800;
  color:#06121f;
  background:linear-gradient(180deg,#90c6ff,#5ea8ff);
  box-shadow:0 12px 26px rgba(94,168,255,.24);
}
.btn-secondary {
  background:rgba(255,255,255,.05) !important;
  color:var(--text) !important;
  border:1px solid rgba(255,255,255,.08) !important;
  box-shadow:none !important;
}
.btn-small {
  padding:10px 12px;
  font-size:13px;
}

.alert {
  padding:14px 16px;
  border-radius:18px;
  margin-bottom:16px;
  border:1px solid transparent;
  font-weight:700;
}
.alert-success {
  background:rgba(59,209,140,.12);
  border-color:rgba(59,209,140,.28);
  color:#d8ffe8;
}
.alert-error {
  background:rgba(255,120,120,.12);
  border-color:rgba(255,120,120,.24);
  color:#ffdede;
}
.alert-info {
  background:rgba(104,169,255,.10);
  border-color:rgba(104,169,255,.24);
  color:#dcecff;
}

.table-wrap {
  overflow:auto;
  border-radius:20px;
  border:1px solid var(--line);
}
table {
  width:100%;
  border-collapse:collapse;
  background:rgba(6,13,26,.46);
}
th, td {
  padding:14px 15px;
  border-bottom:1px solid rgba(255,255,255,.06);
  text-align:left;
  vertical-align:top;
}
th {
  color:var(--accent-2);
  text-transform:uppercase;
  font-size:12px;
  letter-spacing:.08em;
}

.status {
  display:inline-flex;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--line-strong);
  font-size:12px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.05em;
}
.status-open { color:#dcebff; }
.status-overdue, .status-partial-overdue { color:#ffd4d4; background:rgba(255,120,120,.08); border-color:rgba(255,120,120,.24); }
.status-paid { color:#d8ffe8; background:rgba(59,209,140,.08); border-color:rgba(59,209,140,.24); }
.status-bucket { color:#fff0ca; background:rgba(255,202,105,.08); border-color:rgba(255,202,105,.22); }

.status-cards .mini-card,
.queue-grid .mini-card,
.monitor-card,
.mini-card {
  background:linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.018));
  border:1px solid var(--line);
  border-radius:22px;
  padding:18px;
}
.mini-label {
  color:var(--muted);
  font-size:13px;
  margin-bottom:8px;
}
.mini-value {
  font-size:22px;
  font-weight:800;
  line-height:1.2;
}
.mini-count {
  font-size:34px;
  font-weight:900;
  letter-spacing:-.04em;
}

.monitor-card.ok {
  border-color:rgba(59,209,140,.26);
  background:linear-gradient(180deg, rgba(59,209,140,.08), rgba(255,255,255,.018));
}
.monitor-card.bad {
  border-color:rgba(255,120,120,.24);
  background:linear-gradient(180deg, rgba(255,120,120,.08), rgba(255,255,255,.018));
}
.monitor-state {
  display:inline-flex;
  padding:5px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:800;
  letter-spacing:.06em;
  text-transform:uppercase;
  margin-bottom:10px;
  border:1px solid var(--line);
}
.monitor-card.ok .monitor-state {
  color:#d8ffe8;
  background:rgba(59,209,140,.10);
}
.monitor-card.bad .monitor-state {
  color:#ffdede;
  background:rgba(255,120,120,.10);
}

.error-stack {
  display:flex;
  flex-direction:column;
  gap:10px;
}
.error-row {
  padding:12px 14px;
  border-radius:14px;
  background:rgba(255,255,255,.03);
  border:1px solid var(--line);
  color:var(--text);
}

.hint-line {
  margin-top:16px;
  padding:14px 16px;
  border-radius:16px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.03);
  color:var(--muted);
  line-height:1.6;
}

@media (max-width:1150px) {
  .grid-4, .queue-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .grid-3 { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .template-grid, .monitor-grid { grid-template-columns:1fr; }
  h1 { font-size:42px; }
}

@media (max-width:760px) {
  .container { padding:16px; }
  .topbar {
    padding:14px 16px;
    flex-direction:column;
    align-items:stretch;
  }
  .nav { width:100%; }
  .grid-2, .grid-3, .grid-4, .queue-grid, .template-grid, .monitor-grid {
    grid-template-columns:1fr;
  }
  h1 { font-size:32px; }
  .hero-card, .panel { padding:18px; }
}

/* ===== GUI STEP 1 ===== */
.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 24px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(7,21,50,.92), rgba(7,21,50,.78));
  backdrop-filter: blur(12px);
}

.topbar-auth {
  align-items: center;
}

.nav-enterprise {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 280px;
}

.nav-group-title {
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .72;
  font-weight: 800;
}

.nav-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.nav-links a,
.logout-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  color: #f3f7ff;
  text-decoration: none;
  font-weight: 700;
  transition: .18s ease;
}

.nav-links a:hover,
.logout-form button:hover {
  background: rgba(126, 182, 255, .18);
  border-color: rgba(126, 182, 255, .35);
  transform: translateY(-1px);
}

.auth-screen .container-auth {
  max-width: 980px;
  padding-top: 28px;
}

.auth-screen .topbar {
  justify-content: flex-start;
}

.auth-screen .brand-wrap {
  margin: 0 auto 0 0;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
}

.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-mark {
  font-size: 28px;
  font-weight: 900;
  color: #9ec7ff;
}

.brand-logo:not(.no-logo) .brand-mark {
  display: none;
}

.brand-texts .brand {
  font-size: 32px;
  line-height: 1;
  font-weight: 900;
}

.brand-texts .brand-sub {
  margin-top: 4px;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .72;
}

@media (max-width: 1200px) {
  .topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-enterprise {
    justify-content: flex-start;
  }
}

@media (max-width: 700px) {
  .brand-texts .brand {
    font-size: 24px;
  }

  .nav-group {
    min-width: 100%;
  }

  .nav-links a,
  .logout-form button {
    width: 100%;
  }
}

/* ===== GUI STEP 2 ===== */
.nav-cluster {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
}

.nav-switch-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 10px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  background: rgba(255,255,255,.025);
}

.nav-switch-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .12em;
  opacity: .7;
  font-weight: 800;
  padding-left: 4px;
}

.nav-segment {
  display: flex;
  gap: 8px;
  align-items: center;
}

.nav-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  color: #f3f7ff;
  text-decoration: none;
  font-weight: 700;
  transition: .18s ease;
}

.nav-pill:hover {
  background: rgba(126, 182, 255, .18);
  border-color: rgba(126, 182, 255, .35);
  transform: translateY(-1px);
}

.nav-pill.active {
  background: rgba(126, 182, 255, .26);
  border-color: rgba(126, 182, 255, .45);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
}

.nav-pill-primary {
  background: linear-gradient(180deg, #8ec0ff, #73adfb);
  color: #04152c;
  border-color: transparent;
}

.compact-actions {
  gap: 8px;
  flex-wrap: wrap;
}

.inline-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.input-like {
  width: 100%;
  min-height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(1,8,24,.92);
  color: #f3f7ff;
  padding: 0 12px;
  outline: none;
}

@media (max-width: 1250px) {
  .nav-cluster {
    justify-content: flex-start;
  }
}

@media (max-width: 800px) {
  .nav-switch-box,
  .nav-segment,
  .nav-pill,
  .logout-form {
    width: 100%;
  }

  .nav-segment {
    flex-direction: column;
  }
}

/* ===== MENU / FAVICON / LOGO FIX ===== */
.topbar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 20px !important;
  padding: 12px 18px !important;
  border-bottom: 1px solid rgba(255,255,255,.08) !important;
  background: linear-gradient(180deg, rgba(5,17,41,.96), rgba(5,17,41,.88)) !important;
  backdrop-filter: blur(12px) !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 1000 !important;
}

.topbar-auth {
  justify-content: flex-start !important;
}

.brand-wrap {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  min-width: 280px !important;
}

.brand-logo {
  width: 58px !important;
  height: 58px !important;
  min-width: 58px !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(255,255,255,.03) !important;
  border: 1px solid rgba(255,255,255,.08) !important;
  box-shadow: 0 8px 24px rgba(0,0,0,.18) !important;
}

.brand-logo img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  display: block !important;
  background: transparent !important;
}

.brand-mark {
  font-size: 28px !important;
  font-weight: 900 !important;
  color: #9ec7ff !important;
}

.brand-logo:not(.no-logo) .brand-mark {
  display: none !important;
}

.brand {
  font-size: 28px !important;
  line-height: 1 !important;
  font-weight: 900 !important;
}

.brand-sub {
  margin-top: 5px !important;
  font-size: 13px !important;
  opacity: .75 !important;
  text-transform: uppercase !important;
  letter-spacing: .08em !important;
}

.nav-pro {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 10px !important;
  flex: 1 1 auto !important;
}

.nav-box {
  display: flex !important;
  flex-direction: column !important;
  gap: 5px !important;
  padding: 8px 10px !important;
  border-radius: 16px !important;
  border: 1px solid rgba(255,255,255,.08) !important;
  background: rgba(255,255,255,.025) !important;
}

.nav-box-title {
  font-size: 11px !important;
  text-transform: uppercase !important;
  letter-spacing: .12em !important;
  font-weight: 800 !important;
  opacity: .68 !important;
  padding-left: 3px !important;
}

.nav-box-links {
  display: flex !important;
  gap: 8px !important;
  align-items: center !important;
  flex-wrap: wrap !important;
}

.nav-pill,
.logout-form .nav-pill,
.nav-pro > a,
.nav-pro button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  white-space: nowrap !important;
  min-height: 42px !important;
  padding: 0 15px !important;
  border-radius: 14px !important;
  border: 1px solid rgba(255,255,255,.10) !important;
  background: rgba(255,255,255,.03) !important;
  color: #f3f7ff !important;
  text-decoration: none !important;
  font-weight: 700 !important;
  transition: .18s ease !important;
}

.nav-pill:hover,
.nav-pro > a:hover,
.nav-pro button:hover {
  background: rgba(126, 182, 255, .18) !important;
  border-color: rgba(126, 182, 255, .35) !important;
  transform: translateY(-1px) !important;
}

.nav-pill.active {
  background: rgba(126, 182, 255, .24) !important;
  border-color: rgba(126, 182, 255, .44) !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.05) !important;
}

.nav-pill-primary {
  background: linear-gradient(180deg, #9dcbff, #79b4ff) !important;
  color: #04152c !important;
  border-color: transparent !important;
}

.logout-form {
  display: inline-flex !important;
  margin: 0 !important;
}

.auth-screen .nav-pro {
  display: none !important;
}

@media (max-width: 1280px) {
  .topbar {
    align-items: flex-start !important;
    flex-direction: column !important;
  }

  .nav-pro {
    justify-content: flex-start !important;
    width: 100% !important;
  }
}

@media (max-width: 760px) {
  .brand {
    font-size: 23px !important;
  }

  .nav-box,
  .nav-box-links,
  .nav-pill,
  .logout-form {
    width: 100% !important;
  }

  .nav-box-links {
    flex-direction: column !important;
    align-items: stretch !important;
  }
}


/* ==== ENTERPRISE_GUI_BUNDLE_START ==== */
.topbar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 20px !important;
  padding: 12px 18px !important;
  border-bottom: 1px solid rgba(255,255,255,.08) !important;
  background: linear-gradient(180deg, rgba(5,17,41,.96), rgba(5,17,41,.88)) !important;
  backdrop-filter: blur(12px) !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 1000 !important;
}
.topbar-auth { justify-content: flex-start !important; }
.brand-wrap {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  min-width: 280px !important;
}
.brand-logo {
  width: 58px !important;
  height: 58px !important;
  min-width: 58px !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(255,255,255,.03) !important;
  border: 1px solid rgba(255,255,255,.08) !important;
  box-shadow: 0 8px 24px rgba(0,0,0,.18) !important;
}
.brand-logo img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  display: block !important;
  background: transparent !important;
}
.brand-mark {
  font-size: 28px !important;
  font-weight: 900 !important;
  color: #9ec7ff !important;
}
.brand-logo:not(.no-logo) .brand-mark { display: none !important; }
.brand {
  font-size: 28px !important;
  line-height: 1 !important;
  font-weight: 900 !important;
}
.brand-sub {
  margin-top: 5px !important;
  font-size: 13px !important;
  opacity: .75 !important;
  text-transform: uppercase !important;
  letter-spacing: .08em !important;
}
.nav-pro {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 10px !important;
  flex: 1 1 auto !important;
}
.nav-box {
  display: flex !important;
  flex-direction: column !important;
  gap: 5px !important;
  padding: 8px 10px !important;
  border-radius: 16px !important;
  border: 1px solid rgba(255,255,255,.08) !important;
  background: rgba(255,255,255,.025) !important;
}
.nav-box-title {
  font-size: 11px !important;
  text-transform: uppercase !important;
  letter-spacing: .12em !important;
  font-weight: 800 !important;
  opacity: .68 !important;
  padding-left: 3px !important;
}
.nav-box-links {
  display: flex !important;
  gap: 8px !important;
  align-items: center !important;
  flex-wrap: wrap !important;
}
.nav-pill,
.logout-form .nav-pill,
.nav-pro > a,
.nav-pro button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  white-space: nowrap !important;
  min-height: 42px !important;
  padding: 0 15px !important;
  border-radius: 14px !important;
  border: 1px solid rgba(255,255,255,.10) !important;
  background: rgba(255,255,255,.03) !important;
  color: #f3f7ff !important;
  text-decoration: none !important;
  font-weight: 700 !important;
  transition: .18s ease !important;
}
.nav-pill:hover,
.nav-pro > a:hover,
.nav-pro button:hover {
  background: rgba(126, 182, 255, .18) !important;
  border-color: rgba(126, 182, 255, .35) !important;
  transform: translateY(-1px) !important;
}
.nav-pill.active {
  background: rgba(126, 182, 255, .24) !important;
  border-color: rgba(126, 182, 255, .44) !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.05) !important;
}
.nav-pill-primary {
  background: linear-gradient(180deg, #9dcbff, #79b4ff) !important;
  color: #04152c !important;
  border-color: transparent !important;
}
.logout-form {
  display: inline-flex !important;
  margin: 0 !important;
}
.auth-screen .nav-pro { display: none !important; }

.pro-page { padding: 8px 4px 2px 4px; }
.page-head-grid {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 18px;
}
.page-head-grid h1 {
  margin: 0 0 8px 0;
  font-size: 3rem;
  line-height: 1.02;
}
.lead {
  color: rgba(234,241,255,.82);
  font-size: 1.08rem;
  max-width: 860px;
}
.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 14px;
  margin: 18px 0;
}
.stat-card {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  box-shadow: 0 10px 30px rgba(0,0,0,.14);
}
.stat-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .12em;
  opacity: .72;
  font-weight: 800;
  margin-bottom: 10px;
}
.stat-value {
  font-size: 1.8rem;
  font-weight: 900;
  line-height: 1.1;
}
.table-tools {
  display: grid;
  grid-template-columns: 1.8fr .8fr;
  gap: 12px;
  margin: 14px 0 18px 0;
}
.search-input,
.input-like {
  width: 100%;
  min-height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(1,8,24,.92);
  color: #f3f7ff;
  padding: 0 14px;
  outline: none;
}
.table-title {
  font-weight: 800;
}
.badge-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.soft-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(126, 182, 255, .14);
  border: 1px solid rgba(126, 182, 255, .24);
  font-weight: 700;
  font-size: .86rem;
}
.compact-actions {
  gap: 8px;
  flex-wrap: wrap;
}

.edit-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(320px, .7fr);
  gap: 18px;
  align-items: start;
}
.edit-main {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.edit-side {
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: sticky;
  top: 92px;
}
.section-card,
.summary-card {
  padding: 20px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.02));
  box-shadow: 0 10px 32px rgba(0,0,0,.14);
}
.section-card-head {
  margin-bottom: 16px;
}
.section-card-head h2,
.summary-title {
  margin: 0 0 6px 0;
  font-size: 1.25rem;
  font-weight: 900;
}
.section-card-head p {
  margin: 0;
  color: rgba(234,241,255,.72);
}
.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 14px 18px;
}
.field-grid label,
.section-card > label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-weight: 700;
}
label input,
label select,
label textarea {
  width: 100%;
  min-height: 48px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(1,8,24,.92);
  color: #f3f7ff;
  padding: 12px 14px;
  outline: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.02);
}
label textarea { min-height: 120px; resize: vertical; }
.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.summary-row:last-child { border-bottom: 0; }
.code-box,
.mono-lite {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.code-box {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(1,8,24,.92);
  border: 1px solid rgba(255,255,255,.08);
  word-break: break-all;
  line-height: 1.45;
}
.mini-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .12em;
  opacity: .72;
  font-weight: 800;
  margin-bottom: 8px;
}
.helper-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 12px;
}
.sticky-actions {
  position: sticky;
  bottom: 0;
  z-index: 5;
  padding: 14px 0 4px 0;
  background: linear-gradient(180deg, rgba(6,18,44,0), rgba(6,18,44,.95) 22%);
}
.customer-balance {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  font-weight: 800;
}
.customer-balance-open {
  background: rgba(255, 156, 156, .10);
  border: 1px solid rgba(255, 156, 156, .22);
}
.customer-balance-zero {
  background: rgba(126, 182, 255, .10);
  border: 1px solid rgba(126, 182, 255, .18);
}

@media (max-width: 1280px) {
  .topbar {
    align-items: flex-start !important;
    flex-direction: column !important;
  }
  .nav-pro {
    justify-content: flex-start !important;
    width: 100% !important;
  }
  .page-head-grid,
  .edit-shell {
    grid-template-columns: 1fr;
    flex-direction: column;
  }
  .edit-side { position: static; top: auto; }
}
@media (max-width: 900px) {
  .stat-strip,
  .field-grid,
  .table-tools {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 760px) {
  .brand { font-size: 23px !important; }
  .nav-box,
  .nav-box-links,
  .nav-pill,
  .logout-form { width: 100% !important; }
  .nav-box-links {
    flex-direction: column !important;
    align-items: stretch !important;
  }
  .page-head-grid h1 {
    font-size: 2.15rem;
  }
}
/* ==== ENTERPRISE_GUI_BUNDLE_END ==== */


/* ==== AUTH_ENTERPRISE_PUBLIC ==== */
.auth-card {
  max-width: 1160px;
  margin: 18px auto 0 auto;
}
.auth-form-pro {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.auth-inline-card {
  margin-top: 4px;
}
.checkbox-line {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 10px !important;
  font-weight: 700;
}
.checkbox-line input[type="checkbox"] {
  width: 18px !important;
  height: 18px !important;
  min-height: 18px !important;
  padding: 0 !important;
}
.qr-box-pro {
  width: 280px;
  max-width: 100%;
  padding: 14px;
  border-radius: 22px;
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 12px 30px rgba(0,0,0,.22);
}
.qr-box-pro img {
  width: 100%;
  height: auto;
  display: block;
}


/* ==== LEFT_SIDEBAR_ENTERPRISE_START ==== */
body.app-screen {
  background:
    radial-gradient(circle at top left, rgba(36,74,133,.28), transparent 28%),
    radial-gradient(circle at right center, rgba(24,108,138,.20), transparent 24%),
    #07142d;
}

.app-shell {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar-pro {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 18px 14px 18px 14px;
  border-right: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(5,17,41,.98), rgba(6,22,48,.94));
  backdrop-filter: blur(14px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow-y: auto;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 4px 6px 10px 6px;
}

.sidebar-logo {
  width: 58px;
  height: 58px;
  min-width: 58px;
  border-radius: 16px;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
}

.sidebar-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.sidebar-logo-fallback {
  font-size: 28px;
  font-weight: 900;
  color: #9ec7ff;
}

.sidebar-logo:not(.no-logo) .sidebar-logo-fallback {
  display: none;
}

.sidebar-title {
  font-size: 2rem;
  line-height: 1;
  font-weight: 900;
}

.sidebar-subtitle {
  margin-top: 6px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .10em;
  opacity: .72;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.side-link,
.side-sublink,
.side-summary,
.side-logout-btn {
  min-height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  color: #f3f7ff;
  font-weight: 800;
  text-decoration: none;
  transition: .18s ease;
}

.side-link,
.side-sublink,
.side-logout-btn {
  display: flex;
  align-items: center;
  padding: 0 14px;
}

.side-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  cursor: pointer;
  list-style: none;
}

.side-summary::-webkit-details-marker {
  display: none;
}

.side-summary::after {
  content: "▾";
  font-size: 14px;
  opacity: .75;
}

.side-group:not([open]) .side-summary::after {
  content: "▸";
}

.side-link:hover,
.side-sublink:hover,
.side-summary:hover,
.side-logout-btn:hover {
  background: rgba(126, 182, 255, .16);
  border-color: rgba(126, 182, 255, .30);
  transform: translateY(-1px);
}

.side-link.active,
.side-sublink.active {
  background: rgba(126, 182, 255, .24);
  border-color: rgba(126, 182, 255, .44);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.05);
}

.side-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.side-subnav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 2px 0 0 10px;
}

.sidebar-bottom {
  margin-top: auto;
  padding-top: 10px;
}

.sidebar-logout-form {
  width: 100%;
  margin: 0;
}

.side-logout-btn {
  width: 100%;
  justify-content: center;
  background: linear-gradient(180deg, #9dcbff, #79b4ff);
  color: #04152c;
  border-color: transparent;
}

.app-main {
  padding-top: 14px;
  padding-bottom: 24px;
}

.auth-topbar {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(5,17,41,.96), rgba(5,17,41,.88));
}

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

  .sidebar-pro {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }

  .app-main {
    padding-top: 8px;
  }
}
/* ==== LEFT_SIDEBAR_ENTERPRISE_END ==== */


/* ==== DC_FORCE_SIDEBAR_START ==== */
.dc-body,
.dc-body * {
  box-sizing: border-box;
}

.dc-app-body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(36,74,133,.28), transparent 28%),
    radial-gradient(circle at right center, rgba(24,108,138,.20), transparent 24%),
    #07142d;
}

.dc-shell {
  display: grid !important;
  grid-template-columns: 300px minmax(0, 1fr) !important;
  min-height: 100vh !important;
}

.dc-sidebar {
  position: sticky !important;
  top: 0 !important;
  height: 100vh !important;
  overflow-y: auto !important;
  padding: 18px 14px !important;
  border-right: 1px solid rgba(255,255,255,.08) !important;
  background: linear-gradient(180deg, rgba(5,17,41,.98), rgba(6,22,48,.94)) !important;
  backdrop-filter: blur(14px) !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 18px !important;
}

.dc-brand {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  padding: 4px 6px 10px 6px !important;
}

.dc-logo {
  width: 58px !important;
  height: 58px !important;
  min-width: 58px !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(255,255,255,.03) !important;
  border: 1px solid rgba(255,255,255,.08) !important;
  box-shadow: 0 8px 24px rgba(0,0,0,.18) !important;
}

.dc-logo img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  display: block !important;
}

.dc-logo-fallback {
  font-size: 28px !important;
  font-weight: 900 !important;
  color: #9ec7ff !important;
}

.dc-logo:not(.no-logo) .dc-logo-fallback {
  display: none !important;
}

.dc-title {
  font-size: 2rem !important;
  line-height: 1 !important;
  font-weight: 900 !important;
}

.dc-subtitle {
  margin-top: 6px !important;
  font-size: 12px !important;
  text-transform: uppercase !important;
  letter-spacing: .10em !important;
  opacity: .72 !important;
}

.dc-nav {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
}

.dc-link,
.dc-sublink,
.dc-summary,
.dc-logout-btn {
  min-height: 44px !important;
  border-radius: 14px !important;
  border: 1px solid rgba(255,255,255,.08) !important;
  background: rgba(255,255,255,.03) !important;
  color: #f3f7ff !important;
  font-weight: 800 !important;
  text-decoration: none !important;
  transition: .18s ease !important;
}

.dc-link,
.dc-sublink,
.dc-logout-btn {
  display: flex !important;
  align-items: center !important;
  padding: 0 14px !important;
}

.dc-summary {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 0 14px !important;
  cursor: pointer !important;
  list-style: none !important;
}

.dc-summary::-webkit-details-marker {
  display: none !important;
}

.dc-summary::after {
  content: "▾";
  font-size: 14px;
  opacity: .75;
}

.dc-group:not([open]) .dc-summary::after {
  content: "▸";
}

.dc-link:hover,
.dc-sublink:hover,
.dc-summary:hover,
.dc-logout-btn:hover {
  background: rgba(126, 182, 255, .16) !important;
  border-color: rgba(126, 182, 255, .30) !important;
  transform: translateY(-1px) !important;
}

.dc-link.active,
.dc-sublink.active {
  background: rgba(126, 182, 255, .24) !important;
  border-color: rgba(126, 182, 255, .44) !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.05) !important;
}

.dc-group {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
}

.dc-subnav {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  padding: 2px 0 0 10px !important;
}

.dc-sidebar-bottom {
  margin-top: auto !important;
  padding-top: 10px !important;
}

.dc-logout-form {
  width: 100% !important;
  margin: 0 !important;
}

.dc-logout-btn {
  width: 100% !important;
  justify-content: center !important;
  background: linear-gradient(180deg, #9dcbff, #79b4ff) !important;
  color: #04152c !important;
  border-color: transparent !important;
}

.dc-main {
  padding: 18px 22px 28px 22px !important;
  min-width: 0 !important;
}

.dc-auth-top {
  padding: 14px 18px !important;
  border-bottom: 1px solid rgba(255,255,255,.08) !important;
  background: linear-gradient(180deg, rgba(5,17,41,.96), rgba(5,17,41,.88)) !important;
}

@media (max-width: 1180px) {
  .dc-shell {
    grid-template-columns: 1fr !important;
  }

  .dc-sidebar {
    position: static !important;
    height: auto !important;
    border-right: 0 !important;
    border-bottom: 1px solid rgba(255,255,255,.08) !important;
  }
}
/* ==== DC_FORCE_SIDEBAR_END ==== */



/* ==== VISUAL_POLISH_ENTERPRISE_V1_START ==== */
.dc-app-body {
  background:
    radial-gradient(circle at top left, rgba(76, 124, 199, .18), transparent 24%),
    radial-gradient(circle at 75% 20%, rgba(31, 158, 170, .10), transparent 18%),
    linear-gradient(180deg, #06132b 0%, #081934 100%) !important;
}

.dc-shell {
  grid-template-columns: 276px minmax(0, 1fr) !important;
}

.dc-sidebar {
  padding: 16px 14px !important;
  background:
    linear-gradient(180deg, rgba(7,18,43,.98), rgba(6,20,46,.94)) !important;
  box-shadow: inset -1px 0 0 rgba(255,255,255,.04);
}

.dc-brand {
  padding: 8px 6px 16px 6px !important;
  margin-bottom: 2px !important;
}

.dc-logo {
  width: 54px !important;
  height: 54px !important;
  min-width: 54px !important;
  border-radius: 15px !important;
  box-shadow: 0 10px 28px rgba(0,0,0,.24) !important;
}

.dc-title {
  font-size: 1.95rem !important;
  letter-spacing: -.03em !important;
}

.dc-subtitle {
  font-size: 11px !important;
  letter-spacing: .11em !important;
  opacity: .66 !important;
}

.dc-nav {
  gap: 8px !important;
}

.dc-link,
.dc-sublink,
.dc-summary {
  min-height: 42px !important;
  border-radius: 13px !important;
  font-size: 15px !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.015);
}

.dc-link {
  margin-bottom: 2px !important;
}

.dc-summary {
  font-size: 14px !important;
  text-transform: none !important;
  letter-spacing: .01em !important;
}

.dc-subnav {
  padding: 2px 0 0 8px !important;
  gap: 7px !important;
}

.dc-sublink {
  min-height: 40px !important;
  padding-left: 14px !important;
  font-size: 14px !important;
  opacity: .96 !important;
}

.dc-link.active,
.dc-sublink.active {
  background: linear-gradient(180deg, rgba(126,182,255,.28), rgba(126,182,255,.18)) !important;
  border-color: rgba(126,182,255,.42) !important;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.05),
    0 8px 22px rgba(69,128,220,.10) !important;
}

.dc-main {
  padding: 20px 28px 34px 28px !important;
}

.pro-page {
  padding: 0 !important;
}

.hero-card.pro-page,
.hero-card {
  background:
    linear-gradient(180deg, rgba(255,255,255,.026), rgba(255,255,255,.018)) !important;
  border: 1px solid rgba(255,255,255,.07) !important;
  border-radius: 24px !important;
  box-shadow:
    0 18px 42px rgba(0,0,0,.18),
    inset 0 1px 0 rgba(255,255,255,.02) !important;
}

.page-head-grid {
  gap: 18px !important;
  margin-bottom: 20px !important;
}

.page-head-grid h1 {
  font-size: 3.15rem !important;
  line-height: .98 !important;
  letter-spacing: -.04em !important;
  margin-bottom: 10px !important;
}

.eyebrow {
  font-size: 12px !important;
  letter-spacing: .14em !important;
  opacity: .82 !important;
  margin-bottom: 10px !important;
}

.lead {
  max-width: 920px !important;
  line-height: 1.45 !important;
  color: rgba(232,240,255,.78) !important;
}

.stat-strip {
  gap: 16px !important;
  margin: 20px 0 18px 0 !important;
}

.stat-card {
  min-height: 102px !important;
  padding: 18px 18px 16px 18px !important;
  border-radius: 20px !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.02)) !important;
  border: 1px solid rgba(255,255,255,.06) !important;
  box-shadow: 0 12px 30px rgba(0,0,0,.14) !important;
}

.stat-title {
  font-size: 11px !important;
  letter-spacing: .16em !important;
  opacity: .72 !important;
  margin-bottom: 12px !important;
}

.stat-value {
  font-size: 2rem !important;
  letter-spacing: -.03em !important;
}

.table-tools {
  grid-template-columns: minmax(0, 1.5fr) 330px !important;
  gap: 14px !important;
  margin: 16px 0 16px 0 !important;
}

.search-input,
.input-like {
  min-height: 48px !important;
  border-radius: 16px !important;
  padding: 0 16px !important;
  font-size: 14px !important;
  background: rgba(3,10,26,.86) !important;
  border: 1px solid rgba(255,255,255,.08) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.02),
    0 6px 20px rgba(0,0,0,.08) !important;
}

.search-input:focus,
.input-like:focus,
label input:focus,
label select:focus,
label textarea:focus {
  outline: none !important;
  border-color: rgba(126,182,255,.42) !important;
  box-shadow:
    0 0 0 4px rgba(126,182,255,.10),
    inset 0 1px 0 rgba(255,255,255,.02) !important;
}

.table-wrap {
  border-radius: 20px !important;
  overflow: auto !important;
  border: 1px solid rgba(255,255,255,.06) !important;
  background: rgba(5,15,36,.48) !important;
}

.table-wrap table {
  width: 100% !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  min-width: 1280px !important;
}

.table-wrap thead th {
  position: sticky !important;
  top: 0 !important;
  z-index: 4 !important;
  background: rgba(7,18,43,.95) !important;
  backdrop-filter: blur(10px) !important;
  font-size: 11px !important;
  text-transform: uppercase !important;
  letter-spacing: .12em !important;
  color: rgba(196,214,247,.92) !important;
  padding: 16px 14px !important;
  border-bottom: 1px solid rgba(255,255,255,.07) !important;
}

.table-wrap tbody td {
  padding: 16px 14px !important;
  vertical-align: top !important;
  border-bottom: 1px solid rgba(255,255,255,.05) !important;
}

.table-wrap tbody tr:nth-child(even) td {
  background: rgba(255,255,255,.012) !important;
}

.table-wrap tbody tr:hover td {
  background: rgba(126,182,255,.05) !important;
}

.table-title {
  font-size: 15px !important;
  font-weight: 900 !important;
  line-height: 1.2 !important;
  margin-bottom: 4px !important;
}

.muted.small,
.table-wrap .muted.small {
  display: block !important;
  font-size: 11px !important;
  line-height: 1.35 !important;
  color: rgba(189,205,231,.62) !important;
  margin-top: 3px !important;
}

.badge-row {
  gap: 6px !important;
}

.soft-badge {
  min-height: 28px !important;
  padding: 0 10px !important;
  border-radius: 999px !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  text-decoration: none !important;
  background: rgba(126,182,255,.13) !important;
  border: 1px solid rgba(126,182,255,.18) !important;
  color: #dfeeff !important;
}

.status {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 30px !important;
  padding: 0 12px !important;
  border-radius: 999px !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  letter-spacing: .03em !important;
}

.status-open {
  background: rgba(98,153,255,.12) !important;
  border: 1px solid rgba(98,153,255,.24) !important;
}

.status-paid {
  background: rgba(34,201,126,.10) !important;
  border: 1px solid rgba(34,201,126,.22) !important;
}

.status-overdue,
.status-partial-overdue,
.status-partial_overdue {
  background: rgba(255,133,133,.10) !important;
  border: 1px solid rgba(255,133,133,.20) !important;
}

.status-partial {
  background: rgba(255,197,92,.12) !important;
  border: 1px solid rgba(255,197,92,.20) !important;
}

.actions.compact-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  min-width: 230px !important;
}

.btn,
.btn.btn-small,
a.btn,
button.btn {
  min-height: 38px !important;
  padding: 0 13px !important;
  border-radius: 13px !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  border: 1px solid rgba(255,255,255,.08) !important;
  text-decoration: none !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.04),
    0 8px 18px rgba(0,0,0,.08) !important;
}

.btn {
  background: linear-gradient(180deg, #9dcbff, #7db7ff) !important;
  color: #04152c !important;
  border-color: transparent !important;
}

.btn:hover {
  transform: translateY(-1px) !important;
  filter: brightness(1.03) !important;
}

.btn-secondary,
a.btn-secondary,
button.btn-secondary {
  background: rgba(255,255,255,.04) !important;
  color: #eef5ff !important;
  border-color: rgba(255,255,255,.10) !important;
}

.btn-secondary:hover {
  background: rgba(126,182,255,.15) !important;
  border-color: rgba(126,182,255,.24) !important;
}

.section-card,
.summary-card {
  border-radius: 22px !important;
  box-shadow: 0 16px 34px rgba(0,0,0,.16) !important;
}

@media (max-width: 1500px) {
  .table-wrap table {
    min-width: 1180px !important;
  }
}

@media (max-width: 1180px) {
  .dc-shell {
    grid-template-columns: 1fr !important;
  }

  .dc-sidebar {
    position: static !important;
    height: auto !important;
  }

  .dc-main {
    padding: 16px !important;
  }

  .table-tools {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 760px) {
  .page-head-grid h1 {
    font-size: 2.35rem !important;
  }

  .stat-strip {
    grid-template-columns: 1fr !important;
  }
}
/* ==== VISUAL_POLISH_ENTERPRISE_V1_END ==== */


/* ==== VISUAL_POLISH_ENTERPRISE_V2_START ==== */
:root {
  --dc-accent-a: #7cc0ff;
  --dc-accent-b: #59e1c9;
  --dc-accent-c: #8f7cff;
  --dc-glow: rgba(124, 192, 255, .24);
}

.dc-app-body {
  background:
    radial-gradient(circle at 12% 8%, rgba(124,192,255,.18), transparent 24%),
    radial-gradient(circle at 82% 10%, rgba(89,225,201,.12), transparent 22%),
    radial-gradient(circle at 68% 48%, rgba(143,124,255,.10), transparent 18%),
    linear-gradient(180deg, #061329 0%, #081934 54%, #091a36 100%) !important;
}

.hero-card,
.section-card,
.summary-card,
.stat-card,
.table-wrap,
.dc-sidebar {
  position: relative;
  overflow: hidden;
}

.hero-card::before,
.section-card::before,
.summary-card::before,
.stat-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(124,192,255,.06), transparent 30%, transparent 70%, rgba(89,225,201,.04));
  pointer-events: none;
}

.hero-card {
  animation: dcFadeUp .38s ease-out both;
}

.stat-card {
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(0,0,0,.18), 0 0 0 1px rgba(124,192,255,.06);
  border-color: rgba(124,192,255,.16) !important;
}

.dc-logo,
.btn,
.soft-badge,
.status,
.dc-link,
.dc-sublink,
.dc-summary,
.search-input,
.input-like,
label input,
label select,
label textarea {
  transition:
    transform .18s ease,
    box-shadow .18s ease,
    border-color .18s ease,
    background .18s ease,
    opacity .18s ease;
}

.dc-logo:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 14px 30px rgba(124,192,255,.14) !important;
}

.dc-link:hover,
.dc-sublink:hover,
.dc-summary:hover {
  box-shadow: 0 8px 22px rgba(124,192,255,.10);
}

.dc-link.active,
.dc-sublink.active {
  background:
    linear-gradient(180deg, rgba(124,192,255,.28), rgba(124,192,255,.18)) !important;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.05),
    0 10px 24px rgba(124,192,255,.12) !important;
}

.btn {
  background: linear-gradient(180deg, var(--dc-accent-a), #69aef9) !important;
  box-shadow: 0 10px 24px rgba(124,192,255,.18) !important;
}
.btn:hover {
  box-shadow: 0 14px 30px rgba(124,192,255,.24) !important;
}

.btn-secondary,
a.btn-secondary,
button.btn-secondary {
  background:
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.03)) !important;
}

.search-input,
.input-like,
label input,
label select,
label textarea {
  background:
    linear-gradient(180deg, rgba(4,12,29,.94), rgba(3,10,25,.92)) !important;
}

.search-input:hover,
.input-like:hover,
label input:hover,
label select:hover,
label textarea:hover {
  border-color: rgba(124,192,255,.20) !important;
}

.table-wrap {
  box-shadow:
    0 18px 42px rgba(0,0,0,.16),
    inset 0 1px 0 rgba(255,255,255,.02) !important;
}

.table-wrap tbody tr {
  transition: transform .14s ease, background .14s ease;
}

.table-wrap tbody tr:hover {
  transform: scale(1.002);
}

.table-wrap tbody tr:hover td {
  background:
    linear-gradient(180deg, rgba(124,192,255,.045), rgba(89,225,201,.025)) !important;
}

.soft-badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(124,192,255,.12);
}

.status-open {
  box-shadow: 0 0 0 1px rgba(98,153,255,.08), 0 8px 18px rgba(98,153,255,.08);
}
.status-paid {
  box-shadow: 0 0 0 1px rgba(34,201,126,.08), 0 8px 18px rgba(34,201,126,.08);
}
.status-overdue,
.status-partial-overdue,
.status-partial_overdue {
  box-shadow: 0 0 0 1px rgba(255,133,133,.06), 0 8px 18px rgba(255,133,133,.08);
}

.page-head-grid h1,
.stat-value {
  text-shadow: 0 2px 18px rgba(124,192,255,.08);
}

.eyebrow {
  color: #9fc8ff !important;
}

.dc-sidebar::after {
  content: "";
  position: absolute;
  right: -1px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(124,192,255,.24), transparent);
}

@keyframes dcFadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-card,
  .stat-card,
  .dc-logo,
  .btn,
  .soft-badge,
  .status,
  .dc-link,
  .dc-sublink,
  .dc-summary,
  .table-wrap tbody tr {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}
/* ==== VISUAL_POLISH_ENTERPRISE_V2_END ==== */



/* ==== SETTLE_AND_BALANCES_PATCH_START ==== */
.inline-form {
  display: inline-flex;
  margin: 0;
}

.table-tools-3 {
  grid-template-columns: minmax(0, 1.2fr) 280px 280px !important;
}

.money-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 13px;
  white-space: nowrap;
}

.money-pill-green,
.balance-positive {
  color: #87f7be !important;
}

.money-pill-red,
.balance-negative {
  color: #ff9a9a !important;
}

.money-pill-green {
  background: rgba(33, 199, 123, .11);
  border: 1px solid rgba(33, 199, 123, .24);
}

.money-pill-red {
  background: rgba(255, 102, 102, .10);
  border: 1px solid rgba(255, 102, 102, .22);
}

.money-pill-neutral {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
}

@media (max-width: 1180px) {
  .table-tools-3 {
    grid-template-columns: 1fr !important;
  }
}
/* ==== SETTLE_AND_BALANCES_PATCH_END ==== */


/* ==== GUI_V3_PROXY_READY_START ==== */
:root {
  --dc-accent-main: #89c7ff;
  --dc-accent-main-2: #66e1d0;
  --dc-accent-violet: #9587ff;
  --dc-text-soft: rgba(232,240,255,.78);
  --dc-border-soft: rgba(255,255,255,.08);
  --dc-card-bg: linear-gradient(180deg, rgba(255,255,255,.032), rgba(255,255,255,.018));
}

html {
  scroll-behavior: smooth;
}

.dc-app-body {
  background:
    radial-gradient(circle at 10% 10%, rgba(137,199,255,.18), transparent 24%),
    radial-gradient(circle at 80% 8%, rgba(102,225,208,.12), transparent 20%),
    radial-gradient(circle at 70% 45%, rgba(149,135,255,.09), transparent 18%),
    linear-gradient(180deg, #061329 0%, #071731 40%, #091c38 100%) !important;
}

.dc-main {
  animation: dcPageEnter .35s ease-out both;
}

.dc-sidebar {
  background:
    linear-gradient(180deg, rgba(7,18,43,.98), rgba(7,22,50,.95)) !important;
  box-shadow:
    inset -1px 0 0 rgba(255,255,255,.04),
    14px 0 40px rgba(0,0,0,.14);
}

.dc-sidebar::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at top left, rgba(137,199,255,.10), transparent 24%),
    linear-gradient(180deg, transparent, rgba(102,225,208,.025), transparent);
}

.dc-title {
  letter-spacing: -.035em !important;
  text-shadow: 0 2px 16px rgba(137,199,255,.08);
}

.dc-link,
.dc-sublink,
.dc-summary {
  backdrop-filter: blur(8px);
}

.dc-link.active,
.dc-sublink.active {
  position: relative;
}

.dc-link.active::before,
.dc-sublink.active::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--dc-accent-main), var(--dc-accent-main-2));
  box-shadow: 0 0 18px rgba(137,199,255,.35);
}

.hero-card,
.section-card,
.summary-card,
.stat-card,
.table-wrap {
  background: var(--dc-card-bg) !important;
  border: 1px solid rgba(255,255,255,.07) !important;
  box-shadow:
    0 18px 44px rgba(0,0,0,.18),
    inset 0 1px 0 rgba(255,255,255,.02) !important;
}

.hero-card::after,
.section-card::after,
.summary-card::after,
.stat-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(137,199,255,.05), transparent 35%, transparent 70%, rgba(102,225,208,.04));
}

.page-head-grid h1 {
  background: linear-gradient(180deg, #f7fbff 0%, #d9ebff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none !important;
}

.lead {
  color: var(--dc-text-soft) !important;
}

.stat-card {
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.stat-card:hover {
  transform: translateY(-2px);
  box-shadow:
    0 22px 42px rgba(0,0,0,.20),
    0 0 0 1px rgba(137,199,255,.06),
    inset 0 1px 0 rgba(255,255,255,.03) !important;
}

.search-input,
.input-like,
label input,
label select,
label textarea {
  background:
    linear-gradient(180deg, rgba(4,12,29,.94), rgba(3,10,25,.92)) !important;
  border: 1px solid rgba(255,255,255,.08) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.02),
    0 8px 18px rgba(0,0,0,.08) !important;
}

.search-input:focus,
.input-like:focus,
label input:focus,
label select:focus,
label textarea:focus {
  outline: none !important;
  border-color: rgba(137,199,255,.40) !important;
  box-shadow:
    0 0 0 4px rgba(137,199,255,.10),
    0 12px 28px rgba(137,199,255,.08),
    inset 0 1px 0 rgba(255,255,255,.02) !important;
}

.table-wrap {
  overflow: auto !important;
}

.table-wrap table {
  border-collapse: separate !important;
  border-spacing: 0 !important;
}

.table-wrap thead th {
  backdrop-filter: blur(10px);
  background: rgba(7,18,43,.94) !important;
  border-bottom: 1px solid rgba(255,255,255,.07) !important;
}

.table-wrap tbody tr {
  transition: transform .14s ease, opacity .14s ease;
}

.table-wrap tbody tr:hover {
  transform: scale(1.0015);
}

.table-wrap tbody tr:hover td {
  background:
    linear-gradient(180deg, rgba(137,199,255,.040), rgba(102,225,208,.022)) !important;
}

.soft-badge,
.status,
.btn,
.btn-secondary,
.dc-link,
.dc-sublink,
.dc-summary,
.dc-logout-btn {
  transition:
    transform .18s ease,
    box-shadow .18s ease,
    border-color .18s ease,
    background .18s ease,
    filter .18s ease;
}

.btn {
  background: linear-gradient(180deg, var(--dc-accent-main), #74b8ff) !important;
  box-shadow: 0 12px 24px rgba(137,199,255,.18) !important;
}

.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
  box-shadow: 0 16px 30px rgba(137,199,255,.24) !important;
}

.btn-secondary,
a.btn-secondary,
button.btn-secondary {
  background:
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.03)) !important;
  color: #eef5ff !important;
  border-color: rgba(255,255,255,.10) !important;
}

.btn-secondary:hover {
  background:
    linear-gradient(180deg, rgba(137,199,255,.16), rgba(137,199,255,.10)) !important;
  border-color: rgba(137,199,255,.22) !important;
}

.status-open {
  box-shadow: 0 8px 20px rgba(98,153,255,.08);
}
.status-paid {
  box-shadow: 0 8px 20px rgba(34,201,126,.08);
}
.status-overdue,
.status-partial-overdue,
.status-partial_overdue {
  box-shadow: 0 8px 20px rgba(255,133,133,.08);
}

.balance-positive,
.money-pill-green {
  color: #8ff2bf !important;
}

.balance-negative,
.money-pill-red {
  color: #ff9b9b !important;
}

.money-pill-green {
  background: rgba(33, 199, 123, .12) !important;
  border-color: rgba(33, 199, 123, .22) !important;
}

.money-pill-red {
  background: rgba(255, 102, 102, .11) !important;
  border-color: rgba(255, 102, 102, .22) !important;
}

.money-pill-neutral {
  background: rgba(255,255,255,.06) !important;
  border-color: rgba(255,255,255,.10) !important;
}

@keyframes dcPageEnter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .dc-main,
  .hero-card,
  .stat-card,
  .table-wrap tbody tr,
  .btn,
  .soft-badge,
  .status,
  .dc-link,
  .dc-sublink,
  .dc-summary,
  .dc-logout-btn {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}
/* ==== GUI_V3_PROXY_READY_END ==== */


/* ==== AUTH_UI_SECURITY_V2_START ==== */
.auth-shell-pro {
  padding: 28px !important;
}

.auth-grid-pro {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 24px;
  align-items: stretch;
}

.auth-pane {
  min-width: 0;
}

.auth-pane-brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8px 6px;
}

.auth-pane-brand h1 {
  margin: 0 0 14px 0;
  font-size: 3.25rem;
  line-height: .98;
  letter-spacing: -.04em;
  background: linear-gradient(180deg, #f8fbff 0%, #d9ebff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.auth-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 20px 0;
}

.auth-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .04em;
  background: rgba(137,199,255,.13);
  border: 1px solid rgba(137,199,255,.22);
  color: #deefff;
  box-shadow: 0 8px 18px rgba(137,199,255,.08);
}

.auth-side-card {
  margin-top: 8px;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.07);
  background: linear-gradient(180deg, rgba(255,255,255,.028), rgba(255,255,255,.018));
  box-shadow: 0 16px 34px rgba(0,0,0,.16);
}

.auth-side-title {
  font-size: 15px;
  font-weight: 900;
  margin-bottom: 10px;
}

.auth-side-list {
  margin: 0;
  padding-left: 18px;
  color: rgba(232,240,255,.76);
  line-height: 1.5;
}

.auth-form-card {
  padding: 22px !important;
}

.auth-form-pro-v2 {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.password-wrap {
  position: relative;
}

.password-wrap input {
  padding-right: 92px !important;
}

.toggle-pass {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  min-height: 34px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.05);
  color: #eef5ff;
  font-weight: 800;
  cursor: pointer;
}

.toggle-pass:hover {
  background: rgba(137,199,255,.14);
  border-color: rgba(137,199,255,.24);
}

.caps-alert {
  margin-top: 8px;
  font-size: 12px;
  color: #ffb2b2;
  font-weight: 800;
}

.auth-checkbox {
  margin-top: -2px;
}

.auth-note {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(137,199,255,.12);
  background: rgba(137,199,255,.06);
  color: rgba(232,240,255,.80);
  line-height: 1.45;
}

.auth-submit-btn {
  min-width: 220px;
}

.qr-box-pro {
  width: 290px;
  max-width: 100%;
  margin-bottom: 16px;
}

@media (max-width: 1100px) {
  .auth-grid-pro {
    grid-template-columns: 1fr;
  }

  .auth-pane-brand h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 700px) {
  .auth-shell-pro {
    padding: 18px !important;
  }

  .auth-pane-brand h1 {
    font-size: 2rem;
  }

  .auth-submit-btn {
    min-width: 100%;
  }
}
/* ==== AUTH_UI_SECURITY_V2_END ==== */


/* ==== LOGIN_REFRESH_V3_START ==== */
.login-v3-shell {
  padding: 30px !important;
  position: relative;
  overflow: hidden;
}

.login-v3-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 20%, rgba(124,192,255,.12), transparent 24%),
    radial-gradient(circle at 78% 18%, rgba(102,225,208,.08), transparent 20%),
    radial-gradient(circle at 72% 70%, rgba(149,135,255,.07), transparent 18%);
  pointer-events: none;
}

.login-v3-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 28px;
  align-items: stretch;
}

.login-v3-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 10px 8px;
}

.login-v3-left h1 {
  margin: 0 0 14px 0;
  font-size: 3.4rem;
  line-height: .96;
  letter-spacing: -.045em;
  background: linear-gradient(180deg, #f8fbff 0%, #d9ebff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.login-v3-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 22px 0;
}

.login-v3-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .04em;
  background: rgba(137,199,255,.13);
  border: 1px solid rgba(137,199,255,.22);
  color: #deefff;
  box-shadow: 0 8px 18px rgba(137,199,255,.08);
}

.login-v3-info {
  max-width: 560px;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.07);
  background: linear-gradient(180deg, rgba(255,255,255,.028), rgba(255,255,255,.018));
  box-shadow: 0 16px 34px rgba(0,0,0,.16);
}

.login-v3-info-title {
  font-size: 15px;
  font-weight: 900;
  margin-bottom: 10px;
}

.login-v3-info-list {
  margin: 0;
  padding-left: 18px;
  color: rgba(232,240,255,.76);
  line-height: 1.5;
}

.login-v3-right {
  min-width: 0;
}

.login-v3-card {
  padding: 24px !important;
}

.login-v3-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.login-v3-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-weight: 800;
}

.login-v3-note {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(137,199,255,.12);
  background: rgba(137,199,255,.06);
  color: rgba(232,240,255,.80);
  line-height: 1.45;
}

.login-v3-submit {
  min-width: 220px;
}

@media (max-width: 1100px) {
  .login-v3-grid {
    grid-template-columns: 1fr;
  }

  .login-v3-left h1 {
    font-size: 2.6rem;
  }
}

@media (max-width: 700px) {
  .login-v3-shell {
    padding: 18px !important;
  }

  .login-v3-left h1 {
    font-size: 2rem;
  }

  .login-v3-submit {
    min-width: 100%;
  }
}
/* ==== LOGIN_REFRESH_V3_END ==== */


/* ==== AUTH_CLEAN_FLOW_START ==== */
.auth-stage-clean {
  min-height: calc(100vh - 120px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 18px;
}

.auth-clean-wrap {
  width: 100%;
  max-width: 760px;
}

.auth-clean-card {
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 28px;
  box-shadow:
    0 24px 48px rgba(0,0,0,.20),
    inset 0 1px 0 rgba(255,255,255,.03);
  padding: 32px;
}

.auth-clean-card-narrow {
  max-width: 560px;
  margin: 0 auto;
}

.auth-clean-card h1 {
  margin: 0 0 10px 0;
  font-size: 3rem;
  line-height: .98;
  letter-spacing: -.04em;
  background: linear-gradient(180deg, #f8fbff 0%, #d8ebff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.auth-clean-card .lead {
  margin-bottom: 22px;
  color: rgba(232,240,255,.78);
}

.qr-box-clean {
  width: 240px;
  max-width: 100%;
  margin: 6px auto 18px auto;
  padding: 14px;
  border-radius: 22px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 14px 28px rgba(0,0,0,.14);
}

.qr-box-clean img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  background: #fff;
}

.auth-form-v4 {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.auth-form-v4 label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-weight: 800;
}

.auth-form-v4 input,
.auth-form-v4 select,
.auth-form-v4 textarea {
  min-height: 52px;
  border-radius: 16px;
  padding: 0 16px;
  background: linear-gradient(180deg, rgba(4,12,29,.95), rgba(3,10,25,.93)) !important;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.02),
    0 8px 18px rgba(0,0,0,.08);
}

.auth-form-v4 input:focus,
.auth-form-v4 select:focus,
.auth-form-v4 textarea:focus {
  outline: none;
  border-color: rgba(139,200,255,.42);
  box-shadow:
    0 0 0 4px rgba(139,200,255,.10),
    0 12px 28px rgba(139,200,255,.08),
    inset 0 1px 0 rgba(255,255,255,.02);
}

.password-wrap {
  position: relative;
}

.password-wrap input {
  padding-right: 92px !important;
}

.toggle-pass {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  min-height: 36px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.05);
  color: #eef5ff;
  font-weight: 800;
  cursor: pointer;
}

.toggle-pass:hover {
  background: rgba(139,200,255,.14);
  border-color: rgba(139,200,255,.24);
}

.caps-alert {
  margin-top: 8px;
  font-size: 12px;
  color: #ffb2b2;
  font-weight: 800;
}

.auth-main-btn {
  min-width: 220px;
}

@media (max-width: 700px) {
  .auth-clean-card {
    padding: 22px 18px;
    border-radius: 22px;
  }

  .auth-clean-card h1 {
    font-size: 2.1rem;
  }

  .auth-main-btn {
    min-width: 100%;
  }
}
/* ==== AUTH_CLEAN_FLOW_END ==== */


/* ==== AUTH_VISUAL_POLISH_V1_START ==== */
:root {
  --auth-bg-a: #07162d;
  --auth-bg-b: #0a1d39;
  --auth-card-bg: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.022));
  --auth-border: rgba(255,255,255,.08);
  --auth-border-strong: rgba(139,200,255,.18);
  --auth-text-soft: rgba(230,239,255,.76);
  --auth-accent: #8bc8ff;
  --auth-accent-2: #6fb6ff;
  --auth-shadow: 0 30px 60px rgba(0,0,0,.24);
}

.auth-hero-v5 {
  min-height: calc(100vh - 110px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 34px 24px 48px;
}

.auth-hero-grid {
  width: 100%;
  max-width: 1220px;
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(420px, 560px);
  gap: 42px;
  align-items: center;
}

.auth-hero-grid-totp {
  max-width: 1120px;
  grid-template-columns: 1fr;
}

.auth-side-copy {
  padding: 12px 10px;
}

.auth-side-copy h1 {
  margin: 0 0 14px 0;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: .96;
  letter-spacing: -.05em;
  background: linear-gradient(180deg, #f9fbff 0%, #d8eaff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.auth-side-copy .lead {
  max-width: 620px;
  font-size: 1.08rem;
  line-height: 1.6;
  color: var(--auth-text-soft);
  margin-bottom: 22px;
}

.auth-mini-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.auth-mini-pills span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(139,200,255,.18);
  background: rgba(139,200,255,.09);
  color: #e6f2ff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .03em;
  box-shadow: 0 10px 24px rgba(139,200,255,.06);
}

.auth-form-shell-v5 {
  display: flex;
  justify-content: center;
}

.auth-form-shell-v5-wide {
  width: 100%;
}

.auth-form-card-v5 {
  width: 100%;
  max-width: 560px;
  padding: 30px;
  border-radius: 28px;
  background: var(--auth-card-bg);
  border: 1px solid var(--auth-border);
  box-shadow:
    var(--auth-shadow),
    inset 0 1px 0 rgba(255,255,255,.03);
  backdrop-filter: blur(16px);
  position: relative;
  overflow: hidden;
}

.auth-form-card-v5::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at top right, rgba(139,200,255,.12), transparent 26%),
    linear-gradient(135deg, transparent 0%, rgba(255,255,255,.012) 45%, transparent 100%);
}

.auth-form-head-v5 {
  position: relative;
  z-index: 1;
  margin-bottom: 22px;
}

.auth-form-head-v5 h2 {
  margin: 0 0 8px 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: .98;
  letter-spacing: -.045em;
  background: linear-gradient(180deg, #f8fbff 0%, #dcecff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.auth-form-head-v5 p {
  margin: 0;
  color: var(--auth-text-soft);
  line-height: 1.55;
}

.auth-form-v5 {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.auth-form-v5 label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-weight: 800;
  color: #eaf2ff;
}

.auth-form-v5 input,
.auth-form-v5 select,
.auth-form-v5 textarea {
  min-height: 56px;
  border-radius: 18px;
  padding: 0 18px;
  background: linear-gradient(180deg, rgba(4,12,29,.96), rgba(4,11,26,.94)) !important;
  border: 1px solid rgba(255,255,255,.08);
  color: #eef5ff;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.02),
    0 10px 22px rgba(0,0,0,.10);
}

.auth-form-v5 input::placeholder {
  color: rgba(216,232,255,.38);
}

.auth-form-v5 input:focus,
.auth-form-v5 select:focus,
.auth-form-v5 textarea:focus {
  outline: none;
  border-color: rgba(139,200,255,.42);
  box-shadow:
    0 0 0 4px rgba(139,200,255,.11),
    0 16px 34px rgba(139,200,255,.08),
    inset 0 1px 0 rgba(255,255,255,.02);
}

.password-wrap {
  position: relative;
}

.password-wrap input {
  padding-right: 104px !important;
}

.toggle-pass {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  min-height: 38px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.05);
  color: #eef5ff;
  font-weight: 800;
  cursor: pointer;
  transition: .18s ease;
}

.toggle-pass:hover {
  background: rgba(139,200,255,.14);
  border-color: rgba(139,200,255,.22);
}

.auth-checkline-v5 {
  flex-direction: row !important;
  align-items: center;
  gap: 10px !important;
  font-weight: 700 !important;
  color: var(--auth-text-soft) !important;
}

.auth-checkline-v5 input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 0;
  accent-color: var(--auth-accent);
  box-shadow: none !important;
}

.auth-actions-v5 {
  display: flex;
  gap: 12px;
  padding-top: 4px;
}

.auth-actions-v5-row {
  align-items: center;
}

.auth-submit-v5 {
  min-width: 180px;
  min-height: 50px;
  border-radius: 16px !important;
  font-weight: 900 !important;
  box-shadow: 0 14px 30px rgba(139,200,255,.18) !important;
}

.auth-back-v5 {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 16px !important;
}

.qr-box-clean,
.qr-box-pro {
  display: none !important;
}

.totp-grid-v5 {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
  align-items: center;
}

.totp-qr-panel-v5 {
  display: flex;
  justify-content: center;
}

.totp-qr-frame-v5 {
  width: 240px;
  padding: 14px;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.10);
  box-shadow:
    0 20px 36px rgba(0,0,0,.16),
    inset 0 1px 0 rgba(255,255,255,.03);
}

.totp-qr-frame-v5 img {
  display: block;
  width: 100%;
  height: auto;
  background: #fff;
  border-radius: 18px;
}

.totp-form-panel-v5 {
  min-width: 0;
}

.caps-alert {
  margin-top: 8px;
  font-size: 12px;
  color: #ffb2b2;
  font-weight: 800;
}

@media (max-width: 1050px) {
  .auth-hero-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .auth-side-copy {
    text-align: center;
    padding: 0;
  }

  .auth-side-copy .lead {
    margin-left: auto;
    margin-right: auto;
  }

  .auth-mini-pills {
    justify-content: center;
  }

  .auth-form-card-v5 {
    max-width: 620px;
  }

  .totp-grid-v5 {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 700px) {
  .auth-hero-v5 {
    padding: 18px 14px 30px;
    min-height: calc(100vh - 86px);
  }

  .auth-form-card-v5 {
    padding: 22px 18px;
    border-radius: 22px;
  }

  .auth-actions-v5,
  .auth-actions-v5-row {
    flex-direction: column;
    align-items: stretch;
  }

  .auth-submit-v5,
  .auth-back-v5 {
    width: 100%;
    min-width: 100%;
  }

  .totp-qr-frame-v5 {
    width: min(230px, 100%);
  }
}
/* ==== AUTH_VISUAL_POLISH_V1_END ==== */


/* ==== AUTH_VAULTWARDEN_STYLE_START ==== */
.auth-vault-page {
  min-height: calc(100vh - 92px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 18px 40px;
}

.auth-vault-center {
  width: 100%;
  max-width: 480px;
}

.auth-vault-card {
  padding: 30px 32px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(18,33,57,.88), rgba(12,25,47,.92));
  border: 1px solid rgba(255,255,255,.09);
  box-shadow:
    0 24px 48px rgba(0,0,0,.24),
    inset 0 1px 0 rgba(255,255,255,.03);
  backdrop-filter: blur(12px);
}

.auth-vault-icon {
  width: 76px;
  height: 76px;
  margin: 0 auto 18px auto;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(139,200,255,.10);
  border: 1px solid rgba(139,200,255,.16);
  box-shadow: 0 14px 28px rgba(139,200,255,.08);
  font-size: 34px;
}

.auth-vault-card h1 {
  margin: 0 0 10px 0;
  text-align: center;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: .98;
  letter-spacing: -.045em;
  background: linear-gradient(180deg, #f8fbff 0%, #dcecff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.auth-vault-sub {
  margin: 0 0 22px 0;
  text-align: center;
  color: rgba(232,240,255,.74);
  line-height: 1.55;
}

.auth-vault-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.auth-vault-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-weight: 800;
  color: #eaf2ff;
}

.auth-vault-form input,
.auth-vault-form select,
.auth-vault-form textarea {
  min-height: 56px;
  border-radius: 16px;
  padding: 0 16px;
  background: linear-gradient(180deg, rgba(4,12,29,.96), rgba(4,11,26,.94)) !important;
  border: 1px solid rgba(255,255,255,.08);
  color: #eef5ff;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.02),
    0 8px 18px rgba(0,0,0,.08);
}

.auth-vault-form input::placeholder {
  color: rgba(216,232,255,.38);
}

.auth-vault-form input:focus,
.auth-vault-form select:focus,
.auth-vault-form textarea:focus {
  outline: none;
  border-color: rgba(139,200,255,.42);
  box-shadow:
    0 0 0 4px rgba(139,200,255,.10),
    0 12px 28px rgba(139,200,255,.08),
    inset 0 1px 0 rgba(255,255,255,.02);
}

.password-wrap {
  position: relative;
}

.password-wrap input {
  padding-right: 104px !important;
}

.toggle-pass {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  min-height: 38px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.05);
  color: #eef5ff;
  font-weight: 800;
  cursor: pointer;
  transition: .18s ease;
}

.toggle-pass:hover {
  background: rgba(139,200,255,.14);
  border-color: rgba(139,200,255,.22);
}

.auth-vault-check {
  flex-direction: row !important;
  align-items: center;
  gap: 10px !important;
  font-weight: 700 !important;
  color: rgba(232,240,255,.78) !important;
}

.auth-vault-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 0;
  accent-color: #8bc8ff;
  box-shadow: none !important;
}

.auth-vault-submit {
  width: 100%;
  min-height: 52px;
  border-radius: 18px !important;
  font-weight: 900 !important;
  box-shadow: 0 14px 28px rgba(139,200,255,.16) !important;
}

.auth-vault-actions {
  display: flex;
  gap: 12px;
}

.auth-vault-back {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 18px !important;
}

.auth-vault-qr-wrap {
  display: flex;
  justify-content: center;
  margin: 4px 0 20px 0;
}

.auth-vault-qr-box {
  width: 220px;
  padding: 12px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.10);
  box-shadow:
    0 18px 32px rgba(0,0,0,.18),
    inset 0 1px 0 rgba(255,255,255,.03);
}

.auth-vault-qr-box img {
  display: block;
  width: 100%;
  height: auto;
  background: #fff;
  border-radius: 12px;
}

.caps-alert {
  margin-top: 8px;
  font-size: 12px;
  color: #ffb2b2;
  font-weight: 800;
}

@media (max-width: 640px) {
  .auth-vault-page {
    padding: 16px 12px 24px;
    min-height: calc(100vh - 76px);
  }

  .auth-vault-card {
    padding: 22px 18px;
    border-radius: 20px;
  }

  .auth-vault-actions {
    flex-direction: column;
  }

  .auth-vault-back {
    width: 100%;
  }

  .auth-vault-qr-box {
    width: min(220px, 100%);
  }
}
/* ==== AUTH_VAULTWARDEN_STYLE_END ==== */


/* ==== AUTH_MENU_FINAL_POLISH_START ==== */

/* header / top brand */
.topbar {
  min-height: 76px;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,.06);
  background: linear-gradient(180deg, rgba(5,15,34,.92), rgba(5,15,34,.82));
  backdrop-filter: blur(10px);
}

.brand-wrap {
  gap: 12px !important;
  align-items: center !important;
}

.brand-logo {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  border-radius: 14px !important;
  overflow: hidden;
  box-shadow: 0 10px 22px rgba(0,0,0,.18);
}

.brand-logo img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
}

.brand-texts .brand {
  font-size: 18px !important;
  font-weight: 900 !important;
  line-height: 1.1 !important;
}

.brand-texts .brand-sub {
  font-size: 10px !important;
  letter-spacing: .08em;
  opacity: .75;
  text-transform: uppercase;
}

/* auth layout */
.auth-final-page {
  min-height: calc(100vh - 88px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 18px 40px;
}

.auth-final-wrap {
  width: 100%;
  max-width: 520px;
}

.auth-final-card {
  padding: 30px 28px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(18,33,57,.86), rgba(12,25,47,.92));
  border: 1px solid rgba(255,255,255,.09);
  box-shadow:
    0 24px 48px rgba(0,0,0,.24),
    inset 0 1px 0 rgba(255,255,255,.03);
  backdrop-filter: blur(12px);
}

.auth-final-card-totp {
  max-width: 520px;
}

.auth-final-head {
  margin-bottom: 22px;
}

.auth-final-kicker {
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #9dcbff;
}

.auth-final-head h1 {
  margin: 0 0 10px 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: .98;
  letter-spacing: -.045em;
  background: linear-gradient(180deg, #f8fbff 0%, #dcecff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.auth-final-head p {
  margin: 0;
  color: rgba(232,240,255,.74);
  line-height: 1.55;
}

.auth-final-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.auth-final-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-weight: 800;
  color: #eaf2ff;
}

.auth-final-form input,
.auth-final-form select,
.auth-final-form textarea {
  min-height: 54px;
  border-radius: 16px;
  padding: 0 16px;
  background: linear-gradient(180deg, rgba(4,12,29,.96), rgba(4,11,26,.94)) !important;
  border: 1px solid rgba(255,255,255,.08);
  color: #eef5ff;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.02),
    0 8px 18px rgba(0,0,0,.08);
}

.auth-final-form input::placeholder {
  color: rgba(216,232,255,.38);
}

.auth-final-form input:focus,
.auth-final-form select:focus,
.auth-final-form textarea:focus {
  outline: none;
  border-color: rgba(139,200,255,.42);
  box-shadow:
    0 0 0 4px rgba(139,200,255,.10),
    0 12px 28px rgba(139,200,255,.08),
    inset 0 1px 0 rgba(255,255,255,.02);
}

.auth-final-password input {
  padding-right: 102px !important;
}

.password-wrap {
  position: relative;
}

.toggle-pass {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  min-height: 38px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.05);
  color: #eef5ff;
  font-weight: 800;
  cursor: pointer;
  transition: .18s ease;
}

.toggle-pass:hover {
  background: rgba(139,200,255,.14);
  border-color: rgba(139,200,255,.22);
}

.auth-final-check {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 10px !important;
  font-weight: 700 !important;
  color: rgba(232,240,255,.78) !important;
}

.auth-final-check input[type="checkbox"] {
  width: 18px !important;
  height: 18px !important;
  min-height: 18px !important;
  max-height: 18px !important;
  margin: 0 !important;
  padding: 0 !important;
  flex: 0 0 18px !important;
  accent-color: #8bc8ff;
  box-shadow: none !important;
  appearance: auto !important;
  background: transparent !important;
  border: none !important;
}

.auth-final-actions {
  display: flex;
  gap: 12px;
  padding-top: 4px;
}

.auth-final-actions-row {
  align-items: center;
}

.auth-final-submit {
  width: 100%;
  min-height: 52px;
  border-radius: 18px !important;
  font-weight: 900 !important;
  box-shadow: 0 14px 28px rgba(139,200,255,.16) !important;
}

.auth-final-back {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 18px !important;
}

.auth-final-qr-wrap {
  display: flex;
  justify-content: center;
  margin: 6px 0 20px 0;
}

.auth-final-qr-box {
  width: 180px;
  padding: 10px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.10);
  box-shadow:
    0 18px 32px rgba(0,0,0,.18),
    inset 0 1px 0 rgba(255,255,255,.03);
}

.auth-final-qr-box img {
  display: block;
  width: 100%;
  height: auto;
  background: #fff;
  border-radius: 12px;
}

.caps-alert {
  margin-top: 8px;
  font-size: 12px;
  color: #ffb2b2;
  font-weight: 800;
}

@media (max-width: 640px) {
  .topbar {
    min-height: 68px;
    padding: 8px 12px;
  }

  .brand-logo {
    width: 40px !important;
    height: 40px !important;
  }

  .brand-texts .brand {
    font-size: 16px !important;
  }

  .brand-texts .brand-sub {
    font-size: 9px !important;
  }

  .auth-final-page {
    padding: 16px 12px 24px;
    min-height: calc(100vh - 72px);
  }

  .auth-final-card {
    padding: 22px 18px;
    border-radius: 20px;
  }

  .auth-final-actions,
  .auth-final-actions-row {
    flex-direction: column;
  }

  .auth-final-back {
    width: 100%;
  }
}
/* ==== AUTH_MENU_FINAL_POLISH_END ==== */

