/* ============================================
   Lockstry — Support Pages Shared Stylesheet
   ============================================ */

:root {
    --color-bg-primary: #0D0B09;
    --color-bg-secondary: #151210;
    --color-bg-tertiary: #1E1916;
    --color-surface: #1A1614;
    --color-text-primary: #F5F5F5;
    --color-text-secondary: #A0A0A0;
    --color-text-tertiary: #666666;
    --color-accent: #FF4200;
    --color-accent-hover: #FF5A1F;
    --color-accent-subtle: rgba(255, 66, 0, 0.08);
    --color-border: rgba(255, 255, 255, 0.08);
    --font-primary: -apple-system, BlinkMacSystemFont, 'Avenir Next', 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    background: var(--color-bg-primary);
    background-image:
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(255, 66, 0, 0.05) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 80% 50%, rgba(255, 66, 0, 0.03) 0%, transparent 50%);
    color: var(--color-text-secondary);
    line-height: 1.7;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--color-accent-hover);
}

img {
    max-width: 100%;
    display: block;
}

/* ============================================
   Support Header
   ============================================ */

.support-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(13, 11, 9, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.support-header-logo img {
    height: 32px;
}

.support-header-back {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text-tertiary);
    transition: color 0.2s ease;
}

.support-header-back:hover {
    color: var(--color-text-secondary);
}

/* ============================================
   Legal Pages (Privacy Policy, Terms of Service)
   ============================================ */

.legal-content {
    max-width: 700px;
    margin: 0 auto;
    padding: 100px 24px 80px;
}

.legal-content h1 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 700;
    color: var(--color-text-primary);
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.legal-meta {
    display: inline-block;
    font-size: 0.8rem;
    color: var(--color-text-tertiary);
    background: var(--color-bg-tertiary);
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 40px;
}

.legal-content h2 {
    font-size: clamp(1.1rem, 1.5vw, 1.3rem);
    font-weight: 600;
    color: var(--color-text-primary);
    margin-top: 40px;
    margin-bottom: 12px;
}

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

.legal-content ul {
    padding-left: 20px;
    margin-bottom: 16px;
}

.legal-content li {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: 8px;
}

.legal-content strong {
    color: var(--color-text-primary);
}

/* ============================================
   User Guide — Hub Page
   ============================================ */

.guide-hub {
    max-width: 640px;
    margin: 0 auto;
    padding: 100px 24px 80px;
}

.guide-hub-header {
    text-align: center;
    margin-bottom: 40px;
}

.guide-hub-header h1 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 700;
    color: var(--color-text-primary);
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.guide-hub-header p {
    font-size: 0.95rem;
    color: var(--color-text-tertiary);
}

.guide-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.guide-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 16px;
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: 14px;
    color: var(--color-text-primary);
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.guide-card:hover {
    background: var(--color-bg-tertiary);
    border-color: rgba(255, 255, 255, 0.12);
    color: var(--color-text-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.guide-card-icon {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--color-accent-subtle);
    border: 1px solid rgba(255, 66, 0, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
}

.guide-card-icon svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: var(--color-accent);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.guide-card-text {
    min-width: 0;
}

.guide-card-text h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 2px;
    line-height: 1.3;
}

.guide-card-text p {
    font-size: 0.78rem;
    color: var(--color-text-tertiary);
    line-height: 1.4;
}

/* ============================================
   User Guide — Detail Pages (sidebar layout)
   ============================================ */

.guide-layout {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.guide-sidebar {
    width: 240px;
    position: fixed;
    top: 57px;
    bottom: 0;
    left: 0;
    background: var(--color-bg-secondary);
    border-right: 1px solid var(--color-border);
    padding: 20px 0;
    overflow-y: auto;
}

.guide-sidebar ul {
    list-style: none;
}

.guide-sidebar li {
    border-bottom: 1px solid var(--color-border);
}

.guide-sidebar li:last-child {
    border-bottom: none;
}

.guide-sidebar a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 18px;
    font-size: 0.84rem;
    font-weight: 500;
    color: var(--color-text-tertiary);
    transition: color 0.2s ease, background 0.2s ease;
    text-decoration: none;
}

.guide-sidebar a:hover {
    color: var(--color-text-secondary);
    background: var(--color-bg-tertiary);
}

.guide-sidebar a.active {
    color: var(--color-accent);
    background: var(--color-accent-subtle);
    border-left: 3px solid var(--color-accent);
    padding-left: 15px;
}

.guide-sidebar a svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0.6;
}

.guide-sidebar a.active svg {
    opacity: 1;
}

/* ============================================
   Breadcrumb Navigation
   ============================================ */

.guide-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--color-border);
}

.guide-breadcrumb a {
    color: var(--color-text-tertiary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.guide-breadcrumb a:hover {
    color: var(--color-accent);
}

.guide-breadcrumb .separator {
    color: var(--color-text-tertiary);
    opacity: 0.4;
    font-size: 0.75rem;
}

.guide-breadcrumb .current {
    color: var(--color-text-secondary);
    font-weight: 500;
}

.guide-step {
    margin-left: auto;
    color: var(--color-text-tertiary);
    font-size: 0.75rem;
    font-weight: 500;
    background: var(--color-bg-tertiary);
    padding: 2px 10px;
    border-radius: 12px;
    white-space: nowrap;
}

/* ============================================
   Content Area
   ============================================ */

.guide-content {
    margin-left: 240px;
    padding: 90px 40px 80px;
    flex: 1;
    max-width: 840px;
}

.guide-content h2 {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 700;
    color: var(--color-text-primary);
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    margin-top: 48px;
}

.guide-content h2:first-child,
.guide-content section:first-child h2 {
    margin-top: 0;
}

.guide-content h3 {
    font-size: clamp(1.2rem, 1.5vw, 1.4rem);
    font-weight: 600;
    color: var(--color-text-primary);
    letter-spacing: -0.01em;
    margin-top: 32px;
    margin-bottom: 12px;
}

.guide-content h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-top: 24px;
    margin-bottom: 8px;
}

.guide-content p {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
    max-width: 650px;
}

.guide-content img {
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.03);
    background: linear-gradient(145deg, #211C18, #161210);
    padding: 5px;
    margin-bottom: 24px;
    height: auto;
    max-height: 35vh;
    cursor: zoom-in;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.guide-content img:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.05);
}

/* Image Zoom Lightbox */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.lightbox-overlay img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: none;
    background: none;
    padding: 0;
    margin: 0;
    cursor: zoom-out;
    transform: scale(0.92);
    transition: transform 0.3s ease;
}

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

.guide-content .image-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.guide-content .image-row img {
    max-width: 30%;
    margin-bottom: 0;
}

.guide-content section {
    margin-bottom: 48px;
}

.guide-content strong {
    color: var(--color-text-primary);
}

.guide-content a {
    color: var(--color-accent);
}

/* ============================================
   Next / Previous Navigation
   ============================================ */

.guide-nav-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 56px;
    padding-top: 24px;
    border-top: 1px solid var(--color-border);
    gap: 16px;
}

.guide-nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text-tertiary);
    text-decoration: none;
    padding: 10px 16px;
    border-radius: 10px;
    transition: color 0.2s ease, background 0.2s ease;
}

.guide-nav-link:hover {
    color: var(--color-accent);
    background: var(--color-accent-subtle);
}

.guide-nav-link svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

.guide-nav-link--next {
    margin-left: auto;
}

.guide-nav-label {
    font-size: 0.75rem;
    color: var(--color-text-tertiary);
    display: block;
    margin-bottom: 2px;
}

.guide-nav-title {
    color: var(--color-text-secondary);
}

.guide-nav-link:hover .guide-nav-title {
    color: var(--color-accent);
}

/* Hamburger menu */
.guide-hamburger {
    display: none;
    position: fixed;
    top: 10px;
    left: 12px;
    z-index: 200;
    width: 38px;
    height: 38px;
    font-size: 20px;
    padding: 0;
    cursor: pointer;
    color: var(--color-text-primary);
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    line-height: 1;
    align-items: center;
    justify-content: center;
}

/* ============================================
   Responsive — Tablet / Mobile
   ============================================ */

@media (max-width: 768px) {
    .guide-sidebar {
        display: none;
        width: 100%;
        position: fixed;
        top: 57px;
        left: 0;
        right: 0;
        bottom: auto;
        z-index: 150;
        padding: 12px 0;
        border-right: none;
        border-bottom: 1px solid var(--color-border);
    }

    .guide-sidebar.active {
        display: block;
    }

    .guide-hamburger {
        display: flex;
    }

    .guide-content {
        margin-left: 0;
        padding: 90px 20px 60px;
    }

    .guide-content p {
        max-width: 100%;
    }

    .guide-content .image-row img {
        max-width: 45%;
    }

    .support-header {
        padding: 12px 16px;
        justify-content: flex-end;
    }

    .support-header-back {
        display: block;
    }

    .support-header-logo {
        margin-right: auto;
        margin-left: 42px;
    }

    .legal-content {
        padding: 90px 16px 60px;
    }

    .guide-hub {
        padding: 90px 16px 60px;
    }

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

    .guide-nav-link {
        padding: 10px 10px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .guide-content .image-row {
        flex-direction: column;
    }

    .guide-content .image-row img {
        max-width: 100%;
    }
}
