/* ============================================================
   StyleUserManual.css — MyLock Hub Documentation Page
   Palette: #12C9FF · #FF9EF0 · #161316 · #000 · #FFF
   3-column docs layout: sidebar | content | on-this-page
   ============================================================ */

/* ── Reset & Base ── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: rgba(18,201,255,0.25) transparent;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.7;
    color: rgba(255,255,255,0.85);
    background: #161316;
    overflow-x: hidden;
}

body.sidebar-open {
    overflow: hidden;
}

::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(18,201,255,0.2);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(18,201,255,0.35);
}

/* ── Animations ── */
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-30px); }
    to   { opacity: 1; transform: translateY(0); }
}

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

@keyframes shimmer {
    0%   { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}


/* ================================================================
   HEADER — Floating glassmorphism navbar
   ================================================================ */
.header {
    position: fixed;
    top: 16px;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: calc(100% - 40px);
    max-width: 1860px;
    background: rgba(22, 19, 22, 0.75);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(18, 201, 255, 0.12);
    border-radius: 20px;
    z-index: 1000;
    padding: 0.75rem 0;
    animation: slideDown 0.6s ease-out forwards;
}

.nav-container {
    max-width: 1860px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2.5rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
    color: white;
    transition: opacity 0.3s;
}

.nav-logo:hover { opacity: 0.85; }

.nav-logo img {
    width: 26px;
    height: 26px;
}

.nav-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.4rem;
}

.nav-menu a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.88rem;
    font-weight: 500;
    transition: all 0.25s ease;
    padding: 0.45rem 1rem;
    border-radius: 10px;
    position: relative;
}

.nav-menu a:hover {
    color: #fff;
    background: rgba(255,255,255,0.06);
}

.nav-menu a.active {
    color: #12C9FF;
    background: rgba(18,201,255,0.08);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.register-btn {
    padding: 0.45rem 1.1rem;
    border: 1px solid rgba(18, 201, 255, 0.3);
    border-radius: 10px;
    color: #12C9FF;
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.register-btn:hover {
    background: rgba(18, 201, 255, 0.1);
    border-color: #12C9FF;
}

.login-btn {
    padding: 0.45rem 1.1rem;
    background: linear-gradient(135deg, #12C9FF, #0db4e6);
    border-radius: 10px;
    color: #000;
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(18, 201, 255, 0.25);
}

.login-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(18, 201, 255, 0.35);
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}
.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}


/* ================================================================
   DOCS LAYOUT — 3-column: sidebar | content | onpage
   ================================================================ */
.docs-layout {
    display: grid;
    grid-template-columns: 280px 1fr 210px;
    gap: 0;
    max-width: 1860px;
    margin: 0 auto;
    min-height: 100vh;
    padding-top: 80px;
}


/* ================================================================
   LEFT SIDEBAR
   ================================================================ */
.docs-sidebar {
    position: sticky;
    top: 80px;
    height: calc(100vh - 80px);
    overflow-y: auto;
    border-right: 1px solid rgba(255,255,255,0.06);
    background: rgba(22,19,22,0.4);
    scrollbar-width: thin;
    scrollbar-color: rgba(18,201,255,0.15) transparent;
}

.sidebar-inner {
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.sidebar-header {
    margin-bottom: 20px;
}

.sidebar-logo-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.92rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
}

.sidebar-version {
    display: inline-block;
    padding: 3px 10px;
    background: rgba(18,201,255,0.08);
    border: 1px solid rgba(18,201,255,0.15);
    color: #12C9FF;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* Sidebar search */
.sidebar-search {
    position: relative;
    margin-bottom: 20px;
}

.sidebar-search svg {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    stroke: rgba(255,255,255,0.3);
    pointer-events: none;
}

.sidebar-search input {
    width: 100%;
    padding: 9px 12px 9px 36px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    color: #fff;
    font-size: 0.82rem;
    outline: none;
    transition: all 0.25s ease;
}

.sidebar-search input::placeholder {
    color: rgba(255,255,255,0.3);
}

.sidebar-search input:focus {
    border-color: rgba(18,201,255,0.3);
    background: rgba(18,201,255,0.04);
    box-shadow: 0 0 0 3px rgba(18,201,255,0.06);
}

/* Sidebar navigation */
.sidebar-nav {
    flex: 1;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    border-radius: 10px;
    color: rgba(255,255,255,0.55);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
    position: relative;
    border-left: 2px solid transparent;
}

.sidebar-link:hover {
    color: rgba(255,255,255,0.85);
    background: rgba(255,255,255,0.04);
}

.sidebar-link.active {
    color: #12C9FF;
    background: rgba(18,201,255,0.06);
    border-left-color: #12C9FF;
    font-weight: 600;
}

.sidebar-link-num {
    font-size: 0.7rem;
    font-weight: 700;
    color: rgba(255,255,255,0.25);
    min-width: 22px;
    transition: color 0.2s;
}

.sidebar-link.active .sidebar-link-num {
    color: rgba(18,201,255,0.6);
}

/* Sidebar footer */
.sidebar-footer {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.sidebar-back-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.4);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.2s;
}

.sidebar-back-link:hover {
    color: #12C9FF;
    background: rgba(18,201,255,0.05);
}

/* Sidebar overlay (mobile) */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.sidebar-overlay.open {
    opacity: 1;
    pointer-events: auto;
}


/* ================================================================
   MAIN CONTENT
   ================================================================ */
.docs-content {
    padding: 28px 48px 60px;
    min-width: 0;
    max-width: 100%;
}

/* Breadcrumb */
.docs-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 0.82rem;
}

.docs-breadcrumb a {
    color: rgba(255,255,255,0.4);
    text-decoration: none;
    transition: color 0.2s;
}

.docs-breadcrumb a:hover {
    color: #12C9FF;
}

.docs-breadcrumb svg {
    stroke: rgba(255,255,255,0.25);
    flex-shrink: 0;
}

.breadcrumb-current {
    color: rgba(255,255,255,0.7);
    font-weight: 500;
}

/* Hero (compact for docs) */
.docs-hero {
    margin-bottom: 40px;
    padding-bottom: 28px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.docs-hero h1 {
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #12C9FF 0%, #FF9EF0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.docs-hero-subtitle {
    font-size: 1rem;
    color: rgba(255,255,255,0.5);
    max-width: 560px;
    line-height: 1.6;
}


/* ================================================================
   SECTIONS
   ================================================================ */
.docs-section {
    margin-bottom: 36px;
    padding: 32px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 16px;
    position: relative;
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateY(16px);
}

.docs-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.docs-section:hover {
    border-color: rgba(18,201,255,0.1);
    box-shadow: 0 4px 24px rgba(0,0,0,0.15);
}

/* Section heading */
.section-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.section-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, rgba(18,201,255,0.12), rgba(255,158,240,0.06));
    border: 1px solid rgba(18,201,255,0.15);
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 800;
    color: #12C9FF;
    flex-shrink: 0;
    letter-spacing: 0.5px;
}

.docs-section h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    line-height: 1.3;
}

.docs-section h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
    margin: 26px 0 10px;
    padding-left: 12px;
    border-left: 3px solid rgba(18,201,255,0.3);
}

.docs-section p {
    color: rgba(255,255,255,0.6);
    font-size: 0.92rem;
    line-height: 1.75;
    margin: 0 0 12px;
}


/* ================================================================
   CALLOUTS (Info, Warning, Danger)
   ================================================================ */
.callout {
    display: flex;
    gap: 14px;
    padding: 18px 20px;
    border-radius: 12px;
    margin: 18px 0;
    border: 1px solid;
    position: relative;
    overflow: hidden;
}

.callout::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    border-radius: 3px 0 0 3px;
}

.callout-icon {
    flex-shrink: 0;
    margin-top: 1px;
}

.callout-body strong {
    display: block;
    margin-bottom: 4px;
    font-size: 0.88rem;
}

.callout-body p {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.65;
}

/* Info */
.callout-info {
    background: rgba(18,201,255,0.04);
    border-color: rgba(18,201,255,0.12);
}

.callout-info::before {
    background: #12C9FF;
}

.callout-info .callout-icon svg {
    stroke: #12C9FF;
}

.callout-info .callout-body p {
    color: rgba(255,255,255,0.6);
}

/* Warning */
.callout-warning {
    background: rgba(255,152,0,0.04);
    border-color: rgba(255,152,0,0.15);
}

.callout-warning::before {
    background: #ff9800;
}

.callout-warning .callout-icon svg {
    stroke: #ff9800;
}

.callout-warning .callout-body strong {
    color: #ffb74d;
}

.callout-warning .callout-body p {
    color: rgba(255,255,255,0.55);
}

/* Danger */
.callout-danger {
    background: rgba(244,67,54,0.04);
    border-color: rgba(244,67,54,0.15);
}

.callout-danger::before {
    background: #f44336;
}

.callout-danger .callout-icon svg {
    stroke: #f44336;
}

.callout-danger .callout-body strong {
    color: #ef9a9a;
}

.callout-danger .callout-body p {
    color: rgba(255,255,255,0.55);
}


/* ================================================================
   STEPS TIMELINE
   ================================================================ */
.steps-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 20px 0;
    padding-left: 4px;
}

.step-item {
    display: flex;
    gap: 18px;
    position: relative;
}

.step-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}

.step-marker span {
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg, #12C9FF, #0fb5e8);
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.82rem;
    box-shadow: 0 4px 14px rgba(18,201,255,0.25);
    flex-shrink: 0;
    z-index: 1;
}

.step-line {
    width: 2px;
    flex: 1;
    background: linear-gradient(180deg, rgba(18,201,255,0.3), rgba(18,201,255,0.05));
    margin: 4px 0;
    min-height: 20px;
}

.step-body {
    padding-bottom: 22px;
    flex: 1;
}

.step-body h4 {
    font-size: 0.92rem;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
    margin: 5px 0 4px;
}

.step-body p {
    margin: 0;
    font-size: 0.88rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.65;
}


/* ================================================================
   FEATURES GRID
   ================================================================ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    margin: 16px 0;
}

.feature-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: rgba(255,255,255,0.025);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    transition: all 0.25s ease;
}

.feature-card:hover {
    border-color: rgba(18,201,255,0.18);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(18,201,255,0.06);
    background: rgba(18,201,255,0.03);
}

.feature-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, rgba(18,201,255,0.1), rgba(255,158,240,0.04));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon svg {
    stroke: #12C9FF;
    width: 20px;
    height: 20px;
}

.feature-text span {
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255,255,255,0.7);
    line-height: 1.4;
}


/* ================================================================
   PANEL MENU GRID
   ================================================================ */
.panel-menu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 18px 0;
}

.panel-menu-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: rgba(255,255,255,0.025);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    transition: all 0.25s ease;
}

.panel-menu-card:hover {
    transform: translateX(4px);
    border-color: rgba(18,201,255,0.12);
    background: rgba(255,255,255,0.04);
}

.panel-menu-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 15%, transparent), color-mix(in srgb, var(--accent) 5%, transparent));
}

.panel-menu-icon svg {
    stroke: var(--accent);
}

.panel-menu-info strong {
    display: block;
    font-size: 0.88rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 2px;
}

.panel-menu-info span {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
    line-height: 1.4;
}


/* ================================================================
   DOCS TABLE
   ================================================================ */
.docs-table {
    margin: 16px 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.06);
}

.docs-table table {
    width: 100%;
    border-collapse: collapse;
}

.docs-table thead th {
    padding: 12px 18px;
    background: rgba(18,201,255,0.06);
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.docs-table tbody td {
    padding: 12px 18px;
    font-size: 0.88rem;
    color: rgba(255,255,255,0.6);
    border-bottom: 1px solid rgba(255,255,255,0.03);
}

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

.docs-table tbody tr:hover {
    background: rgba(255,255,255,0.02);
}

.docs-table code {
    padding: 3px 8px;
    background: rgba(18,201,255,0.08);
    border: 1px solid rgba(18,201,255,0.12);
    border-radius: 6px;
    font-family: 'SF Mono', 'Cascadia Code', Consolas, monospace;
    font-size: 0.82rem;
    color: #12C9FF;
}

.docs-table td.dim {
    color: rgba(255,255,255,0.3);
    font-style: italic;
}


/* ================================================================
   ACTION CARDS
   ================================================================ */
.action-cards-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 16px 0;
}

.action-card {
    padding: 22px 18px;
    background: rgba(255,255,255,0.025);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.action-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent, #12C9FF);
    opacity: 0;
    transition: opacity 0.3s;
}

.action-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.25);
    border-color: rgba(18,201,255,0.12);
}

.action-card:hover::after {
    opacity: 1;
}

.action-card-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 14px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--accent, #12C9FF) 10%, transparent), transparent);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-card h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
    margin: 0 0 6px;
}

.action-card p {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.4);
    margin: 0;
    line-height: 1.55;
}


/* ================================================================
   SECURITY GRID
   ================================================================ */
.security-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 18px 0;
}

.security-card {
    padding: 24px 20px;
    background: rgba(255,255,255,0.025);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
    text-align: center;
    transition: all 0.3s ease;
}

.security-card:hover {
    border-color: rgba(18,201,255,0.15);
    box-shadow: 0 4px 18px rgba(18,201,255,0.05);
    transform: translateY(-2px);
}

.security-icon-wrap {
    width: 52px;
    height: 52px;
    margin: 0 auto 14px;
    background: linear-gradient(135deg, rgba(18,201,255,0.1), rgba(255,158,240,0.04));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.security-icon-wrap svg {
    stroke: #12C9FF;
}

.security-card h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
    margin: 0 0 8px;
}

.security-card p {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.45);
    margin: 0;
    line-height: 1.65;
}


/* ================================================================
   FAQ ACCORDION
   ================================================================ */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
}

.faq-item {
    background: rgba(255,255,255,0.025);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item[open] {
    border-color: rgba(18,201,255,0.15);
    background: rgba(18,201,255,0.02);
}

.faq-item summary {
    padding: 16px 20px;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    transition: all 0.2s ease;
    user-select: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-question {
    font-weight: 600;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.75);
    flex: 1;
    transition: color 0.2s;
}

.faq-toggle {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(255,255,255,0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.faq-toggle svg {
    stroke: rgba(255,255,255,0.4);
    transition: all 0.3s ease;
}

.faq-item[open] .faq-toggle {
    background: rgba(18,201,255,0.1);
    transform: rotate(180deg);
}

.faq-item[open] .faq-toggle svg {
    stroke: #12C9FF;
}

.faq-item summary:hover .faq-question {
    color: #12C9FF;
}

.faq-answer {
    padding: 0 20px 18px;
}

.faq-answer p {
    margin: 0;
    font-size: 0.88rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.7;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.04);
}


/* ================================================================
   PLATFORM (DOWNLOADS) GRID
   ================================================================ */
.platform-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 18px 0;
}

.platform-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 18px;
    background: rgba(255,255,255,0.025);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
    transition: all 0.3s ease;
}

.platform-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
    border-color: rgba(18,201,255,0.12);
}

.platform-icon {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.04);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.platform-info h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 3px;
}

.platform-info p {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.4);
    margin: 0;
}

.platform-card.coming-soon {
    opacity: 0.45;
    pointer-events: none;
}


/* ================================================================
   DOCS FOOTER (inside content area)
   ================================================================ */
.docs-footer {
    margin-top: 48px;
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.06);
    position: relative;
}

.docs-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(18,201,255,0.2), rgba(255,158,240,0.15), transparent);
}

.docs-footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    color: white;
    margin-bottom: 0.8rem;
}

.footer-desc {
    color: rgba(255,255,255,0.4);
    font-size: 0.82rem;
    line-height: 1.6;
}

.docs-footer-col h4 {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: rgba(255,255,255,0.8);
    position: relative;
    padding-bottom: 0.6rem;
}

.docs-footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 24px;
    height: 2px;
    background: linear-gradient(135deg, #12C9FF, #FF9EF0);
    border-radius: 2px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-links a {
    text-decoration: none;
    color: rgba(255,255,255,0.4);
    font-size: 0.82rem;
    transition: all 0.25s ease;
}

.footer-links a:hover {
    color: #12C9FF;
    padding-left: 4px;
}

.docs-footer-bottom {
    text-align: center;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(255,255,255,0.04);
}

.docs-footer-bottom p {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.25);
}


/* ================================================================
   RIGHT SIDEBAR — "On this page"
   ================================================================ */
.docs-onpage {
    position: sticky;
    top: 80px;
    height: calc(100vh - 80px);
    overflow-y: auto;
    border-left: 1px solid rgba(255,255,255,0.05);
    scrollbar-width: none;
}

.docs-onpage::-webkit-scrollbar {
    display: none;
}

.onpage-inner {
    padding: 28px 18px;
    display: flex;
    flex-direction: column;
}

.onpage-title {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.4);
    margin-bottom: 12px;
}

/* Reading progress bar */
.onpage-progress {
    height: 2px;
    background: rgba(255,255,255,0.06);
    border-radius: 2px;
    margin-bottom: 16px;
    overflow: hidden;
}

.onpage-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #12C9FF, #FF9EF0);
    border-radius: 2px;
    transition: width 0.15s ease-out;
}

/* On-page links */
.onpage-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.onpage-link {
    display: block;
    padding: 6px 14px;
    font-size: 0.76rem;
    color: rgba(255,255,255,0.35);
    text-decoration: none;
    border-left: 2px solid transparent;
    transition: all 0.2s ease;
    line-height: 1.5;
}

.onpage-link:hover {
    color: rgba(255,255,255,0.7);
}

.onpage-link.active {
    color: #12C9FF;
    border-left-color: #12C9FF;
    font-weight: 600;
}

/* Back to top */
.back-to-top {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 24px;
    padding: 8px 14px;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.3);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s;
}

.back-to-top:hover {
    color: #12C9FF;
    background: rgba(18,201,255,0.05);
}


/* ================================================================
   LANGUAGE SELECTOR (if included)
   ================================================================ */
.language-selector {
    position: relative;
}

.language-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.82rem;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.25s ease;
}

.language-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}


/* ================================================================
   RESPONSIVE — Media Queries
   ================================================================ */

/* Tablets and smaller desktops: hide right sidebar */
@media (max-width: 1200px) {
    .docs-layout {
        grid-template-columns: 260px 1fr;
    }

    .docs-onpage {
        display: none;
    }
}

/* Tablets: adjust content padding */
@media (max-width: 1024px) {
    .docs-content {
        padding: 24px 32px 48px;
    }

    .docs-hero h1 {
        font-size: 2rem;
    }

    .docs-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }

    .action-cards-row {
        grid-template-columns: 1fr 1fr;
    }
}

/* Small tablets / large phones: hide left sidebar, show toggle */
@media (max-width: 900px) {
    .header {
        width: calc(100% - 24px);
        border-radius: 16px;
        top: 10px;
        padding: 0.6rem 0;
    }

    .nav-container {
        padding: 0 1rem;
    }

    .nav-center {
        display: none;
    }

    .register-btn {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .docs-layout {
        grid-template-columns: 1fr;
        padding-top: 70px;
    }

    /* Left sidebar: off-canvas drawer */
    .docs-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: 280px;
        height: 100vh;
        z-index: 999;
        transform: translateX(-100%);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        border-right: 1px solid rgba(18,201,255,0.1);
        background: rgba(22,19,22,0.97);
        backdrop-filter: blur(24px);
    }

    .docs-sidebar.open {
        transform: translateX(0);
    }

    .sidebar-overlay {
        display: block;
    }

    .sidebar-overlay.open {
        opacity: 1;
    }

    .docs-content {
        padding: 20px 20px 40px;
    }

    .docs-hero h1 {
        font-size: 1.8rem;
    }

    .panel-menu-grid {
        grid-template-columns: 1fr;
    }

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

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

    .docs-footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Phones */
@media (max-width: 640px) {
    .docs-content {
        padding: 16px 16px 36px;
    }

    .docs-section {
        padding: 22px 18px;
        margin-bottom: 24px;
        border-radius: 12px;
    }

    .section-heading {
        gap: 10px;
        margin-bottom: 16px;
        padding-bottom: 12px;
    }

    .section-tag {
        width: 30px;
        height: 30px;
        font-size: 0.68rem;
    }

    .docs-section h2 {
        font-size: 1.15rem;
    }

    .docs-hero h1 {
        font-size: 1.6rem;
    }

    .docs-hero-subtitle {
        font-size: 0.88rem;
    }

    .action-cards-row {
        grid-template-columns: 1fr;
    }

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

    .docs-table {
        overflow-x: auto;
    }

    .docs-table table {
        min-width: 360px;
    }

    .step-body {
        padding-bottom: 16px;
    }

    .login-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
}

/* Very small phones */
@media (max-width: 400px) {
    .header {
        width: calc(100% - 16px);
        top: 8px;
    }

    .nav-logo span:last-child {
        display: none;
    }

    .login-btn {
        display: none;
    }

    .docs-hero h1 {
        font-size: 1.35rem;
    }

    .docs-section {
        padding: 18px 14px;
    }

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

    .step-item {
        gap: 12px;
    }

    .step-marker span {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }
}