  /* archive tabs with table css */
  .archive-coins-table {
      margin: 3rem 0;
  }

  .archive-coins-table .cryptocoins-table-header {
      margin-bottom: 16px;
      display: flex;
      justify-content: flex-start;
      align-items: center;
      gap: 1rem;
  }

  .archive-coins-table .cryptocoins-table-header .search-form-box {
      margin-left: auto;
      flex: 0 0 auto;
  }

  .archive-coins-table .cryptocoins-tabs {
      margin: 0 auto 0 0;
      flex: 1 0 0;
      display: flex;
      justify-content: flex-start;
      gap: 24px;
      overflow-x: auto;
      flex-wrap: nowrap;
      scrollbar-width: none;
      -ms-overflow-style: none;
      width: calc(100% - 160px - 1rem);
  }

  .archive-coins-table .cryptocoins-tabs button {
      position: relative;
      color: var(--text-secondary, rgba(66, 66, 66, 0.8));
      font-family: var(--family-body, "Sora", sans-serif);
      font-size: var(--size-lg, 18px);
      font-weight: 600;
      line-height: var(--line-height-lg, 32px);
      cursor: pointer;
      white-space: nowrap;
      flex: 0 0 auto;
      border: 0;
      background: transparent;
      padding: 0;
      margin: 0;
      display: flex;
      justify-content: center;
      align-items: center;
      border-radius: 0;
      transition: color 0.3s ease-in-out;
      text-transform: capitalize;
  }

  /* Create the animated underline */
  .archive-coins-table .cryptocoins-tabs button::after {
      content: "";
      position: absolute;
      bottom: 0;
      left: 50%;
      width: 0;
      height: 2px;
      background: var(--secondary-primary, #1946F6);
      transition: all 0.3s ease-in-out;
      transform: translateX(-50%);
  }

  /* Active / Hover state */
  .archive-coins-table .cryptocoins-tabs button:hover::after,
  .archive-coins-table .cryptocoins-tabs button:focus::after,
  .archive-coins-table .cryptocoins-tabs button.active::after {
      width: 100%;
  }

  .archive-coins-table .cryptocoins-tabs button:hover,
  .archive-coins-table .cryptocoins-tabs button.active {
      color: var(--text-primary, #242424);
  }

  .archive-coins-table .cryptocoins-table-wrap {
      background: var(--surface-1, #FFF);
      padding: 0;
      border: none;
      border-radius: 0;
      margin: 0;
  }

  .archive-coins-table .cryptocoins-table:not(table) {
      margin-bottom: 0;
  }

  .archive-coins-table .cryptocoins-table table {
      width: 100%;
      margin-bottom: 1rem;
  }


  .cryptocoins-table table thead th {
      padding: 0 15px 10px 15px;
      color: var(--text-secondary, rgba(66, 66, 66, 0.80));
      font-family: "Sora", sans-serif;
      font-size: 14px;
      font-style: normal;
      font-weight: 400;
      line-height: 20px;
  }

  .cryptocoins-table table thead th:first-child {
      padding: 0 4px 10px 16px;
      text-align: center;
  }

  .cryptocoins-table table thead th:last-child {
      padding: 0 16px 10px 4px;
  }

  .archive-coins-table .cryptocoins-table table thead th:nth-child(2) {
      padding: 0 15px 10px 4px;
  }

  .cryptocoins-table table tbody tr td {
      padding: 12px 15px 12px;
      background: var(--surface-2, #F5F5F5);
      vertical-align: middle;
      position: relative;
      border: 0;
  }

  /* for bottom border effect look */
  .cryptocoins-table table tbody tr td::after {
      content: "";
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      height: 1px;
      background: var(--additional-divider, #E3E3E3);
      ;
  }

  .cryptocoins-table table tbody tr td:first-child::after {
      left: 1rem;
  }

  .cryptocoins-table table tbody tr td:last-child::after {
      right: 1rem;
  }

  .cryptocoins-table table tbody tr:first-child td {
      padding: 16px 15px 12px;
      font-family: var(--family-body, "Sora", sans-serif);
  }

  .cryptocoins-table table tbody tr:last-child td {
      padding: 12px 15px 16px;
  }

  .cryptocoins-table table tbody tr:last-child td::after {
      display: none;
  }

  .cryptocoins-table table tbody tr:first-child td:first-child {
      border-top-left-radius: 24px;
  }

  .cryptocoins-table table tbody tr:first-child td:last-child {
      border-top-right-radius: 24px;
  }

  .cryptocoins-table table tbody tr:last-child td:first-child {
      border-bottom-left-radius: 24px;
  }

  .cryptocoins-table table tbody tr:last-child td {
      border-bottom: 0;
  }

  .cryptocoins-table table tbody tr:last-child td:last-child {
      border-bottom-right-radius: 24px;
  }

  .cryptocoins-table table tbody tr td:first-child {
      color: var(--text-secondary, rgba(66, 66, 66, 0.80));
      text-align: center;
      font-size: 16px;
      font-style: normal;
      font-weight: 700;
      line-height: 150%;
      padding: 16px 4px 12px 16px;

  }

  .cryptocoins-table table tbody tr td:last-child {
      padding-left: 4px;
  }

  .cryptocoins-table table tbody tr td:nth-child(2) {
      padding: 12px 15px 12px 4px;
  }

  .cryptocoins-table table tbody tr:first-child td:nth-child(2) {
      padding-top: 16px;
  }

  .cryptocoins-table table tbody tr:last-child td:nth-child(2) {
      padding-bottom: 16px;
  }

  .cryptocoins-table table .coin-name .coin-link {
      display: grid;
      grid-template-columns: 36px 1fr;
      gap: 8px;
      align-items: center;
  }

  .cryptocoins-table table .coin-name .coin-link .coin-logo {
      --size: 36px;
      width: var(--size);
      min-width: var(--size);
      height: var(--size);
      object-fit: contain;
  }

  .coin-name .coin-link .coin-details {
      display: flex;
      flex-flow: column;
      word-break: break-word;
  }

  .coin-name .coin-link .coin-details .coin-symbol {
      color: var(--text-primary, #242424);
      font-size: 16px;
      font-style: normal;
      font-weight: 600;
      line-height: 24px;
      word-break: break-word;
  }

  .coin-name .coin-link .coin-details .coin-title {
      color: var(--text-secondary, rgba(66, 66, 66, 0.80));
      font-size: 10px;
      font-style: normal;
      font-weight: 400;
      line-height: 12px;
      word-break: break-word;
  }

  .cryptocoins-table table td.coin-price,
  .cryptocoins-table table td.coin-marketcap,
  .cryptocoins-table table td.coin-volume,
  .cryptocoins-table table td.coin-supply {
      color: var(--text-primary, #242424);
      font-size: 16px;
      font-style: normal;
      font-weight: 700;
      line-height: 150%;
  }

  .cryptocoins-table table td.coin-change {
      border-radius: 0;
      font-size: 16px;
      font-style: normal;
      font-weight: 700;
      line-height: 150%;
      display: table-cell;
      color: #242424;
  }

  .cryptocoins-table table td.coin-change .change-up {
      color: var(--additional-dialogue-success-main, #00CC74);
  }

  .cryptocoins-table table td.coin-change .change-down {
      color: var(--additional-dialogue-danger-main, #FF004C);
  }

  .cryptocoins-table table td.coin-buylink .btn-buy {
      display: flex;
      padding: 8px 24px;
      justify-content: center;
      align-items: center;
      align-self: stretch;
      border-radius: 32px;
      background: var(--primary-primary, #F6CA19);
      color: var(--compnents-buttons-text, #242424);
      font-size: 12px;
      font-style: normal;
      font-weight: 600;
      line-height: 16px;
      width: fit-content;
      margin: 0 auto;
      max-width: max-content;
      outline: 0;
  }

  .cryptocoins-table table td.coin-buylink .btn-buy:hover,
  .cryptocoins-table table td.coin-buylink .btn-buy:active,
  .cryptocoins-table table td.coin-buylink .btn-buy:focus {
      background: #7F6A13;
      color: #fff;
  }

  /*--- coin table footer */
  .cryptocoins-footer {
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
      margin-top: 0;
  }

  .cryptocoins-footer .footer-left {
      flex: 0 0 auto;
      margin: 0 auto 0 0;
  }

  .cryptocoins-footer .footer-center {
      flex: 0 0 auto;
      margin: 0 auto;
      color: var(--text-secondary, rgba(66, 66, 66, 0.80));
      font-size: 12px;
      font-style: normal;
      font-weight: 400;
      line-height: 16px;
  }

  .footer-left .cd-pagination {
      margin-top: 0;
  }

  .cryptocoins-footer .footer-right {
      flex: 0 0 auto;
      margin: 0 0 0 auto;
  }

  .footer-right .select-row-page {
      display: flex;
      gap: 1rem;
      align-items: center;
      font-family: "Sora", sans-serif;
  }

  .select-row-page label {
      color: var(--text-secondary, rgba(66, 66, 66, 0.80));
      font-size: 12px;
      font-style: normal;
      font-weight: 400;
      line-height: 16px;
  }

  .select-wrap {
      position: relative;
      display: inline-block;
      width: fit-content;
      min-width: 61px;
      vertical-align: middle;
  }

  .select-wrap select.page-size {
      appearance: none;
      -webkit-appearance: none;
      -moz-appearance: none;

      background-color: transparent;
      background-image: url("../images/chevron-blue.svg");
      /* background-image: url("https://redesign.cryptodnes.bg/wp-content/uploads/2025/10/chevron-blue.svg"); */
      background-repeat: no-repeat;
      background-position: right center;
      background-size: 20px auto;
      border: 0;
      border-radius: 0;
      color: var(--text-primary, #242424);
      font-family: "Sora", sans-serif;
      font-size: 14px;
      font-style: normal;
      font-weight: 600;
      line-height: 20px;
      text-align: start;
      padding: 0.375rem 1.75rem 0.375rem 0.5rem;
      cursor: pointer;
      position: relative;
      outline: 0;
      transition: all 0.3s ease;
      width: 100%;
  }

  /* === Remove default browser arrow (for older browsers) === */
  .footer-right .select-wrap select.page-size::-ms-expand {
      display: none;
  }

  /* === Animated underline (center-out) === */
  .footer-right .select-wrap::after {
      content: "";
      position: absolute;
      bottom: 0;
      left: 0;
      width: calc(100% - 28px);
      height: 1px;
      background: var(--secondary-primary, #1946F6);
      transition: all 0.3s ease;
      pointer-events: none;
  }

  /* === Option text styling (fallback) === */
  .footer-right .select-wrap select.page-size option {
      text-align: start;
      font-family: "Sora", sans-serif;
      font-weight: 600;
      color: var(--text-primary), #242424;
  }


  /* for dark-mode */
  html.dark-mode .archive-coins-table .cryptocoins-tabs button::after {
      background: #496DF8;
  }

  html.dark-mode .archive-coins-table .cryptocoins-tabs button {
      color: rgba(255, 255, 255, 0.56);
  }

  html.dark-mode .archive-coins-table .cryptocoins-tabs button:hover,
  html.dark-mode .archive-coins-table .cryptocoins-tabs button.active,

  html.dark-mode .select-wrap select.page-size,
  html.dark-mode .cryptocoins-table table td.coin-change {
      color: #fff;
  }

  html.dark-mode .cryptocoins-footer .footer-center,
  html.dark-mode .select-row-page label {
      color: rgba(255, 255, 255, 0.56);
  }

  html.dark-mode .footer-right .select-wrap::after {
      background: #496DF8;
  }

  html.dark-mode .footer-right .select-wrap select.page-size option {
      color: #242424;
  }

  .cryptocoins-loading {
      display: grid;
      gap: 8px;
      padding: 16px;
  }

  .loading-row {
      display: grid;
      grid-template-columns: 40px 1.5fr 1fr 1fr 1fr 1fr 1fr;
      align-items: center;
      gap: 10px;
  }

  .loading-cell {
      height: 16px;
      border-radius: 4px;
      background: linear-gradient(90deg, #f0f0f0 25%, #e6e6e6 37%, #f0f0f0 63%);
      background-size: 400% 100%;
      animation: shimmer 1.4s ease infinite;
  }

  .loading-cell.name {
      height: 24px;
      width: 100%;
  }

  @keyframes shimmer {
      0% {
          background-position: -200% 0;
      }

      100% {
          background-position: 200% 0;
      }
  }


  /* table media query */
  @media (min-width:992px) {
      .archive-coins-table .cryptocoins-table table td.coin-price .btn-buy {
          display: none;
      }
  }

  @media (max-width:991.98px) {
      .archive-coins-table {
          margin: 1.5rem 0;
      }

      .archive-coins-table .cryptocoins-table-header {
          margin-bottom: 16px;
          flex-flow: column;
          gap: 1rem;
      }


      .archive-coins-table .cryptocoins-tabs {
          flex: 1;
          margin: 0 -16px;
          width: calc(100% + 32px);
          padding: 0 1rem 3px;
      }

      .archive-coins-table .cryptocoins-table-header .search-form-box {
          margin: 0;
          flex: 1;
          width: 100%;
      }

      .mobile-hidden {
          display: none;
      }

      .archive-coins-table .responsive-table {
          overflow-x: auto;
          overflow-y: hidden;
          -webkit-overflow-scrolling: touch;
          margin: 0 -1rem;
          width: calc(100% + 2rem);
          padding: 0 1rem;
          scrollbar-width: thin;
          scrollbar-color: var(--surface-3, #E5E5E5) var(--surface-2, #F5F5F5);
          position: relative;
      }


      /* === Custom Scrollbar === */
      .archive-coins-table .responsive-table::-webkit-scrollbar {
          height: 8px;
      }

      .archive-coins-table .responsive-table::-webkit-scrollbar-track {
          border-radius: 16px;
          background: var(--surface-2, #F5F5F5);
      }

      .archive-coins-table .responsive-table::-webkit-scrollbar-thumb {
          border-radius: 16px;
          background: var(--surface-3, #E5E5E5);
      }

      .archive-coins-table .responsive-table::-webkit-scrollbar-thumb:hover {
          background-color: #c1c1c1;
      }

      /* Make table wider so scrollbar activates */
      .archive-coins-table .responsive-table table {
          min-width: 900px;
          border-collapse: collapse;
      }

      .cryptocoins-table table thead th,
      .cryptocoins-table table tbody td {
          white-space: nowrap;
      }

      .cryptocoins-table table thead th {
          font-size: 14px;
          line-height: 18px;
      }

      .cryptocoins-table table tbody tr:first-child td:nth-last-child(2) {
          border-top-right-radius: 24px;
      }

      .cryptocoins-table table tbody tr:last-child td:nth-last-child(2) {
          border-bottom-right-radius: 24px;
      }

      .cryptocoins-table table tbody tr td:first-child {
          font-size: 12px;
          line-height: 16px;
      }

      .cryptocoins-table table tbody td:nth-last-child(2)::after {
          right: 1rem;
      }

      .cryptocoins-table table td.coin-price,
      .cryptocoins-table table td.coin-marketcap,
      .cryptocoins-table table td.coin-volume,
      .cryptocoins-table table td.coin-supply,
      .cryptocoins-table table td.coin-change {
          font-size: 14px;
          line-height: 18px;
      }

      .coin-price-wrapper {
          display: flex;
          flex-flow: column;
      }

      .coin-name .coin-link .coin-details .coin-symbol {
          font-size: 14px;
          line-height: 18px;
      }

      .coin-name .coin-link .coin-details .coin-title {
          font-size: 10px;
          line-height: 12px;
      }

      .cryptocoins-table table .coin-name .coin-link {
          grid-template-columns: 24px 1fr;
      }

      .cryptocoins-table table .coin-name .coin-link .coin-logo {
          --size: 24px;
      }

      .coin-price-wrapper .btn-buy {
          display: inline-flex;
          align-items: center;
          align-self: stretch;
          padding: 4px;
          border-bottom: 2px solid var(--primary-primary, #F6CA19);
          color: var(--text-primary, #242424);
          font-size: 12px;
          font-style: normal;
          font-weight: 600;
          line-height: 16px;
          flex: 0 0 auto;
          width: fit-content;
      }

      .cryptocoins-footer {
          display: grid;
          grid-template-columns: repeat(2, 1fr);
          gap: 1rem;
      }

      .cryptocoins-footer .footer-left {
          margin: 0;
          grid-column: span 2;
      }

      .cryptocoins-footer .footer-center {
          margin: 0;
      }

      .footer-right .select-row-page {
          gap: 0.5rem;
      }

      .cryptocoins-footer .cd-pagination .nav-links {
          gap: 0;
          justify-content: space-between;
      }

      .cryptocoins-footer .cd-pagination .nav-links .cd-pagination-prev {
          margin-right: auto;
      }

      .cryptocoins-footer .cd-pagination .nav-links .cd-pagination-next {
          margin-left: auto;
      }

      .cryptocoins-footer .cd-pagination ul.page-numbers {
          flex-wrap: nowrap;
          justify-content: center;
      }

      .cryptocoins-footer .cd-pagination ul.page-numbers li:first-child {
          margin-right: 0;
      }

      .cryptocoins-footer .cd-pagination ul.page-numbers li:last-child {
          margin-left: 0;
      }
  }

  @media (max-width:767.98px) {
    .select-wrap {
        min-width: 64px;
    }
  }