:root {
    --primary-color: #00d2ff;
    --secondary-color: #9d00ff;
    --bg-dark: #050510;
    --card-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --neon-glow: 0 0 10px rgba(0, 210, 255, 0.7), 0 0 20px rgba(0, 210, 255, 0.5);
    --sidebar-width: 280px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-dark);
    background-image: url('../images/bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #fff;
    overflow-x: hidden;
}

/* Layout */
.wrapper {
    display: flex;
    width: 100%;
    align-items: stretch;
}

.sidebar {
    min-width: var(--sidebar-width);
    max-width: var(--sidebar-width);
    height: 100vh;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-right: 1px solid var(--glass-border);
    transition: all 0.3s;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

/* Custom Styled Scrollbar for Sidebar */
.sidebar::-webkit-scrollbar {
    width: 4px;
}
.sidebar::-webkit-scrollbar-track {
    background: transparent;
}
.sidebar::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}
.sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

.content-wrapper {
    width: 100%;
    margin-left: var(--sidebar-width);
    padding: 20px;
    transition: all 0.3s;
}

/* Sidebar Elements */
.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid var(--glass-border);
}

.sidebar-menu {
    padding: 20px 0;
}

.sidebar-menu .nav-link {
    padding: 15px 25px;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    transition: 0.3s;
    border-left: 3px solid transparent;
}

.sidebar-menu .nav-link:hover,
.sidebar-menu .nav-link.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    border-left-color: var(--primary-color);
    text-shadow: var(--neon-glow);
}

.sidebar-menu .nav-link i {
    width: 25px;
    margin-right: 10px;
}

/* Glassmorphism Card */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px 0 rgba(0, 210, 255, 0.2);
    border-color: var(--primary-color);
}

/* 3D Text Effect */
.text-3d {
    text-shadow:
        0 1px 0 #ccc,
        0 2px 0 #c9c9c9,
        0 3px 0 #bbb,
        0 4px 0 #b9b9b9,
        0 5px 0 #aaa,
        0 6px 1px rgba(0, 0, 0, .1),
        0 0 5px rgba(0, 0, 0, .1),
        0 1px 3px rgba(0, 0, 0, .3),
        0 3px 5px rgba(0, 0, 0, .2),
        0 5px 10px rgba(0, 0, 0, .25),
        0 10px 10px rgba(0, 0, 0, .2),
        0 20px 20px rgba(0, 0, 0, .15);
}

.text-neon {
    color: #fff;
    text-shadow: var(--neon-glow);
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.float-anim {
    animation: float 4s ease-in-out infinite;
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 5px var(--primary-color);
    }

    50% {
        box-shadow: 0 0 20px var(--primary-color), 0 0 10px var(--secondary-color);
    }

    100% {
        box-shadow: 0 0 5px var(--primary-color);
    }
}

.btn-cyber {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border: none;
    color: white;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
    transition: 0.3s;
    z-index: 1;
}

.btn-cyber::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
    opacity: 0;
    z-index: -1;
    transition: 0.3s;
}

.btn-cyber:hover::before {
    opacity: 1;
}

.btn-cyber:hover {
    box-shadow: var(--neon-glow);
    transform: scale(1.05);
    color: #fff;
}

/* Mining Animation */
.mining-active-ring {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 5px solid rgba(255, 255, 255, 0.1);
    position: relative;
    margin: 0 auto;
}

.mining-active-ring::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    border: 5px solid transparent;
    border-top: 5px solid var(--primary-color);
    animation: spin 1s linear infinite;
}

.mining-logo-full {
    width: 60%;
    height: 60%;
    object-fit: contain;
    border-radius: 50%;
    animation: spin 10s linear infinite;
}

@keyframes pulse {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.95); }
    100% { opacity: 1; transform: scale(1); }
}

.pulse-text {
    animation: pulse 2s infinite ease-in-out;
}

.fs-4 { font-size: 1.5rem !important; }
.display-5 { font-size: 3rem !important; }

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.package-card {
    height: 100%;
    transition: all 0.3s;
}

.package-price {
    font-size: 2rem;
    color: var(--primary-color);
    font-weight: bold;
}

.extra-small {
    font-size: 0.75rem;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .sidebar {
        margin-left: -280px;
    }

    .sidebar.active {
        margin-left: 0;
    }

    .content-wrapper {
        margin-left: 0;
    }

    .mining-stats-row {
        flex-direction: column;
    }
}