
    /* Performance optimizations */
    * {
        box-sizing: border-box;
    }

    html {
        scroll-behavior: smooth;
    }

    body {
        will-change: scroll-position;
        contain: layout style paint;
    }

    img {
        will-change: transform;
        backface-visibility: hidden;
        transform: translateZ(0);
    }

    canvas {
        will-change: transform;
        backface-visibility: hidden;
    }

    .loading-spinner {
        animation: spin 1s linear infinite;
        transform: translateZ(0);
    }

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

    /* Hardware acceleration for smooth animations */
    .smooth-transition {
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        will-change: transform, opacity;
        backface-visibility: hidden;
        transform: translateZ(0);
    }

    /*B0x Widget CSS*/

    .b0x-widget,
    .convert {
        position: fixed;
        top: 10px;
        right: 10px;
        display: inline-flex;
        align-items: center;
        gap: 16px;
        background: rgba(0, 0, 0, 0.85);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 12px;
        padding: 8px 16px;
        font-family: 'Courier New', monospace;
        font-size: 20px !important;
        color: #ffffff;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(8px);
        z-index: 9999;
        height: 48px !important;
        line-height: 1;
        will-change: transform;
    }

    .stat {
        display: flex;
        align-items: center;
        gap: 6px;
        /* doubled from 3px */
        font-size: 18px;
        /* doubled from 9px */
        font-weight: 500;
    }

    .stat-icon {
        font-size: 20px;
        /* doubled from 10px */
    }

    .stat-valueWidget {
        color: #60a5fa;
        font-weight: 600;
        font-size: 18px;
        /* doubled from 9px */
    }

    #stats .recent-stats-table th:nth-child(6) {
        white-space: normal;
        line-height: 1.1;
    }

    #stats .recent-stats-table td:nth-child(6) {
        white-space: nowrap;
    }

    .divider {
        width: 2px;
        /* doubled from 1px */
        height: 28px;
        /* doubled from 14px */
        background: rgba(255, 255, 255, 0.2);
    }

    .icon-0xbtc {
        display: inline-block;
        width: 20px;
        /* doubled from 10px */
        height: 20px;
        /* doubled from 10px */
        background: #ff7b00;
        border-radius: 50%;
        position: relative;
    }

    .icon-0xbtc::before {
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 8px;
        /* doubled from 4px */
        height: 12px;
        /* doubled from 6px */
        background: white;
        clip-path: polygon(0% 20%, 100% 0%, 100% 80%, 0% 100%);
    }

    /* Mobile - doubled sizes */
    @media (max-width: 768px) {
        .b0x-widget {
            top: 10px;
            /* doubled from 5px */
            right: 10px;
            /* doubled from 5px */
            padding: 6px 12px;
            /* doubled from 3px 6px */
            height: 40px;
            /* doubled from 20px */
            font-size: 16px;
            /* doubled from 8px */
            gap: 12px;
            /* doubled from 6px */
        }

        .stat-valueWidget {
            color: #60a5fa;
            font-weight: 600;
            font-size: 13px;
            /* doubled from 9px */

        }

        .stat {
            font-size: 14px;
            /* doubled from 7px */
            gap: 4px;
            /* doubled from 2px */
        }

        .stat-icon {
            font-size: 16px;
            /* doubled from 8px */
        }

        .icon-0xbtc {
            width: 16px;
            /* doubled from 8px */
            height: 16px;
            /* doubled from 8px */
        }

        .icon-0xbtc::before {
            width: 6px;
            /* doubled from 3px */
            height: 8px;
            /* doubled from 4px */
        }

        .divider {
            height: 24px;
            /* doubled from 12px */
        }
    }

    /* Extra small screens - doubled sizes */
    @media (max-width: 480px) {
        .b0x-widget {
            top: 16px !important;
            /* doubled from 8px */
            right: 6px;
            /* doubled from 3px */
            padding: 4px 8px;
            /* doubled from 2px 4px */
            height: 36px;
            /* doubled from 18px */
            font-size: 10px;
            /* doubled from 7px */
            gap: 8px;
            /* doubled from 4px */
        }

        .stat-valueWidget {
            color: #60a5fa;
            font-weight: 600;
            font-size: 10px;
            /* doubled from 9px */

        }

        .stat {
            font-size: 10px;
            /* doubled from 6px */
            gap: 2px;
            /* doubled from 1px */
        }

        .stat-icon {
            font-size: 10px;
            /* doubled from 7px */
        }

        .icon-0xbtc {
            width: 10px;
            /* doubled from 7px */
            height: 10px;
            /* doubled from 7px */
        }

        .icon-0xbtc::before {
            width: 4px;
            /* doubled from 2px */
            height: 6px;
            /* doubled from 3px */
        }

        .divider {
            height: 10px;
            /* doubled from 10px */
        }
    }

    .icon-dollar::before {
        content: "💵";
    }


    .icon-hash::before {
        content: "⚡";
    }

    /* Icon sizing - doubled */
    .icon-dollar {
        font-size: 20px;
        /* doubled from 10px */
    }

    .icon-hash {
        font-size: 20px;
        /* doubled from 10px */
        color: #10b981;
    }

    @media (max-width: 768px) {

        .icon-dollar::before,
        .icon-hash::before {
            font-size: 16px;
            /* doubled from 8px */
        }
    }

    @media (max-width: 480px) {

        .icon-dollar::before,
        .icon-hash::before {
            font-size: 14px;
            /* doubled from 7px */
        }
    }

    /*END B0xWidget*/
    /* BZeroX Inspired CSS - Part 1 of 3 */

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

    body {
        font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
        background: #0a0a0a;
        background-image:
            radial-gradient(circle at 25% 25%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
            radial-gradient(circle at 75% 75%, rgba(255, 0, 128, 0.2) 0%, transparent 50%),
            linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
        min-height: 100vh;
        padding: 20px;
        color: #ffffff;
        position: relative;
        overflow-x: hidden;
    }

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 4'><defs><pattern id='diamond' width='4' height='4' patternUnits='userSpaceOnUse'><path d='M 2 0 L 4 2 L 2 4 L 0 2 Z' fill='none' stroke='rgba(120,119,198,0.15)' stroke-width='0.2'/></pattern></defs><rect width='4' height='4' fill='url(%23diamond)'/></svg>");
    background-size: 50px 50px; /* <--- This controls how small the diamonds appear */
    pointer-events: none;
    z-index: -1;
}
    .container {
        max-width: 1200px;
        margin: 0 auto;
        background: rgba(255, 255, 255, 0.02);
        backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 24px;
        box-shadow:
            0 8px 32px rgba(0, 0, 0, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
        overflow: hidden;
        position: relative;
    }

    .container::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 1px;
        background: linear-gradient(90deg,
                transparent 0%,
                rgba(120, 119, 198, 0.6) 50%,
                transparent 100%);
    }

    .header {

        backdrop-filter: none;
        border-bottom: 3px solid rgba(255, 255, 255, 0.1);
        color: white;
        padding: 40px 30px;
        text-align: center;
        position: relative;
        overflow: hidden;
    }

    .header::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        z-index: -1;
    }

    .header2 {

        backdrop-filter: none;
        border-bottom: 3px solid rgba(255, 255, 255, 0.1);
        color: white;
        padding: 10px 5px;
        text-align: center;
        position: relative;
        overflow: hidden;
    }

    .header2::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        z-index: -1;
    }

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

        to {
            transform: rotate(360deg);
        }
    }

    .header h1 {
        font-size: 3rem;
        font-weight: 800;
        background: linear-gradient(135deg, #ffffff 0%, #7877c6 50%, #ff0080 100%);
        background-clip: text;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        margin-bottom: 12px;
        letter-spacing: -0.02em;
        text-shadow: 0 0 30px rgba(120, 119, 198, 0.5);
    }

    .header p {
        color: rgba(255, 255, 255, 0.8);
        font-size: 1.2rem;
        font-weight: 400;
        letter-spacing: 0.01em;
    }

    .header2 h1 {
        font-size: 3rem;
        font-weight: 800;
        background: linear-gradient(135deg, #ffffff 0%, #7877c6 50%, #ff0080 100%);
        background-clip: text;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        margin-bottom: 12px;
        letter-spacing: -0.02em;
        text-shadow: 0 0 30px rgba(120, 119, 198, 0.5);
    }

    .header2 p {
        color: rgba(255, 255, 255, 0.8);
        font-size: 1.2rem;
        font-weight: 400;
        letter-spacing: 0.01em;
    }

    .nav-tabs {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: repeat(3, 1fr);
        background: rgba(0, 0, 0, 0.2);
        backdrop-filter: blur(10px);
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        gap: 1px;
        position: relative;
    }

    .nav-tab {
        padding: 20px 15px;
        text-align: center;
        cursor: pointer;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        border: none;
        background: rgba(255, 255, 255, 0.02);
        backdrop-filter: blur(5px);
        font-size: 0.95rem;
        font-weight: 500;
        color: rgba(255, 255, 255, 0.7);
        white-space: nowrap;
        position: relative;
        overflow: hidden;
    }

    .nav-tab::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg,
                transparent 0%,
                rgba(120, 119, 198, 0.2) 50%,
                transparent 100%);
        transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .nav-tab:hover {
        background: rgba(120, 119, 198, 0.1);
        color: #ffffff;
        transform: translateY(-2px);
        box-shadow: 0 4px 20px rgba(120, 119, 198, 0.2);
    }

    .nav-tab:hover::before {
        left: 100%;
    }

    .nav-tab.active {
        background: linear-gradient(135deg,
                rgba(120, 119, 198, 0.3) 0%,
                rgba(255, 0, 128, 0.2) 100%);
        color: #ffffff;
        border-bottom: 3px solid #7877c6;
        box-shadow:
            0 4px 20px rgba(120, 119, 198, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }

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

        .header h1 {
            font-size: 2rem;
        }

        .header p {
            font-size: 1rem;
        }

        .header2 h1 {
            font-size: 2rem;
        }

        .header2 p {
            font-size: 1rem;
        }
    }







    .address-config .form-group {
        margin-bottom: 28px;
    }

    .address-config .form-group label {
        display: block;
        margin-bottom: 12px;
        font-weight: 600;
        color: rgba(255, 255, 255, 0.9);
        font-size: 0.95rem;
        letter-spacing: 0.01em;
    }

    .address-config textarea {
        width: 100%;
        height: 200px;
        /* Set a fixed height */
        min-height: 200px;
        /* Minimum height */
        max-height: 400px;
        /* Maximum height for resizing */
        padding: 20px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 12px;
        font-family: 'JetBrains Mono', 'Courier New', monospace;
        font-size: 0.9rem;
        line-height: 1.6;
        resize: vertical;
        background: rgba(255, 255, 255, 0.05);
        backdrop-filter: blur(10px);
        color: #ffffff;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-sizing: border-box;
    }

    /* Alternative: Make it fill the available space */
    .address-config {
        display: flex;
        flex-direction: column;
        min-height: 300px;
        /* Set minimum container height */
    }

    .address-config .form-group {
        flex: 1;
        display: flex;
        flex-direction: column;
    }

    .address-config textarea {
        flex: 1;
        /* This will make it take up remaining space */
        min-height: 150px;
    }


    
    










    .address-config22 .form-group {
        margin-bottom: 28px;
    }

    .address-config22 .form-group label {
        display: block;
        margin-bottom: 12px;
        font-weight: 600;
        color: rgba(255, 255, 255, 0.9);
        font-size: 0.95rem;
        letter-spacing: 0.01em;
    }

    .address-config22 textarea {
        width: 100%;
        height: 80px;
        /* Set a fixed height */
        min-height: 50px;
        /* Minimum height */
        max-height: 400px;
        /* Maximum height for resizing */
        padding: 20px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 12px;
        font-family: 'JetBrains Mono', 'Courier New', monospace;
        font-size: 0.9rem;
        line-height: 1.6;
        resize: vertical;
        background: rgba(255, 255, 255, 0.05);
        backdrop-filter: blur(10px);
        color: #ffffff;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-sizing: border-box;
    }

    /* Alternative: Make it fill the available space */
    .address-config22 {
        display: flex;
        flex-direction: column;
        min-height: 150px;
        /* Set minimum container height */
    }

    .address-config22 .form-group {
        flex: 1;
        display: flex;
        flex-direction: column;
    }

    .address-config22 textarea {
        flex: 1;
        /* This will make it take up remaining space */
        min-height: 80px;
    }


/* Responsive height for smaller screens */
@media (max-width: 768px) {
    .address-config22 textarea {
        height: 1300px; /* Increased height for mobile */
        min-height: 80px;
    }

}
@media (max-width: 480px) {
    .address-config22 textarea {
        height: 150px; /* Even more height for very small screens */
        min-height: 100px;
    }
}



    input[readonly] {
        background: rgba(255, 255, 255, 0.08) !important;
        color: rgba(255, 255, 255, 0.9) !important;
        border: 1px solid rgba(255, 255, 255, 0.15) !important;
        cursor: not-allowed;
        padding: 16px 16px !important;
        border-radius: 12px !important;
        font-size: 1rem !important;
        backdrop-filter: blur(10px) !important;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }

    input[readonly]:focus {
        background: rgba(255, 255, 255, 0.12) !important;
        border-color: rgba(120, 119, 198, 0.3) !important;
        box-shadow: 0 0 0 3px rgba(120, 119, 198, 0.1) !important;
        outline: none !important;
    }

    input[readonly]:hover {
        background: rgba(255, 255, 255, 0.1) !important;
        border-color: rgba(255, 255, 255, 0.2) !important;
    }








    /*end first part of css code*/























    /* Original content rule - but not in stats */
    body .content {
        padding: 10px;
        min-height: 500px;
        background: rgba(0, 0, 0, 0.1);
    }

    /* Override for stats only */
    body #stats .content {
        padding: 0px;
        background: transparent;
        /* if you want to remove the background too */
    }

    /* BZeroX Inspired CSS - Part 2 of 3 */
    #stats .content.content {
        padding: 0px !important;
    }


    @media (max-width: 767px) {
        .content {
            padding: 0;
        }
    }

    .page {
        display: none;
        animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .page.active {
        display: block;
    }

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

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

    .form-group,
    .form-group2 {
        margin-bottom: 28px;
        position: relative;
    }

    .form-group label,
    .form-group2 label {
        display: block;
        margin-bottom: 12px;
        font-weight: 600;
        color: rgba(255, 255, 255, 0.9);
        font-size: 0.95rem;
        letter-spacing: 0.01em;
    }

    .form-group input,
    .form-group select,
    .form-group2 input,
    .form-group2 select {
        width: 100%;
        padding: 16px 20px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 12px;
        font-size: 1rem;
        background: rgba(255, 255, 255, 0.05);
        backdrop-filter: blur(10px);
        color: #ffffff;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
    }

    .form-group input::placeholder,
    .form-group2 input::placeholder {
        color: rgba(255, 255, 255, 0.4);
    }

    .form-group input:focus,
    .form-group select:focus,
    .form-group2 input:focus,
    .form-group2 select:focus {
        outline: none;
        border-color: #7877c6;
        background: rgba(120, 119, 198, 0.1);
        box-shadow:
            0 0 0 3px rgba(120, 119, 198, 0.2),
            0 8px 25px rgba(120, 119, 198, 0.15);
        transform: translateY(-2px);
    }

    .form-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    .btn-primary,
    .btn-success,
    .btn-warning {
        color: white;
        border: none;
        padding: 16px 32px;
        border-radius: 12px;
        font-size: 1.1rem;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        width: 100%;
        margin-top: 24px;
        position: relative;
        overflow: hidden;
        text-transform: none;
        letter-spacing: 0.01em;
    }

    .btn-primary {
        background: linear-gradient(135deg, #7877c6 0%, #5a4fcf 100%);
        box-shadow:
            0 8px 25px rgba(120, 119, 198, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }

    .btn-success {
        background: linear-gradient(135deg, #00d4aa 0%, #00b894 100%);
        box-shadow:
            0 8px 25px rgba(0, 212, 170, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }

    .btn-warning {
        background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
        box-shadow:
            0 8px 25px rgba(255, 107, 107, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }

    .btn-primary::before,
    .btn-success::before,
    .btn-warning::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg,
                transparent 0%,
                rgba(255, 255, 255, 0.2) 50%,
                transparent 100%);
        transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .btn-primary:hover,
    .btn-success:hover,
    .btn-warning:hover {
        transform: translateY(-4px);
        box-shadow:
            0 12px 35px rgba(120, 119, 198, 0.5),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }

    .btn-primary:hover::before,
    .btn-success:hover::before,
    .btn-warning:hover::before {
        left: 100%;
    }

    .btn-row {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 16px;
        margin-top: 24px;
    }

    .swap-direction {
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 24px 0;
    }

    .swap-arrow {
        background: linear-gradient(135deg, #7877c6 0%, #5a4fcf 100%);
        color: white;
        border: none;
        border-radius: 50%;
        width: 56px;
        height: 56px;
        font-size: 1.5rem;
        cursor: pointer;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow:
            0 8px 25px rgba(120, 119, 198, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .swap-arrow:hover {
        transform: rotate(180deg) scale(1.1);
        box-shadow:
            0 12px 35px rgba(120, 119, 198, 0.6),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }

    .token-selector {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .token-icon {
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: bold;
        font-size: 0.9rem;
        box-shadow: 0 4px 15px rgba(120, 119, 198, 0.3);
    }

    .info-card,
    .info-card2,
    .info-card3 {
        background: rgba(255, 255, 255, 0.03);
        backdrop-filter: blur(15px);
        border: 1px solid rgba(120, 119, 198, 0.2);
        border-left: 4px solid #7877c6;
        padding: 24px;
        border-radius: 16px;
        margin-bottom: 24px;
        position: relative;
        overflow: hidden;
    }

    .info-card::before,
    .info-card2::before,
    .info-card3::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg,
                rgba(120, 119, 198, 0.05) 0%,
                rgba(255, 0, 128, 0.02) 100%);
        z-index: -1;
    }

    .info-card h3,
    .info-card2 h3,
    .info-card3 h3 {
        color: #7877c6;
        margin-bottom: 12px;
        font-size: 1.3rem;
        font-weight: 700;
    }

    .info-card p,
    .info-card2 p,
    .info-card3 p {
        color: rgba(255, 255, 255, 0.8);
        line-height: 1.6;
    }

    .rewards-card {
        background: linear-gradient(135deg,
                rgba(0, 212, 170, 0.2) 0%,
                rgba(0, 184, 148, 0.3) 100%);
        backdrop-filter: blur(15px);
        border: 1px solid rgba(0, 212, 170, 0.3);
        color: white;
        padding: 32px;
        border-radius: 20px;
        margin-bottom: 32px;
        text-align: center;
        position: relative;
        overflow: hidden;
    }

    .rewards-card::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: conic-gradient(from 0deg at 50% 50%,
                transparent 0deg,
                rgba(0, 212, 170, 0.1) 90deg,
                transparent 180deg,
                rgba(0, 184, 148, 0.1) 270deg,
                transparent 360deg);
        animation: rotate 15s linear infinite;
        z-index: -1;
    }

    .rewards-card h3 {
        font-size: 1.8rem;
        margin-bottom: 16px;
        font-weight: 700;
    }

    .rewards-amount {
        font-size: 2.8rem;
        font-weight: 800;
        margin-bottom: 12px;
        background: linear-gradient(135deg, #ffffff 0%, #00d4aa 100%);
        background-clip: text;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    .rewards-usd {
        font-size: 1.3rem;
        color: rgba(255, 255, 255, 0.8);
        margin-bottom: 24px;
    }



    .button-group {
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
        margin-top: 24px;
        align-items: center;
    }

    .btn-secondary {
        background: rgba(255, 255, 255, 0.08);
        backdrop-filter: blur(10px);
        color: rgba(255, 255, 255, 0.9);
        border: 1px solid rgba(255, 255, 255, 0.15);
        padding: 12px 24px;
        border-radius: 10px;
        font-size: 0.95rem;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        overflow: hidden;
        white-space: nowrap;
        flex: 0 0 auto;
    }

    .btn-secondary::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg,
                transparent 0%,
                rgba(255, 255, 255, 0.1) 50%,
                transparent 100%);
        transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .btn-secondary:hover {
        background: rgba(255, 255, 255, 0.12);
        border-color: rgba(255, 255, 255, 0.25);
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(255, 255, 255, 0.1);
        color: #ffffff;
    }

    .btn-secondary:hover::before {
        left: 100%;
    }

    .btn-secondary:active {
        transform: translateY(0);
    }


    /*end second part of css code*/






















































    /* BZeroX Inspired CSS - Part 3 of 3 */

    .staking-stats {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 24px;
        margin-bottom: 32px;
    }

    .stat-card {
        background: rgba(255, 255, 255, 0.03);
        backdrop-filter: blur(15px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 16px;
        padding: 24px;
        text-align: center;
        position: relative;
        overflow: hidden;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .stat-card:hover {
        transform: translateY(-4px);
        border-color: rgba(120, 119, 198, 0.3);
        box-shadow: 0 12px 35px rgba(120, 119, 198, 0.2);
    }

    .stat-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 2px;
        background: linear-gradient(90deg, #7877c6, #ff0080);
        border-radius: 16px 16px 0 0;
    }

    .stat-value {
        font-size: 2rem;
        font-weight: 800;
        background: linear-gradient(135deg, #7877c6 0%, #ff0080 100%);
        background-clip: text;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        margin-bottom: 8px;
    }

    .stat-label {
        color: rgba(255, 255, 255, 0.7);
        font-size: 0.9rem;
        font-weight: 500;
    }

    .slider-container {
        margin: 24px 0;
        position: relative;
    }

    .slider {
        width: 100%;
        height: 8px;
        border-radius: 5px;
        background: rgba(255, 255, 255, 0.1);
        outline: none;
        -webkit-appearance: none;
        position: relative;
        overflow: hidden;
    }

    .slider::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
        width: var(--value, 25%);
        background: linear-gradient(90deg, #7877c6, #ff0080);
        border-radius: 5px;
        transition: width 0.3s ease;
    }

    .slider::-webkit-slider-thumb {
        -webkit-appearance: none;
        appearance: none;
        width: 24px;
        height: 24px;
        border-radius: 50%;
        background: linear-gradient(135deg, #7877c6 0%, #ff0080 100%);
        cursor: pointer;
        box-shadow:
            0 4px 15px rgba(120, 119, 198, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .slider::-webkit-slider-thumb:hover {
        transform: scale(1.2);
        box-shadow:
            0 6px 20px rgba(120, 119, 198, 0.6),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }

    .percentage-display {
        text-align: center;
        font-size: 1.4rem;
        font-weight: 700;
        background: linear-gradient(135deg, #7877c6 0%, #ff0080 100%);
        background-clip: text;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        margin-top: 16px;
    }





    #connectBtn {
        background: linear-gradient(135deg, #7877c6 0%, #5a4fcf 100%);
        color: white;
        border: none;
        padding: 16px 32px;
        border-radius: 12px;
        font-size: 1.1rem;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow:
            0 8px 25px rgba(120, 119, 198, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
        position: relative;
        overflow: hidden;
    }

    #connectBtn::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg,
                transparent 0%,
                rgba(255, 255, 255, 0.2) 50%,
                transparent 100%);
        transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    }

    #connectBtn:hover {
        transform: translateY(-4px);
        box-shadow:
            0 12px 35px rgba(120, 119, 198, 0.6),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }

    #connectBtn:hover::before {
        left: 100%;
    }

    #connectBtn.connected {
        background: linear-gradient(135deg, #00d4aa 0%, #00b894 100%);
        box-shadow:
            0 8px 25px rgba(0, 212, 170, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }

    #connectBtn.connected:hover {
        box-shadow:
            0 12px 35px rgba(0, 212, 170, 0.6),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }

    #walletInfo button {
        background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
        color: white;
        border: none;
        padding: 12px 20px;
        border-radius: 8px;
        font-size: 0.9rem;
        font-weight: 600;
        cursor: pointer;
        margin-left: 16px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    }

    #walletInfo button:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(255, 107, 107, 0.5);
    }


    #walletAddress {
        display: inline-block;
        /* keeps span inline but blocks weird bullets */
        list-style: none;
        /* removes any inherited list styling */

        font-size: 1rem;
        font-weight: 700;
        font-family: 'JetBrains Mono', 'Courier New', monospace;
        padding: 0;
        /* Remove padding from span */
        background: rgba(0, 0, 0, 0.8);
        border-radius: 12px;
        display: inline-block;
        margin-right: 16px;
        box-shadow:
            0 0 20px rgba(0, 255, 136, 0.5),
            inset 0 1px 0 rgba(0, 255, 136, 0.2);
        border: 1px solid #00ff88;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        overflow: hidden;
    }

    /* Style the anchor tag inside walletAddress */
    #walletAddress a {
        color: #ffffff;
        text-decoration: none;
        display: block;
        padding: 16px 24px;
        /* Move padding to the link */
        letter-spacing: 0.5px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    #walletAddress:hover {
        transform: translateY(-3px);
        box-shadow:
            0 0 30px rgba(0, 255, 136, 0.8),
            0 8px 25px rgba(0, 255, 136, 0.3);
    }

    #walletAddress a:hover {
        color: #00ff88;
        /* Optional: change color on hover */
    }

    /* Ensure the link fills the entire button area */
    #walletAddress a:focus {
        outline: none;
    }





    .wallet-section {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        /* don't stretch vertically */
        gap: 8px;
        /* small space between items */
        margin: 20px auto;
        /* little breathing room */
    }

    #walletInfo {
        display: flex !important;
        align-items: center;
        gap: 0;
        /* No gap between address and disconnect button */
    }

    /* Style disconnect button to match wallet address */
    #walletInfo button {
        font-size: 1rem;
        font-weight: 700;
        font-family: 'JetBrains Mono', 'Courier New', monospace;
        padding: 16px 24px;
        /* Same padding as wallet address */
        background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
        color: white;
        border: 1px solid #ff6b6b;
        border-radius: 12px;
        cursor: pointer;
        margin-left: 0;
        /* Remove margin */
        margin-right: 0;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow:
            0 0 20px rgba(255, 107, 107, 0.5),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
        display: inline-block;
        vertical-align: top;
        /* Align to top */
        border-radius: 0 12px 12px 0;
        /* Round only right side */
    }












    #walletInfo button:hover {
        transform: translateY(-3px);
        box-shadow:
            0 0 30px rgba(255, 107, 107, 0.8),
            0 8px 25px rgba(255, 107, 107, 0.3);
        background: linear-gradient(135deg, #ff5252 0%, #d32f2f 100%);
    }





    /* Sync hover effects - when one is hovered, both move */
    #walletInfo:hover #walletAddress,
    #walletInfo:hover button {
        transform: translateY(-3px);
    }







    .wallet-balances {
        margin-bottom: 32px;
    }

    .wallet-balances h3 {
        font-size: 1.6rem;
        font-weight: 700;
        background: linear-gradient(135deg, #ffffff 0%, #7877c6 100%);
        background-clip: text;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        margin-bottom: 24px;
        text-align: center;
    }

    .balances-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 20px;
        margin-top: 20px;
    }

    .balance-item {
        background: rgba(255, 255, 255, 0.03);
        backdrop-filter: blur(15px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 16px;
        padding: 20px;
        display: flex;
        flex-direction: column;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        overflow: hidden;
    }

    .balance-item:hover {
        transform: translateY(-4px);
        border-color: rgba(120, 119, 198, 0.3);
        box-shadow: 0 12px 35px rgba(120, 119, 198, 0.2);
    }

    .balance-item::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, #7877c6, #ff0080);
        border-radius: 16px 16px 0 0;
    }

    .token-name {
        font-weight: 600;
        color: rgba(255, 255, 255, 0.8);
        margin-bottom: 12px;
        font-size: 0.9rem;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    .token-amount {
        font-size: 1.4rem;
        font-weight: 700;
        background: linear-gradient(135deg, #ffffff 0%, #7877c6 100%);
        background-clip: text;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        word-break: break-all;
    }

    .loading-text {
        color: rgba(255, 255, 255, 0.6);
        font-style: italic;
        text-align: center;
        padding: 60px 20px;
        font-size: 1.1rem;
    }

    .spinner {
        display: inline-block;
        width: 20px;
        height: 20px;
        border: 2px solid rgba(255, 255, 255, 0.2);
        border-top: 2px solid #7877c6;
        border-radius: 50%;
        animation: spin 1s linear infinite;
        margin-right: 12px;
    }

    .toggle-container {
        display: inline-block;
        margin: 16px 0;
    }

    .toggle-switch {
        position: relative;
        display: inline-block;
        width: 64px;
        height: 36px;
    }

    .toggle-switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

    .toggle-slider {
        position: absolute;
        cursor: pointer;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(255, 255, 255, 0.1);
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        border-radius: 36px;
        border: 1px solid rgba(255, 255, 255, 0.2);
    }

    .toggle-slider:before {
        position: absolute;
        content: "";
        height: 28px;
        width: 28px;
        left: 3px;
        bottom: 3px;
        background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        border-radius: 50%;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }

    input:checked+.toggle-slider {
        background: linear-gradient(135deg, #7877c6 0%, #5a4fcf 100%);
        border-color: #7877c6;
    }

    input:checked+.toggle-slider:before {
        transform: translateX(28px);
        background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    }

    .toggle-label {
        margin-left: 16px;
        vertical-align: middle;
        font-size: 1rem;
        color: rgba(255, 255, 255, 0.8);
        font-weight: 500;
    }



    #loading-screen {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 10000;
        color: white;
        font-family: 'Inter', sans-serif;
    }

    .loading-content {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        /* Add max-width and center the entire content block */
        max-width: 500px;
        /* Use transform to perfectly center regardless of content height */
        transform: translateY(-5%);
        /* Slight adjustment to account for visual center */
    }

    .loader {
        width: 80px;
        height: 80px;
        border: 4px solid rgba(255, 255, 255, 0.1);
        border-top: 4px solid #7877c6;
        border-radius: 50%;
        animation: spin 1s linear infinite;
        margin-bottom: 40px;
        /* Ensure the loader stays centered */
        align-self: center;
    }

    /* Rest of your CSS stays the same */
    @keyframes spin {
        0% {
            transform: rotate(0deg);
        }

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

    @keyframes fadeIn {
        from {
            opacity: 0;
        }

        to {
            opacity: 1;
        }
    }

    .loading-title {
        font-size: 3rem;
        font-weight: 800;
        margin-bottom: 16px;
        background: linear-gradient(135deg, #ffffff 0%, #7877c6 100%);
        background-clip: text;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        opacity: 0;
        animation: fadeIn 0.8s ease forwards 0.5s;
    }

    .loading-subtitle {
        font-size: 1.3rem;
        color: rgba(255, 255, 255, 0.8);
        margin-bottom: 24px;
        opacity: 0;
        animation: fadeIn 0.8s ease forwards 1s;
    }

    .loading-status {
        font-size: 1.1rem;
        color: rgba(255, 255, 255, 0.6);
        opacity: 0;
        animation: fadeIn 0.8s ease forwards 1.5s;
    }




    /* Button disabled states */
    button:disabled {
        opacity: 0.5;
        cursor: not-allowed;
        transform: none !important;
        box-shadow: none !important;
    }

    button:disabled:hover {
        transform: none !important;
        box-shadow: none !important;
    }


















    /*newnew*/






    .loading-widget {
        position: fixed;
        top: 20px;
        right: 20px;
        background: rgba(26, 26, 46, 0.95);
        border: 1px solid rgba(120, 119, 198, 0.3);
        border-radius: 12px;
        padding: 16px 20px;
        min-width: 280px;
        max-width: 400px;
        z-index: 9999;
        backdrop-filter: blur(10px);
        box-shadow:
            0 10px 40px rgba(0, 0, 0, 0.3),
            0 0 0 1px rgba(255, 255, 255, 0.05) inset;
        transform: translateX(420px);
        opacity: 0;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        color: white;
        font-family: 'Inter', sans-serif;
    }

    .loading-widget.show {
        transform: translateX(0);
        opacity: 1;
    }

    .loading-widget-header {
        display: flex;
        align-items: center;
        margin-bottom: 12px;
    }

    .loading-widget-spinner {
        width: 20px;
        height: 20px;
        border: 2px solid rgba(255, 255, 255, 0.2);
        border-top: 2px solid #7877c6;
        border-radius: 50%;
        animation: spin 1s linear infinite;
        margin-right: 12px;
    }

    .loading-widget-title {
        font-weight: 600;
        font-size: 14px;
        color: #ffffff;
    }

    .loading-widget-close {
        margin-left: auto;
        background: none;
        border: none;
        color: rgba(255, 255, 255, 0.6);
        cursor: pointer;
        padding: 8px;
        border-radius: 6px;
        transition: all 0.2s ease;
        font-size: 32px;
        font-weight: bold;
        min-width: 64px;
        min-height: 64px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .loading-widget-close:hover {
        color: rgba(255, 255, 255, 1);
        background: rgba(255, 255, 255, 0.1);
        transform: scale(1.1);
    }

    .loading-widget-message {
        font-size: 13px;
        color: rgba(255, 255, 255, 0.8);
        line-height: 1.4;
    }

    .loading-widget-progress {
        width: 100%;
        height: 3px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 2px;
        margin-top: 12px;
        overflow: hidden;
    }

    .loading-widget-progress-bar {
        width: 0%;
        height: 100%;
        background: linear-gradient(90deg, #7877c6, #ff0080);
        border-radius: 2px;
        transition: width 0.3s ease;
    }

    .loading-widget.success {
        border-color: rgba(34, 197, 94, 0.3);
    }

    .loading-widget.success .loading-widget-spinner {
        border-top-color: #22c55e;
    }

    .loading-widget.error {
        border-color: rgba(239, 68, 68, 0.3);
    }

    .loading-widget.error .loading-widget-spinner {
        border-top-color: #ef4444;
    }

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

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



















    /* Header with embedded chart */
    /* Header with embedded chart */
    .header2 {
        backdrop-filter: blur(0px);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        color: white;
        padding: 32px 24px;
        /* Reduced from 40px 30px */
        text-align: center;
        position: relative;
        overflow: hidden;
        height: 320px;
        /* Reduced from 400px (80% = 320px) */
    }





    /* Header with embedded chart */
    /* Header with embedded chart */
    .header {
        backdrop-filter: blur(0px);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        color: white;
        padding: 32px 24px;
        /* Reduced from 40px 30px */
        text-align: center;
        position: relative;
        overflow: hidden;
        height: 320px;
        /* Reduced from 400px (80% = 320px) */
    }

/* Or target by class */
.chart-container canvas {
    aspect-ratio: unset !important;
    width: 200px !important;
    height: 200px !important;
}
    /* Chart container positioned behind text */
    .chart-container {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1;
    }

    /* Chart container positioned behind text */
    .chart-container2 {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1;
    }

    #priceChart {
        width: 100% !important;
        height: 100% !important;
    }

    .header {
        position: relative;
        height: 300px;
        /* or whatever fits your design */
    }

    .header-content {
        position: absolute;
        top: 0;
        bottom: 0;
        /* stretches full height of header */
        left: 0;
        right: 0;

        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .header-content p {
        margin: 0;
        /* no extra space */
    }

    .header-content2 {
        position: absolute;
        top: 0;
        bottom: 0;
        /* stretches full height of header */
        left: 0;
        right: 0;

        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .header-content2 p {
        margin: 0;
        /* no extra space */
    }

    .header h1 {
        font-size: 3rem;
        font-weight: 800;
        background: linear-gradient(135deg, #ffffff 0%, #7877c6 50%, #ff0080 100%);
        background-clip: text;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        margin-bottom: 12px;
        letter-spacing: -0.02em;
        text-shadow: 0 0 30px rgba(120, 119, 198, 0.5);
        filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.7));
    }

    .header p {
        color: rgba(255, 255, 255, 0.9);
        font-size: 1.2rem;
        font-weight: 400;
        letter-spacing: 0.01em;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    }





    .header2 {
        position: relative;
        height: 300px;
        /* or whatever fits your design */
    }

    .header2-content {
        position: absolute;
        top: 0;
        bottom: 0;
        /* stretches full height of header */
        left: 0;
        right: 0;

        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .header2-content p {
        margin: 0;
        /* no extra space */
    }

    .header2 h1 {
        font-size: 3rem;
        font-weight: 800;
        background: linear-gradient(135deg, #ffffff 0%, #7877c6 50%, #ff0080 100%);
        background-clip: text;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        margin-bottom: 12px;
        letter-spacing: -0.02em;
        text-shadow: 0 0 30px rgba(120, 119, 198, 0.5);
        filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.7));
    }

    .header2 p {
        color: rgba(255, 255, 255, 0.9);
        font-size: 1.2rem;
        font-weight: 400;
        letter-spacing: 0.01em;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    }


    /* Rest of your existing styles */
    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

    body {
        font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
        background: #0a0a0a;
        background-image:
            radial-gradient(circle at 25% 25%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
            radial-gradient(circle at 75% 75%, rgba(255, 0, 128, 0.2) 0%, transparent 50%),
            linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
        min-height: 100vh;
        padding: 20px;
        color: #ffffff;
        position: relative;
        overflow-x: hidden;
    }

    .container {
        max-width: 2000px;
        margin: 0 auto;
        background: rgba(255, 255, 255, 0.02);
        backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 24px;
        box-shadow:
            0 8px 32px rgba(0, 0, 0, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
        overflow: hidden;
        position: relative;
    }


    @font-face {
        font-family: 'MegaPunchItalic';

        src: url('https://cdn.jsdelivr.net/gh/b0x-token/B0x-Website/fonts/Megapunch_Italic.ttf') format('truetype'),
            url('https://cdn.jsdelivr.net/gh/b0x-token/B0x-Website/fonts/Megapunch_Italic.otf') format('opentype');

        font-style: normal;
        /* already italic in the font itself */
        font-weight: normal;
    }

    .megapunch-only {
        font-family: 'MegaPunchItalic';
        font-size: 3rem;
        /* ~24px if root is 16px */
        font-weight: normal;
        margin: 0;
        color: #ff5722;
        line-height: 1.2;

        background: linear-gradient(135deg, #ffffff 0%, #7877c6 50%, #ff0080 100%);
        background-clip: text;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;

        margin-bottom: 12px;
        letter-spacing: 0.01em;
        text-shadow: 0 0 30px rgba(120, 119, 198, 0.5);
        filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.7));

        display: inline-block;
        /* fixes clipping with padding */
        padding-right: 0.15em;
        /* ✅ gives italic glyph room */
        overflow: visible;
        /* ✅ make sure text can spill past box */
    }

    .boxNameInline {
        font-family: 'MegaPunchItalic';
        font-size: 3.5rem;
        /* ~24px if root is 16px */
        font-weight: normal;
        margin: 0;
        color: #ff5722;
        line-height: 1.2;

        background: linear-gradient(135deg, #ffffff 0%, #7877c6 50%, #ff0080 100%);
        background-clip: text;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;

        margin-bottom: 12px;
        letter-spacing: 0.01em;
        text-shadow: 0 0 30px rgba(120, 119, 198, 0.5);
        filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.7));

        display: inline-block;
        /* fixes clipping with padding */
        padding-right: 0.15em;
        /* ✅ gives italic glyph room */
        overflow: visible;
        /* ✅ make sure text can spill past box */
    }



    /* Reset any conflicting styles for stats */
    #stats {
        width: 100% !important;
        max-width: none !important;
        position: static !important;
        z-index: auto !important;
        margin: 0 !important;
        padding: 0 20px !important;
        overflow: visible !important;
    }

    #stats .info-card {
        margin-bottom: 20px;
        position: relative;
        z-index: 1;
    }

    .stats-container {
        width: 100%;
        max-width: 100%;
        position: relative;
        z-index: 1;
        margin: 20px 0;
        padding: 0;
        box-sizing: border-box;
        /* Create a containing block */
        contain: layout style;
    }

    .iframe-placeholder {
        width: 100%;
        height: 1600px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #f8f9fa;
        border-radius: 10px;
        color: #666;
        font-style: italic;
        border: 2px dashed #ddd;
        cursor: pointer;
        box-sizing: border-box;
        margin: 0;
        position: relative;
    }

    .stats-container iframe {

        width: 120%;
        /* 20% wider than container */
        border: none;
        margin-left: -10%;
        /* Center the extra width */
        scrolling: yes;
        width: 100% !important;
        max-width: 100% !important;
        height: 1600px;
        border: none;
        border-radius: 10px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        background: white;
        display: block;
        margin: 0;
        padding: 0;
        box-sizing: border-box;
        /* Prevent iframe from breaking out */
        position: relative;
        left: 0;
        top: 0;
    }

    /* Media query for small screens (typically mobile devices) */
    @media (max-width: 768px) {

        .megapunch-only {
            font-size: 2rem;
            /* reduced from 3rem */
        }
    }

    /* For even smaller screens (mobile portrait) */
    @media (max-width: 480px) {

        .megapunch-only {
            font-size: 1.5rem;
            /* further reduced */
        }
    }

    @media (max-width: 500px) {
        .header2 {
            height: 400px;
            /* increase from 300px */
        }

        .chart-container2 {
            height: 90%;
            /* make chart fill the space */
        }

        .header {
            height: 400px;
            /* increase from 300px */
        }

        .chart-container {
            height: 90%;
            /* make chart fill the space */
        }
    }


    /*CSS FOR ContractInfo*/
    .container11 {
        margin: 0 auto;
    }

    .container11 h1 {
        text-align: center;
        font-size: 3rem;
        font-weight: 800;
        background: linear-gradient(135deg, #ffffff 0%, #7877c6 50%, #ff0080 100%);
        background-clip: text;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        margin-bottom: 30px;
        letter-spacing: -0.02em;
        text-shadow: 0 0 30px rgba(120, 119, 198, 0.5);
    }

    .contract-item {
        background: rgba(255, 255, 255, 0.03);
        backdrop-filter: blur(15px);
        border: 1px solid rgba(120, 119, 198, 0.2);
        border-left: 4px solid #7877c6;
        border-radius: 16px;
        padding: 24px;
        margin-bottom: 24px;
        position: relative;
        overflow: hidden;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .contract-item::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg,
                rgba(120, 119, 198, 0.05) 0%,
                rgba(255, 0, 128, 0.02) 100%);
        z-index: -1;
    }

    .contract-item:hover {
        transform: translateY(-4px);
        border-color: rgba(120, 119, 198, 0.3);
        box-shadow: 0 12px 35px rgba(120, 119, 198, 0.2);
    }




    .contract-name {
        font-size: 1.3rem;
        font-weight: 700;
        color: #7877c6;
        margin-bottom: 10px;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .chain-badge {
        margin-top: auto;
        /* This will push the badge down */
    }

    .address-row {
        display: flex;
        align-items: center;
        gap: 12px;
        flex-wrap: wrap;
    }

    .address {
        color: #ffffff;
        font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
        background: rgba(255, 255, 255, 0.05);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        padding: 0px 0%;
        border-radius: 0px;
        font-size: 1rem;
        line-height: 1.4;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);

        /* ✅ Critical fixes */
        height: auto;
        min-width: 200px;
        width: 40%;
        /* Default smaller width for desktop */
        white-space: normal;
        overflow-wrap: anywhere;
        word-break: break-word;

        /* ✅ Force at least 3 lines tall */
        min-height: calc(1.4em);
        /* line-height × 3 lines */
    }

    /* Mobile responsiveness */
    @media (max-width: 499px) {
        .address {
            width: 100%;
            min-width: 0px;
            /* Full width on mobile */
            font-size: 0.9rem;
            min-height: calc(1.4em * 3);
            /* Slightly smaller font on mobile if needed */
        }
    }

    .address:focus {
        outline: none;
        border-color: #7877c6;
        background: rgba(120, 119, 198, 0.1);
        box-shadow:
            0 0 0 3px rgba(120, 119, 198, 0.2),
            0 8px 25px rgba(120, 119, 198, 0.15);
        transform: translateY(-2px);
    }

    .address:hover {
        background: rgba(255, 255, 255, 0.08);
        border-color: rgba(255, 255, 255, 0.2);
    }

    .container11 .btn {
        background: linear-gradient(135deg, #7877c6 0%, #5a4fcf 100%);
        color: white;
        border: none;
        padding: 12px 24px;
        border-radius: 10px;
        cursor: pointer;
        font-weight: 500;
        font-size: 0.95rem;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        white-space: nowrap;
        text-align: center;
        position: relative;
        overflow: hidden;
        box-shadow:
            0 8px 25px rgba(120, 119, 198, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }

    .container11 .btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg,
                transparent 0%,
                rgba(255, 255, 255, 0.2) 50%,
                transparent 100%);
        transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .container11 .btn:hover {
        transform: translateY(-4px);
        box-shadow:
            0 12px 35px rgba(120, 119, 198, 0.6),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }

    .container11 .btn:hover::before {
        left: 100%;
    }

    .container11 .btn:active {
        transform: translateY(-2px);
    }

    .btn-copy {
        background: rgba(255, 255, 255, 0.08);
        backdrop-filter: blur(10px);
        color: rgba(255, 255, 255, 0.9);
        border: 1px solid rgba(255, 255, 255, 0.15);
        box-shadow: none;
    }

    .btn-copy:hover {
        background: rgba(255, 255, 255, 0.12);
        border-color: rgba(255, 255, 255, 0.25);
        color: #ffffff;
        box-shadow: 0 8px 25px rgba(255, 255, 255, 0.1);
    }

    .btn-copy.copied {
        background: linear-gradient(135deg, #00d4aa 0%, #00b894 100%);
        color: white;
        border-color: #00d4aa;
        box-shadow:
            0 8px 25px rgba(0, 212, 170, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }

    .btn-metamask {
        background: linear-gradient(135deg, #f6851b 0%, #e2761b 100%);
        color: white;
        border-color: #f6851b;
        box-shadow:
            0 8px 25px rgba(246, 133, 27, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }

    .btn-metamask:hover {
        background: linear-gradient(135deg, #e2761b 0%, #d4671a 100%);
        box-shadow:
            0 12px 35px rgba(246, 133, 27, 0.6),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }

    .btn-metamask:disabled {
        background: rgba(255, 255, 255, 0.1);
        color: rgba(255, 255, 255, 0.4);
        border-color: rgba(255, 255, 255, 0.1);
        cursor: not-allowed;
        transform: none;
        box-shadow: none;
    }

    .toast {
        position: fixed;
        top: 20px;
        right: 20px;
        background: linear-gradient(135deg, #00d4aa 0%, #00b894 100%);
        color: white;
        padding: 16px 24px;
        border-radius: 12px;
        font-weight: 600;
        opacity: 0;
        transition: opacity 0.3s ease;
        z-index: 1000;
        backdrop-filter: blur(10px);
        border: 1px solid rgba(0, 212, 170, 0.3);
        box-shadow:
            0 8px 25px rgba(0, 212, 170, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }

    .toast.show {
        opacity: 1;
    }

    /* Button container for mobile */
    .button-group {
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
    }

    @media (max-width: 600px) {
        .address-row {
            flex-direction: column;
            align-items: stretch;
            gap: 8px;
        }



        .container11 .btn {
            flex: 1;
            justify-content: center;
            min-width: 0;
            font-size: 13px;
            padding: 10px 8px;
            min-width: calc(50% - 4px);
            max-width: calc(50% - 4px);
        }
    }

    /* Stack buttons vertically on small screens */
    @media (max-width: 450px) {
        .button-group {
            flex-direction: column;
            gap: 6px;
        }

        .container11 .btn {
            min-width: 100%;
            max-width: 100%;
            flex: none;
            padding: 12px 16px;
            font-size: 14px;
        }
    }

    @media (max-width: 480px) {
        body {
            padding: 15px;
        }

        .contract-item {
            padding: 15px;
        }

        .container11 h1 {
            font-size: 2rem;
            margin-bottom: 20px;
        }

        .contract-name {
            font-size: 16px;
        }
    }










    .address-row {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        align-items: center;
    }

    /* Desktop/tablet - horizontal layout */
    @media (min-width: 641px) {
        .address-row {
            justify-content: flex-start;
            /* or space-between */
        }
    }

    /* Mobile - centered vertical layout */
    @media (max-width: 640px) {
        .address-row {
            flex-direction: column;
            justify-content: center;
            align-items: center;
            text-align: center;
        }

        .address-row .address,
        .address-row .btn {
            width: 100%;
            max-width: 300px;
            /* Prevent buttons from getting too wide */
        }
    }

    /*END CSS FOr contractInfo*/


    /*tokenicon css begins*/
    .token-icon222 {
        width: 35px;
        height: 35px;
        object-fit: cover;
        flex-shrink: 0;
    }

    .form-group select option {
        color: black !important;
        background-color: white !important;
    }


    /* Default: side by side layout */
    .form-row {
        display: flex;
        gap: 16px;
        /* Adjust spacing between items */
    }

    .form-row .form-group {
        flex: 1;
        /* Equal width */
    }

    /* Mobile: stacked layout under 700px */
    @media (max-width: 700px) {
        .form-row {
            flex-direction: column;
            gap: 12px;
            /* Adjust vertical spacing */
        }

        .form-row .form-group {
            width: 100%;
        }
    }

    .token-icon.b0x-token {
        width: 80px;
        /* Wider to accommodate two icons + plus sign */
        border-radius: 18px;
        /* Less rounded, more like a pill shape */
    }

    @media (max-width: 285px) {
        .btn-metamask {
            white-space: normal !important;
            word-wrap: break-word;
            line-height: 1.2;
            padding: 8px 12px;
            min-height: auto;
        }
    }

    .chain-icon {
        width: 60px;
        height: 60px;
    }


    /*SOCIAL MEDIA CSS Start*/
    /* Social Media Tab Styles - Scoped to #socials */
    #socials .social-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
        margin-top: 20px;
    }

    #socials .social-link {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 15px 20px;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
        border-radius: 12px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        text-decoration: none;
        color: #ffffff;
        font-weight: 600;
        font-size: 1rem;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        overflow: hidden;
    }

    #socials .social-link:before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
        transition: left 0.5s;
    }

    #socials .social-link:hover:before {
        left: 100%;
    }

    #socials .social-link:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
        border-color: rgba(255, 255, 255, 0.3);
    }

    #socials .social-icon {
        width: 24px;
        height: 24px;
        margin-right: 10px;
        filter: brightness(0) invert(1);
    }

    /* Platform-specific hover colors for Social Media tab */
    #socials .social-link.github:hover {
        background: linear-gradient(135deg, rgba(36, 41, 47, 0.8) 0%, rgba(36, 41, 47, 0.6) 100%);
        border-color: #24292f;
    }

    #socials .social-link.twitter:hover {
        background: linear-gradient(135deg, rgba(29, 161, 242, 0.8) 0%, rgba(29, 161, 242, 0.6) 100%);
        border-color: #1da1f2;
    }

    #socials .social-link.reddit:hover {
        background: linear-gradient(135deg, rgba(255, 69, 0, 0.8) 0%, rgba(255, 69, 0, 0.6) 100%);
        border-color: #ff4500;
    }

    #socials .social-link.telegram:hover {
        background: linear-gradient(135deg, rgba(0, 136, 204, 0.8) 0%, rgba(0, 136, 204, 0.6) 100%);
        border-color: #0088cc;
    }

    #socials .social-link.website:hover {
        background: linear-gradient(135deg, rgba(0, 212, 255, 0.8) 0%, rgba(0, 212, 255, 0.6) 100%);
        border-color: #00d4ff;
    }

    #socials .social-link.medium:hover {
        background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.6) 100%);
        border-color: #000000;
    }

    #socials .social-link.bitcointalk:hover {
        background: linear-gradient(135deg, rgba(255, 165, 0, 0.8) 0%, rgba(255, 165, 0, 0.6) 100%);
        border-color: #ffa500;
    }

    #socials .social-link.discord:hover {
        background: linear-gradient(135deg, rgba(114, 137, 218, 0.8) 0%, rgba(114, 137, 218, 0.6) 100%);
        border-color: #7289da;
    }

    /* Mobile responsiveness for Social Media tab */
    @media (max-width: 600px) {
        #socials .social-grid {
            grid-template-columns: 1fr;
        }
    }

    /* Loading animation for social links */
    @keyframes socialPulse {
        0% {
            opacity: 1;
        }

        50% {
            opacity: 0.7;
        }

        100% {
            opacity: 1;
        }
    }

    #socials .social-link:active {
        animation: socialPulse 0.2s;
    }

    /*SOCIAL MEDIA CSS END*/



    /*NOTIFICATION WIDGET CSS BEGINS*/
    /*NOTIFICATION WIDGET CSS BEGINS*/

    /* Notification Container - Multiple Positions */
    .notification-container {
        position: fixed;
        z-index: 10000;
        pointer-events: none;
        transition: all 0.3s ease;
    }

    .notification-container.top-right {
        top: 10px;
        right: 10px;
    }

    .notification-container.bottom-right {
        bottom: 20px;
        right: 10px;
        max-width: calc(100vw - 20px);
    }

    .notification-container.bottom-center {
        bottom: 20px;
        left: 10px;
        right: 10px;
    }

    .notification-container.bottom-left {
        bottom: 20px;
        left: 10px;
        max-width: calc(100vw - 20px);
    }

    /* Individual Notification - Mobile Optimized */
    .notification {
        display: flex;
        align-items: flex-start;
        gap: 10px;
        padding: 12px 16px;
        margin-bottom: 8px;
        background: rgba(255, 255, 255, 0.98);
        border-radius: 8px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
        border-left: 3px solid;
        min-width: 250px;
        max-width: calc(100vw - 40px);
        width: auto;
        min-height: 60px;
        opacity: 0;
        transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55), transform 0.3s ease-out;
        pointer-events: auto;
        position: relative;
        backdrop-filter: blur(10px);
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    /* Position-specific initial transforms */
    .notification-container.top-right .notification,
    .notification-container.bottom-right .notification {
        transform: translateX(50px);
    }

    .notification-container.bottom-center .notification {
        transform: translateY(50px);
    }

    .notification-container.bottom-left .notification {
        transform: translateX(-50px);
    }

    /* Show state - position-specific final transforms */
    .notification-container.top-right .notification.show,
    .notification-container.bottom-right .notification.show {
        transform: translateX(0);
        opacity: 1;
    }

    .notification-container.bottom-center .notification.show {
        transform: translateY(0);
        opacity: 1;
    }

    .notification-container.bottom-left .notification.show {
        transform: translateX(0);
        opacity: 1;
    }

    .notification.success {
        border-left-color: #10b981;
    }

    .notification.error {
        border-left-color: #ef4444;
    }

    .notification.warning {
        border-left-color: #f59e0b;
    }

    .notification.info {
        border-left-color: #3b82f6;
    }

    .notification-icon {
        width: 20px;
        height: 20px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 12px;
        font-weight: bold;
        color: white;
        flex-shrink: 0;
        margin-top: 2px;
    }

    .notification.success .notification-icon {
        background: #10b981;
    }

    .notification.error .notification-icon {
        background: #ef4444;
    }

    .notification.warning .notification-icon {
        background: #f59e0b;
    }

    .notification.info .notification-icon {
        background: #3b82f6;
    }

    .notification-content {
        flex: 1;
        min-width: 0;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .notification-title {
        font-weight: 600;
        font-size: 14px;
        color: #1f2937;
        margin-bottom: 2px;
        line-height: 1.3;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .notification-message {
        font-size: 12px;
        color: #6b7280;
        line-height: 1.4;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .notification-close {
        background: none;
        border: none;
        color: #9ca3af;
        cursor: pointer;
        font-size: 60px;
        padding: 2px 4px;
        border-radius: 4px;
        transition: all 0.2s;
        flex-shrink: 0;
        width: 60px;
        height: 60px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-top: 2px;
    }

    .notification-close:active {
        color: #4b5563;
        background: #f3f4f6;
        transform: scale(0.9);
    }

    /* Progress bar - 10 second duration */
    .notification-progress {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 2px;
        background: rgba(0, 0, 0, 0.1);
        border-radius: 0 0 8px 8px;
        overflow: hidden;
    }

    .notification-progress::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
        background: currentColor;
        animation: progress 10s linear;
        border-radius: inherit;
    }

    .notification.success .notification-progress::after {
        color: #10b981;
        animation-duration: 30s;
        /* 30 seconds for success notifications */
    }

    .notification.error .notification-progress::after {
        color: #ef4444;
    }

    .notification.warning .notification-progress::after {
        color: #f59e0b;
    }

    .notification.info .notification-progress::after {
        color: #3b82f6;
    }

    @keyframes progress {
        from {
            width: 100%;
        }

        to {
            width: 0%;
        }
    }

    /* Notification message links */
    .notification-message a {
        color: #10b981;
        text-decoration: none;
        font-weight: 600;
        border-bottom: 1px solid transparent;
        transition: all 0.2s ease;
        display: inline-block;
        margin-top: 4px;
    }

    .notification-message a:hover {
        color: #059669;
        border-bottom-color: #059669;
        transform: translateX(2px);
    }

    .notification-message a:active {
        transform: scale(0.98);
    }

    /* Responsive scaling for enlarged notifications with transaction hash */
    /* Desktop: Full 1.7x scale */
    @media (min-width: 801px) {
        .notification[style*="scale(1.7)"] {
            transform: scale(1.7) !important;
            transform-origin: bottom right !important;
        }
    }

    /* Tablet: 1.5x scale (below 800px) */
    @media (max-width: 800px) {
        .notification[style*="scale(1.7)"] {
            transform: scale(1.5) !important;
            transform-origin: bottom right !important;
        }
    }

    /* Mobile: 1.0x scale (below 500px - essentially no enlargement) */
    @media (max-width: 500px) {
        .notification[style*="scale(1.7)"] {
            transform: scale(1.0) !important;
            transform-origin: bottom right !important;
        }
    }

    /* Extra small screens */
    @media (max-width: 360px) {
        .notification {
            min-width: calc(100vw - 32px);
            max-width: calc(100vw - 32px);
            width: auto;
            margin-left: 8px;
            margin-right: 8px;
            padding: 10px 12px;
            min-height: 56px;
        }

        .notification-container {
            left: 8px !important;
            right: 8px !important;
            transform: none !important;
        }

        .notification-container.bottom-center {
            left: 8px;
            transform: none;
        }

        .notification-title {
            font-size: 13px;
        }

        .notification-message {
            font-size: 11px;
        }
    }

    .code-example {
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
        border-radius: 8px;
        padding: 15px;
        margin-top: 20px;
        text-align: left;
    }

    .code-example h4 {
        color: white;
        margin-bottom: 10px;
        font-size: 14px;
    }

    .code-example pre {
        background: rgba(0, 0, 0, 0.3);
        padding: 10px;
        border-radius: 6px;
        color: #e5e7eb;
        font-size: 11px;
        overflow-x: auto;
    }

    /*NOTIFICATION WIDGET CSS ENDS*/
    /*NOTIFICATION WIDGET CSS ENDS*/
    /*NOTIFCATION WIDGET CSS ENDS*/





    /*STATS CSS*/
    /*STATS CSS BEGINS*/


    .logo {
        background: #333;
        color: #fff;
        padding: 8px 12px;
        border-radius: 4px;
        font-weight: bold;
        margin-right: 15px;
        font-size: 14px;
    }

    .title {
        font-size: 24px;
        font-weight: 400;
    }

    .nav-tabs2 {
        display: flex;
        gap: 0px;
        margin-bottom: 40px;
        border-bottom: 1px solid #333;
        padding-bottom: 15px;
    }

    .nav-tab2 {
        background: none;
        border: none;
        color: #888;
        font-size: 14px;
        cursor: pointer;
        padding: 5px 0;
        transition: color 0.3s;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .nav-tab2:hover {
        color: #fff;
    }

    .nav-tab2.active {
        color: #8b5cf6;
    }

    .nav-tab2::before {
        content: '';
        width: 16px;
        height: 16px;
        background-size: contain;
    }

    .nav-tab2[data-tab="stats"]::before {
        background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="%23888" viewBox="0 0 24 24"><path d="M3 13h8V3H3v10zm0 8h8v-6H3v6zm10 0h8V11h-8v10zm0-18v4h8V3h-8z"/></svg>');
    }

    .nav-tab2[data-tab="mining"]::before {
        background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="%23888" viewBox="0 0 24 24"><path d="M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58c-.18.14-.23.41-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61l-2.01-1.58zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6z"/></svg>');
    }

    .nav-tab2[data-tab="difficulty"]::before {
        background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="%23888" viewBox="0 0 24 24"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"/></svg>');
    }

    .nav-tab2[data-tab="reward"]::before {
        background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="%23888" viewBox="0 0 24 24"><path d="M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z"/></svg>');
    }

    .page {
        display: none;
    }

    .page.active {
        display: block;
    }

    .section-title {
        font-size: 20px;
        font-weight: 400;
        margin-bottom: 30px;
        color: #fff;
    }

    .stats-grid {
        display: flex;
        flex-direction: column;
        gap: 1px;
        background: #333;
        border-radius: 8px;
        overflow: hidden;
    }

    .stat-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: center;
        padding: 18px 24px;
        background: #2a2a2a;
        transition: background-color 0.2s;
        gap: 15px;
    }

    .stat-row:hover {
        background: #333;
    }

    .stat-label2 {
        font-size: 25px;
        color: #ccc;
        font-weight: 400;
    }

    .stat-value2 {
        font-size: 23px;
        color: #ffffff;
        font-weight: 600;
        text-align: left;
        line-height: 1.4;

    }

    .stat-value2.highlight {
        color: #8b5cf6;
    }

    .stat-value2 .unit {
        color: #c0c0c0;
        font-size: 19px;
        font-weight: 400;
        margin-left: 6px;
    }

    .stat-value2 .detail {
        color: #999;
        font-size: 13px;
        font-weight: 400;
        margin-left: 8px;
    }


    .nav-tabs2 {
        display: flex;
        gap: 8px;
        margin: 20px 0;
        padding: 4px;
        background: #1e1e1e;
        border-radius: 8px;
        border: 1px solid #333;
    }

    .nav-tabs2 {
        display: flex;
        gap: 8px;
        margin: 20px 0;
        padding: 4px;
        background: #1e1e1e;
        border-radius: 8px;
        border: 1px solid #333;
        justify-content: flex-start;
        align-items: center;
    }

    .nav-tabs2 {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 12px;
        margin: 20px 0;
        padding: 12px;
        background: #1e1e1e;
        border-radius: 12px;
        border: 1px solid #333;
    }



    .nav-tabs2 {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr 1fr;
        gap: 8px;
        margin: 20px 0;
        padding: 8px;
        background: #1e1e1e;
        border-radius: 12px;
        border: 1px solid #333;
        max-width: 100%;
    }

    .nav-tab2 {
        background: #2a2a2a;
        border: 1px solid #404040;
        color: #b0b0b0;
        font-size: 13px;
        cursor: pointer;
        padding: 8px 12px;
        border-radius: 6px;
        transition: all 0.3s ease;
        font-weight: 500;
        position: relative;
        overflow: hidden;
        text-align: center;
        white-space: nowrap;
        text-overflow: ellipsis;
        min-width: 0;
    }

    .nav-tab2:before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.1), transparent);
        transition: left 0.5s;
    }

    .nav-tab2:hover {
        color: #ffffff;
        background: #363636;
        border-color: #5a5a5a;
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }

    .nav-tab2:hover:before {
        left: 100%;
    }

    .nav-tab2.active {
        color: #ffffff;
        background: linear-gradient(135deg, #8b5cf6, #7c3aed);
        border-color: #8b5cf6;
        box-shadow: 0 4px 16px rgba(139, 92, 246, 0.3);
        font-weight: 600;
    }

    .nav-tab2.active:hover {
        background: linear-gradient(135deg, #7c3aed, #6d28d9);
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
    }

    .stats-page {
        display: none;
    }

    @media (max-width: 768px) {
        .container {
            padding: 5px;
        }

        .header {
            flex-direction: column;
            align-items: flex-start;
            gap: 10px;
        }

        .nav-tabs2 {
            flex-wrap: wrap;
            gap: 00px;
        }

        .stat-row {
            padding: 15px 18px;
            flex-direction: column;
            align-items: flex-start;
            gap: 5px;
        }


        .stat-value2 {
            text-align: left;
            font-size: 15px;
            color: #ffffff;
            font-weight: 600;
            text-align: left;
            line-height: 1.4;

        }

        .stat-value2 .unit {
            color: #c0c0c0;
            font-size: 14px;
            font-weight: 400;
            margin-left: 6px;
        }

        .stat-label2 {
            font-size: 16px;
            color: #ccc;
            font-weight: 400;
        }


    }



    /*STATS CSS ENDS*/


    /*Stats Mining Calculator STARTS*/




    /* Mining Calculator Styles */
    /* Mining Calculator Styles */



    /* Mining Calculator Styles */
    .mining-calculator {
        margin-top: 30px;
    }

    .calculator-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0px;
        margin-bottom: 0px;
    }

    .input-group {
        margin-bottom: 30px;
    }

    .input-label {
        display: block;
        color: #f0f0f0;
        font-size: 15px;
        font-weight: 500;
        margin-bottom: 8px;
    }

    .info-icon {
        color: #8b5cf6;
        cursor: help;
        font-size: 14px;
        margin-left: 4px;
    }

    .input-with-unit {

        flex: 0 0 auto;
        /* Don't grow, don't shrink, use natural size */
        align-items: center;
        gap: 12px;
    }

    .calc-input {
        flex: none;
        background: #333;
        border: 1px solid #555;
        border-radius: 4px;
        padding: 10px 12px;
        color: #fff;
        font-size: 14px;
        min-width: 100px;
    }

    .calc-input:focus {
        outline: none;
        border-color: #8b5cf6;
    }

    .difficulty-input {
        min-width: 200px;
        margin-bottom: 24px;
    }

    .input-unit {
        color: #ccc;
        font-size: 14px;
    }

    .button-group {
        display: flex;
        gap: 10px;
    }

    .calc-button {
        background: #444;
        border: 1px solid #666;
        color: #8b5cf6;
        padding: 8px 16px;
        border-radius: 4px;
        font-size: 12px;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.2s;
    }

    .calc-button:hover {
        background: #555;
        border-color: #8b5cf6;
    }

    .calc-button.secondary {
        background: #333;
    }

    .results-section {
        background: #2a2a2a;
        padding: 25px;
        border-radius: 8px;
        border: 1px solid #444;
        width: 300px;
        /* or any width you want */
        box-sizing: border-box;
        overflow-wrap: break-word;
        word-break: break-word;
        margin: 0;
        /* remove offsets */
    }

    .results-title {
        color: #f0f0f0;
        font-size: 16px;
        font-weight: 500;
        margin-bottom: 20px;
    }

    .result-item {
        color: #ccc;
        font-size: 14px;
        line-height: 1.6;
        margin-bottom: 8px;
    }

    .result-item span {
        color: #fff;
        font-weight: 600;
    }

    .how-it-works {
        margin-top: 50px;
    }

    .section-subtitle {
        color: #f0f0f0;
        font-size: 18px;
        font-weight: 500;
        margin-bottom: 15px;
    }

    .explanation {
        color: #ccc;
        font-size: 14px;
        margin-bottom: 25px;
    }

    .formula-block {
        background: #2a2a2a;
        border-left: 4px solid #8b5cf6;
        padding: 20px 25px;
        margin: 25px 0;
        font-family: 'Courier New', monospace;
    }

    .formula-line {
        color: #f0f0f0;
        font-size: 13px;
        line-height: 1.8;
        margin-bottom: 8px;
    }

    .formula-fraction {
        color: #8b5cf6;
    }

    .formula-divisor {
        color: #ff6b6b;
    }

    .formula-complex {
        color: #4ecdc4;
    }

    .reference {
        color: #ccc;
        font-size: 14px;
        margin-top: 30px;
        margin-bottom: 10px;
    }

    .reference-list {
        margin: 0;
        padding-left: 20px;
    }

    .reference-list li {
        color: #ccc;
        margin-bottom: 5px;
    }

    .reference-link {
        color: #8b5cf6;
        text-decoration: none;
    }

    .reference-link:hover {
        text-decoration: underline;
    }



    .container {
        padding: 15px;
    }



    @media (max-width: 768px) {
        .container {
            padding: 5px;
        }


        .nav-tabs2 {
            flex-wrap: wrap;
            gap: 1px;
        }

        .stat-row {
            padding: 15px 18px;
            flex-direction: column;
            align-items: flex-start;
            gap: 5px;
        }

        .calculator-grid {
            grid-template-columns: 1fr;
            gap: 0px;
        }
    }

    /* Main formula container */
    .formula-block {
        background: rgba(255, 255, 255, 0.05);
        border-left: 3px solid #64ffda;
        padding: 20px;
        margin: 20px 0;
        border-radius: 4px;
        font-family: 'Courier New', monospace;
        line-height: 2;
    }

    /* Individual formula lines */
    .formula-line {
        margin: 15px 0;
        color: #e0e0e0;
        font-size: 16px;
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 8px;
    }

    /* Fraction container - this wraps the numerator and denominator */
    .fraction {
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        margin: 0 4px;
        vertical-align: middle;
    }

    /* Numerator styling */
    .formula-fraction {
        color: #64ffda;
        font-weight: 500;
        padding: 2px 6px;
        text-align: center;
        border-bottom: 2px solid #ffffff;
        margin-bottom: 2px;
        min-width: 80px;
    }

    /* Denominator styling */
    .formula-divisor {
        color: #ff9800;
        font-weight: 500;
        padding: 2px 6px;
        text-align: center;
        margin-top: 2px;
        min-width: 80px;
    }

    /* Complex formula grouping */
    .formula-complex {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 6px 10px;
        background: rgba(100, 255, 218, 0.1);
        border-radius: 4px;
        border: 1px solid rgba(100, 255, 218, 0.2);
        margin: 0 4px;
    }

    /* Nested fractions within complex formulas */
    .formula-complex .fraction {
        margin: 0 2px;
    }

    .formula-complex .formula-fraction,
    .formula-complex .formula-divisor {
        font-size: 14px;
        padding: 1px 4px;
        min-width: 60px;
    }

    /* Superscript styling */
    sup {
        color: #bb86fc;
        font-size: 0.8em;
        font-weight: bold;
    }

    /* Mathematical operators */
    .operator {
        color: #ffffff;
        font-weight: bold;
        margin: 0 6px;
    }

    /* Arrow styling */
    .arrow {
        color: #64ffda;
        font-weight: bold;
        margin-right: 8px;
    }

    /*STATS Mining Calculator CSS ENDS*/
    .parent-container {
        display: flex;
        justify-content: flex-end;
        /* pushes children to the right */
        align-items: flex-start;
        /* aligns them to the top */
        width: 100%;
    }



    /*STATS Mining Calculator CSS BEGINSS*/
    .mining-calculator {
        margin-bottom: 40px;
    }

    .calculator-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 30px;
        margin-bottom: 30px;
    }

    /* Control Box Styling */
    .controls-box {
        background: rgba(26, 32, 44, 0.8);
        border-radius: 12px;
        padding: 24px;
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    }

    .input-group {
        margin-bottom: 20px;
    }

    .input-group:last-child {
        margin-bottom: 0;
    }

    .input-label {
        display: block;
        font-size: 14px;
        font-weight: 500;
        margin-bottom: 8px;
        color: #cbd5e0;
    }

    /* Hashrate Input with Unit Selector */
    .input-with-unit {
        display: inline-flex;
        width: fit-content;
        align-items: center;
        background: rgba(45, 55, 72, 0.8);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 8px;
        overflow: hidden;
        transition: all 0.2s;
    }

    .input-with-unit:focus-within {
        border-color: #805ad5;
        box-shadow: 0 0 0 3px rgba(128, 90, 213, 0.1);
    }

    .calc-input {
        flex: none;
        min-width: 120px;
        padding: 12px 15px;
        background: transparent;
        border: none;
        color: #e2e8f0;
        font-size: 14px;
        outline: none;
        border-radius: 0;
    }

    .calc-input::placeholder {
        color: #718096;
    }

    .unit-selector {
        background: rgba(128, 90, 213, 0.8);
        border: none;
        color: #e2e8f0;
        padding: 12px 15px;
        font-size: 14px;
        font-weight: 500;
        cursor: pointer;
        transition: background-color 0.2s;
        min-width: 70px;
    }

    .unit-selector:hover {
        background: rgba(128, 90, 213, 1);
    }

    .unit-selector:focus {
        outline: none;
        background: rgba(128, 90, 213, 1);
    }

    /* Regular Input (for difficulty) */
    .difficulty-input {
        width: 100%;
        max-width: 200px;
        padding: 12px 15px;
        background: rgba(45, 55, 72, 0.8);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 8px;
        color: #e2e8f0;
        font-size: 23px;
        box-sizing: border-box;
    }

    .difficulty-input:focus {
        outline: none;
        border-color: #805ad5;
        box-shadow: 0 0 0 3px rgba(128, 90, 213, 0.1);
    }

    /* Button Group */
    .button-group {
        display: flex;
        gap: 10px;
        margin-top: 15px;
        flex-wrap: wrap;
    }

    .calc-button {
        padding: 10px 16px;
        background: rgba(128, 90, 213, 0.8);
        border: 1px solid rgba(128, 90, 213, 0.6);
        border-radius: 6px;
        color: #e2e8f0;
        font-size: 12px;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.2s;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .calc-button:hover {
        background: rgba(128, 90, 213, 1);
        border-color: rgba(128, 90, 213, 0.8);
        transform: translateY(-1px);
    }

    .calc-button.secondary {
        background: rgba(74, 85, 104, 0.8);
        border-color: rgba(74, 85, 104, 0.6);
    }

    .calc-button.secondary:hover {
        background: rgba(74, 85, 104, 1);
        border-color: rgba(74, 85, 104, 0.8);
    }

    /* Results Section */
    .results-section {
        background: rgba(26, 32, 44, 0.9);
        border-radius: 12px;
        padding: 24px;
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    }

    .results-title {
        font-size: 18px;
        font-weight: 600;
        margin-bottom: 20px;
        color: #f7fafc;
    }

    .result-item {
        margin-bottom: 15px;
        font-size: 23px;
        line-height: 1.5;
    }

    .result-item span {
        font-weight: 600;
        color: #68d391;
    }

    /* Formula Section */
    #stats .how-it-works {
        background: rgba(45, 55, 72, 0.8);
        border-radius: 12px;
        padding: 24px;
        margin-top: 30px;
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    #stats .section-subtitle {
        font-size: 20px;
        font-weight: 600;
        margin-bottom: 15px;
        color: #f7fafc;
    }

    #stats .explanation {
        color: #cbd5e0;
        margin-bottom: 20px;
        line-height: 1.6;
    }

    #stats .formula-block {
        background: rgba(26, 32, 44, 0.6);
        padding: 20px;
        border-radius: 8px;
        margin: 20px 0;
        font-family: 'Courier New', monospace;
    }

    #stats .formula-line {
        margin-bottom: 15px;
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 8px;
    }

    #stats .fraction {
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        position: relative;
    }

    #stats .formula-fraction {
        border-bottom: 1px solid #cbd5e0;
        padding-bottom: 2px;
        margin-bottom: 2px;
    }

    #stats .formula-divisor {
        padding-top: 2px;
    }

    #stats .arrow {
        color: #68d391;
        font-weight: bold;
        margin: 0 10px;
    }

    #stats .operator {
        color: #68d391;
        font-weight: bold;
        margin: 0 5px;
    }

    #stats .reference {
        color: #cbd5e0;
        margin-top: 20px;
        margin-bottom: 10px;
    }

    #stats .reference-list {
        margin-left: 20px;
    }

    #stats .reference-link {
        color: #68d391;
        text-decoration: none;
    }

    #stats .reference-link:hover {
        text-decoration: underline;
    }

    @media (max-width: 768px) {
        #stats .calculator-grid {
            grid-template-columns: 1fr;
            gap: 20px;
        }

        #stats .button-group {
            flex-direction: column;
        }

        #stats .calc-input {
            min-width: 100px;
        }

        #stats body {
            padding: 15px;
        }
    }

    .hashrate-row {
        display: flex;
        gap: 20px;
        align-items: flex-end;
    }

    .hashrate-input-section {
        flex: 1;
        /* Take up remaining space after units section */
    }

    .units-section {
        flex: 0 0 auto;
        /* Stay at natural width */
    }

    .hashrate-input-section .calc-input {
        width: 100%;
        /* Full width of its flex container */
        padding: 12px 15px;
        background: rgba(45, 55, 72, 0.8);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 8px;
        color: #e2e8f0;
        font-size: 22px;
    }

    .units-section .unit-selector {
        background: rgba(128, 90, 213, 0.8);
        border: 1px solid rgba(128, 90, 213, 0.6);
        border-radius: 8px;
        color: #e2e8f0;
        padding: 12px 15px;
        font-size: 22px;
        font-weight: 500;
        cursor: pointer;
        min-width: 80px;
    }


    /*end css mining calculator*/
    /*Begin css blocks in main stats*/



    #stats .dashboard-container {
        max-width: 1200px;
        margin: 0 auto;
    }

    #stats .section {
        background: rgba(45, 45, 65, 0.8);
        border-radius: 16px;
        padding: 30px;
        margin-bottom: 30px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    #stats .section h4 {
        font-size: 24px;
        font-weight: 600;
        margin-bottom: 25px;
        color: #ffffff;
        text-align: left;
    }

    #stats .chart-containerf {
        display: flex;
        gap: 20px;
        align-items: flex-start;
    }

    #stats .pie-chart-wrapper {
        flex-shrink: 0;
        width: 240px;
        height: 240px;
        position: relative;
    }

    #stats .stats-table-wrapper {
        flex: 1;
        min-width: 0;
    }

    #stats .stats-table {
        width: 90%;
        border-collapse: collapse;
        background: transparent;
        table-layout: auto;
        /* instead of fixed */

    }

    #stats .stats-table thead {
        border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    }

    #stats .stats-table th {
        text-align: left;
        padding: 8px 12px;
        font-weight: 600;
        color: #b0b0c0;
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: 0.3px;
        word-wrap: break-word;
        hyphens: auto;
    }

    #stats .stats-table td {
        padding: 8px 12px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        vertical-align: middle;
        font-size: 22px;
        word-wrap: break-word;
        hyphens: auto;
    }

    #stats .stats-table tbody tr:hover {
        background: rgba(255, 255, 255, 0.05);
    }

    #stats .miner-row {
        position: relative;
    }

    #stats .miner-indicator {
        display: inline-block;
        width: 12px;
        height: 12px;
        border-radius: 2px;
        margin-right: 10px;
        vertical-align: middle;
    }

    #stats .miner-name {
        font-family: 'Monaco', 'Consolas', monospace;
        font-size: 22px;
        color: #ffffff;
        font-weight: 500;
    }

    #stats .mining-pool {
        background: #ff6b35;
    }


    #stats .stat-value {
        font-weight: 600;
        color: #ffffff;
    }

    #stats .stat-secondary {
        color: #b0b0c0;
        font-size: 22px;
    }

    #stats .currency {
        color: #4caf50;
        font-weight: 600;
    }

    #stats .blocks-table {
        width: 100%;
        border-collapse: collapse;
        margin-top: 20px;
    }

    #stats .blocks-table th,
    #stats .blocks-table td {
        text-align: left;
        padding: 8px 12px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        word-wrap: break-word;
        hyphens: auto;
        font-size: 22px;
    }

    #stats .blocks-table th {
        background: rgba(255, 255, 255, 0.05);
        font-weight: 600;
        color: #b0b0c0;
        font-size: 22px;
    }

    #stats .blocks-table .hash {
        font-family: 'Monaco', 'Consolas', monospace;
        font-size: 20px;
        color: #64b5f6;
        word-wrap: break-word;
    }

    #stats .blocks-table .hash2 {
        font-family: 'Monaco', 'Consolas', monospace;
        font-size: 20px;
        color: #64b5f6;
        word-wrap: break-word;
    }

    #stats .blocks-table .miner-cell {
        background: rgba(156, 39, 176, 0.2);
        color: #ce93d8;
        border-radius: 4px;
        padding: 4px 8px;
        font-size: 21px;
        display: inline-block;
        font-family: 'Monaco', 'Consolas', monospace;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 200px;
    }

    @media (max-width: 1024px) {
        #stats .chart-containerf {
            gap: 15px;
        }

        #stats .pie-chart-wrapper {
            width: 200px;
            height: 200px;
        }
    }

    @media (max-width: 768px) {
        #stats body {
            padding: 10px;
        }

        #stats .section {
            padding: 20px;
        }

        #stats .chart-containerf {
            flex-direction: column;
            gap: 15px;
        }

        #stats .pie-chart-wrapper {
            width: 100%;
            max-width: 240px;
            height: 240px;
            margin: 0 auto;
        }

        #stats .stats-table,
        #stats .blocks-table {
            font-size: 12px;
        }

        #stats .stats-table th,
        #stats .stats-table td,
        #stats .blocks-table th,
        #stats .blocks-table td {
            padding: 6px 8px;
        }
    }

    @media (max-width: 480px) {
        #stats section {
            padding: 15px;
        }

        #stats .stats-table,
        #stats .blocks-table {
            font-size: 11px;
        }

        #stats .stats-table th,
        #stats .stats-table td,
        #stats .blocks-table th,
        #stats .blocks-table td {
            padding: 4px 6px;
        }

        #stats .pie-chart-wrapper {
            width: 100%;
            max-width: 200px;
            height: 200px;
        }
    }


    @media (max-width: 800px) {

        /* Hide Transaction Count column (5th column in recent stats table) */
        #stats .recent-stats-table th:nth-child(5) {
            display: none;
        }

        /* Hide % of Minted column (3rd column in both tables) */
        #stats .stats-table th:nth-child(3),
        #stats .stats-table td:nth-child(3) {
            display: none;
        }

        /* Make remaining columns more compact */
        #stats .stats-table {
            font-size: 9px;
        }

        #stats .stats-table th,
        #stats .stats-table td {
            padding: 2px 4px;
        }

        #stats .miner-name {
            font-size: 15px;
        }

        #stats .miner-indicator {
            width: 8px;
            height: 8px;
            margin-right: 6px;
        }
    }


    #stats a {
        color: #ffffff !important;
        text-decoration: none;
    }

    #stats a:hover {
        color: #64b5f6 !important;
        text-decoration: underline;
    }

    #stats a:visited {
        color: #ffffff !important;
    }

    /* Target only the MINER column */
    #stats .stats-table th:first-child,
    #stats .stats-table td:first-child {
        white-space: nowrap;
        word-wrap: normal;
        hyphens: none;
    }

    .miner-col {
        min-width: 125px;
        white-space: nowrap;
    }



    /*graphs*/
    /* Solution 1: Maximum width with minimal spacing */

    /* STATS PAGE SPECIFIC - Remove content padding */
    #stats .content {
        padding: 0px !important;
    }

    .chart-containerf {
        width: 1200px;
        height: 400px;
        margin: 10px 0;
        /* Minimal vertical spacing */
        padding: 0;
        position: relative;
    }


    /* Solution 2: Viewport-based sizing for maximum fill */
    .full-width-chart {
        width: 100vw;
        height: 45vh;
        /* 45% of viewport height per chart */
        margin: 5px 0;
        /* Very minimal spacing */
        padding: 0;
        position: relative;
        box-sizing: border-box;
    }

    .full-width-chart canvas {
        width: 100% !important;
        height: 100% !important;
        aspect-ratio: unset !important;
    }

    /* Solution 3: Container that fills parent completely */
    .charts-wrapper {
        width: 100%;
        height: 100vh;
        /* Full viewport height */
        display: flex;
        flex-direction: column;
        gap: 8px;
        /* Minimal gap between charts */
        padding: 4px;
        box-sizing: border-box;
    }

    .flex-chart-full {
        flex: 1;
        /* Each chart takes equal space */
        min-height: 0;
        /* Allow shrinking */
        position: relative;
    }

    .flex-chart-full canvas {
        width: 100% !important;
        height: 100% !important;
        aspect-ratio: unset !important;
    }

    /* Solution 4: CSS Grid for perfect space distribution */
    .grid-charts-container {
        width: 100%;
        height: 100vh;
        display: grid;
        grid-template-rows: 1fr 1fr 1fr 1fr;
        /* 4 equal rows */
        gap: 6px;
        padding: 5px;
        box-sizing: border-box;
    }

    .grid-chart-item {
        position: relative;
        min-height: 0;
    }

    .grid-chart-item canvas {
        width: 100% !important;
        height: 100% !important;
        aspect-ratio: unset !important;
    }

    /* Solution 5: Two-column layout maximizing space */
    .two-column-charts {
        width: 100%;
        height: 100vh;
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr 1fr;
        gap: 8px;
        padding: 5px;
        box-sizing: border-box;
    }

    .two-column-chart {
        position: relative;
        min-height: 0;
    }

    .two-column-chart canvas {
        width: 100% !important;
        height: 100% !important;
        aspect-ratio: unset !important;
    }

    /* Solution 6: Single column with calculated heights */
    .calculated-height-charts {
        width: 100%;
        padding: 5px;
    }

    .calc-chart {
        width: 100%;
        height: calc(25vh - 10px);
        /* 25% of viewport minus small margin */
        margin: 5px 0;
        position: relative;
    }

    .calc-chart canvas {
        width: 100% !important;
        height: 100% !important;
        aspect-ratio: unset !important;
    }

    /* Remove any default margins/padding that might create space */
    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

    body,
    html {
        width: 100%;
        height: 100%;
        overflow-x: hidden;
        /* Prevent horizontal scroll */
    }

    /* Override any existing chart styles */
    #chart-hashrate-difficulty,
    #chart-rewardtime,
    #chart-pricetime,
    #chart-AvgRevenue {
        width: 100% !important;
        height: 100% !important;
        aspect-ratio: unset !important;
        display: block !important;
        box-sizing: border-box !important;
    }


    #controlsGraph {
        margin-bottom: 20px;
        text-align: center;
    }

    #controlsGraph button {
        background: #4CAF50;
        color: white;
        border: none;
        padding: 10px 20px;
        margin: 5px;
        border-radius: 4px;
        cursor: pointer;
    }

    #controlsGraph button:hover {
        background: #45a049;
    }

    #stats-graphs h2 {
        text-align: center;
    }


    /* Solution 1: Force canvas sizing with viewport units */
    .chart-containerf {
        width: 100%;
        height: 30%;
        margin: 4vh 0 !important;
        padding: 0;
        position: relative;
    }

    .chart-containerf canvas {
        width: 100% !important;
        height: 100% !important;
        /* Force canvas to match container */
        display: block !important;
    }


    #stats-graphs h2 {
        text-align: center;
        margin: 120px 0 60px 0 !important;
        /* Space around headings */
    }

    .chart-containerf {
        width: 100%;
        /* full width of parent */
        max-width: 100vw;
        /* prevent overflow */
        margin: 0 auto;
    }

    .chart-containerf>div {
        width: 100%;
        /* full width of container */
        height: 400px;
        /* or whatever height you want */
        max-height: 600px;
        /* optional, limit height */
        position: relative;
        /* required for Chart.js canvas sizing */
    }

    /* Updated CSS - NO SCROLLING VERSION */
    /* Base table styles for both tables */



    /* BASE STYLES FOR ALL STATS TABLES */
    #stats .stats-table-wrapper {
        flex: 1;
        min-width: 0;
        width: 100%;
        overflow: hidden;
    }

    #stats .stats-table,
    #stats .blocks-table {
        width: 100%;
        border-collapse: collapse;
        background: transparent;
        table-layout: auto;
        font-size: clamp(8px, 1.8vw, 20px);
    }

    #stats .stats-table thead,
    #stats .blocks-table thead {
        border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    }

    #stats .stats-table th,
    #stats .blocks-table th {
        text-align: left;
        padding: clamp(2px, 0.5vw, 8px) clamp(3px, 0.8vw, 12px);
        font-weight: 600;
        color: #b0b0c0;
        font-size: clamp(6px, 1.3vw, 11px);
        text-transform: uppercase;
        letter-spacing: 0.1px;
        white-space: normal;
        /* Allow headers to wrap */
        line-height: 1.1;
        /* Tighter line spacing for wrapped headers */
        word-wrap: break-word;
        hyphens: auto;
        background: rgba(255, 255, 255, 0.05);
    }

    #stats .stats-table td,
    #stats .blocks-table td {
        padding: clamp(2px, 0.5vw, 8px) clamp(3px, 0.8vw, 12px);
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        vertical-align: middle;
        font-size: clamp(8px, 1.8vw, 20px);
        white-space: nowrap;
    }

    #stats .stats-table tbody tr:hover,
    #stats .blocks-table tbody tr:hover {
        background: rgba(255, 255, 255, 0.05);
    }

    /* MINER ROW STYLES */
    #stats .miner-row {
        position: relative;
    }

    #stats .miner-indicator {
        display: inline-block;
        width: clamp(6px, 1vw, 12px);
        height: clamp(6px, 1vw, 12px);
        border-radius: 2px;
        margin-right: clamp(3px, 0.5vw, 8px);
        vertical-align: middle;
        flex-shrink: 0;
    }

    #stats .miner-name {
        font-family: 'Monaco', 'Consolas', monospace;
        font-size: clamp(8px, 1.6vw, 18px);
        color: #ffffff;
        font-weight: 500;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    #stats .mining-pool {
        background: #ff6b35;
    }

    /* TEXT STYLES */
    #stats .stat-value {
        font-weight: 600;
        color: #ffffff;
    }

    #stats .stat-secondary {
        color: #b0b0c0;
        font-size: clamp(8px, 1.6vw, 18px);
    }

    #stats .currency {
        color: #4caf50;
        font-weight: 600;
    }

    /* BLOCKS TABLE SPECIFIC STYLES */
    #stats .blocks-table .hash {
        font-family: 'Monaco', 'Consolas', monospace;
        font-size: clamp(7px, 1.4vw, 16px);
        color: #64b5f6;
        word-wrap: break-word;
        max-width: 150px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* BLOCKS TABLE SPECIFIC STYLES */
    #stats .blocks-table .hash2 {
        font-family: 'Monaco', 'Consolas', monospace;
        font-size: clamp(7px, 1.4vw, 16px);
        color: #64b5f6;
        word-wrap: break-word;
        max-width: 70px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    #stats .blocks-table .miner-cell {
        background: rgba(156, 39, 176, 0.2);
        color: #ce93d8;
        border-radius: 4px;
        padding: 4px 8px;
        font-size: clamp(7px, 1.4vw, 16px);
        display: inline-block;
        font-family: 'Monaco', 'Consolas', monospace;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 250px;
    }

    /* SECTION LAYOUT */
    #stats .section {
        background: rgba(255, 255, 255, 0.05);
        padding: clamp(15px, 3vw, 30px);
        border-radius: 8px;
        margin-bottom: 20px;
    }

    #stats .section h4 {
        margin: 0 0 20px 0;
        color: #b0b0c0;
        font-size: clamp(14px, 2.5vw, 24px);
        font-weight: 600;
    }

    /* CHART CONTAINER */
    #stats .chart-containerf {
        display: flex;
        gap: clamp(15px, 3vw, 30px);
        align-items: flex-start;
    }

#stats .pie-chart-wrapper {
    flex-shrink: 0;
    width: 200px;
    height: 200px;
    position: relative;
}


    /* LINKS */
    #stats a {
        color: #ffffff !important;
        text-decoration: none;
    }

    #stats a:hover {
        color: #64b5f6 !important;
        text-decoration: underline;
    }

    #stats a:visited {
        color: #ffffff !important;
    }

    /* LOADING STATE */
    #stats .stats-table td[colspan],
    #stats .blocks-table td[colspan] {
        text-align: center;
        color: #b0b0c0;
        font-style: italic;
        padding: 20px;
    }

    /* RESPONSIVE BREAKPOINTS */

    /* Tablet */
    @media (max-width: 900px) {
        #stats .chart-containerf {
            flex-direction: column;
            gap: 15px;
        }

        #stats .pie-chart-wrapper {
            width: 100%;
            max-width: 200px;
            height: 200px;
            margin: 0 auto;
        }

        /* Hide less important columns on tablets */
        #stats .recent-stats-table th:nth-child(3),
        #stats .recent-stats-table td:nth-child(3) {
            display: none;
            /* Hide % of Mined columns */
        }
    }

    /* Small tablet/large phone */
    @media (max-width: 700px) {
        #stats .section {
            padding: 15px;
        }

        /* Hide transaction count columns */
        #stats .recent-stats-table th:nth-child(5),
        #stats .recent-stats-table td:nth-child(5),
        #stats .total-stats-table th:nth-child(4),
        #stats .total-stats-table td:nth-child(4) {
            display: none;
        }

        /* Reduce font sizes more aggressively */
        #stats .stats-table,
        #stats .blocks-table {
            font-size: clamp(7px, 1.5vw, 16px);
        }
    }

    /* Mobile */
    @media (max-width: 500px) {
        #stats .section {
            padding: 12px;
        }

        /* Hide epoch columns on mobile */
        #stats .recent-stats-table th:nth-child(2),
        #stats .recent-stats-table td:nth-child(2),
        #stats .total-stats-table th:nth-child(2),
        #stats .total-stats-table td:nth-child(2) {
            display: none;
        }

        /* Ultra-compact sizing */
        #stats .stats-table,
        #stats .blocks-table {
            font-size: clamp(6px, 1.3vw, 14px);
        }

        #stats .stats-table th,
        #stats .blocks-table th {
            font-size: clamp(5px, 1.1vw, 9px);
            padding: 2px 4px;
        }

        #stats .stats-table td,
        #stats .blocks-table td {
            padding: 3px 4px;
        }

        #stats .pie-chart-wrapper {
            max-width: 150px;
            height: 150px;
        }
    }

    /* Very small screens */
    @media (max-width: 350px) {
        #stats .section {
            padding: 10px;
        }

        /* Emergency micro-sizing */
        #stats .stats-table,
        #stats .blocks-table {
            font-size: clamp(5px, 1.2vw, 12px);
        }

        #stats .stats-table th,
        #stats .blocks-table th {
            font-size: clamp(4px, 1vw, 8px);
            padding: 1px 3px;
        }

        #stats .stats-table td,
        #stats .blocks-table td {
            padding: 2px 3px;
        }
    }

    /*END OF STATISTICS CSS*/
    /* Add this AFTER your base .content { padding: 40px; } rule */

    /* Override when stats tab is active */
    body.stats-active .content,
    .content.stats-active {
        padding: 0px !important;
    }



    .header55 {
        color: white;
        padding: 30px;
        text-align: center;
    }

    .header55 h1 {
        font-size: 2.5rem;
        margin-bottom: 10px;
        font-weight: 300;
    }

    .stats55 {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
        padding: 30px;
        border-bottom: 1px solid #e9ecef;
    }

    .stat-card55 {
        padding: 20px;
        border-radius: 10px;
        text-align: center;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
        transition: transform 0.3s ease;
    }

    .stat-card55:hover {
        transform: translateY(-5px);
    }

    .stat-value55 {
        font-size: 2rem;
        font-weight: bold;
        color: white;
        margin-bottom: 5px;
    }

    .stat-label55 {
        color: white;
        font-size: 0.9rem;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    .table-container55 {
        padding: 30px;
    }

    .controls55 {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 20px;
        gap: 20px;
        flex-wrap: wrap;
    }

    .search-box {
        flex: 1;
        min-width: 200px;
        padding: 12px 20px;
        border: 2px solid #e9ecef;
        border-radius: 25px;
        font-size: 16px;
        transition: border-color 0.3s ease;
    }

    .search-box:focus {
        outline: none;
        border-color: #3498db;
    }

    .page-size-selector {
        padding: 10px 15px;
        border: 2px solid #e9ecef;
        border-radius: 8px;
        background: white;
        cursor: pointer;
    }






    /* Add this class to your table element */
    .staking-table th {
        padding: 12px 16px;
    }

    .address55 {
        font-size: 0.8em;
        font-family: 'Courier New', monospace;
        padding: 8px 12px;
        border-radius: 6px;
        word-break: break-all;
    }

    .balance55 {
        font-size: 3em;
        text-align: center;
        font-weight: bold;
        color: #27ae60;
        padding: 8px 25px;
        /* top/bottom: 8px, left/right: 16px */
    }

    .rank55 {
        font-size: 3em;
        text-align: center;
        font-weight: bold;
        color: white;
        padding: 1px 4px;
        /* top/bottom: 8px, left/right: 16px */
    }

    .pagination55 {
        display: flex;
        justify-content: center;
        align-items: center;
        margin-top: 30px;
        gap: 10px;
    }

    .pagination55 button {
        padding: 12px 18px;
        border: 2px solid #e9ecef;
        background: white;
        cursor: pointer;
        border-radius: 8px;
        transition: all 0.3s ease;
        font-weight: 500;
    }

    .pagination55 button:hover:not(:disabled) {
        background: #3498db;
        color: white;
        border-color: #3498db;
    }

    .pagination55 button.active {
        background: #3498db;
        color: white;
        border-color: #3498db;
    }

    .pagination55 button:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

    .pagination55-info {
        margin: 0 20px;
        color: #7f8c8d;
        font-size: 0.9rem;
    }

    .loading55 {
        text-align: center;
        padding: 60px;
        color: #7f8c8d;
        font-size: 1.2rem;
    }

    .error {
        text-align: center;
        padding: 60px;
        color: #e74c3c;
        font-size: 1.2rem;
    }

    .refresh-btn {
        background: linear-gradient(135deg, #27ae60, #2ecc71);
        color: white;
        border: none;
        padding: 12px 24px;
        border-radius: 25px;
        cursor: pointer;
        font-weight: 600;
        transition: transform 0.3s ease;
    }

    .refresh-btn:hover {
        transform: scale(1.05);
    }

    @media (max-width: 768px) {
        .header55 h1 {
            font-size: 2rem;
        }

        .balance55 {
            font-size: 2em;
            text-align: center;
            font-weight: bold;
            color: #27ae60;
            padding: 8px 15px;
            /* top/bottom: 8px, left/right: 16px */
        }

        .controls55 {
            flex-direction: column;
            align-items: stretch;
        }

        .search-box {
            min-width: unset;
        }

        table {
            font-size: 0.9rem;
        }

        th,
        td {
            padding: 15px 10px;
        }
    }

    .table-container55 {
        padding: 3px;
    }

    @media (max-width: 500px) {
        .header55 h1 {
            font-size: 1.5rem;
        }

        .table-container55 {
            padding: 0px;
        }

        .balance55 {
            font-size: 1.3em;
            text-align: center;
            font-weight: bold;
            color: #27ae60;
            padding: 4px 7px;
            /* top/bottom: 8px, left/right: 16px */
        }

        .controls55 {
            flex-direction: column;
            align-items: stretch;
        }

        .search-box {
            min-width: unset;
        }

        table {
            font-size: 0.9rem;
        }

        th,
        td {
            padding: 15px 10px;
        }
    }


    @media (max-width: 768px) {
        #stats .blocks-table .hash2 {
            font-size: 8px;
            max-width: 40px;
            padding: 1px 2px;
        }
    }

    #stats .blocks-table th:nth-child(1) {
        width: 40px;
    }

    /* First column (hash2) */
    #stats .blocks-table th:nth-child(2) {
        width: 100px;
    }

    /* Second column */
    #stats .blocks-table th:nth-child(3) {
        width: 80px;
    }

    /* Third column */
    /* Add more as needed for each column */















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

    .bx-document-wrapper {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #2c3e50 !important;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

    .bx-header-container {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        padding: 4rem 2rem;
        text-align: center;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }

    .bx-title-primary {
        font-size: 3.5rem;
        font-weight: 700;
        margin-bottom: 1rem;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    }

    .bx-subtitle-text {
        font-size: 1.4rem;
        opacity: 0.9;
        font-weight: 300;
    }

    .bx-content-main {
        max-width: 1200px;
        margin: 0 auto;
        padding: 3rem 2rem;
        background: white;
        box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
        border-radius: 15px;
        margin-top: -2rem;
        position: relative;
        z-index: 10;
    }

   .bx-section-block {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 1rem; /* Add some breathing room */
}

    .bx-section-block:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
    }

    .bx-heading-secondary {
        color: #667eea;
        font-size: 2rem;
        margin-bottom: 1.5rem;
        font-weight: 600;
        display: flex;
        align-items: center;
    }

    .bx-heading-secondary::before {
        content: '';
        display: inline-block;
        width: 8px;
        height: 8px;
        background: #667eea;
        border-radius: 50%;
        margin-right: 12px;
    }

    .bx-text-paragraph {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
        line-height: 1.8;
        text-align: justify;
        color: #2c3e50 !important;
    }

    /* Fix whitepaper text visibility - ensure all text is dark and readable */
    #whitepaper {
        color: #2c3e50 !important;
    }

    #whitepaper * {
        color: inherit !important;
    }

    #whitepaper .bx-document-wrapper * {
        color: #2c3e50 !important;
    }

    #whitepaper .bx-header-container,
    #whitepaper .bx-header-container * {
        color: white !important;
    }

    #whitepaper .bx-highlight-box,
    #whitepaper .bx-highlight-box * {
        color: white !important;
    }

    #whitepaper .bx-feature-card,
    #whitepaper .bx-feature-card * {
        color: #2c3e50 !important;
    }

    .bx-highlight-box {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: black;
        padding: 2rem;
        border-radius: 12px;
        margin: 2rem 0;
        box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
    }

.bx-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}
.bx-feature-card {
    background: black;
    padding: 1.5rem; /* Reduce from 2rem */
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

    .bx-feature-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    }

    .bx-feature-title {
        color: #667eea;
        font-size: 1.4rem;
        font-weight: 600;
        margin-bottom: 1rem;
    }

    .bx-stats-container {
        display: flex;
        justify-content: space-around;
        flex-wrap: wrap;
        margin: 2rem 0;
        padding: 2rem;
        background: #f8f9fa;
        border-radius: 12px;
    }

    .bx-stat-item {
        text-align: center;
        margin: 1rem;
    }

    .bx-stat-number {
        font-size: 2.5rem;
        font-weight: 700;
        color: #667eea;
        display: block;
    }

    .bx-stat-label {
        font-size: 1rem;
        color: #6c757d;
        margin-top: 0.5rem;
    }

    .bx-tech-specs {
        background: #2c3e50;
        color: white;
        padding: 2rem;
        border-radius: 12px;
        margin: 2rem 0;
    }

    .bx-spec-list {
        list-style: none;
        padding: 0;
    }

    .bx-spec-item {
        padding: 0.8rem 0;
        border-bottom: 1px solid #34495e;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .bx-spec-item:last-child {
        border-bottom: none;
    }

    .bx-spec-label {
        font-weight: 600;
        color: #ecf0f1;
    }

    .bx-spec-value {
        color: #3498db;
        font-weight: 500;
    }

    .bx-mining-info {
        background: linear-gradient(45deg, #f093fb 0%, #f5576c 100%);
        color: white;
        padding: 2rem;
        border-radius: 12px;
        margin: 2rem 0;
        text-align: center;
    }

    .bx-cta-button {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        padding: 1rem 2rem;
        border: none;
        border-radius: 50px;
        font-size: 1.1rem;
        font-weight: 600;
        cursor: pointer;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        margin: 1rem;
        text-decoration: none;
        display: inline-block;
    }

    .bx-cta-button:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    }

    .bx-footer-section {
        background: #2c3e50;
        color: white;
        padding: 3rem 2rem;
        text-align: center;
        margin-top: 3rem;
    }

    @media (max-width: 768px) {
        .bx-title-primary {
            font-size: 2.5rem;
        }

        .bx-content-main {
            padding: 2rem 1rem;
        }

        .bx-section-block {
            padding: 0.35rem;
        }

        .bx-stats-container {
            flex-direction: column;
            align-items: center;
        }
    }

    .bx-scroll-indicator {
        position: fixed;
        top: 0;
        left: 0;
        width: 0%;
        height: 4px;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        z-index: 9999;
        transition: width 0.3s ease;
    }

    .bx-fade-in {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }

    .bx-fade-in.bx-visible {
        opacity: 1;
        transform: translateY(0);
    }

    /*Whitepaper stuff*/

    /*CSS FOR rich list just b0x and mainnet b0x*/

    .header-rich {
        color: white;
        padding: 30px;
        text-align: center;
    }

    .header-rich h1 {
        font-size: 2.5rem;
        margin-bottom: 10px;
        font-weight: 300;
    }

    .stats-rich {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
        padding: 30px;
        border-bottom: 1px solid #e9ecef;
    }

    .stat-card-rich {
        padding: 20px;
        border-radius: 10px;
        text-align: center;
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.2);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        transition: transform 0.3s ease;
    }

    .stat-card-rich:hover {
        transform: translateY(-5px);
    }

    .stat-value-rich {
        font-size: 2rem;
        font-weight: bold;
        color: white;
        margin-bottom: 5px;
    }

    .stat-label-rich {
        color: rgba(255, 255, 255, 0.8);
        font-size: 0.9rem;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    .table-container-rich {
        padding: 3px;
        margin: 10px;
        border-radius: 7px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }

    .controls-rich {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 20px;
        gap: 20px;
        flex-wrap: wrap;
    }

    .search-rich {
        flex: 1;
        min-width: 200px;
        padding: 12px 20px;
        border: 2px solid #e9ecef;
        border-radius: 25px;
        font-size: 16px;
        transition: border-color 0.3s ease;
    }

    .search-rich:focus {
        outline: none;
        border-color: #667eea;
    }

    .page-size-rich {
        padding: 10px 15px;
        border: 2px solid #e9ecef;
        border-radius: 8px;
        background: white;
        cursor: pointer;
    }

    .sort-buttons {
        display: flex;
        gap: 10px;
    }

    .sort-btn {
        padding: 10px 20px;
        border: 2px solid #667eea;
        background: white;
        color: #667eea;
        border-radius: 8px;
        cursor: pointer;
        transition: all 0.3s ease;
        font-weight: 600;
    }

    .sort-btn.active {
        background: #667eea;
        color: white;
    }

    .sort-btn:hover {
        background: #667eea;
        color: white;
    }

    .refresh-rich {
        background: linear-gradient(135deg, #667eea, #764ba2);
        color: white;
        border: none;
        padding: 12px 24px;
        border-radius: 25px;
        cursor: pointer;
        font-weight: 600;
        transition: transform 0.3s ease;
    }

    .refresh-rich:hover {
        transform: scale(1.05);
    }

    .table-rich {
        width: 100%;
        border-collapse: collapse;
        margin: 20px 0;
        border-radius: 10px;
        overflow: hidden;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    }

    .table-rich th {
        color: white;
        padding: 15px;
        text-align: left;
        font-weight: 600;
        letter-spacing: 1px;
        font-size: 0.9rem;
    }

    .table-rich td {
        padding: 15px;
        border-bottom: 1px solid #f0f0f0;
        transition: background-color 0.3s ease;
    }

    .table-rich tr:hover {
        background-color: black;
    }

    .address-rich {
        font-family: 'Courier New', monospace;
        font-size: 0.85rem;
        color: white;
        word-break: break-all;
    }

    .spot-rich {
        font-weight: bold;
        color: white;
        font-size: 1.1rem;
        text-align: center;
    }

    .pagination-rich {
        display: flex;
        justify-content: center;
        align-items: center;
        margin-top: 30px;
        gap: 10px;
    }

    .pagination-rich button {
        padding: 12px 18px;
        border: 2px solid #e9ecef;
        background: white;
        cursor: pointer;
        border-radius: 8px;
        transition: all 0.3s ease;
        font-weight: 500;
    }

    .pagination-rich button:hover:not(:disabled) {
        background: #667eea;
        color: white;
        border-color: #667eea;
    }

    .pagination-rich button.active {
        background: #667eea;
        color: white;
        border-color: #667eea;
    }

    .pagination-rich button:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

    .pagination-info-rich {
        margin: 0 20px;
        color: #7f8c8d;
        font-size: 0.9rem;
    }

    .loading-rich {
        text-align: center;
        padding: 60px;
        color: #7f8c8d;
        font-size: 1.2rem;
    }

    .error-rich {
        text-align: center;
        padding: 60px;
        color: #e74c3c;
        font-size: 1.2rem;
    }

    @media (max-width: 768px) {
        .header-rich h1 {
            font-size: 2rem;
        }

        .controls-rich {
            flex-direction: column;
            align-items: stretch;
        }

        .search-rich {
            min-width: unset;
        }

        .table-rich {
            font-size: 0.9rem;
        }

        .table-rich th,
        .table-rich td {
            padding: 12px 8px;
        }

        .sort-buttons {
            justify-content: center;
            width: 100%;
        }
    }


    .address-rich a {
        color: #667eea;
        text-decoration: none;
    }

    .address-rich a:hover {
        text-decoration: underline;
    }

    /*END CSS FOR rich list just b0x and mainnet b0x*/

    /*CSS FOR MINING SETUP HELP*/
    #b0x-miner-container {
        max-width: 1000px;
        margin: 0 auto;
        padding: 20px;
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        line-height: 1.6;
        color: white;
        min-height: 100vh;
    }

    #b0x-main-content {
        border-radius: 15px;
        padding: 40px;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    }

    #b0x-header {
        text-align: center;
        margin-bottom: 40px;
        padding-bottom: 20px;
    }

    #b0x-title {
        color: white;
        font-size: 2.5em;
        margin: 0;
        font-weight: bold;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    }

    #b0x-subtitle {
        color: white;
        font-size: 1.2em;
        margin: 10px 0 0 0;
    }

    .b0x-section {
        margin-bottom: 35px;
        padding: 25px;
        border-radius: 10px;
        border-left: 5px solid #2a5298;
    }

    .b0x-section-title {
        color: white;
        font-size: 1.5em;
        margin-bottom: 15px;
        font-weight: bold;
    }

    .b0x-step {
        color: white;
        margin-bottom: 20px;
        padding: 15px;
        border-radius: 8px;
        border: 1px solid #e9ecef;
    }

    .b0x-step-number {
        background: #2a5298;
        color: white;
        border-radius: 50%;
        width: 30px;
        height: 30px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-right: 10px;
        font-weight: bold;
        font-size: 1.1em;
    }

    .b0x-download-links {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 20px;
        margin: 20px 0;
    }

    .b0x-download-card {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        padding: 25px;
        border-radius: 10px;
        text-align: center;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .b0x-download-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    }

    .b0x-download-btn {
        display: inline-block;
        background: white;
        color: #2a5298;
        padding: 12px 25px;
        text-decoration: none;
        border-radius: 25px;
        font-weight: bold;
        margin-top: 15px;
        transition: all 0.3s ease;
        border: 2px solid white;
    }

    .b0x-download-btn:hover {
        background: transparent;
        color: white;
        transform: scale(1.05);
    }

    .b0x-external-link {
        color: #FFD700;
        text-decoration: none;
        font-weight: bold;
        border-bottom: 2px solid transparent;
        transition: border-color 0.3s ease;
    }

    .b0x-external-link:hover {
        border-bottom-color: #FFD700;
    }

    .b0x-config-block {
        background: #1e1e1e;
        color: #f8f8f2;
        padding: 20px;
        border-radius: 8px;
        font-family: 'Courier New', monospace;
        margin: 15px 0;
        overflow-x: auto;
        border-left: 4px solid #2a5298;
    }

    .b0x-important-note {
        background: linear-gradient(135deg, #ff6b6b, #ffa726);
        color: white;
        padding: 20px;
        border-radius: 10px;
        margin: 20px 0;
        font-weight: bold;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }

    .b0x-bridge-links {
        display: flex;
        gap: 15px;
        margin: 20px 0;
        flex-wrap: wrap;
    }

    .b0x-bridge-btn {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        padding: 15px 30px;
        text-decoration: none;
        border-radius: 8px;
        font-weight: bold;
        transition: transform 0.3s ease;
        display: inline-block;
    }

    .b0x-bridge-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    }

    .b0x-final-section {
        background: linear-gradient(135deg, #4CAF50, #45a049);
        color: white;
        padding: 30px;
        border-radius: 15px;
        text-align: center;
        margin-top: 40px;
    }

    .b0x-platform-instructions {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
        gap: 20px;
        margin: 20px 0;
    }

    .b0x-platform-card {
        padding: 20px;
        border-radius: 10px;
        border: 2px solid #e9ecef;
        transition: border-color 0.3s ease;
    }

    .b0x-platform-card:hover {
        border-color: #2a5298;
    }

    .b0x-platform-title {
        color: white;
        font-size: 1.3em;
        font-weight: bold;
        margin-bottom: 15px;
        display: flex;
        align-items: center;
    }

    .b0x-platform-icon {
        width: 30px;
        height: 30px;
        margin-right: 10px;
        background: #2a5298;
        border-radius: 5px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-weight: bold;
    }

    @media (max-width: 768px) {
        #b0x-miner-container {
            padding: 10px;
        }

        #b0x-main-content {
            padding: 20px;
        }

        #b0x-title {
            font-size: 2em;
        }

        .b0x-download-links {
            grid-template-columns: 1fr;
        }

        .b0x-platform-instructions {
            grid-template-columns: 1fr;
        }
    }

    /*END MINING SETUP HELP */


    .mining-stats-button {
        background: linear-gradient(45deg, #ff6b6b, #ffd93d, #6bcf7f, #4ecdc4, #45b7d1, #96ceb4);
        background-size: 400% 400%;
        animation: gradientShift 3s ease infinite;
        border: none;
        padding: 20px 50px;
        font-size: 1.5em;
        font-weight: bold;
        color: white;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
        border-radius: 15px;
        cursor: pointer;
        transition: all 0.3s ease;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
        text-transform: uppercase;
        letter-spacing: 2px;
        position: relative;
        overflow: hidden;
    }

    .mining-stats-button::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
        transition: left 0.5s;
    }

    .mining-stats-button:hover::before {
        left: 100%;
    }

    .mining-stats-button:hover {
        transform: translateY(-3px) scale(1.05);
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    }

    .mining-stats-button:active {
        transform: translateY(-1px) scale(1.02);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    }

    @keyframes gradientShift {
        0% {
            background-position: 0% 50%;
        }

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

        100% {
            background-position: 0% 50%;
        }
    }

    .sparkle {
        position: absolute;
        width: 4px;
        height: 4px;
        background: white;
        border-radius: 50%;
        pointer-events: none;
        animation: sparkle 1.5s ease-in-out infinite;
    }

    @keyframes sparkle {

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

        50% {
            opacity: 1;
            transform: scale(1);
        }
    }


    /*RELOAD BUTTON BELOW CSS*/





    /* Reload container takes full width and centers button */
    .reload-container {
        width: 100%;
        position: relative;
        margin: 20px 0;
        height: 200px;
        /* Fixed height to center within */
        box-sizing: border-box;
    }

    /*RELOAD BUTTON BELOW CSS*/
    .reload-btn {
        position: absolute;
        right: 100px;
        top: 50%;
        transform: translateY(-50%);
        /* This centers it vertically */
        width: 160px;
        height: 160px;
        cursor: pointer;
    }

    /* Force SVG to fill exactly the box, no extra space */
    .reload-icon {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        display: block;
        color: #FFD700;
        object-fit: cover;
    }

    .overlay {
        position: absolute;
        inset: 0;
        display: flex;
        justify-content: center;
        align-items: center;
        pointer-events: none;
    }

    .countdown {
        font-size: 48px;
        font-weight: bold;
        color: #FFD700;
        user-select: none;
    }

    /* Mobile responsive */
    @media (max-width: 768px) {
        .reload-container {
            height: 160px;
        }

        .reload-btn {
            right: 20px;
            width: 120px;
            height: 120px;
        }

        .countdown {
            font-size: 36px;
        }
    }

    /*RELOAD BUTTON ABOVE CSS*/

    /*RELOAD BUTTON ABOVE CSS*/
.bx-text-paragraph {
    text-align: left;
    line-height: 1.6;
}

/* Only justify on wider screens where it looks better */
@media (min-width: 1024px) {
    .bx-text-paragraph {
        text-align: justify;
        hyphens: auto;
        -webkit-hyphens: auto;
    }
}

        .section {
            margin-bottom: 4rem;
        }

        .section-title {
            font-size: 2.5rem;
            text-align: center;
            margin-bottom: 2rem;
            background: linear-gradient(135deg, #00d4ff, #ff6b6b);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

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

        .social-link {
            display: flex;
            align-items: center;
            gap: 1rem;
            padding: 1.5rem;
            background: rgba(255, 255, 255, 0.05);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 15px;
            text-decoration: none;
            color: #ffffff;
            font-weight: 500;
            transition: all 0.3s ease;
        }

        .social-link:hover {
            background: rgba(255, 255, 255, 0.1);
            transform: translateY(-5px);
            box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
        }

        .social-icon {
            width: 32px;
            height: 32px;
            flex-shrink: 0;
        }

        .discord { border-left: 4px solid #5865F2; }
        .github { border-left: 4px solid #333; }
        .twitter { border-left: 4px solid #1DA1F2; }
        .telegram { border-left: 4px solid #0088cc; }
        .medium { border-left: 4px solid #00ab6c; }
        .bitcointalk { border-left: 4px solid #f7931a; }
        .website { border-left: 4px solid #00d4ff; }
        .reddit { border-left: 4px solid #ff4500; }

        .team-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
            gap: 2rem;
        }

        .team-member-card {
            background: rgba(255, 255, 255, 0.05);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 20px;
            padding: 2rem;
            transition: all 0.3s ease;
        }

        .team-member-card:hover {
            background: rgba(255, 255, 255, 0.08);
            transform: translateY(-5px);
            box-shadow: 0 15px 40px rgba(0, 212, 255, 0.2);
        }

        .member-header {
            display: flex;
            align-items: center;
            gap: 1.5rem;
            margin-bottom: 1.5rem;
        }

        .member-avatar {
            width: 60px;
            height: 60px;
            border-radius: 50%;
            background: linear-gradient(135deg, #00d4ff, #ff6b6b);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
            font-weight: bold;
            color: white;
        }

        .member-name {
            font-size: 1.4rem;
            margin-bottom: 0.5rem;
            color: #00d4ff;
        }

        .member-role {
            color: #b0b0b0;
            font-size: 0.9rem;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .member-bio {
            margin-bottom: 1.5rem;
        }

        .member-bio p {
            color: #e0e0e0;
            line-height: 1.6;
        }

        .member-social-links {
            display: flex;
            gap: 1rem;
        }

        .member-social {
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 10px;
            color: #ffffff;
            text-decoration: none;
            transition: all 0.3s ease;
        }

        .member-social:hover {
            background: rgba(0, 212, 255, 0.3);
            transform: scale(1.1);pie-chart-wrapper
        }

        .member-social svg {
            width: 20px;
            height: 20px;
        }

        @media (max-width: 768px) {
            .page-title {
                font-size: 2rem;
            }

            .section-title {
                font-size: 2rem;
            }

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

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

            .member-header {
                flex-direction: column;
                text-align: center;
            }
        }


        /*rpc setting*/
        .rpc-textarea {
    width: 100%;
    min-width: 200px;
    min-height: 80px;
    max-height: 200px;
    padding: 12px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 14px;
    line-height: 1.4;
    resize: vertical;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.rpc-textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.rpc-textarea:hover {
    border-color: #b6c2cf;
}

/* Auto-expand functionality */
.rpc-textarea {
    overflow: hidden;
    resize: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .rpc-textarea {
        min-width: 100%;
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

