.rsb-subscribe-box {
    --rsb-primary: #ff6b35;
    --rsb-accent: #ffb627;
    --rsb-text: #1a1a1a;
    --rsb-bg: #fff8f0;
    position: relative;
    margin: 32px 0;
    padding: 32px 28px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--rsb-bg), #ffffff 80%);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.6) inset,
        0 20px 40px -20px rgba(255, 107, 53, 0.25),
        0 8px 24px -16px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    isolation: isolate;
    color: var(--rsb-text);
    font-family: inherit;
    line-height: 1.5;
}

.rsb-subscribe-box * {
    box-sizing: border-box;
}

.rsb-subscribe-box::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 100% 0%, rgba(255, 182, 39, 0.22), transparent 50%),
        radial-gradient(circle at 0% 100%, rgba(255, 107, 53, 0.14), transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.rsb-glow {
    position: absolute;
    inset: -40px;
    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        var(--rsb-primary) 90deg,
        var(--rsb-accent) 180deg,
        transparent 270deg,
        transparent 360deg
    );
    z-index: -1;
    border-radius: 50%;
    opacity: 0.12;
    filter: blur(30px);
    transform: rotate(0deg);
}

.rsb-subscribe-box.rsb-animated .rsb-glow {
    animation: rsb-rotate 12s linear infinite;
}

@keyframes rsb-rotate {
    to { transform: rotate(360deg); }
}

.rsb-content {
    position: relative;
    z-index: 1;
}

.rsb-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px 5px 10px;
    border-radius: 100px;
    background: rgba(255, 107, 53, 0.12);
    color: var(--rsb-primary);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 14px;
}

.rsb-subscribe-box.rsb-animated .rsb-badge {
    animation: rsb-pulse 2.6s ease-in-out infinite;
}

@keyframes rsb-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 107, 53, 0.35); }
    50% { box-shadow: 0 0 0 8px rgba(255, 107, 53, 0); }
}

.rsb-heading {
    font-size: 26px;
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 10px 0;
    color: var(--rsb-text);
    letter-spacing: -0.02em;
}

.rsb-subheading {
    font-size: 15px;
    line-height: 1.55;
    margin: 0 0 20px 0;
    color: rgba(26, 26, 26, 0.72);
}

.rsb-form {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: stretch;
}

.rsb-input {
    flex: 1 1 220px;
    min-width: 0;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1.5px solid rgba(0, 0, 0, 0.12);
    background: white;
    font-size: 15px;
    color: var(--rsb-text);
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
    font-family: inherit;
    line-height: 1.3;
}

.rsb-input:focus {
    border-color: var(--rsb-primary);
    box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.18);
}

.rsb-button {
    position: relative;
    padding: 14px 22px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--rsb-primary), var(--rsb-accent));
    color: white;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 0.01em;
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
    box-shadow: 0 8px 18px -10px rgba(255, 107, 53, 0.7);
    font-family: inherit;
    min-width: 150px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    line-height: 1.2;
}

.rsb-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px -12px rgba(255, 107, 53, 0.8);
}

.rsb-button:active {
    transform: translateY(0);
}

.rsb-button:disabled {
    cursor: wait;
    opacity: 0.85;
}

.rsb-spinner {
    display: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.45);
    border-top-color: white;
    animation: rsb-spin 0.8s linear infinite;
}

.rsb-loading .rsb-spinner {
    display: inline-block;
}

.rsb-loading .rsb-button-text {
    opacity: 0.85;
}

@keyframes rsb-spin {
    to { transform: rotate(360deg); }
}

.rsb-perks {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 16px;
    font-size: 12px;
    color: rgba(26, 26, 26, 0.62);
    font-weight: 600;
}

.rsb-perk {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.rsb-perk svg {
    color: var(--rsb-primary);
    flex-shrink: 0;
}

.rsb-message {
    margin-top: 12px;
    min-height: 22px;
    font-size: 14px;
    font-weight: 600;
}

.rsb-message.rsb-success {
    color: #15803d;
}

.rsb-message.rsb-error {
    color: #b91c1c;
}

.rsb-subscribe-box.rsb-celebrate {
    animation: rsb-celebrate 0.7s ease-out;
}

@keyframes rsb-celebrate {
    0% { transform: scale(1); }
    40% { transform: scale(1.015); }
    100% { transform: scale(1); }
}

@media (max-width: 540px) {
    .rsb-subscribe-box {
        padding: 24px 20px;
        margin: 24px 0;
        border-radius: 14px;
    }
    .rsb-heading {
        font-size: 21px;
    }
    .rsb-subheading {
        font-size: 14px;
    }
    .rsb-button {
        flex: 1 1 100%;
        min-width: 0;
    }
    .rsb-perks {
        gap: 12px;
        font-size: 11px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rsb-subscribe-box,
    .rsb-glow,
    .rsb-badge {
        animation: none !important;
    }
}
