:root {
    --bg: #0e1116;
    --card: #12161b;
    --border: #1f2630;
    --text: #e6edf3;
    --subtext: #9aa4b2;
    --accent: #4c8bf5;
    --accent-hover: #3e7bf0;
    --hover-bg: #141a21;
    --transition: 0.25s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
}

.page-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    padding: 2rem 1rem;
}

.help-container {
    position: relative;
    max-width: 700px;
    width: 100%;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.help-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.help-container h1 {
    position: relative;
    z-index: 1;
    font-size: 2rem;
    text-align: center;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.faq {
    position: relative;
    z-index: 1;
}

.faq-item {
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    font-size: 1.15rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    color: var(--text);
    padding: 0;
    outline: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: color var(--transition);
}

.faq-question:hover {
    color: var(--accent);
}

.faq-question .arrow {
    display: inline-block;
    transition: transform var(--transition);
}

.faq-question.active .arrow {
    transform: rotate(90deg);
}

.faq-answer {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    margin-top: 0.5rem;
    color: var(--subtext);
    line-height: 1.5;
    font-size: 0.95rem;
    transition: max-height var(--transition) ease, opacity var(--transition) ease;
}

.faq-answer.active {
    max-height: 500px;
    opacity: 1;
    padding-left: 1rem;
}

.help-footer {
    margin-top: 2rem;
    text-align: center;
    color: var(--subtext);
    font-size: 0.95rem;
}

.help-footer a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--transition);
}

.help-footer a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--hover-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

@media (max-width: 600px) {
    .help-container {
        padding: 1rem;
    }
    .help-container h1 {
        font-size: 1.5rem;
    }
    .faq-question {
        font-size: 1rem;
    }
}

@media (max-width: 500px) {
    .page-wrapper {
        padding: 1.5rem 0.5rem;
    }
    .help-container {
        width: 95%;
        padding: 1.5rem;
        border-radius: 10px;
    }
    .help-container h1 {
        font-size: clamp(1.4rem, 5vw, 1.6rem);
        margin-bottom: 1rem;
    }
    .faq-item {
        padding: 0.75rem 0;
    }
    .faq-question {
        font-size: 1rem;
    }
    .faq-question .arrow {
        margin-left: 0.5rem;
    }
    .faq-answer {
        font-size: 0.9rem;
        padding-left: 0.8rem;
        margin-top: 0.4rem;
    }
    .help-footer {
        font-size: 0.85rem;
        margin-top: 1.5rem;
        padding: 0 0.5rem;
    }
}

@media (max-width: 330px) {
    .page-wrapper {
        padding: 1rem 0.5rem;
    }
    .help-container {
        padding: 1rem;
        border-radius: 8px;
    }
    .help-container h1 {
        font-size: clamp(1.2rem, 6vw, 1.3rem);
    }
    .faq-question {
        font-size: 0.95rem;
    }
    .faq-answer {
        font-size: 0.85rem;
        padding-left: 0.7rem;
        margin-top: 0.3rem;
    }
    .help-footer {
        font-size: 0.8rem;
    }
}

@media (max-width: 265px) {
    .page-wrapper {
        padding: 0.8rem 0.4rem;
    }
    .help-container {
        padding: 0.8rem;
        border-radius: 6px;
    }
    .help-container h1 {
        font-size: clamp(1.1rem, 7vw, 1.2rem);
    }
    .faq-question {
        font-size: 0.9rem;
    }
    .faq-answer {
        font-size: 0.8rem;
        padding-left: 0.6rem;
        margin-top: 0.2rem;
    }
    .help-footer {
        font-size: 0.75rem;
    }
}
