:root{--tx-bg:#05080f;--tx-card:#0d1422;--tx-card2:#111c2d;--tx-line:rgba(255,255,255,.09);--tx-blue:#168cff;--tx-cyan:#00d9ff;--tx-text:#eef6ff;--tx-muted:#8ea4bd;--tx-green:#35e39a;--tx-danger:#ff5c7c;--tx-shadow:0 18px 60px rgba(0,0,0,.35)}
html,body{min-height:100%;background:radial-gradient(circle at 15% 0%,rgba(0,137,255,.16),transparent 32%),radial-gradient(circle at 85% 10%,rgba(0,225,255,.09),transparent 30%),var(--tx-bg);color:var(--tx-text);font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif}
body{overflow-x:hidden}.navbar{background:rgba(4,8,15,.78)!important;border-bottom:1px solid var(--tx-line);backdrop-filter:blur(18px)}
.navbar-brand img{width:46px;height:46px;object-fit:contain}.navbar-brand span{font-weight:800;letter-spacing:.08em}.nav-link{color:#b9c9dc!important}.nav-link:hover{color:#fff!important}
.hero{padding:90px 0 70px;position:relative}.hero:before{content:"";position:absolute;width:520px;height:520px;border-radius:50%;background:rgba(0,137,255,.11);filter:blur(70px);left:-250px;top:-180px}.eyebrow{display:inline-flex;gap:8px;align-items:center;padding:8px 13px;border:1px solid rgba(0,194,255,.28);background:rgba(0,125,255,.08);border-radius:99px;color:#78dcff;font-size:.78rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase}.hero h1{font-size:clamp(2.7rem,7vw,5.7rem);line-height:.98;font-weight:900;letter-spacing:-.055em}.gradient{background:linear-gradient(100deg,#fff,#69dfff 42%,#147dff);-webkit-background-clip:text;background-clip:text;color:transparent}.hero p{color:var(--tx-muted);font-size:1.08rem;max-width:680px}.btn-tx{border:0;color:#fff;background:linear-gradient(135deg,#087bff,#00c9ff);box-shadow:0 10px 30px rgba(0,147,255,.24);font-weight:700;border-radius:14px;padding:13px 20px}.btn-tx:hover{color:#fff;transform:translateY(-1px)}.btn-outline-tx{border:1px solid rgba(94,190,255,.4);color:#ccecff;border-radius:14px;padding:12px 20px;background:rgba(0,130,255,.04)}
.glass{background:linear-gradient(145deg,rgba(17,28,45,.92),rgba(8,13,23,.88));border:1px solid var(--tx-line);box-shadow:var(--tx-shadow);border-radius:24px}.stat-card{padding:24px}.stat-value{font-size:1.8rem;font-weight:800}.muted{color:var(--tx-muted)}.section{padding:70px 0}.section-title{font-weight:850;letter-spacing:-.03em}.feature-icon{width:48px;height:48px;border-radius:15px;display:grid;place-items:center;background:linear-gradient(135deg,rgba(0,145,255,.25),rgba(0,221,255,.08));border:1px solid rgba(0,185,255,.22);color:#4fdcff}.pool-card{padding:24px;position:relative;overflow:hidden}.pool-card:after{content:"";position:absolute;width:140px;height:140px;border-radius:50%;right:-70px;top:-70px;background:rgba(0,157,255,.12)}.pool-price{font-size:2.1rem;font-weight:900}.progress{height:8px;background:#182334}.progress-bar{background:linear-gradient(90deg,#0b7cff,#00d9ff)}.form-control,.form-select{background:#09111e;border-color:#24344a;color:#fff;border-radius:13px;padding:.78rem 1rem}.form-control:focus,.form-select:focus{background:#0b1422;color:#fff;border-color:#168cff;box-shadow:0 0 0 .2rem rgba(22,140,255,.12)}.table{--bs-table-bg:transparent;--bs-table-color:#dbe9f7;--bs-table-border-color:var(--tx-line)}.table th,.table td {white-space:nowrap} .badge-soft{background:rgba(0,170,255,.12);color:#6cddff;border:1px solid rgba(0,170,255,.2)}.sidebar{min-height:calc(100vh - 73px);border-right:1px solid var(--tx-line);background:rgba(5,10,18,.7)}.sidebar a{display:flex;align-items:center;gap:11px;color:#91a6bd;text-decoration:none;padding:11px 14px;border-radius:12px;margin:3px 8px}.sidebar a:hover,.sidebar a.active{background:rgba(17,139,255,.1);color:#fff}.content-wrap{padding:28px}.topbar{border-bottom:1px solid var(--tx-line);background:rgba(5,9,16,.74);backdrop-filter:blur(18px)}.metric-icon{width:42px;height:42px;border-radius:13px;background:rgba(0,155,255,.1);display:grid;place-items:center;color:#53d7ff}.footer{border-top:1px solid var(--tx-line);padding:28px 0;color:#6e8299}.toast-tx{position:fixed;right:20px;bottom:20px;z-index:9999;min-width:280px}.spinner-tx{width:1rem;height:1rem}.wallet-chip{max-width:230px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pulse{animation:pulse 2s infinite}.float{animation:float 5s ease-in-out infinite}@keyframes pulse{0%,100%{box-shadow:0 0 0 0 rgba(0,160,255,.28)}50%{box-shadow:0 0 0 14px rgba(0,160,255,0)}}@keyframes float{0%,100%{transform:translateY(0)}50%{transform:translateY(-8px)}}.reveal{opacity:0;transform:translateY(18px);transition:.7s}.reveal.show{opacity:1;transform:none}.login-shell{min-height:calc(100vh - 74px);display:grid;place-items:center;padding:60px 15px}.login-card{width:min(560px,100%);padding:34px}.chain-dot{width:8px;height:8px;border-radius:50%;display:inline-block;background:#35e39a;box-shadow:0 0 0 5px rgba(53,227,154,.1)}
@media(max-width:991px){.hero{padding-top:60px}.sidebar{min-height:auto}.content-wrap{padding:18px}.nav-spacer{height:0}.navbar-brand span{font-size:.92rem}}

.poolchecked{
    color:#35e39a;
    position:absolute;
    display:none;
    margin-left:-20px;
}
.divpool.selectedpool {
    border: solid 1px #35e39a;
}
    .divpool.selectedpool .poolchecked {
        display:block;
        z-index:1;
    }


.rank-na {
    color: #6c757d;
}

.rank-learners {
    color: #8bc34a !important;
}

.rank-beginners {
    color: #03a9f4 !important;
}

.rank-starter {
    color: #2196f3 !important;
}

.rank-leader {
    color: #673ab7 !important;
}

.rank-pearl {
    color: #e5e4e2 !important;
    text-shadow: 0 0 3px rgba(0, 0, 0, .25);
}

.rank-bronze {
    color: #cd7f32 !important;
}

.rank-silver {
    color: #a8a9ad !important;
}

.rank-gold {
    color: #d4af37 !important;
}

.rank-platinum {
    color: #8fa8b8 !important;
}

.rank-sapphire {
    color: #0f52ba !important;
}

.rank-ruby {
    color: #e0115f !important;
}

.rank-emerald {
    color: #009b77 !important;
}

.rank-diamond {
    color: #38bdf8 !important;
}

.rank-black-diamond {
    color: #343a40 !important;
}

.rank-crown-diamond {
    color: #d4af37 !important;
    text-shadow: 0 0 6px rgba(212, 175, 55, .45);
}

.tx-page {
    padding-bottom: 40px
}

.tx-card {
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 18px;
    background: linear-gradient(145deg,rgba(255,255,255,.065),rgba(255,255,255,.025));
    box-shadow: 0 10px 30px rgba(0,0,0,.08)
}

.tx-card-header {
    padding: 20px 22px;
    border-bottom: 1px solid rgba(255,255,255,.07)
}

.tx-card-title {
    font-size: 18px;
    font-weight: 800;
    color: #fff
}

.tx-card-sub {
    font-size: 12px;
    color: #94a0b1
}

.tx-value {
    font-weight: 800;
    color: #fff
}

.tx-muted {
    color: #94a0b1
}

.tx-badge {
    display: inline-flex;
    padding: 5px 10px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700
}

.tx-ok {
    background: rgba(25,135,84,.15);
    color: #52d996
}

.tx-warn {
    background: rgba(255,193,7,.15);
    color: #ffc107
}

.tx-bad {
    background: rgba(220,53,69,.15);
    color: #ff7180
}

.tx-info {
    background: rgba(13,202,240,.15);
    color: #43d7f5
}

.tx-table {
    width: 100%;
    color: #dce3ec
}

    .tx-table th {
        font-size: 11px;
        text-transform: uppercase;
        color: #8f9bad;
        font-weight: 700;
        white-space: nowrap
    }

    .tx-table td {
        vertical-align: middle;
        font-size: 13px;
        border-color: rgba(255,255,255,.06);
        white-space: nowrap
    }

    .tx-table tbody tr:hover {
        background: rgba(255,255,255,.025)
    }

.tx-btn {
    border: 0;
    border-radius: 10px;
    padding: 8px 13px;
    font-size: 12px;
    font-weight: 700
}

.tx-btn-redeem {
    background: linear-gradient(90deg,#20e3b2,#0dcaf0);
    color: #061018
}

.tx-btn-disabled {
    background: rgba(255,255,255,.07);
    color: #9aa5b4
}

.tx-stat {
    padding: 18px;
    border-radius: 16px;
    background: rgba(255,255,255,.045);
    border: 1px solid rgba(255,255,255,.06)
}

.tx-stat-label {
    font-size: 12px;
    color: #94a0b1
}

.tx-stat-value {
    font-size: 21px;
    font-weight: 800;
    color: #fff;
    margin-top: 5px
}

.tx-progress {
    height: 6px;
    background: rgba(255,255,255,.08);
    border-radius: 10px;
    overflow: hidden
}

    .tx-progress > div {
        height: 100%;
        background: linear-gradient(90deg,#a78bfa,#0dcaf0);
        border-radius: 10px
    }

.tx-address {
    font-family: monospace;
    font-size: 12px
}

.tx-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px
}

.tx-empty {
    text-align: center;
    padding: 45px;
    color: #8f9bad
}

.tx-error {
    color: #ff7180
}

.tx-search {
    background: rgba(255,255,255,.05) !important;
    border: 1px solid rgba(255,255,255,.08) !important;
    color: #fff !important;
    border-radius: 10px !important
}

    .tx-search::placeholder {
        color: #778294 !important
    }
.matrix-report-page {
    padding-bottom: 45px;
}


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

.matrix-report-hero {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 28px 30px;
    margin-bottom: 24px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 22px;
    background: radial-gradient( circle at 85% 30%, rgba(13,202,240,.15), transparent 35% ), linear-gradient( 145deg, rgba(20,34,55,.95), rgba(7,13,23,.95) );
}

    .matrix-report-hero h1 {
        margin: 8px 0 7px;
        font-size: 30px;
        font-weight: 850;
        color: #fff;
    }

    .matrix-report-hero p {
        margin: 0;
        max-width: 650px;
        color: #8fa2b7;
        font-size: 13px;
    }

.matrix-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 30px;
    color: #53c9ff;
    background: rgba(13,140,255,.12);
    border: 1px solid rgba(13,140,255,.2);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
}

    .matrix-eyebrow.global {
        color: #b88cff;
        background: rgba(145,90,255,.12);
        border-color: rgba(145,90,255,.2);
    }

.matrix-hero-icon {
    width: 82px;
    height: 82px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    margin-left: 25px;
    border-radius: 24px;
    font-size: 34px;
    color: #52dfff;
    background: linear-gradient( 145deg, rgba(0,180,255,.2), rgba(0,100,255,.06) );
    border: 1px solid rgba(0,190,255,.2);
    box-shadow: 0 15px 45px rgba(0,130,255,.12);
}

    .matrix-hero-icon.global {
        color: #c49cff;
        background: linear-gradient( 145deg, rgba(150,90,255,.2), rgba(80,40,180,.06) );
        border-color: rgba(160,100,255,.2);
    }


/* =========================================================
   SUMMARY
   ========================================================= */

.matrix-summary-card {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 92px;
    padding: 18px;
    border-radius: 18px;
    background: linear-gradient( 145deg, rgba(255,255,255,.065), rgba(255,255,255,.025) );
    border: 1px solid rgba(255,255,255,.07);
}

.matrix-summary-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    border-radius: 15px;
    font-size: 18px;
}

    .matrix-summary-icon.blue {
        color: #4fc9ff;
        background: rgba(0,150,255,.13);
    }

    .matrix-summary-icon.green {
        color: #52dfa0;
        background: rgba(35,220,145,.12);
    }

    .matrix-summary-icon.gold {
        color: #f0c75e;
        background: rgba(230,180,40,.12);
    }

    .matrix-summary-icon.purple {
        color: #bb91ff;
        background: rgba(140,80,255,.13);
    }

    .matrix-summary-icon.cyan {
        color: #42e1ff;
        background: rgba(0,200,255,.12);
    }

.matrix-summary-label {
    color: #899bae;
    font-size: 11px;
    font-weight: 600;
}

.matrix-summary-value {
    margin-top: 3px;
    color: #fff;
    font-size: 20px;
    font-weight: 850;
}


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

.matrix-table-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.matrix-rate-badge {
    display: inline-flex;
    align-items: center;
    padding: 7px 13px;
    border-radius: 30px;
    color: #54d5ff;
    background: rgba(0,180,255,.1);
    border: 1px solid rgba(0,180,255,.2);
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

    .matrix-rate-badge.global {
        color: #c49cff;
        background: rgba(150,90,255,.1);
        border-color: rgba(150,90,255,.2);
    }


/* =========================================================
   TABLE
   ========================================================= */

.matrix-income-table th {
    padding: 15px 14px !important;
}

.matrix-income-table td {
    padding: 14px !important;
}

.matrix-income-table tbody tr {
    transition: background .2s ease, transform .2s ease;
}

    .matrix-income-table tbody tr:hover {
        background: rgba(255,255,255,.035) !important;
    }

.matrix-level {
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    border-radius: 11px;
    color: #bcd4ea;
    background: rgba(255,255,255,.06);
    font-size: 12px;
    font-weight: 800;
}

.matrix-rank-name {
    font-weight: 750;
}

.matrix-income {
    color: #55dca0;
    font-weight: 800;
}

.matrix-percent {
    font-weight: 800;
    color: #59cfff;
}

.matrix-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 750;
}

    .matrix-status-achieved {
        color: #52dc9c;
        background: rgba(35,220,145,.12);
    }

    .matrix-status-pending {
        color: #ffc857;
        background: rgba(255,190,40,.12);
    }

    .matrix-status-locked {
        color: #8c98a8;
        background: rgba(255,255,255,.05);
    }

.redeem-status-done {
    color: #54dca0;
    background: rgba(35,220,145,.12);
}

    .matrix-status-redeem {
        color: #07151c;
        background: linear-gradient( 90deg, #20e3b2, #0dcaf0 );
    }

.matrix-redeem-btn {
    border: 0;
    padding: 7px 13px;
    border-radius: 9px;
    color: #07151c;
    background: linear-gradient( 90deg, #20e3b2, #0dcaf0 );
    font-size: 11px;
    font-weight: 800;
    transition: transform .2s ease, box-shadow .2s ease;
}

    .matrix-redeem-btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 8px 20px rgba(13,202,240,.18);
    }

    .matrix-redeem-btn:disabled {
        opacity: .55;
        cursor: not-allowed;
        transform: none;
        box-shadow: none;
    }


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

@media(max-width:767px) {

    .matrix-report-hero {
        padding: 22px;
    }

        .matrix-report-hero h1 {
            font-size: 24px;
        }

    .matrix-hero-icon {
        width: 62px;
        height: 62px;
        font-size: 25px;
    }

    .matrix-table-header {
        align-items: flex-start;
        flex-direction: column;
    }
}


/* =========================================================
   Custom Alert Popup
========================================================= */
.tx-alert-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(10, 20, 30, 0.72);
    backdrop-filter: blur(4px);
}

.tx-alert-box {
    position: relative;
    width: 100%;
    max-width: 430px;
    background: #ffffff;
    border-radius: 18px;
    padding: 32px 28px 26px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.30);
    animation: txAlertShow 0.22s ease-out;
}

@keyframes txAlertShow {
    from {
        opacity: 0;
        transform: translateY(15px) scale(0.96);
    }

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

.tx-alert-close {
    position: absolute;
    top: 12px;
    right: 15px;
    width: 34px;
    height: 34px;
    border: 0;
    background: transparent;
    font-size: 27px;
    line-height: 30px;
    color: #8a8f98;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .tx-alert-close:hover {
        color: #222;
        transform: rotate(90deg);
    }

.tx-alert-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff4e5;
    color: #e59b17;
    font-size: 27px;
}

.tx-alert-box h4 {
    margin: 0 0 10px;
    font-size: 21px;
    font-weight: 700;
    color: #1d2733;
}

.tx-alert-message {
    margin: 0 auto 24px;
    max-width: 350px;
    font-size: 14px;
    line-height: 1.65;
    color: #68717d;
}

.tx-alert-btn {
    min-width: 110px;
    border: 0;
    border-radius: 9px;
    padding: 10px 24px;
    background: #cc941d;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .tx-alert-btn:hover {
        background: #b68113;
        transform: translateY(-1px);
    }

/* Success */
.tx-alert-box.success .tx-alert-icon {
    background: #eaf8ef;
    color: #24a148;
}

/* Error */
.tx-alert-box.error .tx-alert-icon {
    background: #fff0f0;
    color: #d93025;
}

/* Warning */
.tx-alert-box.warning .tx-alert-icon {
    background: #fff4e5;
    color: #e59b17;
}

/* Info */
.tx-alert-box.info .tx-alert-icon {
    background: #edf5ff;
    color: #2878d7;
}

/* Mobile */
@media (max-width: 576px) {

    .tx-alert-box {
        max-width: 100%;
        padding: 28px 22px 23px;
        border-radius: 15px;
    }

    .tx-alert-icon {
        width: 58px;
        height: 58px;
        font-size: 24px;
    }

    .tx-alert-box h4 {
        font-size: 19px;
    }

    .tx-alert-message {
        font-size: 13px;
    }
}

