/* Shared topbar privacy controls — eye + language switch. */

.topbar-privacy-tools {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    position: relative;
    z-index: 1002;
    pointer-events: auto;
}

.topbar-actions .topbar-privacy-tools,
.topbar-right .topbar-privacy-tools {
    flex-shrink: 0;
}

.money-privacy-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    padding: 0;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    box-sizing: border-box;
    line-height: 1;
    font-size: 15px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    pointer-events: auto;
    position: relative;
    z-index: 1;
}

.money-privacy-toggle i {
    font-size: 15px;
    line-height: 1;
    pointer-events: none;
}

.money-privacy-toggle:hover {
    border-color: #c7d2fe;
    color: #4f46e5;
    background: #f8fafc;
}

.money-privacy-toggle.active {
    background: #4f46e5;
    border-color: #4f46e5;
    color: #fff;
}

.money-privacy-toggle.active:hover {
    background: #4338ca;
    border-color: #4338ca;
    color: #fff;
}

.topbar-clock {
    font-size: 13px;
    color: #64748b;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Language switch beside privacy toggles */
.lang-switch {
    display: inline-flex;
    align-items: center;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    height: 36px;
    flex-shrink: 0;
}

.lang-switch-btn {
    border: none;
    background: transparent;
    color: #64748b;
    font-size: 11px;
    font-weight: 600;
    padding: 0 10px;
    height: 100%;
    min-height: 36px;
    cursor: pointer;
    line-height: 1;
    transition: background 0.15s, color 0.15s;
    box-sizing: border-box;
    touch-action: manipulation;
}

.lang-switch-btn:hover {
    color: #334155;
    background: #e2e8f0;
}

.lang-switch-btn.active {
    background: #4f46e5;
    color: #fff;
}

html[dir="rtl"] .lang-switch-btn {
    font-family: 'Inter', 'Noto Kufi Arabic', 'Segoe UI', Tahoma, sans-serif;
}

.login-lang-switch {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin-bottom: 16px;
}

.login-lang-switch .lang-switch-btn {
    padding: 6px 14px;
    border-radius: 6px;
    height: auto;
    min-height: 32px;
}

.login-lang-switch .lang-switch {
    border-radius: 10px;
    height: auto;
}
