@import url('https://fonts.googleapis.com/css?family=Exo:400,700');

body {
  font-family: 'Exo', sans-serif;
}

/* code {
  font-size: 16px;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 0.2em;
  border-radius: 5px;
} */

.pageDiv {
  margin-top: 2em;
}

.tabList {
  margin-bottom: 1em;
}

.input-group-text {
  background: rgba(155, 155, 155, 0.1);
  padding: 15px;
  border: 2px solid rgba(95, 95, 95, 0.2);
}

.margin-bottom {
  margin-bottom: 15px;
}

.leftpanel {
  background: var(--blue);
  position: fixed;
  height: 100%;
  overflow-x: hidden;
}

.rightpanel {
  position: fixed;
  height: 100%;
  overflow-x: scroll;
}

.footer {
  position: absolute;
  bottom: 0;
  margin-bottom: 0;
}

.list-group,
.list-group-item,
.dropdown-menu {
  background-color: rgba(55, 55, 55, 0);
}

.dropdown-item:hover {
  background-color: rgba(0, 0, 0, 0.1);
  background: rgba(0, 0, 0, 0.1);
}

.meddelandeContainer {
  height: 25em;
  overflow-y: scroll;
  scroll-behavior: smooth;
}

.elevdataContainer {
  border: 1px solid red;
}

.kontraktDisplay {
  margin-top: 2em;
}

.card {
  overflow-x: visible;
  margin-bottom: 2em;
}

.card-title {
  font-size: 2em;
  margin-bottom: -4px;
}

.hoverStyle {
  color: rgb(85, 85, 85);
}

.hoverStyle:hover {
  cursor: pointer;
  color: black;
}

@keyframes save-button {
  from {
    color: rgba(175, 175, 175, 1);
  }

  to {
    color: rgba(0, 200, 0, 0.8);
  }
}

.card-button:hover {
  color: rgba(0, 200, 0, 0.8);
  animation-name: save-button;
  animation-duration: 200ms;
}

.card-button {
  margin-top: -0.5em;
  margin-bottom: -0.5em;
  font-size: 1.5em;
}

.card-button-red {
  margin-top: -0.5em;
  margin-bottom: -0.5em;
  font-size: 1.5em;
}

@keyframes close-icon {
  from {
    color: black;
  }

  to {
    color: red;
  }
}

.close-icon:hover {
  color: red;
  animation-name: close-icon;
  animation-duration: 100ms;
}

.form-button {
  background-color: rgba(30, 220, 50, 0.1);
  font-size: 1.2em;
}

.checkInForm {
  margin-top: 2em;
  font-size: 1.2em;
  margin-left: -2em;
}

.red {
  background-color: red !important;
  border: 1px solid red !important;
}

.alert-popup {
  position: fixed;
  top: 5.25rem;
  left: 50%;
  z-index: 1200;
  width: min(100% - 2rem, 38rem);
  transform: translateX(-50%);
  margin-top: 0 !important;
  pointer-events: none;
}

.alert-popup .alert {
  margin: 0;
  pointer-events: auto;
  box-shadow: 0 22px 48px rgba(17, 24, 39, 0.18);
  border-radius: 1rem;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.remove-button {
  display: flex;
  position: absolute;
  border: none;
  color: red;
  font-size: 2em;
  background-color: rgb(245, 245, 245);
}

@media only screen and (max-width: 600px) {
  .nav-text {
    text-align: center !important;
    color: white !important;
    font-size: 1.6em;
  }

  .nav-logout {
    color: red !important;
  }
}

.liquid-glass-btn {
  position: relative;
  font-weight: 500;
  font-size: 1.1rem;
  color: #fff;
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 2rem;
  /* background: rgba(255, 255, 255, 0.15); */
  background: #d699ff;
  backdrop-filter: blur(15px) saturate(180%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    0 5px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.4s ease;
  overflow: hidden;
}

/* Inner highlight layer (creates "liquid" shimmer) */
.liquid-glass-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
      rgba(214, 153, 255, 1) 0%,
      rgba(171, 248, 255, 1) 20%,
      rgba(255, 153, 153, 1) 40%,
      rgba(213, 163, 180, 1) 57%,
      rgba(166, 255, 170, 1) 70%,
      rgba(230, 244, 165, 1) 78%,
      rgba(255, 216, 153, 1) 93%,
      rgba(255, 160, 153, 1) 100%);
  opacity: 0.4;
  mix-blend-mode: screen;
  transform: translateY(-100%);
  transition: transform 0.6s ease;
}

/* Glow edge */
.liquid-glass-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, #a5f3fc, #f0abfc, #a5f3fc);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
}

/* Hover animation */
.liquid-glass-btn:hover::before {
  transform: translateY(0);
}

.liquid-glass-btn:hover::after {
  opacity: 0.6;
  filter: blur(8px);
}

.liquid-glass-btn:hover {
  transform: scale(1.05);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 8px 25px rgba(0, 0, 0, 0.4);
}

.liquid-glass-btn:active {
  transform: scale(0.98);
  box-shadow:
    inset 0 2px 4px rgba(255, 255, 255, 0.2),
    0 4px 10px rgba(0, 0, 0, 0.5);
}

.sponsor-tile {
  background: #ffffff;
  border-radius: 1.5rem;
  min-height: 12rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  padding: 1.5rem;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.08);
  color: #13233f;
  text-decoration: none;
  overflow-wrap: anywhere;
  word-break: break-word;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sponsor-tile:hover {
  color: #13233f;
  transform: translateY(-3px);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.12);
}

.sponsor-tile-media {
  width: 100%;
  min-height: 5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sponsor-tile img {
  max-height: 4.75rem;
  object-fit: contain;
}

.sponsor-tile-fallback {
  color: #66768f;
  font-weight: 700;
}

.sponsor-tile-name {
  text-align: center;
  font-weight: 700;
  line-height: 1.4;
}

.newsletter-block {
  background:
    radial-gradient(circle at top, rgba(51, 144, 251, 0.12), transparent 50%),
    linear-gradient(180deg, #ffffff 0%, #f6fbff 100%);
}

.newsletter-card {
  max-width: 52rem;
  margin: 0 auto;
  padding: 2.75rem;
  border-radius: 2rem;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 24px 60px rgba(29, 53, 87, 0.12);
}

.newsletter-paragraph {
  font-size: 1.05rem;
  line-height: 1.85;
  color: #233043;
}

.newsletter-paragraph:last-child {
  margin-bottom: 0;
}

.race-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  color: #ffffff;
}

.race-card {
  padding: 1.5rem;
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 45px rgba(8, 18, 46, 0.18);
  backdrop-filter: blur(8px);
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.race-card h3 {
  margin: 0.9rem 0 0.75rem;
}

.race-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.race-date,
.race-location,
.race-note {
  margin-bottom: 0.45rem;
}

.race-date {
  font-weight: 700;
}

.race-note {
  opacity: 0.9;
}

.race-list-block {
  padding-top: 6rem;
  padding-bottom: 6rem;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.22), transparent 30%),
    linear-gradient(115deg, #1d7ff2 0%, #5f5cf0 100%);
}

.race-list-heading h2,
.race-list-heading p {
  color: #ffffff;
}

.race-list-heading p {
  max-width: 40rem;
}

.race-series-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.25rem;
}

.race-series-card {
  padding: 1.5rem;
  border-radius: 1.75rem;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 24px 54px rgba(8, 18, 46, 0.18);
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.race-series-header {
  margin-bottom: 1.15rem;
}

.race-series-header h3 {
  margin-bottom: 0.45rem;
  color: #13233f;
}

.race-series-header p {
  margin-bottom: 0;
  color: #5d6a7f;
}

.race-series-count {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 0.85rem;
  background: rgba(25, 156, 254, 0.1);
  color: #2f6bff;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.race-series-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.85rem;
}

.race-series-item {
  display: grid;
  grid-template-columns: minmax(100px, 130px) minmax(0, 1fr);
  gap: 0.9rem;
  align-items: start;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(24, 39, 75, 0.08);
}

.race-series-item:first-child {
  padding-top: 0;
  border-top: none;
}

.race-series-date {
  font-weight: 700;
  color: #13233f;
}

.race-series-details {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}

.race-series-details strong {
  color: #13233f;
}

.race-series-details span,
.race-series-details small {
  color: #5d6a7f;
}

.admin-shell {
  padding: 7rem 0 4rem;
  background:
    radial-gradient(circle at top left, rgba(25, 156, 254, 0.18), transparent 35%),
    radial-gradient(circle at top right, rgba(122, 114, 245, 0.22), transparent 35%),
    linear-gradient(180deg, #eef7ff 0%, #f7fbff 100%);
}

.admin-container {
  display: grid;
  gap: 1.5rem;
}

.admin-hero,
.admin-card,
.admin-login-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(51, 144, 251, 0.12);
  border-radius: 1.75rem;
  box-shadow: 0 24px 60px rgba(24, 39, 75, 0.12);
}

.admin-hero {
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.admin-hero h1,
.admin-card h2,
.admin-login-card h1 {
  margin-bottom: 0.35rem;
}

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

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

.admin-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.admin-card-header h2 {
  margin-bottom: 0;
}

.admin-eyebrow {
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-weight: 700;
  color: #2f6bff;
}

.admin-muted,
.admin-hint {
  color: #5d6a7f;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.admin-repeater {
  display: grid;
  gap: 1rem;
}

.admin-row {
  padding: 1rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(24, 39, 75, 0.08);
  background: #f9fbff;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.admin-image-preview {
  min-height: 5.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  border: 1px dashed rgba(24, 39, 75, 0.12);
  background: #ffffff;
  overflow: hidden;
}

.admin-image-preview img {
  max-width: 100%;
  max-height: 4.5rem;
  object-fit: contain;
}

.admin-textarea {
  min-height: 16rem;
  resize: vertical;
}

.admin-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}

.admin-login-shell {
  min-height: calc(100vh - 12rem);
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-login-card {
  width: min(100%, 34rem);
  padding: 2.25rem;
  margin: 0 auto;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.admin-login-input {
  margin: 1.5rem 0 1rem;
}

.admin-login-form {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.admin-login-footer {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.admin-login-footer .btn {
  flex: 1 1 12rem;
}

.admin-submit-button {
  margin-top: 0.5rem;
}

@media only screen and (max-width: 768px) {
  .admin-hero,
  .admin-card-header,
  .admin-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .newsletter-card {
    padding: 1.5rem;
  }
}

.newsletter-card {
  max-width: 58rem;
}

.newsletter-content {
  display: grid;
  gap: 1rem;
  font-size: 1.05rem;
  line-height: 1.85;
  color: #233043;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.newsletter-content p,
.newsletter-content div,
.newsletter-content ul,
.newsletter-content ol,
.newsletter-content h2,
.newsletter-content h3,
.newsletter-content h4,
.newsletter-content blockquote {
  margin: 0;
}

.newsletter-content ul,
.newsletter-content ol {
  padding-left: 1.35rem;
}

.newsletter-content blockquote {
  padding: 1rem 1.25rem;
  border-left: 4px solid rgba(25, 156, 254, 0.4);
  border-radius: 1rem;
  background: rgba(25, 156, 254, 0.08);
}

.newsletter-content font {
  line-height: inherit;
}

.admin-panel {
  display: grid;
  grid-template-columns: minmax(240px, 280px) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.admin-sidebar,
.admin-stat-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(51, 144, 251, 0.12);
  box-shadow: 0 24px 60px rgba(24, 39, 75, 0.12);
}

.admin-sidebar {
  position: sticky;
  top: 6.75rem;
  padding: 1.35rem;
  border-radius: 1.75rem;
}

.admin-sidebar-title {
  margin-bottom: 0.35rem;
  font-size: 1.35rem;
  font-weight: 700;
  color: #13233f;
}

.admin-sidebar-nav {
  display: grid;
  gap: 0.55rem;
  margin: 1.5rem 0;
}

.admin-sidebar-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: 1rem;
  text-decoration: none;
  color: #31405a;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
  min-width: 0;
}

.admin-sidebar-link span {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.admin-sidebar-link strong {
  min-width: 2rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(25, 156, 254, 0.08);
  text-align: center;
  font-size: 0.8rem;
}

.admin-sidebar-link:hover,
.admin-sidebar-link.is-active {
  background: #14243f;
  color: #ffffff;
  transform: translateX(2px);
}

.admin-sidebar-link:hover strong,
.admin-sidebar-link.is-active strong {
  background: rgba(255, 255, 255, 0.14);
}

.admin-sidebar-note {
  padding: 1rem;
  border-radius: 1.25rem;
  background: linear-gradient(135deg, rgba(25, 156, 254, 0.12), rgba(122, 114, 245, 0.1));
  overflow-wrap: anywhere;
  word-break: break-word;
}

.admin-sidebar-logout {
  margin-top: 1rem;
}

.admin-sidebar-logout .btn {
  width: 100%;
}

.admin-sidebar-note-label,
.admin-stat-label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #4a5d7d;
}

.admin-main {
  display: grid;
  gap: 1.5rem;
  min-width: 0;
}

.admin-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  align-items: stretch;
}

.admin-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.admin-hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.85rem;
}

.admin-stat-card {
  padding: 1rem;
  border-radius: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 8.5rem;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.admin-stat-card strong {
  font-size: 1.85rem;
  color: #13233f;
}

.admin-stat-card small {
  color: #5d6a7f;
}

.admin-card {
  overflow: hidden;
}

.admin-overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.admin-overview-card {
  display: block;
  padding: 1.5rem;
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(51, 144, 251, 0.12);
  box-shadow: 0 24px 60px rgba(24, 39, 75, 0.12);
  color: #13233f;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.admin-overview-card:hover {
  color: #13233f;
  transform: translateY(-4px);
  box-shadow: 0 28px 70px rgba(24, 39, 75, 0.16);
}

.admin-overview-card strong {
  display: block;
  font-size: 1.9rem;
  margin-bottom: 0.65rem;
}

.admin-overview-card p {
  margin-bottom: 0.85rem;
  color: #5d6a7f;
}

.admin-overview-card em {
  font-style: normal;
  font-weight: 700;
  color: #2f6bff;
}

.sponsor-admin-grid {
  display: grid;
  gap: 1rem;
}

.sponsor-admin-card {
  border: 1px solid rgba(24, 39, 75, 0.08);
  border-radius: 1.35rem;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  overflow: hidden;
  min-width: 0;
}

.sponsor-admin-card summary {
  list-style: none;
}

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

.sponsor-admin-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.15rem;
  cursor: pointer;
}

.sponsor-admin-card[open] .sponsor-admin-summary {
  border-bottom: 1px solid rgba(24, 39, 75, 0.08);
}

.sponsor-admin-summary-media {
  width: 4.75rem;
  height: 4.75rem;
  border-radius: 1.25rem;
  background: #ffffff;
  border: 1px solid rgba(24, 39, 75, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  overflow: hidden;
  flex-shrink: 0;
}

.sponsor-admin-summary-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.sponsor-admin-summary-media span {
  color: #66768f;
  font-weight: 700;
  text-align: center;
}

.sponsor-admin-summary-copy {
  min-width: 0;
  display: grid;
  gap: 0.25rem;
}

.sponsor-admin-summary-copy strong,
.sponsor-admin-summary-copy span {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.sponsor-admin-summary-copy strong {
  color: #13233f;
  font-size: 1.05rem;
}

.sponsor-admin-summary-copy span {
  color: #5d6a7f;
  font-size: 0.95rem;
}

.sponsor-admin-summary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: 999px;
  background: rgba(20, 36, 63, 0.08);
  color: #14243f;
  font-weight: 700;
  font-size: 0.9rem;
}

.sponsor-admin-card[open] .sponsor-admin-summary-action {
  background: #14243f;
  color: #ffffff;
}

.sponsor-admin-body {
  padding: 1.15rem;
}

.sponsor-admin-preview {
  min-height: 8rem;
}

.race-admin-switcher {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.9rem;
  margin-bottom: 1.5rem;
}

.race-admin-switcher-button {
  display: grid;
  gap: 0.45rem;
  padding: 1rem;
  border: 1px solid rgba(24, 39, 75, 0.08);
  border-radius: 1.35rem;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  color: #233043;
  text-align: left;
  box-shadow: 0 18px 42px rgba(24, 39, 75, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
  min-width: 0;
}

.race-admin-switcher-button span,
.race-admin-switcher-button small,
.race-admin-switcher-button strong {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.race-admin-switcher-button span {
  font-weight: 700;
  font-size: 1rem;
}

.race-admin-switcher-button small {
  color: #5d6a7f;
}

.race-admin-switcher-button strong {
  font-size: 1.4rem;
  color: #13233f;
}

.race-admin-switcher-button:hover,
.race-admin-switcher-button.is-active {
  background: #14243f;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 24px 48px rgba(24, 39, 75, 0.18);
}

.race-admin-switcher-button:hover small,
.race-admin-switcher-button.is-active small,
.race-admin-switcher-button:hover strong,
.race-admin-switcher-button.is-active strong {
  color: #ffffff;
}

.race-admin-panel {
  display: grid;
  gap: 1rem;
}

.race-admin-panel[hidden] {
  display: none !important;
}

.race-admin-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.race-admin-panel-header h3 {
  margin-bottom: 0.35rem;
}

.race-admin-row {
  background: linear-gradient(180deg, #f9fbff 0%, #f3f8ff 100%);
  border-color: rgba(24, 39, 75, 0.08);
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.race-admin-row.is-completed {
  background: linear-gradient(180deg, #f7fbf7 0%, #eef8f0 100%);
  border-color: rgba(48, 151, 84, 0.24);
  box-shadow: inset 0 0 0 1px rgba(48, 151, 84, 0.04);
}

.race-admin-row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.race-admin-empty {
  margin: 0;
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  background: rgba(25, 156, 254, 0.08);
}

.race-admin-series-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(25, 156, 254, 0.1);
  color: #2f6bff;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.race-admin-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(20, 36, 63, 0.08);
  color: #14243f;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.race-admin-status-badge.is-completed {
  background: rgba(48, 151, 84, 0.12);
  color: #1d6d3b;
}

.admin-check {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  border-radius: 1rem;
  background: rgba(20, 36, 63, 0.04);
  min-width: 0;
}

.admin-check .form-check-input {
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.admin-check .form-check-label {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.admin-field-note {
  margin: 0.65rem 0 0;
  color: #5d6a7f;
  font-size: 0.92rem;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.admin-accounts-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 1.25rem;
  align-items: start;
}

.admin-account-form-panel,
.admin-account-card {
  border: 1px solid rgba(24, 39, 75, 0.08);
  border-radius: 1.35rem;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  box-shadow: 0 18px 42px rgba(24, 39, 75, 0.08);
  min-width: 0;
}

.admin-account-form-panel {
  padding: 1.25rem;
}

.admin-account-form {
  display: grid;
  gap: 1rem;
}

.admin-account-list {
  display: grid;
  gap: 1rem;
}

.admin-account-card {
  padding: 1.15rem;
}

.admin-account-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.admin-account-card-top strong,
.admin-account-card-meta span {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.admin-account-card-top strong {
  color: #13233f;
}

.admin-account-card-meta {
  display: grid;
  gap: 0.35rem;
  color: #5d6a7f;
}

.admin-account-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(25, 156, 254, 0.1);
  color: #2f6bff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.images-page-shell {
  padding: 7rem 0 4rem;
  background:
    radial-gradient(circle at top left, rgba(25, 156, 254, 0.12), transparent 30%),
    radial-gradient(circle at top right, rgba(122, 114, 245, 0.16), transparent 34%),
    linear-gradient(180deg, #f5f9ff 0%, #ffffff 100%);
}

.images-page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.95fr);
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.images-surface {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(51, 144, 251, 0.12);
  border-radius: 1.75rem;
  box-shadow: 0 24px 60px rgba(24, 39, 75, 0.12);
}

.images-page-copy {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
}

.images-page-copy h1 {
  margin-bottom: 0.75rem;
  color: #13233f;
}

.images-page-copy p {
  color: #5d6a7f;
  max-width: 40rem;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.images-page-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

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

.images-page-stat {
  padding: 1rem;
  border-radius: 1.25rem;
  background: linear-gradient(180deg, #f7fbff 0%, #eef5ff 100%);
}

.images-page-stat span {
  display: block;
  margin-bottom: 0.3rem;
  color: #4a5d7d;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.images-page-stat strong {
  display: block;
  font-size: 1.8rem;
  color: #13233f;
}

.images-page-feature {
  position: relative;
  min-height: 28rem;
  padding: 2rem;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.images-page-feature::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(19, 35, 63, 0.1) 0%, rgba(19, 35, 63, 0.82) 100%);
}

.images-page-feature-content {
  position: relative;
  z-index: 1;
  color: #ffffff;
  max-width: 20rem;
}

.images-page-feature-content p {
  margin-bottom: 0.45rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 700;
}

.images-page-feature-content h2 {
  margin-bottom: 0.6rem;
}

.images-page-feature-content span {
  display: block;
  color: rgba(255, 255, 255, 0.84);
}

.images-collection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.images-collection-card {
  display: grid;
  gap: 1rem;
  padding: 1rem;
}

.images-collection-thumb {
  height: 12rem;
  border-radius: 1.25rem;
  overflow: hidden;
}

.images-collection-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.images-collection-card h3 {
  margin-bottom: 0.35rem;
  color: #13233f;
}

.images-collection-card p {
  margin-bottom: 0;
  color: #5d6a7f;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.images-collection-meta {
  color: #2f6bff;
  font-weight: 700;
}

.images-gallery-heading {
  margin-bottom: 1.25rem;
}

.images-gallery-heading h2 {
  color: #13233f;
}

.images-gallery-heading p {
  color: #5d6a7f;
  max-width: 40rem;
}

.images-gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1rem;
}

.images-gallery-card {
  position: relative;
  grid-column: span 4;
  min-height: 18rem;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 22px 48px rgba(24, 39, 75, 0.12);
  text-decoration: none;
  background: #dfe7f5;
}

.images-gallery-card.is-feature {
  grid-column: span 6;
  min-height: 24rem;
}

.images-gallery-card.is-tall {
  min-height: 24rem;
}

.images-gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.images-gallery-card:hover img {
  transform: scale(1.04);
}

.images-gallery-overlay {
  position: absolute;
  inset: auto 0 0;
  padding: 1rem;
  display: grid;
  gap: 0.25rem;
  background: linear-gradient(180deg, transparent 0%, rgba(19, 35, 63, 0.82) 100%);
  color: #ffffff;
}

.images-gallery-overlay small {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  opacity: 0.88;
}

.images-gallery-overlay strong {
  font-size: 1rem;
}

.newsletter-editor-shell {
  border: 1px solid rgba(24, 39, 75, 0.08);
  border-radius: 1.15rem;
  overflow: hidden;
  background: #ffffff;
}

.newsletter-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0.9rem;
  border-bottom: 1px solid rgba(24, 39, 75, 0.08);
  background: linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
}

.newsletter-tool-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.newsletter-tool-button,
.newsletter-tool-select,
.newsletter-tool-color {
  border: 1px solid rgba(24, 39, 75, 0.12);
  border-radius: 0.9rem;
  background: #ffffff;
  color: #22324d;
  min-height: 2.65rem;
}

.newsletter-tool-button {
  min-width: 2.65rem;
  padding: 0.55rem 0.8rem;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.04);
}

.newsletter-tool-button:hover {
  background: #14243f;
  color: #ffffff;
}

.newsletter-tool-select {
  padding: 0.55rem 0.85rem;
}

.newsletter-tool-color {
  width: 3rem;
  padding: 0.2rem;
}

.newsletter-editor {
  min-height: 20rem;
  padding: 1.25rem;
  outline: none;
  font-size: 1.05rem;
  line-height: 1.8;
  color: #233043;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.newsletter-editor:empty::before {
  content: attr(data-placeholder);
  color: #8a96ab;
}

.newsletter-editor p,
.newsletter-editor div,
.newsletter-editor ul,
.newsletter-editor ol,
.newsletter-editor h2,
.newsletter-editor h3,
.newsletter-editor h4,
.newsletter-editor blockquote {
  margin: 0 0 1rem;
}

.newsletter-editor ul,
.newsletter-editor ol {
  padding-left: 1.5rem;
}

.newsletter-editor font {
  line-height: inherit;
}

@media only screen and (max-width: 1100px) {
  .admin-panel {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: relative;
    top: 0;
  }

  .admin-sidebar-nav {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }

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

  .sponsor-admin-summary {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .sponsor-admin-summary-action {
    grid-column: 1 / -1;
    width: 100%;
  }

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

  .admin-accounts-layout {
    grid-template-columns: 1fr;
  }

  .images-page-stats {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }

  .images-gallery-card,
  .images-gallery-card.is-feature {
    grid-column: span 6;
  }
}

@media only screen and (max-width: 768px) {
  .newsletter-toolbar {
    padding: 0.75rem;
  }

  .newsletter-tool-group {
    width: 100%;
  }

  .newsletter-tool-button,
  .newsletter-tool-select {
    flex: 1 1 auto;
  }

  .newsletter-tool-color {
    width: 100%;
  }

  .race-series-item {
    grid-template-columns: 1fr;
  }

  .race-admin-panel-header,
  .images-page-actions,
  .admin-account-card-top {
    flex-direction: column;
    align-items: stretch;
  }

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

  .images-gallery-card,
  .images-gallery-card.is-feature {
    grid-column: span 1;
    min-height: 16rem;
  }
}
