/* Ahuimin Language & Currency Switcher — UI Styles */
#lang-switcher-btn {
    z-index: 99999;
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 24px;
    padding: 6px 14px;
    cursor: pointer;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #444;
    white-space: nowrap;
    transition: all .2s;
    line-height: 1.4;
    user-select: none;
    position: fixed;
}
#lang-switcher-btn:hover {
    background: #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,.18);
}
#lang-switcher-btn .arrow {
    font-size: 10px;
    transition: transform .2s;
    margin-left: 2px;
}
#lang-switcher-btn.open .arrow {
    transform: rotate(180deg);
}
#lang-dropdown {
    z-index: 99999;
    background: rgba(255,255,255,.97);
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,.15);
    padding: 6px 0;
    display: none;
    min-width: 170px;
    backdrop-filter: blur(8px);
    overflow: hidden;
    position: fixed;
}
#lang-dropdown.show {
    display: block;
}
#lang-dropdown .lang-opt {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    cursor: pointer;
    font-size: 14px;
    color: #444;
    transition: background .15s;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    width: 100%;
    box-sizing: border-box;
    border: none;
    background: none;
    text-align: left;
    line-height: 1.4;
}
#lang-dropdown .lang-opt:hover {
    background: #f0f0f0;
}
#lang-dropdown .lang-opt:active {
    background: #e0e0e0;
}
#lang-dropdown .lang-opt.active {
    background: #e8f0fe;
    color: #1a73e8;
    font-weight: 600;
}
#lang-dropdown .lang-opt .label {
    flex: 1;
}
#lang-dropdown .lang-opt .check {
    font-size: 12px;
    color: #1a73e8;
    font-weight: 700;
}

/* RTL adjustments */
[dir=rtl] #lang-switcher-btn {
    right: auto; left: 12px;
}
[dir=rtl] #lang-dropdown {
    right: auto; left: 12px;
}
[dir=rtl] .lang-opt {
    text-align: right;
}
