/* NOVUM Service Desk v4.0 - JARVIS Edition */

:root {
    /* Core Palette */
    --bg-app: #050508;
    --bg-sidebar: #0a0a10;
    --bg-surface: #12121a;
    --bg-surface-elevated: #1a1a24;
    --bg-card: #131320;
    
    /* JARVIS Colors */
    --jarvis-blue: #00d4ff;
    --jarvis-cyan: #00f0ff;
    --jarvis-violet: #7c3aed;
    --jarvis-purple: #a855f7;
    --jarvis-rose: #f43f5e;
    --jarvis-emerald: #10b981;
    --jarvis-amber: #f59e0b;
    
    /* Gradients */
    --grad-jarvis: linear-gradient(135deg, #00d4ff 0%, #7c3aed 50%, #f43f5e 100%);
    --grad-cyan: linear-gradient(135deg, #00f0ff, #00d4ff);
    --grad-violet: linear-gradient(135deg, #7c3aed, #a855f7);
    --grad-hero: linear-gradient(180deg, rgba(0,212,255,0.1) 0%, transparent 50%);
    
    /* Text */
    --text-primary: #ffffff;
    --text-secondary: #b4b4c7;
    --text-tertiary: #7a7a8c;
    --text-muted: #525260;
    
    /* Effects */
    --glow-cyan: 0 0 30px rgba(0,212,255,0.3);
    --glow-violet: 0 0 30px rgba(124,58,237,0.3);
    --shadow-lg: 0 25px 50px -12px rgba(0,0,0,0.5);
    
    /* Layout */
    --sidebar-width: 280px;
    --header-height: 70px;
    --radius: 16px;
    --radius-sm: 10px;

    /* Prism Accents */
    --accent-indigo: #6366f1;
    --accent-indigo-soft: rgba(99, 102, 241, 0.1);

    /* Semantic Colors */
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;

    /* Text Hierarchy */
    --text-high: #fafafa;
    --text-med: #a1a1aa;
    --text-low: #71717a;

    /* Glass & Borders */
    --prism-border: rgba(255, 255, 255, 0.08);
    --prism-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);

    /* Spacing & Rails */
    --sidebar-width: 240px;
    --sidebar-collapsed-width: 64px;
    --radius-pill: 9999px;
    --radius-lg: 12px;
    --radius-md: 8px;
    --radius-sm: 4px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-app);
    color: var(--text-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 14px;
    line-height: 1.6;
}

/* JARVIS Background Grid */
.animated-background {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: 
        radial-gradient(ellipse at 20% 20%, rgba(0,212,255,0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(124,58,237,0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(244,63,94,0.04) 0%, transparent 50%);
}

.animated-background::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(0,212,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,212,255,0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(ellipse at center, black 40%, transparent 70%);
}

/* Floating Orbs */
.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: floatOrb 15s ease-in-out infinite;
}

.orb-1 {
    width: 400px; height: 400px;
    background: var(--jarvis-blue);
    top: -100px; right: -100px;
    animation-delay: 0s;
}

.orb-2 {
    width: 300px; height: 300px;
    background: var(--jarvis-violet);
    bottom: -50px; left: -50px;
    animation-delay: -5s;
}

.orb-3 {
    width: 200px; height: 200px;
    background: var(--jarvis-rose);
    top: 50%; left: 30%;
    animation-delay: -10s;
    opacity: 0.2;
}

@keyframes floatOrb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -20px) scale(1.05); }
    66% { transform: translate(-20px, 30px) scale(0.95); }
}

/* Glass Cards */
/* Glass Cards Evolution */
.glass-card {
    background: var(--bg-surface);
    border: 1px solid var(--prism-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--prism-shadow);
    transition: transform 0.2s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.2s ease;
}

.glass-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: var(--bg-surface-elevated);
}

/* Auth Pages */
.auth-container {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    padding: 3rem;
}

.logo {
    text-align: center;
    margin-bottom: 2.5rem;
}

.logo-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.logo h1 {
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.tagline {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Forms */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-group input,
.form-group textarea,
.form-group select,
.filter-select {
    padding: 0.875rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Dropdown options styling */
.form-group select option,
.filter-select option {
    background: #18181b;
    color: #fafafa;
    padding: 0.5rem;
}

.form-group select option:hover,
.filter-select option:hover {
    background: #27272a;
}

/* Buttons */
.btn {
    padding: 0.875rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

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

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.form-footer {
    text-align: center;
    margin-top: 1rem;
    color: var(--text-secondary);
}

.form-footer a {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.form-footer a:hover {
    color: var(--accent-secondary);
}

/* Dashboard */
/* Navigation & Layout */
.app-layout {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: rgba(10,10,16,0.95);
    border-right: 1px solid rgba(0,212,255,0.1);
}

.sidebar::after {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 1px; height: 100%;
    background: linear-gradient(180deg, transparent, var(--jarvis-cyan), transparent);
    opacity: 0.5;
}

.sidebar-expanded .sidebar {
    width: var(--sidebar-width);
}

.sidebar-collapsed .sidebar {
    width: var(--sidebar-collapsed-width);
}

.sidebar-brand {
    height: var(--header-height);
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(0,212,255,0.1);
    background: linear-gradient(90deg, rgba(0,212,255,0.05), transparent);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon-small {
    font-size: 1.75rem;
    animation: logoPulse 3s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(0,212,255,0.5));
}

@keyframes logoPulse {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 10px rgba(0,212,255,0.5)); }
    50% { transform: scale(1.1); filter: drop-shadow(0 0 20px rgba(0,212,255,0.8)); }
}

.sidebar-text {
    font-family: 'Jost', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    background: var(--grad-cyan);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
}

.sidebar-menu {
    flex: 1;
    padding: 1rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    overflow-y: auto;
}

.side-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1.25rem;
    margin: 0.15rem 0.75rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.side-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 0;
    background: var(--grad-cyan);
    border-radius: 0 4px 4px 0;
    transition: height 0.3s ease;
}

.side-link i {
    width: 24px;
    font-size: 1.25rem;
    text-align: center;
    transition: all 0.3s ease;
}

.side-link:hover {
    color: var(--text-primary);
    background: rgba(0,212,255,0.08);
    transform: translateX(5px);
}

.side-link:hover i {
    color: var(--jarvis-cyan);
    transform: scale(1.15) rotate(5deg);
    filter: drop-shadow(0 0 8px rgba(0,212,255,0.6));
}

.side-link.active {
    color: var(--jarvis-cyan);
    background: rgba(0,212,255,0.12);
    box-shadow: 0 0 20px rgba(0,212,255,0.15), inset 0 1px 0 rgba(255,255,255,0.05);
}

.side-link.active::before {
    height: 70%;
}

.side-link.active i {
    color: var(--jarvis-cyan);
    filter: drop-shadow(0 0 10px rgba(0,212,255,0.8));
}

.side-link.active i {
    color: var(--accent-indigo);
}

.sidebar-footer {
    padding: 0.75rem;
    border-top: 1px solid var(--prism-border);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

/* Modal System - Side Sheet */
.modal {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: flex-end;
    z-index: 9000;
}

.modal.hidden {
    display: none !important;
}

.modal-content {
    width: 100%;
    max-width: 650px;
    height: 100vh;
    background: var(--bg-sidebar);
    border-left: 1px solid var(--prism-border);
    border-radius: 0;
    padding: 2rem;
    position: relative;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
}


/* Fix glass-card conflicts on modals */
.modal-content.glass-card {
    overflow-y: auto !important;
    padding: 2rem;
    border-radius: 0;
    background: var(--bg-sidebar);
}

.modal-content.glass-card::before {
    display: none;
}

/* Modal content affects no children animations */
.modal-content *,
.modal-content *::before,
.modal-content *::after {
    animation: none !important;
    transition: none !important;
}


/* Hide FAB when any modal is open */
body:has(.modal:not(.hidden)) #fabAddAsset {
    display: none !important;
}

/* keyframes sideSheetIn removed */

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.btn-close {
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

.modal-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.modal-main {
    flex: 1;
}

.modal-sidebar {
    background: var(--bg-surface-elevated);
    padding: 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--prism-border);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
}

.info-group {
    margin-bottom: 1.5rem;
}

.info-group label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
}

.rich-text-content {
    min-height: 100px;
    background: rgba(0, 0, 0, 0.2);
    padding: 1rem;
    border-radius: 0.5rem;
}

.sla-deadline {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--warning);
}

.sla-urgent {
    color: var(--danger);
}

.modal-divider {
    border: 0;
    border-top: 1px solid var(--glass-border);
    margin: 1.5rem 0;
}

.compact-form {
    display: grid;
    gap: 0.5rem;
    margin-top: 1rem;
}

.compact-form input {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    color: white;
    padding: 0.5rem;
    border-radius: 0.4rem;
}

.time-log-list {
    max-height: 150px;
    overflow-y: auto;
    margin-bottom: 1rem;
    font-size: 0.85rem;
}

.time-log-item {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.total-time {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 1rem;
}

.avatar-small {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.user-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.user-email-limit {
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-primary);
}

.user-role-badge {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-logout {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-logout:hover {
    color: var(--accent-danger);
    background: rgba(239, 68, 68, 0.1);
}

.main-content {
    flex: 1;
    overflow-y: auto;
    background: rgba(10, 14, 39, 0.3);
    display: flex;
    flex-direction: column;
}

.view-container {
    padding: 2rem;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
}

/* CRM & Tables */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.data-table th {
    text-align: left;
    padding: 1rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--glass-border);
}

.data-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--glass-border);
    font-size: 0.95rem;
}

.data-table tr:hover {
    background: var(--bg-surface);
}

.company-logo {
    width: 32px;
    height: 32px;
    background: var(--bg-tertiary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
}


.page-header {
    margin-bottom: 2rem;
    position: relative;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--grad-cyan);
    border-radius: 3px;
}

.page-header h2 {
    font-family: 'Jost', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    background: var(--grad-cyan);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.page-header p {
    color: var(--text-tertiary);
    font-size: 0.9rem;
    letter-spacing: 0.02em;
}

.dynamic-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}

/* Stats Grid */
@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

/* Dashboard Enhancements */
.dynamic-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.refresh-time {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.stat-card.accent-blue {
    border-top: 4px solid #3b82f6;
}

.stat-card.accent-green {
    border-top: 4px solid #10b981;
}

.stat-card.accent-purple {
    border-top: 4px solid #8b5cf6;
}

.stat-card.accent-orange {
    border-top: 4px solid #f59e0b;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.dashboard-grid.triple {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.chart-card {
    padding: 1.5rem;
    height: 400px;
    display: flex;
    flex-direction: column;
}

.chart-card h3 {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.dashboard-tabs-section {
    margin-bottom: 2rem;
}

.tab-header {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 0.5rem;
}

.tab-btn {
    padding: 0.5rem 1.5rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.tab-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.tab-btn.active {
    color: var(--text-primary);
    background: rgba(102, 126, 234, 0.15);
    box-shadow: 0 0 0 1px var(--accent-primary);
}

.rating-list,
.deadline-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.info-card {
    padding: 1.5rem;
}

.rating-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
}

.rating-rank {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
}

.rating-info {
    flex: 1;
}

.rating-name {
    font-weight: 500;
    display: block;
}

.rating-val {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.deadline-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border-left: 3px solid transparent;
}

.deadline-item.urgent {
    border-left-color: var(--accent-danger);
}

.deadline-item.warning {
    border-left-color: var(--accent-warning);
}

.deadline-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 50px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 0.5rem;
}

.dd-day {
    font-size: 1.1rem;
    font-weight: 700;
}

.dd-month {
    font-size: 0.7rem;
    text-transform: uppercase;
    opacity: 0.7;
}

.deadline-content h4 {
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.deadline-content p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.loading {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
    font-style: italic;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    border: 1px solid var(--prism-border);
}

.stat-icon {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
    opacity: 0.5;
}

.stat-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.stat-content p {
    color: var(--text-low);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* High-Density Ticket Row (Linear-style) */
.ticket-card {
    display: grid;
    grid-template-columns: 80px 1fr 120px 120px 140px;
    align-items: center;
    gap: 1rem;
    padding: 0.65rem 1.25rem;
    border: none;
    border-bottom: 1px solid var(--prism-border);
    border-radius: 0;
    background: transparent;
}

.ticket-card:hover {
    background: var(--bg-surface);
}

.ticket-id-tag {
    font-family: 'Roboto Mono', monospace;
    font-size: 0.75rem;
    color: var(--text-low);
    font-weight: 500;
}

.ticket-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-high);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
}

.badge {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    border: 1px solid transparent;
}

.badge-new {
    background: var(--accent-indigo-soft);
    color: var(--accent-indigo);
    border-color: rgba(99, 102, 241, 0.2);
}

.badge-progress {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
    border-color: rgba(245, 158, 11, 0.2);
}

.badge-resolved {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border-color: rgba(16, 185, 129, 0.2);
}

.badge-closed {
    background: rgba(113, 113, 122, 0.1);
    color: var(--text-low);
    border-color: rgba(113, 113, 122, 0.2);
}

.badge-low {
    color: var(--text-low);
}

.badge-medium {
    color: var(--info);
}

.badge-high {
    color: var(--warning);
}

.badge-critical {
    color: var(--danger);
    font-weight: 700;
}

/* Ticket Action Buttons */
.ticket-action-btn {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}
.ticket-action-btn:hover {
    transform: translateY(-1px);
}
.accept-btn {
    background: #3b82f622;
    color: #3b82f6;
    border: 1px solid #3b82f644;
}
.accept-btn:hover {
    background: #3b82f644;
}
.resolve-btn {
    background: #10b98122;
    color: #10b981;
    border: 1px solid #10b98144;
}
.resolve-btn:hover {
    background: #10b98144;
}
.reopen-btn {
    background: #f59e0b22;
    color: #f59e0b;
    border: 1px solid #f59e0b44;
}
.reopen-btn:hover {
    background: #f59e0b44;
}
.assign-btn {
    background: #8b5cf622;
    color: #8b5cf6;
    border: 1px solid #8b5cf644;
}
.assign-btn:hover {
    background: #8b5cf644;
}
.awaiting-text {
    color: #8b5cf6;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 8px;
    background: #8b5cf622;
    border-radius: 6px;
}
.awaiting-text i {
    margin-right: 4px;
}

/* Filters */
.filters {
    display: flex;
    gap: 1rem;
}

.filter-select {
    padding: 0.625rem 1rem;
}

/* Toast Notifications */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    padding: 1rem 1.5rem;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    box-shadow: var(--glass-shadow);
    color: var(--text-primary);
    font-weight: 500;
    z-index: 1000;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast.success {
    border-left: 4px solid var(--accent-success);
}

.toast.error {
    border-left: 4px solid var(--accent-danger);
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.page {
    min-height: 100vh;
}

.view {
    min-height: calc(100vh - 200px);
}

/* Knowledge Base */
.kb-container {
    padding: 1rem 0;
}

.kb-search-box {
    margin-bottom: 2rem;
    padding: 1rem;
}

.kb-search-box input {
    width: 100%;
    background: transparent;
    border: none;
    color: white;
    font-size: 1.25rem;
    outline: none;
}

.kb-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
}

.kb-sidebar {
    background: rgba(255, 255, 255, 0.02);
    padding: 1.5rem;
    border-radius: 1rem;
    height: fit-content;
    border: 1px solid var(--glass-border);
}

.kb-sidebar h3 {
    font-size: 0.9rem;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
}

.kb-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.kb-category-item {
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-dim);
}

.kb-category-item:hover,
.kb-category-item.active {
    background: var(--accent-indigo-soft);
    color: var(--text-high);
}

.kb-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.kb-article-card {
    padding: 1.25rem;
    cursor: pointer;
    background: var(--bg-surface);
    border: 1px solid var(--prism-border);
    transition: all 0.2s cubic-bezier(0.2, 0, 0, 1);
}

.kb-article-card:hover {
    background: var(--bg-surface-elevated);
    border-color: rgba(255, 255, 255, 0.15);
}

.kb-article-card h4 {
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
    color: var(--text-primary);
}

.kb-article-excerpt {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.kb-article-meta {
    font-size: 0.8rem;
    color: var(--text-dim);
    display: flex;
    gap: 1rem;
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    gap: 0.35rem;
    padding: 0.5rem;
    background: rgba(0,0,0,0.2);
    border-radius: 10px;
    margin-bottom: 0.75rem;
}

.btn-lang {
    background: transparent;
    border: none;
    color: var(--text-tertiary);
    padding: 0.4rem 0.6rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.btn-lang:hover {
    background: rgba(255,255,255,0.05);
    color: var(--text-secondary);
}

.btn-lang.active {
    background: rgba(0,212,255,0.15);
    color: var(--jarvis-cyan);
    box-shadow: 0 0 10px rgba(0,212,255,0.2);
}

/* Notification Center */
.sidebar-brand {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.notification-wrapper {
    position: relative;
    padding: 0.5rem;
}

.notification-icon {
    font-size: 1.1rem;
    color: var(--text-dim);
    transition: all 0.2s;
    cursor: pointer;
}

.notification-icon:hover {
    color: white;
    transform: scale(1.1);
}

.notification-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: #ef4444;
    color: white;
    font-size: 0.6rem;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
}

.notification-dropdown {
    display: none !important;
}

.notif-header {
    padding: 0.85rem;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notif-header h3 {
    font-size: 0.9rem;
    margin: 0;
    color: white;
}

.btn-text {
    background: transparent;
    border: none;
    color: #6366f1;
    font-size: 0.7rem;
    cursor: pointer;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--prism-border);
    color: var(--text-med);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-outline:hover {
    border-color: var(--accent-indigo);
    color: var(--accent-indigo);
}

.btn-danger {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-danger:hover {
    background: rgba(239, 68, 68, 0.25);
}

.notif-list {
    max-height: 350px;
    overflow-y: auto;
}

.notif-item {
    padding: 1rem;
    border-bottom: 1px solid var(--glass-border);
    transition: background 0.2s;
}

.notif-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.notif-item h4 {
    font-size: 0.85rem;
    margin-bottom: 0.2rem;
    color: white;
}

.notif-item p {
    font-size: 0.75rem;
    color: var(--text-dim);
    line-height: 1.4;
}

.notif-time {
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-top: 0.35rem;
}

.notif-item.unread {
    background: rgba(99, 102, 241, 0.1);
    border-left: 2px solid #6366f1;
}

/* Command Center (Ctrl+K) Styles */
#commandCenter {
    justify-content: center;
    align-items: flex-start;
    padding-top: 20vh;
}

.command-content {
    width: 600px;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--prism-border);
    padding: 0;
    overflow: hidden;
    animation: commandPop 0.2s cubic-bezier(0.2, 0, 0, 1);
}

@keyframes commandPop {
    from {
        transform: scale(0.95);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.command-search {
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid var(--prism-border);
}

.command-search i {
    color: var(--text-low);
    font-size: 1.1rem;
}

.command-search input {
    background: transparent;
    border: none;
    color: var(--text-high);
    font-size: 1rem;
    width: 100%;
    outline: none;
}

.command-body {
    padding: 0.5rem;
}

.command-section {
    padding: 0.5rem;
}

.command-section label {
    font-size: 0.65rem;
    text-transform: uppercase;
    color: var(--text-low);
    margin: 0.5rem 0.75rem;
    display: block;
    letter-spacing: 0.05em;
}

.command-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.75rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background 0.1s;
}

.command-item:hover {
    background: var(--accent-indigo-soft);
    color: var(--text-high);
}

.command-item i {
    color: var(--text-low);
    width: 20px;
    text-align: center;
}

.command-item:hover i {
    color: var(--accent-indigo);
}

.cmd-key {
    margin-left: auto;
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.65rem;
    border: 1px solid var(--prism-border);
    color: var(--text-med);
}

.sidebar-collapsed .sidebar-text,
.sidebar-collapsed .sidebar-brand span:not(.logo-icon-small) {
    display: none;
}

.sidebar-collapsed .sidebar {
    width: 64px;
}

.sidebar-collapsed .sidebar-brand {
    justify-content: center;
    padding: 0;
}

.sidebar-collapsed .notification-trigger {
    position: absolute;
    top: 64px;
    right: 12px;
}

/* Rating Stars */
.rating-stars {
    display: flex;
    gap: 0.5rem;
    font-size: 1.5rem;
    color: var(--text-low);
    margin: 1rem 0;
}

.rating-stars i {
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
}

.rating-stars i:hover {
    transform: scale(1.2);
    color: var(--warning);
}

.rating-stars i.fas {
    color: var(--warning);
}

/* Users View */
.user-cell {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.avatar-small {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent-indigo);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.8rem;
}

.text-xs {
    font-size: 0.75rem;
}

.text-warning {
    color: var(--warning);
}

/* Company Cards Grid */
.company-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.25rem;
    padding: 0;
}

.company-card {
    padding: 1.25rem;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.company-card:hover {
    transform: translateY(-2px);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.15);
}

.company-card-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.badge-small {
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 12px;
}

/* Modal max-height for scrolling */
.modal-body {
    max-height: 70vh;
    overflow-y: auto;
}

/* Detail tabs */
.tab-btn-detail {
    background: transparent;
    border: none;
    color: var(--text-low);
    padding: 8px 16px;
    cursor: pointer;
    font-size: 0.85rem;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}
.tab-btn-detail:hover {
    color: var(--text-high);
}
.tab-btn-detail.active {
    color: var(--accent-indigo);
    border-bottom-color: var(--accent-indigo);
}

.detail-tab-content {
    max-height: 55vh;
    overflow-y: auto;
}

.sub-card:hover {
    border-color: rgba(99, 102, 241, 0.3) !important;
}

.urgent {
    color: #f59e0b !important;
}

/* SLA ticket colors */
.sla-overdue {
    background: rgba(239, 68, 68, 0.08) !important;
    border-left: 3px solid #ef4444 !important;
}
.sla-urgent {
    background: rgba(245, 158, 11, 0.06) !important;
    border-left: 3px solid #f59e0b !important;
}
.sla-warning {
    background: rgba(245, 158, 11, 0.03) !important;
    border-left: 3px solid #eab308 !important;
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-icon input {
    width: 100%;
    padding-right: 2.5rem;
}

.toggle-password {
    position: absolute;
    right: 0.75rem;
    cursor: pointer;
    color: var(--text-low);
    transition: color 0.2s;
}

.toggle-password:hover {
    color: var(--accent-indigo);
}

.password-text {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.85rem;
}

/* ========================================
   MODERN UX OVERHAUL — v2.0
   ======================================== */

/* ── Sidebar ── */
.sidebar {
    background: linear-gradient(180deg, #0f0f12 0%, #131318 100%);
    border-right: 1px solid rgba(99, 102, 241, 0.08);
}

.sidebar-brand {
    background: linear-gradient(90deg, rgba(99,102,241,0.08) 0%, transparent 100%);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon-small {
    font-size: 1.5rem;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sidebar-text {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    background: linear-gradient(90deg, #e0e7ff, #6366f1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.side-link {
    position: relative;
    overflow: hidden;
    padding: 0.65rem 0.85rem;
    border-radius: 10px;
    font-size: 0.82rem;
    letter-spacing: 0.02em;
}

.side-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: linear-gradient(180deg, #6366f1, #8b5cf6);
    border-radius: 0 3px 3px 0;
    transition: height 0.2s ease;
}

.side-link:hover::before,
.side-link.active::before {
    height: 60%;
}

.side-link.active {
    background: linear-gradient(90deg, rgba(99,102,241,0.15) 0%, rgba(99,102,241,0.03) 100%);
    color: #c7d2fe;
}

.side-link.active i {
    color: #818cf8;
}

/* ── Stat Cards ── */
.stat-card {
    position: relative;
    overflow: hidden;
    border-radius: 16px !important;
    padding: 1.5rem !important;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s ease;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -20%;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    opacity: 0.07;
    transition: opacity 0.3s, transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.stat-card:hover::before {
    opacity: 0.12;
    transform: scale(1.2);
}

.stat-card.accent-blue::before { background: #3b82f6; }
.stat-card.accent-green::before { background: #10b981; }
.stat-card.accent-purple::before { background: #8b5cf6; }
.stat-card.accent-orange::before { background: #f59e0b; }

.stat-card h3 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-card p {
    font-size: 0.8rem;
    color: var(--text-low);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-icon {
    font-size: 1.8rem;
    opacity: 0.8;
}

/* ── Ticket Cards ── */
.ticket-card {
    padding: 0.85rem 1rem !important;
    border-radius: 10px;
    margin-bottom: 2px;
    background: transparent;
    border: 1px solid transparent;
}

.ticket-card:hover {
    background: rgba(99, 102, 241, 0.04) !important;
    border-color: rgba(99, 102, 241, 0.15) !important;
}

.ticket-list-header {
    font-weight: 600 !important;
    letter-spacing: 0.06em !important;
    border-radius: 10px 10px 0 0 !important;
}

.ticket-id-tag {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-indigo);
    background: rgba(99, 102, 241, 0.08);
    padding: 2px 8px;
    border-radius: 6px;
}

.ticket-title {
    font-weight: 500;
    font-size: 0.88rem;
}

/* ── Page Headers ── */
.page-header {
    padding: 1.5rem 0 !important;
    margin-bottom: 1.5rem;
}

.page-header h2 {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    background: linear-gradient(90deg, var(--text-high), var(--accent-indigo));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-header p {
    color: var(--text-low);
    font-size: 0.85rem;
    margin-top: 0.15rem;
}

/* ── Buttons ── */
.btn-primary {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%) !important;
    border-radius: 10px !important;
    font-weight: 600 !important;
    letter-spacing: 0.01em;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3), inset 0 1px 0 rgba(255,255,255,0.1) !important;
}

.btn-primary:hover {
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.5), inset 0 1px 0 rgba(255,255,255,0.15) !important;
}

.btn-outline {
    background: rgba(99, 102, 241, 0.06) !important;
    border: 1px solid rgba(99, 102, 241, 0.25) !important;
    border-radius: 10px !important;
    color: #a5b4fc !important;
    font-weight: 500 !important;
}

.btn-outline:hover {
    background: rgba(99, 102, 241, 0.12) !important;
    border-color: rgba(99, 102, 241, 0.4) !important;
    color: #c7d2fe !important;
}

.btn-danger {
    background: rgba(239, 68, 68, 0.1) !important;
    border: 1px solid rgba(239, 68, 68, 0.25) !important;
    border-radius: 10px !important;
    color: #fca5a5 !important;
}

.btn-danger:hover {
    background: rgba(239, 68, 68, 0.2) !important;
    border-color: rgba(239, 68, 68, 0.4) !important;
}

.btn-small {
    padding: 0.4rem 0.85rem;
    font-size: 0.8rem;
    border-radius: 8px;
}

.btn-icon {
    background: rgba(255,255,255,0.04);
    border: 1px solid transparent;
    border-radius: 10px;
    padding: 0.5rem 0.75rem;
    transition: all 0.15s ease;
}

.btn-icon:hover {
    background: rgba(99,102,241,0.1);
    border-color: rgba(99,102,241,0.2);
}

/* ── Badges ── */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.badge-new, .badge-новый { background: rgba(59,130,246,0.12); color: #60a5fa; border: 1px solid rgba(59,130,246,0.2); }
.badge-progress, .badge-yellow, .badge-в_работе { background: rgba(245,158,11,0.12); color: #fbbf24; border: 1px solid rgba(245,158,11,0.2); }
.badge-green, .badge-resolved, .badge-решён { background: rgba(16,185,129,0.12); color: #34d399; border: 1px solid rgba(16,185,129,0.2); }
.badge-closed, .badge-gray, .badge-закрыт { background: rgba(113,113,122,0.12); color: #a1a1aa; border: 1px solid rgba(113,113,122,0.2); }
.badge-purple, .badge-ожидание { background: rgba(139,92,246,0.12); color: #a78bfa; border: 1px solid rgba(139,92,246,0.2); }
.badge-red, .badge-critical { background: rgba(239,68,68,0.12); color: #f87171; border: 1px solid rgba(239,68,68,0.2); }

/* ── Forms ── */
.form-group input,
.form-group textarea,
.form-group select {
    background: rgba(255,255,255,0.04) !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    border-radius: 10px !important;
    padding: 0.75rem 1rem !important;
    color: var(--text-high) !important;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: rgba(99,102,241,0.5) !important;
    box-shadow: 0 0 0 3px rgba(99,102,241,0.1) !important;
    background: rgba(255,255,255,0.06) !important;
}

.form-group label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-low);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.35rem;
}

/* ── Modals ── */
.modal-header {
    border-bottom: 1px solid rgba(99,102,241,0.1);
    padding: 1.25rem 1.5rem;
}

.modal-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.btn-close {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255,255,255,0.05);
    border: none;
    color: var(--text-low);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-close:hover {
    background: rgba(239,68,68,0.15);
    color: #f87171;
}

.modal-footer {
    padding-top: 1rem;
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    border-top: 1px solid rgba(99,102,241,0.06);
}

/* ── Company Cards ── */
.company-card {
    border: 1px solid rgba(99,102,241,0.06);
    border-radius: 16px !important;
    padding: 1.25rem;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.company-card:hover {
    border-color: rgba(99,102,241,0.2) !important;
    box-shadow: 0 8px 32px rgba(99,102,241,0.08);
    transform: translateY(-2px);
}

.company-logo {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 700;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    flex-shrink: 0;
}

/* ── Company Cards Grid ── */
.company-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 1.25rem;
}

/* ── Tab Buttons ── */
.tab-btn-detail {
    background: transparent;
    border: none;
    color: var(--text-low);
    padding: 8px 18px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
    border-radius: 8px 8px 0 0;
}

.tab-btn-detail:hover {
    color: var(--text-high);
    background: rgba(99,102,241,0.05);
}

.tab-btn-detail.active {
    color: #a5b4fc;
    border-bottom-color: #6366f1;
    background: rgba(99,102,241,0.08);
}

/* ── Dashboard Grid ── */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid rgba(0,212,255,0.1);
    border-radius: var(--radius);
    padding: 1.75rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--grad-cyan);
    opacity: 0;
    transition: opacity 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0,212,255,0.3);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4), var(--glow-cyan);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-card .stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1rem;
    background: rgba(0,212,255,0.1);
    border: 1px solid rgba(0,212,255,0.2);
    transition: all 0.3s;
}

.stat-card:hover .stat-icon {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 0 30px rgba(0,212,255,0.3);
}

.stat-card.accent-blue .stat-icon { background: rgba(0,212,255,0.1); border-color: rgba(0,212,255,0.2); }
.stat-card.accent-green .stat-icon { background: rgba(16,185,129,0.1); border-color: rgba(16,185,129,0.2); }
.stat-card.accent-purple .stat-icon { background: rgba(124,58,237,0.1); border-color: rgba(124,58,237,0.2); }
.stat-card.accent-orange .stat-icon { background: rgba(245,158,11,0.1); border-color: rgba(245,158,11,0.2); }

.stat-card h3 {
    font-family: 'Jost', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(180deg, #fff, var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-card p {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 0.5rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.dashboard-grid.triple {
    grid-template-columns: 1fr 1fr 1fr;
}

@media (max-width: 1024px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .dashboard-grid, .dashboard-grid.triple { grid-template-columns: 1fr; }
    .company-cards-grid { grid-template-columns: 1fr; }
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(99,102,241,0.2);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(99,102,241,0.4);
}

/* ── Tab Buttons (dashboard) ── */
.tab-btn {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--prism-border);
    color: var(--text-low);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 500;
    transition: all 0.15s ease;
}

.tab-btn:hover {
    background: rgba(99,102,241,0.08);
    color: var(--text-med);
}

.tab-btn.active {
    background: linear-gradient(135deg, rgba(99,102,241,0.15), rgba(139,92,246,0.1));
    border-color: rgba(99,102,241,0.3);
    color: #a5b4fc;
}

/* ── Section Headers ── */
.dynamic-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

/* ── Search Bar ── */
.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input-wrapper i {
    position: absolute;
    left: 1rem;
    color: var(--text-low);
    font-size: 0.85rem;
}

.search-input-wrapper input {
    padding-left: 2.5rem !important;
}

/* ── Refresh Animation ── */
@keyframes spin-once {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.btn-icon.spinning i {
    animation: spin-once 0.6s ease-in-out;
}

/* ── Notification Badge ── */
.notification-trigger {
    display: none !important;
}

.notification-trigger:hover {
    background: rgba(255,255,255,0.05);
}

.notification-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: #ef4444;
    color: white;
    font-size: 0.6rem;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* ── Data Table ── */
.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.data-table th {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-low);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--prism-border);
}

.data-table td {
    padding: 0.75rem 1rem;
    font-size: 0.88rem;
    border-bottom: 1px solid rgba(255,255,255,0.03);
}

.data-table tr:hover td {
    background: rgba(99,102,241,0.03);
}

/* ── Loading & Empty State ── */
.loading, .text-muted {
    color: var(--text-low);
    text-align: center;
    padding: 2rem;
    font-size: 0.9rem;
}

/* ── Rating Stars ── */
.rating-stars {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    padding: 1rem;
}

.rating-stars i {
    font-size: 2rem;
    color: var(--text-low);
    cursor: pointer;
    transition: all 0.15s ease;
}

.rating-stars i:hover,
.rating-stars i.active {
    color: #fbbf24;
    transform: scale(1.15);
}

/* ── Timeline ── */
.timeline-compact {
    max-height: 200px;
    overflow-y: auto;
}

.timeline-event {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    font-size: 0.85rem;
}

/* ── Toast ── */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    padding: 0.85rem 1.25rem;
    border-radius: 12px;
    font-weight: 500;
    font-size: 0.88rem;
    z-index: 10000;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    backdrop-filter: blur(12px);
}

.toast.success {
    background: rgba(16,185,129,0.15);
    border: 1px solid rgba(16,185,129,0.3);
    color: #6ee7b7;
}

.toast.error {
    background: rgba(239,68,68,0.15);
    border: 1px solid rgba(239,68,68,0.3);
    color: #fca5a5;
}

.toast.warning {
    background: rgba(245,158,11,0.15);
    border: 1px solid rgba(245,158,11,0.3);
    color: #fcd34d;
}

.toast.info {
    background: rgba(59,130,246,0.15);
    border: 1px solid rgba(59,130,246,0.3);
    color: #93c5fd;
}

/* ── Avatar small ── */
.avatar-small {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.8rem;
    flex-shrink: 0;
}

/* ── User cell ── */
.user-cell {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.font-medium {
    font-weight: 500;
}

/* ── SLA deadline ── */
.sla-deadline {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    background: rgba(59,130,246,0.1);
    color: #60a5fa;
}

/* ── Info Group (ticket detail) ── */
.info-group {
    margin-bottom: 1rem;
}

.info-group label {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-low);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.35rem;
}

.modal-body {
    max-height: 70vh;
    overflow-y: auto;
    padding: 1.25rem 1.5rem;
}

/* ================================================
   TICKET CREATOR — MODERN FORM v2.0
   ================================================ */

.ticket-creator-container {
    max-width: 800px;
    margin: 0 auto;
}

.creator-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(0,212,255,0.1) 0%, rgba(124,58,237,0.1) 100%);
    border-radius: 24px;
    border: 1px solid rgba(0,212,255,0.2);
    position: relative;
    overflow: hidden;
}

.creator-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0,212,255,0.1) 0%, transparent 50%);
    animation: pulse 4s ease-in-out infinite;
}

.creator-header-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, 
        rgba(0,212,255,0.05) 0%, 
        rgba(124,58,237,0.03) 100%);
    border: 1px solid rgba(0,212,255,0.1);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
}

.creator-header-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, var(--jarvis-cyan), var(--jarvis-violet));
    opacity: 0.6;
}

.creator-icon {
    position: relative;
    width: 70px;
    height: 70px;
    border-radius: 20px;
    background: linear-gradient(135deg, 
        rgba(0,212,255,0.3) 0%, 
        rgba(124,58,237,0.2) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--jarvis-cyan);
    border: 2px solid rgba(0,212,255,0.3);
    box-shadow: 
        0 0 30px rgba(0,212,255,0.2),
        inset 0 1px 0 rgba(255,255,255,0.1);
    transition: all 0.4s;
}

.creator-header:hover .creator-icon {
    transform: scale(1.05) rotate(5deg);
    box-shadow: 
        0 0 40px rgba(0,212,255,0.3),
        inset 0 1px 0 rgba(255,255,255,0.1);
}

.creator-icon-glow {
    position: absolute;
    inset: -5px;
    border-radius: 25px;
    background: linear-gradient(135deg, var(--jarvis-cyan), var(--jarvis-violet), var(--jarvis-rose));
    opacity: 0.3;
    filter: blur(20px);
    z-index: -1;
    animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.1); }
}

.creator-icon-glow {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0,212,255,0.3) 0%, transparent 70%);
    animation: iconGlow 2s ease-in-out infinite;
}

@keyframes iconGlow {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

.creator-header h2 {
    font-family: 'Jost', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff, var(--jarvis-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.creator-header p {
    color: var(--text-tertiary);
    font-size: 1.1rem;
}

/* Steps */
.creator-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.step {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-tertiary);
    font-size: 0.9rem;
    font-weight: 500;
}

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    border: 2px solid var(--text-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    transition: all 0.3s;
}

.step.active {
    color: var(--jarvis-cyan);
}

.step.active .step-number {
    background: rgba(0,212,255,0.2);
    border-color: var(--jarvis-cyan);
    box-shadow: 0 0 15px rgba(0,212,255,0.3);
}

.step-line {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--text-tertiary), transparent);
    opacity: 0.3;
}

/* ============================================
   JARVIS TICKET CREATOR - FUTURISTIC FORM
   ============================================ */

.creator-card {
    background: 
        linear-gradient(135deg, rgba(8,12,24,0.95) 0%, rgba(5,8,16,0.98) 50%, rgba(8,12,24,0.95) 100%);
    border: 1px solid;
    border-image: linear-gradient(135deg, 
        rgba(0,212,255,0.4) 0%, 
        rgba(124,58,237,0.3) 50%, 
        rgba(244,63,94,0.2) 100%) 1;
    border-radius: 20px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 0 60px rgba(0,212,255,0.1),
        inset 0 1px 0 rgba(255,255,255,0.05);
    backdrop-filter: blur(20px);
}

/* Holographic Corner Accents */
.creator-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100px;
    height: 100px;
    border-top: 2px solid var(--jarvis-cyan);
    border-left: 2px solid var(--jarvis-cyan);
    border-radius: 20px 0 0 0;
    opacity: 0.6;
}

.creator-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100px;
    height: 100px;
    border-bottom: 2px solid var(--jarvis-rose);
    border-right: 2px solid var(--jarvis-rose);
    border-radius: 0 0 20px 0;
    opacity: 0.6;
}

/* Scan Line Animation */
.creator-card .scan-line {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--jarvis-cyan) 50%, 
        transparent 100%);
    opacity: 0;
    animation: scanLine 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes scanLine {
    0%, 100% { 
        top: 0; 
        opacity: 0;
    }
    10% { 
        opacity: 0.6;
    }
    90% { 
        opacity: 0.6;
    }
    100% { 
        top: 100%; 
        opacity: 0;
    }
}

/* Form Sections - Holographic Panels */
.form-section {
    margin-bottom: 2.5rem;
    position: relative;
    padding: 1.5rem;
    background: rgba(0,212,255,0.02);
    border: 1px solid rgba(0,212,255,0.08);
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-section:hover {
    background: rgba(0,212,255,0.04);
    border-color: rgba(0,212,255,0.15);
    box-shadow: 0 0 30px rgba(0,212,255,0.08);
}

.section-label {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-family: 'Jost', sans-serif;
}

.section-label i {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(0,212,255,0.15) 0%, rgba(124,58,237,0.1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--jarvis-cyan);
    font-size: 1rem;
    border: 1px solid rgba(0,212,255,0.2);
    box-shadow: 0 0 15px rgba(0,212,255,0.2);
    transition: all 0.3s;
}

.form-section:hover .section-label i {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 25px rgba(0,212,255,0.4);
}

/* Cyberpunk Floating Inputs */
.floating-input-group,
.floating-textarea-group {
    position: relative;
}

.floating-input-group input,
.floating-textarea-group textarea {
    width: 100%;
    padding: 1.5rem 1.25rem 0.75rem;
    background: 
        linear-gradient(135deg, rgba(0,0,0,0.4) 0%, rgba(10,15,30,0.3) 100%);
    border: 2px solid transparent;
    border-radius: 14px;
    color: var(--text-primary);
    font-size: 1.05rem;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

/* Animated Border Gradient */
.floating-input-group::before,
.floating-textarea-group::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 14px;
    padding: 2px;
    background: linear-gradient(135deg, 
        rgba(0,212,255,0.3) 0%, 
        rgba(124,58,237,0.2) 50%, 
        rgba(244,63,94,0.1) 100%);
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.floating-input-group:hover::before,
.floating-textarea-group:hover::before {
    opacity: 0.8;
}

.floating-input-group input:focus,
.floating-textarea-group textarea:focus {
    background: 
        linear-gradient(135deg, rgba(0,212,255,0.08) 0%, rgba(10,15,30,0.4) 100%);
    box-shadow: 
        0 0 0 1px rgba(0,212,255,0.3),
        0 0 30px rgba(0,212,255,0.15),
        inset 0 1px 0 rgba(255,255,255,0.05);
}

.floating-input-group input:focus::before,
.floating-textarea-group textarea:focus::before {
    opacity: 1;
    background: linear-gradient(135deg, 
        var(--jarvis-cyan) 0%, 
        var(--jarvis-violet) 50%, 
        var(--jarvis-rose) 100%);
}

.floating-input-group label,
.floating-textarea-group label {
    position: absolute;
    left: 1.25rem;
    top: 1.15rem;
    color: var(--text-tertiary);
    font-size: 1.05rem;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Inter', sans-serif;
}

.floating-input-group input:focus + label,
.floating-input-group input:not(:placeholder-shown) + label,
.floating-textarea-group textarea:focus + label,
.floating-textarea-group textarea:not(:placeholder-shown) + label {
    top: 0.35rem;
    font-size: 0.75rem;
    color: var(--jarvis-cyan);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Input Focus Glow Animation */
.floating-input-group input:focus,
.floating-textarea-group textarea:focus {
    animation: inputGlow 2s ease-in-out infinite alternate;
}

@keyframes inputGlow {
    from {
        box-shadow: 
            0 0 0 1px rgba(0,212,255,0.3),
            0 0 20px rgba(0,212,255,0.1);
    }
    to {
        box-shadow: 
            0 0 0 1px rgba(0,212,255,0.5),
            0 0 40px rgba(0,212,255,0.2);
    }
}

.floating-textarea-group textarea {
    resize: vertical;
    min-height: 140px;
    line-height: 1.6;
}

/* ============================================
   HOLOGRAPHIC PRIORITY SELECTOR
   ============================================ */

.priority-selector {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.priority-card {
    position: relative;
    cursor: pointer;
    perspective: 1000px;
}

.priority-card input {
    position: absolute;
    opacity: 0;
}

.priority-content {
    padding: 1.5rem 1rem;
    background: linear-gradient(145deg, 
        rgba(255,255,255,0.03) 0%, 
        rgba(255,255,255,0.01) 100%);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}

/* Holographic Sheen Effect */
.priority-content::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255,255,255,0.03) 50%,
        transparent 70%
    );
    transform: rotate(30deg);
    transition: all 0.6s;
    opacity: 0;
}

.priority-card:hover .priority-content::before {
    animation: sheen 0.8s ease-in-out;
}

@keyframes sheen {
    0% { transform: translateX(-100%) rotate(30deg); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateX(100%) rotate(30deg); opacity: 0; }
}

.priority-card:hover .priority-content {
    transform: translateY(-4px) rotateX(5deg);
    border-color: rgba(255,255,255,0.2);
}

/* Priority-specific Glow Effects */
.priority-card[data-priority="low"] .priority-content:hover {
    box-shadow: 0 10px 40px rgba(16,185,129,0.2);
    border-color: rgba(16,185,129,0.4);
}

.priority-card[data-priority="medium"] .priority-content:hover {
    box-shadow: 0 10px 40px rgba(59,130,246,0.2);
    border-color: rgba(59,130,246,0.4);
}

.priority-card[data-priority="high"] .priority-content:hover {
    box-shadow: 0 10px 40px rgba(245,158,11,0.25);
    border-color: rgba(245,158,11,0.5);
}

.priority-card[data-priority="critical"] .priority-content:hover {
    box-shadow: 0 10px 40px rgba(244,63,94,0.3);
    border-color: rgba(244,63,94,0.5);
    animation: criticalPulse 1.5s ease-in-out infinite;
}

@keyframes criticalPulse {
    0%, 100% { box-shadow: 0 10px 40px rgba(244,63,94,0.3); }
    50% { box-shadow: 0 10px 50px rgba(244,63,94,0.5); }
}

/* Selected State */
.priority-card input:checked + .priority-content {
    border-width: 2px;
    transform: translateY(-2px) scale(1.02);
}

.priority-card[data-priority="low"] input:checked + .priority-content {
    border-color: #10b981;
    background: linear-gradient(145deg, 
        rgba(16,185,129,0.15) 0%, 
        rgba(16,185,129,0.05) 100%);
    box-shadow: 
        0 0 30px rgba(16,185,129,0.3),
        inset 0 1px 0 rgba(255,255,255,0.1);
}

.priority-card[data-priority="medium"] input:checked + .priority-content {
    border-color: #3b82f6;
    background: linear-gradient(145deg, 
        rgba(59,130,246,0.15) 0%, 
        rgba(59,130,246,0.05) 100%);
    box-shadow: 
        0 0 30px rgba(59,130,246,0.3),
        inset 0 1px 0 rgba(255,255,255,0.1);
}

.priority-card[data-priority="high"] input:checked + .priority-content {
    border-color: #f59e0b;
    background: linear-gradient(145deg, 
        rgba(245,158,11,0.15) 0%, 
        rgba(245,158,11,0.05) 100%);
    box-shadow: 
        0 0 30px rgba(245,158,11,0.3),
        inset 0 1px 0 rgba(255,255,255,0.1);
}

.priority-card[data-priority="critical"] input:checked + .priority-content {
    border-color: #f43f5e;
    background: linear-gradient(145deg, 
        rgba(244,63,94,0.2) 0%, 
        rgba(244,63,94,0.08) 100%);
    box-shadow: 
        0 0 40px rgba(244,63,94,0.4),
        inset 0 1px 0 rgba(255,255,255,0.1);
    animation: selectedCritical 2s ease-in-out infinite;
}

@keyframes selectedCritical {
    0%, 100% { 
        box-shadow: 0 0 40px rgba(244,63,94,0.4);
    }
    50% { 
        box-shadow: 0 0 60px rgba(244,63,94,0.6);
    }
}

/* Priority Icons - Holographic Circles */
.priority-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.3rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.priority-icon::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent, currentColor, transparent);
    opacity: 0;
    transition: opacity 0.3s;
    animation: rotateBorder 3s linear infinite;
}

.priority-card:hover .priority-icon::before,
.priority-card input:checked + .priority-content .priority-icon::before {
    opacity: 0.5;
}

@keyframes rotateBorder {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.priority-icon.low {
    background: radial-gradient(circle at 30% 30%, rgba(16,185,129,0.3), rgba(16,185,129,0.1));
    color: #34d399;
    border: 2px solid rgba(16,185,129,0.3);
    box-shadow: 0 0 20px rgba(16,185,129,0.2);
}

.priority-icon.medium {
    background: radial-gradient(circle at 30% 30%, rgba(59,130,246,0.3), rgba(59,130,246,0.1));
    color: #60a5fa;
    border: 2px solid rgba(59,130,246,0.3);
    box-shadow: 0 0 20px rgba(59,130,246,0.2);
}

.priority-icon.high {
    background: radial-gradient(circle at 30% 30%, rgba(245,158,11,0.3), rgba(245,158,11,0.1));
    color: #fbbf24;
    border: 2px solid rgba(245,158,11,0.3);
    box-shadow: 0 0 20px rgba(245,158,11,0.2);
}

.priority-icon.critical {
    background: radial-gradient(circle at 30% 30%, rgba(244,63,94,0.4), rgba(244,63,94,0.1));
    color: #f87171;
    border: 2px solid rgba(244,63,94,0.4);
    box-shadow: 0 0 25px rgba(244,63,94,0.3);
}

.priority-card:hover .priority-icon,
.priority-card input:checked + .priority-content .priority-icon {
    transform: scale(1.15);
}

.priority-card input:checked + .priority-content .priority-icon {
    box-shadow: 0 0 30px currentColor;
}

/* Priority Text */
.priority-name {
    display: block;
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 0.35rem;
    font-family: 'Jost', sans-serif;
    letter-spacing: 0.5px;
}

.priority-desc {
    display: block;
    font-size: 0.8rem;
    color: var(--text-tertiary);
    font-weight: 500;
}

.priority-card input:checked + .priority-content .priority-name {
    color: var(--text-primary);
    text-shadow: 0 0 10px currentColor;
}

/* ============================================
   FORM ROWS & SELECTORS - CYBERPUNK STYLE
   ============================================ */

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

/* Datetime Input - Tech Style */
.datetime-input-wrapper {
    position: relative;
}

.datetime-input-wrapper input {
    width: 100%;
    padding: 1.25rem 1.25rem 1.25rem 3.5rem;
    background: linear-gradient(135deg, rgba(0,0,0,0.4) 0%, rgba(10,15,30,0.3) 100%);
    border: 2px solid rgba(0,212,255,0.15);
    border-radius: 14px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: 'JetBrains Mono', monospace;
    outline: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.datetime-input-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 14px;
    padding: 2px;
    background: linear-gradient(135deg, 
        rgba(0,212,255,0.3) 0%, 
        rgba(124,58,237,0.2) 100%);
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.5;
    pointer-events: none;
}

.datetime-input-wrapper i {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--jarvis-cyan);
    font-size: 1.2rem;
    z-index: 1;
    text-shadow: 0 0 10px rgba(0,212,255,0.5);
}

.datetime-input-wrapper input:focus {
    border-color: rgba(0,212,255,0.4);
    background: linear-gradient(135deg, rgba(0,212,255,0.08) 0%, rgba(10,15,30,0.4) 100%);
    box-shadow: 0 0 30px rgba(0,212,255,0.15);
}

/* Styled Select - Tech Dropdown */
.styled-select {
    width: 100%;
    padding: 1.25rem;
    background: linear-gradient(135deg, rgba(0,0,0,0.4) 0%, rgba(10,15,30,0.3) 100%);
    border: 2px solid rgba(0,212,255,0.15);
    border-radius: 14px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    outline: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2300d4ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.25rem;
    padding-right: 3rem;
}

.styled-select:focus {
    border-color: rgba(0,212,255,0.4);
    background: linear-gradient(135deg, rgba(0,212,255,0.08) 0%, rgba(10,15,30,0.4) 100%);
    box-shadow: 0 0 30px rgba(0,212,255,0.15);
}

.styled-select option {
    background: rgba(10,15,30,0.95);
    color: var(--text-primary);
    padding: 0.75rem;
}

/* ============================================
   SUBMIT BUTTON - JARVIS STYLE
   ============================================ */

.creator-submit-btn {
    width: 100%;
    padding: 1.25rem 2rem;
    background: linear-gradient(135deg, 
        rgba(0,212,255,0.2) 0%, 
        rgba(124,58,237,0.2) 50%,
        rgba(244,63,94,0.15) 100%);
    border: 2px solid;
    border-image: linear-gradient(135deg, 
        var(--jarvis-cyan) 0%, 
        var(--jarvis-violet) 50%,
        var(--jarvis-rose) 100%) 1;
    border-radius: 14px;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 700;
    font-family: 'Jost', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.creator-submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255,255,255,0.1) 50%, 
        transparent 100%);
    transition: left 0.6s;
}

.creator-submit-btn:hover::before {
    left: 100%;
}

.creator-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 10px 40px rgba(0,212,255,0.3),
        0 0 60px rgba(124,58,237,0.2);
    background: linear-gradient(135deg, 
        rgba(0,212,255,0.3) 0%, 
        rgba(124,58,237,0.25) 50%,
        rgba(244,63,94,0.2) 100%);
}

.creator-submit-btn:active {
    transform: translateY(0);
}

.creator-submit-btn i {
    font-size: 1.2rem;
    animation: pulseIcon 2s ease-in-out infinite;
}

@keyframes pulseIcon {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.creator-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ============================================
   FORM HEADER - JARVIS STYLE
   ============================================ */

.creator-header {
    text-align: center;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(0,212,255,0.1);
    position: relative;
}

.creator-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 25%;
    right: 25%;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--jarvis-cyan) 50%, 
        transparent 100%);
}

.creator-header h2 {
    font-family: 'Jost', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--jarvis-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.creator-header p {
    color: var(--text-tertiary);
    font-size: 0.95rem;
}

/* Tech Decoration Lines */
.creator-card .tech-line {
    position: absolute;
    background: linear-gradient(90deg, transparent, var(--jarvis-cyan), transparent);
    opacity: 0.3;
}

.creator-card .tech-line.top {
    top: 60px;
    left: 20px;
    right: 20px;
    height: 1px;
}

.creator-card .tech-line.bottom {
    bottom: 80px;
    left: 20px;
    right: 20px;
    height: 1px;
}

/* ============================================
   FILE DROP ZONE - HOLOGRAPHIC UPLOAD
   ============================================ */

.file-drop-zone {
    padding: 2.5rem 2rem;
    background: linear-gradient(145deg, 
        rgba(0,212,255,0.03) 0%, 
        rgba(124,58,237,0.02) 100%);
    border: 2px dashed rgba(0,212,255,0.2);
    border-radius: 16px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

/* Animated Border Pattern */
.file-drop-zone::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(0,212,255,0.02) 10px,
        rgba(0,212,255,0.02) 20px
    );
    animation: patternMove 20s linear infinite;
    opacity: 0;
    transition: opacity 0.3s;
}

@keyframes patternMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.file-drop-zone:hover::before,
.file-drop-zone.drag-over::before {
    opacity: 1;
}

.file-drop-zone:hover,
.file-drop-zone.drag-over {
    border-color: var(--jarvis-cyan);
    border-style: solid;
    background: linear-gradient(145deg, 
        rgba(0,212,255,0.08) 0%, 
        rgba(124,58,237,0.05) 100%);
    box-shadow: 
        0 0 40px rgba(0,212,255,0.15),
        inset 0 0 30px rgba(0,212,255,0.05);
}

.file-drop-zone.drag-over {
    transform: scale(1.02);
    animation: dropPulse 1.5s ease-in-out infinite;
}

@keyframes dropPulse {
    0%, 100% { 
        box-shadow: 0 0 40px rgba(0,212,255,0.15);
    }
    50% { 
        box-shadow: 0 0 60px rgba(0,212,255,0.25);
    }
}

/* Holographic Upload Icon */
.drop-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(145deg, 
        rgba(0,212,255,0.15) 0%, 
        rgba(124,58,237,0.1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    font-size: 2rem;
    color: var(--jarvis-cyan);
    border: 2px solid rgba(0,212,255,0.3);
    box-shadow: 
        0 0 30px rgba(0,212,255,0.2),
        inset 0 0 20px rgba(0,212,255,0.1);
    position: relative;
    animation: floatHologram 3s ease-in-out infinite;
}

.drop-icon::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, 
        transparent 0deg, 
        var(--jarvis-cyan) 60deg, 
        var(--jarvis-violet) 180deg, 
        transparent 240deg);
    opacity: 0.3;
    animation: rotateGlow 4s linear infinite;
    z-index: -1;
}

@keyframes rotateGlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes floatHologram {
    0%, 100% { 
        transform: translateY(0);
        box-shadow: 0 0 30px rgba(0,212,255,0.2);
    }
    50% { 
        transform: translateY(-12px);
        box-shadow: 0 15px 40px rgba(0,212,255,0.3);
    }
}

.file-drop-zone:hover .drop-icon,
.file-drop-zone.drag-over .drop-icon {
    transform: scale(1.1);
    animation: none;
}

.drop-text {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.drop-text span {
    color: var(--jarvis-cyan);
    font-weight: 700;
    cursor: pointer;
    position: relative;
    transition: all 0.3s;
}

.drop-text span::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--jarvis-cyan);
    transition: width 0.3s;
    box-shadow: 0 0 10px var(--jarvis-cyan);
}

.drop-text span:hover::after {
    width: 100%;
}

.drop-hint {
    color: var(--text-tertiary);
    font-size: 0.85rem;
    font-family: 'JetBrains Mono', monospace;
    opacity: 0.8;
}

/* Submit Section */
.form-submit-section {
    padding-top: 1rem;
}

/* File items */
.file-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(0,212,255,0.1);
    border: 1px solid rgba(0,212,255,0.2);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.file-item i {
    color: var(--jarvis-cyan);
}

.file-item small {
    color: var(--text-tertiary);
    font-size: 0.75rem;
}

/* Button loading state */
.btn-creator-submit.loading {
    opacity: 0.8;
    cursor: not-allowed;
}

/* Animation for view */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   JARVIS AUTH CARDS - FUTURISTIC LOGIN/REGISTER
   ============================================ */

.auth-card {
    width: 100%;
    max-width: 440px;
    padding: 3rem;
    background: linear-gradient(145deg, rgba(8,12,24,0.95) 0%, rgba(5,8,16,0.98) 50%, rgba(8,12,24,0.95) 100%);
    border: 1px solid;
    border-image: linear-gradient(135deg, rgba(0,212,255,0.4) 0%, rgba(124,58,237,0.3) 50%, rgba(244,63,94,0.2) 100%) 1;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 60px rgba(0,212,255,0.1), inset 0 1px 0 rgba(255,255,255,0.05);
    backdrop-filter: blur(20px);
}

/* Holographic Corner Accents */
.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 80px;
    height: 80px;
    border-top: 2px solid var(--jarvis-cyan);
    border-left: 2px solid var(--jarvis-cyan);
    border-radius: 24px 0 0 0;
    opacity: 0.6;
}

.auth-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 80px;
    height: 80px;
    border-bottom: 2px solid var(--jarvis-rose);
    border-right: 2px solid var(--jarvis-rose);
    border-radius: 0 0 24px 0;
    opacity: 0.6;
}

/* Scan Line Animation */
.auth-card .scan-line {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--jarvis-cyan), transparent);
    opacity: 0;
    animation: scanLine 4s ease-in-out infinite;
    pointer-events: none;
}

.auth-card .logo {
    position: relative;
    z-index: 1;
}

.auth-card .logo-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.auth-card .logo-icon::before {
    content: '';
    position: absolute;
    inset: -10px;
    background: linear-gradient(135deg, var(--jarvis-cyan), var(--jarvis-violet), var(--jarvis-rose));
    border-radius: 50%;
    opacity: 0.3;
    filter: blur(20px);
    animation: glowPulse 3s ease-in-out infinite;
    z-index: -1;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.1); }
}

.auth-card .logo h1 {
    font-family: 'Jost', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--jarvis-cyan) 50%, var(--jarvis-violet) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.auth-card .tagline {
    color: var(--text-tertiary);
    font-size: 0.95rem;
    font-weight: 500;
}

/* Cyberpunk Auth Form Inputs */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}

.auth-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.auth-form .form-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Jost', sans-serif;
}

.auth-form .form-group input {
    padding: 1.25rem 1.25rem;
    background: linear-gradient(135deg, rgba(0,0,0,0.4) 0%, rgba(10,15,30,0.3) 100%);
    border: 2px solid rgba(0,212,255,0.15);
    border-radius: 14px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.auth-form .form-group input:focus {
    border-color: rgba(0,212,255,0.4);
    background: linear-gradient(135deg, rgba(0,212,255,0.08) 0%, rgba(10,15,30,0.4) 100%);
    box-shadow: 0 0 30px rgba(0,212,255,0.15);
    animation: inputGlow 2s ease-in-out infinite alternate;
}

@keyframes inputGlow {
    from { box-shadow: 0 0 0 1px rgba(0,212,255,0.3), 0 0 20px rgba(0,212,255,0.1); }
    to { box-shadow: 0 0 0 1px rgba(0,212,255,0.5), 0 0 40px rgba(0,212,255,0.2); }
}

/* Auth Submit Button */
.auth-form .btn-primary {
    width: 100%;
    padding: 1.25rem 2rem;
    background: linear-gradient(135deg, rgba(0,212,255,0.2) 0%, rgba(124,58,237,0.2) 50%, rgba(244,63,94,0.15) 100%);
    border: 2px solid;
    border-image: linear-gradient(135deg, var(--jarvis-cyan) 0%, var(--jarvis-violet) 50%, var(--jarvis-rose) 100%) 1;
    border-radius: 14px;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 700;
    font-family: 'Jost', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 0.5rem;
}

.auth-form .btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.1) 50%, transparent 100%);
    transition: left 0.6s;
}

.auth-form .btn-primary:hover::before {
    left: 100%;
}

.auth-form .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(0,212,255,0.3), 0 0 60px rgba(124,58,237,0.2);
}

.auth-form .form-footer {
    text-align: center;
    margin-top: 1rem;
    color: var(--text-tertiary);
}

.auth-form .form-footer a {
    color: var(--jarvis-cyan);
    font-weight: 600;
    text-decoration: none;
    position: relative;
}

.auth-form .form-footer a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--jarvis-cyan);
    transition: width 0.3s;
    box-shadow: 0 0 10px var(--jarvis-cyan);
}

.auth-form .form-footer a:hover::after {
    width: 100%;
}

/* ============================================
   JARVIS DATA TABLES - HOLOGRAPHIC GRID
   ============================================ */

.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 1.5rem;
    background: linear-gradient(145deg, rgba(8,12,24,0.6) 0%, rgba(5,8,16,0.8) 100%);
    border: 1px solid rgba(0,212,255,0.1);
    border-radius: 16px;
    overflow: hidden;
}

.data-table thead {
    background: linear-gradient(135deg, rgba(0,212,255,0.1) 0%, rgba(124,58,237,0.05) 100%);
}

.data-table th {
    text-align: left;
    padding: 1.25rem 1rem;
    color: var(--jarvis-cyan);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-family: 'Jost', sans-serif;
    border-bottom: 2px solid rgba(0,212,255,0.2);
    position: relative;
}

.data-table th::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--jarvis-cyan), transparent);
    opacity: 0.5;
}

.data-table td {
    padding: 1.25rem 1rem;
    border-bottom: 1px solid rgba(0,212,255,0.05);
    font-size: 0.95rem;
    color: var(--text-secondary);
    transition: all 0.3s;
}

.data-table tbody tr {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.data-table tbody tr::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--jarvis-cyan), var(--jarvis-violet));
    opacity: 0;
    transition: opacity 0.3s;
}

.data-table tbody tr:hover {
    background: linear-gradient(90deg, rgba(0,212,255,0.05) 0%, rgba(124,58,237,0.03) 100%);
    transform: translateX(4px);
}

.data-table tbody tr:hover::before {
    opacity: 1;
}

.data-table tbody tr:hover td {
    color: var(--text-primary);
}

/* Table Action Buttons */
.data-table .btn-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(0,212,255,0.1);
    border: 1px solid rgba(0,212,255,0.2);
    color: var(--jarvis-cyan);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    margin-right: 0.5rem;
}

.data-table .btn-icon:hover {
    background: rgba(0,212,255,0.2);
    border-color: var(--jarvis-cyan);
    box-shadow: 0 0 15px rgba(0,212,255,0.3);
    transform: scale(1.1);
}

.data-table .btn-icon.delete {
    background: rgba(244,63,94,0.1);
    border-color: rgba(244,63,94,0.2);
    color: var(--jarvis-rose);
}

.data-table .btn-icon.delete:hover {
    background: rgba(244,63,94,0.2);
    border-color: var(--jarvis-rose);
    box-shadow: 0 0 15px rgba(244,63,94,0.3);
}

/* ============================================
   JARVIS MODALS - HOLOGRAPHIC WINDOWS
   ============================================ */

.modal-content {
    width: 100%;
    max-width: 650px;
    height: 100vh;
    background: linear-gradient(145deg, rgba(8,12,24,0.98) 0%, rgba(5,8,16,0.99) 50%, rgba(8,12,24,0.98) 100%);
    border-left: 2px solid var(--jarvis-cyan);
    border-radius: 0;
    padding: 2.5rem;
    position: relative;
    box-shadow: -20px 0 60px rgba(0,212,255,0.15);
    overflow-y: auto;
}

.modal-content *,
.modal-content *::before,
.modal-content *::after {
    animation: none !important;
    transition: none !important;
}

/* sideSheetIn keyframes removed */

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(0,212,255,0.1);
    position: relative;
}

.modal-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, var(--jarvis-cyan), var(--jarvis-violet));
}

.modal-header h2 {
    font-family: 'Jost', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--jarvis-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1px;
}

.btn-close {
    background: rgba(244,63,94,0.1);
    border: 1px solid rgba(244,63,94,0.3);
    color: var(--jarvis-rose);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.btn-close:hover {
    background: rgba(244,63,94,0.2);
    border-color: var(--jarvis-rose);
    box-shadow: 0 0 20px rgba(244,63,94,0.3);
    transform: rotate(90deg);
}

/* Modal Form Sections */
.modal-body .form-group {
    margin-bottom: 1.5rem;
}

.modal-body .form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Jost', sans-serif;
}

.modal-body .form-group input,
.modal-body .form-group select,
.modal-body .form-group textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, rgba(0,0,0,0.4) 0%, rgba(10,15,30,0.3) 100%);
    border: 2px solid rgba(0,212,255,0.15);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: all 0.4s;
}

.modal-body .form-group input:focus,
.modal-body .form-group select:focus,
.modal-body .form-group textarea:focus {
    border-color: rgba(0,212,255,0.4);
    background: linear-gradient(135deg, rgba(0,212,255,0.08) 0%, rgba(10,15,30,0.4) 100%);
    box-shadow: 0 0 30px rgba(0,212,255,0.15);
}

/* Modal Footer Buttons */
.modal-footer {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0,212,255,0.1);
}

.modal-footer .btn {
    padding: 0.875rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    font-family: 'Jost', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.modal-footer .btn-primary {
    background: linear-gradient(135deg, rgba(0,212,255,0.2) 0%, rgba(124,58,237,0.2) 100%);
    border: 2px solid rgba(0,212,255,0.4);
    color: var(--text-primary);
}

.modal-footer .btn-primary:hover {
    background: linear-gradient(135deg, rgba(0,212,255,0.3) 0%, rgba(124,58,237,0.3) 100%);
    border-color: var(--jarvis-cyan);
    box-shadow: 0 0 30px rgba(0,212,255,0.3);
    transform: translateY(-2px);
}

.modal-footer .btn-danger {
    background: linear-gradient(135deg, rgba(244,63,94,0.2) 0%, rgba(239,68,68,0.1) 100%);
    border: 2px solid rgba(244,63,94,0.4);
    color: var(--text-primary);
}

.modal-footer .btn-danger:hover {
    background: linear-gradient(135deg, rgba(244,63,94,0.3) 0%, rgba(239,68,68,0.2) 100%);
    border-color: var(--jarvis-rose);
    box-shadow: 0 0 30px rgba(244,63,94,0.3);
    transform: translateY(-2px);
}

.modal-footer .btn-text {
    background: transparent;
    border: 2px solid rgba(255,255,255,0.1);
    color: var(--text-secondary);
}

.modal-footer .btn-text:hover {
    border-color: rgba(255,255,255,0.3);
    color: var(--text-primary);
    background: rgba(255,255,255,0.05);
}

/* ============================================
   JARVIS GLASS CARDS - HOLOGRAPHIC PANELS
   ============================================ */

.glass-card {
    background: linear-gradient(145deg, rgba(19,19,32,0.6) 0%, rgba(10,10,16,0.8) 100%);
    border: 1px solid rgba(0,212,255,0.15);
    border-radius: 20px;
    padding: 1.5rem;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5), 0 0 0 1px rgba(0,212,255,0.05), inset 0 1px 0 rgba(255,255,255,0.05);
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--jarvis-cyan), transparent);
    opacity: 0.5;
}

.glass-card:hover {
    border-color: rgba(0,212,255,0.25);
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5), 0 0 30px rgba(0,212,255,0.1), inset 0 1px 0 rgba(255,255,255,0.05);
    transform: translateY(-2px);
}

/* Stat Cards with Accents */
.stat-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.75rem;
}

.stat-card.accent-blue {
    border-left: 3px solid var(--jarvis-cyan);
}

.stat-card.accent-green {
    border-left: 3px solid var(--jarvis-emerald);
}

.stat-card.accent-purple {
    border-left: 3px solid var(--jarvis-violet);
}

.stat-card.accent-amber {
    border-left: 3px solid var(--jarvis-amber);
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(0,212,255,0.15) 0%, rgba(124,58,237,0.1) 100%);
    border: 1px solid rgba(0,212,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--jarvis-cyan);
    box-shadow: 0 0 20px rgba(0,212,255,0.15);
    transition: all 0.3s;
}

.stat-card:hover .stat-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 30px rgba(0,212,255,0.25);
}

.stat-content h3 {
    font-family: 'Jost', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.stat-content p {
    color: var(--text-tertiary);
    font-size: 0.9rem;
    font-weight: 500;
}

/* ============================================
   JARVIS SIDEBAR - NAVIGATION PANEL
   ============================================ */

.sidebar {
    background: linear-gradient(180deg, rgba(8,12,24,0.95) 0%, rgba(5,8,16,0.98) 100%);
    border-right: 1px solid rgba(0,212,255,0.1);
    backdrop-filter: blur(20px);
}

.sidebar-brand {
    border-bottom: 1px solid rgba(0,212,255,0.1);
    position: relative;
}

.sidebar-brand::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20%;
    right: 20%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--jarvis-cyan), transparent);
    opacity: 0.5;
}

.sidebar-logo {
    font-family: 'Jost', sans-serif;
    font-weight: 700;
    letter-spacing: 1px;
}

.side-link {
    position: relative;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.side-link:hover,
.side-link.active {
    background: linear-gradient(90deg, rgba(0,212,255,0.1) 0%, transparent 100%);
    border-left-color: var(--jarvis-cyan);
}

.side-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 60%;
    background: linear-gradient(180deg, var(--jarvis-cyan), var(--jarvis-violet));
    opacity: 0;
    transition: all 0.3s;
    border-radius: 0 4px 4px 0;
}

.side-link.active::before {
    width: 3px;
    opacity: 1;
}

.side-link i {
    transition: all 0.3s;
}

.side-link:hover i,
.side-link.active i {
    color: var(--jarvis-cyan);
    transform: scale(1.1);
    text-shadow: 0 0 10px rgba(0,212,255,0.5);
}

/* ============================================
   JARVIS BUTTONS - TECH STYLE
   ============================================ */

.btn {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.6s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, rgba(0,212,255,0.2) 0%, rgba(124,58,237,0.2) 100%);
    border: 2px solid rgba(0,212,255,0.3);
    color: var(--text-primary);
}

.btn-primary:hover {
    background: linear-gradient(135deg, rgba(0,212,255,0.3) 0%, rgba(124,58,237,0.3) 100%);
    border-color: var(--jarvis-cyan);
    box-shadow: 0 0 30px rgba(0,212,255,0.25);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid rgba(0,212,255,0.3);
    color: var(--jarvis-cyan);
}

.btn-outline:hover {
    background: rgba(0,212,255,0.1);
    border-color: var(--jarvis-cyan);
    box-shadow: 0 0 20px rgba(0,212,255,0.2);
}

/* ============================================
   JARVIS PAGE HEADER
   ============================================ */

.page-header {
    margin-bottom: 2.5rem;
    position: relative;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(0,212,255,0.1);
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 120px;
    height: 2px;
    background: linear-gradient(90deg, var(--jarvis-cyan), var(--jarvis-violet));
    box-shadow: 0 0 10px rgba(0,212,255,0.5);
}

.page-header h2 {
    font-family: 'Jost', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--jarvis-cyan) 50%, var(--jarvis-violet) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.page-header p {
    color: var(--text-tertiary);
    font-size: 1rem;
}

/* ============================================
   JARVIS TABS - HOLOGRAPHIC
   ============================================ */

.tab-header {
    display: flex;
    gap: 0.5rem;
    padding: 0.5rem;
    background: rgba(0,0,0,0.3);
    border-radius: 12px;
    border: 1px solid rgba(0,212,255,0.1);
}

.tab-btn {
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 10px;
    color: var(--text-tertiary);
    font-weight: 600;
    font-family: 'Jost', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.tab-btn:hover {
    color: var(--text-secondary);
    background: rgba(255,255,255,0.05);
}

.tab-btn.active {
    background: linear-gradient(135deg, rgba(0,212,255,0.15) 0%, rgba(124,58,237,0.1) 100%);
    border-color: rgba(0,212,255,0.3);
    color: var(--jarvis-cyan);
    box-shadow: 0 0 20px rgba(0,212,255,0.1);
}

/* ============================================
   JARVIS SEARCH & FILTERS
   ============================================ */

.search-input-wrapper {
    position: relative;
}

.search-input-wrapper input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    background: linear-gradient(135deg, rgba(0,0,0,0.4) 0%, rgba(10,15,30,0.3) 100%);
    border: 2px solid rgba(0,212,255,0.15);
    border-radius: 14px;
    color: var(--text-primary);
    font-size: 1rem;
    outline: none;
    transition: all 0.4s;
}

.search-input-wrapper input:focus {
    border-color: rgba(0,212,255,0.4);
    background: linear-gradient(135deg, rgba(0,212,255,0.08) 0%, rgba(10,15,30,0.4) 100%);
    box-shadow: 0 0 30px rgba(0,212,255,0.15);
}

.search-input-wrapper i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--jarvis-cyan);
    font-size: 1.1rem;
}

.filter-select {
    padding: 1rem 2.5rem 1rem 1rem;
    background: linear-gradient(135deg, rgba(0,0,0,0.4) 0%, rgba(10,15,30,0.3) 100%);
    border: 2px solid rgba(0,212,255,0.15);
    border-radius: 14px;
    color: var(--text-primary);
    font-size: 1rem;
    cursor: pointer;
    outline: none;
    transition: all 0.4s;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2300d4ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1.25rem;
}

.filter-select:focus {
    border-color: rgba(0,212,255,0.4);
    box-shadow: 0 0 20px rgba(0,212,255,0.15);
}

/* ============================================
   JARVIS NOTIFICATIONS
   ============================================ */

.notification-dropdown {
    background: linear-gradient(145deg, rgba(8,12,24,0.98) 0%, rgba(5,8,16,0.99) 100%);
    border: 1px solid rgba(0,212,255,0.3);
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5), 0 0 40px rgba(0,212,255,0.15);
}

.notification-dropdown::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--jarvis-cyan), transparent);
}

.notif-header {
    padding: 1.25rem;
    border-bottom: 1px solid rgba(0,212,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notif-header h3 {
    font-family: 'Jost', sans-serif;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 1px;
}

/* ============================================
   JARVIS LOADING & EMPTY STATES
   ============================================ */

.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 3rem;
    color: var(--text-tertiary);
    font-style: italic;
}

.loading::before {
    content: '';
    width: 24px;
    height: 24px;
    border: 2px solid rgba(0,212,255,0.2);
    border-top-color: var(--jarvis-cyan);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   JARVIS STATUS BADGES
   ============================================ */

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Jost', sans-serif;
}

.status-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-badge.new {
    background: rgba(59,130,246,0.15);
    border: 1px solid rgba(59,130,246,0.3);
    color: #60a5fa;
}

.status-badge.new::before {
    background: #60a5fa;
    box-shadow: 0 0 10px #60a5fa;
}

.status-badge.in-progress {
    background: rgba(245,158,11,0.15);
    border: 1px solid rgba(245,158,11,0.3);
    color: #fbbf24;
}

.status-badge.in-progress::before {
    background: #fbbf24;
    box-shadow: 0 0 10px #fbbf24;
}

.status-badge.resolved {
    background: rgba(16,185,129,0.15);
    border: 1px solid rgba(16,185,129,0.3);
    color: #34d399;
}

.status-badge.resolved::before {
    background: #34d399;
    box-shadow: 0 0 10px #34d399;
}

.status-badge.critical {
    background: rgba(244,63,94,0.15);
    border: 1px solid rgba(244,63,94,0.3);
    color: #f87171;
    animation: pulseBadge 2s ease-in-out infinite;
}

.status-badge.critical::before {
    background: #f87171;
    box-shadow: 0 0 10px #f87171;
}

@keyframes pulseBadge {
    0%, 100% { box-shadow: 0 0 0 0 rgba(244,63,94,0.4); }
    50% { box-shadow: 0 0 0 10px rgba(244,63,94,0); }
}

/* ============================================
   JARVIS TOAST NOTIFICATIONS
   ============================================ */

.toast {
    background: linear-gradient(145deg, rgba(8,12,24,0.98) 0%, rgba(5,8,16,0.99) 100%);
    border: 1px solid rgba(0,212,255,0.2);
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5), 0 0 40px rgba(0,212,255,0.1);
    backdrop-filter: blur(20px);
    padding: 1.25rem 1.5rem;
}

.toast::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--jarvis-cyan), var(--jarvis-violet));
    border-radius: 16px 0 0 16px;
}

.toast.success::before {
    background: linear-gradient(180deg, var(--jarvis-emerald), #34d399);
}

.toast.error::before {
    background: linear-gradient(180deg, var(--jarvis-rose), #f87171);
}

/* ============================================
   JARVIS DASHBOARD SIDEBAR - RATINGS & DEADLINES
   ============================================ */

.dashboard-with-sidebar {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.dashboard-main {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.dashboard-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Sidebar Cards - Compact JARVIS Style */
.sidebar-card {
    background: linear-gradient(145deg, rgba(8,12,24,0.8) 0%, rgba(5,8,16,0.9) 100%);
    border: 1px solid rgba(0,212,255,0.12);
    border-radius: 16px;
    padding: 1.25rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--jarvis-cyan), transparent);
    opacity: 0.6;
}

.sidebar-card:hover {
    border-color: rgba(0,212,255,0.25);
    box-shadow: 0 10px 40px rgba(0,212,255,0.1);
    transform: translateY(-2px);
}

/* Sidebar Card Header */
.sidebar-card-header {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    margin-bottom: 1rem;
    padding-bottom: 0.875rem;
    border-bottom: 1px solid rgba(0,212,255,0.08);
}

.sidebar-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
    transition: all 0.3s;
}

.sidebar-icon.accent-cyan {
    background: linear-gradient(135deg, rgba(0,212,255,0.15) 0%, rgba(0,212,255,0.05) 100%);
    border: 1px solid rgba(0,212,255,0.25);
    color: var(--jarvis-cyan);
    box-shadow: 0 0 15px rgba(0,212,255,0.2);
}

.sidebar-icon.accent-violet {
    background: linear-gradient(135deg, rgba(124,58,237,0.15) 0%, rgba(124,58,237,0.05) 100%);
    border: 1px solid rgba(124,58,237,0.25);
    color: var(--jarvis-violet);
    box-shadow: 0 0 15px rgba(124,58,237,0.2);
}

.sidebar-icon.accent-rose {
    background: linear-gradient(135deg, rgba(244,63,94,0.15) 0%, rgba(244,63,94,0.05) 100%);
    border: 1px solid rgba(244,63,94,0.25);
    color: var(--jarvis-rose);
    box-shadow: 0 0 15px rgba(244,63,94,0.2);
}

.sidebar-card:hover .sidebar-icon {
    transform: scale(1.1) rotate(5deg);
}

.sidebar-card-header h3 {
    font-family: 'Jost', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

/* Sidebar List Items */
.sidebar-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(0,212,255,0.03);
    border: 1px solid rgba(0,212,255,0.06);
    border-radius: 10px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.sidebar-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--jarvis-cyan), var(--jarvis-violet));
    opacity: 0;
    transition: opacity 0.3s;
}

.sidebar-item:hover {
    background: rgba(0,212,255,0.06);
    border-color: rgba(0,212,255,0.12);
    transform: translateX(4px);
}

.sidebar-item:hover::before {
    opacity: 1;
}

/* Rank Number */
.sidebar-rank {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(0,212,255,0.1) 0%, rgba(124,58,237,0.05) 100%);
    border: 1px solid rgba(0,212,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--jarvis-cyan);
    flex-shrink: 0;
}

.sidebar-rank.top {
    background: linear-gradient(135deg, rgba(245,158,11,0.2) 0%, rgba(245,158,11,0.1) 100%);
    border-color: rgba(245,158,11,0.3);
    color: #fbbf24;
    box-shadow: 0 0 10px rgba(245,158,11,0.2);
}

/* Item Info */
.sidebar-item-info {
    flex: 1;
    min-width: 0;
}

.sidebar-item-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.15rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-item-meta {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Rating Stars */
.sidebar-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #fbbf24;
    font-size: 0.8rem;
}

/* Deadline Status */
.sidebar-deadline-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
}

.sidebar-deadline-status.urgent {
    color: var(--jarvis-rose);
    font-weight: 600;
}

.sidebar-deadline-status.warning {
    color: #fbbf24;
}

.sidebar-deadline-status.normal {
    color: var(--jarvis-emerald);
}

/* Status Dot */
.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-dot.urgent {
    background: var(--jarvis-rose);
    box-shadow: 0 0 8px var(--jarvis-rose);
    animation: pulseDot 2s infinite;
}

.status-dot.warning {
    background: #fbbf24;
    box-shadow: 0 0 8px #fbbf24;
}

.status-dot.normal {
    background: var(--jarvis-emerald);
    box-shadow: 0 0 8px var(--jarvis-emerald);
}

@keyframes pulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.2); }
}

/* View All Link */
.sidebar-view-all {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding: 0.625rem;
    background: rgba(0,212,255,0.05);
    border: 1px dashed rgba(0,212,255,0.15);
    border-radius: 8px;
    color: var(--jarvis-cyan);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.sidebar-view-all:hover {
    background: rgba(0,212,255,0.1);
    border-style: solid;
    border-color: var(--jarvis-cyan);
}

/* Empty State */
.sidebar-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    color: var(--text-tertiary);
    text-align: center;
}

.sidebar-empty i {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    opacity: 0.5;
}

.sidebar-empty p {
    font-size: 0.85rem;
}

/* ============================================
   MOBILE RESPONSIVE FIXES - Complete Overhaul
   ============================================ */

/* Mobile Toggle Button */
.mobile-toggle {
    display: none;
    position: fixed;
    top: 0.5rem;
    left: 0.5rem;
    z-index: 9999;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--bg-surface);
    border: 1px solid var(--prism-border);
    color: var(--text-primary);
    font-size: 1rem;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.mobile-toggle:hover {
    background: var(--bg-surface-elevated);
    border-color: var(--jarvis-cyan);
}

/* Mobile Sidebar Overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    z-index: 9990;
    backdrop-filter: blur(4px);
}

/* Large Tablets */
@media (max-width: 1200px) {
    .dashboard-with-sidebar {
        grid-template-columns: 1fr;
    }
    .dashboard-sidebar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

/* Tablets */
@media (max-width: 1024px) {
    /* Stats Grid - 2 columns */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    /* Dashboard Grid - stack vertically */
    .dashboard-grid {
        grid-template-columns: 1fr !important;
    }
    
    .dashboard-grid.triple {
        grid-template-columns: 1fr 1fr !important;
    }
    
    /* Company Cards */
    .company-cards-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    /* Show mobile toggle */
    .mobile-toggle {
        display: flex;
    }
    
    /* Sidebar becomes mobile drawer - completely hidden */
    .sidebar {
        position: fixed;
        left: -320px;
        top: 0;
        height: 100vh;
        z-index: 9995;
        transition: left 0.3s ease;
        width: 280px !important;
        box-shadow: 4px 0 30px rgba(0,0,0,0.5);
    }
    
    .sidebar.mobile-open {
        left: 0;
    }
    
    .sidebar-overlay {
        display: block;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }
    
    .sidebar-overlay.active {
        opacity: 1;
        pointer-events: all;
    }
    
    /* Adjust main content */
    .main-content {
        margin-left: 0 !important;
        width: 100% !important;
    }
    
    /* Ticket Cards */
    .ticket-card {
        grid-template-columns: 60px 1fr !important;
        gap: 0.5rem !important;
    }
    
    .ticket-card > *:nth-child(n+3) {
        display: none;
    }
    
    .ticket-card > *:nth-child(2)::after {
        content: attr(data-extra);
        display: block;
        font-size: 0.75rem;
        color: var(--text-muted);
    }
}

/* Mobile Phones */
@media (max-width: 768px) {
    /* Force single column layouts */
    .priority-selector {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .form-row-2 {
        grid-template-columns: 1fr;
    }
    
    .creator-header h2 {
        font-size: 1.5rem;
    }
    
    .ticket-creator-container {
        padding: 0 0.75rem;
    }
    
    .creator-card {
        padding: 1rem;
        border-radius: 12px !important;
    }
    
    .auth-card {
        margin: 0.5rem;
        padding: 1.5rem;
        border-radius: 16px !important;
    }
    
    /* Stats Grid - single column */
    .stats-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 0.75rem !important;
    }
    
    .stat-card {
        padding: 1rem !important;
    }
    
    .stat-card h3 {
        font-size: 1.75rem !important;
    }
    
    /* Dashboard adjustments */
    .dashboard-grid.triple {
        grid-template-columns: 1fr !important;
    }
    
    /* Company Cards - single column */
    .company-cards-grid {
        grid-template-columns: 1fr;
    }
    
    /* View container padding */
    .view-container {
        padding: 1rem;
    }
    
    /* Page header */
    .page-header h2 {
        font-size: 1.25rem;
    }
    
    /* Dynamic header stack */
    .dynamic-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .header-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    /* Filters stack */
    .filters {
        flex-direction: column;
        width: 100%;
    }
    
    .filter-select {
        width: 100%;
    }
    
    /* Modal - full screen on mobile */
    .modal-content {
        max-width: 100% !important;
        width: 100% !important;
        padding: 1rem !important;
        border-radius: 0 !important;
        border-left: none !important;
    }
    
    .modal-header {
        padding: 1rem !important;
        position: sticky;
        top: 0;
        background: var(--bg-sidebar);
        z-index: 10;
    }
    
    .modal-header h2 {
        font-size: 1.1rem;
    }
    
    .modal-body {
        max-height: calc(100vh - 120px) !important;
        padding: 1rem !important;
    }
    
    /* Modal sidebar becomes stacked */
    .modal-sidebar {
        grid-template-columns: 1fr 1fr !important;
    }
    
    /* Modal grid - stack on mobile */
    .modal-grid {
        flex-direction: column;
    }
    
    /* Rating items - horizontal scroll if needed */
    .rating-list {
        overflow-x: auto;
        flex-direction: row;
        gap: 0.75rem;
        padding-bottom: 0.5rem;
    }
    
    .rating-item {
        min-width: 200px;
        flex-shrink: 0;
    }
    
    /* Timeline */
    .timeline-compact {
        max-height: 150px;
    }
    
    /* Toast notifications - bottom center */
    .toast {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
    }
    
    /* Command Center */
    .command-content {
        width: calc(100% - 2rem) !important;
        max-width: 400px;
    }
    
    /* Form sections */
    .form-section {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
    
    /* FAB bar - bottom right */
    .floating-action-bar {
        bottom: 1rem;
        right: 1rem;
        gap: 0.5rem;
    }
    
    .fab-btn {
        width: 48px;
        height: 48px;
    }
    
    .fab-label {
        display: none;
    }
    
    /* Timer Modal */
    #timerModal .modal-content {
        margin: 0.5rem;
        width: calc(100% - 1rem) !important;
    }
    
    #timerDisplay {
        font-size: 3rem !important;
    }
    
    /* Data Table - horizontal scroll */
    .data-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .data-table {
        min-width: 600px;
    }
    
    /* Info cards in modals */
    .info-card {
        padding: 1rem;
    }
    
    /* Detail tabs */
    .tab-btn-detail {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    /* Time tracker widget */
    .time-tracker-widget {
        left: 1rem;
        right: 1rem;
        bottom: 5rem;
        min-width: auto;
    }
}

/* Extra Small Screens */
@media (max-width: 480px) {
    /* Stats - full width */
    .stats-grid {
        grid-template-columns: 1fr !important;
    }
    
    /* Priority selector - single column */
    .priority-selector {
        grid-template-columns: 1fr;
    }
    
    /* Buttons full width on mobile */
    .btn-primary,
    .btn-outline,
    .btn-danger {
        width: 100%;
        justify-content: center;
    }
    
    /* Form footer links */
    .form-footer {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    /* Auth form */
    .auth-form {
        gap: 1rem;
    }
    
    /* Ticket creator */
    .creator-submit-btn {
        padding: 1rem;
        font-size: 1rem;
    }
    
    /* Modal grid - full width inputs */
    .form-row {
        grid-template-columns: 1fr !important;
    }
    
    /* Sidebar width */
    .sidebar {
        width: 85vw !important;
        max-width: 300px;
    }
    
    /* Badge size */
    .badge {
        font-size: 0.65rem;
        padding: 2px 6px;
    }
    
    /* Avatar */
    .avatar-small {
        width: 28px;
        height: 28px;
        font-size: 0.7rem;
    }
}

/* Completely hide floating action bar - moved to ticket view */
.floating-action-bar {
    display: none !important;
}

/* Report Cards Grid */
.report-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.report-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.report-card:hover {
    transform: translateY(-3px);
    border-color: var(--jarvis-cyan);
    box-shadow: 0 8px 30px rgba(0,212,255,0.15);
}

.report-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.report-card-content {
    flex: 1;
    min-width: 0;
}

.report-card-content h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.report-card-content p {
    font-size: 0.85rem;
    color: var(--text-tertiary);
    margin: 0;
}

.report-card-action {
    color: var(--text-tertiary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.report-card:hover .report-card-action {
    color: var(--jarvis-cyan);
    transform: translateX(5px);
}

/* Report Modal Styles */
#reportModal .form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

#reportPreview table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

#reportPreview th {
    background: rgba(0,212,255,0.1);
    padding: 0.75rem;
    text-align: left;
    font-weight: 600;
    color: var(--jarvis-cyan);
    border-bottom: 1px solid rgba(0,212,255,0.2);
}

#reportPreview td {
    padding: 0.75rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

#reportPreview tr:hover td {
    background: rgba(0,212,255,0.05);
}

/* Report Summary Stats */
.report-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.report-summary-item {
    background: rgba(0,212,255,0.05);
    border: 1px solid rgba(0,212,255,0.1);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
}

.report-summary-item h4 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--jarvis-cyan);
    margin-bottom: 0.25rem;
}

.report-summary-item p {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    margin: 0;
}

/* Quick Actions Bar (integrated into ticket view) */
.quick-actions-bar {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--prism-border);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-shrink: 0;
}

.quick-actions-bar::-webkit-scrollbar {
    display: none;
}

.quick-action-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(0,212,255,0.1);
    border: 1px solid rgba(0,212,255,0.2);
    border-radius: 8px;
    color: var(--jarvis-cyan);
    font-size: 0.8rem;
    white-space: nowrap;
    flex-shrink: 0;
    cursor: pointer;
    transition: all 0.2s ease;
}

.quick-action-btn:hover,
.quick-action-btn:active {
    background: rgba(0,212,255,0.2);
    border-color: var(--jarvis-cyan);
}

.quick-action-btn i {
    font-size: 0.9rem;
}

/* Desktop only - hide floating bar */
.desktop-only {
    display: flex !important;
}

@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }
    
    .quick-actions-bar {
        display: flex;
    }
}

@media (max-width: 480px) {
    .quick-action-btn span {
        display: none;
    }
    
    .quick-action-btn {
        padding: 0.6rem;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Remove hover effects on touch */
    .stat-card:hover,
    .company-card:hover,
    .ticket-card:hover {
        transform: none;
    }
    
    /* Larger touch targets */
    .btn,
    .side-link,
    .filter-select,
    .tab-btn {
        min-height: 44px;
    }
    
    /* Active states */
    .btn:active {
        transform: scale(0.98);
    }
}

/* Landscape mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr) !important;
    }
    
    .modal-content {
        max-height: 100vh;
    }
    
    .sidebar {
        overflow-y: auto;
    }
}

/* ============================================
   NEW FEATURES - TIME TRACKING, CSAT, ETC.
   ============================================ */

/* Time Tracking Widget */
.time-tracker-widget {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: linear-gradient(145deg, rgba(8,12,24,0.95) 0%, rgba(5,8,16,0.98) 100%);
    border: 2px solid rgba(0,212,255,0.3);
    border-radius: 16px;
    padding: 1.25rem;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 30px rgba(0,212,255,0.15);
    z-index: 1000;
    min-width: 280px;
    backdrop-filter: blur(20px);
}

.time-tracker-widget::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--jarvis-cyan), transparent);
}

.time-tracker-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.time-tracker-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(0,212,255,0.2) 0%, rgba(124,58,237,0.1) 100%);
    border: 1px solid rgba(0,212,255,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--jarvis-cyan);
    animation: pulse 2s infinite;
}

.time-tracker-timer {
    font-family: 'JetBrains Mono', monospace;
    font-size: 2rem;
    font-weight: 700;
    color: var(--jarvis-cyan);
    text-shadow: 0 0 20px rgba(0,212,255,0.5);
}

.time-tracker-ticket {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.time-tracker-controls {
    display: flex;
    gap: 0.75rem;
}

.time-tracker-btn {
    flex: 1;
    padding: 0.75rem;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.time-tracker-btn.stop {
    background: linear-gradient(135deg, rgba(244,63,94,0.2) 0%, rgba(244,63,94,0.1) 100%);
    border: 2px solid rgba(244,63,94,0.4);
    color: var(--text-primary);
}

.time-tracker-btn.stop:hover {
    background: rgba(244,63,94,0.3);
    box-shadow: 0 0 20px rgba(244,63,94,0.3);
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
}

/* Time Summary Badge */
.time-summary-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(0,212,255,0.1);
    border: 1px solid rgba(0,212,255,0.2);
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--jarvis-cyan);
}

.time-summary-badge i {
    font-size: 0.85rem;
}

/* Canned Responses Dropdown */
.canned-responses-trigger {
    position: relative;
}

.canned-responses-dropdown {
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    margin-bottom: 0.5rem;
    background: linear-gradient(145deg, rgba(8,12,24,0.98) 0%, rgba(5,8,16,0.99) 100%);
    border: 1px solid rgba(0,212,255,0.2);
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    max-height: 300px;
    overflow-y: auto;
    z-index: 100;
}

.canned-response-item {
    padding: 1rem;
    border-bottom: 1px solid rgba(0,212,255,0.05);
    cursor: pointer;
    transition: all 0.3s;
}

.canned-response-item:hover {
    background: rgba(0,212,255,0.08);
}

.canned-response-item:last-child {
    border-bottom: none;
}

.canned-response-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.canned-response-shortcut {
    font-size: 0.75rem;
    color: var(--jarvis-cyan);
    background: rgba(0,212,255,0.1);
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
}

.canned-response-preview {
    font-size: 0.85rem;
    color: var(--text-tertiary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Checklist Component */
.checklist-container {
    background: rgba(0,212,255,0.03);
    border: 1px solid rgba(0,212,255,0.1);
    border-radius: 12px;
    padding: 1rem;
}

.checklist-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.checklist-title {
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checklist-progress {
    font-size: 0.85rem;
    color: var(--jarvis-cyan);
}

.checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(255,255,255,0.03);
    border-radius: 8px;
    margin-bottom: 0.5rem;
    transition: all 0.3s;
}

.checklist-item:hover {
    background: rgba(0,212,255,0.05);
}

.checklist-item.completed {
    opacity: 0.6;
}

.checklist-item.completed .checklist-text {
    text-decoration: line-through;
    color: var(--text-tertiary);
}

.checklist-checkbox {
    width: 22px;
    height: 22px;
    border: 2px solid rgba(0,212,255,0.3);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.checklist-checkbox:hover {
    border-color: var(--jarvis-cyan);
    box-shadow: 0 0 10px rgba(0,212,255,0.3);
}

.checklist-checkbox.checked {
    background: linear-gradient(135deg, var(--jarvis-emerald), #34d399);
    border-color: var(--jarvis-emerald);
}

.checklist-checkbox.checked i {
    color: white;
    font-size: 0.75rem;
}

.checklist-content {
    flex: 1;
}

.checklist-text {
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.checklist-description {
    font-size: 0.8rem;
    color: var(--text-tertiary);
}

.checklist-delete {
    color: var(--text-tertiary);
    cursor: pointer;
    transition: all 0.3s;
    padding: 0.25rem;
}

.checklist-delete:hover {
    color: var(--jarvis-rose);
}

.checklist-add {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.checklist-add input {
    flex: 1;
    padding: 0.625rem 1rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(0,212,255,0.15);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.checklist-add input:focus {
    outline: none;
    border-color: rgba(0,212,255,0.4);
}

.checklist-add-btn {
    padding: 0.625rem 1rem;
    background: linear-gradient(135deg, rgba(0,212,255,0.2) 0%, rgba(124,58,237,0.1) 100%);
    border: 1px solid rgba(0,212,255,0.3);
    border-radius: 8px;
    color: var(--jarvis-cyan);
    cursor: pointer;
    transition: all 0.3s;
}

.checklist-add-btn:hover {
    background: rgba(0,212,255,0.3);
}

/* Rating Modal (CSAT) */
.rating-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.rating-modal {
    background: linear-gradient(145deg, rgba(8,12,24,0.98) 0%, rgba(5,8,16,0.99) 100%);
    border: 2px solid rgba(0,212,255,0.3);
    border-radius: 24px;
    padding: 2.5rem;
    max-width: 450px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5), 0 0 40px rgba(0,212,255,0.1);
}

.rating-modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--jarvis-cyan), var(--jarvis-violet), transparent);
}

.rating-modal-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(245,158,11,0.2) 0%, rgba(245,158,11,0.1) 100%);
    border: 2px solid rgba(245,158,11,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: #fbbf24;
    box-shadow: 0 0 30px rgba(245,158,11,0.3);
}

.rating-modal h3 {
    font-family: 'Jost', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.rating-modal p {
    color: var(--text-tertiary);
    margin-bottom: 1.5rem;
}

.rating-stars {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.rating-star {
    font-size: 2.5rem;
    color: rgba(255,255,255,0.1);
    cursor: pointer;
    transition: all 0.3s;
}

.rating-star:hover,
.rating-star.active {
    color: #fbbf24;
    text-shadow: 0 0 20px rgba(245,158,11,0.5);
    transform: scale(1.1);
}

.rating-comment {
    width: 100%;
    padding: 1rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(0,212,255,0.15);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    resize: vertical;
    min-height: 100px;
}

.rating-comment:focus {
    outline: none;
    border-color: rgba(0,212,255,0.4);
    box-shadow: 0 0 20px rgba(0,212,255,0.1);
}

.rating-submit-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(0,212,255,0.2) 0%, rgba(124,58,237,0.2) 100%);
    border: 2px solid rgba(0,212,255,0.4);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.rating-submit-btn:hover {
    background: rgba(0,212,255,0.3);
    box-shadow: 0 0 30px rgba(0,212,255,0.2);
}

/* Internal Notes Panel */
.internal-notes-panel {
    background: linear-gradient(145deg, rgba(139,92,246,0.05) 0%, rgba(5,8,16,0.8) 100%);
    border: 1px solid rgba(139,92,246,0.2);
    border-radius: 16px;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.internal-notes-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: var(--jarvis-violet);
}

.internal-notes-header i {
    font-size: 1.25rem;
}

.internal-notes-header h4 {
    font-family: 'Jost', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.internal-note-item {
    background: rgba(139,92,246,0.05);
    border-left: 3px solid var(--jarvis-violet);
    border-radius: 0 8px 8px 0;
    padding: 1rem;
    margin-bottom: 0.75rem;
}

.internal-note-item.pinned {
    background: rgba(245,158,11,0.05);
    border-left-color: #fbbf24;
}

.internal-note-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.internal-note-author {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.internal-note-date {
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

.internal-note-content {
    color: var(--text-primary);
    line-height: 1.6;
}

.internal-note-input {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.internal-note-input textarea {
    flex: 1;
    padding: 0.875rem 1rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(139,92,246,0.2);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 0.95rem;
    resize: vertical;
    min-height: 80px;
}

.internal-note-input textarea:focus {
    outline: none;
    border-color: rgba(139,92,246,0.4);
}

/* Customer Assets */
.assets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.asset-card {
    background: linear-gradient(145deg, rgba(8,12,24,0.8) 0%, rgba(5,8,16,0.9) 100%);
    border: 1px solid rgba(0,212,255,0.1);
    border-radius: 16px;
    padding: 1.25rem;
    transition: all 0.3s;
}

.asset-card:hover {
    border-color: rgba(0,212,255,0.25);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0,212,255,0.1);
}

.asset-header {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    margin-bottom: 1rem;
}

.asset-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.asset-icon.computer {
    background: linear-gradient(135deg, rgba(0,212,255,0.15) 0%, rgba(0,212,255,0.05) 100%);
    border: 1px solid rgba(0,212,255,0.2);
    color: var(--jarvis-cyan);
}

.asset-icon.server {
    background: linear-gradient(135deg, rgba(124,58,237,0.15) 0%, rgba(124,58,237,0.05) 100%);
    border: 1px solid rgba(124,58,237,0.2);
    color: var(--jarvis-violet);
}

.asset-icon.printer {
    background: linear-gradient(135deg, rgba(245,158,11,0.15) 0%, rgba(245,158,11,0.05) 100%);
    border: 1px solid rgba(245,158,11,0.2);
    color: #fbbf24;
}

.asset-icon.network {
    background: linear-gradient(135deg, rgba(16,185,129,0.15) 0%, rgba(16,185,129,0.05) 100%);
    border: 1px solid rgba(16,185,129,0.2);
    color: var(--jarvis-emerald);
}

.asset-title {
    flex: 1;
}

.asset-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.asset-model {
    font-size: 0.85rem;
    color: var(--text-tertiary);
}

.asset-status {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.asset-status.active {
    background: rgba(16,185,129,0.15);
    color: var(--jarvis-emerald);
}

.asset-status.repair {
    background: rgba(245,158,11,0.15);
    color: #fbbf24;
}

.asset-status.retired {
    background: rgba(100,100,100,0.15);
    color: var(--text-tertiary);
}

.asset-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.asset-detail {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.asset-detail-label {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.asset-detail-value {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-family: 'JetBrains Mono', monospace;
}

.asset-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.asset-btn {
    flex: 1;
    padding: 0.625rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.asset-btn.primary {
    background: linear-gradient(135deg, rgba(0,212,255,0.15) 0%, rgba(0,212,255,0.05) 100%);
    border: 1px solid rgba(0,212,255,0.3);
    color: var(--jarvis-cyan);
}

.asset-btn.primary:hover {
    background: rgba(0,212,255,0.25);
}

/* Remote Access Badge */
.remote-access-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, rgba(16,185,129,0.15) 0%, rgba(16,185,129,0.05) 100%);
    border: 1px solid rgba(16,185,129,0.3);
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--jarvis-emerald);
    font-family: 'JetBrains Mono', monospace;
    cursor: pointer;
    transition: all 0.3s;
}

.remote-access-badge:hover {
    background: rgba(16,185,129,0.25);
    box-shadow: 0 0 15px rgba(16,185,129,0.3);
}

/* Warranty Status */
.warranty-status.valid { color: var(--jarvis-emerald); }
.warranty-status.expiring { color: #fbbf24; }
.warranty-status.expired { color: var(--jarvis-rose); }

/* ── Dashboard Animations ── */
@keyframes fadeInUp { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeIn { from { opacity:0; } to { opacity:1; } }
@keyframes slideInRight { from { opacity:0; transform:translateX(20px); } to { opacity:1; transform:translateX(0); } }
@keyframes pulseGlow { 0%,100% { box-shadow:0 0 8px rgba(244,63,94,0.3); } 50% { box-shadow:0 0 25px rgba(244,63,94,0.6); } }
@keyframes shimmer { 0% { background-position:-200% 0; } 100% { background-position:200% 0; } }

.stat-card { animation:fadeInUp .5s ease both; }
.stat-card:nth-child(1) { animation-delay:.05s; }
.stat-card:nth-child(2) { animation-delay:.10s; }
.stat-card:nth-child(3) { animation-delay:.15s; }
.stat-card:nth-child(4) { animation-delay:.20s; }
.stat-card:nth-child(5) { animation-delay:.25s; }
.stat-card:nth-child(6) { animation-delay:.30s; }
.stat-card { transition:transform .3s cubic-bezier(0.34,1.56,0.64,1), box-shadow .3s ease; overflow:hidden; }
.stat-card::after { content:''; position:absolute; inset:0; background:linear-gradient(135deg,transparent 40%,rgba(255,255,255,0.03) 50%,transparent 60%); background-size:200% 200%; pointer-events:none; transition:background-position .6s ease; }
.stat-card:hover::after { background-position:100% 100%; }
.stat-card:hover { transform:translateY(-4px) scale(1.02); }
.stat-card.accent-rose:hover { box-shadow:0 8px 32px rgba(244,63,94,0.25); }
.stat-card.accent-orange:hover { box-shadow:0 8px 32px rgba(245,158,11,0.25); }
.stat-card.accent-cyan:hover { box-shadow:0 8px 32px rgba(0,212,255,0.25); }
.deadline-item.urgent { animation:pulseGlow 2s ease-in-out infinite; }
.chart-card { animation:fadeInUp .6s ease both; transition:transform .3s ease,box-shadow .3s ease; }
.chart-card:nth-child(1) { animation-delay:.25s; }
.chart-card:nth-child(2) { animation-delay:.35s; }
.chart-card:nth-child(3) { animation-delay:.45s; }
.chart-card:hover { transform:translateY(-2px); box-shadow:0 8px 40px rgba(0,212,255,0.08); }
.sidebar-card { animation:slideInRight .6s ease both; }
.sidebar-card:nth-child(1) { animation-delay:.35s; }
.sidebar-card:nth-child(2) { animation-delay:.45s; }
.sidebar-card:nth-child(3) { animation-delay:.55s; }
.rating-item, .deadline-item { transition:background .2s ease,transform .2s ease; }
.rating-item:hover, .deadline-item:hover { background:rgba(255,255,255,0.04); transform:translateX(4px); }
#activeTicketsList .ticket-row { animation:fadeIn .3s ease both; }
#activeTicketsList .ticket-row:nth-child(1)  { animation-delay:.02s; }
#activeTicketsList .ticket-row:nth-child(2)  { animation-delay:.04s; }
#activeTicketsList .ticket-row:nth-child(3)  { animation-delay:.06s; }
#activeTicketsList .ticket-row:nth-child(4)  { animation-delay:.08s; }
#activeTicketsList .ticket-row:nth-child(5)  { animation-delay:.10s; }
#activeTicketsList .ticket-row:nth-child(6)  { animation-delay:.12s; }
#activeTicketsList .ticket-row:nth-child(7)  { animation-delay:.14s; }
#activeTicketsList .ticket-row:nth-child(8)  { animation-delay:.16s; }
#activeTicketsList .ticket-row:nth-child(9)  { animation-delay:.18s; }
#activeTicketsList .ticket-row:nth-child(10) { animation-delay:.20s; }
.skeleton { background:linear-gradient(90deg,rgba(255,255,255,0.03) 25%,rgba(255,255,255,0.08) 50%,rgba(255,255,255,0.03) 75%); background-size:200% 100%; animation:shimmer 1.5s ease-in-out infinite; border-radius:8px; }
.dashboard-section-title { font-size:.75rem; font-weight:600; text-transform:uppercase; letter-spacing:.08em; color:var(--text-tertiary); margin:1.5rem 0 .75rem; padding:0 .25rem; }
.tab-btn:active { transform:scale(0.95); }

/* ============================================
   FLOATING ACTION BAR
   ============================================ */
.floating-action-bar {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 9999;
}

.fab-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0,212,255,0.2), rgba(124,58,237,0.2));
    border: 2px solid rgba(0,212,255,0.4);
    color: var(--jarvis-cyan);
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s;
    box-shadow: 0 5px 20px rgba(0,212,255,0.2);
}

.fab-btn:hover {
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,212,255,0.4);
    background: linear-gradient(135deg, rgba(0,212,255,0.3), rgba(124,58,237,0.3));
}

.fab-label {
    position: absolute;
    right: 70px;
    background: rgba(0,0,0,0.9);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    border: 1px solid rgba(0,212,255,0.3);
}

.fab-btn:hover .fab-label {
    opacity: 1;
    visibility: visible;
    right: 75px;
}

/* Animation for Toast */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* ============================================
   FEATURE BUTTONS - FORCE VISIBLE
   ============================================ */
.feature-btn {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 100 !important;
    padding: 0.625rem 1rem !important;
    border-radius: 10px !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    cursor: pointer !important;
    transition: all 0.3s !important;
    gap: 0.5rem !important;
}

.feature-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3) !important;
}

/* Make sure parent containers show the buttons */
#stageActions {
    overflow: visible !important;
}

#stageActions .feature-btn {
    flex-shrink: 0 !important;
}

/* Ensure feature panels can be shown */
.feature-panel {
    display: block !important;
}

.feature-panel[style*="display: none"] {
    display: none !important;
}