* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
    background: #f8f8f8;
    color: #1a1a1a;
    line-height: 1.6;
}

.header {
    background: #ffffff;
    border-bottom: 1px solid #e5e5e5;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.logo-mini {
    width: 32px;
    height: 32px;
    background: #1a1a1a;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-left:hover {
    opacity: 0.8;
}

.brand {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 24px;
    align-items: center;
}

.auth-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-left: auto;
}

.nav-link {
    text-decoration: none;
    color: #666666;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    padding-bottom: 4px;
    transition: color 0.2s;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #1a1a1a;
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: #1a1a1a;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.active {
    color: #1a1a1a;
}

.nav-link.active::after {
    width: 100%;
}

.nav-link.login-btn {
    padding: 8px 16px;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    text-decoration: none;
    color: #1a1a1a;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    position: static;
    padding-bottom: 8px;
}

.nav-link.login-btn::after {
    display: none;
}

.nav-link.login-btn:hover {
    background: #f5f5f5;
    border-color: #1a1a1a;
}

.nav-link.signup-btn {
    padding: 8px 16px;
    background: #1a1a1a;
    border: 1px solid #1a1a1a;
    border-radius: 4px;
    text-decoration: none;
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    position: static;
    padding-bottom: 8px;
}

.nav-link.signup-btn::after {
    display: none;
}

.nav-link.signup-btn:hover {
    color: #ffffff;
    background: #333333;
    border-color: #333333;
}

.nav-link.signup-btn.active {
    background: #333333;
    border-color: #333333;
    box-shadow: 0 0 0 2px #1a1a1a;
}

.container {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: calc(100vh - 73px);
}

.sidebar {
    background: #f9f9f9;
    border-right: 1px solid #e5e5e5;
    padding: 32px 0;
    max-height: calc(100vh - 73px);
    overflow-y: auto;
    position: sticky;
    top: 73px;
}

.sidebar-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999999;
    margin-bottom: 16px;
    padding: 0 20px;
}

.sidebar-nav {
    list-style: none;
    padding: 0 20px;
}

.sidebar-nav li {
    margin-bottom: 6px;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    color: #666666;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.2s;
    cursor: pointer;
}

.sidebar-nav a:hover {
    background: #e5e5e5;
    color: #1a1a1a;
}

.sidebar-nav a.active {
    background: #1a1a1a;
    color: #ffffff;
    font-weight: 600;
}

.sidebar-icon {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.main-content {
    padding: 60px;
    background: #ffffff;
    min-width: 0;
}

.section {
    scroll-margin-top: 100px;
}

.page-header {
    margin-bottom: 32px;
}

.page-header h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #1a1a1a;
}

.page-header p {
    color: #666666;
    font-size: 14px;
}

.section {
    margin-bottom: 40px;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 24px;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a1a1a;
    stroke: currentColor;
    flex-shrink: 0;
}

.faq-item {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.faq-question {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: default;
    user-select: none;
    font-weight: 500;
    color: #1a1a1a;
    background: #ffffff;
    border: none;
    width: 100%;
    text-align: left;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: #ffffff;
}

.faq-question.active {
    background: #f9f9f9;
}

.faq-chevron {
    display: none;
}

.faq-item.active .faq-chevron {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: none;
    overflow: visible;
    padding: 16px 20px;
    border-top: 1px solid #e5e5e5;
    transition: none;
}

.faq-item.active .faq-answer {
    max-height: 800px;
    padding: 16px 20px;
    border-top-color: #e5e5e5;
}

.faq-answer p {
    margin: 0;
    color: #333333;
    font-size: 14px;
    line-height: 1.6;
}

.contact-channels {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    padding: 24px;
    margin-top: 20px;
}

.contact-channels h3 {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 16px;
}

.channels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.channel {
    padding: 16px;
    background: #f9f9f9;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    text-decoration: none;
    color: #1a1a1a;
    font-weight: 500;
    font-size: 13px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 12px;
}

.channel:hover {
    background: #f0f0f0;
    border-color: #1a1a1a;
    color: #1a1a1a;
}

.channel-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.search-box {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    padding: 12px 16px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-box input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 14px;
    color: #1a1a1a;
}

.search-box input::placeholder {
    color: #999999;
}

.search-icon {
    width: 20px;
    height: 20px;
    color: #999999;
    stroke: currentColor;
    flex-shrink: 0;
}

.no-results {
    text-align: center;
    padding: 32px;
    color: #999999;
}

.no-results p {
    margin: 0;
}

.footer {
    background: #1a1a1a;
    color: #ffffff;
    padding: 40px 24px;
    border-top: 1px solid #333333;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 32px;
}

.footer-section h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-link {
    color: #999999;
    text-decoration: none;
    font-size: 13px;
    margin-bottom: 8px;
    display: block;
    transition: color 0.2s;
}

.footer-link:hover {
    color: #ffffff;
}

.footer-bottom {
    border-top: 1px solid #333333;
    padding-top: 24px;
    text-align: center;
    color: #999999;
    font-size: 13px;
}

/* Mobile sidebar toggle button */
.mobile-nav-bar {
    display: none;
}

.mobile-sidebar-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 9px 14px;
    font-size: 14px;
    font-weight: 500;
    color: #1a1a1a;
    cursor: pointer;
    width: 100%;
    transition: background 0.2s;
}

.mobile-sidebar-toggle:hover {
    background: #ebebeb;
}

.mobile-sidebar-toggle .chevron {
    transition: transform 0.2s;
    flex-shrink: 0;
}

.mobile-sidebar-toggle.open .chevron {
    transform: rotate(180deg);
}

/* Responsive */
@media (max-width: 1024px) {
    .container { grid-template-columns: 240px 1fr; }
    .main-content { padding: 40px 32px; }
    .sidebar { top: 73px; }
}

@media (max-width: 768px) {
    .mobile-nav-bar {
        display: block;
        padding: 10px 16px;
        background: #fff;
        border-bottom: 1px solid #f0f0f0;
        position: sticky;
        top: 73px;
        z-index: 10;
    }

    .container {
        grid-template-columns: 1fr;
    }

    .sidebar {
        display: none;
        border-right: none;
        border-bottom: 1px solid #e5e5e5;
        position: static;
        top: 0;
        max-height: 260px;
        overflow-y: auto;
        padding: 8px 0;
    }

    .sidebar.mobile-open {
        display: block;
    }

    .main-content {
        padding: 24px 20px;
    }

    .page-header h1 {
        font-size: 24px;
    }

    .channels-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .page-header h1 {
        font-size: 20px;
    }

    .section-title {
        font-size: 16px;
    }

    .faq-question {
        padding: 12px 16px;
        font-size: 14px;
    }

    .faq-item.active .faq-answer {
        padding: 12px 16px;
    }
}

@media (max-width: 360px) {
    .main-content { padding: 20px 14px; }
    .page-header h1 { font-size: 18px; }
    .channels-grid { grid-template-columns: 1fr; }
}
