/* ── Página Conta — SAASCOM Morador ── */

:root {
    --conta-wave-height: 44px;
}

.conta-page .page-content {
    background: var(--bg-body);
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-top: 0 !important;
    border: none !important;
}

.conta-content {
    min-height: 100%;
    padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px)) !important;
}

.conta-page .page-content::before,
.conta-page .page-content::after {
    display: none !important;
    content: none !important;
}

/* Hero */
.conta-hero {
    position: relative;
    z-index: 2;
    padding: calc(env(safe-area-inset-top, 0px) + 14px) clamp(16px, 4vw, 22px) calc(var(--conta-wave-height) + clamp(48px, 11vw, 64px));
    background: var(--blue-primary);
    overflow: visible;
}

.conta-hero__gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        #45B0F0 0%,
        #3DAAEB 35%,
        #2E96D6 100%
    );
    pointer-events: none;
}

.conta-hero__texture {
    position: absolute;
    inset: 0;
    background-image: url('../img/water-texture.svg');
    background-size: cover;
    opacity: 0.5;
    pointer-events: none;
}

.conta-hero__inner {
    position: relative;
    z-index: 2;
    text-align: center;
}

.conta-hero__title {
    margin: 0;
    color: #fff;
    font-size: clamp(18px, 5vw, 22px);
    font-weight: 800;
    letter-spacing: 0.3px;
}

.conta-hero__sub {
    margin: 4px 0 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 12px;
    font-weight: 500;
}

.conta-wave {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    height: var(--conta-wave-height);
    line-height: 0;
    pointer-events: none;
}

.conta-wave svg {
    display: block;
    width: 100%;
    height: 100%;
}

.conta-wave path {
    fill: var(--bg-body);
}

/* Card de perfil */
.conta-profile-card {
    position: relative;
    z-index: 4;
    margin: calc(-1 * (var(--conta-wave-height) + clamp(30px, 8vw, 44px))) clamp(14px, 4vw, 18px) clamp(18px, 4vh, 24px);
    padding: clamp(18px, 4.5vw, 24px) clamp(16px, 4vw, 20px);
    border-radius: 22px;
    background: #fff;
    box-shadow:
        0 14px 36px rgba(30, 90, 142, 0.14),
        0 4px 14px rgba(61, 170, 235, 0.1);
    text-align: center;
}

.conta-profile-card__avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: clamp(72px, 20vw, 88px);
    height: clamp(72px, 20vw, 88px);
    margin: 0 auto 12px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #E8F4FD 0%, var(--blue-icon-bg) 55%, #C5E3F8 100%);
    box-shadow: 0 6px 18px var(--blue-icon-glow);
    overflow: hidden;
}

.conta-profile-card__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.conta-profile-card__initials {
    color: var(--blue-primary);
    font-size: clamp(22px, 6vw, 28px);
    font-weight: 800;
    letter-spacing: 1px;
}

.conta-profile-card__name {
    margin: 0 0 6px;
    color: var(--blue-title);
    font-size: clamp(16px, 4.5vw, 19px);
    font-weight: 800;
    line-height: 1.25;
}

.conta-profile-card__condo {
    margin: 0 0 10px;
    color: var(--text-label);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
}

.conta-profile-card__unit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0 14px;
    border-radius: 16px;
    background: var(--blue-icon-bg);
    color: var(--blue-primary);
    font-size: 12px;
    font-weight: 700;
}

/* Seções */
.conta-section {
    padding: 0 clamp(14px, 4vw, 18px);
    margin-bottom: clamp(16px, 3.5vh, 22px);
}

.conta-section__title {
    margin: 0 0 10px 4px;
    color: var(--blue-title);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.conta-card {
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 4px 16px rgba(30, 90, 142, 0.1);
    overflow: hidden;
}

.conta-info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
}

.conta-info-row + .conta-info-row {
    border-top: 1px solid rgba(61, 170, 235, 0.1);
}

.conta-info-row__label {
    flex-shrink: 0;
    color: var(--text-label);
    font-size: 13px;
    font-weight: 600;
}

.conta-info-row__value {
    color: var(--blue-title);
    font-size: 13px;
    font-weight: 700;
    text-align: right;
    word-break: break-word;
}

.conta-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 14px 16px;
    border: none;
    background: #fff;
    text-align: left;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.conta-menu-item + .conta-menu-item {
    border-top: 1px solid rgba(61, 170, 235, 0.1);
}

.conta-menu-item:active {
    background: rgba(61, 170, 235, 0.06);
}

.conta-menu-item__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--blue-icon-bg);
    color: var(--blue-primary);
    font-size: 18px;
    flex-shrink: 0;
}

.conta-menu-item__label {
    flex: 1;
    color: var(--text-label);
    font-family: var(--font);
    font-size: 14px;
    font-weight: 600;
}

.conta-menu-item__chevron {
    color: rgba(107, 143, 163, 0.65);
    font-size: 20px;
    flex-shrink: 0;
}

.conta-menu-item--danger .conta-menu-item__icon {
    background: rgba(239, 68, 68, 0.12);
    color: #DC2626;
}

.conta-menu-item--danger .conta-menu-item__label {
    color: #DC2626;
}

.conta-logout-wrap {
    padding: 4px clamp(14px, 4vw, 18px) clamp(8px, 2vh, 12px);
}

.conta-btn-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    padding: 0 20px;
    border: 1.5px solid rgba(220, 38, 38, 0.45);
    border-radius: 16px;
    background: #fff;
    color: #DC2626;
    font-family: var(--font);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    box-shadow: 0 4px 14px rgba(30, 90, 142, 0.06);
}

.conta-btn-logout:active {
    background: rgba(239, 68, 68, 0.06);
}

.conta-version {
    margin: 8px 0 0;
    padding: 0 clamp(14px, 4vw, 18px) 8px;
    color: rgba(107, 143, 163, 0.75);
    font-size: 11px;
    font-weight: 600;
    text-align: center;
}

@media (max-height: 640px) {
    :root {
        --conta-wave-height: 38px;
    }

    .conta-hero {
        padding-bottom: calc(var(--conta-wave-height) + 40px);
    }

    .conta-profile-card {
        margin-top: calc(-1 * (var(--conta-wave-height) + 28px));
        padding-top: 16px;
        padding-bottom: 16px;
    }
}
