/* ================================================================
   HELP PAGE — aft-help-* namespace
   ================================================================ */

/* ── Hero ── */
.aft-help-hero {
    position: relative;
    width: 100%;
    padding: calc(var(--header-h) + 40px) 20px 48px;
    background: linear-gradient(165deg, #f0f4ff 0%, #e8eeff 40%, #f0f0ff 70%, #f5f3ff 100%);
    overflow: hidden;
}

html.dark-theme .aft-help-hero {
    background: linear-gradient(165deg, #0f1117 0%, #141a2a 40%, #1e1b4b 70%, #1a1035 100%);
}

.aft-help-hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.aft-help-hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
}

.aft-help-hero-glow--1 {
    width: 400px;
    height: 400px;
    top: -120px;
    right: -80px;
    background: radial-gradient(circle, rgba(99,102,241,0.3), transparent 70%);
}

.aft-help-hero-glow--2 {
    width: 300px;
    height: 300px;
    bottom: -60px;
    left: -60px;
    background: radial-gradient(circle, rgba(139,92,246,0.25), transparent 70%);
}

html.dark-theme .aft-help-hero-glow--1 {
    opacity: 0.25;
}
html.dark-theme .aft-help-hero-glow--2 {
    opacity: 0.2;
}

.aft-help-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}

/* Badge */
.aft-help-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--accent);
    background: rgba(99,102,241,0.10);
    border: 1px solid rgba(99,102,241,0.20);
    padding: 6px 18px;
    border-radius: 50px;
    margin-bottom: 20px;
}

.aft-help-hero-badge i {
    font-size: 0.7rem;
}

/* Title */
.aft-help-hero-title {
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    font-weight: 800;
    color: var(--text);
    line-height: 1.2;
    margin: 0 0 12px;
    letter-spacing: -0.03em;
}

.aft-help-hero-sub {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0 auto 32px;
    max-width: 640px;
}

/* ── Search ── */
.aft-help-search-wrap {
    position: relative;
    max-width: 580px;
    margin: 0 auto;
}

.aft-help-search-box {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 50px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    transition: border-color 0.3s, box-shadow 0.3s;
}

.aft-help-search-box:focus-within {
    border-color: var(--accent);
    box-shadow: 0 4px 24px rgba(99,102,241,0.12), 0 0 0 4px rgba(99,102,241,0.06);
}

.aft-help-search-ico {
    position: absolute;
    left: 22px;
    color: var(--text-muted);
    font-size: 1rem;
    pointer-events: none;
}

.aft-help-search-inp {
    width: 100%;
    padding: 16px 120px 16px 52px;
    border: none;
    border-radius: 50px;
    background: transparent;
    font-size: 1rem;
    color: var(--text);
    outline: none;
    font-family: inherit;
}

.aft-help-search-inp::placeholder {
    color: var(--text-muted);
}

.aft-help-search-clear {
    position: absolute;
    right: 68px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 0.9rem;
    padding: 6px;
    border-radius: 50%;
    transition: all 0.2s;
}

.aft-help-search-clear:hover {
    color: var(--text);
    background: var(--border);
}

.aft-help-search-btn {
    position: absolute;
    right: 5px;
    padding: 10px 22px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: background 0.2s, transform 0.2s;
}

.aft-help-search-btn:hover {
    background: var(--accent-hover);
    transform: scale(1.02);
}

/* ── Main Content ── */
.aft-help-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 24px 60px;
}

@media (min-width: 768px) {
    .aft-help-main {
        padding: 56px 32px 72px;
    }
}

/* ── Help Categories ── */
.aft-help-categories {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 48px;
}

@media (min-width: 640px) {
    .aft-help-categories {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (min-width: 992px) {
    .aft-help-categories {
        grid-template-columns: repeat(3, 1fr);
        gap: 28px;
    }
}

.aft-help-category-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px 24px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.aft-help-category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(99,102,241,0.2);
}

.aft-help-category-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(99,102,241,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 1.4rem;
    color: var(--accent);
}

.aft-help-category-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 8px;
}

.aft-help-category-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0 0 16px;
}

.aft-help-category-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    transition: all 0.2s;
}

.aft-help-category-link i {
    font-size: 0.7rem;
    transition: transform 0.2s;
}

.aft-help-category-link:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

.aft-help-category-link:hover i {
    transform: translateX(4px);
}

/* ── Support Section ── */
.aft-help-support {
    background: linear-gradient(135deg, rgba(99,102,241,0.04), rgba(139,92,246,0.04));
    border: 1px solid rgba(99,102,241,0.08);
    border-radius: 14px;
    padding: 36px 28px;
    text-align: center;
}

@media (min-width: 768px) {
    .aft-help-support {
        padding: 44px 36px;
    }
}

.aft-help-support-content {
    max-width: 700px;
    margin: 0 auto;
}

.aft-help-support-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 12px;
}

@media (min-width: 768px) {
    .aft-help-support-title {
        font-size: 1.6rem;
    }
}

.aft-help-support-text {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0 0 24px;
}

.aft-help-support-options {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 16px;
}

.aft-help-support-option {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--accent);
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.aft-help-support-option:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99,102,241,0.3);
    color: #fff;
    text-decoration: none;
}

.aft-help-support-option i {
    font-size: 0.9rem;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .aft-help-hero {
        padding: calc(var(--header-h) + 24px) 16px 36px;
    }
    
    .aft-help-hero-title {
        font-size: 1.8rem;
    }
    
    .aft-help-hero-sub {
        font-size: 0.95rem;
    }
    
    .aft-help-main {
        padding: 32px 16px 48px;
    }
    
    .aft-help-search-inp {
        font-size: 0.88rem;
        padding: 14px 90px 14px 44px;
    }
    
    .aft-help-search-btn {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
    
    .aft-help-category-card {
        padding: 22px 18px;
    }
    
    .aft-help-support {
        padding: 28px 20px;
    }
}

@media (max-width: 480px) {
    .aft-help-hero {
        padding: calc(var(--header-h) + 16px) 12px 28px;
    }
    
    .aft-help-hero-title {
        font-size: 1.5rem;
    }
    
    .aft-help-hero-sub {
        font-size: 0.88rem;
    }
    
    .aft-help-main {
        padding: 24px 12px 40px;
    }
    
    .aft-help-search-inp {
        font-size: 0.82rem;
        padding: 12px 70px 12px 38px;
    }
    
    .aft-help-search-clear {
        right: 54px;
    }
    
    .aft-help-search-btn {
        padding: 6px 14px;
        font-size: 0.75rem;
    }
    
    .aft-help-search-box i {
        left: 16px;
        font-size: 0.85rem;
    }
    
    .aft-help-categories {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .aft-help-support {
        padding: 24px 16px;
    }
    
    .aft-help-support-title {
        font-size: 1.2rem;
    }
    
    .aft-help-support-options {
        flex-direction: column;
        align-items: center;
    }
    
    .aft-help-support-option {
        width: 100%;
        justify-content: center;
    }
}