body {
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a3e 50%, #0f0f23 100%);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 107, 53, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(247, 147, 30, 0.1) 0%, transparent 50%);
    z-index: -1;
    animation: backgroundShift 20s ease infinite;
}

@keyframes backgroundShift {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

.mining-container {
    margin-top: 20px;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.mining-header {
    background: linear-gradient(145deg, rgba(20, 20, 40, 0.95), rgba(10, 10, 30, 0.95));
    border-radius: 20px;
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
    overflow: hidden;
    text-align: center;
    padding: 40px 30px;
    margin-bottom: 40px;
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.6),
        inset 0 1px 2px rgba(255, 215, 0, 0.1);
}

.mining-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg,
        #ffd700,
        #ff6b35,
        #f7931e,
        #ffd700
    );
    background-size: 400% 400%;
    animation: gradientShift 8s ease infinite;
    z-index: -1;
    border-radius: 20px;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.mining-header h2 {
    font-size: 36px;
    color: #ffd700;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 
        0 0 10px rgba(255, 215, 0, 0.8),
        0 0 20px rgba(255, 215, 0, 0.5),
        0 0 30px rgba(255, 215, 0, 0.3);
    margin-bottom: 15px;
    font-weight: 900;
}

.mining-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    font-style: italic;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    margin: 0;
}

.mining-tabs {
    background: linear-gradient(145deg, rgba(20, 20, 40, 0.95), rgba(10, 10, 30, 0.95));
    border-radius: 20px;
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.6),
        inset 0 1px 2px rgba(255, 215, 0, 0.1);
}

.mining-tabs::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg,
        rgba(255, 215, 0, 0.1),
        rgba(255, 107, 53, 0.1),
        rgba(247, 147, 30, 0.1),
        rgba(255, 215, 0, 0.1)
    );
    background-size: 400% 400%;
    animation: gradientShift 12s ease infinite;
    z-index: -1;
    border-radius: 20px;
}

.nav-tabs {
    background: rgba(0, 0, 0, 0.4);
    border-bottom: 3px solid rgba(255, 215, 0, 0.6);
    border-radius: 20px 20px 0 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0;
    padding: 10px;
}

.nav-tabs .nav-item {
    flex: 1;
    min-width: 180px;
    max-width: 220px;
}

.nav-tabs .nav-link {
    color: rgba(255, 255, 255, 0.7);
    background: transparent;
    border: 2px solid transparent;
    border-radius: 15px;
    margin: 5px;
    padding: 20px 15px;
    text-align: center;
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.8);
    min-height: 100px;
    position: relative;
    overflow: hidden;
}

.nav-tabs .nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.4), transparent);
    transition: left 0.5s ease;
}

.nav-tabs .nav-link:hover::before {
    left: 100%;
}

.nav-tabs .nav-link:hover,
.nav-tabs .nav-link.active {
    color: #ffd700;
    background: rgba(255, 215, 0, 0.1);
    border-color: rgba(255, 215, 0, 0.4);
    text-shadow: 
        0 0 5px rgba(255, 215, 0, 0.6),
        0 0 10px rgba(255, 215, 0, 0.4);
}

.nav-tabs .nav-link i {
    font-size: 28px;
    margin-bottom: 8px;
    transition: transform 0.3s ease;
}

.nav-tabs .nav-link:hover i {
    transform: scale(1.1);
}

.tab-content {
    padding: 30px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 0 0 20px 20px;
}

.mining-table {
    width: 100%;
    margin: 0 0 25px;
    table-layout: fixed !important;
    border-collapse: collapse !important;
    border-spacing: 0 !important;
    background: linear-gradient(145deg, rgba(30, 30, 50, 0.9), rgba(20, 20, 40, 0.9));
    border-radius: 15px;
    border: 2px solid rgba(255, 215, 0, 0.3);
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.mining-table *, .mining-table *::before, .mining-table *::after {
    box-sizing: border-box !important;
}

.mining-table thead th {
    background: linear-gradient(145deg, #ffd700, #f7b733);
    color: #1a1a3e;
    font-weight: 800;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 3px solid #ffd700;
    padding: 12px 15px !important;
    vertical-align: middle;
    white-space: nowrap;
}

.mining-table tbody td {
    padding: 12px 15px !important;
    vertical-align: middle;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 215, 0, 0.15);
    transition: background-color 0.3s ease;
}

.mining-table tbody tr:last-child td {
    border-bottom: none;
}

.mining-table tbody tr:hover {
    background-color: rgba(255, 215, 0, 0.07);
}

.mining-table th:nth-child(1), .mining-table td:nth-child(1) { text-align: center !important; }
.mining-table th:nth-child(2), .mining-table td:nth-child(2) { text-align: center !important; }
.mining-table th:nth-child(3), .mining-table td:nth-child(3) { text-align: left !important; }
.mining-table th:nth-child(4), .mining-table td:nth-child(4) { text-align: center !important; }

.mining-table td:nth-child(1) { color: #ffd700; font-weight: 700; }
.mining-table td:nth-child(4) { font-weight: 700; color: #ffd700; }

.mining-table .cell-icon img {
    width: 36px;
    height: 36px;
    border: 2px solid rgba(255, 215, 0, 0.6);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    display: inline-block;
    vertical-align: middle;
    background: rgba(0,0,0,0.2);
}

.mining-table tbody td, .mining-table tbody th {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.info-card {
    background: rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: 15px;
    margin-top: 25px;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.info-card h4 {
    color: #ffd700;
    border-bottom: 1px solid rgba(255, 215, 0, 0.3);
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.tools-section {
    margin-top: 30px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.tool-card {
    background: linear-gradient(145deg, rgba(30, 30, 50, 0.8), rgba(20, 20, 40, 0.8));
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 15px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.2), transparent);
    transition: left 0.5s ease;
}

.tool-card:hover::before {
    left: 100%;
}

.tool-card:hover {
    border-color: #ffd700;
    background: linear-gradient(145deg, rgba(40, 40, 60, 0.9), rgba(30, 30, 50, 0.9));
    transform: translateY(-5px);
    box-shadow: 
        0 15px 30px rgba(255, 215, 0, 0.3),
        0 0 20px rgba(255, 215, 0, 0.2);
}

.tool-card.active {
    border-color: #ffd700;
    background: linear-gradient(145deg, rgba(255, 215, 0, 0.15), rgba(255, 237, 78, 0.15));
    box-shadow: 
        0 0 25px rgba(255, 215, 0, 0.5),
        inset 0 1px 2px rgba(255, 215, 0, 0.2);
    transform: translateY(-3px);
}

.tool-card img {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    margin-bottom: 12px;
    border: 2px solid rgba(255, 215, 0, 0.5);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

.tool-card:hover img {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
}

.tool-card h6 {
    color: #ffd700;
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: 700;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

.tool-card p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    margin: 0;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .mining-container {
        margin-top: 100px;
        padding: 15px;
    }
    .mining-header {
        padding: 30px 20px;
    }
    .mining-header h2 {
        font-size: 28px;
    }
    .nav-tabs {
        flex-direction: column;
        padding: 15px;
    }
    .nav-tabs .nav-item {
        width: 100%;
    }
    .tab-content {
        padding: 20px;
    }
    .mining-table {
        font-size: 13px;
    }
    .mining-table th, .mining-table td {
        padding: 10px 6px !important;
        font-size: 12px;
    }
    .mining-table .cell-icon img {
        width: 28px;
        height: 28px;
    }
}