/* ============================================================
   Library Modules — Language Bottom Sheet Styles
   ============================================================ */
.lang-sheet-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 90;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}
.lang-sheet-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.lang-sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 91;
    background: #1C1B20;
    border-radius: 24px 24px 0 0;
    max-height: 78vh;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(.32,1.1,.6,1);
    box-shadow: 0 -8px 30px rgba(0,0,0,0.4);
    padding-bottom: max(env(safe-area-inset-bottom,0px), 12px);
}
.lang-sheet.show { transform: translateY(0); }

.lang-sheet-handle {
    width: 36px;
    height: 4px;
    border-radius: 4px;
    background: var(--md-outline, #444);
    opacity: 0.6;
    margin: 12px auto 4px;
    cursor: pointer;
}

.lang-sheet-header {
    padding: 8px 24px 14px;
}
.lang-sheet-header h3 {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--md-on-surface, #EAE1E9);
    margin: 0 0 4px;
    letter-spacing: -0.2px;
}
.lang-sheet-header p {
    font-size: 0.8125rem;
    color: var(--md-on-surface-variant, #948F99);
    margin: 0;
}

.lang-sheet-list {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 4px 12px 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.lang-sheet-item {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 12px 14px;
    border-radius: 16px;
    text-align: left;
    transition: background-color 0.2s ease;
}
.lang-sheet-item:active { transform: scale(0.98); background-color: var(--md-surface-container-high, #2B2930); }

.lang-sheet-flag {
    font-size: 1.5rem;
    line-height: 1;
    flex-shrink: 0;
}

.lang-sheet-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
    flex: 1;
}
.lang-sheet-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--md-on-surface, #EAE1E9);
}
.lang-sheet-country {
    font-size: 0.75rem;
    color: var(--md-on-surface-variant, #948F99);
}

.lang-sheet-check {
    font-size: 20px;
    color: var(--md-primary, #A9C7FF);
    opacity: 0;
    transition: opacity 0.15s ease;
}
.lang-sheet-item.active { background-color: var(--md-surface-container-high, #2B2930); }
.lang-sheet-item.active .lang-sheet-check { opacity: 1; }
.lang-sheet-item.active .lang-sheet-name { color: var(--md-primary, #A9C7FF); }
