/* ============================================ */
/* MATERIAL DESIGN STYLE                         */
/* ============================================ */
:root {
    --primary: #34495E;
    --primary-dark: #2C3E50;
    --primary-light: #5D6D7E;
    --primary-gradient: linear-gradient(135deg, #34495E, #2C3E50);
    --primary-bg: rgba(52, 73, 94, 0.08);

    --accent: #E67E22;
    --accent-dark: #D35400;
    --accent-bg: rgba(230, 126, 34, 0.1);

    --success: #2ECC71;
    --success-dark: #27AE60;
    --success-bg: rgba(46, 204, 113, 0.1);

    --warning: #F1C40F;
    --warning-dark: #F39C12;
    --danger: #E74C3C;
    --danger-dark: #C0392B;

    --bg-primary: #F5F7FA;
    --bg-secondary: #FFFFFF;
    --bg-card: #FFFFFF;
    --bg-input: #F8F9FA;
    --text-primary: #2C3E50;
    --text-secondary: #7F8C8D;
    --text-muted: #BDC3C7;
    --border-color: #E0E0E0;

    --shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-xs: 4px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Админские цвета (стильный фиолетовый) */
    --admin-primary: #7C3AED;
    --admin-primary-dark: #6D28D9;
    --admin-primary-light: #A78BFA;
    --admin-gradient: linear-gradient(135deg, #7C3AED, #6D28D9);
    --admin-glow: 0 0 30px rgba(124, 58, 237, 0.25);
    --admin-border: 2px solid #7C3AED;
    --admin-bg: rgba(124, 58, 237, 0.08);
}

[data-theme="dark"] {
    --bg-primary: #121212;
    --bg-secondary: #1E1E1E;
    --bg-card: #1E1E1E;
    --bg-input: #2D2D2D;
    --text-primary: #E8E8E8;
    --text-secondary: #B0B0B0;
    --text-muted: #7A7A7A;
    --border-color: #3D3D3D;
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.4);
    --primary-bg: rgba(52, 73, 94, 0.2);
    --accent-bg: rgba(230, 126, 34, 0.15);
    --success-bg: rgba(46, 204, 113, 0.15);
    --admin-bg: rgba(124, 58, 237, 0.15);
}

/* ============================================ */
/* ГЛОБАЛЬНЫЕ СТИЛИ                             */
/* ============================================ */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    transition: background var(--transition), color var(--transition);
}

.app-container {
    max-width: 480px;
    margin: 0 auto;
    padding: 0 16px 80px;
    position: relative;
}

/* ============================================ */
/* ШАПКА                                        */
/* ============================================ */
.app-header { padding: 20px 0 16px; }

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    gap: 8px;
    flex-wrap: nowrap;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.logo-icon {
    width: 44px;
    height: 44px;
    background: var(--primary-gradient);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(52, 73, 94, 0.3);
    flex-shrink: 0;
}

.logo-text h1 {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.logo-subtitle {
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 500;
    display: block;
    letter-spacing: 0.3px;
}

.header-actions {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-shrink: 0;
}

.icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: var(--bg-card);
    color: var(--text-secondary);
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
}

.icon-btn:active { transform: scale(0.92); background: var(--primary); color: white; }
.icon-btn.auth-btn { background: var(--primary-gradient); color: white; box-shadow: 0 4px 12px rgba(52, 73, 94, 0.3); }
.icon-btn.auth-btn:active { opacity: 0.8; }

/* Режим админа на аватарке - стильный фиолетовый */
.icon-btn.auth-btn.admin-mode {
    background: var(--admin-gradient);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.4);
    animation: adminPulse 2s infinite;
}

@keyframes adminPulse {
    0%, 100% { box-shadow: 0 4px 12px rgba(124, 58, 237, 0.4); }
    50% { box-shadow: 0 4px 24px rgba(124, 58, 237, 0.7); }
}

/* ============================================ */
/* ДРОПДАУН                                     */
/* ============================================ */
.profile-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    padding: 8px 0;
    z-index: 100;
    overflow: hidden;
}

.dropdown-menu.active { display: block; }

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    width: 100%;
    border: none;
    background: none;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.dropdown-item:hover { background: var(--primary-bg); color: var(--primary); }
.dropdown-item:active { transform: scale(0.95); }
.dropdown-item i { width: 20px; font-size: 16px; text-align: center; color: var(--primary); }

/* Админский пункт в дропдауне - фиолетовый */
.dropdown-item.admin-item {
    color: var(--admin-primary);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
    margin-bottom: 4px;
}
.dropdown-item.admin-item i { color: var(--admin-primary); }
.dropdown-item.admin-item:hover { background: var(--admin-bg); }

/* ============================================ */
/* КАРТОЧКА НЕДВИЖИМОСТИ / ТОВАРИЩЕСТВА         */
/* ============================================ */
.property-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 16px 20px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    transition: all var(--transition);
}

/* Админская карточка - фиолетовая */
.property-card.admin-card {
    border: var(--admin-border);
    background: linear-gradient(135deg, var(--bg-card), var(--admin-bg));
    box-shadow: var(--admin-glow);
}

.property-card .admin-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--admin-gradient);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 12px;
    border-radius: 20px;
    margin-left: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.property-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.property-header .property-icon { color: var(--primary); font-size: 16px; }
.property-title { font-size: 14px; font-weight: 700; color: var(--text-primary); }

.property-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.property-address, .property-owner {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-secondary);
}

.property-address i, .property-owner i { color: var(--primary); width: 16px; font-size: 14px; }

/* ============================================ */
/* АДМИН-ПАНЕЛЬ (фиолетовая)                   */
/* ============================================ */
.admin-panel {
    margin-top: 16px;
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 16px;
    border: var(--admin-border);
    box-shadow: var(--admin-glow);
    transition: all var(--transition);
}

.admin-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--admin-primary);
}

.admin-panel-header h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--admin-primary);
}

.admin-panel-header .admin-badge-large {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--admin-gradient);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-member-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    max-height: 250px;
    overflow-y: auto;
}

.admin-member-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: var(--bg-input);
    border: 1px solid transparent;
    border-radius: var(--radius-xs);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: var(--text-primary);
}

.admin-member-item:hover {
    background: var(--admin-bg);
    border-color: var(--admin-primary);
}

.admin-member-item.active {
    background: var(--admin-bg);
    border: 2px solid var(--admin-primary);
}

.admin-member-item .member-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-member-item .member-tag {
    font-size: 10px;
    color: var(--text-muted);
    background: var(--bg-card);
    padding: 1px 8px;
    border-radius: 10px;
}

.admin-member-item .member-role {
    font-size: 12px;
}

.admin-back-btn {
    width: 100%;
    padding: 10px;
    background: var(--admin-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xs);
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--admin-primary);
    transition: all 0.2s ease;
    margin-top: 8px;
}

.admin-back-btn:hover {
    background: var(--admin-gradient);
    color: white;
}

.admin-path-info {
    margin-top: 8px;
    font-size: 11px;
    color: var(--text-muted);
    text-align: right;
    padding-top: 8px;
    border-top: 1px solid var(--border-color);
}

/* ============================================ */
/* КАРТОЧКА ОБЪЯВЛЕНИЙ                         */
/* ============================================ */
.announcement-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 0;
    margin-top: 16px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: all var(--transition);
    position: relative;
}

.announcement-body {
    padding: 16px 20px;
    min-height: 100px;
}

.announcement-item {
    display: none;
    animation: fadeSlide 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.announcement-item.active {
    display: flex;
    gap: 14px;
}

@keyframes fadeSlide {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.announcement-item-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--primary);
    flex-shrink: 0;
}

.announcement-item-content {
    flex: 1;
}

.announcement-item-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.announcement-item-text {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 6px;
}

.announcement-item-date {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--text-muted);
}

.announcement-item-date i {
    font-size: 12px;
}

.announcement-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 12px 20px 16px;
    border-top: 1px solid var(--border-color);
}

.announcement-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: var(--bg-input);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.announcement-btn:active {
    transform: scale(0.9);
    background: var(--primary);
    color: white;
}

.announcement-btn:hover {
    background: var(--primary-bg);
    color: var(--primary);
}

.announcement-dots {
    display: flex;
    gap: 6px;
}

.announcement-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.announcement-dots .dot.active {
    background: var(--primary);
    width: 24px;
    border-radius: 4px;
}

.announcement-dots .dot:active {
    transform: scale(0.8);
}

[data-theme="dark"] .announcement-btn:hover {
    background: var(--primary-bg);
    color: var(--primary-light);
}

/* ============================================ */
/* ФОНОВЫЕ ИКОНКИ FONT AWESOME                 */
/* ============================================ */

/* Tabs Container */
.tabs-container {
    position: relative;
    overflow: hidden;
    background: var(--bg-card);
}

.tabs-bg-icon {
    position: absolute;
    right: 16px;
    bottom: 16px;
    font-size: 56px;
    color: var(--primary);
    opacity: 0.08;
    pointer-events: none;
    z-index: 0;
    line-height: 1;
}

[data-theme="light"] .tabs-bg-icon {
    opacity: 0.10;
    color: var(--primary);
}

[data-theme="dark"] .tabs-bg-icon {
    opacity: 0.12;
    color: var(--primary-light);
}

.tab-header,
.tab-content {
    position: relative;
    z-index: 1;
}

/* Meters Section */
.meters-section {
    position: relative;
    overflow: hidden;
    min-height: 300px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    padding: 4px 0;
}

.meters-bg-icon {
    position: absolute;
    right: 10px;
    bottom: 10px;
    font-size: 126px;
    color: var(--primary);
    pointer-events: none;
    z-index: 0;
    line-height: 1;
}

[data-theme="light"] .meters-bg-icon {
    opacity: 0.10;
    color: var(--primary);
}

[data-theme="dark"] .meters-bg-icon {
    opacity: 0.12;
    color: var(--primary-light);
}

.meters-grid {
    position: relative;
    z-index: 1;
}

/* ============================================ */
/* СЧЕТЧИКИ                                     */
/* ============================================ */
.meters-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 0;
    position: relative;
    z-index: 1;
}

.meter-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: left;
    position: relative;
    overflow: hidden;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow);
}

.meter-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.meter-btn:active {
    transform: scale(0.96) translateY(0);
}

.meter-btn .meter-bg-icon {
    position: absolute;
    right: -5px;
    bottom: -5px;
    font-size: 64px;
    opacity: 0.25;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.meter-btn:hover .meter-bg-icon {
    opacity: 0.4;
}

.meter-btn.electricity-day .meter-bg-icon { color: #F1C40F; }
.meter-btn.electricity-night .meter-bg-icon { color: #9B59B6; }
.meter-btn.water-cold .meter-bg-icon { color: #3498DB; }
.meter-btn.water-hot .meter-bg-icon { color: #E67E22; }
.meter-btn.gas .meter-bg-icon { color: #E74C3C; }

.meter-btn .meter-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.meter-btn .meter-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    position: relative;
    z-index: 1;
}

.meter-btn .meter-warning {
    font-size: 14px;
    z-index: 2;
    color: var(--warning);
}

.meter-btn .meter-bottom {
    display: flex;
    flex-direction: column;
    gap: 2px;
    position: relative;
    z-index: 1;
}

.meter-btn .meter-value {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
}

.meter-btn .meter-unit {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
}

.meter-btn .meter-month {
    font-size: 11px;
    font-weight: 600;
    color: #7F8C8D;
    margin-top: 2px;
    transition: color 0.3s ease;
}

.meter-btn .meter-month i {
    font-size: 12px;
    margin-right: 4px;
}

.meter-btn .meter-month.sent {
    color: var(--success);
}

.meter-btn .meter-month.no-data {
    color: var(--text-muted);
}

.meter-btn.electricity-day { border-left: 4px solid #F1C40F; }
.meter-btn.electricity-night { border-left: 4px solid #9B59B6; }
.meter-btn.water-cold { border-left: 4px solid #3498DB; }
.meter-btn.water-hot { border-left: 4px solid #E67E22; }
.meter-btn.gas { border-left: 4px solid #E74C3C; }

/* ============================================ */
/* ВКЛАДКИ                                      */
/* ============================================ */
.tabs-container {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: all var(--transition);
    margin-top: 16px;
}

.tab-header {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-bottom: 1px solid var(--border-color);
}

.tab-btn {
    padding: 14px 6px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-bottom: 3px solid transparent;
}

.tab-btn i { font-size: 15px; }
.tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    background: var(--primary-bg);
}
.tab-btn:active { transform: scale(0.95); }

.tab-content { padding: 20px; }
.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* ============================================ */
/* МОДАЛЬНЫЕ ОКНА                               */
/* ============================================ */
.auth-modal, .property-modal, .property-add-modal, .reading-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.confirm-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-modal.active, .property-modal.active, .property-add-modal.active, 
.reading-modal.active, .confirm-modal.active {
    display: flex;
}

.auth-modal-content, .property-modal-content, .property-add-content, 
.reading-modal-content, .confirm-modal-content {
    background: var(--bg-secondary);
    border-radius: var(--radius);
    max-width: 400px;
    width: 100%;
    padding: 24px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    max-height: 90vh;
    overflow-y: auto;
}

/* ============================================ */
/* МОДАЛЬНОЕ ОКНО ПОДТВЕРЖДЕНИЯ                 */
/* ============================================ */
.confirm-modal-content {
    text-align: center;
    padding: 32px 24px;
    border-top: 4px solid var(--warning);
}

.confirm-icon {
    font-size: 56px;
    color: var(--warning);
    margin-bottom: 12px;
}

.confirm-modal-content h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.confirm-modal-content p {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-weight: 500;
}

.confirm-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.confirm-btn {
    padding: 14px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
}

.confirm-btn:active { transform: scale(0.95); }
.confirm-cancel {
    background: var(--bg-input);
    color: var(--text-secondary);
}
.confirm-ok {
    background: var(--success);
    color: white;
    box-shadow: 0 4px 12px rgba(46, 204, 113, 0.35);
}

/* ============================================ */
/* АВТОРИЗАЦИЯ                                  */
/* ============================================ */
.auth-modal-header, .property-modal-header, .reading-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.auth-modal-header h2, .property-modal-header h2, .reading-modal-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.auth-close-btn, .property-close-btn, .reading-close-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 20px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 8px;
    transition: all 0.2s;
}

.auth-close-btn:active, .property-close-btn:active, .reading-close-btn:active {
    background: var(--bg-input);
    transform: scale(0.9);
}

.auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 16px;
}

.auth-tab {
    padding: 10px;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--bg-input);
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
}

.auth-tab.active {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 12px rgba(52, 73, 94, 0.35);
}

.auth-tab:active { transform: scale(0.95); }
.auth-pane { display: none; }
.auth-pane.active { display: block; }
.auth-pane .input-field { margin-bottom: 12px; }
.auth-pane .input-field:last-of-type { margin-bottom: 16px; }

.auth-submit-btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--success);
    color: white;
    font-size: 15px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(46, 204, 113, 0.35);
}

.auth-submit-btn:active { transform: scale(0.97); }
.auth-modal-footer {
    margin-top: 12px;
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
    min-height: 24px;
}
.auth-modal-footer .success { color: var(--success); }
.auth-modal-footer .error { color: var(--danger); }

/* ============================================ */
/* СПИСОК КВАРТИР                              */
/* ============================================ */
.property-list { margin-bottom: 16px; }

.property-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    background: var(--bg-input);
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.property-list-item:active { transform: scale(0.97); }
.property-list-item .property-info { display: flex; flex-direction: column; gap: 2px; }
.property-list-item .property-info .address { font-weight: 600; color: var(--text-primary); font-size: 14px; }
.property-list-item .property-info .owner { font-size: 12px; color: var(--text-muted); }
.property-list-item .property-check { color: var(--success); font-size: 18px; }

.property-add-btn, .property-save-btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--success);
    color: white;
    font-size: 14px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(46, 204, 113, 0.35);
}

.property-add-btn:active, .property-save-btn:active { transform: scale(0.97); }

/* ============================================ */
/* ПОЛЯ ВВОДА - FLOATING LABELS                 */
/* ============================================ */
.input-field {
    position: relative;
    background: var(--bg-input);
    border-radius: var(--radius-sm);
    border: 2px solid var(--border-color);
    transition: all 0.2s ease;
}

.input-field:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(52, 73, 94, 0.1);
}

.input-field .input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 14px;
    pointer-events: none;
    transition: all 0.2s ease;
}

.input-field:focus-within .input-icon { color: var(--primary); }

.input-field input {
    width: 100%;
    padding: 18px 14px 6px 42px;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    min-height: 56px;
}

.input-field input::placeholder { color: transparent; }

.input-field label {
    position: absolute;
    left: 42px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    pointer-events: none;
    transition: all 0.2s ease;
}

.input-field input:focus ~ label,
.input-field input:not(:placeholder-shown) ~ label {
    top: 8px;
    transform: translateY(0);
    font-size: 10px;
    color: var(--primary);
    font-weight: 600;
}

/* ============================================ */
/* MATERIAL DESIGN FLOATING INPUT               */
/* ============================================ */
.form-group {
    position: relative;
    margin-bottom: 24px;
    padding-top: 8px;
}

.form-group .form-control {
    width: 100%;
    height: 48px;
    padding: 12px 16px 4px 16px;
    font-size: 15px;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--border-color);
    border-radius: 0;
    outline: none;
    transition: all 0.25s ease;
    box-shadow: none;
}

.form-group .form-control:focus {
    border-bottom-color: var(--primary);
    box-shadow: 0 1px 0 0 var(--primary);
}

.form-group .form-control:focus ~ .form-control-feedback {
    color: var(--primary);
}

.form-group .form-control:focus ~ .control-label,
.form-group .form-control:not(:placeholder-shown) ~ .control-label {
    top: -4px;
    font-size: 11px;
    color: var(--primary);
    font-weight: 600;
}

.form-group .control-label {
    position: absolute;
    left: 16px;
    top: 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    pointer-events: none;
    transition: all 0.25s ease;
    transform-origin: left top;
    background: var(--bg-card);
    padding: 0 4px;
}

.form-group .form-control-feedback {
    position: absolute;
    right: 0;
    bottom: 8px;
    font-size: 20px;
    color: var(--text-muted);
    transition: all 0.25s ease;
    pointer-events: none;
}

.form-group .form-control:focus ~ .form-control-feedback {
    color: var(--primary);
}

.form-group.has-success .form-control {
    border-bottom-color: var(--success);
    box-shadow: 0 1px 0 0 var(--success);
}

.form-group.has-success .form-control ~ .control-label {
    color: var(--success);
}

.form-group.has-success .form-control-feedback {
    color: var(--success);
}

.form-group.has-error .form-control {
    border-bottom-color: var(--danger);
    box-shadow: 0 1px 0 0 var(--danger);
}

.form-group.has-error .form-control ~ .control-label {
    color: var(--danger);
}

.form-group.has-error .form-control-feedback {
    color: var(--danger);
}

[data-theme="dark"] .form-group .control-label {
    background: var(--bg-card);
}

[data-theme="dark"] .form-group .form-control {
    color: var(--text-primary);
    border-bottom-color: var(--border-color);
}

[data-theme="dark"] .form-group .form-control:focus {
    border-bottom-color: var(--primary);
    box-shadow: 0 1px 0 0 var(--primary);
}

[data-theme="dark"] .form-group .form-control:focus ~ .control-label {
    color: var(--primary-light);
}

[data-theme="dark"] .form-group .form-control:focus ~ .form-control-feedback {
    color: var(--primary-light);
}

.reading-modal-body .form-group {
    margin-bottom: 20px;
}

.reading-modal-body .form-group .form-control {
    height: 44px;
    padding: 10px 14px 2px 14px;
    font-size: 14px;
}

.reading-modal-body .form-group .control-label {
    left: 14px;
    top: 12px;
    font-size: 13px;
}

.reading-modal-body .form-group .form-control:focus ~ .control-label,
.reading-modal-body .form-group .form-control:not(:placeholder-shown) ~ .control-label {
    top: -4px;
    font-size: 10px;
}

.reading-modal-body .form-group .form-control-feedback {
    bottom: 4px;
    font-size: 18px;
}

/* ============================================ */
/* МОДАЛЬНОЕ ОКНО ПОКАЗАНИЙ                     */
/* ============================================ */
.reading-modal-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.reading-modal-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.reading-modal-icon.electricity-day { background: rgba(241, 196, 15, 0.2); color: #F1C40F; }
.reading-modal-icon.electricity-night { background: rgba(155, 89, 182, 0.2); color: #9B59B6; }
.reading-modal-icon.water-cold { background: rgba(52, 152, 219, 0.2); color: #3498DB; }
.reading-modal-icon.water-hot { background: rgba(230, 126, 34, 0.2); color: #E67E22; }
.reading-modal-icon.gas { background: rgba(231, 76, 60, 0.2); color: #E74C3C; }

.reading-modal-title h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.reading-modal-id {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

.reading-previous {
    background: var(--bg-input);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.reading-previous span { font-size: 13px; color: var(--text-secondary); font-weight: 500; }
.reading-previous strong { font-size: 20px; color: var(--text-primary); font-weight: 700; }

.reading-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 16px;
}

.reading-submit-btn, .reading-history-btn {
    padding: 12px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.reading-submit-btn {
    background: var(--success);
    color: white;
    box-shadow: 0 4px 12px rgba(46, 204, 113, 0.35);
}

.reading-history-btn {
    background: var(--bg-input);
    color: var(--text-secondary);
}

.reading-submit-btn:active, .reading-history-btn:active { transform: scale(0.95); }

/* ============================================ */
/* ТАБЛИЦА ИСТОРИИ                             */
/* ============================================ */
.history-section { margin-bottom: 0; }
.table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    min-width: 500px;
}

thead {
    background: var(--bg-input);
    border-radius: var(--radius-xs);
}

thead th {
    padding: 10px 8px;
    text-align: left;
    font-weight: 600;
    color: var(--text-muted);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

thead th:first-child { padding-left: 14px; }
thead th:last-child { padding-right: 14px; }

tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

tbody tr:active { background: var(--bg-input); }
tbody td {
    padding: 10px 8px;
    color: var(--text-secondary);
    font-weight: 500;
    white-space: nowrap;
}
tbody td:first-child { padding-left: 14px; }
tbody td:last-child { padding-right: 14px; }
tbody td strong { color: var(--text-primary); font-weight: 700; }

.delete-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 14px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: var(--radius-xs);
    transition: all 0.2s ease;
}

.delete-btn:active {
    background: var(--danger);
    color: white;
    transform: scale(0.9);
}

.empty-message {
    text-align: center;
    color: var(--text-muted);
    padding: 32px 16px;
    font-size: 14px;
    font-weight: 500;
}

/* ============================================ */
/* СТАТИСТИКА                                   */
/* ============================================ */
.stats-section { margin-bottom: 0; }
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.stats-card {
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

.stats-card-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: var(--primary-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 20px;
    flex-shrink: 0;
}

.stats-card-info { 
    display: flex; 
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.stats-card-number {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
    word-break: break-word;
}

.stats-card-label {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
    word-break: break-word;
}

.stats-card-wide {
    grid-column: 1 / -1;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    padding: 16px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

.stats-card-wide h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.consumption-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.consumption-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: var(--bg-input);
    border-radius: var(--radius-xs);
    min-width: 0;
}

.consumption-icon { 
    font-size: 16px; 
    width: 28px; 
    text-align: center;
    flex-shrink: 0;
}

.consumption-info {
    display: flex;
    justify-content: space-between;
    flex: 1;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.consumption-label { 
    font-size: 12px; 
    color: var(--text-secondary); 
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.consumption-value { 
    font-size: 14px; 
    font-weight: 700; 
    color: var(--text-primary);
    white-space: nowrap;
    flex-shrink: 0;
}

/* ============================================ */
/* НАСТРОЙКИ (ПРОФИЛЬ)                         */
/* ============================================ */
.settings-section { margin-bottom: 0; }
.settings-card { text-align: center; }
.settings-avatar {
    font-size: 72px;
    color: var(--primary);
    margin-bottom: 8px;
}
.settings-name {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
}
.settings-role {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}
.settings-divider {
    height: 1px;
    background: var(--border-color);
    margin: 16px 0;
}
.settings-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.settings-stat-item {
    background: var(--bg-input);
    border-radius: var(--radius-sm);
    padding: 12px;
}
.settings-stat-number {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}
.settings-stat-label {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
}

.settings-options { text-align: left; }
.settings-options h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: var(--bg-input);
    border-radius: var(--radius-sm);
    margin-bottom: 6px;
}
.setting-item:last-child { margin-bottom: 0; }
.setting-info {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
}
.setting-info i { color: var(--primary); width: 18px; }
.setting-value {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.settings-footer {
    margin-top: 12px;
    font-size: 12px;
    color: var(--text-muted);
}
.settings-footer p:first-child { font-weight: 600; color: var(--text-secondary); }

/* ============================================ */
/* УВЕДОМЛЕНИЯ                                  */
/* ============================================ */
.notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 14px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    animation: slideDown 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-width: 90%;
    text-align: center;
    border: none;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.notification i {
    font-size: 18px;
}

.notification.success {
    background: var(--success);
    color: #FFFFFF;
}

.notification.error {
    background: var(--danger);
    color: #FFFFFF;
}

.notification.warning {
    background: var(--warning);
    color: #2C3E50;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1);
    }
}

/* ============================================ */
/* РЕКЛАМНЫЙ СЛАЙДЕР                           */
/* ============================================ */
.ads-slider {
    position: relative;
    margin-top: 20px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    min-height: 100px;
    transition: all var(--transition);
}

.ads-slider:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.ads-slide {
    display: none;
    width: 100%;
    padding: 20px 24px;
    min-height: 100px;
    animation: fadeSlide 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.ads-slide.active {
    display: block;
}

.ads-content {
    display: flex;
    align-items: center;
    gap: 20px;
    height: 100%;
    min-height: 80px;
}

.ads-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.ads-slide:hover .ads-icon {
    transform: scale(1.1) rotate(-5deg);
}

.ads-text {
    flex: 1;
    color: white;
}

.ads-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    letter-spacing: 0.2px;
}

.ads-subtitle {
    font-size: 13px;
    font-weight: 500;
    opacity: 0.9;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

/* ============================================ */
/* АДАПТИВНОСТЬ                                 */
/* ============================================ */
@media (max-width: 420px) {
    .app-container { padding: 0 12px 80px; }
    .meters-grid { grid-template-columns: 1fr 1fr; }
    .header-actions { gap: 4px; }
    .icon-btn { width: 34px; height: 34px; font-size: 13px; }
    .logo-text h1 { font-size: 20px; }
    .logo-icon { width: 38px; height: 38px; font-size: 18px; }
    .tab-btn { font-size: 10px; padding: 10px 4px; }
    .tab-btn span { display: none; }
    .tab-btn i { font-size: 16px; }
    .stats-grid { grid-template-columns: 1fr; }
    .consumption-grid { grid-template-columns: 1fr; }
    .reading-actions { grid-template-columns: 1fr; }
    .dropdown-menu { min-width: 180px; right: -10px; }
    .dropdown-item { font-size: 13px; padding: 8px 14px; }
    .confirm-actions { grid-template-columns: 1fr; }
    .announcement-body {
        padding: 12px 16px;
        min-height: 140px;
    }
    .announcement-item {
        flex-direction: column;
        gap: 8px;
    }
    .announcement-item-icon {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    .announcement-item-title {
        font-size: 13px;
    }
    .announcement-item-text {
        font-size: 12px;
    }
    .tabs-bg-icon {
        font-size: 44px;
        right: 12px;
        bottom: 12px;
    }
    .meters-bg-icon {
        font-size: 44px;
        right: 12px;
        bottom: 12px;
    }
    .ads-slide {
        padding: 16px 18px;
        min-height: 80px;
    }
    .ads-icon {
        width: 44px;
        height: 44px;
        font-size: 20px;
    }
    .ads-title {
        font-size: 14px;
    }
    .ads-subtitle {
        font-size: 12px;
    }
    .ads-slider {
        min-height: 80px;
    }
    .admin-member-item {
        font-size: 12px;
        padding: 8px 12px;
    }
}

@media (max-width: 360px) {
    .tabs-bg-icon {
        font-size: 36px;
        right: 8px;
        bottom: 8px;
    }
    .meters-bg-icon {
        font-size: 36px;
        right: 8px;
        bottom: 8px;
    }
    .ads-slide {
        padding: 12px 14px;
        min-height: 70px;
    }
    .ads-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    .ads-title {
        font-size: 12px;
    }
    .ads-subtitle {
        font-size: 10px;
    }
    .ads-slider {
        min-height: 70px;
    }
    .admin-member-item .member-tag {
        display: none;
    }
}

@media (min-width: 481px) {
    .app-container { padding: 0 24px 80px; }
}

/* Скроллбар для админ-панели */
.admin-member-list::-webkit-scrollbar {
    width: 4px;
}
.admin-member-list::-webkit-scrollbar-track {
    background: var(--bg-input);
    border-radius: 10px;
}
.admin-member-list::-webkit-scrollbar-thumb {
    background: var(--admin-primary);
    border-radius: 10px;
}

/* ============================================ */
/* СТРАНИЦА ДЕТАЛЬНОГО ОБЪЯВЛЕНИЯ              */
/* ============================================ */
.announcement-detail {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-primary);
    z-index: 3000;
    padding: 20px;
    overflow-y: auto;
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.announcement-detail.active {
    display: block;
}

.announcement-detail-content {
    max-width: 480px;
    margin: 0 auto;
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    min-height: 80vh;
}

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

.announcement-detail-back {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
}

.announcement-detail-back:hover {
    background: var(--bg-input);
}

.announcement-detail-back:active {
    transform: scale(0.95);
}

.announcement-detail-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.announcement-detail-close:active {
    background: var(--bg-input);
    transform: scale(0.9);
}

.announcement-detail-body {
    padding: 4px 0;
}

.announcement-detail-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--primary-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--primary);
    margin-bottom: 16px;
}

.announcement-detail-body h2 {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.announcement-detail-date {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.announcement-detail-date i {
    font-size: 14px;
}

.announcement-detail-text {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-secondary);
}

.announcement-detail-text p {
    margin-bottom: 12px;
}

.announcement-detail-text strong {
    color: var(--text-primary);
    font-weight: 700;
}

.announcement-detail-text ul {
    margin: 12px 0 16px 20px;
    list-style: none;
    padding: 0;
}

.announcement-detail-text ul li {
    padding: 6px 0 6px 24px;
    position: relative;
}

.announcement-detail-text ul li::before {
    content: '•';
    position: absolute;
    left: 4px;
    color: var(--primary);
    font-weight: 700;
    font-size: 18px;
}

/* ============================================ */
/* АДАПТИВНОСТЬ ДЛЯ СТРАНИЦЫ ОБЪЯВЛЕНИЯ        */
/* ============================================ */
@media (max-width: 420px) {
    .announcement-detail {
        padding: 12px;
    }
    
    .announcement-detail-content {
        padding: 16px;
        min-height: 70vh;
    }
    
    .announcement-detail-body h2 {
        font-size: 20px;
    }
    
    .announcement-detail-text {
        font-size: 14px;
    }
    
    .announcement-detail-icon {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }
}