/* 地区限制弹窗 — 对齐 Figma FX Trading Arena（深底、强调色 #ff0039） */

.location-tips-modal {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    box-sizing: border-box;
}

.location-tips-modal[hidden] {
    display: none !important;
}

.location-tips-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}

.location-tips-card {
    position: relative;
    z-index: 1;
    width: 100%;
    width: 530px;
    border-radius: 8px;
    overflow: hidden;
    background: #252627;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
}

.location-tips-header {
    position: relative;
    height: 72px;
    flex-shrink: 0;
    background: #252627;
    border-radius: 8px 8px 0 0;
}

.location-tips-close {
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    color: #ececec;
    cursor: pointer;
    border-radius: 4px;
    transition:
        background 0.15s ease,
        color 0.15s ease;
}

.location-tips-close:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.location-tips-close:focus-visible {
    outline: 2px solid #ff0039;
    outline-offset: 2px;
}

.location-tips-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 0 24px 20px;
    background: #252627;
}

.location-tips-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    flex-shrink: 0;
}

.location-tips-text {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    text-align: center;
    width: 100%;
}

.location-tips-title {
    margin: 0;
    font-family:
        'Inter',
        system-ui,
        -apple-system,
        'Segoe UI',
        sans-serif;
    font-weight: 600;
    font-size: 20px;
    line-height: 28px;
    color: #ececec;
}

.location-tips-desc {
    margin: 0;
    max-width: 100%;
    font-family:
        'Inter',
        system-ui,
        -apple-system,
        'Segoe UI',
        sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 22px;
    color: #a0a0a0;
}

.location-tips-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
    padding: 24px;
    box-sizing: border-box;
    background: #252627;
}

.location-tips-primary {
    width: 100%;
    margin: 0;
    padding: 9px 20px;
    border: none;
    border-radius: 4px;
    background: #ff0039;
    color: #fff;
    font-family: 'Rajdhani', 'Inter', system-ui, sans-serif;
    font-weight: 700;
    font-size: 14px;
    line-height: 22px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

/* brightness(1.08) 在深色红上几乎看不出，且部分环境下 button + filter 合成不稳定，改用实色 */
.location-tips-primary:hover {
    background-color: #ff335c;
}

.location-tips-primary:active {
    background-color: #e60034;
}

body.location-tips-modal-open {
    overflow: hidden;
}

/* 未引入 Bootstrap 的页面：弹窗内读屏隐藏文案（与 Bootstrap .visually-hidden 行为一致） */
.location-tips-modal .visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

@media (max-width: 480px) {
    .location-tips-title {
        font-size: 18px;
        line-height: 26px;
    }
}