/* Dashboard Specific Styles */

/* --- Navigation Extras --- */
.nav-container-custom {
    max-width: none;
    padding: 0 2rem;
    width: 100%;
}

.mobile-menu-btn {
    background: none;
    border: none;
    color: white;
    margin-right: 1rem;
    cursor: pointer;
    display: none;
    /* Default hidden, shown in media query */
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.notification-wrapper {
    position: relative;
}

.noti-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    position: relative;
    padding: 5px;
}

.noti-icon {
    width: 20px;
    height: 20px;
}

.noti-badge {
    display: none;
    /* Toggled via JS */
    position: absolute;
    top: 0;
    right: 0;
    background: var(--accent-primary);
    color: white;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    font-size: 10px;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    border: 2px solid var(--bg-body);
}

.noti-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    width: 320px;
    z-index: 1000;
    margin-top: 1rem;
    padding: 0.5rem;
    max-height: 400px;
    overflow-y: auto;
    /* Solid background — override glass-panel transparency */
    background: var(--bg-layer-2, #403838);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md, 8px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
}

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

.noti-header h4 {
    margin: 0;
    font-size: 0.9rem;
}

.btn-clear-all {
    background: none;
    border: none;
    color: var(--accent-primary);
    cursor: pointer;
    font-size: 0.75rem;
}

.noti-empty {
    padding: 2rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* --- User Profile in Nav --- */
.user-info {
    text-align: right;
}

.user-name {
    font-size: 0.9rem;
    font-weight: 600;
}

.user-plan {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.user-avatar {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    font-size: 0.8rem;
    margin-right: 1rem;
}

/* --- Profile Dropdown --- */
.profile-trigger {
    display: flex;
    align-items: center;
    gap: 0;
    cursor: pointer;
    position: relative;
    border-radius: 12px;
    padding: 4px 8px 4px 4px;
    transition: background 0.2s ease;
}

.profile-trigger:hover {
    background: rgba(255, 255, 255, 0.06);
}

.profile-trigger .chevron-icon {
    width: 14px;
    height: 14px;
    color: var(--text-secondary);
    margin-left: 4px;
    transition: transform 0.2s ease;
}

.profile-trigger.active .chevron-icon {
    transform: rotate(180deg);
}

.profile-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 220px;
    z-index: 1100;
    background: var(--bg-layer-2, rgba(30, 30, 40, 0.95));
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.1));
    border-radius: 12px;
    padding: 0.5rem;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.05);
    animation: profileDropIn 0.15s ease-out;
}

.profile-dropdown.active {
    display: block;
}

@keyframes profileDropIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

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

.profile-dropdown-header {
    padding: 0.75rem;
    border-bottom: 1px solid var(--glass-border, rgba(255, 255, 255, 0.08));
    margin-bottom: 0.25rem;
}

.profile-dropdown-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-dropdown-email {
    font-size: 0.75rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}

.profile-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.75rem;
    border-radius: 8px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: background 0.15s ease;
    cursor: pointer;
    border: none;
    background: none;
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    text-align: left;
    font-family: inherit;
    box-sizing: border-box;
}

.profile-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.profile-dropdown-item i {
    width: 16px;
    height: 16px;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.profile-dropdown-divider {
    height: 1px;
    background: var(--glass-border, rgba(255, 255, 255, 0.08));
    margin: 0.25rem 0.5rem;
}

.profile-dropdown-item.logout {
    color: var(--danger, #f92672);
}

.profile-dropdown-item.logout i {
    color: var(--danger, #f92672);
}

.profile-dropdown-item.logout:hover {
    background: rgba(249, 38, 114, 0.1);
}

@media (max-width: 768px) {
    .profile-trigger .chevron-icon {
        display: none;
    }

    .profile-dropdown {
        right: -1rem;
        width: 200px;
    }
}

/* --- Dashboard Header --- */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

/* --- Banners --- */
.noise-banner {
    background: linear-gradient(135deg, rgba(255, 100, 100, 0.1), rgba(99, 102, 241, 0.1));
    border-color: var(--accent-primary);
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    padding: 2rem;
}

.noise-bg-icon {
    position: absolute;
    top: 0;
    right: 0;
    padding: 1rem;
    opacity: 0.1;
    transform: rotate(15deg);
}

.noise-content {
    position: relative;
    z-index: 1;
}

.noise-tag {
    background: var(--accent-primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
}

.noise-title {
    margin: 0;
    font-size: 1.5rem;
}

.noise-text {
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* FTUE Banner */
.ftue-banner {
    display: none;
    /* Toggled JS */
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.1));
    border-color: var(--accent-primary);
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    padding: 2rem;
    /* Added missing padding for consistency */
}

.ftue-glow {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: var(--accent-glow);
    filter: blur(40px);
    border-radius: 50%;
}

.ftue-content {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* --- Batch List --- */
.batch-list-panel {
    padding: 2rem;
    margin-bottom: 2rem;
}

.batch-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.batch-view-all {
    font-size: 0.85rem;
    color: var(--accent-primary);
}

/* --- Cost Calculator --- */
.calculator-panel {
    padding: 2rem;
}

.calculator-wrapper {
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
}

.calculator-slider-group {
    flex: 1;
    min-width: 300px;
}

.calculator-result-group {
    flex: 1;
    min-width: 250px;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.calculator-result-box {
    padding-left: 2rem;
    border-left: 1px solid var(--glass-border);
}

.calc-cost {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.calc-roi {
    font-size: 0.75rem;
    color: var(--success);
}

/* --- Modals (Common) --- */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--bg-layer-2);
    width: 600px;
    padding: 2.5rem;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border-radius: var(--radius-md);
}

.btn-close-modal {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.2s;
}

/* Upload Drop Zone */
.upload-zone {
    /* Base styles handled by existing classes or JS, adding here for completeness if needed */
    border: 2px dashed var(--glass-border);
    border-radius: var(--radius-md);
    padding: 3rem;
    text-align: center;
    transition: all 0.2s;
    margin-bottom: 1.5rem;
}

.soc2-badge {
    margin-top: 1rem;
    padding: 0.75rem;
    background: rgba(39, 201, 63, 0.05);
    border: 1px solid rgba(39, 201, 63, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

/* Processing Steps */
.processing-steps {
    display: flex;
    justify-content: space-between;
    margin-top: 2.5rem;
    position: relative;
}

.p-step {
    text-align: center;
    flex: 1;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.p-step.active {
    opacity: 1;
}

.p-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.5rem;
    transition: background 0.3s, border-color 0.3s;
}

/* Download Modal */
.download-modal-content {
    width: 400px;
    text-align: center;
}

.download-options {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.download-option-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem;
}

/* --- Media Queries --- */
@media (max-width: 768px) {
    .nav-actions {
        gap: 0.5rem;
    }

    .logo-text,
    .user-name,
    .user-plan {
        display: none;
    }

    .nav-container-custom {
        padding: 0 1rem;
    }

    /* Toggle Mobile Menu */
    .mobile-menu-btn {
        display: block;
    }

    /* Grid Stacking */
    .calculator-wrapper {
        flex-direction: column;
        gap: 2rem;
    }

    .calculator-result-group {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid var(--glass-border);
        padding-top: 1.5rem;
    }

    .calculator-result-box {
        border-left: none;
        padding-left: 0;
    }

    .ftue-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}

/* --- Skeletons --- */
.skeleton {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    animation: skeleton-loading 1.5s infinite ease-in-out;
}

.skeleton.text {
    height: 1rem;
    width: 60%;
    margin-bottom: 0.25rem;
}

.skeleton.rect {
    width: 100%;
    height: 100%;
}

@keyframes skeleton-loading {
    0% {
        opacity: 0.4;
    }

    50% {
        opacity: 0.8;
    }

    100% {
        opacity: 0.4;
    }
}

/* --- Progress Bar --- */
.progress-container {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 3px;
    transition: width 0.5s ease;
}

/* --- Empty State --- */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-secondary);
}

.empty-state-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
    opacity: 0.5;
    color: var(--text-tertiary);
}

.empty-state-text {
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

/* --- Batch Action Buttons --- */
.btn-sm {
    padding: 6px 12px;
    font-size: 0.8rem;
    height: 32px;
    min-width: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.batch-action-btn {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    transition: all 0.2s ease;
    font-weight: 500;
}

.batch-action-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.batch-action-btn:active:not(:disabled) {
    transform: translateY(0);
}

.batch-action-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Delete button specific hover */
.batch-action-btn[data-action="delete"]:hover:not(:disabled) {
    background: rgba(255, 71, 87, 0.1);
    border-color: var(--danger) !important;
    box-shadow: 0 4px 12px rgba(255, 71, 87, 0.2);
}

/* Export button specific hover */
.batch-action-btn[data-action="export"]:hover:not(:disabled) {
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--accent-primary) !important;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

/* ========================================
   PIPELINE CALCULATOR ENHANCEMENT
   ======================================== */

/* === Custom Slider Styling === */
.slider-container {
    position: relative;
    padding: 2rem 0;
}

.custom-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    background: linear-gradient(90deg,
            rgba(99, 102, 241, 0.3) 0%,
            rgba(139, 92, 246, 0.3) 100%);
    border-radius: 4px;
    outline: none;
    position: relative;
}

/* Slider track fill (progress) */
.custom-slider::-webkit-slider-runnable-track {
    height: 8px;
    background: transparent;
}

.custom-slider::-moz-range-track {
    height: 8px;
    background: transparent;
}

/* Slider thumb - Lightning bolt */
.custom-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.custom-slider::-moz-range-thumb {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
    border: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.custom-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.6);
}

.custom-slider::-moz-range-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.6);
}

/* Floating tooltip */
.slider-tooltip {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--glass-surface);
    backdrop-filter: blur(10px);
    padding: 6px 12px;
    border-radius: 8px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-primary);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
    border: 1px solid var(--glass-border);
}

.slider-container:hover .slider-tooltip,
.custom-slider:active+.slider-tooltip {
    opacity: 1;
}

/* === Metrics Grid === */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}

.metric-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    text-align: center;
    transition: all 0.2s ease;
}

.metric-card:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.metric-card i {
    width: 32px;
    height: 32px;
    color: var(--accent-primary);
    margin-bottom: 0.75rem;
}

.metric-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.metric-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

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

/* ROI Display */
.roi-display {
    text-align: center;
    padding: 1rem;
    font-size: 1.1rem;
    color: var(--success);
    font-weight: 600;
}

.roi-display span {
    color: var(--accent-primary);
    font-size: 1.3rem;
}

/* === Responsive Design === */
@media (max-width: 1200px) {
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Cleaned up fragmented media queries below in consolidated block */

/* === Credit Update Animation === */
.credit-updated {
    animation: creditPulse 0.5s ease-in-out;
    color: var(--success) !important;
}

@keyframes creditPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
    }
}

/* ========================================
   OPPORTUNITIES PAGE STYLES
   ======================================== */

/* Modal Overlay */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--bg-layer-2);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

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

.modal-close {
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--accent-primary);
}

/* Score Badges */
.score-badge {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.9rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.confidence-badge {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    background: rgba(99, 102, 241, 0.15);
    color: var(--accent-primary);
    border: 1px solid rgba(99, 102, 241, 0.3);
}

/* Status Badges */
.status-badge {
    padding: 0.3rem 0.85rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-cold {
    background: #3b82f6;
    color: white;
}

.status-warm {
    background: #f59e0b;
    color: white;
}

.status-hot {
    background: #ef4444;
    color: white;
}

.status-qualified {
    background: #10b981;
    color: white;
}

/* Batch ID Display */
.batch-id {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-tertiary);
}

/* Spreadsheet-style Table Enhancements */
.data-table {
    border-collapse: separate;
    border-spacing: 0;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
}

.data-table th {
    background: var(--glass-surface);
    border-bottom: 2px solid var(--glass-border);
    position: sticky;
    top: 0;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    padding: 1rem;
    text-align: left;
    z-index: 10;
}

.data-table td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0.85rem 1rem;
    vertical-align: middle;
}

.data-table tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.data-table tbody tr {
    transition: background 0.15s ease;
}

/* Clickable batch rows */
.data-table tbody tr.batch-row-clickable:hover {
    background: rgba(99, 102, 241, 0.06);
    box-shadow: inset 3px 0 0 var(--accent-primary);
}

.data-table tbody tr.batch-row-clickable:active {
    background: rgba(99, 102, 241, 0.1);
}

/* Row Action Kebab Menu */
.row-action-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.row-action-btn:hover {
    background: var(--glass-surface);
    border-color: var(--glass-border);
    color: var(--accent-primary);
}

.row-action-btn svg {
    width: 18px;
    height: 18px;
}

.row-action-menu {
    display: none !important;
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 4px;
    min-width: 180px;
    background: var(--glass-surface);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    z-index: 200;
    padding: 4px;
    flex-direction: column;
}

.row-action-menu.show {
    display: flex !important;
    animation: rowMenuFadeIn 0.15s ease-out;
}

@keyframes rowMenuFadeIn {
    from {
        opacity: 0;
        transform: translateY(-4px) scale(0.96);
    }

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

.row-action-item {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 8px 12px;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.15s ease;
    text-align: left;
    white-space: nowrap;
}

.row-action-item:hover {
    background: rgba(99, 102, 241, 0.12);
    color: var(--accent-primary);
}

.row-action-item.row-action-danger:hover {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
}

.row-action-divider {
    height: 1px;
    background: var(--glass-border);
    margin: 4px 8px;
}

/* Modal Detail Sections */
.detail-section h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.detail-section h3 i {
    width: 20px;
    height: 20px;
}

.detail-grid div {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.detail-grid div:last-child {
    border-bottom: none;
}

.detail-grid strong {
    color: var(--text-secondary);
    font-size: 0.85rem;
    display: inline-block;
    min-width: 120px;
}

.score-component {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.score-component:last-child {
    border-bottom: none;
}

.component-name {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.component-value {
    color: var(--accent-primary);
    font-weight: 600;
}

/* Pagination Controls */
.btn-secondary:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.btn-secondary:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Responsive Table */
@media (max-width: 1200px) {
    .data-table {
        font-size: 0.8rem;
    }

    .data-table th,
    .data-table td {
        padding: 0.65rem 0.75rem;
    }
}

/* Cleaned up fragmented media queries below in consolidated block */

/* ==========================================
   FILTER PANEL — Redesigned
   ========================================== */

.filter-panel {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.filter-row {
    display: flex;
    gap: 1rem;
    align-items: end;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    flex: 1;
    min-width: 140px;
}

.filter-group.fg-search {
    flex: 2.5;
    min-width: 220px;
}

.filter-group.fg-score {
    flex: 1.2;
}

.filter-group.fg-clear {
    flex: 0 0 auto;
    min-width: auto;
}

.filter-label {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.filter-label svg {
    width: 13px;
    height: 13px;
}

.filter-input {
    width: 100%;
    padding: 0.65rem 0.85rem;
    background: var(--glass-surface);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.88rem;
    font-family: var(--font-sans);
    transition: all 0.2s ease;
}

.filter-input:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 2px rgba(253, 151, 31, 0.15);
    outline: none;
}

.filter-input::placeholder {
    color: var(--text-tertiary);
    opacity: 0.7;
}

/* Fix native select option readability */
.filter-input option,
select.filter-input option {
    background: #1a1a2e;
    color: #e8e6e3;
    padding: 0.5rem;
}

.filter-input option:hover,
.filter-input option:checked {
    background: #2a2a4a;
    color: #ffd700;
}

/* Dark theme specific */
[data-theme="dark"] .filter-input option {
    background: #1a1a2e;
    color: #e8e6e3;
}

/* Light theme */
[data-theme="light"] .filter-input option {
    background: #ffffff;
    color: #1f2328;
}

[data-theme="light"] .filter-input option:checked {
    background: #e8f0fe;
    color: #0969da;
}

/* Advanced Filters Toggle */
.advanced-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding: 0.5rem 0;
    border: none;
    background: none;
    color: var(--text-tertiary);
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s;
    font-family: var(--font-sans);
}

.advanced-toggle:hover {
    color: var(--accent-primary);
}

.advanced-toggle svg {
    width: 14px;
    height: 14px;
    transition: transform 0.3s ease;
}

.advanced-toggle.open svg {
    transform: rotate(180deg);
}

/* Collapsible Section */
.advanced-filters {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.35s ease, opacity 0.25s ease, margin 0.35s ease;
    margin-top: 0;
}

.advanced-filters.open {
    max-height: 300px;
    opacity: 1;
    margin-top: 1rem;
}

.advanced-filters .filter-row {
    padding-top: 1rem;
    border-top: 1px solid var(--glass-border);
}

.advanced-filters .filter-row+.filter-row {
    padding-top: 0.75rem;
    border-top: none;
}

/* Chip / Tag Toggles */
.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.filter-chip {
    padding: 0.3rem 0.7rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 500;
    font-family: var(--font-sans);
    cursor: pointer;
    border: 1px solid var(--glass-border);
    background: var(--glass-surface);
    color: var(--text-secondary);
    transition: all 0.2s ease;
    white-space: nowrap;
    user-select: none;
}

.filter-chip:hover {
    border-color: var(--text-tertiary);
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
}

.filter-chip.active {
    background: rgba(253, 151, 31, 0.15);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    box-shadow: 0 0 8px rgba(253, 151, 31, 0.15);
}

/* Light theme chips */
[data-theme="light"] .filter-chip.active {
    background: rgba(9, 105, 218, 0.1);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    box-shadow: 0 0 8px rgba(9, 105, 218, 0.1);
}

/* Score display inside filter */
.score-display {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent-primary);
    min-width: 28px;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

/* Clear filters button */
.btn-clear-filters {
    padding: 0.65rem 1rem;
    white-space: nowrap;
    background: transparent;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-sans);
}

.btn-clear-filters:hover {
    border-color: var(--danger);
    color: var(--danger);
    background: rgba(249, 38, 114, 0.06);
}

.btn-clear-filters svg {
    width: 14px;
    height: 14px;
}

/* ==========================================
   SORTABLE TABLE HEADERS
   ========================================== */

.sort-header {
    cursor: pointer;
    user-select: none;
    transition: color 0.2s ease;
    position: relative;
}

.sort-header:hover {
    color: var(--accent-primary) !important;
}

.sort-indicator {
    font-size: 0.7em;
    opacity: 0.5;
    margin-left: 2px;
    transition: opacity 0.2s;
}

.sort-header:hover .sort-indicator {
    opacity: 0.8;
}

.sort-indicator.active {
    opacity: 1;
    color: var(--accent-primary);
}

/* Date range row */
.date-range-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.date-range-row .filter-input {
    flex: 1;
    cursor: pointer;
}

.date-range-sep {
    color: var(--text-tertiary);
    font-size: 0.82rem;
    flex-shrink: 0;
}

/* Filter panel responsive */
@media (max-width: 1024px) {
    .filter-row {
        flex-wrap: wrap;
    }

    .filter-group {
        min-width: 180px;
    }

    .filter-group.fg-search {
        flex: 1 1 100%;
    }
}

/* Cleaned up fragmented media queries below in consolidated block */

/* ============================================
   BATCH PAGE — Stats Cards & Layout
============================================ */

.batch-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-bottom: 1.75rem;
}

.batch-stat-card {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    padding: 1.35rem 1.5rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    border-left: 3px solid var(--accent-primary);
    border-radius: 14px;
    backdrop-filter: blur(14px);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.batch-stat-card:nth-child(2) {
    border-left-color: #818cf8;
}

.batch-stat-card:nth-child(3) {
    border-left-color: #22c55e;
}

.batch-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.batch-stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255, 215, 0, 0.12);
    color: var(--accent-primary);
    flex-shrink: 0;
}

.batch-stat-icon--records {
    background: rgba(99, 102, 241, 0.12);
    color: #818cf8;
}

/* ============================================
   CONSOLIDATED RESPONSIVE OVERRIDES (MOBILE)
   ============================================ */
@media (max-width: 768px) {
    /* Layout & Sidebar behavior handled in style.css or layout.css usually, 
       but for dashboard specific elements: */
    
    .metrics-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .metric-card {
        padding: 1rem;
    }

    .metric-value {
        font-size: 1.5rem;
    }

    .batch-stats-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .filter-row {
        flex-direction: column;
    }

    .filter-group {
        min-width: 100%;
        width: 100%;
    }

    .modal-content {
        max-width: 95% !important;
        margin: 1rem;
        width: calc(100% - 2rem);
    }

    .detail-grid {
        grid-template-columns: 1fr !important;
    }

    .data-table thead {
        display: none; /* Hide headers on very small screens or use scroll */
    }

    .data-table, .data-table tbody, .data-table tr, .data-table td {
        display: block;
        width: 100%;
    }

    .data-table tr {
        margin-bottom: 1rem;
        border: 1px solid var(--glass-border);
        border-radius: var(--radius-sm);
        padding: 0.5rem;
        background: rgba(255, 255, 255, 0.02);
    }

    .data-table td {
        text-align: right;
        padding-left: 50%;
        position: relative;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .data-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 0.75rem;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        text-align: left;
        font-weight: 600;
        color: var(--text-tertiary);
    }

    .data-table td:last-child {
        border-bottom: 0;
    }
}

.batch-stat-icon--success {
    background: rgba(34, 197, 94, 0.12);
    color: #22c55e;
}

.batch-stat-icon svg {
    width: 22px;
    height: 22px;
}

.batch-stat-body {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.batch-stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.batch-stat-label {
    font-size: 0.78rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

/* Table panel */
.batch-table-panel {
    padding: 1.5rem 2rem;
}

/* Batch name cell — truncated */
.batch-name-cell {
    display: flex;
    flex-direction: column;
    max-width: 260px;
}

.batch-name-text {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 240px;
}

.batch-name-id {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-tertiary);
}

/* Yield cell */
.batch-yield-value {
    color: var(--success);
    font-weight: 600;
}

.batch-yield-rate {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Progress cell (processing status) */
.batch-progress-cell {
    width: 120px;
}

.batch-progress-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    margin-bottom: 2px;
}

.batch-progress-label {
    color: var(--accent-primary);
    font-weight: 600;
}

.batch-progress-pct {
    color: var(--text-secondary);
}

/* Archive link */
.batch-archive-link {
    margin-top: 1rem;
    text-align: center;
    color: var(--text-tertiary);
    font-size: 0.85rem;
}

.batch-archive-link a {
    color: var(--accent-primary);
    text-decoration: none;
    margin-left: 0.25rem;
}

.batch-archive-link a:hover {
    text-decoration: underline;
}

/* Kebab action menu for batches */
.batch-action-wrapper {
    position: relative;
    display: inline-block;
}

.batch-kebab-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.batch-kebab-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    border-color: var(--accent-primary);
}

.batch-action-menu {
    position: absolute;
    right: 0;
    top: 100%;
    min-width: 170px;
    background: #1a1728;
    /* explicit fallback — no undefined var */
    background: var(--bg-body, #1a1728);
    /* matches page bg + dark overlay */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    z-index: 100;
    display: none;
    padding: 0.35rem;
    margin-top: 4px;
}

.batch-action-menu.show {
    display: block;
}

.batch-action-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    background: none;
    border: none;
    color: var(--text-primary);
    padding: 0.55rem 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background 0.15s;
}

.batch-action-item:hover {
    background: rgba(255, 255, 255, 0.06);
}

.batch-action-item svg {
    width: 15px;
    height: 15px;
    opacity: 0.7;
}

.batch-action-item.batch-action-danger {
    color: var(--danger);
}

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

.batch-action-divider {
    height: 1px;
    background: var(--glass-border);
    margin: 0.25rem 0.5rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .batch-stats-row {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }
}

@media (max-width: 768px) {
    .batch-stats-row {
        grid-template-columns: 1fr;
    }

    .batch-stat-card {
        padding: 1rem;
    }

    .batch-table-panel {
        padding: 1rem;
    }

    .batch-name-text {
        max-width: 160px;
    }
}

/* ============================================
   DATA ASSETS PAGE — Premium Design
============================================ */

/* Mini Stats Row */
.asset-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.asset-stat-mini {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    backdrop-filter: blur(16px);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
}

.asset-stat-mini::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    border-radius: 14px 14px 0 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.asset-stat-mini:nth-child(1)::before {
    background: linear-gradient(90deg, #f59e0b, #f97316);
}

.asset-stat-mini:nth-child(2)::before {
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
}

.asset-stat-mini:nth-child(3)::before {
    background: linear-gradient(90deg, #22c55e, #14b8a6);
}

.asset-stat-mini:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
    border-color: rgba(255, 255, 255, 0.12);
}

.asset-stat-mini:hover::before {
    opacity: 1;
}

.asset-stat-mini:nth-child(1):hover {
    box-shadow: 0 12px 32px rgba(245, 158, 11, 0.12);
}

.asset-stat-mini:nth-child(2):hover {
    box-shadow: 0 12px 32px rgba(99, 102, 241, 0.12);
}

.asset-stat-mini:nth-child(3):hover {
    box-shadow: 0 12px 32px rgba(34, 197, 94, 0.12);
}

.asset-stat-mini-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.asset-stat-mini:hover .asset-stat-mini-icon {
    transform: scale(1.1);
}

.asset-stat-mini-icon svg {
    width: 22px;
    height: 22px;
}

.asset-stat-mini-body {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.asset-stat-mini-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}

.asset-stat-mini-label {
    font-size: 0.72rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    font-weight: 600;
}

/* Asset Table Panel */
.asset-table-panel {
    padding: 0;
    margin-bottom: 2rem;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    backdrop-filter: blur(16px);
}

.asset-table-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.35rem 1.5rem;
    border-bottom: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.02);
}

.asset-table-header h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.asset-table-subtitle {
    font-size: 0.8rem;
    color: var(--text-tertiary);
}

.asset-table-panel .data-table {
    margin: 0;
}

.asset-table-panel .data-table th {
    background: rgba(255, 255, 255, 0.015);
    font-weight: 600;
    letter-spacing: 0.6px;
}

.asset-table-panel .data-table th:first-child,
.asset-table-panel .data-table td:first-child {
    padding-left: 1.5rem;
}

.asset-table-panel .data-table th:last-child,
.asset-table-panel .data-table td:last-child {
    padding-right: 1.5rem;
}

/* Table row animations */
.asset-table-panel .data-table tbody tr {
    transition: background 0.25s ease;
    border-left: 3px solid transparent;
}

.asset-table-panel .data-table tbody tr:hover {
    background: rgba(253, 151, 31, 0.04);
    border-left: 3px solid var(--accent-primary);
}

/* File name cell */
.asset-file-name {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.asset-file-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    flex-shrink: 0;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.asset-table-panel .data-table tbody tr:hover .asset-file-icon {
    transform: scale(1.1);
}

.asset-file-icon svg {
    width: 18px;
    height: 18px;
}

.asset-file-icon--xlsx {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.18) 0%, rgba(34, 197, 94, 0.06) 100%);
    color: #22c55e;
    box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.15);
}

.asset-file-icon--csv {
    background: linear-gradient(135deg, rgba(253, 151, 31, 0.18) 0%, rgba(253, 151, 31, 0.06) 100%);
    color: var(--accent-primary);
    box-shadow: 0 0 0 1px rgba(253, 151, 31, 0.15);
}

.asset-file-icon--json {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.18) 0%, rgba(99, 102, 241, 0.06) 100%);
    color: #818cf8;
    box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.15);
}

.asset-file-icon--default {
    background: linear-gradient(135deg, rgba(148, 163, 184, 0.18) 0%, rgba(148, 163, 184, 0.06) 100%);
    color: #94a3b8;
    box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.15);
}

.asset-file-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 0.15rem;
}

.asset-file-displayname {
    font-weight: 500;
    font-size: 0.88rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 300px;
    transition: color 0.2s ease;
}

.asset-table-panel .data-table tbody tr:hover .asset-file-displayname {
    color: var(--accent-primary);
}

.asset-file-ext {
    font-size: 0.72rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Status badges */
.asset-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.75rem;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.asset-status-badge--ready {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.2);
    position: relative;
    padding-left: 1.2rem;
}

.asset-status-badge--ready::before {
    content: '';
    position: absolute;
    left: 8px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22c55e;
    animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {

    0%,
    100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4);
    }

    50% {
        opacity: 0.7;
        box-shadow: 0 0 0 4px rgba(34, 197, 94, 0);
    }
}

.asset-status-badge--processing {
    background: rgba(253, 151, 31, 0.12);
    color: var(--accent-primary);
    border: 1px solid rgba(253, 151, 31, 0.2);
}

/* Info Cards Row */
.asset-cards-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.asset-info-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.75rem;
    backdrop-filter: blur(16px);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    position: relative;
    overflow: hidden;
}

.asset-info-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.asset-info-card--suppression {
    border-left: 3px solid #f87171;
}

.asset-info-card--suppression::after {
    background: radial-gradient(circle, rgba(248, 113, 113, 0.06) 0%, transparent 70%);
}

.asset-info-card--export {
    border-left: 3px solid #818cf8;
}

.asset-info-card--export::after {
    background: radial-gradient(circle, rgba(129, 140, 248, 0.06) 0%, transparent 70%);
}

.asset-info-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.1);
}

.asset-info-card:hover::after {
    opacity: 1;
}

.asset-info-card--suppression:hover {
    box-shadow: 0 12px 36px rgba(248, 113, 113, 0.08);
}

.asset-info-card--export:hover {
    box-shadow: 0 12px 36px rgba(129, 140, 248, 0.08);
}

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

.asset-info-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.asset-info-card:hover .asset-info-card-icon {
    transform: scale(1.08);
}

.asset-info-card-icon svg {
    width: 24px;
    height: 24px;
}

.asset-info-card-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.2rem;
}

.asset-info-card-header p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.45;
}

.asset-info-card-metric {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
    padding: 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.asset-info-card-value {
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
}

.asset-info-card--suppression .asset-info-card-value {
    background: linear-gradient(135deg, #f87171, #fb923c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.asset-info-card--export .asset-info-card-value {
    background: linear-gradient(135deg, #818cf8, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.asset-info-card-unit {
    font-size: 0.88rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.asset-info-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.btn-asset-action {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 1.15rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: var(--font-sans);
    position: relative;
    overflow: hidden;
}

.btn-asset-action::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.asset-info-card--suppression .btn-asset-action::before {
    background: linear-gradient(135deg, rgba(248, 113, 113, 0.08), rgba(251, 146, 60, 0.04));
}

.asset-info-card--export .btn-asset-action::before {
    background: linear-gradient(135deg, rgba(129, 140, 248, 0.08), rgba(167, 139, 250, 0.04));
}

.asset-info-card--suppression .btn-asset-action:hover {
    border-color: #f87171;
    color: #f87171;
}

.asset-info-card--export .btn-asset-action:hover {
    border-color: #818cf8;
    color: #818cf8;
}

.btn-asset-action:hover::before {
    opacity: 1;
}

.btn-asset-action:active {
    transform: scale(0.97);
}

/* ============================================
   RESPONSIVE DESIGN — SMALL MOBILE (< 480px)
   ============================================ */
@media (max-width: 480px) {
    /* Navigation & Header */
    .nav-container-custom {
        padding: 0 0.75rem;
    }

    .nav-actions {
        gap: 0.35rem;
    }

    .logo-icon {
        font-size: 1.25rem;
    }

    .mobile-menu-btn {
        margin-right: 0.5rem;
    }

    /* Text Sizes */
    h1, h2, h3 {
        line-height: 1.2;
        word-break: break-word;
    }

    .dashboard-header {
        margin-bottom: 1.5rem;
    }

    /* Metrics Grid */
    .metrics-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        margin: 1rem 0;
    }

    .metric-card {
        padding: 1rem;
    }

    .metric-value {
        font-size: 1.35rem;
    }

    .metric-label {
        font-size: 0.7rem;
    }

    /* Batch Stats */
    .batch-stats-row {
        gap: 0.75rem;
    }

    .batch-stat-card {
        padding: 1rem;
        gap: 0.75rem;
    }

    .batch-stat-icon {
        width: 42px;
        height: 42px;
    }

    .batch-stat-value {
        font-size: 1.35rem;
    }

    /* Asset Stats */
    .asset-stats-row {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        margin-bottom: 1.5rem;
    }

    .asset-stat-mini {
        padding: 1rem;
    }

    .asset-stat-mini-value {
        font-size: 1.35rem;
    }

    /* Banners */
    .noise-banner,
    .ftue-banner {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .noise-title {
        font-size: 1.25rem;
    }

    .noise-text {
        max-width: 100%;
    }

    /* Filter Panel */
    .filter-panel {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .filter-row {
        flex-direction: column;
        gap: 0.75rem;
    }

    .filter-group {
        min-width: 100%;
        width: 100%;
    }

    .filter-label {
        font-size: 0.7rem;
    }

    .filter-input {
        padding: 0.6rem 0.75rem;
        font-size: 0.9rem;
    }

    .btn-clear-filters {
        width: 100%;
        justify-content: center;
    }

    /* Calculator */
    .calculator-panel {
        padding: 1.5rem;
    }

    .calculator-slider-group {
        min-width: 100%;
    }

    .calc-cost {
        font-size: 2rem;
    }

    /* Modals */
    .modal-content {
        width: 95% !important;
        max-width: none !important;
        padding: 1.5rem;
        margin: 1rem;
    }

    .btn-close-modal {
        top: 1rem;
        right: 1rem;
    }

    .detail-grid {
        grid-template-columns: 1fr !important;
    }

    .detail-grid strong {
        min-width: 100px;
    }

    /* Data Table — Responsive Card Layout */
    .data-table thead {
        display: none;
    }

    .data-table,
    .data-table tbody,
    .data-table tr,
    .data-table td {
        display: block;
        width: 100%;
    }

    .data-table tr {
        margin-bottom: 1rem;
        border: 1px solid var(--glass-border);
        border-radius: 8px;
        padding: 0.75rem;
        background: rgba(255, 255, 255, 0.02);
    }

    .data-table td {
        text-align: right;
        padding-left: 45%;
        padding-top: 0.65rem;
        padding-bottom: 0.65rem;
        position: relative;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        font-size: 0.9rem;
    }

    .data-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 0.75rem;
        width: 40%;
        text-align: left;
        font-weight: 600;
        color: var(--text-tertiary);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .data-table td:last-child {
        border-bottom: 0;
        padding-bottom: 0.5rem;
    }

    /* Batch Table Adjustments */
    .batch-name-text {
        max-width: 140px;
        font-size: 0.85rem;
    }

    .batch-table-panel {
        padding: 1rem;
    }

    /* Asset Table */
    .asset-table-panel {
        margin-bottom: 1.5rem;
    }

    .asset-table-header {
        padding: 1rem;
        gap: 0.75rem;
    }

    .asset-table-header h3 {
        font-size: 0.95rem;
    }

    .asset-file-icon {
        width: 32px;
        height: 32px;
    }

    .asset-file-icon svg {
        width: 16px;
        height: 16px;
    }

    .asset-file-displayname {
        max-width: 180px;
        font-size: 0.82rem;
    }

    /* Asset Cards Row */
    .asset-cards-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .asset-info-card {
        padding: 1.25rem;
        gap: 1rem;
    }

    .asset-info-card-header {
        gap: 0.75rem;
    }

    .asset-info-card-icon {
        width: 42px;
        height: 42px;
    }

    .asset-info-card-header h3 {
        font-size: 0.95rem;
    }

    .asset-info-card-value {
        font-size: 1.75rem;
    }

    .btn-asset-action {
        flex: 1;
        justify-content: center;
        padding: 0.5rem 0.85rem;
        font-size: 0.75rem;
    }

    /* Buttons */
    .btn-sm {
        padding: 6px 10px;
        font-size: 0.75rem;
        height: 28px;
        min-width: 28px;
    }

    .btn-primary,
    .btn-secondary {
        padding: 0.65rem 1rem;
        font-size: 0.85rem;
        width: 100%;
    }

    /* Processing Steps */
    .processing-steps {
        margin-top: 1.5rem;
        gap: 0.5rem;
    }

    .p-step {
        flex: 1;
    }

    .p-icon {
        width: 28px;
        height: 28px;
        font-size: 0.7rem;
    }

    .p-step.active p {
        font-size: 0.75rem;
    }

    /* Download Options */
    .download-options {
        flex-direction: column;
        gap: 0.75rem;
    }

    .download-option-btn {
        padding: 1rem;
    }

    /* Batch Panel */
    .batch-list-panel {
        padding: 1.5rem;
    }

    /* Paneldefaults */
    .glass-panel {
        padding: 1.25rem;
        margin-bottom: 1.25rem;
    }

    /* Empty State */
    .empty-state {
        padding: 2rem 1rem;
    }

    .empty-state-icon {
        width: 40px;
        height: 40px;
    }

    .empty-state-text {
        font-size: 0.9rem;
    }

    /* Slider */
    .slider-container {
        padding: 1.5rem 0;
    }

    .custom-slider::-webkit-slider-thumb {
        width: 28px;
        height: 28px;
    }

    .custom-slider::-moz-range-thumb {
        width: 28px;
        height: 28px;
    }

    .slider-tooltip {
        font-size: 0.8rem;
        padding: 4px 10px;
        top: -35px;
    }

    /* Row Action Menu */
    .row-action-menu {
        min-width: 150px;
        right: -50%;
    }

    .row-action-item {
        padding: 6px 10px;
        font-size: 0.8rem;
    }

    /* Notification Dropdown */
    .noti-dropdown {
        width: 280px;
        max-height: 350px;
    }

    /* Profile Dropdown */
    .profile-dropdown {
        width: 180px;
    }

    .profile-dropdown-name {
        font-size: 0.82rem;
    }

    .profile-dropdown-email {
        font-size: 0.7rem;
    }

    .profile-dropdown-item {
        padding: 0.5rem 0.65rem;
        font-size: 0.8rem;
    }

    /* Dropdown icons */
    .profile-dropdown-item i,
    .noti-icon {
        width: 14px;
        height: 14px;
    }

    /* Language Selector */
    .lang-selector {
        padding: 0.5rem;
        font-size: 0.8rem;
    }

    /* Status Badges */
    .status-badge {
        padding: 0.25rem 0.65rem;
        font-size: 0.65rem;
    }

    .score-badge,
    .confidence-badge {
        padding: 0.3rem 0.65rem;
        font-size: 0.75rem;
    }

    /* Input Fields */
    .tool-input {
        padding: 0.6rem 0.75rem;
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
    }

    .tool-btn {
        padding: 0.6rem;
        font-size: 0.85rem;
    }

    /* Layout Consistency */
    main {
        margin-bottom: 2rem;
    }

    .container {
        padding: 1.5rem;
    }

    /* Footer */
    .footer {
        padding: 1.5rem;
        font-size: 0.75rem;
    }
}

.asset-info-card-updated {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.asset-info-card-updated::before {
    content: '';
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--text-tertiary);
    opacity: 0.5;
}

/* Responsive */
@media (max-width: 1024px) {
    .asset-stats-row {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }
}

@media (max-width: 768px) {
    .asset-stats-row {
        grid-template-columns: 1fr;
    }

    .asset-cards-row {
        grid-template-columns: 1fr;
    }

    .asset-file-displayname {
        max-width: 160px;
    }
}

/* Asset Modal */
.asset-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9990;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
}

.asset-modal-overlay.open {
    display: flex;
    animation: fadeIn 0.2s ease;
}

.asset-modal-panel {
    background: var(--bg-secondary, #1a1a2e);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    width: 90%;
    max-width: 640px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
    animation: slideUp 0.25s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

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

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

.asset-modal-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.asset-modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
}

.asset-modal-close:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
}

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

/* Modal table */
.asset-modal-table {
    width: 100%;
    border-collapse: collapse;
}

.asset-modal-table th {
    text-align: left;
    font-size: 0.72rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid var(--glass-border);
    font-weight: 600;
}

.asset-modal-table td {
    padding: 0.65rem 0.75rem;
    font-size: 0.85rem;
    color: var(--text-primary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.asset-modal-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.modal-config-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 600;
}

.modal-config-status--active {
    background: rgba(34, 197, 94, 0.12);
    color: #22c55e;
}

.modal-config-status--paused {
    background: rgba(253, 151, 31, 0.12);
    color: var(--accent-primary);
}

.modal-search-input {
    width: 100%;
    padding: 0.6rem 1rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.85rem;
    margin-bottom: 1rem;
    outline: none;
    font-family: var(--font-sans);
    transition: border-color 0.2s;
}

.modal-search-input:focus {
    border-color: var(--accent-primary);
}

.modal-search-input::placeholder {
    color: var(--text-tertiary);
}

/* ========================================
   BATCH KEBAB DROPDOWN MENU
   (renderBatchRow in dashboard.js)
   ======================================== */

.batch-action-wrapper {
    position: relative;
    display: inline-block;
}

.batch-kebab-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--radius-sm, 6px);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.batch-kebab-btn:hover {
    background: var(--glass-surface, rgba(255, 255, 255, 0.06));
    border-color: var(--glass-border, rgba(255, 255, 255, 0.1));
    color: var(--accent-primary, #6366f1);
}

.batch-kebab-btn svg,
.batch-kebab-btn i[data-lucide] {
    width: 16px;
    height: 16px;
    pointer-events: none;
}

/* Dropdown panel — hidden by default */
.batch-action-menu {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 4px);
    min-width: 160px;
    background: var(--glass-surface, rgba(20, 20, 35, 0.95));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    /* Firefox ≥ 103, Safari */
    border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.1));
    border-radius: var(--radius-md, 10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
    z-index: 500;
    padding: 4px;
    flex-direction: column;
    /* overflow hidden prevents items from leaking outside rounded corners */
    overflow: hidden;
}

/* Show state — toggled by toggleBatchMenu() */
.batch-action-menu.show {
    display: flex;
    animation: batchMenuFadeIn 0.15s ease-out;
}

@keyframes batchMenuFadeIn {
    from {
        opacity: 0;
        transform: translateY(-4px) scale(0.97);
    }

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

/* Individual menu item */
.batch-action-item {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 8px 12px;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: var(--text-primary, #e2e8f0);
    font-size: 0.85rem;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s ease;
    text-align: left;
    white-space: nowrap;
    box-sizing: border-box;
}

.batch-action-item:hover:not(:disabled) {
    background: rgba(99, 102, 241, 0.12);
    color: var(--accent-primary, #6366f1);
}

.batch-action-item:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Danger variant (Delete) */
.batch-action-item.batch-action-danger:hover:not(:disabled) {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
}

/* Lucide icon inside items */
.batch-action-item i[data-lucide],
.batch-action-item svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    pointer-events: none;
}

/* Divider line between item groups */
.batch-action-divider {
    height: 1px;
    background: var(--glass-border, rgba(255, 255, 255, 0.08));
    margin: 4px 8px;
}