:root {
    color-scheme: light;
    --pc-layout-width: 118rem;
    --bg: #f9fafb;
    --panel: #ffffff;
    --panel-soft: #f3f4f6;
    --text: #111827;
    --muted: #4b5563;
    --line: #e5e7eb;
    --line-strong: #94a3b8;
    --brand: #3b82f6;
    --brand-dark: #2563eb;
    --gold: #ffd700;
    --shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
}

html.dark {
    color-scheme: dark;
    --bg: #121212;
    --panel: #1e1e1e;
    --panel-soft: rgba(255, 255, 255, 0.05);
    --text: #f3f4f6;
    --muted: #d1d5db;
    --line: rgba(255, 255, 255, 0.1);
    --line-strong: rgba(255, 255, 255, 0.2);
    --shadow: 0 20px 50px rgba(0, 0, 0, 0.38);
}

.vip-page,
.vip-page * {
    box-sizing: border-box;
}

.vip-page {
    min-width: var(--pc-layout-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    color: var(--text);
    font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
    transition: background-color .3s ease, color .3s ease;
}

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

.vip-page button,
.vip-page input {
    font: inherit;
}

::-webkit-scrollbar {
    width: 15px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #b8b8b8;
}

html.dark ::-webkit-scrollbar-thumb {
    background: #3d3d3d;
}

.topbar {
    position: relative;
    z-index: 20;
    min-width: var(--pc-layout-width);
    background: color-mix(in srgb, var(--panel) 95%, transparent);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
}

.topbar-inner {
    width: 80rem;
    max-width: none;
    height: 4rem;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
}

.nav-left,
.nav-right,
.nav-links {
    display: flex;
    align-items: center;
}

.nav-left {
    gap: 2rem;
}

.brand {
    color: var(--brand);
    font-size: 1.5rem;
    line-height: 2rem;
    font-weight: 800;
}

.nav-links {
    gap: 1rem;
}

.nav-links a {
    color: var(--muted);
    padding: .5rem .75rem;
    border-radius: .5rem;
    font-size: .875rem;
    transition: color .2s ease, background-color .2s ease;
}

.nav-links a:hover {
    color: var(--brand);
}

.nav-links a.active {
    color: var(--text);
    background: var(--panel-soft);
    font-weight: 700;
}

.nav-right {
    gap: 1rem;
}

.search-box {
    display: flex;
    align-items: center;
    width: 18rem;
    padding: .25rem;
    border: 1px solid var(--line);
    border-radius: .75rem;
    background: #f1f3f4;
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

html.dark .search-box {
    background: #1e1e1e;
}

.search-box:focus-within {
    background: var(--panel);
    border-color: rgba(59, 130, 246, .45);
    box-shadow: 0 1px 8px rgba(59, 130, 246, .1);
}

.search-box input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    padding: .375rem .5rem .375rem .75rem;
    color: var(--muted);
    font-size: .875rem;
}

.search-box button,
.theme-toggle {
    width: 2.5rem;
    height: 2.5rem;
    border: 0;
    border-radius: .625rem;
    display: grid;
    place-items: center;
    color: var(--muted);
    background: transparent;
    cursor: pointer;
}

.search-box button:hover,
.theme-toggle:hover {
    color: var(--text);
    background: var(--panel-soft);
}

.search-box svg,
.theme-toggle svg {
    width: 1.25rem;
    height: 1.25rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.theme-toggle {
    background: var(--panel-soft);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .05);
}

html.dark .theme-toggle {
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1);
}

.theme-toggle .sun,
html.dark .theme-toggle .moon {
    display: none;
}

html.dark .theme-toggle .sun {
    display: block;
}

.login-link {
    color: var(--muted);
    font-size: .875rem;
}

.login-link:hover {
    color: var(--brand);
}

.vip-layout {
    position: relative;
    flex: 1;
    width: var(--pc-layout-width);
    min-width: var(--pc-layout-width);
    margin: 0 auto;
    padding: 1rem;
}

.side-image {
    position: absolute;
    top: 2rem;
    width: 28rem;
}

.left-image {
    left: 1rem;
}

.right-image {
    right: 1rem;
}

.side-image > div {
    padding: .5rem;
    border: 1px solid var(--line);
    border-radius: 2rem;
    background: var(--panel);
    box-shadow: 0 1px 3px rgba(15, 23, 42, .06);
}

.side-image img {
    display: block;
    width: 100%;
    height: 14.5rem;
    object-fit: cover;
    border-radius: 1.5rem;
}

.vip-center {
    width: 58rem;
    margin: 0 auto;
    max-width: none;
}

.vip-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.5rem;
}

.vip-grid.single {
    grid-template-columns: minmax(0, 30.75rem);
    justify-content: center;
}

.vip-card-wrapper {
    position: relative;
    left: 14rem;
    padding: .5rem;
    border: 1px solid var(--line-strong);
    border-radius: 3rem;
    background: var(--panel-soft);
    box-shadow: var(--shadow);
    transition: transform .3s ease;
}

.vip-grid.single .vip-card-wrapper {
    left: 0;
}

.vip-card-wrapper:hover {
    transform: translateY(-8px);
}

.vip-card {
    height: 100%;
    min-height: 29rem;
    padding: 2.5rem;
    border-radius: 2.5rem;
    background: var(--panel);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.vip-card h1 {
    margin: 0 0 2rem;
    color: var(--gold);
    font-size: 2.25rem;
    line-height: 2.5rem;
    font-weight: 900;
    text-align: center;
}

.price-row {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: 2.5rem;
}

.price-row .currency {
    color: #9ca3af;
    opacity: .35;
    font-size: 1.25rem;
    font-weight: 800;
}

.price-row strong {
    font-size: 6rem;
    line-height: 1;
    font-weight: 900;
    letter-spacing: 0;
}

.price-row .days {
    color: var(--muted);
    opacity: .4;
    font-size: .875rem;
    font-weight: 800;
    white-space: nowrap;
}

.vip-card-spacer {
    width: 100%;
    height: 3.5rem;
    border-top: 1px solid var(--line);
}

.privileges {
    width: 100%;
    padding-top: 2rem;
    margin-bottom: 2.5rem;
    border-top: 1px solid var(--line);
}

.privileges ul {
    max-width: 15rem;
    margin: 0 auto;
    padding: 0;
    list-style: none;
}

.privileges li {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    color: var(--muted);
    font-size: .875rem;
    line-height: 1.5;
    font-weight: 800;
}

.privileges span {
    color: #22c55e;
}

.privileges b {
    font-weight: 800;
}

.vip-card .privileges {
    display: block;
    border-top: 0;
}

.vip-card .privileges ul {
    display: none;
}

.vip-card .vip-card-spacer {
    display: block;
    height: 4.5rem;
    border-top: 0;
}

.primary-action {
    width: 100%;
    min-height: 4.5rem;
    border: 0;
    border-radius: 1rem;
    background: var(--brand);
    color: #fff;
    font-size: 1.125rem;
    line-height: 1.5rem;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(59, 130, 246, .25);
    transition: transform .15s ease, background-color .2s ease;
}

.primary-action:hover {
    background: var(--brand-dark);
}

.primary-action:active {
    transform: scale(.96);
}

.info-card,
.pay-card {
    position: relative;
    top: -1.5rem;
    margin-top: 2rem;
    padding: 1rem 2rem;
    border: 1px solid var(--line);
    border-radius: 1.5rem;
    background: var(--panel);
}

.info-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.info-card h2,
.pay-card h2 {
    margin: 0;
    color: var(--text);
    font-size: 1.125rem;
    line-height: 1.5rem;
    font-weight: 800;
}

.info-card p {
    margin: 0;
    color: var(--text);
    font-size: 1.125rem;
    line-height: 1.5rem;
    font-weight: 500;
}

.info-card .open-note {
    margin-top: .75rem;
    color: var(--muted);
    font-size: .875rem;
    line-height: 1.6;
    font-weight: 500;
}

.info-actions {
    display: flex;
    gap: 1rem;
}

.info-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    padding: .75rem 1.5rem;
    border: 1px solid var(--line);
    border-radius: .75rem;
    background: var(--panel-soft);
    color: var(--text);
    font-size: .875rem;
    font-weight: 800;
}

.info-actions a.blue-btn {
    border-color: #2563eb;
    background: var(--brand);
    color: #fff;
}

.pay-card {
    margin-top: .5rem;
    padding: .5rem 2rem 1.5rem;
    border-radius: 2.5rem;
    box-shadow: var(--shadow);
}

.pay-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.pay-methods {
    flex: 1 1 auto;
    width: 100%;
}

.pay-methods h2 {
    margin-bottom: 1.25rem;
}

.method-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.method {
    cursor: pointer;
}

.method input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.method span {
    height: 6rem;
    padding: .25rem;
    border: 2px solid var(--line);
    border-radius: 1rem;
    background: var(--panel-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .06);
    transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.method:hover span {
    box-shadow: 0 6px 18px rgba(15, 23, 42, .1);
}

.method.selected span {
    border-color: var(--brand);
    background: rgba(59, 130, 246, .05);
}

.method img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.pay-submit {
    flex: 0 0 12rem;
    width: 12rem;
    padding-top: 2rem;
}

.vip-copy-center {
    width: 64rem;
    max-width: none;
}

.vip-copy-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.5rem;
}

.vip-copy-card-grid.single {
    grid-template-columns: minmax(0, 30.75rem);
    justify-content: center;
}

.vip-copy-card-wrapper {
    padding: .5rem;
    border: 1px solid var(--line-strong);
    border-radius: 3rem;
    background: var(--panel-soft);
    box-shadow: var(--shadow);
}

.vip-copy-card {
    min-height: 28rem;
    padding: 2.5rem;
    border-radius: 2.5rem;
    background: var(--panel);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.vip-copy-card h1 {
    margin: 0 0 2rem;
    color: var(--gold);
    font-size: 2.25rem;
    line-height: 2.5rem;
    font-weight: 900;
    text-align: center;
}

.vip-copy-price {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: 2.875rem;
}

.vip-copy-price .currency {
    color: #9ca3af;
    opacity: .35;
    font-size: 1.25rem;
    font-weight: 800;
}

.vip-copy-price strong {
    color: var(--text);
    font-size: 6rem;
    line-height: 1;
    font-weight: 900;
    letter-spacing: 0;
}

.vip-copy-price .days {
    color: var(--muted);
    opacity: .4;
    font-size: .875rem;
    font-weight: 800;
    white-space: nowrap;
}

.vip-copy-divider {
    width: 100%;
    margin-bottom: 4.75rem;
}

.vip-page .vip-copy-action {
    width: 100%;
    min-height: 0;
    padding: 1.25rem 0;
    border: 0;
    border-radius: 1rem;
    background: var(--brand);
    color: #fff;
    font-size: 1.125rem;
    line-height: 1.75rem;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 10px 15px -3px rgba(59, 130, 246, .3), 0 4px 6px -4px rgba(59, 130, 246, .3);
    transition: all .15s ease;
}

.vip-page .vip-copy-action:hover {
    background: var(--brand-dark);
}

.vip-page .vip-copy-action:active {
    transform: scale(.96);
}

.vip-copy-info {
    min-height: 5.875rem;
    position: relative;
    top: -1.5rem;
    margin-top: 2rem;
    padding: 1rem 2rem;
    border: 1px solid var(--line);
    border-radius: 1.5rem;
    background: var(--panel);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.vip-copy-info h2,
.vip-copy-pay h2 {
    margin: 0;
    color: var(--text);
    font-size: 1.125rem;
    line-height: 1.5rem;
    font-weight: 700;
}

.vip-copy-info > div:first-child {
    transform: translateY(2px);
}

.vip-copy-info h2 {
    position: relative;
    top: -.5rem;
    font-weight: 500;
}

.vip-copy-info p {
    margin: 0;
    color: var(--text);
    font-size: 1.125rem;
    line-height: 1.5rem;
    font-weight: 500;
}

.vip-copy-info-actions {
    display: flex;
    gap: 1rem;
}

.vip-copy-info-actions a {
    min-width: 7rem;
    min-height: 3rem;
    padding: .75rem 1.5rem;
    border: 1px solid var(--line);
    border-radius: .75rem;
    background: var(--panel-soft);
    color: var(--text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .875rem;
    font-weight: 800;
}

.vip-copy-info-actions a.active {
    border-color: #2563eb;
    background: var(--brand);
    color: #fff;
}

.vip-copy-info-actions a.checking {
    opacity: .7;
    pointer-events: none;
}

.vip-copy-pay {
    position: relative;
    top: -1.5rem;
    margin-top: .5rem;
    padding: .5rem 2rem 1.5rem;
    border: 1px solid var(--line);
    border-radius: 2.5rem;
    background: var(--panel);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, .1), 0 8px 10px -6px rgba(0, 0, 0, .1);
}

.vip-copy-pay-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.vip-copy-pay-methods {
    flex: 1 1 auto;
    width: 100%;
}

.vip-copy-pay h2 {
    margin-bottom: 1.25rem;
}

.vip-copy-method-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.vip-copy-method {
    cursor: pointer;
}

.vip-copy-method input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.vip-copy-method span {
    height: 6rem;
    padding: .25rem;
    border: 2px solid #f3f4f6;
    border-radius: 1rem;
    background: var(--panel-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .06);
    transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.vip-copy-method:hover span {
    box-shadow: 0 6px 18px rgba(15, 23, 42, .1);
}

.vip-copy-method.selected span {
    border-color: var(--brand);
    background: rgba(59, 130, 246, .05);
}

.vip-copy-method input[value="alipay"]:checked + span {
    border-color: #3b82f6;
    background: rgba(59, 130, 246, .05);
}

.vip-copy-method input[value="wechat"]:checked + span {
    border-color: #22c55e;
    background: rgba(34, 197, 94, .05);
}

.vip-copy-method input[value="paypal"]:checked + span {
    border-color: #6366f1;
    background: rgba(99, 102, 241, .05);
}

.vip-copy-method input[value="card"]:checked + span {
    border-color: #a855f7;
    background: rgba(168, 85, 247, .05);
}

.vip-copy-method img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.vip-copy-pay-submit {
    flex: 0 0 12rem;
    width: 12rem;
    padding-top: 2rem;
}

.vip-page .vip-copy-pay-submit .vip-copy-action {
    padding: 1rem 0;
    box-shadow: 0 10px 15px -3px rgba(59, 130, 246, .2), 0 4px 6px -4px rgba(59, 130, 246, .2);
}

.page-footer {
    margin-top: auto;
    padding: 2rem 1rem;
    border-top: 1px solid var(--line);
    background: var(--panel);
}

.page-footer > div {
    max-width: 80rem;
    margin: 0 auto;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1.5rem;
    color: #6b7280;
    font-size: .875rem;
    font-weight: 800;
}

.page-footer span,
.page-footer time {
    color: #9ca3af;
    font-family: Consolas, "Microsoft YaHei", monospace;
}

.modal[hidden] {
    display: none;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .6);
    backdrop-filter: blur(8px);
}

.modal-panel {
    position: relative;
    width: min(100%, 28rem);
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 3rem;
    background: var(--panel);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .25);
    text-align: center;
}

.modal-panel h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 900;
}

.modal-price {
    margin: .5rem 0 2rem;
    color: var(--brand);
    font-size: 2.5rem;
    line-height: 1;
    font-weight: 900;
}

.modal-days {
    color: var(--muted);
    font-size: 1rem;
    font-weight: 800;
}

.modal-options {
    display: grid;
    gap: 1rem;
    margin-bottom: 2rem;
}

.modal-options button {
    min-height: 4rem;
    border: 2px solid var(--line);
    border-radius: 1rem;
    background: transparent;
    color: var(--text);
    font-size: 1.125rem;
    font-weight: 800;
    cursor: pointer;
}

.modal-options button:hover {
    border-color: var(--brand);
    background: rgba(59, 130, 246, .05);
}

.modal-options button.selected {
    border-color: var(--brand);
    background: rgba(59, 130, 246, .08);
}

.modal-card-tip {
    margin: -1rem 0 1.5rem;
    color: var(--muted);
    font-size: .875rem;
    line-height: 1.6;
}

.modal-card-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    margin: -1rem 0 1.5rem;
    padding: .75rem 1.25rem;
    border-radius: .75rem;
    background: var(--panel-soft);
    color: var(--brand);
    font-size: .875rem;
    font-weight: 900;
}

.modal-status {
    margin: -1rem 0 1.5rem;
    padding: .875rem 1rem;
    border-radius: .75rem;
    background: rgba(59, 130, 246, .08);
    color: var(--brand);
    font-size: .875rem;
    line-height: 1.5;
    font-weight: 800;
}

.modal-status.error {
    background: rgba(220, 38, 38, .08);
    color: #dc2626;
}

.modal-qrcode {
    margin: -1rem 0 1.5rem;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 1rem;
    background: var(--panel-soft);
}

#vipWxQrcode {
    width: 12rem;
    height: 12rem;
    margin: 0 auto;
    padding: .5rem;
    border-radius: .75rem;
    background: #fff;
    display: grid;
    place-items: center;
}

#vipWxQrcode img,
#vipWxQrcode canvas {
    width: 11rem !important;
    height: 11rem !important;
}

.modal-qrcode p {
    margin: .875rem 0 0;
    color: var(--muted);
    font-size: .875rem;
    line-height: 1.5;
    font-weight: 700;
}

.primary-action:disabled,
.card-submit:disabled {
    cursor: default;
    opacity: .68;
    transform: none;
}

.card-modal[hidden] {
    display: none;
}

.card-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-panel {
    width: min(100%, 28rem);
    padding: 2.5rem;
    border-radius: 3rem;
    overflow: hidden;
}

.modal-panel h2 {
    font-size: 1.5rem;
    line-height: 2rem;
    font-weight: 900;
}

.modal-price {
    margin: .5rem 0 2rem;
    font-size: 2.5rem;
    line-height: 1;
    font-weight: 900;
}

.modal-days {
    display: none;
}

.modal-options {
    display: grid;
    gap: 1rem;
    margin-bottom: 2rem;
}

.modal-options button {
    width: 100%;
    min-height: 4.5rem;
    padding: 1.25rem;
    border: 2px solid #f3f4f6;
    border-radius: 1rem;
    background: transparent;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    font-size: 1.125rem;
    line-height: 1.75rem;
    font-weight: 900;
    transition: border-color .2s ease, background-color .2s ease;
}

html.dark .modal-options button {
    border-color: rgba(255, 255, 255, .08);
}

.modal-options button.selected {
    border-color: var(--brand);
    background: rgba(59, 130, 246, .05);
}

.modal-options button i {
    width: 1.5rem;
    height: 1.5rem;
    border: 4px solid #d1d5db;
    border-radius: 999px;
    flex: 0 0 auto;
}

.modal-options button.selected i {
    border-color: var(--brand);
}

.modal-card-tip,
.modal-card-link {
    display: none !important;
}

.modal-panel .primary-action {
    min-height: 0;
    padding: 1.25rem 0;
    border-radius: 1rem;
    font-size: 1.25rem;
    line-height: 1.75rem;
    box-shadow: none;
}

.modal.wechat-payment .modal-panel {
    width: min(100%, 24rem);
    padding: 2rem;
    border-radius: 2rem;
}

.modal.wechat-payment .modal-price,
.modal.wechat-payment .modal-options,
.modal.wechat-payment .modal-panel .primary-action {
    display: none;
}

.modal.wechat-payment .modal-panel h2 {
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    line-height: 1.75rem;
}

.modal.wechat-payment .modal-status {
    margin: 0 0 1rem;
}

.modal.wechat-payment .modal-qrcode {
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
}

.modal.wechat-payment #vipWxQrcode {
    width: 12.5rem;
    height: 12.5rem;
    margin-bottom: 1.5rem;
    padding: .5rem;
    border: 1px solid var(--line);
    border-radius: .75rem;
    box-shadow: inset 0 2px 4px rgba(15, 23, 42, .06);
}

.modal.wechat-payment #vipWxQrcode img,
.modal.wechat-payment #vipWxQrcode canvas {
    width: 12rem !important;
    height: 12rem !important;
}

.modal.wechat-payment .modal-qrcode p {
    margin: 0;
    color: var(--muted);
    font-size: .875rem;
    line-height: 1.5;
    font-weight: 500;
}

.card-modal-panel {
    position: relative;
    width: min(100%, 24rem);
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 2rem;
    background: var(--panel);
    box-shadow: 0 25px 50px rgba(15, 23, 42, .28);
    text-align: center;
}

.card-modal-panel h2 {
    margin: 0 0 1.5rem;
    color: var(--text);
    font-size: 1.25rem;
    line-height: 1.75rem;
    font-weight: 900;
}

.card-modal-body {
    margin-bottom: 1.5rem;
}

.card-buy-link {
    width: 100%;
    min-height: 3rem;
    margin-bottom: 1rem;
    padding: .75rem 1rem;
    border: 0;
    border-radius: .75rem;
    background: #f59e0b;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    font-size: .875rem;
    line-height: 1.25rem;
    font-weight: 900;
    box-shadow: 0 4px 6px rgba(245, 158, 11, .24);
    cursor: pointer;
}

.vip-page .card-buy-link,
.vip-page .card-buy-link span {
    color: #fff;
}

.card-buy-link:hover {
    background: #d97706;
}

.card-buy-link:disabled {
    cursor: default;
    opacity: .75;
}

.card-key-input {
    width: 100%;
    min-height: 3rem;
    padding: .75rem 1rem !important;
    border: 1px solid var(--line);
    border-radius: .75rem;
    outline: 0;
    background: var(--panel-soft);
    color: var(--text);
    font-size: 1.125rem !important;
    line-height: 1.25rem;
}

.card-key-input::placeholder {
    color: #9ca3af;
    opacity: 1;
    font-size: 1.125rem !important;
    font-weight: 500;
}

.card-key-input:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 1px var(--brand);
}

.card-modal-actions {
    display: flex;
    gap: .75rem;
}

.card-modal-actions button {
    flex: 1 1 0;
    min-height: 2.75rem;
    border: 0;
    border-radius: .75rem;
    font-size: .875rem;
    line-height: 1.25rem;
    font-weight: 900;
    cursor: pointer;
}

.card-cancel {
    background: var(--panel-soft);
    color: var(--text);
}

.card-submit {
    background: var(--brand);
    color: #fff;
}

.card-submit:hover {
    background: var(--brand-dark);
}

.record-modal[hidden] {
    display: none;
}

.record-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.record-modal-panel {
    position: relative;
    width: min(100%, 58rem);
    max-height: calc(100vh - 4rem);
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 1.5rem;
    background: var(--panel);
    box-shadow: 0 30px 80px rgba(15, 23, 42, .28);
    overflow: hidden;
}

.record-user-card {
    min-height: 10.5rem;
    margin-bottom: 1.5rem;
    padding: 2rem 3rem;
    border-radius: .75rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, .08), rgba(255, 215, 0, .12));
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    text-align: center;
}

.record-avatar {
    width: 5rem;
    height: 5rem;
    border: .25rem solid rgba(255, 255, 255, .78);
    border-radius: 999px;
    background: var(--panel-soft);
    object-fit: cover;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .16);
    flex: 0 0 auto;
}

.record-avatar-empty {
    display: grid;
    place-items: center;
    color: var(--muted);
    font-size: 2rem;
    font-weight: 900;
}

.record-user-card h2 {
    margin: 0 0 .5rem;
    color: var(--text);
    font-size: 1.25rem;
    line-height: 1.75rem;
    font-weight: 900;
}

.record-user-card p {
    margin: .25rem 0 0;
    color: var(--muted);
    font-size: .9375rem;
    line-height: 1.5rem;
    font-weight: 700;
}

.record-user-card strong {
    color: var(--brand);
}

.record-modal-body {
    max-height: calc(100vh - 18rem);
    overflow-y: auto;
    padding-right: .25rem;
}

.record-item {
    padding: 1.25rem 0;
    border-bottom: 1px dashed var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.record-item:last-child {
    border-bottom: 0;
}

.record-item-main {
    min-width: 0;
}

.record-item-main h3 {
    margin: 0 0 .5rem;
    color: var(--text);
    font-size: 1.125rem;
    line-height: 1.5rem;
    font-weight: 900;
}

.record-item-main p {
    margin: 0;
    color: var(--muted);
    font-size: .875rem;
    line-height: 1.5rem;
    word-break: break-all;
}

.record-item-main p span {
    margin: 0 .5rem;
    color: #cbd5e1;
}

.record-item-main p strong {
    color: #ef4444;
    font-weight: 800;
}

.record-item-side {
    min-width: 8rem;
    text-align: right;
    flex: 0 0 auto;
}

.record-item-side strong {
    display: block;
    color: var(--text);
    font-size: 1rem;
    line-height: 1.5rem;
    font-weight: 900;
}

.record-money::before {
    content: "";
    width: .75rem;
    height: .75rem;
    margin-right: .375rem;
    border-radius: 999px;
    display: inline-block;
    vertical-align: -.0625rem;
    background: #9ca3af;
}

.record-money.paid::before {
    background: #22c55e;
}

.record-money.unpaid::before {
    background: #f59e0b;
}

.record-item-side span,
.record-item-side time {
    display: block;
    color: var(--muted);
    font-size: .8125rem;
    line-height: 1.375rem;
    font-weight: 700;
}

.record-empty {
    padding: 3rem 1rem;
    text-align: center;
}

.record-empty h3 {
    margin: 0 0 .5rem;
    color: var(--text);
    font-size: 1.25rem;
    line-height: 1.75rem;
    font-weight: 900;
}

.record-empty p {
    margin: 0;
    color: var(--muted);
    font-size: .9375rem;
    line-height: 1.5rem;
    font-weight: 700;
}

.record-empty a {
    margin-top: 1.25rem;
    min-width: 8rem;
    min-height: 3rem;
    padding: .75rem 1.5rem;
    border-radius: .75rem;
    background: var(--brand);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .875rem;
    font-weight: 900;
}
