* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: #f8f9fa;  /* вместо white */
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    max-width: 500px;
    margin: 0 auto;  /* вместо 2rem auto, чтобы центрирование было через flex */
    text-align: center;
    width: 100%;
    padding: 20px;
}

h2 {
    color: #333;  /* вместо black */
    font-size: 1.8rem;
    margin-bottom: 2rem;
    font-weight: 700;
}

/* ===== КОНТЕЙНЕР КНОПОК ===== */
.btns-container {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== КНОПКИ ===== */
.btn-cancel,
.btn-logout {
    padding: 12px 32px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
}

/* Кнопка "Отмена" */
.btn-cancel {
    background: #f0f0f0;
    color: #333;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.btn-cancel:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Кнопка "Выйти" */
.btn-logout {
    background: #dc3545;  /* красная, как на других страницах с удалением */
    color: white;
    box-shadow: 0 2px 10px rgba(220, 53, 69, 0.3);
}

.btn-logout:hover {
    background: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(220, 53, 69, 0.4);
}

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

/* ============================================
   МОБИЛЬНАЯ АДАПТАЦИЯ
   ============================================ */

/* Планшеты (до 768px) */
@media screen and (max-width: 768px) {
    body {
        padding: 15px;
    }

    .container {
        padding: 15px;
    }

    h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .btns-container {
        gap: 0.8rem;
    }

    .btn-cancel,
    .btn-logout {
        padding: 10px 24px;
        font-size: 15px;
        min-width: 100px;
    }
}

/* Маленькие телефоны (до 480px) */
@media screen and (max-width: 480px) {
    body {
        padding: 10px;
    }

    .container {
        padding: 10px;
    }

    h2 {
        font-size: 1.3rem;
        margin-bottom: 1.2rem;
    }

    .btns-container {
        flex-direction: column;
        gap: 0.6rem;
        align-items: center;
    }

    .btn-cancel,
    .btn-logout {
        padding: 10px 20px;
        font-size: 14px;
        width: 100%;
        max-width: 250px;
        min-width: unset;
        border-radius: 25px;
    }
}

/* Очень маленькие телефоны (до 360px) */
@media screen and (max-width: 360px) {
    h2 {
        font-size: 1.1rem;
    }

    .btn-cancel,
    .btn-logout {
        font-size: 13px;
        padding: 8px 16px;
    }
}

/* Альбомный режим на телефонах */
@media screen and (max-height: 500px) and (orientation: landscape) {
    body {
        padding: 10px;
    }

    h2 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }

    .btns-container {
        gap: 0.6rem;
    }

    .btn-cancel,
    .btn-logout {
        padding: 8px 20px;
        font-size: 14px;
    }
}

/* ============================================
   ДОПОЛНИТЕЛЬНЫЕ УЛУЧШЕНИЯ
   ============================================ */

/* Безопасная зона для iPhone с вырезом */
@supports (padding: max(0px)) {
    @media screen and (max-width: 480px) {
        .container {
            padding-left: env(safe-area-inset-left, 10px);
            padding-right: env(safe-area-inset-right, 10px);
            padding-bottom: env(safe-area-inset-bottom, 10px);
        }
    }
}

/* Увеличение области касания для мобильных */
@media (hover: none) and (pointer: coarse) {
    .btn-cancel,
    .btn-logout {
        min-height: 44px;
        min-width: 44px;
    }
}

/* Убираем выделение на мобильных */
* {
    -webkit-tap-highlight-color: transparent;
}

/* ============================================
   ТЁМНАЯ ТЕМА (автоматическая)
   ============================================ */
@media (prefers-color-scheme: dark) {
    body {
        background: #1a1a2e;
    }

    .container {
        background: transparent;
    }

    h2 {
        color: #e0e0e0;
    }

    .btn-cancel {
        background: #2a3a5a;
        color: #e0e0e0;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    }

    .btn-cancel:hover {
        background: #3a4a6a;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    }

    .btn-logout {
        background: #dc3545;
        box-shadow: 0 2px 10px rgba(220, 53, 69, 0.3);
    }

    .btn-logout:hover {
        background: #c82333;
        box-shadow: 0 4px 20px rgba(220, 53, 69, 0.4);
    }
}