:root {
    --game-gold: #FFD700;
    --game-gold-dark: #FFA500;
    --game-gold-light: #FFED4E;
    --game-purple: #8B5CF6;
    --game-purple-dark: #6D28D9;
    --game-red: #EF4444;
    --game-green: #10B981;
    --game-blue: #3B82F6;
    --game-pink: #EC4899;
    --game-orange: #F97316;
    --dark-bg: #0F172A;
    --dark-card: #1E293B;
    --sidebar-width: 280px;
}

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

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 50%, #312E81 100%);
    background-attachment: fixed;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

body {
    /* iOS notch için padding */
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    padding-left: env(safe-area-inset-left, 0px);
    padding-right: env(safe-area-inset-right, 0px);
}

/* Mobile app içinde mi kontrol */
body.mobile-app {
    /* Notch'un altından başla */
    padding-top: env(safe-area-inset-top, 0px);
}

/* Header/Nav için özel ayar (varsa) */
body.mobile-app header,
body.mobile-app nav,
body.mobile-app .header {
    /* Header zaten en üstte ise, notch padding'ini ona ekle */
    padding-top: calc(env(safe-area-inset-top, 0px) + 10px);
}

/* Footer için */
body.mobile-app footer,
body.mobile-app .footer {
    padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 10px);
}

/* Sticky header varsa */
body.mobile-app .sticky-header {
    top: env(safe-area-inset-top, 0px);
}



/* Animated stars background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(2px 2px at 20% 30%, white, transparent),
        radial-gradient(2px 2px at 60% 70%, white, transparent),
        radial-gradient(1px 1px at 50% 50%, white, transparent),
        radial-gradient(1px 1px at 80% 10%, white, transparent),
        radial-gradient(2px 2px at 90% 60%, white, transparent),
        radial-gradient(1px 1px at 33% 80%, white, transparent);
    background-size: 200% 200%;
    background-position: 0% 0%;
    animation: starTwinkle 20s ease-in-out infinite;
    opacity: 0.5;
    z-index: 0;
}

@keyframes starTwinkle {

    0%,
    100% {
        opacity: 0.5;
        background-position: 0% 0%;
    }

    50% {
        opacity: 0.8;
        background-position: 100% 100%;
    }
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: var(--sidebar-width);
    background: linear-gradient(180deg, #1E293B 0%, #0F172A 50%, #1E293B 100%);
    color: white;
    padding: 0;
    transition: transform 0.3s ease;
    z-index: 1000;
    box-shadow:
        4px 0 30px rgba(139, 92, 246, 0.3),
        inset 0 0 60px rgba(255, 215, 0, 0.05);
    overflow-y: auto;
    border-right: 2px solid rgba(139, 92, 246, 0.3);

    /* Firefox Scrollbar */
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

/* Webkit Scrollbar (Chrome, Safari, Edge) */
.sidebar::-webkit-scrollbar {
    width: 5px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.4);
}

.sidebar.hide {
    transform: translateX(-100%);
}

/* Sidebar Overlay (for mobile) */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

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


.sidebar-header {
    padding: 30px 20px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.3) 0%, rgba(255, 215, 0, 0.2) 100%);
    border-bottom: 2px solid rgba(255, 215, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.sidebar-header::before {
    content: '✨';
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 1.5rem;
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {

    0%,
    100% {
        opacity: 0.5;
        transform: scale(1) rotate(0deg);
    }

    50% {
        opacity: 1;
        transform: scale(1.2) rotate(180deg);
    }
}

.sidebar-logo {
    font-size: 1.8rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--game-gold) 0%, var(--game-gold-light) 50%, var(--game-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    display: block;
    text-align: center;
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.5));
    animation: glow 3s ease-in-out infinite;
}

@keyframes glow {

    0%,
    100% {
        filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.5));
    }

    50% {
        filter: drop-shadow(0 0 30px rgba(255, 215, 0, 0.8));
    }
}

.sidebar-logo .accent {
    color: var(--game-purple);
    -webkit-text-fill-color: var(--game-purple);
    filter: drop-shadow(0 0 15px rgba(139, 92, 246, 0.6));
}

.sidebar-menu {
    list-style: none;
    padding: 20px 0;
}

.sidebar-menu li {
    margin: 5px 0;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 16px 25px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    margin: 5px 10px;
    border-radius: 15px;
    overflow: hidden;
}

.sidebar-menu a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: linear-gradient(180deg, var(--game-gold) 0%, var(--game-orange) 100%);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.sidebar-menu a:hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.3) 0%, rgba(255, 215, 0, 0.2) 100%);
    color: var(--game-gold);
    transform: translateX(8px);
    box-shadow:
        0 5px 20px rgba(139, 92, 246, 0.3),
        inset 0 0 20px rgba(255, 215, 0, 0.1);
}

.sidebar-menu a:hover::before {
    transform: scaleY(1);
}

.sidebar-menu a.active {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.25) 0%, rgba(255, 165, 0, 0.25) 100%);
    color: var(--game-gold);
    border: 2px solid rgba(255, 215, 0, 0.4);
    box-shadow:
        0 5px 25px rgba(255, 215, 0, 0.4),
        inset 0 0 30px rgba(255, 215, 0, 0.1);
    animation: activeGlow 2s ease-in-out infinite;
}

@keyframes activeGlow {

    0%,
    100% {
        box-shadow: 0 5px 25px rgba(255, 215, 0, 0.4), inset 0 0 30px rgba(255, 215, 0, 0.1);
    }

    50% {
        box-shadow: 0 5px 35px rgba(255, 215, 0, 0.6), inset 0 0 40px rgba(255, 215, 0, 0.2);
    }
}

.sidebar-menu a i {
    margin-right: 15px;
    font-size: 1.3rem;
    width: 28px;
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.3));
}

.sidebar-menu a:hover i,
.sidebar-menu a.active i {
    animation: iconBounce 0.6s ease;
}

@keyframes iconBounce {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2) rotate(5deg);
    }
}

/* Main Content */
.main-content {
    margin-left: var(--sidebar-width);
    padding: 0;
    transition: margin-left 0.3s ease;
}

.main-content.expanded {
    margin-left: 0;
}

/* Top Bar */
.top-bar {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.95) 100%);
    backdrop-filter: blur(20px);
    padding: 18px 25px;
    /* iPhone notch/safe area için üst padding */
    padding-top: calc(18px + env(safe-area-inset-top));
    box-shadow:
        0 4px 20px rgba(139, 92, 246, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 999;
    border-bottom: 2px solid rgba(139, 92, 246, 0.3);
    gap: 20px;
}

/* Horizontal Menu */
.horizontal-menu {
    display: flex;
    gap: 8px;
    align-items: center;
    flex: 1;
    justify-content: center;
    flex-wrap: wrap;
}

.menu-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(139, 92, 246, 0.3);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    /* overflow: hidden; */
    /* Removed to allow badge visibility */
}

/* Removed yellow gradient effect for better badge visibility */
/*
.menu-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.3), transparent);
    transition: left 0.5s ease;
}

.menu-tab:hover::before {
    left: 100%;
}
*/


.menu-tab:hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.4) 0%, rgba(109, 40, 217, 0.4) 100%);
    border-color: rgba(139, 92, 246, 0.6);
    color: white;
    transform: translateY(-3px);
    box-shadow:
        0 5px 20px rgba(139, 92, 246, 0.4),
        0 0 30px rgba(139, 92, 246, 0.2);
}

.menu-tab.active {
    background: linear-gradient(135deg, var(--game-gold) 0%, var(--game-gold-dark) 100%);
    border-color: rgba(255, 237, 78, 0.8);
    color: #1F2937;
    box-shadow:
        0 5px 25px rgba(255, 215, 0, 0.5),
        inset 0 -2px 10px rgba(0, 0, 0, 0.2);
    animation: activeTabGlow 2s ease-in-out infinite;
}

@keyframes activeTabGlow {

    0%,
    100% {
        box-shadow: 0 5px 25px rgba(255, 215, 0, 0.5), inset 0 -2px 10px rgba(0, 0, 0, 0.2);
    }

    50% {
        box-shadow: 0 5px 35px rgba(255, 215, 0, 0.7), inset 0 -2px 10px rgba(0, 0, 0, 0.2);
    }
}

.menu-tab i {
    font-size: 1.1rem;
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.3));
}

.menu-tab:hover i,
.menu-tab.active i {
    animation: iconBounce 0.6s ease;
}

.menu-toggle {
    background: linear-gradient(135deg, var(--game-purple) 0%, var(--game-purple-dark) 100%);
    border: 2px solid rgba(255, 215, 0, 0.3);
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
    padding: 10px 15px;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

.menu-toggle:hover {
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.6);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-name {
    font-weight: 700;
    background: linear-gradient(135deg, var(--game-gold) 0%, var(--game-gold-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.1rem;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.4));
}

.logout-btn {
    padding: 10px 25px;
    background: linear-gradient(135deg, var(--game-red) 0%, #dc2626 100%);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

.logout-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 25px rgba(239, 68, 68, 0.6);
    border-color: rgba(255, 255, 255, 0.4);
}

/* Dashboard Content */
.dashboard-content {
    padding: 25px;
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform;
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

/* Consolidated Card Styles */
.stat-card,
.chart-card,
.news-card,
.section-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.9) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(139, 92, 246, 0.3);
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
    z-index: 1;
    /* Base z-index */
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.stat-card:hover,
.chart-card:hover,
.news-card:hover {
    z-index: 10;
    /* Bring to front on hover */
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 215, 0, 0.5);
}

/* Shimmer Effect for Cards - applied via common class or specific */
.stat-card::before,
.chart-card::before,
.news-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.05) 0%, transparent 60%);
    animation: cardShimmer 8s linear infinite;
    pointer-events: none;
    z-index: 0;
}

/* Ensure content inside stays above shimmer */
.stat-card>*,
.chart-card>*,
.news-card>* {
    position: relative;
    z-index: 2;
}

/* Specific overrides can remain shortened */
.stat-card {
    padding: 1.5rem;
}

.chart-card {
    padding: 2rem;
}

.news-card {
    padding: 1.5rem;
}

/* Remove previous individual definitions to avoid conflicts */

.stat-icon {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-10px) rotate(5deg);
    }
}

.stat-card.money .stat-icon {
    background: linear-gradient(135deg, var(--game-gold) 0%, var(--game-gold-dark) 100%);
    color: #1F2937;
    box-shadow:
        0 10px 30px rgba(255, 215, 0, 0.5),
        inset 0 -2px 10px rgba(0, 0, 0, 0.2);
    border: 3px solid rgba(255, 237, 78, 0.6);
}

.stat-card.shops .stat-icon {
    background: linear-gradient(135deg, var(--game-purple) 0%, var(--game-purple-dark) 100%);
    color: white;
    box-shadow:
        0 10px 30px rgba(139, 92, 246, 0.5),
        inset 0 -2px 10px rgba(0, 0, 0, 0.2);
    border: 3px solid rgba(167, 139, 250, 0.6);
}

.stat-card.profit .stat-icon {
    background: linear-gradient(135deg, var(--game-green) 0%, #059669 100%);
    color: white;
    box-shadow:
        0 10px 30px rgba(16, 185, 129, 0.5),
        inset 0 -2px 10px rgba(0, 0, 0, 0.2);
    border: 3px solid rgba(52, 211, 153, 0.6);
}

.stat-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    z-index: 2;
}

.stat-value {
    font-size: 2.2rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--game-gold) 0%, var(--game-gold-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-top: 8px;
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.5));
    position: relative;
    z-index: 2;
}

.stat-change {
    font-size: 0.85rem;
    margin-top: 10px;
    font-weight: 700;
    position: relative;
    z-index: 2;
    padding: 6px 12px;
    border-radius: 20px;
    display: inline-block;
    color: rgba(255, 255, 255, 0.8);
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(109, 40, 217, 0.2) 100%);
    border: 2px solid rgba(139, 92, 246, 0.4);
}

.stat-change.positive {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(5, 150, 105, 0.2) 100%);
    color: #10B981;
    border: 2px solid rgba(16, 185, 129, 0.4);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
    animation: positiveGlow 2s ease-in-out infinite;
}

@keyframes positiveGlow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
    }

    50% {
        box-shadow: 0 0 30px rgba(16, 185, 129, 0.5);
    }
}

.stat-change.negative {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(220, 38, 38, 0.2) 100%);
    color: #EF4444;
    border: 2px solid rgba(239, 68, 68, 0.4);
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.3);
}

/* Chart Card */
.chart-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.9) 100%);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 35px;
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    margin-bottom: 30px;
    border: 2px solid rgba(139, 92, 246, 0.3);
    position: relative;
    overflow: hidden;
}


.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.chart-title {
    font-size: 1.4rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--game-gold) 0%, var(--game-gold-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.4));
    position: relative;
    z-index: 2;
}

.chart-period {
    display: flex;
    gap: 10px;
    position: relative;
    z-index: 2;
}

.period-btn {
    padding: 10px 20px;
    border: 2px solid rgba(139, 92, 246, 0.4);
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 700;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.period-btn:hover {
    background: rgba(139, 92, 246, 0.3);
    border-color: rgba(139, 92, 246, 0.6);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 92, 246, 0.4);
}

.period-btn.active {
    background: linear-gradient(135deg, var(--game-gold) 0%, var(--game-gold-dark) 100%);
    border-color: rgba(255, 237, 78, 0.6);
    color: #1F2937;
    box-shadow:
        0 5px 20px rgba(255, 215, 0, 0.5),
        inset 0 -2px 5px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

/* News Card */
.news-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.9) 100%);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 30px;
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    margin-bottom: 30px;
    border: 2px solid rgba(139, 92, 246, 0.3);
    position: relative;
    overflow: hidden;
}

.news-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.05) 0%, transparent 70%);
    animation: cardShimmer 10s ease-in-out infinite;
}

.news-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.news-title {
    font-size: 1.3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--game-gold) 0%, var(--game-gold-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.4));
    position: relative;
    z-index: 2;
}

.market-status {
    display: inline-block;
    padding: 10px 25px;
    background: linear-gradient(135deg, var(--game-green) 0%, #059669 100%);
    color: white;
    border-radius: 25px;
    font-weight: 800;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid rgba(52, 211, 153, 0.4);
    box-shadow:
        0 5px 20px rgba(16, 185, 129, 0.4),
        inset 0 -2px 5px rgba(0, 0, 0, 0.2);
    animation: statusPulse 2s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

@keyframes statusPulse {

    0%,
    100% {
        box-shadow: 0 5px 20px rgba(16, 185, 129, 0.4), inset 0 -2px 5px rgba(0, 0, 0, 0.2);
    }

    50% {
        box-shadow: 0 5px 30px rgba(16, 185, 129, 0.6), inset 0 -2px 5px rgba(0, 0, 0, 0.2);
    }
}

.news-item {
    padding: 18px;
    border-left: 4px solid rgba(139, 92, 246, 0.4);
    margin-bottom: 15px;
    transition: all 0.4s ease;
    border-radius: 12px;
    background: rgba(30, 41, 59, 0.4);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 2;
}

.news-item:hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(255, 215, 0, 0.1) 100%);
    border-left-color: var(--game-gold);
    padding-left: 24px;
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(139, 92, 246, 0.3);
}

.news-item-title {
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
    font-size: 1rem;
}

.news-item-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    line-height: 1.6;
}

.news-item-time {
    color: rgba(255, 215, 0, 0.6);
    font-size: 0.75rem;
    margin-top: 8px;
    font-weight: 600;
}

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.3) 0%, rgba(109, 40, 217, 0.3) 100%);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(139, 92, 246, 0.4);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    font-weight: 700;
    color: white;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.3) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.action-btn:hover::before {
    width: 300px;
    height: 300px;
}

.action-btn:hover {
    background: linear-gradient(135deg, var(--game-gold) 0%, var(--game-gold-dark) 100%);
    border-color: rgba(255, 237, 78, 0.8);
    color: #1F2937;
    transform: translateY(-5px) scale(1.05);
    box-shadow:
        0 10px 30px rgba(255, 215, 0, 0.5),
        0 0 50px rgba(255, 215, 0, 0.3);
}

.action-btn i {
    font-size: 1.5rem;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
}

.action-btn:hover i {
    animation: iconBounce 0.6s ease;
}

/* Responsive */
@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.show {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .chart-period {
        width: 100%;
        justify-content: center;
    }

    .horizontal-menu {
        display: none;
    }

    .top-bar {
        gap: 10px;
    }
}

@media (max-width: 768px) {
    .horizontal-menu {
        flex-wrap: wrap;
        gap: 5px;
    }

    .menu-tab {
        padding: 8px 12px;
        font-size: 0.7rem;
    }

    .menu-tab span {
        display: none;
    }

    .menu-tab i {
        font-size: 1.3rem;
        margin: 0;
    }
}

@media (max-width: 576px) {
    .dashboard-content {
        padding: 15px;
    }

    .top-bar {
        padding: 12px 15px;
        flex-wrap: wrap;
    }

    .stat-card {
        padding: 20px;
    }

    .chart-card {
        padding: 20px;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    .user-name {
        display: none;
    }

    .horizontal-menu {
        display: none;
    }
}

/* Overlay for mobile */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
}

.sidebar-overlay.show {
    display: block;
}

/* Page Loader - Mobile App Style */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 50%, #312E81 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    backdrop-filter: blur(10px);
}

.page-loader.active {
    opacity: 1;
    visibility: visible;
}

.loader-spinner {
    width: 80px;
    height: 80px;
    border: 6px solid rgba(139, 92, 246, 0.2);
    border-top-color: var(--game-gold);
    border-radius: 50%;
    animation: loaderSpin 1s linear infinite;
    box-shadow:
        0 0 40px rgba(255, 215, 0, 0.3),
        inset 0 0 20px rgba(139, 92, 246, 0.2);
}

@keyframes loaderSpin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loader-logo {
    margin-top: 30px;
    font-size: 2rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--game-gold) 0%, var(--game-gold-light) 50%, var(--game-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.5));
    animation: logoGlow 2s ease-in-out infinite;
}

@keyframes logoGlow {

    0%,
    100% {
        filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.5));
    }

    50% {
        filter: drop-shadow(0 0 40px rgba(255, 215, 0, 0.8));
    }
}

.loader-accent {
    color: var(--game-purple);
    -webkit-text-fill-color: var(--game-purple);
    filter: drop-shadow(0 0 15px rgba(139, 92, 246, 0.6));
}

.loader-text {
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: textPulse 1.5s ease-in-out infinite;
}

@keyframes textPulse {

    0%,
    100% {
        opacity: 0.7;
    }

    50% {
        opacity: 1;
    }
}

/* Particles Background */
.loader-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--game-gold);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    animation: particleFloat 3s ease-in-out infinite;
}

@keyframes particleFloat {

    0%,
    100% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-100vh) translateX(50px);
        opacity: 0;
    }
}

/* Page Transition */
.page-transition {
    animation: pageSlideIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes pageSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}


/* ============================================ */
/* PAGE-SPECIFIC STYLES - Consolidated */
/* ============================================ */

/* INVENTORY PAGE */
.product-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.9) 100%);
    border: 2px solid rgba(139, 92, 246, 0.3);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-10px) scale(1.03);
    border-color: var(--game-gold);
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.3);
}

.product-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.2) rotate(3deg);
}

.product-count-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, var(--game-gold) 0%, var(--game-gold-dark) 100%);
    color: #1F2937;
    font-weight: 900;
    font-size: 1rem;
    padding: 10px 16px;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.5);
    animation: countPulse 2s ease-in-out infinite;
    display: flex;
    align-items: center;
    gap: 6px;
}

.product-info {
    padding: 20px;
    flex: 1;
}

.product-name {
    color: white;
    font-weight: 800;
    font-size: 1.1rem;
    margin-bottom: 15px;
    text-align: center;
}

.product-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 15px;
}

.product-stat {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 10px;
    padding: 10px;
    text-align: center;
}

.product-stat .stat-label {
    display: block;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.product-stat .stat-value {
    display: block;
    color: white;
    font-size: 0.95rem;
    font-weight: 800;
}

.product-total-value {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(109, 40, 217, 0.3));
    border: 2px solid rgba(139, 92, 246, 0.5);
    border-radius: 12px;
    padding: 12px;
    text-align: center;
    margin-bottom: 15px;
}

.product-total-value .label {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.product-total-value .value {
    display: block;
    color: var(--game-gold);
    font-size: 1.3rem;
    font-weight: 900;
}

.product-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0;
}

.product-btn {
    width: 100%;
    padding: 12px;
    border: none;
    color: white;
    font-weight: 800;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.product-btn.sell-listing {
    background: linear-gradient(135deg, var(--game-purple) 0%, var(--game-purple-dark) 100%);
    border-radius: 15px 15px 0 0;
}

.product-btn.sell-listing:hover {
    background: linear-gradient(135deg, var(--game-gold) 0%, var(--game-gold-dark) 100%);
    color: #1F2937;
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.5);
}

.product-btn.quick-sell {
    background: linear-gradient(135deg, var(--game-orange) 0%, #c2410c 100%);
    border-radius: 0 0 15px 15px;
}

.product-btn.quick-sell:hover {
    background: linear-gradient(135deg, var(--game-red) 0%, #dc2626 100%);
    box-shadow: 0 5px 20px rgba(239, 68, 68, 0.5);
    transform: scale(1.02);
}

/* ASSETS (VARLI�IM) PAGE */
.asset-tab {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.6) 0%, rgba(15, 23, 42, 0.6) 100%);
    border: 2px solid rgba(139, 92, 246, 0.3);
    color: rgba(255, 255, 255, 0.7);
    font-weight: 700;
    padding: 12px 24px;
    margin-right: 10px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.asset-tab:hover {
    border-color: var(--game-purple);
    color: white;
    transform: translateY(-2px);
}

.asset-tab.active {
    background: linear-gradient(135deg, var(--game-purple) 0%, var(--game-purple-dark) 100%);
    border-color: var(--game-gold);
    color: white;
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.5);
}

.asset-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.9) 100%);
    border: 2px solid rgba(139, 92, 246, 0.3);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.asset-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--game-gold);
    box-shadow: 0 20px 50px rgba(255, 215, 0, 0.3);
}

.asset-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.asset-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.asset-card:hover .asset-image img {
    transform: scale(1.15);
}

.asset-level-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, var(--game-gold) 0%, var(--game-gold-dark) 100%);
    color: #1F2937;
    font-weight: 900;
    font-size: 1rem;
    padding: 8px 16px;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.6);
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.asset-info {
    padding: 20px;
    flex: 1;
}

.asset-name {
    color: white;
    font-weight: 800;
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.asset-location {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.asset-stats-row {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.asset-stat {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.asset-stat .label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    font-weight: 600;
}

.asset-stat .value {
    color: white;
    font-size: 1.1rem;
    font-weight: 900;
}

.asset-upgrade-info {
    margin-top: 15px;
}

.asset-upgrade-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, var(--game-purple) 0%, var(--game-purple-dark) 100%);
    border: none;
    color: white;
    font-weight: 800;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.asset-upgrade-btn:hover {
    background: linear-gradient(135deg, var(--game-gold) 0%, var(--game-gold-dark) 100%);
    color: #1F2937;
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.5);
}


/* LEADERBOARD PAGE */
.filter-btn {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.6) 0%, rgba(15, 23, 42, 0.6) 100%);
    border: 2px solid rgba(139, 92, 246, 0.3);
    color: rgba(255, 255, 255, 0.7);
    padding: 12px 28px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: var(--game-purple);
    color: white;
    transform: translateY(-2px);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--game-purple) 0%, var(--game-purple-dark) 100%);
    border-color: var(--game-gold);
    color: white;
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.5);
}

.podium-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.9) 100%);
    border: 3px solid rgba(192, 192, 192, 0.5);
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.podium-card.first {
    border-color: var(--game-gold);
    transform: scale(1.1);
    box-shadow: 0 20px 60px rgba(255, 215, 0, 0.6);
    z-index: 10;
}

.podium-card.second {
    border-color: rgba(192, 192, 192, 0.8);
}

.podium-card.third {
    border-color: rgba(205, 127, 50, 0.8);
}

.podium-card:hover {
    transform: translateY(-10px) scale(1.05);
}

.podium-card.first:hover {
    transform: translateY(-10px) scale(1.15);
}

.podium-rank {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.9), rgba(128, 128, 128, 0.9));
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 900;
    color: white;
    border: 3px solid white;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.podium-rank.champion {
    background: linear-gradient(135deg, var(--game-gold), var(--game-gold-dark));
    width: 70px;
    height: 70px;
    font-size: 2rem;
    animation: championPulse 2s ease-in-out infinite;
}

@keyframes championPulse {

    0%,
    100% {
        transform: translateX(-50%) scale(1);
        box-shadow: 0 5px 20px rgba(255, 215, 0, 0.5);
    }

    50% {
        transform: translateX(-50%) scale(1.1);
        box-shadow: 0 10px 40px rgba(255, 215, 0, 0.8);
    }
}

.podium-avatar {
    width: 120px;
    height: 120px;
    margin: 30px auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid rgba(139, 92, 246, 0.5);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    position: relative;
}

.champion-avatar {
    width: 150px;
    height: 150px;
    border: 5px solid var(--game-gold);
    animation: championGlow 3s ease-in-out infinite;
}

@keyframes championGlow {

    0%,
    100% {
        box-shadow: 0 10px 30px rgba(255, 215, 0, 0.5);
    }

    50% {
        box-shadow: 0 15px 50px rgba(255, 215, 0, 1);
    }
}

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

.podium-name {
    color: white;
    font-weight: 800;
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.podium-level {
    color: var(--game-gold);
    font-weight: 700;
    margin-bottom: 15px;
}

.podium-wealth {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(109, 40, 217, 0.3));
    border: 2px solid rgba(139, 92, 246, 0.5);
    padding: 15px;
    border-radius: 15px;
    margin-bottom: 15px;
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--game-gold);
}

.champion-wealth {
    font-size: 2rem;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 165, 0, 0.2));
    border-color: var(--game-gold);
}

.podium-stats {
    display: flex;
    justify-content: space-around;
    gap: 10px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
}

.leaderboard-table {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.leaderboard-row {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.6) 0%, rgba(15, 23, 42, 0.6) 100%);
    border: 2px solid rgba(139, 92, 246, 0.3);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.leaderboard-row:hover {
    border-color: var(--game-purple);
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.3);
}

.leaderboard-row.current-user {
    border-color: var(--game-gold);
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 165, 0, 0.1));
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
}

.rank-number {
    font-size: 2rem;
    font-weight: 900;
    color: var(--game-gold);
    width: 60px;
    text-align: center;
    flex-shrink: 0;
}

.player-info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    min-width: 0;
}

.player-info img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid var(--game-purple);
    flex-shrink: 0;
}

.player-info h5 {
    color: white;
    font-weight: 800;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.player-info p {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0;
    font-size: 0.9rem;
}

.player-stats {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

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

.stat-item .label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    font-weight: 600;
}

.stat-item .value {
    color: var(--game-gold);
    font-size: 1.1rem;
    font-weight: 900;
}

.profile-btn {
    background: linear-gradient(135deg, var(--game-purple), var(--game-purple-dark));
    border: 2px solid rgba(139, 92, 246, 0.6);
    color: white;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.profile-btn:hover {
    background: linear-gradient(135deg, var(--game-gold), var(--game-gold-dark));
    color: #1F2937;
    transform: translateY(-2px);
}



/* SETTINGS PAGE */

/* SETTINGS PAGE */
.settings-input {
    background: rgba(30, 41, 59, 0.6);
    border: 2px solid rgba(139, 92, 246, 0.4);
    color: white;
    padding: 12px 15px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.settings-input:focus {
    background: rgba(30, 41, 59, 0.8);
    border-color: var(--game-gold);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
    color: white;
}

.settings-input:disabled {
    background: rgba(30, 41, 59, 0.3);
    border-color: rgba(139, 92, 246, 0.2);
    cursor: not-allowed;
}

.form-label {
    color: white;
    font-weight: 700;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.form-text {
    font-size: 0.85rem;
    margin-top: 5px;
    display: block;
}

.avatar-upload-container {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    border: 5px solid var(--game-purple);
    box-shadow: 0 10px 40px rgba(139, 92, 246, 0.5);
    transition: all 0.3s ease;
}

.avatar-upload-container:hover {
    border-color: var(--game-gold);
    transform: scale(1.05);
}

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

.avatar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: white;
}

.avatar-upload-container:hover .avatar-overlay {
    opacity: 1;
}

.avatar-overlay i {
    font-size: 2rem;
    margin-bottom: 5px;
}

.avatar-overlay p {
    margin: 0;
    font-weight: 700;
}

.password-input-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    padding: 5px 10px;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: var(--game-gold);
}

.password-strength {
    height: 5px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    overflow: hidden;
}

.strength-bar {
    height: 100%;
    width: 0%;
    transition: all 0.3s ease;
    border-radius: 10px;
}

.account-info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 12px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.account-info-item:hover {
    border-color: var(--game-purple);
    transform: translateX(5px);
}

.info-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--game-purple), var(--game-purple-dark));
    border-radius: 12px;
    font-size: 1.5rem;
    color: white;
}

.info-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    margin-bottom: 3px;
}

.info-value {
    color: white;
    font-weight: 800;
    font-size: 1rem;
    margin-bottom: 0;
}

.security-item {
    padding: 15px;
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 12px;
    margin-bottom: 15px;
}

.form-select {
    cursor: pointer;
}

.form-select option {
    background: rgba(30, 41, 59, 0.98);
    color: white;
}

/* FRIENDS PAGE */
.friends-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.friend-item {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.6) 0%, rgba(15, 23, 42, 0.6) 100%);
    border: 2px solid rgba(139, 92, 246, 0.3);
    border-radius: 15px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
}

.friend-item:hover {
    border-color: var(--game-gold);
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.2);
}

.friend-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--game-purple);
    box-shadow: 0 5px 20px rgba(139, 92, 246, 0.4);
    flex-shrink: 0;
}

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

.friend-info {
    flex: 1;
}

.friend-name {
    color: white;
    font-weight: 800;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.friend-level {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-bottom: 0;
    font-weight: 600;
}

.friend-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.action-btn-sm {
    background: linear-gradient(135deg, var(--game-purple) 0%, var(--game-purple-dark) 100%);
    border: 2px solid rgba(139, 92, 246, 0.6);
    color: white;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.action-btn-sm:hover {
    background: linear-gradient(135deg, var(--game-gold) 0%, var(--game-gold-dark) 100%);
    color: #1F2937;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 215, 0, 0.4);
}

/* NEWS PAGE */
.news-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 25px;
}

.news-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.news-card-large {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.9) 100%);
    border: 2px solid rgba(139, 92, 246, 0.3);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.news-card-large:hover {
    border-color: var(--game-gold);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.3);
}

.news-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
    position: relative;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card-large:hover .news-image img {
    transform: scale(1.1);
}

.news-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, var(--game-gold) 0%, var(--game-gold-dark) 100%);
    color: #1F2937;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 800;
    font-size: 0.85rem;
}

.news-content {
    padding: 25px;
}

.news-title {
    color: white;
    font-weight: 800;
    font-size: 1.5rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.news-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.news-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.news-card-small {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.8) 100%);
    border: 2px solid rgba(139, 92, 246, 0.3);
    border-radius: 15px;
    padding: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.news-card-small:hover {
    border-color: var(--game-purple);
    transform: translateX(5px);
}

.news-card-small .news-title {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.news-card-small .news-description {
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.news-filter {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.news-filter-btn {
    background: rgba(30, 41, 59, 0.6);
    border: 2px solid rgba(139, 92, 246, 0.3);
    color: rgba(255, 255, 255, 0.7);
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.news-filter-btn:hover {
    border-color: var(--game-purple);
    color: white;
}

.news-filter-btn.active {
    background: linear-gradient(135deg, var(--game-purple) 0%, var(--game-purple-dark) 100%);
    border-color: var(--game-gold);
    color: white;
}

/* SEMINARS & BANK PAGES */
.seminar-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.9) 100%);
    border: 2px solid rgba(139, 92, 246, 0.3);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.seminar-card:hover {
    transform: translateY(-10px);
    border-color: var(--game-gold);
    box-shadow: 0 20px 50px rgba(255, 215, 0, 0.3);
}

.seminar-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.seminar-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.seminar-card:hover .seminar-image img {
    transform: scale(1.1);
}

.seminar-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.seminar-title {
    color: white;
    font-weight: 800;
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.seminar-level {
    color: var(--game-gold);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.seminar-info-box {
    background: rgba(139, 92, 246, 0.2);
    border: 2px solid rgba(139, 92, 246, 0.4);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
}

.seminar-benefit {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.seminar-cost {
    color: var(--game-gold);
    font-weight: 900;
    font-size: 1.4rem;
    text-align: center;
    margin: 20px 0;
}

.seminar-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, var(--game-purple) 0%, var(--game-purple-dark) 100%);
    border: none;
    color: white;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 12px;
    margin-top: auto;
}

.seminar-btn:hover {
    background: linear-gradient(135deg, var(--game-gold) 0%, var(--game-gold-dark) 100%);
    color: #1F2937;
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.5);
}

/* Bank Page Styles */

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-control:focus {
    background: rgba(30, 41, 59, 0.8) !important;
    border-color: var(--game-gold) !important;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
    color: white !important;
}

.input-group-text {
    font-weight: 700;
    letter-spacing: 1px;
}

.action-btn {
    font-size: 0.95rem;
    padding: 15px;
}

.stat-card.money,
.stat-card.shops,
.stat-card.profit {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.settings-input {
    background: rgba(30, 41, 59, 0.6);
    border: 2px solid rgba(139, 92, 246, 0.4);
    color: white;
    padding: 12px 15px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.settings-input:focus {
    background: rgba(30, 41, 59, 0.8);
    border-color: var(--game-gold);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
    color: white;
}

.settings-input:disabled {
    background: rgba(30, 41, 59, 0.3);
    border-color: rgba(139, 92, 246, 0.2);
    cursor: not-allowed;
}

.form-label {
    color: white;
    font-weight: 700;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.form-text {
    font-size: 0.85rem;
    margin-top: 5px;
    display: block;
}

/* Avatar Upload */
.avatar-upload-container {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    border: 5px solid var(--game-purple);
    box-shadow: 0 10px 40px rgba(139, 92, 246, 0.5);
    transition: all 0.3s ease;
}

.avatar-upload-container:hover {
    border-color: var(--game-gold);
    transform: scale(1.05);
}

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

.avatar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: white;
}

.avatar-upload-container:hover .avatar-overlay {
    opacity: 1;
}

.avatar-overlay i {
    font-size: 2rem;
    margin-bottom: 5px;
}

.avatar-overlay p {
    margin: 0;
    font-weight: 700;
}

/* Password Input */
.password-input-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    padding: 5px 10px;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: var(--game-gold);
}

/* Password Strength */
.password-strength {
    height: 5px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    overflow: hidden;
}

.strength-bar {
    height: 100%;
    width: 0%;
    transition: all 0.3s ease;
    border-radius: 10px;
}

/* Account Info */
.account-info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 12px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.account-info-item:hover {
    border-color: var(--game-purple);
    transform: translateX(5px);
}

.info-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--game-purple), var(--game-purple-dark));
    border-radius: 12px;
    font-size: 1.5rem;
    color: white;
}

.info-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    margin-bottom: 3px;
}

.info-value {
    color: white;
    font-weight: 800;
    font-size: 1rem;
    margin-bottom: 0;
}

/* Select */
.form-select {
    cursor: pointer;
}

.form-select option {
    background: rgba(30, 41, 59, 0.98);
    color: white;
}

/* ============================================
   PAGE LOADER STYLES
   ============================================ */

.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 50%, #312E81 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.page-loader.active {
    opacity: 1;
    visibility: visible;
}

/* Loader Particles */
.loader-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--game-gold);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--game-gold);
    animation: particleFloat 5s ease-in-out infinite;
    opacity: 0;
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-100vh) scale(1);
        opacity: 0;
    }
}

/* Loader Spinner */
.loader-spinner {
    width: 120px;
    height: 120px;
    border: 6px solid rgba(139, 92, 246, 0.2);
    border-top: 6px solid var(--game-gold);
    border-right: 6px solid var(--game-purple);
    border-radius: 50%;
    animation: spin 1.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
    position: relative;
    z-index: 2;
    box-shadow:
        0 0 40px rgba(255, 215, 0, 0.4),
        0 0 80px rgba(139, 92, 246, 0.3),
        inset 0 0 40px rgba(255, 215, 0, 0.1);
}

.loader-spinner::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    border: 4px solid rgba(255, 215, 0, 0.2);
    border-bottom: 4px solid var(--game-gold);
    border-left: 4px solid var(--game-purple);
    border-radius: 50%;
    animation: spin 1s linear infinite reverse;
}

.loader-spinner::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border: 3px solid rgba(139, 92, 246, 0.2);
    border-top: 3px solid var(--game-purple);
    border-radius: 50%;
    animation: spin 0.7s ease-in-out infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Loader Logo */
.loader-logo {
    margin-top: 40px;
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--game-gold) 0%, var(--game-gold-light) 50%, var(--game-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 30px rgba(255, 215, 0, 0.6));
    animation: logoGlow 2s ease-in-out infinite;
    position: relative;
    z-index: 2;
    text-align: center;
}

.loader-accent {
    color: var(--game-purple);
    -webkit-text-fill-color: var(--game-purple);
    filter: drop-shadow(0 0 20px rgba(139, 92, 246, 0.8));
}

@keyframes logoGlow {

    0%,
    100% {
        filter: drop-shadow(0 0 30px rgba(255, 215, 0, 0.6));
    }

    50% {
        filter: drop-shadow(0 0 50px rgba(255, 215, 0, 0.9));
    }
}

/* Loader Text */
.loader-text {
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
    z-index: 2;
    animation: textPulse 1.5s ease-in-out infinite;
}

@keyframes textPulse {

    0%,
    100% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }
}

/* Sidebar Overlay for Mobile */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.sidebar-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Page Transition Effects */
.page-transition {
    animation: pageEnter 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes pageEnter {
    0% {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Mobile Sidebar Styles */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.show {
        transform: translateX(0);
        box-shadow: 4px 0 30px rgba(0, 0, 0, 0.5);
    }


    .main-content {
        margin-left: 0 !important;
    }
}

/* ============================================
   SETTINGS PAGE STYLES
   ============================================ */

.avatar-upload-container {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    border: 4px solid var(--game-purple);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.3);
    transition: all 0.3s ease;
}

.avatar-upload-container:hover {
    border-color: var(--game-gold);
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.4);
}

.current-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.avatar-upload-container:hover .current-avatar {
    filter: blur(3px) brightness(0.7);
    transform: scale(1.1);
}

.avatar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 2;
}

.avatar-upload-container:hover .avatar-overlay {
    opacity: 1;
}

.avatar-overlay i {
    font-size: 2.5rem;
    margin-bottom: 5px;
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.5));
}

.avatar-overlay p {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    margin: 0;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
}

.settings-input {
    background: rgba(15, 23, 42, 0.6) !important;
    border: 2px solid rgba(139, 92, 246, 0.3) !important;
    color: white !important;
    padding: 12px 15px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.settings-input:focus {
    background: rgba(15, 23, 42, 0.8) !important;
    border-color: var(--game-gold) !important;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.2) !important;
}

.settings-input:disabled {
    background: rgba(15, 23, 42, 0.3) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: rgba(255, 255, 255, 0.5) !important;
}

.password-input-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    padding: 0;
    z-index: 5;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: var(--game-gold);
}

.password-strength {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 8px;
}

.strength-bar {
    height: 100%;
    width: 0;
    transition: all 0.3s ease;
}

/* Utilities */
.cursor-pointer {
    cursor: pointer !important;
}

.hover-border-primary:hover {
    border-color: #3b82f6 !important;
    background-color: rgba(59, 130, 246, 0.1) !important;
}

.hover-border-success:hover {
    border-color: #10b981 !important;
    background-color: rgba(16, 185, 129, 0.1) !important;
}

/* ========================================= */
/* Assets Page Styles */
/* ========================================= */
.asset-card {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    /* Removed redundant z-index if managed globally, but keeping safe */
}

.asset-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.asset-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.15);
}

.asset-card:hover::before {
    opacity: 1;
}

.asset-image-wrapper {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.asset-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.asset-card:hover .asset-image {
    transform: scale(1.1);
}

.asset-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95), transparent);
    z-index: 1;
}

.asset-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    padding: 5px 12px;
    border-radius: 20px;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 2;
}

.progress-thin {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-row:last-child {
    border-bottom: none;
}

.stat-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.stat-value {
    font-size: 0.9rem;
    color: #fff;
    font-weight: 600;
}

.nav-pills .nav-link {
    color: rgba(255, 255, 255, 0.6);
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 10px 20px;
    transition: all 0.3s ease;
    margin-right: 10px;
    margin-bottom: 10px;
}

.nav-pills .nav-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.nav-pills .nav-link.active {
    background: linear-gradient(135deg, var(--game-primary, #6366f1), var(--game-accent, #8b5cf6));
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: rgba(15, 23, 42, 0.3);
    border-radius: 20px;
    border: 2px dashed rgba(255, 255, 255, 0.1);
}

.btn-create-asset {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    border: none;
    transition: all 0.3s ease;
}

.btn-create-asset:hover {
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

/* ========================================= */
/* Asset Management Page Styles */
/* ========================================= */
.management-header {
    background: rgba(30, 41, 59, 0.7);
    padding: 15px;
    border-radius: 12px 12px 0 0;
    text-align: center;
    text-transform: uppercase;
    font-weight: 800;
    color: white;
    letter-spacing: 1px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.05);
}

/* section-card is already global */

.section-title {
    background: rgba(30, 41, 59, 0.4);
    padding: 10px 20px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
}

.asset-main-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 20px;
    padding: 20px;
}

.asset-image-large {
    width: 100%;
    height: 200px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.info-item {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
}

.info-item strong {
    color: rgba(255, 255, 255, 0.6);
    margin-right: 5px;
    font-weight: 500;
}

.warehouse-grid {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 20px;
    padding: 20px;
}

.product-box {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 140px;
    width: 140px;
}

.product-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.stat-text {
    color: #94a3b8;
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.stat-val {
    color: white;
    font-weight: 600;
}

.action-link {
    color: #3b82f6;
    text-decoration: none;
    transition: color 0.2s;
    font-size: 0.9rem;
}

.action-link:hover {
    color: #60a5fa;
    text-decoration: underline;
}

.btn-buy {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    color: white;
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
    transition: transform 0.2s;
}

.btn-buy:hover {
    transform: translateY(-2px);
}

.alert-box {
    background: rgba(239, 68, 68, 0.1);
    border-left: 4px solid #ef4444;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 0 20px 20px 20px;
}

.price-control {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.3);
    padding: 4px 10px;
    border-radius: 6px;
}

.price-btn {
    color: #22c55e;
    cursor: pointer;
    padding: 2px 5px;
    transition: transform 0.1s;
}

.price-btn.decrease {
    color: #ef4444;
}

.price-btn:active {
    transform: scale(0.9);
}

/* ========================================= */
/* Market / Shop Page Styles */
/* ========================================= */
.market-header {
    background: rgba(30, 41, 59, 0.9);
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 12px 12px 0 0;
}

.shop-header-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.shop-thumb {
    width: 120px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.selected-product-card {
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.5);
    border-radius: 12px;
    padding: 10px;
    text-align: center;
    width: 140px;
}

.listings-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
}

.listings-table th {
    color: #94a3b8;
    font-weight: 600;
    text-align: left;
    padding: 10px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.listing-row {
    background: rgba(255, 255, 255, 0.03);
    transition: transform 0.2s, background 0.2s;
}

.listing-row:hover {
    background: rgba(255, 255, 255, 0.07);
    transform: scale(1.005);
}

.listing-row td {
    padding: 15px 10px;
    vertical-align: middle;
    color: white;
}

.listing-row td:first-child {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

.listing-row td:last-child {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

.seller-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.quality-badge {
    font-weight: bold;
    color: #3b82f6;
}

.price-text {
    font-weight: 700;
    color: white;
}

.net-price {
    color: #22c55e;
    font-weight: 800;
    font-size: 1.1rem;
}

.buy-input-group {
    display: flex;
    gap: 5px;
    align-items: center;
}

.buy-input {
    width: 60px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    text-align: center;
    border-radius: 4px;
    padding: 5px;
}

.btn-buy-action {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 6px 15px;
    border-radius: 4px;
    font-weight: 600;
    transition: background 0.2s;
}

.btn-buy-action:hover {
    background: #2563eb;
}

.product-select-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    transition: all 0.2s;
}

.product-select-btn.active,
.product-select-btn:hover {
    background: rgba(59, 130, 246, 0.3);
    border-color: #3b82f6;
}

/* ========================================= */
/* Market Pagination */
/* ========================================= */
.pagination-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.6) 0%, rgba(15, 23, 42, 0.6) 100%);
    border: 2px solid rgba(139, 92, 246, 0.3);
    border-radius: 15px;
}

.pagination-info {
    font-size: 0.95rem;
    font-weight: 600;
}

.pagination-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination-btn {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.8) 100%);
    border: 2px solid rgba(139, 92, 246, 0.3);
    color: white;
    padding: 10px 18px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 45px;
    text-align: center;
}

.pagination-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--game-purple), var(--game-purple-dark));
    border-color: var(--game-gold);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(139, 92, 246, 0.4);
}

.pagination-btn.active {
    background: linear-gradient(135deg, var(--game-gold), var(--game-gold-dark));
    border-color: var(--game-gold);
    color: #1F2937;
    font-weight: 900;
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.5);
}

.pagination-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.pagination-dots {
    color: rgba(255, 255, 255, 0.5);
    padding: 0 5px;
    font-weight: 700;
}

/* ========================================= */
/* Market Page - Mobile Responsive */
/* ========================================= */
@media (max-width: 768px) {

    /* Shop Header - Stack vertically */
    .shop-header-card {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }

    .shop-thumb {
        width: 100%;
        height: 150px;
        margin-bottom: 15px;
    }

    /* Product Selector */
    #productTypeContainer {
        justify-content: center;
    }

    .product-select-btn {
        min-width: 100px !important;
        padding: 8px 12px;
        font-size: 0.85rem;
    }

    /* Table to Cards */
    .listings-table {
        display: block;
        border-spacing: 0;
    }

    .listings-table thead {
        display: none;
    }

    .listings-table tbody {
        display: block;
    }

    .listing-row {
        display: block;
        margin-bottom: 20px;
        background: linear-gradient(135deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.8) 100%);
        border: 2px solid rgba(139, 92, 246, 0.3);
        border-radius: 15px;
        padding: 15px;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    }

    .listing-row:hover {
        transform: translateY(-3px);
        border-color: var(--game-gold);
        box-shadow: 0 10px 30px rgba(255, 215, 0, 0.2);
    }

    .listing-row td {
        display: block;
        padding: 8px 0;
        text-align: left;
        border: none;
    }

    .listing-row td:first-child,
    .listing-row td:last-child {
        border-radius: 0;
    }

    /* Add labels for mobile */
    .listing-row td:before {
        content: attr(data-label);
        display: inline-block;
        font-weight: 700;
        color: var(--game-gold);
        width: 120px;
        margin-right: 10px;
    }

    /* Seller info - special treatment */
    .listing-row td:first-child {
        display: flex;
        align-items: center;
        gap: 15px;
        padding-bottom: 15px;
        margin-bottom: 15px;
        border-bottom: 1px solid rgba(139, 92, 246, 0.3);
    }

    .listing-row td:first-child:before {
        display: none;
    }

    .seller-avatar {
        width: 50px;
        height: 50px;
        border: 2px solid var(--game-purple);
    }

    /* Buy input group - better mobile layout */
    .buy-input-group {
        flex-wrap: wrap;
        gap: 10px;
        margin-top: 10px;
    }

    .buy-input {
        width: 80px;
        font-size: 1rem;
        padding: 8px;
    }

    .btn-buy-action {
        flex: 1;
        min-width: 0;
        padding: 12px 20px;
        font-size: 1rem;
        background: linear-gradient(135deg, var(--game-purple), var(--game-purple-dark));
        border: none;
        color: white;
        border-radius: 10px;
        font-weight: 800;
        text-transform: uppercase;
        box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
        transition: all 0.3s ease;
    }

    .btn-buy-action:hover {
        background: linear-gradient(135deg, #7c3aed, #6d28d9);
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(139, 92, 246, 0.6);
    }

    /* Price highlights */
    .net-price {
        font-size: 1.3rem;
    }

    /* Selected product display */
    .selected-product-card {
        width: 100%;
        max-width: 200px;
    }

    /* Alert adjustments */
    .alert {
        font-size: 0.85rem;
        padding: 8px 15px !important;
    }
}

@media (max-width: 576px) {
    .shop-header-card {
        padding: 10px;
    }

    .product-select-btn {
        min-width: 90px !important;
        padding: 6px 10px;
        font-size: 0.75rem;
    }

    .listing-row {
        padding: 12px;
    }

    .listing-row td:before {
        width: 100px;
        font-size: 0.85rem;
    }

    /* Pagination mobile */
    .pagination-wrapper {
        padding: 15px;
    }

    .pagination-info {
        font-size: 0.85rem;
        text-align: center;
    }

    .pagination-btn {
        padding: 8px 12px;
        font-size: 0.85rem;
        min-width: 40px;
    }
}

/* ============================================
   SETTINGS PAGE STYLES
   ============================================ */

/* Avatar Upload */
.avatar-upload-container {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto;
    cursor: pointer;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid rgba(139, 92, 246, 0.5);
    transition: all 0.3s ease;
}

.avatar-upload-container:hover {
    border-color: var(--game-gold);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.4);
    transform: scale(1.05);
}

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

.avatar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: white;
}

.avatar-upload-container:hover .avatar-overlay {
    opacity: 1;
}

.avatar-overlay i {
    font-size: 2rem;
    margin-bottom: 5px;
}

.avatar-overlay p {
    margin: 0;
    font-weight: 600;
}

/* Settings Form Inputs */
.settings-input {
    background: rgba(30, 41, 59, 0.6) !important;
    border: 2px solid rgba(139, 92, 246, 0.3) !important;
    color: white !important;
    padding: 12px 15px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.settings-input:focus {
    background: rgba(30, 41, 59, 0.8) !important;
    border-color: var(--game-gold) !important;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3) !important;
    outline: none;
}

.settings-input:disabled,
.settings-input[readonly] {
    background: rgba(30, 41, 59, 0.3) !important;
    border-color: rgba(139, 92, 246, 0.2) !important;
    opacity: 0.6;
    cursor: not-allowed;
}

/* Password Input Wrapper */
.password-input-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    font-size: 1.2rem;
    transition: color 0.3s ease;
    padding: 5px;
}

.password-toggle:hover {
    color: var(--game-gold);
}

/* Password Strength Indicator */
.password-strength {
    height: 6px;
    background: rgba(30, 41, 59, 0.6);
    border-radius: 3px;
    overflow: hidden;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.strength-bar {
    height: 100%;
    width: 0%;
    transition: all 0.3s ease;
    border-radius: 3px;
}

.strength-bar.weak {
    background: linear-gradient(90deg, #EF4444, #DC2626);
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
}

.strength-bar.medium {
    background: linear-gradient(90deg, #F59E0B, #D97706);
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

.strength-bar.strong {
    background: linear-gradient(90deg, #10B981, #059669);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

/* Account Info Items */
.account-info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(30, 41, 59, 0.4);
    border-radius: 12px;
    margin-bottom: 12px;
    border: 2px solid rgba(139, 92, 246, 0.2);
    transition: all 0.3s ease;
}

.account-info-item:hover {
    background: rgba(30, 41, 59, 0.6);
    border-color: rgba(139, 92, 246, 0.4);
    transform: translateX(5px);
}

.info-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--game-purple), var(--game-purple-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    box-shadow: 0 5px 15px rgba(139, 92, 246, 0.4);
}

.info-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-size: 1.1rem;
    color: white;
    margin: 0;
    font-weight: 700;
}

/* Action Button Override for Settings */
.action-btn {
    background: linear-gradient(135deg, var(--game-purple), var(--game-purple-dark));
    border: 2px solid rgba(139, 92, 246, 0.5);
    color: white;
    padding: 15px 30px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(139, 92, 246, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.action-btn:hover {
    background: linear-gradient(135deg, var(--game-gold), var(--game-gold-dark));
    border-color: var(--game-gold);
    color: #1F2937;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.5);
}

.action-btn:active {
    transform: translateY(-1px);
}

.action-btn i {
    margin-right: 8px;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablet and below */
@media (max-width: 992px) {
    :root {
        --sidebar-width: 260px;
    }

    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.show {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }

    .horizontal-menu {
        flex-wrap: wrap;
        gap: 5px;
    }

    .menu-tab {
        font-size: 0.75rem;
        padding: 10px 15px;
    }

    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
    }
}

/* Mobile */
@media (max-width: 768px) {
    :root {
        --sidebar-width: 280px;
    }

    .sidebar {
        width: 280px;
        transform: translateX(-100%);
    }

    .sidebar.show {
        transform: translateX(0);
    }

    .top-bar {
        flex-wrap: wrap;
        padding: 12px 15px;
    }

    .horizontal-menu {
        order: 3;
        width: 100%;
        margin-top: 10px;
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 5px;
    }

    .horizontal-menu::-webkit-scrollbar {
        height: 3px;
    }

    .horizontal-menu::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.2);
        border-radius: 2px;
    }

    .menu-tab {
        white-space: nowrap;
        font-size: 0.7rem;
        padding: 8px 12px;
    }

    .user-info {
        gap: 10px;
    }

    .user-name {
        display: none;
    }

    .logout-btn {
        padding: 8px 15px;
        font-size: 0.8rem;
    }

    .stats-grid {
        grid-template-columns: 1fr !important;
    }

    .chart-card {
        padding: 20px;
    }

    .chart-period {
        flex-wrap: wrap;
        gap: 5px;
    }

    .period-btn {
        padding: 8px 15px;
        font-size: 0.75rem;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .dashboard-content {
        padding: 15px;
    }

    .chart-card {
        padding: 15px;
    }

    .chart-title {
        font-size: 1.1rem;
    }

    .stat-value {
        font-size: 1.8rem;
    }

    .menu-toggle {
        padding: 8px 12px;
        font-size: 1.3rem;
    }
}

/* Seminer Kartları */
.seminar-image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 3px solid rgba(139, 92, 246, 0.3);
}

.seminar-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.seminar-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--game-gold) 0%, var(--game-gold-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #1F2937;
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.5);
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 5px 20px rgba(255, 215, 0, 0.5);
    }

    50% {
        transform: scale(1.1);
        box-shadow: 0 5px 30px rgba(255, 215, 0, 0.8);
    }
}

.seminar-info-box {
    background: rgba(30, 41, 59, 0.6);
    border: 2px solid rgba(139, 92, 246, 0.4);
    border-radius: 12px;
    padding: 15px;
    backdrop-filter: blur(10px);
}

.action-btn {
    position: relative;
    overflow: hidden;
}

.action-btn .float-end {
    font-size: 1.1rem;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* Responsive */
@media (max-width: 768px) {
    .seminar-image {
        height: 200px;
    }
}


/* =========================================
   PAGE LOADER STYLES
   ========================================= */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0f172a;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.active {
    visibility: visible;
    opacity: 1;
}

.loader-spinner {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(255, 215, 0, 0.1);
    border-radius: 50%;
    border-top-color: var(--game-gold);
    animation: spin 1s ease-in-out infinite;
    margin-bottom: 20px;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
}

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

.loader-logo {
    font-size: 1.8rem;
    font-weight: 900;
    color: white;
    letter-spacing: 1px;
    margin-bottom: 10px;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    animation: float 2s ease-in-out infinite;
}

.loader-accent {
    color: var(--game-purple);
    margin: 0 2px;
}

.loader-text {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

/* Page Transition Effect */
.dashboard-content {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards;
}

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

/* =========================================
   FRIENDS SYSTEM STYLES
   ========================================= */
.friend-card {
    transition: all 0.3s ease;
}

.friend-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    border-color: rgba(16, 185, 129, 0.5) !important;
}

#friendsTabs .nav-link {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    margin-right: 0.5rem;
    transition: all 0.3s ease;
}

#friendsTabs .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

#friendsTabs .nav-link.active {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(139, 92, 246, 0.2));
    border-color: rgba(16, 185, 129, 0.5);
    color: #fff;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

#searchInput {
    background: rgba(15, 23, 42, 0.8) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
}

#searchInput:focus {
    background: rgba(15, 23, 42, 0.9) !important;
    border-color: rgba(16, 185, 129, 0.5) !important;
    box-shadow: 0 0 0 0.25rem rgba(16, 185, 129, 0.1);
}

#searchResults .card {
    transition: all 0.3s ease;
}

#searchResults .card:hover {
    transform: translateY(-3px);
    border-color: rgba(16, 185, 129, 0.3) !important;
}

/* =========================================
   PAGINATION STYLES
   ========================================= */
.pagination {
    gap: 0.5rem;
}

.pagination .page-link {
    background: rgba(30, 41, 59, 0.6);
    border: 2px solid rgba(139, 92, 246, 0.4);
    color: rgba(255, 255, 255, 0.8);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.pagination .page-link:hover {
    background: rgba(139, 92, 246, 0.3);
    border-color: rgba(139, 92, 246, 0.6);
    color: #fff;
    transform: translateY(-2px);
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.8), rgba(124, 58, 237, 0.8));
    border-color: rgba(139, 92, 246, 0.8);
    color: #fff;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

.pagination .page-item.disabled .page-link {
    background: rgba(30, 41, 59, 0.3);
    border-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.3);
}

/* =========================================
   NOTIFICATION BADGE STYLES
   ========================================= */
.menu-tab .badge {
    animation: pulse-badge 2s infinite;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
}

@keyframes pulse-badge {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.9;
    }
}

.menu-tab:hover .badge {
    animation: none;
    transform: translate(-50%, -50%) scale(1.05);
}

/* Fix for menu-tab badge visibility */
.menu-tab {
    overflow: visible !important;
}

.menu-tab .badge {
    z-index: 10;
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
}

/* Ensure badge stays above menu-tab::before effect */
.menu-tab .position-relative {
    z-index: 2;
    position: relative;
}

.menu-tab .badge {
    z-index: 3 !important;
}

.menu-tab::before {
    z-index: 1;
}

/* Complete fix for badge visibility over menu hover effect */
.menu-tab .badge {
    pointer-events: none;
    z-index: 100 !important;
    position: absolute !important;
}

/* Ensure icon wrapper doesn't interfere */
.menu-tab .position-relative {
    z-index: 99;
}

/* Keep hover effect below */
.menu-tab::before {
    z-index: 0 !important;
}

/* Sidebar Overlay for Mobile */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

/* Mobile Sidebar Specifics */
@media (max-width: 991px) {
    .sidebar {
        transform: translateX(-100%);
        width: 80%;
        /* Mobilde tam ekran olmasın, sağ taraf boş kalsın */
        max-width: 300px;
    }

    .sidebar.show {
        transform: translateX(0);
        box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    }
}

/* Mobile Typography & Layout Fixes for Assets Page */
@media (max-width: 768px) {

    /* Headings */
    h1,
    .h1 {
        font-size: 1.5rem !important;
    }

    h2,
    .h2 {
        font-size: 1.25rem !important;
    }

    h3,
    .h3 {
        font-size: 1.1rem !important;
    }

    h4,
    .h4 {
        font-size: 1rem !important;
    }

    /* Stat Cards */
    .stat-card {
        padding: 10px !important;
    }

    .stat-card .rounded-circle {
        width: 36px;
        height: 36px;
        padding: 0 !important;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .stat-card i {
        font-size: 1.2rem !important;
    }

    .stat-card .h4 {
        font-size: 1rem !important;
    }

    .stat-card .x-small {
        font-size: 0.6rem !important;
    }

    /* Asset Cards */
    .asset-overlay h6 {
        font-size: 0.9rem !important;
    }

    .asset-overlay div {
        font-size: 0.7rem !important;
    }

    .stat-row {
        padding: 6px 0 !important;
    }

    .stat-label {
        font-size: 0.75rem !important;
    }

    .stat-value {
        font-size: 0.85rem !important;
    }

    /* Buttons & Navs */
    .btn-create-asset {
        font-size: 0.8rem !important;
        padding: 6px 12px !important;
    }

    .nav-pills .nav-link {
        font-size: 0.8rem !important;
        padding: 6px 10px !important;
    }

    .input-group-text,
    .form-control {
        font-size: 0.8rem !important;
    }

    /* Asset Management Page Mobile Fixes */
    .asset-main-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
        padding: 15px !important;
    }

    .asset-image-large {
        height: 180px !important;
    }

    .management-header {
        font-size: 1.1rem !important;
        padding: 15px !important;
    }

    /* Market Management Mobile Fixes */
    .warehouse-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
        padding: 15px !important;
    }

    .warehouse-grid>div:first-child {
        width: 100% !important;
        /* Yüksekliği içerik belirlesin veya biraz daha büyük olsun */
    }

    .warehouse-grid img {
        max-height: 140px !important;
        width: auto !important;
    }
}

/* Custom Alert Box */
.alert-box {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.6) 0%, rgba(15, 23, 42, 0.8) 100%);
    backdrop-filter: blur(10px);
    border: 2px dashed rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    margin: 1rem 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);

    /* Force vertical stacking */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 1rem;
}

.alert-box:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

@media (max-width: 576px) {
    .alert-box {
        padding: 1.5rem;
    }

    .alert-box .display-4 {
        font-size: 2.5rem !important;
    }

    .alert-box h5 {
        font-size: 1.1rem;
    }

    .alert-box .small {
        font-size: 0.85rem;
    }
}