.profile-body {
    min-height: 100vh;
    overflow-x: hidden;
    max-width: 100vw;
    background: #eef0f4;
}

.profile-shell {
    width: 100%;
    max-width: 430px;
    min-height: 100vh;
    margin: 0 auto;
    padding-bottom: calc(95px + env(safe-area-inset-bottom, 0px));
    overflow-x: hidden;
    box-sizing: border-box;
    background: radial-gradient(circle at 50% 0, #fff, #f7f8fa 42%, #eef0f4);
}

.profile-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 12px 10px 8px;
}

.profile-back,
.profile-logout {
    display: grid;
    height: 38px;
    padding: 0;
    place-items: center;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    color: #0f172a;
    text-decoration: none;
    cursor: pointer;
}

.profile-back {
    width: 38px;
    flex: 0 0 auto;
}

.profile-logout {
    width: auto;
    padding: 0 10px;
    font-size: 9px;
    font-weight: 700;
    flex: 0 0 auto;
}

.profile-back .icon { width: 16px; }

.profile-logo {
    display: block;
    width: min(118px, 34vw);
    margin: 0 auto;
    flex: 1;
}

.profile-logo img {
    display: block;
    width: 100%;
    height: auto;
}

.profile-main {
    display: grid;
    gap: 14px;
    width: 100%;
    min-width: 0;
    padding: 0 10px 18px;
    box-sizing: border-box;
}

.profile-hero {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-width: 0;
    padding: 14px;
    border: 1px solid #eceef2;
    border-radius: 22px;
    background: #fff;
    box-shadow: var(--shadow);
    box-sizing: border-box;
}

.profile-avatar {
    display: grid;
    width: 54px;
    height: 54px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 16px;
    color: #fff;
    background: linear-gradient(135deg, var(--red), var(--red-2));
    font-size: 18px;
    font-weight: 800;
}

.profile-hero-copy {
    min-width: 0;
}

.profile-hero-copy span {
    color: var(--red);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.profile-hero-copy h1 {
    margin: 4px 0 0;
    font-size: clamp(18px, 5.4vw, 22px);
    line-height: 1.1;
}

.profile-hero-copy p {
    margin: 4px 0 0;
    overflow: hidden;
    color: #64748b;
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-section {
    display: grid;
    gap: 10px;
    width: 100%;
    min-width: 0;
}

.profile-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
}

.profile-section-head > div {
    min-width: 0;
}

.profile-section-head span {
    color: var(--red);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.profile-section-head h2 {
    margin: 3px 0 0;
    font-size: clamp(14px, 4.2vw, 16px);
    line-height: 1.2;
}

.profile-section-head .icon {
    width: 22px;
    flex: 0 0 auto;
    color: var(--red);
}

.profile-simulations-list,
.profile-trust-grid,
.profile-news-list {
    display: grid;
    gap: 8px;
    width: 100%;
    min-width: 0;
}

.profile-empty-card,
.profile-simulation-card,
.profile-representatives-card,
.profile-news-card,
.profile-trust-grid article,
.profile-security-banner {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    border: 1px solid #eceef2;
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow);
}

.profile-empty-card {
    padding: 16px 14px;
    text-align: center;
}

.profile-empty-card strong {
    display: block;
    font-size: 12px;
}

.profile-empty-card p {
    margin: 6px 0 10px;
    color: #64748b;
    font-size: 9px;
    line-height: 1.45;
}

.profile-empty-card a {
    color: var(--red);
    font-size: 10px;
    font-weight: 700;
    text-decoration: none;
}

.profile-simulation-card {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    grid-template-areas:
        "media copy"
        "action action";
    gap: 8px 10px;
    align-items: center;
    padding: 10px;
}

.profile-simulation-media {
    grid-area: media;
    display: block;
    overflow: hidden;
    width: 64px;
    height: 48px;
    border-radius: 12px;
    background: #eef2f7;
}

.profile-simulation-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-simulation-fallback {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    color: #94a3b8;
    font-size: 10px;
    font-weight: 700;
}

.profile-simulation-copy {
    grid-area: copy;
    display: grid;
    gap: 2px;
    min-width: 0;
}

.profile-simulation-copy strong {
    overflow: hidden;
    font-size: 11px;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-simulation-copy small {
    color: var(--red);
    font-size: 9px;
    font-weight: 700;
}

.profile-simulation-copy span {
    color: #64748b;
    font-size: 8px;
}

.profile-simulation-link {
    grid-area: action;
    display: flex;
    width: 100%;
    min-height: 36px;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, var(--red), var(--red-2));
    font-size: 9px;
    font-weight: 700;
    text-decoration: none;
}

.profile-representatives-card {
    padding: 12px;
    overflow: hidden;
}

.profile-representatives-card .resellers-block {
    width: 100%;
    min-width: 0;
    overflow: hidden;
}

.profile-representatives-card .attendant-resellers-wrap {
    min-width: 0;
    overflow: hidden;
}

.profile-representatives-card .attendant-resellers-carousel {
    margin: 0;
    padding: 2px 0 4px;
}

.profile-representatives-card .attendant-resellers-nav.is-prev { left: 2px; }
.profile-representatives-card .attendant-resellers-nav.is-next { right: 2px; }

.profile-representatives-card .attendant-reseller-card {
    min-width: 50%;
    max-width: 168px;
    padding: 8px 10px;
    gap: 8px;
}

.profile-representatives-card .attendant-reseller-photo {
    width: 48px;
    height: 48px;
}

.profile-representatives-card .attendant-reseller-copy strong {
    font-size: 13px;
}

.profile-whatsapp-action {
    display: flex;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    min-width: 0;
    min-height: 40px;
    margin-top: 8px;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 10px;
    border-radius: 13px;
    color: #fff;
    background: linear-gradient(135deg, #25d366, #12803c);
    font-size: 9.5px;
    font-weight: 700;
    text-decoration: none;
}

.profile-whatsapp-action .icon {
    width: 15px;
    flex: 0 0 auto;
}

.profile-whatsapp-action [data-resellers-action-label] {
    overflow: hidden;
    min-width: 0;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-trust-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.profile-trust-grid article {
    display: grid;
    gap: 8px;
    padding: 12px;
}

.profile-trust-grid .icon {
    width: 20px;
    color: var(--red);
}

.profile-trust-grid strong {
    font-size: 10px;
    line-height: 1.25;
}

.profile-trust-grid p {
    margin: 4px 0 0;
    color: #64748b;
    font-size: 8px;
    line-height: 1.4;
}

.profile-news-card {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 10px;
    padding: 10px;
}

.profile-news-card img {
    width: 64px;
    height: 48px;
    border-radius: 12px;
    object-fit: cover;
}

.profile-news-card h3 {
    margin: 0;
    font-size: 10px;
    line-height: 1.3;
}

.profile-news-card p {
    margin: 4px 0 0;
    color: #64748b;
    font-size: 8px;
    line-height: 1.4;
}

.profile-security-banner {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px;
    border-color: #dbeafe;
    background: linear-gradient(180deg, #f8fbff 0%, #f0f7ff 100%);
}

.profile-security-banner .icon {
    width: 20px;
    flex: 0 0 auto;
    color: #2563eb;
}

.profile-security-banner strong {
    display: block;
    font-size: 11px;
}

.profile-security-banner p {
    margin: 4px 0 0;
    color: #475569;
    font-size: 8.5px;
    line-height: 1.45;
}

.profile-body .bottom-nav {
    max-width: 430px;
    margin: 0 auto;
}

@media (max-width: 360px) {
    .profile-trust-grid {
        grid-template-columns: 1fr;
    }

    .profile-main {
        padding-left: 8px;
        padding-right: 8px;
    }
}
