/* ── Redirect Code Manager – Frontend Widget ─────────────── */

.rcm-widget {
    max-width: 480px;
    margin: 32px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.rcm-widget-inner {
    background: #5AE28C;
    border-radius: 16px;
    padding: 20px 24px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(90, 226, 140, .25);
}

.rcm-widget-title {
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 8px;
    letter-spacing: -0.3px;
}

.rcm-widget-subtitle {
    color: rgba(255, 255, 255, .6);
    font-size: 14px;
    margin: 0 0 24px;
    line-height: 1.5;
}

.rcm-input-row {
    display: flex;
    gap: 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .15);
}

#rcm-code-input {
    flex: 1;
    border: none;
    padding: 14px 18px;
    font-size: 18px;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    letter-spacing: 3px;
    text-transform: uppercase;
    background: #fff;
    color: #1a1a2e;
    outline: none;
    text-align: center;
}
#rcm-code-input::placeholder {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    letter-spacing: 0;
    text-transform: none;
    font-size: 14px;
    color: #999;
}

#rcm-submit-btn {
    border: none;
    background: #FFDF34;
    color: #1a1a2e;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background .2s;
}
#rcm-submit-btn:hover {
    background: #f0d020;
}
#rcm-submit-btn:active {
    background: #dfc010;
}

/* Message */
.rcm-message {
    margin-top: 16px;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
}
.rcm-message.error {
    background: rgba(220, 40, 40, .15);
    color: #c0392b;
}
.rcm-message.success {
    background: rgba(255, 255, 255, .3);
    color: #1a5c2e;
}
.rcm-message.loading {
    background: rgba(255, 255, 255, .2);
    color: #1a5c2e;
}

/* Responsive */
@media (max-width: 520px) {
    .rcm-widget-inner {
        padding: 28px 20px;
    }
    .rcm-input-row {
        flex-direction: column;
        border-radius: 10px;
    }
    #rcm-submit-btn {
        border-radius: 0 0 10px 10px;
    }
}
