:root {
    --primary: #8b5cf6;
    --primary-light: rgba(139, 92, 246, 0.12);
    --bg: #0a0a0a;
    --card-bg: rgba(255, 255, 255, 0.06);
    --card-border: rgba(255, 255, 255, 0.08);
    --card-hover: rgba(255, 255, 255, 0.1);
}

/* === LIGHT THEME === */
[data-theme="light"] {
    --bg: #f5f5f7;
    --card-bg: #ffffff; --card-border: rgba(0, 0, 0, 0.08); --card-hover: rgba(0, 0, 0, 0.04);
    --primary-light: rgba(139, 92, 246, 0.1);
}
[data-theme="light"] body { color: #374151; }
[data-theme="light"] .name { color: #111827; }
[data-theme="light"] .bio { color: #6b7280; }
[data-theme="light"] .link-card { color: #111827; }
[data-theme="light"] .social-icons a { color: #6b7280; }
.theme-toggle-float {
    position: fixed; bottom: 1.25rem; right: 1.25rem; width: 40px; height: 40px;
    border-radius: 50%; background: var(--card-bg); border: 1px solid var(--card-border);
    color: #888; cursor: pointer; display: flex; align-items: center;
    justify-content: center; z-index: 1000; transition: all 0.2s;
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.theme-toggle-float:hover { color: #e5e5e5; transform: scale(1.1); }
[data-theme="light"] .theme-toggle-float:hover { color: #111827; }
@media print { .theme-toggle-float { display: none !important; } }

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

body {
    min-height: 100vh;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #e5e5e5;
    background: var(--bg);
}

.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 3rem 1.5rem 4rem;
    max-width: 480px;
    margin: 0 auto;
}

/* Profile */
.profile {
    text-align: center;
    margin-bottom: 2rem;
}

.avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 3px solid var(--primary);
}

.avatar-placeholder {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #a78bfa);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    font-weight: 700;
    color: #fff;
    margin: 0 auto 1rem;
}

.name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}

.bio {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
    max-width: 320px;
    margin: 0 auto;
}

/* Social icons */
.social-icons {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 1rem;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s;
}

.social-icons a:hover {
    color: var(--primary);
    transform: scale(1.15);
}

/* Links */
.links {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.link-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    text-decoration: none;
    color: #fff;
    transition: all 0.25s ease;
    backdrop-filter: blur(8px);
}

.link-card:hover {
    background: var(--card-hover);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.link-card:active {
    transform: translateY(0);
}

.link-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
}

.link-title {
    flex: 1;
    font-weight: 500;
    font-size: 0.95rem;
}

.link-arrow {
    flex-shrink: 0;
    opacity: 0.3;
    transition: opacity 0.25s;
}

.link-card:hover .link-arrow {
    opacity: 0.7;
}

/* Responsive */
@media (max-width: 480px) {
    .page {
        padding: 2rem 1rem 3rem;
    }

    .name {
        font-size: 1.3rem;
    }

    .avatar, .avatar-placeholder {
        width: 80px;
        height: 80px;
    }

    .avatar-placeholder {
        font-size: 1.8rem;
    }
}
