@media only screen and (max-width:1160px) {
   .container {
      max-width: unset; 
  }

  .crypt-heading-menu.desktop, .transparent-menu-bg {
    display:none;
  }
  #mobile_menu{
    display:block;
  }
  
  #mobile_menu.temp-2{
    width: 100%; 
    border: 1px solid #ffffff2e; 
    padding: 5px; 
    margin-right:10px; 
    border-radius: 50px; 
    background: rgba(0, 0, 0, 0); 
    display: grid; 
    grid-template-columns: 1fr 40px; 
    backdrop-filter: blur(5px);
  }

  .tab-flex-center{
    justify-content:center;
  }
  .tab-text-center{
    text-align:center;
  }

  div#mobile_menu .mobile_menu_list ul.crypt-heading-menu{
    display:flex;
  }

  /* Template 1*/
  .column-2{
    display:grid !important;
    grid-template-columns:100%;
  }

  .column-2 > *, .column-3 > * {
    width: 100%;
  }

  .column-3{
    display:grid !important;
    grid-template-columns:1fr 1fr;
  }

  .tab-plan{
    width:100%;
  }
  .tab-pane.active{
    overflow:hidden;
  }

  /* Template 2*/
  .temp2-hero {
    padding-top: 130px;
    width: 100%;
    height: auto;
    position: relative;
  }

  .hero-text{
    margin-bottom: 40px;
  }
  /* Template 3*/
  .temp3-hero{
    padding-top:110px;
  }
  .temp3-hero .image img{
    width:300px;
  }

  .cb-wrap{
    padding:60px 0px;
  }

  .card-body-wrap2{
    padding: 40px;
  }
  .faqs{
    padding:0px 13px;
  }

  /* util */

  .tab-mb-40{
    margin-bottom:40px;
  }
}

/* Fix Deposit/Convert cards in the narrow col-lg-3 right panel (992px–1399px) */
@media (min-width: 992px) and (max-width: 1399px) {
  .deposit-card,
  .convert-card {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px;
  }
  .deposit-card .btn,
  .convert-card .btn {
    width: 100%;
    white-space: nowrap;
  }
  .deposit-card h5,
  .convert-card h5 {
    font-size: 0.95rem;
  }
  .deposit-card p,
  .convert-card p {
    font-size: 0.8rem;
  }
}

@media (max-width:768px) {
  .header {
    position: fixed;
    left: 55px;
    width: calc(100% - 65px);
    top: 0;
    background: var(--color-bg);
    z-index: 10;
    padding-left: 19px;
  }
  
  section.fixed-sidebar > .wrapper {
    padding-top: 68px;
  }

  .header-boxed .crypt-heading-menu {
    border-radius: 0px;
    z-index: 99;
  }
  .column-3{
    display:grid !important;
    grid-template-columns:100%;
  }

  .crypt-hero{
    padding-top: 60px;
  }

  .hero-text h1{
    font-size: 60px;
    line-height: 70px;
  }

  .temp2-hero button.btn-secondary{
      padding:17px;
  }
  .temp3-hero h1{
    font-size:60px;
  }

  /* Dashboard overview: stack deposit/buy cards vertically */
  .deposit-card,
  .convert-card {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px;
  }
  .deposit-card .btn,
  .convert-card .btn {
    width: 100%;
  }
}

#sidebar-mobile-toggle{
  display:none;
}
@media only screen and (max-width:575px) {
  /* Header full-width since sidebar is now at bottom */
  .header {
    left: 0 !important;
    width: 100% !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
    gap: 4px;
  }

  /* Ensure content is not hidden behind the fixed header */
  section.fixed-sidebar > .wrapper {
    padding-top: 62px !important;
  }

  /* Header elements: tighten spacing */
  .user-settings {
    gap: 4px !important;
  }
  .user-settings .btn {
    padding: 4px 8px !important;
    font-size: 12px !important;
  }
  .user-settings .dropdown-toggle {
    height: 30px !important;
  }

  #sidebar-mobile-toggle svg {
    color: var(--color-primary-700);
    width: 20px;
    height: 20px;
    margin-right: 5px;
    transition: all 300ms ease-out;
  }
  #sidebar-mobile-toggle svg:hover{
    color: var(--color-primary-500);
  }
  #sidebar-mobile-toggle{
    display:none;
    cursor:pointer;
  }

  /* Bottom tab bar is always visible — disable sidebar-mobile-close */
  body.sidebar-mobile-close .sidebar {
    width: 100% !important;
    height: auto !important;
    transition: none;
  }

  body.sidebar-mobile-close .fixed-sidebar .sidebar ~ .wrapper{
    margin-left: 0px;
  }
  .sidebar ~ .wrapper {
    margin-left: 0 !important;
    transition: all 300ms ease-out;
  }

  /* Smaller profile image on mobile */
  .user-profile,
  .user-profile-placeholder {
    width: 70px !important;
    height: 70px !important;
  }

  /* Tighter card padding */
  .card-bs {
    padding: 10px !important;
  }
  .card-bs-tabs {
    padding: 10px !important;
  }

  /* Stack overview buttons */
  .overview-buttons {
    flex-direction: column !important;
    display: flex !important;
  }
  .overview-buttons .btn {
    width: 100% !important;
  }

  /* Account summary cards: reduce icon size */
  .card-body img[src*="icon"] {
    width: 40px !important;
  }

  /* Reduce h2 total asset size */
  h2.fw-bold.encrypted {
    font-size: 1.5rem !important;
  }
}


@media only screen and (max-width:430px) {
  .header-boxed .crypt-heading-menu {
    border-radius: 0px;
    z-index: 99;
  }
  .hero-text h1{
     font-size: 48px;
     line-height: 56px;
  }
  .hero-text p {
    font-size: 18px;
    line-height: 28px;
  }

  /* Very small phones: further reduce profile image */
  .user-profile,
  .user-profile-placeholder {
    width: 56px !important;
    height: 56px !important;
  }

  /* Tighter header */
  .header {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
  }

  /* Market table: hide less important columns */
  .market-table-container th:nth-child(4),
  .market-table-container td:nth-child(4),
  .market-table-container th:nth-child(5),
  .market-table-container td:nth-child(5) {
    display: none;
  }
}

