/**
 * Стили для страницы настроек в mini-app
 * 
 * Этот файл содержит все стили для страницы настроек
 * в матричной теме с зелеными акцентами.
 * 
 * @author Mini App Team
 * @version 1.0.0
 */

/* CSS переменные для единообразия с главной страницей */
:root {
    --base-bg: #151F28;
    --matrix-color: #00ff00;
    --active-color: #29fd53;
}

/* Убираем переопределение глобальных стилей .content */

/* Основной контейнер настроек */
.settings-container {
    padding: 20px;
    max-width: 600px;
    margin: 0 auto;
    
    /* Safe Area Insets для Telegram Mini App */
    padding-top: max(20px, env(safe-area-inset-top));
    padding-bottom: max(20px, env(safe-area-inset-bottom));
    padding-left: max(20px, env(safe-area-inset-left));
    padding-right: max(20px, env(safe-area-inset-right));
}

.settings-container h1 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--active-color);
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Секции настроек */
.settings-section {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(0, 255, 0, 0.3);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.settings-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 255, 0, 0.3);
    background: rgba(0, 0, 0, 0.3);
}

.settings-section h2 {
    margin-bottom: 20px;
    color: var(--active-color);
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* Селектор языка */
.language-selector {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.language-btn {
    padding: 12px 20px;
    border: 1px solid rgba(0, 255, 0, 0.3);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.language-btn:hover {
    border-color: var(--active-color);
    background: rgba(0, 255, 0, 0.1);
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.3);
    transform: translateY(-2px);
}

.language-btn.active {
    border-color: var(--active-color);
    background: rgba(0, 255, 0, 0.2);
    color: var(--active-color);
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.4);
}

/* Элементы настроек */
.setting-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid rgba(0, 255, 0, 0.2);
}

.setting-item:last-child {
    border-bottom: none;
}

.setting-item span {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
}

/* Switch стили */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(0, 255, 0, 0.4);
    transition: all 0.4s ease;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 3px;
    background-color: rgba(255, 255, 255, 0.9);
    transition: all 0.4s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

input:checked + .slider {
    background-color: var(--active-color);
    border-color: var(--active-color);
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.4);
}

input:focus + .slider {
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
}

input:checked + .slider:before {
    transform: translateX(26px);
    background-color: #fff;
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

/* Информация о приложении */
.app-info {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.app-info p {
    margin: 8px 0;
}

.app-info strong {
    color: var(--active-color);
}

/* Контейнер "Поделиться приложением" */
.share-app-container {
    margin-top: 25px;
    text-align: center;
}

.share-app-description {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 10px;
}

/* Контейнер админ-панели */
.admin-panel-container {
    margin-top: 25px;
    text-align: center;
    display: none; /* Скрыта по умолчанию, показывается только для админов */
}

/* Кнопка "Админ-панель" */
.admin-panel-btn {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 255, 0, 0.3);
    color: var(--active-color);
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(10px);
    visibility: visible !important; /* гарантия видимости */
}

.admin-panel-btn:hover {
    background: rgba(0, 255, 0, 0.2);
    border-color: var(--active-color);
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.4);
    transform: translateY(-2px);
}

.admin-panel-btn svg {
    width: 20px;
    height: 20px;
}

/* Кнопка "Поделиться приложением" */
.share-app-btn {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 255, 0, 0.3);
    color: var(--active-color);
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(10px);
}

.share-app-btn:hover {
    background: rgba(0, 255, 0, 0.2);
    border-color: var(--active-color);
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.4);
    transform: translateY(-2px);
}

.share-app-btn svg {
    width: 20px;
    height: 20px;
}

/* Стили для разворачивающейся карточки донатов */
.donation-collapsible {
    width: 100%;
}

.donation-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    cursor: pointer;
    user-select: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 255, 0, 0.2);
}

.donation-header:hover {
    color: var(--active-color);
}

.donation-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.3px;
    color: var(--active-color);
}

.donation-toggle-icon {
    font-size: 14px;
    color: var(--active-color);
    transition: transform 0.3s ease;
    margin-left: 10px;
}

.donation-collapsible.expanded .donation-toggle-icon {
    transform: rotate(180deg);
}

.donation-content {
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    max-height: 0;
    opacity: 0;
}

.donation-collapsible.expanded .donation-content {
    max-height: 5000px;
    opacity: 1;
    padding-top: 15px;
}

/* Стили для системы донатов */
.donation-container {
    color: rgba(255, 255, 255, 0.95);
    background: transparent !important;
    padding: 0;
    border-radius: 0;
    border: none;
    margin-top: 0;
    box-shadow: none;
}

.donation-form {
    background: transparent !important;
}

/* Принудительно убираем все белые фоны у элементов формы доната */
.donation-container *,
.donation-form * {
    background: transparent !important;
}

/* Восстанавливаем правильные темные фоны для интерактивных элементов */
.amount-option,
.currency-option,
.amount-input,
.input-group input {
    background: rgba(0, 0, 0, 0.3) !important;
}

.donation-description {
    margin-bottom: 20px;
    line-height: 1.6;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.donation-form h3 {
    color: var(--active-color);
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 600;
    background: transparent !important;
}

/* Селектор суммы */
.amount-selector {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    background: transparent !important;
}

.amount-option {
    padding: 8px 16px;
    border: 1px solid rgba(0, 255, 0, 0.3);
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 600;
    backdrop-filter: blur(10px);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.amount-option:hover {
    border-color: var(--active-color);
    background: rgba(0, 255, 0, 0.15);
    color: var(--active-color);
}

.amount-option.selected {
    border-color: var(--active-color);
    background: rgba(0, 255, 0, 0.25);
    color: #fff;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.4);
}

/* Поле ввода суммы */
.amount-input-container {
    margin-bottom: 20px;
    background: transparent !important;
}

.amount-input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 255, 0, 0.3);
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    outline: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.amount-input:focus {
    border-color: var(--active-color);
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.3);
    background: rgba(0, 0, 0, 0.5);
}

.amount-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

/* Селектор валюты */
.currency-selector {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    background: transparent !important;
}

.currency-option {
    padding: 8px 16px;
    border: 1px solid rgba(0, 255, 0, 0.3);
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 600;
    backdrop-filter: blur(10px);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.currency-option:hover {
    border-color: var(--active-color);
    background: rgba(0, 255, 0, 0.15);
    color: var(--active-color);
}

.currency-option.selected {
    border-color: var(--active-color);
    background: rgba(0, 255, 0, 0.25);
    color: #fff;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.4);
}

/* Группы ввода */
.input-group {
    margin-bottom: 20px;
    background: transparent !important;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    color: #fff;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.input-group input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 255, 0, 0.3);
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    outline: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.input-group input:focus {
    border-color: var(--active-color);
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.3);
    background: rgba(0, 0, 0, 0.5);
}

.input-group input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

/* Кнопка доната */
.donate-btn {
    width: 100%;
    padding: 15px 24px;
    background: linear-gradient(135deg, var(--active-color), #00ff00);
    border: none;
    border-radius: 12px;
    color: #000;
    font-size: 18px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0, 255, 0, 0.3);
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.8);
    /* Альтернативный вариант для лучшей читаемости */
    -webkit-text-stroke: 0.5px rgba(255, 255, 255, 0.8);
}

.donate-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 255, 0, 0.5);
    background: linear-gradient(135deg, #00ff00, var(--active-color));
    text-shadow: 0 2px 4px rgba(255, 255, 255, 1);
}

.donate-btn:active {
    transform: translateY(-1px);
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.9);
}

/* Минимальная сумма */
.min-amount {
    text-align: center;
    margin-top: 15px;
    color: #fff;
    font-size: 14px;
    font-style: italic;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Стили для разворачивающейся карточки обратной связи */
.feedback-collapsible {
    width: 100%;
}

.feedback-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    cursor: pointer;
    user-select: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 255, 0, 0.2);
}

.feedback-header:hover {
    color: var(--active-color);
}

.feedback-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.3px;
    color: var(--active-color);
}

.feedback-toggle-icon {
    font-size: 14px;
    color: var(--active-color);
    transition: transform 0.3s ease;
    margin-left: 10px;
}

.feedback-collapsible.expanded .feedback-toggle-icon {
    transform: rotate(180deg);
}

.feedback-content {
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    max-height: 0;
    opacity: 0;
}

.feedback-collapsible.expanded .feedback-content {
    max-height: 5000px;
    opacity: 1;
    padding-top: 15px;
}

/* Стили для обратной связи */
.feedback-container {
    color: rgba(255, 255, 255, 0.95);
    background: transparent !important;
    padding: 0;
    border-radius: 0;
    border: none;
    margin-top: 0;
    box-shadow: none;
}

.feedback-description {
    margin-bottom: 20px;
    line-height: 1.6;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Селектор категории */
.feedback-category-selector {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    background: transparent !important;
}

.category-option {
    padding: 8px 16px;
    border: 2px solid rgba(255, 255, 255, 0.2);  /* Более тонкая граница для неактивных */
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.2) !important;  /* Более темный фон для неактивных */
    color: rgba(255, 255, 255, 0.7);  /* Более тусклый цвет текста */
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;  /* Меньший вес шрифта для неактивных */
    backdrop-filter: blur(10px);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.category-option:hover {
    border-color: rgba(0, 255, 0, 0.5);
    background: rgba(0, 255, 0, 0.1) !important;
    color: rgba(255, 255, 255, 0.9);
}

.category-option.selected {
    border-color: var(--active-color);  /* Яркая зеленая граница */
    background: rgba(0, 255, 0, 0.3) !important;  /* Более яркий фон */
    color: #fff;  /* Белый текст */
    font-weight: 700;  /* Жирный шрифт */
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.5);  /* Яркое свечение */
    transform: scale(1.05);  /* Немного увеличиваем */
}

/* Текстовое поле сообщения */
.feedback-message {
    width: 100%;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.3) !important;
    border: 1px solid rgba(0, 255, 0, 0.3);
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    outline: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    margin-bottom: 20px;
    resize: vertical;
    font-family: inherit;
    line-height: 1.5;
}

.feedback-message:focus {
    border-color: var(--active-color);
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.3);
    background: rgba(0, 0, 0, 0.5) !important;
}

.feedback-message::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

/* Подсказка об изображениях */
.feedback-image-hint {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 15px;
    padding: 8px 12px;
    background: rgba(0, 255, 0, 0.05);
    border-left: 3px solid rgba(0, 255, 0, 0.3);
    border-radius: 4px;
}

/* Превью изображений */
.feedback-images-preview {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.feedback-image-preview {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid rgba(0, 255, 0, 0.3);
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.2);
}

.feedback-image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feedback-image-remove {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(255, 0, 0, 0.8);
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.feedback-image-remove:hover {
    background: rgba(255, 0, 0, 1);
    transform: scale(1.1);
}

/* Контейнер кнопок */
.feedback-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    background: transparent !important;
}

/* Кнопка прикрепления изображений */
.feedback-image-btn {
    padding: 12px 20px;
    background: rgba(0, 0, 0, 0.3) !important;
    border: 1px solid rgba(0, 255, 0, 0.3);
    border-radius: 8px;
    color: var(--active-color);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.feedback-image-btn:hover {
    background: rgba(0, 255, 0, 0.1) !important;
    border-color: var(--active-color);
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.2);
}

/* Кнопка отправки */
.send-feedback-btn {
    flex: 1;
    min-width: 150px;
    padding: 15px 24px;
    background: linear-gradient(135deg, var(--active-color), #00ff00) !important;
    border: none;
    border-radius: 12px;
    color: #000;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0, 255, 0, 0.3);
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.8);
}

.send-feedback-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 255, 0, 0.5);
    background: linear-gradient(135deg, #00ff00, var(--active-color)) !important;
}

.send-feedback-btn:active {
    transform: translateY(-1px);
}

.send-feedback-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Кнопка контакта с админом */
.contact-admin-btn {
    flex: 1;
    min-width: 150px;
    padding: 15px 24px;
    background: rgba(0, 0, 0, 0.3) !important;
    border: 1px solid rgba(0, 255, 0, 0.3);
    border-radius: 12px;
    color: var(--active-color);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.contact-admin-btn:hover {
    background: rgba(0, 255, 0, 0.2) !important;
    border-color: var(--active-color);
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.4);
    transform: translateY(-2px);
}

.contact-admin-btn:active {
    transform: translateY(0);
}

.contact-admin-btn svg {
    width: 18px;
    height: 18px;
}

/* Статус отправки */
.feedback-status {
    position: fixed;
    /* Позиция выше центра, чтобы не перекрывать поле ввода */
    top: 35%;  /* Выше центра (было 50%) чтобы не перекрывать textarea */
    left: 50%;
    transform: translate(-50%, -50%);
    /* Учитываем Safe Areas для корректного позиционирования */
    margin-top: calc((env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)) / 2);
    max-width: min(350px, calc(100vw - env(safe-area-inset-left, 20px) - env(safe-area-inset-right, 20px) - 40px));
    width: 90%;
    padding: 20px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    z-index: 3000;
    /* Стиль как на других страницах */
    background: rgba(0, 0, 0, 0.8) !important;  /* Как в других элементах */
    border: 1px solid rgba(0, 255, 0, 0.3);
    color: #fff;  /* Белый текст для читаемости */
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    animation: fadeInScale 0.2s ease;
}

.feedback-status.success {
    background: rgba(0, 0, 0, 0.9) !important;  /* Темный фон как на других страницах */
    border: 2px solid var(--active-color);
    color: var(--active-color);  /* Зеленый текст */
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
    box-shadow: 0 8px 32px rgba(0, 255, 0, 0.3);
}

.feedback-status.error {
    background: rgba(0, 0, 0, 0.9) !important;  /* Темный фон как на других страницах */
    border: 2px solid #ff0000;
    color: #ff6666;  /* Красный текст */
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
    box-shadow: 0 8px 32px rgba(255, 0, 0, 0.3);
}

/* Анимация появления для уведомлений */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .settings-container {
        padding: 20px;
        
        /* Safe Area Insets для мобильных */
        padding-top: max(20px, env(safe-area-inset-top));
        padding-bottom: max(20px, env(safe-area-inset-bottom));
        padding-left: max(20px, env(safe-area-inset-left));
        padding-right: max(20px, env(safe-area-inset-right));
    }
    
    .settings-section {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .language-selector {
        gap: 8px;
    }
    
    .language-btn {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .amount-selector,
    .currency-selector {
        gap: 6px;
    }
    
    .amount-option,
    .currency-option {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .feedback-category-selector {
        gap: 6px;
    }
    
    .category-option {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .feedback-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .send-feedback-btn,
    .contact-admin-btn {
        width: 100%;
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .settings-container {
        padding: 15px;
        
        /* Safe Area Insets для очень маленьких экранов */
        padding-top: max(15px, env(safe-area-inset-top));
        padding-bottom: max(15px, env(safe-area-inset-bottom));
        padding-left: max(15px, env(safe-area-inset-left));
        padding-right: max(15px, env(safe-area-inset-right));
    }
}
