/* Empty state */
.cheetah-empty {
    padding: 2.5rem 1rem;
    color: var(--text-muted);
    text-align: center;
    display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.cheetah-empty i { width: 28px; height: 28px; opacity: 0.6; }
.cheetah-empty-title { font-size: 0.95rem; font-weight: 600; color: #475569; }
.cheetah-empty-hint { font-size: 0.8rem; color: var(--text-muted); }

/* Skeleton */
.cheetah-skeleton {
    display: block;
    width: 100%;
    border-radius: 6px;
    background: linear-gradient(90deg, #f1f5f9, #e2e8f0, #f1f5f9);
    background-size: 200% 100%;
    animation: cheetah-shimmer 1.4s ease-in-out infinite;
}
@keyframes cheetah-shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }

/* Spinner */
.cheetah-spinner {
    display: flex; align-items: center; justify-content: center; padding: 2rem;
}
.cheetah-spinner i { width: 24px; height: 24px; animation: spin 1s linear infinite; color: var(--accent); }

/* Toast */
#cheetah-toast-host { position: fixed; right: 24px; top: 20px; display: flex; flex-direction: column; gap: 8px; z-index: 10000; pointer-events: none; }
.cheetah-toast {
    background: white; color: var(--text-main); padding: 10px 14px;
    border-radius: 8px; box-shadow: 0 6px 20px rgba(15,23,42,0.12);
    border-left: 3px solid var(--accent); font-size: 0.85rem; min-width: 200px;
    transform: translateX(0); transition: opacity 0.3s, transform 0.3s;
}
.cheetah-toast-error { border-left-color: #ef4444; }
.cheetah-toast-success { border-left-color: #10b981; }
.cheetah-toast.out { opacity: 0; transform: translateX(20px); }

/* User tag */
.user-tag {
    display: flex; align-items: center; gap: 6px;
    padding: 6px 12px; background: #f1f5f9; border-radius: 999px; font-size: 0.85rem;
    color: var(--text-main);
}
.user-tag i { width: 14px; height: 14px; }

/* Cards inside new pages */
.kpi-grid { display: grid; gap: 1rem; }
.kpi-card { background: white; border: 1px solid var(--border); border-radius: 12px; padding: 1.25rem; }

/* Tables shared */
.brand-tag {
    display: inline-block; padding: 2px 8px; margin-right: 4px; margin-bottom: 4px;
    background: #eef2ff; color: #4338ca; border-radius: 4px; font-size: 0.7rem; font-weight: 600;
}

/* Pagination buttons */
.cheetah-page {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 32px; height: 32px; padding: 0 10px; border: 1px solid var(--border);
    border-radius: 6px; background: white; color: var(--text-main);
    cursor: pointer; user-select: none; font-size: 0.85rem;
}
.cheetah-page:hover:not(.is-disabled) { background: #f1f5f9; }
.cheetah-page.is-active { background: var(--primary); color: white; border-color: var(--primary); }
.cheetah-page.is-disabled { opacity: 0.4; cursor: not-allowed; }
.cheetah-page-bar { display: flex; gap: 6px; align-items: center; }

/* Detail sections used in drawer */
.drawer-section { padding: 1.25rem 2.5rem; border-top: 1px solid #f1f5f9; }
.drawer-section h4 { font-size: 0.95rem; font-weight: 700; color: #1e293b; margin-bottom: 0.75rem; }
.drawer-section .kv { display: grid; grid-template-columns: 110px 1fr; gap: 4px 16px; font-size: 0.85rem; color: #475569; }
.drawer-section .kv .k { color: #94a3b8; }

/* Reference / brand chips */
.ref-chip {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 4px 8px; margin: 2px; border-radius: 6px;
    background: #f1f5f9; font-size: 0.75rem; color: #475569; text-decoration: none;
}
.ref-chip:hover { background: #e2e8f0; }

/* Suggestion cards */
.suggestion-card {
    border: 1px solid var(--border); border-radius: 12px; padding: 1rem 1.25rem;
    margin-bottom: 1rem; background: white;
}
.suggestion-card .level {
    display: inline-block; padding: 2px 10px; border-radius: 999px;
    font-size: 0.7rem; font-weight: 700; margin-bottom: 0.5rem;
    background: #eef2ff; color: #4338ca;
}
.suggestion-card .level.warn { background: #fef3c7; color: #92400e; }
.suggestion-card .level.tip { background: #dcfce7; color: #166534; }
.suggestion-card h5 { font-size: 0.95rem; font-weight: 700; color: #0f172a; margin-bottom: 0.4rem; }
.suggestion-card .detail { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; }
.suggestion-card ul { margin-top: 0.6rem; font-size: 0.8rem; color: #475569; padding-left: 1.25rem; }

/* Stats hover */
.stat-card-v2 { transition: transform 0.2s, box-shadow 0.2s; }
.stat-card-v2:hover { transform: translateY(-2px); box-shadow: 0 8px 16px rgba(15,23,42,0.05); }

/* Brand drawer card */
.brand-detail-card {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white; padding: 1.5rem 2.5rem;
}
.brand-detail-card h3 { font-size: 1.4rem; font-weight: 800; }
.brand-detail-card p { opacity: 0.9; margin-top: 6px; }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-cloud .tag { background: #f1f5f9; color: #475569; font-size: 0.75rem; padding: 4px 10px; border-radius: 999px; }
