/* ==========================================================================
   Base Styles & Reset & Theme System
   ========================================================================== */
:root {
    --bg-dark: #0b0f19;
    --bg-card: rgba(17, 24, 39, 0.7);
    --bg-card-hover: rgba(22, 28, 45, 0.85);
    --header-bg: rgba(11, 15, 25, 0.85);
    --sidebar-bg: #0d1220;
    
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    
    --primary-gradient: linear-gradient(135deg, #00c6ff, #0072ff);
    --win11-gradient: linear-gradient(135deg, #10b981, #059669);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(0, 198, 255, 0.3);
    
    --accent-blue: #0088ff;
    --accent-glow: rgba(0, 114, 255, 0.15);
    --warning-yellow: #f59e0b;
    --warning-glow: rgba(245, 158, 11, 0.1);
    --success-green: #10b981;
    
    --font-primary: 'Poppins', sans-serif;
    --font-header: 'Poppins', sans-serif;
    
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    --window-header-bg: #111520;
    --window-mock-bg: #181d2a;
    --blob-opacity: 0.18;
    
    --shadow-card: rgba(0, 0, 0, 0.3);
    --shadow-window: rgba(0, 0, 0, 0.4);
    --shadow-glow: rgba(0, 198, 255, 0.08);
    
    --btn-bg: rgba(255, 255, 255, 0.05);
    --btn-bg-hover: rgba(255, 255, 255, 0.1);
    
    --tab-bg: rgba(0, 0, 0, 0.25);
    --badge-bg: #111827;
    --notes-bg: rgba(0, 0, 0, 0.15);
    --footer-bg: #05070c;
    
    --logo-color: #00c6ff;
    --logo-shadow: drop-shadow(0 0 8px rgba(0, 198, 255, 0.4));
    --badge-text: #00c6ff;
    --badge-bg-tag: rgba(0, 198, 255, 0.08);
    --badge-border: rgba(0, 198, 255, 0.2);
    --link-color: #00c6ff;
    --note-icon-color: #00c6ff;
    --note-icon-bg: rgba(0, 198, 255, 0.08);
    --btn-outline-text: #60a5fa;
    --btn-outline-bg: rgba(59, 130, 246, 0.08);
    --win11-outline-text: #34d399;
    --win11-outline-bg: rgba(16, 185, 129, 0.08);
}

body.light-mode {
    --bg-dark: #f3f4f6;
    --bg-card: rgba(255, 255, 255, 0.85);
    --bg-card-hover: rgba(255, 255, 255, 0.95);
    --header-bg: rgba(243, 244, 246, 0.9);
    --sidebar-bg: #e5e7eb;
    
    --text-primary: #111827;
    --text-secondary: #4b5563;
    --text-muted: #5e6b7e;
    
    --border-color: rgba(0, 0, 0, 0.08);
    --border-hover: rgba(0, 114, 255, 0.4);
    
    --accent-glow: rgba(0, 114, 255, 0.05);
    --warning-glow: rgba(245, 158, 11, 0.05);
    
    --window-header-bg: #e5e7eb;
    --window-mock-bg: #ffffff;
    --blob-opacity: 0.06;
    
    --shadow-card: rgba(0, 0, 0, 0.06);
    --shadow-window: rgba(0, 0, 0, 0.12);
    --shadow-glow: rgba(0, 114, 255, 0.03);
    
    --btn-bg: rgba(0, 0, 0, 0.05);
    --btn-bg-hover: rgba(0, 0, 0, 0.08);
    
    --tab-bg: rgba(0, 0, 0, 0.05);
    --badge-bg: #ffffff;
    --notes-bg: rgba(0, 0, 0, 0.03);
    --footer-bg: #d1d5db;
    
    --logo-color: #0078d4;
    --logo-shadow: none;
    --badge-text: #0066cc;
    --badge-bg-tag: rgba(0, 102, 204, 0.06);
    --badge-border: rgba(0, 102, 204, 0.15);
    --link-color: #0066cc;
    --note-icon-color: #0078d4;
    --note-icon-bg: rgba(0, 120, 212, 0.06);
    --btn-outline-text: #1d4ed8;
    --btn-outline-bg: rgba(29, 78, 216, 0.06);
    --win11-outline-text: #047857;
    --win11-outline-bg: rgba(4, 120, 87, 0.06);
}

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

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

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-primary);
    line-height: 1.6;
    position: relative;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Background Glow Blobs */
.glow-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

.glow-blob {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(140px);
    opacity: var(--blob-opacity);
    transition: opacity 0.3s ease;
}

.blob-1 {
    background: radial-gradient(circle, #0072ff 0%, transparent 70%);
    top: -100px;
    right: -100px;
}

.blob-2 {
    background: radial-gradient(circle, #00c6ff 0%, transparent 70%);
    top: 800px;
    left: -200px;
}

/* Utilities */
.gradient-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--badge-bg-tag);
    border: 1px solid var(--badge-border);
    color: var(--badge-text);
    padding: 6px 14px;
    border-radius: 99px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-smooth);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary-gradient);
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(0, 114, 255, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 114, 255, 0.4);
}

.btn-secondary {
    background: var(--btn-bg);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: var(--btn-bg-hover);
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

/* ==========================================================================
   Header / Sticky Navigation
   ========================================================================== */
.main-header {
    background: var(--header-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    z-index: 1000;
    display: flex;
    align-items: center;
    padding: 0 24px;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.header-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.menu-toggle-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.3rem;
    cursor: pointer;
    outline: none;
    padding: 4px;
}

.logo-link {
    text-decoration: none;
    color: inherit;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-header);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo-icon {
    font-size: 1.4rem;
    color: var(--logo-color);
    filter: var(--logo-shadow);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 12px;
}

.theme-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--btn-bg);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition-smooth);
    outline: none;
}

.theme-toggle-btn:hover {
    background: var(--btn-bg-hover);
    border-color: var(--border-hover);
    transform: scale(1.05);
}

.github-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--btn-bg);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 8px 16px;
    border-radius: 99px;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.github-btn:hover {
    background: var(--btn-bg-hover);
    border-color: var(--border-hover);
    transform: translateY(-1px);
}

/* GitHub Premium Star Button */
.github-star-btn {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition-smooth);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: var(--btn-bg);
    color: var(--text-primary);
}

.github-star-btn:hover {
    border-color: var(--border-hover);
    background: var(--btn-bg-hover);
    transform: translateY(-1px);
}

.star-btn-main {
    padding: 8px 12px;
    display: flex;
    align-items: center;
}

.star-btn-count {
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-left: 1px solid var(--border-color);
    display: inline-flex;
    align-items: center;
    color: var(--text-secondary);
    font-weight: 600;
}

body.light-mode .star-btn-count {
    background: rgba(0, 0, 0, 0.03);
}

/* ==========================================================================
   Sidebar Navigation Panel (Fixed Left)
   ========================================================================== */
.sidebar {
    position: fixed;
    top: 60px;
    bottom: 0;
    left: 0;
    width: 280px;
    background-color: var(--sidebar-bg);
    border-right: 1px solid var(--border-color);
    z-index: 999;
    overflow-y: auto;
    padding: 24px 16px;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s ease, border-color 0.3s ease;
}

/* Custom Scrollbar for Sidebar */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 99px;
}

body.light-mode .sidebar::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
}

.sidebar-nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sidebar-nav-item {
    width: 100%;
}

.sidebar-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-radius: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.sidebar-nav-link:hover {
    color: var(--text-primary);
    background: var(--btn-bg);
}

.sidebar-nav-link.active {
    color: var(--logo-color);
    background: rgba(0, 198, 255, 0.08);
    border-left: 3px solid var(--logo-color);
    border-radius: 0 8px 8px 0;
    font-weight: 600;
    padding: 10px 16px 10px 13px;
}

.sidebar-nav-link.active:hover {
    background: rgba(0, 198, 255, 0.12);
    color: var(--logo-color);
}

body.light-mode .sidebar-nav-link.active {
    color: var(--logo-color);
    background: rgba(0, 120, 212, 0.08);
    border-left-color: var(--logo-color);
}

body.light-mode .sidebar-nav-link.active:hover {
    background: rgba(0, 120, 212, 0.12);
}

.sidebar-nav-link i {
    width: 16px;
    text-align: center;
    font-size: 1rem;
}

/* Category Collapsible Items */
.category-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    cursor: pointer;
    user-select: none;
}

.category-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.category-caret {
    font-size: 0.8rem;
    transition: transform 0.2s ease;
}

.category-content {
    display: none;
    list-style: none;
    padding-left: 12px;
    flex-direction: column;
    gap: 4px;
}

.category-item.expanded .category-content {
    display: flex;
}

.sidebar-divider {
    height: 1px;
    background: var(--border-color);
    margin: 16px 0;
}

/* Mobile Sidebar Backdrop */
.sidebar-backdrop {
    display: none;
    position: fixed;
    top: 60px;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 998;
    transition: opacity 0.3s ease;
    opacity: 0;
    pointer-events: none;
}

.sidebar-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

/* ==========================================================================
   Main Content Layout (Right Side Panel)
   ========================================================================== */
.main-wrapper {
    margin-left: 280px;
    padding-top: 60px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.content-area {
    flex: 1;
    padding: 50px 40px;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

/* Content Page Transitions (SPA) */
.content-section {
    display: none;
    animation: fadeUp 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.content-section.active {
    display: block;
}

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

/* ==========================================================================
   General Pages Content Styling
   ========================================================================== */

/* Headings & Page Header */
.page-title {
    font-family: var(--font-header);
    font-size: clamp(2rem, 4vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.8px;
    line-height: 1.2;
    margin-bottom: 12px;
}

.page-subtitle {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 30px;
    max-width: 800px;
}

.section-divider {
    height: 1px;
    background: var(--border-color);
    margin: 40px 0;
}

/* ==========================================================================
   Home / Dashboard Page Styles
   ========================================================================== */
.welcome-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 40px;
    margin-bottom: 50px;
}

.welcome-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 8px 24px var(--shadow-card);
    transition: var(--transition-smooth);
}

.welcome-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px var(--shadow-glow);
}

.welcome-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--note-icon-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--note-icon-color);
    font-size: 1.2rem;
    margin: 0 auto 16px auto;
    border: 1px solid var(--border-color);
}

.welcome-card h3 {
    font-family: var(--font-header);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.welcome-card p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 16px;
}

.welcome-card .btn-sm {
    padding: 6px 14px;
    font-size: 0.8rem;
    border-radius: 6px;
}

.intro-banner {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px var(--shadow-card);
}

.intro-banner p {
    margin-bottom: 16px;
}

.intro-banner p:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   OS Switcher Pill Tabs
   ========================================================================== */
.os-switcher-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;
}

.os-switcher-info h3 {
    font-family: var(--font-header);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.os-switcher-info p {
    color: var(--text-secondary);
    font-size: 0.92rem;
}

.tabs-container {
    background: var(--tab-bg);
    padding: 4px;
    border-radius: 99px;
    display: inline-flex;
    border: 1px solid var(--border-color);
}

.tab-btn {
    padding: 8px 20px;
    border-radius: 99px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    outline: none;
}

.tab-btn:hover {
    color: var(--text-primary);
}

.tab-btn.active {
    background: var(--primary-gradient);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 114, 255, 0.2);
}

/* ==========================================================================
   Timeline / Step Timelines (Used in ISO, Rufus, & Install)
   ========================================================================== */
.steps-timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.steps-timeline::before {
    content: '';
    position: absolute;
    top: 20px;
    bottom: 20px;
    left: 45px;
    width: 2px;
    background: linear-gradient(to bottom, rgba(0, 198, 255, 0.15), rgba(0, 114, 255, 0.02));
    z-index: 0;
}

.step-card {
    position: relative;
    padding-left: 110px;
    margin-bottom: 60px;
}

.step-badge {
    position: absolute;
    left: 10px;
    top: 0;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--badge-bg);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-header);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-primary);
    box-shadow: 0 0 20px var(--shadow-card);
    z-index: 2;
    transition: var(--transition-smooth);
}

.step-card:hover .step-badge {
    border-color: #00c6ff;
    box-shadow: 0 0 20px rgba(0, 198, 255, 0.3);
    transform: scale(1.05);
}

.step-content {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 30px 40px;
    box-shadow: 0 10px 30px var(--shadow-card);
    transition: var(--transition-smooth);
}

.step-card:hover .step-content {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    box-shadow: 0 15px 40px var(--shadow-glow);
}

.step-title {
    font-family: var(--font-header);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.step-text {
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-size: 1.02rem;
}

.step-alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 24px;
    font-size: 0.95rem;
}

.step-alert.warning {
    background: var(--warning-glow);
    border: 1px solid rgba(245, 158, 11, 0.2);
    color: #fbd38d;
}

body.light-mode .step-alert.warning {
    color: #b45309;
}

.step-alert.warning i {
    color: var(--warning-yellow);
    margin-top: 3px;
}

/* Sub-steps nested inside timeline cards */
.sub-step-wrapper {
    border-top: 1px dashed var(--border-color);
    margin-top: 30px;
    padding-top: 24px;
}

.sub-step-title {
    font-family: var(--font-header);
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.sub-step-title i {
    font-size: 0.9rem;
    color: #00c6ff;
}

/* ==========================================================================
   Window Mock Frame (Beautiful Screenshots Wrapper)
   ========================================================================== */
.window-mock {
    border-radius: 12px;
    background: var(--window-mock-bg);
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: 0 15px 35px var(--shadow-window);
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 24px;
}

.window-mock:last-child {
    margin-bottom: 0;
}

.window-header {
    height: 36px;
    background: var(--window-header-bg);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    padding: 0 16px;
    gap: 6px;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot-red { background-color: #ef4444; }
.dot-yellow { background-color: #f59e0b; }
.dot-green { background-color: #10b981; }

.window-title-text {
    margin-left: 12px;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.window-body {
    background: rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
}

body.light-mode .window-body {
    background: rgba(0, 0, 0, 0.02);
}

.step-image {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
    transition: transform 0.5s ease;
}

.window-mock:hover .step-image {
    transform: scale(1.01);
}

/* ==========================================================================
   Activation Methods Tab Panels & Details (MAS Page)
   ========================================================================== */
.mas-methods-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 50px;
    box-shadow: 0 10px 30px var(--shadow-card);
}

.mas-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 30px;
    gap: 10px;
}

.mas-tab-header {
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 12px 20px;
    color: var(--text-secondary);
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.mas-tab-header:hover {
    color: var(--text-primary);
}

.mas-tab-header.active {
    color: var(--accent-blue);
    border-bottom-color: var(--accent-blue);
}

.mas-tab-panel {
    display: none;
}

.mas-tab-panel.active {
    display: block;
}

.launcher-command {
    margin: 20px 0;
}

.code-block-container {
    background: #0d0e11 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 10px;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.3);
}

body.light-mode .code-block-container {
    background: #0d0e11 !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
}

.code-block-content {
    font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', Courier, monospace;
    font-size: 0.95rem;
    color: #e2e8f0 !important;
    word-break: break-all;
    font-weight: 500;
}

.code-block-content .code-keyword {
    color: #f43f5e !important;
    font-weight: 600;
}

.code-block-content .code-string {
    color: #10b981 !important;
}

.code-block-content .code-function {
    color: #6366f1 !important;
}

.btn-copy {
    background: var(--btn-bg);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-copy:hover {
    background: var(--btn-bg-hover);
    border-color: var(--border-hover);
}

.code-block-container .btn-copy {
    color: #e2e8f0 !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    background: rgba(255, 255, 255, 0.05) !important;
}

.code-block-container .btn-copy:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

/* Features grid for MAS methods */
.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}

.detail-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 8px 24px var(--shadow-card);
    transition: var(--transition-smooth);
}

.detail-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px var(--shadow-glow);
}

.detail-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--note-icon-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--note-icon-color);
    font-size: 1.2rem;
    margin-bottom: 16px;
    border: 1px solid var(--border-color);
}

.detail-card h3 {
    font-family: var(--font-header);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.detail-card p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.5;
}

/* ==========================================================================
   Activation table (MAS summary)
   ========================================================================== */
.table-responsive {
    overflow-x: auto;
    width: 100%;
    margin-bottom: 40px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.summary-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.92rem;
    background: var(--bg-card);
}

.summary-table th {
    background-color: rgba(255, 255, 255, 0.02);
    color: var(--text-primary);
    font-weight: 700;
    padding: 1.1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

body.light-mode .summary-table th {
    background-color: rgba(0, 0, 0, 0.02);
}

.summary-table td {
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
    line-height: 1.5;
}

.summary-table tr:last-child td {
    border-bottom: none;
}

.summary-table tr:hover td {
    background-color: rgba(255, 255, 255, 0.01);
}

body.light-mode .summary-table tr:hover td {
    background-color: rgba(0, 0, 0, 0.01);
}

.badge-status {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.badge-status.permanent {
    background-color: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.badge-status.temporary {
    background-color: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.note-sub {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: normal;
    margin-left: 0.25rem;
}

/* ==========================================================================
   Notes Section (Grid layout at the bottom of guides)
   ========================================================================== */
.notes-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px var(--shadow-card);
    transition: var(--transition-smooth);
}

.notes-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 30px;
}

.warning-icon {
    font-size: 2rem;
    color: var(--warning-yellow);
    filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.3));
}

.notes-header h2 {
    font-family: var(--font-header);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
}

.notes-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.note-item {
    display: flex;
    gap: 16px;
}

.note-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--note-icon-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--note-icon-color);
    font-size: 1.2rem;
    flex-shrink: 0;
    border: 1px solid var(--border-color);
}

.note-info h4 {
    font-family: var(--font-header);
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.note-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Success footer card */
.success-footer-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    max-width: 700px;
    margin: 50px auto 0 auto;
    box-shadow: 0 15px 35px var(--shadow-card);
    position: relative;
    overflow: hidden;
}

.success-footer-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--win11-gradient);
}

.success-icon {
    font-size: 3rem;
    color: var(--success-green);
    margin-bottom: 16px;
    filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.3));
}

.success-footer-card h3 {
    font-family: var(--font-header);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.success-footer-card p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-size: 0.98rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.main-footer {
    background: var(--footer-bg);
    border-top: 1px solid var(--border-color);
    padding: 30px 24px;
    text-align: center;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    margin-top: auto;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-content p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-link {
    color: var(--link-color);
    text-decoration: none;
    font-weight: 500;
}

.footer-link:hover {
    color: #0072ff;
    text-decoration: underline;
}

/* ==========================================================================
   Responsive Breakpoints & Media Queries
   ========================================================================== */

/* Tablet View (max-width: 991px) */
@media (max-width: 991px) {
    .menu-toggle-btn {
        display: block;
    }
    
    .sidebar {
        left: -280px;
    }
    
    .sidebar.active {
        left: 0;
    }
    
    .sidebar-backdrop {
        display: block;
    }
    
    .main-wrapper {
        margin-left: 0;
    }
    
    .content-area {
        padding: 30px 20px;
    }
}

/* Mobile View (max-width: 768px) */
@media (max-width: 768px) {
    .steps-timeline::before {
        left: 27px;
    }
    
    .step-card {
        padding-left: 74px;
        margin-bottom: 40px;
    }
    
    .step-badge {
        width: 56px;
        height: 56px;
        left: 0;
        font-size: 0.8rem;
    }
    
    .step-content {
        padding: 20px;
        border-radius: 16px;
    }
    
    .notes-card {
        padding: 24px;
    }
    
    .notes-header h2 {
        font-size: 1.35rem;
    }
}

/* Small Mobile View (max-width: 480px) */
@media (max-width: 480px) {
    .main-header {
        padding: 0 16px;
    }
    
    .logo {
        font-size: 1.15rem;
        gap: 6px;
    }
    
    .theme-toggle-btn {
        width: 34px;
        height: 34px;
        font-size: 0.9rem;
    }
    
    .github-btn span {
        display: none;
    }
    
    .github-btn {
        width: 34px;
        height: 34px;
        padding: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
    }
    
    .content-area {
        padding: 24px 12px;
    }
    
    .steps-timeline::before {
        left: 23px;
    }
    
    .step-card {
        padding-left: 64px;
        margin-bottom: 30px;
    }
    
    .step-badge {
        width: 48px;
        height: 48px;
        font-size: 0.72rem;
    }
    
    .step-content {
        padding: 16px;
        border-radius: 12px;
    }
    
    .step-title {
        font-size: 1.1rem;
    }
    
    .step-text {
        font-size: 0.88rem;
        margin-bottom: 16px;
    }
    
    .window-header {
        height: 30px;
        padding: 0 10px;
    }
    
    .window-body {
        padding: 6px;
    }
}

/* ==========================================================================
   Download Banner Section
   ========================================================================== */
.download-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 16px 24px;
    border-radius: 12px;
    margin-bottom: 30px;
    gap: 16px;
    flex-wrap: wrap;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}
[data-theme="light"] .download-banner {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.08);
}
.download-banner .banner-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-heading);
}
.download-banner .btn {
    text-decoration: none;
    font-size: 0.9rem;
    white-space: nowrap;
    padding: 10px 16px;
}

/* ==========================================================================
   MAS Guide Premium Enhancements (Gallery, Lighbox, Alternative Command Drawer, Download Cards)
   ========================================================================== */
.alt-cmd-wrapper {
  margin-top: 1rem;
}
.alt-toggle-btn {
  background: none;
  border: none;
  color: var(--accent-blue);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0;
  transition: opacity 0.15s ease;
}
.alt-toggle-btn:hover {
  opacity: 0.8;
}
.alt-toggle-btn svg {
  width: 16px;
  height: 16px;
  stroke-width: 2.2;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.alt-toggle-btn.active svg {
  transform: rotate(180deg);
}
.alt-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}
.alt-content.open {
  max-height: 250px;
}
.screenshot-section {
  margin-top: 3rem;
  border-top: 1px solid var(--border-color);
  padding-top: 2.5rem;
}
.screenshot-section .section-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-heading);
}
.screenshot-section .section-title svg {
  width: 22px;
  height: 22px;
  color: #10b981;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}
.gallery-item {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}
.gallery-item:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: #10b981;
  box-shadow: 0 20px 35px rgba(0, 0, 0, 0.2), 0 0 25px rgba(16, 185, 129, 0.2);
  z-index: 10;
}
.image-container {
  position: relative;
  width: 100%;
  padding-top: calc(56.25% + 24px);
  background-color: #0d0e11;
  overflow: hidden;
}
.image-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 24px;
  background-color: #1a1c23;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  z-index: 2;
}
.image-container::after {
  content: '';
  position: absolute;
  top: 8px;
  left: 12px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #ff5f56;
  box-shadow: 14px 0 0 #ffbd2e, 28px 0 0 #27c93f;
  z-index: 3;
}
.image-container img {
  position: absolute;
  top: 24px;
  left: 0;
  width: 100%;
  height: calc(100% - 24px);
  object-fit: cover;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), filter 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.gallery-item:hover img {
  transform: scale(1.04);
  filter: brightness(1.08);
}
.gallery-caption {
  padding: 1rem 1.25rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  border-top: 1px solid var(--border-color);
  background-color: var(--bg-card);
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.gallery-caption::before {
  content: '→';
  color: #10b981;
  font-weight: bold;
  transition: transform 0.15s ease;
  display: inline-block;
}
.gallery-item:hover .gallery-caption::before {
  transform: translateX(4px);
}
.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0;
}
.download-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}
.download-card:hover {
  border-color: #10b981;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.download-info {
  display: flex;
  gap: 1rem;
}
.download-icon-wrapper {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background-color: rgba(16, 185, 129, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #10b981;
  flex-shrink: 0;
}
.download-icon-wrapper svg {
  width: 22px;
  height: 22px;
}
.download-details h4 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--text-heading);
}
.download-details p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.4;
}
.download-card .download-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: #10b981;
  color: white;
  text-decoration: none;
  padding: 0.75rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.15s ease;
  border: none;
  cursor: pointer;
}
.download-card .download-btn:hover {
  background-color: #059669;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}
.download-card .download-btn svg {
  width: 16px;
  height: 16px;
  stroke-width: 2.2;
}

/* Lightbox Modal (For screenshots expansion) */
.modal {
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), backdrop-filter 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.modal.open {
  opacity: 1;
  pointer-events: auto;
}
.modal-slider-container {
  width: 90vw;
  max-width: 1100px;
  height: 80vh;
  overflow: hidden;
  border-radius: 14px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.7);
  background-color: #0d0e11;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 999;
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.modal.open .modal-slider-container {
  transform: scale(1);
}
.modal-slider-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.modal-slide {
  width: 100%;
  height: 100%;
  flex-shrink: 0;
  object-fit: contain;
  background-color: #0d0e11;
}
.modal-nav-btn {
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  transition: all 0.15s ease;
  z-index: 10000;
  backdrop-filter: blur(4px);
  outline: none;
}
.modal-nav-btn:hover {
  background-color: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-50%) scale(1.05);
}
.modal-nav-btn svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
}
.modal .prev-btn {
  left: 24px;
}
.modal .next-btn {
  right: 24px;
}
.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.1);
  transition: background-color 0.15s ease;
  z-index: 10001;
}
.modal-close:hover {
  background-color: rgba(255, 255, 255, 0.2);
}
.modal-close svg {
  width: 24px;
  height: 24px;
}
