:root {
    --bg0: #070707;
    --bg1: #101010;

    --text: #f8fafc;
    --muted: rgba(248, 250, 252, .78);

    --cardBorder: rgba(255, 255, 255, .08);
    --shadow: 0 24px 70px rgba(0, 0, 0, .60);

    --btnBg: rgba(0, 0, 0, .55);
    --btnBorder: rgba(255, 255, 255, .10);
    --btnHover: rgba(0, 0, 0, .70);

    --radius: 26px;
}

* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 14px;

    background: radial-gradient(1200px 700px at 50% 30%, rgba(246, 211, 101, .18) 0%, transparent 55%),
    radial-gradient(1000px 650px at 20% 80%, rgba(184, 134, 11, .16) 0%, transparent 55%),
    radial-gradient(1000px 650px at 80% 80%, rgba(212, 175, 55, .14) 0%, transparent 55%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
}

.wrap {
    width: min(560px, 100%);
}

.card {
    position: relative;
    background: radial-gradient(900px 500px at 50% 20%, rgba(246, 211, 101, .10), transparent 60%),
    rgba(0, 0, 0, .45);
    border: 1px solid var(--cardBorder);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 22px 18px 18px;
    overflow: hidden;
}

.top {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
}

.avatar {
    width: 122px; /* bigger */
    height: 122px;
    border-radius: 999px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, .12);
    box-shadow: 0 14px 30px rgba(0, 0, 0, .55);
    background: #111;
    transform: translateZ(0); /* helps crisp rendering */
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.title {
    margin: 0;
    font-size: clamp(20px, 3.6vw, 26px);
    font-weight: 900;
    letter-spacing: .2px;
}

.bio {
    margin: 0;
    font-size: clamp(13px, 2.8vw, 14px);
    line-height: 1.45;
    color: var(--muted);
    max-width: 56ch;
}

.links {
    margin-top: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.link {
    display: grid;
    grid-template-columns: 34px 1fr 42px; /* bigger icon, bigger right button */
    align-items: center;
    gap: 12px;

    padding: 14px 14px;
    border-radius: 14px;
    background: var(--btnBg);
    border: 1px solid var(--btnBorder);

    text-decoration: none;
    color: var(--text);
    font-weight: 800;

    transition: transform .12s ease, background .12s ease, border-color .12s ease;
}

.link:hover {
    transform: translateY(-1px);
    background: var(--btnHover);
    border-color: rgba(246, 211, 101, .30);
}

/* ✅ left icons bigger, no square */
.l-ico {
    display: grid;
    place-items: center;
}

.l-ico svg {
    width: 24px; /* bigger */
    height: 24px;
    fill: currentColor;
    opacity: .95;
}

.l-text {
    text-align: center;
    font-size: 15px;
    line-height: 1.1;
    letter-spacing: .2px;
    font-family: sans-serif;
    font-weight: lighter;
}

.copyBtn {
    justify-self: end;
    width: 30px;
    height: 30px;
    border: none;
    background: transparent;
    color: rgba(248, 250, 252, .65);
    cursor: pointer;
    border-radius: 8px;
    display: grid;
    place-items: center;
    transition: background .12s ease, transform .12s ease;
}

.copyBtn:hover {
    background: rgba(255, 255, 255, .06);
    transform: translateY(-1px);
}

.copyBtn svg {
    width: 15px;
    height: 16px;
    fill: currentColor;
}

.social {
    margin-top: 18px;
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    opacity: .90;
}

.social a {
    color: var(--text);
    text-decoration: none;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    transition: transform .12s ease, background .12s ease;
}

.social a:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, .06);
}

.social svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    opacity: .95;
}

.toast {
    position: fixed;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, .78);
    border: 1px solid rgba(246, 211, 101, .35);
    color: #fff;
    padding: 10px 12px;
    border-radius: 999px;
    font-size: 13px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .5);
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(-4px);
}

@media (max-width: 420px) {
    body {
        padding: 18px 12px;
    }

    .card {
        padding: 18px 14px 14px;
        border-radius: 22px;
    }

    .link {
        padding: 13px 12px;
    }

    .l-text {
        font-size: 14px;
    }

    .avatar {
        width: 86px;
        height: 86px;
    }
}

/* top-right share button */
.shareBtn {
    position: absolute;
    top: 16px;
    right: 16px;

    width: 36px;
    height: 36px;
    border-radius: 50%;

    border: none;
    background: rgba(255, 255, 255, .12);
    backdrop-filter: blur(6px);

    display: grid;
    place-items: center;
    cursor: pointer;

    transition: background .15s ease, transform .15s ease;
}

.shareBtn:hover {
    background: rgba(255, 255, 255, .22);
    transform: translateY(-1px);
}

.shareBtn svg {
    width: 18px;
    height: 18px;
    fill: #fff;
    opacity: .9;
}
