/* ==========================================
   DASHBOARD CORE STYLES (Desktop)
   ========================================== */

:root { 
    --bg-color: #f5f7fb; 
    --card-bg: #ffffff; 
    --primary: #2d62ed; 
    --secondary: #ff4d88; 
    --text-main: #1a1a1a; 
    --text-muted: #858c99; 
    --success-bg: #e6fbf0; 
    --success-text: #059669; 
    --danger-bg: #fff1f2; 
    --danger-text: #e11d48; 
}

body { 
    font-family: 'Inter', sans-serif; 
    background: linear-gradient(-45deg, #f3f4f6, #dfe9f3, #e0c3fc, #c2e9fb);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    color: var(--text-main); 
    height: 100vh; 
    overflow: hidden; 
    display: flex; 
    flex-direction: column; 
    overflow-x: hidden;
    overscroll-behavior-x: none;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Навигация */
.navbar { background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,0.03); padding: 12px 20px; flex-shrink: 0; z-index: 100; border-bottom: 1px solid #f0f0f0; overflow: visible; }
.brand-logo { font-weight: 700; font-size: 1.2rem; display: flex; align-items: center; gap: 8px; }
.brand-select { border: none; background: #f8f9fa; font-weight: 700; color: #1a1a1a; padding: 8px 12px; border-radius: 10px; cursor: pointer; transition: 0.2s; appearance: none; -webkit-appearance: none; min-width: 140px; text-align: center; }
.brand-select:hover { background-color: #f0f0f0; }
.nav-icon-group { display: flex; gap: 8px; background: #f8f9fa; padding: 4px; border-radius: 12px; }
.nav-icon-btn { border: none; background: transparent; color: #858c99; width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; cursor: pointer; transition: all 0.2s; }
.nav-icon-btn:hover { color: var(--primary); background: rgba(45, 98, 237, 0.05); }
.nav-icon-btn.active { background: transparent !important; color: var(--primary) !important; box-shadow: none !important; }
.action-icon-btn { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; cursor: pointer; transition: all 0.2s; border: none; }
.btn-report { background: #fff; color: #2d62ed; border: 1px solid #e1e4e8; }
.btn-report:hover { border-color: #2d62ed; background: #f0f7ff; transform: translateY(-2px); }
.btn-help { background: #fff; color: #858c99; border: 1px solid #e1e4e8; }
.btn-help:hover { border-color: #858c99; color: #1a1a1a; background: #f8f9fa; transform: translateY(-2px); }

/* Общие стили */
.container-fluid { flex: 1; padding: 0 20px; overflow: hidden; display: flex; flex-direction: column; }
.tab-content { flex: 1; position: relative; height: 100%; min-height: 0; overflow: hidden; }
.tab-pane { width: 100%; height: 100%; }
.tab-pane.active { display: flex !important; flex-direction: column; }
#dashboard.active { display: block !important; overflow-y: auto; padding-top: 20px; padding-bottom: 40px; }

/* KPI Карточки */
.kpi-card { background: #fff; border-radius: 16px; padding: 24px; border: none; box-shadow: 0 4px 12px rgba(0,0,0,0.02); height: 100%; display: flex; flex-direction: column; justify-content: space-between; }
.kpi-label { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; color: #9aa0ac; letter-spacing: 0.5px; margin-bottom: 8px; }
.kpi-number { font-size: clamp(1.5rem, 2.5vw, 2.2rem) !important; font-weight: 900; color: #111827; line-height: 1; letter-spacing: -1.5px; word-break: normal; }
.kpi-sub-row { display: flex; align-items: center; gap: 15px; margin-top: 10px; font-size: 0.9rem; font-weight: 600; }
.text-org { color: var(--primary); } 
.text-ads { color: #8b5cf6; }
.badge-soft { padding: 6px 12px; border-radius: 8px; font-weight: 700; font-size: 0.8rem; }
.badge-soft.green { background: var(--success-bg); color: var(--success-text); }
.badge-soft.red { background: var(--danger-bg); color: var(--danger-text); }
.card-divider { height: 1px; background: #f3f4f6; margin: 15px 0; }

/* Графики и Таблицы */
.chart-container { background: #fff; border-radius: 16px; box-shadow: 0 4px 12px rgba(0,0,0,0.03); padding: 25px; margin-top: 20px; height: auto; }
.chart-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.chart-title { font-size: 1.1rem; font-weight: 800; margin: 0; }
.chart-controls { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.btn-check:checked + .btn-custom { background-color: #1a1a1a; color: white; border-color: #1a1a1a; }
.btn-custom { border: 1px solid #e5e7eb; color: #6b7280; font-weight: 600; font-size: 0.75rem; padding: 6px 12px; border-radius: 8px; transition: all 0.2s; cursor: pointer; }
.btn-custom:hover { background: #f9fafb; }
.chart-wrapper-inner { position: relative; height: 350px; width: 100%; }

.content-table { background: #fff; border-radius: 16px; box-shadow: 0 4px 12px rgba(0,0,0,0.03); padding: 25px; margin-top: 20px; }
.table-header-flex { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; position: relative; z-index: 50; }
.table-header-flex select { position: relative; z-index: 50 !important; cursor: pointer; }
.table-title { font-size: 1.1rem; font-weight: 800; margin: 0; color: #2d62ed; }
.table-title.pink { color: #ff4d88; }
.table { margin-bottom: 0; }
.table thead th { font-size: 0.65rem; text-transform: uppercase; color: #9aa0ac; border-bottom: 1px solid #eee; font-weight: 800; padding: 15px 10px; letter-spacing: 0.5px; }
.table td { vertical-align: middle; font-size: 0.9rem; padding: 18px 10px; border-bottom: 1px solid #f9fafb; }
.table tr:last-child td { border-bottom: none; }
.col-metric { text-align: center; min-width: 110px; }
.metric-main { font-weight: 800; font-size: 1rem; color: #1f2937; line-height: 1.1; margin-bottom: 4px; }
.metric-sub { font-size: 0.65rem; font-weight: 600; color: #9ca3af; display: flex; justify-content: center; gap: 8px; }
.btn-insta { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); color: white !important; border: none; padding: 6px 14px; border-radius: 50px; font-size: 0.75rem; font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; box-shadow: 0 4px 10px rgba(220, 39, 67, 0.3); transition: transform 0.2s; }
.btn-insta:hover { transform: translateY(-2px); box-shadow: 0 6px 15px rgba(220, 39, 67, 0.4); }
.btn-show-more { display: block; width: 100%; text-align: center; padding: 12px; color: #9aa0ac; font-weight: 700; font-size: 0.8rem; cursor: pointer; transition: 0.2s; border-top: 1px solid #f3f4f6; margin-top: 10px; text-transform: uppercase; letter-spacing: 0.5px; }
.btn-show-more:hover { color: var(--primary); background: #f9fafb; }

.table-responsive { position: relative; z-index: 1; padding-top: 10px; }
#topUnifiedTable tbody tr { position: relative; z-index: 20; }
.table-hover tbody tr:hover { background-color: rgba(0, 0, 0, 0.03) !important; box-shadow: inset 3px 0 0 var(--primary); }
.table-hover tbody tr td { background-color: transparent !important; box-shadow: none !important; }

/* Календарь - FINAL */
.calendar-wrapper { flex: 1; display: flex; flex-direction: column; height: 100%; min-height: 0; padding: 5px 10px 0 10px; }
.calendar-header-row { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; margin-bottom: 4px; flex-shrink: 0; padding-right: 6px; }
.cal-header-label { text-align: center; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; color: var(--text-muted); }
.calendar-grid-body { flex: 1; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); grid-auto-rows: 120px; gap: 8px; padding-bottom: 10px; overflow-y: auto; overflow-x: hidden; min-height: 0; scrollbar-width: thin; }
.day-cell { position: relative; overflow: visible !important; z-index: 1; background: transparent !important; border: none !important; padding: 0 !important; height: 100%; }
.day-cell.is-expanded { z-index: 9999 !important; }
.day-cell-inner { position: relative; height: 100%; width: 100%; background: #ffffff; border-radius: 12px; padding: 6px 4px; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 2px 5px rgba(0,0,0,0.02), 0 0 1px rgba(0,0,0,0.05); border: 1px solid rgba(0,0,0,0.05); transition: box-shadow 0.2s ease, transform 0.2s ease; }
.day-cell-inner.is-weekend { background: #f8f9fa !important; }
.day-cell-inner:hover { box-shadow: 0 8px 20px rgba(0,0,0,0.08); transform: translateY(-2px); z-index: 10; }
.day-cell.is-expanded .day-cell-inner { position: absolute; top: 0; left: 0; width: 100%; height: auto !important; max-height: 50vh; overflow-y: visible; min-height: 100%; background: #fff; box-shadow: 0 10px 40px rgba(0,0,0,0.25); border: 1px solid var(--primary); z-index: 1000; padding-bottom: 36px; }
.day-cell.is-expanded.open-up .day-cell-inner { top: auto !important; bottom: 0 !important; margin-top: 0; margin-bottom: 0; box-shadow: 0 -10px 30px rgba(0,0,0,0.2); transform-origin: bottom center; }
.day-content-scroll { flex: 1; display: flex; flex-direction: column; gap: 3px; margin-top: 2px; overflow-y: auto; min-height: 0; scrollbar-width: none; }
.day-content-scroll::-webkit-scrollbar { display: none; } 
.day-number { font-size: 0.8rem; font-weight: 600; color: #858c99; display: flex; justify-content: space-between; align-items: center; flex-shrink: 0; padding: 0 2px; }
.day-number.today { color: var(--primary); font-weight: 800; }
.day-header-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; min-height: 24px; }

.plan-card { flex-shrink: 0; background: #fff; border-radius: 6px; padding: 4px 6px; box-shadow: 0 1px 3px rgba(0,0,0,0.05); border-left-width: 3px; border-left-style: solid; cursor: pointer; font-size: 0.65rem; display: flex; flex-direction: column; justify-content: space-between; min-height: 54px; line-height: 1.1; }
.card-header-flex { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2px; }
.card-type { font-weight: 700; font-size: 0.6rem; }
.status-badge { font-size: 0.55rem; padding: 1px 4px; border-radius: 3px; color: #fff; font-weight: 600; text-transform: uppercase; }
.card-brand-footer { font-size: 0.6rem; font-weight: 800; color: #9aa0ac; text-transform: uppercase; letter-spacing: 0.5px; margin-top: 4px; border-top: 1px dashed #f0f0f0; padding-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.add-ghost-btn { position: absolute; bottom: 4px; right: 4px; width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--primary); background: #f0f4ff; opacity: 0; transition: 0.2s; cursor: pointer; z-index: 6; font-size: 1rem; }
.day-cell:hover .add-ghost-btn { opacity: 1; }
.add-ghost-btn:hover { background-color: var(--primary); color: #ffffff; transform: scale(1.1); }
.day-cell.is-expanded .add-ghost-btn { display: flex !important; opacity: 1 !important; position: absolute; bottom: 40px; right: 10px; z-index: 1002; background: #eef2ff; box-shadow: 0 2px 10px rgba(0,0,0,0.1); transform: scale(1.1); }
.day-cell.is-expanded .add-ghost-btn:hover { background-color: #eef2ff !important; color: #2d62ed !important; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }

.btn-expand-cell { flex-shrink: 0; background: rgba(233, 236, 239, 0.7); color: #6c757d; font-size: 0.6rem; font-weight: 700; text-align: center; padding: 2px 0; border-radius: 4px; cursor: pointer; margin-top: auto; z-index: 5; border: none; transition: 0.2s; }
.btn-expand-cell:hover { background: #e2e6ea; color: #333; }
.day-cell.is-expanded .btn-expand-cell { margin-top: 6px; background: var(--primary); color: #fff; position: sticky; bottom: 0; }

/* Custom Picker */
.custom-picker-container { position: relative; width: auto; min-width: 220px; }
.picker-trigger { background: #f8f9fa; border: 1px solid #e9ecef; border-radius: 10px; padding: 8px 12px; font-size: 0.9rem; font-weight: 600; color: #333; display: flex; justify-content: space-between; align-items: center; cursor: pointer; transition: all 0.2s; }
.picker-trigger:hover { background: #fff; border-color: #ccc; }

.nav-arrow-btn {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e1e4e8;
    background: #fff;
    border-radius: 10px;
    color: #4b5563;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1rem;
    padding: 0;
    line-height: 1;
}

.nav-arrow-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: #f0f7ff;
    transform: translateY(-1px);
}

.nav-arrow-btn:active {
    transform: translateY(0);
}

.picker-dropdown { position: absolute; top: 110%; left: 50%; transform: translateX(-50%) translateY(-10px); width: 340px; background: #fff; border-radius: 20px; box-shadow: 0 10px 40px rgba(0,0,0,0.15); border: 1px solid rgba(0,0,0,0.05); padding: 20px; z-index: 99999; display: none; animation: fadeIn 0.2s ease-out; }
.picker-dropdown.show { display: block; transform: translateX(-50%) translateY(0); }
@keyframes fadeIn { from { opacity: 0; transform: translateX(-50%) translateY(-10px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }
.picker-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.picker-title { font-weight: 700; font-size: 1rem; }
.picker-close { cursor: pointer; color: #999; font-size: 1.2rem; }
.year-navigator { display: flex; justify-content: center; align-items: center; gap: 20px; margin-bottom: 20px; font-weight: 700; font-size: 1.1rem; }
.year-nav-btn { cursor: pointer; color: #999; transition: color 0.2s; }
.year-nav-btn:hover { color: var(--primary); }
.month-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 20px; }
.month-item { padding: 10px 0; text-align: center; border: 1px solid #f0f0f0; border-radius: 10px; font-size: 0.9rem; font-weight: 600; color: #555; cursor: pointer; transition: all 0.2s; }
.month-item:hover { border-color: var(--primary); color: var(--primary); }
.month-item.selected-single { background: #1a1a1a; color: #fff; border-color: #1a1a1a; }
.month-item.selected-start { background: #1a1a1a; color: #fff; border-color: #1a1a1a; border-radius: 10px 0 0 10px; }
.month-item.selected-end { background: #1a1a1a; color: #fff; border-color: #1a1a1a; border-radius: 0 10px 10px 0; }
.month-item.in-range { background: rgba(26, 26, 26, 0.1); color: #1a1a1a; border-color: transparent; border-radius: 0; }
.picker-btn-secondary { background: #f8f9fa; color: #333; border: none; font-weight: 600; padding: 10px; border-radius: 10px; width: 48%; }
.picker-btn-primary { background: #1a1a1a; color: #fff; border: none; font-weight: 600; padding: 10px; border-radius: 10px; width: 100%; }

/* Modals & Inputs */
.modal-content { border-radius: 20px; border: none; box-shadow: 0 15px 50px rgba(0,0,0,0.15); background: #ffffff !important; }
.modal-header { padding: 15px 25px; border-bottom: 1px solid #f0f0f0; }
.modal-body { padding: 25px; }
.form-control, .form-select { border-radius: 10px; padding: 10px; font-size: 0.9rem; border-color: #eee; background: #f9f9f9; }
.form-control:focus, .form-select:focus { border-color: var(--primary); background: #fff; box-shadow: 0 0 0 4px rgba(45, 98, 237, 0.1); }
.color-option { width: 26px; height: 26px; border-radius: 50%; cursor: pointer; border: 2px solid transparent; transition: transform 0.2s; }
.color-option:hover { transform: scale(1.1); }
.color-option.selected { border-color: #333; transform: scale(1.2); }
.edit-list-btn { font-size: 0.7rem; color: var(--primary); font-weight: 600; cursor: pointer; float: right; text-decoration: none;}
.edit-list-btn:hover { text-decoration: underline; }

/* Info Grid */
.info-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; padding-bottom: 40px; }
.service-card { background: #fff; border-radius: 16px; padding: 20px; box-shadow: 0 4px 12px rgba(0,0,0,0.03); border: 1px solid #f0f0f0; transition: all 0.2s ease; position: relative; cursor: pointer; height: 100%; display: flex; flex-direction: column; }
.service-card:hover { transform: translateY(-3px); box-shadow: 0 10px 25px rgba(0,0,0,0.08); border-color: var(--primary); }
.service-header { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; }
.service-logo-box { width: 48px; height: 48px; border-radius: 12px; background: #f8f9fa; display: flex; align-items: center; justify-content: center; overflow: hidden; border: 1px solid #eee; flex-shrink: 0; }
.service-logo-img { width: 100%; height: 100%; object-fit: cover; }
.service-title { font-weight: 700; font-size: 1rem; color: #333; line-height: 1.2; }
.copy-field { background: #f8f9fa; border-radius: 8px; padding: 8px 12px; margin-bottom: 8px; font-size: 0.85rem; display: flex; justify-content: space-between; align-items: center; border: 1px solid transparent; transition: 0.2s; }
.copy-field:hover { border-color: #e2e8f0; background: #fff; }
.copy-btn { color: var(--primary); cursor: pointer; opacity: 0.6; transition: 0.2s; }
.copy-btn:hover { opacity: 1; transform: scale(1.1); }
.info-link-btn { margin-top: auto; display: inline-block; color: #858c99; font-size: 0.8rem; text-decoration: none; font-weight: 600; }
.info-link-btn:hover { color: var(--primary); }

/* WIKI (HELP) */
.help-card-item { background: #fff; border: 1px solid #e0e0e0; border-radius: 12px; overflow: hidden; cursor: pointer; transition: all 0.2s ease; height: 100%; display: flex; flex-direction: column; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.help-card-item:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); border-color: #2d62ed; }
.help-cover-box { height: 120px; background: #f8f9fa; position: relative; overflow: hidden; border-bottom: 1px solid #f0f0f0; display: flex; align-items: center; justify-content: center; color: #adb5bd; }
.help-cover-img { width: 100%; height: 100%; object-fit: cover; }
.help-card-body { padding: 15px; flex: 1; display: flex; flex-direction: column; }
.help-card-title { font-weight: 700; font-size: 0.95rem; margin-bottom: 6px; line-height: 1.3; color: #333; }
.help-card-preview { font-size: 0.8rem; color: #858c99; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; }

.editor-block-item { background: #f8f9fa; border: 1px solid #e9ecef; border-radius: 12px; padding: 15px; margin-bottom: 10px; position: relative; transition: all 0.2s; }
.editor-block-item:hover { background: #fff; border-color: #d1d5db; box-shadow: 0 4px 10px rgba(0,0,0,0.05); }
.block-remove-btn { position: absolute; top: 10px; right: 10px; width: 24px; height: 24px; background: #fff; border: 1px solid #ffcccc; color: #e11d48; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 0.8rem; }
.block-remove-btn:hover { background: #e11d48; color: #fff; }
.block-label { font-size: 0.65rem; font-weight: 700; text-transform: uppercase; color: #9aa0ac; margin-bottom: 5px; display: block; }
.add-block-btn { border: 1px dashed #ced4da; background: #fff; color: #6c757d; font-weight: 600; font-size: 0.85rem; padding: 10px; border-radius: 10px; transition: 0.2s; }
.add-block-btn:hover { border-color: var(--primary); color: var(--primary); background: #f0f7ff; }
.article-block-text { font-size: 1rem; line-height: 1.7; color: #374151; white-space: pre-wrap; margin-bottom: 20px; }
.article-block-img { width: 100%; height: auto; border-radius: 12px; margin-bottom: 20px; display: block; box-shadow: 0 4px 12px rgba(0,0,0,0.05); }

/* События */
.day-cell-inner.has-event { background: #fff8e1; border: 2px solid #ffc107; }
.event-indicator { cursor: pointer; color: #ffc107; transition: transform 0.2s; }
.event-indicator:hover { transform: scale(1.2); }
.event-badge { display: flex; align-items: center; background: #fff; padding: 2px 6px; border-radius: 6px; box-shadow: 0 1px 3px rgba(0,0,0,0.05); cursor: pointer; max-width: 75%; transition: transform 0.2s; }
.event-badge:hover { transform: scale(1.05); }
.event-title-text { font-size: 0.65rem; font-weight: 700; color: #b45309; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Планировщик / Маппинг */
.color-hint-text { font-size: 0.75rem; font-weight: 600; margin-top: 6px; min-height: 1.2em; transition: color 0.2s; }
.summary-block { background: #f8f9fa; border: 2px solid #e9ecef; border-radius: 12px; padding: 15px; margin-top: 20px; }
.summary-title { font-weight: 800; color: #1a1a1a; margin-bottom: 12px; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.5px; text-align: center; }
.summary-row { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 0.9rem; border-bottom: 1px dashed #e0e0e0; padding-bottom: 4px; }
.summary-row:last-child { border-bottom: none; margin-bottom: 0; }
.summary-label { font-weight: 600; color: #6c757d; }
.summary-value { font-weight: 800; color: #2d62ed; }

/* Платформы (Кнопки ссылок) */
.btn-link-base { color: white !important; border: none; width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 1rem; text-decoration: none; transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); position: relative; z-index: 1; cursor: pointer; }
.btn-link-base:hover { transform: translateY(-2px) scale(1.1); }
.btn-plat-ig { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); box-shadow: 0 4px 10px rgba(220, 39, 67, 0.3); }
.btn-plat-ig:hover { box-shadow: 0 8px 20px rgba(220, 39, 67, 0.5); }
.btn-plat-fb { background: #1877F2; box-shadow: 0 4px 10px rgba(24, 119, 242, 0.3); }
.btn-plat-fb:hover { box-shadow: 0 8px 20px rgba(24, 119, 242, 0.5); }
.btn-plat-tt { background: #000000; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); }
.btn-plat-tt:hover { box-shadow: 0 8px 20px rgba(0, 242, 234, 0.4); }
.btn-plat-yt { background: #FF0000; box-shadow: 0 4px 10px rgba(255, 0, 0, 0.3); }
.btn-plat-yt:hover { box-shadow: 0 8px 20px rgba(255, 0, 0, 0.5); }
.btn-plat-li { background: #0077b5; box-shadow: 0 4px 10px rgba(0, 119, 181, 0.3); }
.btn-plat-li:hover { box-shadow: 0 8px 20px rgba(0, 119, 181, 0.5); }

/* Платформы (Триггер) */
.platform-wrapper { position: relative; z-index: 1000; }
.plat-trigger-btn { width: 42px; height: 42px; border-radius: 12px; border: 1px solid transparent; background: #f1f3f5; color: #858c99; font-size: 1.3rem; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1); box-shadow: 0 2px 5px rgba(0,0,0,0.03); }
.plat-trigger-btn:hover { background: #e9ecef; transform: translateY(-1px); }
.plat-trigger-btn.active-ig { background: #fff; color: #E1306C; border-color: rgba(225, 48, 108, 0.2); box-shadow: 0 4px 12px rgba(225, 48, 108, 0.15); }
.plat-trigger-btn.active-fb { background: #fff; color: #1877F2; border-color: rgba(24, 119, 242, 0.2); box-shadow: 0 4px 12px rgba(24, 119, 242, 0.15); }
.plat-trigger-btn.active-tt { background: #fff; color: #000000; border-color: rgba(0, 0, 0, 0.1); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); }
.plat-trigger-btn.active-yt { background: #fff; color: #FF0000; border-color: rgba(255, 0, 0, 0.2); box-shadow: 0 4px 12px rgba(255, 0, 0, 0.15); }
.plat-trigger-btn.active-li { background: #fff; color: #0077b5; border-color: rgba(0, 119, 181, 0.2); box-shadow: 0 4px 12px rgba(0, 119, 181, 0.15); }
.plat-trigger-btn.active-all { background: #333; color: #fff; border-color: #333; box-shadow: 0 4px 12px rgba(0,0,0,0.2); }

.plat-dropdown { position: absolute; top: 120%; left: 50%; transform: translateX(-50%) translateY(-10px); background: #fff; padding: 8px; border-radius: 16px; box-shadow: 0 10px 40px rgba(0,0,0,0.12); border: 1px solid rgba(0,0,0,0.04); display: flex; flex-direction: row; align-items: center; gap: 8px; opacity: 0; visibility: hidden; transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1); z-index: 1001; min-width: max-content; }
.plat-dropdown.show { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.plat-option { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; cursor: pointer; color: #858c99; transition: 0.2s; }
.plat-option:hover { background: #f8f9fa; color: #333; }
.plat-option.opt-ig:hover { color: #E1306C; background: #fff0f5; }
.plat-option.opt-fb:hover { color: #1877F2; background: #eaf3ff; }
.plat-option.opt-tt:hover { color: #000000; background: #f0f0f0; }
.plat-option.opt-yt:hover { color: #FF0000; background: #fff0f0; }
.plat-option.opt-li:hover { color: #0077b5; background: #eaf6ff; }
.plat-option.opt-all:hover { color: #333; background: #e9ecef; }

/* Кросспостинг */
.crosspost-wrapper { background: #f8f9fa; border-radius: 12px; padding: 10px; margin-top: 10px; border: 1px dashed #ced4da; }
.cp-option { width: 36px; height: 36px; border-radius: 50%; border: 2px solid #e9ecef; background: #fff; display: flex; align-items: center; justify-content: center; color: #adb5bd; font-size: 1.1rem; cursor: pointer; transition: all 0.2s; }
.cp-option.active.cp-ig { border-color: #E1306C; color: #E1306C; background: #fff0f5; }
.cp-option.active.cp-fb { border-color: #1877F2; color: #1877F2; background: #eaf3ff; }
.cp-option.active.cp-tt { border-color: #000000; color: #000000; background: #f0f0f0; }
.cp-option.active.cp-yt { border-color: #FF0000; color: #FF0000; background: #fff0f0; }
.cp-option.active.cp-li { border-color: #0077b5; color: #0077b5; background: #eaf6ff; }
.cp-option:hover { transform: scale(1.1); }

/* Сравнение */
.compare-dropdown { position: absolute; top: 120%; right: 0; background: #fff; padding: 10px; border-radius: 16px; box-shadow: 0 10px 40px rgba(0,0,0,0.12); border: 1px solid rgba(0,0,0,0.04); display: flex; flex-direction: column; gap: 6px; opacity: 0; visibility: hidden; transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1); z-index: 1001; min-width: 200px; }
.compare-dropdown.show { opacity: 1; visibility: visible; }
.compare-option { padding: 8px 12px; border-radius: 10px; cursor: pointer; font-size: 0.85rem; font-weight: 600; color: #858c99; background: #f8f9fa; transition: all 0.2s; display: flex; align-items: center; justify-content: space-between; border-left: 3px solid transparent; }
.compare-option:hover { background: #e9ecef; color: #333; }

/* Lock Screen */
#lock-screen { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 99999; display: flex; align-items: center; justify-content: center; background: linear-gradient(-45deg, #f3f4f6, #dfe9f3, #e0c3fc, #c2e9fb); background-size: 400% 400%; animation: gradientBG 15s ease infinite; font-family: 'Inter', sans-serif; }
.login-card { background: rgba(255, 255, 255, 0.35); backdrop-filter: blur(30px) saturate(200%); -webkit-backdrop-filter: blur(30px) saturate(200%); border: 1px solid rgba(255, 255, 255, 0.3); box-shadow: 0 40px 80px rgba(0, 0, 0, 0.1), inset 1px 1px 0px 0px rgba(255, 255, 255, 0.9), inset -1px -1px 0px 0px rgba(255, 255, 255, 0.2); padding: 50px 40px; border-radius: 36px; text-align: center; max-width: 360px; width: 90%; transform: translateY(0); animation: floatUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }
.login-icon-box { width: 70px; height: 70px; margin: 0 auto 20px; background: linear-gradient(135deg, #2d62ed, #af52de); border-radius: 20px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 2rem; box-shadow: 0 10px 20px rgba(45, 98, 237, 0.3); }
.login-card h4 { font-weight: 800; color: #1a1a1a; margin-bottom: 5px; letter-spacing: 0.5px; }
.login-card p { color: #6c757d; font-size: 0.9rem; margin-bottom: 25px; }
.login-input { background: rgba(255, 255, 255, 0.5); border: none; box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.05), inset -1px -1px 0px rgba(255, 255, 255, 0.5); border-radius: 16px; padding: 14px; font-size: 1.2rem; letter-spacing: 4px; transition: 0.3s; color: #1a1a1a; text-align: center; width: 100%; }
.login-input::placeholder { color: #adb5bd; }
.login-input:focus { background: #fff; box-shadow: 0 0 0 4px rgba(45, 98, 237, 0.15); outline: none; transform: scale(1.02); }
.login-btn { background: #1a1a1a; color: #fff; border: none; border-radius: 16px; padding: 14px; font-weight: 700; font-size: 1rem; width: 100%; margin-top: 20px; transition: 0.3s; cursor: pointer; box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.login-btn:hover { transform: translateY(-2px); background: #2d62ed; box-shadow: 0 15px 30px rgba(45,98,237,0.3); }
.login-btn:active { transform: translateY(0); }

/* Tooltips & Refresh */
#chartjs-tooltip { background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(4px); border: 1px solid #e5e7eb; border-radius: 12px; box-shadow: 0 10px 25px rgba(0,0,0,0.1); padding: 12px; color: #1a1a1a; transform: translate(-50%, -100%); position: absolute; pointer-events: none !important; transition: opacity 0.2s ease; z-index: 999999; min-width: 180px; font-family: 'Inter', sans-serif; margin-top: -10px; }
.tooltip-header { font-size: 0.75rem; color: #9aa0ac; font-weight: 700; margin-bottom: 6px; text-transform: uppercase; border-bottom: 1px dashed #eee; padding-bottom: 4px; }
.tooltip-value { font-size: 1.1rem; font-weight: 800; color: #2d62ed; margin-bottom: 4px; display: flex; align-items: center; gap: 6px; }
.tooltip-meta { font-size: 0.8rem; font-weight: 600; color: #333; display: flex; align-items: center; gap: 6px; margin-top: 4px; }
.tooltip-topic { font-size: 0.75rem; color: #6c757d; margin-top: 2px; line-height: 1.2; max-width: 200px; }

.btn-refresh-container { position: relative; background: #f8f9fa; border-radius: 12px; padding: 4px; margin-right: 12px; display: flex; align-items: center; justify-content: center; }
#btn-manual-refresh { padding: 0 !important; margin: 0 !important; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border: none; background: transparent; border-radius: 10px; color: #858c99; cursor: pointer; transition: all 0.2s; }
#btn-manual-refresh:hover { background: #fff; color: #2d62ed; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.refresh-badge { position: absolute; top: 4px; right: 4px; width: 10px; height: 10px; background-color: #ff3b30; border: 2px solid #fff; border-radius: 50%; display: none; box-shadow: 0 2px 4px rgba(0,0,0,0.2); animation: pulse-red 2s infinite; z-index: 10; pointer-events: none; }
@keyframes pulse-red { 0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.7); } 70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(255, 59, 48, 0); } 100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 59, 48, 0); } }
.spin-anim { animation: spin 1s linear infinite; }
@keyframes spin { 100% { transform: rotate(360deg); } }

/* Maintenance & Success Screens */
.animated-gradient-bg { background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab); background-size: 400% 400%; animation: aurora 15s ease infinite; position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; }
@keyframes aurora { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
#maintenance-screen { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 999999; display: none; flex-direction: column; align-items: center; justify-content: center; font-family: 'Inter', sans-serif; overflow: hidden; }
.glass-card { background: rgba(255, 255, 255, 0.15); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid rgba(255, 255, 255, 0.3); padding: 50px; border-radius: 40px; text-align: center; max-width: 500px; width: 90%; box-shadow: 0 20px 50px rgba(0,0,0,0.2); color: white; position: relative; }
.maint-icon-container { position: relative; height: 120px; margin-bottom: 30px; display: flex; justify-content: center; align-items: center; }
.gear-main { font-size: 5rem; color: rgba(255,255,255,0.9); animation: spin-slow 10s linear infinite; }
.gear-small { font-size: 3rem; color: rgba(255,255,255,0.6); position: absolute; top: 10px; right: 120px; animation: spin-reverse 8s linear infinite; }
.tool-floating { font-size: 2.5rem; color: #ffcc00; position: absolute; bottom: 10px; right: 130px; animation: float-tool 3s ease-in-out infinite; filter: drop-shadow(0 0 10px rgba(255,204,0,0.5)); }
@keyframes spin-slow { 100% { transform: rotate(360deg); } }
@keyframes spin-reverse { 100% { transform: rotate(-360deg); } }
@keyframes float-tool { 0%, 100% { transform: translateY(0) rotate(-10deg); } 50% { transform: translateY(-15px) rotate(10deg); } }
.maint-h1 { font-size: 2rem; font-weight: 800; margin-bottom: 15px; letter-spacing: -0.5px; text-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.maint-p { font-size: 1.1rem; line-height: 1.6; opacity: 0.9; font-weight: 500; }

#success-screen { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: #fff; z-index: 100000; display: none; flex-direction: column; align-items: center; justify-content: center; font-family: 'Inter', sans-serif; text-align: center; transition: opacity 0.5s ease; }
.success-content { max-width: 600px; padding: 40px; animation: fadeInUp 0.8s ease-out; }
.success-icon { font-size: 5rem; background: linear-gradient(135deg, #00c6ff, #0072ff); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 20px; display: inline-block; filter: drop-shadow(0 10px 20px rgba(0,114,255,0.3)); }
.success-h1 { font-size: 2.5rem; font-weight: 900; color: #1a1a1a; margin-bottom: 15px; letter-spacing: -1px; }
.success-p { font-size: 1.2rem; color: #6b7280; margin-bottom: 40px; }
.btn-launch { background: #1a1a1a; color: white; border: none; padding: 18px 50px; font-size: 1.1rem; font-weight: 700; border-radius: 50px; cursor: pointer; transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); box-shadow: 0 10px 30px rgba(0,0,0,0.15); display: inline-flex; align-items: center; gap: 10px; }
.btn-launch:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(0,0,0,0.25); background: #2d62ed; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

/* GLOBAL GLASS THEME */
.navbar, .kpi-card, .chart-container, .content-table, .card { background: rgba(255, 255, 255, 0.65) !important; backdrop-filter: blur(20px) saturate(160%) !important; -webkit-backdrop-filter: blur(20px) saturate(160%) !important; border: 1px solid rgba(255, 255, 255, 0.4) !important; border-top: 1px solid rgba(255, 255, 255, 0.8) !important; border-left: 1px solid rgba(255, 255, 255, 0.6) !important; box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.05) !important; }
.navbar { background: rgba(255, 255, 255, 0.75) !important; border-bottom: 1px solid rgba(255, 255, 255, 0.5) !important; }
.nav-icon-btn, .action-icon-btn { background: rgba(255, 255, 255, 0.4) !important; border: 1px solid rgba(255, 255, 255, 0.3) !important; }
.nav-icon-btn:hover, .action-icon-btn:hover { background: #fff !important; transform: translateY(-2px); }
.nav-icon-btn.active { background: transparent !important; color: var(--primary) !important; box-shadow: none !important; border: none !important; }
.table td { border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important; }
.table thead th { border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important; background: transparent !important; }
.table-hover tbody tr:hover { background-color: rgba(255, 255, 255, 0.4) !important; box-shadow: inset 3px 0 0 var(--primary); }
.chart-select, .brand-select { background-color: rgba(255, 255, 255, 0.6) !important; border: 1px solid rgba(0, 0, 0, 0.08) !important; box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.03) !important; backdrop-filter: blur(10px); }
.chart-select:focus, .brand-select:focus { background-color: #ffffff !important; border-color: var(--primary) !important; box-shadow: 0 0 0 4px rgba(45, 98, 237, 0.15) !important; }

/* ==========================================
   MOBILE ADAPTATION
   ========================================== */
@media (max-width: 768px) {
    /* Общие */
    body { padding-bottom: 90px; }
    .container-fluid { padding: 0 16px; overflow-y: auto; }
    .navbar { display: none !important; } /* Скрываем десктопную навигацию */

    /* Экран блокировки (Мобильный) */
    .login-card { width: 85%; max-width: 320px; padding: 40px 20px; }
    .login-icon-box { font-size: 3rem; margin-bottom: 20px; }

    /* ВЕРХНЯЯ ПАНЕЛЬ */
    .mobile-top-bar { position: sticky; top: 0; z-index: 1000; background: rgba(255,255,255,0.85); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); padding: 10px 16px; border-bottom: 1px solid rgba(0,0,0,0.05); border-radius: 0 0 24px 24px; box-shadow: 0 5px 20px rgba(0,0,0,0.03); margin-bottom: 15px; }
    .top-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
    .brand-select { border: none !important; background: transparent !important; font-weight: 900 !important; font-size: 1.4rem !important; color: var(--primary) !important; padding: 0 !important; margin: 0 !important; appearance: none !important; box-shadow: none !important; backdrop-filter: none !important; }
    .top-btn { width: 36px; height: 36px; border-radius: 50%; border: none; background: #fff; color: #1a1a1a; box-shadow: 0 2px 8px rgba(0,0,0,0.1); display: flex; align-items: center; justify-content: center; transition: transform 0.1s; }
    .top-btn:active { transform: scale(0.9); }
    .top-btn.active { background: var(--primary); color: #fff; }

    /* МЕНЮ ПЛАТФОРМ */
    #platformMenu { display: none; background: #f1f3f5; padding: 8px; border-radius: 12px; margin-bottom: 10px; gap: 5px; overflow-x: auto; }
    .plat-btn { border: none; background: transparent; padding: 8px; border-radius: 8px; color: #858c99; font-size: 1.2rem; flex: 1; display: flex; justify-content: center; }
    .plat-btn.active { background: #fff; color: var(--primary); box-shadow: 0 2px 5px rgba(0,0,0,0.05); }

    /* ДАТА */
    .date-controls { display: flex; justify-content: space-between; align-items: center; background: #fff; padding: 6px; border-radius: 14px; box-shadow: 0 2px 10px rgba(0,0,0,0.03); }
    .mobile-top-bar .nav-arrow-btn { background: #f2f2f7; border: none; width: 32px; height: 32px; }

    .current-date-label { font-weight: 700; font-size: 0.95rem; }

    /* НИЖНЕЕ МЕНЮ */
    .bottom-nav { position: fixed; bottom: 0; left: 0; width: 100%; background: rgba(255,255,255,0.95); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); padding: 12px 20px calc(15px + env(safe-area-inset-bottom)); display: flex; justify-content: space-around; align-items: center; z-index: 1100; border-top: 1px solid rgba(0,0,0,0.05); border-radius: 24px 24px 0 0; box-shadow: 0 -5px 30px rgba(0,0,0,0.05); }
    .nav-item-btn { border: none; background: transparent; color: #aeaeb2; display: flex; flex-direction: column; align-items: center; font-size: 0.75rem; font-weight: 600; gap: 4px; }
    .nav-item-btn i { font-size: 1.6rem; transition: 0.2s; }
    .nav-item-btn.active { color: var(--primary); }
    .nav-item-btn.active i { transform: translateY(-2px); }

    /* КАРТОЧКИ KPI */
    .kpi-card { padding: 20px; margin-bottom: 12px; }
    .kpi-number { font-size: 2.2rem !important; }
    .kpi-label { font-size: 0.7rem; }
    
    .progress-row { display: flex; align-items: center; margin-bottom: 12px; }
    .progress-label { width: 55px; font-size: 0.7rem; font-weight: 800; color: #8e8e93; }
    .progress-track { flex: 1; height: 8px; background: #f2f2f7; border-radius: 4px; margin: 0 12px; overflow: hidden; }
    .progress-fill { height: 100%; border-radius: 4px; }
    .progress-val { width: 30px; text-align: right; font-weight: 800; font-size: 0.9rem; }

    .subs-row { display: flex; align-items: center; gap: 15px; margin-top: 8px; font-weight: 700; font-size: 0.9rem; }
    .subs-plus { color: #34c759; }
    .subs-minus { color: #ff3b30; }
    .badge-soft-green { background: #eafaef; color: #34c759; padding: 6px 12px; border-radius: 10px; font-weight: 800; font-size: 0.85rem; }
    .badge-soft-red { background: #fee2e2; color: #ff3b30; padding: 6px 12px; border-radius: 10px; font-weight: 800; font-size: 0.85rem; }
    .prev-row { display: flex; justify-content: space-between; align-items: center; font-size: 0.85rem; font-weight: 600; color: #8e8e93; }

    /* КАЛЕНДАРЬ (Мобильный - Список) */
    .calendar-header-row { display: none; }
    .calendar-grid-body { display: flex; flex-direction: column; gap: 10px; width: 100%; box-sizing: border-box; }
    .day-cell-inner { flex-direction: row; gap: 15px; align-items: flex-start; min-height: 80px; padding: 15px; }
    .day-number { font-size: 1.3rem; width: 40px; text-align: center; }
    .day-header-row { flex-direction: column; align-items: center; width: 40px; }
    .day-content-scroll { margin-top: 0; }
    
    .post-list-item { background:#f8f9fa; padding:12px; border-radius:12px; border-left:4px solid transparent; margin-bottom:8px; width: 100%; }
    .post-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
    .post-brand-tag { font-size: 0.65rem; font-weight: 800; text-transform: uppercase; color: #adb5bd; letter-spacing: 0.5px; margin-top: 6px; text-align: right; }
    .post-badge { font-size: 0.75rem; font-weight: 700; color: #333; display: flex; align-items: center; gap: 6px; background: #fff; padding: 4px 8px; border-radius: 20px; border: 1px solid #e9ecef; }

    /* Таблицы и Графики на мобилке */
    .chart-container, .content-table { padding: 15px; border-radius: 20px; }
    .chart-wrapper-inner { height: 250px; }
    .table-responsive { overflow-x: auto; }
}

/* ==========================================
   ROLE-BASED ACCESS CONTROL (RBAC)
   ========================================== */

/* Скрытие элементов для роли Viewer (Только чтение) */
body.role-viewer .bi-plus-lg,
body.role-viewer .bi-trash,
body.role-viewer .bi-pencil-square,
body.role-viewer .bi-pencil,
body.role-viewer .bi-gear-fill,
body.role-viewer .bi-cloud-arrow-down-fill,
body.role-viewer .bi-file-earmark-bar-graph,
body.role-viewer .btn-report,
body.role-viewer .action-icon-btn.btn-report,
body.role-viewer button[onclick*="openReportModal"],
body.role-viewer button[onclick*="openExpenseModal"],
body.role-viewer button[onclick*="openInfoModal"],
body.role-viewer button[onclick*="openHelpModal"],
body.role-viewer button[onclick*="triggerManualSync"],
body.role-viewer .add-ghost-btn,
body.role-viewer .btn-delete-info,
body.role-viewer .btn-delete-expense,
body.role-viewer .btn-del-event,
body.role-viewer #btn-del-event,
body.role-viewer #btn-delete-plan,
body.role-viewer .edit-list-btn,
body.role-viewer .modal-footer button.btn-primary,
body.role-viewer .modal-footer .btn-outline-warning,
body.role-viewer #btn-sync-api {
    display: none !important;
}

/* Скрываем кнопки в футере модалок (на случай если они открылись) */
body.role-viewer .modal-footer .btn-primary,
body.role-viewer .modal-footer .btn-danger {
    display: none !important;
}

/* PREMIUM VIEWER DESIGN */
.viewer-premium-card {
    background: #fff;
    border-radius: 24px;
    position: relative;
}

.badge-soft {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.badge-soft.green { background: #e8f5e9; color: #2e7d32; }

.viewer-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
    margin-top: 20px;
}

.v-stat-item {
    background: #f8f9fa;
    padding: 16px;
    border-radius: 16px;
    border: 1px solid #f1f3f5;
    transition: all 0.3s ease;
}

.v-stat-item.highlight {
    background: linear-gradient(135deg, #f0f7ff 0%, #e1efff 100%);
    border-color: #d0e6ff;
}

.v-stat-label {
    font-size: 0.7rem;
    color: #868e96;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.v-stat-value {
    font-size: 1.25rem;
    font-weight: 800;
    color: #212529;
}

.article-block-text {
    color: #343a40;
}

.letter-spacing-1 { letter-spacing: 1px; }

/* Анимация при наведении на карточки для Viewer */
body.role-viewer .plan-card:hover, 
body.role-viewer .service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}
