/* Dark shell modals — sportbet-u4ai style (keeps jquery.modal API) */

.blocker {
    background-color: rgba(0, 0, 0, 0.72) !important;
    -webkit-backdrop-filter: blur(8px) brightness(90%) !important;
    backdrop-filter: blur(8px) brightness(90%) !important;
    z-index: 100000 !important;
}

.blocker.current {
    z-index: 100000 !important;
}

.modal.shell_modal,
#auth.modal,
#reg.modal,
#forgot.modal,
#settings.modal,
#deposit.modal,
#deposit_address_modal.modal,
#withdraw.modal,
#confirm.modal,
#voucher.modal,
#verification.modal,
#buyvip.modal,
#friend.modal {
    background: #161618 !important;
    color: #fff !important;
    border-radius: 14px !important;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55) !important;
    padding: 22px 22px 20px !important;
    max-width: calc(100vw - 24px);
    z-index: 100001 !important;
}

#auth.modal,
#reg.modal,
#forgot.modal {
    width: 400px;
}

.modal .modal_head {
    margin-bottom: 18px;
}

.modal .modal_head > div {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.modal .modal_head a[rel="modal:close"],
.modal .modal_head a {
    background-color: #242428 !important;
    background-image: none !important;
    border-radius: 8px;
    position: relative;
}

.modal .modal_head a[rel="modal:close"]::before,
.modal .modal_head a[rel="modal:close"]::after,
.modal .modal_head a::before,
.modal .modal_head a::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 2px;
    background: #c5c6cc;
    border-radius: 1px;
}

.modal .modal_head a::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.modal .modal_head a::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.modal .modal_double_head {
    color: #c5c6cc;
    font-size: 13px;
    font-weight: 600;
    margin-top: 16px;
    margin-bottom: 4px;
}

.modal .shell_field {
    position: relative;
    margin-top: 10px;
}

.modal .shell_field:first-child,
.modal .shell_auth_form > .shell_field:first-of-type {
    margin-top: 0;
}

.modal .shell_field_icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: #8a8b93;
    pointer-events: none;
    z-index: 2;
}

.modal input[type="text"],
.modal input[type="email"],
.modal input[type="password"],
.modal input[type="tel"],
.modal input[type="number"],
.modal select,
.modal textarea {
    width: 100% !important;
    box-sizing: border-box;
    height: 48px;
    margin-top: 10px;
    padding: 0 14px !important;
    background: #1f1f21 !important;
    color: #fff !important;
    border: 1px solid #333 !important;
    border-radius: 8px !important;
    outline: none;
    font-size: 14px;
    line-height: 48px;
}

.modal .shell_field input[type="text"],
.modal .shell_field input[type="email"],
.modal .shell_field input[type="password"],
.modal .shell_field input[type="tel"],
.modal .shell_field input[type="number"],
.modal .shell_field select {
    margin-top: 0 !important;
    padding: 0 14px 0 42px !important;
}

.modal .shell_field_select select {
    padding: 0 32px 0 42px !important;
}

.modal .shell_field .select {
    margin-top: 0;
}

.modal input::placeholder,
.modal textarea::placeholder {
    color: #888;
}

.modal input:focus,
.modal select:focus,
.modal textarea:focus {
    border-color: rgba(246, 176, 7, 0.55) !important;
    box-shadow: 0 0 0 2px rgba(246, 176, 7, 0.12);
}

.modal select {
    appearance: none;
    -webkit-appearance: none;
    background-color: #1f1f21 !important;
    background-image: linear-gradient(45deg, transparent 50%, #8a8b93 50%),
        linear-gradient(135deg, #8a8b93 50%, transparent 50%) !important;
    background-position: calc(100% - 18px) calc(50% - 2px), calc(100% - 13px) calc(50% - 2px) !important;
    background-size: 5px 5px, 5px 5px !important;
    background-repeat: no-repeat !important;
    padding-right: 32px !important;
}

.modal select option {
    background: #161618;
    color: #fff;
}

.modal button,
.modal .abutton,
.modal button[type="submit"] {
    width: 100%;
    margin-top: 14px;
    padding: 13px 16px !important;
    background: var(--main_color, #f6b007) !important;
    color: #000 !important;
    border: 0 !important;
    border-radius: 10px !important;
    font-size: 14px;
    font-weight: 700;
    box-shadow: none !important;
    text-shadow: none !important;
    cursor: pointer;
    transition: filter 0.15s;
}

.modal button:hover,
.modal .abutton:hover {
    filter: brightness(1.06);
}

.modal .auth_forgot,
.modal .auth_offer {
    margin-top: 14px;
    color: #c5c6cc;
    font-size: 15px;
    line-height: 1.4;
    text-align: center;
}

.modal .auth_forgot a,
.modal .auth_offer a {
    color: var(--main_color, #f6b007) !important;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
}

.modal .auth_forgot a:hover,
.modal .auth_offer a:hover {
    text-decoration: underline;
}

.modal .regRules.shell_dot_row {
    color: #a0a3ad;
    font-size: 11px;
    margin-top: 16px;
    padding: 0;
    display: flex !important;
    text-align: left;
}

.modal .regRules.shell_dot_row a {
    color: var(--main_color, #f6b007);
}

.modal .notifications {
    color: #ff6b6b;
    font-size: 13px;
    margin-top: 8px;
}

.modal .phonePluginReg,
.modal .phonePluginAcc {
    margin-top: 10px;
}

/* Hide leftover intl-tel-input chrome if any page still inits it */
.modal .iti__flag-container,
.modal .iti__country-list {
    display: none !important;
}

.modal .iti {
    width: 100%;
    display: block;
}

.modal .iti input {
    width: 100% !important;
    padding-left: 14px !important;
}

.modal .select {
    margin-top: 0;
}

.modal .select select {
    margin-top: 10px;
}

.modal .tab_selector_content {
    color: #fff;
}

/* jquery.modal close button (default X) if present */
.modal a.close-modal {
    background: #242428 !important;
    border-radius: 8px;
    top: 14px !important;
    right: 14px !important;
}

/* Auth / Reg modal with top switcher */
#auth.shell_auth_modal {
    width: 460px;
    padding: 36px 36px 32px !important;
}

#reg.shell_auth_stub {
    display: none !important;
}

.shell_auth_modal .shell_auth_head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 22px;
}

.shell_auth_stack {
    position: relative;
}

.shell_auth_panel[hidden] {
    display: none !important;
}

.shell_auth_panel.is-active {
    display: block;
}

.shell_auth_panel.is-enter {
    animation: shellAuthPanelIn 0.22s ease both;
}

@keyframes shellAuthPanelIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.shell_auth_modal .shell_auth_tabs {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    padding: 4px;
    background: #1c1c20;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.shell_auth_modal .shell_auth_tab {
    width: auto !important;
    margin: 0 !important;
    padding: 10px 12px !important;
    border: 0 !important;
    border-radius: 9px !important;
    background: transparent !important;
    color: #a0a3ad !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    box-shadow: none !important;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.shell_auth_modal .shell_auth_tab:hover {
    color: #fff !important;
    filter: none;
}

.shell_auth_modal .shell_auth_tab.is-active {
    background: var(--main_color, #f6b007) !important;
    color: #000 !important;
}

.shell_auth_modal .shell_auth_close,
.shell_auth_modal .modal_head > a[rel="modal:close"] {
    flex: 0 0 32px;
    width: 32px !important;
    height: 32px !important;
    margin: 0;
}

.shell_auth_modal .shell_auth_form > input:first-of-type,
.shell_auth_modal .shell_auth_form > .select:first-child select {
    margin-top: 0;
}

/* Circular yellow dots (source-style) */
.shell_auth_modal .shell_dot_row {
    display: flex !important;
    align-items: center !important;
    gap: 10px;
    margin-top: 16px;
    color: #a0a3ad;
    font-size: 11px;
    line-height: 16px;
}

.shell_auth_modal .shell_dot_row_legal {
    align-items: flex-start !important;
    margin-top: 18px;
    margin-bottom: 4px;
}

.shell_auth_modal .shell_dot_control {
    position: relative;
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    margin: 0;
    padding: 0 !important;
}

.shell_auth_modal .shell_dot_row_legal .shell_dot_control {
    margin-top: 0;
}

.shell_auth_modal .shell_dot_check {
    position: absolute !important;
    opacity: 0 !important;
    width: 18px !important;
    height: 18px !important;
    margin: 0 !important;
    padding: 0 !important;
    cursor: pointer;
    z-index: 2;
}

.shell_auth_modal .shell_dot_ui {
    display: block;
    width: 18px;
    height: 18px;
    border: 1.5px solid var(--main_color, #f6b007);
    border-radius: 50%;
    background: transparent;
    box-sizing: border-box;
    cursor: pointer;
    position: relative;
}

.shell_auth_modal .shell_dot_check:checked + .shell_dot_ui::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    margin: -4px 0 0 -4px;
    border-radius: 50%;
    background: var(--main_color, #f6b007);
}

.shell_auth_modal .shell_dot_text {
    flex: 1;
    min-width: 0;
    margin: 0;
    padding: 0;
    cursor: pointer;
    font-size: 13px;
    line-height: 16px;
    letter-spacing: 0;
}

.shell_auth_modal label.shell_dot_text {
    cursor: pointer;
    font-weight: 400;
}

.shell_auth_modal .shell_dot_text a,
.shell_auth_modal .shell_legal_link {
    color: var(--main_color, #f6b007) !important;
    text-decoration: underline;
    font-weight: 600;
}

.shell_auth_modal .auth_forgot,
.shell_auth_modal .auth_offer {
    margin-top: 16px;
    font-size: 15px;
}

.shell_auth_modal .auth_forgot a,
.shell_auth_modal .auth_offer a {
    font-size: 15px;
}

.shell_auth_modal button[type="submit"] {
    text-transform: none;
    font-size: 15px !important;
    height: 48px;
    padding: 0 16px !important;
    line-height: 48px;
}

.shell_auth_modal button[type="submit"]:disabled,
.shell_auth_modal button[type="submit"].is-disabled {
    background: #2a2a2e !important;
    color: #6b6b73 !important;
    cursor: not-allowed;
    filter: none !important;
    pointer-events: none;
}

.shell_auth_modal button[type="submit"]:not(:disabled):not(.is-disabled) {
    background: var(--main_color, #f6b007) !important;
    color: #000 !important;
}

/* Closed by default; fullscreen styles apply only when jquery.modal puts it in .blocker */
#auth.shell_auth_modal {
    display: none !important;
}

.blocker #auth.shell_auth_modal {
    display: inline-block !important;
}

/* Mobile: fullscreen auth/reg like source (Nuxt sheet) — only when open */
@media (max-width: 1000px) {
    .blocker {
        padding: 0 !important;
        text-align: left !important;
        overflow: hidden !important;
    }

    .blocker:before {
        display: none !important;
    }

    .blocker #auth.shell_auth_modal {
        display: block !important;
        vertical-align: top !important;
        width: 100% !important;
        max-width: 100% !important;
        min-height: 100vh;
        min-height: 100dvh;
        height: auto;
        margin: 0 !important;
        border-radius: 0 !important;
        border: 0 !important;
        padding: max(16px, env(safe-area-inset-top)) 16px max(24px, env(safe-area-inset-bottom)) !important;
        box-sizing: border-box;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        z-index: 100001 !important;
    }

    .blocker #auth.shell_auth_modal .shell_auth_head {
        margin-bottom: 18px;
    }

    .blocker #auth.shell_auth_modal .shell_auth_stack {
        flex: 1;
    }
}
