.referral-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 16px;
}

.referral-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.referral-label {
    color: var(--muted);
    font-weight: 600;
}

.referral-code {
    color: var(--accent);
    font-weight: 800;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--surface-2, #0f1115);
}

.referral-input {
    flex: 1;
    min-width: 220px;
    height: var(--tap);
    padding: 0 12px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--surface-2, #0f1115);
    color: var(--fg);
    outline: none;
}

.referral-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(245, 206, 102, .25), 0 0 12px rgba(245, 206, 102, .25) inset;
}

.referral-hint {
    color: var(--muted);
    margin: 6px 0 0 0;
    font-size: 13px;
}

.hidden {
    display: none !important;
}

#referrer-instruction {
    color: #e0b84c;
    font-weight: 600;
    margin-top: 6px;
}

/* error state for referral/bonus inputs */
.referral-input.is-error {
    border-color: #ff6464 !important;
    box-shadow: 0 0 0 2px rgba(255, 100, 100, .18), 0 0 12px rgba(255, 100, 100, .18) inset;
}

/* text under the input */
.referral-hint,
#bonus-wallet-error,
#referrer-error {
    transition: color .2s ease, opacity .2s ease;
}

#bonus-wallet-error,
#referrer-error {
    color: #ff9a9a;     /* мягкий красный */
    font-weight: 700;
}
