@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;600;700;800&display=swap');

:root {
    --bg-pure: #030304;
    --bg-soft: #0a0b10;
    --gold-main: #e2b759;
    --gold-light: #f9e29d;
    --purple-accent: #756a2b;
    --glass: rgba(255, 255, 255, 0.01);
    --border-gold: rgba(226, 183, 89, 0.1);
    --bg-dark: #030304;
    --gold: #e2b759;
    --gold-bright: #f9e29d;
    --glass-white: rgba(255, 255, 255, 0.03);
}

* {
    box-sizing: border-box;
    transition: all 0.2s ease;
}

body {
    background-color: var(--bg-pure);
    color: white;
    font-family: 'Plus Jakarta Sans', sans-serif;
    margin: 0;
    overflow: hidden;
    /* Mencegah scroll saat splash */
}

.landing-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at 15% 15%, rgba(106, 53, 255, 0.08) 0%, transparent 25%),
        /* Purple Subtle */
        radial-gradient(circle at 85% 85%, rgba(226, 183, 89, 0.05) 0%, transparent 30%),
        /* Gold Subtle */
        linear-gradient(170deg, var(--bg-pure) 0%, #08090d 50%, var(--bg-pure) 100%);
    background-size: 200% 200%;
    animation: gradientMove 10s ease infinite;
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

header {
    background: rgba(3, 3, 4, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-gold);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
}

main {
    flex: 1;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 70px;
    /* offset navbar */
    margin-bottom: 70px;
    /* offset footer */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 70px;
    -ms-overflow-style: none;  
    scrollbar-width: none;  
}
main::-webkit-scrollbar {
    display: none;
}
.content {
    /* Mengambil tinggi layar dikurangi estimasi tinggi header & nav */
    height: calc(100vh - 180px); 
    
    /* Mengaktifkan scroll vertikal */
    overflow-y: auto;
    
    /* Menghilangkan scrollbar di Chrome/Safari agar tetap clean */
    -webkit-overflow-scrolling: touch; /* Scroll halus di iOS */
    padding-bottom: 20px; /* Jarak aman di bagian bawah */
}

/* Opsional: Sembunyikan scrollbar tapi fungsi tetap jalan */
.content::-webkit-scrollbar {
    display: none;
}
.content {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.glass-card {
    background: var(--glass-white);
    backdrop-filter: blur(15px);
    border: 1px solid var(--border-gold);
    border-radius: 28px;
}

.hero-token-wrapper {
    position: relative;
    width: 100%;
    height: 180px;
    margin: 0 auto;
}

.hero-token {
    width: 100%;
    height: 100%;
    background: url('../img/arthstake.png') no-repeat center;
    /* Ganti dengan URL token Anda */
    background-size:cover;
    filter: drop-shadow(0 15px 30px rgba(226, 183, 89, 0.4));
}

.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(226, 183, 89, 0.3) 0%, rgba(3, 3, 4, 0) 70%);
    border-radius: 50%;
    animation: pulseGlow 5s infinite;
}

@keyframes floatToken {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-15px) rotate(10deg);
    }
}

@keyframes pulseGlow {

    0%,
    100% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.15);
    }
}

/* --- SHIMMER BALANCE CARD --- */
.balance-card {
    background: linear-gradient(145deg, #0a0a0c 0%, #030304 100%);
    position: relative;
    overflow: hidden;
}

.balance-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 45%, rgba(226, 183, 89, 0.08) 50%, transparent 55%);
    animation: shimmerEffect 4s infinite linear;
}

@keyframes shimmerEffect {
    0% {
        transform: translate(-30%, -30%);
    }

    100% {
        transform: translate(30%, 30%);
    }
}

/* --- LIVE PRICE TICKER ANIMATION --- */
.price-live-dot {
    width: 8px;
    height: 8px;
    background-color: #4ade80;
    border-radius: 50%;
    display: inline-block;
    margin-right: 6px;
    box-shadow: 0 0 10px rgba(74, 222, 128, 0.5);
    animation: pulseDot 2s infinite;
}

@keyframes pulseDot {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.1);
    }
}

/* --- ANIMATED PROMO BACKGROUND --- */
.promo-card {
    background: linear-gradient(-45deg, #1a1a20, #030304, #2c2c36, #0a0a0c);
    background-size: 400% 400%;
    animation: gradientMove 12s ease infinite;
    border: 1px solid var(--border-gold);
    border-radius: 25px;
    margin-top: 20px;
    margin-bottom: 20px;
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.btn-primary {
    background: linear-gradient(90deg, #dfa529, #8a610a);
    color: #fff;
    padding: 0.9rem 2.2rem;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(240, 167, 32, 0.3);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 25px rgba(240, 191, 32, 0.6);
}

.menu-section {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    justify-items: center;
    margin-top: 1.5rem;
}

.menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: #af8425;
    font-size: 0.85rem;
}

.menu-item div {
    width: 50px;
    height: 50px;
    background: #171a1f;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.menu-item div:hover {
    background: linear-gradient(145deg, #1c2027, #0b0d10);
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 255, 255, 0.1);
}

.hidden,
.hide-div {
    display: none;
}

.show-div {
    display: block;
}

/* GENEOLOGY TREE */
.scroll-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.tree-container {
    width: 100%;
    overflow-x: auto;
    padding: 40px 0;
    background: #0a0c10;
}

.tree ul {
    padding-top: 20px;
    position: relative;
    transition: all 0.5s;
    display: flex;
    justify-content: center;
}

.tree li {
    float: left;
    text-align: center;
    list-style-type: none;
    position: relative;
    padding: 20px 5px 0 5px;
    transition: all 0.5s;
}

/* Garis penghubung */
.tree li::before,
.tree li::after {
    content: '';
    position: absolute;
    top: 0;
    right: 50%;
    border-top: 2px solid #2d333f;
    width: 50%;
    height: 20px;
}

.tree li::after {
    right: auto;
    left: 50%;
    border-left: 2px solid #2d333f;
}

/* Menghilangkan garis untuk elemen tunggal/ujung */
.tree li:only-child::after,
.tree li:only-child::before {
    display: none;
}

.tree li:only-child {
    padding-top: 0;
}

.tree li:first-child::before,
.tree li:last-child::after {
    border: 0 none;
}

.tree li:last-child::before {
    border-right: 2px solid #2d333f;
    border-radius: 0 5px 0 0;
}

.tree li:first-child::after {
    border-radius: 5px 0 0 0;
}

/* Garis vertikal dari parent */
.tree ul ul::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    border-left: 2px solid #2d333f;
    width: 0;
    height: 20px;
}

/* Kotak Member */
.node-item {
    border: 1px solid #2d333f;
    padding: 10px;
    display: inline-block;
    border-radius: 10px;
    background: #1a1f2b;
    min-width: 100px;
    transition: 0.3s;
}

.node-item.active {
    border-color: #857a17;
    box-shadow: 0 0 10px rgba(198, 226, 43, 0.2);
}

.node-item.empty {
    opacity: 0.5;
    border-style: dashed;
}

.node-icon {
    font-size: 24px;
    color: #77581e;
    display: block;
    margin-bottom: 5px;
}

.node-name {
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    display: block;
}

.node-staking {
    color: #00ffa3;
    font-size: 10px;
}

.tree-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #1a1f2b;
    border-radius: 10px;
    margin-bottom: 20px;
}

.btn-tree-home {
    background: #332f1c;
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: bold;
}

.tree-info {
    color: #718096;
    font-size: 0.9rem;
}

/* Tombol Next di Dalam Node */
.btn-next-tree {
    display: block;
    margin-top: 8px;
    color: #a88219;
    font-size: 14px;
    transition: 0.3s;
    text-decoration: none;
}

.btn-next-tree:hover {
    color: #463a07;
    transform: translateY(3px);
}

.node-item {
    position: relative;
    padding-bottom: 15px;
}

@media (max-width: 600px) {
    .tree-container {
        padding: 20px 0;
        overflow-x: auto;
        overflow-y: hidden;
        display: block;
        width: 100vw;
        -webkit-overflow-scrolling: touch;
        cursor: grab;
    }

    .tree {
        min-width: 800px;
        padding-bottom: 50px;
    }

    .node-item {
        transform: scale(0.9);
        min-width: 80px;
        padding: 8px;
    }

    .tree li {
        padding: 20px 2px 0 2px;
    }
}

.sponsor-tree-container {
    background: #0a0c10;
    padding: 20px;
    border-radius: 15px;
}

.tree-header {
    margin-bottom: 20px;
    border-bottom: 1px solid #2d333f;
    padding-bottom: 10px;
}

.tree-header h3 {
    color: #fff;
    margin: 0;
}

.tree-header p {
    color: #718096;
    font-size: 0.8rem;
}

.sponsor-level {
    list-style: none;
    padding-left: 20px;
    border-left: 1px dashed #2d333f;
}

.sponsor-item {
    margin: 10px 0;
}

.member-card {
    background: #1a1f2b;
    border: 1px solid #2d333f;
    padding: 12px 15px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: 0.3s;
}

.member-card:hover {
    border-color: #a38113;
    background: #1f1b14;
}

.member-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.toggle-icon {
    font-size: 0.7rem;
    color: #38372e;
    transition: 0.3s;
}

.username {
    color: #fff;
    font-weight: bold;
    font-size: 0.9rem;
}

.staking-info {
    text-align: right;
}

.staking-label {
    display: block;
    font-size: 0.65rem;
    color: #718096;
    text-transform: uppercase;
}

.staking-amount {
    color: #00ffa3;
    font-weight: bold;
    font-size: 0.85rem;
}

/* Rotate icon when active */
.member-card.active .toggle-icon {
    transform: rotate(90deg);
}

/* MODAL */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100;
    opacity: 0;
}

.modal-content {
    background: #0f121d;
    border: 1px solid var(--glass-border);
    width: 100%;
    max-width: 400px;
    padding: 30px;
    border-radius: 28px;
    position: relative;
    transform: scale(0.9);
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.input-group {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 15px;
    margin: 20px 0;
    border: 1px solid transparent;
}

.input-group:focus-within {
    border-color: var(--accent);
}

.input-group input {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.5rem;
    width: 100%;
    outline: none;
    font-family: inherit;
}

.loading-ring {
    display: none;
    width: 80px;
    height: 80px;
    margin: 20px auto;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top: 4px solid var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.success-msg {
    display: none;
    text-align: center;
    color: var(--accent);
    animation: bounceIn 0.5s ease;
}

@keyframes bounceIn {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }

    50% {
        transform: scale(1.05);
        opacity: 1;
    }

    70% {
        transform: scale(0.9);
    }

    100% {
        transform: scale(1);
    }
}

.history-container {
    width: 100%;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 20px;
    backdrop-filter: blur(10px);
    margin-top: 20px;
    position: relative;
}

.tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    padding: 5px;
    border-radius: 14px;
    margin-bottom: 25px;
    position: relative;
}

.tabs input[type="radio"] {
    display: none;
}

.tab-label {
    flex: 1;
    padding: 12px;
    text-align: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-dim);
    z-index: 2;
    transition: color 0.3s;
}

.tab-slider {
    position: absolute;
    width: calc(50% - 5px);
    height: calc(100% - 10px);
    background: linear-gradient(135deg, var(--accent), var(--purple));
    border-radius: 10px;
    top: 5px;
    left: 5px;
    transition: transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
    z-index: 1;
}

#tab-staking:checked~.tab-slider {
    transform: translateX(0);
}

#tab-claim:checked~.tab-slider {
    transform: translateX(100%);
}

#tab-staking:checked~label[for="tab-staking"],
#tab-claim:checked~label[for="tab-claim"] {
    color: #000;
}

#tab-addNew:checked~.tab-slider {
    transform: translateX(0);
}

#tab-compund:checked~.tab-slider {
    transform: translateX(100%);
}

#tab-addNew:checked~label[for="tab-addNew"],
#tab-compund:checked~label[for="tab-compund"] {
    color: #000;
}


.tab-content {
    display: none;
    animation: slideUp 0.4s ease;
}

.tab-content-modal {
    display: block;
    animation: slideUp 0.4s ease;
}

#tab-staking:checked~.content-staking,
#tab-claim:checked~.content-claim {
    display: block;
}

#tab-addNew:checked~.content-addNew,
#tab-compund:checked~.content-compund {
    display: block;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.table-wrapper {
    width: 100%;
    overflow-x: auto;
    border-radius: 12px;
    margin-top: 25px;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 450px;
}

th {
    text-align: left;
    padding: 12px;
    font-size: 0.75rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--glass-border);
}

td {
    padding: 16px 12px;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.amount {
    font-weight: 600;
    color: var(--accent);
}

.date {
    color: var(--text-dim);
    font-size: 0.8rem;
}

.status {
    font-size: 0.7rem;
    padding: 4px 8px;
    border-radius: 6px;
    background: rgba(0, 255, 163, 0.1);
    color: var(--accent);
}

@media (max-width: 480px) {
    .history-container {
        padding: 15px;
    }

    td {
        padding: 12px 8px;
    }
}

.bottom-nav-container {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 100%;
    z-index: 1000;
}

.nav-dock {
    background: rgba(15, 16, 20, 0.95);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 35px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 18px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.nav-item {
    color: #646467;
    font-size: 25px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-item.active {
    color: var(--gold);
}

.nav-center-wrapper {
    position: relative;
    top: -35px;
}

.nav-center-btn {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #1b1812, #1b1812);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #030304;
    box-shadow: 0 0 25px rgba(226, 183, 89, 0.4);
    border: 6px solid var(--bg-pure);
    animation: pulse-gold 3s infinite;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nav-center-btn:active {
    transform: scale(0.9) rotate(15deg);
}

@keyframes pulse-gold {
    0% {
        box-shadow: 0 0 0 0 rgba(226, 183, 89, 0.5);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(226, 183, 89, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(226, 183, 89, 0);
    }
}

/* --- Animations --- */
.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* --- Global Elements --- */
.gold-text {
    background: linear-gradient(135deg, var(--gold-main), var(--gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.connect-card {
    background: var(--glass);
    backdrop-filter: blur(25px);
    border: 1px solid var(--border-gold);
    border-radius: 32px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.7);
}

.wallet-btn {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.wallet-btn:hover {
    border-color: var(--gold-main);
    background: rgba(226, 183, 89, 0.03);
    transform: translateY(-2px);
}

.sync-loader {
    position: relative;
    width: 100px;
    height: 100px;
}

.sync-circle {
    position: absolute;
    inset: 0;
    border: 2px solid rgba(226, 183, 89, 0.05);
    border-radius: 50%;
}

.sync-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    background: linear-gradient(to right, var(--gold-main), var(--gold-light));
    border-radius: 50%;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 15px var(--gold-main);
}

.sync-animation {
    animation: syncRotate 2.5s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite;
}

@keyframes syncRotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.state-hidden {
    display: none !important;
}

.state-active {
    display: flex !important;
    animation: fadeIn 1s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stake-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.03) 0%, rgba(226, 183, 89, 0.02) 100%);
    backdrop-filter: blur(25px);
    border: 1px solid var(--border-gold);
    border-radius: 35px;
    position: relative;
    overflow: hidden;
}

.stake-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(226, 183, 89, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

/* --- INPUT STYLING --- */
.input-group {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.input-group:focus-within {
    border-color: var(--gold);
    box-shadow: 0 0 20px rgba(226, 183, 89, 0.1);
}

/* --- PERIOD BUTTONS --- */
.period-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: #888;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.period-btn.active {
    background: linear-gradient(135deg, var(--gold), #b38b3a);
    color: #030304;
    font-weight: 700;
    border-color: transparent;
    box-shadow: 0 10px 20px rgba(226, 183, 89, 0.2);
    transform: translateY(-3px);
}

/* --- ACTION BUTTON --- */
.btn-stake-now {
    background: linear-gradient(135deg, var(--gold), var(--gold-bright));
    color: #030304;
    font-weight: 800;
    letter-spacing: 1px;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(226, 183, 89, 0.2);
    transition: all 0.3s ease;
}

.btn-stake-now:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 40px rgba(226, 183, 89, 0.4);
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-up {
    animation: slideInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.progress-ring__circle {
    transition: stroke-dashoffset 1s cubic-bezier(0.4, 0, 0.2, 1);
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
    filter: drop-shadow(0 0 8px rgba(226, 183, 89, 0.3));
}

/* --- REWARD CARD WITH SHIMMER --- */
.reward-card {
    background: linear-gradient(145deg, rgba(20, 20, 25, 0.9) 0%, rgba(5, 5, 5, 1) 100%);
    border: 1px solid var(--border-gold);
    border-radius: 35px;
    position: relative;
    overflow: hidden;
}

.reward-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 45%, rgba(226, 183, 89, 0.05) 50%, transparent 55%);
    animation: shimmer 4s infinite linear;
}

@keyframes shimmer {
    0% {
        transform: translate(-30%, -30%);
    }

    100% {
        transform: translate(30%, 30%);
    }
}

/* --- CLAIM BUTTON LUXE --- */
.btn-claim {
    background: linear-gradient(135deg, #1a1a1a 0%, #000 100%);
    border: 1px solid var(--gold);
    color: var(--gold);
    font-weight: 800;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.btn-claim:hover {
    background: var(--gold);
    color: #000;
    box-shadow: 0 15px 30px rgba(226, 183, 89, 0.3);
}

.animate-fade {
    animation: fadeIn 1s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.network-stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 25px; }
    .stat-box { background: #1a1f2b; border: 1px solid #2d333f; padding: 25px; border-radius: 15px; position: relative; }
    .stat-box .label { color: #718096; font-size: 0.75rem; font-weight: bold; letter-spacing: 1px; }
    .icon-subtle { position: absolute; right: 20px; bottom: 20px; font-size: 2.5rem; color: #fff; opacity: 0.05; }

    .binary-row { display: flex; gap: 20px; margin-bottom: 30px; }
    .binary-card { flex: 1; padding: 30px 20px; border-radius: 15px; border: 1px solid #2d333f; text-align: center; transition: 0.3s; }
    .side-left { border-left: 5px solid #836c06; background: linear-gradient(135deg, rgba(226, 177, 43, 0.05) 0%, #0a0c10 100%); }
    .side-right { border-right: 5px solid #cbd62e; background: linear-gradient(135deg, rgba(255, 230, 0, 0.05) 0%, #0a0c10 100%); }
    .card-tag { display: inline-block; padding: 4px 12px; border-radius: 50px; background: #2d333f; font-size: 0.7rem; color: #fff; margin-bottom: 15px; }

    .link-card { background: #212015; border: 1px solid #3e3f2d; border-radius: 12px; padding: 20px; margin-bottom: 15px; }
    .link-info { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
    .side-label { font-size: 0.9rem; color: #fff; font-weight: bold; }
    .invite-code { font-size: 0.8rem; color: #718096; }
    
    
    .btn-action { width: 45px; height: 45px; border-radius: 8px; border: none; cursor: pointer; transition: 0.2s; color: #fff; }
    .btn-action.copy { background: #2d333f; }
    .btn-action.qr { background: #8a6605; }
    .btn-action:hover { transform: scale(1.05); filter: brightness(1.2); }

.content-blur {
    filter: blur(5px);
    transition: filter 0.3s ease;
}
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(5, 7, 10, 0.8) !important; 
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999; /* Pastikan di atas segalanya */
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-content {
    text-align: center;
}

.web3-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(226, 168, 43, 0.1);
    border-left-color: #e2a22b; /* Warna accent ungu Anda */
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.loading-text {
    color: white;
    letter-spacing: 5px;
    font-weight: 800;
}

.loading-text span {
    color: #e2a22b;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Class untuk menghilangkan preloader */
.loader-hidden {
    opacity: 0;
    visibility: hidden;
}
/* Animasi Loading Pulse */
.sending-animation {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

.pulse-node {
    width: 60px;
    height: 60px;
    background: #00ffa3;
    border-radius: 50%;
    box-shadow: 0 0 0 rgba(0, 255, 163, 0.4);
    animation: pulse 1.5s infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #000;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 255, 163, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 20px rgba(0, 255, 163, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 255, 163, 0); }
}

.status-text {
    margin-top: 15px;
    font-family: 'Inter', sans-serif;
    color: #fff;
    font-weight: 500;
}