:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary: #ec4899;
    --bg: #0f0f23;
    --surface: rgba(255, 255, 255, 0.05);
    --surface-hover: rgba(255, 255, 255, 0.1);
    --text: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.7);
    --border: rgba(255, 255, 255, 0.1);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --radius: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(236, 72, 153, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.05) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

.container {
    max-width: 680px;
    margin: 0 auto;
    padding: 40px 20px 60px;
    position: relative;
    z-index: 1;
}

/* Profile */
.profile {
    text-align: center;
    margin-bottom: 40px;
    animation: fadeInUp 0.6s ease-out;
}

.profile-image {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    border-radius: 50%;
    padding: 4px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.3);
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--bg);
    background: var(--surface);
}

.profile-name {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.025em;
}

.profile-bio {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 420px;
    margin: 0 auto 24px;
    line-height: 1.6;
}

/* Share Buttons */
.share-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.share-btn:hover {
    background: var(--surface-hover);
    transform: translateY(-2px);
    border-color: var(--primary-light);
}

.share-btn.telegram:hover {
    color: #229ed9;
    border-color: #229ed9;
}

.share-btn.twitter:hover {
    color: #000000;
    background: #ffffff;
    border-color: #ffffff;
}

.share-btn.whatsapp:hover {
    color: #25d366;
    border-color: #25d366;
}

.share-btn.copy:hover {
    color: var(--primary-light);
}

/* Section Titles */
.section-title {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 16px;
    text-align: center;
}

/* Links Section */
.links-section {
    margin-bottom: 40px;
    animation: fadeInUp 0.6s ease-out 0.1s both;
}

.links-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.link-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text);
    transition: var(--transition);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary), var(--secondary));
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.link-card:hover {
    background: var(--surface-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    border-color: rgba(99, 102, 241, 0.3);
}

.link-card:hover::before {
    transform: scaleY(1);
}

.link-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.08);
}

.link-content {
    flex: 1;
    min-width: 0;
}

.link-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.link-desc {
    font-size: 0.875rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.link-arrow {
    color: var(--text-muted);
    transition: var(--transition);
    flex-shrink: 0;
}

.link-card:hover .link-arrow {
    color: var(--primary-light);
    transform: translateX(4px);
}

.link-clicks {
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 0.6875rem;
    color: var(--text-muted);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.link-card:hover .link-clicks {
    opacity: 1;
}

/* Featured Section */
.featured-section {
    margin-bottom: 40px;
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.featured-card {
    display: block;
    padding: 24px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(236, 72, 153, 0.15));
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.featured-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.featured-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.25);
    border-color: rgba(99, 102, 241, 0.5);
}

.featured-badge {
    display: inline-block;
    padding: 4px 12px;
    background: var(--secondary);
    color: white;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    border-radius: 999px;
    margin-bottom: 12px;
}

.featured-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.featured-desc {
    color: var(--text-muted);
    font-size: 0.9375rem;
    margin-bottom: 16px;
    line-height: 1.6;
}

.featured-cta {
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    color: var(--primary-light);
    transition: var(--transition);
}

.featured-card:hover .featured-cta {
    color: #fff;
}

/* Footer */
.footer {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8125rem;
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

.footer p {
    margin-bottom: 8px;
}

.footer-copy {
    opacity: 0.6;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    padding: 12px 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text);
    font-size: 0.875rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
    pointer-events: none;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 480px) {
    .container {
        padding: 24px 16px 40px;
    }
    
    .profile-image {
        width: 100px;
        height: 100px;
    }
    
    .profile-name {
        font-size: 1.5rem;
    }
    
    .profile-bio {
        font-size: 0.9375rem;
    }
    
    .link-card {
        padding: 14px 16px;
    }
    
    .link-icon {
        width: 42px;
        height: 42px;
        font-size: 1.25rem;
    }
    
    .featured-card {
        padding: 20px;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
