:root {
  --bg: #081628;
  --bg-alt: #0a1b30;
  --surface: rgba(15, 34, 56, 0.96);
  --surface-soft: rgba(17, 40, 64, 0.92);
  --surface-2: #17324f;
  --border: rgba(63, 103, 145, 0.55);
  --text: #eef5ff;
  --muted: #aac3dc;
  --muted-strong: #d5e6f7;
  --accent: #2f8cff;
  --accent-2: #1f6fd4;
  --success: #1f8b5f;
  --danger: #c8485c;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.24);
}

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

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body.platform-body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(50, 106, 170, 0.35), transparent 30%),
    linear-gradient(180deg, #07121f 0%, #081628 45%, #07111e 100%);
  color: var(--text);
  overflow-x: hidden;
}

a {
  color: inherit;
}

.site-shell,
.admin-shell {
  min-height: 100vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(7, 18, 31, 0.88);
  border-bottom: 1px solid rgba(67, 103, 143, 0.4);
}

.site-header-inner {
  min-height: 72px;
}

.site-main {
  min-height: calc(100vh - 140px);
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo,
.admin-brand-image {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-section,
.content-section {
  padding: 3.5rem 0;
}

.hero-rich {
  position: relative;
}

.hero-rich::after {
  content: "";
  position: absolute;
  inset: 10% 0 auto auto;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(67, 136, 214, 0.18), transparent 65%);
  pointer-events: none;
  filter: blur(6px);
}

.section-kicker {
  color: #7fc4ff;
  font-size: 0.82rem;
  letter-spacing: 0.18rem;
  text-transform: uppercase;
}

.content-card {
  height: 100%;
  padding: 1.5rem;
  border-radius: 1.25rem;
  background: linear-gradient(180deg, var(--surface), rgba(10, 24, 40, 0.94));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.content-card.elevated {
  background: linear-gradient(180deg, rgba(25, 55, 88, 0.96), rgba(11, 27, 45, 0.96));
}

.hero-brand-card {
  position: relative;
  overflow: hidden;
}

.hero-brand-top {
  margin: -1.5rem -1.5rem 1.25rem;
  padding: 1.25rem;
  background: linear-gradient(135deg, rgba(51, 116, 190, 0.28), rgba(12, 33, 58, 0.2));
}

.hero-brand-image {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.24);
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  background: rgba(48, 111, 181, 0.2);
  border: 1px solid rgba(93, 149, 214, 0.34);
  color: #dbeeff;
  font-size: 0.92rem;
  font-weight: 600;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.hero-stat {
  padding: 1rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.hero-stat strong {
  display: block;
  margin-bottom: 0.45rem;
}

.hero-stat span {
  color: var(--muted);
  font-size: 0.94rem;
}

.release-highlight {
  padding: 1.25rem;
  border-radius: 1rem;
}

.feature-list {
  padding-left: 1.1rem;
  margin-bottom: 0;
}

.feature-list li {
  margin-bottom: 0.75rem;
  color: var(--muted);
}

.text-muted-card {
  color: var(--muted);
}

.site-footer {
  padding: 1.25rem 0 2rem;
  color: var(--muted);
}

.site-footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
}

.info-list {
  display: grid;
  gap: 0.65rem;
}

.info-list > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0.95rem;
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.info-list span {
  color: var(--muted);
}

.alert {
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.alert-info {
  background: rgba(43, 111, 212, 0.2);
  color: var(--muted-strong);
}

.alert-success {
  background: rgba(31, 139, 95, 0.18);
  color: #d7f5e8;
}

.alert-danger {
  background: rgba(200, 72, 92, 0.18);
  color: #ffd9df;
}

.alert-warning {
  background: rgba(196, 151, 49, 0.2);
  color: #fff2cb;
}

.submit-progress {
  padding: 1rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.submit-progress-bar {
  height: 0.8rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.submit-progress-bar .progress-bar {
  background: linear-gradient(90deg, var(--accent), #69b4ff);
  transition: width 0.2s ease;
}

form.is-submitting [data-progress-button] {
  opacity: 0.8;
  pointer-events: none;
}

.form-control,
.form-select,
.form-check-input,
.form-control:focus,
.form-select:focus {
  background-color: rgba(9, 22, 38, 0.92);
  border-color: rgba(66, 106, 148, 0.7);
  color: var(--text);
  box-shadow: none;
}

.form-control::placeholder,
.form-select::placeholder {
  color: #7e9dbe;
}

.form-check-label,
.form-label {
  color: var(--muted-strong);
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.table-dark {
  --bs-table-bg: transparent;
  --bs-table-striped-bg: rgba(255, 255, 255, 0.03);
  --bs-table-hover-bg: rgba(255, 255, 255, 0.04);
  margin-bottom: 0;
}

.btn-primary {
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  border-color: var(--accent);
}

.btn-outline-light {
  border-color: rgba(174, 209, 240, 0.45);
}

.admin-body {
  background:
    radial-gradient(circle at top left, rgba(36, 91, 152, 0.22), transparent 25%),
    linear-gradient(180deg, #06111d 0%, #081628 55%, #09131f 100%);
}

.admin-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
}

.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 1.5rem;
  background: rgba(5, 15, 26, 0.94);
  border-right: 1px solid rgba(67, 103, 143, 0.28);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.admin-brand-title {
  font-weight: 700;
}

.admin-brand-subtitle,
.admin-topbar-subtitle {
  color: var(--muted);
  font-size: 0.92rem;
}

.admin-nav {
  display: grid;
  gap: 0.45rem;
}

.admin-sidebar-link {
  display: block;
  padding: 0.8rem 0.95rem;
  color: var(--muted);
  text-decoration: none;
  border-radius: 0.85rem;
  border: 1px solid transparent;
}

.admin-sidebar-link:hover,
.admin-sidebar-link.active {
  background: rgba(34, 74, 117, 0.48);
  color: var(--text);
  border-color: rgba(64, 104, 146, 0.45);
}

.admin-sidebar-footer {
  margin-top: auto;
}

.admin-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 1.25rem 1.5rem;
  backdrop-filter: blur(10px);
  background: rgba(8, 22, 40, 0.82);
  border-bottom: 1px solid rgba(67, 103, 143, 0.2);
}

.admin-topbar-title {
  font-size: 1.25rem;
  font-weight: 700;
}

.admin-content {
  padding: 1.5rem;
  min-width: 0;
}

.admin-content .content-section {
  padding: 0;
}

.admin-content .container {
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
}

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

  .admin-sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(67, 103, 143, 0.28);
  }
}

@media (max-width: 991.98px) {
  .hero-section,
  .content-section {
    padding: 2.5rem 0;
  }

  .content-card {
    padding: 1.25rem;
  }

  .site-header-inner {
    min-height: 64px;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .brand-logo,
  .admin-brand-image {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }

  .admin-topbar,
  .admin-content,
  .admin-sidebar {
    padding: 1rem;
  }

  .site-footer-inner {
    flex-direction: column;
  }

  .info-list > div {
    flex-direction: column;
  }
}
