* {
    box-sizing: border-box;
}

body {
    background: var(--page-bg);
    color: var(--page-text);
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    display: flex;
    justify-content: center;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 410px;
    padding: 10px;
    text-align: center;
}

.profile-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 60px auto 0;
    display: block;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    animation: profilePop 900ms ease both;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

@keyframes profilePop {
    from { opacity: 0; transform: scale(0.9) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.profile-name {
    font-size: 30px;
    font-weight: 700;
    margin: 10px 0 0;
    color: var(--page-primary);
}

.profile-description {
    font-size: 14px;
    margin: 6px 0 15px;
    line-height: 1.55;
}

.icon-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.icon-container a {
    display: grid;
    place-items: center;
    width: 35px;
    height: 35px;
    background: var(--page-primary);
    border-radius: 50%;
    color: #ffffff;
    text-decoration: none;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.icon-container a:hover {
    transform: translateY(-2px) scale(1.06);
    box-shadow: 0 12px 30px color-mix(in srgb, var(--page-accent) 35%, transparent);
}

.link-button {
    --button-bg: #ffffff;
    --button-text: #000000;
    --button-accent: var(--page-accent);
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 64px;
    margin-bottom: 10px;
    padding: 10px 14px;
    color: var(--button-text);
    text-decoration: none;
    border-radius: var(--button-radius);
    position: relative;
    overflow: hidden;
    isolation: isolate;
    transition: transform 140ms ease, box-shadow 140ms ease;
}

.link-button:hover {
    transform: scale(1.02);
}

.link-button::after {
    content: '';
    position: absolute;
    inset: 2px;
    z-index: -1;
    border-radius: calc(var(--button-radius) - 2px);
    background: var(--button-bg);
}

.link-button-glow::before,
.link-button-classic::before {
    content: '';
    position: absolute;
    inset: -30%;
    z-index: -2;
    background: linear-gradient(45deg, #ff3fb7, #1864d3, var(--button-accent));
    background-size: 200%;
    filter: blur(8px);
    opacity: 0.85;
    animation: glowMove 16s linear infinite;
}

.link-button-classic::before {
    opacity: 0.2;
}

.link-button-dark_gold {
    --button-bg: linear-gradient(145deg, #1a1408 0%, #0a0804 55%, #000000 100%);
    --button-text: #f4d77a;
    box-shadow: 0 2px 10px rgba(201, 168, 76, 0.25);
}

.link-button-dark_gold::before,
.link-button-blue_orange::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 640px;
    height: 640px;
    z-index: -2;
    transform: translate(-50%, -50%) rotate(0deg);
    animation: snakeRotate 3.5s linear infinite;
}

.link-button-dark_gold::before {
    background: conic-gradient(from 0deg, transparent 0deg, transparent 275deg, rgba(139, 105, 20, 0.15) 292deg, #c9a84c 320deg, #f4d77a 338deg, #fff0b8 348deg, #f4d77a 354deg, transparent 360deg);
}

.link-button-blue_orange {
    --button-bg: linear-gradient(145deg, #12324a 0%, #091b2a 54%, #02070c 100%);
    --button-text: #d7efff;
    box-shadow: 0 2px 12px rgba(46, 159, 230, 0.28);
}

.link-button-blue_orange::before {
    background: conic-gradient(from 0deg, transparent 0deg, transparent 275deg, rgba(255, 122, 26, 0.18) 292deg, #ff7a1a 318deg, #2e9fe6 338deg, #59c2ff 348deg, #ff7a1a 354deg, transparent 360deg);
}

.button-icon {
    width: 52px;
    max-height: 52px;
    object-fit: contain;
    margin-right: 14px;
    flex: 0 0 auto;
}

.button-copy {
    display: flex;
    flex-direction: column;
    gap: 3px;
    text-align: left;
    min-width: 0;
}

.button-copy strong {
    font-size: 15px;
    line-height: 1.2;
}

.button-copy small {
    font-size: 11.5px;
    line-height: 1.35;
}

@keyframes glowMove {
    0% { background-position: 0 0; }
    50% { background-position: 200% 0; }
    100% { background-position: 0 0; }
}

@keyframes snakeRotate {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.footer-container {
    margin-top: 80px;
    margin-bottom: 20px;
}

.footer-description {
    font-size: 14px;
}

.footer-description a,
.back-link {
    color: var(--page-primary);
    text-decoration: none;
    font-weight: 600;
}

.border-box {
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 7px;
    padding: 3px;
    display: inline-block;
    position: relative;
    top: -14px;
}

.legal-shell {
    width: min(820px, calc(100% - 28px));
    margin: 40px auto;
}

.legal-card {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 18px;
    box-shadow: 0 24px 70px rgba(26, 25, 55, 0.12);
    padding: clamp(22px, 4vw, 48px);
    line-height: 1.75;
}

@media (max-width: 420px) {
    .profile-img {
        width: 100px;
        height: 100px;
        margin-top: 20px;
    }

    .profile-name {
        font-size: 20px;
    }

    .icon-container {
        gap: 10px;
        margin-bottom: 10px;
    }

    .button-icon {
        width: 42px;
        max-height: 42px;
        margin-right: 10px;
    }

    .button-copy strong {
        font-size: 14px;
    }
}
