/* ADS Opt-In Popup */
.ads-optin-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.75) !important;
    z-index: 99999 !important;
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 16px !important;
    box-sizing: border-box !important;
    margin: 0 !important;
}

.ads-optin-overlay.is-visible {
    display: flex !important;
}

.ads-optin-modal {
    background: #1a1a2e;
    border-radius: 0;
    max-width: 480px;
    width: 100%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
    overflow: hidden;
    border: 1px solid #FFCF44;
    z-index: 100000;
    margin: auto;
}

.ads-optin-body {
    padding: 40px 36px 32px;
}

.ads-optin-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: none;
    border: none;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: #FFCF44;
    padding: 4px 8px;
}

.ads-optin-close:hover {
    color: #fff;
}

.ads-optin-modal h2 {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 700;
    color: #FFCF44;
}

.ads-optin-modal > .ads-optin-body > p {
    margin: 0 0 20px;
    color: #cccccc;
    font-size: 14px;
}

.ads-optin-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.ads-optin-row input {
    flex: 1;
}

#ads-optin-form input[type="email"],
#ads-optin-form input[type="text"] {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #3a3a5c;
    border-radius: 0;
    font-size: 14px;
    box-sizing: border-box;
    margin-bottom: 10px;
    background: #12122a;
    color: #ffffff;
}

#ads-optin-form input::placeholder {
    color: #888;
}

#ads-optin-form input:focus {
    outline: none;
    border-color: #FFCF44;
    box-shadow: 0 0 0 2px rgba(255, 207, 68, 0.2);
}

.ads-optin-consent {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12px;
    color: #aaaaaa;
    margin-bottom: 16px;
    cursor: pointer;
    line-height: 1.4;
}

.ads-optin-consent input[type="checkbox"] {
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: #FFCF44;
}

.ads-optin-submit {
    width: 100%;
    padding: 12px;
    background: #FFCF44;
    color: #1a1a2e;
    border: none;
    border-radius: 0;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.ads-optin-submit:hover {
    background: #e6b800;
    color: #1a1a2e;
}

.ads-optin-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.ads-optin-no-thanks {
    text-align: center;
    margin: 12px 0 0 !important;
}

.ads-optin-no-thanks a {
    font-size: 12px;
    color: #777;
    text-decoration: underline;
}

.ads-optin-no-thanks a:hover {
    color: #aaa;
}

.ads-optin-message {
    padding: 12px 16px;
    border-radius: 0;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 14px;
    text-align: center;
}

.ads-optin-error {
    background: rgba(192, 57, 43, 0.2);
    color: #ff6b6b;
    border: 1px solid rgba(192, 57, 43, 0.4);
}

.ads-optin-success {
    background: rgba(255, 207, 68, 0.15);
    color: #FFCF44;
    border: 1px solid rgba(255, 207, 68, 0.4);
    font-size: 16px;
    padding: 20px;
}

@media (max-width: 480px) {
    .ads-optin-row {
        flex-direction: column;
        gap: 0;
    }

    .ads-optin-body {
        padding: 32px 20px 24px;
    }
}
