/* ========== iOS 18 Help Center ========== */
.ios-help-page {
    max-width: 820px;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
}

/* Hero */
.ios-help-hero {
    text-align: center;
    padding: 2rem 0 1.5rem;
}

.ios-help-hero-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 76px;
    border-radius: 22px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    margin-bottom: 1.25rem;
}

.ios-help-hero-title {
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--text-main);
    margin: 0 0 0.5rem;
}

.ios-help-hero-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    margin: 0 0 1rem;
    line-height: 1.6;
}

.ios-help-hero-stats {
    display: flex;
    justify-content: center;
}

.ios-help-stat-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Search */
.ios-help-search-wrap {
    margin-bottom: 1.5rem;
}

.ios-help-search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 12px 16px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.ios-help-search-box:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.ios-help-search-box svg {
    flex-shrink: 0;
    color: var(--text-muted);
    opacity: 0.6;
}

.ios-help-search-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 0.95rem;
    color: var(--text-main);
    font-family: inherit;
}

.ios-help-search-input::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
}

/* FAQ List */
.ios-help-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.ios-faq-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* FAQ Card */
.ios-faq-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
}

.ios-faq-card:hover {
    border-color: rgba(37, 99, 235, 0.3);
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.08);
}

.ios-faq-card.is-open {
    border-color: var(--primary);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.12);
}

/* Header */
.ios-faq-header {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    transition: background 0.2s;
}

.ios-faq-header:hover {
    background: rgba(37, 99, 235, 0.03);
}

.ios-faq-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: rgba(37, 99, 235, 0.08);
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 700;
    flex-shrink: 0;
    transition: all 0.25s ease;
}

.ios-faq-card.is-open .ios-faq-num {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 3px 10px rgba(37, 99, 235, 0.3);
}

.ios-faq-question {
    flex: 1;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.4;
}

.ios-faq-chevron {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: transparent;
    color: var(--text-muted);
    flex-shrink: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ios-faq-card.is-open .ios-faq-chevron {
    transform: rotate(180deg);
    color: var(--primary);
}

/* Body */
.ios-faq-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.ios-faq-body-inner {
    padding: 0 18px 18px;
    padding-left: 64px;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.75;
}

.ios-faq-body-inner img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin-top: 12px;
}

.ios-faq-body-inner a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.ios-faq-body-inner a:hover {
    text-decoration: underline;
}

/* Empty */
.ios-faq-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.ios-faq-empty.hidden {
    display: none;
}

.ios-faq-empty p {
    margin-top: 0.75rem;
}

/* Feedback Card */
.ios-help-feedback-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.ios-help-feedback-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
}

.ios-help-feedback-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    flex-shrink: 0;
}

.ios-help-feedback-text {
    flex: 1;
    min-width: 0;
}

.ios-help-feedback-text h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0 0 2px;
}

.ios-help-feedback-text p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

.ios-help-feedback-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: var(--primary);
    color: #fff;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.25s ease;
}

.ios-help-feedback-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .ios-help-page {
        padding: 1rem 0.75rem 3rem;
    }

    .ios-help-hero {
        padding: 1.5rem 0 1rem;
    }

    .ios-help-hero-icon {
        width: 60px;
        height: 60px;
        border-radius: 18px;
    }

    .ios-help-hero-icon svg {
        width: 28px;
        height: 28px;
    }

    .ios-help-hero-title {
        font-size: 1.6rem;
    }

    .ios-help-hero-subtitle {
        font-size: 0.875rem;
    }

    .ios-faq-header {
        padding: 14px 14px;
        gap: 10px;
    }

    .ios-faq-num {
        width: 28px;
        height: 28px;
        border-radius: 8px;
        font-size: 0.75rem;
    }

    .ios-faq-question {
        font-size: 0.875rem;
    }

    .ios-faq-body-inner {
        padding: 0 14px 14px;
        padding-left: 52px;
        font-size: 0.825rem;
    }

    .ios-help-feedback-inner {
        flex-direction: column;
        text-align: center;
        gap: 12px;
        padding: 20px 16px;
    }

    .ios-help-feedback-icon {
        width: 48px;
        height: 48px;
        border-radius: 14px;
    }

    .ios-help-feedback-icon svg {
        width: 22px;
        height: 22px;
    }
}
