/* Islamia public account UI. Kept isolated from the admin and content modals. */
.is-auth-nav {
    position: relative;
    display: flex;
    align-items: center;
    z-index: 120;
}

/* Cached users never see anonymous controls while their session is restored. */
html.is-auth-session-cached .is-auth-nav > .is-auth-trigger,
html.is-auth-session-cached .is-auth-mobile > .is-auth-mobile-button {
    visibility: hidden;
    pointer-events: none;
}

/* Anonymous navbar geometry is stable from the first paint. Cached users are
   identified synchronously by auth-boot.js, so they still never see Katıl. */
html.is-auth-session-cached #navCtaBtn {
    display: none !important;
}

/* Yönetim adresi çalışmaya devam eder; normal ziyaretçi navigasyonunda gösterilmez. */
.nav-right > a[href="admin.html"],
.mobile-menu .mobile-admin {
    display: none !important;
}

.is-auth-trigger,
.is-auth-user-trigger {
    min-height: 38px;
    border: 1px solid rgba(228, 201, 106, 0.35);
    border-radius: 999px;
    color: var(--text-primary, #ece8e1);
    background: rgba(8, 8, 12, 0.68);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    font: 700 0.78rem/1 var(--font-body, 'Inter', sans-serif);
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.is-auth-trigger {
    padding: 0 1rem;
}

.is-auth-trigger:hover,
.is-auth-user-trigger:hover,
.is-auth-user-trigger[aria-expanded="true"] {
    border-color: rgba(228, 201, 106, 0.72);
    background: rgba(228, 201, 106, 0.1);
    transform: translateY(-1px);
}

.is-auth-user-trigger {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    max-width: 190px;
    padding: 3px 0.7rem 3px 3px;
}

.is-auth-avatar {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 50%;
    color: #08080b;
    background: linear-gradient(135deg, var(--accent, #c9a84c), var(--accent-light, #e4c96a));
    font: 800 0.76rem/1 var(--font-display, 'Outfit', sans-serif);
}

.is-auth-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.is-auth-user-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.is-auth-chevron {
    width: 12px;
    height: 12px;
    flex: 0 0 12px;
    transition: transform 0.2s ease;
}

.is-auth-user-trigger[aria-expanded="true"] .is-auth-chevron {
    transform: rotate(180deg);
}

.is-auth-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: min(290px, calc(100vw - 32px));
    padding: 0.55rem;
    border: 1px solid rgba(228, 201, 106, 0.3);
    border-radius: 18px;
    background:
        radial-gradient(circle at 25% 0%, rgba(228, 201, 106, 0.14), transparent 52%),
        rgba(8, 8, 12, 0.98);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.62);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
}

.is-auth-menu[hidden] {
    display: none;
}

.is-auth-menu-profile {
    padding: 0.75rem 0.75rem 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.is-auth-menu-name,
.is-auth-menu-email {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.is-auth-menu-name {
    color: var(--text-primary, #ece8e1);
    font: 700 0.9rem/1.3 var(--font-display, 'Outfit', sans-serif);
}

.is-auth-menu-email {
    margin-top: 0.18rem;
    color: var(--text-muted, #777782);
    font: 500 0.72rem/1.3 var(--font-body, 'Inter', sans-serif);
}

.is-auth-menu-action {
    width: 100%;
    margin-top: 0.45rem;
    padding: 0.75rem;
    border-radius: 12px;
    color: var(--text-secondary, #aaa6a0);
    text-align: left;
    font: 650 0.8rem/1 var(--font-body, 'Inter', sans-serif);
    transition: color 0.2s ease, background 0.2s ease;
}

.is-auth-menu-action:hover {
    color: var(--text-primary, #ece8e1);
    background: rgba(255, 255, 255, 0.055);
}

.is-auth-menu-action--danger:hover {
    color: #ff9c9c;
    background: rgba(255, 92, 92, 0.08);
}

.is-auth-menu-action--danger + .is-auth-menu-action--danger {
    margin-top: 0.15rem;
}

.is-auth-mobile {
    width: min(86vw, 360px);
    display: grid;
    gap: 0.55rem;
    margin-top: 0.15rem;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

@media (min-width: 1151px) {
    .mobile-menu .is-auth-mobile { display: none; }
}

.mobile-menu.active .is-auth-mobile {
    opacity: 1;
    transform: translateY(0);
}

.is-auth-mobile-button {
    width: 100%;
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.65rem 1rem;
    border: 1px solid rgba(228, 201, 106, 0.4);
    border-radius: 999px;
    color: #09090c;
    background: linear-gradient(135deg, var(--accent, #c9a84c), var(--accent-light, #e4c96a));
    font: 750 0.92rem/1 var(--font-body, 'Inter', sans-serif);
}

.mobile-menu.is-menu-enhanced .is-auth-mobile-button {
    position: relative;
    min-height: 66px;
    justify-content: flex-start;
    padding: 13px 52px 13px 54px;
    overflow: hidden;
    border: 1px solid rgba(228, 201, 106, .38);
    border-radius: 18px;
    color: #fff7d8;
    text-align: left;
    background:
        radial-gradient(circle at 0 0, rgba(242, 220, 134, .23), transparent 52%),
        linear-gradient(135deg, rgba(201, 168, 76, .14), rgba(255, 255, 255, .035));
    box-shadow: inset 0 1px 0 rgba(255,245,204,.1), 0 15px 35px rgba(0,0,0,.2);
    font: 740 .82rem/1.2 var(--font-display, 'Outfit', sans-serif);
}

.mobile-menu.is-menu-enhanced .is-auth-mobile-button::before {
    content: '';
    position: absolute;
    left: 13px;
    top: 50%;
    width: 30px;
    height: 30px;
    border-radius: 11px;
    background:
        radial-gradient(circle at 50% 35%, #17130b 0 4px, transparent 4.5px),
        radial-gradient(ellipse at 50% 82%, #17130b 0 8px, transparent 8.5px),
        linear-gradient(135deg, #c9a84c, #f2dc86);
    box-shadow: 0 7px 18px rgba(201,168,76,.2);
    transform: translateY(-50%);
}

.mobile-menu.is-menu-enhanced .is-auth-mobile-button::after {
    content: '›';
    position: absolute;
    top: 50%;
    right: 17px;
    color: rgba(242, 220, 134, .72);
    font: 300 1.7rem/1 var(--font-body, sans-serif);
    transform: translateY(-54%);
}

.is-auth-mobile-user {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    min-width: 0;
    padding: 0.7rem;
    border: 1px solid rgba(228, 201, 106, 0.22);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.035);
}

.mobile-menu.is-menu-enhanced .is-auth-mobile-user {
    min-height: 70px;
    padding: 11px 12px;
    border-color: rgba(228, 201, 106, .27);
    border-radius: 18px;
    background:
        radial-gradient(circle at 0 0, rgba(228,201,106,.16), transparent 50%),
        rgba(255,255,255,.035);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.055), 0 14px 34px rgba(0,0,0,.18);
}

.mobile-menu.is-menu-enhanced .is-auth-mobile-user .is-auth-avatar {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
}

.mobile-menu.is-menu-enhanced .is-auth-mobile-user-name { color: #f5f0e8; font-size: .85rem; }
.mobile-menu.is-menu-enhanced .is-auth-mobile-user-email { color: rgba(239,235,226,.39); }
.mobile-menu.is-menu-enhanced .is-auth-mobile-signout {
    padding: 8px 10px;
    border: 1px solid rgba(255,130,130,.15);
    border-radius: 10px;
    color: rgba(255,170,170,.75);
    background: rgba(255,90,90,.035);
    font-size: .64rem;
}

.is-auth-mobile-user-copy {
    min-width: 0;
    flex: 1;
}

.is-auth-mobile-user-name,
.is-auth-mobile-user-email {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.is-auth-mobile-user-name {
    color: var(--text-primary, #ece8e1);
    font: 700 0.88rem/1.25 var(--font-display, 'Outfit', sans-serif);
}

.is-auth-mobile-user-email {
    margin-top: 0.15rem;
    color: var(--text-muted, #777782);
    font: 500 0.68rem/1.25 var(--font-body, 'Inter', sans-serif);
}

.is-auth-mobile-signout {
    color: #ffaaaa;
    font: 700 0.75rem/1 var(--font-body, 'Inter', sans-serif);
}

.is-auth-dialog {
    --auth-black: #020304;
    --auth-black-raised: #050608;
    --auth-control-black: #000;
    --auth-control-hover: #030405;
    --auth-line: rgba(255, 255, 255, 0.075);
    position: fixed;
    inset: 0;
    width: min(94vw, 980px);
    height: fit-content;
    max-height: min(90vh, 760px);
    margin: auto;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(228, 201, 106, 0.28);
    border-radius: 28px;
    color: var(--text-primary, #ece8e1);
    background: var(--auth-black);
    box-shadow: 0 42px 130px rgba(0, 0, 0, 0.82), 0 0 70px rgba(201, 168, 76, 0.08);
    transform-origin: center;
}

.is-auth-dialog::backdrop {
    background: rgba(1, 1, 3, 0.82);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.is-auth-dialog[open] {
    animation: isAuthEnter 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

html.is-native-app .is-auth-dialog[open] { animation: none; }

@keyframes isAuthEnter {
    from { opacity: 0; transform: translateY(14px) scale(0.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.is-auth-shell {
    position: relative;
    display: grid;
    grid-template-columns: minmax(250px, 0.82fr) minmax(350px, 1.18fr);
    min-height: 610px;
    overflow: auto;
    max-height: min(90vh, 760px);
}

.is-auth-mobile-masthead {
    display: none;
}

.is-auth-legal-footer { position: relative; z-index: 1; flex: 0 0 auto; width: min(100%, 450px); margin: 14px auto 0; }
.is-auth-legal-footer nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; column-gap: 22px; row-gap: 4px; }
.is-auth-legal-footer a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; color: #e8e6e1; font: 500 11px/1.4 var(--font-body, 'Inter', sans-serif); text-decoration: none; }
.is-auth-legal-footer a:focus-visible { outline: 2px solid var(--accent-light, #e4c96a); outline-offset: 3px; border-radius: 4px; }
@media (hover: hover) and (pointer: fine) { .is-auth-legal-footer a:hover { text-decoration: underline; text-underline-offset: 4px; } }

.is-auth-aside {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 610px;
    padding: clamp(2rem, 4vw, 3.25rem);
    overflow: hidden;
    border-right: 1px solid rgba(255, 255, 255, 0.07);
    background: #020304;
    --auth-hero-background:
        linear-gradient(180deg, rgba(2, 3, 4, 0.08) 0%, rgba(2, 3, 4, 0.3) 46%, rgba(2, 3, 4, 0.96) 100%),
        linear-gradient(90deg, rgba(2, 3, 4, 0.28), transparent 68%),
        url('../auth-cover-01.png') center center / cover no-repeat;
}

.is-auth-dialog[data-auth-view="register"] .is-auth-aside {
    --auth-hero-background:
        linear-gradient(180deg, rgba(2, 3, 4, 0.08) 0%, rgba(2, 3, 4, 0.3) 46%, rgba(2, 3, 4, 0.96) 100%),
        linear-gradient(90deg, rgba(2, 3, 4, 0.3), transparent 70%),
        url('../auth-cover-03.png') 58% center / cover no-repeat;
}

.is-auth-aside::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background: var(--auth-hero-background);
    box-shadow: inherit;
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease;
}

.is-auth-dialog[data-auth-hero-ready="true"] .is-auth-aside::before { opacity: 1; }

.is-auth-brand,
.is-auth-aside-copy {
    position: relative;
    z-index: 1;
}

@media (min-width: 761px) {
    .is-auth-aside-copy {
        flex-shrink: 0;
        transform: translateY(-2rem);
    }

    .is-auth-dialog[data-auth-view="register"] .is-auth-aside {
        position: sticky;
        top: 0;
        align-self: start;
        height: min(90vh, 760px);
        min-height: 0;
    }
}

.is-auth-brand {
    position: absolute;
    top: 2rem;
    left: 2rem;
    width: 120px;
    height: 38px;
    overflow: hidden;
}

.is-auth-brand img {
    position: absolute;
    top: -7px;
    left: -44px;
    width: 186px;
    max-width: none;
}

.is-auth-aside-kicker {
    color: var(--accent-light, #e4c96a);
    font: 800 0.66rem/1 var(--font-body, 'Inter', sans-serif);
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.is-auth-aside-title {
    max-width: 310px;
    margin-top: 0.9rem;
    font: 700 clamp(2rem, 4vw, 3.4rem)/0.98 var(--font-display, 'Outfit', sans-serif);
    letter-spacing: -0.04em;
}

.is-auth-aside-text {
    max-width: 330px;
    margin-top: 1rem;
    color: rgba(236, 232, 225, 0.62);
    font: 450 0.85rem/1.7 var(--font-body, 'Inter', sans-serif);
}

.is-auth-main {
    position: relative;
    padding: clamp(2rem, 4vw, 3.5rem);
    background: linear-gradient(180deg, var(--auth-black-raised) 0%, var(--auth-black) 100%);
}

.is-auth-close {
    position: absolute;
    z-index: 5;
    top: 1rem;
    right: 1rem;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    color: var(--text-muted, #777782);
    background: rgba(255, 255, 255, 0.025);
    transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.is-auth-close:hover {
    color: var(--accent-light, #e4c96a);
    border-color: rgba(228, 201, 106, 0.35);
    transform: rotate(90deg);
}

.is-auth-heading {
    margin-right: 2rem;
}

.is-auth-heading h2 {
    font: 720 clamp(1.8rem, 3vw, 2.5rem)/1.05 var(--font-display, 'Outfit', sans-serif);
    letter-spacing: -0.035em;
}

.is-auth-heading p {
    margin-top: 0.65rem;
    color: var(--text-muted, #777782);
    font: 450 0.83rem/1.6 var(--font-body, 'Inter', sans-serif);
}

.is-auth-tabs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.4rem;
    margin-top: 1.7rem;
    padding: 0.35rem;
    border: 1px solid var(--auth-line);
    border-radius: 14px;
    background: var(--auth-control-black);
}

.is-auth-tab {
    min-height: 42px;
    border-radius: 10px;
    color: var(--text-muted, #777782);
    font: 700 0.8rem/1 var(--font-body, 'Inter', sans-serif);
    transition: color 0.2s ease, background 0.2s ease;
}

.is-auth-tab[aria-selected="true"] {
    color: #09090c;
    background: linear-gradient(135deg, var(--accent, #c9a84c), var(--accent-light, #e4c96a));
    box-shadow: 0 8px 22px rgba(201, 168, 76, 0.18);
}

.is-auth-google,
.is-auth-apple {
    width: 100%;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.3rem;
    padding: 0.7rem 1rem;
    border: 1px solid var(--auth-line);
    border-radius: 13px;
    color: var(--text-primary, #ece8e1);
    background: var(--auth-control-black);
    font: 680 0.82rem/1 var(--font-body, 'Inter', sans-serif);
    transition: border-color 0.2s ease, background 0.2s ease;
}

.is-auth-google:hover {
    border-color: rgba(255, 255, 255, 0.24);
    background: var(--auth-control-hover);
}

.is-auth-apple {
    border-color: #fff;
    color: #050505;
    background: #fff;
    font-weight: 700;
}

.is-auth-apple:hover {
    border-color: #ddd;
    background: #f2f2f2;
}

.is-auth-google-logo {
    width: 19px;
    height: 19px;
}

.is-auth-apple-logo {
    width: 17px;
    height: 22px;
}

.is-auth-separator {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin: 1.2rem 0;
    color: var(--text-muted, #777782);
    font: 600 0.66rem/1 var(--font-body, 'Inter', sans-serif);
}

.is-auth-separator::before,
.is-auth-separator::after {
    content: '';
    height: 1px;
    flex: 1;
    background: rgba(255, 255, 255, 0.075);
}

.is-auth-form {
    display: grid;
    gap: 0.9rem;
}

.is-auth-form[hidden],
.is-auth-field[hidden],
.is-auth-google[hidden],
.is-auth-apple[hidden],
.is-auth-tabs[hidden],
.is-auth-separator[hidden] {
    display: none;
}

.is-auth-forgot,
.is-auth-back {
    width: fit-content;
    color: var(--accent-light, #e4c96a);
    font: 650 0.7rem/1.2 var(--font-body, 'Inter', sans-serif);
}

.is-auth-forgot {
    justify-self: end;
    margin-top: -0.25rem;
}

.is-auth-back {
    justify-self: center;
    margin-top: 0.15rem;
}

.is-auth-forgot:hover,
.is-auth-back:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.is-auth-field {
    display: grid;
    gap: 0.42rem;
}

.is-auth-field label {
    color: rgba(236, 232, 225, 0.76);
    font: 650 0.73rem/1.3 var(--font-body, 'Inter', sans-serif);
}

.is-auth-field input {
    width: 100%;
    min-height: 48px;
    padding: 0.8rem 0.95rem;
    border: 1px solid var(--auth-line);
    border-radius: 13px;
    outline: none;
    color: var(--text-primary, #ece8e1);
    caret-color: var(--accent-light, #e4c96a);
    background: var(--auth-control-black);
    font: 500 0.86rem/1.2 var(--font-body, 'Inter', sans-serif);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.is-auth-field input::placeholder {
    color: rgba(165, 162, 158, 0.42);
}

.is-auth-field input:focus {
    border-color: rgba(228, 201, 106, 0.65);
    background: var(--auth-control-black);
    box-shadow: 0 0 0 3px rgba(228, 201, 106, 0.08);
}

.is-auth-password-note {
    color: var(--text-muted, #777782);
    font: 450 0.67rem/1.45 var(--font-body, 'Inter', sans-serif);
}

.is-auth-consent {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    color: var(--text-muted, #777782);
    font: 450 0.7rem/1.5 var(--font-body, 'Inter', sans-serif);
}

.is-auth-consent-block {
    margin-top: 0.9rem;
    border: 1px solid transparent;
    border-radius: 13px;
    transition: padding 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.is-auth-consent--entry {
    margin-top: 0;
}

#isAuthRegisterForm > .is-auth-consent-block {
    grid-column: 1 / -1;
    margin-top: 0;
}

.is-auth-dialog:not([data-auth-view="register"]) .is-auth-consent-block {
    display: none;
}

.is-auth-consent input {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    margin-top: 0.14rem;
    accent-color: var(--accent, #c9a84c);
    transition: outline-color 0.2s ease, filter 0.2s ease;
}

.is-auth-consent a {
    color: var(--accent-light, #e4c96a);
    text-decoration: underline;
    text-underline-offset: 2px;
}

body:not(.kids-explorer-page) .is-auth-consent {
    color: #e8e6e1;
}

.is-auth-consent-block.is-auth-consent-invalid {
    padding: 0.72rem 0.78rem;
    border-color: rgba(255, 105, 105, 0.42);
    background:
        linear-gradient(135deg, rgba(130, 28, 28, 0.2), rgba(255, 92, 92, 0.055)),
        rgba(20, 4, 6, 0.72);
    box-shadow: 0 10px 28px rgba(84, 8, 14, 0.18), inset 0 1px rgba(255, 255, 255, 0.025);
}

.is-auth-consent-block.is-auth-consent-invalid .is-auth-consent input {
    outline: 2px solid rgba(255, 112, 112, 0.72);
    outline-offset: 2px;
    filter: drop-shadow(0 0 7px rgba(255, 92, 92, 0.32));
}

.is-auth-consent-error {
    display: flex;
    align-items: flex-start;
    gap: 0.52rem;
    margin-top: 0.62rem;
    color: #ffc0c0;
    font: 680 0.72rem/1.45 var(--font-body, 'Inter', sans-serif);
}

.is-auth-consent-error[hidden] {
    display: none;
}

.is-auth-consent-error-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    display: grid;
    place-items: center;
    margin-top: 0.02rem;
    border: 1px solid rgba(255, 139, 139, 0.54);
    border-radius: 50%;
    color: #fff1f1;
    background: rgba(255, 92, 92, 0.18);
    font: 800 0.68rem/1 var(--font-body, 'Inter', sans-serif);
}

.is-auth-consent-block.is-auth-consent-shake {
    animation: isAuthConsentShake 0.44s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes isAuthConsentShake {
    0%, 100% { transform: translateX(0); }
    18%, 54% { transform: translateX(-5px); }
    36%, 72% { transform: translateX(5px); }
    86% { transform: translateX(-2px); }
}

.is-auth-submit {
    width: 100%;
    min-height: 49px;
    margin-top: 0.15rem;
    padding: 0.75rem 1rem;
    border-radius: 13px;
    color: #09090c;
    background: linear-gradient(135deg, var(--accent, #c9a84c), var(--accent-light, #e4c96a));
    box-shadow: 0 12px 30px rgba(201, 168, 76, 0.18);
    font: 800 0.84rem/1 var(--font-body, 'Inter', sans-serif);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.is-auth-submit:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 16px 36px rgba(201, 168, 76, 0.27);
}

.is-auth-submit:disabled,
.is-auth-google:disabled,
.is-auth-apple:disabled,
.is-auth-tab:disabled {
    cursor: wait;
    opacity: 0.58;
}

.is-auth-status {
    margin-top: 1rem;
    padding: 0.8rem 0.9rem;
    border: 1px solid transparent;
    border-radius: 12px;
    font: 550 0.74rem/1.5 var(--font-body, 'Inter', sans-serif);
}

.is-auth-status[hidden] {
    display: none;
}

.is-auth-status[data-kind="success"] {
    color: #b8f2ce;
    border-color: rgba(72, 199, 116, 0.23);
    background: rgba(72, 199, 116, 0.08);
}

.is-auth-status[data-kind="error"] {
    color: #ffb5b5;
    border-color: rgba(255, 92, 92, 0.24);
    background: rgba(255, 92, 92, 0.08);
}

.is-auth-status[data-kind="info"] {
    color: #f0dda1;
    border-color: rgba(228, 201, 106, 0.24);
    background: rgba(228, 201, 106, 0.075);
}

.is-auth-resend {
    margin-top: 0.65rem;
    color: var(--accent-light, #e4c96a);
    font: 650 0.7rem/1 var(--font-body, 'Inter', sans-serif);
}

.is-auth-resend[hidden] {
    display: none;
}

.is-auth-noscript {
    margin: 1rem;
    padding: 1rem;
    color: #fff;
    background: #6b2020;
}

html.is-auth-modal-open,
html.is-auth-modal-open body {
    overflow: hidden;
}

.auth-utility-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 1.25rem;
    color: var(--text-primary, #ece8e1);
    background:
        radial-gradient(circle at 50% 0%, rgba(228, 201, 106, 0.16), transparent 38%),
        #050508;
}

.auth-utility-card {
    width: min(100%, 480px);
    padding: 2.5rem;
    border: 1px solid rgba(228, 201, 106, 0.24);
    border-radius: 24px;
    text-align: center;
    background: rgba(12, 12, 17, 0.92);
    box-shadow: 0 34px 100px rgba(0, 0, 0, 0.65);
}

.auth-utility-logo {
    position: relative;
    width: 128px;
    height: 40px;
    margin: 0 auto 1.5rem;
    overflow: hidden;
}

.auth-utility-logo img {
    position: absolute;
    top: -7px;
    left: -48px;
    width: 198px;
    max-width: none;
}

.auth-utility-spinner {
    width: 36px;
    height: 36px;
    margin: 0 auto 1.35rem;
    border: 2px solid rgba(228, 201, 106, 0.18);
    border-top-color: var(--accent-light, #e4c96a);
    border-radius: 50%;
    animation: isAuthSpin 0.85s linear infinite;
}

.auth-utility-spinner[hidden] {
    display: none;
}

@keyframes isAuthSpin { to { transform: rotate(360deg); } }

.auth-utility-card h1 {
    font: 720 1.75rem/1.15 var(--font-display, 'Outfit', sans-serif);
}

.auth-utility-card p {
    margin-top: 0.75rem;
    color: var(--text-muted, #777782);
    font: 450 0.85rem/1.65 var(--font-body, 'Inter', sans-serif);
}

.auth-utility-card a {
    display: inline-block;
    margin-top: 1.35rem;
    color: var(--accent-light, #e4c96a);
    font: 700 0.78rem/1 var(--font-body, 'Inter', sans-serif);
}

.auth-recovery-form {
    display: grid;
    gap: 0.9rem;
    margin-top: 1.5rem;
    text-align: left;
}

.auth-recovery-form[hidden] {
    display: none;
}

.auth-recovery-form .is-auth-status {
    margin-top: 0;
}

.is-auth-delete-dialog {
    width: min(92vw, 570px);
    height: fit-content;
    max-height: min(92vh, 760px);
    margin: auto;
    padding: 0;
    overflow: auto;
    border: 1px solid rgba(255, 106, 106, 0.32);
    border-radius: 24px;
    color: var(--text-primary, #ece8e1);
    background: #07070a;
    box-shadow: 0 38px 110px rgba(0, 0, 0, 0.78), 0 0 70px rgba(185, 45, 45, 0.09);
}

.is-auth-delete-dialog::backdrop {
    background: rgba(1, 1, 3, 0.86);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.is-auth-delete-card {
    position: relative;
    padding: clamp(1.5rem, 5vw, 2.7rem);
}

.is-auth-delete-card .is-auth-close {
    top: 1rem;
    right: 1rem;
}

.is-auth-delete-kicker {
    display: block;
    margin-bottom: 0.8rem;
    color: #f0c762;
    font: 800 0.63rem/1 var(--font-body, 'Inter', sans-serif);
    letter-spacing: 0.18em;
}

.is-auth-delete-card h2 {
    max-width: calc(100% - 2.5rem);
    font: 720 clamp(1.55rem, 5vw, 2.15rem)/1.08 var(--font-display, 'Outfit', sans-serif);
    letter-spacing: -0.03em;
}

.is-auth-delete-warning,
.is-auth-delete-subscription p,
.is-auth-delete-confirm > span {
    color: var(--text-muted, #e8e6e1);
    font: 500 0.82rem/1.6 var(--font-body, 'Inter', sans-serif);
}

.is-auth-delete-warning {
    margin-top: 0.9rem;
}

.is-auth-delete-subscription {
    margin-top: 1.1rem;
    padding: 1rem;
    border: 1px solid rgba(240, 199, 98, 0.24);
    border-radius: 14px;
    background: rgba(240, 199, 98, 0.065);
}

.is-auth-delete-subscription a {
    display: inline-block;
    margin-top: 0.65rem;
    color: #f0cf78;
    font: 700 0.74rem/1.3 var(--font-body, 'Inter', sans-serif);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.is-auth-delete-confirm {
    display: grid;
    gap: 0.5rem;
    margin-top: 1.2rem;
}

.is-auth-delete-confirm strong {
    color: #ffabab;
    letter-spacing: 0.08em;
}

.is-auth-delete-confirm input {
    width: 100%;
    min-height: 50px;
    padding: 0.8rem 0.95rem;
    border: 1px solid rgba(255, 110, 110, 0.24);
    border-radius: 13px;
    outline: none;
    color: #fff;
    background: #000;
    font: 650 0.9rem/1.2 var(--font-body, 'Inter', sans-serif);
}

.is-auth-delete-confirm input:focus {
    border-color: rgba(255, 126, 126, 0.65);
    box-shadow: 0 0 0 3px rgba(255, 92, 92, 0.09);
}

.is-auth-delete-actions {
    display: grid;
    grid-template-columns: 0.75fr 1.25fr;
    gap: 0.65rem;
    margin-top: 1.2rem;
}

.is-auth-delete-cancel,
.is-auth-delete-submit {
    min-height: 48px;
    padding: 0.75rem;
    border-radius: 13px;
    font: 750 0.76rem/1.25 var(--font-body, 'Inter', sans-serif);
}

.is-auth-delete-cancel {
    color: var(--text-muted, #e8e6e1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.035);
}

.is-auth-delete-submit {
    color: #fff;
    background: linear-gradient(135deg, #a6242d, #d64049);
    box-shadow: 0 12px 28px rgba(181, 39, 48, 0.2);
}

.is-auth-delete-submit:disabled {
    cursor: not-allowed;
    opacity: 0.42;
}

.is-auth-delete-dialog[data-state="success"] .is-auth-delete-kicker,
.is-auth-delete-dialog[data-state="success"] .is-auth-delete-warning,
.is-auth-delete-dialog[data-state="success"] .is-auth-delete-subscription,
.is-auth-delete-dialog[data-state="success"] .is-auth-delete-confirm,
.is-auth-delete-dialog[data-state="success"] .is-auth-delete-actions {
    display: none;
}

.is-auth-delete-dialog[data-state="success"] .is-auth-status {
    margin-top: 1rem;
}

.is-auth-close:focus-visible,
.is-auth-tab:focus-visible,
.is-auth-google:focus-visible,
.is-auth-apple:focus-visible,
.is-auth-submit:focus-visible,
.is-auth-resend:focus-visible,
.is-auth-forgot:focus-visible,
.is-auth-back:focus-visible,
.is-auth-user-trigger:focus-visible,
.is-auth-menu-action:focus-visible,
.is-auth-delete-dialog button:focus-visible,
.is-auth-delete-dialog input:focus-visible,
.auth-utility-card a:focus-visible {
    outline: 2px solid var(--accent-light, #e4c96a);
    outline-offset: 3px;
}

@media (max-width: 1360px) {
    .is-auth-user-label { display: none; }
    .is-auth-user-trigger { padding-right: 0.45rem; }
}

@media (max-width: 1150px) {
    .is-auth-nav { display: none; }
    .mobile-menu {
        justify-content: flex-start;
        gap: 0.85rem;
        padding: max(5rem, calc(env(safe-area-inset-top, 0px) + 4rem)) 1rem max(2rem, calc(env(safe-area-inset-bottom, 0px) + 1rem));
        overflow-y: auto;
    }
    .mobile-link { font-size: clamp(1.25rem, 4.5vw, 2rem); }
}

@media (max-width: 760px) {
    .is-auth-dialog[open] { animation: none; }
    .is-auth-dialog {
        --auth-safe-top: var(--app-safe-top, env(safe-area-inset-top, 0px));
        --auth-safe-right: var(--app-safe-right, env(safe-area-inset-right, 0px));
        --auth-safe-bottom: var(--app-safe-bottom, env(safe-area-inset-bottom, 0px));
        --auth-safe-left: var(--app-safe-left, env(safe-area-inset-left, 0px));
        --auth-masthead-height: calc(var(--auth-safe-top) + 66px);
        --auth-hero-height: clamp(202px, 23dvh, 224px);
        position: fixed;
        inset: 0;
        width: 100vw;
        height: 100vh;
        height: 100dvh;
        max-width: 100vw;
        max-height: 100vh;
        max-height: 100dvh;
        margin: 0;
        overflow: hidden;
        border: 0;
        border-radius: 0;
        background: #020304;
        box-shadow: none;
    }

    .is-auth-dialog[data-auth-view="register"] {
        --auth-hero-height: clamp(166px, 18dvh, 190px);
    }

    .is-auth-dialog::backdrop {
        background: #020304;
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }

    .is-auth-shell {
        width: 100%;
        height: 100%;
        min-height: 0;
        max-height: none;
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: var(--auth-masthead-height) var(--auth-hero-height) minmax(0, 1fr);
        overflow: hidden;
        background:
            radial-gradient(circle at 92% 12%, rgba(228, 201, 106, .08), transparent 27%),
            #020304;
    }

    .is-auth-mobile-masthead {
        position: relative;
        z-index: 4;
        grid-row: 1;
        display: flex;
        align-items: center;
        gap: 1rem;
        min-width: 0;
        padding:
            calc(var(--auth-safe-top) + .65rem)
            calc(var(--auth-safe-right) + 4.65rem)
            .65rem
            calc(var(--auth-safe-left) + 1rem);
        overflow: hidden;
        border-bottom: 1px solid rgba(231, 199, 110, .14);
        background:
            radial-gradient(ellipse at 48% -170%, rgba(234, 202, 110, .13), transparent 62%),
            linear-gradient(180deg, #07080a 0%, #030406 100%);
        box-shadow: 0 13px 30px rgba(0, 0, 0, .3), inset 0 1px rgba(255, 255, 255, .04);
    }

    .is-auth-mobile-masthead::before {
        content: none;
    }

    .is-auth-mobile-masthead::after {
        content: '';
        position: absolute;
        right: 0;
        bottom: -1px;
        left: 0;
        height: 1px;
        pointer-events: none;
        background: linear-gradient(90deg, transparent 0 8%, rgba(232, 197, 105, .65) 24%, rgba(232, 197, 105, .11) 58%, transparent 88%);
    }

    .is-auth-mobile-masthead-logo {
        position: relative;
        z-index: 1;
        flex: 0 0 118px;
        width: 118px;
        height: 34px;
        overflow: hidden;
    }

    .is-auth-mobile-masthead-logo img {
        position: absolute;
        top: -7px;
        left: -44px;
        width: 186px;
        max-width: none;
    }

    .is-auth-aside {
        grid-row: 2;
        height: 100%;
        min-height: 0;
        padding:
            3.85rem
            calc(var(--auth-safe-right) + 1.25rem)
            1.25rem
            calc(var(--auth-safe-left) + 1.25rem);
        justify-content: flex-end;
        border-right: 0;
        border-bottom: 1px solid rgba(228, 201, 106, .18);
        --auth-hero-background:
            linear-gradient(180deg, rgba(2,3,4,.08) 0%, rgba(2,3,4,.18) 37%, rgba(2,3,4,.92) 100%),
            linear-gradient(90deg, rgba(2,3,4,.74) 0%, rgba(2,3,4,.24) 57%, rgba(2,3,4,.05) 100%),
            url('../auth-cover-01.png') center 21% / cover no-repeat;
        box-shadow: inset 0 -26px 45px rgba(0,0,0,.28);
    }

    .is-auth-dialog[data-auth-view="register"] .is-auth-aside {
        --auth-hero-background:
            linear-gradient(180deg, rgba(2,3,4,.05) 0%, rgba(2,3,4,.18) 37%, rgba(2,3,4,.93) 100%),
            linear-gradient(90deg, rgba(2,3,4,.78) 0%, rgba(2,3,4,.28) 58%, rgba(2,3,4,.03) 100%),
            url('../auth-cover-03.png') center 33% / cover no-repeat;
    }

    .is-auth-aside::after {
        content: '';
        position: absolute;
        inset: 0;
        z-index: 0;
        pointer-events: none;
        opacity: .13;
        background-image:
            linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px),
            linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
        background-size: 42px 42px;
        -webkit-mask-image: linear-gradient(135deg, #000, transparent 58%);
        mask-image: linear-gradient(135deg, #000, transparent 58%);
    }

    .is-auth-brand {
        display: none;
    }

    .is-auth-aside-copy {
        width: min(72%, 285px);
        margin: 0;
        text-shadow: 0 3px 22px rgba(0, 0, 0, .74);
    }

    .is-auth-aside-kicker {
        font-size: .58rem;
        letter-spacing: .2em;
    }

    .is-auth-aside-title {
        margin-top: .62rem;
        font-size: clamp(1.55rem, 7vw, 1.9rem);
        line-height: 1;
    }

    .is-auth-aside-text { display: none; }

    .is-auth-close {
        position: absolute;
        z-index: 5;
        top: calc(var(--auth-safe-top) + .72rem);
        right: calc(var(--auth-safe-right) + .72rem);
        width: 44px;
        height: 44px;
        border-color: rgba(255, 255, 255, .14);
        color: #fff;
        background: rgba(3, 4, 6, .58);
        box-shadow: inset 0 1px rgba(255,255,255,.06), 0 10px 28px rgba(0,0,0,.28);
        -webkit-backdrop-filter: blur(14px);
        backdrop-filter: blur(14px);
    }

    .is-auth-main {
        grid-row: 3;
        min-height: 0;
        display: flex;
        flex-direction: column;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior-y: contain;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding:
            1.45rem
            calc(var(--auth-safe-right) + 1.15rem)
            calc(var(--auth-safe-bottom) + 1.55rem)
            calc(var(--auth-safe-left) + 1.15rem);
        scroll-padding-bottom: calc(var(--auth-safe-bottom) + 1.55rem);
        background:
            radial-gradient(circle at 85% 0%, rgba(228, 201, 106, .075), transparent 31%),
            radial-gradient(circle at 2% 86%, rgba(69, 83, 105, .065), transparent 34%),
            linear-gradient(180deg, #050608 0%, #020304 72%);
    }

    .is-auth-main::-webkit-scrollbar { display: none; }

    .is-auth-main::before {
        content: '';
        position: absolute;
        top: 0;
        left: 8%;
        width: 84%;
        height: 1px;
        pointer-events: none;
        background: linear-gradient(90deg, transparent, rgba(228,201,106,.24), transparent);
    }

    .is-auth-main-content {
        position: relative;
        z-index: 1;
        width: min(100%, 450px);
        flex: 0 0 auto;
        margin-inline: auto;
    }

    .is-auth-dialog[data-auth-view="login"] .is-auth-main-content {
        margin-top: auto;
        margin-bottom: 0;
        padding-block: 0;
        inset-block-start: 0;
    }

    .is-auth-dialog[data-auth-view="register"] .is-auth-main {
        padding-top: 1.15rem;
        padding-bottom: calc(var(--auth-safe-bottom) + .75rem);
    }

    .is-auth-heading { margin-right: 0; }

    .is-auth-heading h2 {
        font-size: clamp(1.65rem, 7vw, 1.95rem);
        line-height: 1.04;
    }

    .is-auth-heading p {
        margin-top: .45rem;
        color: rgba(238, 233, 223, .46);
        font-size: .76rem;
        line-height: 1.45;
    }

    .is-auth-tabs {
        gap: .28rem;
        margin-top: 1.15rem;
        padding: .3rem;
        border-color: rgba(255,255,255,.09);
        border-radius: 15px;
        background: rgba(0,0,0,.52);
        box-shadow: inset 0 1px rgba(255,255,255,.025);
    }

    .is-auth-tab {
        min-height: 43px;
        border-radius: 11px;
        color: rgba(236, 231, 222, .42);
        font-size: .76rem;
    }

    .is-auth-tab[aria-selected="true"] {
        background: linear-gradient(135deg, #d3ad45, #efd16f);
        box-shadow: 0 9px 24px rgba(201,168,76,.17), inset 0 1px rgba(255,255,255,.26);
    }

    .is-auth-google,
    .is-auth-apple {
        min-height: 49px;
        margin-top: .9rem;
        border-color: rgba(255,255,255,.09);
        border-radius: 14px;
        background: rgba(0,0,0,.5);
    }

    .is-auth-apple {
        border-color: #fff;
        background: #fff;
    }

    .is-auth-separator {
        margin: .9rem 0;
        color: rgba(236, 231, 222, .31);
        font-size: .61rem;
    }

    .is-auth-form { gap: .72rem; }
    .is-auth-field { gap: .34rem; }

    .is-auth-field label {
        color: rgba(239,235,226,.68);
        font-size: .7rem;
    }

    .is-auth-field input {
        min-height: 50px;
        padding: .76rem .92rem;
        border-color: rgba(255,255,255,.09);
        border-radius: 14px;
        background: rgba(0,0,0,.58);
        font-size: 1rem;
    }

    .is-auth-field input:focus {
        border-color: rgba(228,201,106,.7);
        box-shadow: 0 0 0 3px rgba(228,201,106,.08), 0 12px 30px rgba(0,0,0,.16);
    }

    .is-auth-field input::placeholder { color: rgba(213, 208, 198, .37); }

    .is-auth-submit {
        min-height: 50px;
        border-radius: 14px;
        background: linear-gradient(135deg, #d2ab42, #efd170);
        box-shadow: 0 14px 32px rgba(201,168,76,.17);
    }

    .is-auth-dialog[data-auth-view="register"] .is-auth-heading h2 { font-size: 1.58rem; }
    .is-auth-dialog[data-auth-view="register"] .is-auth-heading p { margin-top: .35rem; }
    .is-auth-dialog[data-auth-view="register"] .is-auth-tabs { margin-top: .9rem; }
    .is-auth-dialog[data-auth-view="register"] .is-auth-google,
    .is-auth-dialog[data-auth-view="register"] .is-auth-apple { margin-top: .75rem; }
    .is-auth-dialog[data-auth-view="register"] .is-auth-separator { margin: .72rem 0; }
    .is-auth-dialog[data-auth-view="register"] .is-auth-form { gap: .6rem; }
    .is-auth-dialog[data-auth-view="register"] .is-auth-field { gap: .28rem; }
    .is-auth-dialog[data-auth-view="register"] .is-auth-field input { min-height: 48px; }

    .is-auth-password-note {
        color: rgba(226, 220, 209, .38);
        font-size: .62rem;
        line-height: 1.35;
    }

    .is-auth-consent {
        gap: .55rem;
        color: rgba(226, 220, 209, .42);
        font-size: .65rem;
        line-height: 1.4;
    }

    .is-auth-consent-block.is-auth-consent-invalid {
        padding: .68rem .72rem;
    }

    .is-auth-consent-error {
        gap: .48rem;
        margin-top: .56rem;
        font-size: .68rem;
        line-height: 1.42;
    }

    .is-auth-consent > span,
    .is-auth-status {
        min-width: 0;
        overflow-wrap: anywhere;
    }

}

@media (max-width: 560px) {
    .is-auth-delete-dialog {
        width: calc(100vw - 1.5rem);
        max-height: calc(100dvh - 1.5rem);
        border-radius: 20px;
    }

    .is-auth-delete-actions {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) and (max-height: 700px) {
    .is-auth-dialog { --auth-hero-height: 122px; }
    .is-auth-dialog[data-auth-view="register"] { --auth-hero-height: 104px; }
    .is-auth-aside {
        padding-bottom: .75rem;
        background-position: center 20%;
    }
    .is-auth-dialog[data-auth-view="register"] .is-auth-aside { background-position: center 32%; }
    .is-auth-aside-kicker { display: none; }
    .is-auth-aside-title { max-width: 60%; margin-top: 0; font-size: 1.2rem; }
    .is-auth-dialog[data-auth-view="login"] .is-auth-main-content { margin-block: 0; padding-block: 0; inset-block-start: 0; }
    .is-auth-legal-footer { margin-top: .7rem; }
    .is-auth-main { padding-top: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
    .is-auth-dialog[open] { animation: none; }
    .is-auth-aside::before { transition: none; }
    .is-auth-consent-block.is-auth-consent-shake { animation: none; }
    .is-auth-trigger,
    .is-auth-user-trigger,
    .is-auth-close,
    .is-auth-submit,
    .is-auth-mobile { transition: none; }
}

/* The account is a full page, shared by the website and native app. */
.is-auth-profile-dialog {
    --font-body: 'Inter', sans-serif;
    --font-display: 'Outfit', 'Inter', sans-serif;
    position: fixed;
    inset: 0;
    width: 100vw;
    max-width: none;
    height: 100vh;
    height: 100dvh;
    max-height: none;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 0;
    border-radius: 0;
    color: #e8e6e1;
    background: #11100e;
    box-shadow: none;
    font: 400 14px/1.6 var(--font-body);
    scrollbar-width: thin;
    scrollbar-color: #605b48 transparent;
    color-scheme: dark;
}

.is-auth-profile-dialog::backdrop {
    background: #11100e;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.is-auth-profile-content { min-height: 100%; }
.is-auth-profile-dialog,
.is-auth-profile-dialog * { box-sizing: border-box; }
.is-auth-profile-dialog :where(h2, h3, h4, p) { margin: 0; }
.is-auth-profile-dialog button { cursor: pointer; font: inherit; }
.is-auth-profile-dialog button:disabled { cursor: wait; opacity: .55; }
.is-auth-profile-dialog svg { width: 22px; height: 22px; flex: 0 0 auto; }
.is-auth-profile-dialog [hidden] { display: none !important; }
.is-auth-profile-header {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: calc(84px + var(--app-safe-top, env(safe-area-inset-top, 0px)));
    padding-block: calc(20px + var(--app-safe-top, env(safe-area-inset-top, 0px))) 20px;
    padding-inline-start: max(24px, calc((100% - 960px) / 2), var(--app-safe-left, env(safe-area-inset-left, 0px)));
    padding-inline-end: max(24px, calc((100% - 960px) / 2), var(--app-safe-right, env(safe-area-inset-right, 0px)));
    background: #11100e;
}
.is-auth-profile-header h2 { min-width: 0; margin-inline-end: auto; color: #e8e6e1; font: 500 22px/1.35 var(--font-display); letter-spacing: -.015em; }
.is-auth-profile-close,
.is-auth-profile-back {
    display: grid;
    place-items: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(232, 230, 225, .1);
    border-radius: 14px;
    color: #e8e6e1;
    background: #211f1b;
}
.is-auth-profile-body {
    width: 100%;
    max-width: 1008px;
    margin-inline: auto;
    padding: 24px 24px calc(48px + var(--app-safe-bottom, env(safe-area-inset-bottom, 0px)));
    padding-inline-start: max(24px, var(--app-safe-left, env(safe-area-inset-left, 0px)));
    padding-inline-end: max(24px, var(--app-safe-right, env(safe-area-inset-right, 0px)));
}
.is-auth-profile-identity { display: grid; justify-items: center; gap: 24px; max-width: 640px; margin-inline: auto; padding: 4px 0 48px; text-align: center; }
.is-auth-profile-identity-info { min-width: 0; width: 100%; }
.is-auth-profile-identity > .is-auth-profile-avatar-wrap { width: 100px; height: 100px; margin: 0; }
.is-auth-profile-identity .is-auth-profile-avatar { width: 96px; height: 96px; font-size: 36px; }
.is-auth-profile-identity .is-auth-profile-avatar-edit { width: 34px; height: 34px; border-width: 3px; }
.is-auth-profile-identity .is-auth-profile-avatar-edit svg { width: 15px; height: 15px; }
.is-auth-profile-avatar-wrap {
    position: relative;
    display: grid;
    place-items: center;
    width: 100px;
    height: 100px;
    margin-bottom: 16px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: #e4c66d;
    background: transparent;
}
.is-auth-profile-avatar {
    position: relative;
    display: grid;
    place-items: center;
    width: 96px;
    height: 96px;
    overflow: hidden;
    border: 1px solid rgba(228, 198, 109, .28);
    border-radius: 50%;
    color: #faf9f5;
    background: #006299;
    font: 400 34px/1 var(--font-display);
}
.is-auth-profile-avatar span { display: grid; place-items: center; }
.is-auth-profile-avatar svg { width: 30px; height: 30px; }
.is-auth-profile-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.is-auth-profile-avatar-edit {
    position: absolute;
    inset-inline-end: -1px;
    bottom: 1px;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 3px solid #11100e;
    border-radius: 50%;
    color: #211c0e;
    background: #e4c66d;
}
.is-auth-profile-avatar-edit svg { width: 16px; height: 16px; }
.is-auth-profile-identity h3 { max-width: 100%; overflow-wrap: anywhere; color: #e8e6e1; font: 500 clamp(30px, 4vw, 36px)/1.3 var(--font-display); letter-spacing: -.015em; }
.is-auth-profile-identity p { max-width: 100%; margin-top: 12px; overflow-wrap: anywhere; color: #e8e6e1; font-size: 13px; font-weight: 400; line-height: 1.8; }
.is-auth-profile-tag { display: inline-flex; align-items: center; margin-bottom: 16px; padding: 6px 10px; border-radius: 8px; color: #e4c66d; background: #e4c66d14; font-size: 10px; font-weight: 500; line-height: 1.5; letter-spacing: .04em; }
.is-auth-profile-edit { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; margin-top: 20px; padding: 11px 20px; border: 1px solid #e4c66d38; border-radius: 24px; color: #e4c66d; background: transparent; font-size: 12px !important; font-weight: 500 !important; }
.is-auth-profile-edit svg { width: 16px; height: 16px; }
.is-auth-profile-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 24px; margin-bottom: 18px; }
.is-auth-profile-membership,
.is-auth-profile-payment { min-width: 0; padding: 28px; border: 1px solid rgba(232, 230, 225, .12); border-radius: 16px; background: #181714; }
.is-auth-profile-membership { border-color: #e4c66d38; background: radial-gradient(ellipse at 100% 0%, #a582241a, transparent 65%), #1c1913; }
.is-auth-profile-card-head { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }
.is-auth-profile-card-head > div:not(.is-auth-profile-card-icon) { min-width: 0; flex: 1; }
.is-auth-profile-card-head h4 { color: #e8e6e1; font: 500 17px/1.4 var(--font-display); letter-spacing: -.01em; }
.is-auth-profile-card-head p { margin-top: 5px; color: #e8e6e1; font-size: 12px; line-height: 1.6; }
.is-auth-profile-card-icon { display: grid; place-items: center; flex: 0 0 40px; width: 40px; height: 40px; border: 1px solid #e4c66d24; border-radius: 12px; color: #e4c66d; background: #e4c66d08; }
.is-auth-profile-card-icon svg { width: 20px; height: 20px; }
.is-auth-profile-membership-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.is-auth-profile-membership-label { color: #e8e6e1; font-size: 11px; font-weight: 500; line-height: 1.5; letter-spacing: .1em; text-transform: uppercase; }
.is-auth-profile-example { display: inline-flex; align-items: center; padding: 5px 9px; border: 1px solid #e4c66d30; border-radius: 7px; color: #e4c66d; font-size: 10px; font-weight: 400; line-height: 1.4; }
.is-auth-profile-membership-status { display: inline-flex; max-width: 100%; padding: 6px 10px; border: 1px solid #e4c66d30; border-radius: 8px; color: #e4c66d; font-size: 11px; line-height: 1.5; overflow-wrap: anywhere; }
.is-auth-profile-membership > .is-auth-profile-membership-status,
.is-auth-profile-plan-summary .is-auth-profile-membership-status { margin-top: 12px; }
.is-auth-profile-payment-note,
.is-auth-profile-payment-help { color: #e8e6e1; font-size: 13px; line-height: 1.8; }
.is-auth-profile-payment-note { margin-top: 20px !important; }
.is-auth-profile-payment-design { width: 100%; max-width: 560px; margin: 12px auto 0; }
.is-auth-profile-payment-explanation { margin-top: 28px !important; color: #e8e6e1; font-size: 15px; line-height: 1.8; }
.is-auth-profile-payment-fields { display: grid; gap: 22px; margin-top: 28px; }
.is-auth-profile-payment-fields > div { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.is-auth-profile-payment-fields label { display: grid; gap: 9px; min-width: 0; color: #e8e6e1; font-size: 13px; font-weight: 500; line-height: 1.5; }
.is-auth-profile-payment-fields input { box-sizing: border-box; width: 100%; min-width: 0; min-height: 50px; padding: 13px 14px; border: 1px solid #e8e6e12c; border-radius: 8px; color: #e8e6e1; background: #1a1916; font: inherit; font-size: 14px; font-weight: 400; }
.is-auth-profile-payment-fields input::placeholder { color: #e8e6e1; opacity: .65; }
.is-auth-profile-payment-design .is-auth-profile-editor-actions { margin-top: 28px; }
.is-auth-profile-payment-design .is-auth-profile-primary,
.is-auth-profile-payment-design .is-auth-profile-secondary { min-height: 46px; border-radius: 8px; font-size: 13px !important; }
.is-auth-profile-dialog[data-profile-view="subscription-cancel"] .is-auth-profile-primary { border-color: #e8e6e145; background: #e8e6e1; color: #17150f; }
.is-auth-profile-payment-help { margin-top: 24px !important; font-size: 12px; }
.is-auth-profile-dialog .is-auth-profile-manage-button { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; gap: 6px; min-height: 40px; padding: 8px 15px; border: 1px solid #e8e6e142; border-radius: 8px; color: #e8e6e1; background: transparent; font: 500 12px/1.5 'Outfit', 'Inter', sans-serif; white-space: nowrap; }
.is-auth-profile-manage-button svg { width: 14px; height: 14px; }
.is-auth-profile-method { position: relative; display: flex; align-items: center; gap: 14px; min-width: 0; }
.is-auth-profile-method-icon { display: grid; place-items: center; flex: 0 0 46px; width: 46px; height: 36px; border: 1px solid #e8e6e130; border-radius: 6px; color: #e4c66d; background: #e8e6e107; }
.is-auth-profile-method-icon svg { width: 23px; height: 23px; }
.is-auth-profile-method-copy { display: grid; gap: 5px; min-width: 0; flex: 1; }
.is-auth-profile-method-copy strong { color: #e8e6e1; font: 500 14px/1.5 'Outfit', 'Inter', sans-serif; overflow-wrap: anywhere; }
.is-auth-profile-method-copy small { color: #e8e6e1; font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; }
.is-auth-profile-method-meta { display: grid; flex: 0 0 auto; gap: 5px; color: #e8e6e1; font-size: 12px; font-variant-numeric: tabular-nums; line-height: 1.7; text-align: end; }
.is-auth-profile-method-meta > :first-child { letter-spacing: .14em; }
.is-auth-profile-manager { width: 100%; max-width: 620px; margin: 8px auto 0; }
.is-auth-profile-manager-intro,
.is-auth-profile-design-heading { display: grid; gap: 12px; margin-bottom: 32px; }
.is-auth-profile-manager-intro h3,
.is-auth-profile-design-heading h3 { color: #e8e6e1; font: 600 clamp(25px, 6.4vw, 30px)/1.3 'Outfit', 'Inter', sans-serif; letter-spacing: -.025em; }
.is-auth-profile-manager-intro p,
.is-auth-profile-design-heading p { max-width: 52ch; color: #e8e6e1; font-size: 14px; line-height: 1.8; }
.is-auth-profile-plan-summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px; border: 1px solid #e4c66d38; border-radius: 14px; background: radial-gradient(ellipse at 100% 0%, #a582241a, transparent 65%), #1c1913; }
.is-auth-profile-plan-summary .is-auth-profile-plan { font-size: clamp(26px, 7vw, 34px); }
.is-auth-profile-plan-price { display: grid; gap: 4px; flex: 0 0 auto; color: #e8e6e1; text-align: end; }
.is-auth-profile-plan-price strong { color: #e8e6e1; font: 600 23px/1.2 'Outfit', 'Inter', sans-serif; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.is-auth-profile-plan-price span { color: #e8e6e1; font-size: 12px; line-height: 1.7; }
.is-auth-profile-manager-facts { display: grid; gap: 18px; margin: 28px 0 36px; }
.is-auth-profile-manager-facts > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: baseline; gap: 16px; min-width: 0; }
.is-auth-profile-manager-facts dt { min-width: 0; color: #e8e6e1; font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; }
.is-auth-profile-manager-facts dd { min-width: 0; margin: 0; color: #e8e6e1; font-size: 13px; font-weight: 500; line-height: 1.7; font-variant-numeric: tabular-nums; text-align: end; overflow-wrap: anywhere; }
.is-auth-profile-manager-section { padding: 24px; border: 1px solid #e8e6e124; border-radius: 12px; background: #181714; }
.is-auth-profile-manager-section > header { display: grid; gap: 8px; margin-bottom: 24px; }
.is-auth-profile-manager-section h4 { color: #e8e6e1; font: 500 17px/1.4 'Outfit', 'Inter', sans-serif; letter-spacing: -.015em; }
.is-auth-profile-manager-section > header p { color: #e8e6e1; font-size: 13px; line-height: 1.8; }
.is-auth-profile-manager-section + div.is-auth-profile-manager-section { margin-top: 24px; padding: 0; border: 0; border-radius: 0; background: transparent; }
.is-auth-profile-manager-section + div.is-auth-profile-manager-section > .is-auth-profile-secondary { min-height: 44px; border-radius: 8px; font-size: 12px !important; }
.is-auth-profile-method-menu { position: relative; flex: 0 0 auto; align-self: center; }
.is-auth-profile-method-menu > summary { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 8px 12px; border: 1px solid #e8e6e138; border-radius: 8px; color: #e8e6e1; background: transparent; cursor: pointer; font-size: 12px; font-weight: 500; line-height: 1.5; list-style: none; white-space: nowrap; }
.is-auth-profile-method-menu > summary::-webkit-details-marker { display: none; }
.is-auth-profile-method-menu > summary svg { width: 14px; height: 14px; }
.is-auth-profile-method-menu[open] > summary { border-color: #e4c66d70; background: #e4c66d0c; }
.is-auth-profile-method-options { position: absolute; z-index: 3; inset-inline-end: 0; top: calc(100% + 8px); display: grid; width: max-content; min-width: 188px; max-width: min(280px, calc(100vw - 48px)); padding: 6px; border: 1px solid #e8e6e12c; border-radius: 10px; background: #24221c; box-shadow: 0 12px 30px #00000045; }
.is-auth-profile-dialog .is-auth-profile-method-options button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 10px 12px; border: 0; border-radius: 6px; color: #e8e6e1; background: transparent; font: 400 13px/1.6 'Outfit', 'Inter', sans-serif; text-align: start; }
.is-auth-profile-method-options button svg { width: 17px; height: 17px; }
.is-auth-profile-cancel-section { display: grid; justify-items: start; gap: 14px; margin-top: 36px; }
.is-auth-profile-cancel-section h4 { color: #e8e6e1; font: 500 15px/1.5 'Outfit', 'Inter', sans-serif; }
.is-auth-profile-cancel-section p { max-width: 50ch; color: #e8e6e1; font-size: 13px; line-height: 1.8; }
.is-auth-profile-dialog .is-auth-profile-cancel-section button { min-height: 44px; padding: 9px 0; border: 0; border-radius: 4px; color: #e8e6e1; background: transparent; font: 500 13px/1.6 'Outfit', 'Inter', sans-serif; text-align: start; text-decoration: underline; text-underline-offset: 4px; }
.is-auth-profile-order-summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 0 0 28px; padding: 18px 20px; border: 1px solid #e8e6e124; border-radius: 10px; color: #e8e6e1; background: #1a1814; }
.is-auth-profile-order-summary span { color: #e8e6e1; font: 500 16px/1.5 'Outfit', 'Inter', sans-serif; }
.is-auth-profile-order-summary strong { flex: 0 0 auto; color: #e4c66d; font: 500 14px/1.5 'Outfit', 'Inter', sans-serif; font-variant-numeric: tabular-nums; }
.is-auth-profile-input-icon { position: relative; display: block; }
.is-auth-profile-input-icon > svg { position: absolute; inset-inline-start: 14px; top: 50%; width: 20px; height: 20px; color: #e4c66d; pointer-events: none; transform: translateY(-50%); }
.is-auth-profile-input-icon input { padding-inline-start: 44px; }
.is-auth-profile-payment-review { display: grid; gap: 20px; margin: 28px 0; }
.is-auth-profile-payment-review > div { display: flex; align-items: start; gap: 14px; min-width: 0; }
.is-auth-profile-payment-review > div > svg { width: 22px; height: 22px; margin-top: 2px; color: #e4c66d; }
.is-auth-profile-payment-review > div > div { display: grid; gap: 6px; min-width: 0; }
.is-auth-profile-payment-review strong { color: #e8e6e1; font: 500 14px/1.6 'Outfit', 'Inter', sans-serif; }
.is-auth-profile-payment-review span { color: #e8e6e1; font-size: 13px; line-height: 1.8; }
.is-auth-profile-design-notice { display: flex; align-items: start; gap: 10px; margin-top: 28px !important; padding: 15px 18px; border-radius: 8px; color: #e8e6e1; background: #e4c66d0a; font-size: 12px; line-height: 1.8; }
.is-auth-profile-design-notice > svg { width: 18px; height: 18px; margin-top: 2px; color: #e4c66d; }
.is-auth-profile-plan { min-width: 0; color: #e8e6e1; font-family: 'Outfit', 'Inter', sans-serif; font-size: clamp(30px, 9.2vw, 42px); font-weight: 700; line-height: 1.08; letter-spacing: -.6px; }
.is-auth-profile-plan > span { color: #e4c66d; font-weight: inherit; }
.is-auth-profile-plan-note { max-width: 36ch; margin-top: 16px !important; color: #e8e6e1; font-size: 13px; font-weight: 400; line-height: 1.8; }
.is-auth-profile-facts { display: grid; gap: 16px; margin: 28px 0 0; }
.is-auth-profile-facts > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: baseline; gap: 14px; min-width: 0; }
.is-auth-profile-facts dt { color: #e8e6e1; font-size: 11px; font-weight: 400; line-height: 1.7; overflow-wrap: anywhere; }
.is-auth-profile-facts dd { min-width: 0; margin: 0; color: #e8e6e1; font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums; line-height: 1.7; text-align: end; overflow-wrap: anywhere; }
.is-auth-profile-facts > div:last-child dd { color: #e4c66d; }
.is-auth-profile-card-preview { display: grid; gap: 28px; padding: 22px; border: 1px solid #e4c66d38; border-radius: 16px; color: #e8e6e1; background: radial-gradient(ellipse at 0% 0%, #af934733, transparent 78%), linear-gradient(135deg, #302a1e, #1b1914); box-shadow: 0 8px 20px #00000020; }
.is-auth-profile-card-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.is-auth-profile-card-chip { display: inline-flex; color: #d6bd78; }
.is-auth-profile-card-chip svg { width: 34px; height: 28px; stroke-width: 1; }
.is-auth-profile-card-brand { color: #e4c66d; font: italic 700 19px/1 'Inter', sans-serif; letter-spacing: .035em; }
.is-auth-profile-card-number { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; color: #e8e6e1; font: 500 clamp(15px, 4.2vw, 19px)/1.3 'Inter', sans-serif; font-variant-numeric: tabular-nums; letter-spacing: .12em; }
.is-auth-profile-card-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; color: #e8e6e1; font-size: 11px; line-height: 1.5; }
.is-auth-profile-card-meta span { min-width: 0; overflow-wrap: anywhere; }
.is-auth-profile-demo-note { max-width: 60ch; margin: 0 0 40px !important; color: #e8e6e1; font-size: 11px; line-height: 1.8; }
.is-auth-profile-welcome { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 24px; }
.is-auth-profile-primary,
.is-auth-profile-secondary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 16px; border-radius: 14px; font-weight: 600 !important; }
.is-auth-profile-primary { color: #17150d; border: 1px solid #e4c66d; background: #e4c66d; }
.is-auth-profile-secondary { color: #e8e6e1; border: 1px solid rgba(232, 230, 225, .14); background: #211f1b; }
.is-auth-profile-downloads { margin-bottom: 40px; border: 1px solid rgba(228, 198, 109, .2); border-radius: 24px; background: #201e18; }
.is-auth-profile-section h4 { margin-bottom: 22px; color: #e8e6e1; font: 500 18px/1.4 var(--font-display); letter-spacing: -.025em; }
.is-auth-profile-group { display: grid; gap: 16px; }
.is-auth-profile-row { display: flex; align-items: center; gap: 18px; width: 100%; min-height: 100px; padding: 24px; border: 1px solid #e8e6e114; border-radius: 24px; color: #e8e6e1; background: #1b1915; text-align: start; }
.is-auth-profile-downloads .is-auth-profile-row { border: 0; background: transparent; }
.is-auth-profile-row-icon { display: grid; place-items: center; width: 36px; height: 36px; flex: 0 0 36px; border-radius: 10px; color: #e8e6e1; background: rgba(232, 230, 225, .035); }
.is-auth-profile-downloads .is-auth-profile-row-icon { color: #e4c66d; }
.is-auth-profile-row-copy { display: grid; gap: 10px; min-width: 0; flex: 1; }
.is-auth-profile-row-copy strong { color: #e8e6e1; font: 500 14px/1.5 var(--font-body); letter-spacing: -.01em; }
.is-auth-profile-row-copy small { color: #e8e6e1; font-size: 12px; font-weight: 400; line-height: 1.75; }
.is-auth-profile-row-arrow { display: grid; place-items: center; flex: 0 0 16px; }
.is-auth-profile-row-arrow svg { width: 16px; height: 16px; }
.is-auth-profile-status { margin-top: 16px; padding: 14px; border-radius: 12px; color: #e8e6e1; background: #2e2220; font-size: 13px; overflow-wrap: anywhere; }
.is-auth-profile-footer { padding-top: 48px; text-align: center; }
.is-auth-profile-footer nav { display: flex; flex-wrap: wrap; justify-content: center; column-gap: 26px; row-gap: 12px; }
.is-auth-profile-footer a { display: inline-flex; align-items: center; min-height: 44px; color: #e8e6e1; text-decoration: none; font-size: 12px; }
.is-auth-profile-delete { min-height: 44px; margin-top: 24px; padding: 8px 16px; border: 0; border-radius: 12px; color: #e8e6e1; background: transparent; font-size: 12px !important; text-decoration: underline; text-underline-offset: 4px; }
.is-auth-profile-editor { width: 100%; max-width: 520px; margin-inline: auto; }
.is-auth-profile-editor-subtitle { margin-bottom: 24px !important; color: #e8e6e1; font-size: 14px; line-height: 1.7; text-align: center; }
.is-auth-profile-editor > .is-auth-profile-avatar-wrap { margin: 8px auto 18px; }
.is-auth-profile-photo-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin-bottom: 28px; }
.is-auth-profile-photo-actions button { min-height: 44px; padding-block: 10px; font-size: 13px; }
.is-auth-profile-photo-remove { padding-inline: 14px; border: 0; border-radius: 12px; color: #e8e6e1; background: transparent; }
.is-auth-profile-field { display: grid; gap: 8px; margin-bottom: 20px; }
.is-auth-profile-field label { color: #e8e6e1; font-weight: 500; }
.is-auth-profile-field input { width: 100%; min-height: 52px; padding: 13px 15px; border: 1px solid rgba(232, 230, 225, .2); border-radius: 12px; color: #e8e6e1; background: #1b1915; font: inherit; font-size: 16px; }
.is-auth-profile-field input::placeholder { color: #e8e6e1; opacity: .75; }
.is-auth-profile-field input[readonly] { color: #e8e6e1; background: #171613; }
.is-auth-profile-editor-note { margin: 0 0 24px !important; color: #e8e6e1; font-size: 13px; line-height: 1.7; }
.is-auth-profile-editor-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 28px; }
.is-auth-profile-dialog :is(button, a, input, summary):focus-visible { outline: 2px solid #e4c66d; outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) {
    .is-auth-profile-row:hover,
    .is-auth-profile-close:hover,
    .is-auth-profile-back:hover,
    .is-auth-profile-edit:hover { background: rgba(232, 230, 225, .06); }
    .is-auth-profile-primary:hover { background: #ecd27e; }
    .is-auth-profile-secondary:hover { background: #2a271f; }
    .is-auth-profile-manage-button:hover,
    .is-auth-profile-method-menu > summary:hover,
    .is-auth-profile-method-options button:hover { background: #e8e6e10b; }
    .is-auth-profile-cancel-section button:hover { color: #e4c66d; }
    .is-auth-profile-footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
}
@media (max-width: 680px) {
    .is-auth-profile-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .is-auth-profile-membership { padding: 24px; }
    .is-auth-profile-payment { padding: 24px; }
    .is-auth-profile-identity h3 { font-size: 30px; }
    .is-auth-profile-payment .is-auth-profile-card-head { gap: 12px; }
}
@media (max-width: 420px) {
    .is-auth-profile-membership,
    .is-auth-profile-payment { padding: 22px; }
    .is-auth-profile-plan-summary { gap: 16px; padding: 22px 20px; }
    .is-auth-profile-plan-summary .is-auth-profile-plan { font-size: 26px; }
    .is-auth-profile-plan-price strong { font-size: 20px; }
    .is-auth-profile-manager-section { padding: 20px; }
    .is-auth-profile-manager .is-auth-profile-method { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; column-gap: 12px; row-gap: 4px; }
    .is-auth-profile-manager .is-auth-profile-method-icon { grid-column: 1; grid-row: 1 / span 2; width: 42px; }
    .is-auth-profile-manager .is-auth-profile-method-copy { grid-column: 2; grid-row: 1; }
    .is-auth-profile-manager .is-auth-profile-method-meta { grid-column: 2; grid-row: 2; display: flex; flex-wrap: wrap; gap: 10px; text-align: start; }
    .is-auth-profile-manager .is-auth-profile-method-menu,
    .is-auth-profile-manager .is-auth-profile-method > .is-auth-profile-manage-button { grid-column: 3; grid-row: 1 / span 2; }
    .is-auth-profile-manager .is-auth-profile-method-menu > summary,
    .is-auth-profile-manager .is-auth-profile-method > .is-auth-profile-manage-button { padding-inline: 10px; }
    .is-auth-profile-order-summary { gap: 12px; padding-inline: 16px; }
    .is-auth-profile-order-summary span { font-size: 15px; }
    .is-auth-profile-order-summary strong { font-size: 13px; }
}
@media (max-width: 420px) and (max-height: 620px) {
    .is-auth-profile-method-options { top: auto; bottom: calc(100% + 8px); }
}
@media (max-width: 359px) {
    .is-auth-profile-header,
    .is-auth-profile-body { padding-inline-start: max(20px, var(--app-safe-left, env(safe-area-inset-left, 0px))); padding-inline-end: max(20px, var(--app-safe-right, env(safe-area-inset-right, 0px))); }
    .is-auth-profile-header { gap: 10px; }
    .is-auth-profile-header h2 { font-size: 17px; }
    .is-auth-profile-dialog[data-profile-view="payment-manage"] .is-auth-profile-header h2,
    .is-auth-profile-dialog[data-profile-view="membership-manage"] .is-auth-profile-header h2,
    .is-auth-profile-dialog[data-profile-view="payment-change"] .is-auth-profile-header h2,
    .is-auth-profile-dialog[data-profile-view="payment-remove"] .is-auth-profile-header h2,
    .is-auth-profile-dialog[data-profile-view="subscription-cancel"] .is-auth-profile-header h2 { font-size: 16px; }
    .is-auth-profile-membership,
    .is-auth-profile-payment { padding: 22px; }
    .is-auth-profile-card-head h4 { font-size: 16px; }
    .is-auth-profile-identity h3 { font-size: 27px; }
    .is-auth-profile-facts > div { gap: 10px; }
    .is-auth-profile-dialog .is-auth-profile-manage-button { padding-inline: 12px; }
    .is-auth-profile-card-head { gap: 10px; }
    .is-auth-profile-card-head h4 { font-size: 15px; }
    .is-auth-profile-plan-summary { padding: 20px 16px; }
    .is-auth-profile-plan-summary .is-auth-profile-plan { font-size: 23px; }
    .is-auth-profile-plan-price strong { font-size: 18px; }
    .is-auth-profile-manager-section { padding: 18px 16px; }
    .is-auth-profile-manager .is-auth-profile-method { grid-template-columns: 38px minmax(0, 1fr) auto; column-gap: 10px; }
    .is-auth-profile-manager .is-auth-profile-method-icon { width: 38px; }
    .is-auth-profile-manager .is-auth-profile-method-copy strong { font-size: 13px; }
    .is-auth-profile-manager .is-auth-profile-method-copy small { font-size: 11px; }
    .is-auth-profile-manager .is-auth-profile-method > .is-auth-profile-manage-button { padding-inline: 9px; font-size: 11px; }
    .is-auth-profile-manager-facts > div { gap: 12px; }
    .is-auth-profile-payment-fields > div { gap: 12px; }
    .is-auth-profile-card-preview { padding: 18px; }
    .is-auth-profile-row { gap: 14px; padding-inline: 20px; }
    .is-auth-profile-row-copy strong { font-size: 13px; }
    .is-auth-profile-editor-actions { grid-template-columns: 1fr; }
}

/* Keep desktop registration complete within the viewport, with breathing room. */
@media (min-width: 761px) {
    .is-auth-dialog[data-auth-view="register"] {
        max-height: calc(100dvh - 64px);
    }
    .is-auth-dialog[data-auth-view="register"] .is-auth-shell {
        min-height: 0;
        max-height: calc(100dvh - 66px);
    }
    .is-auth-dialog[data-auth-view="register"] .is-auth-aside {
        position: relative;
        align-self: stretch;
        height: auto;
    }
    .is-auth-dialog[data-auth-view="register"] .is-auth-main { padding: 32px 40px; }
    .is-auth-dialog[data-auth-view="register"] .is-auth-heading h2 { font-size: 2rem; }
    .is-auth-dialog[data-auth-view="register"] .is-auth-heading p { margin-top: 8px; }
    .is-auth-dialog[data-auth-view="register"] .is-auth-tabs { margin-top: 18px; }
    .is-auth-dialog[data-auth-view="register"] .is-auth-consent-block { margin-top: 10px; }
    .is-auth-dialog[data-auth-view="register"] :is(.is-auth-google, .is-auth-apple) { margin-top: 12px; min-height: 44px; }
    .is-auth-dialog[data-auth-view="register"] .is-auth-separator { margin: 14px 0; }
    .is-auth-dialog[data-auth-view="register"] .is-auth-form { gap: 10px; }
    .is-auth-dialog[data-auth-view="register"] .is-auth-field { gap: 5px; }
    .is-auth-dialog[data-auth-view="register"] .is-auth-field input { min-height: 44px; padding-block: 10px; }
    .is-auth-dialog[data-auth-view="register"] .is-auth-submit { min-height: 44px; }
}
@media (min-width: 761px) and (max-height: 800px) {
    .is-auth-dialog[data-auth-view="register"] .is-auth-main { padding-block: 18px; }
    .is-auth-dialog[data-auth-view="register"] .is-auth-tabs { margin-top: 12px; }
    .is-auth-dialog[data-auth-view="register"] .is-auth-separator { margin-block: 10px; }
    .is-auth-dialog[data-auth-view="register"] .is-auth-legal-footer { margin-top: 6px; }
    #isAuthRegisterForm { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
    #isAuthRegisterForm > :is(.is-auth-field:nth-child(-n+2), .is-auth-submit) { grid-column: 1 / -1; }
}

/* Account wizard: one persistent surface, with one visible step at a time. */
#isAuthDialog {
    width: min(100% - 48px, 520px);
    height: min(820px, calc(100dvh - 48px));
    max-height: calc(100dvh - 48px);
    --auth-safe-top: 0px;
    --auth-safe-right: 0px;
    --auth-safe-bottom: 0px;
    --auth-safe-left: 0px;
    animation: none;
}
#isAuthDialog [hidden] { display: none !important; }
#isAuthDialog .is-auth-shell {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: calc(var(--auth-safe-top) + 64px) minmax(0, 1fr);
    width: 100%; height: 100%; min-height: 0; max-height: none; overflow: hidden;
    background: radial-gradient(ellipse at 95% -15%, rgba(203, 170, 83, .13), transparent 58%),
        radial-gradient(ellipse at -15% 85%, rgba(161, 128, 55, .05), transparent 50%), #080806;
}
#isAuthDialog .is-auth-mobile-masthead {
    position: relative; z-index: 1; grid-row: 1; display: flex; align-items: center;
    padding: var(--auth-safe-top) calc(var(--auth-safe-right) + 72px) 0 calc(var(--auth-safe-left) + 24px);
    border: 0; background: transparent; box-shadow: none;
}
#isAuthDialog .is-auth-mobile-masthead::after { content: none; }
#isAuthDialog .is-auth-mobile-masthead-logo { position: relative; display: block; width: 118px; height: 34px; overflow: hidden; }
#isAuthDialog .is-auth-mobile-masthead-logo img { position: absolute; top: -7px; left: -44px; width: 186px; max-width: none; }
#isAuthDialog .is-auth-close {
    top: calc(var(--auth-safe-top) + 10px); right: calc(var(--auth-safe-right) + 18px);
    width: 44px; height: 44px; color: #e8e6e1; background: rgba(255,255,255,.025);
    border-color: rgba(232,230,225,.13); box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none;
}
#isAuthDialog .is-auth-main {
    grid-row: 2; min-height: 0; display: flex; flex-direction: column;
    padding: 16px calc(var(--auth-safe-right) + 28px) calc(var(--auth-safe-bottom) + 16px) calc(var(--auth-safe-left) + 28px);
    overflow-x: hidden; overflow-y: auto; background: transparent;
    scroll-padding-block: 12px;
}
#isAuthDialog .is-auth-main::before { content: none; }
#isAuthDialog .is-auth-main-content { width: min(100%, 450px); min-height: 0; flex: 0 0 auto; margin: auto; padding: 0; inset-block-start: auto; }
#isAuthDialog .is-auth-heading { margin: 0; }
#isAuthDialog .is-auth-heading h2 { color: #f3f0e8; font-size: 30px; line-height: 1.2; }
#isAuthDialog .is-auth-heading p { margin-top: 9px; color: #c3beb2; font-size: 14px; line-height: 1.5; }
#isAuthDialog .is-auth-tabs { display: flex; justify-content: center; margin-top: 12px; padding: 0; gap: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
#isAuthDialog .is-auth-tab { min-height: 46px; padding: 10px 16px; color: #e4c96a; border: 0; border-radius: 8px; background: transparent; box-shadow: none; font-size: 15px; font-weight: 600; }
#isAuthDialog .is-auth-tab[aria-selected="true"] { color: #e4c96a; background: transparent; box-shadow: none; }
#isAuthDialog :is(.is-auth-google,.is-auth-apple) { min-height: 52px; margin-top: 24px; padding-block: 13px; border-radius: 12px; font-size: 16px; font-weight: 600; }
#isAuthDialog .is-auth-separator { justify-content: center; margin: 18px 0; color: #bcb5a7; font-size: 13px; }
#isAuthDialog .is-auth-separator::before, #isAuthDialog .is-auth-separator::after { content: none; }

/* Flex groups deliberately replace the legacy registration nth-child grids. */
#isAuthDialog .is-auth-form,
#isAuthDialog #isAuthRegisterForm,
#isAuthDialog #isAuthVerificationForm,
#isAuthDialog .is-auth-step-group {
    display: flex; flex-direction: column; align-items: stretch; gap: 18px;
    min-width: 0; min-inline-size: 0; width: 100%; margin: 0; padding: 0; border: 0;
    grid-template-columns: none; animation: none; transition: none;
}
#isAuthDialog #isAuthRegisterForm > * { grid-column: auto; }
#isAuthDialog .is-auth-form { margin-top: 24px; }
#isAuthDialog #isAuthRegisterForm { margin-top: 24px; }
#isAuthDialog #isAuthVerificationForm { margin-top: 24px; }
#isAuthDialog .is-auth-step-group > legend { padding: 0; margin-bottom: 12px; color: #e8e4d9; font-size: 14px; }
#isAuthDialog .is-auth-field { min-width: 0; gap: 7px; align-content: start; }
#isAuthDialog .is-auth-field label { color: #ded9cd; font-size: 14px; line-height: 1.35; }
#isAuthDialog .is-auth-field :is(input, select) {
    min-width: 0; min-height: 48px; width: 100%; padding: 11px 14px;
    border: 1px solid #39352b; border-radius: 11px; outline: none;
    color: #f3f0e8; background: #11110e; font: 500 16px/1.4 var(--font-body, Inter, sans-serif);
}
#isAuthDialog .is-auth-field :is(input, select):focus-visible { border-color: #e4c96a; box-shadow: 0 0 0 3px rgba(228,201,106,.12); }
#isAuthDialog .is-auth-field :is(input, select)[aria-invalid="true"] { border-color: #e89494; }
#isAuthDialog .is-auth-field input::placeholder { color: #aaa496; opacity: 1; }
#isAuthDialog .is-auth-password-note { margin: 0; color: #bcb5a7; font-size: 12px; line-height: 1.5; }
#isAuthDialog :is(.is-auth-forgot, .is-auth-back, .is-auth-resend) { min-height: 44px; display: inline-flex; align-items: center; font-size: 14px; }
#isAuthDialog .is-auth-forgot { align-self: flex-end; margin: -8px 0 0; }
#isAuthDialog .is-auth-submit { min-height: 48px; margin: 0; border-radius: 11px; font-size: 16px; line-height: 1.35; box-shadow: none; transition: none; }
#isAuthDialog .is-auth-submit:hover:not(:disabled) { transform: none; box-shadow: none; }
#isAuthDialog .is-auth-consent-block { margin-top: 0; transition: none; }
#isAuthDialog .is-auth-consent { min-height: 44px; font-size: 13px; line-height: 1.55; color: #d3cfc5; }
#isAuthDialog .is-auth-consent input { width: 20px; height: 20px; flex-basis: 20px; margin-top: 1px; }
#isAuthDialog .is-auth-consent-error { font-size: 13px; }
#isAuthDialog .is-auth-consent-block.is-auth-consent-shake { animation: none; }
#isAuthDialog .is-auth-status { margin-top: 16px; padding: 12px; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
#isAuthDialog .is-auth-legal-footer { flex: 0 0 auto; margin: 16px auto 0; }
#isAuthDialog .is-auth-legal-footer a { min-height: 44px; color: #c3beb2; }

/* Choice/back/progress stay in the same dialog; no fade or transform on step changes. */
#isAuthDialog #isAuthMethodPicker { display: flex; flex-direction: column; gap: 12px; }
#isAuthDialog .is-auth-method-button {
    display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 52px;
    padding: 12px 18px; border: 1px solid #454033; border-radius: 12px;
    color: #f3f0e8; background: #15140f; font: 600 16px/1.4 var(--font-body, Inter, sans-serif);
    text-align: center; cursor: pointer;
}
#isAuthDialog .is-auth-method-button > svg { flex: 0 0 20px; width: 20px; height: 20px; }
#isAuthDialog :is(.is-auth-method-button, .is-auth-flow-back, .is-auth-password-wrap button):focus-visible { outline: 2px solid #e4c96a; outline-offset: 3px; }
#isAuthDialog .is-auth-method-button:disabled { color: #c3beb2; border-color: #39352b; cursor: wait; }
#isAuthDialog .is-auth-flow-back {
    display: inline-flex; align-items: center; justify-content: flex-start; gap: 8px; min-height: 44px;
    margin: 0 0 8px; padding: 8px 0; border: 0; color: #ded9cd; background: transparent;
    font: 500 14px/1.4 var(--font-body, Inter, sans-serif); cursor: pointer;
}
#isAuthDialog .is-auth-flow-back > svg { width: 18px; height: 18px; }
#isAuthDialog .is-auth-progress { margin: 0 0 10px; color: #d4b965; font: 600 13px/1.5 var(--font-body, Inter, sans-serif); }

/* Country code and national number remain separate, readable controls. */
#isAuthDialog .is-auth-phone-field { display: grid; grid-template-columns: 140px minmax(0, 1fr); align-items: start; gap: 10px; min-width: 0; }
#isAuthDialog .is-auth-phone-field > label { grid-column: 1 / -1; }
#isAuthDialog .is-auth-phone-field :is(input, select) {
    min-width: 0; min-height: 48px; width: 100%; padding: 11px 14px;
    border: 1px solid #39352b; border-radius: 11px; color: #f3f0e8; background: #11110e;
    font: 500 16px/1.4 var(--font-body, Inter, sans-serif);
}
#isAuthDialog .is-auth-phone-field :is(input, select):focus-visible { outline: 2px solid #e4c96a; outline-offset: 2px; }
#isAuthDialog .is-auth-phone-field select { padding-inline: 10px 4px; color-scheme: dark; }
#isAuthDialog .is-auth-phone-field input { direction: ltr; text-align: start; }
#isAuthDialog .is-auth-password-wrap { position: relative; display: flex; min-width: 0; }
#isAuthDialog .is-auth-password-wrap input { padding-inline-end: 76px; }
#isAuthDialog .is-auth-password-wrap button {
    position: absolute; inset-inline-end: 4px; top: 50%; transform: translateY(-50%);
    display: inline-flex; align-items: center; justify-content: center; min-width: 64px; min-height: 44px;
    padding: 8px; border: 0; border-radius: 8px; color: #e4c96a; background: transparent;
    font: 600 13px/1.2 var(--font-body, Inter, sans-serif); cursor: pointer;
}
#isAuthDialog #isAuthVerificationForm input[inputmode="numeric"] { font-size: 24px; letter-spacing: .2em; text-align: center; font-variant-numeric: tabular-nums; }
#isAuthDialog #isAuthVerificationForm :is(p, .is-auth-verification-hint) { margin: 0; color: #c3beb2; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
#isAuthDialog #isAuthVerificationForm [data-auth-action="resend"] { min-height: 44px; }
#isAuthDialog [data-verification="sms"] { min-height: 48px; padding: 11px 14px; border: 1px solid #454033; border-radius: 11px; color: #f3f0e8; background: #15140f; font-size: 15px; line-height: 1.35; }
#isAuthDialog #isAuthSecurityChallenge { min-width: 0; max-width: 100%; margin-top: 12px; }
#isAuthDialog #isAuthSecurityChallenge:empty { display: none; }
#isAuthDialog #isAuthSecurityChallenge iframe { display: block; max-width: 100%; border: 0; }

@media (max-width: 760px) {
    #isAuthDialog {
        width: 100vw; height: 100dvh; max-height: 100dvh;
        --auth-safe-top: var(--app-safe-top, env(safe-area-inset-top, 0px));
        --auth-safe-right: var(--app-safe-right, env(safe-area-inset-right, 0px));
        --auth-safe-bottom: var(--app-safe-bottom, env(safe-area-inset-bottom, 0px));
        --auth-safe-left: var(--app-safe-left, env(safe-area-inset-left, 0px));
    }
    #isAuthDialog .is-auth-main { padding-inline: calc(var(--auth-safe-left) + 22px) calc(var(--auth-safe-right) + 22px); }
}
@media (max-height: 760px) {
    #isAuthDialog .is-auth-shell { grid-template-rows: calc(var(--auth-safe-top) + 58px) minmax(0, 1fr); }
    #isAuthDialog .is-auth-main { padding-top: 8px; padding-bottom: calc(var(--auth-safe-bottom) + 10px); }
    #isAuthDialog .is-auth-heading h2 { font-size: 27px; }
    #isAuthDialog .is-auth-heading p { margin-top: 7px; }
    #isAuthDialog :is(.is-auth-form, #isAuthRegisterForm, #isAuthVerificationForm) { margin-top: 18px; }
    #isAuthDialog :is(.is-auth-form, #isAuthRegisterForm, #isAuthVerificationForm, .is-auth-step-group) { gap: 12px; }
    #isAuthDialog .is-auth-tabs { margin-top: 14px; }
    #isAuthDialog :is(.is-auth-google,.is-auth-apple) { margin-top: 18px; }
    #isAuthDialog .is-auth-separator { margin-block: 14px; }
    #isAuthDialog .is-auth-legal-footer { margin-top: 8px; }
    #isAuthDialog .is-auth-flow-back { margin-bottom: 4px; }
    #isAuthDialog .is-auth-progress { margin-bottom: 6px; }
}
@media (max-height: 520px) {
    /* Keyboard/landscape: let the content scroll, never clip or shrink input text. */
    #isAuthDialog .is-auth-main-content { margin-block: 0; }
}
