@font-face {
  font-family: Nunito;
  src: url("/assets/nunito.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: Nunito, Arial, sans-serif;
  color: #172b49;
  background: #f1f3f6;
  font-size: 15px;
  line-height: 1.5;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
a {
  color: inherit;
}
button,
.btn {
  cursor: pointer;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 800;
  border-radius: 8px;
  padding: 13px 19px;
  min-height: 46px;
  text-decoration: none;
  background: #1d3459;
  color: white;
  transition:
    background 0.15s,
    transform 0.15s;
}
button:hover,
.btn:hover {
  background: #2e4b78;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
button.secondary,
.btn.secondary {
  background: #e8edf4;
  color: #1d3459;
}
button.ghost {
  background: transparent;
  color: inherit;
  padding: 8px;
}
button.danger {
  background: #f8e9e9;
  color: #ad2525;
}
:focus-visible {
  outline: 3px solid #518be7;
  outline-offset: 3px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 36px;
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -1px;
}
h2 {
  font-size: 23px;
  font-weight: 900;
  letter-spacing: -0.4px;
}
h3 {
  font-size: 18px;
  font-weight: 800;
}
small,
.muted {
  color: #6a778b;
}
.eyebrow {
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1.8px;
}
.row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.between {
  justify-content: space-between;
}
.stack {
  display: grid;
  gap: 18px;
}
.card {
  background: white;
  border: 1px solid #e4e8ee;
  border-radius: 14px;
  padding: 24px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  border-radius: 30px;
  padding: 5px 10px;
  background: #eaf3ed;
  color: #287146;
}
.pill.neutral {
  background: #edf0f5;
  color: #5a6980;
}
.pill.blue {
  background: #e5efff;
  color: #1d4c91;
}
.dot {
  width: 6px;
  height: 6px;
  background: currentColor;
  border-radius: 50%;
}
.logo {
  width: 45px;
  height: 45px;
  object-fit: contain;
}
.error {
  padding: 14px 18px;
  background: #fff0ef;
  border: 1px solid #e4aaa5;
  border-radius: 8px;
  color: #91392e;
  margin: 12px 0;
}
.success {
  padding: 14px 18px;
  background: #eaf5ef;
  border-radius: 8px;
  color: #267145;
}
.empty {
  padding: 28px;
  text-align: center;
  color: #64738a;
}
.loading {
  padding: 60px 25px;
  text-align: center;
  color: #708097;
}
label {
  display: grid;
  gap: 7px;
  font-size: 13px;
  font-weight: 800;
}
input,
select,
textarea {
  width: 100%;
  background: #fff;
  border: 1px solid #d4dce7;
  border-radius: 8px;
  padding: 12px;
  color: #182d4c;
  outline-offset: 3px;
}
textarea {
  resize: vertical;
  min-height: 100px;
}
.field {
  margin-bottom: 16px;
}
.divider {
  border: 0;
  border-top: 1px solid #e6ebf1;
  margin: 20px 0;
}
.match-logos {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: center;
}
.match-logos > div {
  width: 40%;
  font-size: 13px;
  font-weight: 800;
}
.match-logos img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  display: block;
  margin: 0 auto 10px;
}
.match-logos .versus {
  font-size: 22px;
  opacity: 0.5;
  font-weight: 600;
}
.news-image {
  width: 100%;
  height: 170px;
  object-fit: cover;
  display: block;
}
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 27px 0 14px;
}
.section-title a {
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}
.note {
  font-size: 12px;
  line-height: 1.6;
  color: #738096;
}
#toast {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%);
  background: #152c4c;
  color: white;
  padding: 13px 24px;
  border-radius: 9px;
  z-index: 30;
  box-shadow: 0 8px 30px #0003;
  max-width: 90%;
  text-align: center;
}
#toast:empty {
  display: none;
}
/* Fan application */
.fan-body {
  background: #e8edf3;
}
.fan-shell {
  max-width: 490px;
  min-height: 100vh;
  margin: auto;
  background: #f7f8fa;
  padding-bottom: 100px;
  box-shadow: 0 0 90px #1d345912;
}
.fan-header {
  padding: 20px 24px;
  background: #1d3459;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.fan-header .brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand strong {
  font-weight: 900;
  letter-spacing: 0.6px;
}
.brand small {
  display: block;
  color: #b9c7db;
  font-size: 10px;
  letter-spacing: 1.4px;
}
.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #ffffff17;
  border: 1px solid #ffffff30;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
}
.fan-content {
  padding: 24px;
}
.greeting {
  margin-bottom: 22px;
}
.greeting h1 {
  font-size: 30px;
  margin-top: 4px;
}
.hero-match {
  background: #1d3459;
  color: white;
  border: 0;
  position: relative;
  overflow: hidden;
  padding: 24px;
  border-radius: 14px;
}
.hero-match:after {
  content: "1901";
  position: absolute;
  bottom: -35px;
  right: -12px;
  font-size: 130px;
  font-weight: 900;
  opacity: 0.035;
  pointer-events: none;
}
.hero-match .match-logos {
  margin: 28px 0;
}
.hero-match .meta {
  text-align: center;
  color: #ccd6e4;
  font-size: 12px;
  margin-bottom: 20px;
}
.hero-match .btn {
  background: #fff;
  color: #1d3459;
  width: 100%;
  position: relative;
  z-index: 1;
}
.campaign {
  border-left: 4px solid #537db9;
}
.campaign .eyebrow {
  color: #446a9e;
  margin-bottom: 9px;
}
.campaign h2 {
  font-size: 23px;
  margin-bottom: 8px;
}
.campaign p {
  font-size: 14px;
  color: #52647c;
  margin-bottom: 17px;
  white-space: pre-wrap;
}
.campaign .btn {
  width: 100%;
}
.news-card {
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e3e8ef;
  text-decoration: none;
  display: block;
}
.news-card .copy {
  padding: 17px;
}
.news-card h3 {
  margin-top: 7px;
  line-height: 1.35;
}
.news-list {
  display: grid;
  gap: 14px;
}
.fan-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(100%, 490px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 10px 8px max(14px, env(safe-area-inset-bottom));
  background: #fff;
  border-top: 1px solid #e2e8f1;
  z-index: 20;
}
.fan-nav button {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 7px 2px;
  min-height: 55px;
  font-size: 10px;
  background: transparent;
  color: #7c8899;
  border-radius: 8px;
}
.fan-nav button.active {
  color: #1d3459;
  background: #edf2f9;
}
.match-row {
  padding: 18px 0;
  border-bottom: 1px solid #e5eaf1;
  display: grid;
  gap: 8px;
}
.match-row:last-child {
  border-bottom: 0;
}
.match-row .clubs {
  font-weight: 800;
  font-size: 16px;
}
.tab-group {
  display: flex;
  gap: 7px;
  margin: 20px 0;
}
.tab-group button {
  padding: 9px 14px;
  background: #e8edf3;
  color: #68778c;
  font-size: 12px;
}
.tab-group button.active {
  background: #1d3459;
  color: #fff;
}
.ticket {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  border: 1px solid #e0e5ed;
}
.ticket-top {
  background: #1d3459;
  padding: 27px 24px;
  color: #fff;
}
.ticket-top h2 {
  margin: 15px 0 9px;
}
.ticket-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 24px;
  border-bottom: 2px dashed #dae0e9;
}
.ticket-info strong {
  display: block;
  font-size: 19px;
}
.ticket-bottom {
  padding: 24px;
}
.profile-head {
  text-align: center;
  padding: 25px;
}
.profile-head .avatar {
  background: #1d3459;
  color: white;
  width: 70px;
  height: 70px;
  font-size: 22px;
  margin: 0 auto 14px;
}
.footer-wordmark {
  text-align: center;
  color: #a3adbb;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 2px;
  margin-top: 32px;
}
.source-link {
  font-size: 12px;
  color: #667891;
  text-align: center;
  display: block;
  margin-top: 18px;
}
/* Internal workspace */
.admin-layout {
  display: grid;
  grid-template-columns: 230px 1fr;
  min-height: 100vh;
}
.sidebar {
  background: #1d3459;
  color: #c3cee0;
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}
.sidebar .brand {
  color: white;
  padding: 0 8px 32px;
}
.sidebar nav {
  display: grid;
  gap: 8px;
}
.sidebar nav button {
  justify-content: flex-start;
  background: transparent;
  color: #c3cee0;
  font-weight: 700;
}
.sidebar nav button.active {
  background: #ffffff12;
  color: white;
}
.sidebar-footer {
  margin-top: auto;
  font-size: 11px;
  padding: 18px 8px;
  border-top: 1px solid #ffffff1a;
}
.sidebar-footer strong {
  color: #fff;
}
.admin-main {
  min-width: 0;
}
.topbar {
  padding: 18px 36px;
  background: white;
  border-bottom: 1px solid #e4e9f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
}
.admin-content {
  padding: 34px 36px;
  max-width: 1480px;
  margin: 0 auto;
}
.page-heading {
  margin-bottom: 28px;
}
.page-heading h1 {
  font-size: 32px;
  margin: 5px 0 9px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}
.stat {
  background: white;
  border: 1px solid #e1e6ee;
  padding: 23px;
  border-radius: 12px;
}
.stat .value {
  font-size: 33px;
  font-weight: 900;
  margin: 8px 0 2px;
}
.stat .row {
  color: #61728b;
  font-size: 12px;
}
.workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.85fr);
  gap: 24px;
  align-items: start;
}
.ai-intro {
  background: #1d3459;
  color: white;
  padding: 24px;
  border-radius: 12px;
  margin-bottom: 22px;
}
.ai-intro p {
  color: #c3cee0;
  font-size: 13px;
  margin-top: 7px;
}
.steps {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  color: #d5dfed;
  font-size: 11px;
  flex-wrap: wrap;
}
.steps span {
  background: #ffffff10;
  padding: 6px 9px;
  border-radius: 5px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.phone-preview {
  background: #f4f6fa;
  border: 1px solid #e1e7f0;
  border-radius: 22px;
  padding: 12px;
  max-width: 350px;
  margin: 20px auto;
}
.phone-preview .preview-top {
  padding: 15px 17px;
  background: #1d3459;
  color: white;
  border-radius: 13px 13px 0 0;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  gap: 10px;
  align-items: center;
}
.phone-preview .campaign {
  margin: 16px 4px;
}
.phone-preview .campaign h2 {
  font-size: 21px;
}
.phone-preview .campaign p {
  font-size: 13px;
}
.source-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 0;
  border-top: 1px solid #ebeff4;
  font-size: 12px;
  gap: 10px;
}
.source-row strong {
  display: block;
  font-size: 13px;
}
.history-item {
  border-top: 1px solid #e4e9f0;
  padding: 20px 0;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  align-items: center;
}
.history-item h3 {
  margin: 7px 0;
}
.history-item p {
  font-size: 12px;
  color: #718097;
}
.login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: #1d3459;
  padding: 25px;
}
.login-card {
  width: 410px;
  max-width: 100%;
  padding: 36px;
  background: #fff;
  border-radius: 16px;
}
.login-card .logo {
  width: 65px;
  height: 65px;
  margin-bottom: 25px;
}
.login-card h1 {
  font-size: 28px;
  margin-bottom: 9px;
}
.login-card form {
  margin-top: 25px;
}
.login-card button {
  width: 100%;
  margin-top: 12px;
}
.login-card small {
  display: block;
  margin-top: 22px;
}
.hidden {
  display: none !important;
}
@media (max-width: 1000px) {
  .admin-layout {
    grid-template-columns: 180px 1fr;
  }
  .admin-content {
    padding: 25px;
  }
  .workspace-grid {
    grid-template-columns: 1fr;
  }
  .sidebar {
    padding: 24px 12px;
  }
  .sidebar .brand {
    padding: 0 0 25px;
  }
  .topbar {
    padding: 18px 25px;
  }
}
@media (max-width: 650px) {
  .admin-layout {
    display: block;
  }
  .sidebar {
    height: auto;
    position: static;
    padding: 15px;
  }
  .sidebar .brand {
    padding: 0 0 15px;
  }
  .sidebar nav {
    display: flex;
    flex-wrap: wrap;
  }
  .sidebar-footer {
    display: none;
  }
  .admin-content {
    padding: 20px;
  }
  .stats {
    gap: 9px;
  }
  .stat {
    padding: 13px;
  }
  .stat .value {
    font-size: 25px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .topbar {
    padding: 12px 20px;
  }
  .history-item {
    align-items: start;
    flex-direction: column;
  }
  .fan-content {
    padding: 20px;
  }
  .card {
    padding: 21px;
  }
  .page-heading h1 {
    font-size: 27px;
  }
}
