* {
  box-sizing: border-box;
}

:root {
  --bg: #050816;
  --panel: rgba(10, 18, 38, 0.86);
  --panel-strong: rgba(15, 27, 56, 0.94);
  --line: rgba(88, 166, 255, 0.22);
  --line-strong: rgba(56, 189, 248, 0.55);
  --text: #e7eefc;
  --muted: #94a3b8;
  --blue: #38bdf8;
  --cyan: #22d3ee;
  --green: #2dd4bf;
  --yellow: #facc15;
  --red: #ef4444;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.34);
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(34, 211, 238, 0.18), transparent 28%),
    radial-gradient(circle at 80% 14%, rgba(37, 99, 235, 0.2), transparent 30%),
    linear-gradient(135deg, #030712 0%, #08111f 48%, #050816 100%);
  color: var(--text);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(56, 189, 248, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.04) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.82), transparent);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

p {
  color: var(--muted);
  line-height: 1.6;
}

button,
input,
select {
  font: inherit;
}

input,
select {
  width: 100%;
  margin: 10px 0;
  padding: 13px 14px;
  color: var(--text);
  background: rgba(3, 7, 18, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 8px;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

input:focus,
select:focus {
  background: rgba(3, 7, 18, 0.92);
  border-color: var(--line-strong);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.12);
}

label {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

a {
  color: #67e8f9;
}

button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-height: 42px;
  padding: 11px 16px;
  color: #ecfeff;
  background: linear-gradient(135deg, #0ea5e9, #155e75);
  border: 1px solid rgba(125, 211, 252, 0.28);
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 14px 34px rgba(14, 165, 233, 0.18);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

button:hover {
  transform: translateY(-1px);
  border-color: rgba(125, 211, 252, 0.65);
  box-shadow: 0 18px 42px rgba(34, 211, 238, 0.22);
  filter: brightness(1.08);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
  transform: none;
  box-shadow: none;
}

.danger-button {
  background: linear-gradient(135deg, #dc2626, #7f1d1d);
  border-color: rgba(248, 113, 113, 0.34);
  box-shadow: 0 14px 34px rgba(239, 68, 68, 0.16);
}

.login-container {
  position: relative;
  width: min(390px, calc(100vw - 32px));
  margin: 11vh auto 0;
  padding: 32px;
  text-align: center;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.94), rgba(8, 13, 29, 0.92));
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.login-container::before,
.card::before,
.stat-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(56, 189, 248, 0.16), transparent 34%, rgba(45, 212, 191, 0.08));
  opacity: 0.82;
}

.login-container h2 {
  position: relative;
  margin-bottom: 22px;
  font-size: 28px;
}

.login-container button {
  position: relative;
  width: 100%;
  margin-top: 12px;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 252px;
  padding: 24px 18px;
  background: rgba(3, 7, 18, 0.82);
  border-right: 1px solid var(--line);
  box-shadow: 18px 0 60px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(18px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
}

.sidebar h2,
.sidebar-brand {
  margin: 0;
  padding: 12px 12px 18px;
  color: var(--text);
  font-size: 21px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.sidebar-brand {
  display: grid;
  gap: 6px;
  text-decoration: none;
}

.sidebar-brand:hover {
  color: var(--text);
}

.sidebar-brand strong {
  font-size: 21px;
  font-weight: 800;
}

.sidebar-brand span {
  display: block;
  color: var(--green);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sidebar h2::after {
  content: "Threat Intelligence UI";
  display: block;
  margin-top: 6px;
  color: var(--green);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sidebar-section {
  display: grid;
  gap: 8px;
}

.sidebar-section-title {
  padding: 0 12px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.sidebar-section-links {
  display: grid;
  gap: 4px;
}

.sidebar-button,
.sidebar-link {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  padding: 12px 13px;
  color: #cbd5e1;
  background: transparent;
  border: 1px solid transparent;
  box-shadow: none;
  text-decoration: none;
}

.sidebar-button:hover,
.sidebar-link:hover,
.sidebar-button.active,
.sidebar-link.active {
  color: #ecfeff;
  background: linear-gradient(90deg, rgba(14, 165, 233, 0.18), rgba(45, 212, 191, 0.06));
  border-color: rgba(56, 189, 248, 0.32);
  box-shadow: inset 3px 0 0 var(--blue), 0 12px 34px rgba(8, 145, 178, 0.12);
}

.sidebar-bottom {
  display: grid;
  gap: 10px;
  margin-top: auto;
  padding-top: 8px;
}

.sidebar-logout {
  width: 100%;
}

.back-to-website {
  justify-content: center;
}

.main-content {
  position: relative;
  z-index: 1;
  max-width: 1260px;
  min-height: 100vh;
  margin-left: 252px;
  padding: 38px;
}

.dashboard-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 28px;
}

.dashboard-header h1 {
  margin-bottom: 8px;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1;
}

.dashboard-header p {
  max-width: 640px;
  margin-bottom: 0;
}

.status-online {
  flex: 0 0 auto;
  padding: 10px 13px;
  color: #bbf7d0;
  background: rgba(20, 83, 45, 0.18);
  border: 1px solid rgba(74, 222, 128, 0.28);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 0 26px rgba(45, 212, 191, 0.1);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.stat-card,
.card {
  position: relative;
  background: linear-gradient(180deg, var(--panel-strong), var(--panel));
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.stat-card {
  padding: 18px;
}

.stat-card h3 {
  position: relative;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.stat-card p {
  position: relative;
  margin: 0;
  color: var(--text);
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
}

.stat-card .stat-small {
  font-size: 16px;
  line-height: 1.35;
}

.card {
  padding: 22px;
  margin-top: 16px;
}

.card > * {
  position: relative;
}

.card h3 {
  margin-bottom: 12px;
  font-size: 19px;
}

.card button + button {
  margin-top: 10px;
}

.analytics-grid,
.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

#loadingText {
  margin: 12px 0 0;
  color: var(--yellow);
  font-weight: 700;
  animation: blink 1s infinite;
}

#scanBarContainer {
  height: 11px !important;
  margin-top: 14px !important;
  background: rgba(3, 7, 18, 0.85) !important;
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 999px !important;
  overflow: hidden;
}

#scanBar {
  height: 100% !important;
  background: linear-gradient(90deg, var(--green), var(--blue), var(--cyan)) !important;
  border-radius: 999px !important;
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.62);
  transition: width 150ms ease;
}

.scan-result-box,
#scanHistory,
#reportList,
#websiteList {
  margin-top: 16px;
  color: #cbd5e1;
}

.scan-result-box {
  padding: 14px;
  min-height: 52px;
  background: rgba(3, 7, 18, 0.48);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 8px;
  line-height: 1.7;
}

.history-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  margin-top: 12px;
  padding: 14px;
  background: rgba(3, 7, 18, 0.52);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 8px;
}

.history-item b {
  color: var(--text);
  word-break: break-word;
}

.history-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.history-link:hover b {
  color: var(--cyan);
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.section-heading h3 {
  margin: 0;
}

.alert-list {
  display: grid;
  gap: 12px;
}

.alert-item {
  margin-top: 0;
}

.alert-unread {
  border-color: rgba(250, 204, 21, 0.4);
  box-shadow: 0 0 18px rgba(250, 204, 21, 0.08);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.button-row button {
  margin-top: 0;
}

.target-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.target-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  background: rgba(3, 7, 18, 0.52);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 8px;
}

.target-card h4 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 17px;
}

.target-card p {
  margin-bottom: 14px;
  word-break: break-word;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
}

.mini-pill {
  padding: 5px 8px;
  color: #bae6fd;
  background: rgba(14, 165, 233, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.24);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.compact-card {
  margin-top: 12px;
}

.assistant-console {
  background:
    linear-gradient(180deg, rgba(2, 6, 23, 0.96), rgba(8, 13, 29, 0.94)),
    var(--panel);
}

.console-block {
  display: grid;
  gap: 12px;
  color: #cbd5e1;
}

.console-block h3 {
  margin: 8px 0 0;
  color: var(--cyan);
}

.console-item {
  padding: 13px;
  background: rgba(3, 7, 18, 0.58);
  border: 1px solid rgba(56, 189, 248, 0.18);
  border-radius: 8px;
}

.console-item p {
  margin: 8px 0 0;
}

.target-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.target-meta span {
  color: var(--muted);
}

.target-meta strong {
  color: var(--text);
  text-align: right;
}

.empty-state,
.loading-state {
  padding: 14px;
  color: var(--muted);
  background: rgba(3, 7, 18, 0.42);
  border: 1px dashed rgba(148, 163, 184, 0.22);
  border-radius: 8px;
}

.loading-state {
  color: var(--yellow);
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}

.detail-grid div {
  padding: 14px;
  background: rgba(3, 7, 18, 0.48);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 8px;
}

.detail-grid span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.detail-grid strong {
  word-break: break-word;
}

.finding-list {
  margin: 0 0 18px;
  padding-left: 20px;
  color: #cbd5e1;
}

.finding-stack {
  display: grid;
  gap: 10px;
  margin: 12px 0 18px;
}

.finding-card {
  padding: 0;
  background: rgba(3, 7, 18, 0.54);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 8px;
  overflow: hidden;
}

.finding-card summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  cursor: pointer;
  color: var(--text);
  font-weight: 800;
}

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

.finding-body {
  padding: 0 14px 14px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.finding-body code,
.compact-card code {
  display: block;
  white-space: pre-wrap;
  word-break: break-word;
  padding: 12px;
  color: #cffafe;
  background: rgba(3, 7, 18, 0.72);
  border: 1px solid rgba(56, 189, 248, 0.18);
  border-radius: 8px;
}

.severity-pill {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.severity-low {
  color: #bbf7d0;
  background: rgba(22, 101, 52, 0.28);
}

.severity-medium {
  color: #fef08a;
  background: rgba(133, 77, 14, 0.32);
}

.severity-high {
  color: #fed7aa;
  background: rgba(154, 52, 18, 0.34);
}

.severity-critical {
  color: #fecaca;
  background: rgba(127, 29, 29, 0.46);
}

.chart-bars {
  display: flex;
  align-items: end;
  gap: 10px;
  height: 180px;
  padding: 14px;
  background: rgba(3, 7, 18, 0.42);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 8px;
}

.chart-bar {
  flex: 1;
  min-width: 12px;
  background: linear-gradient(180deg, var(--cyan), var(--blue));
  border-radius: 6px 6px 0 0;
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.2);
}

.risk-row {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) 36px;
  gap: 10px;
  align-items: center;
  margin: 12px 0;
  color: #cbd5e1;
}

.risk-track {
  height: 10px;
  background: rgba(3, 7, 18, 0.68);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 999px;
  overflow: hidden;
}

.risk-track span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--yellow), var(--red));
}

.toast-container {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 20;
  display: grid;
  gap: 10px;
  width: min(340px, calc(100vw - 36px));
}

.toast {
  padding: 13px 14px;
  color: var(--text);
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  transition: opacity 220ms ease, transform 220ms ease;
}

.toast-success {
  border-color: rgba(45, 212, 191, 0.46);
}

.toast-error {
  border-color: rgba(239, 68, 68, 0.52);
}

.toast-hide {
  opacity: 0;
  transform: translateY(8px);
}

body.simple-dark {
  background: linear-gradient(135deg, #020617, #0f172a);
}

body.simple-dark::before {
  display: none;
}

body.owasp-strict .finding-card {
  border-color: rgba(250, 204, 21, 0.34);
}

body.owasp-strict .severity-pill {
  letter-spacing: 0.12em;
}

.history-item small {
  color: var(--muted);
}

.scan-container {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.scan-line {
  position: absolute;
  top: -20%;
  left: 0;
  width: 100%;
  height: 150px;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(34, 211, 238, 0.04),
    rgba(45, 212, 191, 0.13),
    rgba(34, 211, 238, 0.04),
    transparent
  );
  box-shadow: 0 0 34px rgba(45, 212, 191, 0.16);
  animation: scanMove 5s linear infinite;
}

@keyframes blink {
  0% { opacity: 1; }
  50% { opacity: 0.38; }
  100% { opacity: 1; }
}

@keyframes scanMove {
  0% { transform: translateY(-120%); }
  100% { transform: translateY(120vh); }
}

.public-shell {
  position: relative;
  z-index: 1;
}

.public-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 28px;
  background: rgba(3, 7, 18, 0.72);
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  backdrop-filter: blur(16px);
}

.public-brand {
  display: grid;
  gap: 3px;
}

.public-brand strong {
  font-size: 18px;
  color: var(--text);
}

.public-brand span {
  color: var(--green);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

.public-nav-links a,
.public-cta-row a,
.public-footer a {
  text-decoration: none;
}

.public-nav-links a {
  padding: 10px 12px;
  color: #cbd5e1;
  border-radius: 8px;
}

.public-nav-links a.active,
.public-nav-links a:hover {
  color: var(--text);
  background: rgba(56, 189, 248, 0.12);
}

.public-nav-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.public-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 11px 16px;
  color: #ecfeff;
  background: linear-gradient(135deg, #0ea5e9, #155e75);
  border: 1px solid rgba(125, 211, 252, 0.28);
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 14px 34px rgba(14, 165, 233, 0.18);
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.public-button:hover {
  transform: translateY(-1px);
  border-color: rgba(125, 211, 252, 0.65);
  box-shadow: 0 18px 42px rgba(34, 211, 238, 0.22);
  filter: brightness(1.08);
}

.public-button.secondary {
  color: var(--text);
  background: rgba(15, 23, 42, 0.7);
  border-color: rgba(148, 163, 184, 0.2);
  box-shadow: none;
}

.public-button.secondary:hover {
  background: rgba(15, 23, 42, 0.95);
}

.scan-cta {
  min-height: 58px;
  padding: 16px 30px;
  font-size: 18px;
  text-transform: uppercase;
}

.public-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.9fr);
  gap: 24px;
  align-items: center;
  padding: 28px 0 18px;
}

.hero-copy {
  max-width: 680px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 8px 12px;
  color: #cffafe;
  background: rgba(14, 165, 233, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin-bottom: 14px;
  font-size: clamp(40px, 5vw, 68px);
  line-height: 0.98;
}

.hero p {
  max-width: 640px;
  font-size: 17px;
}

.hero-actions,
.public-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.hero-panel {
  position: relative;
  padding: 18px;
  background: linear-gradient(180deg, rgba(10, 18, 38, 0.98), rgba(8, 13, 29, 0.92));
  border: 1px solid rgba(56, 189, 248, 0.18);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(34, 211, 238, 0.18), transparent 28%), radial-gradient(circle at 80% 10%, rgba(37, 99, 235, 0.18), transparent 26%);
  opacity: 0.78;
  pointer-events: none;
}

.panel-label {
  position: relative;
  display: inline-flex;
  margin-bottom: 16px;
  padding: 8px 12px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 999px;
  color: #dbeafe;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.panel-metric-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.panel-metric {
  padding: 14px;
  background: rgba(3, 7, 18, 0.52);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 10px;
}

.panel-metric span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.panel-metric strong {
  font-size: 22px;
  color: var(--text);
}

.section-band {
  padding: 18px 0 8px;
}

.section-band h2 {
  margin-bottom: 10px;
  font-size: clamp(24px, 3vw, 38px);
}

.section-band > p {
  max-width: 760px;
}

.feature-grid,
.pricing-grid,
.workflow-grid,
.benefit-grid,
.link-grid,
.contact-grid {
  display: grid;
  gap: 16px;
}

.feature-grid,
.benefit-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pricing-grid,
.workflow-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.link-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.contact-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.public-card {
  position: relative;
  padding: 20px;
  background: linear-gradient(180deg, rgba(10, 18, 38, 0.94), rgba(8, 13, 29, 0.9));
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.public-card h3 {
  margin-bottom: 10px;
}

.feature-icon {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  border-radius: 10px;
  background: rgba(14, 165, 233, 0.12);
  color: #dbeafe;
  font-size: 20px;
}

.pricing-card {
  display: grid;
  gap: 14px;
}

.pricing-card .plan-price {
  color: var(--text);
  font-size: 30px;
  font-weight: 800;
}

.plan-tag {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 6px 10px;
  color: #cffafe;
  background: rgba(34, 211, 238, 0.14);
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.workflow-step {
  padding: 18px;
  background: rgba(3, 7, 18, 0.48);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 10px;
}

.workflow-step strong {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  color: #cffafe;
  background: rgba(14, 165, 233, 0.16);
  border-radius: 999px;
}

.report-preview {
  display: grid;
  gap: 12px;
}

.comparison-table {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.comparison-column {
  padding: 18px;
  background: rgba(3, 7, 18, 0.42);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 10px;
}

.comparison-column.highlighted {
  border-color: rgba(56, 189, 248, 0.34);
  box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.08);
}

.comparison-column ul {
  margin: 12px 0 0;
  padding-left: 20px;
}

.comparison-column li {
  margin: 8px 0;
  color: #cbd5e1;
}

.report-preview .preview-row {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 12px 0;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.report-preview .preview-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.mini-chart {
  display: grid;
  gap: 10px;
}

.mini-bar {
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}

.public-form {
  display: grid;
  gap: 10px;
}

.public-form textarea {
  width: 100%;
  min-height: 140px;
  margin: 10px 0;
  padding: 13px 14px;
  color: var(--text);
  background: rgba(3, 7, 18, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 8px;
  outline: none;
  resize: vertical;
}

.public-form textarea:focus {
  background: rgba(3, 7, 18, 0.92);
  border-color: var(--line-strong);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.12);
}

.form-status {
  min-height: 20px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
}

.form-status.success {
  color: #86efac;
}

.form-status.error {
  color: #fca5a5;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.public-footer {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 28px 42px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.footer-grid h4 {
  margin-bottom: 10px;
  color: var(--text);
}

.footer-grid a {
  display: block;
  margin: 8px 0;
  color: #cbd5e1;
}

.footer-note {
  margin-top: 20px;
  padding-top: 16px;
  color: var(--muted);
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  font-size: 13px;
}

@media (max-width: 900px) {
  .sidebar {
    position: static;
    width: 100%;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .main-content {
    margin-left: 0;
    padding: 24px 16px;
  }

  .dashboard-header {
    display: block;
  }

  .status-online {
    display: inline-flex;
    margin-top: 14px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .analytics-grid,
  .settings-grid,
  .detail-grid,
  .target-grid,
  .feature-grid,
  .pricing-grid,
  .workflow-grid,
  .benefit-grid,
  .link-grid,
  .contact-grid,
  .comparison-table,
  .footer-grid,
  .hero,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .public-nav,
  .public-main,
  .public-footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .public-nav {
    display: grid;
    justify-items: start;
  }

  .public-nav-links,
  .public-nav-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .report-preview .preview-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .stats-grid,
  .history-item {
    grid-template-columns: 1fr;
  }

  .history-item button,
  .button-row {
    width: 100%;
  }

  .panel-metric-grid {
    grid-template-columns: 1fr;
  }
}
