/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Warm Beige/Cream Color Palette */
    --primary-color: #A79277;          /* Darker Tan/Brown - Primary */
    --primary-dark: #8B7355;            /* Darker Brown */
    --primary-light: #D1BB9E;           /* Tan/Beige - Light Primary */
    --secondary-color: #EAD8C0;         /* Medium Beige - Secondary */
    --secondary-dark: #D1BB9E;          /* Tan/Beige */
    --accent-color: #FFF2E1;            /* Light Cream/Beige - Accent */
    --accent-light: #FFF2E1;            /* Light Cream */
    
    /* Background Colors */
    --dark-bg: #1a1612;                 /* Dark Brown Background */
    --card-bg: #2a241f;                 /* Dark Brown Card */
    --card-hover: #3a342f;              /* Dark Brown Hover State */
    
    /* Text Colors */
    --text-primary: #FFF2E1;            /* Light Cream - Primary Text */
    --text-secondary: #EAD8C0;         /* Medium Beige - Secondary Text */
    --text-muted: #A79277;              /* Darker Tan - Muted Text */
    
    /* Gradients - Warm Palette */
    --gradient-1: linear-gradient(135deg, #A79277 0%, #8B7355 100%);
    --gradient-2: linear-gradient(135deg, #D1BB9E 0%, #A79277 100%);
    --gradient-3: linear-gradient(135deg, #EAD8C0 0%, #D1BB9E 100%);
    --gradient-hero: linear-gradient(135deg, rgba(167, 146, 119, 0.1) 0%, rgba(209, 187, 158, 0.1) 100%);
    --gradient-cool: linear-gradient(135deg, #A79277 0%, #D1BB9E 50%, #EAD8C0 100%);
    
    /* Shadows - Warm Glow */
    --shadow-primary: 0 0 20px rgba(167, 146, 119, 0.3);
    --shadow-secondary: 0 0 20px rgba(209, 187, 158, 0.3);
    --shadow-glow: 0 0 40px rgba(167, 146, 119, 0.5);
}

html {
    scroll-behavior: smooth;
}

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

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header and Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(26, 22, 18, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(167, 146, 119, 0.2);
    transition: all 0.3s ease;
}

.navbar {
    padding: 0.5rem 0;
}

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

.nav-left {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-right {
    display: flex;
    align-items: center;
}

.logo a {
    display: inline-block;
    text-decoration: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.logo a:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

.logo-image {
    height: 40px;
    width: auto;
    object-fit: contain;
    display: block;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-menu-right {
    display: flex;
    list-style: none;
    gap: 1rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-dropdown {
    font-size: 0.6rem;
    color: var(--text-secondary);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.nav-link:hover .nav-dropdown,
.nav-link.active .nav-dropdown {
    opacity: 1;
    color: var(--primary-color);
}

.nav-link::after {
    display: none;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-color);
    text-shadow: 0 0 10px rgba(255, 242, 225, 0.3);
}

/* Shop Link - Full Gold Frame */
.shop-link {
    border: 2px solid #FFD700 !important;
    padding: 0.5rem 1.2rem !important;
    border-radius: 5px;
    background: #FFD700 !important;
    box-shadow: none;
    color: #FFFFFF !important;
    transition: all 0.3s ease;
}

.shop-link:hover {
    background: #FFA500 !important;
    box-shadow: none;
    border-color: #FFA500 !important;
    color: #FFFFFF !important;
}

.shop-link.active {
    background: #FFD700 !important;
    box-shadow: none;
    border-color: #FFD700 !important;
    color: #FFFFFF !important;
}

/* Dropdown Menu Styles */
.nav-item-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--card-bg);
    border: 1px solid rgba(167, 146, 119, 0.3);
    border-radius: 8px;
    min-width: 180px;
    list-style: none;
    padding: 0.5rem 0;
    margin: 0.5rem 0 0 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
}

.nav-item-dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0;
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.dropdown-menu a:hover {
    background: var(--card-hover);
    color: var(--accent-color);
    border-left-color: var(--primary-color);
    padding-left: 1.75rem;
    text-shadow: 0 0 8px rgba(255, 242, 225, 0.2);
}

.dropdown-menu a:active {
    background: var(--primary-dark);
}

.btn-nav {
    background: var(--gradient-1);
    padding: 0.7rem 1.5rem;
    border-radius: 5px;
    color: var(--dark-bg) !important;
    font-weight: 700;
}

.btn-nav::after {
    display: none;
}

.btn-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(167, 146, 119, 0.4);
    color: var(--dark-bg) !important;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    overflow: hidden;
    margin-top: 0;
    padding-top: 0;
    top: 0;
}

.hero-background-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: -1;
    opacity: 0.4;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    z-index: 1;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 8rem 0 4rem;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease;
}

.hero-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 6rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    letter-spacing: 5px;
    animation: fadeInUp 0.8s ease 0.2s both;
    text-shadow: 0 0 30px rgba(167, 146, 119, 0.3);
}

.world-hero {
    color: var(--primary-color);
    text-shadow: 0 0 40px rgba(167, 146, 119, 0.8);
}

.hero-description {
    font-size: 1.4rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 3rem;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 4rem;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.btn {
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-family: 'Rajdhani', sans-serif;
}

.btn-primary {
    background: var(--gradient-1);
    color: var(--dark-bg);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(167, 146, 119, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--dark-bg);
    transform: translateY(-3px);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    animation: fadeInUp 0.8s ease 0.8s both;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary-color);
    text-shadow: 0 0 20px rgba(167, 146, 119, 0.5);
}

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--primary-color);
    border-radius: 20px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 10px;
    background: var(--primary-color);
    border-radius: 2px;
    animation: scroll 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

@keyframes scroll {
    0% { opacity: 1; top: 10px; }
    100% { opacity: 0; top: 25px; }
}

/* About Section */
.about {
    padding: 8rem 0;
    background: var(--dark-bg);
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.about-card {
    background: var(--card-bg);
    padding: 3rem 2rem;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(167, 146, 119, 0.2);
}

.about-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 40px rgba(167, 146, 119, 0.2);
    background: var(--card-hover);
}

.card-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.about-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    text-shadow: var(--shadow-primary);
}

.about-card p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Features Section */
.features {
    padding: 8rem 0;
    background: linear-gradient(180deg, var(--dark-bg) 0%, #1a2332 100%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.feature-item {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
    border: 1px solid rgba(167, 146, 119, 0.2);
}

.feature-item:hover {
    transform: translateX(10px);
    box-shadow: -5px 5px 30px rgba(167, 146, 119, 0.3);
    background: var(--card-hover);
    border-color: var(--primary-color);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-item h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.feature-item p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Rules Section */
.rules {
    padding: 8rem 0;
    background: var(--dark-bg);
}

.rules-content {
    max-width: 900px;
    margin: 0 auto;
}

.rule-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: 10px;
    transition: all 0.3s ease;
    border: 1px solid rgba(167, 146, 119, 0.2);
}

.rule-item:hover {
    border-color: var(--primary-color);
    transform: translateX(10px);
    background: var(--card-hover);
    box-shadow: 0 5px 20px rgba(167, 146, 119, 0.2);
}

.rule-number {
    font-family: 'Orbitron', sans-serif;
    font-size: 4rem;
    font-weight: 900;
    color: var(--primary-color);
    opacity: 0.4;
    min-width: 80px;
    text-shadow: 0 0 10px rgba(167, 146, 119, 0.3);
}

.rule-text h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.rule-text p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Footer */
.footer {
    background: var(--card-bg);
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(167, 146, 119, 0.2);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.footer-logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    font-weight: 900;
}

.footer-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dark-bg);
    border-radius: 5px;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    border: 1px solid rgba(167, 146, 119, 0.3);
}

.social-link:hover {
    background: var(--primary-color);
    color: var(--dark-bg);
    transform: translateY(-3px);
    box-shadow: var(--shadow-primary);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 4.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(10, 10, 10, 0.98);
        flex-direction: column;
        padding: 2rem;
        transition: left 0.3s ease;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    /* Mobile Dropdown Styles */
    .nav-item-dropdown {
        width: 100%;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        width: 100%;
        margin: 0.5rem 0 0 1rem;
        background: rgba(42, 36, 31, 0.5);
        border: none;
        border-left: 2px solid rgba(167, 146, 119, 0.3);
        box-shadow: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, opacity 0.3s ease;
    }
    
    .nav-item-dropdown.active .dropdown-menu {
        max-height: 500px;
    }
    
    .dropdown-menu a {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 2rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
        letter-spacing: 2px;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

/* Modal Styles */
/* Profile Side Panel Styles - Minimal & Clean */
.profile-panel-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.profile-panel-overlay.active {
    opacity: 1;
    visibility: visible;
}

.profile-side-panel {
    position: fixed;
    top: 0;
    right: -500px;
    width: 480px;
    height: 100vh;
    background: #1a1612;
    border-left: 1px solid rgba(167, 146, 119, 0.2);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    transition: right 0.3s ease;
    overflow-y: auto;
    overflow-x: hidden;
    font-family: 'Rajdhani', sans-serif;
}

.profile-side-panel.active {
    right: 0;
}

.profile-panel-header {
    padding: 1.5rem;
    display: flex;
    justify-content: flex-end;
    position: relative;
}

.profile-panel-close {
    background: transparent;
    border: none;
    color: #EAD8C0;
    font-size: 1.5rem;
    width: 32px;
    height: 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
    line-height: 1;
    padding: 0;
}

.profile-panel-close:hover {
    color: #FFF2E1;
}

.profile-panel-content {
    flex: 1;
    padding: 0;
    overflow-y: auto;
    color: #FFF2E1;
}

/* Profile Top Section */
.profile-top-section {
    padding: 2rem 1.5rem;
    border-bottom: 1px solid rgba(167, 146, 119, 0.2);
}

.profile-picture-container {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.profile-picture {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    background: #A79277;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 3px;
    position: relative;
}

.profile-avatar-inner {
    width: 100%;
    height: 100%;
    border-radius: 5px;
    background: #1a1612;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #A79277;
    font-weight: 700;
}

.profile-picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
}

.profile-name-section {
    flex: 1;
}

.profile-username {
    font-size: 1.5rem;
    font-weight: 600;
    color: #FFF2E1;
    margin: 0 0 0.25rem 0;
}

.profile-handle {
    font-size: 0.9rem;
    color: #5eead4;
    margin: 0;
}

.profile-icons {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.profile-icon {
    width: 20px;
    height: 20px;
    border-radius: 3px;
    background: rgba(167, 146, 119, 0.15);
    border: 1px solid rgba(167, 146, 119, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: #EAD8C0;
}

/* Credits Section */
.profile-credits {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(167, 146, 119, 0.2);
}

.credits-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #6b7a99;
    margin-bottom: 1rem;
    font-weight: 500;
}

.credit-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(167, 146, 119, 0.1);
}

.credit-item:last-child {
    border-bottom: none;
}

.credit-label {
    color: #EAD8C0;
    font-size: 0.85rem;
}

.credit-value {
    color: #5eead4;
    font-size: 0.85rem;
    font-weight: 500;
}

.credit-value.usd {
    color: #FFF2E1;
}

.dossier-button {
    width: 100%;
    margin-top: 1.5rem;
    padding: 0.875rem;
    background: transparent;
    border: 1px solid rgba(167, 146, 119, 0.3);
    color: #FFF2E1;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    border-radius: 3px;
}

.dossier-button:hover {
    background: rgba(167, 146, 119, 0.1);
    border-color: rgba(167, 146, 119, 0.4);
}

/* Account Management Section */
.account-management-section {
    padding: 2rem 1.5rem;
    border-bottom: 1px solid rgba(167, 146, 119, 0.2);
}

.section-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #FFF2E1;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-description {
    font-size: 0.8rem;
    color: #5eead4;
    margin-bottom: 1.25rem;
    line-height: 1.4;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 0;
    background: transparent;
    border: none;
    border-radius: 0;
    margin-bottom: 0;
    cursor: pointer;
    transition: background 0.2s ease;
    border-bottom: 1px solid transparent;
}

.menu-item:hover {
    background: rgba(167, 146, 119, 0.1);
}

.menu-item-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #EAD8C0;
    flex-shrink: 0;
}

.menu-item-text {
    flex: 1;
    color: #FFF2E1;
    font-size: 0.9rem;
    font-weight: 400;
}

.menu-item-arrow {
    color: #5eead4;
    font-size: 1rem;
    opacity: 0.6;
}

/* Referral Section */
.referral-section {
    padding: 2rem 1.5rem;
}

.referral-code-container {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.referral-code {
    flex: 1;
    padding: 0.875rem;
    background: rgba(167, 146, 119, 0.1);
    border: 1px solid rgba(167, 146, 119, 0.3);
    border-radius: 3px;
    color: #FFF2E1;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    font-family: 'Orbitron', sans-serif;
}

.copy-link-button {
    padding: 0.875rem 1.25rem;
    background: transparent;
    border: 1px solid rgba(167, 146, 119, 0.3);
    color: #FFF2E1;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 3px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.copy-link-button:hover {
    background: rgba(167, 146, 119, 0.1);
    border-color: rgba(167, 146, 119, 0.4);
}

.profile-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    color: #EAD8C0;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(167, 146, 119, 0.3);
    border-top-color: #A79277;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .profile-side-panel {
        width: 100%;
        right: -100%;
    }
    
    .profile-top-section,
    .account-management-section,
    .referral-section {
        padding: 1.5rem 1rem;
    }
}

/* Modal (keeping for auth modals) */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

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

.modal-content {
    background: var(--card-bg);
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    font-weight: bold;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1;
}

.close-modal:hover {
    color: var(--primary-color);
    transform: rotate(90deg);
}

/* Auth Container */
.auth-container {
    width: 100%;
}

.auth-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid rgba(167, 146, 119, 0.3);
}

.auth-tab {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.2rem;
    font-weight: 600;
    padding: 1rem 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    font-family: 'Rajdhani', sans-serif;
}

.auth-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.auth-tab:hover {
    color: var(--primary-color);
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.auth-form h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
    text-align: center;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 1rem;
}

.form-group input {
    width: 100%;
    padding: 0.8rem;
    background: var(--dark-bg);
    border: 1px solid rgba(167, 146, 119, 0.4);
    border-radius: 5px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: 'Rajdhani', sans-serif;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(167, 146, 119, 0.3);
}

.form-group input::placeholder {
    color: var(--text-secondary);
    opacity: 0.5;
}

.auth-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 5px;
    text-align: center;
    font-weight: 600;
    display: none;
}

.auth-message.success {
    background: rgba(167, 146, 119, 0.2);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    display: block;
}

.auth-message.error {
    background: rgba(209, 187, 158, 0.2);
    color: var(--secondary-color);
    border: 1px solid var(--secondary-color);
    display: block;
}

.auth-message.info {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: block;
}

/* Profile Styles */
.profile-container {
    width: 100%;
}

.profile-container h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
    text-align: center;
}

.profile-info {
    margin-bottom: 2rem;
}

.profile-item {
    padding: 1rem;
    margin-bottom: 1rem;
    background: var(--dark-bg);
    border-radius: 5px;
    border-left: 3px solid var(--primary-color);
    color: var(--text-primary);
}

.profile-item strong {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.profile-stats {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid rgba(167, 146, 119, 0.3);
}

.profile-stats h3 {
    font-family: 'Orbitron', sans-serif;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.profile-info .error {
    color: var(--secondary-color);
    text-align: center;
    padding: 1rem;
}

