:root {
  --bg: #050b14;
  --bg-soft: #091223;
  --panel: rgba(9, 18, 35, 0.88);
  --panel-2: rgba(12, 24, 44, 0.9);
  --line: rgba(146, 184, 255, 0.14);
  --line-strong: rgba(146, 184, 255, 0.28);
  --text: #eef4ff;
  --muted: #96a8c4;
  --primary: #7dd3fc;
  --primary-strong: #60a5fa;
  --danger: #fb7185;
  --success: #38bdf8;
  --warning: #f59e0b;
  --shadow: 0 30px 80px rgba(1, 8, 20, 0.45);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(96, 165, 250, 0.16), transparent 28%),
    radial-gradient(circle at 90% 12%, rgba(56, 189, 248, 0.12), transparent 24%),
    linear-gradient(180deg, #07111f 0%, #040912 100%);
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.85), transparent 94%);
  pointer-events: none;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.container {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 14px;
  z-index: 10;
  padding-top: 18px;
}

.topbar-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: space-between;
  padding: 16px 20px;
  background: rgba(4, 10, 20, 0.74);
  border: 1px solid var(--line);
  border-radius: 22px;
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
}

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

.brand-mark {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(10, 22, 40, 0.94), rgba(6, 14, 28, 0.98)),
    linear-gradient(135deg, rgba(125, 211, 252, 0.18), rgba(96, 165, 250, 0.12));
  border: 1px solid rgba(125, 211, 252, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: transform 180ms ease, border-color 180ms ease;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
}

.brand:hover .brand-mark {
  transform: translateY(-1px);
  border-color: rgba(125, 211, 252, 0.34);
}

.brand-copy {
  display: flex;
  flex-direction: column;
}

.brand-copy strong,
h1,
h2,
h3 {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
}

.brand-copy strong {
  font-size: 1rem;
}

.brand-copy small,
.section-heading p,
.panel p,
.muted-note {
  color: var(--muted);
}

.nav,
.topbar-actions,
.auth-links,
.hero-actions,
.hero-points,
.button-row,
.subnav-inner,
.footer-inner,
.footer-links {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav a,
.footer-links a,
.ghost-link {
  color: #d5e1f3;
}

.nav a.active,
.subnav-inner a.active {
  color: var(--text);
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 999px;
}

.lang-switch {
  display: inline-flex;
  padding: 4px;
  gap: 4px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.lang-link {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted);
}

.lang-link.active {
  background: rgba(125, 211, 252, 0.12);
  color: var(--text);
}

.btn,
.ghost-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.btn:hover,
.ghost-link:hover,
.lang-link:hover,
.nav a:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: #03111e;
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  box-shadow: 0 14px 30px rgba(96, 165, 250, 0.2);
}

.btn-secondary,
.ghost-link,
.btn-danger {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.btn-danger {
  color: #ffd9e2;
  border-color: rgba(251, 113, 133, 0.26);
  background: rgba(251, 113, 133, 0.08);
}

.btn-small {
  padding: 10px 14px;
  font-size: 0.92rem;
}

.hero {
  padding: 62px 0 28px;
}

.hero-grid,
.card-grid,
.split-grid,
.auth-grid,
.dashboard-grid {
  display: grid;
  gap: 22px;
}

.hero-grid {
  grid-template-columns: 1.2fr 0.85fr;
  align-items: stretch;
}

.hero-copy {
  padding: 34px 4px 30px 0;
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(125, 211, 252, 0.08);
  color: var(--primary);
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

h1 {
  margin: 0;
  font-size: clamp(2.5rem, 5vw, 4.8rem);
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.hero-copy p,
.section-heading p {
  max-width: 720px;
  font-size: 1.03rem;
  line-height: 1.75;
}

.hero-points span,
.project-tag,
.live-pill {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: #dce8fb;
  font-size: 0.88rem;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.hero-panel,
.feature-card,
.project-card,
.process-card,
.prose-card,
.form-wrap,
.stat-card,
.admin-card,
.table-panel,
.empty-card {
  padding: 24px;
}

.hero-panel-head,
.admin-card-head,
.table-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.stat-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.88rem;
}

.stat-card strong {
  font-size: 1.55rem;
}

.card-grid {
  grid-template-columns: repeat(3, 1fr);
}

.card-grid.single-col {
  grid-template-columns: 1fr;
}

.split-grid,
.auth-grid,
.dashboard-grid {
  grid-template-columns: repeat(2, 1fr);
}

.page-section {
  padding: 28px 0 46px;
}

.page-section.compact {
  padding-top: 14px;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 22px;
}

.section-heading h1 {
  font-size: clamp(2rem, 3.2vw, 3.25rem);
}

.app-form {
  display: grid;
  gap: 14px;
}

.app-form label {
  display: grid;
  gap: 8px;
  color: #dbe6f7;
}

input,
textarea,
select {
  width: 100%;
  padding: 14px 16px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(125, 211, 252, 0.55);
  box-shadow: 0 0 0 4px rgba(125, 211, 252, 0.08);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

.inline-check {
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
}

.inline-check input {
  width: 18px;
  height: 18px;
  margin: 0;
}

.form-links {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}

.form-links a {
  color: var(--primary);
}

.subnav {
  padding: 10px 0 0;
}

.subnav-inner {
  padding: 0 4px 8px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}

.subnav-inner a {
  padding: 10px 12px;
  border-radius: 999px;
  white-space: nowrap;
  color: var(--muted);
}

.subnav-inner a.active {
  background: rgba(125, 211, 252, 0.1);
}

.table-wrap {
  overflow-x: auto;
}

.notification-body {
  margin: 0;
  padding: 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: #dbe8fa;
  white-space: pre-wrap;
  word-break: break-word;
}

.app-table {
  width: 100%;
  border-collapse: collapse;
}

.app-table th,
.app-table td {
  padding: 14px 10px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  vertical-align: top;
}

.app-table th {
  color: #d8e3f5;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.status-badge {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 0.83rem;
  border: 1px solid var(--line);
}

.status-pending,
.status-new,
.status-unverified {
  background: rgba(245, 158, 11, 0.08);
  color: #ffd89a;
  border-color: rgba(245, 158, 11, 0.2);
}

.status-in_progress {
  background: rgba(96, 165, 250, 0.1);
  color: #d7e8ff;
  border-color: rgba(96, 165, 250, 0.22);
}

.status-completed,
.status-replied,
.status-verified {
  background: rgba(56, 189, 248, 0.1);
  color: #d7f3ff;
  border-color: rgba(56, 189, 248, 0.22);
}

.status-rejected {
  background: rgba(251, 113, 133, 0.1);
  color: #ffd8e2;
  border-color: rgba(251, 113, 133, 0.22);
}

.flash {
  margin-top: 14px;
  padding: 14px 18px;
  border-radius: 16px;
  border: 1px solid var(--line);
}

.flash-success {
  background: rgba(56, 189, 248, 0.08);
  color: #d9f7ff;
  border-color: rgba(56, 189, 248, 0.22);
}

.flash-error {
  background: rgba(251, 113, 133, 0.08);
  color: #ffd9e1;
  border-color: rgba(251, 113, 133, 0.22);
}

.flash-info {
  background: rgba(125, 211, 252, 0.08);
  color: #d9f3ff;
}

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

.footer {
  padding: 24px 0 42px;
}

.footer-inner {
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

@media (max-width: 1080px) {
  .hero-grid,
  .stats-grid,
  .card-grid,
  .split-grid,
  .auth-grid,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(var(--container), calc(100% - 20px));
  }

  .topbar-inner {
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.03);
  }

  .nav.open {
    display: flex;
  }

  .topbar-actions,
  .auth-links,
  .hero-actions,
  .hero-points,
  .button-row,
  .footer-inner,
  .footer-links {
    flex-wrap: wrap;
  }

  .topbar-actions {
    width: 100%;
    justify-content: space-between;
  }

  .auth-links {
    width: 100%;
    justify-content: flex-start;
  }

  .two-col {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: clamp(2.15rem, 9vw, 3.1rem);
  }
}
