:root {
    --primary-color: #0099ff;
    --secondary-color: #1a1a2e;
    --accent-color: #ffd700;
    --text-color: #ffffff;
    --bg-color: #0f0f1a;
    --sidebar-bg: #16213e;
    --card-bg: #1f2a48;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
}

.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header */
.main-header {
    background-color: var(--sidebar-bg);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    position: relative;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 1001;
}

.project-logo {
    height: 50px;
    width: auto;
    border-radius: 50%;
}

.site-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.header-content {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.main-nav a:hover, .main-nav a.active {
    color: var(--primary-color);
}



/* Burger Menu */
.burger-menu {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.burger-menu span {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    transition: all 0.3s ease;
    border-radius: 3px;
}

.burger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.burger-menu.active span:nth-child(2) {
    opacity: 0;
}

.burger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .main-header {
        padding: 1rem;
    }
    
    .site-title {
        font-size: 1.2rem;
    }
    
    .project-logo {
        height: 40px;
    }
    
    .burger-menu {
        display: flex;
    }
    
    .header-content {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: var(--sidebar-bg);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding-top: 80px;
        transition: right 0.3s ease;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.3);
        z-index: 1000;
        overflow-y: auto;
    }
    
    .header-content.active {
        right: 0;
    }
    
    .main-nav {
        padding: 1rem 0;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 0;
    }
    
    .main-nav li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .main-nav a {
        display: block;
        padding: 1rem 1.5rem;
    }
    
    .header-auth {
        flex-direction: column;
        padding: 1rem 1.5rem;
        gap: 1rem;
        align-items: stretch;
    }
    
    .wallet-info {
        width: 100%;
        justify-content: center;
    }
    
    .wallet-address {
        font-size: 0.8rem;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .btn-login, .btn-logout {
        width: 100%;
        justify-content: center;
    }
}

/* Sidebar */
.sidebar {
    width: 250px;
    background-color: var(--sidebar-bg);
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    padding-top: 80px; /* Space for header if fixed, or adjust layout */
    display: none; /* Hide by default on home, show if user logged in via layout logic */
}

/* Layout Adjustments */
.content {
    flex: 1;
    padding: 2rem;
}

.content.full-width {
    margin-left: 0;
}

/* Home Page */
.home-container {
    margin: 0 auto;
    text-align: center;
}

.hero-section h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.subtitle {
    font-size: 1.5rem;
    color: #a0a0a0;
    margin-bottom: 2rem;
}

.game-description {
    max-width: 800px;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #0077cc;
}

.btn-success {
    background: linear-gradient(135deg, var(--primary-color), #0077cc);
    color: white;
    font-weight: bold;
}

.btn-success:hover {
    background: linear-gradient(135deg, #0077cc, var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 153, 255, 0.4);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.2rem;
}

/* How To Play */
.how-to-play {
    margin-top: 4rem;
}

.steps-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.step-card {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    width: 250px;
    text-align: center;
}

.step-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

/* Footer */
.main-footer {
    background-color: var(--sidebar-bg);
    padding: 2rem;
    text-align: center;
    margin-top: auto;
}

.footer-content p a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-content p a:hover {
    color: var(--primary-color);
}

.footer-links {
    margin-top: 1rem;
}

.footer-links a {
    color: var(--text-color);
    text-decoration: none;
    margin: 0 0.5rem;
}

.footer-links a:hover {
    color: var(--primary-color);
}

/* X (Twitter) Icon Styling */
.fa-x-twitter::before {
    content: "𝕏";
}

.fa-brands.fa-x-twitter {
    font-family: "Font Awesome 6 Brands";
}

.separator {
    color: #666;
}

/* Leaderboard */
.leaderboard-container {
    max-width: 1000px;
    margin: 0 auto;
}

.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.leaderboard-table th, .leaderboard-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #333;
}

.leaderboard-table th {
    background-color: var(--card-bg);
    color: var(--accent-color);
}

.current-user {
    background-color: rgba(0, 153, 255, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .content.with-sidebar {
        margin-left: 0;
    }
    .sidebar {
        display: none; /* Mobile menu logic needed eventually */
    }
}
/* Wallet Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s;
}

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

.modal-content {
    background-color: var(--card-bg);
    margin: 10% auto;
    padding: 2rem;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    animation: slideDown 0.3s;
}

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

.modal-content h2 {
    color: var(--primary-color);
    margin-top: 0;
    text-align: center;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close:hover,
.close:focus {
    color: var(--text-color);
}

.wallet-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.wallet-btn {
    background: linear-gradient(135deg, var(--card-bg) 0%, var(--sidebar-bg) 100%);
    border: 2px solid var(--primary-color);
    padding: 1.2rem;
    border-radius: 10px;
    color: var(--text-color);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s;
}

.wallet-btn:hover {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0077cc 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 153, 255, 0.4);
}

.wallet-btn i {
    font-size: 1.5rem;
}
/* Dashboard Styles */
.page-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
    text-align: center;
}

.dashboard-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.dash-card {
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(31, 42, 72, 0.8) 100%);
    border-radius: 15px;
    padding: 1.5rem;
    border: 2px solid rgba(0, 153, 255, 0.3);
    transition: all 0.3s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.dash-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 153, 255, 0.4);
    border-color: var(--primary-color);
}

.dash-card .card-icon {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 0.5rem;
}

.dash-card h3 {
    margin: 0.5rem 0;
    color: var(--primary-color);
    font-size: 1rem;
}

.dash-card .value {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--accent-color);
}

.progress-bar {
    width: 100%;
    height: 20px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    overflow: hidden;
    margin: 0.5rem 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transition: width 0.3s;
}

.progress-text {
    font-size: 0.9rem;
    color: #aaa;
    margin: 0.3rem 0 0 0;
}

.durability-bar {
    width: 100%;
    height: 10px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 5px;
    overflow: hidden;
    margin: 0.5rem 0;
}

.durability-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff4444, #ffaa00, #44ff44);
    transition: width 0.3s;
}

.durability-text {
    font-size: 0.8rem;
    color: #aaa;
    margin: 0.2rem 0;
}

.mining-section h2 {
    color: var(--primary-color);
    margin-top: 0;
}

.equipped-tool {
    display: flex;
    gap: 1rem;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
    padding: 1rem;
    border-radius: 10px;
    margin: 1rem 0;
}

.tool-image {
    width: 100px;
    height: 100px;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid var(--primary-color);
}

.tool-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tool-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    background: linear-gradient(135deg, var(--card-bg), var(--sidebar-bg));
}

.tool-info h4 {
    margin: 0 0 0.5rem 0;
    color: var(--accent-color);
}

.tool-info p {
    margin: 0.3rem 0;
    color: #aaa;
}

.no-tool {
    text-align: center;
    padding: 2rem;
    color: #aaa;
}

.no-tool a {
    color: var(--primary-color);
    text-decoration: none;
}

.no-tool a:hover {
    text-decoration: underline;
}

.mine-btn {
    width: 100%;
    padding: 1.5rem;
    font-size: 1.3rem;
    font-weight: bold;
    background: linear-gradient(135deg, var(--primary-color), #0077cc);
    border: none;
    border-radius: 10px;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 1rem;
}

.mine-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #00ccff, var(--primary-color));
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 153, 255, 0.5);
}

.mine-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.mining-status {
    text-align: center;
    padding: 1rem;
    margin-top: 0.5rem;
    border-radius: 8px;
    font-size: 1.1rem;
}

.mining-status.success {
    background-color: rgba(0, 200, 83, 0.2);
    color: #00c853;
}

.mining-status.error {
    background-color: rgba(255, 0, 0, 0.2);
    color: #ff4444;
}

/* Quick Actions */
.quick-actions h2 {
    color: var(--primary-color);
    margin-top: 0;
}

.action-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s;
}

.action-btn:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 153, 255, 0.4);
}

.action-btn i {
    font-size: 1.5rem;
}

/* Notification Toast */
.notification {
    position: fixed;
    bottom: -100px;
    right: 20px;
    padding: 1rem 2rem;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    transition: bottom 0.3s;
    z-index: 1000;
}

.notification.show {
    bottom: 20px;
}

.notification.success {
    background-color: #00c853;
    color: white;
}

.notification.error {
    background-color: #ff4444;
    color: white;
}

.notification.info {
    background-color: var(--primary-color);
    color: white;
}

/* Header Auth Section */
.header-auth {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.wallet-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--primary-color);
}

.wallet-address {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: var(--accent-color);
}

.btn-login, .btn-logout {
    padding: 0.6rem 1.2rem;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    background: transparent;
    color: var(--text-color);
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-login:hover, .btn-logout:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 153, 255, 0.3);
}

.btn-logout {
    border-color: #ff4444;
}

.btn-logout:hover {
    background: #ff4444;
    border-color: #ff4444;
}

/* Craft Trophy Section */

.craft-info {
    margin-top: 1rem;
}

.craft-name {
    font-size: 1.3rem;
    color: var(--accent-color);
    font-weight: bold;
    margin-bottom: 1rem;
    text-align: center;
}

.craft-cost h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.resource-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.resource-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.resource-item.available {
    border-color: #00c853;
}

.resource-item.unavailable {
    border-color: #ff4444;
    opacity: 0.7;
}

.resource-item .icon {
    font-size: 2rem;
}

.resource-item .amount {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--accent-color);
}

.resource-item .label {
    font-size: 0.9rem;
    color: #aaa;
}

.craft-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: center;
}

.craft-input {
    width: 80px;
    padding: 0.8rem;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    color: var(--text-color);
    font-size: 1rem;
    text-align: center;
}

.craft-btn-action {
    flex: 1;
    max-width: 300px;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: bold;
    background: linear-gradient(135deg, #ffd700, #ffaa00);
    border: none;
    border-radius: 10px;
    color: #000;
    cursor: pointer;
    transition: all 0.3s;
}

.craft-btn-action:hover:not(:disabled) {
    background: linear-gradient(135deg, #ffee00, #ffd700);
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.5);
}

.craft-btn-action:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Miners Section */

.miners-info {
    margin-top: 1rem;
}

.miners-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    border: 2px solid rgba(0, 153, 255, 0.3);
}

.stat-label {
    font-size: 0.9rem;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--text-color);
}

.stat-value.highlight {
    color: var(--accent-color);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.miners-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.claim-btn, .manage-btn {
    flex: 1;
    min-width: 200px;
    max-width: 300px;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: bold;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.claim-btn {
    background: linear-gradient(135deg, #00c853, #00a040);
    color: white;
}

.claim-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #00e676, #00c853);
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 200, 83, 0.5);
}

.claim-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.manage-btn {
    background: linear-gradient(135deg, var(--primary-color), #0077cc);
    color: white;
}

.manage-btn:hover {
    background: linear-gradient(135deg, #00ccff, var(--primary-color));
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 153, 255, 0.5);
}

/* Shop Page Styles */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.shop-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.shop-card-header {
    text-align: center;
}

.shop-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.shop-card h3 {
    margin: 0;
    color: var(--primary-color);
    font-size: 1.3rem;
}

.shop-description {
    font-size: 0.95rem;
    color: #aaa;
    text-align: center;
    min-height: 60px;
    margin: 0;
}

.shop-details {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
    font-size: 0.95rem;
}

.detail-item i {
    color: var(--accent-color);
}

.price-value {
    font-weight: bold;
    color: var(--accent-color);
    font-size: 1.1rem;
}

.shop-actions {
    display: flex;
    gap: 0.8rem;
    margin-top: auto;
}

.quantity-select {
    width: 80px;
    padding: 0.8rem;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    color: var(--text-color);
    font-size: 1rem;
    cursor: pointer;
}

.shop-buy-btn {
    flex: 1;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    font-weight: bold;
    background: linear-gradient(135deg, var(--primary-color), #0077cc);
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.shop-buy-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #00ccff, var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 153, 255, 0.4);
}

.shop-buy-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    color: #aaa;
    font-size: 1.2rem;
}

/* Equipment Page Styles */
.tabs-container {
    display: flex;
    gap: 1rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.tab-btn {
    flex: 1;
    min-width: 150px;
    padding: 1rem 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(0, 153, 255, 0.3);
    border-radius: 10px;
    color: var(--text-color);
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.tab-btn:hover {
    border-color: var(--primary-color);
    background: rgba(0, 153, 255, 0.1);
}

.tab-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.section-header h2 {
    margin: 0;
    color: var(--primary-color);
}

.btn-link {
    padding: 0.6rem 1.2rem;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    color: var(--text-color);
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-link:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

/* Equipment Grid */
.equipment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.equipment-card {
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(31, 42, 72, 0.8) 100%);
    border-radius: 15px;
    border: 2px solid rgba(0, 153, 255, 0.3);
    overflow: hidden;
    transition: all 0.3s;
    position: relative;
}

.equipment-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 153, 255, 0.4);
    border-color: var(--primary-color);
}

.equipment-card.equipped {
    border-color: var(--accent-color);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.equipped-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--accent-color);
    color: #000;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    z-index: 1;
}

.card-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3), rgba(0, 153, 255, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.placeholder-icon {
    font-size: 5rem;
}

.card-body {
    padding: 1.5rem;
}

.card-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
}

.rarity-badge {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
}

.rarity-badge.common {
    background: #888;
    color: white;
}

.rarity-badge.uncommon {
    background: #1eff00;
    color: #000;
}

.rarity-badge.rare {
    background: #0070dd;
    color: white;
}

.rarity-badge.epic {
    background: #a335ee;
    color: white;
}

.rarity-badge.legendary {
    background: #ff8000;
    color: white;
}

.level-badge {
    padding: 0.3rem 0.8rem;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
}

.card-body h3 {
    margin: 0 0 0.5rem 0;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.mint-id {
    color: #aaa;
    font-size: 0.9rem;
    margin: 0 0 1rem 0;
}

.durability-section {
    margin: 1rem 0;
}

.card-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.btn-action, .btn-repair, .btn-equipped, .btn-disabled {
    flex: 1;
    padding: 0.8rem;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.btn-action {
    background: linear-gradient(135deg, var(--primary-color), #0077cc);
    color: white;
}

.btn-action:hover {
    background: linear-gradient(135deg, #00ccff, var(--primary-color));
    transform: translateY(-2px);
}

.btn-repair {
    background: linear-gradient(135deg, #ffaa00, #ff8800);
    color: white;
}

.btn-repair:hover {
    background: linear-gradient(135deg, #ffcc00, #ffaa00);
    transform: translateY(-2px);
}

.btn-equipped {
    background: var(--accent-color);
    color: #000;
    cursor: default;
}

.btn-disabled {
    background: rgba(0, 0, 0, 0.3);
    color: #666;
    cursor: not-allowed;
}

/* Lands List */
.lands-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.land-card {
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(31, 42, 72, 0.8) 100%);
    border-radius: 15px;
    border: 2px solid rgba(0, 153, 255, 0.3);
    padding: 1.5rem;
    transition: all 0.3s;
}

.land-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(0, 153, 255, 0.3);
}

.land-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.land-header h3 {
    margin: 0;
    color: var(--primary-color);
}

.mint-tag {
    color: #aaa;
    font-size: 0.9rem;
    font-weight: normal;
}

.land-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.badge {
    padding: 0.3rem 0.8rem;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 20px;
    font-size: 0.8rem;
    border: 1px solid rgba(0, 153, 255, 0.3);
}

.land-resources {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.resource-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
}

.resource-row .icon {
    font-size: 1.5rem;
}

.resource-row .label {
    flex: 1;
    color: #aaa;
}

.resource-row .value {
    font-weight: bold;
    color: var(--accent-color);
}

.land-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Workers and Factories specific styles */
.worker-efficiency, .factory-type {
    color: var(--accent-color);
    font-weight: bold;
    margin: 0.5rem 0;
}

.assigned-status {
    color: var(--primary-color);
    font-size: 0.9rem;
    margin: 0.5rem 0;
}

.available-status {
    color: #00c853;
    font-size: 0.9rem;
    margin: 0.5rem 0;
}

/* Empty Message */
.empty-message {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 4rem 2rem;
    text-align: center;
}

.empty-message i {
    font-size: 4rem;
    color: #666;
}

.empty-message p {
    font-size: 1.2rem;
    color: #aaa;
    margin: 0;
}

.btn-primary {
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), #0077cc);
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #00ccff, var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 153, 255, 0.4);
}

/* Compact Dashboard Layout */
.dashboard-compact-row {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .dashboard-compact-row {
        grid-template-columns: 1fr;
    }
}

.compact-card {
    min-width: 200px;
}

.resources-compact {
    padding: 1.5rem;
}

.resources-compact h3 {
    margin: 0 0 1rem 0;
    color: var(--primary-color);
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
}

@media (max-width: 1200px) {
    .resources-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .resources-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.resource-item-compact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    padding: 0.8rem 0.5rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border: 1px solid rgba(0, 153, 255, 0.2);
}

.resource-item-compact .res-icon {
    font-size: 1.5rem;
}

.resource-item-compact .res-label {
    font-size: 0.75rem;
    color: #aaa;
}

.resource-item-compact .res-value {
    font-size: 1rem;
    font-weight: bold;
    color: var(--accent-color);
}

/* Half Width Sections */
.dashboard-main-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.dashboard-bottom-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

@media (max-width: 1024px) {
    .dashboard-main-row,
    .dashboard-bottom-row {
        grid-template-columns: 1fr;
    }
    
    .half-width {
        width: 100% !important;
    }
}

/* Adjust Mining Section for Half Width */
.mining-section.half-width h2 {
    font-size: 1.3rem;
}

.mining-section.half-width .equipped-tool {
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.mining-section.half-width .tool-info {
    width: 100%;
}

/* Adjust Quick Actions for Half Width */
.quick-actions.half-width .action-buttons {
    grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 768px) {
    .quick-actions.half-width .action-buttons {
        grid-template-columns: 1fr;
    }
}

/* Adjust Craft Section for Half Width */

.craft-section.half-width .resource-list {
    grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 768px) {
    .craft-section.half-width .resource-list {
        grid-template-columns: 1fr;
    }
}

/* Adjust Miners Section for Half Width */

.miners-section.half-width .miners-stats {
    grid-template-columns: 1fr;
}

/* Compact Page Title */
.page-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}
/* Dashboard Row Custom - 25% 50% 25% Layout */
.dashboard-row-custom {
    display: grid;
    grid-template-columns: 25% 50% 25%;
    gap: 10px;
    margin-bottom: 10px;
}

/* Remove old classes */
.dashboard-compact-row {
    display: grid;
    grid-template-columns: 25% 50% 25%;
    gap: 10px;
    margin-bottom: 10px;
}

.dashboard-main-row,
.dashboard-bottom-row {
    display: grid;
    grid-template-columns: 25% 50% 25%;
    gap: 10px;
    margin-bottom: 10px;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .dashboard-row-custom {
        grid-template-columns: 1fr;
    }
    
    .dashboard-compact-row,
    .dashboard-main-row,
    .dashboard-bottom-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .dashboard-row-custom {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .resources-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}
/* Mining button - red when disabled */
.mine-btn.mining-disabled {
    background: linear-gradient(135deg, #dc3545, #c82333);
    cursor: not-allowed;
    opacity: 0.9;
}

.mine-btn.mining-disabled:hover {
    background: linear-gradient(135deg, #dc3545, #c82333);
    transform: none;
}

/* Craft button - red when disabled */
.craft-btn-action.craft-disabled {
    background: linear-gradient(135deg, #dc3545, #c82333);
    border-color: #dc3545;
    cursor: not-allowed;
    opacity: 0.9;
}

.craft-btn-action.craft-disabled:hover {
    background: linear-gradient(135deg, #dc3545, #c82333);
    transform: none;
}
