/* ========================================
   CRM Customer 360 - Styles
   Modern Premium UI Design
   ======================================== */

/* CSS Variables */
:root {
    --primary-color: #7c3aed;
    --primary-hover: #6d28d9;
    --primary-light: #f5f3ff;
    --primary-gradient: linear-gradient(135deg, #7c3aed 0%, #a78bfa 100%);

    --success-color: #059669;
    --success-hover: #047857;
    --success-light: #d1fae5;

    --warning-color: #d97706;
    --warning-hover: #b45309;
    --warning-light: #fef3c7;

    --danger-color: #dc2626;
    --danger-hover: #b91c1c;
    --danger-light: #fee2e2;

    --info-color: #0284c7;
    --info-hover: #0369a1;
    --info-light: #e0f2fe;

    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #94a3b8;

    --bg-primary: #f1f5f9;
    --bg-card: #ffffff;
    --bg-hover: #f8fafc;
    --bg-gradient: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);

    --border-color: #e2e8f0;
    --border-radius: 16px;
    --border-radius-sm: 10px;
    --border-radius-lg: 24px;
    --border-radius-full: 9999px;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 0 40px rgba(124, 58, 237, 0.15);

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: "Rubik", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #fafbfc;
    color: var(--text-primary);
    line-height: 1.6;
    direction: rtl;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* Layout */
.app-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 32px;
    background: var(--bg-gradient);
    min-height: 100vh;
}

/* ========================================
   Customer Header
   ======================================== */
.customer-header {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 50%, #5b21b6 100%);
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
    padding: 32px 40px;
    margin-bottom: 0;
    border: none;
    box-shadow: var(--shadow-xl), var(--shadow-glow);
    position: relative;
    overflow: visible;
}

.customer-header::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    flex-wrap: wrap;
    position: relative;
}

.customer-profile {
    display: flex;
    align-items: center;
    gap: 24px;
}

.avatar {
    width: 88px;
    height: 88px;
    border-radius: var(--border-radius);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.avatar:hover {
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.5);
}

.avatar img {
    width: 100%;
    height: 100%;
    border-radius: var(--border-radius);
    object-fit: cover;
}

.customer-info h1 {
    font-size: 28px;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.customer-title {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 10px;
    font-weight: 400;
}

.customer-since {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Status Badge Wrapper */
.status-badge-wrapper {
    position: relative;
    display: inline-flex;
}

.status-badge-wrapper:hover,
.status-badge-wrapper:focus-within {
    z-index: 999999;
}

/* Status Badge */
.status-badge {
    padding: 6px 16px;
    border-radius: var(--border-radius-full);
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.status-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.status-badge.success {
    background: rgba(5, 150, 105, 0.9);
    color: white;
    border: none;
}

.status-badge.warning {
    background: rgba(217, 119, 6, 0.9);
    color: white;
    border: none;
}

.status-badge.danger {
    background: rgba(220, 38, 38, 0.9);
    color: white;
    border: none;
}

.status-badge.info {
    background: rgba(2, 132, 199, 0.9);
    color: white;
    border: none;
}

.status-badge .dropdown-arrow {
    font-size: 10px;
    transition: var(--transition);
    opacity: 0.8;
}

.status-badge.open .dropdown-arrow {
    transform: rotate(180deg);
}

/* Status Dropdown */
.status-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--bg-card);
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
    min-width: 180px;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
}

.status-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.status-option {
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: var(--transition-fast);
    font-size: 14px;
    color: var(--text-primary);
}

.status-option:first-child {
    border-radius: var(--border-radius-sm) var(--border-radius-sm) 0 0;
}

.status-option:last-child {
    border-radius: 0 0 var(--border-radius-sm) var(--border-radius-sm);
}

.status-option:hover {
    background: var(--bg-hover);
}

.status-option .status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.status-dot.success {
    background: var(--success-color);
}
.status-dot.warning {
    background: var(--warning-color);
}
.status-dot.danger {
    background: var(--danger-color);
}
.status-dot.info {
    background: var(--info-color);
}

/* Contact Info */
.contact-info {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    flex-wrap: wrap;
    position: relative;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.contact-item:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.contact-item .icon {
    width: 36px;
    height: 36px;
    background: var(--primary-light);
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.contact-item span {
    font-size: 14px;
    font-weight: 500;
}

/* Action Buttons */
.header-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    position: relative;
}

.action-btn {
    padding: 12px 20px;
    border: none;
    border-radius: var(--border-radius-sm);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow);
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.action-btn:active {
    transform: translateY(0);
}

.action-btn.primary {
    background: white;
    color: var(--primary-color);
}

.action-btn.primary:hover {
    background: #f8f5ff;
}

.action-btn.secondary {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.action-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.25);
}

.action-btn.success {
    background: var(--success-color);
    color: white;
}

.action-btn.success:hover {
    background: var(--success-hover);
}

/* ========================================
   Cards Grid
   ======================================== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 24px;
}

.card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(180deg, #fafbfc 0%, #ffffff 100%);
}

.card-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-title .icon {
    font-size: 18px;
}

.card-body {
    padding: 24px;
}

.card-footer {
    padding: 16px 24px;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.card-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition-fast);
}

.card-footer a:hover {
    color: var(--primary-hover);
}

/* ========================================
   General Info Card
   ======================================== */
.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.info-item {
    padding: 12px 14px;
    background: var(--bg-primary);
    border-radius: var(--border-radius-sm);
}

.info-item.full-width {
    grid-column: 1 / -1;
}

.info-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 4px;
}

.info-value {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 500;
}

.info-value.notes {
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* ========================================
   Activity Feed
   ======================================== */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.activity-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-fast);
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-item:hover {
    background: var(--bg-hover);
    margin: 0 -20px;
    padding: 12px 20px;
    border-radius: var(--border-radius-sm);
}

.activity-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.activity-icon.call {
    background: var(--success-light);
}
.activity-icon.email {
    background: var(--info-light);
}
.activity-icon.whatsapp {
    background: #dcfce7;
}
.activity-icon.payment {
    background: var(--success-light);
}
.activity-icon.ticket {
    background: var(--warning-light);
}
.activity-icon.automation {
    background: var(--primary-light);
}
.activity-icon.meeting {
    background: #f3e8ff;
}
.activity-icon.note {
    background: #fef3c7;
}

.activity-content {
    flex: 1;
    min-width: 0;
}

.activity-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.activity-description {
    font-size: 13px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.activity-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 6px;
}

.activity-time {
    font-size: 12px;
    color: var(--text-muted);
}

.activity-user {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ========================================
   Subscription Card
   ======================================== */
.subscription-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px;
    background: var(--primary-light);
    border-radius: var(--border-radius-sm);
    margin-bottom: 20px;
}

.subscription-plan {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
}

.subscription-price {
    text-align: left;
}

.subscription-price .amount {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
}

.subscription-price .period {
    font-size: 14px;
    color: var(--text-secondary);
}

.subscription-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.subscription-item {
    padding: 16px;
    background: var(--bg-primary);
    border-radius: var(--border-radius-sm);
    text-align: center;
}

.subscription-item .value {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.subscription-item .label {
    font-size: 13px;
    color: var(--text-secondary);
}

.subscription-item.warning .value {
    color: var(--warning-color);
}

.subscription-item.success .value {
    color: var(--success-color);
}

/* Credits Progress */
.credits-progress {
    margin-top: 20px;
    padding: 16px;
    background: var(--bg-primary);
    border-radius: var(--border-radius-sm);
}

.credits-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.credits-label {
    font-size: 14px;
    color: var(--text-secondary);
}

.credits-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.progress-bar {
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), #8b5cf6);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.progress-fill.low {
    background: linear-gradient(90deg, var(--warning-color), #fbbf24);
}

/* Payment Alert */
.payment-alert {
    margin-top: 16px;
    padding: 14px 16px;
    background: var(--danger-light);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    gap: 12px;
}

.payment-alert .icon {
    font-size: 20px;
}

.payment-alert p {
    font-size: 14px;
    color: var(--danger-color);
    font-weight: 500;
}

/* ========================================
   Alerts Card
   ======================================== */
.alerts-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.alert-item {
    padding: 14px 16px;
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    position: relative;
}

.alert-item.info {
    background: var(--info-light);
    border: none;
}

.alert-item.warning {
    background: var(--warning-light);
    border: none;
}

.alert-item.critical {
    background: var(--danger-light);
    border: none;
}

.alert-dismiss {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 24px;
    height: 24px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 18px;
    cursor: pointer;
    opacity: 0;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.alert-item:hover .alert-dismiss {
    opacity: 1;
}

.alert-dismiss:hover {
    background: rgba(0, 0, 0, 0.1);
    color: var(--text-primary);
}

.alert-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.alert-item.info .alert-icon {
    background: rgba(59, 130, 246, 0.15);
}
.alert-item.warning .alert-icon {
    background: rgba(245, 158, 11, 0.15);
}
.alert-item.critical .alert-icon {
    background: rgba(239, 68, 68, 0.15);
}

.alert-content {
    flex: 1;
}

.alert-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.alert-description {
    font-size: 13px;
    color: var(--text-secondary);
}

.no-alerts {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

.no-alerts .icon {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.5;
}

.no-alerts p {
    font-size: 15px;
}

/* ========================================
   Tasks Section
   ======================================== */
.tasks-section {
    margin-bottom: 24px;
}

.tasks-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.task-card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 20px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    position: relative;
}

.task-card::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 20px;
    right: 20px;
    height: 3px;
    background: var(--primary-gradient);
    border-radius: 3px 3px 0 0;
    opacity: 0;
    transition: var(--transition);
}

.task-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.task-card:hover::after {
    opacity: 1;
}

.task-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 14px;
}

.task-status {
    width: 28px;
    height: 28px;
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
}

.task-status.open {
    background: var(--warning-light);
    color: var(--warning-color);
}

.task-status.in_progress {
    background: var(--info-light);
    color: var(--info-color);
}

.task-status.completed {
    background: var(--success-light);
    color: var(--success-color);
}

.task-priority {
    font-size: 11px;
    padding: 5px 12px;
    border-radius: var(--border-radius-full);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.task-priority.high {
    background: var(--danger-light);
    color: var(--danger-color);
}

.task-priority.medium {
    background: var(--warning-light);
    color: var(--warning-color);
}

.task-priority.low {
    background: var(--bg-primary);
    color: var(--text-muted);
}

.task-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 14px;
    line-height: 1.5;
}

.task-card.completed .task-title {
    text-decoration: line-through;
    color: var(--text-muted);
}

.task-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.task-labels {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.task-label {
    padding: 5px 12px;
    background: var(--primary-light);
    color: var(--primary-color);
    border-radius: var(--border-radius-full);
    font-size: 12px;
    font-weight: 600;
}

/* ========================================
   Bot Stats Section
   ======================================== */
.bot-stats-section {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.bot-stats-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bot-stats-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.bot-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}

.bot-stat-item {
    padding: 24px;
    text-align: center;
    border-left: 1px solid var(--border-color);
}

.bot-stat-item:last-child {
    border-left: none;
}

.bot-stat-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.bot-stat-value.success {
    color: var(--success-color);
}
.bot-stat-value.warning {
    color: var(--warning-color);
}
.bot-stat-value.info {
    color: var(--info-color);
}

.bot-stat-label {
    font-size: 13px;
    color: var(--text-secondary);
}

.bot-stats-footer {
    padding: 20px 24px;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
}

.top-questions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.top-questions-label {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.question-tag {
    padding: 8px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-full);
    font-size: 13px;
    color: var(--text-secondary);
}

/* ========================================
   Toast Notifications
   ======================================== */
.toast-container {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast {
    background: var(--text-primary);
    color: white;
    padding: 16px 24px;
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideIn 0.3s ease-out;
    min-width: 300px;
    max-width: 400px;
}

.toast.success {
    background: var(--success-color);
}
.toast.info {
    background: var(--info-color);
}
.toast.warning {
    background: var(--warning-color);
}
.toast.error {
    background: var(--danger-color);
}

.toast-icon {
    font-size: 18px;
}

.toast-message {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(-100%);
    }
}

/* ========================================
   Loading States
   ======================================== */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1200px) {
    .cards-grid {
        grid-template-columns: 1fr;
    }

    .tasks-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bot-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bot-stat-item {
        border-bottom: 1px solid var(--border-color);
    }

    .bot-stat-item:nth-child(2) {
        border-left: none;
    }
}

@media (max-width: 768px) {
    .app-container {
        padding: 16px;
    }

    .customer-header {
        padding: 20px;
    }

    .header-top {
        flex-direction: column;
    }

    .header-actions {
        width: 100%;
    }

    .action-btn {
        flex: 1;
        justify-content: center;
    }

    .contact-info {
        flex-direction: column;
        gap: 12px;
    }

    .contact-item {
        justify-content: center;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .subscription-details {
        grid-template-columns: 1fr;
    }

    .tasks-grid {
        grid-template-columns: 1fr;
    }

    .bot-stats-grid {
        grid-template-columns: 1fr;
    }

    .bot-stat-item {
        border-left: none;
        border-bottom: 1px solid var(--border-color);
    }

    .bot-stat-item:last-child {
        border-bottom: none;
    }
}

/* ========================================
   Scrollbar
   ======================================== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* ========================================
   Modal Styles
   ======================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(8px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), var(--shadow-glow);
    z-index: 1001;
    width: 90%;
    max-width: 540px;
    max-height: 90vh;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal.open {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.modal.modal-sm {
    max-width: 440px;
}

.modal.modal-lg {
    max-width: 740px;
}

.modal-header {
    padding: 24px 28px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(180deg, #fafbfc 0%, #ffffff 100%);
}

.modal-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-close {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--bg-primary);
    border-radius: var(--border-radius-sm);
    font-size: 24px;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: var(--danger-light);
    color: var(--danger-color);
    transform: rotate(90deg);
}

.modal-body {
    padding: 28px;
    overflow-y: auto;
    max-height: calc(90vh - 180px);
}

.modal-footer {
    padding: 20px 28px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    background: var(--bg-primary);
}

/* ========================================
   Form Styles
   ======================================== */
.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-family: inherit;
    font-size: 14px;
    color: var(--text-primary);
    background: var(--bg-card);
    transition: var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-muted);
}

.form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 12px center;
    background-size: 16px;
    padding-left: 40px;
}

.form-textarea {
    resize: vertical;
    min-height: 80px;
}

/* Tags Input */
.tags-input {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 14px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    background: var(--bg-card);
    min-height: 48px;
    align-items: center;
    transition: var(--transition-fast);
}

.tags-input:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    background: var(--primary-light);
    color: var(--primary-color);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
}

.tag-item .remove-tag {
    width: 16px;
    height: 16px;
    border: none;
    background: transparent;
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    opacity: 0.7;
    transition: var(--transition-fast);
}

.tag-item .remove-tag:hover {
    opacity: 1;
}

.tag-input-field {
    flex: 1;
    min-width: 100px;
    border: none;
    outline: none;
    font-size: 14px;
    background: transparent;
    padding: 4px;
}

.tag-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.tag-suggestion {
    padding: 6px 12px;
    border: 1px dashed var(--border-color);
    background: transparent;
    border-radius: var(--border-radius-full);
    font-size: 12px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-fast);
    font-family: inherit;
}

.tag-suggestion:hover {
    border-color: var(--primary-color);
    background: var(--primary-light);
    color: var(--primary-color);
}

/* ========================================
   Task Details Modal Content
   ======================================== */
.task-details-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.task-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.task-detail-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    flex: 1;
}

.task-detail-priority {
    font-size: 12px;
    padding: 5px 12px;
    border-radius: 6px;
    font-weight: 600;
}

.task-detail-priority.high {
    background: var(--danger-light);
    color: var(--danger-color);
}

.task-detail-priority.medium {
    background: var(--warning-light);
    color: var(--warning-color);
}

.task-detail-priority.low {
    background: var(--bg-primary);
    color: var(--text-muted);
}

.task-detail-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    padding: 16px;
    background: var(--bg-primary);
    border-radius: var(--border-radius-sm);
}

.task-detail-meta {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.task-meta-item {
    padding: 14px 16px;
    background: var(--bg-primary);
    border-radius: var(--border-radius-sm);
}

.task-meta-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.task-meta-value {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
}

.task-detail-labels {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.task-detail-label {
    padding: 6px 14px;
    background: var(--primary-light);
    color: var(--primary-color);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
}

/* Status change dropdown in task details */
.task-status-select {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.status-select-btn {
    flex: 1;
    padding: 10px 16px;
    border: 2px solid var(--border-color);
    background: var(--bg-card);
    border-radius: var(--border-radius-sm);
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.status-select-btn:hover {
    background: var(--bg-primary);
}

.status-select-btn.active {
    border-color: var(--primary-color);
    background: var(--primary-light);
    color: var(--primary-color);
}

.status-select-btn.open {
    border-color: var(--warning-color);
}

.status-select-btn.open.active {
    background: var(--warning-light);
    color: var(--warning-color);
}

.status-select-btn.in_progress {
    border-color: var(--info-color);
}

.status-select-btn.in_progress.active {
    background: var(--info-light);
    color: var(--info-color);
}

.status-select-btn.completed {
    border-color: var(--success-color);
}

.status-select-btn.completed.active {
    background: var(--success-light);
    color: var(--success-color);
}

/* ========================================
   Confirm Modal
   ======================================== */
.confirm-message {
    font-size: 15px;
    color: var(--text-secondary);
    text-align: center;
    padding: 16px 0;
}

.action-btn.danger {
    background: var(--danger-color);
    color: white;
}

.action-btn.danger:hover {
    background: var(--danger-hover);
}

.action-btn.warning {
    background: var(--warning-color);
    color: white;
}

.action-btn.warning:hover {
    background: var(--warning-hover);
}

/* ========================================
   Task Card Click States
   ======================================== */
.task-card {
    cursor: pointer;
}

.task-card:active {
    transform: scale(0.98);
}

/* ========================================
   Activity Quick Actions
   ======================================== */
.activity-quick-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

.quick-action-btn {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    border-radius: var(--border-radius-sm);
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.quick-action-btn:hover {
    background: var(--primary-light);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* ========================================
   Responsive Modal
   ======================================== */
@media (max-width: 768px) {
    .modal {
        width: 95%;
        max-height: 85vh;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .modal-body {
        max-height: calc(85vh - 180px);
    }

    .task-detail-meta {
        grid-template-columns: 1fr;
    }

    .task-status-select {
        flex-direction: column;
    }
}

/* ========================================
   Tabs Navigation
   ======================================== */
.tabs-nav {
    background: var(--bg-card);
    border: none;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 2px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.tabs-container {
    display: flex;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.tabs-container::-webkit-scrollbar {
    display: none;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 18px 28px;
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    position: relative;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
}

.tab-btn:hover {
    color: var(--text-primary);
    background: var(--bg-primary);
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background: var(--primary-light);
}

.tab-icon {
    font-size: 18px;
}

.tab-label {
    font-weight: 600;
}

.tab-badge {
    padding: 3px 10px;
    background: var(--bg-primary);
    color: var(--text-secondary);
    border-radius: var(--border-radius-full);
    font-size: 12px;
    font-weight: 700;
    min-width: 26px;
    text-align: center;
}

.tab-badge.warning {
    background: var(--warning-color);
    color: white;
}

.tab-badge.danger {
    background: var(--danger-color);
    color: white;
}

/* ========================================
   Tab Panels
   ======================================== */
.tabs-content {
    background: var(--bg-card);
    border: none;
    border-radius: 0 0 var(--border-radius-lg) var(--border-radius-lg);
    padding: 24px;
    min-height: 400px;
}

.tab-panel {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-panel.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   Overview Tab - Quick Stats
   ======================================== */
.overview-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
}

.quick-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.quick-stat-card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.quick-stat-card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-gradient);
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.quick-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.quick-stat-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.quick-stat-icon.info {
    background: var(--info-light);
}

.quick-stat-icon.success {
    background: var(--success-light);
}

.quick-stat-icon.warning {
    background: var(--warning-light);
}

.quick-stat-icon.primary {
    background: var(--primary-light);
}

.quick-stat-content {
    flex: 1;
}

.quick-stat-value {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.quick-stat-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 4px;
}

/* Quick stats without icons - cleaner layout */
.quick-stat-card .quick-stat-content {
    flex: 1;
}

/* Card Link Button */
.card-link-btn {
    border: none;
    background: transparent;
    color: var(--primary-color);
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: var(--border-radius-sm);
    transition: var(--transition-fast);
}

.card-link-btn:hover {
    background: var(--primary-light);
}

/* Activities Preview */
.activity-preview {
    max-height: 300px;
    overflow: hidden;
}

/* Tasks Preview */
.tasks-preview {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.task-preview-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-primary);
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: var(--transition-fast);
}

.task-preview-item:hover {
    background: var(--primary-light);
}

.task-preview-status {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
}

.task-preview-status.high {
    background: var(--danger-light);
    color: var(--danger-color);
}

.task-preview-status.medium {
    background: var(--warning-light);
    color: var(--warning-color);
}

.task-preview-status.low {
    background: var(--bg-hover);
    color: var(--text-muted);
}

.task-preview-content {
    flex: 1;
    min-width: 0;
}

.task-preview-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.task-preview-meta {
    font-size: 12px;
    color: var(--text-muted);
}

/* ========================================
   Tasks Tab - Filter
   ======================================== */
.card-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.tasks-filter {
    display: flex;
    gap: 4px;
    background: var(--bg-primary);
    padding: 4px;
    border-radius: var(--border-radius-sm);
}

.filter-btn {
    padding: 8px 16px;
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 6px;
    transition: var(--transition-fast);
}

.filter-btn:hover {
    color: var(--text-primary);
}

.filter-btn.active {
    background: var(--bg-card);
    color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

/* Card scrollable body */
.card-body.scrollable {
    max-height: 500px;
    overflow-y: auto;
}

.card.full-height {
    min-height: 500px;
}

/* ========================================
   Subscription Tab Layout
   ======================================== */
.subscription-layout {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.subscription-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.action-btn.full-width {
    width: 100%;
    justify-content: center;
}

/* Payments List */
.payments-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.payment-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: var(--bg-primary);
    border-radius: var(--border-radius-sm);
}

.payment-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.payment-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.payment-icon.success {
    background: var(--success-light);
}

.payment-icon.failed {
    background: var(--danger-light);
}

.payment-details {
    display: flex;
    flex-direction: column;
}

.payment-date {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.payment-method {
    font-size: 12px;
    color: var(--text-muted);
}

.payment-amount {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.payment-amount.failed {
    color: var(--danger-color);
    text-decoration: line-through;
}

/* ========================================
   Bot Tab Layout
   ======================================== */
.bot-layout {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.bot-stats-grid-full {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.bot-stat-card {
    background: var(--bg-primary);
    border-radius: var(--border-radius-sm);
    padding: 20px;
    text-align: center;
    transition: var(--transition);
}

.bot-stat-card:hover {
    background: #f1f5f9;
}

.bot-stat-card .bot-stat-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.bot-stat-card .bot-stat-value {
    font-size: 26px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.bot-stat-card .bot-stat-label {
    font-size: 12px;
    color: var(--text-muted);
}

/* Bot stats cleaner - no icons */
.bot-stat-card .bot-stat-icon {
    display: none;
}

/* Top Questions List */
.top-questions-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.question-tag {
    padding: 10px 18px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-full);
    font-size: 14px;
    color: var(--text-secondary);
    transition: var(--transition-fast);
    cursor: default;
}

.question-tag:hover {
    background: var(--primary-light);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Bot Conversations */
.bot-conversations {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bot-conversation-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
    background: var(--bg-primary);
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: var(--transition-fast);
}

.bot-conversation-item:hover {
    background: var(--primary-light);
}

.bot-conv-icon {
    width: 40px;
    height: 40px;
    background: var(--info-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.bot-conv-content {
    flex: 1;
    min-width: 0;
}

.bot-conv-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.bot-conv-preview {
    font-size: 13px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bot-conv-meta {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 6px;
}

/* ========================================
   Responsive Tabs
   ======================================== */
@media (max-width: 1200px) {
    .quick-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .subscription-layout {
        grid-template-columns: 1fr;
    }

    .bot-stats-grid-full {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .tabs-nav {
        border-radius: 0;
    }

    .tab-btn {
        padding: 12px 16px;
        flex-direction: column;
        gap: 4px;
    }

    .tab-label {
        font-size: 11px;
    }

    .tab-badge {
        position: absolute;
        top: 8px;
        left: 8px;
        padding: 2px 6px;
        font-size: 10px;
    }

    .tabs-content {
        padding: 16px;
        border-radius: 0 0 var(--border-radius) var(--border-radius);
    }

    .quick-stats {
        grid-template-columns: 1fr 1fr;
    }

    .quick-stat-card {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .card-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .tasks-filter {
        justify-content: center;
    }

    .bot-stats-grid-full {
        grid-template-columns: 1fr 1fr;
    }
}
