.ps-account,
.ps-account-login {
    --ps-navy: #0f3d5e;
    --ps-navy-deep: #092b43;
    --ps-orange: #ff4500;
    --ps-orange-dark: #e83f00;
    --ps-cyan: #00f2fe;
    --ps-ink: #102536;
    --ps-muted: #667783;
    --ps-border: #dce7ec;
    --ps-soft: #f4f8fa;
    font-family: "Sora", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.ps-account {
    max-width: 1080px;
    margin: 54px auto 76px;
    padding: 0 24px;
    color: var(--ps-ink);
}

.ps-account-header {
    position: relative;
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 108px;
    padding: 28px 30px;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 88% 5%, rgba(0, 242, 254, .20), transparent 27%),
        linear-gradient(135deg, var(--ps-navy-deep), var(--ps-navy));
    border-radius: 22px;
    box-shadow: 0 22px 55px rgba(15, 61, 94, .18);
}

.ps-account-header::after {
    content: "";
    position: absolute;
    right: -38px;
    bottom: -64px;
    width: 180px;
    height: 180px;
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: 50%;
}

.ps-account-avatar {
    position: relative;
    z-index: 1;
    width: 64px;
    height: 64px;
    flex: 0 0 64px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(0, 242, 254, .72);
    border-radius: 18px;
    background: rgba(255, 255, 255, .08);
    box-shadow: inset 0 0 0 5px rgba(255, 255, 255, .03);
    color: #fff;
    font-size: 26px;
    font-weight: 800;
}

.ps-account-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }
.ps-account-notice.is-success { background: #e8fff7; color: #116149; border: 1px solid #a8ead5; }
.ps-account-notice.is-info { background: #f0f8fb; color: #1a4a5c; border: 1px solid #b8d4e0; }
.ps-profile-photo { margin-top: 22px; padding: 22px 24px; background: #fff; border: 1px solid #dce6ea; border-radius: 18px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.ps-profile-photo h2 { margin: 0 0 5px; font-size: 18px; color: #062d37; }
.ps-profile-photo p { margin: 0; color: #60777d; font-size: 14px; }
.ps-profile-photo-actions, .ps-profile-photo-actions form { display: flex; align-items: center; gap: 10px; margin: 0; }
.ps-photo-picker { position: relative; display: inline-flex; align-items: center; min-height: 42px; padding: 0 15px; border: 1px dashed #9db4ba; border-radius: 11px; color: #244e57; font-weight: 700; cursor: pointer; background: #f7fafb; }
.ps-photo-picker input { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; }

@media (max-width: 700px) {
    .ps-profile-photo, .ps-profile-photo-actions, .ps-profile-photo-actions form { align-items: stretch; flex-direction: column; }
    .ps-photo-picker { justify-content: center; }
}

.ps-account-identity { position: relative; z-index: 1; min-width: 0; }
.ps-account-identity h1 { margin: 2px 0 5px; color: #fff; font-size: clamp(24px, 3vw, 31px); line-height: 1.12; }
.ps-account-identity p { margin: 0; color: rgba(255, 255, 255, .70); font-size: 14px; overflow-wrap: anywhere; }
.ps-account-eyebrow { color: var(--ps-cyan) !important; font-size: 10px !important; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }

.ps-account-plan-badge {
    position: relative;
    z-index: 1;
    margin-left: auto;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 999px;
    background: rgba(255, 255, 255, .07);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .10em;
}
.ps-account-plan-badge.is-pro { border-color: var(--ps-orange); background: var(--ps-orange); }

.ps-account-grid {
    display: grid;
    grid-template-columns: 1.25fr 1fr 1fr;
    gap: 16px;
    margin-top: 18px;
}

.ps-account-card {
    position: relative;
    min-height: 154px;
    padding: 23px;
    overflow: hidden;
    border: 1px solid var(--ps-border);
    border-radius: 17px;
    background: #fff;
    box-shadow: 0 8px 26px rgba(15, 61, 94, .055);
}
.ps-account-card:first-child { border-top: 3px solid var(--ps-orange); }
.ps-account-card:nth-child(2) { border-top: 3px solid var(--ps-cyan); }
.ps-account-card:nth-child(3) { border-top: 3px solid var(--ps-navy); }
.ps-account-card > span { color: var(--ps-muted); font-size: 10px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.ps-account-card strong { display: block; margin: 15px 0 9px; color: var(--ps-navy); font-size: 20px; line-height: 1.22; }
.ps-account-card p { margin: 0; color: var(--ps-muted); font-size: 13px; line-height: 1.55; }

.ps-account-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 26px;
    margin-top: 18px;
    padding: 24px 25px;
    border: 1px solid var(--ps-border);
    border-radius: 17px;
    background: var(--ps-soft);
}
.ps-account-actions h2 { margin: 0 0 5px; color: var(--ps-navy); font-size: 18px; }
.ps-account-actions p { margin: 0; color: var(--ps-muted); font-size: 13px; }
.ps-account-buttons { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 9px; }
.ps-account-buttons form { margin: 0; }

.ps-account-button {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border: 1px solid #bfd0d9;
    border-radius: 10px;
    background: #fff;
    color: var(--ps-navy);
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none !important;
    cursor: pointer;
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease;
}
.ps-account-button:hover { transform: translateY(-1px); border-color: var(--ps-navy); box-shadow: 0 7px 17px rgba(15, 61, 94, .11); color: var(--ps-navy); }
.ps-account-button.is-primary { border-color: var(--ps-orange); background: var(--ps-orange); color: #fff; box-shadow: 0 7px 17px rgba(255, 69, 0, .18); }
.ps-account-button.is-primary:hover { border-color: var(--ps-orange-dark); background: var(--ps-orange-dark); color: #fff; }
.ps-account-button.is-quiet { border-color: transparent; background: transparent; color: var(--ps-muted); }
.ps-account-button.is-quiet:hover { border-color: #d4e0e5; background: #fff; color: var(--ps-navy); }

.ps-account-notice { margin: 16px 0 0; padding: 12px 15px; border-radius: 10px; font-size: 13px; }
.ps-account-notice.is-error { border: 1px solid #e7aaaa; background: #fff1f1; color: #8a2424; }

.ps-account-login {
    max-width: 560px;
    margin: 72px auto;
    padding: 38px;
    border: 1px solid var(--ps-border);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 16px 42px rgba(15, 61, 94, .10);
    text-align: center;
}
.ps-account-login h2 { margin: 0 0 8px; color: var(--ps-navy); }
.ps-account-login p { color: var(--ps-muted); }
.ps-account-login .ps-account-button { margin-top: 10px; }

@media (max-width: 820px) {
    .ps-account-grid { grid-template-columns: 1fr; }
    .ps-account-card { min-height: 0; }
    .ps-account-actions { align-items: flex-start; flex-direction: column; }
    .ps-account-buttons { justify-content: flex-start; }
}

@media (max-width: 560px) {
    .ps-account { margin: 28px auto 52px; padding: 0 14px; }
    .ps-account-header { align-items: flex-start; flex-wrap: wrap; padding: 22px; border-radius: 18px; }
    .ps-account-avatar { width: 52px; height: 52px; flex-basis: 52px; border-radius: 14px; font-size: 21px; }
    .ps-account-plan-badge { margin-left: 70px; margin-top: -9px; }
    .ps-account-actions { padding: 21px; }
    .ps-account-buttons, .ps-account-buttons form, .ps-account-button { width: 100%; }
}

.ps-danger-zone { margin-top: 18px; padding: 24px 25px; border: 1px solid #f0b8b8; border-radius: 17px; background: #fff6f6; }
.ps-danger-zone h2 { margin: 0 0 6px; color: #8a2424; font-size: 18px; }
.ps-danger-zone > p { margin: 0 0 16px; color: #a34a4a; font-size: 13px; line-height: 1.55; }
.ps-danger-zone form { margin: 0; }
.ps-danger-zone label { display: block; margin-bottom: 6px; color: #8a2424; font-size: 13px; font-weight: 700; }
.ps-danger-zone input[type="email"] { display: block; width: 100%; max-width: 340px; padding: 10px 12px; margin-bottom: 14px; border: 1px solid #e7aaaa; border-radius: 9px; font: inherit; font-size: 14px; color: var(--ps-ink); background: #fff; }
.ps-account-button.is-danger { border-color: #c62828; background: #c62828; color: #fff; }
.ps-account-button.is-danger:hover { border-color: #a51f1f; background: #a51f1f; color: #fff; }

@media (max-width: 560px) {
    .ps-danger-zone { padding: 20px; }
    .ps-danger-zone input[type="email"] { max-width: none; }
}