/* ========== NOTIFICATIONS CONTAINER ========== */
.notifications-container {
    padding: 24px;
    max-width: 100%;
    height: 100%;
    overflow-y: auto;
}

.notifications-header h1 {
    font-size: 24px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 20px;
}

.notifications-tabs {
    display: flex;
    gap: 4px;
    background: #f5f5f5;
    border-radius: 14px;
    padding: 4px;
    margin-bottom: 24px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.notif-tab {
    flex: 1;
    padding: 12px 16px;
    border: none;
    background: transparent;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    border-radius: 12px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
    font-family: inherit;
}

.notif-tab.active {
    background: #fff;
    color: #1a1a1a;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.notif-tab:hover:not(.active) {
    color: #1a1a1a;
}

.notifications-content {
    width: 100%;
}

/* ========== CHANNELS PAGE ========== */
.notif-channels-page { max-width: 100%; }
.notif-channels-page h2 { font-size: 20px; font-weight: 700; margin: 0 0 6px; }
.notif-channels-page p { font-size: 14px; color: #888; margin: 0 0 8px; }
.notif-details-link { font-size: 13px; color: #dd1847; text-decoration: none; }
.notif-group-title { font-size: 13px; font-weight: 700; color: #888; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 10px; }
.notif-type-card { background: #fff; border: 1px solid #f0f0f0; border-radius: 14px; padding: 14px 16px; margin-bottom: 8px; cursor: pointer; transition: all .15s; }
.notif-type-card:hover { border-color: #e0e0e0; background: #fafafa; }
.notif-type-header { display: flex; align-items: center; gap: 12px; }
.notif-type-name { flex: 1; font-size: 14px; font-weight: 600; }
.notif-type-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.notif-type-desc { font-size: 12px; color: #999; }
.notif-status { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 20px; }
.notif-status.on { background: #e8f5e9; color: #2e7d32; }
.notif-status.off { background: #f5f5f5; color: #999; }

.notif-channel-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #f8f8f8;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ========== SETTINGS CONTAINER ========== */
.notif-settings-container { max-width: 100%; }
.notif-settings-header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.notif-settings-header h2 { margin: 0; font-size: 20px; font-weight: 700; }
.notif-back-btn { background: none; border: none; width: 36px; height: 36px; border-radius: 10px; cursor: pointer; display: flex; align-items: center; justify-content: center; color: #666; }
.notif-back-btn:hover { background: #f5f5f5; }
.notif-settings-desc { font-size: 14px; color: #888; margin-bottom: 20px; }
.notif-settings-card { background: #fff; border: 1px solid #f0f0f0; border-radius: 14px; padding: 16px; margin-bottom: 10px; cursor: pointer; }
.notif-settings-card:hover { background: #fafafa; border-color: #e0e0e0; }
.notif-settings-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.notif-settings-label { font-size: 14px; font-weight: 600; }
.notif-settings-hint { font-size: 12px; color: #999; margin-top: 4px; line-height: 1.4; }
.notif-group { margin-bottom: 24px; }
.notif-warning { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: #fff9e6; border-radius: 12px; font-size: 13px; color: #8b6914; margin-bottom: 20px; line-height: 1.4; }

/* ========== TYPES PAGE ========== */
.notif-types-container { max-width: 700px; }
.notif-types-header { margin-bottom: 24px; }
.notif-types-header h2 { font-size: 20px; font-weight: 700; color: #1a1a1a; margin: 0 0 6px; }
.notif-types-header p { font-size: 14px; color: #888; margin: 0 0 8px; }

/* ========== TOGGLE ========== */
.notif-toggle { position: relative; display: inline-block; width: 44px; height: 26px; flex-shrink: 0; }
.notif-toggle input { opacity: 0; width: 0; height: 0; }
.notif-toggle-slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #ccc; transition: .3s; border-radius: 26px; }
.notif-toggle-slider:before { position: absolute; content: ""; height: 22px; width: 22px; left: 2px; bottom: 2px; background-color: white; transition: .3s; border-radius: 50%; }
.notif-toggle input:checked + .notif-toggle-slider { background-color: #dd1847; }
.notif-toggle input:checked + .notif-toggle-slider:before { transform: translateX(18px); }

.service-toggle { position: relative; display: inline-block; width: 48px; height: 26px; }
.service-toggle input { opacity: 0; width: 0; height: 0; }
.service-toggle-slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background: #ccc; transition: .3s; border-radius: 26px; }
.service-toggle-slider:before { position: absolute; content: ""; height: 22px; width: 22px; left: 2px; bottom: 2px; background: #fff; transition: .3s; border-radius: 50%; }
.service-toggle input:checked+.service-toggle-slider { background: #dd1847; }
.service-toggle input:checked+.service-toggle-slider:before { transform: translateX(22px); }

/* ========== VK TYPE ROW ========== */
.vk-type-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; background: #f8f8f8; border-radius: 10px; font-size: 14px; }

/* ========== MODAL ========== */
.modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,.5); z-index: 2000; display: flex; align-items: center; justify-content: center; }
.modal-content { background: #fff; border-radius: 20px; width: 90%; max-height: 80vh; display: flex; flex-direction: column; }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 20px; border-bottom: 1px solid #f0f0f0; }
.modal-header h3 { margin: 0; font-size: 18px; font-weight: 600; }
.modal-header button { background: none; border: none; cursor: pointer; color: #666; padding: 4px; }
.modal-body { flex: 1; overflow-y: auto; padding: 20px; }
.modal-footer { display: flex; gap: 10px; padding: 20px; border-top: 1px solid #f0f0f0; }
.btn-cancel { flex: 1; padding: 14px; background: #f5f5f5; border: none; border-radius: 12px; font-size: 14px; cursor: pointer; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: #888; margin-bottom: 6px; text-transform: uppercase; }

/* ========== HISTORY PAGE ========== */
.notif-history-page { max-width: 100%; }
.notif-history-page h2 { font-size: 20px; font-weight: 700; margin: 0 0 4px; }
.notif-history-page > p { font-size: 13px; color: #888; margin: 0 0 20px; }

.hist-search-wrapper { position: relative; margin-bottom: 16px; }
.hist-search-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); pointer-events: none; }
.hist-search { width: 100%; padding: 12px 14px 12px 42px; border: 1px solid #f0f0f0; border-radius: 14px; font-size: 14px; font-family: inherit; background: #fff; outline: none; transition: all 0.2s; box-sizing: border-box; }
.hist-search:focus { border-color: #dd1847; }

.hist-period { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.hist-period-label { font-size: 13px; font-weight: 600; color: #1a1a1a; cursor: pointer; background: #fff; border: 1px solid #f0f0f0; border-radius: 14px; padding: 6px 12px; user-select: none; white-space: nowrap; }
.hist-period-arrows { display: flex; align-items: center; gap: 8px; }
.hist-period-dates { font-size: 14px; font-weight: 500; color: #1a1a1a; white-space: nowrap; }
.hist-arrow { width: 32px; height: 32px; border: 1px solid #e0e0e0; background: #fff; border-radius: 8px; cursor: pointer; font-size: 14px; color: #666; display: flex; align-items: center; justify-content: center; transition: all 0.15s; flex-shrink: 0; }
.hist-arrow:hover { background: #f5f5f5; }

.hist-filters { display: flex; flex-wrap: nowrap; gap: 8px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; margin-bottom: 20px; }
.hist-filters::-webkit-scrollbar { display: none; }
.hist-filter-group { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; background: #fff; border: 1px solid #f0f0f0; border-radius: 14px; padding: 10px 14px; flex-shrink: 0; }
.hist-filter-label { font-size: 11px; font-weight: 600; color: #999; text-transform: uppercase; letter-spacing: 0.5px; white-space: nowrap; }
.hist-select { padding: 8px 24px 8px 8px; border: none; background: #f5f5f5; border-radius: 10px; font-size: 13px; font-family: inherit; font-weight: 500; color: #1a1a1a; outline: none; cursor: pointer; height: 36px; box-sizing: border-box; appearance: none; -webkit-appearance: none; background-image: url('data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2712%27 height=%2712%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27%23999%27 stroke-width=%272%27%3E%3Cpolyline points=%276 9 12 15 18 9%27/%3E%3C/svg%3E'); background-repeat: no-repeat; background-position: right 6px center; }

.hist-loading { text-align: center; padding: 40px; color: #999; font-size: 14px; }
.hist-empty { text-align: center; padding: 40px; color: #999; font-size: 14px; }
.hist-group { margin-bottom: 24px; }
.hist-group-date { font-size: 13px; font-weight: 600; color: #999; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; padding-left: 4px; }
.hist-item { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid #f3f4f6; border-radius: 14px; padding: 14px; margin-bottom: 6px; transition: all 0.15s; cursor: pointer; }
.hist-item:hover { border-color: #e8e8e8; }
.hist-item-avatar { width: 40px; height: 40px; border-radius: 50%; background: #f3f4f6; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 600; color: #999; overflow: hidden; }
.hist-item-avatar img { width: 100%; height: 100%; object-fit: cover; }
.hist-item-info { flex: 1; min-width: 0; }
.hist-item-name { font-size: 14px; font-weight: 600; color: #1a1a1a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hist-item-details { font-size: 12px; color: #999; margin-top: 2px; line-height: 1.5; }
.hist-item-phone { color: #aaa; }
.hist-item-sep { color: #ccc; margin: 0 5px; }
.hist-item-type { font-weight: 500; color: #666; }
/* Разделитель между номером и типом (sep нет в render, добавим псевдоэлементом) */
.hist-item-phone + .hist-item-type::before {
    content: ' · ';
    color: #ccc;
    margin-right: 2px;
}
.hist-item-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.hist-item-time { font-size: 12px; color: #999; }
.hist-item-status { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; }
.hist-item-status.sent { color: #2e7d32; }
.hist-item-status.skipped { color: #c62828; }
.hist-item-status.pending { color: #e65100; }
.hist-item-arrow { color: #ccc; flex-shrink: 0; }

/* ========== DETAIL POPUP ========== */
.hist-detail-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); z-index: 2000; display: flex; align-items: flex-end; justify-content: center; }
@media (min-width: 768px) { .hist-detail-overlay { align-items: center; } .hist-detail-modal { border-radius: 20px; max-height: 70vh; } }
.hist-detail-modal { background: #fff; border-radius: 20px 20px 0 0; width: 100%; max-width: 500px; max-height: 85vh; overflow-y: auto; display: flex; flex-direction: column; }
.hist-detail-header { display: flex; align-items: center; justify-content: center; padding: 20px; position: relative; flex-shrink: 0; }
.hist-detail-header h3 { margin: 0; font-size: 18px; font-weight: 700; text-align: center; }
.hist-detail-header button { position: absolute; right: 20px; top: 20px; background: none; border: none; width: 32px; height: 32px; border-radius: 8px; cursor: pointer; color: #666; display: flex; align-items: center; justify-content: center; }
.hist-detail-body { padding: 0 20px 20px; display: flex; flex-direction: column; gap: 16px; }
.hist-detail-client { display: flex; align-items: center; gap: 14px; }
.hist-detail-avatar { width: 52px; height: 52px; border-radius: 50%; background: #f0f0f0; display: flex; align-items: center; justify-content: center; font-weight: 700; color: #dd1847; font-size: 20px; flex-shrink: 0; }
.hist-detail-name { font-size: 16px; font-weight: 600; }
.hist-detail-phone { font-size: 13px; color: #888; margin-top: 2px; }
.hist-detail-message { background: #f8fafc; border-radius: 14px; padding: 16px; font-size: 14px; line-height: 1.7; color: #1e293b; white-space: pre-wrap; border: 1px solid #e2e8f0; }
.hist-detail-footer { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.hist-detail-footer.sent { color: #2e7d32; }
.hist-detail-footer.skipped { color: #c62828; }
.hist-detail-footer.pending { color: #e65100; }
.hist-detail-status-text { font-weight: 600; }
.hist-detail-date { color: #999; margin-left: auto; }

/* ========== STATS PAGE ========== */
.notif-stats-page { max-width: 100%; }

.stats-cards { display: flex; gap: 8px; margin-bottom: 16px; }
.stats-card { flex: 1; min-width: 0; background: #fff; border: 1px solid #f0f0f0; border-radius: 14px; padding: 12px 10px; display: flex; align-items: center; gap: 8px; }
.stats-card-icon { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.stats-card.sent .stats-card-icon { background: #e0f7f5; color: #4ECDC4; }
.stats-card.pending .stats-card-icon { background: #fff4e5; color: #FFB347; }
.stats-card.skipped .stats-card-icon { background: #ffe8ea; color: #FF8B94; }
.stats-card-info { flex: 1; min-width: 0; }
.stats-card-value { font-size: 20px; font-weight: 700; color: #1a1a1a; line-height: 1; }
.stats-card-label { font-size: 11px; color: #888; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stats-card-percent { font-size: 11px; color: #aaa; margin-top: 2px; font-weight: 500; }

.stats-chart-section { background: #fff; border: 1px solid #f0f0f0; border-radius: 14px; padding: 16px; margin-bottom: 12px; }
.stats-chart-section h3 { font-size: 14px; font-weight: 600; color: #1a1a1a; margin: 0 0 12px; }
.stats-chart-container { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.stats-donut { position: relative; width: 160px; height: 160px; flex-shrink: 0; }
.stats-donut svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.stats-donut-center { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); text-align: center; }
.stats-donut-total { font-size: 24px; font-weight: 700; color: #1a1a1a; }
.stats-donut-label { font-size: 11px; color: #999; }
.stats-legend { flex: 1; min-width: 120px; }
.stats-legend-item { display: flex; align-items: center; gap: 8px; padding: 6px 0; font-size: 12px; color: #555; }
.stats-legend-dot { width: 8px; height: 8px; border-radius: 3px; flex-shrink: 0; }
.stats-legend-value { margin-left: auto; font-weight: 600; color: #1a1a1a; }

.stats-bars { display: flex; flex-direction: column; gap: 10px; }
.stats-bar-item { display: flex; align-items: center; gap: 10px; }
.stats-bar-label { width: 110px; font-size: 11px; color: #666; font-weight: 500; flex-shrink: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stats-bar-track { flex: 1; height: 6px; background: #f3f4f6; border-radius: 3px; overflow: hidden; }
.stats-bar-fill { height: 100%; border-radius: 3px; transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1); }
.stats-bar-fill.sent { background: #4ECDC4; }
.stats-bar-fill.pending { background: #FFB347; }
.stats-bar-fill.skipped { background: #FF8B94; }
.stats-bar-value { width: 32px; font-size: 11px; font-weight: 600; color: #1a1a1a; flex-shrink: 0; text-align: right; }

/* ========== TEMPLATE MODAL ========== */
.notif-template-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); z-index: 1900; display: flex; align-items: flex-end; justify-content: center; }
.notif-template-modal { background: #fff; border-radius: 20px 20px 0 0; width: 100%; max-width: 600px; max-height: 90vh; display: flex; flex-direction: column; }
@media (min-width: 768px) { .notif-template-modal { border-radius: 20px; max-height: 80vh; } }
.notif-template-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid #f0f0f0; flex-shrink: 0; }
.notif-template-header h3 { margin: 0; font-size: 18px; font-weight: 600; }
.notif-template-header button { background: none; border: none; width: 32px; height: 32px; border-radius: 8px; cursor: pointer; color: #666; }
.notif-template-tabs { display: flex; border-bottom: 1px solid #f0f0f0; padding: 0 16px; flex-shrink: 0; }
.notif-template-tab { padding: 12px 16px; border: none; background: transparent; font-size: 13px; font-weight: 500; color: #888; cursor: pointer; border-bottom: 2px solid transparent; font-family: inherit; }
.notif-template-tab.active { color: #dd1847; border-bottom-color: #dd1847; font-weight: 600; }
.notif-template-body { flex: 1; overflow-y: auto; padding: 16px 20px; }
.notif-template-textarea { width: 100%; min-height: 100px; padding: 14px; border: 1px solid #e0e0e0; border-radius: 12px; font-size: 13px; line-height: 1.6; resize: vertical; font-family: inherit; box-sizing: border-box; }
.notif-template-footer { padding: 16px 20px; border-top: 1px solid #f0f0f0; flex-shrink: 0; }

.notif-preview { margin-top: 16px; background: #f8f8f8; border-radius: 12px; padding: 14px; }
.notif-preview-title { font-size: 11px; font-weight: 600; color: #999; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }
.notif-preview-content { font-size: 13px; color: #333; line-height: 1.6; white-space: pre-wrap; }

.notif-vars-section { margin-top: 20px; }
.notif-vars-title { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.notif-vars-hint { font-size: 12px; color: #999; margin-bottom: 12px; }
.notif-vars-table { width: 100%; border-collapse: collapse; }
.notif-vars-table td { padding: 8px 10px; font-size: 13px; border-bottom: 1px solid #f5f5f5; }
.notif-vars-table td:first-child code { background: #f5f5f5; padding: 3px 6px; border-radius: 4px; font-size: 12px; }
.notif-vars-table td:last-child { text-align: right; }
.notif-copy-btn { background: none; border: 1px solid #e0e0e0; border-radius: 6px; padding: 4px 8px; cursor: pointer; color: #666; position: relative; }
.notif-copy-btn:hover { background: #f5f5f5; }

.notif-save-btn { width: 100%; padding: 14px; background: #dd1847; color: #fff; border: none; border-radius: 12px; font-size: 15px; font-weight: 600; cursor: pointer; }

/* ========== ACCESS LIST ========== */
.notif-access-item { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; margin-bottom: 6px; cursor: pointer; }
.notif-access-item:hover { background: #f8f8f8; }
.notif-access-avatar { width: 44px; height: 44px; border-radius: 50%; background: #f0f0f0; display: flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0; font-weight: 600; color: #dd1847; }
.notif-access-info { flex: 1; min-width: 0; }
.notif-access-name { font-size: 14px; font-weight: 600; }
.notif-access-role { font-size: 12px; color: #888; }

/* ========== TIMES LIST ========== */
.notif-times-list { background: #fff; border: 1px solid #e0e0e0; border-radius: 14px; overflow: hidden; margin-bottom: 12px; }
.notif-times-hint { font-size: 12px; color: #999; padding: 12px 16px; background: #fff9e6; border-bottom: 1px solid #fef3c7; }
.notif-time-option { padding: 14px 16px; cursor: pointer; font-size: 14px; font-weight: 500; color: #334155; border-bottom: 1px solid #f5f5f5; transition: all 0.15s; }
.notif-time-option:last-child { border-bottom: none; }
.notif-time-option:hover { background: #f8f8f8; }
.notif-time-option.active { background: #fdf2f5; color: #dd1847; font-weight: 600; }

/* ========== SEND POPUP ========== */
.ns-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); z-index: 2000; display: flex; align-items: flex-end; justify-content: center; }
@media (min-width: 768px) { .ns-overlay { align-items: center; } .ns-popup { margin: 40px 0; } }
.ns-popup { background: #fff; border-radius: 20px 20px 0 0; width: 100%; max-width: 500px; max-height: 85vh; overflow-y: auto; display: flex; flex-direction: column; position: relative; }
@media (min-width: 768px) { .ns-popup { border-radius: 20px; max-height: 70vh; } }

.ns-header { display: flex; align-items: center; justify-content: center; padding: 20px 20px 0; flex-shrink: 0; position: relative; }
.ns-header h3 { margin: 0; font-size: 18px; font-weight: 700; text-align: center; }
.ns-header button { position: absolute; right: 20px; top: 20px; background: none; border: none; width: 32px; height: 32px; border-radius: 8px; cursor: pointer; color: #666; display: flex; align-items: center; justify-content: center; }
.ns-header button:hover { background: #f5f5f5; }
.ns-header #nsBackBtn { right: auto; left: 20px; }

.ns-pagination { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 20px 0; flex-shrink: 0; }
.ns-pag-arrow { background: none; border: none; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; color: #64748b; transition: all 0.2s; flex-shrink: 0; }
.ns-pag-arrow:hover { background: #f1f5f9; color: #334155; }
.ns-pag-arrow:disabled { opacity: 0.3; cursor: default; pointer-events: none; }
.ns-pag-dots { display: flex; align-items: center; gap: 5px; }
.ns-pag-dot { width: 7px; height: 7px; border-radius: 50%; background: #cbd5e1; transition: all 0.25s; cursor: pointer; }
.ns-pag-dot.active { background: #dd1847; width: 22px; border-radius: 4px; }
.ns-pag-dot.overflow { width: 5px; height: 5px; background: #94a3b8; border-radius: 50%; }

.ns-body { padding: 20px; display: flex; flex-direction: column; }

.ns-swiper-container { overflow: hidden; touch-action: pan-y; user-select: none; -webkit-user-select: none; margin-bottom: 20px; position: relative; }
.ns-swiper-track { display: flex; transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94); will-change: transform; }
.ns-slide { flex: 0 0 100%; width: 100%; padding: 0 2px; box-sizing: border-box; }

.ns-client { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.ns-client-avatar { width: 52px; height: 52px; border-radius: 50%; background: #f0f0f0; display: flex; align-items: center; justify-content: center; font-weight: 700; color: #dd1847; font-size: 20px; flex-shrink: 0; }
.ns-client-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.ns-client-name { font-size: 16px; font-weight: 600; }
.ns-client-phone { font-size: 13px; color: #888; margin-top: 2px; }

.ns-message { background: #f8fafc; border-radius: 14px; padding: 16px; font-size: 14px; line-height: 1.7; color: #1e293b; margin-bottom: 16px; white-space: pre-wrap; border: 1px solid #e2e8f0; }

.ns-actions { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.ns-send-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 8px 4px; background: #f1f5f9; border: 1px solid #e2e8f0; border-radius: 10px; cursor: pointer; color: #334155; transition: all 0.2s; font-family: inherit; flex: 1; min-width: 0; text-align: center; }
.ns-send-btn:hover { background: #e2e8f0; border-color: #cbd5e1; }
.ns-send-btn:active { transform: scale(0.97); }
.ns-btn-icon { width: 16px; height: 16px; flex-shrink: 0; }
.ns-btn-label { font-size: 8px; font-weight: 600; line-height: 1.1; color: #475569; white-space: normal; text-align: center; }

@media (min-width: 380px) {
    .ns-send-btn { padding: 14px 10px; gap: 6px; border-radius: 14px; }
    .ns-btn-icon { width: 22px; height: 22px; }
    .ns-btn-label { font-size: 11px; white-space: nowrap; }
}

.ns-postpone-wrap { margin-bottom: 12px; position: relative; }
.ns-postpone-btn-full { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 14px; background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; font-size: 14px; font-weight: 500; cursor: pointer; color: #64748b; font-family: inherit; transition: all 0.2s; }
.ns-postpone-btn-full:hover { background: #f8fafc; border-color: #cbd5e1; color: #334155; }

.ns-postpone-list { position: fixed; background: #fff; border: 1px solid #e2e8f0; border-radius: 20px; overflow-y: auto; box-shadow: 0 4px 16px rgba(0,0,0,0.06); z-index: 2100; }
.ns-postpone-list .ns-postpone-header { display: flex; align-items: center; justify-content: center; padding: 20px 20px 12px; position: relative; background: #fff; border-radius: 20px 20px 0 0; border-bottom: 1px solid #f1f5f9; font-size: 18px; font-weight: 700; color: #1e293b; }
.ns-postpone-list .ns-postpone-close { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); background: none; border: none; width: 32px; height: 32px; border-radius: 8px; cursor: pointer; color: #94a3b8; display: flex; align-items: center; justify-content: center; transition: all 0.2s; padding: 0; }
.ns-postpone-list div:not(.ns-postpone-header):not(.ns-postpone-hint) { padding: 12px 16px; cursor: pointer; font-size: 14px; font-weight: 500; color: #334155; border-bottom: 1px solid #f1f5f9; transition: background 0.15s; }
.ns-postpone-list div:last-child { border-bottom: none; }
.ns-postpone-list div:not(.ns-postpone-header):not(.ns-postpone-hint):hover { background: #f8fafc; }
.ns-postpone-hint { font-size: 12px; color: #94a3b8; padding: 10px 16px; background: #fffbeb; border-bottom: 1px solid #fef3c7; cursor: default; line-height: 1.4; }

.ns-skip-btn { width: 100%; padding: 14px; background: none; border: 1px solid #fecaca; border-radius: 12px; color: #ef4444; font-size: 14px; font-weight: 500; cursor: pointer; font-family: inherit; transition: all 0.2s; }
.ns-skip-btn:hover { background: #fef2f2; border-color: #fca5a5; }

.ns-confirm-title { font-size: 16px; font-weight: 600; color: #1e293b; margin-bottom: 8px; text-align: center; }
.ns-confirm-subtitle { font-size: 13px; color: #94a3b8; margin-bottom: 20px; text-align: center; }
.ns-confirm-actions { display: flex; gap: 10px; }
.ns-confirm-yes { flex: 1; padding: 14px; background: #16a34a; color: #fff; border: none; border-radius: 12px; font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit; transition: all 0.2s; }
.ns-confirm-yes:hover { background: #15803d; }
.ns-confirm-no { flex: 1; padding: 14px; background: #fff; color: #ef4444; border: 1px solid #fecaca; border-radius: 12px; font-size: 14px; font-weight: 500; cursor: pointer; font-family: inherit; transition: all 0.2s; }
.ns-confirm-no:hover { background: #fef2f2; }

@keyframes notifFadeInOut {
    0% { opacity: 0; transform: translateX(-50%) translateY(4px); }
    20% { opacity: 1; transform: translateX(-50%) translateY(0); }
    80% { opacity: 1; }
    100% { opacity: 0; }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 767px) {
    .notifications-container { padding: 16px; }
    .notif-tab { font-size: 12px; padding: 10px 12px; }
    .notif-type-card { padding: 12px; }
    .notif-type-name { font-size: 13px; }
    .stats-cards { gap: 6px; }
    .stats-card { padding: 10px 8px; gap: 6px; }
    .stats-card-value { font-size: 18px; }
    .stats-card-label { font-size: 10px; }
    .stats-card-percent { font-size: 10px; }
    .stats-chart-container { flex-direction: column; align-items: center; }
    .stats-bar-label { width: 80px; font-size: 10px; }
}