/* ============================================================
   NRO Theme — phụ trợ cho các trang: Tài khoản / Nạp tiền / Đổi mật khẩu
   Bám sát bộ màu & kiểu của nro.css (cam #ff9933 · nâu #663300)
   ============================================================ */

:root {
    --green: #16a34a;
    --ki: #663300;
    --fire2: linear-gradient(135deg, var(--nro-red), var(--nro-dark-orange));
}

/* Ẩn/hiện */
.hidden {
    display: none !important
}

/* ---------------- Quả bóng Dragon Ball (trang trống) ---------------- */
.db-ball {
    --s: 16px;
    position: relative;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    width: var(--s);
    height: var(--s);
    border-radius: 50%;
    background: radial-gradient(circle at 34% 28%, #fffbe0 0 7%, #ffe066 17%, #ffb000 43%, #ff7a00 72%, #b84300 100%);
    box-shadow: inset -2px -3px 6px rgba(120, 40, 0, .45), 0 2px 6px rgba(102, 51, 0, .25)
}

.db-ball::after {
    content: attr(data-s);
    font-size: 9px;
    line-height: 1;
    color: #7a2c00;
    font-weight: 800
}

.db-row {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap
}

/* ---------------- Pill trạng thái ---------------- */
.pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 11px;
    border-radius: var(--pill);
    font-size: 12.5px;
    font-weight: 700;
    white-space: nowrap
}

.pill.ok {
    color: #15803d;
    background: rgba(22, 163, 74, .14)
}

.pill.wait {
    color: #b45309;
    background: rgba(217, 119, 6, .15)
}

/* ============================================================
   TRANG TÀI KHOẢN  —  thẻ nhân vật (trái) + ví/thông tin/thao tác (phải)
   ============================================================ */
.acc {
    display: grid;
    grid-template-columns: 330px minmax(0, 1fr);
    gap: 20px;
    align-items: start
}

.acc-side,
.acc-main {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-width: 0
}

/* --- Thẻ nhân vật --- */
.hero-card {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    border: 3px solid var(--nro-light-orange);
    background: linear-gradient(180deg, var(--cream-2), var(--nro-light-orange));
    box-shadow: 0 24px 50px -26px rgba(51, 26, 0, .85)
}

.hero-card .top {
    position: relative;
    padding: 26px 20px 22px;
    text-align: center;
    color: #fff;
    background: radial-gradient(260px 160px at 50% 0%, rgba(255, 153, 51, .45), transparent 70%),
        linear-gradient(160deg, var(--brown-l), var(--nro-brown) 60%, var(--brown-d))
}

.hero-card .top::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 4px;
    background: var(--fire)
}

.hero-card .race {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 4px 11px;
    border-radius: var(--pill);
    font-size: 12px;
    font-weight: 800;
    color: var(--nro-brown);
    background: var(--nro-light-orange)
}

.hero-card .race.earth {
    background: #cfe0ff;
    color: #174ea6
}

.hero-card .race.namek {
    background: #c9f2d6;
    color: #166534
}

.hero-card .race.saiyan {
    background: #ffe2b0;
    color: #9a5a00
}

.hero-card .vip {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 4px 11px;
    border-radius: var(--pill);
    font-size: 12px;
    font-weight: 800;
    color: #fff;
    background: var(--fire)
}

.hero-card .av {
    width: 132px;
    height: 132px;
    margin: 8px auto 12px;
    border-radius: 50%;
    padding: 5px;
    background: var(--nro-light-orange);
    box-shadow: 0 0 0 5px rgba(255, 204, 153, .22), 0 16px 30px -12px rgba(0, 0, 0, .65)
}

.hero-card .av img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    background: #fff;
    image-rendering: pixelated
}

.hero-card .nm {
    margin: 0;
    font-size: 30px;
    font-weight: 800;
    line-height: 1.1;
    color: #fff;
    text-shadow: 0 3px 0 rgba(51, 26, 0, .45);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

.hero-card .sub {
    margin-top: 4px;
    font-size: 13.5px;
    color: rgba(255, 236, 214, .85)
}

.hero-card .sub b {
    color: #fff
}

.hero-card .stats {
    padding: 16px 18px 6px
}

.hero-card .stat {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px dashed rgba(230, 126, 34, .5)
}

.hero-card .stat:last-child {
    border-bottom: 0
}

.hero-card .stat .ico {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #fff;
    background: var(--c)
}

.hero-card .stat .ico svg {
    width: 18px;
    height: 18px
}

.hero-card .stat .k {
    flex: 1;
    font-size: 14px;
    font-weight: 600;
    color: var(--tx-3)
}

.hero-card .stat .v {
    font-family: var(--f-head);
    font-size: 21px;
    font-weight: 800;
    color: var(--nro-brown);
    white-space: nowrap
}

.hero-card .stat.sm .v {
    font-size: 25px;
    color: #d93636
}

.hero-card .stat.sm {
    --c: var(--nro-red)
}

.hero-card .stat.pet {
    --c: #16a34a
}

.hero-card .stat.pot {
    --c: #7c3aed
}

.hero-card .stat .k small {
    display: block;
    font-size: 11.5px;
    font-weight: 500;
    color: var(--tx-3);
    opacity: .85
}

.hero-card .tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    padding: 4px 18px 18px
}

.hero-card .tag {
    padding: 4px 12px;
    border-radius: var(--pill);
    font-size: 12.5px;
    font-weight: 700;
    color: var(--nro-brown);
    background: rgba(255, 255, 255, .65);
    border: 1px solid rgba(230, 126, 34, .45)
}

.hero-card .tag.ok {
    color: #fff;
    background: #16a34a;
    border-color: #16a34a
}

.hero-card .tag.warn {
    color: #fff;
    background: #d97706;
    border-color: #d97706
}

.hero-card .tag.adm {
    color: var(--nro-light-orange);
    background: var(--kigrad);
    border-color: transparent
}

.hero-card .empty {
    padding: 18px;
    text-align: center;
    font-size: 14px;
    color: var(--tx-3)
}

.hero-card .empty b {
    display: block;
    font-family: var(--f-head);
    font-size: 18px;
    color: var(--nro-brown);
    margin-bottom: 2px
}

/* --- Ví --- */
.wallet {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 20px 22px;
    border-radius: 20px;
    color: #fff;
    background: radial-gradient(300px 160px at 100% 0%, rgba(255, 153, 51, .4), transparent 70%),
        linear-gradient(135deg, var(--brown-l), var(--nro-brown) 60%, var(--brown-d));
    border: 3px solid var(--nro-light-orange);
    box-shadow: 0 20px 40px -24px rgba(51, 26, 0, .8)
}

.wallet .ico {
    flex: 0 0 auto;
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: rgba(255, 204, 153, .16);
    color: var(--nro-light-orange)
}

.wallet .ico svg {
    width: 26px;
    height: 26px
}

.wallet .k {
    font-size: 13.5px;
    font-weight: 700;
    color: rgba(255, 236, 214, .85)
}

.wallet .v {
    font-family: var(--f-head);
    font-size: 34px;
    font-weight: 800;
    line-height: 1.1;
    color: var(--nro-light-orange);
    white-space: nowrap
}

.wallet .v small {
    font-size: 16px;
    margin-left: 3px
}

.wallet .d {
    font-size: 13px;
    color: rgba(255, 236, 214, .75)
}

.wallet .d b {
    color: #fff
}

.wallet .btn {
    margin-left: auto;
    flex: 0 0 auto
}

/* --- Thông tin tài khoản --- */
.acc-info {
    display: flex;
    flex-direction: column
}

.acc-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px 4px;
    border-bottom: 1px dashed rgba(230, 126, 34, .45)
}

.acc-row:last-child {
    border-bottom: 0
}

.acc-row .k {
    font-size: 14px;
    font-weight: 600;
    color: var(--tx-3)
}

.acc-row .v {
    font-size: 15px;
    font-weight: 700;
    color: var(--nro-brown);
    text-align: right;
    overflow-wrap: anywhere
}

.acc-row .v.on {
    color: #15803d
}

.acc-row .v.off {
    color: #b45309
}

/* --- Thao tác --- */
.acts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
    gap: 10px
}

.act {
    --c: var(--nro-orange);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .6);
    border: 1px solid rgba(230, 126, 34, .35);
    transition: transform .15s var(--ease), background-color .15s, border-color .15s, box-shadow .15s
}

.act:hover {
    transform: translateY(-3px);
    background: #fff;
    border-color: var(--c);
    box-shadow: 0 12px 22px -16px var(--c)
}

.act .ico {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    color: #fff;
    background: var(--c)
}

.act .ico svg {
    width: 20px;
    height: 20px
}

.act b {
    font-family: var(--f-head);
    font-size: 16px;
    font-weight: 800;
    color: var(--nro-brown);
    line-height: 1.2
}

.act span {
    font-size: 12.5px;
    color: var(--tx-3);
    line-height: 1.35
}

.act.pw {
    --c: #1d63c9
}

.act.rank {
    --c: #d9a400
}

.act.adm {
    --c: #7c3aed
}

.act.ctv {
    --c: #e8590c
}

.act.out {
    --c: #64748b
}

/* --- Lịch sử đăng nhập --- */
.lg-list {
    list-style: none;
    margin: 0;
    padding: 0
}

.lg-list li {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 4px 10px;
    align-items: center;
    padding: 9px 4px;
    border-bottom: 1px dashed rgba(230, 126, 34, .45);
    font-size: 13.5px
}

.lg-list li:last-child {
    border-bottom: 0
}

.lg-list .st {
    font-weight: 700;
    color: #15803d
}

.lg-list li.no .st {
    color: #b91c1c
}

.lg-list .dv {
    color: var(--tx-3);
    overflow-wrap: anywhere
}

.lg-list time {
    color: var(--tx-3);
    font-variant-numeric: tabular-nums;
    white-space: nowrap
}

.lg-empty,
.lg-note {
    margin: 6px 4px 0;
    font-size: 13px;
    color: var(--tx-3)
}

.lg-alert {
    margin: 2px 0 12px;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.5
}

.lg-alert a {
    font-weight: 700;
    text-decoration: underline;
    color: inherit
}

.lg-alert.warn {
    background: #fff7e6;
    border: 1px solid #f5b971;
    color: #7a4a00
}

.lg-alert.bad {
    background: #fdecec;
    border: 1px solid #f1a5a5;
    color: #8a1c1c
}

/* --- Nút đăng xuất nhân vật --- */
.gk {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 12px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed rgba(230, 126, 34, .45)
}

.gk-btn {
    padding: 9px 16px;
    font-size: 14px;
    color: #fff;
    background: linear-gradient(135deg, #b91c1c, #7f1d1d);
    border: 0;
    border-radius: var(--pill);
    cursor: pointer
}

.gk-btn:disabled {
    opacity: .6;
    cursor: default
}

.gk-hint {
    flex: 1 1 220px;
    font-size: 13px;
    color: var(--tx-3)
}

.gk-hint a {
    font-weight: 700;
    text-decoration: underline;
    color: inherit
}

.gk-msg {
    flex-basis: 100%;
    font-size: 13.5px;
    font-weight: 700
}

.gk-msg.ok {
    color: #15803d
}

.gk-msg.err {
    color: #b91c1c
}

/* ============================================================
   TRANG NẠP TIỀN
   ============================================================ */
.pay {
    display: flex;
    flex-direction: column;
    gap: 18px
}

.pay-hero {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 22px;
    align-items: center;
    padding: 26px 28px;
    border-radius: 22px;
    color: #fff;
    border: 3px solid var(--nro-light-orange);
    background: radial-gradient(420px 220px at 100% 0%, rgba(255, 153, 51, .35), transparent 70%),
        linear-gradient(135deg, var(--brown-l), var(--nro-brown) 55%, var(--brown-d));
    box-shadow: 0 24px 50px -24px rgba(51, 26, 0, .8)
}

.pay-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 4px 12px;
    border-radius: var(--pill);
    font-size: 12.5px;
    font-weight: 700;
    color: var(--nro-light-orange);
    background: rgba(255, 204, 153, .14);
    border: 1px solid rgba(255, 204, 153, .4)
}

.pay-badge i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 0 3px rgba(74, 222, 128, .25)
}

.pay-hero h1 {
    margin: 10px 0 6px;
    font-size: 36px;
    font-weight: 800;
    line-height: 1.05;
    color: #fff;
    text-shadow: 0 3px 0 rgba(51, 26, 0, .4)
}

.pay-hero h1 span {
    color: var(--nro-light-orange)
}

.pay-hero p {
    margin: 0;
    max-width: 460px;
    font-size: 14.5px;
    color: rgba(255, 236, 214, .88)
}

.pay-bal {
    padding: 16px 18px;
    border-radius: 16px;
    background: rgba(255, 244, 232, .12);
    border: 1px solid rgba(255, 204, 153, .35)
}

.pay-bal .k {
    font-size: 13px;
    font-weight: 700;
    color: rgba(255, 236, 214, .85)
}

.pay-bal .v {
    margin-top: 2px;
    font-family: var(--f-head);
    font-size: 34px;
    font-weight: 800;
    line-height: 1.1;
    color: var(--nro-light-orange);
    white-space: nowrap
}

.pay-bal .v small {
    font-size: 16px;
    margin-left: 3px
}

.pay-bal .u {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed rgba(255, 204, 153, .35);
    font-size: 13px;
    color: rgba(255, 236, 214, .85)
}

.pay-bal .u b {
    color: #fff
}

.pay-promo {
    padding: 12px 16px;
    border-radius: 14px;
    text-align: center;
    font-family: var(--f-head);
    font-size: 17px;
    font-weight: 800;
    color: #fff;
    background: var(--fire);
    box-shadow: 0 12px 24px -14px rgba(255, 77, 77, .95)
}

/* QR + thông tin */
.pay-grid {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 22px;
    align-items: start
}

.pay-qrbox {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid rgba(230, 126, 34, .45);
    box-shadow: 0 14px 30px -18px rgba(51, 26, 0, .7)
}

.pay-qrbox img {
    display: block;
    width: 100%;
    max-width: 228px;
    aspect-ratio: 1;
    object-fit: contain;
    border-radius: 10px
}

.pay-qrbox b {
    font-family: var(--f-head);
    font-size: 16px;
    font-weight: 800;
    color: var(--nro-brown)
}

.pay-qrbox span {
    font-size: 12.5px;
    color: var(--tx-3);
    text-align: center
}

.pay-info {
    display: flex;
    flex-direction: column;
    gap: 8px
}

.pay-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .55);
    border: 1px solid rgba(230, 126, 34, .3)
}

.pay-row .k {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--tx-3)
}

.pay-row .v {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    font-size: 15.5px;
    font-weight: 800;
    color: var(--nro-brown);
    text-align: right;
    overflow-wrap: anywhere
}

.pay-row.is-key {
    background: #fff4e8;
    border: 1.5px dashed var(--nro-red)
}

.pay-row.is-key .v {
    color: #d93636;
    font-family: ui-monospace, Consolas, monospace;
    letter-spacing: .02em
}

.pay-copy {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border: 0;
    border-radius: var(--pill);
    font-family: var(--f-head);
    font-size: 13.5px;
    font-weight: 700;
    color: #fff;
    background: var(--kigrad);
    cursor: pointer;
    transition: transform .15s, background .15s
}

.pay-copy:hover {
    transform: translateY(-1px)
}

.pay-copy svg {
    width: 14px;
    height: 14px
}

.pay-copy.ok {
    background: #16a34a
}

.pay-warn {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-top: 4px;
    padding: 13px 15px;
    border-radius: 14px;
    background: #ffe9e9;
    border: 1.5px solid var(--nro-red);
    color: #9b1c1c;
    font-size: 13.5px;
    line-height: 1.5;
    box-shadow: inset 5px 0 0 var(--nro-red)
}

.pay-warn .ic-w {
    flex: 0 0 auto;
    font-size: 22px;
    line-height: 1
}

.pay-warn b {
    color: #b91c1c
}

.pay-warn>div>b:first-child {
    display: block;
    font-family: var(--f-head);
    font-size: 16.5px;
    font-weight: 800;
    margin-bottom: 2px
}

/* Các bước */
.pay-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px
}

.pay-step {
    position: relative;
    padding: 14px 14px 14px 58px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .5);
    border: 1px solid rgba(230, 126, 34, .3)
}

.pay-step .n {
    position: absolute;
    left: 14px;
    top: 14px;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    font-family: var(--f-head);
    font-size: 16px;
    font-weight: 800;
    color: #fff;
    background: var(--fire)
}

.pay-step>b {
    display: block;
    font-family: var(--f-head);
    font-size: 16px;
    font-weight: 800;
    color: var(--nro-brown);
    margin-bottom: 2px
}

.pay-step p {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.5
}

.pay-code {
    display: inline-block;
    max-width: 100%;
    margin: 6px 0;
    padding: 4px 10px;
    border-radius: 8px;
    background: #fff;
    border: 1.5px dashed var(--nro-red);
    color: #d93636;
    font-family: ui-monospace, Consolas, monospace;
    font-size: 13.5px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle
}

/* Bảo trì / trống */
.pay-off {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 30px 16px;
    text-align: center;
    border-radius: 16px;
    background: rgba(255, 255, 255, .45);
    border: 1.5px dashed rgba(230, 126, 34, .6);
    font-size: 15px;
    color: var(--nro-brown)
}

.pay-off b {
    font-family: var(--f-head);
    font-size: 19px;
    font-weight: 800
}

.pay-off span {
    font-size: 13.5px;
    color: var(--tx-3)
}

/* Lịch sử nạp */
.pay-list {
    display: flex;
    flex-direction: column;
    gap: 8px
}

.pay-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .55);
    border: 1px solid rgba(230, 126, 34, .3)
}

.pay-item .ico {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #fff;
    background: #16a34a
}

.pay-item .ico svg {
    width: 18px;
    height: 18px
}

.pay-item.wait .ico {
    background: #d97706
}

.pay-item .amt {
    font-family: var(--f-head);
    font-size: 18px;
    font-weight: 800;
    color: var(--nro-brown);
    line-height: 1.2
}

.pay-item .tm {
    font-size: 12.5px;
    color: var(--tx-3)
}

.pay-pager {
    margin-top: 6px
}

/* ============================================================
   TRANG ĐỔI MẬT KHẨU
   ============================================================ */
.cp-wrap {
    max-width: 480px;
    margin: 12px auto 0;
    width: 100%
}

.cp-card {
    overflow: hidden
}

.cp-head {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 22px 22px 18px;
    border-bottom: 1px solid var(--line);
    background: radial-gradient(120% 160% at 0% 0%, rgba(255, 154, 26, .24), transparent 60%),
        radial-gradient(90% 140% at 100% 100%, rgba(102, 51, 0, .12), transparent 60%)
}

.cp-head::after {
    content: "";
    position: absolute;
    left: 22px;
    bottom: -1px;
    width: 64px;
    height: 2px;
    background: var(--fire)
}

.cp-badge {
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #fff;
    background: var(--fire);
    box-shadow: 0 0 0 4px rgba(255, 154, 26, .14), 0 0 22px rgba(255, 140, 0, .5)
}

.cp-badge svg {
    width: 22px;
    height: 22px
}

.cp-title {
    margin: 0;
    font-family: var(--f-head);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--nro-brown)
}

.cp-sub {
    margin: 3px 0 0;
    font-size: 12.5px;
    color: var(--tx-3)
}

.cp-sub b {
    color: var(--ki);
    font-family: var(--f-head);
    letter-spacing: .04em
}

.cp-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 22px
}

.cp-label {
    display: block;
    margin-bottom: 6px;
    font-family: var(--f-head);
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--tx-3)
}

.cp-ic {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--tx-3);
    pointer-events: none;
    transition: color .15s
}

.password-box:focus-within .cp-ic {
    color: var(--orange)
}

input.cp-input {
    width: 100%;
    padding: 12px 42px 12px 40px;
    font-size: 14.5px
}

.cp-eye {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 7px;
    background: none;
    color: var(--tx-3);
    cursor: pointer;
    transition: color .15s, background-color .15s
}

.cp-eye:hover {
    color: var(--ki);
    background: rgba(102, 51, 0, .08)
}

.cp-msg {
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    border: 1px solid
}

.cp-msg.is-ok {
    color: var(--green);
    background: rgba(22, 163, 74, .08);
    border-color: rgba(22, 163, 74, .4)
}

.cp-msg.is-err {
    color: #c81e1e;
    background: rgba(255, 61, 85, .1);
    border-color: rgba(255, 61, 85, .45)
}

.cp-submit {
    margin-top: 4px;
    padding: 13px 16px;
    font-size: 14.5px;
    letter-spacing: .1em;
    text-transform: uppercase
}

.cp-foot {
    display: flex;
    justify-content: center;
    margin-top: 14px
}

.cp-foot a {
    font-family: var(--f-head);
    font-size: 12.5px;
    letter-spacing: .06em;
    color: var(--tx-3)
}

.cp-foot a:hover {
    color: var(--ki)
}

/* ============================================================
   GÓI NẠP (.pk-*) — bảng xem gói + hộp thoại
   ============================================================ */
.pk-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 14px
}

.pk {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 18px;
    background: #fffaf4;
    border: 1px solid #f5c451;
    box-shadow: 0 16px 30px -22px rgba(51, 26, 0, .8);
    transition: transform .18s, box-shadow .18s
}

.pk:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 36px -22px rgba(51, 26, 0, .9)
}

.pk-h {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px 10px;
    padding: 14px 16px;
    color: #fff;
    background: radial-gradient(200px 120px at 100% 0%, rgba(255, 153, 51, .4), transparent 70%),
        linear-gradient(135deg, var(--brown-l), var(--nro-brown))
}

.pk-name {
    display: block;
    font-family: var(--f-head);
    font-size: 19px;
    font-weight: 800;
    line-height: 1.15;
    color: #fff
}

.pk-tags {
    grid-column: 1/-1;
    display: flex;
    flex-wrap: wrap;
    gap: 5px
}

.pk-tag {
    padding: 2px 9px;
    border-radius: var(--pill);
    font-size: 11.5px;
    font-weight: 700;
    color: var(--nro-light-orange);
    background: rgba(255, 204, 153, .14);
    border: 1px solid rgba(255, 204, 153, .4)
}

.pk-tag.ev {
    color: #fff;
    background: var(--fire);
    border-color: transparent
}

.pk-price {
    flex: none;
    padding: 6px 12px;
    border-radius: 12px;
    font-family: var(--f-head);
    font-size: 19px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    color: var(--nro-brown);
    background: linear-gradient(135deg, #ffe2b8, #ffcc80);
    box-shadow: 0 6px 14px -8px rgba(0, 0, 0, .6)
}

.pk-price small {
    font-size: 12px;
    margin-left: 1px
}

.pk-detail {
    margin: 12px 16px 0;
    font-size: 13px;
    color: var(--tx-3)
}

.pk-items {
    list-style: none;
    margin: 0;
    padding: 12px 12px 4px;
    display: flex;
    flex-direction: column;
    gap: 7px;
    flex: 1
}

.pk-items {
    padding-bottom: 12px
}

.pk-it {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 6px 8px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid rgba(230, 126, 34, .22)
}

.pk-ico {
    position: relative;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: radial-gradient(circle at 50% 35%, #fff7ea, #ffe2b8);
    box-shadow: inset 0 0 0 1px rgba(230, 126, 34, .3)
}

.pk-ico img {
    max-width: 36px;
    max-height: 36px;
    object-fit: contain
}

.pk-ico .lk {
    position: absolute;
    right: -4px;
    bottom: -4px;
    width: 17px;
    height: 17px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-size: 9px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .25)
}

.pk-nm {
    min-width: 0;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--nro-brown);
    line-height: 1.3
}

.pk-nm small {
    display: block;
    font-size: 11.5px;
    font-weight: 600;
    color: #15803d
}

.pk-qty {
    font-family: var(--f-head);
    font-size: 15px;
    font-weight: 800;
    color: #d93636;
    white-space: nowrap
}

.pk-done {
    border-color: #16a34a
}

.pk-done .pk-h {
    background: radial-gradient(200px 120px at 100% 0%, rgba(74, 222, 128, .35), transparent 70%),
        linear-gradient(135deg, #15803d, #166534)
}

/* Thẻ mở bảng gói (trên trang) */
.pk-open {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap
}

.pk-open-ic {
    display: flex;
    flex: none
}

.pk-open-ic span {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    margin-left: -10px;
    border-radius: 14px;
    background: radial-gradient(circle at 50% 35%, #fff7ea, #ffe2b8);
    border: 2px solid #fffaf4;
    box-shadow: 0 6px 14px -8px rgba(51, 26, 0, .7)
}

.pk-open-ic span:first-child {
    margin-left: 0
}

.pk-open-ic img {
    max-width: 34px;
    max-height: 34px;
    object-fit: contain
}

.pk-open-tx {
    flex: 1;
    min-width: 180px
}

.pk-open-tx b {
    display: block;
    font-family: var(--f-head);
    font-size: 18px;
    font-weight: 800;
    color: var(--nro-brown);
    line-height: 1.2
}

.pk-open-tx span {
    font-size: 13px;
    color: var(--tx-3)
}

.pk-open-btn {
    flex: none
}

/* Hộp thoại xem gói (chỉ xem) */
.pk-dlg {
    width: min(1060px, calc(100vw - 24px));
    max-width: none;
    max-height: calc(100vh - 32px);
    padding: 0;
    border: 0;
    border-radius: 24px;
    overflow: hidden;
    background: #fff4e8;
    color: inherit;
    box-shadow: 0 40px 90px -20px rgba(0, 0, 0, .7)
}

.pk-dlg[open] {
    display: flex;
    flex-direction: column;
    animation: pk-in .25s cubic-bezier(.2, 1.2, .4, 1)
}

.pk-dlg::backdrop {
    background: rgba(20, 10, 0, .7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px)
}

@keyframes pk-in {
    from {
        opacity: 0;
        transform: translateY(16px) scale(.97)
    }
}

.pk-dlg-h {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 22px;
    color: #fff;
    background: radial-gradient(320px 160px at 100% 0%, rgba(255, 153, 51, .35), transparent 70%),
        linear-gradient(135deg, var(--brown-l), var(--nro-brown) 55%, var(--brown-d))
}

.pk-dlg-h h2 {
    margin: 0;
    font-family: var(--f-head);
    font-size: 24px;
    font-weight: 800;
    color: #fff
}

.pk-dlg-h p {
    margin: 2px 0 0;
    font-size: 13px;
    color: rgba(255, 236, 214, .85)
}

.pk-x {
    flex: none;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 12px;
    font-size: 16px;
    color: #fff;
    background: rgba(255, 255, 255, .14);
    cursor: pointer
}

.pk-x:hover {
    background: rgba(255, 255, 255, .26)
}

.pk-dlg-b {
    overflow: auto;
    padding: 18px;
    overscroll-behavior: contain
}

@media (max-width: 560px) {
    .pk-dlg {
        width: 100vw;
        max-height: 92vh;
        margin: auto 0 0;
        border-radius: 22px 22px 0 0
    }

    .pk-dlg-h {
        padding: 14px 16px
    }

    .pk-dlg-h h2 {
        font-size: 21px
    }

    .pk-dlg-b {
        padding: 12px
    }

    .pk-open-btn {
        width: 100%
    }
}

/* ============================================================
   BIỂU NGỮ NẠP THÀNH CÔNG
   ============================================================ */
.pay-cele {
    position: fixed;
    inset: 0;
    z-index: 140;
    display: grid;
    place-items: center;
    padding: 16px;
    background: radial-gradient(circle at 50% 42%, rgba(22, 163, 74, .22), rgba(20, 10, 0, .84) 62%);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    animation: pc-fade .3s ease
}

.pay-cele.out {
    animation: pc-fade .3s ease reverse forwards
}

@keyframes pc-fade {
    from {
        opacity: 0
    }
}

.pay-cele canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none
}

.pc-card {
    position: relative;
    width: 100%;
    max-width: 380px;
    overflow: hidden;
    border-radius: 28px;
    text-align: center;
    background: #fffaf4;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .6), 0 50px 90px -24px rgba(0, 0, 0, .75);
    animation: pc-pop .55s cubic-bezier(.2, 1.3, .4, 1) both
}

@keyframes pc-pop {
    0% {
        opacity: 0;
        transform: scale(.7) translateY(40px)
    }

    100% {
        opacity: 1;
        transform: none
    }
}

.pc-head {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 22px;
    color: #fff;
    text-align: left;
    background: radial-gradient(240px 140px at 50% 0%, rgba(255, 255, 255, .28), transparent 70%),
        linear-gradient(160deg, #22c55e, #15803d)
}

.pc-check {
    position: relative;
    flex: none;
    width: 48px;
    height: 48px
}

.pc-htx {
    min-width: 0
}

.pc-check::before,
.pc-check::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, .55);
    animation: pc-ring 1.8s ease-out infinite
}

.pc-check::after {
    animation-delay: .9s
}

@keyframes pc-ring {
    0% {
        transform: scale(1);
        opacity: .9
    }

    100% {
        transform: scale(1.7);
        opacity: 0
    }
}

.pc-check svg {
    position: relative;
    width: 48px;
    height: 48px;
    display: block;
    filter: drop-shadow(0 6px 10px rgba(0, 60, 20, .3))
}

.pc-check .c {
    fill: #fff;
    stroke: none;
    transform-box: fill-box;
    transform-origin: center;
    animation: pc-dot .45s cubic-bezier(.2, 1.5, .4, 1) both
}

@keyframes pc-dot {
    from {
        transform: scale(0)
    }
}

.pc-check .t {
    fill: none;
    stroke: #16a34a;
    stroke-width: 7;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 100;
    stroke-dashoffset: 0;
    animation: pc-draw .45s .35s ease-out both
}

@keyframes pc-draw {
    from {
        stroke-dashoffset: 100
    }
}

.pc-title {
    margin: 0;
    font-family: var(--f-head);
    font-size: 22px;
    font-weight: 800;
    line-height: 1.15;
    color: #fff;
    text-shadow: 0 2px 0 rgba(0, 60, 20, .25)
}

.pc-sub {
    margin-top: 1px;
    font-size: 13px;
    color: rgba(255, 255, 255, .88)
}

.pc-body {
    padding: 20px 22px 18px
}

.pc-amt {
    font-family: var(--f-head);
    font-size: 44px;
    font-weight: 800;
    line-height: 1.05;
    font-variant-numeric: tabular-nums;
    background: linear-gradient(135deg, #ff4d4d, #ff6600);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent
}

.pc-amt small {
    font-size: 22px;
    margin-left: 2px
}

.pc-promo {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 8px;
    padding: 4px 12px;
    border-radius: var(--pill);
    font-size: 12.5px;
    font-weight: 800;
    color: #b45309;
    background: #fff1c7;
    border: 1px solid #f5c451
}

.pc-receipt {
    position: relative;
    margin: 18px 0 16px;
    padding: 6px 16px;
    border-radius: 16px;
    background: #fff;
    text-align: left;
    box-shadow: inset 0 0 0 1px rgba(230, 126, 34, .25)
}

.pc-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 0;
    font-size: 13.5px;
    border-bottom: 1px dashed rgba(230, 126, 34, .35)
}

.pc-row:last-child {
    border-bottom: 0
}

.pc-row>span {
    color: var(--tx-3)
}

.pc-row b {
    color: var(--nro-brown);
    font-variant-numeric: tabular-nums;
    text-align: right
}

.pc-row.total {
    margin: 6px -10px 8px;
    padding: 11px 12px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #ecfdf3, #d1fae5);
    box-shadow: inset 0 0 0 1px rgba(22, 163, 74, .25)
}

.pc-row.total>span {
    color: #15803d;
    font-weight: 700
}

.pc-row.total b {
    font-family: var(--f-head);
    font-size: 21px;
    line-height: 1;
    background: linear-gradient(135deg, #16a34a, #0d9488);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent
}

.pc-ok {
    width: 100%
}

.pc-timer {
    height: 4px;
    margin-top: 14px;
    border-radius: 4px;
    background: rgba(102, 51, 0, .1);
    overflow: hidden
}

.pc-timer i {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #22c55e, #15803d);
    transform-origin: left;
    animation: pc-timer var(--t, 8s) linear forwards
}

@keyframes pc-timer {
    to {
        transform: scaleX(0)
    }
}

@media (prefers-reduced-motion: reduce) {
    .pay-cele canvas {
        display: none
    }

    .pc-check .t,
    .pc-check .c {
        animation: none
    }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
    .acc {
        grid-template-columns: minmax(0, 1fr)
    }

    .hero-card {
        max-width: 480px;
        width: 100%;
        margin: 0 auto
    }

    .pay-hero {
        grid-template-columns: minmax(0, 1fr);
        padding: 22px
    }

    .pay-hero h1 {
        font-size: 30px
    }

    .pay-grid {
        grid-template-columns: minmax(0, 1fr)
    }

    .pay-qrbox {
        max-width: 300px;
        margin: 0 auto
    }

    .pay-steps {
        grid-template-columns: minmax(0, 1fr)
    }
}

@media (max-width: 560px) {
    .wallet {
        flex-wrap: wrap;
        padding: 18px
    }

    .wallet .v {
        font-size: 28px
    }

    .wallet .btn {
        margin-left: 0;
        width: 100%
    }

    .acts {
        grid-template-columns: 1fr 1fr
    }

    .hero-card .nm {
        font-size: 26px
    }

    .cp-head,
    .cp-form {
        padding: 18px
    }
}

@media (max-width: 520px) {
    .lg-list li {
        grid-template-columns: 1fr auto
    }

    .lg-list .dv {
        grid-column: 1/-1;
        order: 3
    }
}
