/* ===================================
   CSS Reset & Base Styles
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #f7f6f9;
    color: #1a1a2e;
    line-height: 1.6;
    min-height: 100vh;
}

/* ===================================
   Documentation Container
   =================================== */
.docs-container {
    display: flex;
    max-width: 1600px;
    margin: 0 auto;
    padding-top: 80px;
    min-height: 100vh;
}

/* ===================================
   Sidebar Navigation
   =================================== */
.sidebar {
    position: sticky;
    top: 0;
    width: 280px;
    height: 100vh;
    padding: 2rem 1rem;
    overflow-y: auto;
    background: #ffffff;
    border-right: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.sidebar-title {
    color: #1a1a2e;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.nav-section {
    margin-bottom: 1.5rem;
}

.nav-section-link {
    display: block;
    color: #1a1a2e;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    margin-bottom: 0.5rem;
}

.nav-section-link:hover,
.nav-section-link.active {
    background: #f0f4ff;
    color: #6366f1;
}

.nav-subsection {
    list-style: none;
    margin-left: 1rem;
    padding-left: 1rem;
    border-left: 2px solid #e2e8f0;
}

.nav-subsection li {
    margin-bottom: 0.4rem;
}

.nav-subsection a {
    display: block;
    color: #64748b;
    text-decoration: none;
    font-size: 0.85rem;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.nav-subsection a:hover,
.nav-subsection a.active {
    color: #6366f1;
    background: #dee5fb;
}

.nav-subsection a.nav-gold {
    color: #b8860b;
    font-weight: 600;
    background: #fef3c77c;
}

.nav-subsection a.nav-gold:hover {
    color: #996515;
    background: #fff1b7;
}

/* ===================================
   Main Documentation Content
   =================================== */
.docs-content {
    flex: 1;
    padding: 2rem 3rem;
    max-width: 1200px;
}

.intro-section {
    margin-bottom: 2.5rem;
}

.intro-section h1 {
    font-size: 2.5rem;
    color: #1a1a2e;
    margin-bottom: 1rem;
    font-weight: 800;
}

.intro-text {
    font-size: 1.05rem;
    color: #475569;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* ===================================
   Mode Legend
   =================================== */
.mode-legend {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    padding: 1.25rem 1.75rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.875rem;
    color: #475569;
}

/* ===================================
   Mode Badges
   =================================== */
.mode-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.3rem 0.7rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.mode-badge.adb {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.mode-badge.app {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
}

.mode-badge.hybrid {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.mode-badge.beta {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
    animation: betaPulse 2s ease-in-out infinite;
}

@keyframes betaPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.85;
    }
}

.mode-badge.windows {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.3);
}

.links {
    color: #3b82f6;
    /* Tailwind link blue */
    font-weight: 600;
    text-decoration: none;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: opacity 0.2s ease;
}

.links:hover {
    opacity: 0.75;
}

/* ===================================
   Hotkey Badge
   =================================== */
.hotkey-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.65rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', 'Consolas', monospace;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: #e2e8f0;
    border: 1px solid #475569;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.hotkey-badge::before {
    content: "⌨";
    font-size: 0.8rem;
}

/* ===================================
   Documentation Sections
   =================================== */
.doc-section {
    margin-bottom: 3rem;
    padding: 2rem;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.doc-section.highlight {
    background: #f0f4ff;
    border-color: #c7d2fe;
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.15);
}

.section-title {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    font-size: 1.6rem;
    color: #1a1a2e;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.section-icon {
    width: 32px;
    height: 32px;
    color: #6366f1;
    flex-shrink: 0;
}

.section-intro {
    font-size: 1rem;
    color: #475569;
    margin-bottom: 1.75rem;
    line-height: 1.7;
    padding-left: 2.75rem;
}

/* ===================================
   Feature Details with Header
   =================================== */
.feature-detail {
    margin-bottom: 1.25rem;
    padding: 1.25rem 1.5rem;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 2px solid #6366f1;
    transition: all 0.3s ease;
}

.feature-detail:last-child {
    margin-bottom: 0;
}


.feature-detail.highlight {
    background: #f0f4ff;
    border-left-color: #8b5cf6;
    box-shadow: 0 6px 25px rgba(99, 102, 241, 0.2);
    animation: pulse 1s ease-in-out;
}

/* Feature Header with Title & Badges */
.feature-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.65rem;
    flex-wrap: wrap;
}

.feature-header h3 {
    font-size: 1.15rem;
    color: #1a1a2e;
    font-weight: 600;
    margin: 0;
}

.feature-badges {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.feature-detail p {
    color: #475569;
    line-height: 1.7;
    font-size: 0.95rem;
    margin: 0;
}

/* Feature Images */
.image-wrapper {
    position: relative;
    display: inline-block;
    margin-top: 1.25rem;
}

.feature-image {
    max-height: 400px;
    height: auto;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    padding: 6px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    cursor: pointer;
}

.feature-image:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.feature-image img {
    width: 100%;
}

/* Expand Button on Image Hover */
.image-expand-btn {
    position: absolute;
    bottom: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    background: rgba(99, 102, 241, 0.9);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.image-expand-btn svg {
    width: 20px;
    height: 20px;
    color: #fff;
}

.image-wrapper:hover .image-expand-btn {
    opacity: 1;
    transform: scale(1);
}

.image-expand-btn:hover {
    background: rgba(99, 102, 241, 1);
    transform: scale(1.1);
}

/* ===================================
   Fullscreen Lightbox Overlay
   =================================== */
#image-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    cursor: pointer;
}

#image-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    cursor: default;
}

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

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 25px;
    width: 50px;
    height: 50px;
    background: #ef4444;
    border: none;
    border-radius: 50%;
    font-size: 32px;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.4);
    z-index: 10000;
}

.lightbox-close:hover {
    background: #dc2626;
    transform: scale(1.1) rotate(90deg);
}


@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.95;
    }
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 1024px) {
    .docs-content {
        padding: 2rem 1.5rem;
    }

    .intro-section h1 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .mode-legend {
        gap: 1rem;
    }
}

@media (max-width: 950px) {
    .sidebar {
        display: none;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 0 1rem;
    }

    .nav {
        gap: 1rem;
    }

    .nav-link {
        font-size: 0.9rem;
    }

    .logo-text {
        display: none;
    }

    .docs-content {
        padding: 1.5rem 1rem;
    }

    .intro-section h1 {
        font-size: 1.75rem;
    }

    .section-title {
        font-size: 1.25rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .section-intro {
        padding-left: 0;
    }

    .feature-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.6rem;
    }

    .feature-header h3 {
        font-size: 1.05rem;
    }

    .feature-badges {
        width: 100%;
    }

    .mode-legend {
        flex-direction: column;
        gap: 0.75rem;
        padding: 1rem 1.25rem;
    }

    .doc-section {
        padding: 1.5rem 1.25rem;
    }
}

@media (max-width: 480px) {
    .feature-detail {
        padding: 1rem;
    }

    .feature-header h3 {
        font-size: 1rem;
    }

    .mode-badge {
        font-size: 0.65rem;
        padding: 0.25rem 0.6rem;
    }

    .hotkey-badge {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
    }

    .feature-image {
        max-width: 100%;
    }
}

/* ===================================
   Utility Classes
   =================================== */
.text-gradient {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.code {
    background: #f0f4ff;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: #6366f1;
    font-size: 0.9em;
}

/* ===================================
   Architecture Overview Styles
   =================================== */
.architecture-section {
    background: #ffffff;
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 2.5rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.architecture-section h2 {
    font-size: 1.6rem;
    color: #1a1a2e;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.architecture-intro {
    color: #475569;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

/* Architecture Diagram */
.architecture-diagram {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.arch-layer {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.arch-components {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    flex: 1;
}

.arch-box {
    padding: 0.85rem 1.25rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    cursor: default;
}

.arch-box.windows {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
}

.arch-box.android {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.arch-box.bridge {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.arch-box.protocol {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.arch-connector {
    display: flex;
    justify-content: center;
    padding: 0.5rem 0;
}

.arch-connector svg {
    width: 24px;
    height: 24px;
    color: #94a3b8;
}

/* Dual Mode Explanation */
.dual-mode-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.mode-card {
    padding: 1.5rem;
    border-radius: 14px;
    border: 2px solid;
    transition: all 0.3s ease;
}

.mode-card.adb-mode {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border-color: #10b981;
}

.mode-card.app-mode {
    background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 100%);
    border-color: #8b5cf6;
}

.mode-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mode-card.adb-mode h4 {
    color: #059669;
}

.mode-card.app-mode h4 {
    color: #7c3aed;
}

.mode-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mode-card li {
    padding: 0.4rem 0;
    font-size: 0.9rem;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mode-card li::before {
    content: '✓';
    color: inherit;
    font-weight: 700;
}

.mode-card.adb-mode li::before {
    color: #10b981;
}

.mode-card.app-mode li::before {
    color: #8b5cf6;
}

/* ===================================
   Security & Privacy Section
   =================================== */
.security-section {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 2.5rem;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.security-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.security-section h2 {
    color: #fff;
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.security-section .section-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    margin-bottom: 2rem;
}

.security-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.25rem;
}

.security-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border-radius: 14px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.security-card:hover {
    background: rgba(255, 255, 255, 0.12);
}

.security-card .card-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
}

.security-card .card-icon svg {
    width: 24px;
    height: 24px;
    color: #fff;
}

.security-card h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #fff;
}

.security-card p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin: 0;
}

/* Permissions Table */
.permissions-table {
    margin-top: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.permissions-table h4 {
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.08);
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.permission-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    gap: 1rem;
    flex-wrap: wrap;
}

.permission-item:last-child {
    border-bottom: none;
}

.permission-name {
    font-weight: 600;
    color: #fff;
    font-size: 0.9rem;
}

.permission-reason {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    text-align: right;
}

/* ===================================
   Troubleshooting Section
   =================================== */
.troubleshooting-section {
    background: #ffffff;
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 2.5rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.troubleshooting-section h2 {
    font-size: 1.6rem;
    color: #1a1a2e;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.troubleshooting-section .section-subtitle {
    color: #64748b;
    font-size: 1rem;
    margin-bottom: 2rem;
}

.troubleshoot-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.troubleshoot-tab {
    padding: 0.6rem 1.25rem;
    border-radius: 50px;
    background: #f1f5f9;
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.troubleshoot-tab:hover,
.troubleshoot-tab.active {
    background: #6366f1;
    color: #fff;
}

.error-card {
    background: #f8fafc;
    border-radius: 14px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-left: 4px solid #ef4444;
    transition: all 0.3s ease;
}

.error-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.error-card.warning {
    border-left-color: #f59e0b;
}

.error-card.info {
    border-left-color: #3b82f6;
}

.error-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.error-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a2e;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.error-title .error-icon {
    color: #ef4444;
}

.error-card.warning .error-title .error-icon {
    color: #f59e0b;
}

.error-card.info .error-title .error-icon {
    color: #3b82f6;
}

.error-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.error-tag {
    padding: 0.25rem 0.6rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    background: #fee2e2;
    color: #dc2626;
}

.error-card.warning .error-tag {
    background: #fef3c7;
    color: #d97706;
}

.error-card.info .error-tag {
    background: #dbeafe;
    color: #2563eb;
}

.error-cause {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.error-solution {
    background: #ecfdf5;
    border-radius: 10px;
    padding: 1rem 1.25rem;
}

.error-solution h5 {
    font-size: 0.85rem;
    font-weight: 600;
    color: #059669;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.error-solution p,
.error-solution li {
    font-size: 0.875rem;
    color: #047857;
    line-height: 1.6;
    margin: 0;
}

.error-solution ul {
    margin: 0.5rem 0 0 1.25rem;
    padding: 0;
}

.error-solution li {
    margin-bottom: 0.35rem;
}

/* Brand-specific issues */
.brand-issues {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.brand-card {
    background: #f8fafc;
    border-radius: 12px;
    padding: 1.25rem;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.brand-card:hover {
    border-color: #6366f1;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.1);
}

.brand-card h5 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 0.5rem;
}

.brand-card p {
    font-size: 0.8rem;
    color: #64748b;
    line-height: 1.5;
    margin: 0;
}

/* ===================================
   Inline Alert Boxes
   =================================== */
.alert-box {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-radius: 12px;
    margin: 1.25rem 0;
    border-left: 4px solid;
}

.alert-box .alert-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    margin-top: 2px;
}

.alert-box .alert-content {
    flex: 1;
}

.alert-box .alert-title {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.35rem;
}

.alert-box .alert-text {
    font-size: 0.875rem;
    line-height: 1.6;
    margin: 0;
}

/* Warning Alert */
.alert-box.warning {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border-left-color: #f59e0b;
}

.alert-box.warning .alert-icon {
    color: #d97706;
}

.alert-box.warning .alert-title {
    color: #b45309;
}

.alert-box.warning .alert-text {
    color: #92400e;
}

/* Tip Alert */
.alert-box.tip {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-left-color: #22c55e;
}

.alert-box.tip .alert-icon {
    color: #16a34a;
}

.alert-box.tip .alert-title {
    color: #15803d;
}

.alert-box.tip .alert-text {
    color: #166534;
}

/* Info Alert */
.alert-box.info {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-left-color: #3b82f6;
}

.alert-box.info .alert-icon {
    color: #2563eb;
}

.alert-box.info .alert-title {
    color: #1d4ed8;
}

.alert-box.info .alert-text {
    color: #1e40af;
}

/* Error Alert */
.alert-box.error {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border-left-color: #ef4444;
}

.alert-box.error .alert-icon {
    color: #dc2626;
}

.alert-box.error .alert-title {
    color: #b91c1c;
}

.alert-box.error .alert-text {
    color: #991b1b;
}

/* ===================================
   Responsive Updates for New Sections
   =================================== */
@media (max-width: 768px) {

    .quick-start-section,
    .architecture-section,
    .security-section,
    .troubleshooting-section {
        padding: 1.5rem;
        border-radius: 16px;
    }

    .quick-start-section h2,
    .architecture-section h2,
    .security-section h2,
    .troubleshooting-section h2 {
        font-size: 1.35rem;
    }

    .quick-start-steps {
        grid-template-columns: 1fr;
    }

    .quick-step {
        padding: 1.25rem;
    }

    .arch-layer {
        flex-direction: column;
        align-items: flex-start;
    }

    .dual-mode-grid {
        grid-template-columns: 1fr;
    }

    .security-grid {
        grid-template-columns: 1fr;
    }

    .permission-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .permission-reason {
        text-align: left;
    }

    .brand-issues {
        grid-template-columns: 1fr;
    }

    .alert-box {
        flex-direction: column;
        gap: 0.75rem;
    }

    .error-header {
        flex-direction: column;
    }

    .error-tags {
        margin-top: 0.5rem;
    }
}

@media (max-width: 480px) {
    .step-number {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .troubleshoot-categories {
        flex-direction: column;
    }

    .troubleshoot-tab {
        width: 100%;
        text-align: center;
    }
}