.invite-share-wrap {
    box-sizing: border-box;
    width: 100%;
    margin-top: 0;
    padding: 2px 10px calc(10px + env(safe-area-inset-bottom, 0px));
    background: #0d0d0d;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
    -webkit-font-smoothing: antialiased;
}

.invite-share-wrap *,
.invite-share-wrap *::before,
.invite-share-wrap *::after {
    box-sizing: border-box;
}

.invite-banner {
    position: relative;
    display: block;
    width: 100%;
    margin: 0 0 8px;
    padding: 12px 10px;
    overflow: hidden;
    border-radius: 10px;
    text-align: center;
    border: 1px solid rgba(255, 196, 92, 0.28);
    background:
        radial-gradient(120% 140% at 0% 0%, rgba(255, 196, 92, 0.28) 0%, transparent 46%),
        radial-gradient(90% 120% at 100% 110%, rgba(255, 45, 85, 0.38) 0%, transparent 50%),
        linear-gradient(118deg, #3a1420 0%, #1a0c12 42%, #2a1018 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 220, 160, 0.22),
        0 6px 16px rgba(255, 45, 85, 0.18);
}

.invite-banner-orb,
.invite-banner-shine,
.invite-banner-coin {
    pointer-events: none;
}

.invite-banner-orb {
    position: absolute;
    width: 72px;
    height: 72px;
    left: -18px;
    top: -28px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 210, 120, 0.45) 0%, rgba(255, 210, 120, 0) 70%);
}

.invite-banner-orb--r {
    left: auto;
    right: -22px;
    top: auto;
    bottom: -30px;
    width: 88px;
    height: 88px;
    background: radial-gradient(circle, rgba(255, 75, 110, 0.5) 0%, rgba(255, 75, 110, 0) 70%);
}

.invite-banner-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 36%, rgba(255, 255, 255, 0.16) 48%, transparent 60%);
    transform: translateX(-120%);
    animation: inviteBannerShine 3.6s ease-in-out infinite;
}

@keyframes inviteBannerShine {
    0%, 55% { transform: translateX(-120%); }
    100% { transform: translateX(120%); }
}

.invite-banner-coin {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    margin: 0 3px 0 0;
    vertical-align: middle;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    color: #5a3a00;
    -webkit-text-fill-color: #5a3a00;
    -webkit-text-stroke: 0;
    -webkit-background-clip: padding-box;
    background-clip: padding-box;
    background:
        radial-gradient(circle at 32% 28%, #ffe7a8 0%, #f0c14b 42%, #c9921a 100%);
    box-shadow:
        0 0 0 1px rgba(255, 230, 160, 0.55),
        0 2px 6px rgba(0, 0, 0, 0.35),
        inset 0 -2px 3px rgba(120, 70, 0, 0.35);
}

.invite-banner-copy {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    font-size: 16px;
    font-weight: 900;
    line-height: 1.55;
    letter-spacing: 0.03em;
    text-align: center;
    color: #fff;
    -webkit-text-stroke: 0.4px rgba(255, 232, 180, 0.85);
    background: linear-gradient(180deg, #fff 0%, #ffe7c2 48%, #ffd27a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 10px rgba(255, 196, 92, 0.45));
}

.invite-banner-copy [data-i18n="shareBannerBefore"] {
    font-size: 14px;
    letter-spacing: 0;
    vertical-align: middle;
}

.invite-banner-hl {
    display: block;
    width: fit-content;
    margin: 5px auto 0;
    padding: 2px 7px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 900;
    letter-spacing: 0.04em;
    color: #3d2800;
    background: linear-gradient(180deg, #fff3c4 0%, #ffd24a 45%, #f0a020 100%);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.5),
        0 2px 8px rgba(255, 180, 40, 0.45);
    white-space: nowrap;
    -webkit-text-fill-color: #3d2800;
}

.invite-share-wrap .share-section {
    padding: 0;
}

.invite-share-wrap .share-card {
    background: linear-gradient(135deg, rgba(255, 75, 110, 0.12), transparent);
    border: 1px solid rgba(255, 75, 110, 0.22);
    border-radius: 12px;
    padding: 12px 10px;
    text-align: center;
}

.invite-share-wrap .share-card h2 {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 6px;
    line-height: 1.3;
    letter-spacing: 0.04em;
    text-shadow: 0 0 12px rgba(255, 75, 110, 0.55), 0 1px 0 rgba(0, 0, 0, 0.4);
    background: linear-gradient(180deg, #ffe1e8 0%, #ff6b81 55%, #ff3d5c 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.invite-share-wrap .share-card > p {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 10px;
    line-height: 1.5;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

.invite-share-wrap .share-card > p strong {
    font-weight: 900;
    font-size: 15px;
}

.invite-share-wrap .share-btns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-bottom: 8px;
}

.invite-share-wrap .share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 6px;
    border-radius: 8px;
    border: none;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    transition: all 0.15s;
}

.invite-share-wrap .share-btn:active {
    transform: scale(0.95);
}

.invite-share-wrap .share-btn.wa {
    background: #25d366;
    color: #fff;
}

.invite-share-wrap .share-btn.fb {
    background: #1877f2;
    color: #fff;
}

.invite-share-wrap .share-btn.tg {
    background: #0088cc;
    color: #fff;
}

.invite-share-wrap .share-btn.cp {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.invite-share-wrap .share-copy-icon {
    display: inline-block;
    flex-shrink: 0;
    width: 14px;
    height: 14px;
}

.invite-share-wrap .share-link {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    padding: 6px 8px;
    font-size: 13px;
    color: #fff;
    word-break: break-all;
    margin-top: 0;
    text-align: left;
    line-height: 1.4;
}

.claim-usdt-open {
    cursor: pointer;
}

.invite-share-wrap .share-card > p strong.claim-usdt-open {
    color: #ffd24a;
}

.claim-overlay {
    position: fixed;
    inset: 0;
    z-index: 4000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(0, 0, 0, 0.55);
}

.claim-overlay[hidden] {
    display: none;
}

.claim-dialog {
    box-sizing: border-box;
    width: 100%;
    max-width: 340px;
    padding: 18px 16px 16px;
    border-radius: 14px;
    background: #1a1216;
    border: 1px solid rgba(255, 196, 92, 0.28);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.claim-title {
    margin: 0 0 14px;
    font-size: 18px;
    font-weight: 800;
    text-align: center;
    color: #ffe7c2;
}

.claim-input {
    box-sizing: border-box;
    width: 100%;
    margin: 0 0 10px;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    font-size: 14px;
    outline: none;
}

.claim-input::placeholder {
    color: rgba(255, 255, 255, 0.42);
}

.claim-hint {
    margin: 0 0 10px;
    font-size: 13px;
    line-height: 1.45;
}

.claim-hint.is-error {
    color: #ff4d4f;
}

.claim-hint.is-ok {
    color: #7dffa3;
}

.claim-submit {
    display: block;
    width: 100%;
    padding: 10px 12px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 800;
    color: #3d2800;
    background: linear-gradient(180deg, #fff3c4 0%, #ffd24a 45%, #f0a020 100%);
    cursor: pointer;
}
