:root {
    --bg-color: #050505;
    --accent-color: #ffffff;
    --text-color: #ffffff;
    --secondary-text: #a0a0a0;
    --nav-bg: rgba(5, 5, 5, 0.8);
    --card-bg: rgba(15, 15, 15, 0.7);
    --border: rgba(255, 255, 255, 0.1);
    --primary-gradient: linear-gradient(45deg, #fff, #888);
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Background */
.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at center, #111 0%, #000 100%);
}

.background-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://www.transparenttextures.com/patterns/carbon-fibre.png');
    opacity: 0.05;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 1000;
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.nav-logo-img {
    height: 34px;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.2));
}

.nav-brand {
    font-size: 1.4rem;
    font-weight: 900;
    letter-spacing: -1.2px;
    font-family: 'Unbounded', cursive;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.lang-switcher {
    display: flex;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 4px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.lang-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0.4;
    filter: grayscale(1);
}

.lang-btn:hover {
    opacity: 0.8;
    background: rgba(255, 255, 255, 0.05);
}

.lang-btn.active {
    opacity: 1;
    filter: grayscale(0);
    background: rgba(255, 255, 255, 0.1);
}

.flag-icon {
    width: 20px;
    height: 14px;
    object-fit: cover;
    border-radius: 2px;
}

.nav-auth {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--secondary-text);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.nav-discord {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-login {
    padding: 8px 16px;
}

.nav-register {
    background: #fff;
    color: #000 !important;
    padding: 10px 24px;
    border-radius: 10px;
    font-weight: 700 !important;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

.nav-register:hover {
    background: #f0f0f0;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.15);
}

/* Hero Section */
.hero {
    padding-top: 70px; /* Navbar height */
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 3rem;
    align-items: center;
    text-align: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero-title {
    font-size: 5.5rem;
    line-height: 1;
    font-weight: 900;
    margin-bottom: 1.5rem;
    letter-spacing: -4.5px;
    font-family: 'Unbounded', cursive;
    max-width: 800px;
}

.glow-text {
    background: linear-gradient(to bottom, #fff 30%, #999 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 40px rgba(255, 255, 255, 0.15));
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--secondary-text);
    margin-bottom: 3rem;
    max-width: 600px;
    line-height: 1.5;
    font-weight: 400;
}

/* Search Box */
.search-container {
    margin-bottom: 3.5rem;
    width: 100%;
    display: flex;
    justify-content: center;
}

.search-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 6px 6px 6px 28px;
    border-radius: 22px;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 500px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    gap: 0;
}

.search-box:focus-within {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.search-prefix {
    color: #555;
    font-family: 'Unbounded', cursive;
    font-weight: 700;
    font-size: 0.95rem;
    white-space: nowrap;
    user-select: none;
    margin-right: 4px;
}

.search-input {
    background: transparent;
    border: none;
    color: #fff;
    padding: 12px 0;
    font-size: 0.95rem;
    font-family: 'Unbounded', cursive;
    width: 100%;
    outline: none;
    letter-spacing: -0.5px;
}

.search-input::placeholder {
    color: #222;
}

.search-btn {
    background: #fff;
    color: #000;
    border: none;
    padding: 12px 32px;
    border-radius: 16px;
    font-weight: 900;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Unbounded', cursive;
    margin-left: 10px;
}

.search-btn:hover {
    background: #f0f0f0;
    transform: scale(1.03);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

/* Stats */
.hero-stats {
    display: flex;
    gap: 4rem;
}

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

.stat-value {
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: -1px;
    font-family: 'Unbounded', cursive;
}

.stat-label {
    font-size: 0.75rem;
    color: #444;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
}

/* Visuals */
.hero-visual {
    display: flex;
    justify-content: center;
    position: relative;
    margin-bottom: -1rem;
}

.large-logo {
    width: 280px;
    height: auto;
    filter: drop-shadow(0 0 60px rgba(255, 255, 255, 0.08));
    animation: floatLarge 8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes floatLarge {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50% { transform: translateY(-25px) rotate(3deg); }
}

/* Footer */
.main-footer {
    border-top: 1px solid var(--border);
    padding: 2.5rem 0;
    background: transparent;
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #333;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--secondary-text);
    text-decoration: none;
}

.footer-links a:hover {
    color: #fff;
}

/* Auth Pages */
.auth-page {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.auth-nav {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 100;
}

.auth-container {
    width: 100%;
    max-width: 450px;
    padding: 20px;
    z-index: 10;
}

.auth-card {
    background: rgba(15, 15, 15, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    text-align: center;
}

.auth-logo img {
    height: 90px;
    margin-bottom: 2rem;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.25));
    transition: transform 0.3s ease;
}

.auth-logo img:hover {
    transform: scale(1.05);
}

.auth-title {
    font-family: 'Unbounded', cursive;
    font-size: 1.8rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
}

.auth-subtitle {
    color: var(--secondary-text);
    font-size: 0.9rem;
    margin-bottom: 2.5rem;
}

.auth-form {
    text-align: left;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.8rem;
    color: #555;
}

.form-group input {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 14px 18px;
    border-radius: 12px;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s ease;
}

.form-group input:focus {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
}

.input-with-prefix {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 0 20px;
    transition: all 0.3s ease;
    height: 54px;
}

.input-with-prefix:focus-within {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
}

.input-prefix {
    color: #555;
    font-family: 'Unbounded', cursive;
    font-weight: 700;
    font-size: 0.9rem;
    user-select: none;
    margin-right: 0;
    display: flex;
    align-items: center;
    height: 100%;
}

.input-with-prefix input {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    font-size: 0.9rem;
    font-family: 'Unbounded', cursive !important;
    color: #fff;
    height: 100%;
    width: 100%;
    outline: none;
    display: flex;
    align-items: center;
    margin-left: 2px;
}

.auth-submit {
    width: 100%;
    background: #fff;
    color: #000;
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 1rem;
    font-family: 'Unbounded', cursive;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.auth-submit:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 255, 255, 0.15);
}

.auth-footer {
    margin-top: 2rem;
    font-size: 0.9rem;
    color: var(--secondary-text);
}

.auth-footer a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

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

/* Dashboard Styles */
.dashboard-page {
    background-color: var(--bg-color);
    min-height: 100vh;
}

.dashboard-main {
    padding-top: 100px;
    padding-bottom: 50px;
    min-height: 100vh;
}

.dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 2.5rem;
}

.sidebar {
    height: fit-content;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    color: var(--secondary-text);
    text-decoration: none;
    border-radius: 14px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.sidebar-link i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.sidebar-link:hover {
    background: rgba(255, 255, 255, 0.03);
    color: #fff;
}

.sidebar-link.active {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-weight: 700;
}

.dashboard-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.content-title {
    font-family: 'Unbounded', cursive;
    font-size: 2rem;
    font-weight: 900;
}

.preview-link {
    color: #fff;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.05);
    padding: 10px 20px;
    border-radius: 12px;
    font-family: 'Unbounded', cursive;
    font-size: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

.preview-link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.stat-card {
    background: rgba(15, 15, 15, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #fff;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--secondary-text);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 900;
    font-family: 'Unbounded', cursive;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 1.5rem;
}

.grid-card {
    background: rgba(15, 15, 15, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 2rem;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.card-header h2 {
    font-family: 'Unbounded', cursive;
    font-size: 1.2rem;
    font-weight: 700;
}

.add-link-btn {
    background: #fff;
    color: #000;
    border: none;
    padding: 8px 16px;
    border-radius: 10px;
    font-weight: 800;
    font-size: 0.8rem;
    cursor: pointer;
    font-family: 'Unbounded', cursive;
    transition: all 0.3s ease;
}

.empty-state {
    text-align: center;
    padding: 4rem 0;
    color: #333;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.empty-state p {
    font-weight: 600;
}

.chart-placeholder {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    color: #333;
    text-align: center;
    padding: 2rem;
    font-weight: 600;
}

.user-greeting {
    color: var(--secondary-text);
    font-size: 0.9rem;
    margin-right: 1.5rem;
}

#display-username {
    color: #fff;
    font-weight: 700;
}

.nav-logout {
    color: #ff4d4d !important;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
}

.nav-logout:hover {
    text-shadow: 0 0 10px rgba(255, 77, 77, 0.3);
}

/* Responsive Dashboard */
@media (max-width: 1024px) {
    .dashboard-container {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        display: none; /* Mobile menu needed later */
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

.dashboard-grid.single-col {
    grid-template-columns: 1fr;
}

.bio-editor textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 14px 18px;
    border-radius: 12px;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    outline: none;
    min-height: 100px;
    resize: vertical;
    margin-bottom: 1rem;
}

.link-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.link-input-group input {
    flex: 1;
}

.remove-link {
    background: rgba(255, 77, 77, 0.1);
    color: #ff4d4d;
    border: 1px solid rgba(255, 77, 77, 0.2);
    border-radius: 10px;
    padding: 0 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.remove-link:hover {
    background: #ff4d4d;
    color: #fff;
}

/* Profile Page Styles */
.profile-page {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.profile-card {
    width: 100%;
    max-width: 500px;
    background: rgba(15, 15, 15, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 32px;
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
}

.profile-avatar {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.1));
}

.profile-name {
    font-family: 'Unbounded', cursive;
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
}

.profile-bio {
    color: var(--secondary-text);
    font-size: 0.95rem;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.profile-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.profile-link-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 18px 25px;
    border-radius: 16px;
    color: #fff;
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.profile-link-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-3px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.profile-link-item i {
    font-size: 0.8rem;
    opacity: 0.5;
}

.profile-footer {
    margin-top: 3rem;
}

.footer-brand {
    font-family: 'Unbounded', cursive;
    font-size: 0.8rem;
    font-weight: 700;
    color: #333;
    text-decoration: none;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.footer-brand:hover {
    color: #666;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-visual {
        display: none;
    }
    
    .nav-links {
        display: none;
    }
    
    .search-box {
        max-width: 100%;
    }
}
