/* Базовые настройки (Темная тема) */
:root {
    color-scheme: dark; /* Принудительно темная тема */
    --primary: #9ccb3b; /* Фирменный зеленый */
    --primary-dark: #7ba62c;
    --bg-color: #121212; /* Глубокий темный фон */
    --card-bg: #1e1e1e; /* Фон карточек (чуть светлее) */
    --input-bg: #2c2c2c; /* Фон полей ввода */
    --text-main: #f5f5f5; /* Белый текст */
    --text-muted: #9e9e9e; /* Серый текст */
    --border-radius: 20px;
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-main);
    padding-bottom: 80px; /* Отступ для нижнего меню */
}

/* Шапка профиля */
.top-header {
    display: flex;
    align-items: center;
    padding: 20px;
    background: var(--bg-color);
}

.avatar {
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: #1a1a1a; /* Черный текст на зеленом фоне */
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    margin-right: 15px;
    box-shadow: 0 4px 12px rgba(156, 203, 59, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-text h1 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-main);
}

.header-text .subtitle {
    font-size: 0.8rem;
    color: var(--primary); /* Зеленоватый подзаголовок */
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* Карточка */
main {
    padding: 0 20px;
}

.card {
    background: var(--card-bg);
    border-radius: 32px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid #2a2a2a;
}

h2 {
    margin: 0 0 8px 0;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
}

.subheading {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0;
    margin-bottom: 24px;
}

/* Поля ввода */
.input-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-main);
}

input, textarea {
    width: 100%;
    padding: 16px;
    background: var(--input-bg);
    border: 1px solid transparent;
    border-radius: 16px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--text-main);
    transition: all 0.2s;
}

input::placeholder, textarea::placeholder {
    color: #666;
}

input:focus, textarea:focus {
    outline: none;
    background: var(--input-bg);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(156, 203, 59, 0.15);
}

/* Кнопки-пилюли для марки */
.brand-pills {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
    margin-bottom: 8px;
    scrollbar-width: none;
}
.brand-pills::-webkit-scrollbar { display: none; }

.pill {
    background: var(--input-bg);
    border: none;
    padding: 10px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.pill.active {
    background: var(--primary);
    color: #1a1a1a;
}

/* Главная кнопка */
.btn-primary {
    width: 100%;
    padding: 18px;
    background: var(--primary);
    color: #1a1a1a; /* Черный текст для контраста */
    border: none;
    border-radius: 18px;
    font-size: 1.1rem;
    font-weight: 800;
    margin-top: 10px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(156, 203, 59, 0.2);
    transition: transform 0.1s;
}

.btn-primary:active {
    transform: scale(0.98);
}

#form-status {
    text-align: center;
    font-weight: 600;
    margin-top: 15px;
    font-size: 0.9rem;
}

/* Нижнее меню навигации */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(18, 18, 18, 0.9);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-around;
    padding: 12px 0 20px 0;
    border-top: 1px solid #2a2a2a;
    z-index: 100;
}

.bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 500;
}

.bottom-nav a.active {
    color: var(--primary);
}

.bottom-nav .icon {
    font-size: 1.4rem;
    margin-bottom: 4px;
}

/* Вертикальная лента отзывов */
.reviews-feed {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.review-img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    cursor: pointer;
    background: var(--input-bg);
}

/* Контакты */
.contact-item {
    display: flex;
    align-items: center;
    padding: 16px;
    background: var(--input-bg);
    border-radius: 16px;
    margin-bottom: 12px;
}
.contact-item .icon { font-size: 1.5rem; margin-right: 16px; }
.contact-label { margin: 0; font-size: 0.8rem; color: var(--text-muted); }
.contact-value { margin: 0; font-weight: 600; color: var(--text-main); text-decoration: none; font-size: 1rem; }

/* Квадратные кнопки соцсетей */
.social-links {
    display: flex;
    gap: 16px; /* Увеличили расстояние между кнопками */
    margin-top: 24px;
    justify-content: center;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;  /* Сделали кнопки крупнее */
    height: 64px;
    background-color: var(--input-bg);
    border-radius: 20px; /* Более мягкие углы */
    color: #ffffff; /* Цвет иконок по умолчанию */
    transition: all 0.3s ease; /* Плавная анимация */
    border: 1px solid #3a3a3a;
    cursor: pointer;
}

.social-btn:active {
    transform: scale(0.92); /* Эффект нажатия */
}

/* --- Эффекты при наведении (Hover) --- */

/* ВК - фирменный синий */
.social-btn.vk:hover {
    background-color: #0077FF;
    border-color: #0077FF;
    box-shadow: 0 8px 20px rgba(0, 119, 255, 0.4);
    color: #ffffff;
}

/* Авито - белый фон, чтобы выделялись цветные точки */
.social-btn.avito:hover {
    background-color: #ffffff;
    border-color: #ffffff;
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.3);
}

/* Телефон - наш фирменный зеленый */
.social-btn.phone:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 8px 20px rgba(156, 203, 59, 0.4);
    color: #1a1a1a; /* Иконка становится черной на зеленом фоне */
}