@import url('https://fonts.googleapis.com/css2?family=Lexend+Deca:wght@300;400;500;600;700;800;900&display=swap');

html,
body,
p,
div,
span,
li,
a,
section,
article,
input,
button,
textarea {
  font-family: 'Lexend Deca', sans-serif !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  padding: 0;
}

.hidden {
  display: none !important;
}

/* Bảng màu */
:root {
  /* --- HỆ ĐỎ TRẦM (SOUL: #922525) --- */
  --red-900: #5a1212;
  --red-800: #761c1c;
  --red-700: #922525;
  /* Linh hồn */
  --red-600: #a63434;
  --red-500: #bb4a4a;
  --red-400: #cf6464;
  --red-300: #de8585;
  --red-200: #eba8a8;
  --red-100: #f3cccc;
  --red-050: #f9eded;
  --red-bg: #FAF1F1;

  /* --- HỆ MÀU GRAPHITE (TEXT & NEUTRAL) --- */
  --black-900: #1c191a;
  --black-800: #2a2527;
  /* Text Main (Body) */
  --black-700: #3d3638;
  --black-600: #51484b;
  /* Text Second */
  --black-500: #7a7074;
  /* Text Subtle */
  --black-400: #82777a;
  --black-300: #a3989b;
  /* Text Silent/Divider */
  --black-200: #c9c0c3;
  --black-150: #d9d0d3;
  /* Card Background */
  --black-100: #e8e4e5;
  --black-50: #f5f3f4;
  /* Page Background */

  /* Màu text */
  --text-rgb: 42, 37, 39;
  --text: var(--black-800);
  --text-second: var(--black-600);
  --text-subtle: var(--black-500);
  --text-silent: var(--black-300);

  /* Màu link với text */
  --link: var(--red-700);
  --link-second: var(--red-600);
  --link-subtle: var(--red-500);
  --link-silent: var(--red-300);

  /* Màu Border */
  --border: rgba(var(--text-rgb), 0.1);
  --bg-kit: #FEF8EE;

  /* Màu button */
  --btn: #D15656;
  --btn-hover: #BC4545;
  --btn-actived: #A83838;

  /* Màu Purple Red Palette */
  --purple-800: #781635;
  --purple-700: #93284b;
  --purple-600: #ad3e63;
  --purple-500: #c7567c;
  --purple-400: #df769a;
  --purple-200: #f3c0d0;
  --purple-100: #f9e0e7;
  --purple-50: #fbf2f2;

  /* Màu custom */
  --highlight-bg: #FFF7ED; /* Làm rõ nhẹ tương tác mới */
}

.middle-text {
  font-size: 0.95rem;
  line-height: 1.5em;
}

.middle-bold-text {
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.4rem;
}

.sub-text {
  color: var(--text-subtle);
}

.second-text {
  color: var(--text-second);
}

.silent-text {
  color: var(--text-silent);
}

/* Loại bỏ viền xanh khi click */
*:focus {
  outline: none !important;
  box-shadow: none !important;
}

.copyable {
  cursor: pointer;
  color: var(--black-500);
}

.click-copy {
  cursor: pointer;
  color: var(--text-silent);
}

/* CSS button */
/* 1. Cấu hình chung cho tất cả Button (Base) */
.button,
.back-button,
.lux-button {
  display: block;
  width: 100%;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  text-align: center;
  box-shadow: none;
  position: relative;
  transition: all 0.2s ease;
  /* Thêm chút transition cho mượt */
}

/* 2. Định nghĩa từng loại (Variants) */
/* Button chính (Primary) */
.button {
  font-size: 1.1rem;
  font-weight: 600;
  padding: 14.5px;
  background: var(--btn);
  color: var(--bg-kit);
}

/* Button phụ (Outline/Lux) */
.lux-button {
  font-size: 1.2rem;
  font-weight: 700;
  padding: 15px;
  /* Trừ đi 0.5px border để tổng chiều cao vẫn bằng 15px */
  border: 0.5px solid var(--red-500);
  color: var(--red-600);
  background: none;
}

/* Button quay lại (Subtle) */
.back-button {
  font-size: 1.1rem;
  font-weight: 600;
  padding: 14.5px;
  background: rgba(var(--text-rgb), 0.06);
  color: var(--text-subtle);
}

/* 3. Hiệu ứng khi Hover/Focus (States) */
/* Loại bỏ outline mặc định cho tất cả */
.button:focus,
.button:hover,
.back-button:focus,
.back-button:hover,
.lux-button:focus,
.lux-button:hover {
  outline: none;
  box-shadow: none;
}

/* Hover cụ thể từng loại */
.button:hover,
.button:focus {
  background: var(--btn-hover);
}

.lux-button:hover,
.lux-button:focus {
  border-color: var(--red-600);
  color: var(--red-700);
  background: none;
}

.back-button:hover,
.back-button:focus {
  background: rgba(var(--text-rgb), 0.05);
  color: var(--text-subtle);

}

.line-button {
  background: none;
  color: var(--text);
  border: 1px solid var(--black-150);
}

.line-title {
  margin-bottom: 5px;
}

.line-button:hover,
.line-button:focus {
  background: none;
  color: var(--text);
}

/* 4. Thành phần bên trong Button */
.has-check {
  display: flex;
  align-items: center;
  justify-content: center;
}

.has-check::after {
  position: absolute;
  right: 15px;
  content: var(--countdown, '');
}

/* CSS cho biểu tượng loading kiểu 3 chấm */
.loading-dots {
  display: inline-block;
  color: inherit;
}

.loading-dots span {
  display: inline-block;
  animation: blink 1.6s infinite both;
}

.loading-dots span:nth-child(2) {
  animation-delay: 0.3s;
}

.loading-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes blink {

  0%,
  80%,
  100% {
    opacity: 0;
  }

  40% {
    opacity: 1;
  }
}

/* Style icon user */
.user-account-wrapper .user-account {
  position: relative;
  display: inline-block;
  width: 32px;
  height: 32px;
  cursor: pointer;
  border-radius: 3px;
}

.user-account-wrapper .user-account .my-avatar {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.user-account-wrapper #newsNoti {
  position: absolute;
  top: -2px;
  right: -10px;
  box-shadow: 0 0 0 1.5px white;
}

.user-account-wrapper .news {
  color: #fff;
  background: rgb(232, 91, 91);
  border-radius: 0.5rem;
  padding: 2px 7px;
  font-size: 0.9rem;
  line-height: 0.9rem;
}

.user-account-wrapper {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  height: 100%;
}

.user-account-wrapper .i {
  font-weight: bold;
}

.user-account-wrapper .blur-background {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 0.5px solid rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.01);
  backdrop-filter: blur(0px);
  border-radius: inherit;
}