:root {
    --bg-color: #F9F7F0;
    --text-main: #1A2B4C;
    --text-sub: #6E7A8A;
    --btn-green: #5CB88D;
    --btn-green-active: #4AA37A;
    --white: #FFFFFF;
    --border-light: #EAEAEA;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    -webkit-tap-highlight-color: transparent; /* Убирает синий фон при тапе на мобильных */
}

body {
    background-color: var(--bg-color);
    display: flex;
    justify-content: center;
    min-height: 100vh;
    color: var(--text-main);
}

#app-container {
    width: 100%;
    max-width: 480px;
    background-color: var(--bg-color);
    min-height: 100vh;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

/* Логотип и текст */
.logo-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 42px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 16px;
    text-align: center;
}

.subtitle {
    font-size: 15px;
    color: var(--text-sub);
    text-align: center;
    line-height: 1.5;
    margin-bottom: 40px;
    padding: 0 10px;
}

/* Форма ввода */
.auth-form {
    width: 100%;
    margin-bottom: 24px;
}

.input-group {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    margin-bottom: 24px;
}

.input-group input {
    width: 100%;
    border: none;
    padding: 18px 20px;
    font-size: 16px;
    outline: none;
    color: var(--text-main);
    background: transparent;
}

.input-group input::placeholder {
    color: #A0AAB5;
}

.divider {
    border: none;
    border-top: 1px solid var(--border-light);
    margin: 0;
}

/* Кнопка */
.primary-btn {
    width: 100%;
    background-color: var(--btn-green);
    color: var(--white);
    border: none;
    padding: 18px;
    border-radius: 16px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 10px rgba(92, 184, 141, 0.3);
}

.primary-btn:active {
    background-color: var(--btn-green-active);
    transform: scale(0.98);
}

.primary-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Переключатель режимов - ИСПРАВЛЕНО ЦЕНТРИРОВАНИЕ */
.toggle-link {
    font-size: 14px;
    color: var(--text-sub);
    cursor: pointer;
    margin: 20px auto; /* auto по бокам центрирует блок */
    padding: 10px 0;
    text-align: center; /* Центрируем текст внутри блока */
    width: 100%;
    user-select: none;
}

.toggle-link:hover {
    color: var(--text-main);
}

/* Футер с ссылками */
.footer-links {
    display: flex;
    gap: 8px;
    font-size: 12px;
    color: #8895A3;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: auto; /* Прижимает к низу, если контента мало */
    padding-bottom: 20px;
}

.footer-links span {
    cursor: pointer;
    text-decoration: underline;
    text-decoration-style: dotted;
    text-underline-offset: 3px;
}

.dot {
    text-decoration: none !important;
    user-select: none;
}

/* Модальное окно */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: flex-end;
    z-index: 1000;
    opacity: 1;
    transition: opacity 0.3s;
    backdrop-filter: blur(2px);
}

.modal-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.modal-content {
    background: var(--white);
    width: 100%;
    max-width: 480px;
    height: 70vh;
    border-radius: 24px 24px 0 0;
    padding: 24px;
    display: flex;
    flex-direction: column;
    transform: translateY(0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.hidden .modal-content {
    transform: translateY(100%);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-shrink: 0;
}

.modal-header h2 {
    font-size: 20px;
    color: var(--text-main);
    font-weight: 600;
}

.close-btn {
    background: none;
    border: none;
    font-size: 32px;
    color: var(--text-sub);
    cursor: pointer;
    line-height: 1;
    padding: 0 5px;
}

.modal-body {
    flex: 1;
    overflow-y: auto;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-sub);
    white-space: pre-wrap;
    padding-right: 5px;
}

/* Стили для экрана подтверждения почты */
.confirm-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    text-align: center;
    padding: 20px;
}

.icon-wrapper {
    margin-bottom: 32px;
    background: rgba(37, 99, 235, 0.1); /* Легкий синий фон под иконкой */
    border-radius: 50%;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.screen-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 16px;
}

.screen-text {
    font-size: 16px;
    color: var(--text-sub);
    line-height: 1.5;
    margin-bottom: 8px;
}

.screen-text strong {
    color: var(--text-main);
    font-weight: 600;
}

.screen-subtext {
    font-size: 14px;
    color: #8895A3;
    margin-bottom: 40px;
    max-width: 280px;
}

.resend-btn {
    width: 100%;
    margin-bottom: 24px;
}

.back-link {
    font-size: 14px;
    color: var(--text-sub);
    cursor: pointer;
    text-decoration: underline;
    text-decoration-style: dotted;
}

/* --- Стили для Экрана Анкеты --- */
.onboarding-screen {
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.screen-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.header-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
}

.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.page-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 8px;
}

.page-subtitle {
    font-size: 15px;
    color: var(--text-sub);
    margin-bottom: 30px;
}

/* Аватар */
.avatar-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
}

.avatar-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-color: #E8F5E9; /* Светло-зеленый фон */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    transition: transform 0.2s;
}

.avatar-circle:active {
    transform: scale(0.95);
}

.avatar-label {
    font-size: 14px;
    color: var(--btn-green);
    cursor: pointer;
    font-weight: 500;
}

/* Поля ввода */
.input-wrapper {
    position: relative;
    margin-bottom: 20px;
}

.input-wrapper input, 
.input-wrapper textarea {
    width: 100%;
    padding: 16px;
    border: 1px solid #EAEAEA;
    border-radius: 12px;
    font-size: 16px;
    outline: none;
    background: var(--white);
    color: var(--text-main);
    transition: border-color 0.2s;
}

.input-wrapper input:focus, 
.input-wrapper textarea:focus {
    border-color: var(--btn-green);
}

.char-counter {
    position: absolute;
    bottom: -20px;
    right: 0;
    font-size: 12px;
    color: #A0AAB5;
}

.about-wrapper textarea {
    resize: none;
}

/* Пол (Центрированные радио-кнопки) */
.gender-section {
    margin-bottom: 30px;
}

.gender-label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 12px;
}

.gender-options {
    display: flex;
    justify-content: center; /* Центрируем кнопки */
    gap: 40px; /* Расстояние между кнопками */
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 16px;
    color: var(--text-main);
}

/* Скрываем стандартный кружок */
.radio-label input[type="radio"] {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #A0AAB5;
    border-radius: 50%;
    margin: 0;
    position: relative;
    cursor: pointer;
}

/* Стиль выбранного кружка */
.radio-label input[type="radio"]:checked {
    border-color: var(--btn-green);
}

.radio-label input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background-color: var(--btn-green);
    border-radius: 50%;
}

.primary-btn {
    margin-top: auto; /* Прижимаем кнопку к низу, если контента мало */
    width: 100%;
    padding: 18px;
    background-color: var(--btn-green);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
}

.primary-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* --- Главный экран (Финальная полировка) --- */
.main-screen {
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 100%;
    max-width: 100vw;
    background-color: var(--bg-color);
    overflow: hidden;
    position: relative;
}

/* Шапка - теперь "парящая" */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px; /* Чуть больше боковые отступы */
    background: var(--white); /* Белый фон для контраста */
    border-radius: 32px; /* Скругление со ВСЕХ сторон */
    margin: 16px 0px; /* Отступ сверху и по бокам */
    box-shadow: 0 4px 20px rgba(0,0,0,0.06); /* Тень чуть мягче */
    z-index: 20;
    width: auto; /* Автоматическая ширина на основе margin */
    box-sizing: border-box;
    flex-shrink: 0;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon { font-size: 26px; }
.logo-text { 
    font-family: 'Montserrat', sans-serif; 
    font-weight: 800; 
    font-size: 24px; 
    color: var(--text-main); 
    margin: 0; 
    letter-spacing: -0.5px;
}

.header-actions { display: flex; gap: 12px; align-items: center; }
.icon-btn { 
    background: none; 
    border: none; 
    cursor: pointer; 
    color: var(--text-main); 
    padding: 6px; 
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}
.icon-btn:active { transform: scale(0.9); }

/* Категории - Простой и надежный вариант */
.categories-scroll {
    display: flex;
    gap: 10px;
    padding: 12px 0px; /* Просто отступы, без сложных расчетов */
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none; /* Скрываем скроллбар Firefox */
    width: 100%;
    box-sizing: border-box;
}

/* Скрываем скроллбар Chrome/Safari */
.categories-scroll::-webkit-scrollbar { 
    display: none; 
}

.cat-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 20px;
    border: none;
    background: #F0F2F5;
    color: var(--text-sub);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    flex-shrink: 0; /* Не сжиматься */
    height: 38px;
}

.cat-chip.active {
    background: #D4EDDA;
    color: #155724;
    font-weight: 600;
}

/* Контейнер контента */
.content-area {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    width: 100%;
    box-sizing: border-box;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 60%;
    text-align: center;
    color: var(--text-sub);
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.empty-icon { 
    width: 100px; height: 100px; 
    /* Если иконка не загрузится, будет серый круг */
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 24px;
    object-fit: contain; /* Чтобы картинка вписывалась */
}

.empty-title { font-size: 20px; font-weight: 700; color: var(--text-main); margin-bottom: 8px; }
.empty-text { font-size: 15px; line-height: 1.4; max-width: 260px; }

/* Карточка предложения */
.proposal-card {
    background: var(--white);
    border-radius: 24px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    border: 1px solid transparent;
    width: 100%;
    box-sizing: border-box;
    transition: transform 0.2s;
}
.proposal-card:active { transform: scale(0.98); }

.admin-card { border-color: #FFCDD2; background: #FFF5F5; }
.admin-text { color: #D32F2F !important; font-weight: 600; }

/* Шапка карточки */
.card-header {
    display: flex;
    justify-content: space-between; /* Разносит категорию влево, таймер вправо */
    align-items: flex-start;
    margin-bottom: 12px;
}
.cat-info {
    display: flex;
    gap: 12px;
    align-items: center;
    flex: 1; /* Занимает всё доступное место, толкая таймер вправо */
    min-width: 0; /* Позволяет тексту адреса обрезаться троеточием */
}
.cat-icon-bg { 
    width: 48px; height: 48px; 
    background: #F0F4F8; 
    border-radius: 14px; 
    display: flex; align-items: center; justify-content: center; 
    font-size: 24px; 
    flex-shrink: 0;
}
.cat-title { display: block; font-weight: 700; font-size: 16px; color: var(--text-main); margin-bottom: 2px; }
.card-address { font-size: 13px; color: #8895A3; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.verify-badge {
    width: 28px; height: 28px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: bold;
    background: #F5F5F5;
    flex-shrink: 0;
}
.verify-badge.verified { background: #E8F5E9; color: #2E7D32; }
.verify-badge.unverified { background: #FFF3E0; color: #EF6C00; }

.card-text { font-size: 16px; line-height: 1.5; color: var(--text-main); margin-bottom: 20px; font-weight: 500; word-wrap: break-word; }

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    gap: 8px;
}
.stats { display: flex; gap: 12px; font-size: 14px; color: var(--text-sub); align-items: center; }
/* Нижняя группа статистики */
.stats-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* Бейджи */
.stat-item, .timer {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    min-height: 28px;
    box-sizing: border-box;
}

.stat-item { background: #F0F4F8; color: var(--text-sub); gap: 4px; }
.stat-item.approved { background: #E8F5E9; color: #2E7D32; }

/* Маленькая иконка верификации */
.verify-badge-small {
    width: 24px; height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    background: #F5F5F5;
    flex-shrink: 0;
}
.verify-badge-small.verified { background: #E8F5E9; color: #2E7D32; }
.verify-badge-small.unverified { background: #FFF3E0; color: #EF6C00; }


/* Стиль для "Одобрено" */
.stat-item.approved {
    background-color: #E8F5E9 !important;
    color: #2E7D32 !important;
}

/* Таймер */
.timer {
    background: #E3F2FD;
    color: #1976D2;
    gap: 4px;
    margin-left: auto; /* Прижимает таймер к правому краю */
    flex-shrink: 0; /* Запрещает таймеру сжиматься */
}
.timer.urgent { color: #D32F2F; background: #FFEBEE; animation: pulse 1s infinite; }

@keyframes pulse { 0% { opacity: 1; } 50% { opacity: 0.6; } 100% { opacity: 1; } }

/* Стили для таймера В ШАПКЕ */
.header-timer {
    font-size: 14px;
    font-weight: 700;
    color: #1976D2;
    background: #E3F2FD;
    padding: 6px 10px;
    border-radius: 10px;
    white-space: nowrap; /* Запрещает перенос */
    flex-shrink: 0; /* Запрещает сжиматься */
    margin-left: 12px; /* Отступ от текста категории */
    display: flex;
    align-items: center;
    gap: 4px;
}

.header-timer.urgent {
    color: #D32F2F;
    background: #FFEBEE;
    animation: pulse 1s infinite;
}

@keyframes pulse { 0% { opacity: 1; } 50% { opacity: 0.6; } 100% { opacity: 1; } }

.action-btn {
    width: 100%;
    padding: 16px;
    border-radius: 16px;
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-respond { background: var(--btn-green); color: white; box-shadow: 0 4px 12px rgba(92, 184, 141, 0.3); }
.btn-owner { background: #F5F5F5; color: #9E9E9E; cursor: default; }
.btn-sent { background: #FFF3E0; color: #EF6C00; border: 1px solid #FFE0B2; }

/* FAB кнопка - увеличенная */
.fab-create {
    position: fixed;
    bottom: 32px; right: 24px;
    width: 64px; height: 64px; /* Было 60px */
    border-radius: 50%;
    background: linear-gradient(180deg, #c0edd5 0%, #6bbf98 100%);
    color: white;
    border: none;
    font-size: 40px; /* Было 36px */
    line-height: 1;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 24px rgba(107, 191, 152, 0.5);
    cursor: pointer;
    z-index: 100;
    transition: transform 0.2s, box-shadow 0.2s;
}

.fab-create:active { transform: scale(0.9); box-shadow: 0 4px 12px rgba(107, 191, 152, 0.4); }

/* --- Экран создания предложения (Простой режим) --- */
.create-screen-simple {
    min-height: 100vh; /* Минимальная высота - весь экран */
    background-color: var(--bg-color);
    padding-bottom: 20px; /* Отступ снизу */
}

/* Шапка как обычный блок */
.screen-header-simple {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 12px 8px 0; /* Отступы по бокам 8px */
    padding: 16px 20px;
    background: var(--white);
    border-radius: 32px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.05);
}

.header-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: var(--text-main);
    margin: 0;
}

.back-btn { color: var(--text-main); padding: 4px; display: flex; align-items: center; }

/* Контент */
.simple-content {
    padding-top: 10px; /* Добавляем воздух после шапки */
}

.section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
    margin: 24px 0 12px;
}

/* Сетка категорий */
.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.cat-card {
    background: var(--white);
    border-radius: 20px;
    padding: 16px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    min-height: 90px;
}

.cat-card.selected {
    border-color: var(--btn-green);
    background: #E8F5E9;
}

.cat-icon { font-size: 28px; }
.cat-name { font-size: 12px; font-weight: 600; text-align: center; line-height: 1.2; color: var(--text-main); }

/* Поля ввода */
.input-wrapper { position: relative; margin-bottom: 10px; }
.input-wrapper textarea {
    width: 100%;
    padding: 16px;
    border: 1px solid #EAEAEA;
    border-radius: 20px;
    font-size: 16px;
    outline: none;
    background: var(--white);
    resize: none;
    font-family: inherit;
    box-sizing: border-box;
}
.char-counter {
    position: absolute;
    bottom: 12px; right: 16px;
    font-size: 12px; color: #A0AAB5;
}

/* Локация */
.location-block {
    background: var(--white);
    border-radius: 20px;
    padding: 16px;
    border: 1px solid #EAEAEA;
    margin-bottom: 10px;
}
.loc-placeholder, .loc-active {
    display: flex; align-items: center; gap: 10px;
    color: #8895A3; font-size: 14px; margin-bottom: 12px;
}
.loc-active span { color: var(--text-main); font-weight: 500; flex: 1; }
.hidden { display: none !important; }

.geo-btn {
    width: 100%;
    padding: 14px;
    border: 1px dashed var(--btn-green);
    background: transparent;
    color: var(--btn-green);
    border-radius: 16px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 8px;
}

/* Ползунки */
.slider-container {
    background: var(--white);
    padding: 20px 16px;
    border-radius: 20px;
    margin-bottom: 10px;
}
.slider-value {
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
    margin-top: 16px;
}

input[type=range] {
    -webkit-appearance: none;
    width: 100%;
    background: transparent;
    margin: 10px 0;
}
input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 28px; width: 28px;
    border-radius: 50%;
    background: var(--btn-green);
    cursor: pointer;
    margin-top: -12px;
    box-shadow: 0 2px 8px rgba(92, 184, 141, 0.4);
    border: 2px solid white;
}
input[type=range]::-webkit-slider-runnable-track {
    width: 100%; height: 6px;
    cursor: pointer;
    background: #EAEAEA;
    border-radius: 3px;
}

/* Кнопка публикации (обычная, не фиксированная) */
.publish-btn-simple {
    width: 100%;
    margin-top: 30px;
    padding: 18px;
    border-radius: 20px;
    background: var(--btn-green);
    color: white;
    border: none;
    font-size: 17px;
    font-weight: 700;
    box-shadow: 0 8px 24px rgba(92, 184, 141, 0.3);
    transition: transform 0.2s;
}

.publish-btn-simple:active { transform: scale(0.98); }
.publish-btn-simple:disabled { opacity: 0.7; transform: none; }

/* --- Экран деталей V2 --- */
.details-screen-v2 { min-height: 100vh; background-color: var(--bg-color); padding-bottom: 40px; }

/* Зеленый баннер статистики */
.stats-banner {
    background: linear-gradient(135deg, #6bbf98 0%, #4a9c78 100%);
    color: white;
    border-radius: 20px;
    padding: 20px;
    margin: 20px 8px 0;
    text-align: center;
    margin: 20px 8px 0;
    box-shadow: 0 4px 15px rgba(107, 191, 152, 0.3);
}
.stats-main { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.stats-sub { font-size: 14px; opacity: 0.9; }

/* Карточка автора */
.author-card {
    background: var(--white);
    border-radius: 20px;
    padding: 16px;
    display: flex;
    gap: 16px;
    align-items: center;
    margin: 16px 8px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.author-avatar { width: 60px; height: 60px; border-radius: 50%; background: #F0F4F8; background-size: cover; background-position: center; flex-shrink: 0; }
.author-info { flex: 1; }
.author-name-row { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; flex-wrap: wrap; }
.author-name {
    text-decoration: none !important; /* Убираем подчеркивание */
    font-weight: 700;
    font-size: 18px;
    color: var(--text-main);
}
.author-name.clickable {
    color: var(--btn-green); /* Цвет ссылки, но без подчеркивания */
    cursor: pointer;
}
.author-age { font-size: 14px; color: var(--text-sub); }

.verify-status-row {
    margin-top: 4px; /* Отступ от имени до статуса */
    margin-bottom: 4px;
}
.verify-badge-text {
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.verify-badge-text.verified { color: #2E7D32; }
.verify-badge-text.unverified { color: #EF6C00; }

/* 3. Таймер СЛЕВА */
.timer-row.left {
    justify-content: flex-start; /* Прижимаем влево */
    margin-top: 12px;
}

/* Блок информации о предложении */
.proposal-info-block {
    background: var(--white);
    border-radius: 20px;
    padding: 20px;
    margin: 16px 8px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.cat-row { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.proposal-desc { font-size: 16px; line-height: 1.5; color: var(--text-main); margin-bottom: 16px; }
.timer-row { display: flex; justify-content: flex-end; }

/* Список откликнувшихся */
.section-title { font-size: 18px; font-weight: 700; color: var(--text-main); margin: 24px 8px 12px; }
.empty-text { text-align: center; color: var(--text-sub); padding: 20px; }

.response-card {
    background: var(--white);
    border-radius: 16px;
    padding: 16px;
    margin: 0 8px 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.resp-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.resp-avatar { width: 40px; height: 40px; border-radius: 50%; background: #F0F4F8; background-size: cover; background-position: center; }
.resp-info { flex: 1; display: flex; flex-direction: column; }
.resp-name { font-weight: 600; font-size: 15px; color: var(--text-main); }
.resp-name.clickable { color: var(--btn-green); cursor: pointer; }
.resp-age { font-size: 13px; color: var(--text-sub); }
.resp-status { font-size: 12px; font-weight: 600; padding: 4px 8px; border-radius: 6px; }
.resp-status.pending { background: #FFF3E0; color: #EF6C00; }
.resp-status.approved { background: #E8F5E9; color: #2E7D32; }

.resp-actions { display: flex; gap: 10px; }
.btn-reject, .btn-approve { flex: 1; padding: 10px; border-radius: 10px; border: none; font-weight: 600; font-size: 14px; cursor: pointer; }
.btn-reject { background: transparent; border: 1px solid #EF4444; color: #EF4444; }
.btn-approve { background: var(--btn-green); color: white; }

/* Кнопка жалобы (текстовая) */
.report-section {
    margin: 30px 8px 40px;
    text-align: center;
}
.text-btn.danger {
    background: none;
    border: none;
    color: #EF4444;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

/* Действия участника */
.participant-actions { margin: 20px 8px 0;  display: flex; flex-direction: column; gap: 12px; }
.success-banner { background: #E8F5E9; color: #2E7D32; padding: 16px; border-radius: 12px; text-align: center; font-weight: 600; }
.warning-banner { background: #FFF3E0; color: #EF6C00; padding: 16px; border-radius: 12px; text-align: center; font-weight: 600; border: 1px solid #FFE0B2; }
.error-banner { background: #FFEBEE; color: #D32F2F; padding: 16px; border-radius: 12px; text-align: center; font-weight: 600; }

/* 4. Нижние кнопки управления для автора */
.owner-controls {
    margin: 30px 8px 40px; 
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.secondary-btn {
    width: 100%;
    padding: 16px;
    border-radius: 16px;
    background: var(--white);
    border: 1px solid #EAEAEA;
    color: var(--text-main);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-chat { background: var(--btn-green); color: white; padding: 16px; border-radius: 16px; border: none; font-size: 16px; font-weight: 700; width: 100%; }
.danger-outline {
    border-color: #EF4444;
    color: #ffffff;
    background: #EF4444;
}

.header-actions { display: flex; gap: 12px; }
.icon-btn.danger { color: #EF4444; }
.admin-text { color: #D32F2F !important; }

/* --- Исправление положения таймера в деталях --- */

/* Переопределяем стили для таймера внутри блока details */
.proposal-info-block .timer {
    margin-left: 0 !important; /* Отменяем прижатие вправо */
    margin-right: auto !important; /* Прижимаем влево (на всякий случай) */
}

/* Убедимся, что контейнер timer-row тоже выравнивает по левому краю */
.timer-row.left {
    justify-content: flex-start !important;
    width: 100%;
}

/* --- Стили для мета-информации в списке откликов --- */

.resp-meta-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px; /* Отступ от имени */
    flex-wrap: wrap; /* Позволяет элементам переноситься, если места мало */
}

.resp-age-separator {
    color: #A0AAB5;
    font-size: 14px;
}

.resp-age {
    font-size: 13px;
    color: var(--text-sub);
}

/* Убедимся, что текст верификации наследует правильные цвета */
.verify-badge-text {
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
}
.verify-badge-text.verified { color: #2E7D32; }
.verify-badge-text.unverified { color: #EF6C00; }

/* --- Мои чаты --- */
.chat-item {
    display: flex; align-items: center; gap: 12px;
    background: var(--white); padding: 16px; border-radius: 16px;
    margin: 0 8px 12px; cursor: pointer; transition: transform 0.1s;
}
.chat-item:active { transform: scale(0.98); }
.chat-avatar { width: 50px; height: 50px; border-radius: 50%; background: #F0F4F8; background-size: cover; background-position: center; flex-shrink: 0; }
.chat-info { flex: 1; min-width: 0; }
.chat-name-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.chat-name { font-weight: 700; font-size: 16px; color: var(--text-main); }
.unread-badge { background: #FFEBEE; color: #D32F2F; font-size: 11px; padding: 2px 6px; border-radius: 4px; font-weight: 600; }
.chat-preview { font-size: 14px; color: var(--text-sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.chat-time { font-size: 12px; color: #A0AAB5; }

/* --- Комната чата --- */
.chat-room-screen { display: flex; flex-direction: column; height: 100vh; background: var(--bg-color); }
.messages-container { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.message-row { display: flex; width: 100%; }
.message-row.me { justify-content: flex-end; }
.message-row.partner { justify-content: flex-start; }
.message-bubble { max-width: 80%; padding: 10px 14px; border-radius: 18px; font-size: 15px; line-height: 1.4; position: relative; word-wrap: break-word; }
.message-row.me .message-bubble { background: var(--btn-green); color: white; border-bottom-right-radius: 4px; }
.message-row.partner .message-bubble { background: var(--white); color: var(--text-main); border-bottom-left-radius: 4px; box-shadow: 0 1px 2px rgba(0,0,0,0.05); }
.message-time { font-size: 10px; opacity: 0.7; text-align: right; margin-top: 4px; }

.chat-input-area { padding: 12px 16px; background: var(--white); display: flex; gap: 10px; align-items: center; border-top: 1px solid #EAEAEA; }
.chat-input-area input { flex: 1; padding: 12px 16px; border-radius: 24px; border: 1px solid #EAEAEA; outline: none; font-size: 16px; background: #F9F9F9; }
.send-btn { width: 44px; height: 44px; border-radius: 50%; background: var(--btn-green); color: white; border: none; font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center; }