/* ========== MOBILE SETTINGS STYLES ========== */

/* Settings Bottom Sheet */
.settings-bottom-sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: 60px; /* ⚡ НЕ ЗАКРЫВАЕМ ВЕСЬ ЭКРАН - виден фон сверху! */
    background: #1f1632;
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    overflow-x: hidden;
    border-top-left-radius: 24px; /* ⚡ ЗАКРУГЛЕННЫЕ УГЛЫ СВЕРХУ! */
    border-top-right-radius: 24px;
    overscroll-behavior: contain; /* ⚡ БЛОКИРОВКА ПРОКРУТКИ ФОНА! */
    -webkit-overflow-scrolling: touch;
}

.settings-bottom-sheet.active {
    transform: translateY(0);
}

.settings-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    background: #1f1632;
    z-index: 10;
}

.settings-back {
    background: none;
    border: none;
    color: #A855F7;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0;
}

.settings-back svg {
    width: 20px;
    height: 20px;
    stroke: #A855F7;
}

.settings-title {
    font-size: 24px;
    font-weight: bold;
    color: #FFFFFF;
    margin: 0;
}

.settings-close {
    background: none;
    border: none;
    color: #FFFFFF;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Settings Content */
.settings-content {
    padding: 20px;
}

/* Settings Section */
.settings-section {
    margin-bottom: 32px;
}

.settings-section-title {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

/* Settings Item */
.settings-item {
    background: rgba(39, 36, 66, 0.9);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.2s;
}

.settings-item:hover {
    background: rgba(39, 36, 66, 0.98);
}

.settings-item-left {
    flex: 1;
    min-width: 0;
}

.settings-item-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 4px;
}

.settings-item-value {
    font-size: 16px;
    font-weight: 600;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    gap: 8px;
}

.settings-item-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.settings-item-arrow svg {
    width: 20px;
    height: 20px;
    stroke: rgba(255, 255, 255, 0.4);
}

/* Country Flag */
.country-flag {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

/* Verified Badge */
.verified-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}

.verified-badge svg {
    width: 20px;
    height: 20px;
    fill: #10B981;
}

/* Settings Info Text */
.settings-info-text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 8px;
    padding: 0 16px;
}

.settings-info-link {
    color: #A855F7;
    text-decoration: none;
    font-weight: 600;
}

.settings-info-link:hover {
    text-decoration: underline;
}

/* Session Item */
.session-item {
    background: rgba(39, 36, 66, 0.9);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
}

.session-item:hover {
    background: rgba(39, 36, 66, 0.98);
}

.session-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.session-item-title {
    font-size: 16px;
    font-weight: 600;
    color: #FFFFFF;
    margin-bottom: 4px;
}

.session-item-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.session-terminate-btn {
    background: none;
    border: none;
    color: #A855F7;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.2s;
}

.session-terminate-btn:hover {
    background: rgba(163, 85, 247, 0.15);
}

/* Logout Button */
.logout-btn {
    width: 100%;
    padding: 16px;
    background: none;
    border: 1px solid rgba(239, 68, 68, 0.5);
    border-radius: 12px;
    color: #EF4444;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 32px;
    transition: all 0.2s;
}

.logout-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: #EF4444;
}

/* Modal Overlay */
.settings-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.settings-modal-overlay.active {
    display: flex;
}

/* Modal Content */
.settings-modal {
    background: #1F1632;
    border-radius: 16px;
    padding: 24px;
    width: 90%;
    max-width: 400px;
    position: relative;
}

.settings-modal-title {
    font-size: 20px;
    font-weight: bold;
    color: #FFFFFF;
    margin-bottom: 20px;
}

.settings-modal-form {
    margin-bottom: 20px;
}

.settings-modal-input {
    width: 100%;
    padding: 14px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: #FFFFFF;
    font-size: 16px;
    margin-bottom: 12px;
}

.settings-modal-input:focus {
    outline: none;
    border-color: #A855F7;
    background: rgba(255, 255, 255, 0.15);
}

.settings-modal-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.settings-modal-actions {
    display: flex;
    gap: 12px;
}

.settings-modal-btn {
    flex: 1;
    padding: 14px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.settings-modal-btn.cancel {
    background: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
}

.settings-modal-btn.cancel:hover {
    background: rgba(255, 255, 255, 0.2);
}

.settings-modal-btn.submit {
    background: #A855F7;
    color: #FFFFFF;
}

.settings-modal-btn.submit:hover {
    background: #9333EA;
}

/* Date Picker Styles */
.settings-modal-input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
}

/* Responsive */
@media (max-width: 380px) {
    .settings-header {
        padding: 16px;
    }

    .settings-title {
        font-size: 20px;
    }

    .settings-content {
        padding: 16px;
    }

    .settings-item {
        padding: 14px;
    }

    .settings-modal {
        padding: 20px;
    }
}

