
/* Hide .language-pseudocode elements for history/bookmarks */
.language-pseudocode {
display: none !important;
}

/* Mobile Hero Navigation */
.mobile-hero-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding: 0.75rem;
    background: rgba(0, 74, 173, 0.08);
    border-radius: 12px;
    border: 1px solid rgba(0, 74, 173, 0.15);
}

.mobile-hero-nav-btn {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    padding: 0.75rem 0.5rem;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 74, 173, 0.2);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    color: #004aad;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
}

.mobile-hero-nav-btn.active {
    background: #004aad;
    color: white;
    border-color: #004aad;
    box-shadow: 0 2px 8px rgba(0, 74, 173, 0.25);
}

.mobile-hero-nav-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 74, 173, 0.2);
}

.mobile-hero-nav-btn i {
    font-size: 1.1rem;
}

.mobile-hero-nav-btn span {
    font-size: 0.75rem;
    font-weight: 600;
}

/* Full-width thin Quant Roadmap row under the triple buttons */
.mobile-hero-nav-roadmap {
    flex: 1 1 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.42rem 0.75rem;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 74, 173, 0.2);
    border-radius: 8px;
    text-decoration: none;
    color: #004aad;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    transition: all 0.3s ease;
}

.mobile-hero-nav-roadmap i {
    font-size: 0.85rem;
}

.mobile-hero-nav-roadmap.active {
    background: #004aad;
    color: white;
    border-color: #004aad;
    box-shadow: 0 2px 8px rgba(0, 74, 173, 0.25);
}

.mobile-hero-nav-roadmap:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 74, 173, 0.2);
}

/* Dark theme adjustments */
html[data-theme='dark'] .mobile-hero-nav {
    background: rgba(0, 160, 255, 0.1);
    border-color: rgba(0, 160, 255, 0.2);
}

html[data-theme='dark'] .mobile-hero-nav-btn {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(0, 160, 255, 0.3);
    color: #00a0ff;
}

html[data-theme='dark'] .mobile-hero-nav-btn.active {
    background: #00a0ff;
    color: white;
    border-color: #00a0ff;
}

html[data-theme='dark'] .mobile-hero-nav-btn:hover {
    box-shadow: 0 4px 12px rgba(0, 160, 255, 0.3);
}

html[data-theme='dark'] .mobile-hero-nav-roadmap {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(0, 160, 255, 0.3);
    color: #00a0ff;
}

html[data-theme='dark'] .mobile-hero-nav-roadmap.active {
    background: #00a0ff;
    color: white;
    border-color: #00a0ff;
}

html[data-theme='dark'] .mobile-hero-nav-roadmap:hover {
    box-shadow: 0 4px 12px rgba(0, 160, 255, 0.3);
}

/* Mobile Layout Styles */
.mobile-container {
display: none;
}

.mobile-top-nav {
position: fixed !important;
top: 0 !important;
left: 0 !important;
right: 0 !important;
background: var(--primary);
color: var(--text-light);
z-index: 1000 !important;
padding: .5rem;
box-shadow: var(--shadow-md);
width: 100% !important;
transform: none !important;
transition: none !important;
}

.mobile-nav-header {
display: flex;
justify-content: space-between;
align-items: center;
}

.mobile-logo {
height: 50px;
margin-left: 1rem;
width: auto;
}

.mobile-menu-toggle {
background: none;
border: none;
color: var(--text-light);
font-size: 1.5rem;
cursor: pointer;
padding: 0.5rem;
border-radius: var(--radius-sm);
transition: var(--transition);
}

.mobile-menu-toggle:hover {
background: rgba(255, 255, 255, 0.1);
}

.mobile-nav-menu {
position: absolute;
top: 100%;
left: 0;
right: 0;
background: var(--primary);
max-height: 0;
overflow: hidden;
transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
box-shadow: var(--shadow-lg);
margin-top: -1px;
border-top: 1px solid var(--primary);
opacity: 0;
transform: translateY(-10px);
}

.mobile-nav-menu.expanded {
max-height: 600px;
overflow: hidden;
opacity: 1;
transform: translateY(0);
}

.mobile-nav-links {
padding: 1rem;
background: var(--primary);
overflow: hidden;
}

.mobile-nav-links a {
display: flex;
align-items: center;
gap: 0.75rem;
padding: 0.75rem;
margin-bottom: 0.5rem;
border-radius: var(--radius-sm);
transition: all 0.3s ease;
color: var(--text-light);
opacity: 0;
transform: translateX(-20px);
}

@keyframes slideInLeft {
from {
    opacity: 0;
    transform: translateX(-20px);
}
to {
    opacity: 1;
    transform: translateX(0);
}
}

.mobile-nav-links a:hover,
.mobile-nav-links a.active {
background: rgba(255, 255, 255, 0.1);
}

.mobile-nav-links i {
font-size: 1.25rem;
width: 1.5rem;
text-align: center;
}

.mobile-content {
margin-top: 80px;
padding: 0;
width: 100%;
max-width: 100vw;
box-sizing: border-box;
overflow-x: hidden;
}

.mobile-welcome {
    text-align: center;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #004aad 0%, #0066cc 100%);
    color: white;
    border-radius: 20px;
}

.mobile-welcome h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    min-width: 0;
    flex-shrink: 1;
}

.mobile-welcome h3::first-letter {
    color: transparent;
    text-shadow: 0 0 0 white;
}

.mobile-welcome h3 i {
    font-size: 1.6rem;
}

.mobile-welcome p {
    font-size: 1rem;
    opacity: 0.9;
    margin: 0;
    color: white;
}

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

.mobile-stat-card {
background: var(--bg-white);
padding: 1.5rem;
border-radius: var(--radius-lg);
box-shadow: var(--shadow-sm);
text-align: center;
}

.mobile-stat-card .stat-icon {
background: var(--primary);
color: var(--text-light);
width: 50px;
height: 50px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
margin: 0 auto 1rem;
font-size: 1.25rem;
}

.mobile-stat-card .stat-value {
font-size: 2rem;
font-weight: 700;
color: var(--primary);
display: block;
margin-bottom: 0.25rem;
}

.mobile-stat-card .stat-label {
color: var(--text-dark);
font-size: 0.9rem;
opacity: 0.8;
}

.mobile-rank-bar {
text-align: center;
font-weight: 600;
transition: all 0.3s ease-in-out;
margin: 1.5rem 0 2rem 0;
padding: 0 1rem;
}

.mobile-progress-bar {
width: 100%;
height: 10px;
background: #e0e0e0;
border-radius: 6px;
margin-top: 0.75rem;
overflow: hidden;
}

#mobile-rank-progress {
height: 100%;
width: 0%;
background: var(--primary);
transition: width 1s ease-in-out;
}

#mobile-rank-progress.quant-v {
background: linear-gradient(90deg, #00c6ff, #0072ff, #00c6ff);
background-size: 200% 100%;
animation: mobileGradientShift 3s infinite linear;
}

@keyframes mobileGradientShift {
0% {
background-position: 0% 50%;
}
100% {
background-position: 200% 50%;
}
}

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

.mobile-rating-card {
background: transparent;
padding: 1.5rem;
border-radius: 0;
box-shadow: none;
text-align: center;
}

.mobile-rating-circle {
width: 80px;
height: 80px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
margin: 0 auto 1rem;
position: relative;
}

.mobile-rating-circle::before {
content: '';
position: absolute;
inset: 8px;
background: var(--bg-white);
border-radius: 50%;
}

.mobile-rating-value {
position: relative;
z-index: 1;
font-size: 1.25rem;
font-weight: 700;
color: var(--primary);
}

.mobile-rating-label {
font-size: 1rem;
margin-bottom: 1rem;
color: var(--text-dark);
}

.mobile-practice-btn {
background: var(--primary);
color: var(--text-light);
border: none;
padding: 0.75rem 1.5rem;
border-radius: var(--radius-md);
font-weight: 500;
cursor: pointer;
transition: var(--transition);
width: 100%;
}

.mobile-practice-btn:hover {
background: var(--primary-dark);
}

.mobile-section {
    background: white;
    border-radius: 16px;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 74, 173, 0.1);
    overflow: hidden;
}

.mobile-performance-section {
    margin-top: 1.5rem;
}

.mobile-section-header {
    padding: 20px;
    background: linear-gradient(135deg, #004aad 0%, #0066cc 100%);
    border-bottom: 1px solid rgba(0, 74, 173, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mobile-section-header h2 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    color: white;
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-section-header h2 i {
    color: #facc15;
    font-size: 20px;
}

.mobile-section-header.mobile-section-header--stacked {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
}

.mobile-section-header.mobile-section-header--stacked h2 {
    width: 100%;
}

.mobile-ratings-tier-hint {
    margin: 0;
    padding: 0;
    font-size: 0.9rem;
    line-height: 1.45;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.92);
    text-align: left;
}

html[data-theme='dark'] .mobile-ratings-tier-hint {
    color: rgba(255, 255, 255, 0.88);
}

.mobile-toggle-button {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.mobile-toggle-button:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.mobile-collapsible {
overflow: hidden;
transition: max-height 0.3s ease-out, opacity 0.3s ease-out, padding 0.3s ease-out;
}

.mobile-collapsible.collapsed {
max-height: 0;
opacity: 0;
padding-top: 0;
padding-bottom: 0;
}

.mobile-collapsible.expanded {
max-height: 800px; /* Increased to accommodate all stat cards */
opacity: 1;
padding-top: 1rem;
padding-bottom: 1rem;
}

.mobile-section-content {
    /* padding: 20px; */
}

.mobile-table {
width: 100%;
border-collapse: collapse;
table-layout: fixed;
}

.mobile-table th,
.mobile-table td {
padding: 0.75rem 0.5rem;
border-bottom: 1px solid #e0e0e0;
text-align: left;
font-size: 0.85rem;
vertical-align: top;
}

.mobile-table th:first-child,
.mobile-table td:first-child {
width: 55%;
}

.mobile-table th:nth-child(2),
.mobile-table td:nth-child(2) {
width: 15%;
text-align: center;
}

.mobile-table th:nth-child(3),
.mobile-table td:nth-child(3) {
width: 30%;
text-align: center;
}

.mobile-table thead {
background: linear-gradient(135deg, #004aad -15%, #0066cc 90%);
}

.mobile-table th {
background: transparent;
font-weight: 600;
color: var(--text-light);
text-align: center;
}

.mobile-table .question-cell {
max-width: 200px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}

.mobile-empty-state {
text-align: center;
padding: 2rem;
color: var(--text-dark);
opacity: 0.7;
}

.mobile-empty-state i {
font-size: 2rem;
margin-bottom: 1rem;
color: var(--primary);
}

.mobile-view-all {
text-align: center;
padding: 2rem 1rem;
border-top: 1px solid #e0e0e0;
}

.mobile-view-all-btn {
background: var(--primary);
color: var(--text-light);
padding: 0.75rem 1.5rem;
border-radius: var(--radius-md);
text-decoration: none;
font-weight: 500;
transition: var(--transition);
}

.mobile-view-all-btn:hover {
background: var(--primary-dark);
color: var(--text-light);
}

/* Desktop Container - Hidden on mobile */
.desktop-container {
display: block;
}

/* Media Query for Mobile */
@media (max-width: 768px) {
.desktop-container {
    display: none !important;
}

.mobile-container {
    display: block;
}

body {
    display: block !important;
    background: var(--bg-light) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    height: auto !important;
    min-height: 100vh !important;
    position: static !important;
    width: 100% !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
}

/* Hide mobile overlay specifically for dashboard */
.mobile-overlay {
    display: none !important;
}

/* Prevent any element from causing horizontal scroll */
* {
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* Ensure all mobile sections stay within viewport */
.mobile-welcome,
.mobile-stat-card,
.mobile-rating-card,
.mobile-section-header,
.mobile-section-content,
.mobile-table {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* Fix table overflow issues */
.mobile-table {
    table-layout: fixed !important;
    width: 100% !important;
}

.mobile-table td,
.mobile-table th {
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    hyphens: auto !important;
}

.question-cell {
    max-width: 150px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
}
}

/* Dark mode styles for mobile */
html[data-theme='dark'] .mobile-top-nav {
    background: #1a1a26;
}

html[data-theme='dark'] .mobile-section {
    background: #2b2b3f;
    border: 1px solid rgba(74, 144, 226, 0.1);
}

html[data-theme='dark'] .mobile-welcome,
html[data-theme='dark'] .mobile-stat-card,
html[data-theme='dark'] .mobile-section-header {
    background: linear-gradient(135deg, #004aad 0%, #0066cc 100%);
    border-bottom: 1px solid rgba(74, 144, 226, 0.1);
}

html[data-theme='dark'] .mobile-rating-card {
    background: transparent;
}

html[data-theme='dark'] .mobile-section-header h2 {
    color: white;
}

html[data-theme='dark'] .mobile-section-header h2 i {
    color: #facc15;
}

html[data-theme='dark'] .mobile-section-content {
    background: #2b2b3f;
    color: #e0e0e0;
}

html[data-theme='dark'] .mobile-toggle-button {
    color: rgba(255, 255, 255, 0.8);
}

html[data-theme='dark'] .mobile-toggle-button:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

html[data-theme='dark'] .mobile-collapsible {
/* Ensure smooth transitions in dark mode */
border-color: #444;
}

html[data-theme='dark'] .mobile-welcome {
    background: linear-gradient(135deg, #004aad 0%, #0066cc 100%);
    color: white;
}

html[data-theme='dark'] .mobile-welcome h3 {
    color: white;
}

html[data-theme='dark'] .mobile-welcome h3 i {
    color: white;
}

html[data-theme='dark'] .mobile-welcome p {
    color: white;
}

html[data-theme='dark'] .mobile-stat-card .stat-icon {
background: #4a90e2;
}

html[data-theme='dark'] .mobile-stat-card .stat-value {
color: #4a90e2;
}

html[data-theme='dark'] .mobile-rating-circle {
/* Background will be set dynamically via inline styles */
}

html[data-theme='dark'] .mobile-rating-circle::before {
background: transparent;
}

html[data-theme='dark'] .mobile-rank-bar {
background: var(--bg-darker);
}

html[data-theme='dark'] .mobile-progress-bar {
background: #2a2a3a;
}

html[data-theme='dark'] .mobile-rating-value {
color: #4a90e2;
}

html[data-theme='dark'] .mobile-practice-btn {
background: #4a90e2;
}

html[data-theme='dark'] .mobile-practice-btn:hover {
background: #3a80d2;
}

html[data-theme='dark'] .mobile-view-all-btn {
background: #4a90e2;
}

html[data-theme='dark'] .mobile-view-all-btn:hover {
background: #3a80d2;
}

html[data-theme='dark'] .mobile-table thead {
background: linear-gradient(135deg, #004aad 0%, #0066cc 100%);
border-top: 1px solid rgba(255, 255, 255, 0.15);
}

html[data-theme='dark'] .mobile-table th {
background: transparent;
color: #4a90e2;
}

html[data-theme='dark'] .mobile-table td {
border-color: #444;
}

/* Mobile rating change styles */
.rating-change-positive {
color: #4CAF50;
font-size: 0.9rem;
margin-bottom: 1rem;
}

.rating-change-negative {
color: #D9534F;
font-size: 0.9rem;
margin-bottom: 1rem;
}

/* Mobile status styles */
.mobile-status-correct {
color: #4CAF50;
}

.mobile-status-incorrect {
color: #D9534F;
}

.mobile-status-na {
color: gray;
}

/* Mobile subscription note */
.mobile-subscription-note {
text-align: center;
margin: 1.5rem 1rem 2rem 1rem;
padding: 1.5rem;
background: linear-gradient(135deg, rgba(0, 74, 173, 0.08) 0%, rgba(0, 102, 204, 0.12) 100%);
border-radius: 16px;
border: 1px solid rgba(0, 74, 173, 0.15);
color: #004aad;
font-size: 1rem;
font-weight: 500;
line-height: 1.5;
box-shadow: 0 4px 12px rgba(0, 74, 173, 0.08);
}

/* Dark mode updates for mobile styles */
html[data-theme='dark'] .mobile-subscription-note {
background: linear-gradient(135deg, rgba(74, 144, 226, 0.1) 0%, rgba(103, 184, 227, 0.15) 100%);
border: 1px solid rgba(74, 144, 226, 0.2);
color: #4a90e2;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Ensure mobile sections are visible and properly spaced */
.mobile-section {
margin-bottom: 1.5rem !important;
position: relative;
z-index: 1;
width: 100% !important;
max-width: 100% !important;
box-sizing: border-box !important;
}

.mobile-content {
position: relative;
z-index: 1;
width: 100%;
max-width: 100vw;
overflow-x: hidden;
box-sizing: border-box;
padding-left: 1rem;
padding-right: 1rem;
}

/* Prevent navbar from moving */
.mobile-top-nav {
position: fixed !important;
top: 0 !important;
left: 0 !important;
right: 0 !important;
transform: translate3d(0, 0, 0) !important;
backface-visibility: hidden !important;
-webkit-backface-visibility: hidden !important;
}

/* Ensure all mobile cards have proper width constraints */
.mobile-welcome,
.mobile-stat-card,
.mobile-rating-card,
.mobile-section-header,
.mobile-section-content {
width: 100% !important;
max-width: 100% !important;
box-sizing: border-box !important;
margin-left: 0 !important;
margin-right: 0 !important;
}

/* Mobile Question Cell Styles */
.mobile-question-cell {
padding: 0.5rem 0.4rem !important;
width: 100% !important;
max-width: none !important;
overflow: hidden;
}

/* Prevent horizontal scroll on mobile tables */
.mobile-section-content {
overflow-x: hidden !important;
}

.mobile-table-container {
overflow-x: hidden !important;
width: 100% !important;
}

.question-preview {
font-size: 0.85rem;
line-height: 1.5;
margin-bottom: 0.5rem;
color: var(--text-dark);
word-wrap: break-word;
overflow-wrap: break-word;
hyphens: auto;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
max-height: 3.0em;
text-overflow: ellipsis;
white-space: normal;
}

.question-preview .MathJax {
font-size: 0.9em !important;
display: inline !important;
}

.question-preview mjx-container {
display: inline !important;
margin: 0 !important;
}

.question-actions {
display: flex;
gap: 0.25rem;
justify-content: center;
flex-wrap: nowrap;
}

.view-question-btn,
.view-stats-btn,
.goto-question-btn {
background: var(--primary);
color: white;
border: none;
border-radius: 4px;
padding: 0.4rem 0.6rem;
cursor: pointer;
font-size: 0.75rem;
transition: all 0.2s ease;
min-width: auto;
height: auto;
display: flex;
align-items: center;
justify-content: center;
gap: 0.3rem;
flex-shrink: 0;
white-space: nowrap;
}



.view-question-btn:hover,
.view-stats-btn:hover,
.goto-question-btn:hover {
background: var(--primary-dark);
transform: translateY(-1px);
}

.view-question-btn {
background: #6c757d;
}

.view-question-btn:hover {
background: #5a6268;
}

.view-stats-btn {
background: #17a2b8;
}

.view-stats-btn:hover {
background: #138496;
}

/* Question Modal Styles */
.question-modal {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.5);
z-index: 10000;
backdrop-filter: blur(2px);
}

.modal-content {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background: var(--bg-white);
border-radius: var(--radius-lg);
max-width: 90%;
max-height: 80%;
overflow: hidden;
box-shadow: var(--shadow-lg);
animation: modalFadeIn 0.3s ease-out;
}

/* Full width modal on mobile */
@media (max-width: 768px) {
.modal-content {
    max-width: 95%;
    width: 95%;
    max-height: 85%;
    border-radius: var(--radius-md);
}

.modal-body {
    padding: 1rem;
    max-height: 65vh;
}

.modal-header {
    padding: 1rem;
}

.modal-footer {
    padding: 1rem;
}
}

@keyframes modalFadeIn {
from {
    opacity: 0;
    transform: translate(-50%, -60%);
}
to {
    opacity: 1;
    transform: translate(-50%, -50%);
}
}

@keyframes modalFadeOut {
from {
    opacity: 1;
}
to {
    opacity: 0;
}
}

.question-modal.closing {
animation: modalFadeOut 0.2s ease-out forwards;
}

/* Stats Modal Styles */
.stats-modal {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.5);
z-index: 10000;
backdrop-filter: blur(2px);
}

.stats-modal-content {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background: var(--bg-white);
border-radius: var(--radius-lg);
max-width: 90%;
width: 90%;
max-height: 75%;
overflow: hidden;
box-shadow: var(--shadow-lg);
animation: modalFadeIn 0.3s ease-out;
}

/* Stats Grid */
.stats-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
gap: 0.75rem;
margin-bottom: 0.5rem;
}

.stats-card {
background: var(--bg-light);
padding: 0.75rem;
border-radius: var(--radius-md);
text-align: center;
border: 2px solid var(--border-light);
}

.stats-card h4 {
margin: 0 0 0.4rem 0;
color: var(--primary);
font-size: 0.85rem;
font-weight: 600;
}

.stats-card .stats-value {
font-size: 1.2rem;
font-weight: 700;
color: var(--text-dark);
display: block;
margin-bottom: 0;
}

.stats-accuracy.correct {
color: #4CAF50;
}

.stats-accuracy.incorrect {
color: #D9534F;
}

.stats-accuracy.na {
color: #6c757d;
}

/* Mobile responsive adjustments for stats modal */
@media (max-width: 768px) {
.stats-modal-content {
    max-width: 95%;
    width: 95%;
    max-height: 80%;
    border-radius: var(--radius-md);
}

.stats-modal .modal-body {
    padding: 0.75rem;
    max-height: none;
    overflow-y: visible;
}

.stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin-bottom: 0;
}

.stats-card {
    padding: 0.6rem;
}

.stats-card h4 {
    font-size: 0.8rem;
    margin-bottom: 0.3rem;
}

.stats-card .stats-value {
    font-size: 1.1rem;
}
}

@media (max-width: 480px) {
.stats-modal-content {
    max-width: 98%;
    width: 98%;
    max-height: 85%;
}

.stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.4rem;
}

.stats-card {
    padding: 0.5rem;
}

.stats-card h4 {
    font-size: 0.75rem;
}

.stats-card .stats-value {
    font-size: 1rem;
}
}

.modal-header {
padding: 1rem 1.5rem;
border-bottom: 1px solid #e0e0e0;
display: flex;
justify-content: space-between;
align-items: center;
background: var(--bg-light);
}

.modal-header h3 {
margin: 0;
color: var(--primary);
font-size: 1.1rem;
}

.modal-close {
background: none;
border: none;
font-size: 1.5rem;
cursor: pointer;
color: #666;
padding: 0;
width: 30px;
height: 30px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.2s ease;
}

.modal-close:hover {
background: rgba(0, 0, 0, 0.1);
color: var(--primary);
}

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

#modalQuestion {
font-size: 1rem;
line-height: 1.5;
color: var(--text-dark);
word-wrap: break-word;
}

.modal-footer {
padding: 1rem 1.5rem;
border-top: 1px solid #e0e0e0;
display: flex;
justify-content: flex-end;
background: var(--bg-light);
}

.modal-btn-primary {
background: var(--primary);
color: white;
border: none;
border-radius: var(--radius-md);
padding: 0.5rem 1rem;
cursor: pointer;
font-size: 0.9rem;
transition: all 0.2s ease;
display: inline-flex;
align-items: center;
gap: 0.5rem;
margin-right: 0.5rem;
}

.modal-btn-primary:hover {
background: var(--primary-dark);
transform: translateY(-1px);
}

.modal-btn-primary i {
font-size: 0.8rem;
}

.modal-btn-secondary {
background: #6c757d;
color: white;
border: none;
border-radius: var(--radius-md);
padding: 0.5rem 1rem;
cursor: pointer;
font-size: 0.9rem;
transition: all 0.2s ease;
}

.modal-btn-secondary:hover {
background: #5a6268;
}

/* Dark mode adjustments for modal */
html[data-theme='dark'] .modal-content {
background: #2b2b3f;
}

html[data-theme='dark'] .modal-header,
html[data-theme='dark'] .modal-footer {
background: #1a1a26;
border-color: #444;
}

html[data-theme='dark'] .modal-header h3 {
color: #4a90e2;
}

html[data-theme='dark'] #modalQuestion {
color: #e0e0e0;
}

html[data-theme='dark'] .question-preview {
color: var(--text-light);
}

html[data-theme='dark'] .view-question-btn {
background: #4a90e2;
}

html[data-theme='dark'] .view-question-btn:hover {
background: #3a80d2;
}

html[data-theme='dark'] .goto-question-btn {
background: #4a90e2;
}

html[data-theme='dark'] .goto-question-btn:hover {
background: #3a80d2;
}

html[data-theme='dark'] .view-stats-btn {
background: #17a2b8;
}

html[data-theme='dark'] .view-stats-btn:hover {
background: #138496;
}

/* Dark mode stats modal styles */
html[data-theme='dark'] .stats-modal-content {
background: #2b2b3f;
}

html[data-theme='dark'] .stats-card {
background: #363652;
border-color: #444;
color: #e0e0e0;
}

html[data-theme='dark'] .stats-card h4 {
color: #4a90e2;
}

html[data-theme='dark'] .stats-card .stats-value {
color: #e0e0e0;
}

html[data-theme='dark'] .modal-btn-primary {
background: #4a90e2;
}

html[data-theme='dark'] .modal-btn-primary:hover {
background: #3a80d2;
}

/* Force visibility of mobile rating cards */
.mobile-ratings {
display: grid !important;
grid-template-columns: 1fr !important;
gap: 1rem !important;
margin-bottom: 2rem !important;
}

.mobile-rating-card {
display: block !important;
background: transparent !important;
padding: 1.5rem !important;
border-radius: 0 !important;
box-shadow: none !important;
text-align: center !important;
margin-bottom: 1rem !important;
}

/* Style for practice buttons */
.practice-btn {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
font-weight: 500;
letter-spacing: 0.3px;
transition: all 0.2s ease;
display: inline-flex;
align-items: center;
justify-content: center;
padding: 6px 16px;
margin: 0 auto 0 5.7px;
}

.practice-btn i {
margin-right: 6px;
font-size: 0.9em;
line-height: 1;
}

.rating-box form {
display: flex;
justify-content: center;
margin-top: 10px;
text-align: center;
}

/* Admin button styling */
.admin-button {
display: inline-flex;
align-items: center;
gap: 8px;
background: var(--primary);
color: var(--text-light);
padding: 10px 16px;
border-radius: var(--radius-md);
text-decoration: none;
font-weight: 500;
font-size: 14px;
transition: var(--transition);
box-shadow: var(--shadow-sm);
border: 1px solid var(--primary-dark);
}

.admin-button:hover {
background: var(--primary-dark);
transform: translateY(-1px);
box-shadow: var(--shadow-md);
color: var(--text-light);
text-decoration: none;
}

.admin-button i {
font-size: 16px;
}

/* Dashboard Premium Banners - Enhanced Styling */
.premium-lesson-banner {
background: linear-gradient(135deg, #f8fbff 0%, #e8f4fd 100%);
border-radius: 20px;
padding: 3rem 2rem;
margin: 2rem 0;
text-align: center;
border: 2px solid #e0f0ff;
position: relative;
overflow: hidden;
box-shadow: 0 8px 32px rgba(0, 74, 173, 0.1);
transition: all 0.3s ease;
}

.premium-lesson-banner:hover {
transform: none !important;
box-shadow: 0 12px 40px rgba(0, 74, 173, 0.15);
}

.premium-lesson-banner::before {
content: '';
position: absolute;
top: 0;
left: -100%;
width: 100%;
height: 100%;
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
transition: left 0.8s ease;
}

.premium-lesson-banner:hover::before {
left: 100%;
}

.premium-banner-content {
position: relative;
z-index: 2;
max-width: 600px;
margin: 0 auto;
}

.premium-icon {
font-size: 3.5rem;
color: #004aad;
margin-bottom: 1.5rem;
animation: bounceIn 1s ease-out;
filter: drop-shadow(0 4px 8px rgba(0, 74, 173, 0.2));
}

.premium-text-content h2 {
font-size: 2.2rem;
font-weight: 700;
background: linear-gradient(135deg, #004aad 0%, #0066cc 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
margin-bottom: 1rem;
animation: slideInUp 0.8s ease-out 0.2s both;
}

.premium-subtitle {
font-size: 1.1rem;
color: #666;
margin-bottom: 2.5rem;
animation: slideInUp 0.8s ease-out 0.4s both;
font-weight: 500;
}

.premium-features {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 1rem;
margin-bottom: 2.5rem;
text-align: left;
}

.feature-item {
display: flex;
align-items: center;
gap: 0.75rem;
padding: 1rem 1.25rem;
background: white;
border-radius: 12px;
box-shadow: 0 4px 12px rgba(0, 74, 173, 0.08);
transition: all 0.3s ease;
animation: slideInUp 0.8s ease-out calc(0.6s + var(--delay, 0)) both;
border: 1px solid rgba(0, 74, 173, 0.1);
}

.feature-item:nth-child(1) { --delay: 0.1s; }
.feature-item:nth-child(2) { --delay: 0.2s; }
.feature-item:nth-child(3) { --delay: 0.3s; }
.feature-item:nth-child(4) { --delay: 0.4s; }

.feature-item:hover {
transform: translateY(-2px);
box-shadow: 0 6px 20px rgba(0, 74, 173, 0.15);
border-color: rgba(0, 74, 173, 0.2);
}

.feature-item i {
color: #28a745;
font-size: 1.1rem;
flex-shrink: 0;
filter: drop-shadow(0 2px 4px rgba(40, 167, 69, 0.2));
min-width: 1.1rem;
}

.feature-item span {
font-size: 0.95rem;
font-weight: 500;
color: #333;
line-height: 1.4;
text-align: left;
flex: 1;
}

.premium-cta {
animation: slideInUp 0.8s ease-out 1.2s both;
}

.premium-subscribe-btn {
display: inline-flex;
align-items: center;
gap: 12px;
padding: 16px 32px;
font-size: 1.1rem;
font-weight: 700;
color: white;
background: linear-gradient(135deg, #004aad 0%, #0066cc 100%);
text-decoration: none;
border-radius: 50px;
transition: all 0.3s ease;
box-shadow: 0 8px 24px rgba(0, 74, 173, 0.3);
margin-bottom: 1rem;
position: relative;
overflow: hidden;
}

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

.premium-subscribe-btn:hover::before {
left: 100%;
}

.premium-subscribe-btn:hover {
background: linear-gradient(135deg, #003a8c 0%, #0055aa 100%);
transform: translateY(-3px);
box-shadow: 0 12px 32px rgba(0, 74, 173, 0.4);
text-decoration: none;
color: white;
}

.premium-subscribe-btn i {
font-size: 1rem;
animation: pulse 2s infinite;
filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.premium-note {
font-size: 0.9rem;
color: #666;
font-style: italic;
margin-top: 1rem;
opacity: 0.8;
}

/* Dark mode styles for premium banners */
html[data-theme='dark'] .premium-lesson-banner {
background: linear-gradient(135deg, #1a1a26 0%, #2a2a3a 100%);
border-color: #363652;
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

html[data-theme='dark'] .premium-lesson-banner:hover {
box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

html[data-theme='dark'] .premium-icon {
color: #4a90e2;
}

html[data-theme='dark'] .premium-text-content h2 {
background: linear-gradient(135deg, #4a90e2 0%, #67b8e3 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}

html[data-theme='dark'] .premium-subtitle {
color: #a0a0a0;
}

html[data-theme='dark'] .feature-item {
background: #2b2b3f;
color: #e0e0e0;
border-color: rgba(255, 255, 255, 0.1);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

html[data-theme='dark'] .feature-item:hover {
box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
border-color: rgba(255, 255, 255, 0.2);
}

html[data-theme='dark'] .feature-item span {
color: #e0e0e0;
}

html[data-theme='dark'] .premium-subscribe-btn {
background: linear-gradient(135deg, #4a90e2 0%, #67b8e3 100%);
box-shadow: 0 8px 24px rgba(74, 144, 226, 0.3);
}

html[data-theme='dark'] .premium-subscribe-btn:hover {
background: linear-gradient(135deg, #3a80d2 0%, #57a8d3 100%);
box-shadow: 0 12px 32px rgba(74, 144, 226, 0.4);
}

html[data-theme='dark'] .premium-note {
color: #a0a0a0;
}

/* Pulse animation for icons */
@keyframes pulse {
0%, 100% {
    transform: scale(1);
}
50% {
    transform: scale(1.1);
}
}

/* Bounce in animation */
@keyframes bounceIn {
0% {
    opacity: 0;
    transform: scale(0.3);
}
50% {
    opacity: 1;
    transform: scale(1.05);
}
70% {
    transform: scale(0.9);
}
100% {
    opacity: 1;
    transform: scale(1);
}
}

/* Slide up animation */
@keyframes slideInUp {
from {
    opacity: 0;
    transform: translateY(30px);
}
to {
    opacity: 1;
    transform: translateY(0);
}
}

/* Responsive design for premium banners */
@media (max-width: 768px) {
.premium-lesson-banner {
    padding: 2rem 1.5rem;
    margin: 1.5rem 0;
}

.premium-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.premium-text-content h2 {
    font-size: 1.8rem;
}

.premium-subtitle {
    font-size: 1rem;
    margin-bottom: 2rem;
}

.premium-features {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.feature-item {
    padding: 0.75rem 1rem;
    text-align: left;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 0.75rem;
}

.feature-item i {
    margin-top: 0.1rem;
    flex-shrink: 0;
}

.feature-item span {
    font-size: 0.9rem;
    text-align: left;
    flex: 1;
}

.premium-subscribe-btn {
    padding: 14px 28px;
    font-size: 1rem;
}
}

@media (max-width: 480px) {
.premium-lesson-banner {
    padding: 1.5rem 1rem;
}

.premium-text-content h2 {
    font-size: 1.6rem;
}

.premium-features {
    text-align: left;
}

.feature-item {
    flex-direction: row;
    text-align: left;
    gap: 0.75rem;
    align-items: flex-start;
}

.feature-item i {
    margin-top: 0.1rem;
    flex-shrink: 0;
}

/* Mobile-specific subscription banner spacing */
.subscription-banner {
    margin-bottom: 1.5rem !important;
}

/* Mobile Subscription Banner Enhanced Styles */
@media (max-width: 768px) {
    .subscription-banner {
        background: linear-gradient(135deg, #004aad 0%, #0066cc 100%);
        border-radius: 16px;
        padding: 1.5rem;
        margin: 1.5rem 0;
        color: white;
        box-shadow: 0 8px 24px rgba(0, 74, 173, 0.25);
        position: relative;
        overflow: hidden;
        border: none;
    }

    .subscription-banner::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
        animation: mobileBannerShine 8s infinite;
    }

    @keyframes mobileBannerShine {
        0% { left: -100%; }
        85% { left: -100%; }
        95% { left: 100%; }
        100% { left: 100%; }
    }

    .banner-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.5rem;
        position: relative;
        z-index: 1;
    }

    .banner-text {
        width: 100%;
    }

    .banner-text strong {
        font-size: 1.4rem;
        display: block;
        margin-bottom: 0.75rem;
        font-weight: 700;
        line-height: 1.3;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    .banner-text p {
        margin: 0;
        font-size: 1rem;
        opacity: 0.95;
        line-height: 1.4;
        font-weight: 500;
    }

    .subscribe-button {
        background: white;
        color: #004aad;
        padding: 1rem 2rem;
        border-radius: 50px;
        font-weight: 700;
        font-size: 1.1rem;
        text-decoration: none;
        transition: all 0.3s ease;
        white-space: nowrap;
        border: none;
        cursor: pointer;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
        min-width: 200px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
    }

    .subscribe-button:hover {
        background: rgba(255, 255, 255, 0.95);
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
        color: #004aad;
        text-decoration: none;
    }

}

/* Dark mode mobile subscription banner */
@media (max-width: 768px) {
    html[data-theme='dark'] .subscription-banner {
        background: linear-gradient(135deg, #1a237e 0%, #3949ab 100%);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    }

    html[data-theme='dark'] .subscribe-button {
        background: rgba(255, 255, 255, 0.95);
        color: #1a237e;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    }

    html[data-theme='dark'] .subscribe-button:hover {
        background: white;
        color: #1a237e;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
    }
}

/* Mobile-specific premium banner spacing and styling */
@media (max-width: 768px) {
    .premium-lesson-banner {
        margin: 0 !important;
        padding: 2rem 1.5rem !important;
        border-radius: 0 !important;
        background: linear-gradient(135deg, rgba(0, 74, 173, 0.08) 0%, rgba(0, 102, 204, 0.12) 100%) !important;
        border: none !important;
        box-shadow: none !important;
        width: 100% !important;
    }
    
    .premium-banner-content {
        max-width: 100% !important;
        margin: 0 !important;
        text-align: center !important;
    }
    
    .premium-icon {
        font-size: 2.5rem !important;
        margin-bottom: 1rem !important;
        color: #004aad !important;
    }
    
    .premium-text-content h2 {
        font-size: 1.5rem !important;
        color: #004aad !important;
        margin-bottom: 0.75rem !important;
    }
    
    .premium-subtitle {
        font-size: 1rem !important;
        color: #004aad !important;
        opacity: 0.8 !important;
        margin-bottom: 1.5rem !important;
    }
    
    .premium-features {
        grid-template-columns: 1fr !important;
        gap: 0.75rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    .feature-item {
        background: rgba(255, 255, 255, 0.8) !important;
        padding: 1rem !important;
        border-radius: 12px !important;
        border: 1px solid rgba(0, 74, 173, 0.15) !important;
        box-shadow: 0 2px 8px rgba(0, 74, 173, 0.08) !important;
    }
    
    .feature-item i {
        color: #28a745 !important;
    }
    
    .feature-item span {
        color: #004aad !important;
        font-weight: 500 !important;
    }
    
    .premium-subscribe-btn {
        background: #004aad !important;
        color: white !important;
        padding: 1rem 2rem !important;
        border-radius: 50px !important;
        font-weight: 700 !important;
        font-size: 0.9rem !important;
        text-decoration: none !important;
        transition: all 0.3s ease !important;
        white-space: nowrap !important;
        border: none !important;
        cursor: pointer !important;
        box-shadow: 0 6px 20px rgba(0, 74, 173, 0.3) !important;
        min-width: 200px !important;
        width: 100% !important;
        max-width: 280px !important;
        margin: 0 auto !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0.5rem !important;
    }
    
    .premium-subscribe-btn i {
        color: white !important;
    }
    
    .premium-subscribe-btn:hover {
        background: #003a8c !important;
        box-shadow: 0 8px 25px rgba(0, 74, 173, 0.4) !important;
        color: white !important;
        text-decoration: none !important;
    }
    
    /* Dark mode premium subscribe buttons */
    html[data-theme='dark'] .premium-subscribe-btn {
        background: #4a90e2 !important;
        color: white !important;
        box-shadow: 0 6px 20px rgba(74, 144, 226, 0.3) !important;
    }
    
    html[data-theme='dark'] .premium-subscribe-btn i {
        color: white !important;
    }
    
    html[data-theme='dark'] .premium-subscribe-btn:hover {
        background: #3a80d2 !important;
        color: white !important;
        box-shadow: 0 8px 25px rgba(74, 144, 226, 0.4) !important;
    }
}

/* Mobile responsive for hero nav */
@media (max-width: 768px) {
    .hero-nav-icons {
        margin-right: 0.5rem;
        gap: 0.25rem;
    }
    
    .hero-nav-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    
    .hero-nav-separator {
        height: 16px;
    }
}

/* Mobile Section Headers with Quant Guild Blue Gradient */
@media (max-width: 768px) {
    .mobile-section-header {
        background: linear-gradient(135deg, #004aad 0%, #0066cc 100%) !important;
        border-radius: 12px 12px 0 0 !important;
        padding: 1.25rem 1.5rem !important;
        margin: 0 !important;
        border: none !important;
    }

    .mobile-section-header h2 {
        color: white !important;
        font-weight: 600 !important;
        margin: 0 !important;
        font-size: 1.1rem !important;
    }

    .mobile-section-header h2 i {
        color: #facc15 !important;
        margin-right: 0.75rem !important;
    }

    .mobile-section-header p {
        color: rgba(255, 255, 255, 0.9) !important;
        margin: 0.25rem 0 0 0 !important;
        font-size: 0.85rem !important;
    }

    /* Special styling for performance section header with toggle */
    .mobile-performance-section .mobile-section-header {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
    }

    .mobile-toggle-button {
        background: transparent !important;
        border: none !important;
        color: white !important;
        border-radius: 6px !important;
        padding: 0.5rem !important;
        width: 36px !important;
        height: 36px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        transition: all 0.3s ease !important;
    }

    .mobile-toggle-button:hover {
        background: rgba(255, 255, 255, 0.1) !important;
    }

    .mobile-toggle-button i {
        color: white !important;
        font-size: 1rem !important;
    }

    /* Dark mode adjustments for mobile section headers */
    html[data-theme='dark'] .mobile-section-header {
        background: linear-gradient(135deg, #a855f7 0%, #8b5cf6 100%) !important;
    }

    html[data-theme='dark'] .mobile-toggle-button {
        background: transparent !important;
        border: none !important;
    }

    html[data-theme='dark'] .mobile-toggle-button:hover {
        background: rgba(255, 255, 255, 0.1) !important;
    }

    /* Mobile Stats Rows Layout */
    .mobile-stats-rows {
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .mobile-stat-row {
        display: flex !important;
        align-items: center !important;
        gap: 1rem !important;
        padding: 1.25rem 1.5rem !important;
        background: white !important;
        border-bottom: 1px solid rgba(0, 74, 173, 0.1) !important;
        transition: all 0.3s ease !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .mobile-stat-row:last-child {
        border-bottom: none !important;
    }

    .mobile-stat-row:hover {
        background: rgba(0, 74, 173, 0.03) !important;
    }

    .mobile-stat-row .stat-icon {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 40px !important;
        height: 40px !important;
        background: var(--primary) !important;
        border-radius: 8px !important;
        flex-shrink: 0 !important;
    }

    .mobile-stat-row .stat-icon i {
        color: white !important;
        font-size: 1.1rem !important;
    }

    .mobile-stat-row .stat-content {
        display: flex !important;
        flex-direction: column !important;
        flex: 1 !important;
    }

    .mobile-stat-row .stat-label {
        font-size: 0.85rem !important;
        color: var(--text-secondary) !important;
        font-weight: 500 !important;
        margin-bottom: 0.25rem !important;
    }

    .mobile-stat-row .stat-value {
        font-size: 1.4rem !important;
        font-weight: 700 !important;
        color: var(--primary) !important;
    }

    /* Dark mode adjustments for mobile stats rows */
    html[data-theme='dark'] .mobile-stat-row {
        background: #2a2a3a !important;
        border-bottom-color: rgba(168, 85, 247, 0.2) !important;
    }

    html[data-theme='dark'] .mobile-stat-row:hover {
        background: rgba(168, 85, 247, 0.05) !important;
    }

    html[data-theme='dark'] .mobile-stat-row .stat-icon {
        background: #a855f7 !important;
    }

    html[data-theme='dark'] .mobile-stat-row .stat-value {
        color: #a855f7 !important;
    }

    html[data-theme='dark'] .mobile-stat-row .stat-label {
        color: #e0e0e0 !important;
    }
}


/* Mobile responsive for games grid */
@media (max-width: 768px) {
    .games-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    .game-card {
        padding: 1rem !important;
    }
    
    .game-card h4 {
        font-size: 1rem !important;
    }
    
    .game-card p {
        font-size: 0.85rem !important;
    }
}
