:root {
  --bg-color: #0f172a;
  --card-bg: #12161c;
  --bg-card: #12161c;
  --modal-bg: #0f172a;
  --border-color: #232931;
  --text-main: #c7ccd1;
  --text-muted: #8b949e;
  --accent-gold: #d4af37;
  --btn-gold: linear-gradient(180deg, #d4af37 0%, #d98200 100%);
  --green: #40c463a3;
  --red: #f85149b5;
  --blue: #58a6ff;
  --purple: #bc8cff;
}
.filter-actions .form-select-sm {
  background-color: #0f172a;
  color: #fff;
}
/* ==========================================================================
   RESPONSIVE MEDIA QUERIES (Mobile & Tablet)
   ========================================================================== */

@media (max-width: 1120px) {
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .nav-actions {
    margin: 30px auto 0;
  }
  .table-panel {
    overflow-x: scroll;
  }
  .mn-100{
    min-width: 100px;
  }
}
/* 1. Tablets and Small Desktops (max-width: 991.98px) */
@media (max-width: 991.98px) {
  .profile-container {
    padding: 15px 16px;
  }

  .search-input-box {
    width: 260px;
  }

  .score-display {
    font-size: 36px;
  }

  .sub-data button {
    min-width: 45%;
    margin-bottom: 8px;
  }

  .metric-box {
    /* min-height: auto; */
    margin-bottom: 8px;
  }
}

/* 2. Mobile & Small Tablet Devices (max-width: 767.98px) */
@media (max-width: 768px) {
  .top-nav {
    flex-wrap: wrap;
    padding: 10px 16px;
  }

  .search-input-box {
    width: 100%;
    order: 3;
    margin-top: 8px;
  }

  .avatar-glow {
    width: 90px;
    height: 90px;
    margin: 0 auto 12px auto;
  }

  .avatar-badge {
    width: 32px;
    height: 32px;
    font-size: 10px;
  }

  span.avatar-badge.posad {
    bottom: -5%;
    right: 35%;
  }

  .profile-header-card {
    text-align: center;
    padding: 8px;
  }

  .metric-label {
    justify-content: center;
  }

  .metric-val {
    text-align: center;
  }

  .score-display {
    font-size: 32px;
  }

  .sub-data button {
    width: 100%;
    min-width: 100%;
    justify-content: center;
    gap: 8px;
  }

  /* Table Horizontal Scrolling for Mobile */
  .table-dark-custom,
  .crypto-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .post-card {
    padding: 10px;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 3. Small Mobile Devices (max-width: 575.98px) */
@media (max-width: 575.98px) {
  body {
    font-size: 12px;
  }

  .profile-container {
    padding: 10px;
    margin-bottom: 60px;
  }

  .brand-title {
    font-size: 14px;
  }

  .nav-tabs-custom {
    gap: 8px;
  }

  .tab-item {
    padding: 6px 8px;
    font-size: 11px;
  }

  .btn-hug-action,
  .btn-kick-action {
    padding: 8px 10px;
    font-size: 12px;
  }

  .reaction-tooltip {
    display: none; /* Hide tooltips on touch screens */
  }
  #mainViewContainer {
    /* position: absolute; */
  }
  #notificationsPanel,
  #followersPanel,
  #bondedPanel {
    height: 90vh;
    position: absolute;
    top: 9%;
    left: 0;
    width: 100%;
    background-color: #0f172a;
    z-index: 999;
  }
  .fc {
    flex-direction: column;
  }
  .avatar-glow {
    width: 110px;
    height: 110px;
  }
  span.avatar-badge.posad {
    bottom: -5%;
    right: -5%;
  }
  .wb-con h5 {
    font-size: 0.75rem;
    text-align: left;
  }
  .ver img {
    width: 120px !important;
  }
  #deleteAvatarBtn {
    position: absolute;
    top: -380%;
    left: 85% !important;
  }
  .tl {
    text-align: left;
  }
  .mbx .col {
    min-width: 120px;
  }
  .sub-data {
    flex-wrap: wrap;
  }
  .sub-data button {
    width: 46%;
    min-width: 46%;
    padding: 6px 10px;
    font-size: 12px;
  }
  #mobileStatsPanel {
    position: absolute;
    background: #0f172a;
    top: 0;
    left: 5%;
    width: 90%;
    height: 30vh;
    z-index: 999;
  }
  #mobileStatsToggleBtn {
    position: relative;
    z-index: 99999;
  }
  .mv {
    display: none;
  }
  .score-card img.w2 {
    width: 100px !important;
  }
  .score-card img.w1 {
    width: 110px !important;
  }
  #postTabs {
    margin-left: 10%;
  }
  .nav-actions {
    margin-top: 20px;
    flex-wrap: wrap;
  }
  .nav-actions button,
  .nav-actions .trust-check-badge {
    width: 48%;
  }

  .nav-actions button#walletMenu {
    width: 100%;
  }

  /* .nav-actions #communityLikesBtn {
    width: 16%;
  } */
  .stats-grid {
    grid-template-columns: repeat(1, 1fr);
  }
  .stat-card {
    padding: 6px;
  }
  .stat-icon {
    width: 40px;
    height: 40px;
  }
  .stat-icon i {
    font-size: 20px;
  }
  .stat-val {
    font-size: 18px;
    padding: 4px 0;
  }
  /* .nav-actions .dropdown {
    width: 100%;
  } */
  .controls-bar {
    flex-direction: column;
  }
  .filter-actions .form-select-sm {
    font-size: 0.75rem;
    background-color: #0f172a;
    color: #fff;
  }

  .filter-actions select option {
    /* color: #000; */
  }
  .dn {
    display: none;
  }
  .padj {
    padding: 16px;
  }
  .address-box {
    font-size: 12px;
  }
  .table-panel {
    overflow: scroll;
  }
  #walletTableBody tr td span {
    font-size: 10px;
  }
  .brand span {
    margin-bottom: 10px;
    display: inline-block;
  }
  .controls-bar .tab.active {
    margin-bottom: 10px;
  }
  .metric-box {
    margin-bottom: 0px;
    padding: 4px 6px;
    min-height: 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  i.fsc {
    font-size: 12px !important;
  }
  .metric-val {
    font-size: 14px;
  }
  .profile-container .paj {
    padding-left: 0;
    padding-right: 0;
  }
  .fb button {
    display: flex;
    align-items: center;
  }
  .fb button span {
    line-height: 0;
  }
  .icadj.ad {
    top: -8px;
    right: -1px;
  }
  #followersPanel .table-dark-custom,
  #bondedPanel .table-dark-custom {
    font-size: 12px;
  }
  .fsu {
    font-size: 14px;
  }
  .dc .text-gold {
    color: #d49e35 !important;
    font-weight: 400;
    font-size: 12px;
  }
  .crypto-table td {
    padding-top: 8px;
    padding-bottom: 8px;
    font-size: 12px;
  }
  .table-dark-custom td {
    padding: 6px 8px;
  }
}
