body[data-page="account"] {
    background:
        radial-gradient(circle at 50% -18%, rgba(59, 138, 255, 0.18), transparent 34%),
        radial-gradient(circle at 20% 20%, rgba(31, 106, 198, 0.1), transparent 28%),
        radial-gradient(circle at 84% 14%, rgba(34, 96, 173, 0.12), transparent 26%),
        linear-gradient(180deg, #04070d 0%, #060c16 42%, #071120 100%);
}

body[data-page="account"]::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(255, 196, 111, 0.03), transparent 24%, transparent 76%, rgba(86, 173, 255, 0.03)),
        radial-gradient(circle at center, transparent 0 64%, rgba(38, 81, 140, 0.08) 100%);
}

body[data-page="account"] .mesh {
    opacity: 0.36;
}

body[data-page="account"] .topbar {
    background: rgba(5, 10, 18, 0.84);
    border-bottom-color: rgba(122, 169, 255, 0.12);
    backdrop-filter: blur(20px);
}

body[data-page="account"] .topbar::after {
    background: linear-gradient(90deg, transparent, rgba(93, 176, 255, 0.2), transparent);
}

.account-hub-page {
    position: relative;
    z-index: 1;
    padding: 1rem 0 1.5rem;
}

.account-hub-stage {
    display: grid;
    gap: 0.85rem;
}

.account-hub-shell,
.account-profile-card,
.account-access-summary-card,
.account-quota-card,
.account-status-card,
.account-next-step-card {
    position: relative;
    overflow: hidden;
    border-radius: 1.35rem;
    border: 1px solid rgba(122, 165, 242, 0.16);
    background:
        linear-gradient(180deg, rgba(7, 16, 30, 0.94), rgba(5, 12, 23, 0.98)),
        rgba(5, 10, 18, 0.96);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.03),
        0 12px 34px rgba(0, 0, 0, 0.22);
}

.account-hub-shell::before,
.account-profile-card::before,
.account-next-step-card::before {
    content: "";
    position: absolute;
    inset: auto auto 0 0;
    width: 12rem;
    height: 6.5rem;
    background: radial-gradient(circle at bottom left, rgba(66, 165, 255, 0.24), transparent 72%);
    pointer-events: none;
}

.account-hub-shell {
    padding: 1.35rem 1.55rem;
}

.account-hub-topbar {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 1.25rem;
}

.account-hub-copy h1 {
    margin: 0.12rem 0 0.28rem;
    font-size: clamp(1.9rem, 2.8vw, 2.4rem);
}

.account-hub-subtitle {
    margin: 0;
    color: rgba(103, 184, 255, 0.9);
    letter-spacing: 0.22rem;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.account-hub-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.account-hub-grid {
    display: grid;
    grid-template-columns: minmax(23rem, 1.02fr) minmax(22rem, 1fr);
    gap: 0.85rem;
    align-items: stretch;
}

.account-hub-side {
    display: grid;
    gap: 0.85rem;
}

.account-hub-side-top {
    display: grid;
    grid-template-columns: minmax(13rem, 1fr) minmax(13rem, 0.9fr);
    gap: 0.85rem;
}

.account-profile-card,
.account-access-summary-card,
.account-quota-card,
.account-status-card,
.account-next-step-card {
    padding: 1.12rem 1.2rem;
}

.account-card-heading {
    margin-bottom: 0.85rem;
}

.account-profile-layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 8.8rem minmax(0, 1fr);
    gap: 1.15rem;
    align-items: center;
}

.account-profile-hero {
    display: grid;
    justify-items: center;
    gap: 0.72rem;
}

.account-avatar--hero {
    width: 7.4rem;
    height: 7.4rem;
    display: grid;
    place-items: center;
    font-size: 2.65rem;
    color: rgba(252, 215, 153, 0.98);
    background:
        radial-gradient(circle at 50% 32%, rgba(13, 31, 58, 0.86), rgba(8, 14, 28, 0.98) 70%),
        rgba(7, 14, 26, 0.96);
    border: 1px solid rgba(126, 181, 255, 0.28);
    box-shadow:
        inset 0 0 0 0.45rem rgba(71, 154, 255, 0.1),
        0 0 0 1px rgba(105, 182, 255, 0.24),
        0 0 20px rgba(54, 149, 255, 0.18);
}

.account-avatar--image {
    overflow: hidden;
    color: transparent;
}

.account-avatar-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.account-avatar-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, auto));
    flex-wrap: wrap;
    gap: 0.42rem;
    justify-content: center;
    max-width: 9.4rem;
}

.account-avatar-actions[hidden] {
    display: none;
}

.account-avatar-btn {
    min-height: 2rem;
    padding: 0.32rem 0.62rem;
    border-radius: 999px;
    border: 1px solid rgba(126, 181, 255, 0.22);
    background: rgba(12, 32, 52, 0.72);
    color: rgba(223, 238, 255, 0.94);
    font: inherit;
    font-size: 0.76rem;
    cursor: pointer;
}

.account-avatar-btn--ghost {
    background: rgba(5, 11, 20, 0.45);
    color: rgba(180, 199, 231, 0.84);
}

.account-avatar-btn:disabled {
    opacity: 0.55;
    cursor: wait;
}

.account-avatar-status {
    grid-column: 1 / -1;
    min-height: 1.1rem;
    margin: 0;
    color: rgba(178, 201, 233, 0.78);
    font-size: 0.72rem;
    line-height: 1.35;
    text-align: center;
}

.account-avatar-status[data-state="success"] {
    color: rgba(111, 242, 171, 0.95);
}

.account-avatar-status[data-state="error"] {
    color: rgba(255, 124, 124, 0.95);
}

.account-profile-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 3.5rem;
    min-height: 1.6rem;
    padding: 0 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 201, 114, 0.24);
    background: rgba(18, 26, 38, 0.78);
    color: rgba(255, 212, 136, 0.96);
    font-size: 0.7rem;
    letter-spacing: 0.08rem;
}

.account-profile-meta {
    display: grid;
    gap: 0.65rem;
}

.account-profile-row {
    display: grid;
    grid-template-columns: 4.6rem minmax(0, 1fr);
    gap: 0.85rem;
    align-items: center;
    padding-bottom: 0.55rem;
    border-bottom: 1px solid rgba(125, 162, 220, 0.13);
}

.account-profile-label,
.account-summary-label,
.account-profile-pill__label,
.account-profile-foot__label {
    color: rgba(149, 171, 208, 0.84);
    font-size: 0.88rem;
}

.account-profile-value,
.account-profile-pill__value,
.account-profile-foot__value {
    min-width: 0;
    overflow-wrap: anywhere;
    color: rgba(244, 247, 255, 0.95);
}

.account-profile-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.6rem;
    margin-top: 0.95rem;
}

.account-profile-pill {
    padding: 0.82rem 0.9rem;
    border-radius: 0.95rem;
    border: 1px solid rgba(95, 140, 205, 0.16);
    background: rgba(8, 15, 27, 0.62);
    display: grid;
    gap: 0.32rem;
}

.account-profile-about {
    margin-top: 0.95rem;
    padding-top: 0.9rem;
    border-top: 1px solid rgba(119, 156, 217, 0.12);
}

.account-about-text {
    margin: 0.35rem 0 0;
    color: rgba(211, 226, 248, 0.84);
    line-height: 1.6;
}

.account-profile-foot {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
    margin-top: 0.95rem;
}

.account-profile-foot__item {
    padding: 0.72rem 0.86rem;
    border-radius: 0.9rem;
    background: rgba(8, 15, 27, 0.5);
    border: 1px solid rgba(95, 140, 205, 0.12);
    display: grid;
    gap: 0.28rem;
}

.account-summary-split {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    min-height: 6.8rem;
}

.account-summary-stat {
    display: grid;
    align-content: center;
    gap: 0.55rem;
    padding: 0.25rem 0.9rem;
}

.account-summary-stat + .account-summary-stat {
    border-left: 1px solid rgba(124, 157, 214, 0.16);
}

.account-summary-value {
    font-size: clamp(1.7rem, 2.8vw, 2.2rem);
    line-height: 1;
    color: rgba(247, 251, 255, 0.96);
}

.account-summary-value--danger {
    color: #ff6262;
}

.account-quota-shell {
    display: flex;
    align-items: center;
    gap: 0.95rem;
}

.account-quota-ring {
    --quota-ratio: 0%;
    position: relative;
    flex: 0 0 6.6rem;
    width: 6.6rem;
    height: 6.6rem;
    border-radius: 50%;
    background:
        conic-gradient(from -90deg, rgba(76, 169, 255, 0.98) 0 var(--quota-ratio), rgba(95, 122, 168, 0.18) var(--quota-ratio) 100%);
    box-shadow:
        inset 0 0 0 0.62rem rgba(5, 11, 21, 0.82),
        0 0 0 1px rgba(107, 168, 255, 0.14);
}

.account-quota-ring::before {
    content: "";
    position: absolute;
    inset: 0.68rem;
    border-radius: 50%;
    background:
        radial-gradient(circle at 35% 30%, rgba(20, 41, 71, 0.94), rgba(6, 11, 21, 0.98) 72%),
        rgba(5, 10, 18, 0.94);
}

.account-quota-ring__inner {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    z-index: 1;
}

.account-quota-ring__inner strong {
    font-size: 1.65rem;
    color: rgba(243, 248, 255, 0.96);
}

.account-quota-copy {
    display: grid;
    gap: 0.38rem;
}

.account-quota-usage {
    font-size: 1.45rem;
    color: rgba(244, 247, 255, 0.95);
}

.account-quota-meta {
    display: grid;
    gap: 0.3rem;
    color: rgba(169, 188, 219, 0.78);
    font-size: 0.88rem;
}

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

.account-status-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.82rem 0.9rem;
    border-radius: 0.95rem;
    border: 1px solid rgba(95, 140, 205, 0.18);
    background: rgba(8, 15, 27, 0.62);
}

.account-status-name {
    color: rgba(223, 230, 244, 0.93);
    font-size: 0.92rem;
}

.account-status-dot {
    width: 0.7rem;
    height: 0.7rem;
    border-radius: 50%;
}

.account-status-item--open .account-status-dot {
    background: #5ff0a3;
    box-shadow: 0 0 12px rgba(95, 240, 163, 0.55);
}

.account-status-item--partial .account-status-dot {
    background: #f4bc63;
    box-shadow: 0 0 12px rgba(244, 188, 99, 0.45);
}

.account-status-item--closed .account-status-dot {
    background: #ff6666;
    box-shadow: 0 0 12px rgba(255, 102, 102, 0.42);
}

.account-next-step-card {
    display: block;
}

.account-next-step-copy h2 {
    margin: 0.22rem 0 0.4rem;
    font-size: clamp(1.18rem, 1.9vw, 1.45rem);
}

.account-next-step-copy p:last-child {
    margin-bottom: 0;
    color: rgba(201, 218, 245, 0.82);
}

.account-inline-toggle {
    color: rgba(130, 192, 255, 0.92);
    cursor: pointer;
}

.account-compact-details {
    margin-top: 0.6rem;
}

.account-invite-fallback {
    padding: 0.72rem 0.82rem;
    border-radius: 0.9rem;
    border: 1px solid rgba(126, 181, 255, 0.12);
    background: rgba(8, 15, 27, 0.38);
}

.account-invite-fallback[open] {
    display: grid;
    gap: 0.72rem;
}

.account-invite-grid {
    display: grid;
    grid-template-columns: minmax(20rem, 0.92fr) minmax(24rem, 1.08fr);
    gap: 0.85rem;
}

.account-invite-grid--guest {
    grid-template-columns: minmax(20rem, 36rem);
    justify-content: center;
}

.account-invite-card {
    padding: 1.12rem 1.2rem;
    border-radius: 1.35rem;
    border: 1px solid rgba(122, 165, 242, 0.16);
    background:
        linear-gradient(180deg, rgba(7, 16, 30, 0.94), rgba(5, 12, 23, 0.98)),
        rgba(5, 10, 18, 0.96);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.03),
        0 12px 34px rgba(0, 0, 0, 0.22);
}

.account-card-heading h2 {
    margin: 0.12rem 0 0.4rem;
    font-size: clamp(1.22rem, 2vw, 1.56rem);
}

.account-card-heading p:last-child {
    margin: 0.35rem 0 0;
    color: rgba(205, 220, 244, 0.78);
    line-height: 1.55;
}

.account-invite-form {
    display: grid;
    gap: 0.76rem;
    margin-top: 1rem;
}

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

.account-field {
    display: grid;
    gap: 0.38rem;
}

.account-field span {
    color: rgba(180, 199, 231, 0.84);
    font-size: 0.82rem;
    letter-spacing: 0.06rem;
    text-transform: uppercase;
}

.account-field input,
.account-field select {
    width: 100%;
    min-height: 2.92rem;
    border-radius: 0.9rem;
    border: 1px solid rgba(126, 181, 255, 0.2);
    background: rgba(5, 11, 20, 0.78);
    color: rgba(244, 248, 255, 0.95);
    padding: 0.72rem 0.86rem;
    font: inherit;
    outline: none;
}

.account-field input:focus,
.account-field select:focus {
    border-color: rgba(98, 207, 255, 0.62);
    box-shadow: 0 0 0 3px rgba(83, 185, 255, 0.12);
}

.account-owner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.account-form-status {
    min-height: 1.35rem;
    margin: 0;
    color: rgba(192, 211, 242, 0.84);
    line-height: 1.45;
}

.account-form-status[data-state="success"] {
    color: rgba(111, 242, 171, 0.95);
}

.account-form-status[data-state="error"] {
    color: rgba(255, 124, 124, 0.95);
}

.account-generated-token {
    display: grid;
    gap: 0.55rem;
    margin-top: 1rem;
    padding: 0.85rem;
    border-radius: 1rem;
    border: 1px solid rgba(102, 219, 255, 0.24);
    background: rgba(13, 45, 64, 0.42);
}

.account-generated-token[hidden] {
    display: none;
}

.account-generated-token span {
    color: rgba(182, 216, 244, 0.82);
    font-size: 0.82rem;
}

.account-generated-token code {
    display: block;
    max-width: 100%;
    padding: 0.65rem;
    border-radius: 0.72rem;
    overflow-wrap: anywhere;
    color: rgba(242, 249, 255, 0.96);
    background: rgba(0, 0, 0, 0.28);
}

.account-invite-list {
    display: grid;
    gap: 0.58rem;
    margin-top: 1rem;
}

.account-invite-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.75rem;
    align-items: center;
    padding: 0.72rem 0.78rem;
    border-radius: 0.9rem;
    border: 1px solid rgba(126, 181, 255, 0.14);
    background: rgba(8, 15, 27, 0.62);
}

.account-invite-row__title {
    color: rgba(244, 247, 255, 0.95);
    font-weight: 700;
}

.account-invite-row__meta {
    margin-top: 0.24rem;
    color: rgba(170, 190, 222, 0.78);
    font-size: 0.84rem;
    overflow-wrap: anywhere;
}

.account-invite-row__state {
    justify-self: end;
    padding: 0.35rem 0.58rem;
    border-radius: 999px;
    color: rgba(237, 244, 255, 0.92);
    background: rgba(126, 181, 255, 0.12);
    border: 1px solid rgba(126, 181, 255, 0.16);
    font-size: 0.78rem;
}

.account-invite-row__state--active {
    color: rgba(106, 245, 175, 0.98);
    border-color: rgba(106, 245, 175, 0.24);
}

.account-invite-row__state--used,
.account-invite-row__state--revoked,
.account-invite-row__state--expired {
    color: rgba(255, 191, 139, 0.98);
    border-color: rgba(255, 191, 139, 0.22);
}

@media (max-width: 1180px) {
    .account-hub-grid {
        grid-template-columns: 1fr;
    }

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

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

@media (max-width: 920px) {
    .account-hub-topbar,
    .account-profile-layout {
        display: grid;
        grid-template-columns: 1fr;
    }

    .account-hub-actions {
        justify-content: stretch;
    }

    .account-hub-actions .btn {
        width: 100%;
    }

    .account-profile-hero {
        justify-items: flex-start;
    }

    .account-hub-side-top,
    .account-status-grid,
    .account-profile-summary,
    .account-profile-foot,
    .account-form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .account-hub-page {
        padding: 0.75rem 0 1rem;
    }

    .account-hub-shell,
    .account-profile-card,
    .account-access-summary-card,
    .account-quota-card,
    .account-status-card,
    .account-next-step-card,
    .account-invite-card {
        padding: 1rem;
        border-radius: 1.15rem;
    }

    .account-profile-row,
    .account-quota-shell {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.3rem;
    }

    .account-summary-split {
        grid-template-columns: 1fr;
        min-height: auto;
        gap: 0.3rem;
    }

    .account-summary-stat + .account-summary-stat {
        border-left: none;
        border-top: 1px solid rgba(124, 157, 214, 0.16);
    }
}
