:root {
  --hp-bg: #050B14;
  --hp-bg-2: #071424;
  --hp-sidebar: #06111F;
  --hp-surface: #0B1A2B;
  --hp-surface-2: #102238;
  --hp-card: rgba(12, 27, 45, .92);
  --hp-border: rgba(255, 255, 255, .10);
  --hp-border-strong: rgba(255, 255, 255, .18);
  --hp-green: #22C55E;
  --hp-green-2: #16A34A;
  --hp-green-soft: rgba(34, 197, 94, .16);
  --hp-gold: #F2B544;
  --hp-gold-2: #D99628;
  --hp-gold-soft: rgba(242, 181, 68, .14);
  --hp-red: #EF4444;
  --hp-red-soft: rgba(239, 68, 68, .14);
  --hp-blue: #1D4ED8;
  --hp-blue-soft: rgba(29, 78, 216, .16);
  --hp-white: #fff;
  --hp-text: #EAF0F7;
  --hp-muted: #9CA9BA;
  --hp-muted-2: #6B7789;
  --hp-sidebar-width: 250px;
  --hp-topbar-height: 72px;
  --hp-content-padding: 24px;
  --hp-gap: 16px;
  --hp-radius: 18px;
  --hp-radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: "Montserrat", Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(34, 197, 94, .13), transparent 28%),
    radial-gradient(circle at 85% 5%, rgba(242, 181, 68, .12), transparent 28%),
    linear-gradient(135deg, var(--hp-bg), var(--hp-bg-2));
  color: var(--hp-text);
}

a {
  color: inherit;
  text-decoration: none;
}

.hp-muted {
  color: var(--hp-muted);
}

.hp-mini {
  font-size: 12px;
}

.hp-green {
  color: var(--hp-green);
}

.hp-gold {
  color: var(--hp-gold);
}

.hp-card {
  background: var(--hp-card);
  border: 1px solid var(--hp-border);
  border-radius: var(--hp-radius);
  box-shadow: 0 22px 70px rgba(0, 0, 0, .34);
  backdrop-filter: blur(14px);
  padding: 18px;
}

.hp-kicker {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--hp-gold-soft);
  color: var(--hp-gold);
  font-size: 12px;
  /* font-weight: 800; */
  text-transform: uppercase;
  letter-spacing: .08em;
}

.hp-title-xl {
  font-size: 42px;
  line-height: 1.05;
  font-weight: 700;
  margin: 24px 0 12px;
}

.hp-title-lg {
  font-size: 28px;
  font-weight: 700;
  margin: 0;
}

.hp-subtitle {
  font-size: 15px;
  line-height: 1.7;
  color: var(--hp-muted);
  max-width: 560px;
}

.hp-form-group {
  margin-bottom: 16px;
}

.hp-label {
  display: block;
  font-size: 12px;
  color: var(--hp-muted);
  font-weight: 800;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.hp-input,
.hp-select {
  width: 100%;
  height: 46px;
  background: rgba(255, 255, 255, .045);
  border: 1px solid var(--hp-border);
  border-radius: var(--hp-radius-sm);
  color: var(--hp-text);
  padding: 0 14px;
  outline: none;
  color-scheme: dark;
}

.hp-input:focus,
.hp-select:focus {
  border-color: rgba(34, 197, 94, .7);
  box-shadow: 0 0 0 4px var(--hp-green-soft);
}

.hp-select option,
.hp-select optgroup {
  background-color: #0b1627;
  color: #f8fafc;
}

.hp-btn {
  border: 0;
  border-radius: var(--hp-radius-sm);
  height: 46px;
  padding: 0 18px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  cursor: pointer;
  transition: .18s ease;
}

.hp-btn:disabled {
  opacity: .6;
  cursor: not-allowed;
}

.hp-btn-primary {
  background: linear-gradient(180deg, var(--hp-green), var(--hp-green-2));
  color: #03130A;
}

.hp-btn-primary:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.hp-btn-outline {
  background: rgba(255, 255, 255, .04);
  color: var(--hp-text);
  border: 1px solid var(--hp-border-strong);
}

.hp-btn-danger {
  background: var(--hp-red);
  color: #fff;
}

.hp-btn-block {
  width: 100%;
}

.hp-admin-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: var(--hp-sidebar-width) 1fr;
  transition: grid-template-columns .22s ease;
}

body.hp-sidebar-collapsed .hp-admin-layout {
  grid-template-columns: 82px 1fr;
}

.hp-sidebar {
  background: rgba(6, 17, 31, .95);
  border-right: 1px solid var(--hp-border);
  padding: 18px 14px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

.hp-sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--hp-border);
  margin-bottom: 18px;
}

.hp-sidebar-logo {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hp-sidebar-logo img {
  object-fit: contain;
  display: block;
}

.hp-logo-full {
  height: 38px;
  max-width: 150px;
}

.hp-logo-icon {
  display: none !important;
  width: 38px;
  height: 38px;
}

.hp-sidebar-brand-text strong {
  display: block;
  font-size: 13px;
  white-space: nowrap;
}

.hp-sidebar-brand-text span {
  display: block;
  font-size: 11px;
  color: var(--hp-muted);
  white-space: nowrap;
}

.hp-sidebar-toggle {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 12px;
  border: 1px solid var(--hp-border);
  background: rgba(255, 255, 255, .045);
  color: var(--hp-text);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.hp-sidebar-toggle:hover {
  border-color: rgba(34, 197, 94, .55);
  color: var(--hp-green);
  background: rgba(34, 197, 94, .10);
}

.hp-sidebar-toggle i {
  font-size: 18px;
  line-height: 1;
}

body.hp-sidebar-collapsed .hp-sidebar {
  padding-left: 12px;
  padding-right: 12px;
}

body.hp-sidebar-collapsed .hp-sidebar-head {
  justify-content: center;
  border-bottom: none;
  margin-bottom: 10px;
  padding-bottom: 8px;
}

body.hp-sidebar-collapsed .hp-logo-full,
body.hp-sidebar-collapsed .hp-sidebar-brand-text {
  display: none !important;
}

body.hp-sidebar-collapsed .hp-logo-icon {
  display: block !important;
}

body.hp-sidebar-collapsed .hp-sidebar-toggle {
  position: absolute;
  top: 62px;
  left: 24px;
  width: 34px;
  height: 34px;
}

body.hp-sidebar-collapsed .hp-sidebar-toggle i {
  transform: none;
}

.hp-menu {
  display: grid;
  gap: 8px;
}

.hp-menu-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 12px;
  border-radius: 14px;
  color: var(--hp-muted);
  font-size: 13px;
  font-weight: 600;
  min-height: 44px;
}

.hp-menu-item i {
  font-size: 26px;
  width: 28px;
  text-align: center;
  flex: 0 0 22px;
}

.hp-menu-item span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.hp-sidebar-collapsed .hp-menu {
  margin-top: 46px;
}

body.hp-sidebar-collapsed .hp-menu-item {
  justify-content: center;
  padding-left: 0;
  padding-right: 0;
}

body.hp-sidebar-collapsed .hp-menu-item span {
  display: none;
}

.hp-menu-item.active,
.hp-menu-item:hover {
  background: var(--hp-green-soft);
  color: var(--hp-text);
}

.hp-menu-item.active i {
  color: var(--hp-green);
}

.hp-main {
  min-width: 0;
}

.hp-topbar {
  height: var(--hp-topbar-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--hp-content-padding);
  border-bottom: 1px solid var(--hp-border);
  background: rgba(5, 11, 20, .55);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.hp-page-title {
  font-size: 22px;
  font-weight: 700;
  margin: 0;
}

.hp-page-subtitle {
  font-size: 12px;
  color: var(--hp-muted);
  margin-top: 3px;
}

.hp-content {
  padding: var(--hp-content-padding);
}

.hp-grid {
  display: grid;
  gap: var(--hp-gap);
}

.hp-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.hp-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.hp-metric {
  min-height: 136px;
}

.hp-metric-label {
  font-size: 12px;
  color: var(--hp-muted);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.hp-metric-value {
  font-size: 34px;
  font-weight: 700;
  margin-top: 8px;
}

.hp-metric-foot {
  font-size: 12px;
  color: var(--hp-muted);
  margin-top: 8px;
}

.hp-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.hp-badge.success {
  background: var(--hp-green-soft);
  color: var(--hp-green);
}

.hp-badge.warning {
  background: var(--hp-gold-soft);
  color: var(--hp-gold);
}

.hp-badge.danger {
  background: var(--hp-red-soft);
  color: #ff9a9a;
}

.hp-badge.info {
  background: var(--hp-blue-soft);
  color: #93C5FD;
}

.hp-table-wrap {
  scrollbar-width: thin;
  scrollbar-color: rgba(34, 197, 94, .65) rgba(255, 255, 255, .06);
}

.hp-table-wrap::-webkit-scrollbar {
  height: 10px;
}

.hp-table-wrap::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
}

.hp-table-wrap::-webkit-scrollbar-thumb {
  border: 2px solid rgba(255, 255, 255, .06);
  border-radius: 999px;
  background: linear-gradient(90deg, var(--hp-green), var(--hp-green-2));
}

.hp-table-wrap::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(90deg, #4ade80, var(--hp-green));
}

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

.hp-table th,
.hp-table td {
  padding: 13px 10px;
  border-bottom: 1px solid var(--hp-border);
  font-size: 13px;
}

.hp-table th {
  color: var(--hp-muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.hp-empty {
  border: 1px dashed var(--hp-border-strong);
  border-radius: 16px;
  padding: 30px;
  text-align: center;
  color: var(--hp-muted);
  background: rgba(255, 255, 255, .03);
}

.hp-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hp-event-card {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}

.hp-match-title {
  font-size: 26px;
  font-weight: 700;
}

.hp-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--hp-green);
  box-shadow: 0 0 0 6px var(--hp-green-soft);
  display: inline-block;
}

.hp-loading {
  position: relative;
  overflow: hidden;
}

.hp-loading:after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .09), transparent);
  animation: hp-shimmer 1.2s infinite;
}

@keyframes hp-shimmer {
  to {
    transform: translateX(100%);
  }
}

@media(max-width:1050px) {

  .hp-grid-4,
  .hp-grid-3,
  .hp-grid-2 {
    grid-template-columns: 1fr;
  }

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

  .hp-sidebar {
    position: relative;
    height: auto;
  }

  .hp-topbar {
    position: relative;
  }

  .hp-event-card {
    display: block;
  }

  .hp-actions {
    margin-top: 16px;
  }
}

.hp-toast-fallback-box {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 99999;
  display: grid;
  gap: 12px;
  width: min(380px, calc(100vw - 36px));
  pointer-events: none;
}

.hp-toast-fallback {
  position: relative;
  overflow: hidden;
  min-height: 72px;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: center;
  padding: 14px 16px 16px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(11, 26, 43, .98), rgba(7, 20, 36, .98));
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 22px 60px rgba(0, 0, 0, .42);
  color: var(--hp-text);
  font-family: "Montserrat", Arial, sans-serif;
  opacity: 0;
  transform: translateX(18px) translateY(-8px) scale(.98);
  transition: opacity .22s ease, transform .22s ease;
  pointer-events: auto;
}

.hp-toast-fallback.is-visible {
  opacity: 1;
  transform: translateX(0) translateY(0) scale(1);
}

.hp-toast-fallback.is-leaving {
  opacity: 0;
  transform: translateX(18px) translateY(-8px) scale(.98);
}

.hp-toast-fallback-icon {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 18px;
}

.hp-toast-fallback-content strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 3px;
}

.hp-toast-fallback-content span {
  display: block;
  color: var(--hp-muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.hp-toast-fallback-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 4px;
  width: 100%;
  transform-origin: left center;
  animation: hpToastProgress 2400ms linear forwards;
}

.hp-toast-fallback.is-success {
  border-color: rgba(34, 197, 94, .34);
}

.hp-toast-fallback.is-success .hp-toast-fallback-icon {
  background: var(--hp-green-soft);
  color: var(--hp-green);
}

.hp-toast-fallback.is-success .hp-toast-fallback-progress {
  background: linear-gradient(90deg, var(--hp-green), var(--hp-green-2));
}

.hp-toast-fallback.is-error {
  border-color: rgba(239, 68, 68, .38);
}

.hp-toast-fallback.is-error .hp-toast-fallback-icon {
  background: var(--hp-red-soft);
  color: #ff8b8b;
}

.hp-toast-fallback.is-error .hp-toast-fallback-progress {
  background: linear-gradient(90deg, #ff8b8b, var(--hp-red));
}

.hp-toast-fallback.is-info .hp-toast-fallback-icon {
  background: var(--hp-blue-soft);
  color: #93C5FD;
}

.hp-toast-fallback.is-info .hp-toast-fallback-progress {
  background: linear-gradient(90deg, #93C5FD, var(--hp-blue));
}

@keyframes hpToastProgress {
  from {
    transform: scaleX(1);
  }

  to {
    transform: scaleX(0);
  }
}

/* PATCH 151 — Palpites extras em tela mobile com cards */

.hp-pwa-extra-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 18px;
}

.hp-pwa-extra-card {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 20px;
  background:
    radial-gradient(circle at 10% 0%, rgba(242, 181, 68, .13), transparent 42%),
    rgba(255, 255, 255, .045);
  color: var(--hp-white);
  text-align: left;
  cursor: pointer;
}

.hp-pwa-extra-card i {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 16px;
  color: var(--hp-gold);
  background: rgba(242, 181, 68, .10);
  border: 1px solid rgba(242, 181, 68, .18);
  font-size: 22px;
}

.hp-pwa-extra-card strong {
  display: block;
  color: var(--hp-white);
  font-size: 14px;
  font-weight: 900;
}

.hp-pwa-extra-card span {
  display: block;
  margin-top: 3px;
  color: var(--hp-muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.hp-pwa-extra-card em {
  align-self: center;
  border-radius: 999px;
  padding: 7px 9px;
  color: var(--hp-gold);
  background: rgba(242, 181, 68, .10);
  border: 1px solid rgba(242, 181, 68, .18);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.hp-pwa-alert.is-success {
  border-color: rgba(40, 199, 111, .22);
  background: rgba(40, 199, 111, .10);
}

@media (max-width: 420px) {
  .hp-pwa-extra-card {
    grid-template-columns: 38px 1fr;
  }

  .hp-pwa-extra-card em {
    grid-column: 2;
    justify-self: start;
  }
}