:root {
  --ink: #f7f9ff;
  --muted: #aab6d6;
  --navy: #10182d;
  --navy-2: #172345;
  --blue: #253969;
  --red: #ed1f2b;
  --panel: rgba(15, 24, 48, 0.84);
  --line: rgba(255, 255, 255, 0.12);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
  --bs-body-font-family: "Space Grotesk", sans-serif;
  --bs-body-color: var(--ink);
  --bs-body-bg: #07101f;
  --bs-link-color: #ff6870;
  --bs-link-hover-color: #ff8790;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  color: var(--ink);
  background: #07101f;
  font-family: "Space Grotesk", sans-serif;
}

.site-backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 18% 20%, rgba(237, 31, 43, 0.22), transparent 28rem),
    radial-gradient(circle at 82% 10%, rgba(50, 77, 145, 0.45), transparent 32rem),
    linear-gradient(145deg, #080d18 0%, #101a34 48%, #080d18 100%);
}

.site-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black, transparent 86%);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px);
  background: rgba(7, 16, 31, 0.82);
  border-bottom: 1px solid var(--line);
}

.site-navbar {
  min-height: 104px;
  padding-block: 12px;
}

.brand {
  min-height: 78px;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  font-family: "Rajdhani", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand-text {
  white-space: nowrap;
}

.brand-logo {
  width: 86px;
  height: 76px;
  object-fit: contain;
  object-position: center;
  flex: 0 0 auto;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.42));
}

.brand-text strong {
  color: var(--red);
}

.site-navbar .nav-link {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 10px 14px !important;
  color: var(--muted);
}

.site-navbar .nav-link:hover,
.site-navbar .nav-link:focus {
  color: var(--ink);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.06);
}

.navbar-toggler {
  border-color: var(--line);
  border-radius: 999px;
  padding: 10px 12px;
}

.login-links form {
  margin: 0;
}

.login-links button.nav-link {
  width: 100%;
  text-align: left;
  background: transparent;
}

.site-main {
  padding-top: 54px;
  padding-bottom: 84px;
}

.hero-panel,
.page-heading,
.content-panel,
.admin-shell {
  border: 1px solid var(--line);
  border-radius: 34px;
  background: linear-gradient(145deg, rgba(21, 34, 68, 0.88), rgba(8, 14, 28, 0.84));
  box-shadow: var(--shadow);
}

.hero-panel {
  min-height: 560px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 40px;
  padding: clamp(32px, 6vw, 76px);
  overflow: hidden;
  position: relative;
}

.hero-panel::before {
  content: "";
  position: absolute;
  right: -12%;
  top: 8%;
  width: 46%;
  height: 66%;
  background: linear-gradient(135deg, rgba(237, 31, 43, 0.28), rgba(37, 57, 105, 0.18));
  transform: skewX(-18deg);
  filter: blur(1px);
}

.hero-panel h1,
.page-heading h1,
.admin-heading h1,
.content-panel h1 {
  margin: 0;
  font-family: "Rajdhani", sans-serif;
  font-size: clamp(3.1rem, 8vw, 7.8rem);
  line-height: 0.88;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}

.split-title span {
  display: block;
}

.hero-panel p,
.page-heading p,
.content-panel p,
.admin-heading p {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.8;
}

.hero-panel img {
  position: relative;
  width: min(420px, 100%);
  justify-self: center;
  filter: drop-shadow(0 26px 60px rgba(0,0,0,0.42));
  animation: floatIn 900ms ease both;
}

.eyebrow {
  margin: 0 0 14px;
  color: #ff5962 !important;
  font-family: "Rajdhani", sans-serif;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.button-link,
.danger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 13px 20px;
  color: #fff !important;
  background: linear-gradient(135deg, var(--red), #ff5962);
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 16px 36px rgba(237, 31, 43, 0.25);
}

.danger-button {
  background: #d5202d;
}

.page-heading {
  padding: clamp(28px, 5vw, 56px);
  margin-bottom: 24px;
}

.page-heading h1 {
  font-size: clamp(2.8rem, 7vw, 5.6rem);
}

.content-panel,
.admin-shell {
  padding: clamp(28px, 5vw, 56px);
}

.content-panel h2 {
  margin-top: 1.8rem;
  font-family: "Rajdhani", sans-serif;
  font-size: 2rem;
  color: #fff;
}

.content-lead p {
  font-size: 1.35rem;
  color: #fff;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 30px 0;
}

.feature-grid article {
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
  background: rgba(255,255,255,0.055);
}

.admin-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.admin-heading h1 {
  font-size: clamp(2.4rem, 6vw, 4.8rem);
}

.admin-table {
  --bs-table-bg: transparent;
  --bs-table-color: var(--muted);
  --bs-table-border-color: var(--line);
  --bs-table-hover-bg: rgba(255, 255, 255, 0.055);
  --bs-table-hover-color: var(--ink);
}

.admin-table th,
.admin-table td:first-child {
  color: var(--ink);
}

.table-actions {
  white-space: nowrap;
}

.editor-form label {
  color: var(--ink);
  font-weight: 700;
}

.editor-form .form-control,
.editor-form .form-check-input {
  border-color: var(--line);
  color: var(--ink);
  background-color: rgba(255, 255, 255, 0.08);
}

.editor-form .form-control:focus,
.editor-form .form-check-input:focus {
  border-color: rgba(237, 31, 43, 0.7);
  box-shadow: 0 0 0 0.25rem rgba(237, 31, 43, 0.18);
}

.editor-form .form-check-input:checked {
  border-color: var(--red);
  background-color: var(--red);
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 18px;
}

.text-danger {
  color: #ff8087 !important;
}

.site-footer {
  padding-top: 24px;
  padding-bottom: 40px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.site-footer div {
  display: grid;
  gap: 4px;
}

.site-footer a,
.admin-heading a,
.form-actions a {
  color: var(--ink);
  text-decoration: none;
}

.footer-company {
  max-width: 720px;
}

.footer-links {
  display: flex !important;
  flex-wrap: wrap;
  align-content: start;
  justify-content: flex-end;
  gap: 10px 18px !important;
}

.footer-links a,
.footer-company a {
  color: var(--ink);
  font-weight: 700;
}

@keyframes floatIn {
  from { opacity: 0; transform: translateY(18px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 1199.98px) {
  .site-navbar .navbar-collapse {
    padding-top: 18px;
  }

  .site-navbar .nav-link {
    border-radius: 16px;
  }

  .login-links {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 860px) {
  .site-navbar {
    min-height: 92px;
  }

  .brand {
    min-height: 66px;
  }

  .brand-logo {
    width: 72px;
    height: 64px;
  }

  .brand-text {
    font-size: 1.22rem;
  }

  .hero-panel {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-panel img {
    width: min(280px, 80%);
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .admin-heading,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 420px) {
  .brand-text {
    display: none;
  }
}

.stat-card,
.detail-card {
  height: 100%;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.055);
}

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

.stat-card strong,
.detail-card strong {
  color: var(--ink);
  font-family: "Rajdhani", sans-serif;
  font-size: 2rem;
  line-height: 1;
}

.detail-card strong {
  font-size: 1.35rem;
}

.editor-form .form-select {
  border-color: var(--line);
  color: var(--ink);
  background-color: rgba(255, 255, 255, 0.08);
}

.editor-form .form-select:focus {
  border-color: rgba(237, 31, 43, 0.7);
  box-shadow: 0 0 0 0.25rem rgba(237, 31, 43, 0.18);
}

.sub-panel {
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: clamp(20px, 3vw, 34px);
  background: rgba(255, 255, 255, 0.045);
}

.sub-panel h2 {
  margin: 0;
  color: var(--ink);
  font-family: "Rajdhani", sans-serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  text-transform: uppercase;
}

.guardian-warning {
  border: 1px solid rgba(255, 193, 7, 0.38);
  color: #fff4cf;
  background: rgba(255, 193, 7, 0.14);
}

.sponsor-section {
  margin-top: 34px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 34px;
  padding: clamp(28px, 5vw, 56px);
  background: linear-gradient(135deg, rgba(237, 31, 43, 0.16), rgba(11, 19, 39, 0.92) 42%, rgba(37, 57, 105, 0.22));
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.sponsor-section::before {
  content: "";
  position: absolute;
  inset: auto -10% -30% auto;
  width: 420px;
  height: 420px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  filter: blur(2px);
}

.sponsor-section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
  position: relative;
}

.sponsor-section-header h2 {
  margin: 0;
  color: var(--ink);
  font-family: "Rajdhani", sans-serif;
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  line-height: 0.95;
  text-transform: uppercase;
}

.sponsor-section-header img {
  width: clamp(90px, 12vw, 150px);
  opacity: 0.16;
  filter: drop-shadow(0 20px 60px rgba(0,0,0,0.3));
}

.sponsor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  position: relative;
}

.sponsor-card {
  min-height: 168px;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 22px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.075);
  text-align: center;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.sponsor-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.11);
  color: var(--ink);
}

.sponsor-logo-plate {
  width: 100%;
  min-height: 96px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 18px;
  padding: 16px;
  background: #ffffff;
  box-shadow:
    inset 0 0 0 1px rgba(10, 18, 34, 0.04),
    0 12px 28px rgba(0, 0, 0, 0.2);
}

.sponsor-card .sponsor-logo-plate {
  min-height: 110px;
}

.sponsor-logo-plate img {
  width: min(240px, 100%);
  max-height: 88px;
  object-fit: contain;
}

.sponsor-card span {
  color: var(--ink);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.sponsor-logo-thumb,
.sponsor-logo-preview {
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
}

.sponsor-logo-thumb {
  width: 92px;
  height: 54px;
}

.sponsor-logo-thumb img,
.sponsor-logo-preview img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.sponsor-logo-preview {
  width: min(320px, 100%);
  height: 140px;
  padding: 18px;
}

.admin-hub-logo {
  width: clamp(90px, 12vw, 150px);
  opacity: 0.22;
  filter: drop-shadow(0 20px 60px rgba(0, 0, 0, 0.3));
}

.admin-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}

.admin-hub-card {
  min-height: 210px;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 26px;
  color: var(--ink);
  background: linear-gradient(145deg, rgba(255,255,255,0.08), rgba(255,255,255,0.035));
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.admin-hub-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,0.26);
  background: linear-gradient(145deg, rgba(237,31,43,0.18), rgba(255,255,255,0.06));
  color: var(--ink);
}

.admin-hub-card span {
  color: #ff5962;
  font-family: "Rajdhani", sans-serif;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.admin-hub-card strong {
  display: block;
  margin-top: 10px;
  font-family: "Rajdhani", sans-serif;
  font-size: 2rem;
  line-height: 1;
  text-transform: uppercase;
}

.admin-hub-card p {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

/* Native select dropdowns render their option list outside normal CSS on some browsers.
   Force readable colors so non-hovered options do not disappear on dark admin forms. */
.editor-form .form-select,
.editor-form .form-select option,
.editor-form select,
.editor-form select option {
  color: #111827;
  background-color: #ffffff;
}

.editor-form .form-select {
  border-color: var(--line);
}

.home-content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 24px;
  align-items: start;
  margin-top: 24px;
}

.home-content-layout .content-panel {
  margin: 0;
}

.home-sponsor-sidebar {
  position: sticky;
  top: 132px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 30px;
  padding: 24px;
  background: linear-gradient(160deg, rgba(237, 31, 43, 0.16), rgba(12, 22, 44, 0.94) 48%, rgba(37, 57, 105, 0.2));
  box-shadow: var(--shadow);
}

.home-sponsor-header h2 {
  margin: 0 0 20px;
  color: var(--ink);
  font-family: "Rajdhani", sans-serif;
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  line-height: 0.95;
  text-transform: uppercase;
}

.home-sponsor-tier + .home-sponsor-tier {
  margin-top: 24px;
}

.home-sponsor-tier h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  color: #ff6870;
  font-family: "Rajdhani", sans-serif;
  font-size: 1.15rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.home-sponsor-tier h3::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.home-sponsor-list {
  display: grid;
  gap: 10px;
}

.home-sponsor-item {
  min-height: 148px;
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 16px 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.075);
  text-align: center;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.home-sponsor-item:hover {
  transform: translateX(-3px);
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
  color: var(--ink);
}

.home-sponsor-item .sponsor-logo-plate {
  min-height: 92px;
}

.home-sponsor-item .sponsor-logo-plate img {
  width: min(220px, 100%);
  max-height: 72px;
  object-fit: contain;
}

.home-sponsor-item span {
  color: var(--ink);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: none;
}

@media (max-width: 980px) {
  .home-content-layout {
    grid-template-columns: 1fr;
  }

  .home-sponsor-sidebar {
    position: static;
  }
}

.home-page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 24px;
  align-items: start;
}

.home-main-column {
  display: grid;
  gap: 24px;
  min-width: 0;
}

.home-main-column .content-panel {
  margin: 0;
}

.home-hero-panel {
  min-height: 520px;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 0.55fr);
  padding: clamp(28px, 5vw, 62px);
}

.home-hero-panel h1 {
  font-size: clamp(2.8rem, 6.8vw, 6.6rem);
}

.home-hero-panel img {
  width: min(300px, 100%);
}

.home-page-layout .home-sponsor-sidebar {
  margin-top: 0;
}

.outbox-error {
  max-width: 320px;
  white-space: normal;
  word-break: break-word;
}

.email-body-preview {
  margin: 18px 0 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  color: var(--ink);
  background: rgba(0, 0, 0, 0.24);
  white-space: pre-wrap;
}

@media (max-width: 1120px) {
  .home-page-layout {
    grid-template-columns: 1fr;
  }

  .home-sponsor-sidebar {
    position: static;
  }
}

.calendar-heading {
  overflow: hidden;
  position: relative;
}

.calendar-heading::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -120px;
  width: 320px;
  height: 320px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: radial-gradient(circle, rgba(237, 31, 43, 0.24), transparent 62%);
}

.calendar-panel h2 {
  margin: 0;
  font-family: "Rajdhani", sans-serif;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1;
  text-transform: uppercase;
}

.calendar-section-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.activity-timeline {
  display: grid;
  gap: 18px;
}

.activity-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 22px;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: clamp(18px, 3vw, 28px);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035));
}

.activity-date {
  min-height: 96px;
  display: grid;
  place-items: center;
  align-content: center;
  border-radius: 24px;
  color: #fff;
  background: linear-gradient(160deg, var(--red), #263b70);
  box-shadow: 0 18px 40px rgba(237, 31, 43, 0.2);
  text-align: center;
  text-transform: uppercase;
}

.activity-date span {
  font-family: "Rajdhani", sans-serif;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.activity-date strong {
  font-family: "Rajdhani", sans-serif;
  font-size: 3rem;
  line-height: 0.9;
}

.activity-body {
  min-width: 0;
}

.activity-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.activity-meta span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 11px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.07);
  font-size: 0.88rem;
}

.activity-body p {
  max-width: 780px;
}

.empty-state {
  border: 1px dashed rgba(255, 255, 255, 0.22);
  border-radius: 24px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.045);
}

.empty-state h3 {
  margin: 0 0 8px;
  font-family: "Rajdhani", sans-serif;
  font-size: 2rem;
  text-transform: uppercase;
}

.past-activity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.past-activity-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.055);
}

.past-activity-card span,
.past-activity-card p {
  color: var(--muted);
}

.past-activity-card strong {
  display: block;
  margin: 8px 0;
  color: var(--ink);
}

.home-activity-panel h2 {
  margin: 0;
  font-family: "Rajdhani", sans-serif;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
  text-transform: uppercase;
}

.home-activity-panel .calendar-section-header a {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.home-activity-list {
  display: grid;
  gap: 12px;
}

.home-activity-card {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 16px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.055);
  text-decoration: none;
}

.home-activity-card:hover {
  border-color: rgba(255, 255, 255, 0.28);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.095);
}

.home-activity-card span {
  grid-row: span 2;
  border-radius: 18px;
  padding: 12px 8px;
  color: #fff;
  background: var(--red);
  font-family: "Rajdhani", sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  text-align: center;
}

.home-activity-card strong,
.home-activity-card small {
  min-width: 0;
}

.home-activity-card small {
  color: var(--muted);
}

@media (max-width: 640px) {
  .activity-card {
    grid-template-columns: 1fr;
  }

  .activity-date {
    min-height: 72px;
    grid-template-columns: auto auto;
    justify-content: start;
    gap: 10px;
    padding: 14px 18px;
  }

  .activity-date strong {
    font-size: 2.4rem;
  }
}

.contact-table-wrap {
  margin-top: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.055);
}

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

.contact-table th,
.contact-table td {
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.contact-table th {
  color: var(--ink);
  background: rgba(237, 31, 43, 0.15);
  font-family: "Rajdhani", sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-table tr:last-child td {
  border-bottom: 0;
}

.contact-table td:first-child {
  color: #ff6870;
  font-weight: 700;
}

.contact-table a {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.contact-table a:hover,
.contact-table a:focus {
  color: #ff8790;
  text-decoration: underline;
}

.terms-panel h2 {
  margin-top: 2rem;
}

.terms-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 30px 0;
}

.terms-summary-grid article {
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035));
}

.terms-summary-grid span {
  color: #ff6870;
  font-family: "Rajdhani", sans-serif;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.terms-summary-grid strong {
  display: block;
  margin: 8px 0;
  color: var(--ink);
  font-family: "Rajdhani", sans-serif;
  font-size: 3rem;
  line-height: 1;
}

.terms-updated {
  margin-top: 32px;
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 720px) {
  .contact-table,
  .contact-table thead,
  .contact-table tbody,
  .contact-table tr,
  .contact-table th,
  .contact-table td {
    display: block;
  }

  .contact-table thead {
    display: none;
  }

  .contact-table tr {
    padding: 16px 18px;
    border-bottom: 1px solid var(--line);
  }

  .contact-table tr:last-child {
    border-bottom: 0;
  }

  .contact-table td {
    padding: 4px 0;
    border-bottom: 0;
  }

  .contact-table td::before {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-family: "Rajdhani", sans-serif;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }

  .contact-table td:nth-child(1)::before {
    content: "Rolle";
  }

  .contact-table td:nth-child(2)::before {
    content: "Namn";
  }

  .contact-table td:nth-child(3)::before {
    content: "E-post";
  }

  .terms-summary-grid {
    grid-template-columns: 1fr;
  }
}
