/* market.css — Vạn Bảo Phường Thị · Mị Hồ (Sàn Giao Dịch & Đấu Giá Modal) */

.market-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  pointer-events: auto !important;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  padding: 16px;
  animation: mktFadeIn 0.25s ease-out;
}

.market-modal * {
  pointer-events: auto;
  box-sizing: border-box;
}

.market-modal {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

.market-modal::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.mkt-body,
.mkt-bag-items,
.mkt-cat-group,
.mkt-nav-bar,
.mkt-dialog-box {
  scrollbar-width: thin !important;
  scrollbar-color: rgba(244, 63, 94, 0.4) transparent !important;
  -webkit-overflow-scrolling: touch;
}

.mkt-body::-webkit-scrollbar,
.mkt-bag-items::-webkit-scrollbar,
.mkt-cat-group::-webkit-scrollbar,
.mkt-nav-bar::-webkit-scrollbar,
.mkt-dialog-box::-webkit-scrollbar {
  display: block !important;
  width: 5px !important;
  height: 4px !important;
}

.mkt-body::-webkit-scrollbar-thumb,
.mkt-bag-items::-webkit-scrollbar-thumb,
.mkt-cat-group::-webkit-scrollbar-thumb,
.mkt-nav-bar::-webkit-scrollbar-thumb,
.mkt-dialog-box::-webkit-scrollbar-thumb {
  background: rgba(244, 63, 94, 0.4) !important;
  border-radius: 4px !important;
}

.mkt-body::-webkit-scrollbar-track,
.mkt-bag-items::-webkit-scrollbar-track,
.mkt-cat-group::-webkit-scrollbar-track,
.mkt-nav-bar::-webkit-scrollbar-track,
.mkt-dialog-box::-webkit-scrollbar-track {
  background: transparent !important;
}

.market-modal.hidden {
  display: none !important;
  pointer-events: none !important;
}

@keyframes mktFadeIn {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

.mkt-window {
  width: 100%;
  max-width: 960px;
  height: 620px;
  max-height: 94%;
  min-height: 0;
  background: linear-gradient(175deg, #1c141a 0%, #120e14 50%, #0a070c 100%);
  border: 1px solid rgba(244, 63, 94, 0.35);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.9), 0 0 45px rgba(244, 63, 94, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: #f1f5f9;
  font-family: 'Be Vietnam Pro', 'Nunito', sans-serif;
}

/* Header */
.mkt-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: linear-gradient(90deg, rgba(244, 63, 94, 0.2), rgba(28, 20, 26, 0.8) 50%, rgba(251, 191, 36, 0.12));
  border-bottom: 1px solid rgba(244, 63, 94, 0.25);
  flex-shrink: 0;
}

.mkt-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.mkt-avatar-frame {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1.5px solid rgba(251, 191, 36, 0.6);
  box-shadow: 0 0 15px rgba(244, 63, 94, 0.4);
  overflow: hidden;
  background: #2a1520;
  flex-shrink: 0;
}

.mkt-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mkt-title-text h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  background: linear-gradient(90deg, #fbcfe8, #fcd34d 60%, #ffffff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.5px;
}

.mkt-title-text p {
  margin: 2px 0 0 0;
  font-size: 11px;
  color: #fda4af;
  opacity: 0.85;
}

.mkt-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mkt-wallet-box {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 6px 14px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(251, 191, 36, 0.25);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
}

.mkt-currency-stones {
  color: #fde047;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.mkt-currency-ngoc {
  color: #f472b6;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.mkt-wallet-box .ic-linhthach,
.mkt-wallet-box .ic-ngoc,
.mkt-currency-stones .ic-linhthach,
.mkt-currency-ngoc .ic-ngoc {
  width: 15px;
  height: 15px;
  object-fit: contain;
  vertical-align: -2px;
  display: inline-block;
  image-rendering: pixelated;
}

.mkt-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.mkt-close-btn:hover {
  background: rgba(244, 63, 94, 0.35);
  color: #ffffff;
  border-color: #f43f5e;
  transform: rotate(90deg);
}

/* Nav Subheader */
.mkt-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 18px;
  background: rgba(0, 0, 0, 0.45);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  flex-shrink: 0;
}

.mkt-tab-group {
  display: flex;
  gap: 8px;
}

.mkt-tab-btn {
  padding: 6px 16px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(30, 20, 28, 0.6);
  color: #94a3b8;
  transition: all 0.2s;
}

.mkt-tab-btn:hover {
  color: #f1f5f9;
  background: rgba(244, 63, 94, 0.15);
  border-color: rgba(244, 63, 94, 0.3);
}

.mkt-tab-btn.active {
  background: linear-gradient(90deg, rgba(244, 63, 94, 0.8), rgba(217, 119, 6, 0.8));
  color: #ffffff;
  border-color: rgba(253, 224, 71, 0.6);
  box-shadow: 0 0 14px rgba(244, 63, 94, 0.35);
}

.mkt-refresh-btn {
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 11px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  cursor: pointer;
  transition: all 0.2s;
}

.mkt-refresh-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

/* Content Container */
.mkt-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  padding: 16px 20px;
}

/* Controls Bar (Filter & Search) */
.mkt-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  margin-bottom: 14px;
}

.mkt-cat-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.mkt-cat-btn {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  transition: all 0.15s;
}

.mkt-cat-btn:hover {
  color: #f1f5f9;
  border-color: rgba(251, 191, 36, 0.3);
}

.mkt-cat-btn.active {
  background: rgba(251, 191, 36, 0.18);
  border-color: rgba(251, 191, 36, 0.6);
  color: #fde047;
}

.mkt-search-wrap {
  position: relative;
  min-width: 200px;
}

.mkt-search-input {
  width: 100%;
  padding: 5px 28px 5px 10px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  font-size: 12px;
  color: #ffffff;
  outline: none;
}

.mkt-search-input:focus {
  border-color: #f43f5e;
}

/* Item Cards Grid */
.mkt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 12px;
}

.mkt-card {
  background: linear-gradient(180deg, rgba(30, 22, 30, 0.8) 0%, rgba(18, 12, 18, 0.9) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  transition: all 0.2s;
}

.mkt-card:hover {
  border-color: rgba(251, 191, 36, 0.4);
  box-shadow: 0 0 18px rgba(244, 63, 94, 0.15);
  transform: translateY(-2px);
}

.mkt-card-top {
  display: flex;
  gap: 10px;
}

.mkt-card-icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: #0d080e;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  position: relative;
  flex-shrink: 0;
  padding: 3px;
  overflow: hidden;
}

.mkt-item-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
  border-radius: 6px;
}

.mkt-card-count {
  position: absolute;
  bottom: 2px;
  right: 4px;
  font-size: 10px;
  font-weight: 800;
  color: #fde047;
  text-shadow: 0 1px 3px #000, 0 0 4px #000;
  background: rgba(0, 0, 0, 0.7);
  padding: 0 4px;
  border-radius: 4px;
  line-height: 1.2;
}

.mkt-card-info {
  flex: 1;
  min-width: 0;
}

.mkt-card-tier-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  display: inline-block;
  border: 1px solid transparent;
}

.mkt-card-title {
  margin: 3px 0 0 0;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mkt-card-seller {
  font-size: 11px;
  color: #94a3b8;
  margin: 2px 0 0 0;
}

.mkt-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mkt-price-label {
  font-size: 9px;
  color: #94a3b8;
  display: block;
}

.mkt-price-val {
  font-size: 13px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.mkt-price-val img {
  width: 14px;
  height: 14px;
  object-fit: contain;
  vertical-align: -2px;
}

.mkt-buy-btn {
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  background: linear-gradient(90deg, #f59e0b, #d97706);
  color: #000000;
  border: none;
  cursor: pointer;
  transition: all 0.15s;
}

.mkt-buy-btn:hover {
  background: linear-gradient(90deg, #fbbf24, #f59e0b);
  box-shadow: 0 0 12px rgba(251, 191, 36, 0.4);
  transform: scale(1.03);
}

/* Sell Tab Layout */
.mkt-sell-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 16px;
}

@media (max-width: 768px) {
  .mkt-sell-grid { grid-template-columns: 1fr; }
}

.mkt-bag-panel, .mkt-form-panel {
  background: rgba(20, 14, 20, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 14px;
}

.mkt-panel-title {
  font-size: 12px;
  font-weight: 700;
  color: #fde047;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.mkt-bag-items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 8px;
  max-height: 380px;
  overflow-y: auto;
}

.mkt-bag-card {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 8px;
  cursor: pointer;
  transition: all 0.15s;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mkt-bag-card:hover {
  border-color: #f43f5e;
  background: rgba(244, 63, 94, 0.1);
}

.mkt-bag-card.selected {
  border-color: #f43f5e;
  background: rgba(244, 63, 94, 0.2);
  box-shadow: 0 0 14px rgba(244, 63, 94, 0.35);
}

.mkt-bag-thumb {
  width: 38px;
  height: 38px;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.mkt-enh-badge {
  position: absolute;
  top: 1px;
  left: 1px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
  font-size: 8.5px;
  font-weight: 900;
  padding: 0 3px;
  border-radius: 4px;
  border: 1px solid rgba(254, 240, 138, 0.45);
  line-height: 13px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
  z-index: 2;
  font-family: monospace;
}

.mkt-form-group {
  margin-bottom: 12px;
}

.mkt-form-label {
  font-size: 11px;
  color: #94a3b8;
  margin-bottom: 4px;
  display: block;
}

.mkt-form-input {
  width: 100%;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  outline: none;
}

.mkt-form-input:focus {
  border-color: #f43f5e;
}

.mkt-curr-select-row {
  display: flex;
  gap: 8px;
}

.mkt-curr-select-btn {
  flex: 1;
  padding: 7px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.5);
  color: #94a3b8;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.mkt-curr-select-btn img {
  width: 14px;
  height: 14px;
  object-fit: contain;
}

.mkt-curr-select-btn.active {
  border-color: #f43f5e;
  background: rgba(244, 63, 94, 0.2);
  color: #fecdd3;
}

.mkt-submit-btn {
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  background: linear-gradient(90deg, #f43f5e, #e11d48);
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  border: none;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(244, 63, 94, 0.4);
  transition: all 0.2s;
}

.mkt-submit-btn:hover {
  background: linear-gradient(90deg, #fb7185, #f43f5e);
  transform: translateY(-1px);
}

/* Custom Confirmation Modal Overlay */
.mkt-dialog-overlay {
  position: fixed;
  inset: 0;
  z-index: 10005;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: mktFadeIn 0.2s ease-out;
}

.mkt-dialog-box {
  width: 100%;
  max-width: 440px;
  background: linear-gradient(175deg, #22141c 0%, #170d14 50%, #0d070b 100%);
  border: 1.5px solid rgba(244, 63, 94, 0.4);
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.95), 0 0 30px rgba(244, 63, 94, 0.25);
  color: #f1f5f9;
  font-family: 'Be Vietnam Pro', 'Nunito', sans-serif;
}

.mkt-dialog-title {
  font-size: 16px;
  font-weight: 800;
  color: #fda4af;
  margin: 0 0 12px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mkt-dialog-item {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.mkt-dialog-item-icon {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 2px;
}

.mkt-warning-banner {
  background: rgba(225, 29, 72, 0.15);
  border: 1px solid rgba(244, 63, 94, 0.4);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 11px;
  line-height: 1.5;
  color: #fecdd3;
  margin-bottom: 16px;
}

.mkt-warning-banner b {
  color: #fde047;
}

.mkt-dialog-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.mkt-dialog-btn-cancel {
  padding: 8px 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}

.mkt-dialog-btn-cancel:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.mkt-dialog-btn-confirm {
  padding: 8px 18px;
  border-radius: 8px;
  background: linear-gradient(90deg, #f43f5e, #e11d48);
  border: none;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 0 15px rgba(244, 63, 94, 0.35);
  transition: all 0.15s;
}

.mkt-dialog-btn-confirm:hover {
  background: linear-gradient(90deg, #fb7185, #f43f5e);
  transform: translateY(-1px);
}

.mkt-dialog-btn-buy {
  padding: 8px 18px;
  border-radius: 8px;
  background: linear-gradient(90deg, #f59e0b, #d97706);
  border: none;
  color: #000;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 0 15px rgba(251, 191, 36, 0.35);
  transition: all 0.15s;
}

.mkt-dialog-btn-buy:hover {
  background: linear-gradient(90deg, #fbbf24, #f59e0b);
  transform: translateY(-1px);
}

/* Gian Hàng Của Tôi */
.mkt-my-item-card {
  transition: all 0.15s ease;
}

.mkt-my-price {
  white-space: nowrap !important;
}

.mkt-my-curr-name {
  font-size: 11px;
  font-weight: 500;
  opacity: 0.85;
}

.mkt-claim-btn,
.mkt-cancel-btn {
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

/* ==========================================================================
   Responsive for Mobile Landscape & Small Screen Viewports
   ========================================================================== */
@media (max-height: 620px), (max-width: 860px) {
  .market-modal {
    padding: 4px !important;
  }

  .mkt-window {
    width: 100% !important;
    max-width: 98% !important;
    height: 98% !important;
    max-height: 98% !important;
    min-height: 0 !important;
    border-radius: 12px !important;
  }

  /* Gian Hàng Của Tôi mobile compact */
  .mkt-my-curr-name {
    display: none !important;
  }

  /* Header compact */
  .mkt-header {
    padding: 5px 10px !important;
    gap: 8px;
  }

  .mkt-header-left {
    gap: 8px;
    min-width: 0;
    flex: 1;
  }

  .mkt-avatar-frame {
    width: 32px !important;
    height: 32px !important;
    flex-shrink: 0;
  }

  .mkt-title-text {
    min-width: 0;
  }

  .mkt-title-text h2 {
    font-size: 13.5px !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .mkt-title-text p {
    display: none !important;
  }

  .mkt-header-right {
    gap: 6px;
    flex-shrink: 0;
  }

  .mkt-wallet-box {
    padding: 3px 8px !important;
    font-size: 10.5px !important;
    gap: 8px !important;
    border-radius: 12px !important;
  }

  .mkt-close-btn {
    width: 28px !important;
    height: 28px !important;
    font-size: 13px !important;
    flex-shrink: 0;
  }

  /* Nav Tabs */
  .mkt-nav-bar {
    padding: 4px 10px !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 8px;
  }

  .mkt-tab-group {
    gap: 6px;
    flex-shrink: 0;
  }

  .mkt-tab-btn {
    padding: 4px 10px !important;
    font-size: 11px !important;
    white-space: nowrap !important;
  }

  .mkt-refresh-btn {
    padding: 4px 8px !important;
    font-size: 10px !important;
    white-space: nowrap !important;
    flex-shrink: 0;
  }

  /* Filter Bar */
  .mkt-filter-bar {
    padding: 5px 8px !important;
    margin-bottom: 8px !important;
    gap: 6px !important;
    border-radius: 8px !important;
  }

  .mkt-cat-group {
    gap: 4px !important;
    flex-wrap: nowrap !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .mkt-cat-btn {
    padding: 3px 7px !important;
    font-size: 10px !important;
    white-space: nowrap !important;
  }

  .mkt-search-wrap {
    min-width: 130px !important;
    flex: 1;
    max-width: 220px;
  }

  .mkt-search-input {
    height: 26px !important;
    padding: 3px 24px 3px 8px !important;
    font-size: 10.5px !important;
  }

  /* Body Container */
  .mkt-body {
    padding: 8px 10px !important;
  }

  /* Market Grid Cards */
  .mkt-grid {
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)) !important;
    gap: 8px !important;
  }

  .mkt-card {
    padding: 8px 10px !important;
    gap: 6px !important;
    border-radius: 8px !important;
  }

  .mkt-card-icon {
    width: 38px !important;
    height: 38px !important;
    font-size: 18px !important;
  }

  .mkt-card-title {
    font-size: 12px !important;
  }

  .mkt-card-seller {
    font-size: 10px !important;
  }

  .mkt-price-val {
    font-size: 12px !important;
  }

  .mkt-buy-btn {
    padding: 4px 10px !important;
    font-size: 11px !important;
  }

  /* Sell Tab */
  .mkt-sell-grid {
    gap: 8px !important;
  }

  .mkt-bag-panel, .mkt-form-panel {
    padding: 8px 10px !important;
    border-radius: 10px !important;
  }

  .mkt-panel-title {
    font-size: 11px !important;
    margin-bottom: 6px !important;
  }

  .mkt-bag-items {
    max-height: 180px !important;
    gap: 6px !important;
    grid-template-columns: repeat(auto-fill, minmax(85px, 1fr)) !important;
  }

  .mkt-bag-card {
    padding: 4px 6px !important;
    border-radius: 8px !important;
  }

  .mkt-bag-thumb {
    width: 32px !important;
    height: 32px !important;
  }

  .mkt-form-group {
    margin-bottom: 6px !important;
  }

  .mkt-form-label {
    font-size: 10px !important;
    margin-bottom: 2px !important;
  }

  .mkt-form-input {
    padding: 5px 8px !important;
    font-size: 12px !important;
  }

  .mkt-curr-select-btn {
    padding: 5px !important;
    font-size: 11px !important;
  }

  .mkt-submit-btn {
    padding: 7px !important;
    font-size: 12px !important;
  }

  /* Dialogs */
  .mkt-dialog-overlay {
    padding: 8px !important;
  }

  .mkt-dialog-box {
    max-height: 94% !important;
    overflow-y: auto !important;
    padding: 12px 14px !important;
    border-radius: 12px !important;
  }
}

/* Portrait mobile & narrow widths */
@media (max-width: 600px) {
  .mkt-sell-grid {
    grid-template-columns: 1fr !important;
  }

  .mkt-grid {
    grid-template-columns: 1fr !important;
  }

  .mkt-wallet-box {
    padding: 2px 6px !important;
    font-size: 9.5px !important;
    gap: 5px !important;
  }

  .mkt-wallet-box .ic-linhthach,
  .mkt-wallet-box .ic-ngoc {
    width: 12px !important;
    height: 12px !important;
  }

  .mkt-my-curr-name {
    display: none !important;
  }
}
