/* SmartOptin Ultra-Lightweight Zero-CLS Frontend CSS */
.smartoptin-wrapper {
    position: fixed;
    z-index: 999999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
    box-sizing: border-box;
}
.smartoptin-wrapper * {
    box-sizing: border-box;
}

/* 1. Center Modal Layout */
.smartoptin-type-modal {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: soFadeIn 0.28s ease-out;
}
.smartoptin-type-modal .smartoptin-container {
    max-width: 500px;
    width: 100%;
    border-radius: 16px;
    padding: 36px 32px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.45);
    text-align: center;
    animation: soScaleUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 2. Slide-in Bottom Right Layout */
.smartoptin-type-slide_in {
    bottom: 24px;
    right: 24px;
    max-width: 380px;
    width: calc(100% - 48px);
    animation: soSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.smartoptin-type-slide_in .smartoptin-container {
    border-radius: 14px;
    padding: 26px 24px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
    text-align: left;
}

/* 3. Floating Top Bar Layout */
.smartoptin-type-floating_bar {
    top: 0;
    left: 0;
    width: 100%;
    animation: soSlideDown 0.3s ease-out;
}
.smartoptin-type-floating_bar .smartoptin-container {
    width: 100%;
    padding: 14px 48px 14px 24px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}
.smartoptin-type-floating_bar .smartoptin-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
}
.smartoptin-type-floating_bar .smartoptin-headline {
    font-size: 17px !important;
    margin: 0 !important;
}
.smartoptin-type-floating_bar .smartoptin-subheadline,
.smartoptin-type-floating_bar .smartoptin-privacy,
.smartoptin-type-floating_bar .smartoptin-ai-badge {
    display: none !important;
}
.smartoptin-type-floating_bar .smartoptin-form {
    flex-direction: row !important;
    margin: 0 !important;
}

/* Inner Elements */
.smartoptin-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: rgba(255, 255, 255, 0.12);
    color: inherit;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s;
}
.smartoptin-close:hover {
    background: rgba(255, 255, 255, 0.25);
}
.smartoptin-ai-badge {
    display: inline-block;
    background: rgba(99, 102, 241, 0.25);
    border: 1px solid rgba(99, 102, 241, 0.6);
    color: #e0e7ff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    margin-bottom: 12px;
    letter-spacing: 0.4px;
}
.smartoptin-headline {
    font-size: 24px;
    font-weight: 800;
    line-height: 1.25;
    margin: 0 0 10px 0;
    color: inherit;
}
.smartoptin-subheadline {
    font-size: 15px;
    line-height: 1.5;
    opacity: 0.88;
    margin: 0 0 22px 0;
    color: inherit;
}
.smartoptin-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.smartoptin-input {
    width: 100%;
    padding: 13px 16px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: #ffffff;
    color: #0f172a;
    font-size: 15px;
    outline: none;
}
.smartoptin-input:focus {
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.45);
}
.smartoptin-submit {
    width: 100%;
    padding: 14px 20px;
    border-radius: 8px;
    border: none;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s ease, opacity 0.2s ease;
}
.smartoptin-submit:hover {
    opacity: 0.94;
    transform: translateY(-1px);
}
.smartoptin-privacy {
    margin-top: 12px;
    font-size: 11px;
    opacity: 0.65;
}
.smartoptin-feedback {
    margin-top: 14px;
    padding: 12px;
    border-radius: 8px;
    background: rgba(22, 163, 74, 0.2);
    border: 1px solid #22c55e;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
}

@keyframes soFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes soScaleUp {
    from { transform: scale(0.92); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
@keyframes soSlideUp {
    from { transform: translateY(40px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
@keyframes soSlideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}
