/* // public/client/css/cashback-style.css */
/* top search bar */
@media screen and (min-width: 769px) {
  .top-search {
    gap: 10px;
  }
}

@media screen and (max-width: 991px) {
  .cb-footer__logo {
    display: flex;
    justify-content: center;
  }
}

@media screen and (min-width: 991px) {
  .bottom-menu-mobile {
    display: none;
  }
  .cb-footer {
    padding: 30px 0 20px 0;
  }
  .osahan-main-body {
    margin: 15px 0;
    min-height: calc(100vh - 480px) !important;
  }
}

@media screen and (max-width: 991px) {
  .osahan-main-nav {
    display: none;
  }
  .container-layout {
    margin-top: 15px;
  }
  .cb-footer {
    padding: 30px 0 75px 0;
    margin-top: 20px;
  }
}

@media screen and (max-width: 560px) {
  .bottom-menu-mobile {
    background: #fff;
    display: block;
    width: 100%;
    padding: 1.8vw;
    bottom: 0;
    left: 0;
    position: fixed;
    z-index: 1039;
    height: 60px;
    border-top: 1px solid #cbcbcb;
  }

  .osahan-main-body {
    min-height: calc(100vh - 340px) !important;
  }
  .bottom-menu {
    display: flex;
    justify-content: space-evenly;
  }

  .bottom-menu-item {
    align-items: center;
    justify-content: center;
    display: flex;
    flex-direction: column;
  }
}

.osahan-main-body {
  min-height: calc(100vh - 560px);
}

.card-header {
  background: linear-gradient(270deg, #e39246c2, #ff5521bd);
}

/* Trang home */
.info-list-home {
  list-style: none;
  padding: 0;
}

/* Check đơn hàng thủ công */
.card-header-check-order,
.card-header-order,
.card-header-transactions {
  background-color: #ee4d2d33;
}
.input-group-order {
  align-items: center;
  width: 100%;
  gap: 10px;
}

.input-group-prepend {
  width: calc(100% - 150px);
  margin-top: 0.5rem;
}

.card-header:first-child {
  border-radius: calc(0.25rem - 1px) calc(0.25rem - 1px) 0 0;
}

.input-check-order,
.input-order {
  background-color: #ededed35;
}

.id-oder {
  width: 180px;
}

.note-order {
  display: flex;
  color: var(--shopee-primary) !important;
  font-weight: bold;
  background-color: rgb(87, 252, 252);
  padding: 2px 5px;
  border-radius: 3px;
  margin-bottom: 10px;
}

.btn-share {
  padding: 5px 10px !important;
}

.btn-buy {
  padding: 7px 14px !important;
}

.mobile-user-info.user-box {
  display: flex;
  align-items: center;
  margin-top: 1rem; /* tương đương mt-3 */
  padding: 0.5rem; /* tương đương p-2 */
  border: 1px solid #dee2e6;
  border-radius: 0.25rem;
}

.modal-alert-header-shopee h3,
.modal-alert-header-shopee span {
  color: white !important;
}

.user-avatar {
  border-radius: 50%;
  margin-right: 0.5rem;
}

.user-details {
  display: flex;
  flex-direction: column;
}

.user-name {
  font-weight: 600;
}

.user-balance {
  font-size: 0.9rem;
  margin-top: 2px;
}

.order-list {
  padding: 6px 10px;
  border-radius: 5px;
}

.order-left {
  margin-right: 10px;
}
.order-icon {
  width: 36px;
  height: 36px;
}
.order-body {
  display: flex;
  align-items: center;
}
.order-title {
  font-weight: bold;
  color: #007bff;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4em;
  display: -webkit-box;
  -webkit-line-clamp: 2; /* Giới hạn 2 dòng */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal; /* Cho phép xuống dòng */
}
.order-code {
  gap: 5px;
  display: flex;
  font-size: 0.9rem;
  color: #666;
  align-items: center;
}
.btn-coppy {
  width: max-content;
}

.order-date {
  font-size: 0.8rem;
  color: gray;
}
.order-right {
  text-align: right;
}

.order-status {
  font-size: 0.8rem;
  color: gray;
}

/* ==== Page ( Oders - Withdraw - Transactions ) BEGIN ==== */
.card-body {
  padding: 1.25rem !important;
}

.card-withdraw {
  max-height: 400px;
}

.btn {
  padding: 5px 8px !important;
}
.search-order-list,
.check-order-list,
.search-history-transactions {
  background: linear-gradient(45deg, #ff904fff, #ff5521ff);
  color: #e3e3e3;
  border: none;
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: bold;
}

.transactions-card,
.withdraw-card,
.order-card {
  align-items: center;
  background: #cff1ff;
  border-radius: 8px;
  padding: 5px 8px;
  margin-bottom: 10px;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.13);
}

.transactions-top,
.withdraw-top,
.order-top {
  display: flex;
  align-items: center;
}

.top-stt,
.top-img {
  margin-right: 10px;
}
.top-stt {
  width: 25px;
  height: 25px;
  min-width: 25px;
  background: linear-gradient(145deg, #98ff23ff, #53fd1bff);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 16px;
  position: relative;
  overflow: hidden;
  color: #000;
}

.top-title {
  font-weight: bold;
  color: #007bff;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4em;
  display: -webkit-box;
  -webkit-line-clamp: 2; /* Giới hạn 2 dòng */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal; /* Cho phép xuống dòng */
}

.transactions-body,
.withdraw-body {
  display: flex;
  justify-content: space-between;
  margin-top: 5px;
}

.body-left {
  gap: 5px;
  font-size: 0.9rem;
  color: #666;
  align-items: center;
}

.order-discount,
.withdraw-price,
.transactions-price {
  color: orange;
  font-weight: bold;
}

.withdraw-price,
.transactions-price {
  padding-bottom: 7px;
}

.text-info,
.text-success,
.text-danger {
  font-weight: bold;
  color: #ffffff !important;
  border-radius: var(--border-radius-sm) !important;
  padding: 6px 12px !important;
  font-size: 13px;
}

.text-info {
  background-color: #17a2b8 !important;
}

.text-success {
  background-color: #28a745 !important;
}

.text-danger {
  background-color: #dc3545 !important;
}

/* ==== Page ( Oders - Withdraw - Transactions ) END ==== */

/* ==== ( Profile - Menu Mobile ) BEGIN ==== */

.mobile-user-info-box,
.bg-avt-profile {
  background: linear-gradient(to bottom right, #ff512f, #f09819);
  padding: 1.1rem 1rem;
  text-align: center;
  color: white;
}

/* AVT */
.avatar-wrap .avatar-camera-btn {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid #a4a4a4 !important;
}
.avatar-wrap .avatar-camera-btn i {
  font-size: 18px;
}

.mobile-menu-item {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 500;
  transition: all 0.3s ease;
}

.profile-menu-item i {
  font-size: 20px;
  margin-right: 12px;
  width: 24px;
  text-align: center;
}

.icofont-simple-right {
  margin: 0 !important;
  font-size: 18px !important;
}

.money-menu-profile {
  font-weight: bold;
}

/* ==== ( Profile - Menu Mobile ) END ==== */

/* ===========================
  FOOTER (UrBox-style for CashBackVN)
=========================== */

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.navbar {
  background: #ffffff00;
}

.osahan-main-nav,
.mobile-header {
  background: var(--bg-1) !important;
  color: var(--footer-text);
}

.cb-footer {
  background: var(--bg-1) !important;
  color: var(--footer-text);
  font-size: 15px;
}

.cb-footer__cols a {
  color: var(--footer-text-dim);
  text-decoration: none;
}
.cb-footer a:hover {
  color: #fff;
}

.vn-footer,
.cb-footer__email a {
  color: #fff;
  text-decoration: none;
}

.cb-footer .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Top */
.cb-footer__top {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
}

.cb-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cb-footer__logo img {
  width: 250px;
  height: auto;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.15));
}

.cb-footer__hotlines {
  display: grid;
  gap: 8px;
}
.cb-footer__hotline,
.cb-footer__email {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 600;
}
.cb-footer__hotline i,
.cb-footer__email i {
  opacity: 0.9;
}

/* Columns */
.cb-footer__cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.cb-footer__title {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  margin: 6px 0 12px;
}

.cb-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
}
.cb-footer__links li {
  margin: 8px 0;
}
.cb-footer__links a {
  display: inline-block;
  padding: 4px 0;
  transition: transform 0.2s ease, color 0.2s ease;
}
.cb-footer__links a:hover {
  transform: translateX(3px);
  background: var(--bg-2);
  border-radius: 5px;
  padding: 4px 6px;
}

/* Apps */
.cb-footer__apps {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.cb-footer__qr img {
  width: 88px;
  height: auto;
  border-radius: 10px;
  background: #fff;
  padding: 6px;
}
.cb-footer__badges {
  display: grid;
  gap: 10px;
}
.cb-app-badge img {
  height: 38px;
  width: auto;
  display: block;
}

/* Social + certs */
.cb-footer__socials {
  display: flex;
  gap: 10px;
  margin: 6px 0 14px;
}
.cb-footer__socials a {
  width: 36px;
  height: 36px;
  border: 1px solid var(--footer-line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  transition: 0.2s;
}
.cb-footer__socials a:hover {
  background: var(--bg-2);
}

.cb-footer__certs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.cb-footer__certs img {
  height: 32px;
  width: auto;
  filter: brightness(1.05);
}

/* Divider */
.cb-footer__divider {
  border-top: 1px solid var(--footer-line);
  margin: 20px 0;
}

/* Bottom */
.cb-footer__bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.cb-footer__addresses {
  display: grid;
  gap: 10px;
}
.cb-footer__addresses .addr a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--footer-text);
}
.cb-footer__addresses i {
  color: #fff;
}

.cb-footer__legal {
  text-align: right;
  color: var(--footer-text-dim);
}
.cb-footer__legal .company {
  margin-bottom: 6px;
  font-weight: 600;
  color: #fff;
}

/* Responsive */
@media (max-width: 1100px) {
  .cb-footer__cols {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (max-width: 900px) {
  .cb-footer__top {
    grid-template-columns: 1fr;
  }
  .cb-footer__cols {
    grid-template-columns: repeat(2, 1fr);
  }
  .cb-footer__bottom {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .cb-footer__legal {
    text-align: left;
  }
}
@media (max-width: 480px) {
  .cb-footer {
    margin-top: 25px;
    font-size: 14px;
  }
  .cb-footer__cols {
    grid-template-columns: 1fr;
  }
  .cb-footer__qr img {
    width: 76px;
  }
  .cb-app-badge img {
    height: 34px;
  }
  .cb-footer__links a {
    margin-left: 10px;
  }
  .cb-footer__legal {
    font-size: 13px;
  }
}

/* ========== FOOTER ACCORDION MOBILE ========== */

/* Ẩn mặc định toggle icon */
.cb-footer__title::after {
  content: "";
  float: right;
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  transition: transform 0.3s ease;
  display: none; /* chỉ hiện trên mobile */
}

/* Khi active thì xoay icon */
.cb-footer__col.active .cb-footer__title::after {
  transform: rotate(180deg);
}

/* Chỉ áp dụng mobile */
@media (max-width: 768px) {
  .cb-footer__cols {
    display: block;
  }

  .cb-footer__col {
    border-top: 1px solid rgba(255, 255, 255, 0.35);
    padding: 8px 0;
  }

  .cb-footer__title {
    position: relative;
    cursor: pointer;
    padding: 10px 0;
  }

  /* Icon mũi tên */
  .cb-footer__title::after {
    content: "\f078"; /* fa-chevron-down */
    display: inline-block;
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 14px;
    margin-left: 8px;
    color: #fff;
  }

  /* Ẩn links mặc định */
  .cb-footer__links,
  .cb-footer__socials {
    display: none;
    margin-top: 6px;
    padding-left: 5px;
  }

  /* Hiện khi active */
  .cb-footer__col.active .cb-footer__links,
  .cb-footer__col.active .cb-footer__socials {
    display: block;
  }

  .cb-footer__links li {
    margin: 8px 15px;
    list-style: circle;
  }
}

/* // BOTTOM MENU */
.bottom-menu-mobile {
  position: fixed;
  bottom: 0;
  width: 100%;
  background: #fff;
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.1);
  z-index: 999;
}

.bottom-menu {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 8px 0;
}

.bottom-menu-item {
  flex: 1;
  text-align: center;
  color: #666;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
}

.bottom-menu-item i {
  font-size: 20px;
  display: block;
  margin-bottom: 4px;
  transition: transform 0.3s ease, color 0.3s ease;
}

/* Hiệu ứng hover */
.bottom-menu-item:hover i {
  transform: translateY(-3px) scale(1.15);
  color: #007bff;
}

/* Trạng thái active */
.bottom-menu-item.active {
  color: #007bff;
}

.bottom-menu-item.active i {
  color: #007bff;
  transform: scale(1.2);
}

/* Hiệu ứng ripple khi click */
.bottom-menu-item::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(0, 123, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  transition: all 0.5s ease;
}

.bottom-menu-item:active::after {
  transform: translate(-50%, -50%) scale(15);
  opacity: 0.2;
}

.img-product-home {
  border-radius: 8px 8px 0 0 !important;
  height: 230px;
  object-fit: cover;
}

.product-name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 5px;
  color: var(--title);
}

.favorite-buy {
  gap: 5px;
}

.btn-favorite {
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  width: 31px;
  height: 31px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}
.product-price {
  color: var(--shopee-primary);
}

.gap-2 {
  gap: 0.5rem;
}
.gap-3 {
  gap: 1rem;
}

/* ===============================
   PROFILE – THIẾT LẬP & BẢO MẬT
   Dùng chung cho mọi trang /profile
   =============================== */

/* Card section chung (Thiết lập & bảo mật, Thông tin cá nhân, …) */
.profile-section {
  background: var(--card);
  border-radius: 14px;
  padding: 20px 22px 18px;
  margin-bottom: 18px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.profile-section:hover {
  background: var(--card-hover);
}

/* Header trong mỗi section */
.profile-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  gap: 14px;
}

.profile-section__title {
  font-size: 17px; /* tăng từ 15px → 17px */
  font-weight: 700;
  color: var(--title);
}

.profile-section__sub {
  font-size: 14px; /* tăng từ 12px → 14px */
  color: var(--muted);
  line-height: 1.5;
}

.profile-section__meta-right {
  font-size: 13px; /* tăng từ 11px → 13px */
  color: var(--muted);
  text-align: right;
}

/* Quick links trong Thiết lập & bảo mật */
.profile-quick-links {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.profile-quick-links a {
  text-decoration: none;
}

.profile-quick-link {
  border-radius: 999px;
  padding: 8px 16px; /* tăng padding */
  font-size: 15px; /* tăng từ 13px → 15px */
  border: 1px solid var(--border);
  background: var(--chip-bg);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--chip-text);
  transition: all 0.25s ease;
  font-weight: 500;
}

.profile-quick-link i {
  font-size: 16px; /* tăng nhẹ icon */
}

.profile-quick-link:hover {
  background: var(--menu-item-hover);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}

.profile-quick-link.is-disabled {
  opacity: 0.55;
  cursor: default;
}

/* Responsive */
@media (max-width: 768px) {
  .profile-section__head {
    align-items: flex-start;
    flex-direction: column;
  }

  .profile-section__title {
    font-size: 16px;
  }

  .profile-section__sub {
    font-size: 13px;
  }

  .profile-quick-link {
    font-size: 14px;
    padding: 7px 14px;
  }
}
/* ======================================================
   PROFILE – GIAO DIỆN CHUNG CHO CÁC TRANG:
   - Đổi thông tin cá nhân
   - Đổi mật khẩu
   - Đóng tài khoản
   - Cài đặt tài khoản
   - Cài đặt thông báo
   - Xác thực 2 bước
   ====================================================== */

/* --- CARD CHUNG --- */
.profile-section {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 22px 18px;
  margin-bottom: 18px;
  box-shadow: var(--shadow);
  transition: background 0.25s ease, box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.profile-section:hover {
  background: var(--card-hover);
}

/* --- HEADER SECTION --- */
.profile-section__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.profile-section__title {
  font-size: 17px;
  font-weight: 700;
  color: var(--title);
}

.profile-section__sub {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

.profile-section__meta-right {
  font-size: 13px;
  color: var(--muted);
  text-align: right;
}

/* --- HÀNG CÀI ĐẶT CHUNG (Notification / Setting / TwoFactor) --- */
.setting-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--divider);
  font-size: 15px;
  line-height: 1.5;
}
.setting-row:last-child {
  border-bottom: none;
}

.setting-label {
  font-weight: 600;
  color: var(--text-soft);
  font-size: 15px;
}

.setting-desc {
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
  line-height: 1.4;
}

.setting-group-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--title);
  margin: 6px 0 6px;
}

/* --- TAG CHUNG (badge nhỏ, trạng thái) --- */
.setting-tag {
  font-size: 12px;
  border-radius: 999px;
  padding: 3px 9px;
  background: var(--chip-bg);
  color: var(--chip-text);
  font-weight: 500;
}

.setting-tag--soon {
  background: rgba(148, 163, 184, 0.18);
  color: var(--muted);
}

/* --- NOTE / VERSION / PHỤ --- */
.settings-note {
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
}
.settings-version {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  margin-top: 10px;
}

/* --- NÚT CHUNG --- */
.btn-setting-save,
.tf-btn-primary,
.tf-btn-ghost,
.cancel-btn-ghost,
.cancel-btn-danger {
  border-radius: 999px;
  font-size: 14px;
  padding: 8px 18px;
  font-weight: 500;
  transition: 0.2s all ease;
}

.btn-setting-save {
  border: none;
  background: var(--btn-bg);
  color: var(--btn-text);
}
.btn-setting-save:hover {
  background: var(--btn-bg-hover);
}

/* --- INPUT CHUNG --- */
input[type="text"],
input[type="password"],
textarea,
select {
  font-size: 15px;
  line-height: 1.6;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
  .profile-section__head {
    flex-direction: column;
    align-items: flex-start;
  }
  .profile-section__title {
    font-size: 16px;
  }
  .profile-section__sub {
    font-size: 13px;
  }
  .setting-row {
    align-items: center;
  }
}

/* Nickname block trên banner */
.profile-nickname {
  display: flex;
  flex-direction: column;
  align-items: center; /* căn giữa theo chiều ngang */
  gap: 0.25rem;
  color: #fff;
}

/* Nhãn "Nick Name" mặc định */
.profile-nickname-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.1rem 0.55rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.12); /* nền mờ trên gradient */
  font-weight: 600;
}

/* Giá trị nickname của từng user */
.profile-nickname-value {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase; /* đúng style LE HUYEN như hình */
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}
