:root {
  --bg-a: #07101f;
  --bg-b: #050b16;
  --card: rgba(9, 15, 30, 0.82);
  --card-soft: rgba(255,255,255,.03);
  --line: rgba(255,255,255,.08);
  --line-strong: rgba(111,224,255,.18);
  --text: #eef4ff;
  --muted: #bfcde9;
  --muted-2: #8fa4c8;
  --cyan: #6fe0ff;
  --cyan-2: #8be7ff;
  --purple: #9185ff;
  --danger: #ff8f9e;
  --success: #8bf0c3;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  font-family: Inter, Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(73, 173, 255, 0.18), transparent 30%),
    radial-gradient(circle at top right, rgba(133, 92, 255, 0.18), transparent 28%),
    linear-gradient(180deg, var(--bg-a) 0%, var(--bg-b) 100%);
  min-height: 100vh;
}

a { color: inherit; }
img { max-width: 100%; }
code {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--line);
  font-family: Consolas, monospace;
  font-size: .95em;
}

.hidden { display: none !important; }
.wrap-anywhere { word-break: break-word; overflow-wrap: anywhere; }
.top-gap-tight { margin-bottom: 18px; }
.top-gap-small { margin-top: 14px; }
.muted { color: var(--muted); }
.single-col { align-items: flex-end; }

.page-shell,
.dashboard-shell {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 32px;
}

.topbar,
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  min-height: 78px;
  border: 1px solid var(--line);
  background: rgba(5, 10, 22, 0.72);
  backdrop-filter: blur(18px);
  border-radius: 24px;
  padding: 14px 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 0;
}

.brand > div { min-width: 0; }
.brand strong {
  display: block;
  font-size: 18px;
  letter-spacing: .2px;
}
.brand span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}
.brand-logo {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 12px 30px rgba(0,0,0,.25);
}

.nav,
.dashboard-actions,
.chip-row,
.action-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 14px;
}

.btn {
  border: 0;
  cursor: pointer;
  border-radius: 18px;
  padding: 14px 18px;
  font: inherit;
  font-weight: 800;
  color: #07101f;
  background: linear-gradient(90deg, var(--cyan) 0%, var(--purple) 100%);
  box-shadow: 0 18px 40px rgba(95, 145, 255, 0.22);
  transition: transform .18s ease, opacity .18s ease, box-shadow .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-small { padding: 10px 14px; font-size: 13px; border-radius: 14px; }
.btn-ghost {
  color: var(--text);
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line);
  box-shadow: none;
}
.btn-ghost:hover { border-color: var(--line-strong); }
.danger-ghost { color: #ffd6dc; }
.full { width: 100%; }

.hero {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 26px;
  align-items: center;
  padding: 38px 0 24px;
}
.hero-copy h1 {
  margin: 0 0 14px;
  font-size: clamp(36px, 5.5vw, 62px);
  line-height: 1.04;
  letter-spacing: -.03em;
}
.hero-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
  max-width: 760px;
}
.hero-actions { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.hero-note,
.notice-box,
.card,
.form-card,
.hero-card {
  border-radius: 26px;
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: 0 24px 60px rgba(0,0,0,.34);
  backdrop-filter: blur(18px);
}
.hero-note {
  margin-top: 18px;
  padding: 14px 16px;
  color: var(--muted);
}
.split-note {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.compact-note { margin-top: 24px; }
.eyebrow,
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(111,224,255,.08);
  border: 1px solid rgba(111,224,255,.14);
  color: var(--cyan-2);
  font-size: 13px;
  font-weight: 700;
}
.chip { background: rgba(255,255,255,.04); color: var(--text); border-color: var(--line); }

.hero-card { padding: 24px; }
.mini-widget {
  border-radius: 22px;
  padding: 18px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
}
.mini-widget-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.mini-widget-header img {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  object-fit: cover;
}
.mini-widget-body {
  border-radius: 18px;
  padding: 16px;
  background: rgba(3, 7, 18, .84);
  border: 1px solid rgba(255,255,255,.06);
}
.mini-widget-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.mini-widget-badges span {
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}
.mini-widget-footer {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 16px;
  font-size: 13px;
  flex-wrap: wrap;
}
.mini-widget-footer a { color: var(--muted); text-decoration: none; }

.section { padding: 28px 0; }
.section-heading { margin-bottom: 18px; }
.section-heading h2,
.section-heading h1 {
  margin: 10px 0 8px;
  font-size: clamp(28px, 4vw, 42px);
}
.section-heading p,
.section-subtext { color: var(--muted); line-height: 1.7; margin: 0; }
.section-subtext { font-size: 14px; }

.grid { display: grid; gap: 18px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card,
.form-card,
.notice-box {
  padding: 24px;
}
.card h3,
.form-card h2,
.notice-box h1,
.card h2 {
  margin: 0 0 10px;
}
.card p,
.notice-box p,
.info-card p {
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}
.status-card {
  min-height: 136px;
}
.status-value {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 8px;
}
.status-value.small { font-size: 24px; }
.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--line);
  font-weight: 800;
}
.status-badge.pending { color: #ffe6a7; }
.status-badge.approved { color: var(--success); }
.status-badge.denied { color: #ffc6cf; }
.status-badge.secondary { color: var(--cyan-2); }

.steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}
.step {
  border-radius: 22px;
  padding: 18px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
}
.step span {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  color: #08111e;
  font-weight: 800;
  margin-bottom: 12px;
}
.step p { color: var(--muted); line-height: 1.6; margin: 0; }

.footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 26px 0 12px;
  color: var(--muted-2);
  font-size: 14px;
  flex-wrap: wrap;
}

.auth-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: stretch;
  padding: 22px 0;
}
.auth-side,
.auth-main {
  border-radius: 28px;
  border: 1px solid var(--line);
  background: rgba(5, 10, 22, .72);
  box-shadow: 0 24px 60px rgba(0,0,0,.34);
  backdrop-filter: blur(20px);
  padding: 28px;
}
.auth-side h1 {
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.06;
  letter-spacing: -.03em;
  margin: 22px 0 14px;
}
.auth-side p { color: var(--muted); line-height: 1.7; }
.feature-list { margin: 22px 0 0; padding-left: 20px; color: var(--muted); line-height: 1.8; }
.tabs { display: flex; gap: 10px; margin-bottom: 18px; }
.tab-btn {
  flex: 1;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  color: var(--text);
  padding: 14px 16px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.tab-btn.active { background: linear-gradient(90deg, rgba(111,224,255,.18), rgba(145,133,255,.18)); border-color: var(--line-strong); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.form-card { background: var(--card); }
label,
.toolbar-field {
  display: grid;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}
input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(3, 7, 18, .86);
  color: var(--text);
  border-radius: 18px;
  padding: 14px 16px;
  outline: none;
  font: inherit;
}
input::placeholder,
textarea::placeholder { color: var(--muted-2); }
textarea { resize: vertical; min-height: 120px; }
.text-link {
  display: inline-block;
  margin-top: 14px;
  color: var(--cyan-2);
  text-decoration: none;
}
.info-card { margin-top: 18px; }

.dashboard-main { padding-top: 22px; }
.notice-box { text-align: left; }
.notice-box .btn { margin-top: 16px; }
.search-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 14px;
  margin: 18px 0 20px;
}
.toolbar-input,
.toolbar-select { min-height: 52px; }
.toolbar-field.narrow { max-width: 260px; }
.toolbar-field.grow { min-width: 0; }

.application-list {
  display: grid;
  gap: 16px;
}
.application-card {
  border-radius: 24px;
  padding: 20px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
}
.application-card-top,
.application-title-row,
.flex-split {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.application-title-row h3 { margin: 0 0 6px; font-size: 22px; }
.application-grid,
.info-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
  margin-top: 16px;
}
.application-grid div,
.info-row {
  border-radius: 16px;
  padding: 14px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.05);
}
.application-grid strong,
.info-row strong {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  color: var(--cyan-2);
}
.application-grid span,
.info-row span,
.small-meta { color: var(--muted); font-size: 14px; line-height: 1.6; }
.small-meta { font-size: 12px; }
.empty-state {
  border-radius: 20px;
  padding: 22px;
  border: 1px dashed rgba(255,255,255,.14);
  background: rgba(255,255,255,.02);
  color: var(--muted);
}
.wrap-row { flex-wrap: wrap; }
.panel-layout { margin-top: 18px; }
.control-box { min-height: 120px; }
.copy-stack { display: grid; gap: 14px; margin-top: 16px; }
.code-block {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
  padding: 18px;
  border-radius: 20px;
  background: rgba(3, 7, 18, .86);
  border: 1px solid var(--line);
  color: #dff5ff;
  line-height: 1.7;
  font-family: Consolas, monospace;
  font-size: 13px;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  min-width: 220px;
  max-width: 420px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(5, 10, 22, .94);
  color: var(--text);
  box-shadow: 0 22px 50px rgba(0,0,0,.35);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  z-index: 1000;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast.success { border-color: rgba(139,240,195,.28); }
.toast.error { border-color: rgba(255,143,158,.28); }
.toast.info { border-color: rgba(111,224,255,.28); }

@media (max-width: 1100px) {
  .grid.four,
  .grid.three,
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .auth-shell,
  .hero { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .page-shell,
  .dashboard-shell,
  .auth-shell { width: min(100% - 20px, 1200px); }
  .grid.two,
  .grid.four,
  .grid.three,
  .application-grid,
  .info-list,
  .search-toolbar,
  .steps,
  .split-note { grid-template-columns: 1fr; }
  .toolbar-field.narrow { max-width: none; }
  .topbar,
  .dashboard-header,
  .footer,
  .application-card-top,
  .application-title-row,
  .flex-split { flex-direction: column; align-items: stretch; }
  .nav { width: 100%; }
}

/* ATASOFT® Site Lock additions */
.module-box {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 16px;
  background: rgba(255,255,255,.025);
  display: grid;
  gap: 12px;
}
.module-box legend {
  padding: 0 8px;
  color: var(--cyan-2);
  font-size: 13px;
  font-weight: 900;
}
.check-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 16px;
  background: rgba(3,7,18,.34);
}
.check-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: #6fe0ff;
}
.check-row strong,
.check-row small {
  display: block;
}
.check-row small {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.55;
  font-weight: 500;
}
.notice-box.compact-note {
  padding: 14px;
  margin: 0 0 14px;
  border-color: rgba(255,143,158,.24);
  background: rgba(255,143,158,.06);
  box-shadow: none;
}
button:disabled,
textarea:disabled,
input:disabled,
select:disabled {
  opacity: .56;
  cursor: not-allowed;
}

/* ATASOFT® Security Suite additions */
.module-box{border:1px solid var(--line);border-radius:20px;padding:16px;background:rgba(255,255,255,.025);display:grid;gap:12px}.module-box legend{padding:0 8px;color:var(--cyan-2);font-weight:900}.check-row{display:flex!important;grid-template-columns:none!important;align-items:flex-start;gap:10px;padding:10px 12px;border:1px solid rgba(255,255,255,.06);border-radius:16px;background:rgba(255,255,255,.025);font-weight:800}.check-row input{width:auto;min-width:18px;margin-top:2px}.check-row small{display:block;color:var(--muted);font-weight:600;line-height:1.45;margin-top:3px}.security-grid,.check-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:12px 0}.admin-control-box{margin-top:18px;border-top:1px solid rgba(255,255,255,.08);padding-top:16px}.lock-admin-warning{border:1px solid rgba(255,143,158,.22);background:rgba(255,143,158,.08);color:#ffd6dc;border-radius:18px;padding:14px;margin:12px 0;line-height:1.6;font-weight:800}.soft-hr{border:0;border-top:1px solid rgba(255,255,255,.08);margin:20px 0}.danger-action{background:linear-gradient(90deg,#ff8f9e,#fbbf24);color:#07101f}.security-list-box{margin-top:14px}.security-details{margin-top:12px;border:1px solid var(--line);border-radius:18px;padding:12px;background:rgba(255,255,255,.025)}.security-details summary{cursor:pointer;font-weight:900;color:var(--cyan-2);padding:4px}.security-output{margin-top:12px;font-family:Consolas,monospace;font-size:12px}.application-card.status-denied{border-color:rgba(255,143,158,.20)}.application-card.status-approved{border-color:rgba(139,240,195,.14)}select[multiple]{min-height:160px}.control-box h3{margin:16px 0 8px}.control-box textarea,.control-box input,.control-box select{margin-top:4px}@media(max-width:760px){.security-grid,.check-grid{grid-template-columns:1fr}}
