* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', serif;
}

.logo {
    height: 45px;
    width: auto;
}

.nav-link:hover, .footer-nav-link:hover, .nav-link.active, .footer-nav-link.active  {
    border-bottom-width: 3px;
    border-bottom-style: solid;
    border-bottom-color: var(--bs-white);
    max-width: max-content;
}

.footer-nav-link:hover, .footer-nav-link.active {
    border-bottom-width: 2px;
}

main {
    padding-top: 70px;
}

.welcome-container {
    color: rgba(var(--bs-white-rgb), 1);
}

.welcome {
    height: 100vh;
}

.welcome-img-wrapper {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image: url(../img/61739.jpg);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    -webkit-filter: brightness(30%);
    filter: brightness(30%);
}

.service-card .card-img-overlay {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.15);
}

.service-card .card-img-overlay .icon {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-flow: column;
    text-align: center;
}

.service-card:hover .card-img-overlay {
    justify-content: end;
    align-items: inherit;
}

.service-card .card-img-overlay.info {
    display: none;
    opacity: 0;
}

.service-card:hover .card-img-overlay.info {
    display: flex;
    flex-direction: column;
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.5);
}

.service-card:hover .card-img-overlay .icon {
    display: none;
    opacity: 0;
}

.account-menu li:hover p.text-dark, .account-menu li:hover div.text-dark, .account-menu li.hovered p.text-dark, .account-menu li.hovered div.text-dark {
    color: var(--bs-success)!important;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance: textfield;
}

#accountReplenishmentForm .input-group {
    width: 200px;
}

.card-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px 0;
    width: 350px;
}

.lbl-card {
    display: block;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    padding: 14px 20px 14px 55px;
    position: relative;
    cursor: pointer;
}

.lbl-card .marker {
    width: 15px;
    height: 15px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    position: absolute;
    left: 20px;
    top: 40%;
}

.lbl-card .dots {
    display: inline-block;
    width: 28px;
    height: 4px;
    font-size: 0;
    white-space: nowrap;
    margin-top: 3px;
}

.lbl-card .dots:before, .lbl-card .dots:after {
    content: " ";
    display: inline-block;
    width: 4px;
    height: 4px;
    background: #000000;
    border-radius: 4px;
    margin-right: 12px;
    box-shadow: 8px 0 0 #000000;
}

.lbl-card .card-img {
    height: auto;
    width: 100%;
}

.card-container input[type='radio']:checked + .lbl-card {
    border-color: rgb(var(--bs-dark-rgb));
}

.card-container input[type='radio']:checked + .lbl-card > .marker {
    border: 4px solid rgb(var(--bs-dark-rgb));
}

.card-container input[type='radio'] {
    display: none;
}

.step-circle {
    min-width: 50px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.25rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 4px rgba(40,255,150,0.25);
}

.step-circle-red {
    min-width: 50px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.25rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 4px rgba(255, 40, 150,0.25);
}

/* Ref Styles */
/* Hero */
.ref-hero {
    position: relative;
    padding: 64px 0 52px;
    text-align: center;
    overflow: hidden;
}

.ref-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 50% at 50% 0%,
    rgba(var(--bs-success-rgb), .12) 0%, transparent 70%);
    pointer-events: none;
}

.ref-hero-badge {
    display: inline-block;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--bs-success);
    border: 1px solid rgba(var(--bs-success-rgb), .3);
    border-radius: 100px;
    padding: 4px 14px;
    margin-bottom: 18px;
}

.ref-hero h1 {
    font-size: clamp(1.9rem, 4.5vw, 3rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    letter-spacing: -.02em;
    margin-bottom: 14px;
}

.ref-hero h1 em {
    font-style: normal;
    color: var(--bs-success);
}

.ref-hero p {
    font-size: .97rem;
    font-weight: 400;
    color: rgba(255, 255, 255, .5);
    max-width: 420px;
    margin: 0 auto;
    line-height: 1.65;
}

/* Link block */
.ref-link-wrap {
    background: rgba(255, 255, 255, .03);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 14px;
    padding: 28px 28px 22px;
}

.ref-link-wrap .lbl {
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .35);
    margin-bottom: 10px;
}

.ref-input-row {
    display: flex;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 9px;
    overflow: hidden;
    transition: border-color .2s;
}

.ref-input-row:focus-within {
    border-color: var(--bs-success);
}

.ref-input-row input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: rgba(255, 255, 255, .75);
    font-size: .82rem;
    font-family: 'Courier New', monospace;
    padding: 11px 14px;
    min-width: 0;
}

.ref-copy-btn {
    background: var(--bs-success);
    border: none;
    color: #fff;
    font-family: 'Montserrat', serif;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .04em;
    padding: 0 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 7px;
    transition: background .2s;
    white-space: nowrap;
    flex-shrink: 0;
}

.ref-copy-btn:hover {
    background: #157347;
}

.ref-copy-btn.copied {
    background: #0f5132;
}

.ref-code-row {
    margin-top: 12px;
    font-size: .82rem;
    color: rgba(255, 255, 255, .4);
}

.ref-code-row code {
    background: rgba(var(--bs-success-rgb), .12);
    color: var(--bs-success);
    border-radius: 5px;
    padding: 2px 8px;
    font-size: .82rem;
    letter-spacing: .06em;
}

/* Stats */
.ref-stat {
    background: rgba(255, 255, 255, .03);
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 14px;
    padding: 24px 16px 20px;
    text-align: center;
    transition: border-color .25s, transform .25s;
    position: relative;
    overflow: hidden;
}

.ref-stat::after {
    content: '';
    position: absolute;
    top: 0;
    left: 20%;
    right: 20%;
    height: 1px;
    background: linear-gradient(90deg,
    transparent, var(--bs-success), transparent);
    opacity: 0;
    transition: opacity .3s;
}

.ref-stat:hover {
    border-color: rgba(var(--bs-success-rgb), .35);
    transform: translateY(-3px);
}

.ref-stat:hover::after {
    opacity: 1;
}

.ref-stat-val {
    font-size: 2rem;
    font-weight: 800;
    color: var(--bs-success);
    line-height: 1;
    margin-bottom: 5px;
}

.ref-stat-lbl {
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .35);
}

/* Section head */
.ref-section-head {
    text-align: center;
    margin-bottom: 36px;
}

.ref-section-head h2 {
    font-size: 1.45rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -.01em;
    margin-bottom: 6px;
}

.ref-section-head p {
    font-size: .88rem;
    color: rgba(255, 255, 255, .4);
}

/* Step cards — reuse project .step-circle */
.ref-step-card {
    background: rgba(255, 255, 255, .03);
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 14px;
    padding: 30px 24px;
    height: 100%;
    transition: border-color .25s, transform .25s;
}

.ref-step-card:hover {
    border-color: rgba(var(--bs-success-rgb), .4);
    transform: translateY(-4px);
}

.ref-step-card h5 {
    font-size: .97rem;
    font-weight: 700;
    color: #fff;
    margin: 14px 0 8px;
}

.ref-step-card p {
    font-size: .84rem;
    color: rgba(255, 255, 255, .4);
    margin: 0;
    line-height: 1.65;
}

/* Ranks table */
.ref-ranks {
    background: rgba(255, 255, 255, .03);
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 14px;
    overflow: hidden;
}

.ref-ranks-head {
    padding: 18px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
    font-size: .88rem;
    font-weight: 700;
    color: #fff;
}

.ref-ranks-head span {
    font-weight: 400;
    color: rgba(255, 255, 255, .35);
    font-size: .8rem;
}

.ref-ranks table {
    width: 100%;
    border-collapse: collapse;
}

.ref-ranks thead th {
    padding: 10px 24px;
    font-size: .67rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .3);
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.ref-ranks tbody tr {
    transition: background .15s;
}

.ref-ranks tbody tr:hover {
    background: rgba(var(--bs-success-rgb), .05);
}

.ref-ranks tbody tr.ref-rank-active {
    background: rgba(var(--bs-success-rgb), .08);
}

.ref-ranks td {
    padding: 14px 24px;
    font-size: .9rem;
    color: rgba(255, 255, 255, .65);
    border-bottom: 1px solid rgba(255, 255, 255, .04);
    vertical-align: middle;
}

.ref-rank-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: .88rem;
    color: #fff;
}

.ref-rank-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.ref-rank-pct {
    font-weight: 800;
    font-size: .95rem;
    color: var(--bs-success);
}

.ref-rank-active .ref-rank-pct {
    font-size: 1rem;
}

.ref-rank-you {
    display: inline-block;
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--bs-success);
    border: 1px solid rgba(var(--bs-success-rgb), .4);
    border-radius: 100px;
    padding: 2px 8px;
    margin-left: 6px;
    vertical-align: middle;
}

/* Level bar */
.ref-level {
    background: rgba(255, 255, 255, .03);
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 14px;
    padding: 26px 28px;
}

.ref-level-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 14px;
}

.ref-level-top h5 {
    font-size: .95rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 4px;
}

.ref-level-top p {
    font-size: .78rem;
    color: rgba(255, 255, 255, .35);
    margin: 0;
}

.ref-level-pct {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--bs-success);
}

.ref-bar-bg {
    background: rgba(255, 255, 255, .06);
    border-radius: 100px;
    height: 7px;
    overflow: hidden;
}

.ref-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #198754, #3fb950);
    border-radius: 100px;
    box-shadow: 0 0 10px rgba(63, 185, 80, .45);
    transition: width 1.3s cubic-bezier(.4, 0, .2, 1);
}

.ref-tiers {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
}

.ref-tiers span {
    font-size: .66rem;
    font-weight: 600;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .2);
}

/* Share row */
.ref-share a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: .82rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform .15s, box-shadow .15s, background .15s;
}

.ref-share a:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .3);
}

.ref-share .s-tg {
    background: var(--bs-success);
    color: #fff;
}

.ref-share .s-tg:hover {
    background: #157347;
    color: #fff;
}

.ref-share .s-tw,
.ref-share .s-wa {
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .1);
    color: rgba(255, 255, 255, .7);
}

.ref-share .s-tw:hover,
.ref-share .s-wa:hover {
    background: rgba(255, 255, 255, .1);
    color: #fff;
}

/* Divider */
.ref-hr {
    border: none;
    height: 1px;
    background: linear-gradient(90deg,
    transparent, rgba(255, 255, 255, .08), transparent);
    margin: 0;
}

/* Toast */
#refToast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    background: var(--bs-success);
    color: #fff;
    border-radius: 9px;
    padding: 11px 20px;
    font-size: .84rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .25s, transform .25s;
    pointer-events: none;
    box-shadow: 0 6px 24px rgba(var(--bs-success-rgb), .4);
}

#refToast.show {
    opacity: 1;
    transform: translateY(0);
}

/* Guest CTA */
.ref-cta-btn {
    display: inline-block;
    background: var(--bs-success);
    color: #fff;
    font-family: 'Montserrat', serif;
    font-weight: 700;
    font-size: .95rem;
    letter-spacing: .04em;
    padding: 14px 40px;
    border-radius: 10px;
    text-decoration: none;
    transition: background .2s, transform .15s, box-shadow .2s;
    box-shadow: 0 4px 20px rgba(var(--bs-success-rgb), .35);
}

.ref-cta-btn:hover {
    background: #157347;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(var(--bs-success-rgb), .45);
}

/* End Ref Styles */

@media (max-width: 767px) {
    .service-card .card-img-overlay {
        justify-content: end;
        align-items: inherit;
    }

    .service-card .card-img-overlay.info {
        display: flex;
        flex-direction: column;
        opacity: 1;
        background-color: rgba(0, 0, 0, 0.5);
    }

    .service-card .card-img-overlay .icon {
        display: none;
    }
}
