/* Reset & Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #ffffff;
    color: #131619;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}


h3 {
    font-size: 14px;
    line-height: 24px;
    font-weight: 400;
    margin: 0;
}


/* Mobile Restricted Screen Overlay */
.mobile-restricted-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #F7F9FA;
    z-index: 9999;
    display: none;
    /* Controlled by JavaScript detection */
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.mobile-restricted-overlay.is-active {
    display: flex;
}

.restricted-card {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 32px 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    text-align: center;
    max-width: 400px;
    width: 100%;
    border: 1px solid #E4E7EB;
}

.restricted-logo {
    margin-bottom: 24px;
}

.restricted-icon {
    margin-bottom: 16px;
}

.restricted-card h2 {
    font-size: 22px;
    font-weight: 600;
    color: #131619;
    margin-bottom: 12px;
}

.restricted-msg {
    font-size: 15px;
    color: #3B3F46;
    line-height: 1.6;
    margin-bottom: 16px;
}

.restricted-msg strong {
    color: #0E71EB;
    font-weight: 600;
}

.restricted-sub {
    font-size: 13px;
    color: #6E7680;
}

/* Header Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 40px;
    background-color: #ffffff;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-link {
    color: #0E71EB;
    text-decoration: none;
    font-size: 14px;
}

.nav-link:hover {
    text-decoration: underline;
}

.language-selector {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #0E71EB;
    cursor: pointer;
}

.language-selector .arrow {
    font-size: 9px;
    vertical-align: middle;
}

/* Main Container Layout */
.content-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
    max-width: 480px;
    margin: 0 auto;
    width: 100%;
}

.heading {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 40px;
    color: #131619;
}

/* Action Groups & Interactive Wrapper */
.actions-group {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.btn-interaction-wrapper {
    position: relative;
    width: 100%;
}

.btn {
    width: 100%;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
    background-color: #0E71EB;
    color: #ffffff;
    border: none;
}

.btn-primary:hover {
    background-color: #0c5dc2;
}

.btn-secondary {
    background-color: #ffffff;
    color: #131619;
    border: 1px solid #74777F;
}

.btn-secondary:hover {
    background-color: #f7f9fa;
    border-color: #131619;
}

/* Message Popups Match */
.message-popup {
    position: absolute;
    left: calc(100% + 14px);
    top: 50%;
    transform: translateY(-50%);
    width: 310px;
    background-color: #ffffff;
    border: 1px solid #e4e7eb;
    border-radius: 12px;
    box-shadow: 0px 8px 24px rgba(0, 0, 0, 0.12);
    padding: 16px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    text-align: left;
    z-index: 50;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.message-popup.is-visible {
    opacity: 1;
    visibility: visible;
}

.message-popup::before {
    content: '';
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    border-width: 8px;
    border-style: solid;
    border-color: transparent #ffffff transparent transparent;
    z-index: 2;
}

.message-popup::after {
    content: '';
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    border-width: 9px;
    border-style: solid;
    border-color: transparent #e4e7eb transparent transparent;
    z-index: 1;
    margin-right: -1px;
}

.popup-body {
    font-size: 13px;
    color: #1c1e21;
    line-height: 1.45;
}

.popup-body strong {
    font-weight: 600;
}

.popup-link {
    color: #0E71EB;
    text-decoration: none;
}

.popup-link:hover {
    text-decoration: underline;
}

.popup-close-btn {
    background: transparent;
    border: 1px solid #dcdfe4;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #5c5e62;
    cursor: pointer;
    flex-shrink: 0;
}

/* Helper Text Layout */
.helper-text {
    font-size: 14px;
    color: #131619;
    margin-bottom: 24px;
}

.terms-text {
    font-size: 14px;
    color: #131619;
    line-height: 1.5;
    white-space: nowrap;
    /* max-width: 440px; */
}

.link {
    color: #0E71EB;
    text-decoration: none;
}

.link:hover {
    text-decoration: underline;
}

/* Footer Section */
.footer {
    padding: 32px 20px;
    text-align: center;
    font-size: 12px;
    color: #6E7680;
    line-height: 1.8;
}

.footer-links a {
    color: #6E7680;
    text-decoration: none;
    margin: 0 4px;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* Floating Chat Help Widget */
.chat-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background-color: #0E71EB;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 40;
}

/* Desktop-only arrangement for button arrows fallback protection */
@media (max-width: 1140px) {
    .message-popup {
        position: fixed;
        left: 50%;
        top: auto;
        bottom: 100px;
        transform: translateX(-50%);
        width: calc(100% - 40px);
        max-width: 360px;
    }

    .message-popup::before,
    .message-popup::after {
        display: none;
    }
}