
@media (max-width: 900px) {

  html body { overflow-x: hidden; }
  html, html body { touch-action: manipulation; }
  html body input, html body select, html body textarea { font-size: 16px !important; }
  html body .container {
    padding-left: 14px !important;
    padding-right: 14px !important;
    width: 100%;
    max-width: 100%;
  }
  html body img { max-width: 100%; }

  html body .star-sentinus-wrapper { margin: 12px auto 18px; }
  html body .star-hero-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  html body .star-sentinus-main-card {
    grid-column: 1 / -1;
    order: -1;
    height: auto;
    aspect-ratio: 1280 / 740;
    border-radius: 14px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .45);
  }
  html body .star-sentinus-main-card .swiper-button-next,
  html body .star-sentinus-main-card .swiper-button-prev { display: none; }
  html body .star-sentinus-main-card .swiper-pagination { bottom: 6px; }

  html body .mobile-search-bar { position: relative; }
  html body .mob-search-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    width: auto !important;
    max-height: 70vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 100002;
    border-radius: 14px;
    animation: none !important;
    opacity: 1 !important;
    background: #2f3e58;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .65);
  }
  html body .mob-search-dropdown .sd-section { padding: 12px 14px; }
  html body .mob-search-dropdown .sd-cat-item:hover,
  html body .mob-search-dropdown .sd-prod-item:hover,
  html body .mob-search-dropdown .sd-list li a:hover { transform: none; }
  html body .mob-search-dropdown .sd-prod-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

  html body .star-side-swiper-container {
    height: auto;
    aspect-ratio: 3 / 4;
    border-radius: 12px;
  }
  html body .star-side-single-banner {
    height: 100%;
    padding: 10px;
    border-radius: 12px;
  }
  html body .star-side-single-banner .star-banner-icon {
    width: 30px; height: 30px; min-width: 30px; font-size: 16px; border-radius: 9px;
  }
  html body .star-side-single-banner .star-banner-content { gap: 8px; }
  html body .star-side-single-banner .star-banner-text h4 { font-size: 13px; margin: 0; }
  html body .star-side-single-banner .star-banner-text p { font-size: 10.5px; }

  html body .star-sentinus-banners {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 10px;
  }
  html body .star-sentinus-banner-item {
    height: 64px;
    padding: 0 10px;
    border-radius: 12px;
  }
  html body .star-sentinus-banner-item .star-banner-content { gap: 8px; min-width: 0; }
  html body .star-sentinus-banner-item .star-banner-icon {
    width: 32px; height: 32px; min-width: 32px; font-size: 16px; border-radius: 9px;
  }
  html body .star-sentinus-banner-item .star-banner-text { min-width: 0; }
  html body .star-sentinus-banner-item .star-banner-text h4 {
    font-size: 12.5px; margin: 0; line-height: 1.2;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  html body .star-sentinus-banner-item .star-banner-text p {
    font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }

  html body .star-product-showcase { margin: 18px auto 24px; }
  html body .star-showcase-grid { gap: 14px; }
  html body .star-showcase-head { padding: 12px 14px; }
  html body .star-showcase-icon { width: 36px; height: 36px; min-width: 36px; font-size: 18px; }
  html body .star-showcase-title h3,
  html body .star-showcase-title h2 { font-size: 15px; }
  html body .star-showcase-body { padding: 8px 10px; }
  html body .star-showcase-product { padding: 8px; gap: 10px; margin-bottom: 6px; }
  html body .star-showcase-product img { width: 44px; height: 44px; min-width: 44px; border-radius: 10px; }
  html body .star-showcase-product:hover { transform: none; }
  html body .star-showcase-name { font-size: 13px; }
  html body .star-showcase-price { font-size: 13px; }
  html body .star-showcase-arrow { width: 26px; height: 26px; min-width: 26px; }

  html body .star-cat-row-grid { grid-template-columns: 1fr 1fr; gap: 10px; }

  html body .product-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
  }
  html body .product-card {
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .25);
  }
  html body .product-card:hover { transform: none; }
  html body .product-image-container {
    height: auto !important;
    padding: 6px !important;
  }
  html body .product-image {
    height: auto !important;
    aspect-ratio: 3 / 4;
    object-fit: contain !important;
    background: #0f172a;
    border-radius: 8px;
  }
  html body .product-card:hover .product-image { transform: none; }
  html body .product-info { padding: 8px 10px 10px !important; }
  html body .product-title {
    font-size: 13px !important;
    line-height: 1.3 !important;
    min-height: 2.6em;
    margin-bottom: 6px !important;
  }
  html body .product-subtitle { display: none; }
  html body .product-price-box {
    background: transparent !important;
    color: #60a5fa !important;
    padding: 0 !important;
    margin: 0 0 8px !important;
    font-size: 16px !important;
    text-align: center;
    box-shadow: none !important;
  }
  html body .product-btn-add {
    padding: 9px 6px !important;
    font-size: 12.5px !important;
    border-radius: 9px !important;
    gap: 5px !important;
  }
  html body .doping-badge { font-size: 9.5px; padding: 4px; }

  html body .cat-banner {
    min-height: 0 !important;
    height: 150px !important;
    border-radius: 14px !important;
    margin-bottom: 14px !important;
  }
  html body .cat-banner-content { padding: 16px !important; }
  html body .cat-banner-content > div { gap: 12px !important; margin-bottom: 6px !important; flex-wrap: nowrap !important; }
  html body .cat-banner-content > div > div:first-child { width: 48px !important; height: 48px !important; border-radius: 11px !important; }
  html body .cat-banner-title { font-size: 20px !important; line-height: 1.2 !important; word-break: break-word; }
  html body .cat-banner-desc { font-size: 12.5px !important; -webkit-line-clamp: 2; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }

  html body .page-layout { display: block !important; }

  html body .m-filter-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    margin-bottom: 12px;
    border-radius: 12px;
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
  }
  html body .m-filter-btn i { color: var(--primary-blue); font-size: 18px; }
  html body .m-filter-cb ~ .sidebar-panel { display: none !important; }
  html body .m-filter-cb:checked ~ .sidebar-panel { display: block !important; margin-bottom: 14px; }
  html body .m-filter-cb:checked ~ .m-filter-btn { border-color: var(--primary-blue); }
  html body .sidebar-panel { padding: 16px !important; border-radius: 14px !important; }

  html body .sub-cat-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
  }
  html body .sub-cat-card { border-radius: 12px; }
  html body .sub-cat-card:hover { transform: none; }
  html body .sub-cat-grid { align-items: start; }
  html body .sub-cat-card > img {
    height: auto !important;
    aspect-ratio: auto !important;
    object-fit: contain !important;
  }
  html body .sub-cat-card > div:first-child:not(.sub-cat-card-body) {
    height: auto !important;
    aspect-ratio: 1 / 1;
  }
  html body .sub-cat-card-body { padding: 9px 8px !important; gap: 6px !important; }
  html body .sub-cat-card span { font-size: 12.5px !important; line-height: 1.25; }

  html body .categories-page { padding: 18px 0 !important; }
  html body .cat-page-title { margin-bottom: 18px; }
  html body .cat-page-title h1 { font-size: 24px; }
  html body .cat-page-title p { font-size: 13px; padding: 0 10px; }
  html body .main-cat-section { padding: 14px; border-radius: 14px; margin-bottom: 14px; }
  html body .main-cat-header { margin-bottom: 12px; padding-bottom: 10px; gap: 10px; }
  html body .main-cat-header h2 { font-size: 18px; }
  html body .main-cat-section .sub-cat-grid > a:first-child {
    grid-column: 1 / -1;
    min-height: 74px !important;
    height: 74px !important;
    border-radius: 12px;
  }
  html body .main-cat-section .sub-cat-grid > a:first-child i { font-size: 26px !important; margin-bottom: 2px !important; }
  html body .main-cat-section .sub-cat-grid > a:first-child span { font-size: 13px !important; }

  html body .product-page-header {
    margin: 10px 0 !important;
    font-size: 12px !important;
    white-space: nowrap;
    overflow-x: auto;
    gap: 6px !important;
    scrollbar-width: none;
  }
  html body .product-page-header::-webkit-scrollbar { display: none; }
  html body .product-detail-section-v2 {
    display: flex !important;
    flex-direction: column;
    gap: 14px !important;
    margin: 8px auto 30px !important;
  }
  html body .product-left-col-v2,
  html body .product-center-col-v2,
  html body .product-right-col-v2 { display: contents !important; }
  html body .product-center-col-v2 > * { order: 6; }
  html body .product-left-col-v2 > div { order: 8; }
  html body .product-right-col-v2 > * { order: 7; }
  html body .product-detail-section-v2 .product-image-card-tall { order: 1; height: auto !important; aspect-ratio: auto !important; max-height: none !important; border-radius: 16px !important; }
  html body .product-detail-section-v2 .product-image-card-tall img {
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
    position: static !important;
    display: block;
  }
  html body .product-detail-section-v2 .product-rating-bar { order: 2; margin: 0 !important; }
  html body .product-detail-section-v2 .product-title-main { order: 3; font-size: 22px !important; line-height: 1.25 !important; margin: 0 !important; }
  html body .product-detail-section-v2 .product-seller-badges { order: 4; margin-top: 0 !important; }
  html body .product-detail-section-v2 .checkout-card { order: 5; }
  html body .checkout-card { padding: 16px !important; border-radius: 16px !important; }
  html body .product-detail-section-v2 .product-features-4grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    width: 100% !important;
    max-width: none !important;
    gap: 8px !important;
  }

  html body .bal-page { margin: 0 auto 30px !important; }
  html body .bal-layout { gap: 0 !important; }
  html body .bal-layout > * { min-width: 0; }

  html body .mob-account-nav {
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 8px !important;
    padding: 10px 14px !important;
    margin: 0 -14px 14px !important;
    border-radius: 0;
    position: sticky;
    top: 0;
    z-index: 50;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 22px), transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 22px), transparent 100%);
  }
  html body .mob-acc-pill { padding: 8px 14px !important; font-size: 13px !important; }

  html body .panel-content {
    padding: 16px !important;
    border-radius: 16px !important;
  }
  html body .panel-content h2 { font-size: 20px !important; line-height: 1.25; }
  html body .panel-content > div:first-child[style*="space-between"] {
    flex-wrap: wrap;
    gap: 10px;
  }
  html body .panel-content > div:first-child[style*="space-between"] .btn { padding: 9px 14px; font-size: 13px; }
  html body .panel-content div[style*="padding: 25px"],
  html body .panel-content div[style*="padding:25px"] { padding: 16px !important; }
  html body .panel-content form > div[style*="grid-template-columns: 1fr 1fr"] { gap: 10px !important; }

  html body .acc-stats {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
    margin-bottom: 18px !important;
  }
  html body .acc-stats > div { padding: 12px 14px !important; border-radius: 12px !important; }
  html body .acc-stats > div:first-child { grid-column: 1 / -1; }
  html body .acc-stats h3 { font-size: 12px !important; margin: 0 0 2px; }
  html body .acc-stats > div > div { font-size: 22px !important; }
  html body .acc-sec-box { flex-direction: column; align-items: flex-start !important; gap: 10px !important; padding: 16px !important; }
  html body .acc-sec-box > i { font-size: 34px !important; }

  html body .tk-head { flex-wrap: wrap; gap: 10px; }
  html body .tk-head h2 { flex: 1 1 auto; }
  html body .tk-head .btn { width: 100%; justify-content: center; padding: 11px; }
  html body .tk-table, html body .tk-table tbody { display: block; width: 100%; }
  html body .tk-table thead { display: none; }
  html body .tk-table tr.tk-row {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "subj id"
      "status date"
      "act act";
    gap: 6px 10px;
    padding: 14px;
    margin-bottom: 10px;
    background: var(--bg-dark);
    border: 1px solid var(--border-color) !important;
    border-radius: 14px;
  }
  html body .tk-table tr.tk-row td { padding: 0 !important; display: block; }
  html body .tk-table .tk-subj { grid-area: subj; min-width: 0; }
  html body .tk-table .tk-subj > div:first-child { font-size: 14.5px; font-weight: 700 !important; line-height: 1.3; word-break: break-word; }
  html body .tk-table .tk-id { grid-area: id; color: var(--text-muted); font-size: 12px; font-weight: 700; }
  html body .tk-table .tk-status { grid-area: status; font-size: 13px; font-weight: 700; }
  html body .tk-table .tk-date { grid-area: date; text-align: right; font-size: 12px !important; }
  html body .tk-table .tk-act { grid-area: act; margin-top: 4px; }
  html body .tk-table .tk-act .btn { display: block; width: 100%; text-align: center; padding: 9px !important; font-size: 13px !important; }
  html body #new-ticket-form { padding: 14px !important; border-radius: 12px !important; }
  html body #new-ticket-form .btn { width: 100%; margin-bottom: 8px; justify-content: center; }

  html body .chat-img-attachment { max-width: 100%; height: auto; }
  html body .ticket-detail-header { padding: 14px !important; }
  html body .ticket-header-title { font-size: 16px !important; line-height: 1.3; }
  html body .ticket-chat-area { min-height: 140px !important; max-height: 60vh !important; padding: 14px !important; }
  html body .chat-bubble-box { max-width: 85% !important; }
  html body .ticket-reply-footer { padding: 14px !important; }
  html body .reply-bottom-controls { flex-wrap: wrap; gap: 8px !important; }
  html body .reply-bottom-controls .btn,
  html body .reply-bottom-controls button[type="submit"] { flex: 1 1 auto; justify-content: center; }

  html body .order-tabs {
    flex-wrap: nowrap !important;
    overflow-x: auto;
    scrollbar-width: none;
    gap: 6px !important;
    margin: 0 -16px 14px !important;
    padding: 0 16px;
  }
  html body .order-tab { flex-shrink: 0; padding: 8px 12px !important; font-size: 13px !important; white-space: nowrap; }
  html body .order-header {
    display: grid !important;
    grid-template-columns: 54px 1fr auto 22px;
    grid-template-areas:
      "thumb sum sum toggle"
      "thumb price status status";
    gap: 4px 12px !important;
    padding: 12px !important;
    align-items: center;
  }
  html body .order-thumb, html body .order-thumb-placeholder { grid-area: thumb; width: 54px !important; height: 54px !important; align-self: start; }
  html body .order-summary { grid-area: sum; min-width: 0; }
  html body .order-summary-title {
    white-space: normal !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 14px !important;
    line-height: 1.3;
  }
  html body .order-summary-meta { gap: 2px 10px !important; font-size: 11.5px !important; }
  html body .order-price { grid-area: price; order: 0 !important; font-size: 16px !important; }
  html body .order-status { grid-area: status; justify-self: end; font-size: 11px !important; padding: 4px 10px !important; }
  html body .order-toggle { grid-area: toggle; justify-self: end; align-self: start; }

  html body .stat-row { grid-template-columns: 1fr 1fr !important; gap: 8px !important; margin-bottom: 14px !important; }
  html body .bal-page .stat-card { padding: 12px 10px !important; border-radius: 12px !important; }
  html body .bal-page .stat-icon { width: 30px !important; height: 30px !important; font-size: 16px !important; margin: 0 auto 4px !important; }
  html body .bal-page .stat-label { font-size: 10.5px !important; }
  html body .bal-page .stat-value { font-size: 17px !important; }
  html body .filter-tabs { flex-wrap: nowrap !important; overflow-x: auto; scrollbar-width: none; margin: 0 -14px 12px; padding: 0 14px; }
  html body .filter-tab { flex-shrink: 0; white-space: nowrap; }
  html body .log-container { padding: 14px !important; border-radius: 16px !important; }

  html body .ltbl, html body .ltbl tbody { display: block; width: 100%; }
  html body .ltbl thead { display: none; }
  html body .ltbl tr {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "desc desc"
      "type amount"
      "date flow";
    gap: 6px 10px;
    padding: 12px;
    margin-bottom: 8px;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 12px;
  }
  html body .ltbl td { display: block; padding: 0 !important; border: 0 !important; min-width: 0; }
  html body .ltbl td:nth-child(1) { grid-area: date; display: flex; gap: 6px; align-items: baseline; color: var(--text-muted); }
  html body .ltbl td:nth-child(1) div { font-size: 11.5px !important; margin: 0 !important; }
  html body .ltbl td:nth-child(2) { grid-area: type; }
  html body .ltbl td:nth-child(3) { grid-area: desc; }
  html body .ltbl td:nth-child(3) > div:first-child { font-size: 13.5px !important; }
  html body .ltbl td:nth-child(4) { grid-area: amount; text-align: right; font-size: 15px !important; }
  html body .ltbl td:nth-child(5) { grid-area: flow; justify-self: end; font-size: 11.5px; }
  html body .ltbl td:nth-child(6) { display: none; }

  html body .panel-content:has(.notif-sidebar) { padding: 0 !important; height: auto !important; flex-direction: column; }
  html body .notif-sidebar { width: 100% !important; max-height: none !important; border-right: none !important; }
  html body .notif-sidebar-header { padding: 14px !important; }
  html body .notif-list { overflow: visible !important; }
  html body .notif-list-item { padding: 12px 14px !important; gap: 12px !important; }
  html body .notif-list-icon { width: 40px !important; height: 40px !important; }
  html body .notif-detail { padding: 0 !important; min-height: 0 !important; }
  html body #notifEmptyState { display: none !important; }
  html body .notif-detail-content { padding: 16px; border-top: 1px solid var(--border-color); }
  html body .notif-detail-header { gap: 12px !important; margin-bottom: 12px !important; }
  html body .notif-detail-header .icon { width: 44px !important; height: 44px !important; font-size: 22px !important; }
  html body .notif-detail-header .info h2 { font-size: 17px !important; }
  html body .notif-detail-body { font-size: 14px !important; line-height: 1.6 !important; }

  html body .footer a,
  html body .footer-col ul li a { display: inline-block; padding: 6px 4px; min-height: 32px; }
  html body .footer [aria-label] { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; }
  html body .mob-nav-item { min-height: 48px; }
}

@media (min-width: 901px) {
  .m-filter-btn { display: none !important; }
}
