* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* PROCash Brand Colors - Zinc + Amber */
    --primary: #FFB800;
    --primary-dark: #E5A500;
    --primary-light: #FFD642;

    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;

    /* Light Theme (Zinc palette) */
    --bg: #F4F4F5;
    /* Zinc-100 */
    --card: #FFFFFF;
    --text: #09090b;
    /* Zinc-950 */
    --text-muted: #71717A;
    /* Zinc-500 */
    --border: #E4E4E7;
    /* Zinc-200 */

    --sidebar-width: 280px;

    /* Glass effect */
    --glass: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(228, 228, 231, 0.5);
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #09090b;
        /* Zinc-950 */
        --card: #121214;
        --text: #FAFAFA;
        /* Zinc-50 */
        --text-muted: #A1A1AA;
        /* Zinc-400 */
        --border: #27272A;
        /* Zinc-800 */
        --glass: rgba(18, 18, 20, 0.8);
    }
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Inter', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: var(--sidebar-width);
    background: var(--card);
    border-right: 1px solid var(--border);
    overflow-y: auto;
    padding: 2rem 1.5rem;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.08);
}

.logo {
    text-align: center;
}

.logo img {
    display: block;
    margin: 0 auto 0.75rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #18181B 0%, #27272A 100%);
    border-radius: 1rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    max-width: 100%;
    height: auto;
}

.logo h1 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 0.25rem;
    letter-spacing: -0.02em;
}

.logo p {
    font-size: 0.875rem;
    color: var(--text);
    font-weight: 600;
    margin-bottom: 2rem;
}

.nav-menu {
    list-style: none;
}

.nav-menu li {
    margin-bottom: 0.5rem;
}

.nav-menu a {
    display: block;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    color: var(--text);
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.9375rem;
    font-weight: 500;
}

.nav-menu a:hover {
    background: linear-gradient(135deg, rgba(255, 184, 0, 0.1) 0%, rgba(255, 214, 66, 0.1) 100%);
    color: var(--primary-dark);
    transform: translateX(4px);
}

.nav-menu a.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #09090b;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(255, 184, 0, 0.3);
}

.content {
    margin-left: var(--sidebar-width);
    padding: 3rem 4rem;
    max-width: 900px;
}

section {
    margin-bottom: 4rem;
    scroll-margin-top: 2rem;
}

h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--text);
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, var(--text) 0%, var(--text-muted) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: 1.875rem;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text);
    letter-spacing: -0.02em;
}

h3 {
    font-size: 1.375rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text);
}

h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

p {
    margin-bottom: 1rem;
    color: var(--text);
}

.lead {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.8;
}

ul,
ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

li {
    margin-bottom: 0.5rem;
    color: var(--text);
}

a {
    color: var(--primary-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary);
    text-decoration: underline;
}

.info-box {
    background: linear-gradient(135deg, rgba(255, 184, 0, 0.08) 0%, rgba(255, 214, 66, 0.05) 100%);
    border-left: 4px solid var(--primary);
    padding: 1.5rem;
    border-radius: 0.75rem;
    margin: 1.5rem 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.info-box h3,
.info-box h4 {
    color: var(--primary-dark);
    margin-top: 0;
}

.warning-box {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(251, 191, 36, 0.05) 100%);
    border-left: 4px solid var(--warning);
    padding: 1.5rem;
    border-radius: 0.75rem;
    margin: 1.5rem 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.warning-box strong {
    color: #B45309;
}

.contact-box {
    background: var(--card);
    border: 2px solid var(--primary);
    padding: 2rem;
    border-radius: 1rem;
    margin: 1.5rem 0;
    box-shadow: 0 8px 24px rgba(255, 184, 0, 0.15);
}

.contact-box h3 {
    color: var(--primary-dark);
    margin-top: 0;
}

.contact-box ul {
    list-style: none;
    margin-left: 0;
}

.contact-box li {
    padding: 0.75rem 0;
    font-size: 1.0625rem;
}

.faq-item {
    background: var(--card);
    padding: 1.5rem;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 16px rgba(255, 184, 0, 0.1);
    transform: translateY(-2px);
}

.faq-item h3 {
    color: var(--primary-dark);
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-size: 1.125rem;
}

.faq-item p {
    margin-bottom: 0;
    color: var(--text-muted);
}

code {
    background: rgba(255, 184, 0, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.875em;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    color: var(--primary-dark);
    font-weight: 600;
}

strong {
    font-weight: 600;
    color: var(--text);
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        position: static;
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .content {
        margin-left: 0;
        padding: 2rem 1.5rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }
}

/* Scrollbar styling */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Selection */
::selection {
    background: var(--primary);
    color: #09090b;
}