/* ========================================
   SENTINELPAY HELP CENTER — S-TIER CSS
   Design DNA: matches sentinelpay.org exactly
   ======================================== */

:root {
    --bg-dark: #050505;
    --bg-panel: rgba(10, 12, 15, 0.7);
    --border-glass: rgba(255, 255, 255, 0.08);
    --text-main: #e0e0e0;
    --text-muted: #6b6b6b;
    --neon-blue: #00f0ff;
    --color-green: #00ff88;
    --color-red: #ff3333;
}

/* --- S-TIER GLOBAL SCROLLBAR (matches sentinelpay.org) --- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #050505; }
::-webkit-scrollbar-thumb {
    background: rgba(0, 240, 255, 0.2);
    border-radius: 10px;
    border: 1px solid rgba(0, 240, 255, 0.1);
    transition: background 0.3s ease;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 240, 255, 0.5);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 240, 255, 0.2) #050505;
}

html {
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'JetBrains Mono', 'Inter', -apple-system, sans-serif;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* --- CYBER GRID BACKGROUND (matches main site exactly) --- */
.cyber-grid {
    position: fixed;
    top: -32px;
    left: 0;
    right: 0;
    bottom: -32px;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    z-index: 0;
    opacity: 0.5;
    animation: panGrid 20s linear infinite;
    pointer-events: none;
}

@keyframes panGrid {
    0% { transform: translateY(0); }
    100% { transform: translateY(30px); }
}

/* --- GLOW ORB (matches main site) --- */
.glow-orb {
    display: none;
    position: fixed;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.06) 0%, transparent 60%);
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
    pointer-events: none;
}

/* --- TOP NAV BUTTON --- */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 1.5rem 2.5rem;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    z-index: 1000;
    pointer-events: none;
}

.top-nav > * { pointer-events: auto; }

/* S-Tier pill button (identical to /auth) */
.auth-nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
    text-decoration: none;
    text-transform: lowercase;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.auth-nav-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1), inset 0 0 10px rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

/* --- KB WRAPPER --- */
.kb-wrapper {
    position: relative;
    z-index: 10;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem 6rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* --- HERO SECTION --- */
.hero-section {
    padding: 9rem 0 5rem;
    text-align: center;
}

/* Desktop-only utility */
.desktop-only { display: flex !important; }

/* Hero logo */
.hero-logo {
    justify-content: center;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 20px rgba(0, 240, 255, 0.2));
    animation: fadeIn 0.6s ease-out;
}

.hero-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -2px;
    color: #fff;
    margin-bottom: 1rem;
    text-transform: lowercase;
    line-height: 1.1;
    animation: fadeIn 0.7s ease-out;
}

.hero-subtitle {
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-muted);
    font-size: 0.9rem;
    max-width: 540px;
    margin: 0 auto 3rem;
    line-height: 1.8;
    animation: fadeIn 0.8s ease-out;
}

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

/* --- SEARCH BAR (matches auth form inputs) --- */
.search-container {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    animation: fadeIn 0.9s ease-out;
}

.search-input {
    width: 100%;
    padding: 1.1rem 1.2rem 1.1rem 3.25rem;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: #fff;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5);
}

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

.search-container.focused .search-input {
    border-color: rgba(0, 240, 255, 0.5);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.15), inset 0 0 5px rgba(0, 240, 255, 0.05);
}

.search-icon {
    position: absolute;
    left: 1.1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    transition: color 0.3s ease;
    pointer-events: none;
}

.search-container.focused .search-icon {
    color: var(--neon-blue);
}

/* --- CATEGORY GRID --- */
.category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    animation: fadeIn 1s ease-out;
}

/* --- CATEGORY CARD (matches .auth-card / .glass-panel pattern) --- */
.category-card {
    background: rgba(10, 12, 15, 0.7);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    padding: 2rem;
    text-decoration: none;
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* Neon top line on hover */
.category-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--neon-blue), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-card:hover {
    border-color: rgba(0, 240, 255, 0.2);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.05), 0 25px 50px -12px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.category-card:hover::before {
    opacity: 1;
}

/* Card icon wrapper */
.card-icon-wrapper {
    width: 40px;
    height: 40px;
    background: rgba(0, 240, 255, 0.05);
    border: 1px solid rgba(0, 240, 255, 0.12);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--neon-blue);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.card-icon-wrapper svg {
    width: 18px;
    height: 18px;
}

.category-card:hover .card-icon-wrapper {
    background: rgba(0, 240, 255, 0.1);
    border-color: rgba(0, 240, 255, 0.25);
}

/* Card body */
.card-body {
    flex: 1;
}

.card-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    text-transform: lowercase;
    letter-spacing: -0.5px;
    margin-bottom: 0.5rem;
}

.card-desc {
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-muted);
    font-size: 0.78rem;
    line-height: 1.7;
    text-transform: lowercase;
}

/* Card footer */
.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1rem;
    margin-top: auto;
}

.card-count {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: var(--neon-blue);
    opacity: 0.7;
    text-transform: lowercase;
    letter-spacing: 0.5px;
}

.card-arrow {
    width: 16px;
    height: 16px;
    color: var(--text-muted);
    opacity: 0;
    transform: translateX(-4px);
    transition: all 0.3s ease;
}

.category-card:hover .card-arrow {
    opacity: 1;
    transform: translateX(0);
    color: var(--neon-blue);
}

/* --- FOOTER --- */
.kb-footer {
    margin-top: auto;
    padding-top: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    color: var(--text-muted);
    opacity: 0.6;
}

.footer-divider {
    opacity: 0.3;
}

.footer-link {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: var(--neon-blue);
}

/* --- UTILITY CLASSES --- */
.desktop-only { display: flex !important; }
.mobile-only  { display: none !important; }

/* --- MOBILE (≤ 768px) --- */
@media (max-width: 768px) {

    /* Hide desktop-only elements */
    .desktop-only { display: none !important; }
    .mobile-only  { display: flex !important; }

    /* Mobile top nav: full-width fixed bar with glass background */
    .top-nav {
        position: fixed;
        top: 0; left: 0; right: 0;
        height: 60px;
        padding: 0 1.25rem;
        background: rgba(8, 8, 8, 0.85);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        display: flex;
        justify-content: space-between;
        align-items: center;
        pointer-events: auto;
        z-index: 1000;
    }

    /* Mobile logo */
    .mobile-nav-logo {
        align-items: center;
        filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.25));
    }

    /* Smaller return button on mobile */
    .auth-nav-btn {
        padding: 0.4rem 0.85rem;
        font-size: 0.72rem;
    }

    /* KB wrapper: account for fixed topbar height */
    .kb-wrapper {
        padding: 0 1.25rem 5rem;
    }

    /* Hero: less padding (topbar takes space), no big logo */
    .hero-section {
        padding: 5rem 0 3.5rem;
        text-align: center;
    }

    .hero-title {
        font-size: 1.9rem;
        letter-spacing: -1px;
    }

    .hero-subtitle {
        font-size: 0.8rem;
    }

    /* Search bar full width */
    .search-container {
        max-width: 100%;
    }

    /* Single column grid */
    .category-grid {
        grid-template-columns: 1fr;
        gap: 0.85rem;
    }

    /* Slightly tighter card padding */
    .category-card {
        padding: 1.5rem;
    }
}
