/* PWA Bottom Navigation Styles */
.pwa-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(26, 26, 46, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 12px 12px;
    z-index: 9999;
    border-top: 1px solid rgba(255, 107, 107, 0.3);
    transform: translateY(100%);
    transition: transform 0.3s ease;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

.pwa-bottom-nav.show {
    transform: translateY(0);
}

/* Отступ для контента, чтобы не перекрывался навигацией */
.pwa-nav-active {
    padding-bottom: 70px !important;
}

.pwa-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 12px;
    transition: all 0.2s ease;
    min-width: 64px;
}

.pwa-nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.pwa-nav-item.active {
    color: #ff6b6b;
}

.pwa-nav-icon {
    font-size: 24px;
    margin-bottom: 2px;
}

.pwa-nav-label {
    font-size: 11px;
    font-weight: 500;
}

.pwa-nav-badge {
    position: relative;
}

.pwa-nav-badge::after {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    width: 8px;
    height: 8px;
    background: #ff6b6b;
    border-radius: 50%;
    border: 2px solid #1a1a2e;
}

/* Адаптация для разных устройств */
@media (max-width: 480px) {
    .pwa-bottom-nav {
        padding: 6px 8px 10px;
    }

    .pwa-nav-item {
        padding: 4px 8px;
        min-width: 55px;
    }

    .pwa-nav-icon {
        font-size: 22px;
    }

    .pwa-nav-label {
        font-size: 10px;
    }
}

@media (max-width: 380px) {
    .pwa-nav-item {
        min-width: 50px;
    }

    .pwa-nav-label {
        font-size: 9px;
    }
}

/* Для iPhone с безопасной зоной */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .pwa-bottom-nav {
        padding-bottom: calc(12px + env(safe-area-inset-bottom));
    }
}

/* Анимация при клике */
.pwa-nav-item:active {
    transform: scale(0.95);
}

/* Стили для уведомлений */
.pwa-notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff6b6b;
    color: white;
    font-size: 10px;
    font-weight: bold;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}
/* PWA Bottom Navigation Styles */
.pwa-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(26, 26, 46, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 12px 12px;
    z-index: 9999;
    border-top: 1px solid rgba(255, 107, 107, 0.3);
    transform: translateY(100%);
    transition: transform 0.3s ease;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

.pwa-bottom-nav.show {
    transform: translateY(0);
}

.pwa-nav-active {
    padding-bottom: 70px !important;
}

.pwa-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 12px;
    transition: all 0.2s ease;
    min-width: 64px;
}

.pwa-nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.pwa-nav-item.active {
    color: #ff6b6b;
}

.pwa-nav-icon {
    font-size: 24px;
    margin-bottom: 2px;
}

.pwa-nav-label {
    font-size: 11px;
    font-weight: 500;
}

.pwa-notification-badge {
    position: absolute;
    top: -5px;
    right: -8px;
    background: #ff6b6b;
    color: white;
    font-size: 10px;
    font-weight: bold;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

@media (max-width: 480px) {
    .pwa-bottom-nav { padding: 6px 8px 10px; }
    .pwa-nav-item { padding: 4px 8px; min-width: 55px; }
    .pwa-nav-icon { font-size: 22px; }
    .pwa-nav-label { font-size: 10px; }
}

@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .pwa-bottom-nav {
        padding-bottom: calc(12px + env(safe-area-inset-bottom));
    }
}

.pwa-nav-item:active {
    transform: scale(0.95);
}

@keyframes slideUp {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
/* PWA Navigation Styles */
.pwa-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-around;
    padding: 8px 12px;
    border-top: 1px solid rgba(255,255,255,0.1);
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.pwa-bottom-nav.show {
    transform: translateY(0);
}

.pwa-nav-item {
    background: none;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 12px;
    transition: all 0.2s;
    color: rgba(255,255,255,0.6);
}

.pwa-nav-item.active {
    color: #ff8e53;
}

.pwa-nav-item:active {
    transform: scale(0.95);
}

.pwa-nav-icon {
    font-size: 24px;
}

.pwa-nav-label {
    font-size: 11px;
    font-weight: 500;
}

/* PWA Mode adjustments */
.pwa-mode .hero {
    min-height: 40vh;
}

.pwa-mode .hero .cta-button:first-child {
    display: none;
}

.pwa-mode .loyalty .forms-container {
    margin-bottom: 20px;
}

/* Убираем дублирование */
.pwa-mode-active .latest-news {
    display: none;
}
/* ========== ЭКРАН ПРОФИЛЯ ========== */
.screen-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logout-btn {
    background: rgba(255, 107, 43, 0.2);
    border: 1px solid rgba(255, 107, 43, 0.5);
    border-radius: 20px;
    padding: 6px 16px;
    color: #ff8e53;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: rgba(255, 107, 43, 0.4);
}

/* Гостевой вид */
.profile-guest-view {
    text-align: center;
    padding: 40px 20px;
}

.guest-avatar {
    font-size: 80px;
    margin-bottom: 20px;
}

.profile-guest-view h3 {
    margin-bottom: 10px;
}

.profile-guest-view p {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 30px;
}

.profile-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* Карточка профиля */
.profile-header-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(255, 142, 83, 0.1), rgba(255, 107, 43, 0.05));
    border-radius: 20px;
    margin: 16px;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #ff8e53, #ff6b2b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    box-shadow: 0 4px 15px rgba(255, 107, 43, 0.3);
}

.profile-main-info h3 {
    font-size: 20px;
    margin-bottom: 5px;
}

.profile-main-info p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    margin: 3px 0;
}

/* Статистика */
.profile-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 0 16px;
    margin-bottom: 20px;
}

.profile-stat-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 15px 10px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.stat-icon {
    font-size: 28px;
    margin-bottom: 8px;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 22px;
    font-weight: bold;
    color: #ff8e53;
}

.stat-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

/* Секции профиля */
.profile-section {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    margin: 16px;
    padding: 16px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.section-header h4 {
    font-size: 16px;
    color: #ff8e53;
}

.toggle-edit-btn {
    background: transparent;
    border: 1px solid rgba(255, 142, 83, 0.5);
    border-radius: 20px;
    padding: 5px 12px;
    color: #ff8e53;
    cursor: pointer;
    font-size: 12px;
}

/* Форма редактирования */
.profile-edit-form {
    margin-top: 15px;
}

.profile-edit-form .form-group {
    margin-bottom: 15px;
}

.profile-edit-form label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.profile-edit-form input {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: white;
    font-size: 16px;
}

.profile-edit-form input:focus {
    outline: none;
    border-color: #ff8e53;
}

.form-hint {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    display: block;
    margin-top: 5px;
}

/* Emoji picker */
.emoji-picker {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.emoji-suggestions {
    display: flex;
    gap: 8px;
}

.emoji-option {
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    transition: transform 0.2s ease;
}

.emoji-option:hover {
    transform: scale(1.2);
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

/* История визитов */
.visits-history {
    max-height: 300px;
    overflow-y: auto;
}

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.history-date {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

.history-details {
    flex: 1;
    margin: 0 10px;
    font-size: 14px;
}

.history-bonus {
    color: #ff8e53;
    font-weight: bold;
    font-size: 14px;
}

.empty-state {
    text-align: center;
    padding: 30px;
    color: rgba(255, 255, 255, 0.4);
}

/* QR кнопка */
.qr-code-btn {
    width: calc(100% - 32px);
    margin: 20px 16px;
    padding: 14px;
    background: linear-gradient(135deg, #ff8e53, #ff6b2b);
    border: none;
    border-radius: 30px;
    color: white;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.qr-code-btn:hover {
    transform: scale(1.02);
}
