/* Adaptación pública de escritorio. Conserva la identidad y navegación móvil. */
@media (min-width: 761px) {
  body {
    background: linear-gradient(180deg, #eef2f5 0%, #e6ecef 100%);
  }

  .shell {
    width: min(1240px, calc(100% - 36px)) !important;
    max-width: none !important;
    min-height: 0;
    margin: 10px auto;
    padding-bottom: 32px;
    background: #f7f9fa;
    border-radius: 18px;
    box-shadow: 0 0 0 1px #dce3e8, 0 18px 55px #17263318;
    overflow: hidden;
  }

  .topbar {
    position: sticky;
    top: 0;
    z-index: 80;
    height: 82px;
    padding: 12px 28px;
    background: #fff;
    border-bottom: 1px solid #e1e7eb;
  }

  .topbar img {
    width: 54px;
    height: 54px;
  }

  .brand strong {
    font-size: 20px;
  }

  .page,
  .home-competitions {
    width: min(1160px, calc(100% - 48px));
    margin-inline: auto;
  }

  .page {
    padding: 24px 0 42px;
  }

  .home-competitions {
    padding: 0 0 42px !important;
  }

  .home-competitions .date-nav {
    padding: 15px 0 12px;
  }

  .all-matches-head {
    margin-bottom: 14px;
    padding: 20px 22px;
    border: 1px solid #dfe6ea;
    border-radius: 15px;
  }

  .competitions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 0;
    background: transparent;
    border: 0;
  }

  .competitions > .eyebrow {
    grid-column: 1 / -1;
    border-radius: 10px;
  }

  .competition-row {
    min-height: 72px;
    border: 1px solid #dfe6ea;
    border-radius: 13px;
    box-shadow: 0 5px 18px #17263308;
  }

  .favorite-list,
  .ranking-market,
  .multi-favorite-matches {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bottom-nav {
    position: sticky;
    z-index: 100;
    left: auto;
    right: auto;
    top: 82px;
    bottom: auto;
    width: min(920px, calc(100vw - 72px));
    height: 62px;
    padding: 6px;
    margin: 12px auto 14px;
    transform: none;
    border: 1px solid #263443;
    border-radius: 20px;
    background: #101925;
    box-shadow: 0 12px 30px #10192532;
  }

  body .bottom-nav .bottom-nav-inner.nav-professional.nav-with-bank {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)) !important;
    gap: 6px !important;
    width: 100% !important;
    height: 100%;
    padding: 0 !important;
    overflow: visible !important;
  }

  body .bottom-nav .bottom-nav-inner.nav-professional.nav-with-bank > button {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 3px;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 48px;
    padding: 6px 10px !important;
    border: 0 !important;
    border-radius: 13px !important;
    background: transparent !important;
    color: #afbbc5 !important;
    box-shadow: none !important;
  }

  body .bottom-nav .bottom-nav-inner.nav-professional.nav-with-bank > button:hover {
    background: #ffffff0d !important;
    color: #fff !important;
  }

  body .bottom-nav .bottom-nav-inner.nav-professional.nav-with-bank > button.active {
    background: linear-gradient(145deg, #d64058, #a9253b) !important;
    color: #fff !important;
    box-shadow: 0 7px 17px #6e162a55 !important;
  }

  body .bottom-nav .bottom-nav-inner.nav-professional button > small {
    font-size: 10px !important;
  }

  .overlay {
    width: min(1240px, calc(100% - 36px));
    left: 50%;
    right: auto;
    top: 10px;
    bottom: 10px;
    height: auto;
    transform: translateX(-50%);
    border: 1px solid #dce3e8;
    border-radius: 18px;
    box-shadow: 0 18px 55px #17263320;
  }

  .detail-body {
    width: min(1080px, calc(100% - 48px));
    margin-inline: auto;
    padding: 28px 0 60px;
  }

  .match-hero {
    padding: 30px 48px 34px;
  }

  .match-hero .duel {
    width: min(820px, 100%);
    margin: 24px auto 0;
  }

  .tabs {
    justify-content: center;
    padding: 14px 24px;
  }

  .detail-body .panel {
    padding: 22px 24px;
    border-radius: 15px;
    box-shadow: 0 8px 24px #17263309;
  }
}

@media (min-width: 1280px) {
  .page,
  .home-competitions {
    width: min(1160px, calc(100% - 64px));
  }
}

@media (min-width: 761px) and (max-width: 900px) {
  .shell,
  .overlay {
    width: 100% !important;
    margin: 0;
    border-radius: 0;
  }

  .bottom-nav {
    width: calc(100vw - 28px);
  }
}

.public-account-page {
  max-width: 940px;
}

.visitor-account {
  margin: 0 auto;
  padding: 38px 24px !important;
  border-radius: 22px;
  background: linear-gradient(135deg, #101a25 0%, #203344 100%);
  color: #fff;
  box-shadow: 0 18px 42px #10192524;
}

.visitor-account img {
  border-color: #ffffffcc;
}

.visitor-account .eyebrow {
  margin-top: 14px;
  color: #ff8fa0;
}

.visitor-account h2 {
  margin-top: 7px;
  font-size: clamp(25px, 3vw, 34px);
}

.visitor-account p {
  max-width: 580px;
  margin: 9px auto 21px;
  color: #cfdae2;
  line-height: 1.55;
}

.telegram-web-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 260px;
  min-height: 48px;
  margin: 0 auto 12px;
  padding: 12px 19px;
  border: 1px solid #57b7e7;
  border-radius: 12px;
  background: linear-gradient(135deg, #30a8e6, #168dcc);
  color: #fff;
  box-shadow: 0 10px 24px #0d88ca35;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .25px;
}

.telegram-web-login span {
  font-size: 18px;
  line-height: 1;
}

.telegram-web-login:disabled {
  cursor: wait;
  opacity: .65;
}

.telegram-login-status {
  min-height: 18px;
  max-width: 530px;
  margin: 0 auto 10px;
  color: #afbfca;
  font-size: 10px;
  line-height: 1.45;
}

.telegram-login-status.ok { color: #7ee0b6; }
.telegram-login-status.error { color: #ff9aaa; }

.visitor-account > small {
  color: #aebdca;
  font-size: 10px;
}

.login-benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.login-benefits article {
  padding: 18px;
  border: 1px solid #dce4e9;
  border-radius: 14px;
  background: #fff;
}

.login-benefits b,
.login-benefits span {
  display: block;
}

.login-benefits b {
  font-size: 13px;
  color: #152533;
}

.login-benefits span {
  margin-top: 6px;
  color: #70808c;
  font-size: 11px;
  line-height: 1.45;
}

.web-user-logout {
  width: 100%;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid #d9e1e6;
  border-radius: 11px;
  background: #fff;
  color: #a32138;
  font-size: 10px;
  font-weight: 950;
}

@media (max-width: 760px) {
  .public-account-page {
    padding: 14px;
  }

  .visitor-account {
    padding: 30px 18px !important;
    border-radius: 18px;
  }

  .login-benefits {
    grid-template-columns: 1fr;
  }
}
