:root {
  --seido-bg: #213754;
  --seido-bg-deep: #1b2f49;
  --seido-surface: rgba(48, 68, 98, 0.34);
  --seido-border: rgba(214, 226, 245, 0.18);
  --seido-border-strong: rgba(191, 219, 254, 0.34);
  --seido-text: #f3f7ff;
  --seido-muted: #d7e1f0;
  --seido-success-soft: rgba(52, 211, 153, 0.16);
  --seido-danger-soft: rgba(248, 113, 113, 0.16);
  --seido-shadow: 0 18px 42px rgba(15, 23, 42, 0.14);
  --seido-shadow-soft: 0 10px 24px rgba(15, 23, 42, 0.10);
  --seido-radius: 22px;
  --seido-radius-sm: 14px;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: var(--seido-text);
  background: linear-gradient(180deg, #294261 0%, #223954 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(42rem 42rem at 14% 18%, rgba(191, 219, 254, 0.16), transparent 62%),
    radial-gradient(36rem 36rem at 86% 16%, rgba(165, 243, 252, 0.12), transparent 60%),
    radial-gradient(30rem 30rem at 50% 82%, rgba(219, 234, 254, 0.10), transparent 58%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045) 0%, rgba(255, 255, 255, 0) 36%),
    linear-gradient(180deg, #294261 0%, #223954 100%);
}

a {
  color: #d7ebff;
}

a:hover {
  color: #ffffff;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(33, 52, 77, 0.48) !important;
  backdrop-filter: blur(18px);
  border-bottom: 0;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.navbar-brand,
.page-title,
.card-title,
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--seido-text);
  letter-spacing: -0.02em;
}

.text-muted,
.form-hint,
.page-pretitle,
.link-secondary,
.navbar .nav-link,
.navbar .text-muted {
  color: var(--seido-muted) !important;
}

.container-xl {
  max-width: 1180px;
}

.page-wrapper,
.page,
.page-body,
.page-header,
.footer,
.footer-transparent {
  background: transparent;
}

.page-header {
  border-bottom: 0;
  padding-top: 1.75rem;
}

.hero-bg {
  position: relative;
  overflow: hidden;
  border-bottom: 0;
  background: transparent;
}

.hero-bg::before {
  content: none;
}

section.hero-bg,
#apps,
#about,
#faq {
  padding-top: 4.75rem !important;
  padding-bottom: 4.75rem !important;
}

#about.bg-light {
  background: transparent !important;
}

.hero-lead,
.lead {
  color: var(--seido-muted) !important;
  line-height: 1.7;
  max-width: 60ch;
}

.card,
.accordion-item,
.modal-content,
.dropdown-menu {
  border: 1px solid var(--seido-border);
  background: var(--seido-surface);
  backdrop-filter: blur(18px);
  border-radius: var(--seido-radius);
  box-shadow: var(--seido-shadow-soft);
  color: var(--seido-text);
  overflow: hidden;
  background-clip: padding-box;
}

.card-header,
.card-footer,
.accordion-button,
.table-responsive {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--seido-border);
}

.accordion-button {
  color: var(--seido-text);
}

.accordion-button:not(.collapsed) {
  background: rgba(96, 165, 250, 0.08);
  color: var(--seido-text);
  box-shadow: none;
}

.accordion-button::after {
  filter: invert(1) brightness(1.4);
}

.app-card,
.btn,
.form-control,
.form-select,
.page-link,
.badge,
.avatar-xl {
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    background-color 0.18s ease;
}

.app-card:hover,
.card:hover {
  transform: translateY(-2px);
  border-color: var(--seido-border-strong);
  box-shadow: var(--seido-shadow);
}

.btn {
  border-radius: 999px;
  font-weight: 600;
}

.btn-primary {
  color: #eff6ff;
  border-color: rgba(96, 165, 250, 0.8);
  background: linear-gradient(135deg, #2563eb 0%, #0891b2 100%);
  box-shadow: 0 14px 32px rgba(8, 145, 178, 0.28);
}

.btn-primary:hover,
.btn-primary:focus {
  color: #fff;
  transform: translateY(-1px);
  border-color: rgba(125, 211, 252, 0.9);
  background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
}

.btn-outline-primary,
.btn-outline-secondary,
.btn-outline-danger {
  background: rgba(255, 255, 255, 0.07);
}

.btn-outline-primary {
  border-color: rgba(96, 165, 250, 0.44);
  color: #eef6ff;
}

.btn-outline-secondary {
  border-color: var(--seido-border);
  color: var(--seido-text);
}

.btn-outline-danger {
  border-color: rgba(248, 113, 113, 0.32);
  color: #ffe3e3;
}

.btn-outline-primary:hover,
.btn-outline-secondary:hover,
.btn-outline-danger:hover {
  transform: translateY(-1px);
}

.btn-group > .btn:not(:last-child) {
  margin-right: 0.35rem;
}

.form-control,
.form-select {
  border-radius: var(--seido-radius-sm);
  color: var(--seido-text);
  border-color: rgba(148, 163, 184, 0.2);
  background: rgba(57, 78, 110, 0.30);
}

.form-control::placeholder {
  color: #74839d;
}

.form-control:focus,
.form-select:focus {
  color: var(--seido-text);
  border-color: rgba(96, 165, 250, 0.7);
  background: rgba(72, 96, 131, 0.42);
  box-shadow: 0 0 0 0.22rem rgba(59, 130, 246, 0.16);
}

.alert {
  border-radius: var(--seido-radius-sm);
  border: 1px solid var(--seido-border);
  box-shadow: var(--seido-shadow-soft);
}

.alert-success {
  color: #d1fae5;
  background: var(--seido-success-soft);
  border-color: rgba(52, 211, 153, 0.26);
}

.alert-danger {
  color: #fee2e2;
  background: var(--seido-danger-soft);
  border-color: rgba(248, 113, 113, 0.28);
}

.alert-info,
.alert-warning {
  color: #e0f2fe;
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.22);
}

.badge {
  border-radius: 999px;
  border: 1px solid transparent;
}

.bg-azure-lt {
  color: #eef6ff !important;
  background: rgba(59, 130, 246, 0.16) !important;
  border-color: rgba(96, 165, 250, 0.24);
}

.bg-red-lt {
  color: #fff1f2 !important;
  background: rgba(239, 68, 68, 0.16) !important;
  border-color: rgba(248, 113, 113, 0.24);
}

.table {
  color: var(--seido-text);
  margin-bottom: 0;
}

.table thead th,
.table td,
.table th {
  border-color: rgba(148, 163, 184, 0.1);
}

.table thead th {
  color: var(--seido-muted);
}

.page-link {
  border-radius: 999px;
  margin-left: 0.35rem;
  color: var(--seido-text);
  border-color: var(--seido-border);
  background: rgba(255, 255, 255, 0.07);
}

.page-item.active .page-link,
.page-link:hover {
  color: #fff;
  border-color: rgba(96, 165, 250, 0.55);
  background: rgba(37, 99, 235, 0.44);
}

.avatar-xl {
  width: 112px;
  height: 112px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid rgba(125, 211, 252, 0.2);
  box-shadow: 0 16px 40px rgba(2, 8, 23, 0.34);
  background: rgba(255, 255, 255, 0.07);
}

.shadow-sm {
  box-shadow: var(--seido-shadow-soft) !important;
}

.footer {
  border-top-color: rgba(148, 163, 184, 0.08) !important;
}

.footer .link-secondary:hover {
  color: var(--seido-text) !important;
}

.seido-auth {
  position: relative;
}

.seido-auth::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(560px circle at 18% 18%, rgba(59, 130, 246, 0.12), transparent 54%),
    radial-gradient(520px circle at 82% 14%, rgba(34, 211, 238, 0.10), transparent 46%);
  pointer-events: none;
}

.seido-auth .card {
  background: rgba(18, 31, 50, 0.66);
}

.seido-legal .page-title,
.seido-account .page-title,
.seido-home .display-5 {
  text-wrap: balance;
}

@media (max-width: 767.98px) {
  section.hero-bg,
  #apps,
  #about,
  #faq {
    padding-top: 3.75rem !important;
    padding-bottom: 3.75rem !important;
  }

  .btn-group {
    flex-wrap: wrap;
  }

  .btn-group > .btn {
    margin-bottom: 0.35rem;
  }
}


#apps,
#faq {
  background: transparent !important;
}

#faq .accordion-item {
  margin-bottom: 0.9rem;
  background: transparent;
  border: 0;
  box-shadow: none;
  border-radius: 18px;
  overflow: visible;
}

#faq .accordion-button {
  padding: 1.2rem 1.3rem;
  background: rgba(255, 255, 255, 0.07);
  font-weight: 600;
  border-radius: 18px;
}

#faq .accordion-button:hover {
  background: rgba(255, 255, 255, 0.07);
}

#faq .accordion-button:not(.collapsed) {
  background: rgba(255, 255, 255, 0.09);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

#faq .accordion-collapse {
  background: rgba(255, 255, 255, 0.07);
}

#faq .accordion-body {
  padding: 1rem 1.3rem 1.25rem;
  border-top: 1px solid rgba(191, 209, 235, 0.10);
}

main.flex-fill,
main.flex-fill > section,
section.hero-bg,
footer.footer,
footer.footer-transparent,
.footer-transparent,
.footer.border-top {
  background: transparent !important;
}

footer.footer,
footer.footer-transparent,
.footer.border-top {
  border-top: 0 !important;
  box-shadow: none !important;
}

#faq {
  padding-bottom: 2rem !important;
  border-top: 0 !important;
}

#faq-accordion {
  border-top: 0 !important;
}

.table thead {
  background: rgba(10, 18, 30, 0.34);
}

.table thead th {
  color: #edf4ff;
  background: rgba(255, 255, 255, 0.10);
  font-weight: 700;
}

.table-responsive {
  overflow: hidden;
  border-radius: 0 0 var(--seido-radius) var(--seido-radius);
}

.card-header,
.card-footer {
  background-clip: padding-box;
}

.card-header:first-child {
  border-top-left-radius: calc(var(--seido-radius) - 1px);
  border-top-right-radius: calc(var(--seido-radius) - 1px);
}

.card-footer:last-child {
  border-bottom-left-radius: calc(var(--seido-radius) - 1px);
  border-bottom-right-radius: calc(var(--seido-radius) - 1px);
}

.card > .card-body,
.card > .card-header,
.card > .card-footer {
  position: relative;
  z-index: 1;
}

.card > .card-body {
  background: transparent;
  border-radius: inherit;
}

.card > .card-body:first-child {
  border-top-left-radius: calc(var(--seido-radius) - 1px);
  border-top-right-radius: calc(var(--seido-radius) - 1px);
}

.card > .card-body:last-child {
  border-bottom-left-radius: calc(var(--seido-radius) - 1px);
  border-bottom-right-radius: calc(var(--seido-radius) - 1px);
}

.navbar,
header.navbar {
  margin-top: 0 !important;
}

#faq .accordion-item,
#faq .accordion-item:first-of-type,
#faq .accordion-item:last-of-type {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 18px !important;
}

#faq .accordion-header {
  margin: 0;
  border-radius: 18px;
}

#faq .accordion-button,
#faq .accordion-button.collapsed {
  display: block;
  width: 100%;
  border-radius: 18px !important;
  background-clip: padding-box;
}

#faq .accordion-button::before,
#faq .accordion-item::before,
#faq .accordion-item::after {
  content: none !important;
}