@media (max-width: 768px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
  }

  body {
    background: #edf4fb;
  }

  #root,
  .frontend,
  .admin,
  .main {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .wrapper {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    overflow-y: visible !important;
  }

  .container-fluid {
    padding-left: 10px;
    padding-right: 10px;
  }

  .row {
    margin-left: -10px;
    margin-right: -10px;
  }

  .row > [class*='col-'] {
    padding-left: 10px;
    padding-right: 10px;
  }

  .header {
    position: sticky;
    top: 0;
    z-index: 1030;
  }

  .header .container-fluid {
    padding-left: 0;
    padding-right: 0;
  }

  .header-top {
    padding-top: calc(6px + env(safe-area-inset-top, 0px));
    padding-left: 12px;
    padding-right: 12px;
    padding-bottom: 6px;
    min-height: unset;
    gap: 10px;
    align-items: center;
    flex-wrap: nowrap;
  }

  .frontend-mobile .header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .frontend-mobile .header-top .flex05:first-child {
    flex: 0 0 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .frontend-mobile .header-top .profile-right-side {
    flex: 1 1 auto;
    margin-left: auto;
  }

  .hx-mobile-home-link {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 18px;
    text-decoration: none;
  }

  .hx-site-logo {
    max-width: calc(100vw - 140px);
    overflow: hidden;
    min-height: 0;
  }

  .hx-site-logo-image {
    max-height: 36px;
  }

  .hx-site-logo-text {
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .profile-right-side {
    gap: 10px;
    align-items: center;
  }

  .frontend-mobile .profile-right-side,
  .frontend-mobile .profile-right-side.hx-mobile-topbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    padding-top: 0;
    flex-wrap: nowrap;
    min-width: 0;
  }

  .frontend-mobile .profile-right-side.hx-mobile-topbar > li {
    min-width: 0;
    flex: 0 0 auto;
    list-style: none;
  }

  .frontend-mobile .profile-right-side .account {
    display: flex;
    align-items: center;
  }

  .frontend-mobile .profile-right-side .hx-mobile-account {
    display: flex;
    align-items: center;
    margin-top: 0;
    gap: 0;
    white-space: nowrap;
    min-width: 0;
    margin-left: auto;
  }

  .frontend-mobile .profile-right-side .hx-mobile-account > div,
  .frontend-mobile .profile-right-side .hx-mobile-balance-inline,
  .frontend-mobile .profile-right-side .hx-mobile-exposure-inline {
    display: flex;
    align-items: center;
  }

  .frontend-mobile .profile-right-side .account > span:first-child {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    line-height: 1;
    font-weight: 700;
    color: #fff;
    min-width: 0;
  }

  .frontend-mobile .profile-right-side .account ul {
    right: 0;
    left: auto;
  }

  .frontend-mobile .profile-section {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    line-height: 1;
    white-space: nowrap;
    min-width: 0;
  }

  .frontend-mobile .profile-right-side .hx-mobile-topbar .account {
    margin-left: auto;
  }

  .hx-mobile-stat {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
    white-space: nowrap;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    line-height: 1;
    font-size: 12px;
    height: 28px;
    padding: 0 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
  }

  .hx-mobile-stat strong {
    display: inline-block;
    font-size: 13px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.01em;
  }

  .hx-mobile-stat__label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    opacity: 0.72;
  }

  .hx-mobile-username {
    display: inline-block;
    max-width: 56px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .hx-mobile-account-trigger {
    height: 28px;
    padding: 0 8px 0 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
  }

  .hx-mobile-account-trigger i {
    font-size: 12px;
  }

  .header-mobile,
  .mobile-header-2 {
    width: auto;
    margin-left: -10px;
    margin-right: -10px;
    background: transparent;
  }

  .header-mobile .navbarnav,
  .mobile-header-2 .nav-tabs {
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .header-mobile .navbarnav::-webkit-scrollbar,
  .mobile-header-2 .nav-tabs::-webkit-scrollbar {
    display: none;
  }

  .header-mobile .nav-item,
  .mobile-header-2 .nav-item {
    flex: 0 0 auto;
    min-width: 78px;
  }

  .header-mobile .nav-item a,
  .mobile-header-2 .nav-tabs .nav-link {
    min-height: 44px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 12px;
    font-size: 12px;
    line-height: 1.1 !important;
  }

  .header-mobile .nav-item a:after {
    display: none;
  }

  .mobile-header-2 p {
    margin-top: 4px;
    font-size: 11px;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }

  .mobile-fav-strip {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 4px 12px 8px;
    background: transparent;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .mobile-fav-strip::-webkit-scrollbar {
    display: none;
  }

  .mobile-fav-strip__item {
    flex: 0 0 auto;
    max-width: 188px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 14px;
    background: rgba(16, 52, 92, 0.9);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 10px 22px rgba(16, 52, 92, 0.16);
  }

  .mobile-fav-strip__icon {
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.12);
    color: #ffd36b;
    font-size: 12px;
  }

  .mobile-fav-strip__icon img {
    width: 16px;
    height: 16px;
    object-fit: contain;
  }

  .mobile-fav-strip__content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  .mobile-fav-strip__name {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.15;
  }

  .mobile-fav-strip__time {
    display: block;
    color: rgba(255, 255, 255, 0.66);
    font-size: 10px;
    font-weight: 600;
  }

  .mobile-fav-strip__arrow {
    color: rgba(255, 255, 255, 0.5);
    font-size: 11px;
  }

  .frontend-mobile .header-b-menu {
    margin: 0 12px 6px;
    border-radius: 12px;
    min-height: 0;
  }

  .frontend-mobile .header-b-menu a {
    min-height: 36px;
    padding: 10px 12px;
    font-size: 11px;
    line-height: 1.3;
  }

  .frontend-mobile .header-mobile .navbarnav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    padding: 0 12px 8px;
    margin: 0;
    overflow-x: visible;
  }

  .frontend-mobile .header-mobile .nav-item {
    min-width: 0;
  }

  .frontend-mobile .header-mobile .nav-item a {
    border-radius: 12px;
    min-height: 40px;
    background: rgba(16, 52, 92, 0.92);
    color: rgba(255, 255, 255, 0.9);
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 7px 6px;
  }

  .frontend-mobile .header-mobile .nav-item a.active,
  .frontend-mobile .header-mobile .nav-item a.router-link-active {
    background: linear-gradient(135deg, #1791e6, #2aa9ff);
    color: #fff;
  }

  .frontend-mobile .mobile-header-2 {
    padding: 0 12px 10px;
  }

  .frontend-mobile .mobile-header-2 .nav-tabs {
    display: flex;
    gap: 10px;
    padding: 0;
    margin: 0;
    overflow-x: auto;
  }

  .frontend-mobile .mobile-header-2 .nav-item {
    min-width: 82px;
  }

  .frontend-mobile .mobile-header-2 .nav-tabs .nav-link {
    min-height: 68px;
    border-radius: 15px;
    background: linear-gradient(180deg, #2597ea, #1278ca);
    color: #fff;
    box-shadow: 0 10px 24px rgba(16, 52, 92, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 8px 8px;
  }

  .frontend-mobile .mobile-header-2 .nav-tabs .nav-link.active {
    background: linear-gradient(180deg, #10345c, #1a4c80);
    box-shadow: 0 12px 28px rgba(16, 52, 92, 0.28);
  }

  .mobile-sport-tab__icon {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.16);
    overflow: hidden;
  }

  .mobile-sport-tab__icon img {
    width: 18px;
    height: 18px;
    object-fit: contain;
  }

  .mobile-sport-tab__fallback {
    width: 100%;
    height: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.04em;
  }

  .pb-4.mtc-5 {
    padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  }

  .frontend-mobile .main {
    padding-bottom: calc(82px + env(safe-area-inset-bottom, 0px));
  }

  .frontend-mobile .hx-main-footer-wrap {
    margin-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  }

  .card-content.mobile-match {
    margin: 8px 0 16px;
    padding: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .mobile-match {
    padding: 0;
    margin: 0;
  }

  .mobile-dashboard-shell .home-page {
    margin-top: 10px;
  }

  .mobile-dashboard-shell .casino-list {
    margin-left: 0 !important;
  }

  .casino-games-page .col-12 {
    padding-left: 0;
    padding-right: 0;
  }

  .casino-games-page .card-content {
    padding: 12px 0 calc(96px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .casino-games-page .game-heading {
    margin: 12px 0 0;
    border-radius: 16px 16px 0 0;
    overflow: hidden;
  }

  .casino-games-page .casino-list--mobile,
  .casino-games-page--mobile .casino-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0 !important;
  }

  .casino-games-page .casino-mobile-card,
  .casino-games-page--mobile .casino-mobile-card {
    min-width: 0;
  }

  .casino-games-page .casino-mobile-card__link,
  .casino-games-page--mobile .casino-mobile-card__link {
    display: block;
    text-decoration: none;
  }

  .casino-games-page .casino-mobile-card__banner,
  .casino-games-page--mobile .casino-mobile-card__banner {
    width: 100%;
    padding-top: 120%;
    background-size: cover;
    background-position: center center;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(16, 52, 92, 0.12);
    background-color: #d7e8f7;
  }

  .casino-games-page .casino-mobile-card__name,
  .casino-games-page--mobile .casino-mobile-card__name {
    margin-top: 8px;
    padding: 8px 10px;
    min-height: 44px;
    border-radius: 10px;
    background-image: linear-gradient(var(--theme1-bg), var(--theme2-bg));
    color: var(--primary-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 12px;
    line-height: 1.15;
    word-break: break-word;
  }

  .mobile-dashboard-shell .casino-list {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 0;
    margin: 0 -6px !important;
  }

  .casino-games-page .casino-list--mobile .casino-list-item,
  .casino-games-page--mobile .casino-list-item {
    width: auto !important;
    margin: 0 !important;
    max-width: none !important;
    min-width: 0 !important;
    flex: initial !important;
  }

  .mobile-dashboard-shell .casino-list-item {
    width: calc(50% - 12px) !important;
    margin: 0 6px 12px !important;
  }

  .casino-games-page .casino-list--mobile .casino-list-item a,
  .casino-games-page--mobile .casino-list-item a,
  .mobile-dashboard-shell .casino-list-item a {
    display: block;
  }

  .casino-games-page .casino-list--mobile .casino-list-item .casino-list-item-banner,
  .casino-games-page--mobile .casino-list-item .casino-list-item-banner,
  .mobile-dashboard-shell .casino-list-item .casino-list-item-banner {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(16, 52, 92, 0.12);
  }

  .casino-games-page .casino-list--mobile .casino-list-item .casino-list-name,
  .casino-games-page--mobile .casino-list-item .casino-list-name,
  .mobile-dashboard-shell .casino-list-item .casino-list-name {
    padding: 8px 10px;
    font-size: 12px;
    line-height: 1.15;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: static;
    width: 100%;
    margin-top: 8px;
    border-radius: 10px;
  }

  .mobile-match-app {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .mobile-board-match {
    margin: 0;
    padding: 10px 12px 0;
    background: #fff;
    border-bottom: 1px solid rgba(16, 52, 92, 0.1);
  }

  .mobile-board-match__summary {
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    text-align: left;
  }

  .mobile-board-match__title {
    color: #12355e;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.25;
  }

  .mobile-board-match__meta {
    margin-top: 3px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }

  .mobile-board-match__time {
    color: #4f6279;
    font-size: 12px;
    line-height: 1.2;
  }

  .mobile-board-match__flags {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
    flex-wrap: wrap;
    min-width: 112px;
  }

  .mobile-board-match__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #28a745;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.15);
  }

  .mobile-board-match__icon {
    color: #0f355d;
    font-size: 14px;
    line-height: 1;
  }

  .mobile-board-match__tag {
    color: #111f36;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
  }

  .mobile-board-match__status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(16, 52, 92, 0.08);
    color: #10345c;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
  }

  .mobile-board-match__status--live {
    background: rgba(16, 168, 77, 0.12);
    color: #0c8a3e;
  }

  .mobile-board-match__status--open {
    background: rgba(255, 193, 7, 0.18);
    color: #8c6500;
  }

  .mobile-board-match__status--finished {
    background: rgba(108, 117, 125, 0.18);
    color: #5f6974;
  }

  .mobile-board-match__labels {
    margin-top: 8px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    text-align: center;
  }

  .mobile-board-match__labels.has-draw {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .mobile-board-match__label {
    color: #111f36;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.1;
  }

  .mobile-board-match__prices {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 6px;
    padding-bottom: 10px;
  }

  .mobile-board-match__prices.has-draw {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .mobile-board-match__column {
    min-width: 0;
  }

  .mobile-board-match__column-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    overflow: hidden;
    border-radius: 0;
  }

  .mobile-board-match__price {
    border: 0;
    padding: 11px 4px;
    min-height: 44px;
    color: #17314e;
    font-size: 17px;
    font-weight: 800;
    line-height: 1;
    text-align: center;
  }

  .mobile-board-match__price--back {
    background: #8fd0ff;
  }

  .mobile-board-match__price--lay {
    background: #ffb7cb;
  }

  .mobile-empty-state {
    margin: 0 12px;
    padding: 24px 18px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid rgba(16, 52, 92, 0.08);
    text-align: center;
  }

  .mobile-empty-state__title {
    color: #10345c;
    font-size: 16px;
    font-weight: 800;
  }

  .mobile-empty-state__meta {
    margin-top: 8px;
    color: #5a6d82;
    font-size: 13px;
  }

  .coupon-table-mobile {
    width: 100%;
    table-layout: fixed;
  }

  .coupon-table-mobile td {
    padding: 6px 4px !important;
  }

  .game-name a {
    display: block;
    font-size: 14px;
    line-height: 1.35;
  }

  .game-heading,
  .card-header {
    padding: 12px 14px;
  }

  .game-heading .card-header-title {
    display: inline-block;
    max-width: calc(100% - 110px);
    line-height: 1.3;
  }

  .card-header-date {
    float: none !important;
    display: block;
    margin-top: 4px;
    opacity: 0.85;
  }

  .game-icons {
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .matchlist .coupon-table button.back,
  .matchlist .coupon-table button.lay {
    min-height: 52px;
    border-radius: 12px;
    width: 100%;
  }

  .main-market,
  .my-bet,
  .place-bet,
  .card-dtl-mobile,
  .platform-admin-page .platform-card {
    border-radius: 16px;
    overflow: hidden;
  }

  .place-bet {
    top: auto;
    left: 10px;
    right: 10px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    z-index: 1101;
    max-height: min(78vh, 640px);
    overflow: auto;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  }

  .place-bet .card-header {
    position: sticky;
    top: 0;
    z-index: 1;
  }

  .backdrop-custom {
    z-index: 1100;
  }

  .place-bet .table-responsive {
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }

  .place-bet .btn.btn-secondary,
  .place-bet .value-buttons .btn {
    min-height: 44px;
    border-radius: 10px;
  }

  .mobile-match-detail-app {
    padding-bottom: calc(92px + env(safe-area-inset-bottom, 0px));
  }

  .casino-container-box--mobile {
    padding-bottom: calc(92px + env(safe-area-inset-bottom, 0px));
  }

  .casino-container-box--mobile .mobile-detail-tabs {
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 10px 24px rgba(16, 52, 92, 0.08);
  }

  .casino-container-box--mobile .tab-content {
    background: transparent;
  }

  .casino-container-box--mobile .tab-pane {
    padding: 12px 0 0;
  }

  .casino-container-box--mobile .card.m-b-10.my-bet {
    margin-bottom: 12px;
  }

  .casino-container-box--mobile .card-header.casino,
  .casino-container-box--mobile .card-header {
    padding: 12px 14px;
  }

  .casino-container-box--mobile .card-title {
    width: 100%;
    margin: 0;
    font-size: 14px;
    line-height: 1.35;
    white-space: normal;
    word-break: break-word;
  }

  .casino-container-box--mobile .card-title .float-right {
    float: none;
  }

  .casino-container-box--mobile .card-body {
    overflow: hidden;
  }

  .casino-container-box--mobile .csmobileround {
    position: static;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0 0 12px;
    padding: 0 4px;
    color: #10345c;
  }

  .casino-container-box--mobile .csmobileround span {
    text-align: left;
    font-size: 12px;
    font-weight: 700;
  }

  .casino-container-box--mobile .my-bet .card-body,
  .casino-container-box--mobile .my-bet .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .casino-container-box--mobile iframe {
    max-width: 100%;
  }

  .casino-container-box .col-8,
  .casino-container-box .col-4,
  .casino-container-box .col-lg-8,
  .casino-container-box .col-lg-4 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .casino-container-box #sidebar-right,
  .casino-container-box .sidebar-right-inner {
    margin-top: 12px;
  }

  .mobile-match-hero {
    position: sticky;
    top: calc(46px + env(safe-area-inset-top, 0px));
    z-index: 1022;
    margin: 0 0 8px;
    padding: 10px 12px;
    border-radius: 16px;
    background: linear-gradient(150deg, #10345c, #1a6fbb 58%, #1f9ef7);
    color: #fff;
    box-shadow: 0 12px 24px rgba(16, 52, 92, 0.16);
  }

  .mobile-match-hero__top {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .mobile-match-hero__title {
    font-size: 14px;
    font-weight: 800;
    line-height: 1.25;
  }

  .mobile-match-hero__time {
    font-size: 11px;
    opacity: 0.8;
    margin-top: 3px;
  }

  .mobile-match-hero__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
  }

  .mobile-match-hero__chip {
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    border-radius: 999px;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
  }

  .mobile-match-hero__chip.is-live {
    background: rgba(24, 213, 111, 0.18);
  }

  .mobile-match-hero__chip.is-finished {
    background: rgba(108, 117, 125, 0.28);
    color: #f4f7fb;
  }

  .mobile-match-hero__toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
  }

  .mobile-match-hero__toggle.is-selected {
    background: rgba(255, 255, 255, 0.22);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
  }

  .mobile-match-hero__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
  }

  .mobile-match-hero__stat {
    flex: 1 1 calc(33.33% - 8px);
    min-width: 92px;
    padding: 8px 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    text-align: center;
  }

  .mobile-match-hero__stat span {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    opacity: 0.8;
    letter-spacing: 0.05em;
  }

  .mobile-match-hero__stat strong {
    display: block;
    margin-top: 3px;
    font-size: 13px;
  }

  .mobile-detail-tabs {
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 10px 24px rgba(16, 52, 92, 0.08);
  }

  .mobile-detail-tabs .nav-tabs {
    padding: 8px;
    gap: 6px;
    background: #eef5fb;
  }

  .mobile-detail-tabs .nav-item {
    flex: 1 1 0;
  }

  .mobile-detail-tabs .nav-link {
    border-radius: 12px;
    background: transparent;
    color: #4f657c;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    border-bottom: 0 !important;
  }

  .mobile-detail-tabs .nav-link.active {
    background: #fff !important;
    color: #10345c;
    box-shadow: 0 8px 18px rgba(16, 52, 92, 0.1);
  }

  .mobile-detail-pane {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .mobile-detail-card {
    border-radius: 16px;
    background: #fff;
    border: 1px solid rgba(16, 52, 92, 0.08);
    box-shadow: 0 8px 22px rgba(16, 52, 92, 0.07);
    overflow: hidden;
  }

  .mobile-detail-card__title {
    padding: 12px 14px 0;
    color: #10345c;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }

  .mobile-detail-card__subtitle {
    padding: 10px 12px 0;
    color: #5a6d82;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }

  .mobile-detail-center {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px 12px 12px;
  }

  .mobile-detail-switcher {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 10px 12px 0;
  }

  .mobile-detail-switch {
    border: 0;
    border-radius: 12px;
    min-height: 38px;
    background: #eef5fb;
    color: #4f657c;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }

  .mobile-detail-switch.is-active {
    background: linear-gradient(135deg, #1791e6, #2aa9ff);
    color: #fff;
    box-shadow: 0 8px 18px rgba(23, 145, 230, 0.2);
  }

  .mobile-detail-card--score,
  .mobile-detail-card--stream {
    padding: 0;
    box-shadow: none;
    border: 1px solid rgba(16, 52, 92, 0.06);
  }

  .mobile-detail-card--score > .card,
  .mobile-detail-card--stream > .card {
    margin-bottom: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  .mobile-detail-card--score .card-header,
  .mobile-detail-card--stream .card-header {
    padding: 10px 12px;
    min-height: 0;
  }

  .mobile-detail-card--score .card-title,
  .mobile-detail-card--stream .card-title {
    font-size: 12px;
    margin-bottom: 0;
  }

  .mobile-detail-card--markets .main-market,
  .mobile-detail-card--fancy,
  .mobile-detail-card--bets {
    margin-bottom: 0 !important;
  }

  .mobile-detail-card--markets .market-title {
    margin-top: 0 !important;
    padding: 8px 10px;
    font-size: 12px;
    line-height: 1.35;
    background: transparent;
    border-bottom: 1px solid rgba(16, 52, 92, 0.08);
  }

  .mobile-detail-card--markets .table-header {
    display: flex;
    border-bottom: 1px solid #fff;
    background: #fff;
  }

  .mobile-detail-card--markets .table-row {
    display: flex;
    gap: 0;
    padding: 0;
    border-bottom: 1px solid #fff;
    align-items: stretch;
    position: relative;
  }

  .mobile-detail-card--markets .table-row:last-child {
    border-bottom: 0;
  }

  .mobile-detail-card--markets .country-name {
    font-size: 11px;
    line-height: 1.15;
    font-weight: 700;
    color: #10345c;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 6px 6px !important;
    min-height: 60px;
    overflow: hidden;
  }

  .mobile-detail-card--markets .box-1,
  .mobile-detail-card--markets .box-2,
  .mobile-detail-card--markets .box-4,
  .mobile-detail-card--markets .box-6 {
    width: auto;
    min-height: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4px 0 !important;
  }

  .mobile-detail-card--markets .odd {
    font-size: 12px;
    line-height: 1.1;
    font-weight: 800;
  }

  .mobile-detail-card--markets .box-1 span:last-child,
  .mobile-detail-card--markets .box-2 span:last-child,
  .mobile-detail-card--markets .box-4 span:last-child,
  .mobile-detail-card--markets .box-6 span:last-child {
    font-size: 9px;
    opacity: 0.7;
  }

  .mobile-detail-card--markets .table-header .box-4 {
    width: 40%;
    min-width: 40%;
    max-width: 40%;
  }

  .mobile-detail-card--markets .table-header .box-3 {
    width: 30%;
    min-width: 30%;
    max-width: 30%;
    min-height: 38px;
  }

  .mobile-detail-card--markets .table-row .box-4 {
    width: 40%;
    min-width: 40%;
    max-width: 40%;
  }

  .mobile-detail-card--markets .table-row .box-1 {
    width: 10%;
    min-width: 10%;
    max-width: 10%;
  }

  .mobile-detail-card--markets .table-header .hx-market-group-heading {
    min-height: 38px;
    font-size: 11px;
    letter-spacing: 0.02em;
  }

  .mobile-detail-card--markets .team-name {
    font-size: 11px;
    line-height: 1.15;
    white-space: normal;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .mobile-detail-card--markets .country-name p {
    margin: 2px 0 0;
    font-size: 10px;
    line-height: 1;
  }

  .mobile-detail-card--markets .country-name p span {
    font-size: 10px !important;
  }

  .mobile-detail-card--markets .table-row.suspended::after {
    width: 60%;
    font-size: 16px;
  }

  .mobile-detail-card--bets .card-header,
  .mobile-detail-card--fancy .card-header {
    background: transparent;
  }

  .mobile-detail-card--stream .card-body {
    padding: 0 !important;
  }

  .mobile-detail-card--stream iframe,
  .mobile-detail-card--score iframe {
    width: 100%;
    border: 0;
  }

  .mobile-detail-empty {
    padding: 14px;
    color: #5a6d82;
    font-size: 13px;
    line-height: 1.5;
  }

  .admin .table-responsive,
  .admin .platform-card,
  .admin .card-body {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .admin .table {
    min-width: 720px;
  }

  .mobile-install-banner {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(86px + env(safe-area-inset-bottom, 0px));
    z-index: 1035;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(12, 29, 49, 0.94);
    color: #fff;
    box-shadow: 0 18px 42px rgba(4, 17, 29, 0.24);
    backdrop-filter: blur(16px);
  }

  .mobile-install-banner__copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
  }

  .mobile-install-banner__copy strong {
    font-size: 13px;
    line-height: 1.2;
  }

  .mobile-install-banner__copy span {
    font-size: 11px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.78);
  }

  .mobile-install-banner__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
  }

  .mobile-install-banner__primary,
  .mobile-install-banner__secondary {
    border: 0;
    border-radius: 12px;
    min-height: 38px;
    padding: 0 14px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }

  .mobile-install-banner__primary {
    background: linear-gradient(135deg, #1791e6, #2aa9ff);
    color: #fff;
  }

  .mobile-install-banner__secondary {
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.88);
  }

  .admin-mobile-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 14px 0;
  }

  .admin-mobile-summary-card {
    border-radius: 14px;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid rgba(16, 52, 92, 0.08);
    box-shadow: 0 10px 22px rgba(16, 52, 92, 0.08);
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .admin-mobile-summary-card span {
    font-size: 11px;
    color: #5a6d82;
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }

  .admin-mobile-summary-card strong {
    font-size: 16px;
    line-height: 1.1;
    color: #10345c;
  }

  .admin-mobile-client-list {
    display: grid;
    gap: 12px;
    margin-top: 14px;
  }

  .admin-mobile-client-card {
    border-radius: 18px;
    padding: 14px;
    background: #fff;
    border: 1px solid rgba(16, 52, 92, 0.08);
    box-shadow: 0 14px 28px rgba(16, 52, 92, 0.08);
  }

  .admin-mobile-client-card__header,
  .admin-mobile-client-card__toggles {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
  }

  .admin-mobile-client-card__identity {
    min-width: 0;
  }

  .admin-mobile-client-card__title,
  .admin-mobile-client-card__title a {
    font-size: 16px;
    line-height: 1.2;
    font-weight: 800;
    color: #10345c;
    text-decoration: none;
    word-break: break-word;
  }

  .admin-mobile-client-card__meta {
    margin-top: 4px;
    color: #5a6d82;
    font-size: 12px;
  }

  .admin-mobile-client-card__chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
  }

  .admin-mobile-client-card__grid {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .admin-mobile-client-card__grid > div {
    border-radius: 12px;
    padding: 10px 12px;
    background: #f7fafc;
    border: 1px solid rgba(16, 52, 92, 0.06);
  }

  .admin-mobile-client-card__grid span {
    display: block;
    color: #5a6d82;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
  }

  .admin-mobile-client-card__grid strong {
    display: block;
    color: #10345c;
    font-size: 14px;
    line-height: 1.2;
  }

  .admin-mobile-client-card__toggles {
    margin-top: 12px;
    padding: 12px;
    border-radius: 14px;
    background: #f7fafc;
    flex-direction: column;
    align-items: stretch;
  }

  .admin-mobile-client-card__toggles label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #10345c;
    font-size: 13px;
    font-weight: 600;
  }

  .admin-mobile-client-card__toggles input {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
  }

  .admin-mobile-client-card__actions {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .admin-mobile-client-card__action {
    min-height: 40px;
    border-radius: 12px;
    border: 1px solid rgba(16, 52, 92, 0.12);
    background: #fff;
    color: #10345c;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    padding: 0 10px;
  }

  .admin-mobile-client-card__action--primary {
    background: linear-gradient(135deg, #1791e6, #2aa9ff);
    border-color: transparent;
    color: #fff;
  }

  .admin-mobile-client-card__action--danger {
    border-color: rgba(217, 64, 78, 0.24);
    color: #d9404e;
  }

  .admin-mobile-empty {
    padding: 16px;
    text-align: center;
    color: #5a6d82;
    border-radius: 14px;
    background: #f7fafc;
  }

  .platform-admin-page .platform-tab-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: none;
  }

  .platform-admin-page .platform-tab-row::-webkit-scrollbar {
    display: none;
  }

  .platform-admin-page .platform-tab {
    flex: 0 0 auto;
  }

  .platform-admin-page .platform-action-stack {
    align-items: stretch;
  }

  .platform-admin-page .platform-action-stack .btn {
    width: 100%;
  }

  .mobile-bottom-nav {
    position: fixed;
    left: 50%;
    right: auto;
    width: 100vw;
    max-width: 100vw;
    transform: translateX(-50%);
    bottom: 0;
    z-index: 1040;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
    padding: 8px 0 calc(8px + env(safe-area-inset-bottom, 0px));
    margin: 0 !important;
    border-radius: 0 !important;
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
    background: rgba(10, 28, 46, 0.94);
    backdrop-filter: blur(18px);
    box-shadow: 0 -8px 26px rgba(4, 17, 29, 0.18);
    overflow: hidden;
  }

  .mobile-bottom-nav__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 52px;
    border-radius: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-decoration: none;
  }

  .mobile-bottom-nav__item i {
    font-size: 17px;
  }

  .mobile-bottom-nav__item.is-active {
    background: linear-gradient(135deg, rgba(23, 145, 230, 0.28), rgba(16, 52, 92, 0.6));
    color: #fff;
  }

  .frontend-mobile .favourite,
  .frontend-mobile .favourite ul {
    margin: 0;
    padding: 0;
  }

  .frontend-mobile .list-clients .float-left.col-md-10,
  .frontend-mobile .list-clients .float-right.col-md-2 {
    max-width: 100%;
    flex: 0 0 100%;
  }

  .frontend-mobile .list-clients .float-right.col-md-2 {
    margin-top: 12px;
  }

  .frontend-mobile .list-clients .float-right.col-md-2 p {
    text-align: left !important;
    margin-bottom: 10px;
  }

  .frontend-mobile .list-clients .mx-input {
    width: 100%;
  }
}

@media (max-width: 575px) {
  .header-top {
    padding-left: 10px;
    padding-right: 10px;
  }

  .frontend-mobile .profile-right-side,
  .frontend-mobile .profile-right-side.hx-mobile-topbar {
    gap: 4px;
  }

  .hx-mobile-stat {
    padding: 0 7px;
  }

  .hx-mobile-stat strong {
    font-size: 12px;
  }

  .hx-mobile-username {
    max-width: 44px;
  }

  .hx-site-logo {
    max-width: calc(100vw - 102px);
  }

  .hx-site-logo-image {
    max-height: 32px;
  }

  .header-mobile .nav-item,
  .mobile-header-2 .nav-item {
    min-width: 80px;
  }

  .header-mobile .nav-item a,
  .mobile-header-2 .nav-tabs .nav-link {
    font-size: 11px;
    padding: 10px 10px;
  }

  .game-heading .card-header-title {
    max-width: 100%;
  }

  .place-bet {
    left: 8px;
    right: 8px;
    bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    max-height: min(82vh, 680px);
  }

  .mobile-match-card {
    margin-left: 10px;
    margin-right: 10px;
    padding: 12px;
  }

  .casino-games-page .casino-list--mobile .casino-list-item,
  .casino-games-page--mobile .casino-list-item {
    width: auto !important;
    margin: 0 !important;
  }

  .mobile-dashboard-shell .casino-list-item {
    width: calc(50% - 10px) !important;
    margin: 0 5px 10px !important;
  }

  .casino-games-page .casino-list--mobile .casino-list-item .casino-list-name,
  .casino-games-page--mobile .casino-list-item .casino-list-name,
  .mobile-dashboard-shell .casino-list-item .casino-list-name {
    font-size: 11px;
    min-height: 42px;
  }

  .mobile-match-card__odds-grid,
  .mobile-match-card__odds-grid.has-draw {
    grid-template-columns: 1fr;
  }

  .mobile-match-hero {
    margin-left: 0;
    margin-right: 0;
    padding: 12px;
  }

  .mobile-match-hero__stats {
    display: grid;
    grid-template-columns: 1fr;
  }

  .mobile-bottom-nav {
    left: 50%;
    right: auto;
    width: 100vw;
    max-width: 100vw;
    transform: translateX(-50%);
    gap: 0;
    padding: 8px 0 calc(8px + env(safe-area-inset-bottom, 0px));
    margin: 0 !important;
    border-radius: 0 !important;
  }

  .mobile-bottom-nav__item {
    min-height: 50px;
    font-size: 9px;
  }

  .mobile-install-banner {
    flex-direction: column;
    align-items: stretch;
    bottom: calc(78px + env(safe-area-inset-bottom, 0px));
  }

  .mobile-install-banner__actions {
    width: 100%;
  }

  .mobile-install-banner__primary,
  .mobile-install-banner__secondary {
    flex: 1 1 0;
  }

  .admin-mobile-client-card__actions,
  .admin-mobile-summary-grid {
    grid-template-columns: 1fr;
  }
}
