/* ============================================
   CSS Reset & Variables
   ============================================ */
:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-card: #1a1a1a;
    --bg-card-hover: #222222;
    --gold: #d4a843;
    --gold-light: #f0d078;
    --gold-dark: #b8860b;
    --yellow: #f5c518;
    --red: #c0392b;
    --red-bright: #e74c3c;
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --text-muted: #777777;
    --border-color: #2a2a2a;
    --gradient-gold: linear-gradient(135deg, #b8860b, #d4a843, #f0d078, #d4a843, #b8860b);
    --gradient-vip: linear-gradient(135deg, #1a1a1a 0%, #2d1f0e 50%, #1a1a1a 100%);
    --shadow-gold: 0 0 30px rgba(212, 168, 67, 0.3);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --font-display: 'Georgia', 'Times New Roman', serif;
    --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ============================================
   Background Particles
   ============================================ */
.bg-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
}

.bg-gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    animation: float 8s ease-in-out infinite;
}

.bg-gradient-orb.orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(212, 168, 67, 0.12) 0%, transparent 70%);
    top: -10%;
    left: 10%;
    animation-delay: 0s;
}

.bg-gradient-orb.orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(231, 76, 60, 0.08) 0%, transparent 70%);
    top: 40%;
    right: -5%;
    animation-delay: -3s;
}

.bg-gradient-orb.orb-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(245, 197, 24, 0.06) 0%, transparent 70%);
    bottom: 10%;
    left: 30%;
    animation-delay: -6s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(40px, -30px) scale(1.05); }
    50% { transform: translate(-20px, -60px) scale(0.95); }
    75% { transform: translate(-40px, -20px) scale(1.02); }
}

/* ============================================
   Navigation
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0 40px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.95);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.5);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: bold;
    letter-spacing: 1px;
}

.nav-logo svg {
    width: 36px;
    height: 36px;
}

.nav-logo .logo-accent {
    color: var(--gold);
}

.nav-links {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 4px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links .active {
    color: var(--gold);
}

.nav-links .active::after {
    width: 100%;
}

/* ============================================
   Help Page Layout
   ============================================ */
.help-wrapper {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 40px 60px;
    display: flex;
    gap: 40px;
    min-height: calc(100vh - 200px);
}

/* ============================================
   Sidebar Navigation
   ============================================ */
.help-sidebar {
    flex: 0 0 220px;
    position: sticky;
    top: 100px;
    align-self: flex-start;
}

.help-sidebar-inner {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 8px;
}

.help-sidebar-title {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    padding: 16px 16px 12px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.help-sidebar-title svg {
    flex-shrink: 0;
}

.help-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px 16px;
    background: transparent;
    border: none;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
    font-family: var(--font-body);
}

.help-nav-item:hover {
    background: rgba(212, 168, 67, 0.08);
    color: var(--text-primary);
}

.help-nav-item.active {
    background: rgba(212, 168, 67, 0.15);
    color: var(--gold);
    font-weight: 600;
}

.help-nav-icon {
    font-size: 16px;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

/* ============================================
   Content Area
   ============================================ */
.help-content {
    flex: 1;
    min-width: 0;
}

.help-section {
    display: none;
    animation: fadeIn 0.4s ease;
}

.help-section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.help-section h2 {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.help-section h2 .gold-text {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.help-section .section-desc {
    color: var(--text-secondary);
    font-size: 15px;
    margin-bottom: 32px;
}

.help-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 20px;
    transition: var(--transition);
}

.help-card:hover {
    border-color: rgba(212, 168, 67, 0.3);
}

.help-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.help-card h3 .step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--gradient-gold);
    color: #0a0a0a;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}

.help-card p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.8;
}

.help-card p a {
    color: var(--gold);
    text-decoration: none;
    font-weight: 500;
}

.help-card p a:hover {
    text-decoration: underline;
}

.help-tip {
    background: rgba(212, 168, 67, 0.08);
    border-left: 3px solid var(--gold);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 14px 18px;
    margin-top: 16px;
}

.help-tip strong {
    color: var(--gold);
}

.help-tip p {
    font-size: 13px;
    color: var(--text-secondary);
}

.help-warning {
    background: rgba(231, 76, 60, 0.08);
    border-left: 3px solid var(--red-bright);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 14px 18px;
    margin-top: 16px;
}

.help-warning strong {
    color: var(--red-bright);
}

.help-warning p {
    font-size: 13px;
    color: var(--text-secondary);
}

/* Payment Methods */
.payment-methods {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.payment-method {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    text-align: center;
    transition: var(--transition);
}

.payment-method:hover {
    border-color: rgba(212, 168, 67, 0.4);
    background: var(--bg-card-hover);
}

.payment-method .pay-icon {
    font-size: 32px;
    margin-bottom: 10px;
}

.payment-method .pay-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.payment-method .pay-desc {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* FAQ accordion in help page */
.help-faq-item {
    border-bottom: 1px solid var(--border-color);
}

.help-faq-item:last-child {
    border-bottom: none;
}

.help-faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
    font-family: var(--font-body);
    transition: var(--transition);
}

.help-faq-question:hover {
    color: var(--gold);
}

.help-faq-question .arrow {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
    margin-left: 16px;
}

.help-faq-question.open .arrow {
    transform: rotate(180deg);
}

.help-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.help-faq-answer.open {
    max-height: 300px;
}

.help-faq-answer-inner {
    padding: 0 0 18px;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.8;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    position: relative;
    z-index: 1;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 40px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 16px;
    font-weight: 600;
    font-family: var(--font-display);
}

.footer-logo-accent {
    color: var(--gold);
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 13px;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--gold);
}

.footer-bottom {
    max-width: 1200px;
    margin: 20px auto 0;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
}

/* ============================================
   Hamburger Menu Button (tablet & mobile)
   ============================================ */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px;
    position: relative;
    z-index: 101;
    flex-shrink: 0;
    margin-left: auto;
}

.hamburger-line {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--gold);
    border-radius: 1px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-toggle.active .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
    /* --- Navigation --- */
    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 56px;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        transform: none;
        background: rgba(10, 10, 10, 0.97);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-bottom: 1px solid rgba(212, 168, 67, 0.2);
        transform: translateY(-120%);
        opacity: 0;
        transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 100;
        padding: 8px 0;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    }

    .nav-links.show {
        display: flex;
        transform: translateY(0);
        opacity: 1;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 14px 24px;
        font-size: 15px;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.04);
        transition: all 0.2s;
    }

    .nav-links a::after {
        display: none;
    }

    .nav-links a:hover,
    .nav-links a:active {
        background: rgba(212, 168, 67, 0.08);
        color: var(--gold);
    }

    .nav-links .active {
        background: rgba(212, 168, 67, 0.1);
    }

    /* --- Layout --- */
    .help-wrapper {
        padding: 100px 32px 60px;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 0 20px;
    }

    .help-wrapper {
        flex-direction: column;
        padding: 90px 20px 40px;
        gap: 24px;
    }

    .help-sidebar {
        flex: 0 0 auto;
        position: static;
    }

    .help-sidebar-inner {
        display: flex;
        flex-wrap: wrap;
        padding: 8px;
        gap: 4px;
        overflow-x: auto;
    }

    .help-sidebar-title {
        display: none;
    }

    .help-nav-item {
        flex: 0 0 auto;
        padding: 8px 14px;
        font-size: 13px;
        white-space: nowrap;
    }

    .help-section h2 {
        font-size: 24px;
    }

    .payment-methods {
        grid-template-columns: repeat(2, 1fr);
    }

    .help-card .flex-row {
        flex-direction: column !important;
    }

    .footer {
        padding: 30px 20px;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .help-wrapper {
        padding: 85px 16px 32px;
    }

    .help-section h2 {
        font-size: 22px;
    }

    .help-card {
        padding: 20px 16px;
    }

    .payment-methods {
        grid-template-columns: 1fr;
    }

    .footer-links {
        flex-direction: column;
        gap: 12px;
    }
}
