.account-credit-popover,
.account-menu-popover {
    --account-accent: var(--accent, var(--home-accent, #ffa84f));
    --account-accent-soft: rgba(255, 168, 79, 0.055);
    --account-accent-line: rgba(255, 168, 79, 0.16);
    --account-surface: rgba(15, 18, 23, 0.98);
    --account-surface-raised: rgba(255, 255, 255, 0.045);
    --account-line: rgba(255, 255, 255, 0.08);
    position: fixed;
    z-index: 1320;
    display: none;
    color: var(--text-primary, #f6f7fb);
    border: 1px solid var(--account-line);
    border-radius: 8px;
    background: var(--account-surface);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(18px);
    font-size: 13px;
    font-weight: 400;
}

.account-center-overlay,
.account-center-panel {
    --account-accent: var(--accent, var(--home-accent, #ffa84f));
    --account-accent-soft: rgba(255, 168, 79, 0.055);
    --account-accent-line: rgba(255, 168, 79, 0.16);
    --account-line: rgba(255, 255, 255, 0.08);
    --account-surface-raised: rgba(255, 255, 255, 0.045);
    font-weight: 400;
}

.account-credit-popover.is-visible,
.account-menu-popover.is-visible {
    display: block;
}

.account-credit-popover {
    overflow: hidden;
}

.account-popover-head,
.account-menu-head,
.account-center-head,
.account-view-head,
.account-recharge-summary > div,
.account-plan-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.account-popover-head {
    padding: 10px 12px 8px;
}

.account-popover-head span,
.account-credit-plan-card span,
.account-credit-summary span,
.account-credit-lines dt,
.account-menu-balance span,
.account-plan-card p,
.account-plan-card span,
.account-view-head p,
.account-range-labels,
.account-recharge-main label,
.account-recharge-summary span,
.account-center-head span,
.account-form-grid label,
.account-team-list small {
    color: var(--text-muted, #8d939f);
    font-size: 11px;
}

.account-popover-head strong,
.account-menu-head strong,
.account-menu-balance strong {
    display: block;
    margin-top: 2px;
    font-size: 14px;
    font-weight: 600;
}

.account-credit-popover .account-popover-head strong {
    font-size: 16px;
}

.account-icon-action,
.account-modal-close {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border: 1px solid var(--account-line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary, #b3b7c0);
    cursor: pointer;
}

.account-icon-action svg,
.account-modal-close svg,
.account-credit-link-list svg,
.account-menu-list svg,
.account-menu-logout svg,
.account-nav-group svg,
.account-plan-card li svg {
    width: 16px;
    height: 16px;
}

.account-credit-plan-card,
.account-credit-summary,
.account-plan-metrics > div,
.account-plan-metric-dropdown,
.account-recharge-panel,
.account-reward-redeem-card,
.account-reward-records,
.account-data-table,
.account-team-list > div,
.account-help-grid button {
    border: 1px solid var(--account-line);
    border-radius: 8px;
    background: var(--account-surface-raised, rgba(255, 255, 255, 0.045));
}

.account-credit-plan-card,
.account-credit-summary {
    margin: 0 10px 8px;
    padding: 9px 10px;
}

.account-credit-plan-card {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.028)),
        rgba(255, 255, 255, 0.035);
}

.account-credit-plan-head,
.account-credit-summary-head,
.account-credit-plan-meta,
.account-credit-lines > div,
.account-credit-link-list button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.account-credit-plan-head strong,
.account-credit-summary-head strong {
    display: block;
    margin: 0 0 3px;
    font-size: 13px;
}

.account-credit-plan-head button,
.account-credit-summary-head button {
    min-height: 24px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 999px;
    padding: 0 9px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary, #f6f7fb);
    font-size: 11px;
    font-weight: 560;
    cursor: pointer;
}

.account-credit-progress {
    height: 5px;
    margin: 8px 0 7px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
}

.account-credit-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--account-accent), #ffd08a);
}

.account-credit-plan-meta {
    justify-content: flex-start;
    color: var(--text-muted, #8d939f);
    font-size: 11px;
}

.account-credit-plan-meta strong {
    color: var(--text-primary, #f6f7fb);
    font-size: 12px;
}

.account-credit-summary {
    margin-bottom: 6px;
}

.account-credit-summary-head > span {
    color: var(--text-primary, #f6f7fb);
    font-size: 12px;
    font-weight: 560;
}

.account-credit-summary-head strong {
    color: var(--account-accent);
    font-size: 15px;
}

.account-credit-lines {
    display: grid;
    gap: 5px;
    margin: 8px 0 0;
}

.account-credit-lines dd {
    margin: 0;
    color: var(--text-primary, #f6f7fb);
    font-size: 12px;
    font-weight: 560;
}

.account-credit-link-list {
    display: grid;
    gap: 2px;
    margin: 0 10px 10px;
    padding-top: 2px;
}

.account-credit-link-list button {
    display: grid;
    grid-template-columns: 16px 1fr 14px;
    align-items: center;
    justify-content: initial;
    gap: 9px;
    width: 100%;
    min-height: 32px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--text-primary, #f6f7fb);
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    text-align: left;
}

.account-credit-link-list button:hover {
    background: rgba(255, 255, 255, 0.065);
}

.account-credit-link-list button svg:first-child {
    color: var(--account-accent);
}

.account-credit-link-list button svg:last-child {
    color: var(--text-muted, #8d939f);
}

.account-menu-balance button {
    border: 0;
    background: transparent;
    color: var(--account-accent);
    font-size: 11px;
    font-weight: 560;
    cursor: pointer;
}

.account-primary-button,
.account-secondary-button {
    min-height: 32px;
    border-radius: 8px;
    padding: 0 12px;
    font-size: 12px;
    font-weight: 560;
    cursor: pointer;
}

.account-primary-button {
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.055);
    color: var(--text-primary, #f6f7fb);
    transition: border-color .15s ease, background .15s ease, color .15s ease;
}

.account-primary-button:hover {
    border-color: rgba(255, 168, 79, 0.24);
    background: rgba(255, 255, 255, 0.075);
    color: #ffd08a;
}

.account-secondary-button {
    border: 1px solid var(--account-line);
    background: rgba(255, 255, 255, 0.045);
    color: var(--text-primary, #f6f7fb);
}

.account-secondary-button:disabled {
    cursor: default;
    opacity: 0.74;
}

.account-menu-popover {
    padding: 10px;
}

.account-menu-head {
    padding: 6px;
    align-items: flex-start;
}

.top-user-avatar,
.octap-home-avatar {
    overflow: hidden;
    border: 1px solid rgba(255, 174, 68, 0.58);
    background: linear-gradient(145deg, #f4a12f 0%, #e88914 100%);
    color: #ffffff;
    box-shadow: none;
    font-size: 13px;
}

.top-user-avatar:hover,
.octap-home-avatar:hover {
    border-color: rgba(255, 185, 82, 0.72);
    background: linear-gradient(145deg, #f6a637 0%, #ec8e19 100%);
    color: #ffffff;
}

.account-avatar-input {
    position: fixed;
    left: -9999px;
    top: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.account-avatar-button {
    position: relative;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: inherit;
    cursor: pointer;
}

.account-avatar-button:focus-visible {
    outline: 2px solid rgba(255, 168, 79, 0.42);
    outline-offset: 3px;
}

.account-avatar-lg,
.account-profile-avatar,
.account-avatar-sm {
    position: relative;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    overflow: hidden;
    border: 1px solid rgba(255, 174, 68, 0.58);
    border-radius: 50%;
    background: linear-gradient(145deg, #f4a12f 0%, #e88914 100%);
    color: #ffffff;
    box-shadow: none;
    font-weight: 600;
}

.account-avatar-lg {
    width: 38px;
    height: 38px;
    font-size: 16px;
}

.top-user-avatar img,
.octap-home-avatar img,
.account-avatar-lg img,
.account-profile-avatar img,
.account-avatar-sm img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover;
}

.account-avatar-letter {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    color: #ffffff;
}

.top-user-avatar .account-avatar-letter,
.octap-home-avatar .account-avatar-letter,
.account-avatar-lg .account-avatar-letter,
.account-profile-avatar .account-avatar-letter,
.account-avatar-sm .account-avatar-letter {
    color: #ffffff;
}

.account-avatar-upload-mark {
    position: absolute;
    right: -3px;
    bottom: -3px;
    display: grid;
    place-items: center;
    width: 17px;
    height: 17px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 50%;
    background: rgba(16, 18, 22, 0.96);
    color: #ffd08a;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.34);
    opacity: 0.86;
    transition: border-color .15s ease, color .15s ease, opacity .15s ease, transform .15s ease;
}

.account-avatar-upload-mark svg {
    width: 10px;
    height: 10px;
    stroke-width: 2;
}

.account-avatar-button:hover .account-avatar-upload-mark {
    border-color: rgba(255, 168, 79, 0.42);
    color: #fff1d8;
    opacity: 1;
    transform: translateY(-1px);
}

.account-plan-badge,
.account-center-head em,
.account-plan-top span {
    border-radius: 999px;
    padding: 3px 7px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary, #f6f7fb);
    font-size: 10px;
    font-style: normal;
    font-weight: 560;
}

.account-menu-balance {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 8px;
    margin: 8px 0;
    padding: 9px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025)),
        rgba(255, 255, 255, 0.035);
}

.account-menu-list {
    display: grid;
    gap: 2px;
}

.account-menu-list button,
.account-nav-group button {
    display: grid;
    grid-template-columns: 16px 1fr 14px;
    align-items: center;
    gap: 9px;
    width: 100%;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--text-primary, #f6f7fb);
    cursor: pointer;
    text-align: left;
}

.account-menu-list button {
    min-height: 34px;
    padding: 0 7px;
    font-size: 13px;
    font-weight: 500;
}

.account-menu-list button:hover,
.account-nav-group button:hover,
.account-nav-group button.is-active {
    background: rgba(255, 255, 255, 0.065);
}

.account-menu-list button:hover svg:first-child,
.account-nav-group button:hover svg,
.account-nav-group button.is-active svg {
    color: var(--account-accent);
}

.account-menu-list button svg:last-child {
    color: var(--text-muted, #8d939f);
}

.account-menu-logout {
    display: grid;
    grid-template-columns: 16px 1fr;
    align-items: center;
    gap: 9px;
    width: 100%;
    margin-top: 8px;
    min-height: 42px;
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0 0 8px 8px;
    background: transparent;
    color: var(--text-primary, #f6f7fb);
    padding: 8px 7px 0;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
}

.account-menu-logout:hover {
    background: rgba(255, 98, 98, 0.055);
    color: rgba(255, 132, 132, 0.88);
}

.account-center-overlay {
    position: fixed;
    inset: 0;
    z-index: 1280;
    display: none;
    padding: 28px;
    background: rgba(0, 0, 0, 0.6);
    color: var(--text-primary, #f6f7fb);
    backdrop-filter: blur(10px);
}

.account-center-overlay.is-visible {
    display: grid;
    place-items: center;
}

body.account-center-open {
    overflow: hidden;
}

.account-center-panel {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    width: min(1280px, calc(100vw - 56px));
    height: min(720px, calc(100vh - 56px));
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: #0f1115;
    box-shadow: 0 26px 80px rgba(0, 0, 0, 0.58);
}

.account-center-sidebar {
    display: flex;
    flex-direction: column;
    min-width: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    background: #16181c;
    padding: 20px 10px 18px;
}

.account-nav-group > span {
    color: var(--text-muted, #8d939f);
    font-size: 12px;
    font-weight: 520;
}

.account-nav-group {
    display: grid;
    gap: 4px;
    margin-bottom: 16px;
}

.account-nav-group > span {
    margin: 0 10px 5px;
}

.account-nav-group button {
    grid-template-columns: 18px 1fr;
    min-height: 34px;
    padding: 0 9px;
    font-size: 13px;
    font-weight: 500;
}

.account-sidebar-foot {
    display: grid;
    gap: 10px;
    margin-top: auto;
    padding: 0 10px;
    color: var(--text-secondary, #b3b7c0);
    font-size: 12px;
}

.account-sidebar-foot button {
    border: 0;
    background: transparent;
    color: #ff6262;
    cursor: pointer;
    text-align: left;
}

.account-center-main {
    min-width: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.account-center-head {
    flex: 0 0 auto;
    padding: 18px 28px 10px;
}

.account-head-user {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 12px;
}

.account-head-user strong {
    display: block;
    font-size: 16px;
    font-weight: 600;
}

.account-center-head .account-modal-close {
    margin-left: auto;
}

.account-center-content {
    flex: 1;
    min-height: 0;
    overflow: auto;
    padding: 0 28px 28px;
    scrollbar-width: none;
}

.account-center-content::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.account-view-head {
    align-items: flex-end;
    margin: 2px 0 18px;
}

.account-view-head h2 {
    margin: 0;
    font-size: 21px;
    font-weight: 600;
    line-height: 1.12;
}

.account-view-head p {
    margin: 8px 0 0;
    max-width: 560px;
    line-height: 1.55;
}

.account-head-balance {
    font-size: 22px;
    color: var(--account-accent);
    font-weight: 600;
}

.account-segmented {
    display: inline-flex;
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
}

.account-segmented button,
.account-tabs button {
    min-height: 30px;
    border: 0;
    border-radius: 6px;
    padding: 0 14px;
    background: transparent;
    color: var(--text-secondary, #b3b7c0);
    cursor: pointer;
    font-size: 13px;
    font-weight: 560;
}

.account-segmented button.is-active,
.account-tabs button.is-active {
    background: rgba(255, 255, 255, 0.12);
    color: var(--text-primary, #f6f7fb);
}

.account-plan-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    align-items: start;
}

.account-plan-card {
    display: flex;
    flex-direction: column;
    gap: 13px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012)),
        #191b20;
}

.account-plan-card.is-featured {
    border-color: rgba(255, 255, 255, 0.16);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.052), rgba(255, 255, 255, 0.018)),
        #191d21;
    box-shadow: inset 0 0 0 1px rgba(255, 168, 79, 0.055);
}

.account-plan-card h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.account-plan-card p {
    min-height: 30px;
    margin: 0;
    line-height: 1.45;
}

.account-plan-price strong {
    font-size: 29px;
    font-weight: 600;
    line-height: 1;
}

.account-plan-price span {
    margin-left: 5px;
}

.account-plan-price small {
    display: block;
    margin-top: 6px;
    color: var(--text-muted, #8d939f);
    font-size: 11px;
    font-weight: 500;
    line-height: 1.35;
}

.account-plan-price small.is-placeholder {
    visibility: hidden;
}

.account-plan-tier-dropdown {
    position: relative;
    z-index: 2;
}

.account-plan-tier-dropdown[open] {
    z-index: 8;
}

.account-plan-tier-trigger {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.16);
    color: var(--text-secondary, #b3b7c0);
    padding: 0 10px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 560;
    list-style: none;
}

.account-plan-tier-trigger::-webkit-details-marker {
    display: none;
}

.account-plan-tier-trigger > span {
    flex: 1;
    min-width: 0;
}

.account-plan-tier-trigger strong,
.account-plan-tier-trigger em {
    color: var(--text-primary, #f6f7fb);
    font-style: normal;
    font-weight: 620;
}

.account-plan-tier-caret {
    width: 13px;
    height: 13px;
    color: var(--text-muted, #8d939f);
    transition: transform 0.16s ease;
}

.account-plan-tier-dropdown[open] .account-plan-tier-caret {
    transform: rotate(180deg);
}

.account-plan-metric-trigger {
    align-items: flex-start;
    min-height: auto;
    border: 0;
    border-radius: 8px;
    background: transparent;
    padding: 9px;
}

.account-plan-metric-trigger > span > span {
    display: block;
    color: var(--text-secondary, #b3b7c0);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.35;
}

.account-plan-metric-trigger strong {
    display: block;
    margin-top: 5px;
    font-size: 13px;
    font-weight: 560;
}

.account-plan-metric-trigger .account-plan-tier-caret {
    flex: 0 0 auto;
    margin-top: 9px;
}

.account-plan-metric-dropdown .account-plan-tier-menu {
    top: calc(100% + 4px);
}

.account-plan-tier-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    display: grid;
    gap: 2px;
    padding: 6px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    background: rgba(22, 23, 26, 0.98);
    box-shadow: 0 16px 28px rgba(0, 0, 0, 0.28);
}

.account-plan-tier-menu button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 32px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--text-secondary, #b3b7c0);
    padding: 0 9px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 560;
}

.account-plan-tier-menu button:hover,
.account-plan-tier-menu button.is-active {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary, #f6f7fb);
}

.account-plan-tier-menu strong {
    color: var(--text-primary, #f6f7fb);
    font-size: 12px;
    font-weight: 600;
}

.account-plan-metrics {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.account-plan-metrics > div {
    padding: 9px;
}

.account-plan-metrics strong {
    display: block;
    margin-top: 5px;
    font-size: 13px;
    font-weight: 560;
}

.account-plan-feature-list {
    display: grid;
    gap: 14px;
    margin-top: 2px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.account-plan-feature-group {
    display: grid;
    gap: 8px;
}

.account-plan-feature-group:not(:first-child) {
    padding-top: 2px;
}

.account-plan-feature-group h4 {
    margin: 0;
    color: var(--text-primary, #f6f7fb);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
}

.account-plan-feature-group.is-estimate h4 {
    color: #ffd08a;
}

.account-plan-estimate-text {
    display: grid;
    gap: 4px;
    margin: 0;
    color: var(--text-secondary, #b3b7c0);
    font-size: 12px;
    line-height: 1.4;
}

.account-plan-estimate-text span {
    display: block;
}

.account-plan-feature-group ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.account-plan-feature-group li {
    display: grid;
    grid-template-columns: 16px 1fr;
    gap: 8px;
    color: var(--text-secondary, #b3b7c0);
    font-size: 12px;
    line-height: 1.4;
}

.account-plan-feature-group li svg {
    color: #a5e371;
}

.account-plan-footnote,
.account-recharge-value-hint {
    margin: 12px 0 0;
    color: var(--text-muted, #8d939f);
    font-size: 11px;
    line-height: 1.55;
}

.account-recharge-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.9fr);
    gap: 24px;
    padding: 24px;
}

.account-recharge-main {
    min-width: 0;
}

.account-recharge-value {
    margin-top: 8px;
}

.account-recharge-value strong {
    color: var(--account-accent);
    font-size: 26px;
    font-weight: 600;
}

.account-recharge-value span {
    margin-left: 8px;
    color: var(--text-primary, #f6f7fb);
    font-weight: 560;
}

.account-range {
    width: 100%;
    height: 34px;
    margin: 8px 0 2px;
    border-radius: 999px;
    background:
        linear-gradient(90deg, var(--account-accent) 0 var(--account-range-progress, 0%), rgba(255, 255, 255, 0.24) var(--account-range-progress, 0%) 100%) center / 100% 6px no-repeat;
    cursor: pointer;
    touch-action: pan-y;
    -webkit-appearance: none;
    appearance: none;
}

.account-range:focus-visible {
    outline: 2px solid rgba(255, 168, 79, 0.34);
    outline-offset: 2px;
}

.account-range::-webkit-slider-runnable-track {
    height: 6px;
    border-radius: 999px;
    background: transparent;
}

.account-range::-webkit-slider-thumb {
    width: 15px;
    height: 15px;
    margin-top: -4.5px;
    border: 0;
    border-radius: 50%;
    background: var(--account-accent);
    box-shadow: none;
    -webkit-appearance: none;
    appearance: none;
    transition: box-shadow .15s ease, transform .15s ease;
}

.account-range:hover::-webkit-slider-thumb,
.account-range:focus-visible::-webkit-slider-thumb {
    box-shadow: none;
}

.account-range:active::-webkit-slider-thumb {
    transform: scale(1.03);
}

.account-range::-moz-range-track {
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.24);
}

.account-range::-moz-range-progress {
    height: 6px;
    border-radius: 999px;
    background: var(--account-accent);
}

.account-range::-moz-range-thumb {
    width: 15px;
    height: 15px;
    border: 0;
    border-radius: 50%;
    background: var(--account-accent);
    box-shadow: none;
    transition: box-shadow .15s ease, transform .15s ease;
}

.account-range-labels {
    display: flex;
    justify-content: space-between;
}

.account-recharge-input {
    width: 100%;
    height: 38px;
    margin-top: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.12);
    color: var(--text-primary, #f6f7fb);
    padding: 0 12px;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.55;
    letter-spacing: 0;
}

.account-preset-row {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    margin-top: 14px;
}

.account-preset-row button {
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.22);
    color: var(--text-primary, #f6f7fb);
    cursor: pointer;
    font-weight: 560;
}

.account-preset-row button.is-active {
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.085);
    color: #ffd08a;
}

.account-recharge-summary {
    display: grid;
    align-content: end;
    gap: 16px;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    padding-left: 24px;
}

.account-recharge-summary strong {
    font-size: 20px;
    font-weight: 600;
}

.account-reward-redeem-card {
    margin-bottom: 28px;
    padding: 24px;
}

.account-reward-form {
    display: grid;
    gap: 10px;
}

.account-reward-form label,
.account-reward-record-head span {
    color: var(--text-muted, #8d939f);
    font-size: 12px;
    font-weight: 500;
}

.account-reward-code-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 120px;
    gap: 20px;
}

.account-reward-code-row input {
    min-width: 0;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.12);
    color: var(--text-primary, #f6f7fb);
    padding: 0 13px;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.55;
    letter-spacing: 0;
}

.account-reward-code-row input::placeholder {
    color: var(--text-muted, #8d939f);
}

.account-reward-status {
    margin: 0;
    font-size: 12px;
    font-weight: 500;
}

.account-reward-status.is-success {
    color: #5ee5a2;
}

.account-reward-status.is-error {
    color: #ff8a8a;
}

.account-reward-records {
    padding: 18px;
}

.account-reward-record-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.account-reward-record-head h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.account-reward-empty {
    min-height: 68px;
    display: grid;
    place-items: center;
    border: 1px dashed rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: var(--text-muted, #8d939f);
    font-size: 13px;
}

.account-reward-record-list {
    display: grid;
    gap: 8px;
}

.account-reward-record-row {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr) 110px 80px;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.035);
    font-size: 12px;
}

.account-reward-record-row span {
    color: var(--text-muted, #8d939f);
}

.account-reward-record-row strong {
    min-width: 0;
    overflow: hidden;
    color: var(--text-primary, #f6f7fb);
    font-weight: 560;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-reward-record-row em {
    color: #5ee5a2;
    font-style: normal;
    font-weight: 560;
    text-align: right;
}

.account-reward-record-row b {
    color: var(--text-secondary, #b3b7c0);
    font-weight: 500;
    text-align: right;
}

.account-ledger-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 14px;
}

.account-table-section {
    min-width: 0;
}

.account-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
}

.account-data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    color: var(--text-primary, #f6f7fb);
    font-size: 13px;
}

.account-data-table th,
.account-data-table td {
    padding: 15px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    text-align: left;
    white-space: nowrap;
}

.account-data-table th {
    background: rgba(255, 255, 255, 0.055);
    color: var(--text-secondary, #b3b7c0);
    font-weight: 560;
}

.account-data-table tr:last-child td {
    border-bottom: 0;
}

.account-data-table .is-positive {
    color: #00d087;
}

.account-data-table .is-negative {
    color: var(--text-primary, #f6f7fb);
}

.account-form-layout {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 24px;
}

.account-profile-avatar {
    width: 150px;
    height: 150px;
    font-size: 64px;
}

.account-avatar-button.account-profile-avatar-button {
    width: 150px;
    height: 150px;
    align-self: start;
}

.account-avatar-button.account-profile-avatar-button .account-profile-avatar {
    width: 100%;
    height: 100%;
}

.account-avatar-button.account-profile-avatar-button .account-avatar-upload-mark {
    right: 8px;
    bottom: 8px;
    width: 30px;
    height: 30px;
}

.account-avatar-button.account-profile-avatar-button .account-avatar-upload-mark svg {
    width: 15px;
    height: 15px;
}

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

.account-form-grid label {
    display: grid;
    gap: 8px;
}

.account-form-grid .is-wide {
    grid-column: 1 / -1;
}

.account-form-grid input,
.account-form-grid textarea,
.account-form-grid select {
    min-height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary, #f6f7fb);
    padding: 0 12px;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.55;
    letter-spacing: 0;
}

.account-form-grid textarea {
    min-height: 120px;
    padding-top: 12px;
    resize: vertical;
}

.account-switch {
    width: 38px;
    height: 22px;
    border-radius: 999px;
    background: var(--account-accent);
}

.account-team-list {
    display: grid;
    gap: 10px;
}

.account-team-list > div {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 130px 120px;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
}

.account-avatar-sm {
    width: 44px;
    height: 44px;
}

.account-avatar-sm.is-muted {
    border-color: rgba(255, 255, 255, 0.11);
    background: rgba(255, 255, 255, 0.055);
    color: var(--text-secondary, #b3b7c0);
}

.account-team-list strong em {
    color: var(--account-accent);
    font-style: normal;
    font-weight: 560;
}

.account-team-list b {
    color: var(--account-accent);
    font-weight: 560;
}

.account-help-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.account-help-grid button {
    min-height: 104px;
    color: var(--text-primary, #f6f7fb);
    cursor: pointer;
    font-size: 14px;
    font-weight: 560;
}

body[data-theme="light"] .account-credit-popover,
body[data-theme="light"] .account-menu-popover,
body[data-theme="light"] .account-center-panel {
    background: #ffffff;
    color: #151922;
}

body[data-theme="light"] .account-center-sidebar {
    background: #f4f6f8;
}

body[data-theme="light"] .account-plan-card {
    background: #ffffff;
}

body[data-theme="light"] .account-data-table {
    color: #151922;
}

body[data-theme="light"] .top-user-avatar,
body[data-theme="light"] .octap-home-avatar,
body[data-theme="light"] .account-avatar-lg,
body[data-theme="light"] .account-profile-avatar,
body[data-theme="light"] .account-avatar-sm {
    border-color: rgba(217, 123, 10, 0.48);
    background: linear-gradient(145deg, #f4a12f 0%, #e88914 100%);
    color: #ffffff;
    box-shadow: none;
}

body[data-theme="light"] .top-user-avatar:hover,
body[data-theme="light"] .octap-home-avatar:hover {
    border-color: rgba(217, 123, 10, 0.58);
    background: linear-gradient(145deg, #f6a637 0%, #ec8e19 100%);
}

body[data-theme="light"] .account-avatar-upload-mark {
    border-color: rgba(18, 24, 35, 0.12);
    background: rgba(255, 255, 255, 0.96);
    color: #9a5a08;
}

@media (max-width: 1100px) {
    .account-plan-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .account-ledger-layout,
    .account-recharge-panel {
        grid-template-columns: 1fr;
    }

    .account-reward-record-row {
        grid-template-columns: 1fr;
    }

    .account-reward-record-row em,
    .account-reward-record-row b {
        text-align: left;
    }

    .account-recharge-summary {
        border-left: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        padding: 18px 0 0;
    }
}

@media (max-width: 760px) {
    .account-center-overlay {
        padding: 10px;
    }

    .account-center-panel {
        grid-template-columns: 1fr;
        width: calc(100vw - 20px);
        height: calc(100vh - 20px);
    }

    .account-center-sidebar {
        max-height: 180px;
        overflow-x: auto;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .account-center-head,
    .account-center-content {
        padding-left: 16px;
        padding-right: 16px;
    }

    .account-reward-code-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .account-view-head,
    .account-center-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .account-plan-grid,
    .account-form-layout,
    .account-form-grid,
    .account-help-grid {
        grid-template-columns: 1fr;
    }

    .account-team-list > div {
        grid-template-columns: 44px minmax(0, 1fr);
    }

    .account-credit-popover,
    .account-menu-popover {
        width: calc(100vw - 24px) !important;
        left: 12px !important;
    }
}
