/* Tong chi phi */
  .cost-card {
    background-color: var(--bg-color);
    max-width: 600px;
    margin: 0 auto;
    padding: 24px 20px;
    border-radius: 12px;
  }

  /* Header Section */
  .cost-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-bottom: 20px;
  }

  .title-group {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px;
  }

  .title-main {
    color: var(--orange);
    font-size: 24px;
    font-weight: 600;
  }

  .title-sub {
    color: var(--muted);
  }

  .link-detail {
    color: var(--orange);
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
  }

  /* Main Amount */
  .cost-amount {
    color: var(--navy);
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 32px;
  }

  /* Subtitle VND */
  .subtitle-vnd {
    color: var(--orange);
    font-size: 24px;
    margin-bottom: 16px;
  }

  .rate-label {
    color: #333;
    font-size: 15px;
    margin-bottom: 12px;
  }

  /* Converter Section */
  .converter-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-direction: column; /* Stack trên màn hình rất nhỏ */
  }

  .input-box {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    flex: 1;
    width: 100%;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
    gap: 6px;
  }

  .input-box input {
    border: none;
    outline: none;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    width: 100%;
    background: transparent;
  }

  .input-box input::placeholder {
    color: #cccccc;
  }

  .prefix, .suffix {
    font-size: 16px;
    font-weight: 500;
    color: #111;
    white-space: nowrap;
  }

  .swap-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
  }

  .currency-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 15px;
    color: #111;
    white-space: nowrap;
  }

  /* Responsive Breakpoint cho Mobile/Tablet ngang */
  @media (min-width: 480px) {
    .converter-wrapper {
      flex-direction: row; /* Trở lại nằm ngang trên màn hình lớn hơn một chút */
    }
    .cost-amount {
      font-size: 36px;
    }
  }

  /* Modal Overlay (Nền mờ phủ toàn màn hình) */
.cost-modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 99999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.cost-modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

/* Hộp nội dung Popup */
.cost-modal-box {
  background-color: var(--white, #ffffff);
  width: 100%;
  max-width: 340px;
  border-radius: 16px;
  padding: 28px 24px 16px;
  position: relative;
  text-align: center;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
  transform: translateY(12px);
  transition: transform 0.2s ease;
}

.cost-modal-overlay.is-open .cost-modal-box {
  transform: translateY(0);
}

/* Nút đóng (X) */
.cost-modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: transparent;
  border: none;
  font-size: 26px;
  line-height: 1;
  color: #999999;
  cursor: pointer;
  padding: 4px 8px;
}

.cost-modal-close:hover {
  color: #333333;
}

/* Tiêu đề Popup */
.cost-modal-title {
  color: #2b446e;
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 10px 0;
}

/* Danh sách các khoản phí */
.cost-modal-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cost-modal-list li {
  padding: 13px 8px;
  font-size: 16px;
  font-weight: 400;
  color: #222222;
  border-bottom: 1px solid #eeeeee;
}

.cost-modal-list li:last-child {
  border-bottom: none;
}