/* ============================================================
   Resource Standalone CSS — Modern Age Coders
   COMPLETE standalone stylesheet for resource pages.
   No dependency on global style.css or responsive.css.

   Design tokens: #a855f7 purple, #06b6d4 cyan, #000002 bg,
   #f1f5f9 text, Inter headings+body, Fira Code mono
   ============================================================ */

/* === FONT IMPORTS ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Fira+Code:wght@400;500&display=swap');

/* === CSS RESET =============================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    background: #000002;
    color: #f1f5f9;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0;
    padding: 0;
    font-weight: 700;
    line-height: 1.3;
}

ul, ol {
    margin: 0;
    padding: 0;
}

p {
    margin: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

button {
    font: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* === NAV/FOOTER PLACEHOLDERS ================================ */
#nav-placeholder,
#footer-placeholder {
    display: block;
    width: 100%;
}

/* === SCROLLBAR (DARK THEME) ================================== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #0a0a0c;
}

::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #334155 #0a0a0c;
}

/* === BASE LAYOUT ============================================ */
.resource-main {
    display: block;
    max-width: 820px;
    margin: 0 auto;
    padding: 120px 28px 60px;
    color: #f1f5f9;
    gap: 0;
    align-items: stretch;
    width: 100%;
    box-sizing: border-box;
}

.resource-main > * {
    max-width: 100%;
    width: 100%;
}

/* === BREADCRUMB ============================================== */
.resource-main .breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 0.85rem;
    margin-bottom: 28px;
    color: #94a3b8;
    padding: 0;
    background: none;
    border: none;
}

.resource-main .breadcrumb a {
    color: #a855f7;
    text-decoration: none;
    transition: color 0.2s;
    font-size: 0.85rem;
}

.resource-main .breadcrumb a:hover {
    color: #c084fc;
    text-decoration: underline;
}

.breadcrumb-sep {
    color: #475569;
    font-size: 0.8rem;
    user-select: none;
}

.breadcrumb-current {
    color: #f1f5f9;
    font-weight: 500;
}

/* === PAGE HEADER ============================================= */
.resource-header {
    margin-bottom: 36px;
}

.resource-meta-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.resource-main .badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid;
    background: transparent;
    line-height: 1.4;
    box-shadow: none;
    transform: none;
    overflow: visible;
    position: static;
    transition: none;
}

.resource-main .badge:hover {
    transform: none;
    box-shadow: none;
}

.badge-chapter {
    color: #c084fc;
    border-color: rgba(168, 85, 247, 0.4);
    background: rgba(168, 85, 247, 0.1);
}

.badge-beginner {
    color: #4ade80;
    border-color: rgba(74, 222, 128, 0.4);
    background: rgba(74, 222, 128, 0.1);
}

.badge-intermediate {
    color: #fbbf24;
    border-color: rgba(251, 191, 36, 0.4);
    background: rgba(251, 191, 36, 0.1);
}

.badge-advanced {
    color: #f87171;
    border-color: rgba(248, 113, 113, 0.4);
    background: rgba(248, 113, 113, 0.1);
}

.badge-time,
.badge-updated {
    color: #94a3b8;
    border-color: rgba(148, 163, 184, 0.3);
    background: rgba(148, 163, 184, 0.08);
}

.badge-questions {
    color: #22d3ee;
    border-color: rgba(6, 182, 212, 0.4);
    background: rgba(6, 182, 212, 0.1);
}

.badge-free {
    color: #4ade80;
    border-color: rgba(74, 222, 128, 0.4);
    background: rgba(74, 222, 128, 0.15);
}

/* Title */
.resource-main .resource-title {
    font-family: 'Inter', Arial, sans-serif;
    font-weight: 800;
    font-size: 2.2rem;
    line-height: 1.2;
    color: #f1f5f9;
    margin: 0 0 16px;
    padding: 0;
    border: none;
    text-align: left;
}

.resource-subtitle {
    font-size: 1.1rem;
    color: #94a3b8;
    line-height: 1.6;
    max-width: 700px;
    margin-bottom: 12px;
}

.practice-link,
.notes-link {
    display: inline-block;
    color: #a855f7;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: color 0.2s;
    margin-top: 4px;
}

.practice-link:hover,
.notes-link:hover {
    color: #c084fc;
    text-decoration: underline;
}

/* === INDEX STATS ============================================= */
.index-stats {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.index-intro {
    color: #cbd5e1;
    line-height: 1.75;
    margin-bottom: 16px;
}

.resource-main .index-intro p {
    margin-bottom: 12px;
    color: #cbd5e1;
    font-size: 1rem;
    line-height: 1.75;
}

/* === TABLE OF CONTENTS ======================================= */
.toc-box {
    width: 100%;
    max-width: 100%;
    float: none;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(168, 85, 247, 0.15);
    border-left: 4px solid #a855f7;
    border-radius: 0 12px 12px 0;
    padding: 24px 28px;
    margin-bottom: 40px;
    box-shadow: none;
    transform: none;
    overflow: visible;
    position: static;
}

.toc-box:hover {
    transform: none;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.04);
}

.toc-box .toc-heading {
    font-family: 'Inter', Arial, sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: #c084fc;
    margin: 0 0 14px;
    padding: 0;
    border: none;
    line-height: 1.3;
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toc-list li a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
    display: inline-block;
    padding: 2px 0;
}

.toc-list li a:hover {
    color: #a855f7;
}

.toc-list li a::before {
    content: '#';
    color: #475569;
    margin-right: 8px;
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
}

/* === CONTENT SECTIONS ======================================== */
.resource-content {
    width: 100%;
}

.content-section {
    margin-bottom: 48px;
    padding-bottom: 8px;
}

.resource-main .content-section h2 {
    font-family: 'Inter', Arial, sans-serif;
    font-weight: 700;
    font-size: 1.6rem;
    line-height: 1.25;
    color: #f1f5f9;
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(168, 85, 247, 0.2);
    text-align: left;
}

.resource-main .content-section h3 {
    font-family: 'Inter', Arial, sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    line-height: 1.3;
    color: #e2e8f0;
    margin: 28px 0 12px;
    padding: 0;
    border: none;
    text-align: left;
}

.resource-main .content-section h4 {
    font-family: 'Inter', Arial, sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    line-height: 1.35;
    color: #e2e8f0;
    margin: 22px 0 10px;
    text-align: left;
}

.resource-main .content-section p {
    color: #cbd5e1;
    line-height: 1.75;
    font-size: 1rem;
    margin-bottom: 14px;
    text-align: left;
}

.resource-main .content-section ul,
.resource-main .content-section ol {
    color: #cbd5e1;
    line-height: 1.75;
    padding-left: 24px;
    margin-bottom: 16px;
}

.resource-main .content-section li {
    margin-bottom: 8px;
    font-size: 1rem;
    line-height: 1.75;
}

/* Inline code */
.resource-main .content-section code {
    font-family: 'Fira Code', monospace;
    background: rgba(168, 85, 247, 0.12);
    color: #c084fc;
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 0.88em;
    border: none;
}

/* Code blocks */
.resource-main .content-section pre {
    background: #0d1117;
    border: 1px solid rgba(168, 85, 247, 0.15);
    border-radius: 8px;
    padding: 18px 20px;
    overflow-x: auto;
    margin-bottom: 18px;
    position: relative;
    width: 100%;
}

.resource-main .content-section pre code {
    background: none;
    padding: 0;
    color: #e6edf3;
    font-size: 0.9rem;
    line-height: 1.6;
    border-radius: 0;
}

/* Strong tags inside content */
.resource-main .content-section strong {
    color: #f1f5f9;
    font-weight: 600;
}

/* === CODE EXAMPLES =========================================== */
.code-example {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(168, 85, 247, 0.15);
    border-radius: 10px;
    margin-bottom: 28px;
    overflow: hidden;
    width: 100%;
}

.code-example-title {
    background: rgba(168, 85, 247, 0.1);
    padding: 12px 18px;
    font-family: 'Inter', Arial, sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    color: #c084fc;
    border-bottom: 1px solid rgba(168, 85, 247, 0.15);
}

.code-example pre {
    margin: 0;
    border: none;
    border-radius: 0;
    background: #0d1117;
}

.code-example pre code {
    background: none;
    color: #e6edf3;
}

.code-example-explanation {
    padding: 14px 18px;
    color: #94a3b8;
    font-size: 0.9rem;
    line-height: 1.65;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.01);
}

.code-example-explanation code {
    font-family: 'Fira Code', monospace;
    background: rgba(168, 85, 247, 0.12);
    color: #c084fc;
    padding: 1px 5px;
    border-radius: 3px;
    font-size: 0.88em;
}

.code-example-output {
    padding: 12px 18px;
    background: rgba(6, 182, 212, 0.05);
    border-top: 1px solid rgba(6, 182, 212, 0.15);
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
    color: #22d3ee;
    white-space: pre-wrap;
    line-height: 1.5;
}

.code-example-output::before {
    content: 'Output: ';
    font-weight: 700;
    color: #06b6d4;
}

/* === CODE COPY BUTTON ======================================== */
.code-copy-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 4px 12px;
    background: rgba(168, 85, 247, 0.15);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 2;
}

.code-copy-btn:hover {
    background: rgba(168, 85, 247, 0.3);
}

.code-copy-btn.copied {
    color: #4ade80;
    border-color: rgba(74, 222, 128, 0.4);
    background: rgba(74, 222, 128, 0.15);
}

/* === COMMON MISTAKES ========================================= */
.mistake-card {
    background: rgba(248, 113, 113, 0.03);
    border: 1px solid rgba(248, 113, 113, 0.1);
    border-left: 4px solid #f87171;
    border-radius: 0 10px 10px 0;
    padding: 22px 24px;
    margin-bottom: 24px;
}

.resource-main .mistake-card h3 {
    color: #f87171;
    margin: 0 0 14px;
    font-size: 1.1rem;
    padding: 0;
    border: none;
}

.mistake-card .wrong-code {
    border-left: 3px solid #f87171;
    padding-left: 14px;
    margin-bottom: 12px;
}

.mistake-card .wrong-code::before {
    content: 'Wrong:';
    display: block;
    color: #f87171;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.mistake-card .error-message {
    background: rgba(248, 113, 113, 0.08);
    border: 1px solid rgba(248, 113, 113, 0.2);
    border-radius: 6px;
    padding: 10px 14px;
    color: #fca5a5;
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
    margin-bottom: 14px;
    line-height: 1.5;
}

.mistake-card .correct-code {
    border-left: 3px solid #4ade80;
    padding-left: 14px;
    margin-bottom: 12px;
}

.mistake-card .correct-code::before {
    content: 'Correct:';
    display: block;
    color: #4ade80;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.mistake-card .mistake-explanation {
    color: #94a3b8;
    font-size: 0.92rem;
    line-height: 1.65;
    margin-top: 10px;
}

/* === SUMMARY BOX ============================================= */
.summary-box {
    background: rgba(168, 85, 247, 0.05);
    border: 1px solid rgba(168, 85, 247, 0.12);
    border-left: 4px solid #a855f7;
    border-radius: 0 10px 10px 0;
    padding: 22px 26px;
    margin-top: 8px;
}

.resource-main .summary-box h2 {
    font-size: 1.2rem;
    margin: 0 0 14px;
    padding: 0;
    border: none;
    color: #c084fc;
}

.summary-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.summary-box li {
    padding: 6px 0 6px 0;
    color: #cbd5e1;
    line-height: 1.6;
    font-size: 0.95rem;
}

.summary-box li::before {
    content: '\2713';
    color: #a855f7;
    font-weight: 700;
    margin-right: 10px;
}

/* === RELATED TOPICS ========================================== */
.related-topics {
    margin-bottom: 40px;
}

.resource-main .related-topics h2 {
    font-family: 'Inter', Arial, sans-serif;
    font-weight: 700;
    font-size: 1.3rem;
    color: #f1f5f9;
    margin-bottom: 16px;
    padding: 0;
    border: none;
}

.related-topics-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.related-topic-link {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(168, 85, 247, 0.08);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 8px;
    color: #c084fc;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
}

.related-topic-link:hover {
    background: rgba(168, 85, 247, 0.2);
    border-color: rgba(168, 85, 247, 0.4);
    color: #e9d5ff;
}

/* === CHAPTER NAVIGATION ====================================== */
.chapter-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 40px;
}

.chapter-nav-card {
    display: flex;
    flex-direction: column;
    padding: 18px 22px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(168, 85, 247, 0.15);
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: none;
    overflow: visible;
    position: relative;
}

.chapter-nav-card:hover {
    background: rgba(168, 85, 247, 0.08);
    border-color: rgba(168, 85, 247, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.1);
}

.chapter-nav-card.prev {
    text-align: left;
}

.chapter-nav-card.next {
    text-align: right;
    grid-column: 2;
}

.chapter-nav-label {
    font-size: 0.75rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.chapter-nav-title {
    color: #c084fc;
    font-weight: 600;
    font-size: 0.95rem;
}

/* === CTA SECTIONS ============================================ */
.cta-section {
    text-align: center;
    padding: 36px 28px;
    margin-bottom: 36px;
    border-radius: 12px;
    background: rgba(168, 85, 247, 0.04);
    border: 1px solid rgba(168, 85, 247, 0.12);
}

.resource-main .cta-section h2 {
    font-family: 'Inter', Arial, sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
    color: #f1f5f9;
    margin: 0 0 8px;
    padding: 0;
    border: none;
    text-align: center;
}

.resource-main .cta-section p {
    color: #94a3b8;
    margin: 0 0 20px;
    font-size: 0.95rem;
    text-align: center;
}

.cta-button-primary {
    display: inline-block;
    padding: 12px 32px;
    background: linear-gradient(135deg, #a855f7, #06b6d4);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s;
}

.cta-button-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(168, 85, 247, 0.3);
}

.cta-button-outline {
    display: inline-block;
    padding: 12px 32px;
    background: transparent;
    color: #a855f7;
    font-weight: 700;
    font-size: 1rem;
    border: 2px solid rgba(168, 85, 247, 0.4);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s;
}

.cta-button-outline:hover {
    background: rgba(168, 85, 247, 0.08);
    border-color: #a855f7;
}

.cta-course {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.08);
}

/* === PRACTICE PAGE: STATS BAR ================================ */
.practice-stats-bar {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 40px;
    padding: 0;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
}

.practice-stats-bar .stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex: 1;
    padding: 18px 16px;
    text-align: center;
    position: relative;
}

/* Divider between stats */
.practice-stats-bar .stat + .stat {
    border-left: 1px solid rgba(255, 255, 255, 0.06);
}

.practice-stats-bar .stat-count {
    font-family: 'Inter', Arial, sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    line-height: 1;
}

.practice-stats-bar .stat-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
}

.stat-easy .stat-count { color: #4ade80; }
.stat-medium .stat-count { color: #fbbf24; }
.stat-hard .stat-count { color: #f87171; }

/* === PRACTICE PAGE: QUESTION CARDS =========================== */
.practice-section {
    margin-bottom: 48px;
}

.resource-main .practice-section h2 {
    font-family: 'Inter', Arial, sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
    color: #f1f5f9;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(168, 85, 247, 0.15);
    text-align: left;
}

.question-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 22px 24px;
    margin-bottom: 18px;
    transition: border-color 0.2s;
}

.question-card:hover {
    border-color: rgba(168, 85, 247, 0.2);
}

.question-card .question-number {
    display: inline-block;
    font-size: 0.75rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
    margin-right: 10px;
}

.question-card .question-difficulty {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 8px;
    vertical-align: middle;
}

.question-difficulty.easy {
    color: #4ade80;
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid rgba(74, 222, 128, 0.3);
}

.question-difficulty.medium {
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.question-difficulty.hard {
    color: #f87171;
    background: rgba(248, 113, 113, 0.1);
    border: 1px solid rgba(248, 113, 113, 0.3);
}

.question-card .question-text {
    color: #e2e8f0;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 14px;
}

.question-card .question-text code {
    font-family: 'Fira Code', monospace;
    background: rgba(168, 85, 247, 0.12);
    color: #c084fc;
    padding: 1px 5px;
    border-radius: 3px;
    font-size: 0.88em;
}

/* === COLLAPSIBLE TOGGLE / CONTENT ============================ */
.collapsible-toggle {
    display: inline-block;
    padding: 7px 18px;
    background: rgba(168, 85, 247, 0.08);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.25);
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-right: 8px;
    margin-top: 6px;
}

.collapsible-toggle:hover {
    background: rgba(168, 85, 247, 0.18);
    border-color: rgba(168, 85, 247, 0.4);
}

.collapsible-content {
    display: none;
    margin-top: 14px;
    padding: 16px 18px;
    background: rgba(168, 85, 247, 0.04);
    border-radius: 8px;
    border: 1px solid rgba(168, 85, 247, 0.1);
    color: #cbd5e1;
    line-height: 1.7;
    font-size: 0.95rem;
}

.collapsible-content.is-open {
    display: block;
}

.collapsible-content pre {
    background: #0d1117;
    border: 1px solid rgba(168, 85, 247, 0.15);
    border-radius: 8px;
    padding: 14px 16px;
    margin: 10px 0 4px;
}

.collapsible-content pre code {
    background: none;
    color: #e6edf3;
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    padding: 0;
}

.collapsible-content code {
    font-family: 'Fira Code', monospace;
    background: rgba(168, 85, 247, 0.12);
    color: #c084fc;
    padding: 1px 5px;
    border-radius: 3px;
    font-size: 0.88em;
}

/* === MCQ OPTIONS ============================================= */
.mcq-options {
    list-style: none;
    padding: 0;
    margin: 0 0 14px;
}

.mcq-options li {
    padding: 10px 16px;
    margin-bottom: 6px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    color: #cbd5e1;
    font-size: 0.95rem;
    transition: all 0.2s;
    cursor: default;
}

.mcq-options li:hover {
    background: rgba(168, 85, 247, 0.06);
    border-color: rgba(168, 85, 247, 0.2);
}

.mcq-option-label {
    font-weight: 700;
    color: #a855f7;
    margin-right: 8px;
}

/* === CODING CHALLENGES ======================================= */
.challenge-card {
    background: rgba(6, 182, 212, 0.03);
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-left: 4px solid #06b6d4;
    border-radius: 0 12px 12px 0;
    padding: 22px 24px;
    margin-bottom: 22px;
}

.resource-main .challenge-card h3 {
    font-family: 'Inter', Arial, sans-serif;
    color: #22d3ee;
    margin: 0 0 12px;
    font-size: 1.1rem;
    padding: 0;
    border: none;
}

.challenge-card .challenge-difficulty {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.challenge-card .challenge-description {
    color: #cbd5e1;
    line-height: 1.65;
    margin-bottom: 14px;
    font-size: 0.95rem;
}

.challenge-io {
    margin-bottom: 14px;
}

.challenge-io-label {
    font-size: 0.78rem;
    color: #64748b;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.3px;
    margin-bottom: 6px;
}

.challenge-io-value {
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
    color: #94a3b8;
    background: rgba(0, 0, 0, 0.3);
    padding: 10px 14px;
    border-radius: 6px;
    white-space: pre-wrap;
    line-height: 1.5;
}

.challenge-constraints {
    color: #64748b;
    font-size: 0.85rem;
    font-style: italic;
    margin-bottom: 12px;
}

/* === LANGUAGE INDEX: CHAPTER CARDS ============================ */
.chapter-listing {
    margin-bottom: 40px;
}

.resource-main .chapter-listing h2 {
    font-family: 'Inter', Arial, sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
    color: #f1f5f9;
    margin-bottom: 24px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(168, 85, 247, 0.15);
    text-align: left;
}

.chapter-card {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 20px 22px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    margin-bottom: 12px;
    text-decoration: none;
    transition: all 0.25s;
    box-shadow: none;
    overflow: visible;
    position: relative;
}

.chapter-card:hover {
    background: rgba(168, 85, 247, 0.06);
    border-color: rgba(168, 85, 247, 0.25);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.08);
}

.chapter-card-number {
    font-family: 'Inter', Arial, sans-serif;
    font-weight: 800;
    font-size: 1.4rem;
    color: #a855f7;
    min-width: 40px;
    text-align: center;
    line-height: 1;
    padding-top: 2px;
}

.chapter-card-body {
    flex: 1;
    min-width: 0;
}

.chapter-card-title {
    font-weight: 600;
    font-size: 1.05rem;
    color: #e2e8f0;
    margin-bottom: 4px;
    line-height: 1.3;
}

.chapter-card-desc {
    font-size: 0.88rem;
    color: #64748b;
    line-height: 1.55;
    margin-bottom: 6px;
}

.chapter-card-badges {
    display: flex;
    gap: 6px;
    margin-top: 6px;
    flex-wrap: wrap;
}

.chapter-card-badges .badge {
    font-size: 0.68rem;
    padding: 2px 8px;
}

/* === LANGUAGE CARDS (MASTER INDEX) =========================== */
.language-cards-section {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.language-card {
    display: flex;
    flex-direction: column;
    padding: 30px 26px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(168, 85, 247, 0.15);
    border-radius: 14px;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: none;
    overflow: visible;
}

.language-card:hover {
    background: rgba(168, 85, 247, 0.08);
    border-color: rgba(168, 85, 247, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(168, 85, 247, 0.15);
}

.language-card-name {
    font-family: 'Inter', Arial, sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    color: #f1f5f9;
    margin-bottom: 10px;
}

.language-card-desc {
    color: #94a3b8;
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 16px;
    flex: 1;
}

.language-card-stats {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* === RESPONSIVE ============================================== */
@media (max-width: 768px) {
    .resource-main {
        padding: 90px 16px 40px;
    }

    .resource-main .resource-title {
        font-size: 1.6rem;
    }

    .resource-main .content-section h2 {
        font-size: 1.35rem;
    }

    .resource-main .content-section h3 {
        font-size: 1.1rem;
    }

    .chapter-nav {
        grid-template-columns: 1fr;
    }

    .chapter-nav-card.next {
        grid-column: 1;
        text-align: left;
    }

    .practice-stats-bar {
        flex-direction: column;
        gap: 0;
    }

    .practice-stats-bar .stat {
        flex-direction: row;
        justify-content: center;
        gap: 10px;
        padding: 12px 16px;
    }

    .practice-stats-bar .stat + .stat {
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.06);
    }

    .toc-box {
        padding: 18px 20px;
    }

    .language-cards-section {
        grid-template-columns: 1fr;
    }

    .chapter-card {
        flex-direction: column;
        gap: 8px;
    }

    .chapter-card-number {
        min-width: auto;
    }

    .resource-main .breadcrumb {
        font-size: 0.78rem;
    }

    .code-example-title {
        font-size: 0.85rem;
    }

    .cta-section {
        padding: 24px 16px;
    }

    .cta-button-primary,
    .cta-button-outline {
        padding: 10px 24px;
        font-size: 0.9rem;
    }

    .question-card {
        padding: 18px 18px;
    }

    .mistake-card {
        padding: 18px 18px;
    }

    .resource-main .content-section p {
        font-size: 0.95rem;
    }

    .resource-main .content-section li {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .resource-main {
        padding: 85px 14px 32px;
    }

    .resource-main .resource-title {
        font-size: 1.4rem;
    }

    .resource-meta-badges {
        gap: 6px;
    }

    .resource-main .badge {
        font-size: 0.68rem;
        padding: 3px 8px;
    }

    .practice-stats-bar .stat-count {
        font-size: 1.2rem;
    }

    .code-example-output {
        font-size: 0.8rem;
    }

    .collapsible-toggle {
        font-size: 0.78rem;
        padding: 6px 14px;
    }
}

/* === PRINT STYLES ============================================ */
@media print {
    nav,
    #nav-placeholder,
    #footer-placeholder,
    footer,
    .breadcrumb,
    .chapter-nav,
    .cta-section,
    .practice-link,
    .notes-link,
    .code-copy-btn,
    .collapsible-toggle {
        display: none !important;
    }

    .resource-main {
        padding: 0 !important;
        max-width: 100% !important;
        color: #000 !important;
    }

    .resource-title,
    .content-section h2,
    .content-section h3,
    .content-section h4 {
        color: #000 !important;
    }

    .content-section p,
    .content-section li,
    .summary-box li {
        color: #333 !important;
    }

    .collapsible-content {
        display: block !important;
    }

    .content-section pre {
        background: #f5f5f5 !important;
        border-color: #ccc !important;
    }

    .content-section pre code {
        color: #000 !important;
    }

    .badge {
        border-color: #ccc !important;
        color: #333 !important;
    }

    .toc-box {
        border-color: #ccc !important;
        background: #f9f9f9 !important;
    }
}

/* ============================================================
   NAV & FOOTER STYLES
   (Extracted from style.css, responsive.css, mobile-nav-final-fix.css
    for standalone resource pages)
   ============================================================ */

/* --- CSS Variables needed by nav/footer --- */
:root {
    --primary-glow-color: rgba(168, 85, 247, 0.5);
    --glass-bg-dark: rgba(8, 8, 16, 0.9);
    --glass-bg-light: rgba(16, 16, 28, 0.8);
    --glass-border: rgba(255, 255, 255, 0.12);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --glass-blur: 20px;
    --transition-speed: 0.3s;
    --transition-timing: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* --- Header / Nav shell (scoped to nav's parent header only) --- */
#nav-placeholder + main .resource-header,
.resource-header {
    position: static;
    width: 100%;
    background: none;
    backdrop-filter: none;
}

body > header,
header:has(nav) {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    width: 100%;
    margin: 0;
    padding: 0;
    background: rgba(10, 10, 20, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

nav {
    width: 100%;
    z-index: 1000;
    position: relative;
}

.navbar {
    z-index: 9999;
    background: transparent;
    border-radius: 0;
    border: none;
    border-bottom: 1px solid rgba(168, 85, 247, 0.3);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    transition: all var(--transition-speed) var(--transition-timing);
    margin: 0;
    width: 100%;
    position: relative;
}

.navbar:hover {
    box-shadow: 0 12px 40px rgba(168, 85, 247, 0.2);
}

.navbar-scrolled {
    background: rgba(12, 12, 22, 0.95) !important;
    backdrop-filter: blur(30px) !important;
    -webkit-backdrop-filter: blur(30px) !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5) !important;
}

.nav-container {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    padding: 0.875rem 1.75rem;
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}

/* --- Logo --- */
.logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    transition: transform 0.3s ease;
    max-height: 60px;
}

.logo:hover {
    transform: scale(1.02);
}

.logo-img {
    width: 45px !important;
    height: 45px !important;
    max-width: 45px !important;
    max-height: 45px !important;
    min-width: 45px;
    min-height: 45px;
    object-fit: contain;
    object-position: center;
    display: block;
    transition: all 0.4s ease;
    filter: drop-shadow(0 0 10px rgba(168, 85, 247, 0.3));
}

.logo:hover .logo-img {
    transform: scale(1.05);
    filter: drop-shadow(0 0 20px rgba(168, 85, 247, 0.6));
}

.logo-text {
    font-weight: 700;
    font-size: 1.25rem;
    background: linear-gradient(135deg, #ffffff, #E0E7FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
}

/* --- Nav menu (desktop default) --- */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-self: end;
}

.nav-link {
    padding: 0.625rem 1.25rem;
    text-decoration: none;
    color: #CBD5E1;
    font-weight: 500;
    font-size: 1rem;
    border-radius: 0.875rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: visible;
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.nav-link.active {
    color: #a855f7;
    background: rgba(168, 85, 247, 0.2);
    border: 1px solid rgba(168, 85, 247, 0.5);
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.3);
    position: relative;
}

.nav-link:hover {
    color: white;
    background: rgba(168, 85, 247, 0.15);
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.nav-link.active:hover {
    background: rgba(168, 85, 247, 0.3);
    border-color: rgba(168, 85, 247, 0.6);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.4);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: #a855f7;
    border-radius: 50%;
}

/* --- Dropdowns --- */
.dropdown {
    position: relative;
}

.dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 15px;
    background: transparent;
}

.dropdown-content {
    z-index: 1001;
    position: absolute;
    top: 100%;
    left: 50%;
    background: var(--glass-bg-dark);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    min-width: 220px;
    padding: 0.5rem;
    padding-top: 0.75rem;
    box-shadow: var(--glass-shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-10px);
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
    pointer-events: none;
    margin-top: 5px;
}

.dropdown:hover .dropdown-content,
.dropdown.dropdown-open .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.dropdown-item {
    display: block;
    padding: 0.75rem 1rem;
    color: #CBD5E1;
    text-decoration: none;
    font-size: 0.95rem;
    border-radius: 0.625rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.dropdown-item:hover {
    background: rgba(168, 85, 247, 0.15);
    color: white;
    padding-left: 1.5rem;
}

.dropdown-item.active {
    background: rgba(168, 85, 247, 0.2);
    color: white;
    border-left: 3px solid rgba(168, 85, 247, 0.8);
}

.dropdown-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(168, 85, 247, 0.1);
    transition: left 0.4s ease;
    z-index: -1;
}

.dropdown-item:hover::before {
    left: 0;
}

.dropdown-item.highlight {
    color: #fce7f3;
    font-weight: 600;
    background: rgba(168, 85, 247, 0.08);
    border: 1px solid rgba(168, 85, 247, 0.2);
}

.dropdown-item.highlight:hover {
    color: white;
    background: rgba(168, 85, 247, 0.15);
    border-color: rgba(168, 85, 247, 0.3);
}

/* --- CTA / Login button in nav --- */
.cta-button {
    background: linear-gradient(135deg, #8A2BE2, #4A00E0);
    color: white;
    padding: 0.875rem 2rem;
    border-radius: 0.875rem;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all var(--transition-speed) ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 6px 25px var(--primary-glow-color);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.cta-button::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.6s ease;
    pointer-events: none;
}

.cta-button::after {
    content: '';
    font-size: 1.2rem;
    transition: transform 0.3s ease;
    margin-left: 0.25rem;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover::after {
    transform: translateX(3px);
}

.cta-button:hover {
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 12px 40px var(--primary-glow-color);
    border-color: rgba(255, 255, 255, 0.5);
}

.cta-button:active {
    transform: translateY(-2px) scale(1.05);
}

/* --- Callback nav button (from nav.html inline style) --- */
.callback-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.callback-nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.callback-nav-btn svg {
    flex-shrink: 0;
}

/* --- Mobile menu button (base, hidden on desktop) --- */
.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 10000;
    position: relative;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
}

/* ============================================================
   FOOTER STYLES
   ============================================================ */

.site-footer {
    width: 100%;
    padding: 4rem 0 1.5rem 0;
    background: rgba(4, 4, 8, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    margin-top: 5rem;
    border-top: 1px solid var(--glass-border);
    position: relative;
    z-index: 10;
}

.footer-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.footer-column .logo {
    margin-bottom: 1.25rem;
}

.footer-tagline {
    font-size: 0.9rem;
    color: #94a3b8;
    margin-bottom: 1.25rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: #cbd5e1;
    transition: all var(--transition-speed) ease;
    border: 1px solid var(--glass-border);
}

.social-links a:hover {
    background: var(--primary-glow-color);
    color: #fff;
    transform: translateY(-5px) rotate(360deg);
    border-color: transparent;
    box-shadow: 0 5px 20px var(--primary-glow-color);
}

.social-links a svg {
    width: 18px;
    height: 18px;
}

.footer-heading {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 1.25rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    text-decoration: none;
    color: #94a3b8;
    transition: all var(--transition-speed) ease;
    position: relative;
}

.footer-links a::before {
    content: '';
    position: absolute;
    left: -20px;
    opacity: 0;
    transition: all 0.3s ease;
}

.footer-links a:hover::before {
    left: -15px;
    opacity: 1;
}

.footer-links a:hover {
    color: #fff;
    padding-left: 10px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--glass-border);
    font-size: 0.9rem;
    color: #94a3b8;
}

/* --- Floating chat button hover styles (from footer.html) --- */
.misti-chat-btn:hover .misti-icon {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(168, 85, 247, 0.5);
}

.misti-chat-btn:hover .misti-label {
    box-shadow: 0 6px 20px rgba(168, 85, 247, 0.5);
}

.wa-float-btn:hover .wa-icon {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

.wa-float-btn:hover .wa-label {
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

@media (max-width: 768px) {
    .misti-label,
    .wa-label {
        display: none !important;
        visibility: hidden !important;
    }

    .misti-chat-btn {
        bottom: 88px !important;
        right: 16px !important;
    }

    .wa-float-btn {
        bottom: 20px !important;
        right: 16px !important;
    }

    .misti-icon,
    .wa-icon {
        width: 52px !important;
        height: 52px !important;
        min-width: 52px !important;
        min-height: 52px !important;
    }

    .callback-nav-btn span {
        display: none;
    }

    .callback-nav-btn {
        padding: 10px;
    }
}

/* ============================================================
   MOBILE NAV STYLES
   (Extracted from mobile-nav-final-fix.css + responsive.css)
   ============================================================ */

/* Mobile menu button */
@media (max-width: 900px) {
    .mobile-menu-btn {
        display: flex !important;
        flex-direction: column;
        justify-content: space-around;
        width: 44px;
        height: 44px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 8px;
        z-index: 10001 !important;
        position: relative;
        border-radius: 4px;
        transition: background-color 0.2s ease;
    }

    .mobile-menu-btn:hover,
    .mobile-menu-btn:focus {
        background-color: rgba(255, 255, 255, 0.1);
        outline: 2px solid #a855f7;
        outline-offset: 2px;
    }

    .mobile-menu-btn:active {
        background-color: rgba(168, 85, 247, 0.2);
    }

    /* Hamburger lines */
    .mobile-menu-btn span {
        display: block !important;
        width: 24px;
        height: 3px;
        background: #fff !important;
        border-radius: 2px;
        transition: all 0.3s ease;
        transform-origin: center;
    }

    /* Hamburger animation when active */
    .mobile-menu-btn.active span:nth-child(1),
    .mobile-menu-btn.open span:nth-child(1) {
        transform: rotate(45deg) translate(7px, 7px);
    }

    .mobile-menu-btn.active span:nth-child(2),
    .mobile-menu-btn.open span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3),
    .mobile-menu-btn.open span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
}

/* Hide mobile menu button on desktop */
@media (min-width: 901px) {
    .mobile-menu-btn {
        display: none !important;
    }
}

/* Mobile navigation menu */
@media (max-width: 900px) {
    .nav-menu {
        display: none !important;
        position: fixed !important;
        top: 70px !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        height: calc(100vh - 70px) !important;
        background: rgba(10, 10, 20, 0.98) !important;
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
        flex-direction: column !important;
        padding: 2rem 1rem !important;
        overflow-y: auto !important;
        z-index: 9999 !important;
        transform: translateX(-100%) !important;
        transition: transform 0.3s ease !important;
        list-style: none !important;
        margin: 0 !important;
    }

    .nav-menu.active {
        display: flex !important;
        transform: translateX(0) !important;
    }

    .nav-menu .nav-item,
    .nav-menu .nav-item.dropdown,
    .nav-menu li.nav-item,
    .nav-menu li.nav-item.dropdown {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative !important;
        transform: none !important;
        height: auto !important;
        width: 100% !important;
        overflow: visible !important;
        margin: 8px 0 !important;
        list-style: none !important;
    }

    .nav-menu .nav-link,
    .nav-menu .dropdown .nav-link,
    .nav-menu li .nav-link,
    .nav-menu li.dropdown .nav-link {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative !important;
        transform: none !important;
        height: auto !important;
        width: 100% !important;
        align-items: center !important;
        padding: 0.75rem 1.25rem !important;
        min-height: 44px !important;
        min-width: 44px !important;
        font-size: 1.125rem !important;
        color: #fff !important;
        text-decoration: none !important;
        border-radius: 8px !important;
        transition: background-color 0.2s ease !important;
        box-sizing: border-box !important;
    }

    .nav-menu .nav-link:hover,
    .nav-menu .nav-link:focus {
        background-color: rgba(168, 85, 247, 0.2) !important;
        color: #fff !important;
    }

    .nav-menu .nav-link:active {
        background-color: rgba(168, 85, 247, 0.3) !important;
        opacity: 0.8;
    }

    /* Mobile dropdown */
    .nav-menu .dropdown {
        position: relative !important;
        width: 100% !important;
    }

    .nav-menu .dropdown-content {
        display: none !important;
        background: rgba(0, 0, 0, 0.5) !important;
        border-radius: 8px !important;
        margin-top: 8px !important;
        padding: 8px 0 !important;
        position: static !important;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        box-shadow: none !important;
        border: none !important;
        width: 100% !important;
    }

    .nav-menu .dropdown.active .dropdown-content {
        display: block !important;
    }

    .nav-menu .dropdown-item {
        display: block !important;
        padding: 0.5rem 1.25rem !important;
        color: #cbd5e1 !important;
        text-decoration: none !important;
        transition: background-color 0.2s ease !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .nav-menu .dropdown-item:hover,
    .nav-menu .dropdown-item:focus {
        background-color: rgba(168, 85, 247, 0.2) !important;
        color: #fff !important;
    }
}

/* Desktop navigation */
@media (min-width: 901px) {
    .nav-menu {
        display: flex !important;
        position: static !important;
        flex-direction: row !important;
        background: transparent !important;
        padding: 0 !important;
        transform: none !important;
        overflow: visible !important;
        z-index: auto !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        width: auto !important;
        height: auto !important;
    }
}

/* Body scroll lock when mobile menu is open */
body.mobile-menu-open {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
}

/* Touch feedback improvements */
@media (max-width: 900px) {
    .mobile-menu-btn,
    .nav-menu .nav-link,
    .nav-menu .dropdown-item {
        -webkit-tap-highlight-color: rgba(168, 85, 247, 0.2);
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .mobile-menu-btn span,
    .nav-menu {
        transition: none !important;
        animation: none !important;
    }
}

/* Extra small screens */
@media (max-width: 320px) {
    .logo-img {
        width: 32px !important;
        height: 32px !important;
        max-width: 32px !important;
        max-height: 32px !important;
        min-width: 32px;
        min-height: 32px;
    }
}
