
/* =================================
   THỦY TRIỀU VN - NẠP COIN
   GIAO DIỆN MÁY TÍNH
================================= */

#coin-shop .grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

#coin-shop .package {
    position: relative;
    min-width: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 20px;
    min-height: 250px;
    background: linear-gradient(
        150deg,
        #06436ff7,
        #042a4bfa 70%,
        #074a6ffa
    );
    border: 1px solid #0879aa;
    border-radius: 20px;
    transition:
        transform .18s,
        border-color .18s,
        box-shadow .18s;
}

#coin-shop .package::after {
    content: "";
    position: absolute;
    pointer-events: none;
    left: -10%;
    right: -10%;
    bottom: -54px;
    height: 105px;
    background: #1cbae026;
    border-radius: 50% 50% 0 0;
    transform: rotate(-3deg);
}

#coin-shop .package:hover {
    transform: translateY(-3px);
    border-color: var(--cyan);
    box-shadow:
        0 12px 28px #0003,
        0 0 18px #27d8f414;
}

#coin-shop .package h3 {
    margin: 0 0 7px;
    font-size: 21px;
    line-height: 1.3;
}

#coin-shop .package-desc {
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
    min-height: 24px;
}

#coin-shop .package-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 14px 0 18px;
    position: relative;
    z-index: 1;
}

#coin-shop .package-icon {
    font-size: 46px;
    filter: drop-shadow(0 6px 12px #ffb72b29);
}

#coin-shop .price {
    color: var(--gold);
    font-size: clamp(24px, 2.4vw, 32px);
    font-weight: 850;
    line-height: 1.2;
}

#coin-shop .popular {
    border: 2px solid #16d7fa;
    box-shadow: 0 0 22px #16d7fa26;
}

#coin-shop .popular-label {
    position: absolute;
    top: 0;
    right: 12px;
    z-index: 3;
    padding: 8px 14px;
    border-radius: 0 0 12px 12px;
    background: linear-gradient(100deg, #ffd65a, #ffb92f);
    color: #2b260b;
    font-size: 13px;
    font-weight: 850;
}

/* =================================
   NẠP COIN - TABLET
================================= */

@media (max-width: 820px) {
    #coin-shop .grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* =================================
   NẠP COIN - MOBILE
================================= */

@media (max-width: 560px) {
    #coin-shop .grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    #coin-shop .package {
        padding: 16px;
        min-height: auto;
    }

    #coin-shop .package h3 {
        font-size: 19px;
    }

    #coin-shop .package-row {
        gap: 12px;
        margin: 12px 0 16px;
    }

    #coin-shop .package-icon {
        font-size: 38px;
    }

    #coin-shop .price {
        font-size: clamp(23px, 7vw, 30px);
    }
}

/* ===============================
   TRANSACTION HISTORY
================================ */

.history-card {
  padding: 22px;
  background: linear-gradient(150deg, #083b5d, #041e36);
  border: 1px solid #0879aa;
  border-radius: 18px;
  overflow: hidden;
}

.history-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.history-header h3 {
  margin: 0 0 6px;
  font-size: 21px;
}

.history-header p {
  margin: 0;
  color: var(--muted);
}

.history-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.history-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.history-table th,
.history-table td {
  padding: 14px 12px;
  border-bottom: 1px solid #ffffff18;
  white-space: nowrap;
}

.history-table th {
  color: #8deaff;
  font-size: 14px;
}

.history-table td {
  font-size: 14px;
}

.history-message,
.history-empty {
  padding: 18px 0;
  color: var(--muted);
  text-align: center;
}

.history-amount-positive {
  color: #42e6a4;
  font-weight: 800;
}

.history-amount-negative {
  color: #ff8d8d;
  font-weight: 800;
}

@media (max-width: 600px) {
  .history-card {
    padding: 14px;
  }

  .history-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .history-table th,
  .history-table td {
    padding: 11px 9px;
    font-size: 13px;
  }
}

/* Thu nhỏ nút làm mới lịch sử giao dịch */
#refreshTransactionHistory {
  width: auto;
  min-width: 0;
  max-width: fit-content;
  padding: 10px 18px;
  flex: 0 0 auto;
  align-self: flex-start;
  white-space: nowrap;
}

.history-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

@media (max-width: 600px) {
  .history-header {
    flex-direction: row;
    align-items: center;
  }

  #refreshTransactionHistory {
    padding: 9px 12px;
    font-size: 13px;
  }
}

