/* Lifted verbatim from course.blade.php.
   Inline it was 63,091 bytes of HTML on every render;
   as a file the browser fetches it once. */
/* ========================================
   APPLE/VERCEL DESIGN SYSTEM - Course Page
   Integrated with existing KT Framework
   ======================================== */

/* CSS Variables - Using existing theme variables as base */
:root {
    --av-accent: #0071e3;
    --av-accent-hover: #0077ED;
    --av-success: #22c55e;
    --av-warning: #f59e0b;
    --av-danger: #ef4444;
    --av-card-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.06);
    --av-card-shadow-hover: 0 12px 24px -4px rgba(0,0,0,0.08), 0 4px 8px -2px rgba(0,0,0,0.04);
    --av-transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --av-font-sans: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
}

[data-kt-theme-mode="dark"] {
    --av-card-shadow: 0 1px 3px rgba(0,0,0,0.3), 0 1px 2px rgba(0,0,0,0.2);
    --av-card-shadow-hover: 0 12px 32px rgba(0,0,0,0.35);
}

/* Main Wrapper - Inherit from page */
.av-course-wrapper {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.av-course-container {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding-top: 1.25rem;
    overflow-y: auto;
    scrollbar-width: auto;
}

@media (min-width: 1024px) {
    .av-course-container {
        padding-right: 1rem;
    }
}

/* Hero Section - Card Style */
.av-hero-section {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.5rem;
    margin: 0 1.5rem 1.5rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 1rem;
    flex-wrap: wrap;
}

@media (min-width: 1024px) {
    .av-hero-section {
        padding: 2rem;
        margin: 0 2rem 1.5rem;
    }
}

.av-hero-ambient {
    display: none;
}

[data-kt-theme-mode="dark"] .av-hero-ambient {
    display: none;
}

.av-hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Breadcrumb */
.av-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    font-family: var(--av-font-sans);
}

.av-breadcrumb-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--muted-foreground);
    text-decoration: none;
    transition: var(--av-transition);
    font-weight: 500;
}

.av-breadcrumb-link:hover {
    color: var(--primary);
}

.av-breadcrumb-link svg {
    opacity: 0.7;
}

.av-breadcrumb-sep {
    color: var(--muted-foreground);
    opacity: 0.5;
}

.av-breadcrumb-current {
    color: var(--foreground);
    font-weight: 600;
}

/* Hero Main */
.av-hero-main {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.av-hero-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 0.875rem;
    flex-shrink: 0;
    transition: var(--av-transition);
}

.av-hero-icon-course {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

.av-hero-icon-api {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.25);
}

.av-hero-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.av-hero-title-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.av-hero-title {
    /* font-family and font-weight are now handled globally in app.blade.php */
    /* font-size is set globally but overridden here to keep hero titles larger */
    font-size: 1.5rem;
    color: var(--foreground);
    letter-spacing: -0.025em;
    line-height: 1.2;
    margin: 0;
}

.av-hero-subtitle {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    font-weight: 450;
    margin: 0;
}

/* Badge */
.av-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.625rem;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    border-radius: 6px;
    text-transform: uppercase;
}

.av-badge-api {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.12) 0%, rgba(234, 88, 12, 0.08) 100%);
    color: #ea580c;
    border: 1px solid rgba(249, 115, 22, 0.2);
}

[data-kt-theme-mode="dark"] .av-badge-api {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.2) 0%, rgba(234, 88, 12, 0.15) 100%);
    color: #fb923c;
    border-color: rgba(249, 115, 22, 0.3);
}

/* Stats Row */
.av-stats-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.25rem;
}

.av-stat-pill {
    display: flex;
    align-items: baseline;
    gap: 0.375rem;
}

.av-stat-value {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--foreground);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
}

.av-stat-label {
    font-size: 0.75rem;
    color: var(--muted-foreground);
    font-weight: 500;
}

.av-stat-divider {
    width: 1px;
    height: 20px;
    background: var(--border);
}

/* Hero Actions */
.av-hero-actions {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 0.625rem;
    flex-wrap: wrap;
}

/* Buttons - Vercel Style */
.av-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 0.875rem;
    font-size: 0.875rem;
    font-weight: 500;
    font-family: var(--av-font-sans);
    border-radius: 0.5rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    white-space: nowrap;
    line-height: 1.25rem;
}

.av-btn svg {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

.av-btn-primary {
    background: #3b82f6;
    border-color: #3b82f6;
    color: #ffffff;
}

.av-btn-primary:hover {
    background: #2563eb;
    border-color: #2563eb;
}

.av-btn-glow {
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.1);
    animation: av-btn-glow-pulse 2s ease-in-out infinite;
}

@keyframes av-btn-glow-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.1); }
    50% { box-shadow: 0 0 0 4px rgba(0, 0, 0, 0); }
}

.av-btn-secondary {
    background: transparent;
    color: var(--foreground);
    border: 1px solid var(--border);
}

.av-btn-secondary:hover {
    background: var(--muted);
    border-color: var(--foreground);
}

.av-btn-icon {
    width: 36px;
    height: 36px;
    padding: 0;
    background: transparent;
    color: var(--muted-foreground);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
}

.av-btn-icon:hover {
    background: var(--muted);
    border-color: var(--foreground);
    color: var(--foreground);
}

/* Dropdown */
.av-dropdown {
    position: relative;
}

.av-dropdown-panel,
#premiumDropdownPanel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 260px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 0.875rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.96);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
    overflow: hidden;
}

[data-kt-theme-mode="dark"] .av-dropdown-panel,
[data-kt-theme-mode="dark"] #premiumDropdownPanel {
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.av-dropdown-panel.active,
#premiumDropdownPanel.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.av-dropdown-header {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid var(--border);
}

.av-dropdown-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--muted-foreground);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.av-dropdown-section {
    padding: 0.5rem;
}

.av-dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: 0;
}

.av-dropdown-danger {
    background: linear-gradient(180deg, rgba(239, 68, 68, 0.04) 0%, transparent 100%);
}

[data-kt-theme-mode="dark"] .av-dropdown-danger {
    background: linear-gradient(180deg, rgba(239, 68, 68, 0.1) 0%, transparent 100%);
}

.av-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.625rem 0.75rem;
    font-size: 0.8125rem;
    font-weight: 450;
    color: var(--foreground);
    background: transparent;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: var(--av-transition);
    text-align: left;
}

.av-dropdown-item:hover {
    background: var(--muted);
}

.av-dropdown-item svg {
    color: var(--muted-foreground);
    flex-shrink: 0;
}

.av-dropdown-item span {
    flex: 1;
}

.av-dropdown-item-danger {
    color: var(--av-danger);
}

.av-dropdown-item-danger svg {
    color: var(--av-danger);
}

.av-dropdown-item-danger:hover {
    background: rgba(239, 68, 68, 0.1);
}

.av-kbd {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.125rem 0.375rem;
    font-size: 0.6875rem;
    font-weight: 500;
    font-family: var(--av-font-sans);
    color: var(--muted-foreground);
    background: var(--muted);
    border: 1px solid var(--border);
    border-radius: 4px;
}

.av-dropdown-badge {
    display: inline-flex;
    padding: 0.125rem 0.5rem;
    font-size: 0.625rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* Main Content Area */
.av-main {
    flex-grow: 1;
    padding: 0;
}

.av-main-container {
    padding: 0 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    .av-main-container {
        padding: 0 2rem;
    }
}

/* Toolbar */
.av-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    flex-wrap: wrap;
}

.av-toolbar-left {
    flex: 1;
    min-width: 280px;
}

.av-toolbar-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* Search */
.av-search {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 400px;
}

.av-search-icon {
    position: absolute;
    left: 0.875rem;
    color: var(--muted-foreground);
    pointer-events: none;
}

.av-search-input {
    width: 100%;
    height: 40px;
    padding: 0 2.5rem 0 2.75rem;
    font-size: 0.875rem;
    font-family: var(--av-font-sans);
    color: var(--foreground);
    background: var(--muted);
    border: 1px solid transparent;
    border-radius: 0.625rem;
    outline: none;
    transition: var(--av-transition);
}

.av-search-input:focus {
    background: var(--background);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.av-search-input::placeholder {
    color: var(--muted-foreground);
}

.av-search-kbd {
    position: absolute;
    right: 0.75rem;
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.5rem;
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--muted-foreground);
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 5px;
}

/* Select */
.av-select-wrapper {
    position: relative;
    display: inline-flex;
}

.av-select {
    appearance: none;
    height: 38px;
    padding: 0 2rem 0 0.875rem;
    font-size: 0.8125rem;
    font-weight: 500;
    font-family: var(--av-font-sans);
    color: var(--foreground);
    background: var(--muted);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    cursor: pointer;
    outline: none;
    transition: var(--av-transition);
}

.av-select:hover {
    background: var(--background);
}

.av-select:focus {
    border-color: var(--primary);
}

.av-select-arrow {
    position: absolute;
    right: 0.625rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted-foreground);
    pointer-events: none;
}

/* Filter Tabs */
.av-filter-tabs {
    display: flex;
    align-items: center;
    background: var(--muted);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 3px;
    gap: 2px;
}

.av-filter-tab {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.av-filter-tab input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.av-filter-tab span {
    display: inline-flex;
    padding: 0.375rem 0.875rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--muted-foreground);
    background: transparent;
    border-radius: 0.375rem;
    transition: var(--av-transition);
}

.av-filter-tab input:checked + span {
    color: var(--foreground);
    background: var(--card);
    box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}

.av-filter-tab:hover span {
    color: var(--foreground);
}

/* View Toggle */
.av-view-toggle {
    display: flex;
    align-items: center;
    background: var(--muted);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 3px;
    gap: 2px;
}

.av-view-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0.375rem;
    color: var(--muted-foreground);
    cursor: pointer;
    transition: var(--av-transition);
}

.av-view-btn:hover {
    color: var(--foreground);
}

.av-view-btn.active {
    color: var(--foreground);
    background: var(--card);
    box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}

/* Assignment Cards - Refined Styling */
#assignments_grid .assignment-card,
.kt-card.assignment-card {
    background: var(--card) !important;
    border: 1px solid var(--border) !important;
    border-radius: 0.75rem !important;
    box-shadow: var(--av-card-shadow) !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    overflow: hidden;
}

#assignments_grid .assignment-card:hover,
.kt-card.assignment-card:hover {
    border-color: var(--primary) !important;
    box-shadow: var(--av-card-shadow-hover) !important;
    transform: translateY(-2px) !important;
}

#assignments_grid .assignment-card:active,
.kt-card.assignment-card:active,
#assignments_grid .assignment-card:focus,
.kt-card.assignment-card:focus {
    background: var(--card) !important;
    transform: translateY(-1px) !important;
}

[data-kt-theme-mode="dark"] #assignments_grid .assignment-card:active,
[data-kt-theme-mode="dark"] .kt-card.assignment-card:active,
[data-kt-theme-mode="dark"] #assignments_grid .assignment-card:focus,
[data-kt-theme-mode="dark"] .kt-card.assignment-card:focus {
    background: var(--card) !important;
}

/* Card Content Refinements */
#assignments_grid .kt-card-content {
    padding: 1.25rem !important;
}

/* Assignment Title */
#assignments_grid .assignment-card h3 {
    font-size: 1rem !important;
    font-weight: 600 !important;
    font-family: var(--av-font-sans) !important;
    letter-spacing: -0.01em !important;
    line-height: 1.4 !important;
    color: var(--foreground) !important;
    background: none !important;
    -webkit-background-clip: initial !important;
    background-clip: initial !important;
    -webkit-text-fill-color: initial !important;
}

#assignments_grid .assignment-card h3:hover {
    color: var(--primary) !important;
}

/* Status Badge */
#assignments_grid .kt-badge {
    font-size: 0.6875rem !important;
    font-weight: 600 !important;
    padding: 0.25rem 0.625rem !important;
    border-radius: 0.375rem !important;
    letter-spacing: 0.02em !important;
}

/* Plagiarism Card Refinements */
#assignments_grid .cq-plagiarism-card {
    border-radius: 0.625rem !important;
    padding: 1rem !important;
}

/* Score-based styling for assignments grid - Critical (80%+) */
#assignments_grid .cq-plagiarism-card.cq-score-critical {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.08) 0%, rgba(220, 38, 38, 0.05) 100%) !important;
    border: 2px solid rgba(239, 68, 68, 0.3) !important;
}

/* High (70-79%) */
#assignments_grid .cq-plagiarism-card.cq-score-high {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.06) 0%, rgba(220, 38, 38, 0.03) 100%) !important;
    border: 2px solid rgba(239, 68, 68, 0.25) !important;
}

/* Elevated (60-69%) */
#assignments_grid .cq-plagiarism-card.cq-score-elevated {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.06) 0%, rgba(234, 88, 12, 0.03) 100%) !important;
    border: 2px solid rgba(249, 115, 22, 0.25) !important;
}

/* Moderate (40-59%) */
#assignments_grid .cq-plagiarism-card.cq-score-moderate {
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.06) 0%, rgba(202, 138, 4, 0.03) 100%) !important;
    border: 2px solid rgba(234, 179, 8, 0.25) !important;
}

/* Low (20-39%) */
#assignments_grid .cq-plagiarism-card.cq-score-low {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.06) 0%, rgba(37, 99, 235, 0.03) 100%) !important;
    border: 2px solid rgba(59, 130, 246, 0.25) !important;
}

/* Safe (0-19%) */
#assignments_grid .cq-plagiarism-card.cq-score-safe {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.06) 0%, rgba(5, 150, 105, 0.03) 100%) !important;
    border: 2px solid rgba(16, 185, 129, 0.25) !important;
}

/* Fallback for cards without score class - neutral gray */
#assignments_grid .cq-plagiarism-card:not([class*="cq-score-"]) {
    background: linear-gradient(135deg, rgba(142, 142, 147, 0.06) 0%, rgba(118, 118, 128, 0.03) 100%) !important;
    border: 2px solid rgba(142, 142, 147, 0.25) !important;
}

/* Dark mode overrides for assignments grid */
[data-kt-theme-mode="dark"] #assignments_grid .cq-plagiarism-card.cq-score-critical {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.12) 0%, rgba(220, 38, 38, 0.08) 100%) !important;
    border-color: rgba(239, 68, 68, 0.4) !important;
}

[data-kt-theme-mode="dark"] #assignments_grid .cq-plagiarism-card.cq-score-high {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(220, 38, 38, 0.06) 100%) !important;
    border-color: rgba(239, 68, 68, 0.35) !important;
}

[data-kt-theme-mode="dark"] #assignments_grid .cq-plagiarism-card.cq-score-elevated {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.1) 0%, rgba(234, 88, 12, 0.06) 100%) !important;
    border-color: rgba(249, 115, 22, 0.35) !important;
}

[data-kt-theme-mode="dark"] #assignments_grid .cq-plagiarism-card.cq-score-moderate {
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.1) 0%, rgba(202, 138, 4, 0.06) 100%) !important;
    border-color: rgba(234, 179, 8, 0.35) !important;
}

[data-kt-theme-mode="dark"] #assignments_grid .cq-plagiarism-card.cq-score-low {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(37, 99, 235, 0.06) 100%) !important;
    border-color: rgba(59, 130, 246, 0.35) !important;
}

[data-kt-theme-mode="dark"] #assignments_grid .cq-plagiarism-card.cq-score-safe {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.06) 100%) !important;
    border-color: rgba(16, 185, 129, 0.35) !important;
}

/* Fallback for cards without score class - neutral gray (dark mode) */
[data-kt-theme-mode="dark"] #assignments_grid .cq-plagiarism-card:not([class*="cq-score-"]) {
    background: linear-gradient(135deg, rgba(142, 142, 147, 0.1) 0%, rgba(118, 118, 128, 0.06) 100%) !important;
    border-color: rgba(142, 142, 147, 0.35) !important;
}

#assignments_grid .cq-score-value {
    font-size: 1.75rem !important;
    font-weight: 700 !important;
    font-family: var(--av-font-sans) !important;
    letter-spacing: -0.03em !important;
}

/* Stats Card Refinements */
#assignments_grid .bg-gray-50,
#assignments_grid .bg-muted {
    background: var(--muted) !important;
    border-color: var(--border) !important;
}

/* Action Buttons in Cards - Vercel Style */
#assignments_grid .kt-btn {
    font-family: var(--av-font-sans) !important;
    font-weight: 500 !important;
    border-radius: 0.5rem !important;
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border: 1px solid transparent !important;
    font-size: 0.875rem !important;
    line-height: 1.25rem !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
}

#assignments_grid .kt-btn i {
    font-size: 1rem !important;
    line-height: 1 !important;
}

#assignments_grid .kt-btn-success {
    background: #10b981 !important;
    border-color: #10b981 !important;
    color: #ffffff !important;
    font-weight: 500 !important;
    box-shadow: none !important;
}

#assignments_grid .kt-btn-success:hover {
    background: #059669 !important;
    border-color: #059669 !important;
    box-shadow: none !important;
}

#assignments_grid .kt-btn-success:active {
    background: #047857 !important;
    border-color: #047857 !important;
    box-shadow: none !important;
}

#assignments_grid .kt-btn-primary {
    background: #3b82f6 !important;
    border-color: #3b82f6 !important;
    color: #ffffff !important;
    font-weight: 500 !important;
    box-shadow: none !important;
}

#assignments_grid .kt-btn-primary:hover {
    background: #2563eb !important;
    border-color: #2563eb !important;
    box-shadow: none !important;
}

#assignments_grid .kt-btn-warning {
    background: #f59e0b !important;
    border-color: #f59e0b !important;
    color: #ffffff !important;
    font-weight: 500 !important;
    box-shadow: none !important;
}

#assignments_grid .kt-btn-warning:hover {
    background: #d97706 !important;
    border-color: #d97706 !important;
    box-shadow: none !important;
}

#assignments_grid .kt-btn-outline {
    background: transparent !important;
    border: 1px solid var(--border) !important;
    color: var(--foreground) !important;
    font-weight: 500 !important;
    box-shadow: none !important;
}

#assignments_grid .kt-btn-outline:hover {
    background: var(--muted) !important;
    border-color: var(--foreground) !important;
    box-shadow: none !important;
}

/* List View Styling */
#assignments_list .assignment-card {
    background: var(--card) !important;
    border: 1px solid var(--border) !important;
    border-radius: 0.75rem !important;
    box-shadow: var(--av-card-shadow) !important;
    transition: all 0.2s ease !important;
}

#assignments_list .assignment-card:hover {
    border-color: var(--primary) !important;
    box-shadow: var(--av-card-shadow-hover) !important;
}

#assignments_list .assignment-card:active,
#assignments_list .assignment-card:focus {
    background: var(--card) !important;
}

[data-kt-theme-mode="dark"] #assignments_list .assignment-card:active,
[data-kt-theme-mode="dark"] #assignments_list .assignment-card:focus {
    background: var(--card) !important;
}

#assignments_list .kt-btn {
    font-family: var(--av-font-sans) !important;
    font-weight: 500 !important;
    border-radius: 0.5rem !important;
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border: 1px solid transparent !important;
    font-size: 0.875rem !important;
    line-height: 1.25rem !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
}

#assignments_list .kt-btn i {
    font-size: 1rem !important;
    line-height: 1 !important;
}

#assignments_list .kt-btn-success {
    background: #10b981 !important;
    border-color: #10b981 !important;
    color: #ffffff !important;
    font-weight: 500 !important;
    box-shadow: none !important;
}

#assignments_list .kt-btn-success:hover {
    background: #059669 !important;
    border-color: #059669 !important;
    box-shadow: none !important;
}

#assignments_list .kt-btn-success:active {
    background: #047857 !important;
    border-color: #047857 !important;
    box-shadow: none !important;
}

#assignments_list .kt-btn-primary {
    background: #3b82f6 !important;
    border-color: #3b82f6 !important;
    color: #ffffff !important;
    font-weight: 500 !important;
    box-shadow: none !important;
}

#assignments_list .kt-btn-primary:hover {
    background: #2563eb !important;
    border-color: #2563eb !important;
    box-shadow: none !important;
}

#assignments_list .kt-btn-warning {
    background: #f59e0b !important;
    border-color: #f59e0b !important;
    color: #ffffff !important;
    font-weight: 500 !important;
    box-shadow: none !important;
}

#assignments_list .kt-btn-warning:hover {
    background: #d97706 !important;
    border-color: #d97706 !important;
    box-shadow: none !important;
}

#assignments_list .kt-btn-outline {
    background: transparent !important;
    border: 1px solid var(--border) !important;
    color: var(--foreground) !important;
    font-weight: 500 !important;
    box-shadow: none !important;
}

#assignments_list .kt-btn-outline:hover {
    background: var(--muted) !important;
    border-color: var(--foreground) !important;
    box-shadow: none !important;
}

/* Empty State */
.av-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
}

.av-empty-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--muted) 0%, var(--background) 100%);
    border: 1px solid var(--border);
    border-radius: 1.25rem;
    color: var(--muted-foreground);
}

.av-empty-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 0.5rem;
}

.av-empty-desc {
    font-size: 0.9375rem;
    color: var(--muted-foreground);
    max-width: 400px;
    margin-bottom: 1.5rem;
}

/* Page Info */
#pageInfo {
    font-size: 0.8125rem !important;
    color: var(--muted-foreground) !important;
    font-weight: 450 !important;
}

/* Load More Button - Vercel Style */
#loadMoreBtn {
    background: transparent !important;
    border: 1px solid var(--border) !important;
    border-radius: 0.5rem !important;
    color: var(--foreground) !important;
    font-weight: 500 !important;
    font-size: 0.875rem !important;
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1) !important;
    padding: 0.625rem 1rem !important;
}

#loadMoreBtn:hover {
    background: var(--muted) !important;
    border-color: var(--foreground) !important;
}

/* Animations - Subtle */
@keyframes av-fade-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

#assignments_grid .assignment-card {
    animation: av-fade-in 0.3s ease-out forwards;
    opacity: 0;
}

#assignments_grid .assignment-card:nth-child(1) { animation-delay: 0s; }
#assignments_grid .assignment-card:nth-child(2) { animation-delay: 0.05s; }
#assignments_grid .assignment-card:nth-child(3) { animation-delay: 0.1s; }
#assignments_grid .assignment-card:nth-child(4) { animation-delay: 0.15s; }
#assignments_grid .assignment-card:nth-child(5) { animation-delay: 0.2s; }
#assignments_grid .assignment-card:nth-child(6) { animation-delay: 0.25s; }

/* Responsive */
@media (max-width: 1024px) {
    .av-hero-section {
        padding: 1.25rem;
        margin: 0 1rem 1rem;
    }
    
    .av-main-container {
        padding: 0 1rem;
    }
    
    .av-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .av-toolbar-left {
        min-width: 100%;
    }
    
    .av-toolbar-right {
        justify-content: flex-start;
    }
    
    .av-search {
        max-width: 100%;
    }
}

@media (max-width: 640px) {
    .av-hero-section {
        padding: 1rem;
        margin: 0 0.75rem 1rem;
        flex-direction: column;
        gap: 1rem;
    }
    
    .av-hero-title {
        /* font-size override for responsive design */
        font-size: 1.25rem;
    }
    
    .av-hero-actions {
        width: 100%;
    }
    
    .av-hero-actions .av-btn {
        flex: 1;
        font-size: 0.8125rem;
        padding: 0.5rem 0.75rem;
    }
    
    .av-main-container {
        padding: 0 0.75rem;
    }
    
    .av-stats-row {
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    
    .av-filter-tabs {
        display: none;
    }
    
    .av-search-kbd {
        display: none;
    }
    
    .av-breadcrumb {
        display: none;
    }
}

/* ========================================
   DARK MODE CARD CLICK FIX - CRITICAL
   Prevents white flash when clicking cards
   ======================================== */
.kt-card:active,
.kt-card:focus,
.kt-card.active {
    background: var(--card) !important;
}

[data-kt-theme-mode="dark"] .kt-card:active,
[data-kt-theme-mode="dark"] .kt-card:focus,
[data-kt-theme-mode="dark"] .kt-card.active {
    background: var(--card) !important;
}
/* Assignment Card Loading Overlay */
.assignment-card {
    position: relative;
}

.assignment-loading-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    border-radius: 0.75rem;
}

[data-kt-theme-mode="dark"] .assignment-loading-overlay {
    background: rgba(17, 24, 39, 0.95);
}

.assignment-card.loading .assignment-loading-overlay {
    display: flex;
}

.assignment-loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.assignment-loading-spinner i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

/* ========================================
   ANALYSIS STATS ICON BACKGROUNDS
   ======================================== */
.cq-stats-icon-purple {
    background-color: #f3e8ff !important;
}

.cq-stats-icon-purple i {
    color: #9333ea !important;
}

[data-kt-theme-mode="dark"] .cq-stats-icon-purple {
    background-color: rgba(147, 51, 234, 0.20) !important;
}

[data-kt-theme-mode="dark"] .cq-stats-icon-purple i {
    color: #c084fc !important;
}

/* ========================================
   PLAGIARISM SCORE CARD - CUSTOM SCOPED STYLES
   ======================================== */
/* Default background for cards without score class - neutral gray fallback */
.cq-plagiarism-card {
    background: linear-gradient(135deg, rgba(142, 142, 147, 0.06) 0%, rgba(118, 118, 128, 0.03) 100%) !important;
    border: 2px solid rgba(142, 142, 147, 0.25) !important;
}

[data-kt-theme-mode="dark"] .cq-plagiarism-card {
    background: linear-gradient(135deg, rgba(142, 142, 147, 0.1) 0%, rgba(118, 118, 128, 0.06) 100%) !important;
    border-color: rgba(142, 142, 147, 0.35) !important;
}

/* Critical (80%+) - Bright Red */
.cq-plagiarism-card.cq-score-critical {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.08) 0%, rgba(220, 38, 38, 0.05) 100%) !important;
    border: 2px solid rgba(239, 68, 68, 0.3) !important;
}
.cq-plagiarism-card.cq-score-critical .cq-score-icon {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(220, 38, 38, 0.15) 100%) !important;
    border: 2px solid rgba(239, 68, 68, 0.4) !important;
    color: #dc2626 !important;
}
.cq-plagiarism-card.cq-score-critical .cq-score-value {
    color: #dc2626 !important;
}
.cq-plagiarism-card.cq-score-critical .cq-score-badge {
    background: rgba(239, 68, 68, 0.15) !important;
    border: 1px solid rgba(239, 68, 68, 0.3) !important;
    color: #dc2626 !important;
}

/* High (70-79%) - Red */
.cq-plagiarism-card.cq-score-high {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.06) 0%, rgba(220, 38, 38, 0.03) 100%) !important;
    border: 2px solid rgba(239, 68, 68, 0.25) !important;
}
.cq-plagiarism-card.cq-score-high .cq-score-icon {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(220, 38, 38, 0.1) 100%) !important;
    border: 2px solid rgba(239, 68, 68, 0.35) !important;
    color: #ef4444 !important;
}
.cq-plagiarism-card.cq-score-high .cq-score-value {
    color: #ef4444 !important;
}
.cq-plagiarism-card.cq-score-high .cq-score-badge {
    background: rgba(239, 68, 68, 0.12) !important;
    border: 1px solid rgba(239, 68, 68, 0.25) !important;
    color: #ef4444 !important;
}

/* Elevated (60-69%) - Orange */
.cq-plagiarism-card.cq-score-elevated {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.06) 0%, rgba(234, 88, 12, 0.03) 100%) !important;
    border: 2px solid rgba(249, 115, 22, 0.25) !important;
}
.cq-plagiarism-card.cq-score-elevated .cq-score-icon {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.15) 0%, rgba(234, 88, 12, 0.1) 100%) !important;
    border: 2px solid rgba(249, 115, 22, 0.35) !important;
    color: #ea580c !important;
}
.cq-plagiarism-card.cq-score-elevated .cq-score-value {
    color: #ea580c !important;
}
.cq-plagiarism-card.cq-score-elevated .cq-score-badge {
    background: rgba(249, 115, 22, 0.12) !important;
    border: 1px solid rgba(249, 115, 22, 0.25) !important;
    color: #ea580c !important;
}

/* Moderate (40-59%) - Yellow */
.cq-plagiarism-card.cq-score-moderate {
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.06) 0%, rgba(202, 138, 4, 0.03) 100%) !important;
    border: 2px solid rgba(234, 179, 8, 0.25) !important;
}
.cq-plagiarism-card.cq-score-moderate .cq-score-icon {
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.15) 0%, rgba(202, 138, 4, 0.1) 100%) !important;
    border: 2px solid rgba(234, 179, 8, 0.35) !important;
    color: #ca8a04 !important;
}
.cq-plagiarism-card.cq-score-moderate .cq-score-value {
    color: #ca8a04 !important;
}
.cq-plagiarism-card.cq-score-moderate .cq-score-badge {
    background: rgba(234, 179, 8, 0.12) !important;
    border: 1px solid rgba(234, 179, 8, 0.25) !important;
    color: #ca8a04 !important;
}

/* Low (20-39%) - Blue */
.cq-plagiarism-card.cq-score-low {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.06) 0%, rgba(37, 99, 235, 0.03) 100%) !important;
    border: 2px solid rgba(59, 130, 246, 0.25) !important;
}
.cq-plagiarism-card.cq-score-low .cq-score-icon {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(37, 99, 235, 0.1) 100%) !important;
    border: 2px solid rgba(59, 130, 246, 0.35) !important;
    color: #2563eb !important;
}
.cq-plagiarism-card.cq-score-low .cq-score-value {
    color: #2563eb !important;
}
.cq-plagiarism-card.cq-score-low .cq-score-badge {
    background: rgba(59, 130, 246, 0.12) !important;
    border: 1px solid rgba(59, 130, 246, 0.25) !important;
    color: #2563eb !important;
}

/* Safe (0-19%) - Green */
.cq-plagiarism-card.cq-score-safe {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.06) 0%, rgba(5, 150, 105, 0.03) 100%) !important;
    border: 2px solid rgba(16, 185, 129, 0.25) !important;
}
.cq-plagiarism-card.cq-score-safe .cq-score-icon {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(5, 150, 105, 0.1) 100%) !important;
    border: 2px solid rgba(16, 185, 129, 0.35) !important;
    color: #059669 !important;
}
.cq-plagiarism-card.cq-score-safe .cq-score-value {
    color: #059669 !important;
}
.cq-plagiarism-card.cq-score-safe .cq-score-badge {
    background: rgba(16, 185, 129, 0.12) !important;
    border: 1px solid rgba(16, 185, 129, 0.25) !important;
    color: #059669 !important;
}

/* Dark Mode Overrides */
[data-kt-theme-mode="dark"] .cq-plagiarism-card.cq-score-critical {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.12) 0%, rgba(220, 38, 38, 0.08) 100%) !important;
    border-color: rgba(239, 68, 68, 0.4) !important;
}
[data-kt-theme-mode="dark"] .cq-plagiarism-card.cq-score-critical .cq-score-icon {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.25) 0%, rgba(220, 38, 38, 0.18) 100%) !important;
    border-color: rgba(239, 68, 68, 0.5) !important;
    color: #fca5a5 !important;
}
[data-kt-theme-mode="dark"] .cq-plagiarism-card.cq-score-critical .cq-score-value {
    color: #fca5a5 !important;
}
[data-kt-theme-mode="dark"] .cq-plagiarism-card.cq-score-critical .cq-score-badge {
    background: rgba(239, 68, 68, 0.2) !important;
    border-color: rgba(239, 68, 68, 0.35) !important;
    color: #fca5a5 !important;
}

[data-kt-theme-mode="dark"] .cq-plagiarism-card.cq-score-high {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(220, 38, 38, 0.06) 100%) !important;
    border-color: rgba(239, 68, 68, 0.35) !important;
}
[data-kt-theme-mode="dark"] .cq-plagiarism-card.cq-score-high .cq-score-icon {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(220, 38, 38, 0.15) 100%) !important;
    border-color: rgba(239, 68, 68, 0.45) !important;
    color: #f87171 !important;
}
[data-kt-theme-mode="dark"] .cq-plagiarism-card.cq-score-high .cq-score-value,
[data-kt-theme-mode="dark"] .cq-plagiarism-card.cq-score-high .cq-score-badge {
    color: #f87171 !important;
}
[data-kt-theme-mode="dark"] .cq-plagiarism-card.cq-score-high .cq-score-badge {
    background: rgba(239, 68, 68, 0.18) !important;
    border-color: rgba(239, 68, 68, 0.35) !important;
}

/* Elevated Dark Mode */
[data-kt-theme-mode="dark"] .cq-plagiarism-card.cq-score-elevated {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.1) 0%, rgba(234, 88, 12, 0.06) 100%) !important;
    border-color: rgba(249, 115, 22, 0.35) !important;
}
[data-kt-theme-mode="dark"] .cq-plagiarism-card.cq-score-elevated .cq-score-icon {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.2) 0%, rgba(234, 88, 12, 0.15) 100%) !important;
    border-color: rgba(249, 115, 22, 0.45) !important;
    color: #fb923c !important;
}
[data-kt-theme-mode="dark"] .cq-plagiarism-card.cq-score-elevated .cq-score-value,
[data-kt-theme-mode="dark"] .cq-plagiarism-card.cq-score-elevated .cq-score-badge {
    color: #fb923c !important;
}
[data-kt-theme-mode="dark"] .cq-plagiarism-card.cq-score-elevated .cq-score-badge {
    background: rgba(249, 115, 22, 0.18) !important;
    border-color: rgba(249, 115, 22, 0.35) !important;
}

/* Moderate Dark Mode */
[data-kt-theme-mode="dark"] .cq-plagiarism-card.cq-score-moderate {
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.1) 0%, rgba(202, 138, 4, 0.06) 100%) !important;
    border-color: rgba(234, 179, 8, 0.35) !important;
}
[data-kt-theme-mode="dark"] .cq-plagiarism-card.cq-score-moderate .cq-score-icon {
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.2) 0%, rgba(202, 138, 4, 0.15) 100%) !important;
    border-color: rgba(234, 179, 8, 0.45) !important;
    color: #facc15 !important;
}
[data-kt-theme-mode="dark"] .cq-plagiarism-card.cq-score-moderate .cq-score-value,
[data-kt-theme-mode="dark"] .cq-plagiarism-card.cq-score-moderate .cq-score-badge {
    color: #facc15 !important;
}
[data-kt-theme-mode="dark"] .cq-plagiarism-card.cq-score-moderate .cq-score-badge {
    background: rgba(234, 179, 8, 0.18) !important;
    border-color: rgba(234, 179, 8, 0.35) !important;
}

/* Low Dark Mode */
[data-kt-theme-mode="dark"] .cq-plagiarism-card.cq-score-low {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(37, 99, 235, 0.06) 100%) !important;
    border-color: rgba(59, 130, 246, 0.35) !important;
}
[data-kt-theme-mode="dark"] .cq-plagiarism-card.cq-score-low .cq-score-icon {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(37, 99, 235, 0.15) 100%) !important;
    border-color: rgba(59, 130, 246, 0.45) !important;
    color: #60a5fa !important;
}
[data-kt-theme-mode="dark"] .cq-plagiarism-card.cq-score-low .cq-score-value,
[data-kt-theme-mode="dark"] .cq-plagiarism-card.cq-score-low .cq-score-badge {
    color: #60a5fa !important;
}
[data-kt-theme-mode="dark"] .cq-plagiarism-card.cq-score-low .cq-score-badge {
    background: rgba(59, 130, 246, 0.18) !important;
    border-color: rgba(59, 130, 246, 0.35) !important;
}

/* Safe Dark Mode */
[data-kt-theme-mode="dark"] .cq-plagiarism-card.cq-score-safe {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.06) 100%) !important;
    border-color: rgba(16, 185, 129, 0.35) !important;
}
[data-kt-theme-mode="dark"] .cq-plagiarism-card.cq-score-safe .cq-score-icon {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(5, 150, 105, 0.15) 100%) !important;
    border-color: rgba(16, 185, 129, 0.45) !important;
    color: #34d399 !important;
}
[data-kt-theme-mode="dark"] .cq-plagiarism-card.cq-score-safe .cq-score-value,
[data-kt-theme-mode="dark"] .cq-plagiarism-card.cq-score-safe .cq-score-badge {
    color: #34d399 !important;
}
[data-kt-theme-mode="dark"] .cq-plagiarism-card.cq-score-safe .cq-score-badge {
    background: rgba(16, 185, 129, 0.18) !important;
    border-color: rgba(16, 185, 129, 0.35) !important;
}

/* Progress Ring Colors - Match Score Levels */
.cq-plagiarism-card.cq-score-critical .cq-progress-ring { color: #dc2626; }
.cq-plagiarism-card.cq-score-high .cq-progress-ring { color: #ef4444; }
.cq-plagiarism-card.cq-score-elevated .cq-progress-ring { color: #ea580c; }
.cq-plagiarism-card.cq-score-moderate .cq-progress-ring { color: #ca8a04; }
.cq-plagiarism-card.cq-score-low .cq-progress-ring { color: #2563eb; }
.cq-plagiarism-card.cq-score-safe .cq-progress-ring { color: #059669; }

/* Progress Ring Icon Colors */
.cq-plagiarism-card.cq-score-critical .cq-score-icon-color { color: #dc2626; }
.cq-plagiarism-card.cq-score-high .cq-score-icon-color { color: #ef4444; }
.cq-plagiarism-card.cq-score-elevated .cq-score-icon-color { color: #ea580c; }
.cq-plagiarism-card.cq-score-moderate .cq-score-icon-color { color: #ca8a04; }
.cq-plagiarism-card.cq-score-low .cq-score-icon-color { color: #2563eb; }
.cq-plagiarism-card.cq-score-safe .cq-score-icon-color { color: #059669; }

/* Dark Mode Progress Ring */
[data-kt-theme-mode="dark"] .cq-plagiarism-card.cq-score-critical .cq-progress-ring,
[data-kt-theme-mode="dark"] .cq-plagiarism-card.cq-score-critical .cq-score-icon-color { color: #fca5a5; }
[data-kt-theme-mode="dark"] .cq-plagiarism-card.cq-score-high .cq-progress-ring,
[data-kt-theme-mode="dark"] .cq-plagiarism-card.cq-score-high .cq-score-icon-color { color: #f87171; }
[data-kt-theme-mode="dark"] .cq-plagiarism-card.cq-score-elevated .cq-progress-ring,
[data-kt-theme-mode="dark"] .cq-plagiarism-card.cq-score-elevated .cq-score-icon-color { color: #fb923c; }
[data-kt-theme-mode="dark"] .cq-plagiarism-card.cq-score-moderate .cq-progress-ring,
[data-kt-theme-mode="dark"] .cq-plagiarism-card.cq-score-moderate .cq-score-icon-color { color: #facc15; }
[data-kt-theme-mode="dark"] .cq-plagiarism-card.cq-score-low .cq-progress-ring,
[data-kt-theme-mode="dark"] .cq-plagiarism-card.cq-score-low .cq-score-icon-color { color: #60a5fa; }
[data-kt-theme-mode="dark"] .cq-plagiarism-card.cq-score-safe .cq-progress-ring,
[data-kt-theme-mode="dark"] .cq-plagiarism-card.cq-score-safe .cq-score-icon-color { color: #34d399; }

/* Pro Only Badge - Modern Clean Design */
.pro-only-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.08) 0%, rgba(139, 92, 246, 0.06) 100%);
    border: 1px solid rgba(168, 85, 247, 0.25);
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    color: #7c3aed;
    letter-spacing: 0.02em;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(124, 58, 237, 0.1);
}

.pro-only-badge:hover {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.12) 0%, rgba(139, 92, 246, 0.1) 100%);
    border-color: rgba(168, 85, 247, 0.35);
    box-shadow: 0 2px 6px rgba(124, 58, 237, 0.15);
    transform: translateY(-1px);
}

.pro-only-badge i {
    font-size: 10px;
    color: #7c3aed;
}

[data-kt-theme-mode="dark"] .pro-only-badge {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.12) 0%, rgba(139, 92, 246, 0.08) 100%);
    border-color: rgba(168, 85, 247, 0.3);
    color: #c084fc;
    box-shadow: 0 1px 3px rgba(168, 85, 247, 0.15);
}

[data-kt-theme-mode="dark"] .pro-only-badge:hover {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.18) 0%, rgba(139, 92, 246, 0.12) 100%);
    border-color: rgba(168, 85, 247, 0.4);
    box-shadow: 0 2px 6px rgba(168, 85, 247, 0.2);
}

[data-kt-theme-mode="dark"] .pro-only-badge i {
    color: #c084fc;
}

/* Plagiarism Score Custom Styles - NUCLEAR OVERRIDE FOR ALL COURSES */
/* Critical - Red */
div.kt-card-content > div.mb-4.plagiarism-box-critical,
.assignment-card .plagiarism-box-critical,
#assignments_grid .plagiarism-box-critical,
#assignments_list .plagiarism-box-critical,
[class*="plagiarism-box-critical"] {
    background-color: rgb(254, 226, 226) !important;
    background: rgb(254, 226, 226) !important;
    border: 2px solid rgb(252, 165, 165) !important;
    border-color: rgb(252, 165, 165) !important;
}
[data-kt-theme-mode="dark"] div.kt-card-content > div.mb-4.plagiarism-box-critical,
[data-kt-theme-mode="dark"] .assignment-card .plagiarism-box-critical,
[data-kt-theme-mode="dark"] #assignments_grid .plagiarism-box-critical,
[data-kt-theme-mode="dark"] #assignments_list .plagiarism-box-critical,
[data-kt-theme-mode="dark"] [class*="plagiarism-box-critical"] {
    background-color: rgba(239, 68, 68, 0.3) !important;
    background: rgba(239, 68, 68, 0.3) !important;
    border: 2px solid rgba(239, 68, 68, 0.7) !important;
    border-color: rgba(239, 68, 68, 0.7) !important;
}

/* High - Red/Pink */
div.kt-card-content > div.mb-4.plagiarism-box-high,
.assignment-card .plagiarism-box-high,
#assignments_grid .plagiarism-box-high,
#assignments_list .plagiarism-box-high,
[class*="plagiarism-box-high"] {
    background-color: rgb(254, 242, 242) !important;
    background: rgb(254, 242, 242) !important;
    border: 2px solid rgb(254, 202, 202) !important;
    border-color: rgb(254, 202, 202) !important;
}
[data-kt-theme-mode="dark"] div.kt-card-content > div.mb-4.plagiarism-box-high,
[data-kt-theme-mode="dark"] .assignment-card .plagiarism-box-high,
[data-kt-theme-mode="dark"] #assignments_grid .plagiarism-box-high,
[data-kt-theme-mode="dark"] #assignments_list .plagiarism-box-high,
[data-kt-theme-mode="dark"] [class*="plagiarism-box-high"] {
    background-color: rgba(239, 68, 68, 0.2) !important;
    background: rgba(239, 68, 68, 0.2) !important;
    border: 2px solid rgba(239, 68, 68, 0.8) !important;
    border-color: rgba(239, 68, 68, 0.8) !important;
}

/* Review - Orange */
div.kt-card-content > div.mb-4.plagiarism-box-review,
.assignment-card .plagiarism-box-review,
#assignments_grid .plagiarism-box-review,
#assignments_list .plagiarism-box-review,
[class*="plagiarism-box-review"] {
    background-color: rgb(255, 237, 213) !important;
    background: rgb(255, 237, 213) !important;
    border: 2px solid rgb(254, 215, 170) !important;
    border-color: rgb(254, 215, 170) !important;
}
[data-kt-theme-mode="dark"] div.kt-card-content > div.mb-4.plagiarism-box-review,
[data-kt-theme-mode="dark"] .assignment-card .plagiarism-box-review,
[data-kt-theme-mode="dark"] #assignments_grid .plagiarism-box-review,
[data-kt-theme-mode="dark"] #assignments_list .plagiarism-box-review,
[data-kt-theme-mode="dark"] [class*="plagiarism-box-review"] {
    background-color: rgba(249, 115, 22, 0.2) !important;
    background: rgba(249, 115, 22, 0.2) !important;
    border: 2px solid rgba(249, 115, 22, 0.8) !important;
    border-color: rgba(249, 115, 22, 0.8) !important;
}

/* Elevated - Yellow */
div.kt-card-content > div.mb-4.plagiarism-box-elevated,
.assignment-card .plagiarism-box-elevated,
#assignments_grid .plagiarism-box-elevated,
#assignments_list .plagiarism-box-elevated,
[class*="plagiarism-box-elevated"] {
    background-color: rgb(254, 249, 195) !important;
    background: rgb(254, 249, 195) !important;
    border: 2px solid rgb(253, 224, 71) !important;
    border-color: rgb(253, 224, 71) !important;
}
[data-kt-theme-mode="dark"] div.kt-card-content > div.mb-4.plagiarism-box-elevated,
[data-kt-theme-mode="dark"] .assignment-card .plagiarism-box-elevated,
[data-kt-theme-mode="dark"] #assignments_grid .plagiarism-box-elevated,
[data-kt-theme-mode="dark"] #assignments_list .plagiarism-box-elevated,
[data-kt-theme-mode="dark"] [class*="plagiarism-box-elevated"] {
    background-color: rgba(250, 204, 21, 0.2) !important;
    background: rgba(250, 204, 21, 0.2) !important;
    border: 2px solid rgba(250, 204, 21, 0.8) !important;
    border-color: rgba(250, 204, 21, 0.8) !important;
}

/* Moderate - Light Yellow */
div.kt-card-content > div.mb-4.plagiarism-box-moderate,
.assignment-card .plagiarism-box-moderate,
#assignments_grid .plagiarism-box-moderate,
#assignments_list .plagiarism-box-moderate,
[class*="plagiarism-box-moderate"] {
    background-color: rgb(254, 252, 232) !important;
    background: rgb(254, 252, 232) !important;
    border: 2px solid rgb(254, 240, 138) !important;
    border-color: rgb(254, 240, 138) !important;
}
[data-kt-theme-mode="dark"] div.kt-card-content > div.mb-4.plagiarism-box-moderate,
[data-kt-theme-mode="dark"] .assignment-card .plagiarism-box-moderate,
[data-kt-theme-mode="dark"] #assignments_grid .plagiarism-box-moderate,
[data-kt-theme-mode="dark"] #assignments_list .plagiarism-box-moderate,
[data-kt-theme-mode="dark"] [class*="plagiarism-box-moderate"] {
    background-color: rgba(234, 179, 8, 0.2) !important;
    background: rgba(234, 179, 8, 0.2) !important;
    border: 2px solid rgba(234, 179, 8, 0.8) !important;
    border-color: rgba(234, 179, 8, 0.8) !important;
}

/* Caution - Light Yellow */
div.kt-card-content > div.mb-4.plagiarism-box-caution,
.assignment-card .plagiarism-box-caution,
#assignments_grid .plagiarism-box-caution,
#assignments_list .plagiarism-box-caution,
[class*="plagiarism-box-caution"] {
    background-color: rgb(254, 252, 232) !important;
    background: rgb(254, 252, 232) !important;
    border: 2px solid rgb(254, 240, 138) !important;
    border-color: rgb(254, 240, 138) !important;
}
[data-kt-theme-mode="dark"] div.kt-card-content > div.mb-4.plagiarism-box-caution,
[data-kt-theme-mode="dark"] .assignment-card .plagiarism-box-caution,
[data-kt-theme-mode="dark"] #assignments_grid .plagiarism-box-caution,
[data-kt-theme-mode="dark"] #assignments_list .plagiarism-box-caution,
[data-kt-theme-mode="dark"] [class*="plagiarism-box-caution"] {
    background-color: rgba(234, 179, 8, 0.2) !important;
    background: rgba(234, 179, 8, 0.2) !important;
    border: 2px solid rgba(234, 179, 8, 0.8) !important;
    border-color: rgba(234, 179, 8, 0.8) !important;
}

/* Safe - Green */
div.kt-card-content > div.mb-4.plagiarism-box-safe,
.assignment-card .plagiarism-box-safe,
#assignments_grid .plagiarism-box-safe,
#assignments_list .plagiarism-box-safe,
[class*="plagiarism-box-safe"] {
    background-color: rgb(240, 253, 244) !important;
    background: rgb(240, 253, 244) !important;
    border: 2px solid rgb(187, 247, 208) !important;
    border-color: rgb(187, 247, 208) !important;
}
[data-kt-theme-mode="dark"] div.kt-card-content > div.mb-4.plagiarism-box-safe,
[data-kt-theme-mode="dark"] .assignment-card .plagiarism-box-safe,
[data-kt-theme-mode="dark"] #assignments_grid .plagiarism-box-safe,
[data-kt-theme-mode="dark"] #assignments_list .plagiarism-box-safe,
[data-kt-theme-mode="dark"] [class*="plagiarism-box-safe"] {
    background-color: rgba(34, 197, 94, 0.2) !important;
    background: rgba(34, 197, 94, 0.2) !important;
    border: 2px solid rgba(34, 197, 94, 0.8) !important;
    border-color: rgba(34, 197, 94, 0.8) !important;
}

/* Icon Circle Styles */
#assignments_grid .plagiarism-icon-critical,
#assignments_list .plagiarism-icon-critical,
.assignment-card .plagiarism-icon-critical {
    background-color: rgb(254 226 226) !important;
    border-color: rgb(252 165 165) !important;
    color: rgb(185 28 28) !important;
}
[data-kt-theme-mode="dark"] #assignments_grid .plagiarism-icon-critical,
[data-kt-theme-mode="dark"] #assignments_list .plagiarism-icon-critical,
[data-kt-theme-mode="dark"] .assignment-card .plagiarism-icon-critical {
    background-color: rgba(239, 68, 68, 0.3) !important;
    border-color: rgba(239, 68, 68, 0.7) !important;
    color: rgb(252 165 165) !important;
}

#assignments_grid .plagiarism-icon-high,
#assignments_list .plagiarism-icon-high,
.assignment-card .plagiarism-icon-high {
    background-color: rgb(254 242 242) !important;
    border-color: rgb(254 202 202) !important;
    color: rgb(220 38 38) !important;
}
[data-kt-theme-mode="dark"] #assignments_grid .plagiarism-icon-high,
[data-kt-theme-mode="dark"] #assignments_list .plagiarism-icon-high,
[data-kt-theme-mode="dark"] .assignment-card .plagiarism-icon-high {
    background-color: rgba(239, 68, 68, 0.2) !important;
    border-color: rgba(239, 68, 68, 0.8) !important;
    color: rgb(248 113 113) !important;
}

#assignments_grid .plagiarism-icon-review,
#assignments_list .plagiarism-icon-review,
.assignment-card .plagiarism-icon-review {
    background-color: rgb(255 237 213) !important;
    border-color: rgb(254 215 170) !important;
    color: rgb(234 88 12) !important;
}
[data-kt-theme-mode="dark"] #assignments_grid .plagiarism-icon-review,
[data-kt-theme-mode="dark"] #assignments_list .plagiarism-icon-review,
[data-kt-theme-mode="dark"] .assignment-card .plagiarism-icon-review {
    background-color: rgba(249, 115, 22, 0.2) !important;
    border-color: rgba(249, 115, 22, 0.8) !important;
    color: rgb(251 146 60) !important;
}

#assignments_grid .plagiarism-icon-elevated,
#assignments_list .plagiarism-icon-elevated,
.assignment-card .plagiarism-icon-elevated {
    background-color: rgb(254 249 195) !important;
    border-color: rgb(253 224 71) !important;
    color: rgb(133 77 14) !important;
}
[data-kt-theme-mode="dark"] #assignments_grid .plagiarism-icon-elevated,
[data-kt-theme-mode="dark"] #assignments_list .plagiarism-icon-elevated,
[data-kt-theme-mode="dark"] .assignment-card .plagiarism-icon-elevated {
    background-color: rgba(250, 204, 21, 0.2) !important;
    border-color: rgba(250, 204, 21, 0.8) !important;
    color: rgb(253 224 71) !important;
}

#assignments_grid .plagiarism-icon-moderate,
#assignments_list .plagiarism-icon-moderate,
.assignment-card .plagiarism-icon-moderate,
#assignments_grid .plagiarism-icon-caution,
#assignments_list .plagiarism-icon-caution,
.assignment-card .plagiarism-icon-caution {
    background-color: rgb(254 252 232) !important;
    border-color: rgb(254 240 138) !important;
    color: rgb(161 98 7) !important;
}
[data-kt-theme-mode="dark"] #assignments_grid .plagiarism-icon-moderate,
[data-kt-theme-mode="dark"] #assignments_list .plagiarism-icon-moderate,
[data-kt-theme-mode="dark"] .assignment-card .plagiarism-icon-moderate,
[data-kt-theme-mode="dark"] #assignments_grid .plagiarism-icon-caution,
[data-kt-theme-mode="dark"] #assignments_list .plagiarism-icon-caution,
[data-kt-theme-mode="dark"] .assignment-card .plagiarism-icon-caution {
    background-color: rgba(234, 179, 8, 0.2) !important;
    border-color: rgba(234, 179, 8, 0.8) !important;
    color: rgb(250 204 21) !important;
}

#assignments_grid .plagiarism-icon-safe,
#assignments_list .plagiarism-icon-safe,
.assignment-card .plagiarism-icon-safe {
    background-color: rgb(240 253 244) !important;
    border-color: rgb(187 247 208) !important;
    color: rgb(22 101 52) !important;
}
[data-kt-theme-mode="dark"] #assignments_grid .plagiarism-icon-safe,
[data-kt-theme-mode="dark"] #assignments_list .plagiarism-icon-safe,
[data-kt-theme-mode="dark"] .assignment-card .plagiarism-icon-safe {
    background-color: rgba(34, 197, 94, 0.2) !important;
    border-color: rgba(34, 197, 94, 0.8) !important;
    color: rgb(134 239 172) !important;
}

/* Score Text Styles - NUCLEAR OVERRIDE */
div.kt-card-content span.plagiarism-text-critical,
.assignment-card .plagiarism-text-critical,
#assignments_grid .plagiarism-text-critical,
#assignments_list .plagiarism-text-critical,
span[class*="plagiarism-text-critical"],
.plagiarism-text-critical {
    color: rgb(185, 28, 28) !important;
}
[data-kt-theme-mode="dark"] div.kt-card-content span.plagiarism-text-critical,
[data-kt-theme-mode="dark"] .assignment-card .plagiarism-text-critical,
[data-kt-theme-mode="dark"] #assignments_grid .plagiarism-text-critical,
[data-kt-theme-mode="dark"] #assignments_list .plagiarism-text-critical,
[data-kt-theme-mode="dark"] span[class*="plagiarism-text-critical"],
[data-kt-theme-mode="dark"] .plagiarism-text-critical {
    color: rgb(252, 165, 165) !important;
}

div.kt-card-content span.plagiarism-text-high,
.assignment-card .plagiarism-text-high,
#assignments_grid .plagiarism-text-high,
#assignments_list .plagiarism-text-high,
span[class*="plagiarism-text-high"],
.plagiarism-text-high {
    color: rgb(220, 38, 38) !important;
}
[data-kt-theme-mode="dark"] div.kt-card-content span.plagiarism-text-high,
[data-kt-theme-mode="dark"] .assignment-card .plagiarism-text-high,
[data-kt-theme-mode="dark"] #assignments_grid .plagiarism-text-high,
[data-kt-theme-mode="dark"] #assignments_list .plagiarism-text-high,
[data-kt-theme-mode="dark"] span[class*="plagiarism-text-high"],
[data-kt-theme-mode="dark"] .plagiarism-text-high {
    color: rgb(248, 113, 113) !important;
}

#assignments_grid .plagiarism-text-review,
#assignments_list .plagiarism-text-review,
.assignment-card .plagiarism-text-review {
    color: rgb(234 88 12) !important;
}
[data-kt-theme-mode="dark"] #assignments_grid .plagiarism-text-review,
[data-kt-theme-mode="dark"] #assignments_list .plagiarism-text-review,
[data-kt-theme-mode="dark"] .assignment-card .plagiarism-text-review {
    color: rgb(251 146 60) !important;
}

#assignments_grid .plagiarism-text-elevated,
#assignments_list .plagiarism-text-elevated,
.assignment-card .plagiarism-text-elevated {
    color: rgb(133 77 14) !important;
}
[data-kt-theme-mode="dark"] #assignments_grid .plagiarism-text-elevated,
[data-kt-theme-mode="dark"] #assignments_list .plagiarism-text-elevated,
[data-kt-theme-mode="dark"] .assignment-card .plagiarism-text-elevated {
    color: rgb(253 224 71) !important;
}

#assignments_grid .plagiarism-text-moderate,
#assignments_list .plagiarism-text-moderate,
.assignment-card .plagiarism-text-moderate,
#assignments_grid .plagiarism-text-caution,
#assignments_list .plagiarism-text-caution,
.assignment-card .plagiarism-text-caution {
    color: rgb(161 98 7) !important;
}
[data-kt-theme-mode="dark"] #assignments_grid .plagiarism-text-moderate,
[data-kt-theme-mode="dark"] #assignments_list .plagiarism-text-moderate,
[data-kt-theme-mode="dark"] .assignment-card .plagiarism-text-moderate,
[data-kt-theme-mode="dark"] #assignments_grid .plagiarism-text-caution,
[data-kt-theme-mode="dark"] #assignments_list .plagiarism-text-caution,
[data-kt-theme-mode="dark"] .assignment-card .plagiarism-text-caution {
    color: rgb(250 204 21) !important;
}

#assignments_grid .plagiarism-text-safe,
#assignments_list .plagiarism-text-safe,
.assignment-card .plagiarism-text-safe {
    color: rgb(22 101 52) !important;
}
[data-kt-theme-mode="dark"] #assignments_grid .plagiarism-text-safe,
[data-kt-theme-mode="dark"] #assignments_list .plagiarism-text-safe,
[data-kt-theme-mode="dark"] .assignment-card .plagiarism-text-safe {
    color: rgb(134 239 172) !important;
}

/* Scoped modal styles to avoid conflicts */
.course-modal-overlay,
#createCheckOverlay,
#portalOverlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9998;
    display: none;
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.course-modal-overlay.active,
#createCheckOverlay.active,
#portalOverlay.active {
    display: block;
    opacity: 1;
}
.course-modal,
#addAssignmentModal,
#student_portal_modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    z-index: 9999;
    width: 90%;
    max-width: 550px;
    max-height: 90vh;
    overflow-y: auto;
    display: none;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
#student_portal_modal {
    max-width: 750px;
}
.course-modal.active,
#addAssignmentModal.active,
#student_portal_modal.active {
    display: block;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.course-modal-content {
    background: var(--background);
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border);
    overflow: hidden;
}
.course-modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(to bottom, var(--background), var(--muted));
}
.course-modal-body {
    padding: 1.5rem;
}
.course-modal-footer {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid var(--border);
    background: var(--muted);
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
}
.course-input {
    width: 100%;
    padding: 0.625rem 0.875rem;
    font-size: 0.875rem;
    line-height: 1.5;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    background-color: var(--background);
    color: var(--foreground);
    transition: all 0.15s ease;
}
.course-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}
.course-input::placeholder {
    color: var(--muted-foreground);
}
.course-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--foreground);
    margin-bottom: 0.5rem;
}
.course-help-text {
    font-size: 0.75rem;
    color: var(--muted-foreground);
    margin-top: 0.375rem;
}
.course-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0.5rem;
    transition: all 0.15s ease;
    cursor: pointer;
    border: none;
}
.course-btn-primary {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.2);
}
.course-btn-primary:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.3);
    transform: translateY(-1px);
}
.course-btn-secondary {
    background: var(--muted);
    color: var(--foreground);
    border: 1px solid var(--border);
}
.course-btn-secondary:hover {
    background: var(--background);
}
.course-icon-wrapper {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(147, 51, 234, 0.1));
    border: 1px solid rgba(59, 130, 246, 0.2);
}

/* ── Results paywall ────────────────────────────────────────────────────────
   Stands where the plagiarism score card stands, at the same footprint, so a
   gated card reads as the same card with its verdict withheld rather than as
   one that failed to load. Brand blue, not the amber this page uses for real
   findings: a paywall is not a finding.

   Hard-coded slate/blue rather than the theme's var()s — the v2 theme never
   defines --foreground / --background, so a var() here renders invisible text
   in dark mode. */
#assignments_grid .cq-locked-card {
    display: flex;
    align-items: center;
    gap: .85rem;
    width: 100%;
    padding: 1rem;
    text-align: left;
    border: 1.5px solid rgba(37, 99, 235, .22);
    border-radius: .5rem;
    background: rgba(37, 99, 235, .06);
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, transform .12s ease;
}
#assignments_grid .cq-locked-card:hover {
    background: rgba(37, 99, 235, .1);
    border-color: rgba(37, 99, 235, .4);
    transform: translateY(-1px);
}
.cq-locked-badge {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(37, 99, 235, .12);
}
.cq-locked-badge i { font-size: 16px; color: #2563eb; }
.cq-locked-copy { display: flex; flex-direction: column; gap: .15rem; min-width: 0; flex: 1; }
.cq-locked-title { font-size: .875rem; font-weight: 700; color: #0f172a; letter-spacing: -.01em; }
.cq-locked-sub { font-size: .75rem; line-height: 1.4; color: #475569; }
.cq-locked-cta {
    flex: none;
    padding: .3rem .7rem;
    border-radius: 6px;
    background: #2563eb;
    color: #ffffff;
    font-size: .75rem;
    font-weight: 700;
}

/* List row variant: one chip in a row of stats, same colours. */
.cq-locked-chip {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .25rem .6rem;
    border: 1px solid rgba(37, 99, 235, .22);
    border-radius: 6px;
    background: rgba(37, 99, 235, .07);
    color: #2563eb;
    font-size: .75rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease;
}
.cq-locked-chip:hover { background: rgba(37, 99, 235, .14); border-color: rgba(37, 99, 235, .4); }
.cq-locked-chip i { font-size: 11px; }
.cq-locked-chip-cta { font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }

[data-kt-theme-mode="dark"] .cq-locked-title,
.dark .cq-locked-title { color: #f1f5f9; }
[data-kt-theme-mode="dark"] .cq-locked-sub,
.dark .cq-locked-sub { color: #cbd5e1; }
[data-kt-theme-mode="dark"] .cq-locked-badge i,
.dark .cq-locked-badge i { color: #60a5fa; }
[data-kt-theme-mode="dark"] .cq-locked-chip,
.dark .cq-locked-chip { color: #60a5fa; }

/* Peer similarity on a gated card. Not styled as a locked thing, because it
   isn't one — the free tier is provisioned for peer scans, so this is the score
   the account owns. Quiet, because the card's headline is still the lock. */
.cq-peer-open {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: .5rem;
    padding: .5rem .75rem;
    border: 1px solid #e2e8f0;
    border-radius: .5rem;
    background: #f8fafc;
}
.cq-peer-label { font-size: .75rem; font-weight: 600; color: #475569; }
.cq-peer-value { font-size: 1rem; font-weight: 700; letter-spacing: -.02em; }
[data-kt-theme-mode="dark"] .cq-peer-open,
.dark .cq-peer-open { border-color: #1e293b; background: rgba(15, 23, 42, .5); }
[data-kt-theme-mode="dark"] .cq-peer-label,
.dark .cq-peer-label { color: #cbd5e1; }
