:root { --discord-brand: #5865f2; --discord-brand-strong: #4752c4; --discord-ink: #111214; --discord-panel: #f2f3f5; }
.discord-flow-page { min-height: calc(100vh - 74px); min-height: calc(100dvh - 74px); background: radial-gradient(circle at 78% 18%, rgb(88 101 242 / 16%), transparent 34%), linear-gradient(145deg, #f8f9ff, #fff 56%); }
.discord-flow-section { position: relative; display: grid; min-height: inherit; place-items: center; padding: 48px 0 64px; overflow: hidden; }
.discord-flow-section::before, .discord-flow-section::after { content: ''; position: absolute; border: 1px solid rgb(88 101 242 / 15%); border-radius: 50%; pointer-events: none; }
.discord-flow-section::before { width: 420px; height: 420px; top: -250px; right: -100px; }
.discord-flow-section::after { width: 280px; height: 280px; bottom: -190px; left: -70px; }
.discord-flow-card { position: relative; z-index: 1; width: min(100%, 860px); display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(310px, .95fr); overflow: hidden; border: 1px solid color-mix(in srgb, var(--discord-brand) 16%, var(--alpha-border)); border-radius: 26px; background: var(--alpha-surface); box-shadow: 0 30px 90px rgb(35 39 83 / 16%); animation: discord-card-in .72s cubic-bezier(.16, 1, .3, 1) both; }
.discord-flow-copy { padding: 48px; background: linear-gradient(150deg, #24262b 0, #17181c 72%); color: white; }
.discord-flow-copy__back { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 54px; color: rgb(255 255 255 / 64%); font-size: .72rem; font-weight: 750; transition: color .2s ease, transform .2s ease; }
.discord-flow-copy__back:hover { color: white; transform: translateX(-3px); }
.discord-flow-logo { position: relative; display: grid; width: 64px; height: 64px; place-items: center; margin-bottom: 23px; border-radius: 21px; background: var(--discord-brand); box-shadow: 0 18px 42px rgb(88 101 242 / 35%); }
.discord-flow-logo iconify-icon { font-size: 30px; }
.discord-flow-logo::after { content: ''; position: absolute; inset: -6px; border: 1px solid rgb(255 255 255 / 18%); border-radius: 25px; animation: discord-logo-pulse 2.8s ease-in-out infinite; }
.discord-flow-copy .eyebrow { color: #aeb5ff; }
.discord-flow-copy h1 { max-width: 11ch; margin: 7px 0 14px; color: white; font-size: clamp(2rem, 4vw, 3.3rem); line-height: .98; letter-spacing: -.055em; }
.discord-flow-copy > p:last-child { max-width: 43ch; margin: 0; color: rgb(255 255 255 / 66%); font-size: .84rem; line-height: 1.65; }
.discord-flow-list { display: grid; gap: 9px; margin: 24px 0 0; padding: 0; list-style: none; color: rgb(255 255 255 / 76%); font-size: .73rem; }
.discord-flow-list li { display: flex; align-items: center; gap: 8px; }
.discord-flow-list .icon { width: 15px; color: #aeb5ff; }
.discord-flow-action { display: flex; flex-direction: column; justify-content: center; padding: 38px; background: var(--alpha-surface); }
.discord-flow-action h2 { margin: 0 0 7px; font-size: 1.22rem; }
.discord-flow-action > p { margin: 0 0 22px; color: var(--alpha-muted); font-size: .77rem; line-height: 1.55; }
.discord-profile-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 74px; padding: 12px; border: 1px solid color-mix(in srgb, var(--discord-brand) 25%, var(--alpha-border)); border-radius: 16px; background: color-mix(in srgb, var(--discord-brand) 7%, var(--alpha-surface)); }
.discord-avatar { position: relative; display: grid; flex: 0 0 auto; width: 48px; height: 48px; place-items: center; overflow: hidden; border-radius: 50%; background: #202225; color: white; }
.discord-avatar iconify-icon { font-size: 21px; }
.discord-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.discord-avatar::after { content: ''; position: absolute; right: 1px; bottom: 1px; width: 11px; height: 11px; border: 3px solid var(--alpha-surface); border-radius: 50%; background: #23a559; }
.discord-profile-card strong, .discord-profile-card small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.discord-profile-card strong { font-size: .84rem; }
.discord-profile-card small { margin-top: 2px; color: var(--alpha-muted); font-size: .66rem; }
.discord-profile-card > .icon { width: 18px; color: #23a559; }
.discord-avatar--large { width: 58px; height: 58px; }
.discord-provider-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 13px; border: 1px solid color-mix(in srgb, var(--discord-brand) 22%, var(--alpha-border)); border-radius: 16px; background: color-mix(in srgb, var(--discord-brand) 6%, var(--alpha-surface)); }
.discord-provider-card > span { display: grid; width: 44px; height: 44px; place-items: center; border-radius: 14px; background: var(--discord-brand); color: white; }
.discord-provider-card iconify-icon { font-size: 21px; }
.discord-provider-card small, .discord-provider-card strong { display: block; }
.discord-provider-card small { color: var(--alpha-muted); font-size: .64rem; }
.discord-provider-card strong { margin-top: 2px; font-size: .88rem; }
.discord-provider-card > .icon { width: 17px; color: var(--alpha-muted); }
.discord-auth-button { width: 100%; min-height: 54px; margin-top: 14px; border-color: var(--discord-brand) !important; background: var(--discord-brand) !important; color: white !important; box-shadow: 0 14px 34px rgb(88 101 242 / 24%); }
.discord-auth-button:hover { background: var(--discord-brand-strong) !important; transform: translateY(-2px); }
.discord-auth-button:disabled { cursor: wait; opacity: .72; transform: none; }
.discord-auth-button iconify-icon { font-size: 19px; }
.discord-change-button { width: 100%; min-height: 44px; margin-top: 9px; border: 0; border-radius: 11px; background: transparent; color: var(--alpha-muted); font-size: .72rem; font-weight: 750; transition: color .2s ease, background .2s ease; }
.discord-change-button:hover { background: var(--alpha-surface-muted); color: var(--alpha-text); }
.discord-flow-note { display: flex; gap: 8px; margin: 16px 3px 0 !important; color: var(--alpha-muted); font-size: .67rem !important; }
.discord-flow-note .icon { flex: 0 0 14px; width: 14px; margin-top: 1px; }
.discord-flow-error { margin: 12px 0 0; padding: 10px 12px; border: 1px solid rgb(216 56 56 / 22%); border-radius: 10px; background: rgb(216 56 56 / 8%); color: #b52525; font-size: .7rem; }
.discord-options-fields { display: grid; gap: 13px; margin-top: 14px; }
.discord-option-field { display: grid; gap: 6px; }
.discord-option-field > span { font-size: .69rem; font-weight: 800; }
.discord-option-field input, .discord-option-field select { width: 100%; min-height: 46px; border: 1px solid var(--alpha-border); border-radius: 11px; background: var(--alpha-surface); color: var(--alpha-text); padding: 0 13px; }
.discord-options-form:not([data-ready='true']) { display: none; }
.discord-success-orbit { position: absolute; inset: -7px; border: 2px solid #23a559; border-inline-color: transparent; border-radius: 50%; animation: discord-success-orbit 2.5s ease-out both; }
.discord-success-progress { height: 4px; margin-top: 16px; overflow: hidden; border-radius: 99px; background: rgb(88 101 242 / 12%); }
.discord-success-progress span { display: block; width: 100%; height: 100%; background: linear-gradient(90deg, var(--discord-brand), #8b95ff); transform-origin: left; animation: discord-progress 3.4s linear both; }
.discord-success-loading { display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; color: var(--alpha-muted); font-size: .72rem; font-weight: 750; }
.discord-success-loading .icon { width: 17px; animation: discord-spinner 1s linear infinite; }
.discord-flow-page[data-state='success'] .discord-success-loading, .discord-flow-page[data-state='error'] .discord-success-loading, .discord-flow-page[data-state='success'] .discord-auth-button { display: none; }
.discord-flow-page[data-state='loading'] [data-discord-account], .discord-flow-page[data-state='loading'] .discord-auth-button, .discord-flow-page[data-state='loading'] .discord-flow-error { display: none; }
.discord-flow-page[data-state='error'] .discord-success-progress { display: none; }
.account-discord-card { margin: 9px 0; padding: 10px; border: 1px solid color-mix(in srgb, var(--discord-brand) 20%, var(--alpha-border)); border-radius: 11px; background: color-mix(in srgb, var(--discord-brand) 6%, var(--alpha-surface)); }
.account-discord-card__profile { display: flex; align-items: center; gap: 9px; min-width: 0; }
.account-discord-card .discord-avatar { width: 34px; height: 34px; }
.account-discord-card .discord-avatar::after { width: 8px; height: 8px; border-width: 2px; }
.account-discord-card__profile > span:last-child { min-width: 0; }
.account-discord-card strong, .account-discord-card small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-discord-card strong { font-size: .72rem; }
.account-discord-card small { color: var(--alpha-muted); font-size: .59rem; }
.account-discord-card button { width: 100%; margin-top: 8px; border: 0; background: transparent; color: var(--discord-brand); font-size: .62rem; font-weight: 800; text-align: left; }
.account-discord-card button .icon { width: 13px; margin-right: 4px; vertical-align: -2px; }
.account-discord-connect { border-color: color-mix(in srgb, var(--discord-brand) 30%, var(--alpha-border)) !important; background: color-mix(in srgb, var(--discord-brand) 7%, var(--alpha-surface)) !important; color: var(--discord-brand) !important; }

/* Rich Discord checkout experience */
.discord-flow-page { background-color: #eef0f6; background-image: radial-gradient(circle at 14% 12%, rgb(88 101 242 / 16%), transparent 27%), radial-gradient(circle at 88% 86%, rgb(35 165 89 / 9%), transparent 24%), linear-gradient(rgb(88 101 242 / 3%) 1px, transparent 1px), linear-gradient(90deg, rgb(88 101 242 / 3%) 1px, transparent 1px); background-size: auto, auto, 38px 38px, 38px 38px; }
.discord-flow-section { padding: 42px 0 58px; }
.discord-flow-card { width: min(100%, 1080px); min-height: 640px; grid-template-columns: minmax(0, 1.18fr) minmax(380px, .82fr); border-color: rgb(88 101 242 / 20%); border-radius: 30px; box-shadow: 0 38px 110px rgb(31 35 72 / 20%); }
.discord-flow-card::after { content: ''; position: absolute; z-index: 4; inset: 0; border: 1px solid rgb(255 255 255 / 15%); border-radius: inherit; pointer-events: none; }
.discord-flow-card--success { width: min(100%, 880px); min-height: 0; }
.discord-flow-copy { position: relative; display: flex; flex-direction: column; padding: 38px 44px 34px; overflow: hidden; background: radial-gradient(circle at 78% 16%, rgb(88 101 242 / 33%), transparent 28%), linear-gradient(145deg, #313338 0%, #27282d 52%, #1e1f22 100%); }
.discord-flow-copy::before { content: ''; position: absolute; width: 270px; height: 270px; right: -110px; bottom: -120px; border: 48px solid rgb(88 101 242 / 10%); border-radius: 50%; }
.discord-flow-copy__back { position: relative; z-index: 2; margin-bottom: 30px; }
.discord-flow-copy__intro { position: relative; z-index: 2; display: grid; grid-template-columns: auto 1fr; column-gap: 17px; align-items: center; }
.discord-flow-copy__intro .discord-flow-logo { grid-row: 1 / 3; margin: 0; }
.discord-flow-copy__intro .eyebrow { align-self: end; margin: 0 0 3px; }
.discord-flow-copy__intro h1 { grid-column: 1 / -1; max-width: 14ch; margin: 23px 0 12px; font-size: clamp(2.25rem, 4vw, 3.65rem); }
.discord-flow-copy__intro > p:last-child { grid-column: 1 / -1; max-width: 52ch; margin: 0; color: rgb(255 255 255 / 66%); font-size: .8rem; line-height: 1.62; }
.discord-mini-app { position: relative; z-index: 2; width: min(100%, 520px); min-height: 215px; display: grid; grid-template-columns: 52px 126px 1fr; margin-top: 27px; overflow: hidden; border: 1px solid rgb(255 255 255 / 8%); border-radius: 17px; background: #313338; box-shadow: 0 22px 55px rgb(0 0 0 / 28%); transform: perspective(900px) rotateX(1.5deg) rotateY(-2deg); animation: discord-window-float 6s ease-in-out infinite; }
.discord-mini-app--login { margin-top: 25px; }
.discord-mini-app__servers { display: flex; flex-direction: column; align-items: center; gap: 9px; padding: 11px 7px; background: #1e1f22; }
.discord-mini-app__servers span { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; background: #313338; color: #dbdee1; font-size: .67rem; font-weight: 850; transition: border-radius .22s ease, background .22s ease; }
.discord-mini-app__servers span.is-active { position: relative; border-radius: 12px; background: var(--discord-brand); color: white; }
.discord-mini-app__servers span.is-active::before { content: ''; position: absolute; left: -10px; width: 4px; height: 23px; border-radius: 0 5px 5px 0; background: white; }
.discord-mini-app__servers iconify-icon { font-size: 16px; }
.discord-mini-app__channels { display: flex; flex-direction: column; gap: 5px; padding: 14px 9px; background: #2b2d31; }
.discord-mini-app__channels strong { margin: 0 5px 12px; color: #f2f3f5; font-size: .67rem; }
.discord-mini-app__channels small { padding: 6px 8px; border-radius: 5px; color: #949ba4; font-size: .58rem; font-weight: 650; }
.discord-mini-app__channels small.is-active { background: #404249; color: #f2f3f5; }
.discord-mini-app__chat { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 11px; padding: 17px; overflow: hidden; }
.discord-mini-app__status { position: absolute; top: 14px; left: 17px; display: flex; align-items: center; gap: 6px; color: #b5bac1; font-size: .55rem; font-weight: 750; text-transform: uppercase; letter-spacing: .06em; }
.discord-mini-app__status i { width: 7px; height: 7px; border-radius: 50%; background: #23a559; box-shadow: 0 0 0 4px rgb(35 165 89 / 12%); animation: discord-status-pulse 2s ease-in-out infinite; }
.discord-mini-message { display: grid; grid-template-columns: 31px 1fr; gap: 9px; align-items: center; opacity: 0; animation: discord-message-in .52s .38s cubic-bezier(.16, 1, .3, 1) forwards; }
.discord-mini-message--success { animation-delay: .72s; }
.discord-mini-message > span { display: grid; width: 31px; height: 31px; place-items: center; border-radius: 50%; background: var(--discord-brand); color: white; }
.discord-mini-message--success > span { background: #23a559; }
.discord-mini-message iconify-icon, .discord-mini-message .icon { width: 14px; font-size: 14px; }
.discord-mini-message p, .discord-mini-message strong, .discord-mini-message small { display: block; margin: 0; }
.discord-mini-message strong { color: #f2f3f5; font-size: .62rem; }
.discord-mini-message small { margin-top: 3px; color: #949ba4; font-size: .54rem; line-height: 1.35; }
.discord-flow-trust { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 7px; margin-top: auto; padding-top: 24px; }
.discord-flow-trust span { display: inline-flex; align-items: center; gap: 6px; min-height: 29px; padding: 0 9px; border: 1px solid rgb(255 255 255 / 9%); border-radius: 99px; background: rgb(255 255 255 / 5%); color: rgb(255 255 255 / 68%); font-size: .57rem; font-weight: 750; }
.discord-flow-trust .icon { width: 12px; color: #aeb5ff; }
.discord-flow-action { position: relative; padding: 37px 36px; background: linear-gradient(180deg, #fff, #fafbff); }
.discord-step-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 17px; color: var(--discord-brand); font-size: .62rem; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.discord-step-heading small { min-width: 42px; padding: 5px 8px; border-radius: 99px; background: rgb(88 101 242 / 9%); text-align: center; }
.discord-product-summary { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 13px; align-items: center; margin-bottom: 13px; padding: 14px; border: 1px solid #e2e4ee; border-radius: 16px; background: #f6f7fb; }
.discord-product-summary > span { display: grid; width: 43px; height: 43px; place-items: center; border-radius: 13px; background: #fff; color: var(--discord-brand); box-shadow: 0 7px 20px rgb(25 28 51 / 8%); }
.discord-product-summary .icon { width: 19px; }
.discord-product-summary small { display: block; margin-bottom: 3px; color: #6d6f78; font-size: .59rem; font-weight: 750; text-transform: uppercase; letter-spacing: .05em; }
.discord-product-summary h2 { overflow: hidden; margin: 0; color: #17181c; font-size: .94rem; text-overflow: ellipsis; white-space: nowrap; }
.discord-product-summary strong { display: block; margin-top: 4px; color: #23a559; font-size: .75rem; }
.discord-flow-action > p { margin-bottom: 17px; }
.discord-profile-card { min-height: 79px; padding: 13px; border-color: rgb(35 165 89 / 26%); background: linear-gradient(135deg, rgb(35 165 89 / 8%), rgb(88 101 242 / 6%)); box-shadow: inset 3px 0 #23a559; animation: discord-profile-in .5s cubic-bezier(.16, 1, .3, 1) both; }
.discord-flow-benefits { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.discord-flow-benefits > span { display: grid; grid-template-columns: auto 1fr; column-gap: 8px; padding: 10px; border: 1px solid #e5e6ed; border-radius: 12px; background: #fff; }
.discord-flow-benefits .icon { grid-row: 1 / 3; width: 16px; align-self: center; color: var(--discord-brand); }
.discord-flow-benefits small, .discord-flow-benefits strong { display: block; }
.discord-flow-benefits small { color: #7b7d86; font-size: .55rem; }
.discord-flow-benefits strong { margin-top: 2px; color: #26272c; font-size: .62rem; }
.discord-auth-button { position: relative; overflow: hidden; }
.discord-auth-button::after { content: ''; position: absolute; width: 70px; height: 180%; top: -40%; left: -100px; background: linear-gradient(90deg, transparent, rgb(255 255 255 / 23%), transparent); transform: rotate(18deg); animation: discord-button-shine 4.8s 1.2s ease-in-out infinite; }
.discord-flow-help { display: grid; grid-template-columns: auto 1fr; gap: 9px; margin-top: 16px; padding-top: 15px; border-top: 1px solid #e6e7ed; }
.discord-flow-help > .icon { width: 16px; color: var(--discord-brand); }
.discord-flow-help strong, .discord-flow-help small { display: block; }
.discord-flow-help strong { color: #292a30; font-size: .65rem; }
.discord-flow-help small { margin-top: 3px; color: #777983; font-size: .59rem; line-height: 1.45; }

/* Header account popover */
.account-menu__options { width: 318px; padding: 10px; border-color: color-mix(in srgb, var(--alpha-accent) 16%, var(--alpha-border)); border-radius: 19px; background: #fff; box-shadow: 0 24px 72px rgb(9 22 13 / 22%); }
.account-menu__identity { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px; border-radius: 13px; background: linear-gradient(135deg, #f2f8f3, #f8faf8); }
.account-avatar--menu { width: 39px; height: 39px; }
.account-menu__identity > span:nth-child(2) { min-width: 0; }
.account-menu__identity small, .account-menu__identity strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-menu__identity small { color: #707a72; font-size: .57rem; font-weight: 700; }
.account-menu__identity strong { margin-top: 2px; color: #142018; font-size: .76rem; }
.account-menu__identity em { display: flex; align-items: center; gap: 5px; color: #158233; font-size: .54rem; font-style: normal; font-weight: 800; }
.account-menu__identity em i { width: 7px; height: 7px; border-radius: 50%; background: #23a559; box-shadow: 0 0 0 3px rgb(35 165 89 / 13%); }
.account-menu__section-label { margin: 13px 8px 6px !important; color: #7a827c !important; font-size: .55rem !important; }
.account-menu__divider { height: 1px; margin: 9px 2px; background: #e7ebe8; }
.account-menu__options > .account-discord-connect, .account-menu__options > .account-menu__purchases { min-height: 58px; margin: 0; padding: 0 10px; border-radius: 12px; }
.account-menu__options > .account-discord-connect { border-color: rgb(88 101 242 / 18%) !important; background: #f4f5ff !important; color: #4752c4 !important; }
.account-menu__options > .account-discord-connect iconify-icon { width: 20px; height: 20px; }
.account-menu__options > .account-menu__purchases { display: grid; grid-template-columns: auto 1fr auto; background: #f7f9f7; color: #263029; }
.account-menu__item-icon { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 10px; background: #e9f5eb; color: #168334; }
.account-menu__item-icon .icon { width: 16px; }
.account-menu__item-arrow { width: 15px; color: #89918b; }
.account-menu__options > .account-menu__logout { min-height: 50px; display: grid; grid-template-columns: auto 1fr; gap: 10px; padding: 6px 10px; background: transparent; color: #a53333; }
.account-menu__logout .account-menu__item-icon { background: #fff0f0; color: #bd3535; }
.account-menu__logout strong, .account-menu__logout small { display: block; }
.account-menu__logout strong { font-size: .7rem; }
.account-menu__logout small { margin-top: 2px; color: #947777; font-size: .57rem; }
.account-discord-card { margin: 0; padding: 11px; border-color: rgb(88 101 242 / 20%); border-radius: 12px; background: #f4f5ff; }
.account-discord-card strong { color: #26283a; }
.account-discord-card small { color: #73758a; }
.account-discord-card button { display: flex; align-items: center; min-height: 28px; margin: 6px 0 0; padding: 0 4px; color: #4752c4; }

@keyframes discord-card-in { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes discord-logo-pulse { 50% { opacity: .35; transform: scale(1.08); } }
@keyframes discord-success-orbit { from { opacity: 0; transform: rotate(-120deg) scale(.7); } to { opacity: .6; transform: rotate(240deg) scale(1); } }
@keyframes discord-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes discord-spinner { to { transform: rotate(360deg); } }
@keyframes discord-window-float { 50% { transform: perspective(900px) rotateX(1.5deg) rotateY(-2deg) translateY(-4px); } }
@keyframes discord-status-pulse { 50% { box-shadow: 0 0 0 7px rgb(35 165 89 / 3%); } }
@keyframes discord-message-in { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: none; } }
@keyframes discord-profile-in { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }
@keyframes discord-button-shine { 0%, 72% { left: -100px; } 90%, 100% { left: calc(100% + 100px); } }
:root[data-theme='dark'] { --discord-panel: #25262b; }
:root[data-theme='dark'] .discord-flow-page { background-color: #101116; background-image: radial-gradient(circle at 15% 12%, rgb(88 101 242 / 22%), transparent 27%), radial-gradient(circle at 88% 86%, rgb(35 165 89 / 10%), transparent 24%), linear-gradient(rgb(255 255 255 / 2%) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / 2%) 1px, transparent 1px); }
:root[data-theme='dark'] .discord-flow-copy { background: linear-gradient(150deg, #202126, #15161a); }
:root[data-theme='dark'] .discord-flow-card { border-color: rgb(122 132 255 / 22%); background: #1e1f24; box-shadow: 0 38px 110px rgb(0 0 0 / 42%); }
:root[data-theme='dark'] .discord-flow-action { background: linear-gradient(180deg, #202126, #1b1c20); }
:root[data-theme='dark'] .discord-product-summary { border-color: #35373e; background: #27282d; }
:root[data-theme='dark'] .discord-product-summary > span { background: #313238; box-shadow: none; }
:root[data-theme='dark'] .discord-product-summary small, :root[data-theme='dark'] .discord-flow-help small { color: #a8abb3; }
:root[data-theme='dark'] .discord-product-summary h2, :root[data-theme='dark'] .discord-flow-benefits strong, :root[data-theme='dark'] .discord-flow-help strong { color: #f1f2f4; }
:root[data-theme='dark'] .discord-flow-benefits > span { border-color: #35373e; background: #27282d; }
:root[data-theme='dark'] .discord-flow-benefits small { color: #a7aab1; }
:root[data-theme='dark'] .discord-flow-help { border-color: #36383f; }
:root[data-theme='dark'] .discord-profile-card { border-color: rgb(35 165 89 / 26%); background: linear-gradient(135deg, rgb(35 165 89 / 12%), rgb(88 101 242 / 11%)); }
:root[data-theme='dark'] .discord-change-button:hover { background: #2d2f35; }
:root[data-theme='dark'] .account-menu__options { border-color: #2d4133; background: #111d15; box-shadow: 0 26px 76px rgb(0 0 0 / 48%); }
:root[data-theme='dark'] .account-menu__identity { background: linear-gradient(135deg, #172a1d, #142219); }
:root[data-theme='dark'] .account-menu__identity small { color: #9baa9e; }
:root[data-theme='dark'] .account-menu__identity strong { color: #f3f7f4; }
:root[data-theme='dark'] .account-menu__section-label { color: #8f9f93 !important; }
:root[data-theme='dark'] .account-menu__divider { background: #29402f; }
:root[data-theme='dark'] .account-menu__options > .account-discord-connect, :root[data-theme='dark'] .account-discord-card { border-color: rgb(123 132 255 / 25%) !important; background: #202239 !important; color: #b7bdff !important; }
:root[data-theme='dark'] .account-menu__options > .account-menu__purchases { border-color: #2c4332; background: #18271d; color: #eef5f0; }
:root[data-theme='dark'] .account-menu__item-icon { background: #203b29; color: #61d77b; }
:root[data-theme='dark'] .account-menu__options > .account-menu__logout { background: transparent; color: #ff9898; }
:root[data-theme='dark'] .account-menu__logout .account-menu__item-icon { background: #3b2022; color: #ff8b8b; }
:root[data-theme='dark'] .account-menu__logout small { color: #c49393; }
:root[data-theme='dark'] .account-discord-card strong { color: #f0f1ff; }
:root[data-theme='dark'] .account-discord-card small { color: #adb1ce; }
:root[data-theme='dark'] .account-discord-card button { color: #b9beff; }
@media (max-width: 780px) {
  .discord-flow-section { padding: 24px 0 38px; }
  .discord-flow-card { min-height: 0; grid-template-columns: 1fr; border-radius: 21px; }
  .discord-flow-copy { padding: 30px 24px; }
  .discord-flow-copy__back { margin-bottom: 30px; }
  .discord-flow-copy h1 { max-width: 13ch; font-size: clamp(2rem, 10vw, 2.75rem); }
  .discord-flow-action { padding: 28px 24px; }
  .discord-mini-app { width: 100%; min-height: 195px; }
  .discord-flow-trust { margin-top: 18px; padding-top: 0; }
}
@media (max-width: 430px) {
  .discord-flow-card { width: calc(100% - 4px); }
  .discord-flow-copy { padding: 25px 20px; }
  .discord-flow-action { padding: 24px 18px; }
  .discord-flow-copy__intro { grid-template-columns: 52px 1fr; }
  .discord-flow-copy__intro .discord-flow-logo { width: 52px; height: 52px; border-radius: 17px; }
  .discord-flow-copy__intro h1 { margin-top: 19px; }
  .discord-mini-app { grid-template-columns: 43px 92px 1fr; min-height: 178px; margin-top: 22px; }
  .discord-mini-app__servers span { width: 29px; height: 29px; }
  .discord-mini-app__channels { padding-inline: 6px; }
  .discord-mini-app__channels small { padding-inline: 5px; }
  .discord-mini-app__chat { gap: 8px; padding: 12px 10px; }
  .discord-mini-app__status { top: 11px; left: 10px; }
  .discord-mini-message { grid-template-columns: 26px 1fr; gap: 7px; }
  .discord-mini-message > span { width: 26px; height: 26px; }
  .discord-flow-benefits { grid-template-columns: 1fr; }
  .discord-product-summary h2 { white-space: normal; }
}
@media (max-width: 960px) {
  .mobile-account .account-discord-card { width: 100%; margin: 0; }
  .mobile-account .account-discord-connect { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .discord-flow-card, .discord-flow-logo::after, .discord-success-orbit, .discord-success-progress span, .discord-mini-app, .discord-mini-message, .discord-mini-app__status i, .discord-profile-card, .discord-auth-button::after { animation: none !important; } }

/* Layout alignment with the FiveM login experience */
.discord-flow-page { min-height: 0; }
.discord-flow-section { box-sizing: border-box; min-height: clamp(610px, calc(100vh - 84px), 820px); padding: clamp(38px, 6vw, 74px) 0; }
.discord-flow-section > .shell { width: min(calc(100% - 40px), 980px); }
.discord-flow-card { width: 100%; min-height: 0; grid-template-columns: minmax(0, 1.08fr) minmax(330px, .82fr); border-radius: 24px; }
.discord-flow-copy { padding: clamp(32px, 4vw, 46px); }
.discord-flow-action { padding: clamp(30px, 3.5vw, 40px); border-left: 1px solid #e3e5ec; }

.discord-login-page .login-section { background: linear-gradient(rgb(88 101 242 / 3%) 1px, transparent 1px), linear-gradient(90deg, rgb(88 101 242 / 3%) 1px, transparent 1px), linear-gradient(145deg, var(--alpha-bg), color-mix(in srgb, var(--discord-brand) 6%, var(--alpha-surface-muted))); background-size: 72px 72px, 72px 72px, auto; }
.discord-login-glow { background: radial-gradient(circle, rgb(88 101 242 / 13%), transparent 68%); }
.discord-login-panel { border-color: color-mix(in srgb, var(--discord-brand) 14%, var(--alpha-border)); box-shadow: 0 28px 80px rgb(35 39 83 / 14%); }
.discord-login-brand, .discord-login-provider .login-provider__icon { background: var(--discord-brand); }
.discord-login-brand span { border-color: rgb(88 101 242 / 30%); }
.discord-login-page .eyebrow, .discord-login-provider > .icon { color: var(--discord-brand); }
.discord-login-provider [data-discord-profile-tag] { display: block; margin-top: 2px; color: var(--alpha-muted); font-size: .68rem; }
.discord-login-page .discord-auth-button.login-submit { margin-top: 14px; }
.discord-login-page[data-state='success'] .discord-success-loading, .discord-login-page[data-state='error'] .discord-success-loading, .discord-login-page[data-state='success'] .discord-auth-button { display: none; }
.discord-login-page[data-state='loading'] [data-discord-account], .discord-login-page[data-state='loading'] .discord-auth-button, .discord-login-page[data-state='loading'] .discord-flow-error { display: none; }
.discord-login-page[data-state='error'] .discord-success-progress { display: none; }

/* Compact, calmer account dropdown */
.account-menu__options { width: 292px; padding: 8px; border-radius: 16px; }
.account-menu__identity { padding: 9px 8px 12px; border-bottom: 1px solid #e8ece9; border-radius: 9px 9px 0 0; background: transparent; }
.account-menu__section-label { margin: 11px 8px 6px !important; }
.account-discord-card { padding: 9px 10px; border-color: #e2e4ea; background: #f8f8fb; }
.account-menu__options > .account-discord-connect { min-height: 52px; border-color: #e1e3ea !important; background: #f8f8fb !important; color: #3e4651 !important; }
.account-menu__options > .account-discord-connect iconify-icon { color: var(--discord-brand); }
.account-menu__divider { margin: 7px 2px; }
.account-menu__options > .account-menu__purchases { min-height: 50px; border-color: transparent !important; background: transparent !important; }
.account-menu__options > .account-menu__logout { min-height: 48px; border: 0 !important; background: transparent !important; color: #a43b3b; }
.account-menu__options > .account-menu__purchases:hover { border-color: transparent !important; background: #f3f6f3 !important; transform: none; }
.account-menu__options > .account-menu__logout:hover { background: #fff4f4 !important; transform: none; }
.account-menu__item-icon { width: 31px; height: 31px; border-radius: 9px; }
.account-menu__item-icon { display: grid !important; place-items: center !important; padding: 0 !important; line-height: 0; }
.account-menu__item-icon .icon { display: block; width: 16px !important; height: 16px !important; margin: 0 !important; }
.account-menu__logout .account-menu__item-icon { background: #fff1f1; }

/* Discord success state */
.discord-login-page.login-page--success .login-panel__intro { overflow: hidden; background: radial-gradient(circle at 88% 13%, rgb(88 101 242 / 14%), transparent 26%), var(--alpha-surface); }
.discord-login-page.login-page--success .login-panel__intro::after { content: ''; position: absolute; right: -86px; bottom: -110px; width: 250px; height: 250px; border: 42px solid rgb(88 101 242 / 6%); border-radius: 50%; pointer-events: none; }
.discord-login-page.login-page--success .login-panel__action { position: relative; overflow: hidden; background: linear-gradient(155deg, color-mix(in srgb, var(--discord-brand) 8%, var(--alpha-surface)), var(--alpha-surface-muted)); }
.discord-login-page.login-page--success .login-panel__action::before { content: ''; position: absolute; top: -90px; right: -80px; width: 190px; height: 190px; border: 1px solid rgb(88 101 242 / 13%); border-radius: 50%; }
.discord-success-confirmation { position: relative; z-index: 1; display: grid; justify-items: center; margin-bottom: 20px; text-align: center; }
.discord-success-confirmation__icon { position: relative; display: grid; width: 68px; height: 68px; place-items: center; margin-bottom: 14px; border-radius: 22px; background: var(--discord-brand); color: white; box-shadow: 0 16px 38px rgb(88 101 242 / 28%); animation: discord-confirmation-in .68s cubic-bezier(.16, 1, .3, 1) both; }
.discord-success-confirmation__icon > .icon { position: relative; z-index: 2; width: 27px; height: 27px; stroke-width: 3; }
.discord-success-confirmation__icon [data-discord-success-icon], .discord-success-confirmation__icon [data-discord-error-icon] { display: none; }
.discord-success-confirmation__icon [data-discord-loading-icon] { animation: discord-spinner 1s linear infinite; }
.discord-login-page[data-state='success'] .discord-success-confirmation__icon [data-discord-loading-icon] { display: none; }
.discord-login-page[data-state='success'] .discord-success-confirmation__icon [data-discord-success-icon] { display: block; }
.discord-success-confirmation__icon > i:not(.icon) { position: absolute; inset: -7px; border: 1px solid rgb(88 101 242 / 28%); border-radius: 27px; animation: discord-confirmation-ring 2.6s ease-out infinite; }
.discord-success-confirmation__icon > i:last-child { inset: -14px; border-radius: 32px; animation-delay: .5s; }
.discord-success-confirmation p { margin: 0 0 4px; color: var(--discord-brand); font-size: .61rem; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.discord-success-confirmation h2 { margin: 0; color: var(--alpha-text); font-size: 1.18rem; }
.discord-success-details { position: relative; z-index: 1; display: grid; gap: 8px; margin-top: 10px; }
.discord-success-details > span { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid color-mix(in srgb, var(--discord-brand) 12%, var(--alpha-border)); border-radius: 11px; background: color-mix(in srgb, var(--discord-brand) 4%, var(--alpha-surface)); }
.discord-success-details > span > .icon { grid-row: 1 / 3; width: 16px; color: var(--discord-brand); }
.discord-success-details strong, .discord-success-details small { display: block; }
.discord-success-details strong { font-size: .67rem; }
.discord-success-details small { margin-top: 2px; color: var(--alpha-muted); font-size: .58rem; }
.discord-login-page.login-page--success .discord-login-provider { position: relative; z-index: 1; border-color: color-mix(in srgb, var(--discord-brand) 24%, var(--alpha-border)); box-shadow: inset 3px 0 var(--discord-brand); }
.discord-login-page.login-page--success .discord-success-progress { position: relative; z-index: 1; margin-top: 15px; background: rgb(88 101 242 / 12%); }
.discord-login-page.login-page--success .discord-success-progress span { background: linear-gradient(90deg, var(--discord-brand), #8f98ff); }
.discord-login-page[data-state='error'] .discord-success-confirmation__icon { background: #d33d46; box-shadow: 0 16px 38px rgb(211 61 70 / 22%); animation: discord-error-in .46s cubic-bezier(.16, 1, .3, 1) both; }
.discord-login-page[data-state='error'] .discord-success-confirmation__icon [data-discord-loading-icon] { display: none; }
.discord-login-page[data-state='error'] .discord-success-confirmation__icon [data-discord-success-icon] { display: none; }
.discord-login-page[data-state='error'] .discord-success-confirmation__icon [data-discord-error-icon] { display: block; }
.discord-login-page[data-state='error'] .discord-success-confirmation__icon > i:not(.icon) { border-color: rgb(211 61 70 / 25%); animation: none; }
.discord-login-page[data-state='error'] .discord-success-confirmation p { color: #c8323c; }
.discord-login-page[data-state='error'] .login-panel__intro { background: radial-gradient(circle at 88% 13%, rgb(211 61 70 / 9%), transparent 26%), var(--alpha-surface); }
@keyframes discord-confirmation-in { from { opacity: 0; transform: translateY(9px) scale(.82) rotate(-7deg); } 65% { opacity: 1; transform: translateY(0) scale(1.05) rotate(1deg); } to { transform: none; } }
@keyframes discord-error-in { from { opacity: 0; transform: translateY(7px) scale(.88); } to { opacity: 1; transform: none; } }
@keyframes discord-confirmation-ring { 0% { opacity: 0; transform: scale(.82); } 30% { opacity: .7; } 100% { opacity: 0; transform: scale(1.12); } }

:root[data-theme='dark'] .discord-flow-action { border-color: #34363d; }
:root[data-theme='dark'] .discord-login-page .login-section { background: linear-gradient(rgb(122 132 255 / 3%) 1px, transparent 1px), linear-gradient(90deg, rgb(122 132 255 / 3%) 1px, transparent 1px), linear-gradient(145deg, var(--alpha-bg), color-mix(in srgb, var(--discord-brand) 8%, var(--alpha-surface-muted))); background-size: 72px 72px, 72px 72px, auto; }
:root[data-theme='dark'] .discord-login-panel { border-color: rgb(122 132 255 / 20%); box-shadow: 0 28px 85px rgb(0 0 0 / 35%); }
:root[data-theme='dark'] .account-menu__identity { border-color: #2a3d30; background: transparent; }
:root[data-theme='dark'] .account-discord-card { border-color: #32364b !important; background: #202330 !important; }
:root[data-theme='dark'] .account-menu__options > .account-discord-connect { border-color: #303444 !important; background: #1c2224 !important; color: #edf2ee !important; }
:root[data-theme='dark'] .account-menu__options > .account-menu__purchases { background: transparent !important; color: #eef5f0; }
:root[data-theme='dark'] .account-menu__options > .account-menu__purchases:hover { background: #19291e !important; }
:root[data-theme='dark'] .account-menu__options > .account-menu__logout { background: transparent !important; color: #ff9d9d; }
:root[data-theme='dark'] .account-menu__options > .account-menu__logout:hover { background: #321e20 !important; }
:root[data-theme='dark'] .discord-login-page.login-page--success .login-panel__intro { background: radial-gradient(circle at 88% 13%, rgb(88 101 242 / 20%), transparent 27%), var(--alpha-surface); }
:root[data-theme='dark'] .discord-login-page.login-page--success .login-panel__action { background: linear-gradient(155deg, rgb(88 101 242 / 10%), var(--alpha-surface-muted)); }
:root[data-theme='dark'] .discord-success-details > span { border-color: #36394b; background: #22242c; }

@media (max-width: 820px) {
  .discord-flow-section { min-height: 0; padding: 24px 0 38px; }
  .discord-flow-section > .shell { width: min(calc(100% - 24px), 980px); }
  .discord-flow-card { grid-template-columns: 1fr; border-radius: 19px; }
  .discord-flow-action { border-top: 1px solid #e3e5ec; border-left: 0; }
  :root[data-theme='dark'] .discord-flow-action { border-color: #34363d; }
}

@media (prefers-reduced-motion: reduce) {
  .discord-success-confirmation__icon, .discord-success-confirmation__icon > i:not(.icon) { animation: none !important; }
}
