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

html {
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    overflow-x: hidden;
    width: 100%;
}

:root {
    /* Light mode colors */
    --bg-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --bg-container: #ffffff;
    --bg-section: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    --bg-question: #ffffff;
    --bg-choice: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    --bg-choice-hover: linear-gradient(135deg, #e9ecef 0%, #f8f9fa 100%);
    --bg-choice-selected: linear-gradient(135deg, #e7f0ff 0%, #f0f4ff 100%);
    --text-primary: #333;
    --text-secondary: #666;
    --text-question: #333;
    --text-choice: #555;
    --border-color: #f0f0f0;
    --border-hover: #667eea;
    --shadow: rgba(0, 0, 0, 0.3);
    --shadow-light: rgba(0, 0, 0, 0.08);
    --accent-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

body.dark-mode {
    /* Dark mode colors */
    --bg-primary: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    --bg-container: #1e1e2e;
    --bg-section: linear-gradient(135deg, #252538 0%, #2a2a3e 100%);
    --bg-question: #252538;
    --bg-choice: linear-gradient(135deg, #2a2a3e 0%, #252538 100%);
    --bg-choice-hover: linear-gradient(135deg, #35354a 0%, #2a2a3e 100%);
    --bg-choice-selected: linear-gradient(135deg, #2d3a5a 0%, #3a4a6a 100%);
    --text-primary: #e0e0e0;
    --text-secondary: #b0b0b0;
    --text-question: #e0e0e0;
    --text-choice: #c0c0c0;
    --border-color: #3a3a4a;
    --border-hover: #7c8ae8;
    --shadow: rgba(0, 0, 0, 0.6);
    --shadow-light: rgba(0, 0, 0, 0.3);
    --accent-gradient: linear-gradient(135deg, #7c8ae8 0%, #9d6fd8 100%);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-primary);
    min-height: 100vh;
    padding: 20px;
    color: var(--text-primary);
    position: relative;
    overflow-x: hidden;
    transition: background 0.3s ease, color 0.3s ease;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Prevent text size adjustment on iOS */
@media screen and (max-width: 768px) {
    body {
        -webkit-text-size-adjust: 100%;
        padding: 10px;
    }
}

body::before {
    content: none; /* remove overlay to reduce paint during scroll */
}

body.dark-mode::before {
    background: 
        radial-gradient(circle at 20% 50%, rgba(60, 60, 100, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(40, 40, 60, 0.2) 0%, transparent 50%);
}

/* Dark Mode Toggle Button */
.dark-mode-toggle {
    position: fixed;
    top: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-container);
    border: 2px solid var(--border-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    z-index: 1000;
    box-shadow: 0 4px 15px var(--shadow);
    transition: all 0.3s ease;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.dark-mode-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px var(--shadow);
}

.dark-mode-toggle:active {
    transform: scale(0.95);
}

.dark-mode-toggle .toggle-icon {
    transition: transform 0.3s ease;
}

body.dark-mode .dark-mode-toggle .toggle-icon {
    transform: rotate(180deg);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: var(--bg-container);
    border-radius: 25px;
    box-shadow: 0 12px 30px var(--shadow-light);
    padding: 50px;
    /* Animation removed to reduce jank */
    position: relative;
    z-index: 1;
    transition: background 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
}

@media screen and (max-width: 768px) {
    .container {
        border-radius: 15px;
        padding: 20px 15px;
        margin: 0;
        box-shadow: 0 10px 40px var(--shadow);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

header {
    text-align: center;
    margin-bottom: 50px;
    padding-bottom: 30px;
    position: relative;
}

@media screen and (max-width: 768px) {
    header {
        margin-bottom: 30px;
        padding-bottom: 20px;
    }
}

.header-icon {
    font-size: 4em;
    margin-bottom: 15px;
    /* Float animation removed to improve scroll performance */
}

@media screen and (max-width: 768px) {
    .header-icon {
        font-size: 2.5em;
        margin-bottom: 10px;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

header h1 {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2.8em;
    margin-bottom: 15px;
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.2;
    word-wrap: break-word;
}

@media screen and (max-width: 768px) {
    header h1 {
        font-size: 1.8em;
        margin-bottom: 10px;
        line-height: 1.3;
        padding: 0 10px;
    }
}

.header-decoration {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, transparent, #667eea, transparent);
    border-radius: 2px;
    transition: background 0.3s ease;
}

body.dark-mode .header-decoration {
    background: linear-gradient(90deg, transparent, #7c8ae8, transparent);
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1.15em;
    margin-top: 10px;
    line-height: 1.6;
    transition: color 0.3s ease;
    padding: 0 10px;
}

@media screen and (max-width: 768px) {
    .subtitle {
        font-size: 0.95em;
        margin-top: 8px;
        line-height: 1.5;
        padding: 0 5px;
    }
}

.loading {
    text-align: center;
    padding: 80px 20px;
}

@media screen and (max-width: 768px) {
    .loading {
        padding: 60px 15px;
    }
}

@media screen and (max-width: 480px) {
    .loading {
        padding: 40px 10px;
    }
}

.loading p {
    margin-top: 20px;
    color: #667eea;
    font-size: 1.1em;
    font-weight: 500;
    transition: color 0.3s ease;
}

body.dark-mode .loading p {
    color: #7c8ae8;
}

.spinner {
    border: 5px solid var(--border-color);
    border-top: 5px solid #667eea;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.3);
    transition: border-color 0.3s ease;
}

body.dark-mode .spinner {
    border-color: var(--border-color);
    border-top-color: #7c8ae8;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.pillar-section {
    margin-bottom: 60px;
    padding: 35px;
    background: var(--bg-section);
    border-radius: 20px;
    border-left: 6px solid #667eea;
    box-shadow: 0 4px 20px var(--shadow-light);
}

body.dark-mode .pillar-section {
    border-left-color: #7c8ae8;
}

.pillar-section:hover {
    box-shadow: 0 4px 20px var(--shadow-light);
}

@media screen and (max-width: 768px) {
    .pillar-section {
        margin-bottom: 30px;
        padding: 20px 15px;
        border-radius: 15px;
        border-left-width: 4px;
    }
    
    .pillar-section:hover {
        transform: none;
    }
}

/* Removed slideIn animation for better scroll performance */

.pillar-title {
    font-size: 2.2em;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 30px;
    font-weight: 700;
    text-transform: capitalize;
    display: flex;
    align-items: center;
    gap: 15px;
    line-height: 1.3;
    word-wrap: break-word;
}

@media screen and (max-width: 768px) {
    .pillar-title {
        font-size: 1.5em;
        margin-bottom: 20px;
        gap: 10px;
        flex-wrap: wrap;
    }
}

.pillar-title::before {
    content: "📊";
    font-size: 1.3em;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.question-type-section {
    margin-bottom: 40px;
    padding: 30px;
    background: var(--bg-container);
    border-radius: 15px;
    box-shadow: 0 3px 15px var(--shadow-light);
    border: 1px solid var(--border-color);
    transition: background 0.3s ease, border-color 0.3s ease;
}

@media screen and (max-width: 768px) {
    .question-type-section {
        margin-bottom: 25px;
        padding: 20px 15px;
        border-radius: 12px;
    }
}

.question-type-title {
    font-size: 1.6em;
    color: #764ba2;
    margin-bottom: 25px;
    font-weight: 700;
    text-transform: capitalize;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--border-color);
    position: relative;
    transition: color 0.3s ease, border-color 0.3s ease;
    line-height: 1.3;
    word-wrap: break-word;
}

body.dark-mode .question-type-title {
    color: #9d6fd8;
}

@media screen and (max-width: 768px) {
    .question-type-title {
        font-size: 1.2em;
        margin-bottom: 15px;
        padding-bottom: 10px;
        border-bottom-width: 2px;
    }
}

.question-type-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #764ba2, #667eea);
    border-radius: 2px;
}

.question-item {
    margin-bottom: 35px;
    padding: 25px;
    background: var(--bg-question);
    border-radius: 12px;
    border: 2px solid var(--border-color);
    position: relative;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

.question-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent-gradient);
    transform: scaleY(0);
}

.question-item:hover {
    border-color: var(--border-hover);
    box-shadow: 0 2px 6px var(--shadow-light);
}

@media screen and (max-width: 768px) {
    .question-item {
        margin-bottom: 25px;
        padding: 18px 15px;
        border-radius: 10px;
        border-width: 2px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .question-item::before {
        width: 3px;
    }
}

.question-header {
    margin-bottom: 15px;
}

.question-number {
    display: inline-block;
    background: var(--accent-gradient);
    color: white;
    padding: 8px 18px;
    border-radius: 25px;
    font-size: 0.9em;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    /* Removed pulse animation for smoother scrolling */
    transition: background 0.3s ease;
}

@media screen and (max-width: 768px) {
    .question-number {
        padding: 6px 14px;
        font-size: 0.8em;
        border-radius: 20px;
    }
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    }
    50% {
        box-shadow: 0 4px 20px rgba(102, 126, 234, 0.5);
    }
}

.question-text {
    font-size: 1.25em;
    font-weight: 600;
    color: var(--text-question);
    margin-bottom: 20px;
    line-height: 1.7;
    padding-left: 5px;
    transition: color 0.3s ease;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
    width: 100%;
    box-sizing: border-box;
}

@media screen and (max-width: 768px) {
    .question-text {
        font-size: 1.05em;
        margin-bottom: 15px;
        line-height: 1.6;
        padding-left: 0;
    }
}

.choices-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    overflow: hidden;
}

@media screen and (max-width: 768px) {
    .choices-container {
        gap: 12px;
    }
}

@media screen and (max-width: 480px) {
    .choices-container {
        gap: 10px;
    }
}

.choice-item {
    display: flex;
    align-items: flex-start;
    padding: 16px 20px;
    background: var(--bg-choice);
    border-radius: 12px;
    cursor: pointer;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    min-height: 50px;
    width: 100%;
    box-sizing: border-box;
}

.choice-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.1), transparent);
}

body.dark-mode .choice-item::before {
    background: linear-gradient(90deg, rgba(124, 138, 232, 0.2), transparent);
}

.choice-item:hover {
    background: var(--bg-choice-hover);
    border-color: var(--border-hover);
    transform: none;
    box-shadow: 0 1px 4px var(--shadow-light);
}

@media screen and (max-width: 768px) {
    .choice-item {
        padding: 14px 16px;
        border-radius: 10px;
        min-height: 56px;
        margin-bottom: 2px;
        align-items: flex-start;
    }
    
    .choice-item:hover {
        transform: none;
    }
    
    .choice-item:active {
        background: var(--bg-choice-hover);
    transform: none;
    }
}

/* Removed hover animation on choice-item::before for better scroll performance */

.choice-item input[type="checkbox"] {
    width: 24px;
    height: 24px;
    margin-right: 15px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: #667eea;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    align-self: flex-start;
}

@media screen and (max-width: 768px) {
    .choice-item input[type="checkbox"] {
        width: 28px;
        height: 28px;
        margin-right: 12px;
        margin-top: 2px;
        min-width: 28px;
        align-self: flex-start;
    }
}

.choice-item label {
    flex: 1;
    cursor: pointer;
    font-size: 1.05em;
    color: var(--text-choice);
    user-select: none;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
    word-wrap: break-word;
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
    line-height: 1.5;
    overflow: hidden;
    min-width: 0;
    display: block;
    max-width: 100%;
}

@media screen and (max-width: 768px) {
    .choice-item label {
        font-size: 0.95em;
        line-height: 1.4;
        word-wrap: break-word;
        overflow-wrap: break-word;
        word-break: break-word;
        min-width: 0;
    }
}

.choice-item input[type="checkbox"]:checked + label {
    color: var(--border-hover);
    font-weight: 700;
}

.choice-item:has(input[type="checkbox"]:checked) {
    background: var(--bg-choice-selected);
    border-color: var(--border-hover);
    box-shadow: 0 4px 15px var(--shadow-light);
}

.choice-item:has(input[type="checkbox"]:checked)::before {
    width: 100%;
}

.submit-section {
    text-align: center;
    margin-top: 50px;
    padding-top: 40px;
    border-top: 3px solid var(--border-color);
    position: relative;
    transition: border-color 0.3s ease;
}

.submit-section::before {
    content: '';
    position: absolute;
    top: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #667eea, transparent);
    transition: background 0.3s ease;
}

body.dark-mode .submit-section::before {
    background: linear-gradient(90deg, transparent, #7c8ae8, transparent);
}

.submit-btn {
    background: var(--accent-gradient);
    color: white;
    border: none;
    padding: 18px 60px;
    font-size: 1.3em;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    min-height: 56px;
    width: 100%;
    max-width: 400px;
}

@media screen and (max-width: 768px) {
    .submit-btn {
        padding: 16px 40px;
        font-size: 1.1em;
        border-radius: 40px;
        min-height: 52px;
        width: 100%;
        max-width: 100%;
        letter-spacing: 0.3px;
    }
    
    .submit-btn:active {
        transform: scale(0.98);
    }
}

.submit-message {
    margin-top: 16px;
    font-size: 0.95em;
    color: var(--text-secondary);
    min-height: 20px;
    transition: color 0.3s ease;
}

.submit-message.success {
    color: #10b981;
}

.submit-message.error {
    color: #ef4444;
}

.submit-message.loading {
    position: relative;
    padding-left: 26px;
}

.submit-message.loading::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border: 2px solid var(--border-color);
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    box-sizing: border-box;
}

.result-container {
    margin-top: 16px;
    display: none;
}

.result-card {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.12) 0%, rgba(118, 75, 162, 0.12) 100%);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 18px 20px;
    box-shadow: 0 3px 8px var(--shadow-light);
    overflow: hidden;
    position: relative;
}

.result-card:hover {
    transform: none;
    box-shadow: 0 3px 8px var(--shadow-light);
}

.result-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 6px;
    height: 100%;
    background: var(--accent-gradient);
}

.result-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.result-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-container);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px var(--shadow-light);
    font-size: 1.1em;
}

.result-title {
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.3px;
}

.result-chip {
    margin-left: auto;
    padding: 6px 10px;
    border-radius: 12px;
    background: var(--bg-container);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.85em;
    font-weight: 600;
}

.result-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-container);
    box-shadow: 0 1px 4px var(--shadow-light);
}

.result-label {
    font-weight: 700;
    color: var(--text-primary);
}

.result-value {
    color: var(--text-primary);
    text-align: left;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.5;
}

.result-value.emphasis {
    font-size: 1.05em;
    font-weight: 700;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.95em;
    color: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.badge.grading { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.badge.message { background: linear-gradient(135deg, #10b981 0%, #059669 100%); }
.badge.suggestion { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); }

@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.result-card {
    animation: fadeSlideUp 0.35s ease;
}

@media screen and (max-width: 768px) {
    .result-item {
        flex-direction: column;
        align-items: flex-start;
    }
    .result-label {
        width: 100%;
    }
    .result-value {
        width: 100%;
        text-align: left;
    }
}

.submit-btn::before {
    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, height 0.6s;
}

.submit-btn:hover::before {
    width: 300px;
    height: 300px;
}

.submit-btn:hover {
    transform: none;
    box-shadow: 0 6px 18px rgba(102, 126, 234, 0.35);
}

.submit-btn:active {
    transform: none;
}

.submit-btn:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.error-message {
    text-align: center;
    padding: 50px;
    color: #e74c3c;
    font-size: 1.2em;
    background: linear-gradient(135deg, #ffeaea 0%, #fff5f5 100%);
    border-radius: 15px;
    border: 2px solid #e74c3c;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.2);
}

.questions-container {
    animation: fadeIn 0.8s ease-in;
}

/* Additional mobile optimizations */
@media screen and (max-width: 480px) {
    body {
        padding: 5px;
    }
    
    .container {
        padding: 15px 10px;
        border-radius: 12px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .dark-mode-toggle {
        top: 10px;
        right: 10px;
        width: 42px;
        height: 42px;
        font-size: 1.2em;
    }
    
    header h1 {
        font-size: 1.5em;
        padding: 0 5px;
    }
    
    .header-icon {
        font-size: 2em;
    }
    
    .subtitle {
        font-size: 0.85em;
        padding: 0;
    }
    
    .pillar-section {
        padding: 15px 12px;
    }
    
    .pillar-title {
        font-size: 1.3em;
    }
    
    .question-type-section {
        padding: 15px 12px;
    }
    
    .question-type-title {
        font-size: 1.1em;
    }
    
    .question-item {
        padding: 15px 12px;
    }
    
    .question-number {
        padding: 5px 12px;
        font-size: 0.75em;
    }
    
    .question-text {
        font-size: 1em;
    }
    
    .choice-item {
        padding: 12px 14px;
        min-height: 52px;
        align-items: flex-start;
    }
    
    .choice-item input[type="checkbox"] {
        width: 26px;
        height: 26px;
        margin-right: 10px;
        margin-top: 2px;
        min-width: 26px;
        align-self: flex-start;
    }
    
    .choice-item label {
        font-size: 0.9em;
        word-wrap: break-word;
        overflow-wrap: break-word;
        word-break: break-word;
        min-width: 0;
    }
    
    .submit-section {
        margin-top: 30px;
        padding-top: 30px;
    }
    
    .submit-btn {
        padding: 14px 30px;
        font-size: 1em;
        min-height: 50px;
    }
}

/* Smooth scroll behavior */
html {
    scroll-behavior: auto;
}

/* Selection color */
::selection {
    background: rgba(102, 126, 234, 0.3);
    color: var(--text-primary);
}

body.dark-mode ::selection {
    background: rgba(124, 138, 232, 0.4);
    color: var(--text-primary);
}

/* Performance and reduced motion */
/* Summary Container Styles */
.summary-container {
    margin-bottom: 40px;
    width: 100%;
}

.summary-card {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 4px 20px var(--shadow-light);
    position: relative;
    overflow: hidden;
}

.summary-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 6px;
    height: 100%;
    background: var(--accent-gradient);
}

.summary-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
}

.summary-icon {
    font-size: 2em;
}

.summary-title {
    font-size: 1.8em;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.summary-body {
    width: 100%;
}

.summary-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.stat-item {
    background: var(--bg-container);
    border: 2px solid var(--border-color);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 8px var(--shadow-light);
}

.stat-item.growing {
    border-left: 4px solid #3b82f6;
}

.stat-item.maturing {
    border-left: 4px solid #10b981;
}

.stat-item.flourishing {
    border-left: 4px solid #f59e0b;
}

.stat-label {
    font-size: 1.1em;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 2.5em;
    font-weight: 800;
    margin: 15px 0;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-item.growing .stat-value {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-item.maturing .stat-value {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-item.flourishing .stat-value {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-bar {
    width: 100%;
    height: 12px;
    background: var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    margin: 15px 0;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.stat-bar-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 0.6s ease;
}

.stat-bar-fill.growing {
    background: linear-gradient(90deg, #3b82f6 0%, #2563eb 100%);
}

.stat-bar-fill.maturing {
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
}

.stat-bar-fill.flourishing {
    background: linear-gradient(90deg, #f59e0b 0%, #d97706 100%);
}

.stat-count {
    font-size: 0.9em;
    color: var(--text-secondary);
    margin-top: 8px;
}

@media screen and (max-width: 768px) {
    .summary-card {
        padding: 20px 15px;
        border-radius: 15px;
    }

    .summary-title {
        font-size: 1.4em;
    }

    .summary-stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .stat-item {
        padding: 18px 15px;
    }

    .stat-value {
        font-size: 2em;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}
