/* ==========================================================
   ROYAL CLUB & HẬU MÃI — SCOPED PROFILE PAGE STYLES
   Bố cục theo mockup — tone màu theo royalhelmet.com.vn
   Đỏ Royal + đen + trắng. Vàng chỉ dùng cho hạng thành viên.
   ========================================================== */
.rha-profile-page {
  --red:        #ED1C24;
  --red-dark:   #B3121A;
  --red-soft:   #FFECEC;

  --ink:        #14171B;   /* nền tối chính */
  --ink-2:      #1E2229;   /* thẻ trên nền tối */
  --ink-3:      #2A2F37;   /* viền trên nền tối */

  --gold:       #C9A227;   /* chỉ cho hạng thành viên */
  --gold-light: #E8C766;

  --text:       #16181B;
  --muted:      #6B7076;
  --muted-dark: #9AA1AA;   /* chữ phụ trên nền tối */

  --bg:         #F4F5F7;
  --white:      #FFFFFF;
  --line:       #E4E6E9;

  --r-sm:10px; --r:14px; --r-lg:18px;
  --shadow:0 2px 10px rgba(20,23,27,.06);
  --shadow-lg:0 18px 44px rgba(20,23,27,.14);
  --wrap:1200px;

  font-family:'Be Vietnam Pro',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Arial,sans-serif;
  background:var(--bg);
  color:var(--text);
  font-size:15px;
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
  width: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.member-info {
    display: flex;
    gap: 18px;
    align-items: center;
}

.rha-profile-page * {
  box-sizing: border-box;
}

.rha-profile-page img {
  max-width: 100%;
  display: block;
}

.rha-profile-page a {
  color: inherit;
  text-decoration: none;
}

.rha-profile-page button {
  font-family: inherit;
  cursor: pointer;
  border: 0;
  background: none;
}

.rha-profile-page svg {
  flex: 0 0 auto;
}

.rha-profile-page .wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
}

/* =============== HERO =============== */
.rha-profile-page .hero {
  background:
    radial-gradient(760px 420px at 82% 30%, rgba(237,28,36,.22), transparent 62%),
    linear-gradient(180deg,#191D23 0%, var(--ink) 100%);
  color:var(--white);
  padding: 46px 0 96px;
}

.rha-profile-page .hero-grid {
  display:grid;
  grid-template-columns:1.05fr .95fr;
  gap:40px;
  align-items:center;
}

.rha-profile-page .hero h1 {
  font-size:38px;
  font-weight:800;
  letter-spacing:-.8px;
  line-height:1.15;
  margin-bottom:14px;
  color: var(--white);
}

.rha-profile-page .hero h1 em {
  font-style:normal;
  color:#d6aa69;
}

.rha-profile-page .hero p {
  color:#B9C0C8;
  max-width:46ch;
  font-size:15px;
}

/* Thẻ hội viên */
/* .rha-profile-page .club-card {
  position:relative;
  aspect-ratio:16/9;
  border-radius:20px;
  background:linear-gradient(140deg,#232830 0%, #14171B 70%);
  border:1px solid var(--ink-3);
  box-shadow:0 26px 60px rgba(0,0,0,.5);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:6px;
  overflow:hidden;
} */

.rha-profile-page .club-card {
    background-image: url(https://royalhelmet.com.vn/wp-content/uploads/2024/08/banner2-1_11zon.webp);
    background-size: cover;
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 20px;
    background-position: 50%;
    background-repeat: no-repeat;
    /* background: linear-gradient(140deg, #232830 0%, #14171B 70%); */
    border: 1px solid var(--ink-3);
    box-shadow: 0 26px 60px rgba(0, 0, 0, .5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;alt="Thẻ Royal Club"
    gap: 6px;
    overflow: hidden;
}

.rha-profile-page .club-card::before {
  content:"";
  position:absolute;
  inset:0;
  /* background:
    radial-gradient(300px 200px at 78% 18%, rgba(201,162,39,.30), transparent 62%),
    repeating-linear-gradient(118deg, rgba(255,255,255,.04) 0 2px, transparent 2px 15px); */
}

.rha-profile-page .club-card > * {
  position:relative;
}

.rha-profile-page .club-card svg {
  width:40px;
  height:24px;
}

.rha-profile-page .club-card .cc-name {
  font-size:24px;
  font-weight:800;
  letter-spacing:.06em;
  color:var(--gold-light);
}

.rha-profile-page .club-card .cc-sub {
  font-size:9.5px;
  font-weight:600;
  letter-spacing:.42em;
  color:#C5CBD3;
}

.rha-profile-page .club-card .cc-no {
  margin-top:12px;
  font-size:14px;
  font-weight:600;
  letter-spacing:.22em;
  color:#DFE4EA;
  font-variant-numeric:tabular-nums;
}

.rha-profile-page .club-card .cc-tag {
  font-size:10px;
  letter-spacing:.28em;
  color:#8B929B;
}

/* =============== 2 THẺ TÀI KHOẢN (đè lên hero) =============== */
.rha-profile-page .account {
  margin-top:-72px;
  position:relative;
  z-index:5;
}

.points svg {
    width: 30px;
}

button.rha-vticket-btn-copy {
    margin-bottom: 3px;
}

button.rha-voucher-empty-btn {
    display: none;
}

button.rha-voucher-tab {
    text-transform: math-auto;
    width: max-content;
    min-width: max-content;
}

.rha-profile-page .account-grid {
  display:grid;
  grid-template-columns:1.15fr .85fr;
  gap:20px;
}

button.rha-voucher-tab {
    margin-bottom: 0;
}

.rha-profile-page .panel {
  background:var(--ink-2);
  border:1px solid var(--ink-3);
  border-radius:var(--r-lg);
  padding:24px 26px;
  color:var(--white);
  box-shadow:var(--shadow-lg);
}

.rha-profile-page .member {
  display:flex;
  gap:18px;
  justify-content: space-between;
}

.rha-profile-page .member-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  padding-top: 4px;
  min-height: 58px;
}

.rha-profile-page .edit-profile {
  display: flex;
  align-items: flex-start;
  padding-top: 4px;
}

.rha-profile-page .edit-profile a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 600;
  color: #DFE4EA;
  transition: all 0.2s ease;
  cursor: pointer;
  text-decoration: none !important;
  min-width: max-content;
}

.rha-profile-page .edit-profile a:hover {
  color: var(--red);
}

.rha-profile-page .edit-profile a i {
  font-size: 12px;
  opacity: 0.85;
}

.rha-profile-page .logout-profile {
  display: flex;
  align-items: flex-end;
}

.rha-profile-page .logout-profile a.rha-btn-logout {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 10.5px;
    font-weight: 600;
    color: #ffffff;
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none !important;
    /* opacity: 0.9; */
    background-color: #ed1c24;
    padding: 3px 10px;
    border-radius: 15px;
    margin-bottom: 14px;
    border: 1px solid #ed1c24;
}

.rha-profile-page .logout-profile a.rha-btn-logout:hover {
  color: #ed1c24;
  background-color: var(--white);
}

.rha-profile-page .logout-profile a.rha-btn-logout svg {
  opacity: 0.8;
  transition: transform 0.2s ease;
}

.rha-profile-page .logout-profile a.rha-btn-logout:hover svg {
  transform: translateX(2px);
  color: var(--red);
}

.rha-profile-page .avatar {
  width:74px;
  height:74px;
  flex:0 0 auto;
  border-radius:50%;
  background:linear-gradient(140deg,#3A414B,#22262D);
  border:2px solid var(--gold);
  display:grid;
  place-items:center;
  color:#8B929B;
  overflow:hidden;
}

.rha-profile-page .avatar svg {
  width:34px;
  height:34px;
  stroke:currentColor;
  fill:none;
  stroke-width:1.5;
}

.rha-profile-page .member-hi {
  font-size:12.5px;
  color:var(--muted-dark);
}

.rha-profile-page .member-name {
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  margin:2px 0 14px;
}

.rha-profile-page .member-name h2 {
  font-size:23px;
  font-weight:800;
  letter-spacing:-.3px;
  color: var(--white);
  margin: 0;
}

.rha-profile-page .chip {
  font-size:10.5px;
  font-weight:500;
  letter-spacing:.04em;
  padding:3px 10px;
  border-radius:999px;
  background:var(--red);
  color:var(--white);
}

.rha-profile-page .member-stats {
  display:flex;
  gap:34px;
  flex-wrap:wrap;
  padding-top:14px;
  border-top:1px solid var(--ink-3);
  justify-content: space-between;
}

.rha-profile-page .stat-l {
  font-size:11.5px;
  color:var(--muted-dark);
  margin-bottom:5px;
}

.rha-profile-page .tier {
  display:flex;
  align-items:center;
  gap:8px;
  color:var(--gold-light);
  font-weight:800;
  font-size:15px;
  letter-spacing:.04em;
}

.rha-profile-page .tier svg {
  width:19px;
  height:19px;
  fill:currentColor;
}

.rha-profile-page .points {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -.5px;
    line-height: 1.1;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 5px;
}

.rha-profile-page .points-eq {
  font-size:12px;
  color:var(--muted-dark);
  margin-top:3px;
}

.rha-profile-page .progress-head {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
}

.rha-profile-page .progress-title {
  font-size:11.5px;
  font-weight:700;
  letter-spacing:.12em;
  color:var(--muted-dark);
  margin-bottom:10px;
}

.rha-profile-page .progress-note {
  font-size:13px;
  color:#B9C0C8;
  max-width:34ch;
}

.rha-profile-page .progress-note b {
  color:var(--white);
}

.rha-profile-page .next-tier {
  font-size:17px;
  font-weight:800;
  letter-spacing:.03em;
  color:#DDE2E8;
  margin:8px 0 16px;
}

.rha-profile-page .medal {
  padding:5px;
  width:56px;
  height:56px;
  flex:0 0 auto;
  border-radius:14px;
  background:#262B33;
  border:1px solid var(--ink-3);
  display:grid;
  place-items:center;
  color:#AAB2BB;
}

.rha-profile-page .medal svg {
  width:28px;
  height:28px;
  fill:currentColor;
}

.rha-profile-page .bar {
  height:8px;
  border-radius:999px;
  background:#31363F;
  overflow:hidden;
}

.rha-profile-page .bar i {
  display:block;
  height:100%;
  border-radius:999px;
  background:linear-gradient(90deg,var(--gold),var(--gold-light));
}

.rha-profile-page .bar-legend {
  display:flex;
  justify-content:space-between;
  font-size:12px;
  color:var(--muted-dark);
  margin-top:8px;
  font-variant-numeric:tabular-nums;
}

/* =============== KHU SÁNG =============== */
.rha-profile-page .light {
  background:var(--bg);
  padding:44px 0 8px;
}

.rha-profile-page .section {
  padding:14px 0 34px;
}

.rha-profile-page .section-head {
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:16px;
  margin-bottom:16px;
}

.rha-profile-page .section-head h2 {
  font-size:16px;
  font-weight:800;
  letter-spacing:.1em;
  margin: 0;
  color: var(--text);
}

.rha-profile-page .more {
  font-size:13px;
  color:var(--muted);
  display:inline-flex;
  align-items:center;
  gap:5px;
  min-width: 100px;
}

.rha-profile-page .more:hover {
  color:var(--red);
}

.rha-profile-page .more svg {
  width:13px;
  height:13px;
  stroke:currentColor;
  fill:none;
  stroke-width:2;
}

/* --- Lưới tiện ích + ưu đãi --- */
.rha-profile-page .util-grid {
  display:grid;
  grid-template-columns:1fr;
  gap:20px;
}

.rha-profile-page .util {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:1px;
  background:var(--line);
  border:1px solid var(--line);
  border-radius:var(--r);
  overflow:hidden;
}

.rha-profile-page .util a {
  background:var(--white);
  padding:20px 18px;
  display:flex;
  gap:13px;
  align-items:flex-start;
  transition:background .18s;
}

.rha-profile-page .util a:hover {
  background:var(--red-soft);
}

.rha-profile-page .util-fill {
  background:var(--white);
}

.rha-profile-page .util-ic {
  width:38px;
  height:38px;
  flex:0 0 auto;
  border-radius:10px;
  background:var(--bg);
  display:grid;
  place-items:center;
  color:var(--red);
}

.rha-profile-page .util a:hover .util-ic {
  background:var(--white);
}

.rha-profile-page .util-ic svg {
  width:19px;
  height:19px;
  stroke:currentColor;
  fill:none;
  stroke-width:1.7;
}

.rha-profile-page .util b {
  display:block;
  font-size:13.5px;
  font-weight:700;
  line-height:1.35;
  margin-bottom:3px;
  color: var(--text);
}

.rha-profile-page .util small {
  font-size:11.5px;
  color:var(--muted);
}

.rha-profile-page .offer {
  position:relative;
  overflow:hidden;
  border-radius:var(--r);
  padding:28px 26px;
  background:linear-gradient(150deg,#1E2229 0%, var(--ink) 100%);
  color:var(--white);
  display:flex;
  flex-direction:column;
  justify-content:center;
}

.rha-profile-page .offer::after {
  content:"";
  position:absolute;
  inset:0;
  background:radial-gradient(280px 200px at 88% 82%, rgba(237,28,36,.35), transparent 62%);
}

.rha-profile-page .offer > * {
  position:relative;
  z-index:1;
}

.rha-profile-page .offer-tag {
  font-size:10.5px;
  font-weight:700;
  letter-spacing:.14em;
  color:var(--red);
  margin-bottom:10px;
}

.rha-profile-page .offer h3 {
  font-size:27px;
  font-weight:800;
  letter-spacing:-.5px;
  color: var(--white);
  margin: 0;
}

.rha-profile-page .offer p {
  font-size:13px;
  color:#B9C0C8;
  margin:8px 0 16px;
  max-width:26ch;
}

.rha-profile-page .code {
  align-self:flex-start;
  border:1.4px dashed var(--gold);
  border-radius:9px;
  padding:8px 16px;
  font-weight:700;
  font-size:13.5px;
  letter-spacing:.06em;
  color:var(--gold-light);
  background:rgba(201,162,39,.09);
  margin-bottom:14px;
}

.rha-profile-page .offer small {
  display:block;
  font-size:11.5px;
  color:#8B929B;
}

/* --- Sản phẩm đã đăng ký --- */
.rha-profile-page .reg-grid {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:16px;
}

.rha-profile-page .reg {
  background:var(--white);
  border:1px solid var(--line);
  border-radius:var(--r);
  padding:16px;
  display:flex;
  flex-direction:column;
}

.rha-profile-page .reg-top {
  display:flex;
  gap:14px;
  margin-bottom:14px;
}

.rha-profile-page .thumb {
  width:88px;
  height:88px;
  flex:0 0 auto;
  border-radius:10px;
  background:var(--bg);
  display:grid;
  place-items:center;
  color:#B6BCC4;
  overflow:hidden;
}

.rha-profile-page .thumb svg {
  width:40px;
  height:40px;
  fill:currentColor;
}

.rha-profile-page .thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: inherit;
  display: block;
}

.rha-profile-page .reg b {
  display:block;
  font-size:13.5px;
  font-weight:700;
  line-height:1.35;
  color: var(--text);
}

.rha-profile-page .reg-meta {
  font-size:11.5px;
  color:var(--muted);
  margin-top:5px;
}

.rha-profile-page .warranty {
  display:flex;
  gap:11px;
  align-items:flex-start;
  padding:12px 0;
  margin-top:auto;
  border-top:1px solid var(--line);
}

.rha-profile-page .warranty svg {
  width:19px;
  height:19px;
  stroke:var(--gold);
  fill:none;
  stroke-width:1.7;
  margin-top:1px;
}

.rha-profile-page .warranty small {
  display:block;
  font-size:11px;
  color:var(--muted);
}

.rha-profile-page .warranty b {
  font-size:13.5px;
  font-weight:700;
  color:var(--gold);
}

.rha-profile-page .warranty .left {
  font-size:11px;
  color:var(--muted);
  font-weight:400;
}

.rha-profile-page .btn-line {
  display: block;
  width:100%;
  padding:9px;
  border:1px solid var(--line);
  border-radius:9px;
  font-size:11.5px;
  font-weight:700;
  letter-spacing:.08em;
  color:var(--text);
  transition:.18s;
  text-align: center;
  box-sizing: border-box;
  text-decoration: none;
}

.rha-profile-page .btn-line:hover {
  border-color:var(--red);
  color:var(--red);
  background:var(--red-soft);
}

.rha-profile-page .reg-add {
  border:1.5px dashed var(--line);
  background:var(--white);
  border-radius:var(--r);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:10px;
  text-align:center;
  padding:24px;
  transition:.18s;
  box-sizing: border-box;
  margin-right: 0;
}

.rha-profile-page .reg-add:hover {
  border-color:var(--red);
  background:var(--red-soft);
}

.rha-profile-page .reg-add .plus {
  width:42px;
  height:42px;
  border-radius:50%;
  background:var(--bg);
  display:grid;
  place-items:center;
  color:var(--muted);
  font-size:22px;
  line-height:1;
}

.rha-profile-page .reg-add:hover .plus {
  background:var(--white);
  color:var(--red);
}

.rha-profile-page .reg-add b {
  font-size:13.5px;
  color: var(--text);
}

.rha-profile-page .reg-add small {
  font-size:11.5px;
  color:var(--muted);
  max-width:22ch;
}

/* --- Dành cho bạn --- */
.rha-profile-page .prod-grid {
  display:grid;
  grid-template-columns:repeat(6,1fr);
  gap:14px;
}

.rha-profile-page .prod {
  background:var(--white);
  border:1px solid var(--line);
  border-radius:var(--r);
  padding:14px;
  display:flex;
  flex-direction:column;
  transition:.2s;
  box-sizing: border-box;
}

.rha-profile-page .prod:hover {
  border-color:#D2D5DA;
  box-shadow:var(--shadow);
  transform:translateY(-3px);
}

.rha-profile-page .prod .thumb {
  width:100%;
  height:150px;
  margin-bottom:12px;
}

.rha-profile-page .prod b {
  font-size:12.5px;
  font-weight:600;
  line-height:1.4;
  min-height:35px;
  color: var(--text);
}

.rha-profile-page .rate {
  display:flex;
  align-items:center;
  gap:5px;
  margin:8px 0 10px;
  font-size:11px;
  color:var(--muted);
}

.rha-profile-page .stars {
  color:var(--gold);
  letter-spacing:.5px;
  font-size:11px;
}

.rha-profile-page .prod-foot {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  margin-top:auto;
}

.rha-profile-page .price {
  font-size:14px;
  font-weight:800;
  color:var(--red);
  line-height: 1.2;
}

.rha-profile-page .price del {
  font-size: 11px;
  color: var(--muted);
  margin-right: 4px;
  font-weight: normal;
}

.rha-profile-page .price ins {
  text-decoration: none;
}

.rha-profile-page .price .woocommerce-Price-amount {
  color: var(--red);
  font-weight: 800;
}

.rha-profile-page .cart-btn {
  width:30px;
  height:30px;
  border-radius:8px;
  border:1px solid var(--line);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:var(--muted);
  transition:.18s;
  padding: 0;
  text-decoration: none;
  background: transparent;
  flex: 0 0 auto;
}

.rha-profile-page .cart-btn:hover {
  background:var(--red);
  border-color:var(--red);
  color:var(--white);
}

.rha-profile-page .cart-btn svg {
  width:15px;
  height:15px;
  stroke:currentColor;
  fill:none;
  stroke-width:1.8;
}

/* --- Hỗ trợ nhanh --- */
.rha-profile-page .help-grid {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:16px;
}

.rha-profile-page .help {
  background:var(--ink-2);
  border:1px solid var(--ink-3);
  border-radius:var(--r);
  padding:20px;
  color:var(--white);
  display:flex;
  gap:14px;
  justify-content:space-between;
  align-items:flex-start;
  box-sizing: border-box;
}

.rha-profile-page .help b {
  display:block;
  font-size:14.5px;
  font-weight:700;
  margin-bottom:5px;
  color: var(--white);
}

.rha-profile-page .help p {
  font-size:12px;
  color:var(--muted-dark);
  line-height:1.5;
  margin-bottom:14px;
  max-width:24ch;
}

.rha-profile-page .help-ic {
  width:44px;
  height:44px;
  flex:0 0 auto;
  border-radius:50%;
  background:#262B33;
  border:1px solid var(--ink-3);
  display:grid;
  place-items:center;
  color:var(--gold-light);
}

.rha-profile-page .help-ic svg {
  width:21px;
  height:21px;
  stroke:currentColor;
  fill:none;
  stroke-width:1.6;
}

.rha-profile-page .btn-red {
  display: inline-block;
  padding:8px 16px;
  border-radius:8px;
  background:var(--red);
  color:var(--white);
  font-size:11px;
  font-weight:700;
  letter-spacing:.08em;
  transition:background .18s;
  text-decoration: none;
}

.rha-profile-page .btn-red:hover {
  background:var(--red-dark);
  color: var(--white);
}

.rha-profile-page .hotline {
  font-size:21px;
  font-weight:800;
  color:var(--white);
  letter-spacing:-.3px;
  text-decoration: none;
}

/* =============== TRUST =============== */
.rha-profile-page .trust {
  background:var(--ink);
  border-top:1px solid rgba(255,255,255,.06);
  padding:26px 0;
}

.rha-profile-page .trust-grid {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:24px;
}

.rha-profile-page .trust-item {
  display:flex;
  gap:13px;
  align-items:center;
  color:var(--white);
}

.rha-profile-page .trust-item svg {
  width:28px;
  height:28px;
  stroke:var(--gold);
  fill:none;
  stroke-width:1.4;
}

.rha-profile-page .trust-item b {
  display:block;
  font-size:12px;
  font-weight:700;
  letter-spacing:.06em;
  margin-bottom:3px;
  color: var(--white);
}

.rha-profile-page .trust-item small {
  font-size:11.5px;
  color:var(--muted-dark);
  line-height:1.45;
}

/* =============== RESPONSIVE =============== */
@media (max-width:1080px){
  .rha-profile-page .util-grid{grid-template-columns:1fr}
  .rha-profile-page .prod-grid{grid-template-columns:repeat(3,1fr)}
  .rha-profile-page .reg-grid{grid-template-columns:repeat(2,1fr)}
  .rha-profile-page .help-grid{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:900px){
  .rha-profile-page .hero-grid{grid-template-columns:1fr;gap:28px}
  .rha-profile-page .hero h1{font-size:30px}
  .rha-profile-page .account-grid{grid-template-columns:1fr}
  .rha-profile-page .util{grid-template-columns:repeat(2,1fr)}
  .rha-profile-page .trust-grid{grid-template-columns:1fr 1fr;gap:18px}
}
@media (max-width:640px){
  .rha-profile-page .hero{padding-bottom:80px}
  .rha-profile-page .hero h1{font-size:26px}
  .rha-profile-page .prod-grid{grid-template-columns:repeat(2,1fr)}
  .rha-profile-page .reg-grid,
  .rha-profile-page .help-grid{grid-template-columns:1fr}
  .rha-profile-page .util{grid-template-columns:1fr 1fr}
  .rha-profile-page .member{flex-direction:column;align-items:flex-start;gap:14px}
  .rha-profile-page .member-stats{gap:24px}
  .rha-profile-page .progress-head{flex-direction:column-reverse;align-items:flex-start}
  .rha-profile-page .trust-grid{grid-template-columns:1fr}
  .rha-profile-page .member {flex-direction: row;}
  .rha-profile-page .member-actions {gap: 25px;}
  .rha-profile-page .chip {font-size: 10.5px; font-weight: 500;}
  .member-info {gap: 10px;width: 180px;}
  .rha-profile-page .member-hi {font-size: 10px;}
  .rha-profile-page .member-name h2 {font-size: 17px;}
  .rha-profile-page .avatar {width: 60px; height: 60px;}
  .rha-profile-page .logout-profile a.rha-btn-logout {padding: 2px 10px;}
  .rha-profile-page .edit-profile a {font-size: 10.5px;}
  .edit-profile span {display: none;}
  .rha-profile-page .edit-profile a i {font-size: 16px;}
  .rha-profile-page .util a {padding: 10px;}
  .rha-profile-page .util small {font-size: 10px;}
  .rha-profile-page .util b {font-size: 11px;}
  .rha-profile-page section.wrap { max-width: 96%; width: 96%; min-width: 96%; margin: auto;}
  .rha-profile-page section.hero { max-width: 100%; width: 100%; min-width: 100%; margin: auto; }
  .rha-profile-page .prod-grid {gap: 8px;}
  .rha-auth-container { padding: 0px 20px; !important;}
}
@media (prefers-reduced-motion:reduce){
  .rha-profile-page *{transition-duration:.001ms!important}
}

/* ============================================================
   WARRANTY MODALS (DETAIL & ACTIVATION)
   ============================================================ */
.rha-warranty-modal {
  display: none;
  position: fixed;
  z-index: 999999;
  inset: 0;
  background-color: rgba(16, 17, 20, 0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  overflow-y: auto;
}

.rha-warranty-modal.is-open {
  display: flex !important;
}

.rha-warranty-modal.is-open .rha-warranty-modal-card {
  animation: rha-modal-pop .25s cubic-bezier(.16,1,.3,1) forwards;
  margin: auto;
}

@keyframes rha-modal-pop {
  from { opacity: 0; transform: scale(.95) translateY(12px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.rha-warranty-modal-card {
  position: relative;
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  background: #FFFFFF;
  border-radius: 20px;
  box-shadow: 0 25px 60px -15px rgba(0,0,0,0.35);
  padding: 24px 22px 20px;
  box-sizing: border-box;
  font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #16181B;
}

.rha-warranty-modal-body {
  overflow-y: auto;
  padding-right: 4px;
  margin-right: -4px;
  flex: 1 1 auto;
}

.rha-warranty-modal-body::-webkit-scrollbar {
  width: 5px;
}
.rha-warranty-modal-body::-webkit-scrollbar-track {
  background: #F1F3F5;
  border-radius: 10px;
}
.rha-warranty-modal-body::-webkit-scrollbar-thumb {
  background: #D1D5DB;
  border-radius: 10px;
}
.rha-warranty-modal-body::-webkit-scrollbar-thumb:hover {
  background: #9CA3AF;
}

.rha-warranty-modal-card .rha-modal-close {
  position: absolute;
  top: 0px;
  right: 0px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  font-size: 25px;
  line-height: 1;
  color: #6B7076;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .18s;
  z-index: 2;
  margin-right: 0px;
  font-weight: 600;
}

.rha-warranty-modal-card .rha-modal-close:hover {
  background: #fff;
  color: #ED1C24;
}

.rha-warranty-badge-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #FFECEC;
  color: #ED1C24;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.rha-warranty-modal-header h3 {
  font-size: 20px;
  font-weight: 800;
  color: #14171B;
  margin: 0 0 6px 0;
  letter-spacing: -.3px;
}

.rha-warranty-modal-header .rha-modal-sub {
  font-size: 13px;
  color: #6B7076;
  line-height: 1.5;
  margin: 0 0 16px 0;
}

/* Product presentation in modal */
.rha-warranty-prod-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #F8F9FA;
  border: 1px solid #EAECF0;
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 14px;
}

.rha-warranty-prod-thumb {
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  border-radius: 10px;
  background: #FFFFFF;
  border: 1px solid #E4E6E9;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.rha-warranty-prod-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.rha-warranty-prod-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9AA0A6;
}

.rha-warranty-prod-info h4 {
  font-size: 15px;
  font-weight: 700;
  color: #16181B;
  margin: 0 0 5px 0;
  line-height: 1.35;
}

.rha-warranty-prod-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.rha-tag {
  font-size: 11px;
  color: #5F6368;
  background: #FFFFFF;
  border: 1px solid #E0E2E6;
  border-radius: 6px;
  padding: 2px 8px;
}

/* Warranty status box */
.rha-warranty-status-box {
  background: #FAFAFA;
  border: 1px solid #E5E7EB;
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 14px;
}

.rha-warranty-status-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.rha-warranty-chip {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  padding: 3px 9px;
  border-radius: 999px;
}

.rha-warranty-chip.chip-active {
  background: #DEF7EC;
  color: #03543F;
}

.rha-warranty-chip.chip-expired {
  background: #FDE8E8;
  color: #9B1C1C;
}

.rha-warranty-days-left {
  font-size: 12.5px;
  font-weight: 600;
}

.rha-warranty-days-left.is-active {
  color: #046C4E;
}

.rha-warranty-days-left.is-expired {
  color: #C81E1E;
}

.rha-warranty-dates-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.rha-date-col {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.rha-date-label {
  font-size: 11px;
  color: #6B7280;
}

.rha-date-col strong {
  font-size: 13.5px;
  font-weight: 700;
  color: #111827;
}

.rha-date-arrow {
  color: #9CA3AF;
  font-size: 16px;
}

/* Warranty commitments - Á Châu Group Policy */
.rha-warranty-commitments {
  border-top: 1px solid #F0F2F5;
  padding-top: 14px;
  margin-top: 14px;
  margin-bottom: 8px;
}

.rha-policy-header h5 {
  font-size: 12.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: #111827;
  margin: 0 0 4px 0;
  line-height: 1.4;
}

.rha-policy-intro {
  font-size: 11.5px;
  color: #4B5563;
  line-height: 1.45;
  margin: 0 0 10px 0;
}

.rha-policy-block {
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 10px;
  font-size: 11.5px;
  line-height: 1.45;
}

.rha-policy-block.rha-policy-accept {
  background: #F0FDF4;
  border: 1px solid #DCFCE7;
}

.rha-policy-block.rha-policy-reject {
  background: #FEF2F2;
  border: 1px solid #FEE2E2;
}

.rha-policy-block.rha-policy-condition {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  margin-bottom: 0;
}

.rha-policy-block-title {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.4;
}

.rha-policy-accept .rha-policy-block-title {
  color: #166534;
}

.rha-policy-reject .rha-policy-block-title {
  color: #991B1B;
}

.rha-policy-condition .rha-policy-block-title {
  color: #1E293B;
}

.rha-policy-block-title svg.rha-icon-accept {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  color: #16A34A;
  margin-top: 1px;
}

.rha-policy-emoji {
  font-size: 12px;
  line-height: 1.2;
  flex: 0 0 15px;
}

.rha-policy-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  /* gap: 5px; */
}

.rha-policy-list li {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 11.5px;
  color: #374151;
  line-height: 1.45;
}

.rha-policy-accept .rha-bullet {
  color: #16A34A;
  font-weight: 700;
  flex: 0 0 8px;
}

.rha-policy-reject .rha-bullet {
  color: #DC2626;
  font-weight: 700;
  flex: 0 0 8px;
}

.rha-policy-condition .rha-bullet {
  color: #64748B;
  font-weight: 700;
  flex: 0 0 8px;
}

.rha-policy-subtext {
  margin: 6px 0 0 0;
  font-size: 11px;
  font-style: italic;
  color: #15803D;
  line-height: 1.4;
  padding-left: 14px;
}

button.rha-modal-close.rha-voucher-close:hover {
    background: transparent;
}

/* Footer buttons */
.rha-warranty-modal-footer {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.rha-modal-btn-hotline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ED1C24;
  color: #FFFFFF !important;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none !important;
  transition: background .18s;
}

.rha-modal-btn-hotline:hover {
  background: #B3121A;
}

.rha-modal-btn-order {
  display: inline-flex;
  align-items: center;
  border: 1px solid #D1D5DB;
  color: #374151 !important;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none !important;
  transition: all .18s;
}

.rha-modal-btn-order:hover {
  border-color: #9CA3AF;
  background: #F9FAFB;
}

.rha-modal-btn-close {
  background: #F3F4F6;
  color: #4B5563;
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background .18s;
}

.rha-modal-btn-close:hover {
  background: #E5E7EB;
}

/* Form in Activate Modal */
.rha-warranty-form .rha-form-group {
  margin-bottom: 14px;
}

.rha-warranty-form label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: #1F2937;
  margin-bottom: 5px;
}

.rha-warranty-form .req {
  color: #ED1C24;
}

.rha-warranty-form .rha-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.rha-warranty-form .rha-input-icon {
  position: absolute;
  left: 12px;
  color: #9CA3AF;
  font-weight: 700;
  font-size: 14px;
  pointer-events: none;
  display: flex;
  align-items: center;
}

.rha-warranty-form input {
  width: 100%;
  height: 42px;
  padding: 0 12px 0 36px;
  border: 1.4px solid #D1D5DB;
  border-radius: 8px;
  font-size: 13.5px;
  color: #111827;
  background: #FAFAFA;
  box-sizing: border-box;
  font-family: inherit;
  transition: border-color .15s, box-shadow .15s;
}

.rha-warranty-form input:focus {
  border-color: #ED1C24;
  outline: none;
  box-shadow: 0 0 0 3px rgba(237,28,36,0.12);
  background: #FFFFFF;
}

.rha-warranty-form .rha-field-hint {
  display: block;
  font-size: 11px;
  color: #6B7280;
  margin-top: 4px;
  line-height: 1.4;
}

.rha-warranty-form .rha-form-actions {
  margin-top: 16px;
  margin-bottom: 14px;
}

.rha-profile-page button.rha-btn-submit,
.rha-warranty-modal button.rha-btn-submit,
.rha-btn-submit {
  width: 100% !important;
  height: 44px !important;
  background: #ED1C24 !important;
  background-color: #ED1C24 !important;
  color: #FFFFFF !important;
  border: none !important;
  border-radius: 8px !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  letter-spacing: .03em !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  font-family: inherit !important;
  transition: background .18s !important;
}

.rha-profile-page button.rha-btn-submit:hover:not(:disabled),
.rha-warranty-modal button.rha-btn-submit:hover:not(:disabled),
.rha-btn-submit:hover:not(:disabled) {
  background: #B3121A !important;
  background-color: #B3121A !important;
  color: #FFFFFF !important;
}

.rha-btn-submit:disabled {
  opacity: .75 !important;
  cursor: not-allowed !important;
}

.rha-btn-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #FFFFFF;
  border-radius: 50%;
  animation: rha-spin .8s linear infinite;
}

@keyframes rha-spin {
  to { transform: rotate(360deg); }
}

.rha-form-notice {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 500;
  margin-bottom: 14px;
  line-height: 1.45;
}

.rha-form-notice.is-success {
  background: #DEF7EC;
  color: #03543F;
  border: 1px solid #BCF0DA;
}

.rha-form-notice.is-error {
  background: #FDE8E8;
  color: #9B1C1C;
  border: 1px solid #FBD5D5;
}

.rha-activate-info-box {
  background: #F9FAFB;
  border: 1px dashed #E5E7EB;
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.rha-info-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: #6B7280;
  line-height: 1.4;
}

.rha-info-row svg {
  color: #ED1C24;
  flex: 0 0 16px;
}

/* ============================================================
   EDIT PROFILE MODAL
   ============================================================ */
.rha-edit-profile-modal {
  display: none;
  position: fixed;
  z-index: 999999;
  inset: 0;
  background-color: rgba(16, 17, 20, 0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  overflow-y: auto;
}

.rha-edit-profile-modal.is-open {
  display: flex !important;
}

#rha-claim-orders-modal {
  z-index: 1000005 !important;
}

.rha-edit-profile-card {
  position: relative;
  width: 100%;
  max-width: 650px;
  background: #FFFFFF;
  border-radius: 20px;
  box-shadow: 0 25px 60px -15px rgba(0,0,0,0.35);
  padding: 28px 26px;
  box-sizing: border-box;
  font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #16181B;
  animation: rha-modal-pop .25s cubic-bezier(.16,1,.3,1) forwards;
  margin: auto;
}

.rha-edit-profile-card .rha-modal-close {
  position: absolute;
  top: 0px;
  right: 0px;
  /* width: 36px;
  height: 36px;
  border: 1px solid #E5E7EB; */
  /* border-radius: 50%; */
  font-size: 22px;
  line-height: 1;
  color: #6B7076;
  /* background: #F9FAFB; */
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .18s;
  z-index: 2;
  margin-right: 0px;
}

.rha-edit-profile-card .rha-modal-close:hover {
  background: #fff;
  color: #ED1C24;
  border-radius: 20px;
}

.rha-input-wrap input {
    margin-bottom: 0;
}

.rha-profile-badge-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #FFECEC;
  color: #ED1C24;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.rha-edit-profile-header h3 {
  font-size: 22px;
  font-weight: 800;
  color: #14171B;
  margin: 0 0 4px 0;
  letter-spacing: -.3px;
}

.rha-edit-profile-header .rha-modal-sub {
  font-size: 13px;
  color: #6B7076;
  line-height: 1.5;
  margin: 0 0 20px 0;
}

.rha-edit-profile-form .rha-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.rha-edit-profile-form .rha-form-group {
  margin-bottom: 14px;
}

.rha-edit-profile-form label {
  /* display: block; */
  font-size: 12.5px;
  font-weight: 600;
  color: #1F2937;
  margin-bottom: 6px;
}

.rha-edit-profile-form .req {
  color: #ED1C24;
}

.rha-edit-profile-form .rha-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.rha-edit-profile-form .rha-input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #9CA3AF;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.rha-edit-profile-form input,
.rha-edit-profile-form select.rha-select {
  width: 100% !important;
  height: 44px !important;
  padding: 0 14px 0 42px !important;
  border: 1.4px solid #D1D5DB !important;
  border-radius: 9px !important;
  font-size: 13.5px !important;
  color: #111827 !important;
  background: #FAFAFA !important;
  box-sizing: border-box !important;
  font-family: inherit !important;
  transition: border-color .15s, box-shadow .15s, background .15s !important;
}

.rha-edit-profile-form input:focus,
.rha-edit-profile-form select.rha-select:focus {
  border-color: #ED1C24 !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(237,28,36,0.12) !important;
  background: #FFFFFF !important;
}

.rha-edit-profile-form select.rha-select {
  padding-left: 14px !important;
  cursor: pointer;
}

.rha-edit-profile-form .rha-password-toggle-box {
  background: #F9FAFB;
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  padding: 12px 14px;
  margin: 10px 0 16px 0;
}

.rha-toggle-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  user-select: none;
  margin: 0;
}

.rha-toggle-label input[type="checkbox"] {
  width: 18px !important;
  height: 18px !important;
  min-height: 18px !important;
  max-height: 18px !important;
  accent-color: #ED1C24 !important;
  cursor: pointer !important;
  margin: 0 !important;
  padding: 0 !important;
  appearance: auto !important;
  -webkit-appearance: checkbox !important;
  display: inline-block !important;
  box-shadow: none !important;
  border: 1px solid #D1D5DB !important;
  flex: 0 0 18px !important;
}

.rha-password-fields .rha-input-wrap.has-toggle input {
  padding-left: 14px !important;
  padding-right: 40px !important;
}

.rha-password-fields .pw-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #9CA3AF;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rha-password-fields .pw-toggle:hover {
  color: #111827;
}

.rha-edit-profile-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 18px;
}

.rha-btn-cancel {
  background: #F3F4F6 !important;
  color: #4B5563 !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 10px 18px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: background .18s !important;
}

.rha-btn-cancel:hover {
  background: #E5E7EB !important;
  color: #1F2937 !important;
}

.rha-edit-profile-actions .rha-btn-submit {
  width: auto !important;
  padding: 10px 24px !important;
}

input#rha_profile_address {
    padding-left: 15px !important;
}

.rha-btn-connect-email {
  padding: 10px 22px; 
  background: #e11d48; 
  color: #ffffff; 
  border: none; 
  border-radius: 8px; 
  font-weight: 700; 
  font-size: 13.5px; 
  cursor: pointer; 
  display: inline-flex; 
  align-items: center; 
  gap: 6px; 
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.25);
}

#rha-btn-claim-cancel { 
  padding: 10px 18px; 
  background: #f1f5f9; 
  color: #475569; 
  border: none; 
  border-radius: 8px; 
  font-weight: 600; 
  font-size: 13.5px; 
  cursor: pointer;
}

@media (max-width: 540px) {
  .rha-edit-profile-form .rha-form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  #rha-btn-claim-cancel {
    font-size: 10.5px;
    padding: 10px 15px;
  }
  .rha-edit-profile-card {
    padding: 22px 18px;
  }
  .rha-btn-connect-email {
    font-size: 10.5px;
    padding: 10px 15px;
   }
}

/* Email Verification & Claim Orders Banner */
.rha-claim-orders-card {
  box-sizing: border-box;
  width: 100%;
}

.rha-claim-actions {
  box-sizing: border-box;
}

@media (max-width: 640px) {
  .rha-claim-orders-card {
    padding: 18px 16px !important;
  }
  .rha-claim-actions {
    width: 100%;
  }
  .rha-claim-actions button {
    flex: 1 1 100%;
    justify-content: center;
  }
}




