/* ============================================================
   EduCRM Premium Design System
   Enterprise-grade UI — ThemeForest Quality
   ============================================================ */

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; }
[x-cloak] { display: none !important; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; touch-action: manipulation; }
body { touch-action: manipulation; -ms-touch-action: manipulation; }

/* === KEYFRAME ANIMATIONS === */
@keyframes fadeIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideInRight { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: translateX(0); } }
@keyframes slideInLeft { from { opacity: 0; transform: translateX(-24px); } to { opacity: 1; transform: translateX(0); } }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }
@keyframes pulse-soft { 0%, 100% { opacity: 1; } 50% { opacity: 0.6; } }
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes glow-pulse { 0%, 100% { box-shadow: 0 0 5px rgba(99,102,241,0.2); } 50% { box-shadow: 0 0 20px rgba(99,102,241,0.4); } }
@keyframes gradient-shift { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
@keyframes spin-slow { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
@keyframes badge-ping { 75%, 100% { transform: scale(2); opacity: 0; } }
@keyframes ripple { to { transform: scale(4); opacity: 0; } }
@keyframes count-up { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.animate-fade-in { animation: fadeIn 0.35s cubic-bezier(0.4, 0, 0.2, 1); }
.animate-slide-up { animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1); }
.animate-slide-right { animation: slideInRight 0.4s cubic-bezier(0.4, 0, 0.2, 1); }
.animate-slide-left { animation: slideInLeft 0.4s cubic-bezier(0.4, 0, 0.2, 1); }
.animate-scale-in { animation: scaleIn 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.animate-pulse-soft { animation: pulse-soft 2s ease-in-out infinite; }
.animate-float { animation: float 3s ease-in-out infinite; }
.animate-glow { animation: glow-pulse 2s ease-in-out infinite; }
.animate-gradient { animation: gradient-shift 6s ease infinite; background-size: 200% 200%; }
.animate-spin-slow { animation: spin-slow 8s linear infinite; }
.animate-count { animation: count-up 0.5s cubic-bezier(0.4, 0, 0.2, 1) both; }

/* Stagger children animations */
.stagger-children > *:nth-child(1) { animation-delay: 0ms; }
.stagger-children > *:nth-child(2) { animation-delay: 60ms; }
.stagger-children > *:nth-child(3) { animation-delay: 120ms; }
.stagger-children > *:nth-child(4) { animation-delay: 180ms; }
.stagger-children > *:nth-child(5) { animation-delay: 240ms; }
.stagger-children > *:nth-child(6) { animation-delay: 300ms; }
.stagger-children > *:nth-child(7) { animation-delay: 360ms; }
.stagger-children > *:nth-child(8) { animation-delay: 420ms; }

/* Skeleton loading */
.skeleton { background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 37%, #f1f5f9 63%); background-size: 200% 100%; animation: shimmer 1.5s ease-in-out infinite; border-radius: 0.5rem; }

/* === SCROLLBARS === */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

.sidebar-scroll::-webkit-scrollbar { width: 3px; }
.sidebar-scroll::-webkit-scrollbar-track { background: transparent; }
.sidebar-scroll::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 99px; }
.sidebar-scroll::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.18); }

/* === CARDS === */
.card {
    background: white;
    border-radius: 1rem;
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 1px 3px rgba(0,0,0,0.02), 0 1px 2px rgba(0,0,0,0.03);
    transition: box-shadow 0.3s cubic-bezier(0.4,0,0.2,1), transform 0.3s cubic-bezier(0.4,0,0.2,1), border-color 0.3s ease;
}
.card:hover {
    box-shadow: 0 10px 40px -10px rgba(0,0,0,0.08), 0 4px 12px -2px rgba(0,0,0,0.04);
    border-color: rgba(203, 213, 225, 0.6);
}
.card-interactive:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px -12px rgba(0,0,0,0.1);
}

.card-glass {
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 1rem;
}

.card-gradient {
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(248,250,252,0.95) 100%);
    border: 1px solid rgba(226,232,240,0.5);
    border-radius: 1rem;
}

/* === STAT CARDS (Premium) === */
.stat-card {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
}
.stat-card::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    opacity: 0.06;
    transition: all 0.4s ease;
}
.stat-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: 0 0 1rem 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -12px rgba(0,0,0,0.1), 0 0 0 1px rgba(0,0,0,0.02);
}
.stat-card:hover::before { opacity: 0.1; transform: scale(1.1); }
.stat-card:hover::after { opacity: 1; }

.stat-card.indigo::before { background: #4f46e5; }
.stat-card.indigo::after { background: linear-gradient(90deg, #4f46e5, #818cf8); }
.stat-card.emerald::before { background: #10b981; }
.stat-card.emerald::after { background: linear-gradient(90deg, #10b981, #6ee7b7); }
.stat-card.amber::before { background: #f59e0b; }
.stat-card.amber::after { background: linear-gradient(90deg, #f59e0b, #fcd34d); }
.stat-card.red::before { background: #ef4444; }
.stat-card.red::after { background: linear-gradient(90deg, #ef4444, #fca5a5); }
.stat-card.violet::before { background: #7c3aed; }
.stat-card.violet::after { background: linear-gradient(90deg, #7c3aed, #a78bfa); }
.stat-card.cyan::before { background: #06b6d4; }
.stat-card.cyan::after { background: linear-gradient(90deg, #06b6d4, #67e8f9); }

/* === TABLES (Enterprise) === */
.data-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.data-table th {
    padding: 0.875rem 1rem;
    text-align: left;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748b;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 2px solid #e2e8f0;
    white-space: nowrap;
    position: sticky;
    top: 0;
    z-index: 1;
}
.data-table th:first-child { border-radius: 0.5rem 0 0 0; }
.data-table th:last-child { border-radius: 0 0.5rem 0 0; }
.data-table td {
    padding: 0.875rem 1rem;
    font-size: 0.875rem;
    color: #334155;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
    transition: background-color 0.15s ease;
}
.data-table tbody tr { transition: all 0.15s ease; }
.data-table tbody tr:hover { background-color: rgba(99,102,241,0.03); }
.data-table tbody tr:hover td { color: #1e293b; }
.data-table tbody tr:last-child td { border-bottom: none; }

/* Contacts sayfası tablosu — th genişlik şişmesini engelle */
#contacts-table th { white-space: normal; position: static; }
#contacts-table td { padding: 0.625rem 0.75rem; }

/* === FORM INPUTS (Premium) === */
.form-input {
    width: 100%;
    padding: 0.6875rem 0.875rem;
    font-size: 0.875rem;
    line-height: 1.5;
    border: 1.5px solid #e2e8f0;
    border-radius: 0.75rem;
    background: white;
    color: #0f172a;
    transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
    outline: none;
}
.form-input:hover { border-color: #cbd5e1; }
.form-input:focus {
    border-color: #818cf8;
    box-shadow: 0 0 0 4px rgba(99,102,241,0.08), 0 1px 2px rgba(0,0,0,0.04);
}
.form-input::placeholder { color: #94a3b8; }
.form-input:disabled { background: #f8fafc; color: #94a3b8; cursor: not-allowed; }
.form-input.error { border-color: #f87171; }
.form-input.error:focus { box-shadow: 0 0 0 4px rgba(248,113,113,0.08); }

textarea.form-input { resize: vertical; min-height: 80px; }

.form-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.375rem;
    letter-spacing: -0.01em;
}

.form-select {
    width: 100%;
    padding: 0.6875rem 2.5rem 0.6875rem 0.875rem;
    font-size: 0.875rem;
    line-height: 1.5;
    border: 1.5px solid #e2e8f0;
    border-radius: 0.75rem;
    background: white;
    color: #0f172a;
    transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
    outline: none;
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.625rem center;
    background-size: 1.125rem;
}
.form-select:hover { border-color: #cbd5e1; }
.form-select:focus { border-color: #818cf8; box-shadow: 0 0 0 4px rgba(99,102,241,0.08); }

.form-checkbox {
    width: 1.125rem;
    height: 1.125rem;
    border: 1.5px solid #d1d5db;
    border-radius: 0.375rem;
    color: #4f46e5;
    transition: all 0.15s ease;
    cursor: pointer;
}
.form-checkbox:checked { background-color: #4f46e5; border-color: #4f46e5; }
.form-checkbox:focus { box-shadow: 0 0 0 3px rgba(99,102,241,0.12); }

/* === BUTTONS (Premium with Glow) === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 0.75rem;
    transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
    cursor: pointer;
    outline: none;
    border: none;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    letter-spacing: -0.01em;
}
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.btn-primary {
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    color: white;
    box-shadow: 0 1px 3px rgba(79,70,229,0.2);
}
.btn-primary:hover {
    background: linear-gradient(135deg, #4338ca 0%, #4f46e5 100%);
    box-shadow: 0 8px 24px -4px rgba(79,70,229,0.35), 0 0 0 1px rgba(79,70,229,0.1);
    transform: translateY(-1px);
}

.btn-secondary {
    background: white;
    color: #475569;
    border: 1.5px solid #e2e8f0;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.btn-secondary:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px -2px rgba(0,0,0,0.06);
}

.btn-success {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: white;
    box-shadow: 0 1px 3px rgba(16,185,129,0.2);
}
.btn-success:hover {
    box-shadow: 0 8px 24px -4px rgba(16,185,129,0.35);
    transform: translateY(-1px);
}

.btn-danger {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    color: white;
    box-shadow: 0 1px 3px rgba(239,68,68,0.2);
}
.btn-danger:hover {
    box-shadow: 0 8px 24px -4px rgba(239,68,68,0.35);
    transform: translateY(-1px);
}

.btn-ghost {
    background: transparent;
    color: #64748b;
    border: none;
}
.btn-ghost:hover { background: #f1f5f9; color: #334155; }

.btn-xs { padding: 0.25rem 0.625rem; font-size: 0.75rem; border-radius: 0.5rem; gap: 0.25rem; }
.btn-sm { padding: 0.4375rem 0.875rem; font-size: 0.8125rem; border-radius: 0.625rem; }
.btn-lg { padding: 0.8125rem 1.75rem; font-size: 0.9375rem; border-radius: 0.875rem; }
.btn-xl { padding: 1rem 2rem; font-size: 1rem; border-radius: 0.875rem; }
.btn-icon { padding: 0.5rem; border-radius: 0.625rem; }
.btn-icon.btn-sm { padding: 0.375rem; }

/* Button loading state */
.btn-loading { pointer-events: none; }
.btn-loading::after {
    content: '';
    width: 1rem;
    height: 1rem;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin-slow 0.6s linear infinite;
    margin-left: 0.25rem;
}

/* === SIDEBAR (Premium Dark) === */
.sidebar-gradient {
    background: linear-gradient(180deg, #0f172a 0%, #1e1b4b 50%, #0f172a 100%);
}

.sidebar-nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.75rem;
    border-radius: 0.625rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s cubic-bezier(0.4,0,0.2,1);
    color: #94a3b8;
    position: relative;
}
.sidebar-nav-item:hover {
    color: #e2e8f0;
    background: rgba(255,255,255,0.06);
}
.sidebar-nav-item.active {
    color: white;
    background: rgba(99,102,241,0.15);
}
.sidebar-nav-item.active::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 24px;
    background: linear-gradient(180deg, #818cf8, #6366f1);
    border-radius: 0 4px 4px 0;
}
.sidebar-nav-item .nav-icon {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}
.sidebar-nav-item:hover .nav-icon { transform: scale(1.1); }

.sidebar-section-label {
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #475569;
    padding: 1.25rem 0.75rem 0.5rem;
}

/* === HEADER (Glass) === */
.header-glass {
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(226,232,240,0.6);
}

/* === BADGES (Refined) === */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.1875rem 0.625rem;
    font-size: 0.6875rem;
    font-weight: 600;
    border-radius: 9999px;
    letter-spacing: 0.01em;
    line-height: 1.4;
}

.badge-dot::before {
    content: '';
    width: 0.375rem;
    height: 0.375rem;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.7;
}

/* Notification badge ping */
.badge-ping { position: relative; }
.badge-ping::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: inherit;
    animation: badge-ping 1.5s cubic-bezier(0,0,0.2,1) infinite;
}

/* === PROGRESS BAR === */
.progress-bar {
    height: 0.5rem;
    border-radius: 9999px;
    background: #e2e8f0;
    overflow: hidden;
}
.progress-bar-fill {
    height: 100%;
    border-radius: 9999px;
    transition: width 0.8s cubic-bezier(0.4,0,0.2,1);
    background: linear-gradient(90deg, #6366f1, #818cf8);
}
.progress-bar-fill.emerald { background: linear-gradient(90deg, #10b981, #6ee7b7); }
.progress-bar-fill.amber { background: linear-gradient(90deg, #f59e0b, #fcd34d); }
.progress-bar-fill.red { background: linear-gradient(90deg, #ef4444, #fca5a5); }

/* === TIMELINE (Premium) === */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
    content: '';
    position: absolute;
    left: 0.5625rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, #e2e8f0 0%, #cbd5e1 50%, #e2e8f0 100%);
}
.timeline-item { position: relative; padding-bottom: 1.5rem; }
.timeline-item::before {
    content: '';
    position: absolute;
    left: -1.5rem;
    top: 0.5rem;
    width: 0.625rem;
    height: 0.625rem;
    border-radius: 50%;
    background: white;
    border: 2px solid #818cf8;
    z-index: 1;
    box-shadow: 0 0 0 3px rgba(129,140,248,0.15);
    transition: all 0.2s ease;
}
.timeline-item:hover::before { border-color: #6366f1; box-shadow: 0 0 0 5px rgba(99,102,241,0.15); }
.timeline-item.important::before { background: #ef4444; border-color: #ef4444; box-shadow: 0 0 0 3px rgba(239,68,68,0.15); }

/* === TABS (Modern) === */
.tab-nav {
    display: flex;
    gap: 0;
    background: #f1f5f9;
    border-radius: 0.75rem;
    padding: 0.25rem;
}
.tab-btn {
    flex: 1;
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #64748b;
    border-radius: 0.5rem;
    transition: all 0.25s ease;
    cursor: pointer;
    background: none;
    border: none;
    text-align: center;
}
.tab-btn:hover { color: #334155; }
.tab-btn.active {
    color: #4f46e5;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
}

/* === TOOLTIP === */
[data-tooltip] { position: relative; }
[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    padding: 0.375rem 0.75rem;
    background: #1e293b;
    color: white;
    font-size: 0.6875rem;
    font-weight: 500;
    border-radius: 0.5rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s cubic-bezier(0.4,0,0.2,1);
    z-index: 50;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
[data-tooltip]:hover::after { opacity: 1; transform: translateX(-50%) translateY(0); }

/* === MODAL === */
.modal-backdrop {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* === DRAG & DROP === */
.drop-zone {
    border: 2px dashed #cbd5e1;
    border-radius: 1rem;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
    cursor: pointer;
    background: #fafbfc;
}
.drop-zone:hover {
    border-color: #818cf8;
    background: linear-gradient(135deg, rgba(238,242,255,0.6), rgba(224,231,255,0.6));
    box-shadow: 0 0 0 4px rgba(99,102,241,0.06);
}
.drop-zone.dragover {
    border-color: #6366f1;
    background: linear-gradient(135deg, #eef2ff, #e0e7ff);
    box-shadow: 0 0 0 4px rgba(99,102,241,0.12);
    transform: scale(1.01);
}

/* === AVATAR === */
.avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    border-radius: 0.75rem;
    flex-shrink: 0;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(99,102,241,0.2);
}
.avatar-xs { width: 1.75rem; height: 1.75rem; font-size: 0.625rem; border-radius: 0.5rem; }
.avatar-sm { width: 2rem; height: 2rem; font-size: 0.6875rem; }
.avatar-md { width: 2.5rem; height: 2.5rem; font-size: 0.8125rem; }
.avatar-lg { width: 3rem; height: 3rem; font-size: 1rem; }
.avatar-xl { width: 4rem; height: 4rem; font-size: 1.25rem; border-radius: 1rem; }

.avatar-ring {
    box-shadow: 0 0 0 3px white, 0 0 0 5px rgba(99,102,241,0.3);
}

/* Avatar color variations */
.avatar-emerald { background: linear-gradient(135deg, #10b981, #34d399); box-shadow: 0 2px 8px rgba(16,185,129,0.2); }
.avatar-amber { background: linear-gradient(135deg, #f59e0b, #fbbf24); box-shadow: 0 2px 8px rgba(245,158,11,0.2); }
.avatar-red { background: linear-gradient(135deg, #ef4444, #f87171); box-shadow: 0 2px 8px rgba(239,68,68,0.2); }
.avatar-cyan { background: linear-gradient(135deg, #06b6d4, #22d3ee); box-shadow: 0 2px 8px rgba(6,182,212,0.2); }

/* === HEAT SCORE === */
.heat-hot { color: #ef4444; }
.heat-warm { color: #f59e0b; }
.heat-cold { color: #3b82f6; }

/* === EMPTY STATE === */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
    text-align: center;
}
.empty-state-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 1.25rem;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

/* === GRADIENT UTILITIES === */
.gradient-primary { background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%); }
.gradient-success { background: linear-gradient(135deg, #059669 0%, #10b981 100%); }
.gradient-warm { background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%); }
.gradient-ocean { background: linear-gradient(135deg, #0ea5e9 0%, #6366f1 100%); }
.gradient-dark { background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%); }
.gradient-mesh {
    background:
        radial-gradient(at 40% 20%, rgba(99,102,241,0.15) 0px, transparent 50%),
        radial-gradient(at 80% 0%, rgba(124,58,237,0.12) 0px, transparent 50%),
        radial-gradient(at 0% 50%, rgba(6,182,212,0.1) 0px, transparent 50%),
        radial-gradient(at 80% 50%, rgba(236,72,153,0.08) 0px, transparent 50%),
        radial-gradient(at 0% 100%, rgba(16,185,129,0.1) 0px, transparent 50%);
}

/* === SECTION DIVIDER === */
.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #e2e8f0 20%, #e2e8f0 80%, transparent);
}

/* === GLOW EFFECTS === */
.glow-indigo { box-shadow: 0 0 20px rgba(99,102,241,0.15); }
.glow-emerald { box-shadow: 0 0 20px rgba(16,185,129,0.15); }
.glow-amber { box-shadow: 0 0 20px rgba(245,158,11,0.15); }

/* === NUMBER COUNTER === */
.counter-value {
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.025em;
}

/* === RESPONSIVE CARD VIEW (Mobile table replacement) === */
@media (max-width: 768px) {
    .responsive-table thead { display: none; }
    .responsive-table tbody tr {
        display: block;
        padding: 1rem;
        margin-bottom: 0.5rem;
        border: 1px solid #f1f5f9;
        border-radius: 0.75rem;
        background: white;
    }
    .responsive-table tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.375rem 0;
        border: none;
        font-size: 0.8125rem;
    }
    .responsive-table tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #64748b;
        font-size: 0.75rem;
        margin-right: 1rem;
    }
}

/* === MOBILE IMPROVEMENTS === */
@media (max-width: 640px) {
    .card { border-radius: 0.75rem; }
    .btn-lg { padding: 0.6875rem 1.25rem; font-size: 0.875rem; }
    .data-table th, .data-table td { padding: 0.625rem 0.75rem; font-size: 0.8125rem; }
    .stat-card:hover { transform: none; }
    .empty-state { padding: 2rem 1rem; }
}

/* === REDUCED MOTION === */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* === PRINT === */
@media print {
    .no-print { display: none !important; }
    body { background: white !important; }
    .card { box-shadow: none !important; border: 1px solid #e5e7eb !important; break-inside: avoid; }
    .stat-card::before, .stat-card::after { display: none; }
}
