/* ============================================
   in2inglobal SEO Auditor 
   ============================================ */

/* ========== CSS Variables & Theme ========== */
:root {
    /* Brand Colors */
    --primary-color: #0d6efd;
    --primary-dark: #0a58ca;
    --primary-light: #6ea8fe;
    --accent-color: #0dcaf0;
    --accent-dark: #0aa2c0;
    
    /* Status Colors */
    --success-color: #198754;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #0dcaf0;
    
    /* Grade Colors */
    --grade-a: #198754;
    --grade-b: #20c997;
    --grade-c: #ffc107;
    --grade-d: #fd7e14;
    --grade-f: #dc3545;
    
    /* Neutral Colors */
    --bg-body: #f8f9fa;
    --bg-card: #ffffff;
    --bg-header: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --text-primary: #212529;
    --text-secondary: #6c757d;
    --text-muted: #adb5bd;
    --border-color: #dee2e6;
    
    /* Shadows */
    --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
    
    /* Animations */
    --transition-fast: 150ms ease-in-out;
    --transition-base: 300ms ease-in-out;
    --transition-slow: 500ms ease-in-out;
    
    /* Spacing */
    --header-height: 120px;
    --progress-bar-height: 16px;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ========== Base Styles ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color var(--transition-base), color var(--transition-base);
}

/* ========== Header & Navigation ========== */
.header-sticky {
    position: sticky;
    top: 0;
    z-index: 1030;
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 25px;
    margin: 6px 0px 0px 0px;
}

.navbar {
    padding: 1rem 0;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a2e !important;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.brand-logo:hover {
    transform: translateY(-2px);
}

.brand-logo i {
    font-size: 1.75rem;
    color: #667eea;
    order: -1;
}

.brand-text {
    font-size: 1.375rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-subtitle {
    font-size: 0.8125rem;
    color: #64748b;
    font-weight: 500;
    margin-left: 0.375rem;
}

/* Theme Toggle */
#themeToggle {
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

/* 
#connectionStatus {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    background: rgba(102, 126, 234, 0.1);
    color: #6c631d;
    border: 1px solid rgba(102, 126, 234, 0.2);
} */
#connectionStatus{
    display: none;
}
.pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* ========== Progress Bar ========== */
.progress-container {
    position: relative;
    padding: 1.25rem 2rem 1.5rem;
    background: linear-gradient(180deg, rgba(102, 126, 234, 0.03) 0%, rgba(118, 75, 162, 0.02) 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.progress-bar-wrapper {
    position: relative;
    height: 18px;
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
    border-radius: 12px;
    overflow: hidden;
    margin: 0 0 1rem 0;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(102, 126, 234, 0.12);
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    min-width: 3%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 0.75rem;
    box-shadow: 0 2px 12px rgba(102, 126, 234, 0.35);
}

.progress-bar-fill::before {
    content: '';
    position: absolute;
    top: 0;
    left: -40%;
    width: 40%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.5) 50%, 
        transparent 100%);
    animation: shimmer 2.5s ease-in-out infinite;
}

@keyframes shimmer {
    0% {
        left: -40%;
    }
    100% {
        left: 140%;
    }
}

.progress-bar-fill::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -6px;
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    transform: translateY(-50%);
    box-shadow: 0 0 16px rgba(102, 126, 234, 0.6), 
                0 2px 8px rgba(0, 0, 0, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.9);
}

.progress-text {
    font-size: 0.6875rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    letter-spacing: 0.3px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    font-size: 0.8rem;
}

.progress-badge {
    position: relative;
    display: inline-flex;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.625rem 1.5rem;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.25);
    align-items: center;
    gap: 0.625rem;
    transition: all 0.25s ease;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.progress-badge i {
    animation: spin 1.8s linear infinite;
    font-size: 1rem;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.progress-badge.complete {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    animation: completePulse 0.5s ease-in-out;
    box-shadow: 0 4px 20px rgba(56, 239, 125, 0.3);
}

.progress-badge.complete i {
    animation: none;
}

@keyframes completePulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.06);
    }
}

.progress-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.35);
}

.main-content {
    position: relative;
    z-index: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .progress-container {
        padding: 1rem 1.25rem 1.25rem;
    }
    
    .progress-badge {
        padding: 0.5rem 1.125rem;
        font-size: 0.8125rem;
    }
    
    .progress-bar-wrapper {
        margin-bottom: 0.875rem;
        height: 18px;
    }
    
    .brand-text {
        font-size: 1.25rem;
    }
    
    .brand-subtitle {
        font-size: 0.75rem;
    }
    
    .brand-logo i {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .progress-container {
        padding: 0.875rem 1rem 1rem;
    }
    
    .progress-badge {
        padding: 0.4375rem 1rem;
        font-size: 0.75rem;
    }
    
    .progress-badge i {
        font-size: 0.875rem;
    }
    
    .brand-subtitle {
        display: none;
    }
    
    .progress-bar-wrapper {
        height: 22px;
    }
    
    .progress-text {
        font-size: 0.625rem;
    }
}

/* ========== Main Content ========== */
.main-content {
    min-height: calc(100vh - var(--header-height) - 60px);
    padding-top: 2rem;
    padding-bottom: 4rem;
}

/* ========== Start Section ========== */
.start-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 0;
    background: transparent;
    position: relative;
    overflow: hidden;
}

.animated-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.6;
    animation: floatShape 20s ease-in-out infinite;
}

.shape-1 {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.3), rgba(118, 75, 162, 0.2));
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.shape-2 {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(79, 209, 197, 0.3), rgba(66, 153, 225, 0.2));
    top: 60%;
    right: 10%;
    animation-delay: 2s;
}

.shape-3 {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(252, 92, 125, 0.3), rgba(106, 130, 251, 0.2));
    bottom: 15%;
    left: 15%;
    animation-delay: 4s;
}

.shape-4 {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(247, 151, 30, 0.3), rgba(32, 201, 151, 0.2));
    top: 30%;
    right: 20%;
    animation-delay: 6s;
}

@keyframes floatShape {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(30px, -30px) rotate(90deg);
    }
    50% {
        transform: translate(-20px, 40px) rotate(180deg);
    }
    75% {
        transform: translate(40px, -20px) rotate(270deg);
    }
}

.crayon-line {
    position: absolute;
    height: 3px;
    background: linear-gradient(90deg, transparent, currentColor, transparent);
    opacity: 0.4;
    animation: drawLine 8s ease-in-out infinite;
}

.line-1 {
    width: 300px;
    top: 20%;
    left: -300px;
    color: #667eea;
    animation-delay: 1s;
    transform: rotate(-15deg);
}

.line-2 {
    width: 250px;
    top: 70%;
    right: -250px;
    color: #fc5c7d;
    animation-delay: 3s;
    transform: rotate(15deg);
}

.line-3 {
    width: 200px;
    top: 45%;
    left: -200px;
    color: #4fd1c5;
    animation-delay: 5s;
    transform: rotate(-10deg);
}

@keyframes drawLine {
    0% {
        transform: translateX(0) rotate(var(--rotate, 0deg));
        opacity: 0;
    }
    20% {
        opacity: 0.6;
    }
    80% {
        opacity: 0.6;
    }
    100% {
        transform: translateX(calc(100vw + 300px)) rotate(var(--rotate, 0deg));
        opacity: 0;
    }
}

.particle-container {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.8), transparent);
    animation: particleRise 15s linear infinite;
}

.particle:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.8), transparent);
}

.particle:nth-child(2) {
    left: 25%;
    animation-delay: 2s;
    background: radial-gradient(circle, rgba(252, 92, 125, 0.8), transparent);
}

.particle:nth-child(3) {
    left: 40%;
    animation-delay: 4s;
    background: radial-gradient(circle, rgba(79, 209, 197, 0.8), transparent);
}

.particle:nth-child(4) {
    left: 55%;
    animation-delay: 6s;
    background: radial-gradient(circle, rgba(247, 151, 30, 0.8), transparent);
}

.particle:nth-child(5) {
    left: 70%;
    animation-delay: 1s;
    background: radial-gradient(circle, rgba(118, 75, 162, 0.8), transparent);
}

.particle:nth-child(6) {
    left: 80%;
    animation-delay: 3s;
    background: radial-gradient(circle, rgba(106, 130, 251, 0.8), transparent);
}

.particle:nth-child(7) {
    left: 15%;
    animation-delay: 5s;
    background: radial-gradient(circle, rgba(32, 201, 151, 0.8), transparent);
}

.particle:nth-child(8) {
    left: 90%;
    animation-delay: 7s;
    background: radial-gradient(circle, rgba(66, 153, 225, 0.8), transparent);
}

@keyframes particleRise {
    0% {
        bottom: -10%;
        opacity: 0;
        transform: translateX(0) scale(0);
    }
    10% {
        opacity: 1;
        transform: translateX(20px) scale(1);
    }
    90% {
        opacity: 1;
        transform: translateX(-20px) scale(1);
    }
    100% {
        bottom: 110%;
        opacity: 0;
        transform: translateX(0) scale(0);
    }
}

.start-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(66, 153, 225, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(66, 153, 225, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
    z-index: 0;
}

@keyframes gridMove {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(50px, 50px);
    }
}

.start-section::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(66, 153, 225, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(79, 209, 197, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(66, 153, 225, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 90% 20%, rgba(79, 209, 197, 0.07) 0%, transparent 50%);
    animation: particleFloat 25s ease-in-out infinite;
    z-index: 0;
}

@keyframes particleFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
    25% {
        transform: translate(30px, -30px) scale(1.1);
        opacity: 0.8;
    }
    50% {
        transform: translate(-20px, 20px) scale(0.9);
        opacity: 1;
    }
    75% {
        transform: translate(40px, 40px) scale(1.05);
        opacity: 0.9;
    }
}

.start-card {
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    text-align: center;
    max-width: 800px;
    width: 100%;
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.start-card:hover {
    transform: none;
}

.start-icon {
    display: none;
}

.start-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #2c3e50, #3498db, #2c3e50);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    animation: gradientShift 4s ease infinite;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% center;
    }
    50% {
        background-position: 100% center;
    }
}

.start-description {
    font-size: 1.25rem;
    color: #5a6c7d;
    margin-bottom: 3rem;
    line-height: 1.6;
    animation: fadeIn 1s ease-out 0.3s both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Animated underline */
.start-title::after {
    content: '';
    display: block;
    width: 0;
    height: 8px;
    background: linear-gradient(90deg, #4299e1, #4fd1c5, #4299e1);
    background-size: 200% auto;
    margin: 0.5rem auto 0;
    border-radius: 4px;
    box-shadow: 0 2px 15px rgba(66, 153, 225, 0.4);
    animation: underlineExpand 1s ease-out 0.5s forwards, gradientFlow 3s ease infinite;
}

@keyframes underlineExpand {
    to {
        width: 280px;
    }
}

@keyframes gradientFlow {
    0%, 100% {
        background-position: 0% center;
    }
    50% {
        background-position: 100% center;
    }
}

.input-group-custom {
    display: flex;
    gap: 0;
    flex-wrap: nowrap;
    max-width: 700px;
    margin: 0 auto 3rem;
    box-shadow: 0 10px 40px rgba(66, 153, 225, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
    border-radius: 0.75rem;
    overflow: hidden;
    background: white;
    border: 1px solid rgba(66, 153, 225, 0.15);
    animation: fadeInUp 1s ease-out 0.6s both;
    transition: all 0.3s ease;
}

.input-group-custom:hover {
    box-shadow: 0 15px 50px rgba(66, 153, 225, 0.18), 0 5px 15px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.input-group-custom .form-control {
    flex: 1;
    min-width: 0;
    border-radius: 0;
    border: none;
    padding: 1.25rem 1.5rem;
    font-size: 1rem;
    color: #718096;
    background: white;
    transition: color 0.3s ease;
}

.input-group-custom .form-control:focus {
    border: none;
    box-shadow: none;
    outline: none;
    color: #2d3748;
}

.input-group-custom .form-control::placeholder {
    color: #cbd5e0;
    transition: color 0.3s ease;
}

.input-group-custom .form-control:focus::placeholder {
    color: #a0aec0;
}

.input-group-custom .btn {
    border-radius: 0;
    padding: 1.25rem 2.5rem;
    font-weight: 600;
    font-size: 1.125rem;
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
    border: none;
    color: white;
    white-space: nowrap;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* Button shine effect */
.input-group-custom .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s ease;
}

.input-group-custom .btn:hover:not(:disabled)::before {
    left: 100%;
}

/* Button pulse effect */
.input-group-custom .btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.input-group-custom .btn:hover:not(:disabled)::after {
    width: 300px;
    height: 300px;
}

.input-group-custom .btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(66, 153, 225, 0.35);
    background: linear-gradient(135deg, #3182ce 0%, #2c5282 100%);
}

.input-group-custom .btn:active:not(:disabled) {
    transform: translateY(0);
}

.input-group-custom .btn i {
    margin-right: 0.5rem;
    animation: playPulse 2s ease-in-out infinite;
}

@keyframes playPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Subtitle text below input */
.start-card > p:last-of-type {
    font-size: 1rem;
    color: #4a5568;
    margin-top: -2rem;
    margin-bottom: 3rem;
    animation: fadeIn 1s ease-out 0.8s both;
}

/* Processor Selection - Hidden by default */
.processor-selection-toggle {
    display: none;
}

#processorOptions {
    display: none;
}

.processor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    padding: 2rem 0;
    background: transparent;
    border-radius: 0;
    margin-top: 1rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.processor-checkbox {
    display: block;
    cursor: pointer;
    margin: 0;
    animation: fadeInUp 0.5s ease-out both;
}

.processor-checkbox:nth-child(1) { animation-delay: 0.1s; }
.processor-checkbox:nth-child(2) { animation-delay: 0.15s; }
.processor-checkbox:nth-child(3) { animation-delay: 0.2s; }
.processor-checkbox:nth-child(4) { animation-delay: 0.25s; }
.processor-checkbox:nth-child(5) { animation-delay: 0.3s; }
.processor-checkbox:nth-child(6) { animation-delay: 0.35s; }
.processor-checkbox:nth-child(7) { animation-delay: 0.4s; }

.processor-checkbox input[type="checkbox"] {
    display: none;
}

.processor-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(66, 153, 225, 0.2);
    border-radius: 0.75rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.95rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

/* Label hover glow effect */
.processor-label::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(66, 153, 225, 0.1), rgba(79, 209, 197, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.processor-label:hover::before {
    opacity: 1;
}

.processor-label i {
    font-size: 1.25rem;
    color: #4299e1;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.processor-checkbox input:checked + .processor-label {
    background: linear-gradient(135deg, #4299e1, #3182ce);
    border-color: transparent;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(66, 153, 225, 0.35);
}

.processor-checkbox input:checked + .processor-label i {
    color: white;
    animation: iconBounce 0.5s ease;
}

@keyframes iconBounce {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2) rotate(10deg);
    }
}

.processor-label:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(66, 153, 225, 0.2);
    border-color: #4299e1;
}

.processor-label:hover i {
    transform: scale(1.1);
}

.processor-checkbox input:checked + .processor-label:hover {
    border-color: transparent;
    box-shadow: 0 12px 30px rgba(66, 153, 225, 0.4);
    transform: translateY(-4px);
}

.processor-checkbox input:checked + .processor-label:hover i {
    animation: iconRotate 0.6s ease infinite;
}

@keyframes iconRotate {
    0%, 100% {
        transform: rotate(0deg) scale(1.1);
    }
    50% {
        transform: rotate(5deg) scale(1.15);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .start-title {
        font-size: 2.5rem;
    }
    
    .input-group-custom {
        flex-wrap: wrap;
        border-radius: 0.75rem;
    }
    
    .input-group-custom .form-control {
        border-radius: 0.75rem 0.75rem 0 0;
    }
    
    .input-group-custom .btn {
        width: 100%;
        border-radius: 0 0 0.75rem 0.75rem;
    }
    
    .processor-grid {
        grid-template-columns: 1fr;
    }
}

/* Loading state animation */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.input-group-custom .btn:disabled i {
    animation: spin 1s linear infinite;
}

/* ========== Dashboard Section ========== */
.dashboard-section {
    animation: fadeIn 0.5s ease-in-out;
    padding: 2rem 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Summary Hero */
.summary-hero {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 2rem;
    padding: 0;
    margin-bottom: 2.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

/* Summary Header */
.summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 2.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    flex-wrap: wrap;
    gap: 2rem;
    position: relative;
    overflow: hidden;
}

.summary-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

.summary-header::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 10s ease-in-out infinite reverse;
}

.summary-header-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex: 1;
    min-width: 300px;
    position: relative;
    z-index: 1;
}

.summary-header-icon {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.summary-header-icon i {
    font-size: 2rem;
    color: white;
}

.summary-header-content {
    flex: 1;
}

.summary-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: white;
    letter-spacing: -0.5px;
}

.summary-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.summary-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.95);
    background: rgba(255, 255, 255, 0.1);
    padding: 0.4rem 0.9rem;
    border-radius: 0.5rem;
    backdrop-filter: blur(10px);
}

.summary-meta-item i {
    font-size: 1rem;
    opacity: 0.9;
    flex-shrink: 0;
}

.summary-url {
    font-weight: 500;
    max-width: 400px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
    color:rgba(255, 255, 255, 0.752) !important;
    
}

.summary-timestamp,
.summary-duration {
    font-weight: 500;
}

.summary-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.btn-action {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.25rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.15);
    color: white;
    font-weight: 600;
    border-radius: 0.75rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.btn-action:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    color: white;
}

.btn-action i {
    font-size: 1.1rem;
}

/* Main Grid Layout */
.summary-main-grid {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 1rem;
    padding: 1rem;
    background: white;
}

/* Score Section */
.summary-score-section {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.score-card {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.03), rgba(118, 75, 162, 0.03));
    border-radius: 1rem;
    padding: 0.8rem;
    border: 1px solid rgba(102, 126, 234, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.score-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(102, 126, 234, 0.08);
}

.score-card-header h5 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #667eea;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.score-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.9rem;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 1rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #667eea;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

.status-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: #667eea;
}

.score-gauge-container-new {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
}

.score-overlay-new {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.score-value-new {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.15rem;
}

.score-label-new {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.25rem;
}

.score-grade-new {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.4px;
}

/* Score Feedback */
.score-feedback {
    margin-top: 0.6rem;
    text-align: center;
}

.feedback-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    border-radius: 1rem;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
}

.feedback-badge i {
    font-size: 1.25rem;
}

.feedback-badge.excellent {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.feedback-badge.good {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.feedback-badge.fair {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.3);
}

.feedback-badge.needs-improvement {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
}

.feedback-badge.poor {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.feedback-badge.calculating {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    color: #667eea;
    border: 2px solid rgba(102, 126, 234, 0.2);
}

/* Key Metrics Grid */
.key-metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.metric-item-new {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1rem;
    background: white;
    border-radius: 1rem;
    border: 2px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
}

.metric-item-new:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.15);
    border-color: var(--primary-color);
}

.metric-icon-new {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.metric-value-new {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.metric-label-new {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Mockup Section */
.summary-mockup-section {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0.5rem;
}

.device-mockup-wrapper-new {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 0.25rem;
}

.device-mockup-container-new {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.device-preview-desktop-new {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    width: 75%;
    max-width: 460px;
    padding: 10px;
    background: linear-gradient(145deg, #2c2c2c, #1a1a1a);
    border-radius: 12px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28),
                inset 0 1px 0 rgba(255, 255, 255, 0.08),
                0 0 0 1px rgba(0, 0, 0, 0.16);
    transition: all 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}

.device-preview-desktop-new::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 5px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
    border-radius: 2.5px;
}

.device-preview-desktop-new::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 8px;
    background: #3a3a3a;
    border-radius: 4px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5);
}

.device-preview-desktop-new:hover {
    transform: translateY(-50%) scale(1.03);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.15),
                0 0 0 1px rgba(0, 0, 0, 0.2);
}

.device-preview-mobile-new {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 30%;
    max-width: 160px;
    padding: 10px 5px 12px 5px;
    background: linear-gradient(145deg, #1a1a1a, #0a0a0a);
    border-radius: 30px;
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.45),
                inset 0 1px 0 rgba(255, 255, 255, 0.12),
                0 0 0 1px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.device-preview-mobile-new::before {
    content: '';
    position: absolute;
    top: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 45%;
    height: 16px;
    background: #0a0a0a;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.4);
}

.device-preview-mobile-new::after {
    content: '';
    position: absolute;
    top: 7px;
    left: 50%;
    transform: translateX(-50%);
    width: 25%;
    height: 3px;
    background: #2a2a2a;
    border-radius: 2px;
    z-index: 1;
}

.device-preview-mobile-new:hover {
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 26px 60px rgba(0, 0, 0, 0.5),
                inset 0 1px 0 rgba(255, 255, 255, 0.15),
                0 0 0 1px rgba(0, 0, 0, 0.3);
}

/* Skeleton Loaders for New Design */
.device-skeleton-desktop-new {
    width: 75%;
    max-width: 500px;
    height: 320px;
    padding: 16px;
    background: linear-gradient(145deg, #2c2c2c, #1a1a1a);
    border-radius: 14px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
    position: relative;
    overflow: hidden;
}

.device-skeleton-desktop-new::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 5px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
    border-radius: 2.5px;
}

.device-skeleton-desktop-inner {
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #3a3a3a 25%, #4a4a4a 50%, #3a3a3a 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
}

.device-skeleton-mobile-new {
    width: 30%;
    max-width: 160px;
    height: 280px;
    padding: 10px 5px 12px 5px;
    background: linear-gradient(145deg, #1a1a1a, #0a0a0a);
    border-radius: 30px;
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.45);
    position: relative;
    overflow: hidden;
}

.device-skeleton-mobile-new::before {
    content: '';
    position: absolute;
    top: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 45%;
    height: 16px;
    background: #0a0a0a;
    border-radius: 0 0 10px 10px;
}

.device-skeleton-mobile-inner {
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #2a2a2a 25%, #3a3a3a 50%, #2a2a2a 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 26px;
}

/* ========== Section Score Rings ========== */
.section-scores-rings {
    padding: 2rem 2.5rem;
    background: white;
    border-top: 1px solid rgba(102, 126, 234, 0.1);
}

.rings-header {
    margin-bottom: 2rem;
}

.rings-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #667eea;
}

.rings-title i {
    font-size: 1.5rem;
}

.rings-container {
    display: flex;
    justify-content: space-evenly;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 2rem 1.5rem;
    padding: 1rem 0;
}

.ring-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 100px;
    max-width: 120px;
}

.ring-item:hover {
    transform: translateY(-8px);
}

.ring-canvas-wrapper {
    position: relative;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ring-canvas {
    display: block;
    width: 100px !important;
    height: 100px !important;
}

.ring-score-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 10;
}

.ring-score-number {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1;
    color: #667eea;
    animation: fadeInUp 0.6s ease-out forwards;
    padding: 0;
    margin: 0;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ring-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #64748b;
    text-align: center;
    text-transform: capitalize;
    letter-spacing: 0.3px;
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

/* Skeleton Loading States */
.ring-item.skeleton-ring .ring-canvas-wrapper {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08), rgba(118, 75, 162, 0.08));
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.12);
    animation: ringPulse 1.5s ease-in-out infinite;
}

@keyframes ringPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(0.98);
    }
}

.ring-item.skeleton-ring .skeleton-text {
    background: linear-gradient(90deg, 
        rgba(102, 126, 234, 0.1) 25%, 
        rgba(102, 126, 234, 0.2) 50%, 
        rgba(102, 126, 234, 0.1) 75%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
    color: transparent !important;
}

.ring-item.skeleton-ring .ring-score-number.skeleton-text {
    width: 40px;
    height: 24px;
    margin: 0 auto;
}

.ring-item.skeleton-ring .ring-label.skeleton-text {
    width: 80px;
    height: 14px;
    background: linear-gradient(90deg, 
        rgba(100, 116, 139, 0.1) 25%, 
        rgba(100, 116, 139, 0.2) 50%, 
        rgba(100, 116, 139, 0.1) 75%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    animation-delay: 0.1s;
}

/* Loaded State Animations */
.ring-item.loaded {
    animation: ringReveal 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes ringReveal {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Score Color Classes */
.ring-item.score-excellent .ring-score-number {
    color: #10b981;
}

.ring-item.score-good .ring-score-number {
    color: #3b82f6;
}

.ring-item.score-fair .ring-score-number {
    color: #f59e0b;
}

.ring-item.score-poor .ring-score-number {
    color: #ef4444;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .rings-container {
        gap: 1.5rem 1rem;
    }
}

@media (max-width: 768px) {
    .section-scores-rings {
        padding: 1.5rem 1.5rem;
    }
    
    .rings-container {
        gap: 1.5rem 1rem;
        justify-content: space-around;
    }
    
    .ring-item {
        min-width: 85px;
        max-width: 100px;
    }
    
    .ring-canvas-wrapper {
        width: 85px;
        height: 85px;
    }
    
    .ring-canvas {
        width: 85px !important;
        height: 85px !important;
    }
    
    .ring-score-number {
        font-size: 1.5rem;
    }
    
    .ring-label {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .rings-container {
        gap: 1.25rem 0.75rem;
    }
    
    .ring-item {
        min-width: 70px;
        max-width: 85px;
    }
    
    .ring-canvas-wrapper {
        width: 70px;
        height: 70px;
    }
    
    .ring-canvas {
        width: 70px !important;
        height: 70px !important;
    }
    
    .ring-score-number {
        font-size: 1.25rem;
    }
    
    .ring-label {
        font-size: 0.7rem;
    }
}

/* Bottom Grid Section */
.summary-bottom-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2rem;
    padding: 0 2.5rem 2.5rem 2.5rem;
    background: white;
}

.summary-chart-section,
.summary-priority-section {
    min-height: 300px;
}

/* Chart Card */
.chart-card {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.03), rgba(118, 75, 162, 0.03));
    border-radius: 1.5rem;
    padding: 2rem;
    border: 2px solid rgba(102, 126, 234, 0.1);
    height: 100%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.chart-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.2);
}

.chart-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(102, 126, 234, 0.1);
}

.chart-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--primary-color);
}

.chart-card-title i {
    font-size: 1.3rem;
}

.chart-legend-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.9rem;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 1rem;
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.legend-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: #667eea;
}

.chart-container-new {
    position: relative;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Radar Chart Skeleton */
.chart-skeleton {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.skeleton-radar {
    position: relative;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(102, 126, 234, 0.05);
}

.skeleton-radar-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(102, 126, 234, 0.2);
    animation: pulse 2s infinite;
}

.skeleton-radar-line {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.3), transparent);
    transform-origin: left center;
    animation: shimmer 2s infinite;
}

.skeleton-text-lines {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 80%;
}

.skeleton-text-lines .skeleton-line {
    height: 12px;
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.1) 25%, rgba(102, 126, 234, 0.2) 50%, rgba(102, 126, 234, 0.1) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 6px;
}

.skeleton-text-lines .skeleton-line:nth-child(1) {
    width: 100%;
}

.skeleton-text-lines .skeleton-line:nth-child(2) {
    width: 85%;
}

.skeleton-text-lines .skeleton-line:nth-child(3) {
    width: 70%;
}

/* Priority Card */
.priority-card {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.08), rgba(255, 152, 0, 0.08));
    border-radius: 1.5rem;
    padding: 1.5rem;
    border: 2px solid rgba(255, 193, 7, 0.2);
    height: 100%;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.priority-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.2);
    border-color: rgba(255, 193, 7, 0.3);
}

.priority-card {
    animation: priorityPulse 0.6s ease-in-out;
}

@keyframes priorityPulse {
    0% {
        box-shadow: 0 4px 15px rgba(255, 193, 7, 0.1);
    }
    50% {
        box-shadow: 0 8px 35px rgba(255, 193, 7, 0.4);
    }
    100% {
        box-shadow: 0 4px 15px rgba(255, 193, 7, 0.1);
    }
}

.priority-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #ff9800;
    flex-shrink: 0;
}

.priority-card-title i {
    font-size: 1.5rem;
}

.priority-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    max-height: 340px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 0.5rem;
}

.priority-content::-webkit-scrollbar {
    width: 6px;
}

.priority-content::-webkit-scrollbar-track {
    background: rgba(255, 152, 0, 0.05);
    border-radius: 10px;
}

.priority-content::-webkit-scrollbar-thumb {
    background: rgba(255, 152, 0, 0.3);
    border-radius: 10px;
}

.priority-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 152, 0, 0.5);
}

.priority-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.priority-content li {
    padding: 0.8rem 1rem;
    background: white;
    border-radius: 0.75rem;
    border-left: 4px solid #ff9800;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.priority-content li:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.15);
    border-left-color: #f57c00;
}

.priority-content li::before {
    content: '→';
    color: #ff9800;
    font-weight: 700;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.score-gauge-container {
    position: relative;
    display: inline-block;
}

.score-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.score-value {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.score-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.summary-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.summary-url {
    color: var(--text-secondary);
    font-size: 1rem;

}

/* Key Metrics */
.key-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.metric-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    transition: all var(--transition-fast);
}

.metric-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: var(--primary-color);
}

.metric-icon {
    font-size: 2rem;
    color: var(--primary-color);
    opacity: 0.8;
}

.metric-value {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1;
    color: var(--primary-color);
}

.metric-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Quick Recommendations */
.quick-recommendations {
    padding: 1.75rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08), rgba(118, 75, 162, 0.08));
    border-radius: 1rem;
    border: 2px solid rgba(102, 126, 234, 0.2);
    margin-bottom: 1.5rem;
}

.quick-recommendations h6 {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--primary-color);
}

.quick-recommendations ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.quick-recommendations li {
    padding: 0.75rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.quick-recommendations li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
}

/* Summary Actions */
.summary-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ========== Device Mockup Preview ========== */
.device-mockup-wrapper {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.device-mockup-container {
    position: relative;
    height: 100%;
    min-height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 10px;
    width: 100%;
}

.device-preview-desktop {
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    width: 85%;
    max-width: 400px;
    padding: 12px;
    background: linear-gradient(145deg, #2c2c2c, #1a1a1a);
    border-radius: 12px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.device-preview-desktop::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 55%;
    height: 4px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    border-radius: 2px;
}

.device-preview-desktop::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 6px;
    background: #3a3a3a;
    border-radius: 3px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5);
}

.device-preview-mobile {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 32%;
    max-width: 130px;
    padding: 8px 4px 10px 4px;
    background: linear-gradient(145deg, #1a1a1a, #0a0a0a);
    border-radius: 26px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.device-preview-mobile::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 50%;
    transform: translateX(-50%);
    width: 40%;
    height: 14px;
    background: #0a0a0a;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.device-preview-mobile::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 22%;
    height: 2.5px;
    background: #2a2a2a;
    border-radius: 2px;
    z-index: 1;
}

.device-screenshot {
    width: 100%;
    height: auto;
    border-radius: 6px;
    display: block;
    opacity: 0;
    animation: fadeInDevice 0.6s ease-out forwards;
    position: relative;
    z-index: 2;
}

@keyframes fadeInDevice {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.device-screenshot.desktop {
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    border: 1px solid #3a3a3a;
    animation-delay: 0.2s;
}

.device-screenshot.mobile {
    border-radius: 22px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    border: none;
    animation-delay: 0.4s;
}

.device-preview-desktop:hover,
.device-preview-mobile:hover {
    transform: translateY(-50%) scale(1.02);
    transition: transform var(--transition-base);
}

.device-preview-desktop:hover {
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.35),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.device-preview-mobile:hover {
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.45),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Skeleton Loading for Device Mockup */
.device-mockup-skeleton {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 10px;
}

.device-skeleton-desktop {
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    width: 85%;
    max-width: 400px;
    height: 280px;
    padding: 12px;
    background: linear-gradient(145deg, #2c2c2c, #1a1a1a);
    border-radius: 12px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.device-skeleton-desktop::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 55%;
    height: 4px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    border-radius: 2px;
}

.device-skeleton-desktop::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 6px;
    background: #3a3a3a;
    border-radius: 3px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5);
}

.device-skeleton-desktop-inner {
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #e0e0e0 25%, #f0f0f0 50%, #e0e0e0 75%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
    border-radius: 6px;
}

.device-skeleton-mobile {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 32%;
    max-width: 130px;
    height: 240px;
    padding: 8px 4px 10px 4px;
    background: linear-gradient(145deg, #1a1a1a, #0a0a0a);
    border-radius: 26px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.device-skeleton-mobile::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 50%;
    transform: translateX(-50%);
    width: 40%;
    height: 14px;
    background: #0a0a0a;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.device-skeleton-mobile::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 22%;
    height: 2.5px;
    background: #2a2a2a;
    border-radius: 2px;
    z-index: 1;
}

.device-skeleton-mobile-inner {
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #d0d0d0 25%, #e0e0e0 50%, #d0d0d0 75%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
    animation-delay: 0.3s;
    border-radius: 22px;
    position: relative;
    z-index: 2;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.device-mockup-container.loading .device-screenshot {
    opacity: 0.5;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 0.8;
    }
}

/* ========== Section Cards ========== */
.sections-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 2rem;
}

.section-card {
    background: var(--bg-card);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-base);
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.section-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* Section Loading Animation */
.section-card.section-loading {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1), var(--shadow);
    animation: sectionPulse 1.5s ease-in-out infinite;
}

@keyframes sectionPulse {
    0%, 100% {
        box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1), var(--shadow);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(13, 110, 253, 0.2), var(--shadow-lg);
    }
}

/* Section Reveal Animation */
.section-card.section-reveal {
    animation: sectionReveal 0.6s ease-out;
}

@keyframes sectionReveal {
    0% {
        opacity: 0.7;
        transform: scale(0.98);
    }
    50% {
        transform: scale(1.02);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Section Loaded State */
.section-card.section-loaded {
    border-left: 4px solid var(--success-color);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
}

.section-title i {
    font-size: 1.5rem;
}

.section-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-badge {
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.status-badge.pending {
    background: var(--warning-color);
    color: #000;
}

.status-badge.processing {
    background: var(--info-color);
    color: #000;
    animation: badgePulse 1.5s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.status-badge.complete {
    background: var(--success-color);
    color: white;
}

.status-badge.error {
    background: var(--danger-color);
    color: white;
}

/* Spinning Icon Animation */
.spinning {
    display: inline-block;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Section Processing State */
.section-card.section-processing {
    border-left: 4px solid var(--info-color);
    background: linear-gradient(90deg, rgba(13, 202, 240, 0.05) 0%, var(--bg-card) 10%);
}

.section-score {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.score-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    border: 3px solid;
}

.score-circle.grade-a {
    background: rgba(25, 135, 84, 0.1);
    border-color: var(--grade-a);
    color: var(--grade-a);
}

.score-circle.grade-b {
    background: rgba(32, 201, 151, 0.1);
    border-color: var(--grade-b);
    color: var(--grade-b);
}

.score-circle.grade-c {
    background: rgba(255, 193, 7, 0.1);
    border-color: var(--grade-c);
    color: var(--grade-c);
}

.score-circle.grade-d {
    background: rgba(253, 126, 20, 0.1);
    border-color: var(--grade-d);
    color: var(--grade-d);
}

.score-circle.grade-f {
    background: rgba(220, 53, 69, 0.1);
    border-color: var(--grade-f);
    color: var(--grade-f);
}

.section-body {
    position: relative;
    min-height: 100px;
}

/* ========== Skeleton Loaders ========== */
.skeleton {
    background: linear-gradient(90deg, var(--bg-body) 25%, rgba(0, 0, 0, 0.05) 50%, var(--bg-body) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    pointer-events: none;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.skeleton-text {
    height: 1em;
    border-radius: 4px;
}

.skeleton-lines {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.skeleton-line {
    height: 1em;
    background: linear-gradient(90deg, var(--bg-body) 25%, rgba(0, 0, 0, 0.05) 50%, var(--bg-body) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 4px;
}

.skeleton-line:nth-child(1) {
    width: 90%;
}

.skeleton-line:nth-child(2) {
    width: 75%;
}

.skeleton-line:nth-child(3) {
    width: 85%;
}

/* ========== Right Column ========== */
.right-column-sticky {
    position: sticky;
    top: calc(var(--header-height) + 2rem);
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    box-shadow: var(--shadow-sm);
}

.card-header {
    background: transparent;
    border-bottom: 2px solid var(--border-color);
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h5 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-body {
    padding: 1.5rem;
}

/* Event Feed */
.event-feed {
    max-height: 400px;
    overflow-y: auto;
    display: flex;
    flex-direction: column-reverse;
    gap: 0.75rem;
}

.event-feed::-webkit-scrollbar {
    width: 6px;
}

.event-feed::-webkit-scrollbar-track {
    background: var(--bg-body);
    border-radius: 3px;
}

.event-feed::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.event-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--bg-body);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    animation: eventSlide 0.3s ease-out;
}

@keyframes eventSlide {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.event-item i {
    font-size: 1rem;
    flex-shrink: 0;
}

.event-item span {
    flex: 1;
}

.event-time {
    color: var(--text-muted);
    font-size: 0.75rem;
    white-space: nowrap;
}

/* Scan Info Card */
.scan-info-card .card-body {
    padding: 1rem;
}

.scan-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.scan-info-item:last-child {
    border-bottom: none;
}

.scan-info-item .label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.scan-info-item .value {
    font-size: 0.875rem;
    font-weight: 600;
}

/* ========== Recommendations ========== */
.recommendations-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.recommendation-item {
    padding: 1rem;
    border-radius: 0.5rem;
    border-left: 4px solid;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.875rem;
    animation: slideIn 0.3s ease-out;
}

.recommendation-item.critical {
    background: rgba(220, 53, 69, 0.1);
    border-color: var(--danger-color);
}

.recommendation-item.high {
    background: rgba(253, 126, 20, 0.1);
    border-color: var(--grade-d);
}

.recommendation-item.medium {
    background: rgba(255, 193, 7, 0.1);
    border-color: var(--warning-color);
}

.recommendation-item.low {
    background: rgba(13, 202, 240, 0.1);
    border-color: var(--info-color);
}

.recommendation-item i {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.recommendation-content {
    flex: 1;
}

.recommendation-priority {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    margin-bottom: 0.25rem;
}

/* ========== Data Display Components ========== */
.data-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.data-item {
    padding: 1rem;
    background: var(--bg-body);
    border-radius: 0.5rem;
    border-left: 3px solid var(--primary-color);
}

.data-item-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.data-item-value {
    font-size: 1.25rem;
    font-weight: 700;
}

.data-section {
    margin: 1rem 0;
    padding: 1rem;
    background: var(--bg-body);
    border-radius: 0.75rem;
    border-left: 3px solid var(--primary-color);
}

.data-section h6 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.data-section p {
    margin: 0.25rem 0;
    font-size: 0.9rem;
    line-height: 1.6;
}

.data-section p strong {
    color: var(--text-primary);
}

/* Tags */
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.5rem 0;
}

.tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--primary-color);
    color: white;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.tag.tag-success {
    background: var(--success-color);
}

.tag.tag-warning {
    background: var(--warning-color);
    color: #000;
}

.tag.tag-danger {
    background: var(--danger-color);
}

/* ========== Toast Notifications ========== */
.toast {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    border-radius: 0.75rem;
}

.toast-header {
    background: transparent;
    border-bottom: 1px solid var(--border-color);
}

/* ========== Section Navigation ========== */
.section-nav {
    position: fixed;
    left: 0;
    top: var(--header-height);
    width: 280px;
    height: calc(100vh - var(--header-height));
    background: linear-gradient(180deg, #1e1e2e 0%, #2d1b4e 50%, #1a1a2e 100%);
    padding: 1.5rem 0;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 1000;
    transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1), transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 4px 0 25px rgba(0, 0, 0, 0.25);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

.section-nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M 20 0 L 0 0 0 20" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    pointer-events: none;
    opacity: 0.5;
}

.section-nav.nav-collapsed {
    width: 72px;
}

.section-nav.nav-collapsed .section-nav-header {
    padding: 0.75rem;
    justify-content: center;
    margin: 0 0.5rem 1rem;
}

.section-nav.nav-collapsed .section-nav-header h6 {
    display: none;
}

.section-nav.nav-collapsed .section-nav-header::before {
    display: none;
}

.section-nav.nav-collapsed .nav-item {
    justify-content: center;
    padding: 1rem 0.75rem;
    margin: 0 0.5rem 0.5rem;
}

.section-nav.nav-collapsed .nav-item span:not(.nav-status) {
    display: none;
}

.section-nav.nav-collapsed .nav-item i {
    margin: 0;
    font-size: 1.3rem;
}

.section-nav.nav-collapsed .nav-status {
    display: none;
}

.section-nav.nav-collapsed .nav-item:hover {
    transform: translateX(0);
}

.section-nav.nav-collapsed .section-nav-footer {
    padding: 0.75rem 0.5rem;
    margin: 1rem 0.5rem 0;
}

.section-nav.nav-collapsed .section-nav-footer .btn {
    padding: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-nav.nav-collapsed .section-nav-footer .btn span {
    display: none;
}

.section-nav.nav-collapsed .section-nav-footer .btn i {
    margin: 0;
}

.section-nav.nav-collapsed .nav-collapse-toggle i {
    transform: rotate(180deg);
}

.section-nav::-webkit-scrollbar {
    width: 8px;
    margin-top: 8px;
}

.section-nav::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.section-nav::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #667eea, #764ba2);
    border-radius: 10px;
    border: 2px solid rgba(0, 0, 0, 0.2);
}

.section-nav::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #764ba2, #667eea);
}

.section-nav-header {
    padding: 0.75rem 1rem;
    border-bottom: none;
    margin: 0 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.12), rgba(118, 75, 162, 0.12));
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.nav-collapse-toggle {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.nav-collapse-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
}

.nav-collapse-toggle i {
    font-size: 1rem;
    transition: transform 0.35s ease;
}

.section-nav-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #667eea, #764ba2, transparent);
}

.section-nav-header h6 {
    color: white;
    font-weight: 700;
    margin: 0;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.section-nav-header h6 i {
    font-size: 1.2rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 8px rgba(102, 126, 234, 0.5));
}

.nav-close-btn {
    display: none;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.nav-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: rotate(90deg);
}

.section-nav-list {
    padding: 0 1rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    border: 1px solid transparent;
}

.nav-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #667eea, #764ba2);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.nav-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-item i {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.nav-item span:not(.nav-badge) {
    flex: 1;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: white;
    transform: translateX(8px);
    border-color: rgba(255, 255, 255, 0.1);
}

.nav-item:hover::after {
    opacity: 1;
}

.nav-item:hover i {
    transform: scale(1.15);
    filter: drop-shadow(0 0 8px rgba(102, 126, 234, 0.6));
}

.nav-item.active {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.25), rgba(118, 75, 162, 0.25));
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border-color: rgba(102, 126, 234, 0.4);
    transform: translateX(0);
}

.nav-item.active::before {
    transform: scaleY(1);
}

.nav-item.active::after {
    opacity: 1;
}

.nav-item.active i {
    color: #fff;
    filter: drop-shadow(0 0 10px rgba(102, 126, 234, 0.8));
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Navigation Status Indicators */
.nav-status {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    position: relative;
    z-index: 1;
}

.nav-loader {
    display: none;
}

/* Completed State - Checkmark */
.nav-status.completed .nav-loader {
    display: none;
}

.nav-status.completed::after {
    content: '\F26B';
    font-family: 'bootstrap-icons';
    font-size: 16px;
    color: #10b981;
    animation: checkmarkPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: block;
}

@keyframes checkmarkPop {
    0% {
        transform: scale(0) rotate(-45deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.2) rotate(5deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

/* Error State - X mark */
.nav-status.error .nav-loader {
    display: none;
}

.nav-status.error::after {
    content: '\F623';
    font-family: 'bootstrap-icons';
    font-size: 16px;
    color: #ef4444;
    animation: errorShake 0.5s ease-in-out;
    display: block;
}

@keyframes errorShake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-4px);
    }
    75% {
        transform: translateX(4px);
    }
}

/* Pending State - Clock */
.nav-status.pending .nav-loader {
    display: none;
}

.nav-status.pending::after {
    content: '\F5E0';
    font-family: 'bootstrap-icons';
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    display: block;
    animation: pendingPulse 1.5s ease-in-out infinite;
}

@keyframes pendingPulse {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
}

/* Active nav item with completed status */
.nav-item.active .nav-status.completed::after {
    color: #10b981;
    filter: drop-shadow(0 0 6px rgba(16, 185, 129, 0.6));
}

.nav-item:hover .nav-status {
    transform: scale(1.1);
}

.section-nav-footer {
    padding: 1rem 1.5rem;
    margin-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    margin-left: 1rem;
    margin-right: 1rem;
    border-radius: 12px;
}

.section-nav-footer .btn {
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-weight: 600;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
}

.section-nav-footer .btn:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.3), rgba(118, 75, 162, 0.3));
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.section-nav-footer .btn i {
    margin-right: 0.5rem;
    transition: transform 0.3s ease;
}

.section-nav-footer .btn:hover i {
    transform: translateY(-3px);
}

/* Mobile Navigation Toggle Button */
.nav-toggle-btn {
    display: none;
    position: fixed;
    left: 1rem;
    top: calc(var(--header-height) + 1rem);
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5), 0 0 0 0 rgba(102, 126, 234, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: navButtonPulse 2s infinite;
}

@keyframes navButtonPulse {
    0% {
        box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5), 0 0 0 0 rgba(102, 126, 234, 0.4);
    }
    50% {
        box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5), 0 0 0 8px rgba(102, 126, 234, 0);
    }
    100% {
        box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5), 0 0 0 0 rgba(102, 126, 234, 0);
    }
}

.nav-toggle-btn:hover {
    transform: scale(1.08) rotate(5deg);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.6);
}

.nav-toggle-btn:active {
    transform: scale(0.95) rotate(0deg);
}

/* Navigation Overlay for Mobile */
.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(102, 126, 234, 0.2), rgba(0, 0, 0, 0.8));
    backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-overlay.active {
    opacity: 1;
}

.dashboard-section {
    position: relative;
}

.dashboard-section .container-fluid {
    transition: padding-left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (min-width: 1200px) {
    .dashboard-section .container-fluid {
        padding-left: 300px;
    }
    
    .dashboard-section.nav-is-collapsed .container-fluid {
        padding-left: 92px;
    }
}

@media (min-width: 1400px) {
    .dashboard-section .container-fluid {
        padding-left: 300px;
    }
    
    .dashboard-section.nav-is-collapsed .container-fluid {
        padding-left: 92px;
    }
}

@media (max-width: 1199px) {
    .section-nav {
        transform: translateX(-100%);
        box-shadow: 8px 0 30px rgba(0, 0, 0, 0.5);
        width: 280px;
    }
    
    .section-nav.active {
        transform: translateX(0);
    }
    
    .section-nav.nav-collapsed {
        width: 280px;
    }
    
    .section-nav.nav-collapsed .section-nav-header h6,
    .section-nav.nav-collapsed .nav-item span:not(.nav-status),
    .section-nav.nav-collapsed .section-nav-footer .btn span {
        display: block;
    }
    
    .section-nav.nav-collapsed .nav-item {
        justify-content: flex-start;
        padding: 1rem 1.25rem;
        margin: 0 0.5rem 0.5rem;
    }
    
    .section-nav.nav-collapsed .nav-status {
        display: flex;
    }
    
    .nav-toggle-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .nav-close-btn {
        display: flex;
    }
    
    .nav-collapse-toggle {
        display: none;
    }
    
    .nav-overlay {
        display: block;
    }
    
    .dashboard-section .container-fluid {
        padding-left: 15px;
    }
    
    .dashboard-section.nav-is-collapsed .container-fluid {
        padding-left: 15px;
    }
}

@media (max-width: 767px) {
    .section-nav {
        width: 280px;
    }
    
    .nav-toggle-btn {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
        left: 0.75rem;
        top: calc(var(--header-height) + 0.75rem);
        border-radius: 12px;
    }
    
    .section-nav-header h6 {
        font-size: 0.75rem;
    }
    
    .nav-item {
        padding: 0.8rem 1rem;
        font-size: 0.875rem;
    }
    
    .nav-item i {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .section-nav {
        width: 100%;
        border-radius: 0;
    }
    
    .nav-toggle-btn {
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
        left: 0.5rem;
        border-radius: 10px;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 2rem);
}

/* ========== Footer ========== */
.footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    padding: 1.5rem 0;
    margin-top: 4rem;
}

.footer a {
    color: var(--primary-color);
    transition: color var(--transition-fast);
}

.footer a:hover {
    color: var(--primary-dark);
}

/* ========== Responsive Design ========== */
@media (max-width: 991px) {
    .right-column-sticky {
        position: static;
        margin-top: 2rem;
    }
    
    .brand-subtitle {
        display: none;
    }
    
    .start-card {
        padding: 2rem 1.5rem;
    }
    
    .start-title {
        font-size: 2rem;
    }
    
    .summary-hero {
        border-radius: 1.5rem;
    }
    
    .summary-header {
        padding: 1.5rem 2rem;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .summary-main-grid {
        grid-template-columns: 1fr;
        padding: 2rem;
        gap: 2rem;
    }
    
    .summary-score-section {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .summary-bottom-grid {
        grid-template-columns: 1fr;
        padding: 0 2rem 2rem 2rem;
        gap: 1.5rem;
    }
    
    .device-mockup-wrapper-new {
        min-height: 380px;
    }
    
    .device-preview-desktop-new {
        width: 70%;
        max-width: 420px;
    }
    
    .device-preview-mobile-new {
        width: 28%;
        max-width: 140px;
    }
    
    .score-value {
        font-size: 2.5rem;
    }
}

@media (max-width: 991px) {
    .device-mockup-container,
    .device-mockup-skeleton {
        min-height: 280px;
        margin-top: 2rem;
        padding: 15px;
    }
    
    .device-preview-desktop,
    .device-skeleton-desktop {
        width: 80%;
        max-width: 350px;
        left: 0;
    }
    
    .device-preview-mobile,
    .device-skeleton-mobile {
        width: 32%;
        max-width: 120px;
        right: 5%;
    }
    
    .device-skeleton-desktop {
        height: 220px;
    }
    
    .device-skeleton-mobile {
        height: 210px;
    }
}

@media (max-width: 767px) {
    :root {
        --header-height: 100px;
    }
    
    .dashboard-section {
        padding: 1rem 0;
    }
    
    .summary-hero {
        border-radius: 1rem;
    }
    
    .summary-header {
        padding: 1.25rem 1.5rem;
    }
    
    .summary-title {
        font-size: 1.5rem;
    }
    
    .summary-actions {
        width: 100%;
    }
    
    .summary-actions .btn {
        flex: 1;
        min-width: auto;
    }
    
    .summary-main-grid {
        padding: 1.5rem;
        gap: 1.5rem;
    }
    
    .summary-bottom-grid {
        padding: 0 1.5rem 1.5rem 1.5rem;
        gap: 1rem;
    }
    
    .score-gauge-container-new {
        padding: 1rem;
    }
    
    .score-value-new {
        font-size: 3rem;
    }
    
    .key-metrics-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }
    
    .metric-item-new {
        padding: 1rem 0.5rem;
    }
    
    .metric-icon-new {
        font-size: 1.5rem;
    }
    
    .metric-value-new {
        font-size: 1.5rem;
    }
    
    .metric-label-new {
        font-size: 0.65rem;
    }
    
    .device-mockup-wrapper-new {
        min-height: 320px;
    }
    
    .device-preview-desktop-new {
        width: 68%;
        max-width: 350px;
        padding: 12px;
    }
    
    .device-preview-mobile-new {
        width: 28%;
        max-width: 120px;
        right: 10px;
    }
    
    .chart-card,
    .priority-card {
        padding: 1.5rem;
    }
    
    .chart-card-title,
    .priority-card-title {
        font-size: 1.1rem;
    }
    
    .chart-container-new {
        height: 240px;
    }
    
    .processor-grid {
        grid-template-columns: 1fr;
    }
    
    .score-value {
        font-size: 2.5rem;
    }
    
    .device-mockup-container,
    .device-mockup-skeleton {
        min-height: 240px;
        padding: 15px 5px;
    }
    
    .device-preview-desktop,
    .device-skeleton-desktop {
        width: 70%;
        max-width: 280px;
        left: 0;
    }
    
    .device-preview-mobile,
    .device-skeleton-mobile {
        width: 30%;
        max-width: 100px;
        right: 5%;
    }
    
    .device-skeleton-desktop {
        height: 180px;
    }
    
    .device-skeleton-mobile {
        height: 180px;
    }
    
    .key-metrics {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .metric-item {
        padding: 1rem;
    }
    
    .metric-icon {
        font-size: 1.5rem;
    }
    
    .metric-value {
        font-size: 1.5rem;
    }
    
    .sections-container {
        gap: 1.5rem;
    }
    
    .section-card {
        padding: 1.5rem;
    }
    
    .summary-actions {
        flex-direction: column;
    }
    
    .summary-actions .btn {
        width: 100%;
    }
    
    .input-group-custom {
        flex-direction: column;
    }
    
    .input-group-custom .form-control,
    .input-group-custom .btn {
        width: 100%;
    }
}

/* ========== Accessibility ========== */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus styles for keyboard navigation */
*:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

button:focus-visible {
    outline-offset: 4px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --border-color: #000;
    }
}

/* ========== Print Styles ========== */
@media print {
    .header-sticky,
    .right-column-sticky,
    .footer,
    .summary-actions {
        display: none !important;
    }
    
    .section-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}

/* ========== Utility Classes ========== */
.count-up {
    display: inline-block;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.chart-container {
    position: relative;
    height: 200px;
}

#section-tech_seo .section-score{
    display: none !important;
}

/* Compact variant for key metrics when placed above mockup */
.key-metrics-grid.compact {
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.key-metrics-grid.compact .metric-item-new {
    padding: 0.6rem 0.5rem;
    border-radius: 0.75rem;
    min-height: 54px;
}

.key-metrics-grid.compact .metric-icon-new {
    font-size: 1.1rem;
}

.key-metrics-grid.compact .metric-value-new {
    font-size: 1.15rem;
    margin-top: 0.15rem;
}

.key-metrics-grid.compact .metric-label-new {
    font-size: 0.75rem;
    color: var(--text-secondary);
}
/* ========== Section Rings ========== */
.rings-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
}

.ring-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100px;
    text-align: center;
    transition: transform 0.3s ease;
}

.ring-item:hover {
    transform: translateY(-5px);
}

.ring-canvas-container {
    position: relative;
    width: 80px;
    height: 80px;
    margin-bottom: 0.75rem;
}

.ring-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.ring-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    line-height: 1.2;
    height: 2.4em; /* Fixed height for 2 lines */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Skeleton for Rings */
.skeleton-ring-item {
    animation: pulse 2s infinite;
}

.skeleton-ring {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(102, 126, 234, 0.1);
    margin-bottom: 0.75rem;
    position: relative;
    overflow: hidden;
}

.skeleton-ring::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 1.5s infinite;
}

.skeleton-text {
    width: 60px;
    height: 10px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 5px;
}

.section-nav.nav-collapsed .nav-item {
    position: relative;
}

.section-nav.nav-collapsed .nav-item::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #1e1e2e, #2d1b4e);
    color: white;
    padding: 0.5rem 0.875rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    margin-left: 8px;
    z-index: 1001;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    pointer-events: none;
}

.section-nav.nav-collapsed .nav-item:hover::after {
    opacity: 1;
    visibility: visible;
}

.section-nav.nav-collapsed .nav-item::before {
    display: none;
}

