.profile-body {
    background: #f4f7f6;
}

.profile-page {
    max-width: 560px;
}

.profile-page .welcome-flash {
    margin: 0 0 14px;
}

.profile-hero h1 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    letter-spacing: -0.04em;
}

.profile-welcome-card,
.profile-identity,
.profile-verify-banner,
.profile-menu-card {
    background: #fff;
    border: 1px solid rgba(4, 74, 66, 0.08);
    border-radius: 22px;
    box-shadow: 0 10px 30px rgba(4, 74, 66, 0.04);
}

.profile-welcome-card {
    display: grid;
    justify-items: center;
    gap: 10px;
    padding: 48px 28px;
    text-align: center;
}

.profile-welcome-icon {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    margin-bottom: 6px;
    border-radius: 16px;
    background: rgba(8, 117, 106, 0.12);
    color: #08756a;
}

.profile-welcome-icon svg {
    width: 26px;
    height: 26px;
}

.profile-welcome-card h2 {
    margin: 0;
    font-size: 1.45rem;
    letter-spacing: -0.02em;
}

.profile-welcome-card p {
    margin: 0 0 10px;
    color: var(--muted, #667085);
    font-size: 0.95rem;
}

.profile-wa-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    width: min(100%, 320px);
    border-radius: 14px;
    background: #044a42;
}

.profile-wa-btn svg {
    width: 19px;
    height: 19px;
}

.profile-identity {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px 24px;
    margin-bottom: 14px;
}

.profile-avatar {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border-radius: 999px;
    background: rgba(8, 117, 106, 0.14);
    color: #044a42;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.profile-identity h2 {
    margin: 0 0 6px;
    font-size: 1.35rem;
}

.profile-claim {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    color: #08756a;
    font-size: 0.9rem;
    font-weight: 600;
}

.profile-claim svg {
    width: 15px;
    height: 15px;
}

.profile-verify-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    margin-bottom: 14px;
}

.profile-verify-copy {
    display: flex;
    align-items: center;
    gap: 14px;
}

.profile-verify-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(8, 117, 106, 0.12);
    color: #08756a;
    flex: 0 0 auto;
}

.profile-verify-icon svg {
    width: 22px;
    height: 22px;
}

.profile-verify-banner h3 {
    margin: 0 0 2px;
    font-size: 1rem;
}

.profile-verify-banner p {
    margin: 0;
    color: var(--muted, #667085);
    font-size: 0.88rem;
}

.profile-open-btn {
    border-radius: 999px;
    min-height: 42px;
    padding: 0 18px;
    background: #044a42;
    white-space: nowrap;
}

.profile-menu-card {
    padding: 8px 10px;
}

.profile-menu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px 18px;
}

.profile-menu-grid a,
.profile-signout {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 54px;
    padding: 10px 12px;
    border-radius: 14px;
    color: var(--ink, #122018);
    text-decoration: none;
    font-weight: 600;
    background: transparent;
    border: 0;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font: inherit;
}

.profile-menu-grid a:hover,
.profile-signout:hover {
    background: rgba(8, 117, 106, 0.06);
}

.profile-menu-icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    color: #08756a;
    background: rgba(8, 117, 106, 0.08);
    flex: 0 0 auto;
}

.profile-menu-icon svg {
    width: 18px;
    height: 18px;
}

.profile-signout {
    color: #08756a;
    font-weight: 650;
}

.profile-dialog {
    width: min(440px, calc(100vw - 28px));
    padding: 0;
    border: 0;
    border-radius: 22px;
    box-shadow: 0 24px 80px rgba(4, 40, 36, 0.28);
}

.profile-dialog::backdrop {
    background: rgba(8, 28, 26, 0.45);
    backdrop-filter: blur(2px);
}

.profile-dialog-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 18px 0;
}

.profile-dialog-top h2 {
    margin: 0;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}

.profile-dialog-close {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 999px;
    background: #eef3f1;
    color: #44534f;
    cursor: pointer;
}

.profile-dialog-close svg {
    width: 16px;
    height: 16px;
}

.profile-dialog-body {
    padding: 16px 18px 22px;
}

.profile-auth-banner {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(8, 117, 106, 0.1);
    color: #044a42;
    font-size: 0.86rem;
    line-height: 1.45;
}

.profile-auth-banner svg {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    margin-top: 1px;
}

.profile-auth-form {
    display: grid;
    gap: 12px;
}

.profile-auth-form label {
    display: grid;
    gap: 6px;
    font-size: 0.86rem;
    font-weight: 600;
    color: #31443f;
}

.profile-auth-form input,
.profile-auth-form select {
    width: 100%;
    min-height: 48px;
    border: 1px solid #d7e0dc;
    border-radius: 12px;
    padding: 0 14px;
    background: #fff;
    color: #122018;
    font: inherit;
}

.profile-auth-form .btn-solid {
    width: 100%;
    min-height: 50px;
    border-radius: 14px;
    background: #044a42;
}

.profile-auth-error {
    margin: 0;
    color: #b42318;
    font-size: 0.86rem;
}

.profile-text-link {
    border: 0;
    background: transparent;
    color: #08756a;
    font: inherit;
    font-weight: 650;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    padding: 4px;
}

.profile-auth-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 14px;
}

.profile-code-for,
.profile-setup-copy {
    margin: 0 0 14px;
    color: var(--muted, #667085);
    font-size: 0.92rem;
}

.profile-fallback {
    display: block;
    margin-top: 8px;
}

.nav-profile {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.nav-profile svg {
    width: 18px;
    height: 18px;
}

@media (max-width: 720px) {
    .profile-verify-banner {
        flex-direction: column;
        align-items: stretch;
    }

    .profile-menu-grid {
        grid-template-columns: 1fr;
    }

    .profile-open-btn {
        width: 100%;
        text-align: center;
    }
}
