:root {
    --primary-purple: #6c2b8e;
    --primary-light: #9d50bb;
    --accent-orange: #f39c12;
    --text-color: #2d3436;
    --glass-bg: rgba(255, 255, 255, 0.45);
    --glass-border: rgba(255, 255, 255, 0.6);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', 'Montserrat', sans-serif;
}

body {
    background: #f8f9fc;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 20px;
    overflow-x: hidden;
    position: relative;
}

/* Animated Mesh Gradient Background */
.bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: #f8f9fc;
}

.blob {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: move 20s infinite alternate;
}

.blob-1 {
    background: #e0c3fc;
    top: -10%;
    left: -10%;
    animation-duration: 25s;
}

.blob-2 {
    background: #fff9db;
    bottom: -10%;
    right: -10%;
    animation-duration: 30s;
    animation-delay: -5s;
}

.blob-3 {
    background: #ffe3ec;
    top: 40%;
    left: 30%;
    width: 400px;
    height: 400px;
    animation-duration: 20s;
    animation-delay: -10s;
}

@keyframes move {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(100px, 50px) scale(1.1); }
}

.container {
    max-width: 420px;
    width: 100%;
    text-align: center;
    padding: 40px 15px;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Header & Top Buttons */
.top-nav {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 35px;
    animation: fadeInDown 0.8s ease-out;
}

.nav-btn {
    width: 40px;
    height: 40px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    color: #444;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px) scale(1.1);
    box-shadow: 0 6px 12px rgba(0,0,0,0.05);
}

/* Profile Section */
.profile-section {
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease-out;
}

.logo-container {
    width: 110px;
    height: 110px;
    background: #fff;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(108, 43, 142, 0.1);
    overflow: hidden;
    padding: 18px;
    border: 4px solid #fff;
}

.logo-container img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.title {
    color: var(--primary-purple);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 10px;
    font-family: 'Montserrat', sans-serif;
}

.subtitle {
    color: #636e72;
    font-size: 0.92rem;
    line-height: 1.6;
    max-width: 320px;
    margin: 0 auto;
    font-weight: 400;
}

/* Links Section */
.links-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    margin-bottom: 45px;
}

.link-btn {
    display: flex;
    align-items: center;
    padding: 15px 22px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 100px;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    box-shadow: var(--glass-shadow);
    animation: fadeInUp 0.8s ease-out both;
}

.link-btn:nth-child(1) { animation-delay: 0.1s; }
.link-btn:nth-child(2) { animation-delay: 0.2s; }
.link-btn:nth-child(3) { animation-delay: 0.3s; }
.link-btn:nth-child(4) { animation-delay: 0.4s; }
.link-btn:nth-child(5) { animation-delay: 0.5s; }

.link-btn:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 24px rgba(0,0,0,0.08);
}

.link-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 18px;
    flex-shrink: 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.link-icon i {
    font-size: 1.1rem;
}

.link-text {
    flex-grow: 1;
    text-align: center;
    margin-right: 40px;
}

.link-more {
    position: absolute;
    right: 22px;
    color: #b2bec3;
    transition: color 0.3s;
}

.link-btn:hover .link-more {
    color: var(--primary-purple);
}

/* Social Icons */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 60px;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.social-btn {
    font-size: 1.5rem;
    color: #2d3436;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-btn:hover {
    color: var(--primary-purple);
    transform: translateY(-3px);
}

/* Footer Section */
.footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    margin-bottom: 20px;
    animation: fadeIn 1.2s ease-out 0.8s both;
}

.join-btn {
    background: #fff;
    color: #2d3436;
    padding: 12px 28px;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.join-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.footer-links {
    display: flex;
    gap: 12px;
}

.footer-link {
    font-size: 0.72rem;
    color: #b2bec3;
    text-decoration: none;
    font-weight: 500;
}

.footer-link:hover {
    color: var(--primary-purple);
    text-decoration: underline;
}

/* QR Code Section */
.qr-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 10;
    animation: fadeIn 1.5s ease-out;
}

.qr-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: #636e72;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.qr-box {
    width: 90px;
    height: 90px;
    background: #fff;
    padding: 8px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.qr-box img {
    width: 100%;
    height: 100%;
}

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

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Toast */
.toast {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(45, 52, 54, 0.9);
    color: #fff;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 1000;
    backdrop-filter: blur(8px);
}

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

@media (max-width: 768px) {
    .qr-container { display: none; }
}

@media (max-width: 480px) {
    .container { padding-top: 25px; }
    .title { font-size: 1.35rem; }
    .subtitle { font-size: 0.88rem; }
}
