/* // 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 */
.profile-account-card .avatar-wrap {
  width: 140px;
  height: 140px;
  line-height: 0;
}

.profile-account-card #avatarImg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #fff;
  color: transparent;
  font-size: 0;
  text-indent: -9999px;
}

.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;
}

.dropdown-menu .dropdown-item > i {
  width: 22px;
  margin-right: 10px !important;
  text-align: center;
  font-size: 16px;
}

.header-action-btn {
  display: inline-flex !important;
  width: 40px;
  height: 40px;
  padding: 0 !important;
  align-items: center;
  justify-content: center;
  border-radius: 50% !important;
}

.header-action-btn i {
  margin: 0 !important;
  font-size: 18px;
  line-height: 1;
}

.profile-account-card {
  position: sticky;
  top: 88px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.profile-account-card .bg-avt-profile {
  position: relative;
  border: 0 !important;
  background: linear-gradient(145deg, #ff512f 0%, #f57c19 100%);
}

.profile-account-card .bg-avt-profile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 10%, rgba(255,255,255,.22), transparent 32%);
  pointer-events: none;
}

.profile-account-card .avatar-wrap,
.profile-account-card .profile-account-name,
.profile-account-card .profile-account-username { position: relative; z-index: 1; }
.profile-account-card #avatarImg { border: 4px solid rgba(255,255,255,.92); box-shadow: 0 10px 28px rgba(91,39,10,.22); }
.profile-account-name { margin: 14px 0 2px; color: #fff; font-size: 20px; font-weight: 750; line-height: 1.3; }
.profile-account-username { color: rgba(255,255,255,.82); font-size: 13px; }
.profile-member-rank { display: inline-flex; align-items: center; gap: 6px; margin-top: 9px; padding: 5px 9px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; background: rgba(10,25,48,.2); color: rgba(255,255,255,.94); font-size: 12px; font-weight: 600; text-decoration: none!important; transition: background-color .2s ease, transform .2s ease; }
.profile-member-rank:hover { color: #fff; background: rgba(10,25,48,.34); transform: translateY(-1px); }
.profile-member-rank i { color: #ffe08a; }

.avatar-editor-modal .modal-content {
  overflow: hidden;
  border: 0;
  border-radius: 14px;
  box-shadow: 0 22px 70px rgba(10, 20, 38, .28);
}

.avatar-editor-modal .modal-header {
  align-items: flex-start;
  min-height: 70px;
  padding: 18px 22px;
  border: 0;
  background: #172033;
  color: #fff;
}

.avatar-editor-modal .modal-title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
}

.avatar-editor-status {
  display: block;
  min-height: 17px;
  margin-top: 5px;
  color: rgba(255,255,255,.72);
  font-size: 12px;
  font-weight: 600;
}

.avatar-editor-close {
  color: #fff;
  opacity: .86;
  text-shadow: none;
}

.avatar-editor-close:hover {
  color: #fff;
  opacity: 1;
}

.avatar-editor-modal .modal-body {
  padding: 0;
  background: #f5f7fb;
}

.avatar-editor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  min-height: 520px;
}

.avatar-editor-stage {
  min-width: 0;
  padding: 18px;
}

.avatar-editor-crop-frame {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: min(62vh, 540px);
  min-height: 360px;
  overflow: hidden;
  border-radius: 12px;
  background: #111827;
}

.avatar-editor-crop-frame img {
  display: block;
  max-width: 100%;
}

.avatar-editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 12px;
}

.avatar-editor-zoom-row {
  display: none;
}

.avatar-editor-tool {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid #d9e0ea;
  border-radius: 8px;
  background: #fff;
  color: #26344d;
  cursor: pointer;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.avatar-editor-tool:hover:not(:disabled) {
  border-color: #ff6b2c;
  box-shadow: 0 8px 20px rgba(20, 32, 52, .11);
  transform: translateY(-1px);
}

.avatar-editor-tool:disabled {
  cursor: not-allowed;
  opacity: .55;
}

.avatar-editor-tool--pick {
  display: none;
}

.avatar-editor-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 26px 20px;
  border-left: 1px solid #e1e7f0;
  background: #fff;
}

.avatar-editor-preview {
  width: 168px;
  height: 168px;
  overflow: hidden;
  border: 6px solid #f1f4f8;
  border-radius: 50%;
  background: #f6f8fb;
  box-shadow: inset 0 0 0 1px rgba(22, 32, 48, .08);
}

.avatar-editor-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-editor-meta {
  width: 100%;
  margin-top: 18px;
  padding: 12px;
  border: 1px solid #e6ebf2;
  border-radius: 8px;
  background: #f8fafc;
}

.avatar-editor-meta span {
  display: block;
  color: #718096;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.avatar-editor-meta strong {
  display: block;
  min-width: 0;
  margin-top: 4px;
  overflow: hidden;
  color: #172033;
  font-size: 13px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.avatar-editor-repick {
  display: inline-flex;
  width: 100%;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  border-radius: 8px;
  font-weight: 750;
}

.avatar-editor-modal .modal-footer {
  padding: 14px 18px;
  border-top: 1px solid #e1e7f0;
  background: #fff;
}

.avatar-editor-save {
  display: inline-flex;
  min-width: 112px;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 8px;
  background: #ee4d2d;
  font-weight: 800;
}

.avatar-editor-save:hover {
  background: #d83f20;
}

.profile-rank-progress { padding: 14px 16px 4px; color: var(--title); }
.profile-rank-progress__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.profile-rank-progress__head span { font-size: 13px; }
.profile-rank-progress__head strong { font-size: 15px; color: var(--primary); }
.profile-rank-progress__head small { color: var(--muted); font-size: 10px; text-align: right; }
.profile-rank-progress__bar { height: 6px; overflow: hidden; border-radius: 999px; background: var(--input-bg); }
.profile-rank-progress__bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #ff8a33, #ff5a1f); }
.profile-rank-progress__link { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 36px; margin-top: 6px; color: var(--primary); font-size: 11px; font-weight: 700; text-decoration: none!important; }
.profile-rank-progress__link:hover { color: var(--primary); }
.profile-rank-progress__link i { font-size: 9px; transition: transform .2s ease; }
.profile-rank-progress__link:hover i { transform: translateX(2px); }

.profile-balance-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 13px;
  flex-wrap: wrap;
  margin: 14px;
  padding: 15px 14px;
  overflow: hidden;
  color: var(--title);
  border: 1px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(135deg, var(--input-bg), var(--card));
}
.profile-balance-row::after {
  content: "";
  position: absolute;
  top: -36px;
  right: -28px;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: var(--primary);
  opacity: .05;
  pointer-events: none;
}
.profile-balance-row small, .profile-balance-row strong { display: block; }
.profile-balance-row small { margin-bottom: 3px; color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .035em; text-transform: uppercase; }
.profile-balance-content { min-width: 0; flex: 1; }
.profile-balance-value { font-size: 19px; font-weight: 750; line-height: 1.2; letter-spacing: -.01em; }
.profile-balance-value img { width: 24px !important; height: 24px !important; margin-left: 6px !important; vertical-align: -5px; }
.profile-balance-icon { display: inline-flex; width: 42px; height: 42px; flex: 0 0 42px; align-items: center; justify-content: center; border-radius: 13px; color: var(--primary); background: var(--menu-item-hover); box-shadow: inset 0 0 0 1px rgba(255,122,26,.08); }
.profile-balance-history { position: relative; z-index: 1; display: inline-flex; width: 32px; height: 32px; flex: 0 0 32px; align-items: center; justify-content: center; border-radius: 9px; color: var(--muted); text-decoration: none !important; transition: color .2s ease, background-color .2s ease, transform .2s ease; }
.profile-balance-history:hover { color: var(--primary); background: var(--menu-item-hover); transform: translateX(2px); }
.profile-balance-meta { display: grid; grid-template-columns: 1fr 1fr; flex: 0 0 100%; gap: 8px; padding-top: 11px; border-top: 1px solid var(--border); color: var(--muted); font-size: 11px; }
.profile-balance-meta > span { display: flex; align-items: center; gap: 5px; min-width: 0; }
.profile-balance-meta > span:last-child { justify-content: flex-end; }
.profile-balance-meta i { width: 14px; color: var(--primary); text-align: center; }
.profile-balance-meta strong { margin-left: 3px; color: var(--title); font-size: 12px; white-space: nowrap; }

.profile-logout-link { display: flex; align-items: center; gap: 10px; padding: 14px 18px; text-decoration: none !important; transition: background-color .2s ease; }
.profile-logout-link:hover { background: rgba(220,53,69,.08); }

/* ==== ( 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;
  }
}

/* Mobile bottom navigation */
.bottom-menu-mobile {
  position: fixed;
  z-index: 1039;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: calc(74px + env(safe-area-inset-bottom));
  padding: 0 10px env(safe-area-inset-bottom);
  border-top: 1px solid var(--border);
  background: var(--menu-bg);
  background: color-mix(in srgb, var(--menu-bg) 94%, transparent);
  box-shadow: 0 -10px 30px rgba(15, 23, 42, 0.1);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.bottom-menu {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: stretch;
  width: min(100%, 560px);
  height: 74px;
  margin: 0 auto;
  padding: 7px 0 5px;
}

.bottom-menu-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 4px 2px;
  border-radius: 16px;
  color: var(--muted);
  text-align: center;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.bottom-menu-item--home { grid-column: 1; }
.bottom-menu-item--missions { grid-column: 2; }
.bottom-menu-item--primary { grid-column: 3; }
.bottom-menu-item--top { grid-column: 4; }
.bottom-menu-item--account { grid-column: 5; }

.bottom-menu-item__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 30px;
  border-radius: 12px;
  transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.bottom-menu-item__icon i,
.bottom-menu-item i {
  display: block;
  margin: 0;
  font-size: 19px;
}

.bottom-menu-item__label {
  display: block;
  max-width: 100%;
  margin-top: 2px;
  overflow: hidden;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.bottom-menu-item:hover,
.bottom-menu-item:focus-visible,
.bottom-menu-item.active {
  color: #f45b16;
  text-decoration: none;
}

.bottom-menu-item:hover .bottom-menu-item__icon,
.bottom-menu-item:focus-visible .bottom-menu-item__icon,
.bottom-menu-item.active .bottom-menu-item__icon {
  background: rgba(249, 98, 4, 0.1);
  transform: translateY(-1px);
}

.bottom-menu-item:focus-visible {
  outline: 3px solid rgba(249, 98, 4, 0.2);
  outline-offset: -2px;
}

.bottom-menu-item--primary {
  justify-content: flex-end;
  padding-bottom: 4px;
  color: var(--muted);
}

.bottom-menu-item--primary .bottom-menu-item__icon {
  position: absolute;
  top: -25px;
  width: 58px;
  height: 58px;
  border: 5px solid var(--menu-bg);
  border-radius: 21px;
  background: linear-gradient(145deg, #ff8b1f 0%, #f4511e 100%);
  box-shadow: 0 10px 22px rgba(244, 81, 30, 0.3);
  color: #fff;
  transform: rotate(-2deg);
}

.bottom-menu-item--primary .bottom-menu-item__icon i {
  font-size: 23px;
  transform: rotate(2deg);
}

.bottom-menu-item--primary .bottom-menu-item__label {
  margin-bottom: 1px;
  font-size: 11px;
  font-weight: 800;
}

.bottom-menu-item--primary:hover .bottom-menu-item__icon,
.bottom-menu-item--primary:focus-visible .bottom-menu-item__icon,
.bottom-menu-item--primary.active .bottom-menu-item__icon {
  background: linear-gradient(145deg, #ff972d 0%, #ef3f1d 100%);
  transform: translateY(-2px) rotate(0deg);
  box-shadow: 0 13px 25px rgba(244, 81, 30, 0.38);
}

.bottom-menu-item.active:not(.bottom-menu-item--primary)::after {
  content: "";
  position: absolute;
  bottom: 1px;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: #f45b16;
}

.bottom-menu-item:active {
  transform: scale(0.95);
}

@media screen and (max-width: 991px) {
  body.fixed-bottom-padding {
    padding-bottom: calc(82px + env(safe-area-inset-bottom));
  }
}

@media screen and (max-width: 360px) {
  .bottom-menu-mobile {
    padding-right: 4px;
    padding-left: 4px;
  }

  .bottom-menu-item__label {
    font-size: 9.5px;
  }
}

.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: 6px;
  padding: 5px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--input-bg);
}

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

.profile-quick-link-anchor.is-current {
  cursor: default;
}

.profile-quick-link {
  width: 100%;
  min-height: 42px;
  justify-content: center;
  border-radius: 10px;
  padding: 8px 16px; /* tăng padding */
  font-size: 15px; /* tăng từ 13px → 15px */
  border: 1px solid transparent;
  background: transparent;
  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-active,
.profile-quick-link.is-active:hover {
  background: var(--card);
  border-color: var(--border);
  color: var(--primary);
  transform: none;
  box-shadow: 0 3px 10px rgba(15,23,42,.08);
}

.profile-content { position: relative; }
.profile-content::before {
  content: "";
  position: absolute;
  z-index: 5;
  top: -4px;
  left: 0;
  width: 0;
  height: 3px;
  border-radius: 999px;
  background: var(--primary);
  opacity: 0;
}
.profile-content.is-loading::before { width: 72%; opacity: 1; transition: width .45s ease, opacity .15s ease; }

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

/* Responsive */
@media (max-width: 768px) {
  .profile-account-card { position: static; }

  .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;
  }
}

@media (max-width: 430px) {
  .profile-navigation { padding: 16px 14px; }
  .profile-navigation .profile-section__sub { display: none; }
  .profile-quick-link { min-height: 40px; padding: 7px 8px; font-size: 12px; gap: 6px; }
  .profile-quick-link i { font-size: 14px; }
}

/* Profile mobile-first layout */
@media (max-width: 991.98px) {
  .profile-page-shell > [class*="col-"] { padding-left: 10px; padding-right: 10px; }
  .profile-account-card { margin-bottom: 10px !important; border-radius: 16px; }
  .profile-account-card .bg-avt-profile { display: flex; align-items: center; gap: 13px; padding: 14px 15px !important; text-align: left !important; }
  .profile-account-card .avatar-wrap { flex: 0 0 64px; width: 64px; height: 64px; }
  .profile-account-card #avatarImg { width: 64px !important; height: 64px !important; border-width: 3px; }
  .avatar-wrap .avatar-camera-btn { right: -2px; bottom: -2px; width: 27px; height: 27px; padding: 0; border-color: rgba(255,255,255,.8) !important; }
  .avatar-wrap .avatar-camera-btn i { font-size: 12px; }
  .profile-account-identity { min-width: 0; flex: 1; }
  .profile-account-name { margin: 0 0 2px; overflow: hidden; font-size: 17px; text-overflow: ellipsis; white-space: nowrap; }
  .profile-account-username { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .profile-member-rank { margin-top: 6px; padding: 3px 7px; font-size: 10px; }
  .profile-rank-progress { padding: 11px 12px 2px; }
  .profile-balance-row { margin: 10px; padding: 11px 12px; }
  .profile-balance-icon { width: 38px; height: 38px; flex-basis: 38px; }
  .profile-balance-value { font-size: 17px; }
  .profile-logout-item { display: none; }

  .profile-navigation { position: sticky; z-index: 20; top: calc(60px + env(safe-area-inset-top, 0px)); margin-bottom: 10px; padding: 6px !important; border-radius: 14px; }
  .profile-navigation .profile-section__head { display: none; }
  .profile-navigation .profile-quick-links { margin: 0; padding: 0; border: 0; background: transparent; }
  .profile-content.mt-3 { margin-top: 10px !important; }
  .profile-content .profile-section { padding: 16px; margin-bottom: 12px; border-radius: 14px; }
  .profile-content .profile-section:hover { background: var(--card); }
  .profile-content .profile-section__head { gap: 10px; margin-bottom: 14px; }
  .profile-content .profile-section__title { font-size: 16px; }
  .profile-content .profile-section__sub { margin-top: 2px; font-size: 12px; line-height: 1.4; }
  .profile-content .form-control { min-height: 46px; font-size: 16px; border-radius: 10px; }
  .profile-content .password-toggle-btn { width: 42px; height: 42px; right: 2px; }
  .profile-content .btn-section-edit { min-height: 40px; padding: 7px 11px; }

  .avatar-editor-dialog {
    max-width: calc(100vw - 18px);
    margin: 9px auto;
  }

  .avatar-editor-layout {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .avatar-editor-stage {
    padding: 12px;
  }

  .avatar-editor-crop-frame {
    height: min(58vh, 430px);
    min-height: 300px;
    border-radius: 10px;
  }

  .avatar-editor-side {
    align-items: stretch;
    padding: 14px;
    border-top: 1px solid #e1e7f0;
    border-left: 0;
  }

  .avatar-editor-preview {
    align-self: center;
    width: 118px;
    height: 118px;
    border-width: 4px;
  }

  .avatar-editor-modal .modal-footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .avatar-editor-modal .modal-footer .btn {
    margin: 0;
    min-height: 44px;
  }
}

@media (max-width: 575.98px) {
  .profile-info-row { display: block !important; padding: 10px 0 !important; }
  .profile-info-label { margin-bottom: 3px; font-size: 12px; }
  .profile-info-value { max-width: none !important; text-align: left !important; font-size: 14px; }
  .profile-section__actions { position: sticky; z-index: 8; bottom: calc(68px + env(safe-area-inset-bottom, 0px)); margin: 16px -4px -4px; padding: 10px 4px 4px; background: var(--card); }
  .profile-section__actions .btn-cancel-section,
  .profile-section__actions .btn-save-section { min-height: 46px; border-radius: 11px; }

  .avatar-editor-modal {
    padding-right: 0 !important;
  }

  .avatar-editor-modal .modal-dialog {
    width: min(100% - 28px, 430px);
    max-width: min(100% - 28px, 430px);
    height: min(86dvh, 760px);
    min-height: 0;
    margin: max(14px, 7dvh) auto;
    align-items: stretch;
  }

  .avatar-editor-modal .modal-content {
    display: flex;
    height: 100%;
    max-height: none;
    overflow: hidden;
    border-radius: 14px;
    background: #0b1020;
    box-shadow: 0 18px 48px rgba(0, 0, 0, .34);
  }

  .avatar-editor-modal .modal-header {
    flex: 0 0 auto;
    align-items: center;
    min-height: 0;
    padding: 8px 14px;
    border-bottom: 1px solid rgba(15, 23, 42, .08);
    background: #ff512f;
    color: #fff;
  }

  .avatar-editor-modal .modal-title {
    font-size: 15px;
    font-weight: 850;
    line-height: 1.25;
  }

  .avatar-editor-close {
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    margin: -4px -6px -4px 8px;
    border-radius: 50%;
    color: #fff;
    opacity: 1;
  }

  .avatar-editor-close:hover {
    color: #fff;
    background: rgba(255,255,255,.14);
  }

  .avatar-editor-status {
    display: none;
  }

  .avatar-editor-modal .modal-body {
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    background: #0b1020;
  }

  .avatar-editor-layout {
    display: flex;
    width: 100%;
    min-height: 0;
    flex: 1 1 auto;
    flex-direction: column;
  }

  .avatar-editor-stage {
    display: flex;
    min-height: 0;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 0;
    background: #0b1020;
  }

  .avatar-editor-crop-frame {
    flex: 1 1 auto;
    height: auto;
    min-height: 0;
    border-radius: 0;
    background:
      linear-gradient(45deg, rgba(255,255,255,.035) 25%, transparent 25%),
      linear-gradient(-45deg, rgba(255,255,255,.035) 25%, transparent 25%),
      #0b1020;
    background-size: 18px 18px;
  }

  .avatar-editor-crop-frame .cropper-container {
    min-height: 100%;
  }

  .avatar-editor-crop-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 8;
    pointer-events: none;
    background: rgba(4, 8, 18, .55);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    --avatar-mobile-crop-radius: calc(var(--avatar-mobile-crop-size, 280px) / 2);
    -webkit-mask: radial-gradient(circle var(--avatar-mobile-crop-radius) at center, transparent calc(100% - 1px), #000 100%);
    mask: radial-gradient(circle var(--avatar-mobile-crop-radius) at center, transparent calc(100% - 1px), #000 100%);
  }

  .avatar-editor-modal .cropper-view-box,
  .avatar-editor-modal .cropper-face {
    border-radius: 50%;
  }

  .avatar-editor-modal .cropper-view-box {
    outline: 2px solid rgba(255,255,255,.92);
    outline-offset: -1px;
    box-shadow:
      0 0 0 1px rgba(15,23,42,.2),
      0 14px 36px rgba(0,0,0,.22),
      inset 0 0 0 1px rgba(255,255,255,.28);
  }

  .avatar-editor-modal .cropper-line,
  .avatar-editor-modal .cropper-point {
    display: none;
  }

  .avatar-editor-modal .cropper-dashed {
    border-color: rgba(255,255,255,.22);
  }

  .avatar-editor-modal .cropper-center::before,
  .avatar-editor-modal .cropper-center::after {
    background-color: rgba(255,255,255,.45);
  }

  .avatar-editor-zoom-row {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr) 22px;
    align-items: center;
    gap: 9px;
    padding: 10px 18px 6px;
    border-top: 1px solid rgba(255,255,255,.08);
    background: #101827;
    color: rgba(255,255,255,.76);
  }

  .avatar-editor-zoom-row i {
    font-size: 14px;
    text-align: center;
  }

  .avatar-editor-zoom-row input[type="range"] {
    width: 100%;
    height: 26px;
    margin: 0;
    accent-color: #ee4d2d;
  }

  .avatar-editor-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto minmax(0, 1fr);
    justify-content: stretch;
    gap: 10px;
    margin: 0;
    padding: 6px 18px 10px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    background: #101827;
  }

  .avatar-editor-tool {
    justify-self: center;
    width: 38px;
    height: 38px;
    border-color: rgba(255,255,255,.1);
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    color: #fff;
  }

  .avatar-editor-tool:hover:not(:disabled) {
    border-color: rgba(255,255,255,.22);
    box-shadow: none;
    transform: none;
  }

  .avatar-editor-modal #btnAvatarZoomOut,
  .avatar-editor-modal #btnAvatarZoomIn {
    display: none;
  }

  .avatar-editor-modal #btnAvatarPickToolbar {
    order: 1;
    justify-self: start;
  }

  .avatar-editor-modal #btnAvatarRotateLeft {
    order: 2;
  }

  .avatar-editor-modal #btnAvatarRotateRight {
    order: 3;
  }

  .avatar-editor-modal #btnAvatarReset {
    order: 4;
    justify-self: end;
  }

  .avatar-editor-tool--pick {
    display: inline-flex;
  }

  .avatar-editor-side {
    display: none;
  }

  .avatar-editor-modal .modal-footer {
    flex: 0 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px;
    padding: 8px 14px calc(8px + env(safe-area-inset-bottom, 0px));
    border-top: 0;
    background: #fff;
  }

  .avatar-editor-modal .modal-footer .btn {
    min-height: 42px;
    margin: 0;
    border-radius: 999px;
    font-weight: 850;
  }

  .avatar-editor-modal #btnCropCancel {
    border: 0;
    background: #f1f3f5;
    color: #243044;
  }

  .avatar-editor-save {
    min-width: 0;
    background: #ee4d2d;
  }
}

@media (max-width: 575.98px) and (max-height: 720px) {
  .avatar-editor-modal .modal-dialog {
    height: calc(100dvh - 28px);
    margin-top: 12px;
    margin-bottom: 12px;
  }

  .avatar-editor-zoom-row {
    padding-top: 8px;
  }

  .avatar-editor-toolbar {
    padding-bottom: 8px;
  }

  .avatar-editor-modal .modal-footer {
    padding-top: 7px;
    padding-bottom: 7px;
  }
}
/* ======================================================
   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);
}
