body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #0f172a;
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.72), rgba(15, 23, 42, 0.88)),
    url("/static/sunrise-bg.png");
  background-position: center top;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  color: #e5e7eb;
}

a {
  color: #93c5fd;
  text-decoration: none;
}

.wrap {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(30, 64, 175, 0.9);
  border-bottom: 1px solid rgba(147, 197, 253, 0.35);
  backdrop-filter: blur(10px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 16px;
}

.brand {
  font-size: 22px;
  font-weight: 700;
  color: #f8fafc;
}

.menu {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.card {
  background: rgba(17, 24, 39, 0.82);
  border: 1px solid rgba(96, 165, 250, 0.18);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.22);
  border-radius: 14px;
  padding: 20px;
  margin: 20px 0;
}

.narrow {
  max-width: 480px;
}

.hero {
  margin-top: 28px;
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.button,
button {
  background: #2563eb;
  color: #fff;
  border: 0;
  border-radius: 10px;
  padding: 10px 16px;
  cursor: pointer;
}

.button.secondary {
  background: #1d4ed8;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

input,
select,
textarea {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #4b5563;
  background: #111827;
  color: #fff;
}

.alert {
  background: #7f1d1d;
  border: 1px solid #b91c1c;
  padding: 12px;
  border-radius: 10px;
  margin: 20px 0 14px;
}

.alert-success {
  background: #14532d;
  border-color: #15803d;
}

.alert-warning {
  background: #78350f;
  border-color: #d97706;
}

.alert-error {
  background: #7f1d1d;
  border-color: #b91c1c;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.stats span {
  display: block;
  color: #9ca3af;
  margin-bottom: 4px;
}

.payments {
  width: 100%;
  border-collapse: collapse;
}

.payments th,
.payments td {
  text-align: left;
  border-bottom: 1px solid #374151;
  padding: 10px 6px;
}

.inline-form {
  margin: 0;
}

.link-button {
  background: transparent;
  padding: 0;
  color: #93c5fd;
}

.danger {
  background: #b91c1c;
}

.package-list {
  display: grid;
  gap: 10px;
}

.package-item {
  padding: 12px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(96, 165, 250, 0.16);
}

.top-gap {
  margin-top: 16px;
}

.muted {
  color: #9ca3af;
}

.achievement-item {
  gap: 6px;
}

.achievement-item strong {
  display: block;
  margin-bottom: 4px;
}

code {
  background: rgba(15, 23, 42, 0.72);
  padding: 2px 6px;
  border-radius: 6px;
}

ul,
ol {
  padding-left: 20px;
}

@media (max-width: 768px) {
  body {
    background-attachment: scroll;
  }

  .wrap {
    width: min(100% - 20px, 1100px);
  }

  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 12px 0;
  }

  .menu {
    width: 100%;
    gap: 10px 14px;
  }

  .card {
    padding: 16px;
    margin: 14px 0;
  }

  .hero {
    margin-top: 18px;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .payments,
  .payments thead,
  .payments tbody,
  .payments tr,
  .payments th,
  .payments td {
    display: block;
    width: 100%;
  }

  .payments thead {
    display: none;
  }

  .payments tr {
    padding: 10px 0;
    border-bottom: 1px solid #374151;
  }

  .payments td {
    border: 0;
    padding: 4px 0;
  }
}

.muted {
  color: #9ca3af;
  line-height: 1.5;
}

code {
  background: rgba(15, 23, 42, 0.9);
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 0.92em;
}

.polit-map-card .polit-map-frame {
  position: relative;
  width: 100%;
  max-width: 920px;
  margin: 12px auto 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(96, 165, 250, 0.28);
  background: #070d18;
  min-height: 320px;
}

.polit-map-svg {
  display: block;
  width: 100%;
  height: auto;
  min-height: 320px;
  vertical-align: middle;
}

.polit-map-loading {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 10px 14px;
  background: rgba(15, 23, 42, 0.85);
  border-radius: 8px;
  font-size: 14px;
}

.table-wrap {
  overflow-x: auto;
}

.polit-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.polit-table th,
.polit-table td {
  border-bottom: 1px solid rgba(55, 65, 81, 0.85);
  padding: 10px 8px;
  text-align: left;
  vertical-align: top;
}

.polit-table th {
  color: #cbd5e1;
  font-weight: 600;
}

.polit-table tbody tr:hover {
  background: rgba(30, 64, 175, 0.12);
}
