
.gc-referral-page {
    --gc-bg: #050907;
    --gc-bg-2: #08120d;
    --gc-bg-3: #0b1710;

    --gc-green: #24e98a;
    --gc-green-light: #8dffc1;
    --gc-green-dark: #0ba95b;

    --gc-white: #f4fff8;
    --gc-text: #dcebe3;
    --gc-muted: #8fa59a;
    --gc-muted-2: #60766b;

    --gc-border: rgba(65, 231, 143, .14);
    --gc-border-strong: rgba(65, 231, 143, .28);

    --gc-danger: #ff5f6d;

    width: 100%;
    /* max-width: 1180px;*/
    margin: 0 auto;
    padding: 30px 20px 70px;
    box-sizing: border-box;

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



.gc-referral-header {
    position: relative;
    margin-bottom: 28px;
    padding: 30px;
    overflow: hidden;

    background:
        radial-gradient(
            circle at 85% 20%,
            rgba(36, 233, 138, .12),
            transparent 30%
        ),
        linear-gradient(
            145deg,
            rgba(11, 23, 16, .98),
            rgba(5, 9, 7, .98)
        );

    border: 1px solid var(--gc-border);
    border-radius: 22px;

    box-shadow:
        0 20px 60px rgba(0, 0, 0, .28),
        inset 0 1px 0 rgba(255,255,255,.025);
}



.gc-referral-header::before,
.gc-referral-header::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.gc-referral-header::before {
    width: 180px;
    height: 180px;
    right: -80px;
    top: -100px;
    background: rgba(36, 233, 138, .07);
    filter: blur(2px);
}

.gc-referral-header::after {
    width: 100px;
    height: 100px;
    right: 100px;
    bottom: -70px;
    background: rgba(36, 233, 138, .04);
}



.gc-referral-header-inner {
    position: relative;
    z-index: 2;
}

.gc-referral-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    margin-bottom: 14px;
    padding: 7px 12px;

    border: 1px solid rgba(36, 233, 138, .18);
    border-radius: 999px;

    background: rgba(36, 233, 138, .07);

    color: var(--gc-green-light);

    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.gc-referral-badge::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--gc-green);
    box-shadow: 0 0 12px rgba(36,233,138,.8);
}

.gc-referral-header h2 {
    margin: 0 0 10px;

    color: var(--gc-white);

    font-size: clamp(26px, 4vw, 38px);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -.8px;
}

.gc-referral-header h2 span {
    color: var(--gc-green);
}

.gc-referral-header p {
    max-width: 760px;
    margin: 0;

    color: var(--gc-muted);
    font-size: 15px;
    line-height: 1.7;
}



.gc-referral-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 24px;
}

.gc-referral-info-item {
    display: flex;
    align-items: center;
    gap: 13px;

    min-width: 0;
    padding: 17px 18px;

    background: linear-gradient(
        145deg,
        rgba(11, 23, 16, .9),
        rgba(8, 18, 13, .8)
    );

    border: 1px solid var(--gc-border);
    border-radius: 16px;
}

.gc-referral-info-icon {
    flex: 0 0 42px;

    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;

    background: rgba(36, 233, 138, .09);
    border: 1px solid rgba(36, 233, 138, .13);

    color: var(--gc-green);
    font-size: 18px;
}

.gc-referral-info-text {
    min-width: 0;
}

.gc-referral-info-text strong {
    display: block;
    margin-bottom: 3px;

    color: var(--gc-white);
    font-size: 13px;
}

.gc-referral-info-text span {
    display: block;

    color: var(--gc-muted);
    font-size: 12px;
    line-height: 1.5;
}



.gc-referral-card {
    position: relative;

    margin-bottom: 22px;
    padding: 25px;

    background:
        linear-gradient(
            145deg,
            rgba(11, 23, 16, .96),
            rgba(5, 9, 7, .96)
        );

    border: 1px solid var(--gc-border);
    border-radius: 20px;

    box-shadow:
        0 16px 45px rgba(0, 0, 0, .22);

    overflow: hidden;
}

.gc-referral-card::before {
    content: "";
    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 2px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(36, 233, 138, .7),
            transparent
        );

    opacity: .7;
}

.gc-referral-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;

    margin-bottom: 18px;
}

.gc-referral-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 38px;

    width: 38px;
    height: 38px;

    margin-right: 12px;

    border-radius: 11px;

    background: rgba(36, 233, 138, .09);
    border: 1px solid rgba(36, 233, 138, .15);

    color: var(--gc-green);
    font-size: 14px;
    font-weight: 800;
}

.gc-referral-title-wrap {
    display: flex;
    align-items: center;
    min-width: 0;
}

.gc-referral-title-wrap h3 {
    margin: 0;

    color: var(--gc-white);

    font-size: 18px;
    font-weight: 750;
}

.gc-referral-title-wrap p {
    margin: 5px 0 0;

    color: var(--gc-muted);
    font-size: 12px;
}



.gc-referral-banner-box {
    position: relative;

    margin-bottom: 18px;
    padding: 25px;

    border-radius: 17px;

    background:
        radial-gradient(
            circle at 88% 20%,
            rgba(36, 233, 138, .20),
            transparent 25%
        ),
        linear-gradient(
            135deg,
            #07160e,
            #0b2417
        );

    border: 1px solid rgba(36, 233, 138, .22);

    overflow: hidden;
}

.gc-referral-banner-box::before {
    content: "";
    position: absolute;

    width: 160px;
    height: 160px;

    right: -70px;
    top: -70px;

    border-radius: 50%;

    border: 1px solid rgba(36, 233, 138, .15);
    box-shadow:
        0 0 0 20px rgba(36,233,138,.02),
        0 0 0 40px rgba(36,233,138,.015);
}

.gc-referral-banner-content {
    position: relative;
    z-index: 2;
}

.gc-referral-banner-mini {
    display: inline-block;

    margin-bottom: 10px;

    color: var(--gc-green);

    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.gc-referral-banner-title {
    margin: 0 0 7px;

    color: var(--gc-white);

    font-size: clamp(20px, 3vw, 28px);
    font-weight: 800;
    line-height: 1.15;
}

.gc-referral-banner-title span {
    color: var(--gc-green);
}

.gc-referral-banner-text {
    margin: 0;

    color: #b8cec2;

    font-size: 13px;
    line-height: 1.65;
}



.gc-code-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;

    margin-bottom: 8px;
}

.gc-code-label span {
    color: var(--gc-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .8px;
    text-transform: uppercase;
}

.gc-copy-status {
    color: var(--gc-green);
    font-size: 11px;
    font-weight: 700;
    opacity: 0;
    transition: opacity .25s ease;
}

.gc-copy-status.active {
    opacity: 1;
}



.gc-referral-code {
    display: block;

    width: 100%;
    min-height: 118px;

    padding: 15px 16px;

    box-sizing: border-box;
    resize: vertical;

    border: 1px solid var(--gc-border);
    border-radius: 13px;

    background:
        linear-gradient(
            145deg,
            rgba(4, 10, 7, .98),
            rgba(7, 17, 12, .98)
        );

    color: #cce8da;

    font-family:
        "SFMono-Regular",
        Consolas,
        "Liberation Mono",
        Menlo,
        monospace;

    font-size: 12px;
    line-height: 1.65;

    outline: none;

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

.gc-referral-code:focus {
    border-color: rgba(36, 233, 138, .45);

    box-shadow:
        0 0 0 3px rgba(36, 233, 138, .07);
}



.gc-copy-row {
    display: flex;
    justify-content: flex-end;

    margin-top: 10px;
}

.gc-copy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    min-height: 43px;
    padding: 0 18px;

    border: 1px solid rgba(36, 233, 138, .22);
    border-radius: 11px;

    background:
        linear-gradient(
            135deg,
            rgba(36, 233, 138, .13),
            rgba(11, 169, 91, .08)
        );

    color: var(--gc-green-light);

    font-family: inherit;
    font-size: 12px;
    font-weight: 800;

    cursor: pointer;

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

.gc-copy-btn:hover {
    transform: translateY(-1px);

    border-color: rgba(36, 233, 138, .5);

    background:
        linear-gradient(
            135deg,
            rgba(36, 233, 138, .19),
            rgba(11, 169, 91, .12)
        );

    box-shadow:
        0 8px 22px rgba(36, 233, 138, .08);
}

.gc-copy-btn:active {
    transform: translateY(0);
}

.gc-copy-btn.copied {
    border-color: rgba(36, 233, 138, .55);
    background: rgba(36, 233, 138, .16);
}



.gc-link-preview {
    display: flex;
    align-items: center;
    gap: 10px;

    margin-top: 13px;
    padding: 11px 13px;

    background: rgba(36, 233, 138, .035);

    border: 1px solid rgba(36, 233, 138, .08);
    border-radius: 11px;

    overflow: hidden;
}

.gc-link-preview-dot {
    flex: 0 0 7px;

    width: 7px;
    height: 7px;

    border-radius: 50%;
    background: var(--gc-green);

    box-shadow:
        0 0 10px rgba(36,233,138,.7);
}

.gc-link-preview a {
    display: block;

    max-width: 100%;

    color: var(--gc-green-light);

    font-size: 12px;
    font-weight: 600;

    text-decoration: none;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gc-link-preview a:hover {
    color: var(--gc-white);
}



.gc-referral-note {
    display: flex;
    align-items: flex-start;
    gap: 13px;

    margin-top: 24px;
    padding: 18px;

    border: 1px solid rgba(36, 233, 138, .10);
    border-radius: 15px;

    background: rgba(36, 233, 138, .035);
}

.gc-referral-note-icon {
    flex: 0 0 34px;

    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background: rgba(36, 233, 138, .09);

    color: var(--gc-green);
    font-size: 15px;
    font-weight: 800;
}

.gc-referral-note-content strong {
    display: block;

    margin-bottom: 4px;

    color: var(--gc-white);
    font-size: 13px;
}

.gc-referral-note-content p {
    margin: 0;

    color: var(--gc-muted);

    font-size: 12px;
    line-height: 1.65;
}



.gc-referral-card,
.gc-referral-header,
.gc-referral-info-item {
    animation: gcReferralFadeUp .55s ease both;
}

.gc-referral-card:nth-child(2) {
    animation-delay: .08s;
}

.gc-referral-card:nth-child(3) {
    animation-delay: .16s;
}

.gc-referral-card:nth-child(4) {
    animation-delay: .24s;
}

@keyframes gcReferralFadeUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

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



@media (max-width: 800px) {

    .gc-referral-page {
        padding: 22px 15px 55px;
    }

    .gc-referral-header {
        padding: 24px;
    }

    .gc-referral-info {
        grid-template-columns: 1fr;
    }

    .gc-referral-card {
        padding: 20px;
    }
}



@media (max-width: 560px) {

    .gc-referral-page {
        padding: 15px 10px 40px;
    }

    .gc-referral-header {
        padding: 20px 17px;
        border-radius: 17px;
    }

    .gc-referral-header h2 {
        font-size: 25px;
    }

    .gc-referral-header p {
        font-size: 13px;
    }

    .gc-referral-card {
        padding: 16px;
        border-radius: 16px;
    }

    .gc-referral-card-head {
        margin-bottom: 14px;
    }

    .gc-referral-title-wrap h3 {
        font-size: 16px;
    }

    .gc-referral-banner-box {
        padding: 20px 17px;
        border-radius: 14px;
    }

    .gc-referral-banner-title {
        font-size: 21px;
    }

    .gc-referral-code {
        min-height: 145px;
        font-size: 11px;
    }

    .gc-copy-row {
        display: block;
    }

    .gc-copy-btn {
        width: 100%;
    }

    .gc-link-preview {
        align-items: flex-start;
    }

    .gc-link-preview a {
        white-space: normal;
        word-break: break-all;
    }
}



@media (max-width: 360px) {

    .gc-referral-page {
        padding-left: 7px;
        padding-right: 7px;
    }

    .gc-referral-header {
        padding: 17px 14px;
    }

    .gc-referral-card {
        padding: 13px;
    }

    .gc-referral-banner-box {
        padding: 17px 14px;
    }

    .gc-referral-banner-title {
        font-size: 19px;
    }

    .gc-referral-code {
        font-size: 10px;
    }
}