:root {
    --bg: #fff8ea;
    --paper: rgba(255, 252, 242, 0.94);
    --paper-strong: #fffaf0;
    --line: #e9d59e;
    --line-strong: #cf9b3a;
    --text: #4f321f;
    --muted: #8c735c;
    --gold: #f4bd37;
    --gold-dark: #b96922;
    --green: #81c45a;
    --brown: #7a3f22;
    --shadow: 0 24px 70px rgba(85, 48, 19, 0.24);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--text);
    font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
    background:
        linear-gradient(120deg, rgba(255, 248, 228, 0.72), rgba(250, 231, 199, 0.5)),
        url("../bg.jpg") center / cover fixed no-repeat;
}

button,
input {
    font: inherit;
}

.page-shell {
    width: min(1180px, calc(100% - 32px));
    min-height: 100vh;
    margin: 0 auto;
    padding: 42px 0;
    display: grid;
    grid-template-columns: minmax(310px, 0.92fr) minmax(420px, 1.08fr);
    gap: 28px;
    align-items: center;
}

.hero-panel,
.pay-panel {
    border: 1px solid rgba(218, 177, 91, 0.68);
    background: var(--paper);
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}

.hero-panel {
    min-height: 650px;
    border-radius: 28px;
    padding: 34px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    position: relative;
}

.hero-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 248, 218, 0.86)),
        url("../bg.jpg") center / cover no-repeat;
    opacity: 0.74;
    z-index: -2;
}

.hero-panel::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 48%;
    background: linear-gradient(180deg, rgba(255, 248, 226, 0), rgba(255, 248, 226, 0.96));
    z-index: -1;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    width: max-content;
    max-width: 100%;
    padding: 10px 16px 10px 10px;
    border: 1px solid rgba(226, 191, 105, 0.72);
    border-radius: 20px;
    background: rgba(255, 250, 235, 0.84);
}

.brand-mark {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: block;
    object-fit: cover;
    background: #b94f2c;
    box-shadow: inset 0 2px 0 rgba(255,255,255,.35), 0 8px 16px rgba(151,72,27,.24);
}

.brand strong,
.brand span {
    display: block;
}

.brand strong {
    font-size: 22px;
    line-height: 1.2;
}

.brand div > span {
    margin-top: 4px;
    color: var(--muted);
    font-size: 14px;
}

.hero-copy {
    padding: 24px 4px 0;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 2px 12px;
    border: 1px solid rgba(207, 155, 58, 0.48);
    border-radius: 999px;
    color: var(--gold-dark);
    background: rgba(255, 248, 225, 0.82);
    font-size: 13px;
    font-weight: 700;
}

.hero-copy h1 {
    margin: 18px 0 12px;
    max-width: 560px;
    color: #8a4b25;
    font-size: clamp(34px, 4vw, 58px);
    line-height: 1.08;
    letter-spacing: 0;
}

.hero-copy p {
    max-width: 480px;
    margin: 0;
    color: #7e634b;
    font-size: 17px;
    line-height: 1.8;
}

.notice-card {
    padding: 18px 20px;
    border: 1px solid rgba(217, 181, 103, 0.65);
    border-radius: 18px;
    background: rgba(255, 253, 242, 0.78);
}

.notice-card span {
    color: var(--gold-dark);
    font-size: 13px;
    font-weight: 800;
}

.notice-card p {
    margin: 8px 0 0;
    color: var(--muted);
    line-height: 1.65;
}

.pay-panel {
    border-radius: 24px;
    padding: 28px;
}

.panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.panel-heading h2 {
    margin: 8px 0 0;
    font-size: 30px;
    line-height: 1.2;
}

.form-section {
    padding: 18px;
    border: 1px solid rgba(225, 201, 143, 0.72);
    border-radius: 18px;
    background: rgba(255, 255, 249, 0.68);
}

.form-section + .form-section {
    margin-top: 14px;
}

.hidden {
    display: none !important;
}

.monthly-card {
    display: none !important;
}

.monthly-card.monthly-card-active:not(.hidden) {
    display: block !important;
}

.section-title {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.section-title h3 {
    margin: 0;
    font-size: 17px;
    line-height: 1.2;
}

.section-title span {
    color: var(--muted);
    font-size: 13px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.readonly-field {
    display: block;
    min-width: 0;
}

.readonly-field.wide {
    grid-column: 1 / -1;
}

.readonly-field span {
    display: block;
    margin: 0 0 6px 2px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.readonly-field input {
    width: 100%;
    height: 44px;
    border: 1px solid rgba(213, 178, 105, 0.72);
    border-radius: 12px;
    outline: none;
    padding: 0 13px;
    color: #8c4121;
    background: rgba(255, 253, 246, 0.88);
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
}

.choice-grid,
.amount-grid {
    display: grid;
    gap: 10px;
}

.choice-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.choice-grid.compact {
    grid-template-columns: repeat(auto-fit, minmax(86px, 1fr));
}

.choice-option,
.amount-option {
    min-width: 0;
    cursor: pointer;
}

.choice-option input,
.amount-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.choice-option span,
.amount-option span {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border: 1px solid rgba(206, 164, 75, 0.74);
    border-radius: 13px;
    color: #735139;
    background: linear-gradient(180deg, #fffdf4, #fff6db);
    font-weight: 800;
    transition: border-color .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease, background .18s ease;
}

.choice-option:hover span,
.amount-option:hover span {
    transform: translateY(-1px);
    border-color: var(--line-strong);
    box-shadow: 0 8px 18px rgba(174, 116, 33, 0.14);
}

.choice-option input:focus-visible + span,
.amount-option input:focus-visible + span {
    outline: 3px solid rgba(244, 189, 55, 0.38);
    outline-offset: 2px;
}

.choice-option input:checked + span,
.amount-option input:checked + span {
    border-color: #9d5b21;
    color: #35200f;
    background: linear-gradient(180deg, #ffe98f, #e59a2d);
    box-shadow: inset 0 2px 0 rgba(255,255,255,.48), 0 10px 22px rgba(183, 112, 28, 0.24);
}

.amount-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.amount-option span {
    min-height: 64px;
    flex-direction: column;
    gap: 3px;
}

.amount-option b {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 20px;
    line-height: 1.1;
}

.amount-option em {
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
}

.amount-option input:checked + span em {
    color: rgba(53, 32, 15, 0.75);
}

.state-text {
    grid-column: 1 / -1;
    min-height: 46px;
    display: grid;
    place-items: center;
    border: 1px dashed rgba(207, 155, 58, 0.55);
    border-radius: 13px;
    color: var(--muted);
    background: rgba(255, 250, 235, 0.7);
}

.pay-button {
    width: 100%;
    min-height: 58px;
    margin-top: 18px;
    border: 1px solid #934c1e;
    border-radius: 16px;
    color: #2f1d0f;
    background: linear-gradient(180deg, #ffe68b 0%, #eba23a 54%, #c86825 100%);
    box-shadow: inset 0 2px 0 rgba(255,255,255,.42), 0 12px 22px rgba(137, 74, 23, 0.24);
    cursor: pointer;
    font-size: 19px;
    font-weight: 900;
    transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
}

.pay-button:hover {
    filter: brightness(1.04);
    transform: translateY(-1px);
}

.pay-button:active {
    transform: translateY(1px);
    box-shadow: inset 0 2px 0 rgba(255,255,255,.2), 0 6px 14px rgba(137, 74, 23, 0.22);
}

.pay-button:disabled {
    cursor: wait;
    filter: grayscale(.25);
    opacity: .72;
}

.toast-mask {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(37, 24, 16, 0.54);
}

.toast-mask[hidden] {
    display: none;
}

.toast-box {
    width: min(360px, 100%);
    padding: 24px;
    border: 1px solid rgba(220, 181, 91, 0.86);
    border-radius: 20px;
    background: #fffaf0;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
    text-align: center;
}

.toast-box strong {
    display: block;
    font-size: 22px;
}

.toast-box p {
    margin: 14px 0 22px;
    color: var(--muted);
    line-height: 1.7;
}

.toast-box button {
    width: 100%;
    min-height: 46px;
    border: 0;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(180deg, #a76936, #7b3f22);
    cursor: pointer;
    font-weight: 800;
}

@media (max-width: 980px) {
    .page-shell {
        grid-template-columns: 1fr;
        align-items: start;
        padding: 24px 0;
    }

    .hero-panel {
        min-height: 300px;
    }

    .notice-card {
        display: none;
    }
}

@media (max-width: 640px) {
    body {
        background-attachment: scroll;
    }

    .page-shell {
        width: min(100% - 18px, 460px);
        padding: 10px 0 18px;
        gap: 12px;
    }

    .hero-panel {
        min-height: 210px;
        padding: 18px;
        border-radius: 20px;
    }

    .brand {
        padding: 8px 12px 8px 8px;
        border-radius: 16px;
    }

    .brand-mark {
        width: 38px;
        height: 38px;
        border-radius: 12px;
        font-size: 20px;
    }

    .brand strong {
        font-size: 18px;
    }

    .hero-copy {
        padding-top: 16px;
    }

    .hero-copy h1 {
        margin-top: 12px;
        font-size: 28px;
    }

    .hero-copy p {
        font-size: 14px;
        line-height: 1.65;
    }

    .pay-panel {
        padding: 16px;
        border-radius: 20px;
    }

    .panel-heading h2 {
        font-size: 24px;
    }

    .form-section {
        padding: 14px;
        border-radius: 16px;
    }

    .section-title {
        display: block;
    }

    .section-title span {
        display: block;
        margin-top: 6px;
    }

    .info-grid,
    .amount-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 360px) {
    .amount-grid,
    .choice-grid.compact {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   Minimal glass refresh
====================================== */
:root {
    --bg: #12323b;
    --paper: rgba(22, 52, 61, .64);
    --paper-strong: rgba(26, 61, 72, .76);
    --line: rgba(255, 255, 255, .22);
    --line-strong: rgba(255, 255, 255, .34);
    --text: #f7fbff;
    --muted: rgba(236, 247, 255, .72);
    --gold: #ffd56e;
    --gold-dark: #ffb45b;
    --green: #65e7c8;
    --brown: #ff8f6a;
    --sky: #64b7ff;
    --shadow: 0 28px 80px rgba(0, 0, 0, .26);
    --motion: 260ms cubic-bezier(.2, .8, .2, 1);
}

body {
    color: var(--text);
    background:
        linear-gradient(135deg, rgba(101, 231, 200, .24), transparent 34%),
        linear-gradient(235deg, rgba(100, 183, 255, .2), transparent 42%),
        linear-gradient(180deg, rgba(13, 42, 50, .42), rgba(10, 30, 36, .74)),
        url("../bg.jpg") center / cover fixed no-repeat;
    letter-spacing: 0;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, .055) 1px, transparent 1px),
        linear-gradient(180deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
    background-size: 58px 58px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, .72), transparent 78%);
}

.page-shell {
    gap: 24px;
}

.hero-panel,
.pay-panel,
.notice-card,
.form-section,
.toast-box {
    border-color: var(--line);
    background: var(--paper);
    -webkit-backdrop-filter: blur(26px) saturate(1.35);
    backdrop-filter: blur(26px) saturate(1.35);
    box-shadow: var(--shadow);
}

.hero-panel {
    min-height: 650px;
    border-radius: 30px;
    padding: 34px;
}

.hero-panel::before {
    background:
        linear-gradient(180deg, rgba(10, 29, 36, .08), rgba(10, 29, 36, .62)),
        url("../bg.jpg") center / cover no-repeat;
    opacity: .9;
}

.hero-panel::after {
    height: 58%;
    background: linear-gradient(180deg, rgba(10, 29, 36, 0), rgba(10, 29, 36, .72));
}

.brand {
    padding: 10px 17px 10px 10px;
    border-color: var(--line);
    border-radius: 999px;
    background: rgba(10, 29, 36, .54);
    -webkit-backdrop-filter: blur(22px) saturate(1.3);
    backdrop-filter: blur(22px) saturate(1.3);
}

.brand-mark {
    border-radius: 50%;
    box-shadow: 0 14px 30px rgba(0, 0, 0, .25);
}

.brand strong {
    color: var(--text);
    font-size: 22px;
    line-height: 1.16;
}

.brand div > span {
    color: rgba(236, 247, 255, .68);
}

.eyebrow {
    min-height: 30px;
    padding: 3px 13px;
    border-color: var(--line);
    color: var(--green);
    background: rgba(255, 255, 255, .1);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
}

.hero-copy {
    padding: 20px 0 0;
}

.hero-copy h1,
.panel-heading h2,
.section-title h3,
.toast-box strong {
    color: var(--text);
    letter-spacing: 0;
}

.hero-copy h1 {
    max-width: 520px;
    font-size: clamp(38px, 4.1vw, 58px);
    font-weight: 900;
    text-shadow: 0 18px 54px rgba(0, 0, 0, .44);
}

.hero-copy p,
.notice-card p,
.section-title span,
.readonly-field span,
.amount-option em,
.toast-box p,
.state-text {
    color: var(--muted);
}

.notice-card {
    border-radius: 22px;
    background: rgba(255, 255, 255, .1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
}

.notice-card span {
    color: var(--gold);
}

.pay-panel {
    border-radius: 28px;
    padding: 28px;
}

.panel-heading {
    margin-bottom: 20px;
}

.panel-heading h2 {
    font-size: clamp(28px, 3vw, 36px);
    font-weight: 900;
}

.form-section {
    border-radius: 20px;
    background: rgba(255, 255, 255, .105);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
}

.form-section + .form-section {
    margin-top: 13px;
}

.readonly-field input {
    height: 46px;
    border-color: rgba(255, 255, 255, .2);
    border-radius: 15px;
    color: var(--text);
    background: rgba(255, 255, 255, .12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
}

.choice-option span,
.amount-option span,
.state-text {
    border-color: rgba(255, 255, 255, .18);
    border-radius: 16px;
    color: rgba(247, 251, 255, .86);
    background: rgba(255, 255, 255, .105);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
    transition: transform var(--motion), box-shadow var(--motion), border-color var(--motion), background var(--motion), color var(--motion);
}

.choice-option:hover span,
.amount-option:hover span {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, .34);
    background: rgba(255, 255, 255, .15);
    box-shadow: 0 16px 34px rgba(0, 0, 0, .18);
}

.choice-option input:focus-visible + span,
.amount-option input:focus-visible + span {
    outline: 4px solid rgba(101, 231, 200, .16);
    outline-offset: 2px;
}

.choice-option input:checked + span,
.amount-option input:checked + span {
    border-color: rgba(255, 255, 255, .48);
    color: #071318;
    background: linear-gradient(135deg, var(--green), var(--sky));
    box-shadow: 0 18px 42px rgba(78, 188, 218, .24);
}

.amount-option input:checked + span em {
    color: rgba(7, 19, 24, .7);
}

.amount-option b {
    font-size: 21px;
}

.pay-button {
    min-height: 60px;
    border-color: rgba(255, 255, 255, .48);
    border-radius: 999px;
    color: #071318;
    background: linear-gradient(135deg, var(--green), var(--sky));
    box-shadow: 0 20px 46px rgba(78, 188, 218, .26);
    transition: transform var(--motion), box-shadow var(--motion), filter var(--motion), opacity var(--motion);
}

.pay-button:hover {
    filter: none;
    transform: translateY(-2px);
    box-shadow: 0 24px 54px rgba(78, 188, 218, .32);
}

.pay-button:active {
    transform: translateY(0);
    box-shadow: 0 14px 32px rgba(78, 188, 218, .22);
}

.toast-mask {
    background: rgba(3, 10, 13, .52);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}

.toast-box {
    background: rgba(22, 52, 61, .78);
}

.toast-box button {
    border-radius: 999px;
    color: #071318;
    background: linear-gradient(135deg, var(--green), var(--sky));
}

@media (max-width: 980px) {
    .page-shell {
        width: min(100% - 28px, 720px);
        padding: 22px 0;
    }

    .hero-panel {
        min-height: 280px;
    }
}

@media (max-width: 640px) {
    body {
        background:
            linear-gradient(180deg, rgba(13, 42, 50, .22), rgba(10, 30, 36, .78)),
            url("../bg.jpg") center / cover scroll no-repeat;
    }

    .page-shell {
        width: min(100% - 18px, 460px);
        padding: 10px 0 18px;
        gap: 12px;
    }

    .hero-panel {
        min-height: 220px;
        padding: 16px;
        border-radius: 22px;
    }

    .hero-copy h1 {
        font-size: 27px;
    }

    .hero-copy p {
        font-size: 14px;
    }

    .pay-panel {
        padding: 16px;
        border-radius: 22px;
    }

    .form-section {
        padding: 14px;
    }

    .amount-grid {
        gap: 9px;
    }

    .amount-option span {
        min-height: 58px;
    }
}

@media (min-width: 981px) {
    .pay-panel {
        padding: 24px;
    }

    .panel-heading {
        margin-bottom: 16px;
    }

    .form-section {
        padding: 15px 18px;
    }

    .form-section + .form-section {
        margin-top: 11px;
    }

    .section-title {
        margin-bottom: 11px;
    }

    .amount-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    .amount-option span {
        min-height: 54px;
    }

    .amount-option b {
        font-size: 19px;
    }

    .pay-button {
        min-height: 56px;
        margin-top: 14px;
    }
}

@media (min-width: 1200px) {
    .amount-grid {
        grid-template-columns: repeat(7, minmax(0, 1fr));
    }
}

/* ===================================
   Sunlight tuning
====================================== */
:root {
    --bg: #276b78;
    --paper: rgba(48, 92, 102, .52);
    --paper-strong: rgba(56, 106, 118, .64);
    --line: rgba(255, 255, 255, .28);
    --line-strong: rgba(255, 255, 255, .4);
    --muted: rgba(243, 251, 255, .8);
    --shadow: 0 26px 72px rgba(0, 0, 0, .24);
}

body {
    background:
        linear-gradient(135deg, rgba(101, 231, 200, .32), transparent 34%),
        linear-gradient(235deg, rgba(100, 183, 255, .3), transparent 42%),
        linear-gradient(180deg, rgba(19, 76, 88, .2), rgba(19, 76, 88, .48)),
        url("../bg.jpg") center / cover fixed no-repeat;
}

.hero-card::before {
    background:
        linear-gradient(180deg, rgba(10, 29, 36, .02), rgba(10, 29, 36, .4)),
        url("../bg.jpg") center / cover no-repeat;
    opacity: .96;
}

.hero-card::after {
    background: linear-gradient(180deg, rgba(10, 29, 36, 0), rgba(10, 29, 36, .44));
}

.logo-block,
.pay-panel,
.notice-card,
.form-section,
.toast-box {
    background: rgba(48, 92, 102, .52);
}

input,
.amount-option span,
.notice-card,
.form-section {
    background: rgba(255, 255, 255, .14);
}

.modal-backdrop {
    background: rgba(3, 10, 13, .36);
}

.toast-box {
    background: rgba(56, 106, 118, .72);
}

@media (max-width: 640px) {
  body {
    background:
            linear-gradient(180deg, rgba(13, 72, 84, .12), rgba(10, 58, 68, .5)),
            url("../bg.jpg") center / cover scroll no-repeat;
  }
}

/* ===================================
   Unified Frosted Glass
====================================== */
:root {
    --glass-blur: 32px;
    --glass-saturate: 1.58;
    --glass-frost: rgba(255, 255, 255, .18);
    --glass-frost-strong: rgba(255, 255, 255, .25);
    --glass-shadow: 0 28px 76px rgba(14, 61, 74, .22);
}

.hero-panel,
.brand,
.pay-panel,
.notice-card,
.form-section,
.toast-box {
    border: 1px solid var(--line-strong);
    background:
        linear-gradient(145deg, var(--glass-frost-strong), rgba(255, 255, 255, .08));
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
    backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
    box-shadow: var(--glass-shadow), inset 0 1px rgba(255, 255, 255, .28);
}

input,
.choice-option span,
.amount-option span,
.pay-button,
.toast-box button {
    -webkit-backdrop-filter: blur(20px) saturate(1.35);
    backdrop-filter: blur(20px) saturate(1.35);
}

/* ===================================
   Contrast tuning for glass panels
====================================== */
:root {
    --ink-strong: #062833;
    --ink: #123d48;
    --ink-soft: rgba(18, 61, 72, .76);
}

.hero-panel,
.hero-panel h1,
.hero-panel p,
.hero-panel span,
.brand,
.brand strong,
.pay-panel,
.pay-panel h2,
.pay-panel h3,
.pay-panel span,
.form-section,
.notice-card,
.toast-box {
    color: var(--ink-strong);
    text-shadow: none;
}

.hero-copy p,
.brand span,
.section-title span,
.notice-card p,
.amount-option em {
    color: var(--ink-soft);
}

input,
.choice-option span,
.amount-option span {
    color: var(--ink-strong);
    background: rgba(255, 255, 255, .38);
}

input::placeholder {
    color: rgba(6, 40, 51, .52);
}

input[readonly],
.readonly-field input {
    color: #073240 !important;
    font-weight: 850 !important;
    opacity: 1 !important;
    -webkit-text-fill-color: #073240 !important;
    text-shadow: none !important;
}

.choice-option input:checked + span,
.amount-option input:checked + span,
.pay-button {
    color: #061318;
}

.notice-card {
    background:
        linear-gradient(145deg, rgba(12, 46, 58, .54), rgba(255, 255, 255, .1));
}

.notice-card,
.notice-card p,
.notice-card span {
    color: rgba(248, 253, 255, .94);
    text-shadow: 0 1px 18px rgba(0, 0, 0, .24);
}

/* ===================================
   Lingjing unified brand icon
====================================== */
.brand-mark {
    border: 1px solid var(--line-strong);
    background: rgba(255, 255, 255, .28);
    object-fit: cover;
    box-shadow: 0 14px 30px rgba(14, 61, 74, .24), inset 0 1px rgba(255, 255, 255, .3);
}

/* ===================================
   Final typography polish
====================================== */
.brand strong,
.hero-copy h1,
.pay-panel h2,
.form-section h3 {
    color: #073240;
    font-weight: 800;
    letter-spacing: 0 !important;
    text-shadow: none;
}

.brand strong {
    font-size: 21px;
}

.brand div > span,
.hero-copy p,
.section-title span {
    color: rgba(7, 50, 64, .68);
    font-weight: 560;
    text-shadow: none;
}

/* Final payment background: use the shared cyan-gray glass scenery. */
:root {
    --pay-bg-url: url("../pay-bg-glass.png");
}

body {
    background:
        radial-gradient(circle at 18% 8%, rgba(255, 255, 255, .42), transparent 34%),
        linear-gradient(135deg, rgba(101, 231, 200, .3), transparent 34%),
        linear-gradient(235deg, rgba(100, 183, 255, .26), transparent 42%),
        linear-gradient(180deg, rgba(232, 250, 253, .3), rgba(39, 107, 120, .42)),
        var(--pay-bg-url) center / cover fixed no-repeat !important;
}

.hero-panel::before {
    background:
        linear-gradient(180deg, rgba(232, 250, 253, .12), rgba(10, 29, 36, .26)),
        var(--pay-bg-url) center / cover no-repeat !important;
    opacity: .92;
}

@media (max-width: 640px) {
    body {
        background:
            linear-gradient(180deg, rgba(232, 250, 253, .22), rgba(10, 58, 68, .44)),
            var(--pay-bg-url) center / cover scroll no-repeat !important;
    }
}

/* Payment layout redo: top bar + order console, preserving current palette. */
.pay-topbar {
    width: min(1180px, calc(100% - 32px));
    margin: 18px auto 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 14px;
    border: 1px solid var(--line-strong);
    border-radius: 22px;
    background: linear-gradient(145deg, var(--glass-frost-strong), rgba(255, 255, 255, .08));
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
    backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
    box-shadow: var(--glass-shadow), inset 0 1px rgba(255, 255, 255, .28);
}

.pay-topbar .brand {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.topbar-note {
    flex: 0 0 auto;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    color: #061318;
    background: linear-gradient(135deg, var(--green), var(--sky));
    font-weight: 850;
}

.page-shell.recharge-console {
    width: min(1180px, calc(100% - 32px));
    min-height: calc(100vh - 112px);
    padding: 14px 0 28px;
    grid-template-columns: minmax(360px, .82fr) minmax(0, 1.18fr);
    gap: 14px;
    align-items: stretch;
}

.summary-panel,
.role-card {
    border: 1px solid var(--line-strong);
    background: linear-gradient(145deg, var(--glass-frost-strong), rgba(255, 255, 255, .08));
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
    backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
    box-shadow: var(--glass-shadow), inset 0 1px rgba(255, 255, 255, .28);
}

.summary-panel {
    min-width: 0;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto auto;
    gap: 14px;
    min-height: 620px;
    padding: 24px;
    border-radius: 28px;
}

.summary-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.summary-copy h1 {
    margin: 16px 0 12px;
    max-width: 620px;
    color: #073240;
    font-size: clamp(36px, 4vw, 58px);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: 0;
    word-break: keep-all;
}

.summary-copy p {
    max-width: 620px;
    margin: 0;
    color: rgba(7, 50, 64, .68);
    font-size: 17px;
    font-weight: 650;
    line-height: 1.7;
}

.role-card {
    padding: 18px;
    border-radius: 20px;
}

.role-card .info-grid {
    grid-template-columns: 1fr;
}

.role-card .readonly-field.wide {
    grid-column: auto;
}

.recharge-console .pay-panel {
    min-width: 0;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    border-radius: 28px;
}

.recharge-console #pay_form {
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.recharge-console .form-section {
    padding: 17px;
}

.recharge-console .amount-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.recharge-console .pay-button {
    margin-top: 14px;
}

@media (max-width: 980px) {
    .pay-topbar,
    .page-shell.recharge-console {
        width: min(100% - 28px, 720px);
    }

    .page-shell.recharge-console {
        min-height: auto;
        grid-template-columns: 1fr;
        padding-top: 12px;
    }

    .summary-panel {
        min-height: 360px;
    }

    .role-card .info-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .role-card .readonly-field.wide {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    .pay-topbar {
        width: min(100% - 18px, 460px);
        margin-top: 10px;
        align-items: stretch;
        flex-direction: column;
        border-radius: 20px;
    }

    .topbar-note {
        width: 100%;
    }

    .page-shell.recharge-console {
        width: min(100% - 18px, 460px);
    }

    .summary-panel {
        min-height: 300px;
        padding: 18px;
        border-radius: 22px;
    }

    .summary-copy h1 {
        font-size: 30px;
    }

    .summary-copy p {
        font-size: 14px;
    }

    .role-card .info-grid,
    .recharge-console .amount-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Payment readability hardening. */
html,
body {
    overflow-x: hidden;
}

.pay-topbar {
    width: min(1120px, calc(100vw - 40px)) !important;
    margin: 16px auto 0 !important;
    box-sizing: border-box;
}

.page-shell.recharge-console {
    width: min(1120px, calc(100vw - 40px)) !important;
    min-height: auto;
    padding-top: 14px;
    grid-template-columns: minmax(340px, .74fr) minmax(520px, 1fr);
}

.summary-panel,
.recharge-console .pay-panel {
    background: linear-gradient(145deg, rgba(184, 231, 239, .78), rgba(122, 194, 207, .58)) !important;
}

.role-card,
.recharge-console .form-section,
.recharge-console .notice-card {
    background: linear-gradient(145deg, rgba(226, 247, 251, .58), rgba(174, 224, 233, .4)) !important;
}

.summary-copy h1,
.summary-copy p,
.summary-copy .eyebrow,
.summary-panel .section-title h3,
.summary-panel .section-title span,
.summary-panel .readonly-field span,
.summary-panel .notice-card,
.summary-panel .notice-card span,
.summary-panel .notice-card p,
.recharge-console .panel-heading h2,
.recharge-console .section-title h3,
.recharge-console .section-title span {
    color: #073240 !important;
    text-shadow: none !important;
}

.summary-copy h1 {
    max-width: 540px;
    font-size: clamp(32px, 3vw, 46px);
    line-height: 1.12;
}

.summary-copy p {
    max-width: 520px;
    font-size: 15px;
    font-weight: 760;
}

.summary-copy .eyebrow,
.recharge-console .eyebrow {
    background: rgba(236, 248, 252, .58) !important;
    border-color: rgba(222, 249, 255, .68) !important;
}

.readonly-field input {
    background: rgba(236, 248, 252, .7) !important;
    color: #073240 !important;
    -webkit-text-fill-color: #073240 !important;
}

.recharge-console .choice-option span,
.recharge-console .amount-option span,
.recharge-console .state-text {
    background: rgba(236, 248, 252, .7) !important;
    color: #073240 !important;
}

.recharge-console .choice-option input:checked + span,
.recharge-console .amount-option input:checked + span {
    background: linear-gradient(135deg, var(--green), var(--sky)) !important;
    color: #061318 !important;
}

.recharge-console .amount-option em {
    color: rgba(7, 50, 64, .7) !important;
}

.recharge-console .amount-option input:checked + span em {
    color: rgba(6, 19, 24, .72) !important;
}

@media (max-width: 980px) {
    .pay-topbar,
    .page-shell.recharge-console {
        width: min(720px, calc(100vw - 28px)) !important;
    }

    .page-shell.recharge-console {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .pay-topbar,
    .page-shell.recharge-console {
        width: min(460px, calc(100vw - 18px)) !important;
    }
}
