:root {
    --bg-main: #000000;
    --bg-card: #151515;
    --border-color: rgba(255, 255, 255, 0.1);
    --text-main: #ffffff;
    --text-muted: #8e8e93;
    --accent-blue: #0A84FF;
    --accent-red: #FF453A;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    -webkit-font-smoothing: antialiased;
}

.app-container {
    width: 100%;
    max-width: 480px;
    padding: 16px 16px 100px 16px; /* Отступ снизу для навигации */
    box-sizing: border-box;
}

/* Логика экранов */
.view {
    display: none;
    width: 100%;
    padding-bottom: 100px;
    box-sizing: border-box;
}

.view.active {
    display: block;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.section-title {
    display: none;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
    margin-top: 10px;
    color: var(--text-main);
}

/* Кнопки меню */
.menu-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.menu-item {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 16px;
    color: var(--text-main);
    font-size: 17px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.1s ease, opacity 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    gap: 14px;
}

.menu-item:active {
    transform: scale(0.96);
    opacity: 0.8;
}

.icon-bg {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.menu-row {
    display: flex;
    gap: 12px;
}

.half {
    flex: 1;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 16px 12px;
}

.half span {
    font-size: 15px;
}

.arrow {
    position: absolute;
    top: 10px;
    right: 12px;
    font-size: 14px;
    color: var(--text-muted);
}

.highlight-blue {
    background: linear-gradient(135deg, rgba(10, 132, 255, 0.2) 0%, rgba(10, 132, 255, 0.05) 100%);
    border-color: rgba(10, 132, 255, 0.3);
}

.highlight-green {
    background: linear-gradient(135deg, rgba(52, 199, 89, 0.2) 0%, rgba(52, 199, 89, 0.05) 100%);
    border-color: rgba(52, 199, 89, 0.3);
}

.highlight-yellow {
    background: linear-gradient(135deg, rgba(255, 204, 0, 0.2) 0%, rgba(255, 204, 0, 0.05) 100%);
    border-color: rgba(255, 204, 0, 0.4);
}

.highlight-red {
    background: linear-gradient(135deg, rgba(255, 69, 58, 0.2) 0%, rgba(255, 69, 58, 0.05) 100%);
    border-color: rgba(255, 69, 58, 0.3);
}

.highlight-amber {
    background: linear-gradient(135deg, rgba(255, 179, 0, 0.15) 0%, rgba(255, 179, 0, 0.03) 100%);
    border: 1px solid rgba(255, 179, 0, 0.25);
}

.highlight-pink {
    background: linear-gradient(135deg, rgba(255, 59, 105, 0.15) 0%, rgba(255, 59, 105, 0.03) 100%);
    border: 1px solid rgba(255, 59, 105, 0.25);
}

/* НИЖНИЙ БАР НАВИГАЦИИ (Стиль "таблетки") */
.bottom-nav {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 40px;
    padding: 6px;
    display: flex;
    gap: 8px;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.nav-item {
    background: transparent;
    border: none;
    width: 60px;
    height: 50px;
    border-radius: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

.nav-item svg {
    width: 24px;
    height: 24px;
    transition: all 0.3s ease;
}

/* Активное состояние иконки навигации */
.nav-item.active {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
}

.nav-item:active {
    transform: scale(0.9);
}

