body { background: #12151d; }

.docs-section {
    background: #12151d;
    padding: 4rem 1.5rem 6rem;
    min-height: calc(100vh - 200px);
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
}
.page-header h1 {
    color: white;
    margin-bottom: 0.75rem;
    font-size: 2.25rem;
    font-weight: 500;
    letter-spacing: -0.02em;
}
.page-header p {
    color: #b0b3b8;
    font-size: 1.05rem;
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.6;
}
.page-header .featuring {
    margin-top: 0.75rem;
    font-size: 0.95rem;
    color: #b0b3b8;
}

.docs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin: 0 auto 0;
    max-width: 1100px;
    align-items: stretch;
}
@media (max-width: 900px) { .docs-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .docs-grid { grid-template-columns: 1fr; } }

.doc-card {
    background: rgba(36,40,56,0.4);
    padding: 2rem 1.75rem;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.04);
    transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    backdrop-filter: blur(10px);
    cursor: pointer;
    height: 100%;
    width: 100%;
}
.doc-card:hover {
    border-color: rgba(255,92,0,0.18);
    background: rgba(36,40,56,0.6);
    transform: translateY(-2px);
}
.doc-card.active {
    border-color: rgba(255,92,0,0.45);
    background: rgba(36,40,56,0.75);
    box-shadow: 0 0 0 1px rgba(255,92,0,0.12), 0 8px 32px rgba(0,0,0,0.35);
    transform: translateY(-2px);
}
.doc-card.active .doc-icon { color: rgba(255,92,0,1); }
.doc-card.active .btn-text { color: rgba(255,92,0,1); }
.doc-card .btn-text { margin-top: auto; }

.doc-icon {
    font-size: 2.25rem;
    color: rgba(255,92,0,0.7);
    margin-bottom: 1.25rem;
    transition: color 0.25s ease;
}
.doc-card:hover .doc-icon { color: rgba(255,92,0,0.9); }
.doc-card h3 {
    color: white;
    font-size: 1.15rem;
    font-weight: 500;
    margin-bottom: 0.65rem;
    letter-spacing: -0.01em;
}
.doc-card p {
    color: #b0b3b8;
    line-height: 1.6;
    margin-bottom: 1.25rem;
    font-size: 0.92rem;
}

.btn-text {
    color: rgba(255,92,0,0.8);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
}
.btn-text:hover { color: rgba(255,92,0,1); gap: 0.75rem; }

.docs-panel-wrap {
    max-width: 1100px;
    margin: 0 auto;
    overflow: hidden;
}

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

.docs-panel {
    display: none;
    margin-top: 2.5rem;
    padding: 3rem;
    background: rgba(36,40,56,0.3);
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.04);
    backdrop-filter: blur(10px);
}
.docs-panel.active {
    display: block;
    animation: panelReveal 0.38s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.panel-close {
    float: right;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    color: #b0b3b8;
    font-size: 0.82rem;
    padding: 0.4rem 0.9rem;
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: inherit;
}
.panel-close:hover { background: rgba(255,255,255,0.09); color: #fff; }

.docs-panel h2 {
    color: rgba(255,92,0,0.9);
    margin-bottom: 2rem;
    font-size: 1.75rem;
    font-weight: 500;
    border-bottom: 1px solid rgba(255,92,0,0.1);
    padding-bottom: 0.75rem;
    letter-spacing: -0.02em;
}
.docs-panel h3 {
    margin: 2.25rem 0 0.9rem;
    color: white;
    font-size: 1.25rem;
    font-weight: 500;
    letter-spacing: -0.01em;
}
.docs-panel p, .docs-panel li {
    color: #b8bcc8;
    line-height: 1.75;
    font-size: 1rem;
    margin-bottom: 0.75rem;
}
.docs-panel ul, .docs-panel ol {
    color: #b8bcc8;
    margin: 1.25rem 0;
    padding-left: 2rem;
}
.docs-panel code {
    background: rgba(26,29,41,0.5);
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    font-family: 'SF Mono','Monaco','Courier New',monospace;
    color: rgba(255,92,0,0.85);
    font-size: 0.9rem;
    border: 1px solid rgba(255,92,0,0.1);
}

.commands-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.25rem 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.05);
}
.commands-table th, .commands-table td {
    padding: 1rem 1.15rem;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.commands-table th {
    background: rgba(26,29,41,0.4);
    font-weight: 500;
    color: white;
    font-size: 0.93rem;
}
.commands-table td { color: #b8bcc8; font-size: 0.93rem; }
.commands-table code {
    background: rgba(26,29,41,0.5);
    padding: 0.25rem 0.55rem;
    border-radius: 6px;
    font-family: 'SF Mono','Monaco','Courier New',monospace;
    color: rgba(255,92,0,0.85);
    border: 1px solid rgba(255,92,0,0.1);
    white-space: nowrap;
    display: inline-block;
}
.commands-table td:first-child { white-space: nowrap; }

.perm-notice {
    background: linear-gradient(135deg,rgba(255,92,0,0.1) 0%,rgba(255,140,66,0.08) 100%);
    border: 1px solid rgba(255,92,0,0.25);
    border-radius: 12px;
    padding: 1.5rem 2rem;
    margin-bottom: 2.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}
.perm-notice i { color: #ff8c42; font-size: 1.4rem; margin-top: 2px; flex-shrink: 0; }
.perm-notice div { color: #d4d6e0; line-height: 1.6; font-size: 0.95rem; }
.perm-notice strong { color: #fff; }

.perm-group { margin-bottom: 2.5rem; }
.perm-group-title {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.perm-group-title i { color: #ff8c42; font-size: 1rem; }

.perm-card {
    background: rgba(36,40,56,0.45);
    border: 1px solid rgba(255,255,255,0.04);
    border-radius: 12px;
    margin-bottom: 0.65rem;
    overflow: hidden;
    transition: border-color 0.2s;
}
.perm-card:hover { border-color: rgba(255,92,0,0.15); }
.perm-card-header {
    padding: 1rem 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    user-select: none;
}
.perm-card-header:hover { background: rgba(255,255,255,0.02); }
.perm-name { flex: 1; font-weight: 600; color: #fff; font-size: 0.95rem; }
.perm-badge {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.2rem 0.55rem;
    border-radius: 4px;
    flex-shrink: 0;
}
.perm-badge.critical  { background: rgba(237,66,69,0.2); color: #ed4245; border: 1px solid rgba(237,66,69,0.3); }
.perm-badge.important { background: rgba(255,163,71,0.15); color: #ffa347; border: 1px solid rgba(255,163,71,0.25); }
.perm-badge.recommended { background: rgba(87,242,135,0.12); color: #57f287; border: 1px solid rgba(87,242,135,0.2); }
.perm-chevron { color: #6b7080; transition: transform 0.2s; font-size: 0.8rem; }
.perm-card.open .perm-chevron { transform: rotate(90deg); }
.perm-card-body {
    display: none;
    padding: 0 1.25rem 1.25rem;
    color: #b0b3c0;
    font-size: 0.9rem;
    line-height: 1.65;
}
.perm-card.open .perm-card-body { display: block; }
.perm-card-body strong { color: #d4d6e0; }
.perm-why { margin-bottom: 0.5rem; }
.perm-features { margin: 0.5rem 0; padding-left: 1.25rem; }
.perm-features li { margin-bottom: 0.25rem; }
.perm-features li::marker { color: #ff8c42; }
.perm-warning {
    background: rgba(237,66,69,0.08);
    border-left: 3px solid #ed4245;
    padding: 0.6rem 0.85rem;
    border-radius: 0 6px 6px 0;
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: #e8a0a1;
}
.perm-warning i { margin-right: 0.3rem; }

.feature-highlight {
    background: rgba(255,92,0,0.06);
    border-left: 3px solid rgba(255,92,0,0.3);
    padding: 1.75rem;
    margin: 1.75rem 0;
    border-radius: 12px;
    transition: all 0.2s ease;
}
.feature-highlight:hover { background: rgba(255,92,0,0.08); border-left-color: rgba(255,92,0,0.4); }

.contact-box {
    background: rgba(255,92,0,0.08);
    border: 1px solid rgba(255,92,0,0.2);
    border-radius: 16px;
    padding: 2.25rem;
    margin: 2.25rem 0;
    text-align: center;
    transition: all 0.3s ease;
}
.contact-box:hover { background: rgba(255,92,0,0.1); border-color: rgba(255,92,0,0.3); }
.contact-box h3 { color: rgba(255,92,0,0.95); margin-bottom: 0.75rem; font-size: 1.3rem; font-weight: 500; }
.contact-box p { color: #b8bcc8; margin-bottom: 1.25rem; }
.contact-box a.contact-btn {
    display: inline-block;
    background: linear-gradient(135deg,#ff5c00,#ff8c42);
    color: white;
    padding: 0.85rem 2rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}
.contact-box a.contact-btn:hover { opacity: 0.9; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(255,92,0,0.3); }

.perm-support-link {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.perm-support-link p { color: #6b7080; font-size: 0.85rem; margin-bottom: 1rem; }
.perm-support-link .btn-accent {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg,#ff5c00,#ff8c42);
    color: #fff;
    padding: 0.65rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: opacity 0.2s;
}
.perm-support-link .btn-accent:hover { opacity: 0.9; }

.legal-card {
    background: rgba(36,40,56,0.45);
    border: 1px solid rgba(255,255,255,0.04);
    border-radius: 14px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: border-color 0.2s;
}
.legal-card:hover { border-color: rgba(255,92,0,0.15); }
.legal-card-header {
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 1rem;
    user-select: none;
}
.legal-card-header:hover { background: rgba(255,255,255,0.02); }
.legal-card-icon { color: rgba(255,92,0,0.8); font-size: 1.15rem; flex-shrink: 0; }
.legal-card-title { flex: 1; font-weight: 600; color: #fff; font-size: 1rem; }
.legal-card-meta { color: #6b7080; font-size: 0.8rem; }
.legal-card-chevron { color: #6b7080; transition: transform 0.2s; font-size: 0.8rem; }
.legal-card.open .legal-card-chevron { transform: rotate(90deg); }
.legal-card-body {
    display: none;
    padding: 0 1.5rem 1.5rem;
    color: #b0b3c0;
    font-size: 0.92rem;
    line-height: 1.7;
}
.legal-card.open .legal-card-body { display: block; }
.legal-card-body p { margin-bottom: 0.6rem; }
.legal-doc-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,92,0,0.12);
    color: rgba(255,92,0,0.9);
    border: 1px solid rgba(255,92,0,0.25);
    border-radius: 8px;
    padding: 0.55rem 1.2rem;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    margin-top: 0.75rem;
    transition: all 0.2s ease;
}
.legal-doc-btn:hover { background: rgba(255,92,0,0.2); color: rgba(255,92,0,1); }

.about-stats {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 1rem;
    margin: 2rem 0;
}
@media (max-width: 600px) { .about-stats { grid-template-columns: 1fr; } }
.about-stat {
    background: rgba(36,40,56,0.5);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 1.25rem;
    text-align: center;
}
.about-stat-num { color: rgba(255,92,0,0.9); font-size: 1.75rem; font-weight: 700; letter-spacing: -0.03em; }
.about-stat-label { color: #b0b3b8; font-size: 0.82rem; margin-top: 0.25rem; }

.faq-item {
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: rgba(26,29,41,0.3);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.03);
    transition: all 0.2s ease;
}
.faq-item:hover { background: rgba(26,29,41,0.4); border-color: rgba(255,255,255,0.05); }
.faq-item h3 { color: rgba(255,92,0,0.85); margin-bottom: 0.75rem; font-size: 1.05rem; font-weight: 500; }
.faq-item p { margin: 0; font-size: 0.98rem; line-height: 1.7; }

.table-scroll-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0.5rem 0;
    border-radius: 12px;
}

@media (max-width: 768px) {
    .docs-section { padding: 2.5rem 1rem 4rem; }
    .page-header { margin-bottom: 2.5rem; }
    .page-header h1 { font-size: 1.85rem; }
    .docs-grid { gap: 1rem; }
    .doc-card { padding: 1.75rem 1.25rem; }
    .docs-panel { padding: 2rem 1.25rem; border-radius: 16px; }
    .docs-panel h2 { font-size: 1.5rem; }
    .commands-table { min-width: 540px; }
    .about-stats { grid-template-columns: repeat(2,1fr); }
}
