:root {
    --cs-bg: #070b1a;
    --cs-panel: rgba(17, 25, 52, .92);
    --cs-line: rgba(126, 108, 255, .25);
    --cs-purple: #7c3aed;
    --cs-cyan: #18c8e8;
    --cs-text: #f8fafc;
    --cs-muted: #9da9c4;
}

body.chungsuc-standalone {
    min-height: 100vh;
    color: var(--cs-text);
    background:
        radial-gradient(circle at 10% 0%, rgba(124, 58, 237, .18), transparent 32rem),
        radial-gradient(circle at 90% 10%, rgba(6, 182, 212, .12), transparent 34rem),
        var(--cs-bg);
}

/* Khối tiêu đề dùng chung cho các trang phía người dùng. */
.chungsuc-standalone .hero--small {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(99, 102, 241, .2);
    background:
        radial-gradient(circle at 18% 30%, rgba(124, 58, 237, .2), transparent 28rem),
        radial-gradient(circle at 82% 16%, rgba(24, 200, 232, .13), transparent 26rem),
        rgba(9, 14, 32, .72);
}

.chungsuc-standalone .hero--small::after {
    content: "";
    position: absolute;
    inset: auto 8% -72px auto;
    width: 220px;
    height: 140px;
    border-radius: 50%;
    background: rgba(124, 58, 237, .12);
    filter: blur(34px);
    pointer-events: none;
}

.chungsuc-standalone .hero--small .container {
    position: relative;
    z-index: 1;
}

.chungsuc-standalone .hero__content {
    width: min(820px, 100%);
    padding: 50px 0 42px;
}

.chungsuc-standalone .hero__title {
    position: relative;
    margin: 0;
    padding-left: 22px;
    color: #fff;
    font-size: clamp(2.4rem, 4.2vw, 4.1rem);
    font-weight: 900;
    line-height: 1.14;
    letter-spacing: -.035em;
    overflow-wrap: anywhere;
}

.chungsuc-standalone .hero__title::before {
    content: "";
    position: absolute;
    top: .12em;
    bottom: .12em;
    left: 0;
    width: 6px;
    border-radius: 999px;
    background: linear-gradient(180deg, #8b5cf6, #22d3ee);
    box-shadow: 0 0 22px rgba(34, 211, 238, .4);
}

.chungsuc-standalone .hero__desc {
    max-width: 690px;
    margin: 13px 0 0 22px;
    color: #aeb9d0;
    font-size: 1.55rem;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.chungsuc-main { min-height: calc(100vh - 190px); }

.chungsuc-header {
    position: sticky;
    top: 0;
    z-index: 1200;
    border-bottom: 1px solid var(--cs-line);
    background: rgba(7, 11, 26, .9);
    backdrop-filter: blur(18px);
}

.chungsuc-header__inner {
    width: min(1480px, calc(100% - 32px));
    min-height: 90px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 22px;
}

.chungsuc-brand { display: flex; align-items: center; gap: 14px; color: #fff; text-decoration: none; flex: 0 0 auto; }
.chungsuc-brand img {
    width: 156px;
    height: 56px;
    padding: 4px 8px;
    object-fit: contain;
    border: 1px solid rgba(99, 102, 241, .3);
    border-radius: 16px;
    background: rgba(26, 35, 69, .74);
}
.chungsuc-brand span { display: grid; gap: 2px; }
.chungsuc-brand strong { font-size: 1.82rem; line-height: 1; }
.chungsuc-brand small { color: var(--cs-muted); font-size: .84rem; }

.chungsuc-nav { display: flex; align-items: center; justify-content: center; gap: 5px; margin: 0 auto; }
.chungsuc-nav a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 12px;
    color: #aeb9d0;
    font-weight: 800;
    text-decoration: none;
}
.chungsuc-nav a:hover, .chungsuc-nav a.active { color: #fff; background: rgba(124, 58, 237, .2); }
.chungsuc-nav a.active { box-shadow: inset 0 0 0 1px rgba(99, 102, 241, .35); }

.chungsuc-account { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; }
.chungsuc-account__login, .chungsuc-account__register {
    padding: 10px 14px;
    border-radius: 12px;
    color: #fff;
    font-weight: 800;
    text-decoration: none;
}
.chungsuc-account__login { border: 1px solid var(--cs-line); }
.chungsuc-account__register { background: linear-gradient(135deg, var(--cs-purple), #2563eb); }
.chungsuc-header .menu-toggle { display: none; }
.chungsuc-header .profile-dropdown__trigger { white-space: nowrap; }
.chungsuc-header .profile-dropdown__trigger .balance-value { color: #4ff0d0; }
.chungsuc-header .profile-dropdown__menu form { margin: 0; }
.chungsuc-header .profile-dropdown__item { width: 100%; }

.chungsuc-footer { border-top: 1px solid var(--cs-line); background: rgba(4, 8, 20, .86); }
.chungsuc-footer__inner { width: min(1400px, calc(100% - 32px)); margin: auto; padding: 28px 0 92px; display: flex; justify-content: space-between; gap: 24px; }
.chungsuc-footer strong { font-size: 1.25rem; }
.chungsuc-footer p { margin: 6px 0 0; color: var(--cs-muted); }
.chungsuc-footer__links { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.chungsuc-footer__links a { color: #cbd5e1; text-decoration: none; font-weight: 700; }

.chungsuc-contact {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 1250;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 1.8rem;
    background: linear-gradient(145deg, #7c3aed, #2563eb);
    box-shadow: 0 16px 34px rgba(37, 99, 235, .35);
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.chungsuc-contact > span {
    position: absolute;
    right: calc(100% + 12px);
    width: max-content;
    max-width: 180px;
    padding: 8px 11px;
    border: 1px solid rgba(124, 58, 237, .45);
    border-radius: 10px;
    color: #fff;
    font-size: .82rem;
    font-weight: 800;
    line-height: 1.2;
    background: rgba(15, 23, 42, .96);
    box-shadow: 0 10px 28px rgba(0, 0, 0, .3);
    opacity: 0;
    visibility: hidden;
    transform: translateX(6px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}
.chungsuc-contact > svg {
    width: 31px;
    height: 31px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.chungsuc-contact:hover,
.chungsuc-contact:focus-visible {
    color: #fff;
    filter: brightness(1.08);
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(37, 99, 235, .48);
}
.chungsuc-contact:hover > span,
.chungsuc-contact:focus-visible > span {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.chungsuc-closed {
    width: min(760px, calc(100% - 32px));
    margin: 80px auto;
    padding: 54px 28px;
    text-align: center;
    border: 1px solid var(--cs-line);
    border-radius: 28px;
    background: var(--cs-panel);
    box-shadow: 0 30px 90px rgba(0, 0, 0, .32);
}
.chungsuc-closed__icon { width: 90px; height: 90px; margin: 0 auto 22px; display: grid; place-items: center; border-radius: 28px; color: #fff; font-size: 2.6rem; background: linear-gradient(145deg, #7c3aed, #2563eb); }
.chungsuc-closed > span { color: #39dbf2; font-weight: 900; letter-spacing: .14em; }
.chungsuc-closed h1 { margin: 10px 0; font-size: clamp(2rem, 5vw, 3.5rem); }
.chungsuc-closed p { color: var(--cs-muted); font-size: 1.1rem; }
.chungsuc-closed__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.chungsuc-closed__actions a { padding: 12px 16px; border-radius: 12px; color: #fff; font-weight: 800; text-decoration: none; background: rgba(124, 58, 237, .22); border: 1px solid rgba(124, 58, 237, .4); }

@media (min-width: 769px) { .chungsuc-standalone .menu-mobile { display: none !important; } }

@media (max-width: 1280px) {
    .chungsuc-header__inner { width: calc(100% - 24px); gap: 14px; }
    .chungsuc-brand { gap: 10px; }
    .chungsuc-brand img { width: 132px; height: 48px; }
    .chungsuc-brand strong { font-size: 1.48rem; }
    .chungsuc-brand small { display: none; }
    .chungsuc-nav a { padding: 0 10px; }
}

@media (max-width: 1060px) {
    .chungsuc-nav a i { display: none; }
}

@media (max-width: 768px) {
    .chungsuc-header__inner { width: calc(100% - 24px); min-height: 74px; }
    .chungsuc-brand img { width: 104px; height: 40px; padding: 2px 5px; border-radius: 11px; }
    .chungsuc-brand strong { font-size: 1.25rem; }
    .chungsuc-brand small { display: none; }
    .chungsuc-nav, .chungsuc-account { display: none; }
    .chungsuc-header .menu-toggle { display: grid; place-items: center; margin-left: auto; width: 44px; height: 44px; border-radius: 12px; color: #fff; border: 1px solid var(--cs-line); background: rgba(15, 23, 42, .8); }
    .chungsuc-footer__inner { padding-bottom: 106px; flex-direction: column; }
    .chungsuc-contact { right: 12px; bottom: 82px; width: 50px; height: 50px; font-size: 1.55rem; }
    .chungsuc-contact > span { display: none; }
    .chungsuc-standalone .hero__content { padding: 34px 0 30px; }
    .chungsuc-standalone .hero__title { padding-left: 17px; font-size: clamp(2rem, 8vw, 3rem); }
    .chungsuc-standalone .hero__title::before { width: 5px; }
    .chungsuc-standalone .hero__desc { margin: 10px 0 0 17px; font-size: 1.4rem; line-height: 1.55; }
}

@media (max-width: 480px) {
    .chungsuc-header__inner { width: calc(100% - 18px); gap: 10px; }
    .chungsuc-brand { gap: 7px; min-width: 0; }
    .chungsuc-brand img { width: 96px; height: 38px; }
    .chungsuc-brand span { min-width: 0; }
    .chungsuc-brand strong { font-size: 1.12rem; white-space: nowrap; }
    .chungsuc-standalone .hero--small .container { width: calc(100% - 28px); }
}
