:root {
    --gold: #d4af37;
    --gold-light: hsl(51.2, 93.7%, 81.4%);
    --gold-dark: #b8960c;
    --dark-bg: #0a0a0f;
    --dark-card: #0d0d1a;
    --dark-card2: #111128;
    --blue-glow: #00d4ff;
    --green-glow: #22c55e;
}


/* Background */
.page-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(ellipse at 10% 20%, rgba(212, 175, 55, 0.04) 0%, transparent 50%), radial-gradient(ellipse at 90% 80%, rgba(212, 175, 55, 0.03) 0%, transparent 50%), var(--dark-bg);
}

    .page-bg::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: repeating-linear-gradient(0deg, transparent, transparent 50px, rgba(212, 175, 55, 0.008) 50px, rgba(212, 175, 55, 0.008) 51px), repeating-linear-gradient(90deg, transparent, transparent 50px, rgba(212, 175, 55, 0.008) 50px, rgba(212, 175, 55, 0.008) 51px);
    }

/* Particles */
.particle {
    position: fixed;
    width: 2px;
    height: 2px;
    background: var(--gold);
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
    opacity: 0;
    animation: particleFloat 12s infinite;
}

@keyframes particleFloat {
    0% {
        opacity: 0;
        transform: translateY(100vh) scale(0);
    }

    10% {
        opacity: 0.4;
    }

    90% {
        opacity: 0.4;
    }

    100% {
        opacity: 0;
        transform: translateY(-100vh) scale(1);
    }
}

/* Header Section */
.referral-header {
    padding: 40px 0 30px;
    position: relative;
}

.header-border {
    border-radius: 15px;
    padding: 30px 35px;
    position: relative;
    overflow: hidden;
    /*background: linear-gradient(160deg,#1c1407,#08080e);*/
    border: 1px solid #f5a623;
    box-shadow: inset 0 0 12px #f5a623, inset 0 0 30px rgba(0,0,0,.6);
}

    .header-border::before {
        content: '';
        position: absolute;
        top: -2px;
        left: -2px;
        right: -2px;
        bottom: -2px;
        border-radius: 15px;
        background: linear-gradient(135deg, rgba(212, 175, 55, 0.6) 0%, transparent 20%, transparent 80%, rgba(212, 175, 55, 0.6) 100%);
        z-index: -1;
        pointer-events: none;
    }

.header-title {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    font-weight: 900;
    /*background: linear-gradient(180deg, #f5d76e 0%, #d4af37 40%, #b8960c 100%);*/
    background: linear-gradient(#fdefa3, #9c5504);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 3px;
    margin: 0;
    filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.4));
    text-transform: uppercase;
}

.header-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 8px;
    letter-spacing: 1px;
}

    .header-subtitle strong {
        color: var(--gold-light);
    }

/* Step Icons */
.step-item {
    text-align: center;
    padding: 10px 15px;
    border-left: 1px solid rgba(212, 175, 55, 0.2);
    transition: all 0.3s ease;
}

    .step-item:first-child {
        border-left: none;
    }

    .step-item:hover {
        background: rgba(212, 175, 55, 0.05);
    }

.step-icon {
    width: 55px;
    height: 55px;
    margin: 0 auto 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(212, 175, 55, 0.05));
    border: 2px solid rgba(212, 175, 55, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--gold);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
    transition: all 0.3s ease;
}

.step-item:hover .step-icon {
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.7);
    transform: scale(1.1);
}

.step-label {
    /*font-family: 'Orbitron', sans-serif;*/
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

.step-desc {
    font-size: 0.75rem;
    color: #fff;
    margin: 3px 0 0;
}

/* Main Cards */
.main-card {
    border-radius: 15px;
    padding: 25px;
    height: 100%;
    position: relative;
    overflow: hidden;
    border: 1px solid #f5a623;
    box-shadow: inset 0 0 12px #f5a623, inset 0 0 30px rgba(0,0,0,.6);
    transition: all 0.3s ease;
}

    .main-card:hover {
        border: 1px solid #f5a623;
        box-shadow: inset 0 0 12px #f5a623, inset 0 0 30px rgba(0,0,0,.6);
    }

    .main-card::before {
        content: '';
        position: absolute;
        top: -2px;
        left: -2px;
        right: -2px;
        bottom: -2px;
        border-radius: 15px;
        background: linear-gradient(135deg, rgba(212, 175, 55, 0.4) 0%, transparent 25%, transparent 75%, rgba(212, 175, 55, 0.4) 100%);
        z-index: -1;
        pointer-events: none;
    }

.card-number {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    /*background: linear-gradient(135deg, var(--gold), var(--gold-dark));*/
    background: linear-gradient(#fdefa3, #9c5504);
    display: flex;
    align-items: center;
    justify-content: center;
    /*font-family: 'Orbitron', sans-serif;*/
    font-size: 1.3rem;
    font-weight: 900;
    color: #000;
    margin-right: 15px;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
    flex-shrink: 0;
}

.card-title {
    /*font-family: 'Orbitron', sans-serif;*/
    font-size: 1rem;
    font-weight: 700;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

.card-subtitle {
    font-size: 0.85rem;
    color: #fff;
    margin: 3px 0 0;
}

.card-icon-right {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(212, 175, 55, 0.05));
    border: 2px solid rgba(212, 175, 55, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--gold);
    margin-left: auto;
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.3);
}

.card-description {
    border: 1px solid #f5a623;
    box-shadow: inset 0 0 12px #f5a623, inset 0 0 30px rgba(0,0,0,.6);
    border-radius: 10px;
    padding: 15px;
    margin: 20px 0;
    font-size: 0.9rem;
    color: #fff;
    line-height: 1.5;
}

    .card-description strong {
        color: var(--gold-light);
    }

/* Tables */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

    .data-table thead th {
        background: linear-gradient(180deg, rgba(212, 175, 55, 0.2), rgba(212, 175, 55, 0.08));
        border: 1px solid rgba(212, 175, 55, 0.3);
        padding: 10px 12px;
        /*font-family: 'Orbitron', sans-serif;*/
        font-size: 0.72rem;
        font-weight: 700;
        color: var(--gold);
        text-transform: uppercase;
        letter-spacing: 1px;
        text-align: center;
    }

    .data-table tbody td {
        padding: 9px 12px;
        text-align: center;
        border: 1px solid rgba(212, 175, 55, 0.1);
        font-size: 0.9rem;
        color: rgba(255, 255, 255, 0.85);
    }

    .data-table tbody tr:nth-child(even) {
        background: rgba(255, 255, 255, 0.02);
    }

    .data-table tbody tr:hover {
        background: rgba(212, 175, 55, 0.06);
    }

    .data-table .highlight {
        color: var(--gold-light);
        font-weight: 700;
        /*font-family: 'Orbitron', sans-serif;*/
        font-size: 0.85rem;
    }

    .data-table .avn-highlight {
        color: var(--gold-light);
        font-weight: 700;
        /*font-family: 'Orbitron', sans-serif;*/
        font-size: 0.85rem;
    }

.table-note {
    font-size: 0.78rem;
    color: #fff;
    margin-top: 12px;
    font-style: italic;
}

    .table-note strong {
        color: var(--gold);
    }

/* Binary Diagram */
.binary-diagram {
    text-align: center;
    padding: 20px 0;
}

.binary-user {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.3), rgba(212, 175, 55, 0.1));
    border: 2px solid var(--gold);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--gold);
    margin-bottom: 10px;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
    position: relative;
}

    .binary-user::after {
        content: 'YOU';
        position: absolute;
        bottom: -22px;
        /*font-family: 'Orbitron', sans-serif;*/
        font-size: 0.65rem;
        color: var(--gold);
        letter-spacing: 2px;
    }

.binary-teams {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
    position: relative;
}

    .binary-teams::before {
        content: '';
        position: absolute;
        top: -22px;
        left: 50%;
        transform: translateX(-50%);
        width: 2px;
        height: 8px;
        background: var(--gold);
    }

    .binary-teams::after {
        content: '';
        position: absolute;
        top: -15px;
        left: 22%;
        right: 22%;
        height: 2px;
        background: var(--gold);
    }

.team-box {
    flex: 1;
    max-width: 200px;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    position: relative;
}

    .team-box::before {
        content: '';
        position: absolute;
        top: -15px;
        left: 50%;
        transform: translateX(-50%);
        width: 2px;
        height: 15px;
        background: var(--gold);
    }

.team-left {
    background: linear-gradient(135deg, rgba(0, 100, 200, 0.2), rgba(0, 100, 200, 0.05));
    border: 2px solid rgba(0, 150, 255, 0.5);
    box-shadow: 0 0 15px rgba(0, 150, 255, 0.2);
}

.team-right {
    background: linear-gradient(135deg, rgba(0, 180, 80, 0.2), rgba(0, 180, 80, 0.05));
    border: 2px solid rgba(0, 200, 100, 0.5);
    box-shadow: 0 0 15px rgba(0, 200, 100, 0.2);
}

.team-label {
    /*font-family: 'Orbitron', sans-serif;*/
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.team-left .team-label {
    color: #4da6ff;
}

.team-right .team-label {
    color: #4dff88;
}

.team-amount {
    /*font-family: 'Orbitron', sans-serif;*/
    font-size: 1.3rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 3px;
}

.team-volume {
    font-size: 0.75rem;
    color: #fff;
}

.team-members {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
}

.team-member-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.team-left .team-member-icon {
    background: rgba(0, 150, 255, 0.2);
    border: 1px solid rgba(0, 150, 255, 0.5);
    color: #4da6ff;
}

.team-right .team-member-icon {
    background: rgba(0, 200, 100, 0.2);
    border: 1px solid rgba(0, 200, 100, 0.5);
    color: #4dff88;
}

.matched-volume {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(212, 175, 55, 0.05));
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 10px;
    padding: 12px 20px;
    margin-top: 20px;
    display: inline-block;
}

    .matched-volume .label {
        font-size: 0.8rem;
        color: rgba(255, 255, 255, 0.7);
    }

    .matched-volume .amount {
        /*font-family: 'Orbitron', sans-serif;*/
        font-size: 1.1rem;
        font-weight: 700;
        color: var(--gold-light);
    }

    .matched-volume .sub {
        font-size: 0.75rem;
        color: #fff;
    }

.binary-result {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(212, 175, 55, 0.05));
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 12px;
    padding: 15px 20px;
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.binary-result-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(212, 175, 55, 0.05));
    border: 2px solid rgba(212, 175, 55, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--gold);
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.3);
}

.binary-result .percent {
    /*font-family: 'Orbitron', sans-serif;*/
    font-size: 22px;
    font-weight: 900;
    color: var(--gold-light);
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
}

.binary-result .result-text {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

    .binary-result .result-text strong {
        color: #fff;
    }

/* AVN Coin Visual */
.avn-coin-visual {
    position: absolute;
    right: 20px;
    bottom: 20px;
    opacity: 0.15;
    font-size: 8rem;
    color: var(--gold);
    pointer-events: none;
}

.avn-coin-stack {
    position: relative;
    display: inline-block;
}

.coin-main {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--gold-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #000;
    /*font-family: 'Orbitron', sans-serif;*/
    font-weight: 900;
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.5), 0 0 60px rgba(212, 175, 55, 0.2), inset 0 -5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
}

.coin-stack-bottom {
    position: absolute;
    bottom: -8px;
    left: 10px;
    width: 120px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(180deg, var(--gold-dark), #8b6914);
    z-index: 1;
}

.coin-stack-bottom2 {
    position: absolute;
    bottom: -16px;
    left: 20px;
    width: 120px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(180deg, #8b6914, #6b4f10);
    z-index: 0;
}

/* Bottom Section */
.bottom-section {
    margin-top: 30px;
}

.rewards-options-card {
    border: 1px solid #f5a623;
    box-shadow: inset 0 0 12px #f5a623, inset 0 0 30px rgba(0,0,0,.6);
    border-radius: 15px;
    padding: 25px;
    height: 100%;
    position: relative;
    overflow: hidden;
}

    .rewards-options-card::before {
        content: '';
        position: absolute;
        top: -2px;
        left: -2px;
        right: -2px;
        bottom: -2px;
        border-radius: 15px;
        background: linear-gradient(135deg, rgba(212, 175, 55, 0.4) 0%, transparent 25%, transparent 75%, rgba(212, 175, 55, 0.4) 100%);
        z-index: -1;
        pointer-events: none;
    }

.section-heading {
    /*font-family: 'Orbitron', sans-serif;*/
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 5px;
}

    .section-heading i {
        margin-right: 10px;
    }

.section-desc {
    font-size: 0.85rem;
    color: #fff;
    margin-bottom: 20px;
}

.option-card {
    border: 1px solid #f5a623;
    box-shadow: inset 0 0 12px #f5a623, inset 0 0 30px rgba(0,0,0,.6);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
    height: 100%;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

    .option-card:hover {
        border: 1px solid #f5a623;
        box-shadow: inset 0 0 12px #f5a623, inset 0 0 30px rgba(0,0,0,.6);
        transform: translateY(-3px);
    }

.option-icon {
    width: 60px;
    height: 60px;
    min-width: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

    .option-icon.avn {
        background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--gold-dark));
        color: #000;
        box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
        /*font-family: 'Orbitron', sans-serif;*/
        font-weight: 900;
        font-size: 0.9rem;
    }

    .option-icon.stake {
        background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(212, 175, 55, 0.05));
        border: 2px solid rgba(212, 175, 55, 0.5);
        color: var(--gold);
        box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
    }

    .option-icon.withdraw {
        background: linear-gradient(135deg, rgba(0, 150, 255, 0.2), rgba(0, 150, 255, 0.05));
        border: 2px solid rgba(0, 150, 255, 0.5);
        color: #4da6ff;
        box-shadow: 0 0 15px rgba(0, 150, 255, 0.2);
    }

.option-title {
    /*font-family: 'Orbitron', sans-serif;*/
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.option-desc {
    font-size: 0.82rem;
    color: #fff;
    margin: 0;
    line-height: 1.4;
}

/* Important Notes */
.notes-card {
    border: 1px solid #f5a623;
    box-shadow: inset 0 0 12px #f5a623, inset 0 0 30px rgba(0,0,0,.6);
    border-radius: 15px;
    padding: 25px;
    height: 100%;
    position: relative;
    overflow: hidden;
}

    .notes-card::before {
        content: '';
        position: absolute;
        top: -2px;
        left: -2px;
        right: -2px;
        bottom: -2px;
        border-radius: 15px;
        background: linear-gradient(135deg, rgba(212, 175, 55, 0.4) 0%, transparent 25%, transparent 75%, rgba(212, 175, 55, 0.4) 100%);
        z-index: -1;
        pointer-events: none;
    }

.note-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 0px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

    .note-item:last-child {
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: none;
    }

.note-check {
    width: 24px;
    height: 24px;
    min-width: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(212, 175, 55, 0.05));
    border: 1.5px solid rgba(212, 175, 55, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: var(--gold);
    margin-top: 2px;
}

.note-text {
    font-size: 0.85rem;
    color: #fff;
    line-height: 1.4;
    margin: 0;
}

    .note-text strong {
        color: var(--gold-light);
    }

/* Animations */
.main-card, .rewards-options-card, .notes-card {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

    .main-card:nth-child(1) {
        animation-delay: 0.1s;
    }

    .main-card:nth-child(2) {
        animation-delay: 0.2s;
    }

    .main-card:nth-child(3) {
        animation-delay: 0.3s;
    }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.coin-main {
    animation: coinGlow 3s ease-in-out infinite;
}

@keyframes coinGlow {
    0%, 100% {
        box-shadow: 0 0 30px rgba(212, 175, 55, 0.5), 0 0 60px rgba(212, 175, 55, 0.2);
    }

    50% {
        box-shadow: 0 0 40px rgba(212, 175, 55, 0.7), 0 0 80px rgba(212, 175, 55, 0.3);
    }
}

/* Responsive */
@media (max-width: 992px) {
    .header-title {
        font-size: 2.5rem;
    }

    .step-item {
        border-left: none;
        border-bottom: 1px solid rgba(212, 175, 55, 0.2);
        padding: 10px;
    }

    .binary-teams {
        /*flex-direction: column;*/
        align-items: center;
        gap: 20px;
    }

        .binary-teams::before, .binary-teams::after {
            display: none;
        }

    .team-box::before {
        display: none;
    }
}

@media (max-width: 768px) {
    .header-title {
        font-size: 1.8rem;
    }

    .header-border {
        padding: 20px 15px;
    }

    .main-card {
        padding: 18px;
    }

    .card-title {
        font-size: 0.85rem;
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--gold-dark);
    border-radius: 3px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: var(--gold);
    }
.t-red {
    --c: #ff3b3b;
}
.t-blue {
    --c: #19b5ff;

}
.t-green {
    --c: #22e07a;
}   
.tier {
    text-align: center;
    padding: 16px 10px;
    border: 1.5px solid var(--c);
    border-radius: 14px;
    background: linear-gradient(160deg,color-mix(in srgb,var(--c) 22%,#0a0a12),#0a0a12 80%);
    box-shadow: inset 0 0 18px color-mix(in srgb,var(--c) 55%,transparent), inset 0 0 16px color-mix(in srgb,var(--c) 15%,transparent);
}
.tier {
    text-align: center;
    padding: 16px 10px;
    border: 1.5px solid var(--c);
    border-radius: 14px;
    background: linear-gradient(160deg,color-mix(in srgb,var(--c) 22%,#0a0a12),#0a0a12 80%);
    box-shadow: inset 0 0 18px color-mix(in srgb,var(--c) 55%,transparent), inset 0 0 16px color-mix(in srgb,var(--c) 15%,transparent);
}
.tier {
    text-align: center;
    padding: 16px 10px;
    border: 1.5px solid var(--c);
    border-radius: 14px;
    background: linear-gradient(160deg,color-mix(in srgb,var(--c) 22%,#0a0a12),#0a0a12 80%);
    box-shadow: inset 0 0 18px color-mix(in srgb,var(--c) 55%,transparent), inset 0 0 16px color-mix(in srgb,var(--c) 15%,transparent);
}