/* Account support flow inspired by E:\13, translated to the light SuperBomb palette. */
:root {
    --account-ink: #182a43;
    --account-copy: #465c78;
    --account-muted: #64748b;
    --account-line: rgba(45, 67, 98, 0.14);
    --account-line-strong: rgba(45, 67, 98, 0.22);
    --account-orange: #f05a2a;
    --account-blue: #3867e8;
    --account-surface: rgba(255, 255, 255, 0.82);
}

body.page-account {
    color: var(--account-ink);
    background:
        radial-gradient(circle at 8% 13%, rgba(240, 90, 42, 0.09), transparent 27rem),
        radial-gradient(circle at 92% 20%, rgba(56, 103, 232, 0.09), transparent 29rem),
        linear-gradient(180deg, #fffdfa 0%, #f5f8fc 52%, #edf3fa 100%);
}

body.page-account #account.account-section {
    padding: 104px 0 96px;
}

body.page-account #account > .container {
    display: none;
}

body.page-account .account-shell {
    width: min(calc(100% - 48px), 1400px);
    margin: 0 auto;
}

body.page-account .account-back-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding: 10px 16px;
    border-radius: 999px;
    color: var(--account-ink);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: inset 0 0 0 1px rgba(45, 67, 98, 0.1);
    font-size: 0.84rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

body.page-account .account-back-link svg {
    color: var(--account-orange);
}

body.page-account .account-back-link:hover,
body.page-account .account-back-link:focus-visible {
    color: var(--account-orange);
    background: rgba(255, 255, 255, 0.96);
    outline: none;
    transform: translateY(-1px);
}

.account-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.38fr);
    gap: clamp(44px, 8vw, 120px);
    align-items: end;
    overflow: hidden;
    padding: clamp(38px, 6vw, 72px);
    border: 1px solid rgba(255, 255, 255, 0.88);
    border-radius: 28px;
    background:
        radial-gradient(circle at 88% 28%, rgba(56, 103, 232, 0.12), transparent 19rem),
        linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(246, 249, 255, 0.78));
    box-shadow: 0 24px 64px rgba(31, 53, 88, 0.1);
}

.account-hero::before {
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: linear-gradient(180deg, var(--account-orange), var(--account-blue));
    content: "";
}

.account-eyebrow,
.account-section-heading .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 13px;
    color: var(--account-orange);
    font-size: 0.69rem;
    font-weight: 850;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.account-eyebrow::before,
.account-section-heading .eyebrow::before {
    width: 28px;
    height: 1px;
    background: currentColor;
    content: "";
}

.account-hero h1 {
    max-width: 850px;
    margin: 0 0 18px;
    color: var(--account-ink);
    font-size: clamp(3rem, 5.5vw, 5.4rem);
    font-weight: 900;
    line-height: 1.02;
    letter-spacing: -0.065em;
}

.account-hero-copy > p {
    max-width: 760px;
    margin: 0;
    color: var(--account-copy);
    font-size: 1rem;
    line-height: 1.85;
}

.account-hero-note {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 3px 12px;
    align-items: center;
    padding: 18px;
    border: 1px solid rgba(56, 103, 232, 0.18);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.66);
    box-shadow: 0 14px 34px rgba(31, 53, 88, 0.07);
}

.account-hero-note > .account-hero-note-icon {
    position: relative;
    grid-row: 1 / 3;
    display: block;
    width: 46px;
    height: 34px;
    border: 2px solid currentColor;
    border-radius: 6px;
    color: #8b63d8;
    background: transparent;
    font-size: 0;
    line-height: 1;
}

.account-hero-note > .account-hero-note-icon::before,
.account-hero-note > .account-hero-note-icon::after {
    position: absolute;
    top: 5px;
    width: 25px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    content: "";
}

.account-hero-note > .account-hero-note-icon::before {
    left: 2px;
    transform: rotate(34deg);
    transform-origin: left center;
}

.account-hero-note > .account-hero-note-icon::after {
    right: 2px;
    transform: rotate(-34deg);
    transform-origin: right center;
}

.account-hero-note span {
    color: var(--account-muted);
    font-size: 0.76rem;
    font-weight: 600;
}

.account-hero-note strong {
    overflow-wrap: anywhere;
    color: var(--account-ink);
    font-size: 0.94rem;
}

.account-flow-section {
    padding-top: clamp(72px, 8vw, 112px);
}

.support-intro {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: clamp(44px, 7vw, 92px);
    align-items: start;
}

.support-intro-copy h2,
.account-section-heading h2 {
    margin: 0;
    color: var(--account-ink);
    font-size: clamp(2rem, 3.4vw, 3.4rem);
    line-height: 1.12;
    letter-spacing: -0.045em;
}

.support-intro-copy p {
    max-width: 620px;
    margin: 18px 0 0;
    color: var(--account-copy);
    line-height: 1.85;
}

.support-note-grid {
    display: grid;
    gap: 12px;
}

.support-note-grid article {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 14px;
    padding: 20px;
    border: 1px solid var(--account-line);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.58);
}

.support-note-grid article > span {
    color: var(--account-orange);
    font-family: Consolas, "Cascadia Mono", monospace;
    font-size: 0.69rem;
    font-weight: 800;
}

.support-note-grid h3 {
    margin: 0 0 6px;
    color: var(--account-ink);
    font-size: 1rem;
}

.support-note-grid p {
    margin: 0;
    color: var(--account-copy);
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.75;
}

.account-section-heading,
body.page-account .account-flow .account-section-heading {
    display: block;
    align-items: end;
    justify-content: space-between;
    gap: 36px;
    margin-bottom: 28px;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
}

.account-section-heading > p {
    max-width: 470px;
    margin: 0;
    color: var(--account-copy);
    font-size: 0.88rem;
    line-height: 1.75;
}

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

body.page-account .account-flow .template-card {
    display: flex;
    min-width: 0;
    overflow: hidden;
    flex-direction: column;
    padding: 0;
    border: 1px solid var(--account-line);
    border-radius: 18px;
    background: var(--account-surface);
    box-shadow: 0 14px 34px rgba(35, 55, 84, 0.06);
}

body.page-account .account-flow .template-card::before {
    display: none;
}

.template-card-heading {
    display: flex;
    min-height: 92px;
    align-items: baseline;
    gap: 13px;
    padding: 22px;
    border-bottom: 1px solid var(--account-line);
    background: rgba(56, 103, 232, 0.025);
}

.template-card-heading > span {
    color: var(--account-orange);
    font-family: Consolas, "Cascadia Mono", monospace;
    font-size: 0.68rem;
    font-weight: 800;
}

.template-card-heading h3 {
    margin: 0;
    color: var(--account-ink);
    font-size: 1.16rem;
}

.account-template-field {
    padding: 20px 21px;
}

.account-template-field + .account-template-field {
    border-top: 1px solid var(--account-line);
}

.account-template-field > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 11px;
}

.account-template-field > div > span {
    color: #536780;
    font-size: 0.75rem;
    font-weight: 750;
}

body.page-account .account-template-field .copy-btn {
    width: auto;
    min-height: 34px;
    margin: 0;
    padding: 6px 10px;
    border: 1px solid var(--account-line);
    border-radius: 8px;
    color: #50627c;
    background: rgba(255, 255, 255, 0.76);
    box-shadow: none;
    font-size: 0.69rem;
}

body.page-account .account-template-field .copy-btn:hover,
body.page-account .account-template-field .copy-btn:focus-visible {
    color: #ffffff;
    border-color: var(--account-orange);
    background: var(--account-orange);
    outline: none;
}

.account-template-field pre {
    min-height: 56px;
    max-height: 300px;
    overflow: auto;
    margin: 0;
    padding: 15px;
    border: 1px solid rgba(56, 103, 232, 0.08);
    border-radius: 11px;
    color: #233a57;
    background: rgba(239, 244, 251, 0.82);
    font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.75;
    white-space: pre-wrap;
}

.account-template-note {
    margin: auto 0 0;
    padding: 16px 21px 20px;
    border-top: 1px solid var(--account-line);
    color: var(--account-copy);
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.7;
}

.mail-action-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 20px;
    padding: 20px 22px;
    border: 1px solid rgba(240, 90, 42, 0.2);
    border-radius: 16px;
    background: transparent;
}

body.page-account .account-flow .mail-action-panel {
    border-color: rgba(56, 103, 232, 0.18) !important;
    background: linear-gradient(100deg, rgba(235, 244, 255, 0.94), rgba(244, 241, 255, 0.9)) !important;
    box-shadow: none !important;
}

.mail-action-panel > div {
    display: flex;
    align-items: center;
    gap: 13px;
}

.mail-action-icon {
    color: var(--account-orange);
    font-size: 1.35rem;
}

.mail-action-panel span:not(.mail-action-icon) {
    display: flex;
    flex-direction: column;
}

.mail-action-panel small {
    color: var(--account-muted);
}

.mail-action-panel strong {
    color: var(--account-ink);
}

.mail-action-panel a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #c84b24;
    font-size: 0.82rem;
    font-weight: 780;
    text-decoration: none;
    background: transparent !important;
    box-shadow: none !important;
}

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

.account-notice-list article {
    display: grid;
    grid-template-columns: 28px 32px 1fr;
    gap: 12px;
    padding: 20px;
    border: 1px solid var(--account-line);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.54);
}

.account-notice-check {
    position: relative;
    display: block;
    width: 20px;
    height: 23px;
    color: #24a978;
    background: transparent;
    font-size: 0;
}

.account-notice-check::before {
    content: "";
    position: absolute;
    top: 1px;
    left: 3px;
    width: 15px;
    height: 10px;
    border: 2px solid currentColor;
    border-bottom: 0;
    border-radius: 6px 6px 0 0;
    background: transparent;
}

.account-notice-check::after {
    content: "";
    position: absolute;
    top: 5px;
    left: 4px;
    width: 12px;
    height: 12px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    border-radius: 0 0 3px 0;
    transform: rotate(45deg);
}

.account-notice-check i {
    position: absolute;
    z-index: 1;
    top: 8px;
    left: 7px;
    width: 7px;
    height: 4px;
    border-bottom: 2px solid currentColor;
    border-left: 2px solid currentColor;
    transform: rotate(-45deg);
}

.account-notice-number {
    color: var(--account-muted);
    font-family: Consolas, "Cascadia Mono", monospace;
    font-size: 0.68rem;
}

.account-notice-list h3 {
    margin: 0 0 6px;
    color: var(--account-ink);
    font-size: 1rem;
}

.account-notice-list p {
    margin: 0;
    color: var(--account-copy);
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.75;
}

@media (max-width: 980px) {
    body.page-account .account-shell {
        width: min(calc(100% - 32px), 920px);
    }

    .account-hero,
    .support-intro {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 700px) {
    body.page-account #account.account-section {
        padding-top: 86px;
    }

    body.page-account .account-shell {
        width: calc(100% - 24px);
    }

    .account-hero {
        padding: 30px 22px;
        border-radius: 22px;
    }

    .account-hero h1 {
        font-size: clamp(2.7rem, 15vw, 4rem);
    }

    .account-section-heading,
    .mail-action-panel {
        display: grid;
        grid-template-columns: 1fr;
    }

    .account-notice-list {
        grid-template-columns: 1fr;
    }
}
