:root {
    --primary-glow: #ff003c;
    --bg-dark: #0a0b10;
    --card-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-primary: #ffffff;
    --text-secondary: #a0a0a8;
    --accent-color: #ff003c;
}

.brand-logo {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -1.5px;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 40px;
    background: linear-gradient(180deg, #fff 0%, #888 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.5));
}

.brand-logo span {
    -webkit-text-fill-color: var(--accent-color);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-dark);
    background-image:
        linear-gradient(rgba(10, 11, 16, 0.9), rgba(10, 11, 16, 0.9)),
        url('https://www.transparenttextures.com/patterns/carbon-fibre.png');
    background-attachment: fixed;
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    width: 100%;
}

.dashboard-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: 100vh;
    width: 100%;
}

.main-content {
    padding: 40px;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
}

.glass-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.03) 100%);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.8);
    border-radius: 24px;
    padding: 30px;
    transition: all 0.4s ease;
    width: 100%;
}

.mining-counter {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 800;
    letter-spacing: -2px;
    background: linear-gradient(180deg, #fff 0%, #a0a0a8 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 20px 0;
}

.btn-primary {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.btn-primary:hover {
    filter: brightness(1.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 0, 60, 0.3);
}

.btn-primary:active {
    transform: scale(0.95);
}

.gauge-container {
    position: relative;
    width: 110px;
    height: 110px;
    margin: 15px auto;
}

.gauge-svg {
    transform: rotate(-90deg);
}

.gauge-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.05);
    stroke-width: 8;
}

.gauge-fill {
    fill: none;
    stroke: var(--accent-color);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 283;
    transition: stroke-dashoffset 1s ease;
    filter: drop-shadow(0 0 5px var(--accent-color));
}

.gauge-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.gauge-value {
    font-size: 1rem;
    font-weight: 800;
    display: block;
    color: white;
}

.gauge-label {
    font-size: 0.55rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Desktop Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 1200px) {
    .dashboard-grid {
        grid-template-columns: 2fr 0.8fr;
    }
}

.central-mining-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
    text-align: center;
}

.gear-container {
    position: relative;
    width: 180px;
    height: 180px;
}

.miner-header-gauges {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 20px;
}

.miner-header-gauges .gauge-container {
    margin: 0;
    width: 90px;
    height: 90px;
}

.miner-header-gauges .gauge-value {
    font-size: 0.8rem;
}

.gear-inner {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 8px dashed var(--accent-color);
    border-radius: 50%;
    animation: rotate 30s linear infinite;
    opacity: 0.15;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.neon-logo-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 30px var(--accent-color), inset 0 0 15px var(--accent-color);
}

.neon-logo-ring img {
    width: 65px;
    height: 65px;
    filter: drop-shadow(0 0 10px var(--accent-color));
}

.floating-stats-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mini-card {
    border-left: 4px solid var(--accent-color);
    padding: 24px;
}

.spark-wave {
    width: 100%;
    height: 40px;
    stroke: var(--accent-color);
    stroke-width: 3;
    fill: none;
    opacity: 1;
    margin-top: 10px;
    filter: drop-shadow(0 0 5px var(--accent-color));
}

/* Sidebar Styles */
.sidebar {
    background: rgba(10, 11, 16, 0.5);
    border-right: 1px solid var(--glass-border);
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    height: 100vh;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
}

.nav-menu {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 14px 20px;
    border-radius: 12px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    font-weight: 500;
}

.nav-link i {
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
    opacity: 0.8;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.nav-link.active {
    background: rgba(255, 255, 255, 0.08);
    color: white;
    border-left: 4px solid var(--accent-color);
    box-shadow: inset 10px 0 15px -10px var(--accent-color);
}

.sidebar-gauges {
    margin-top: auto;
    padding-top: 30px;
    border-top: 1px solid var(--glass-border);
}

/* Mobile Responsiveness Improvements */
@media (max-width: 991px) {
    .dashboard-layout {
        display: block;
        width: 100%;
    }

    .sidebar {
        position: fixed;
        bottom: 0;
        top: auto;
        left: 0;
        width: 100% !important;
        height: 75px;
        background: rgba(10, 11, 16, 0.95);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        flex-direction: row;
        border-right: none !important;
        border-top: 1px solid var(--glass-border);
        padding: 0 !important;
        z-index: 9999;
        display: flex !important;
    }

    .brand-logo,
    .sidebar-gauges,
    .hide-mobile {
        display: none !important;
    }

    .nav-menu {
        margin-top: 0;
        display: flex !important;
        flex-direction: row !important;
        width: 100%;
        height: 100%;
        justify-content: space-around;
        align-items: center;
        gap: 0;
    }

    .nav-link {
        flex-direction: column !important;
        gap: 4px !important;
        font-size: 0.65rem !important;
        padding: 5px !important;
        flex: 1;
        text-align: center;
        border-radius: 0 !important;
        background: none !important;
        border: none !important;
        height: 100%;
        justify-content: center;
    }

    .nav-link i {
        font-size: 1.4rem !important;
        margin: 0 !important;
        width: auto !important;
        opacity: 0.8;
    }

    .nav-link.active {
        color: var(--accent-color) !important;
        border-top: 3px solid var(--accent-color);
        background: linear-gradient(to top, rgba(255, 0, 60, 0.1), transparent) !important;
        border-left: none !important;
        box-shadow: none !important;
    }

    .main-content {
        padding: 20px 20px 100px 20px !important;
        width: 100%;
    }

    /* Fixed 2-column grid for mobile */
    .selection-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }

    .coin-card {
        padding: 20px 10px !important;
    }

    .coin-card img {
        width: 50px !important;
        height: 50px !important;
    }

    .coin-name {
        font-size: 0.9rem !important;
    }
}

@media (max-width: 600px) {
    .dashboard-grid {
        gap: 20px;
    }

    .central-mining-card {
        padding: 40px 20px;
    }

    .gear-container {
        width: 140px;
        height: 140px;
    }

    .neon-logo-ring {
        width: 90px;
        height: 90px;
    }
}

/* Mesh Background Ported Back */
.mesh-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: var(--bg-dark);
}

.mesh-blob {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 0, 60, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(80px);
    animation: v2move 20s infinite alternate;
}

.blob-1 {
    top: -10%;
    left: -10%;
    animation-delay: 0s;
}

.blob-2 {
    top: 40%;
    right: -10%;
    animation-delay: -5s;
}

.blob-3 {
    bottom: -10%;
    left: 30%;
    animation-delay: -10s;
}

@keyframes v2move {
    from {
        transform: translate(0, 0) scale(1);
    }

    to {
        transform: translate(100px, 100px) scale(1.2);
    }
}

/* Alerts matching Menu Style */
.v2-glow-alert {
    background: rgba(255, 255, 255, 0.08) !important;
    color: white !important;
    border-left: 4px solid var(--glow-color) !important;
    box-shadow: inset 10px 0 15px -10px var(--glow-color) !important;
    border-radius: 12px !important;
    padding: 15px 25px !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: 0.3s ease;
}

.v2-glow-alert:hover {
    background: rgba(255, 255, 255, 0.12) !important;
}