:root {
    --bg-primary: #0f0f13;
    --bg-secondary: #18181f;
    --bg-tertiary: #1f1f2a;
    --bg-card: #232330;
    --text-primary: #f0f0f5;
    --text-secondary: #a0a0b0;
    --text-muted: #6c6c7d;
    --accent: #4f8cff;
    --accent-hover: #6fa3ff;
    --accent-glow: rgba(79, 140, 255, 0.2);
    --success: #4ade80;
    --warning: #fbbf24;
    --danger: #f87171;
    --info: #60a5fa;
    --border: #2a2a3a;
    --border-light: #353545;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.5);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 20px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Page Layout */
.page-wrapper {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background-color: var(--bg-secondary);
    border-right: 1px solid var(--border);
    padding: 24px 0;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
    transition: var(--transition);
}

.sidebar-header {
    padding: 0 24px 20px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 16px;
}

.sidebar-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.sidebar-subtitle {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 4px;
}

.sidebar-nav ul {
    list-style: none;
    padding: 0 12px;
}

.sidebar-nav li {
    margin-bottom: 2px;
}

.nav-link {
    display: block;
    padding: 8px 12px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    border-left: 3px solid transparent;
}

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

.nav-link.active {
    background-color: var(--accent-glow);
    color: var(--accent);
    border-left-color: var(--accent);
    font-weight: 500;
}

.nav-link.completed {
    text-decoration: line-through;
    opacity: 0.5;
    color: var(--success);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 200;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
    border-radius: 2px;
}

.overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 90;
    backdrop-filter: blur(4px);
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 280px;
    padding: 0;
    width: calc(100% - 280px);
    max-width: none;
}

/* Hero Section */
.hero {
    padding: 80px clamp(24px, 5vw, 80px) 60px;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    border-bottom: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.badge {
    display: inline-block;
    padding: 6px 14px;
    background: var(--accent-glow);
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: 100px;
    margin-bottom: 20px;
    border: 1px solid rgba(79, 140, 255, 0.3);
}

.hero h1 {
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 28px;
    line-height: 1.7;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.meta-item {
    padding: 6px 14px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.hero-visual {
    margin-top: 40px;
}

.code-block {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 24px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.95rem;
    color: var(--text-secondary);
    display: inline-block;
}

.code-block .comment {
    color: var(--text-muted);
}

.code-block .operator {
    color: var(--accent);
    font-weight: 600;
}

/* Sections */
.section {
    padding: 48px clamp(24px, 5vw, 80px);
    border-bottom: 1px solid var(--border);
}

.section-alt {
    background-color: var(--bg-secondary);
}

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

.section-number {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent);
    background: var(--accent-glow);
    padding: 6px 12px;
    border-radius: 100px;
    border: 1px solid rgba(79, 140, 255, 0.3);
    min-width: 40px;
    text-align: center;
}

.section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.step-content {
    padding-left: 56px;
}

.step-content p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-size: 0.95rem;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    padding-left: 56px;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: var(--border-light);
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

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

.card-link {
    color: var(--accent);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
}

.card-link:hover {
    text-decoration: underline;
}

/* Checklist */
.checklist-container {
    padding-left: 56px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
}

.checklist-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    user-select: none;
}

.checklist-item:hover {
    border-color: var(--border-light);
}

.checklist-item input {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-light);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
}

.checkmark::after {
    content: '✓';
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    opacity: 0;
    transform: scale(0);
    transition: var(--transition);
}

.checklist-item input:checked + .checkmark {
    background: var(--success);
    border-color: var(--success);
}

.checklist-item input:checked + .checkmark::after {
    opacity: 1;
    transform: scale(1);
}

.checklist-item input:checked ~ .checklist-text {
    text-decoration: line-through;
    color: var(--text-muted);
}

.checklist-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: var(--transition);
}

/* Lists */
.step-list {
    list-style: none;
    margin-bottom: 20px;
}

.step-list li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 10px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.step-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0.6;
}

.step-list.numbered {
    counter-reset: step;
}

.step-list.numbered li {
    counter-increment: step;
}

.step-list.numbered li::before {
    content: counter(step);
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--accent);
    background: var(--accent-glow);
    border-radius: 50%;
    top: 2px;
    opacity: 1;
}

/* Info Boxes */
.info-box {
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    margin: 20px 0;
    font-size: 0.9rem;
    border-left: 4px solid;
}

.info-box.info {
    background: rgba(96, 165, 250, 0.1);
    border-left-color: var(--info);
    color: var(--info);
}

.info-box.success {
    background: rgba(74, 222, 128, 0.1);
    border-left-color: var(--success);
    color: var(--success);
}

.info-box.warning {
    background: rgba(251, 191, 36, 0.1);
    border-left-color: var(--warning);
    color: var(--warning);
}

.info-box.tip {
    background: rgba(167, 139, 250, 0.1);
    border-left-color: #a78bfa;
    color: #a78bfa;
}

.info-box strong {
    font-weight: 600;
}

/* Step Highlight */
.step-highlight {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    margin: 20px 0;
}

.highlight-label {
    display: inline-block;
    background: var(--warning);
    color: var(--bg-primary);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 100px;
    margin-bottom: 10px;
}

/* Shortcuts */
.shortcut-box {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.key {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    box-shadow: 0 2px 0 var(--border);
}

.separator {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Config Table */
.config-table {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin: 20px 0;
}

.config-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 20px;
    border-bottom: 1px solid var(--border);
}

.config-row:last-child {
    border-bottom: none;
}

.config-label {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.config-value {
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 500;
    font-family: 'Consolas', monospace;
}

/* Sockets Grid */
.sockets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px;
    margin: 20px 0;
}

.socket-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-family: 'Consolas', monospace;
    color: var(--accent);
    text-align: center;
    line-height: 1.4;
}

.socket-item small {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Bone List */
.bone-list {
    list-style: none;
    margin: 16px 0;
}

.bone-list li {
    padding: 8px 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
    border-bottom: 1px solid var(--border);
}

.bone-list li:last-child {
    border-bottom: none;
}

.bone-list code {
    background: var(--bg-tertiary);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'Consolas', monospace;
    font-size: 0.85rem;
    color: var(--accent);
}

/* Hierarchy */
.hierarchy-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    margin: 20px 0;
}

.hierarchy-box h4 {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tree {
    font-family: 'Consolas', monospace;
    font-size: 0.85rem;
}

.tree-item {
    padding: 4px 0;
    color: var(--text-secondary);
}

.tree-item.indent {
    padding-left: 24px;
}

.tree-item.indent2 {
    padding-left: 48px;
}

.tree-item.indent3 {
    padding-left: 72px;
}

/* File Tags */
.file-tags {
    display: flex;
    gap: 10px;
    margin: 16px 0;
    flex-wrap: wrap;
}

.file-tag {
    padding: 6px 14px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: 'Consolas', monospace;
    font-size: 0.85rem;
    color: var(--accent);
}

/* Button Group */
.btn-group {
    display: flex;
    gap: 10px;
    margin: 16px 0;
    flex-wrap: wrap;
}

.btn-tag {
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Code inline */
code {
    background: var(--bg-tertiary);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'Consolas', monospace;
    font-size: 0.9em;
    color: var(--accent);
}

/* Images */
.step-image {
    margin: 24px auto;
    max-width: 700px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}

.step-image:hover {
    border-color: var(--border-light);
    box-shadow: var(--shadow);
}

.step-image img {
    max-width: 100%;
    max-height: 450px;
    width: auto;
    height: auto;
    display: block;
    margin: 0 auto;
    object-fit: contain;
}

.image-caption {
    padding: 12px 16px;
    margin: 0 !important;
    font-size: 0.85rem !important;
    color: var(--text-muted) !important;
    font-style: italic;
    text-align: center;
}

/* Data Tables */
.data-table {
    width: 100%;
    max-width: 600px;
    border-collapse: collapse;
    margin: 16px 0 24px;
    font-size: 0.9rem;
}

.data-table td {
    padding: 10px 16px;
    border: 1px solid var(--border);
    color: var(--text-secondary);
}

.data-table tr:nth-child(odd) {
    background: var(--bg-card);
}

.data-table tr:nth-child(even) {
    background: var(--bg-tertiary);
}

.data-table th {
    padding: 10px 16px;
    border: 1px solid var(--border);
    background: var(--bg-tertiary);
    color: var(--text-primary);
    font-weight: 600;
    text-align: left;
    font-size: 0.85rem;
}

.data-table td:first-child {
    font-family: 'Consolas', monospace;
    color: var(--accent);
    font-weight: 500;
    width: 40%;
}

/* Image grid for multiple screenshots */
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin: 24px 0;
}

.image-grid .step-image {
    margin: 0;
}

/* Footer */
.site-footer {
    padding: 40px clamp(24px, 5vw, 80px);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    border-top: 1px solid var(--border);
}

.site-footer p {
    margin-bottom: 8px;
}

.sidebar-admin {
    margin-top: auto;
    padding: 16px 12px 0;
    border-top: 1px solid var(--border);
}

.admin-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 0.8rem;
    text-decoration: none;
    transition: var(--transition);
}

.admin-link:hover {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border-color: var(--border-light);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-light);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Selection */
::selection {
    background: var(--accent-glow);
    color: var(--accent);
}

/* Responsive */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .overlay.active {
        display: block;
    }
    
    .hero {
        padding: 100px 24px 40px;
    }
    
    .section {
        padding: 32px 24px;
    }
    
    .step-content,
    .cards-grid,
    .checklist-container {
        padding-left: 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
}

@media (max-width: 640px) {
    .hero h1 {
        font-size: 1.6rem;
    }
    
    .section h2 {
        font-size: 1.25rem;
    }
    
    .hero-meta {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
    }
    
    .sockets-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section {
    animation: fadeIn 0.5s ease-out forwards;
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(15, 15, 19, 0.92);
    backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 40px 20px;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-img {
    max-width: 90vw;
    max-height: 80vh;
    width: auto;
    height: auto;
    border-radius: var(--radius);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    object-fit: contain;
}

.lightbox.active .lightbox-img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-primary);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 10001;
}

.lightbox-close:hover {
    background: var(--danger);
    border-color: var(--danger);
    color: white;
    transform: rotate(90deg);
}

.lightbox-caption {
    margin-top: 16px;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-style: italic;
    text-align: center;
    max-width: 800px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease 0.1s, transform 0.3s ease 0.1s;
}

.lightbox.active .lightbox-caption {
    opacity: 1;
    transform: translateY(0);
}

/* Curseur zoom sur les images cliquables */
.step-image img {
    cursor: zoom-in;
}

.lightbox.active .lightbox-img {
    cursor: default;
}

/* ============================================
   NOUVELLES FONCTIONNALITÉS
   ============================================ */

/* Search Box */
.search-box {
    padding: 0 16px 16px;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 10px 36px 10px 14px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    outline: none;
    transition: var(--transition);
}

.search-box input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.search-box input::placeholder {
    color: var(--text-muted);
}

.search-icon {
    position: absolute;
    right: 26px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.85rem;
    opacity: 0.6;
    pointer-events: none;
}

.search-count {
    display: block;
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 6px;
    min-height: 16px;
}

/* Section Check (checkbox par étape) */
.section-check {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    cursor: pointer;
    user-select: none;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.section-check:hover {
    background: var(--bg-tertiary);
}

.section-check input {
    display: none;
}

.section-check .checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-light);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
}

.section-check .checkmark::after {
    content: '✓';
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    opacity: 0;
    transform: scale(0);
    transition: var(--transition);
}

.section-check input:checked + .checkmark {
    background: var(--success);
    border-color: var(--success);
}

.section-check input:checked + .checkmark::after {
    opacity: 1;
    transform: scale(1);
}

.section-check-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.section-check input:checked ~ .section-check-text {
    color: var(--success);
}

/* Style quand une section est terminée */
.section.completed .section-header h2 {
    text-decoration: line-through;
    opacity: 0.5;
}

.section.completed {
    opacity: 0.7;
}

/* Copyable (copier en 1 clic) */
.copyable {
    position: relative;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 4px;
    padding: 0 4px;
    margin: 0 -4px;
}

.copyable:hover {
    background: var(--accent-glow);
    color: var(--accent);
}

.copyable::after {
    content: '📋';
    position: absolute;
    top: -16px;
    right: -8px;
    font-size: 0.7rem;
    opacity: 0;
    transform: translateY(4px);
    transition: var(--transition);
    pointer-events: none;
}

.copyable:hover::after {
    opacity: 1;
    transform: translateY(0);
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    color: var(--text-primary);
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    z-index: 20000;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast::before {
    content: '✓';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: var(--success);
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

/* Highlight Search */
mark.search-highlight {
    background: rgba(79, 140, 255, 0.25);
    color: var(--accent-hover);
    padding: 1px 3px;
    border-radius: 3px;
    font-weight: 600;
}

/* No results state */
.no-results {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Responsive search */
@media (max-width: 1024px) {
    .search-box {
        padding: 0 12px 12px;
    }

    .section-check {
        padding: 4px 6px;
    }

    .section-check-text {
        display: none;
    }
}


