:root{
  --gold:#d4af37;
  --ink:#121212;
  --parchment:#f7f1e1;
  --parchment-2:#efe5c7;
  --blood:#b22222;
  --jade:#3fa47a;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
}

/* Wrapper layout giống taikhoan cũ, nhưng vẫn giữ form/logic hiện có */
.acc-modern-wrap{
  min-height:100dvh;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding:48px 16px;
  gap:18px;
}

.acc-modern-brand{
  text-align:center;
  width:100%;
  max-width:900px;
}

.acc-modern-brand .brand-title{
  margin:0;
  font-weight:800;
  letter-spacing:.5px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
  padding: 0 .1em;
  background:linear-gradient(180deg, #fff, var(--gold) 40%, #8a6d1d 80%);
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color: transparent;
  color:transparent;
  text-shadow: 0 2px 14px rgba(212,175,55,.25);
}

.acc-modern-brand .brand-sub{
  margin:6px 0 0;
  color:#e9e2c8;
  opacity:.9;
  font-size:14px;
}
/* Link quay lại trang chủ (thay cho khung xám cũ) */
.acc-back-home{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  margin: 10px auto 0;
  padding: 10px 14px;
  color:#f2e9cf;
  text-decoration:none;
  font-weight:600;
  font-size:13px;
  border:1px solid rgba(212,175,55,.28);
  border-radius: 999px;
  background: rgba(0,0,0,.25);
  backdrop-filter: blur(6px);
}

.acc-back-home:hover{
  background: rgba(212,175,55,.14);
}

.acc-back-home:active{
  transform: translateY(1px);
}

.acc-modern-card{
  width: min(1024px, 100%);
  background:
    linear-gradient(180deg, rgba(0,0,0,.20), rgba(0,0,0,.55)),
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12"><g fill="%23ffffff" fill-opacity=".04"><rect width="12" height="12"/></g></svg>');
  border:1px solid rgba(212,175,55,.28);
  box-shadow: var(--shadow);
  border-radius: 18px;
  overflow:visible;
  backdrop-filter: blur(8px);
  margin:0 auto;
}

.acc-modern-card__head{
  padding:22px 22px 10px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
}

.acc-modern-card__head .subtitle{
  margin:0;
  color:#f2e9cf;
  font-weight:600;
  letter-spacing:.3px;
  text-transform:uppercase;
  font-size:12px;
  opacity:.85;
}

.acc-modern-card__head .divider{
  height:1px;
  width:100%;
  background:linear-gradient(90deg, transparent, rgba(212,175,55,.65), transparent);
  margin:8px 0 0;
}

.acc-modern-card__body{
  padding:26px 24px 28px;
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(0,0,0,.18));
}

/* Ẩn menu/header/footer acc cũ để đồng bộ UI */
.Acc_Header,
.Acc_TOP{
  display:none !important;
}

/* Ẩn tiêu đề trùng lặp */
.acc-modern-card__head{
  display:none !important;
}

/* Tắt footer xám cũ phía dưới */
body.account-modern > div[style*="height: 123px"],
body.account-modern > div[style*="background: #727373"]{
  display:none !important;
}

/* Ẩn hẳn footer và cụm nút anchor của skin cũ trên trang acc-modern */
/* Ẩn hẳn khung xám inline cuối trang (cố tình override style inline) */
body.account-modern div[style*="height: 123px"],
body.account-modern div[style*="background: #727373"],
body.account-modern div[style*="width: 1024px"]{
  display:none !important;
}
body.account-modern .footer,
body.account-modern .Footer,
body.account-modern .anchor.open.frame {
  display: none !important;
}
/* Đặt khung cũ vào trong card mới */
#InfoAccount.Acc_Frame{
width:100% !important;
  margin:0 !important;
  padding:0 !important;
  background: transparent !important;
}

/* Gỡ background ảnh từ skin_css.css nếu có */
.Acc_Frame,
.Acc,
.Acc .left,
.Acc .right{
  background: transparent !important;
}

@media (max-width: 1100px){
  .acc-modern-card{ width:min(900px, 100%); }
}

@media (max-width: 768px){
  .acc-modern-wrap{ padding:20px 10px; }
}

/* Modern gold pill buttons for Acc (Login/Register) */
.Acc .left input.c_5[type='submit'],
.Acc .right input.c_6[type='submit']{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100% !important;
  height: 52px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.35);
  background: linear-gradient(180deg, #f0d16a 0%, #d4a82e 55%, #b88709 100%);
  box-shadow: 0 10px 22px rgba(212,175,55,.25), inset 0 1px 0 rgba(255,255,255,.35);
  color: #1b1302;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
  user-select: none;
  -webkit-appearance: none;
  appearance: none;
}

.Acc .left input.c_5[type='submit']{
  margin-top: 14px;
}
.Acc .right input.c_6[type='submit']{
  margin-top: 12px;
}

.Acc .left input.c_5[type='submit']:hover,
.Acc .right input.c_6[type='submit']:hover{
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.Acc .left input.c_5[type='submit']:active,
.Acc .right input.c_6[type='submit']:active{
  filter: brightness(.98);
  transform: translateY(0);
}

/* icon (uses existing Font Awesome already loaded in skin) */
.Acc .left input.c_5[type='submit']::before,
.Acc .right input.c_6[type='submit']::before{
  display:inline-block;
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 16px;
  line-height: 1;
  letter-spacing: 0;
  margin-right: 10px;
}

.Acc .right input.c_6[type='submit']::before{ content: "\f2f6"; }
.Acc .left input.c_5[type='submit']::before{ content: "\f234"; }
}

