* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --pink-light: #fce7f3;
    --pink-soft: #fbcfe8;
    --pink-medium: #f9a8d4;
    --pink-deep: #ec4899;
    --rose-light: #ffe4e6;
    --rose-medium: #fecdd3;
    --peach: #fed7aa;
    --lavender: #e9d5ff;
    --text-dark: #831843;
    --text-muted: #be185d;
    --text-light: #f472b6;
    --white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.65);
    --glass-border: rgba(255, 255, 255, 0.8);
    --shadow-soft: rgba(236, 72, 153, 0.15);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    min-height: 100vh;
    background: linear-gradient(180deg, #fff1f2 0%, #fce7f3 50%, #fbcfe8 100%);
}

.page {
    position: relative;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    overflow: hidden;
}

/* ==================== Нежный градиентный фон ==================== */
.gradient-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    background: linear-gradient(180deg, #fff1f2 0%, #fce7f3 30%, #fbcfe8 70%, #f9a8d4 100%);
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.7;
    animation: orbFloat 18s ease-in-out infinite;
}

.gradient-orb-1 {
    width: 500px;
    height: 500px;
    top: -150px;
    left: -150px;
    background: radial-gradient(circle, rgba(251, 207, 232, 0.8) 0%, transparent 70%);
    animation-delay: 0s;
}

.gradient-orb-2 {
    width: 400px;
    height: 400px;
    top: 40%;
    right: -120px;
    background: radial-gradient(circle, rgba(253, 164, 175, 0.6) 0%, transparent 70%);
    animation-delay: -4s;
}

.gradient-orb-3 {
    width: 350px;
    height: 350px;
    bottom: -100px;
    left: 20%;
    background: radial-gradient(circle, rgba(254, 205, 211, 0.7) 0%, transparent 70%);
    animation-delay: -8s;
}

.gradient-orb-4 {
    width: 300px;
    height: 300px;
    top: 30%;
    left: 10%;
    background: radial-gradient(circle, rgba(253, 215, 170, 0.5) 0%, transparent 70%);
    animation-delay: -12s;
}

@keyframes orbFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(40px, -40px) scale(1.08);
    }
    66% {
        transform: translate(-30px, 30px) scale(0.95);
    }
}

/* Лепестки на фоне */
.petal {
    position: absolute;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, var(--pink-medium), var(--rose-medium));
    border-radius: 50% 0 50% 0;
    opacity: 0.4;
    animation: petalFall 25s ease-in-out infinite;
}

.petal-1 {
    top: -20px;
    left: 10%;
    animation-delay: 0s;
    transform: rotate(45deg);
}

.petal-2 {
    top: -20px;
    left: 30%;
    animation-delay: -5s;
    transform: rotate(30deg);
}

.petal-3 {
    top: -20px;
    left: 50%;
    animation-delay: -10s;
    transform: rotate(60deg);
}

.petal-4 {
    top: -20px;
    left: 70%;
    animation-delay: -15s;
    transform: rotate(40deg);
}

.petal-5 {
    top: -20px;
    left: 90%;
    animation-delay: -20s;
    transform: rotate(50deg);
}

@keyframes petalFall {
    0% {
        transform: translateY(-20px) translateX(0) rotate(45deg);
        opacity: 0;
    }
    10% {
        opacity: 0.5;
    }
    90% {
        opacity: 0.5;
    }
    100% {
        transform: translateY(100vh) translateX(100px) rotate(225deg);
        opacity: 0;
    }
}

/* ==================== Контейнер ==================== */
.container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

/* ==================== Карточка профиля ==================== */
.profile-card {
    position: relative;
    width: 100%;
    padding: 44px 28px;
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 40px;
    border: 2px solid var(--glass-border);
    box-shadow: 
        0 20px 60px var(--shadow-soft),
        0 8px 30px rgba(236, 72, 153, 0.1),
        inset 0 2px 0 rgba(255, 255, 255, 0.9);
    overflow: hidden;
    text-align: center;
}

.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(249, 168, 212, 0.3) 0%, transparent 60%);
    animation: glowPulse 10s ease-in-out infinite;
    pointer-events: none;
}

@keyframes glowPulse {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.08);
    }
}

/* ==================== Аватар ==================== */
.avatar-wrapper {
    position: relative;
    width: 170px;
    height: 170px;
    margin: 0 auto 26px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.avatar-ring {
    position: absolute;
    width: 190px;
    height: 190px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--pink-medium), var(--rose-medium), var(--peach));
    padding: 3px;
    animation: ringRotate 8s linear infinite;
}

.avatar-ring::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.5) 50%, transparent 100%);
}

@keyframes ringRotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.avatar-frame {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    padding: 5px;
    background: var(--white);
    position: relative;
    z-index: 2;
    box-shadow: 0 8px 30px rgba(236, 72, 153, 0.2);
}

.avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    border: 2px solid var(--pink-soft);
}

/* Сердечки вокруг аватара */
.heart {
    position: absolute;
    width: 16px;
    height: 16px;
    background: var(--pink-medium);
    transform: rotate(45deg);
    animation: heartFloat 3s ease-in-out infinite;
    z-index: 1;
}

.heart::before,
.heart::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    background: var(--pink-medium);
    border-radius: 50%;
}

.heart::before {
    top: -8px;
    left: 0;
}

.heart::after {
    left: -8px;
    top: 0;
}

.heart-1 {
    top: 0;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    animation-delay: 0s;
}

.heart-2 {
    bottom: 10px;
    left: 10px;
    transform: scale(0.8) rotate(45deg);
    animation-delay: -1s;
}

.heart-3 {
    bottom: 10px;
    right: 10px;
    transform: scale(0.7) rotate(45deg);
    animation-delay: -2s;
}

@keyframes heartFloat {
    0%, 100% {
        transform: translateY(0) scale(1) rotate(45deg);
    }
    50% {
        transform: translateY(-10px) scale(1.1) rotate(45deg);
    }
}

/* ==================== Имя ==================== */
.name {
    font-family: 'Dancing Script', cursive;
    font-size: 58px;
    font-weight: 700;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.name-text {
    background: linear-gradient(135deg, var(--text-dark) 0%, var(--pink-deep) 50%, var(--text-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.name-accent {
    font-size: 26px;
    color: var(--white);
    padding: 4px 14px;
    background: linear-gradient(135deg, var(--pink-deep), var(--text-light));
    border-radius: 20px;
    border: 2px solid var(--white);
    box-shadow: 0 4px 20px rgba(236, 72, 153, 0.35);
    text-shadow: 0 2px 8px rgba(236, 72, 153, 0.3);
}

/* ==================== Подзаголовок ==================== */
.subtitle {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 22px;
}

.subtitle-icon {
    animation: sparkle 2.5s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.15) rotate(10deg);
    }
}

/* ==================== Разделитель ==================== */
.divider {
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--pink-medium), var(--rose-medium), var(--pink-medium), transparent);
    margin: 0 auto 22px;
    border-radius: 2px;
    position: relative;
}

.divider::before {
    content: '💕';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
}

/* ==================== Описание ==================== */
.bio {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 26px;
    font-weight: 400;
}

.highlight {
    color: var(--pink-deep);
    font-weight: 600;
    position: relative;
    background: linear-gradient(90deg, rgba(249, 168, 212, 0.3), rgba(251, 207, 232, 0.3));
    padding: 2px 8px;
    border-radius: 8px;
}

/* ==================== Статистика ==================== */
.stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-bottom: 30px;
    padding: 18px 24px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(255, 241, 242, 0.8));
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 20px rgba(236, 72, 153, 0.08);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.stat-value {
    font-size: 20px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--pink-deep), var(--text-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 36px;
    background: linear-gradient(to bottom, transparent, var(--pink-medium), transparent);
}

/* ==================== Кнопки-ссылки ==================== */
.links {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.link-button {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 24px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(255, 241, 242, 0.9));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.1);
}

.link-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(249, 168, 212, 0.3), rgba(251, 207, 232, 0.2));
    opacity: 0;
    transition: opacity 0.35s ease;
}

.link-button:hover::before {
    opacity: 1;
}

.link-button-primary {
    background: linear-gradient(135deg, rgba(249, 168, 212, 0.4), rgba(251, 207, 232, 0.5));
    border-color: var(--pink-medium);
}

.link-button-primary::before {
    background: linear-gradient(135deg, rgba(249, 168, 212, 0.4), rgba(253, 164, 175, 0.3));
}

.button-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pink-deep);
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--rose-light), var(--pink-soft));
    border-radius: 10px;
    padding: 6px;
}

.button-icon svg {
    width: 16px;
    height: 16px;
}

.link-button-primary .button-icon {
    background: linear-gradient(135deg, var(--pink-deep), var(--text-light));
    color: var(--white);
}

.link-text {
    flex: 1;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-align: center;
}

.button-arrow {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pink-deep);
    transition: transform 0.35s ease;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--rose-light), var(--pink-soft));
    border-radius: 10px;
    padding: 6px;
}

.button-arrow svg {
    width: 14px;
    height: 14px;
}

.link-button-primary .button-arrow {
    background: linear-gradient(135deg, var(--pink-deep), var(--text-light));
    color: var(--white);
}

.link-button:hover .button-arrow {
    transform: translateX(5px);
}

.link-button:hover {
    transform: translateY(-3px) scale(1.02);
    border-color: var(--pink-medium);
    box-shadow: 
        0 12px 35px rgba(236, 72, 153, 0.25),
        0 6px 20px rgba(249, 168, 212, 0.2);
}

.link-button:active {
    transform: translateY(-1px) scale(1);
}

/* ==================== Футер ==================== */
.footer {
    text-align: center;
    color: var(--text-muted);
    font-size: 12px;
    opacity: 0.7;
    font-weight: 400;
}

/* ==================== Адаптивность ==================== */
@media (max-width: 480px) {
    .page {
        padding: 24px 16px;
    }

    .profile-card {
        padding: 36px 20px;
        border-radius: 30px;
    }

    .avatar-wrapper {
        width: 150px;
        height: 150px;
        margin-bottom: 22px;
    }

    .avatar-ring {
        width: 170px;
        height: 170px;
    }

    .avatar-frame {
        width: 130px;
        height: 130px;
    }

    .name {
        font-size: 46px;
    }

    .name-accent {
        font-size: 22px;
    }

    .subtitle {
        font-size: 11px;
    }

    .bio {
        font-size: 15px;
    }

    .stats {
        gap: 18px;
        padding: 16px 20px;
    }

    .stat-value {
        font-size: 18px;
    }

    .stat-label {
        font-size: 9px;
    }

    .link-button {
        padding: 16px 20px;
        border-radius: 18px;
    }

    .link-text {
        font-size: 12px;
    }

    .button-icon,
    .button-arrow {
        width: 26px;
        height: 26px;
        border-radius: 8px;
    }

    .button-icon svg,
    .button-arrow svg {
        width: 14px;
        height: 14px;
    }
}

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

    .name {
        font-size: 40px;
    }

    .stats {
        flex-direction: column;
        gap: 14px;
    }

    .stat-divider {
        width: 36px;
        height: 1px;
    }
}

/* ==================== Блестящие частицы ==================== */
.sparkles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.sparkle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--white);
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    animation: sparkleAnim 4s ease-in-out infinite;
    opacity: 0;
}

.sparkle-1 {
    top: 15%;
    left: 15%;
    animation-delay: 0s;
}

.sparkle-2 {
    top: 25%;
    left: 85%;
    animation-delay: -1s;
}

.sparkle-3 {
    top: 55%;
    left: 90%;
    animation-delay: -2s;
}

.sparkle-4 {
    top: 75%;
    left: 20%;
    animation-delay: -3s;
}

.sparkle-5 {
    top: 45%;
    left: 50%;
    animation-delay: -4s;
}

@keyframes sparkleAnim {
    0%, 100% {
        transform: scale(0) rotate(0deg);
        opacity: 0;
    }
    50% {
        transform: scale(1) rotate(180deg);
        opacity: 0.8;
    }
}
