:root {
    /* Brand Colors based on new Nexus Grill Logo */
    --bg-dark: #050508;
    --neon-purple: #8b5cf6;
    --neon-blue: #00f3ff;

    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;

    /* Button Styles */
    --btn-bg: rgba(255, 255, 255, 0.03);
    --btn-border: 1px solid rgba(139, 92, 246, 0.3);
    /* Subtle purple border */

    --radius-pill: 12px;
    /* More modern than full pill */
}

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

body {
    background-color: var(--bg-dark);
    background-image:
        radial-gradient(circle at 50% 0%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 50% 100%, rgba(0, 243, 255, 0.1) 0%, transparent 50%);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
}

.container {
    width: 100%;
    max-width: 480px;
    /* Mobile width constraint */
    padding: 2.5rem 1.5rem 8rem;
    /* Extra padding bottom for sticky footer */
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ================= HEADER / PROFILE ================= */
.profile-section {
    width: 100%;
    text-align: center;
    position: relative;
    margin-bottom: 2rem;
}

.share-btn {
    position: absolute;
    top: -10px;
    right: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.1rem;
    cursor: pointer;
    backdrop-filter: blur(5px);
    transition: background 0.3s ease;
}

.share-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.avatar-container {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    background: #000;
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.4);
    /* Neon glow */
    border: 2px solid rgba(139, 92, 246, 0.8);
}

.avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.username {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.bio {
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.4;
    color: var(--text-glass);
}

/* ================= LINKS SECTION ================= */
.links-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.link-btn {
    position: relative;
    width: 100%;
    padding: 1.2rem 1.5rem;
    border-radius: var(--radius-pill);
    background: var(--btn-bg);
    border: var(--btn-border);
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 500;
    font-size: 1.05rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    overflow: hidden;
}

.link-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.link-btn:hover {
    border-color: var(--neon-blue);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.2);
    transform: translateY(-3px);
}

.link-btn:hover::before {
    transform: translateX(100%);
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 10px rgba(0, 243, 255, 0.1);
    }

    50% {
        box-shadow: 0 0 25px rgba(0, 243, 255, 0.5);
        border-color: rgba(0, 243, 255, 0.8);
    }

    100% {
        box-shadow: 0 0 10px rgba(0, 243, 255, 0.1);
    }
}

.link-btn:active {
    transform: scale(0.96) !important;
    transition: transform 0.1s ease;
}

.highlight-btn {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(0, 243, 255, 0.1));
    border: 1px solid rgba(0, 243, 255, 0.4);
    font-weight: 700;
    animation: pulseGlow 2s infinite ease-in-out;
}

.link-btn.with-icon {
    justify-content: flex-start;
    padding-left: 0.8rem;
}

.link-btn.with-icon .btn-text {
    flex-grow: 1;
    text-align: center;
    padding-right: 2rem;
    /* Balance the absolute icon on the left */
}

/* Specific styling for the app icon inside the button */
.circle-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    background: #000;
    flex-shrink: 0;
}

.circle-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* The 3 dots on the right of every button */
.btn-ellipsis {
    position: absolute;
    right: 1.5rem;
    font-size: 1rem;
    opacity: 0.6;
}

/* ================= STICKY FOOTER ================= */
.sticky-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem;
    background: linear-gradient(to top, var(--bg-dark) 50%, transparent);
    /* Fade effect */
    z-index: 100;
}

.join-btn {
    background: linear-gradient(135deg, var(--neon-purple), #5842be);
    color: #ffffff;
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 10px 20px rgba(139, 92, 246, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-bottom: 1rem;
}

.join-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px rgba(139, 92, 246, 0.4);
}

.join-btn:active {
    transform: scale(0.95);
    box-shadow: 0 5px 10px rgba(139, 92, 246, 0.4);
}

.footer-legal {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-legal a {
    color: inherit;
    text-decoration: none;
}

.footer-legal a:hover {
    text-decoration: underline;
}