/* =========================================================
   ELFIK'S POOL — COMPLETE HOME REDESIGN
   2026
   Visual layer only — NOMP functionality untouched
   ========================================================= */

:root {
    --elfik-bg: #050914;
    --elfik-bg-2: #080d1b;
    --elfik-panel: rgba(13, 20, 38, .82);
    --elfik-panel-strong: #0d1528;
    --elfik-panel-hover: #111d35;

    --elfik-border: rgba(120, 160, 220, .16);
    --elfik-border-bright: rgba(73, 184, 255, .42);

    --elfik-text: #f5f8ff;
    --elfik-text-2: #a9b7ce;
    --elfik-text-3: #667791;

    --elfik-blue: #35a9ff;
    --elfik-cyan: #22e6d3;
    --elfik-violet: #8b6cff;
    --elfik-green: #24d98b;
    --elfik-orange: #ffb454;
    --elfik-red: #ff5d73;

    --elfik-gradient:
        linear-gradient(135deg,
            #24e6d3 0%,
            #35a9ff 48%,
            #8b6cff 100%);

    --elfik-shadow:
        0 24px 70px rgba(0, 0, 0, .38);

    --elfik-glow:
        0 0 45px rgba(53, 169, 255, .13);

    --elfik-radius: 20px;
}

/* =========================================================
   GLOBAL
   ========================================================= */

html {
    background: var(--elfik-bg);
}

body {
    background:
        radial-gradient(
            circle at 15% 10%,
            rgba(53,169,255,.10),
            transparent 28%
        ),
        radial-gradient(
            circle at 85% 20%,
            rgba(139,108,255,.09),
            transparent 30%
        ),
        radial-gradient(
            circle at 50% 100%,
            rgba(34,230,211,.06),
            transparent 35%
        ),
        var(--elfik-bg);

    color: var(--elfik-text);
    font-family: Inter, -apple-system, BlinkMacSystemFont,
        "Segoe UI", sans-serif;

    min-height: 100vh;
}

/* subtle grid */

body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -2;

    background-image:
        linear-gradient(
            rgba(255,255,255,.018) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255,255,255,.018) 1px,
            transparent 1px
        );

    background-size: 55px 55px;

    mask-image:
        linear-gradient(
            to bottom,
            black,
            transparent 75%
        );
}

/* =========================================================
   HEADER
   ========================================================= */

.header {
    height: 76px !important;

    background:
        rgba(5, 9, 20, .78) !important;

    backdrop-filter: blur(22px) saturate(140%);
    -webkit-backdrop-filter: blur(22px) saturate(140%);

    border-bottom:
        1px solid rgba(120,160,220,.12) !important;

    box-shadow:
        0 10px 40px rgba(0,0,0,.22);

    display: flex;
    align-items: center;
}

.header-content {
    max-width: 1500px !important;
    width: 100%;
    padding: 0 28px !important;
}

.logo {
    font-size: 1.35rem !important;
    letter-spacing: -.03em;
    font-weight: 800 !important;

    background: var(--elfik-gradient) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;

    filter:
        drop-shadow(0 0 14px rgba(53,169,255,.18));
}

.logo i {
    -webkit-text-fill-color: var(--elfik-cyan) !important;
}

/* navigation */

.nav {
    gap: 4px !important;
}

.nav-item {
    border-radius: 11px !important;
    padding: 9px 12px !important;

    color: #8998b0 !important;

    font-size: .82rem !important;
    font-weight: 600;

    transition:
        background .2s ease,
        color .2s ease,
        transform .2s ease;
}

.nav-item:hover {
    color: white !important;

    background:
        rgba(255,255,255,.055) !important;

    transform: translateY(-1px);
}

.nav-item.active {
    color: white !important;

    background:
        linear-gradient(
            135deg,
            rgba(53,169,255,.15),
            rgba(139,108,255,.12)
        ) !important;

    box-shadow:
        inset 0 0 0 1px rgba(53,169,255,.16),
        0 0 22px rgba(53,169,255,.07);
}

.nav-item.active i {
    color: var(--elfik-cyan);
}

/* =========================================================
   MAIN
   ========================================================= */

main {
    max-width: 1500px !important;
    padding:
        32px 28px 70px !important;
}

/* =========================================================
   HERO
   ========================================================= */

.hero {
    position: relative;

    min-height: 315px;

    margin-bottom: 22px !important;

    padding: 38px 44px !important;

    border-radius: 26px !important;

    background:
        linear-gradient(
            135deg,
            rgba(17,28,51,.94),
            rgba(8,15,30,.96)
        ) !important;

    border:
        1px solid rgba(100,160,230,.18) !important;

    box-shadow:
        0 30px 80px rgba(0,0,0,.35),
        inset 0 1px 0 rgba(255,255,255,.035);

    overflow: hidden;
}

/* cyan light */

.hero::before {
    content: "";

    position: absolute;

    width: 520px;
    height: 520px;

    top: -300px;
    right: -160px;

    background:
        radial-gradient(
            circle,
            rgba(53,169,255,.24),
            transparent 68%
        );

    filter: blur(20px);
}

/* violet light */

.hero::after {
    content: "";

    position: absolute;

    width: 400px;
    height: 400px;

    bottom: -300px;
    left: 20%;

    background:
        radial-gradient(
            circle,
            rgba(139,108,255,.16),
            transparent 68%
        );

    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;

    grid-template-columns:
        minmax(0, 1.3fr)
        minmax(300px, .7fr) !important;

    gap: 30px !important;
}

.hero-text h1 {
    font-size:
        clamp(2.3rem, 4vw, 4rem) !important;

    line-height: 1.02;

    letter-spacing: -.055em;

    margin-bottom: 16px !important;

    background:
        linear-gradient(
            135deg,
            #ffffff 0%,
            #c7eaff 40%,
            #68c9ff 72%,
            #9e88ff 100%
        ) !important;

    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

.hero-text {
    max-width: 700px;
}

.hero-text p {
    color: var(--elfik-text-2);
    font-size: 1rem;
    line-height: 1.7;
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;

    margin-top: 24px !important;
}

.hero-features li {
    padding: 7px 12px !important;

    border-radius: 999px;

    background:
        rgba(255,255,255,.035);

    border:
        1px solid rgba(255,255,255,.07);

    font-size: .82rem !important;

    color: #aebbd0 !important;

    gap: 8px !important;
}

.hero-features i {
    color: var(--elfik-green) !important;
    font-size: .85rem !important;
}

/* hero logo */

.hero-logo {
    min-height: 220px;

    display: flex;

    position: relative;
}

.hero-logo::before {
    content: "";

    width: 230px;
    height: 230px;

    position: absolute;

    background:
        radial-gradient(
            circle,
            rgba(53,169,255,.18),
            transparent 68%
        );

    filter: blur(12px);
}

.hero-logo img {
    position: relative;
    z-index: 2;

    max-width: 230px !important;

    filter:
        drop-shadow(0 20px 40px rgba(0,0,0,.5))
        drop-shadow(0 0 35px rgba(53,169,255,.18));

    animation:
        elfikFloat 6s ease-in-out infinite;
}

@keyframes elfikFloat {
    0%,100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-9px) rotate(1deg);
    }
}

/* =========================================================
   STATS GRID
   ========================================================= */

.stats-grid {
    display: grid !important;

    grid-template-columns:
        minmax(0, 1.25fr)
        minmax(0, .75fr) !important;

    gap: 18px !important;

    margin-bottom: 18px !important;
}

/* all stat cards */

.stat-card {
    position: relative;

    background:
        linear-gradient(
            145deg,
            rgba(17,28,50,.94),
            rgba(8,15,29,.96)
        ) !important;

    border:
        1px solid var(--elfik-border) !important;

    border-radius:
        var(--elfik-radius) !important;

    box-shadow:
        var(--elfik-shadow) !important;

    padding: 22px !important;

    overflow: hidden;

    transition:
        transform .25s ease,
        border-color .25s ease,
        box-shadow .25s ease;
}

.stat-card::before {
    height: 2px !important;

    background:
        var(--elfik-gradient) !important;

    opacity: .8;
}

.stat-card::after {
    content: "";

    position: absolute;

    width: 180px;
    height: 180px;

    top: -120px;
    right: -80px;

    background:
        radial-gradient(
            circle,
            rgba(53,169,255,.10),
            transparent 70%
        );

    pointer-events: none;
}

.stat-card:hover {
    transform: translateY(-4px);

    border-color:
        var(--elfik-border-bright) !important;

    box-shadow:
        0 25px 65px rgba(0,0,0,.42),
        0 0 35px rgba(53,169,255,.07) !important;
}

.stat-header {
    margin-bottom: 18px !important;
}

.stat-title {
    font-size: .95rem !important;
    font-weight: 700 !important;

    text-transform: uppercase;

    letter-spacing: .06em;

    color: #dbe7f8 !important;
}

.stat-icon {
    width: 38px !important;
    height: 38px !important;

    border-radius: 11px !important;

    background:
        linear-gradient(
            135deg,
            rgba(53,169,255,.14),
            rgba(139,108,255,.12)
        ) !important;

    border:
        1px solid rgba(53,169,255,.14);

    color: var(--elfik-cyan) !important;
}

/* values */

.stat-item {
    padding: 11px 0 !important;

    border-bottom:
        1px solid rgba(255,255,255,.045) !important;
}

.stat-label {
    color:
        var(--elfik-text-3) !important;

    font-size: .78rem !important;

    font-weight: 600;
}

.stat-value {
    color: #f2f7ff !important;

    font-size: 1rem !important;

    font-weight: 700 !important;
}

.stat-value .sub-value {
    color:
        var(--elfik-text-3) !important;
}

/* =========================================================
   DIGIBYTE / POOL HIGHLIGHT
   ========================================================= */

/*
   Existing content remains untouched.
   These styles make the DigiByte card feel like
   the main live pool panel.
*/

#statsHashratedigibyte,
#statsMinersdigibyte,
#statsWorkersdigibyte {
    color: var(--elfik-cyan) !important;

    font-size: 1.15rem !important;

    text-shadow:
        0 0 20px rgba(34,230,211,.16);
}

/* =========================================================
   STATS ROW
   ========================================================= */

.stats-row {
    display: grid !important;

    grid-template-columns:
        repeat(3, minmax(0, 1fr)) !important;

    gap: 18px !important;

    margin-top: 18px !important;
}

.stats-row .stat-card {
    min-height: 190px;
}

/* =========================================================
   TICKER
   ========================================================= */

.ticker-container {
    position: relative;

    background:
        rgba(9,16,31,.88) !important;

    border:
        1px solid rgba(120,160,220,.13) !important;

    border-radius:
        15px !important;

    padding:
        11px 15px !important;

    margin:
        18px 0 !important;

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.025),
        0 12px 35px rgba(0,0,0,.2);
}

.ticker-container::before {
    content: "";

    display: inline-block;

    width: 7px;
    height: 7px;

    margin-right: 8px;

    border-radius: 50%;

    background: var(--elfik-green);

    box-shadow:
        0 0 12px rgba(36,217,139,.8);

    animation:
        tickerPulse 2s infinite;
}

@keyframes tickerPulse {
    0%,100% {
        opacity: .55;
    }

    50% {
        opacity: 1;
    }
}

/* =========================================================
   FOOTER
   ========================================================= */

.footer {
    background:
        rgba(5,9,18,.86) !important;

    border-top:
        1px solid rgba(120,160,220,.10) !important;

    padding:
        34px 20px !important;

    margin-top:
        30px !important;

    color:
        var(--elfik-text-3) !important;
}

.footer-content {
    max-width:
        1200px !important;

    font-size:
        .82rem !important;
}

.footer-links {
    gap:
        8px !important;

    margin-top:
        18px !important;
}

.footer-links a {
    padding:
        8px 13px;

    border-radius:
        9px;

    background:
        rgba(255,255,255,.025);

    border:
        1px solid rgba(255,255,255,.05);

    color:
        #8998b0 !important;

    transition:
        all .2s ease;
}

.footer-links a:hover {
    color:
        white !important;

    background:
        rgba(53,169,255,.08);

    border-color:
        rgba(53,169,255,.2);

    transform:
        translateY(-2px);
}

/* =========================================================
   LANGUAGE SELECTOR
   ========================================================= */

.custom-lang-select {
    border:
        1px solid rgba(120,160,220,.14) !important;

    background:
        rgba(255,255,255,.035) !important;

    border-radius:
        10px !important;
}

.lang-dropdown {
    background:
        rgba(9,15,29,.97) !important;

    backdrop-filter:
        blur(20px);

    border:
        1px solid rgba(120,160,220,.18) !important;

    box-shadow:
        0 25px 70px rgba(0,0,0,.5) !important;

    border-radius:
        14px !important;
}

.lang-option:hover {
    background:
        rgba(53,169,255,.08) !important;
}

.lang-option.active {
    background:
        rgba(53,169,255,.12) !important;
}

/* =========================================================
   POOL MESSAGE
   ========================================================= */

.pool-message-banner {
    top:
        76px !important;

    box-shadow:
        0 10px 35px rgba(0,0,0,.35) !important;
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 1100px) {

    .nav-item span {
        display: none;
    }

    .nav-item {
        padding:
            10px !important;
    }

    .stats-grid {
        grid-template-columns:
            1fr !important;
    }

    .stats-row {
        grid-template-columns:
            repeat(2, minmax(0,1fr)) !important;
    }
}

@media (max-width: 768px) {

    body {
        padding-top:
            62px !important;
    }

    .header {
        height:
            62px !important;
    }

    .header-content {
        padding:
            0 15px !important;
    }

    .logo {
        font-size:
            1.15rem !important;
    }

    .nav {
        top:
            62px !important;

        background:
            rgba(5,9,20,.97) !important;

        backdrop-filter:
            blur(20px);
    }

    .nav.active .nav-item {
        display:
            flex !important;

        width:
            100%;

        justify-content:
            flex-start;

        padding:
            12px 14px !important;
    }

    .nav.active .nav-item span {
        display:
            inline !important;
    }

    main {
        padding:
            18px 14px 45px !important;
    }

    .hero {
        padding:
            28px 22px !important;

        border-radius:
            20px !important;
    }

    .hero-content {
        grid-template-columns:
            1fr !important;
    }

    .hero-text h1 {
        font-size:
            2.35rem !important;
    }

    .hero-logo {
        min-height:
            140px;
    }

    .hero-logo img {
        max-width:
            150px !important;
    }

    .hero-features {
        display:
            grid;

        grid-template-columns:
            1fr;
    }

    .stats-grid,
    .stats-row {
        grid-template-columns:
            1fr !important;
    }

    .stat-card {
        padding:
            18px !important;
    }
}

/* =========================================================
   SCROLLBAR
   ========================================================= */

::-webkit-scrollbar {
    width:
        8px;
}

::-webkit-scrollbar-track {
    background:
        #050914;
}

::-webkit-scrollbar-thumb {
    background:
        linear-gradient(
            180deg,
            #1b4265,
            #382d66
        );

    border-radius:
        20px;
}

::-webkit-scrollbar-thumb:hover {
    background:
        #35a9ff;
}

/* =========================================================
   SELECTION
   ========================================================= */

::selection {
    background:
        rgba(53,169,255,.30);

    color:
        white;
}

/* =========================================================
   FINAL POLISH
   ========================================================= */

a {
    transition:
        color .2s ease,
        opacity .2s ease;
}

button {
    font-family:
        inherit;
}

/* remove old excessive shadows */

.hero,
.stat-card,
.ticker-container {
    isolation:
        isolate;
}

/* =========================================================
   ELFIK POOL - DIGIBYTE POOL FULL WIDTH
   ========================================================= */

/* La ligne contenant le bloc DigiByte */
.stats-row {
    width: 100%;
    display: block;
}

/* Bloc DigiByte Pool */
.stats-row .stat-card {
    width: 100%;
    max-width: none;
    min-width: 0;
}

/* Contenu du bloc */
.stats-row .stat-content {
    width: 100%;
}

/* Organisation des statistiques DigiByte */
.stats-row .stat-content {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

/* Chaque statistique */
.stats-row .stat-item {
    min-width: 0;
    padding: 1rem 1.1rem;
    background: rgba(255,255,255,0.025);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
}

/* Valeurs plus visibles */
.stats-row .stat-value {
    font-size: 1.05rem;
    font-weight: 700;
}

/* Titre DigiByte */
.stats-row .stat-title {
    font-size: 1.25rem;
}

/* Icône */
.stats-row .stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
}

/* Hover */
.stats-row .stat-item {
    transition: all 0.25s ease;
}

.stats-row .stat-item:hover {
    transform: translateY(-2px);
    border-color: rgba(59,130,246,0.35);
    background: rgba(59,130,246,0.06);
}

/* Tablette */
@media (max-width: 1000px) {
    .stats-row .stat-content {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Mobile */
@media (max-width: 600px) {
    .stats-row .stat-content {
        grid-template-columns: 1fr;
    }

    .stats-row .stat-item {
        padding: 0.85rem;
    }
}


/* =========================================================
   ELFIK - DIGIBYTE POOL LARGE PANEL V2
   ========================================================= */

/* Neutralise les contraintes de la ligne */
.stats-row {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 0 2rem 0 !important;
}

/* GRAND panneau DigiByte */
.stats-row > .stat-card {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;

    margin: 0 !important;
    padding: 2rem !important;

    border-radius: 20px !important;
}

/* Header du panneau */
.stats-row > .stat-card .stat-header {
    margin-bottom: 2rem !important;
}

/* Titre */
.stats-row > .stat-card .stat-title {
    font-size: 1.45rem !important;
    font-weight: 700 !important;
}

/* Icône */
.stats-row > .stat-card .stat-icon {
    width: 52px !important;
    height: 52px !important;
    font-size: 1.35rem !important;
    border-radius: 14px !important;
}

/* CONTENU : grands panneaux internes */
.stats-row > .stat-card .stat-content {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 1.25rem !important;
    width: 100% !important;
}

/* Chaque donnée */
.stats-row > .stat-card .stat-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;

    min-height: 105px !important;
    padding: 1.25rem !important;

    border: 1px solid rgba(255,255,255,.08) !important;
    border-radius: 16px !important;

    background: rgba(255,255,255,.035) !important;
}

/* Labels */
.stats-row > .stat-card .stat-label {
    font-size: .9rem !important;
    margin-bottom: .6rem !important;
}

/* Valeurs */
.stats-row > .stat-card .stat-value {
    font-size: 1.35rem !important;
    font-weight: 700 !important;
}

/* Hover */
.stats-row > .stat-card .stat-item:hover {
    transform: translateY(-3px) !important;
    background: rgba(59,130,246,.08) !important;
    border-color: rgba(59,130,246,.35) !important;
}

/* TABLETTE */
@media (max-width: 1000px) {
    .stats-row > .stat-card .stat-content {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* MOBILE */
@media (max-width: 600px) {

    .stats-row > .stat-card {
        padding: 1.25rem !important;
        border-radius: 16px !important;
    }

    .stats-row > .stat-card .stat-content {
        grid-template-columns: 1fr !important;
    }

    .stats-row > .stat-card .stat-item {
        min-height: 90px !important;
    }
}


/* =========================================================
   ELFIK HASHRATE CHART
   ========================================================= */

.elfik-chart-section {
    width: 100%;
    margin: 28px 0 0;
}

.elfik-chart-card {
    width: 100%;
    box-sizing: border-box;
    padding: 24px 26px 22px;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,.08);
    background: linear-gradient(
        145deg,
        rgba(20,25,35,.96),
        rgba(10,14,22,.98)
    );
    box-shadow:
        0 12px 35px rgba(0,0,0,.25),
        inset 0 1px 0 rgba(255,255,255,.025);
}

.elfik-chart-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.elfik-chart-title {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: .02em;
}

.elfik-chart-title i {
    margin-right: 8px;
}

.elfik-chart-subtitle {
    margin-top: 5px;
    font-size: .78rem;
    opacity: .55;
}

.elfik-chart-status {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .08em;
    opacity: .8;
}

.elfik-chart-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #35e68a;
    box-shadow: 0 0 10px rgba(53,230,138,.7);
}

.elfik-chart-value {
    margin-top: 14px;
    font-size: 1.65rem;
    font-weight: 800;
    letter-spacing: -.03em;
}

.elfik-chart-wrapper {
    position: relative;
    width: 100%;
    height: 230px;
    margin-top: 14px;
}

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

@media (max-width: 700px) {

    .elfik-chart-card {
        padding: 18px;
        border-radius: 14px;
    }

    .elfik-chart-wrapper {
        height: 190px;
    }

    .elfik-chart-value {
        font-size: 1.35rem;
    }
}

