.sdk-privacy-btn,
.sdk-terms-btn {
    display: inline;
    font-weight: 600;
}

.iti {
    font-size: 15px;
    font-weight: 500;
}

form .iti .iti__selected-dial-code,
.iti--separate-dial-code .iti__selected-dial-code {
    padding-left: 0;
    margin-left: 0;
}

input[type="checkbox"] {
    height: auto;
    width: unset;
    min-width: unset;
}

.iti__selected-dial-code {
    color: #58468c;
}

.sdk-login-button {
    display: block;
    min-width: 100%;
    margin-top: 20px;
    padding-block: 16px;
    height: 48px;
    font-weight: 700;
    font-size: 16px;
    line-height: 1;
    text-align: center;
    text-transform: uppercase;
    color: #fff;
    background: #ff61eb;
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
}

/* Header logo + platform name (responsive) */
.header .logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    max-width: none; /* override fixed max-width from base styles */
}

.header .logo img {
    display: block;
    height: 32px;
    width: auto;
    max-width: 180px;
}

.header .logo__text {
    font-weight: 700;
    font-size: 20px;
    line-height: 1.1;
    color: #58468c;
    white-space: nowrap;
}

@media (min-width: 992px) {
    .header .logo img {
        height: 36px;
        max-width: 240px;
    }
    .header .logo__text {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .header .logo {
        gap: 8px;
    }
    .header .logo__text {
        font-size: 18px;
    }
}

@media (max-width: 360px) {
    .header .logo__text {
        display: none;
    }
}

/* Footer logo + platform name (responsive) */
.footer .logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.footer .logo img {
    display: block;
    height: 30px;
    width: auto;
}

.footer .logo__text {
    font-weight: 700;
    font-size: 16px;
    line-height: 1.1;
    color: #fff;
    white-space: nowrap;
}

@media (min-width: 768px) {
    .footer .logo {
        justify-content: flex-start;
    }
    .footer .logo__text {
        font-size: 18px;
    }
}

@media (max-width: 360px) {
    .footer .logo__text {
        display: none;
    }
}

.chat-widget {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 10000;
    display: flex;
    align-items: flex-end;
    gap: 12px;
}

.chat-bubble {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background-color: #ffffff;
    color: #111827;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.14);
    font-size: 14px;
    line-height: 1.2;
}

.chat-bubble-icon {
    width: 20px;
    height: 20px;
    color: #58468c;
    flex-shrink: 0;
}

.chat-bubble-text {
    font-weight: 600;
    white-space: nowrap;
}

.chat-button {
    width: 60px;
    height: 60px;
    border: none;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #58468c 0%, #7c63bf 100%);
    color: #ffffff;
    cursor: pointer;
    box-shadow: 0 14px 28px rgba(88, 70, 140, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.chat-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(88, 70, 140, 0.4);
}

.chat-button:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.8);
    outline-offset: 2px;
}

.chat-icon {
    width: 28px;
    height: 28px;
}

.pulse {
    animation: pulse 2.4s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(88, 70, 140, 0.45);
    }
    70% {
        box-shadow: 0 0 0 16px rgba(88, 70, 140, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(88, 70, 140, 0);
    }
}

.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(17, 24, 39, 0.55);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.modal-overlay.is-open {
    display: flex;
}

.modal-content {
    position: relative;
    width: 100%;
    max-width: 560px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 28px 70px rgba(2, 6, 23, 0.32);
    padding: 36px 30px 30px;
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: #f3f4f6;
    color: #1f2937;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.modal-close:hover {
    background: #e5e7eb;
}

.modal-header {
    text-align: center;
    margin-bottom: 18px;
}

.modal-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #f3f0ff;
    color: #58468c;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.modal-title {
    margin: 0;
    font-size: 28px;
    line-height: 1.2;
    color: #111827;
}

.modal-body {
    text-align: center;
}

.modal-text {
    margin: 0;
    color: #374151;
    font-size: 17px;
    line-height: 1.5;
}

.modal-subtext {
    margin: 12px 0 0;
    color: #6b7280;
    font-size: 15px;
    line-height: 1.5;
}

.modal-footer {
    margin-top: 26px;
}

.modal-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 52px;
    padding: 12px 20px;
    border-radius: 12px;
    background: linear-gradient(135deg, #58468c 0%, #7c63bf 100%);
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 14px 28px rgba(88, 70, 140, 0.28);
}

.modal-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(88, 70, 140, 0.35);
}

body.chat-modal-open {
    overflow: hidden;
}

@media (max-width: 767px) {
    .chat-widget {
        right: 14px;
        bottom: 14px;
    }

    .chat-bubble {
        display: none;
    }

    .chat-button {
        width: 56px;
        height: 56px;
    }

    .modal-content {
        border-radius: 14px;
        padding: 30px 20px 22px;
    }

    .modal-title {
        font-size: 24px;
    }

    .modal-text {
        font-size: 16px;
    }
}
