* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: #eef4ff;
}

body {
    min-height: 100svh;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    background:
        radial-gradient(circle at 15% 12%, rgba(255, 255, 255, 0.95), transparent 26rem),
        linear-gradient(145deg, #dcecff 0%, #f8fbff 44%, #eef4ff 100%);
    color: #111827;
    font-family: var(--font-family, "Inter", Arial, sans-serif);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.bio-shell {
    width: 100%;
    max-width: 430px;
    min-height: 100svh;
    position: relative;
    background: #ffffff;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.16);
    overflow: hidden;
}

.hero {
    height: 166px;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 82% 12%, rgba(255, 255, 255, 0.42), transparent 9rem),
        linear-gradient(145deg, #9ec9ff 0%, var(--primary-color, #0066ff) 54%, #0050d7 100%);
}

.hero::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -58px;
    width: 118%;
    height: 108px;
    border-radius: 50% 50% 0 0;
    background: #ffffff;
    transform: translateX(-50%);
}

.hero::after {
    content: "";
    position: absolute;
    right: -42px;
    bottom: -12px;
    width: 150px;
    height: 150px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
}

.profile-card {
    position: relative;
    z-index: 2;
    margin-top: -84px;
    padding: 0 22px 14px;
}

.profile-header {
    text-align: center;
    padding-top: 0;
}

.avatar {
    display: block;
    width: 90px;
    height: 90px;
    margin: 0 auto 8px;
    border-radius: 50%;
    object-fit: cover;
    background: #ffffff;
    border: 5px solid #ffffff;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.17);
}

h1 {
    margin: 0 0 4px;
    color: #050505;
    font-size: 1.52rem;
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: 0;
}

.title {
    margin: 0 0 8px;
    color: var(--primary-color, #0066ff);
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.3;
}

.bio {
    max-width: 305px;
    margin: 0 auto 9px;
    color: #222222;
    font-size: 0.84rem;
    line-height: 1.42;
}

.top-actions {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 0 11px;
}

.top-action {
    min-width: 82px;
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(0, 102, 255, 0.08);
    color: var(--primary-color, #0066ff);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1;
}

.top-action:hover,
.top-action:focus-visible {
    background: var(--primary-color, #0066ff);
    color: #ffffff;
    outline: none;
}

.link-list {
    display: grid;
    gap: 5px;
}

.link-row {
    min-height: 43px;
    display: grid;
    grid-template-columns: 30px 1fr 16px;
    align-items: center;
    gap: 10px;
    padding: 6px 12px;
    color: #111827;
    text-decoration: none;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.07);
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.25;
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.link-row:hover,
.link-row:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(0, 102, 255, 0.28);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.13);
    outline: none;
}

.row-icon {
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color, #0066ff);
    font-size: 1rem;
}

.row-icon-whatsapp {
    color: #25d366;
}

.row-icon-linkedin {
    color: #0a66c2;
}

.row-icon-facebook {
    color: #1877f2;
}

.row-icon-youtube {
    color: #ff0000;
}

.row-icon-instagram {
    color: #e4405f;
}

.row-icon-x,
.row-icon-github,
.row-icon-tiktok,
.row-icon-threads {
    color: #050505;
}

.row-arrow {
    color: #1f2937;
    font-size: 0.82rem;
    justify-self: end;
}

.social-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px;
    padding: 14px 0 6px;
}

.social-strip a {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color, #0066ff);
    text-decoration: none;
    font-size: 1.24rem;
    transition: transform 160ms ease, color 160ms ease;
}

.social-strip a:hover,
.social-strip a:focus-visible {
    transform: translateY(-2px);
    color: #050505;
    outline: none;
}

footer {
    text-align: center;
}

.credit {
    margin: 0;
    color: #6b7280;
    font-size: 0.68rem;
    line-height: 1.45;
}

.credit a {
    color: var(--primary-color, #0066ff);
    font-weight: 800;
    text-decoration: none;
}

@media (min-width: 520px) {
    body {
        padding: 34px 18px;
        align-items: flex-start;
    }

    .bio-shell {
        min-height: auto;
        border-radius: 34px;
    }
}

@media (max-height: 760px) {
    .hero {
        height: 138px;
    }

    .hero::before {
        bottom: -46px;
        height: 86px;
    }

    .hero::after {
        width: 118px;
        height: 118px;
    }

    .profile-card {
        margin-top: -70px;
        padding-bottom: 8px;
    }

    .avatar {
        width: 78px;
        height: 78px;
        border-width: 4px;
        margin-bottom: 7px;
    }

    h1 {
        font-size: 1.34rem;
        margin-bottom: 2px;
    }

    .title {
        font-size: 0.78rem;
        margin-bottom: 5px;
    }

    .bio {
        max-width: 330px;
        margin-bottom: 5px;
        font-size: 0.76rem;
        line-height: 1.3;
        display: -webkit-box;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .top-actions {
        gap: 6px;
        margin-bottom: 8px;
    }

    .top-action {
        min-width: 74px;
        min-height: 30px;
        padding: 6px 10px;
        font-size: 0.74rem;
    }

    .link-list {
        gap: 4px;
    }

    .link-row {
        min-height: 38px;
        padding: 5px 11px;
        border-radius: 10px;
        font-size: 0.8rem;
    }

    .row-icon {
        font-size: 0.94rem;
    }

    .social-strip {
        gap: 15px;
        padding: 9px 0 4px;
    }

    .social-strip a {
        width: 21px;
        height: 21px;
        font-size: 1.08rem;
    }

    .credit {
        font-size: 0.62rem;
        line-height: 1.25;
    }
}

@media (max-width: 360px) {
    .profile-card {
        padding-right: 16px;
        padding-left: 16px;
    }

    .link-row {
        grid-template-columns: 30px 1fr 16px;
        gap: 9px;
        font-size: 0.88rem;
    }

    .social-strip {
        gap: 16px;
    }
}
