/* GTANEX localization controls and client-side deterrence layer. */

html {
    -webkit-tap-highlight-color: transparent;
}

body,
body *:not(input):not(textarea):not(select):not(option):not([contenteditable="true"]) {
    -webkit-user-select: none;
    user-select: none;
}

input,
textarea,
select,
[contenteditable="true"] {
    -webkit-user-select: text;
    user-select: text;
}

img,
svg {
    -webkit-user-drag: none;
    user-drag: none;
}

.gtanex-locale-switcher {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 2147483000;
    width: min(280px, calc(100vw - 32px));
    color: #f8f8fb;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    direction: ltr;
}

.gtanex-locale-toggle {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    float: right;
    padding: 9px 12px;
    color: #fff;
    background: rgba(10, 12, 22, 0.94);
    border: 1px solid rgba(241, 172, 42, 0.34);
    border-radius: 12px;
    box-shadow: 0 14px 42px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(16px);
    cursor: pointer;
}

.gtanex-locale-toggle strong {
    font-size: 11px;
    letter-spacing: 0.03em;
}

.gtanex-locale-panel {
    clear: both;
    margin-bottom: 8px;
    padding: 14px;
    background: rgba(9, 11, 20, 0.98);
    border: 1px solid rgba(241, 172, 42, 0.26);
    border-radius: 14px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.48);
    backdrop-filter: blur(18px);
}

.gtanex-locale-panel[hidden] {
    display: none !important;
}

.gtanex-locale-panel label {
    display: grid;
    gap: 6px;
    margin-bottom: 10px;
}

.gtanex-locale-panel label > span {
    color: #aab1c3;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.gtanex-locale-panel select {
    width: 100%;
    min-height: 39px;
    padding: 8px 10px;
    color: #fff;
    background: #111522;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 9px;
    outline: none;
}

.gtanex-locale-meta {
    margin: 3px 0 0;
    color: #7f899f;
    font-size: 8px;
    line-height: 1.5;
}

.gtanex-locale-meta a {
    color: #dba94d;
    text-decoration: none;
}

.gtanex-security-toast {
    position: fixed;
    left: 50%;
    bottom: 25px;
    z-index: 2147483647;
    max-width: calc(100vw - 36px);
    padding: 11px 15px;
    color: #fff;
    background: rgba(12, 14, 24, 0.97);
    border: 1px solid rgba(241, 172, 42, 0.32);
    border-radius: 11px;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.5);
    font-family: Inter, system-ui, sans-serif;
    font-size: 11px;
    font-weight: 700;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 12px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.gtanex-security-toast.visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

html[dir="rtl"] body {
    direction: rtl;
}

html[dir="rtl"] .gtanex-locale-switcher {
    right: auto;
    left: 16px;
}

@media (max-width: 600px) {
    .gtanex-locale-switcher {
        right: 10px;
        bottom: 10px;
        width: min(250px, calc(100vw - 20px));
    }

    html[dir="rtl"] .gtanex-locale-switcher {
        left: 10px;
    }
}
