/* =========================================
   HELP & FAQ PAGE STYLES
   Crypto Tek AI - Modern Mobile App Design
   ========================================= */

.help-page {
    padding: 0 var(--spacing-md);
    padding-bottom: 100px;
    max-width: 600px;
    margin: 0 auto;
}

/* ── Header Section ── */
.help-header {
    text-align: center;
    padding: 32px 20px 28px;
    margin: 0 calc(-1 * var(--spacing-md));
    margin-bottom: 24px;
    background: linear-gradient(180deg, rgba(255, 107, 53, 0.12) 0%, transparent 100%);
    position: relative;
}

.help-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20px;
    right: 20px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

.help-header-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 16px;
    margin-bottom: 12px;
    color: white;
    box-shadow: 0 8px 24px rgba(255, 107, 53, 0.25);
}

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

.help-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
    letter-spacing: -0.3px;
}

.help-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    max-width: 300px;
    margin: 0 auto;
    line-height: 1.4;
}

/* ── Section Styling ── */
.help-section {
    margin-bottom: 28px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
    padding: 0;
    border: none;
    letter-spacing: -0.2px;
}

.section-icon {
    font-size: 20px;
}

.section-desc {
    color: var(--text-muted);
    margin-bottom: 14px;
    font-size: 13px;
    line-height: 1.4;
}

/* ── Package Cards - Expandable Accordion ── */
.package-cards {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.help-page .package-card {
    display: block;
    background: var(--card-bg);
    border-radius: 14px;
    padding: 0;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    transition: border-color 150ms ease, box-shadow 150ms ease;
    min-width: unset;
    max-width: unset;
    flex-shrink: unset;
    scroll-snap-align: unset;
}

.help-page .package-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--package-color, var(--primary-color));
}

.help-page .package-card.expanded {
    border-color: var(--package-color, rgba(255, 107, 53, 0.3));
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.help-page .package-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 14px;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    gap: 10px;
    margin-bottom: 0;
}

.help-page .package-card-header:active {
    background: rgba(255, 255, 255, 0.03);
}

.package-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.package-header-info {
    flex: 1;
    min-width: 0;
}

.package-icon {
    font-size: 22px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border-radius: 10px;
    flex-shrink: 0;
}

.help-page .package-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.help-page .package-desc {
    font-size: 11px;
    color: var(--text-muted);
    margin: 2px 0 0 0;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    -webkit-line-clamp: unset;
    -webkit-box-orient: unset;
}

.package-toggle {
    color: var(--text-muted);
    transition: transform 200ms ease;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg-tertiary);
}

.package-toggle svg {
    width: 14px;
    height: 14px;
}

.help-page .package-card.expanded .package-toggle {
    transform: rotate(180deg);
    background: rgba(255, 107, 53, 0.15);
    color: var(--primary-color);
}

.package-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 300ms ease;
}

.help-page .package-card.expanded .package-content {
    max-height: 800px;
}

.package-content-inner {
    padding: 0 14px 14px;
    border-top: 1px solid var(--border-color);
    padding-top: 10px;
}

/* Package Feature Rows */
.pkg-feature-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.pkg-feature-row:last-child {
    border-bottom: none;
}

.pkg-feature-icon {
    font-size: 15px;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.pkg-feature-name {
    flex: 1;
    font-size: 13px;
    color: var(--text-secondary);
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pkg-value {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    flex-shrink: 0;
    text-align: right;
    min-width: 50px;
}

.pkg-value-locked {
    color: #EF4444;
}

.pkg-value-unlimited {
    color: var(--success-color);
    font-size: 16px;
}

.pkg-value-highlight {
    color: #00D4FF;
}

.pkg-value-check {
    color: var(--success-color);
}

/* ── Feature Accordion ── */
.feature-accordion {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.help-page .feature-item {
    display: block;
    background: var(--card-bg);
    border-radius: 14px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: border-color 150ms ease, box-shadow 150ms ease;
    padding: 0;
    color: inherit;
    font-size: inherit;
    align-items: initial;
    gap: initial;
}

.help-page .feature-item.expanded {
    border-color: rgba(255, 107, 53, 0.3);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.feature-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    gap: 10px;
}

.feature-header:active {
    background: rgba(255, 255, 255, 0.03);
}

.feature-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.feature-icon {
    font-size: 18px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border-radius: 8px;
    flex-shrink: 0;
}

.feature-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.feature-toggle {
    color: var(--text-muted);
    transition: transform 200ms ease;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg-tertiary);
}

.feature-toggle svg {
    width: 14px;
    height: 14px;
}

.help-page .feature-item.expanded .feature-toggle {
    transform: rotate(180deg);
    background: rgba(255, 107, 53, 0.15);
    color: var(--primary-color);
}

.help-page .feature-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 300ms ease;
}

.help-page .feature-item.expanded .feature-content {
    max-height: 600px;
}

.feature-content-inner {
    padding: 0 14px 14px;
    border-top: 1px solid var(--border-color);
    margin-top: 0;
    padding-top: 12px;
}

.feature-desc {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 12px;
}

.feature-limits h4 {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.limits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}

.limit-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 8px 4px;
    background: var(--bg-tertiary);
    border-radius: 8px;
    text-align: center;
}

.limit-package {
    font-size: 10px;
    color: var(--text-muted);
}

.limit-value {
    font-size: 11px;
    font-weight: 600;
    color: var(--primary-color);
}

/* ── Comparison Section - Mobile Card Layout ── */
.comparison-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 calc(-1 * var(--spacing-md));
    padding: 0 var(--spacing-md);
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.comparison-table-wrapper::-webkit-scrollbar {
    display: none;
}

.comparison-table {
    width: 100%;
    min-width: 480px;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--card-bg);
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.comparison-table thead {
    position: sticky;
    top: 0;
    z-index: 2;
}

.comparison-table th {
    padding: 12px 8px;
    text-align: center;
    background: var(--bg-tertiary);
    font-size: 11px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    border-bottom: 1px solid var(--border-color);
}

.comparison-table th:first-child {
    text-align: left;
    padding-left: 14px;
    font-size: 12px;
}

.th-icon {
    display: block;
    font-size: 16px;
    margin-bottom: 2px;
}

.comparison-table td {
    padding: 10px 8px;
    text-align: center;
    font-size: 12px;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(42, 47, 69, 0.5);
}

.comparison-table td:first-child {
    text-align: left;
    padding-left: 14px;
    font-size: 13px;
    color: var(--text-primary);
    font-weight: 500;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table tbody tr:active td {
    background: rgba(255, 107, 53, 0.04);
}

.limit-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 600;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    min-width: 40px;
}

.limit-badge.locked {
    background: rgba(244, 67, 54, 0.1);
    color: var(--danger-color);
}

.limit-badge.limited {
    background: rgba(255, 152, 0, 0.1);
    color: var(--warning-color);
}

.limit-badge.unlimited {
    background: rgba(76, 175, 80, 0.1);
    color: var(--success-color);
    font-size: 14px;
}

/* ── FAQ Section ── */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.faq-item {
    background: var(--card-bg);
    border-radius: 14px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: border-color 150ms ease;
}

.faq-item.expanded {
    border-color: rgba(36, 129, 204, 0.3);
}

.faq-question {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.faq-question:active {
    background: rgba(255, 255, 255, 0.03);
}

.faq-q-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #1a6baa 100%);
    border-radius: 6px;
    color: white;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
}

.faq-q-text {
    flex: 1;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.4;
}

.faq-toggle {
    color: var(--text-muted);
    transition: transform 200ms ease;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg-tertiary);
}

.faq-toggle svg {
    width: 14px;
    height: 14px;
}

.faq-item.expanded .faq-toggle {
    transform: rotate(180deg);
    background: rgba(36, 129, 204, 0.15);
    color: var(--secondary-color);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 300ms ease;
}

.faq-item.expanded .faq-answer {
    max-height: 400px;
}

.faq-answer-inner {
    padding: 0 14px 12px;
    padding-left: 48px;
    border-top: 1px solid var(--border-color);
    padding-top: 10px;
}

.faq-answer p {
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.6;
    padding: 0;
}

/* ── Tips Section ── */
.tips-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tip-card {
    background: var(--card-bg);
    border-radius: 14px;
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    position: relative;
}

.tip-card::before {
    display: none;
}

.tip-number {
    position: relative;
    top: auto;
    right: auto;
    width: 32px;
    height: 32px;
    min-width: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.15) 0%, rgba(36, 129, 204, 0.15) 100%);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-color);
}

.tip-content {
    flex: 1;
    min-width: 0;
}

.tip-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    padding: 0;
}

.tip-desc {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ── Disclaimer Section ── */
.help-disclaimer {
    background: rgba(255, 152, 0, 0.06);
    border: 1px solid rgba(255, 152, 0, 0.15);
    border-radius: 14px;
    padding: 14px 16px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 24px;
}

.disclaimer-icon {
    font-size: 20px;
    flex-shrink: 0;
    line-height: 1;
}

.help-disclaimer p {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* =========================================
   DESKTOP RESPONSIVE - Help Page
   ========================================= */

@media (min-width: 768px) {
    .help-page {
        max-width: 900px;
        padding: 0 24px;
        padding-bottom: 100px;
    }

    .help-header {
        padding: 48px 40px 40px;
        margin-bottom: 32px;
        border-radius: 0 0 24px 24px;
    }

    .help-header-icon {
        width: 64px;
        height: 64px;
        border-radius: 18px;
        margin-bottom: 16px;
    }

    .help-header-icon svg {
        width: 32px;
        height: 32px;
    }

    .help-title {
        font-size: 28px;
        margin-bottom: 8px;
    }

    .help-subtitle {
        font-size: 16px;
        max-width: 460px;
    }

    .help-section {
        margin-bottom: 36px;
    }

    .section-title {
        font-size: 20px;
        margin-bottom: 8px;
    }

    .section-icon {
        font-size: 22px;
    }

    .section-desc {
        font-size: 15px;
        margin-bottom: 18px;
    }

    /* Package Cards */
    .package-cards {
        gap: 10px;
    }

    .help-page .package-card-header {
        padding: 16px 18px;
    }

    .help-page .package-name {
        font-size: 16px;
    }

    .help-page .package-desc {
        font-size: 13px;
    }

    .package-content-inner {
        padding: 0 18px 18px;
    }

    .pkg-feature-name {
        font-size: 14px;
    }

    .pkg-value {
        font-size: 13px;
    }

    /* Feature Accordion */
    .feature-accordion {
        gap: 10px;
    }

    .feature-header {
        padding: 14px 18px;
    }

    .feature-name {
        font-size: 15px;
    }

    .feature-content-inner {
        padding: 0 18px 18px;
    }

    .feature-desc {
        font-size: 14px;
    }

    .limits-grid {
        gap: 10px;
    }

    .limit-item {
        padding: 10px 6px;
    }

    .limit-package {
        font-size: 11px;
    }

    .limit-value {
        font-size: 12px;
    }

    /* Comparison Table */
    .comparison-table {
        min-width: auto;
    }

    .comparison-table th {
        padding: 14px 12px;
        font-size: 13px;
    }

    .comparison-table th:first-child {
        font-size: 14px;
        padding-left: 20px;
    }

    .comparison-table td {
        padding: 12px;
        font-size: 14px;
    }

    .comparison-table td:first-child {
        padding-left: 20px;
        font-size: 14px;
    }

    .limit-badge {
        padding: 5px 10px;
        font-size: 11px;
    }

    /* FAQ */
    .faq-list {
        gap: 10px;
    }

    .faq-question {
        padding: 14px 18px;
    }

    .faq-q-text {
        font-size: 15px;
    }

    .faq-answer-inner {
        padding: 0 18px 14px;
        padding-left: 52px;
    }

    .faq-answer p {
        font-size: 14px;
    }

    /* Tips */
    .tips-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .tip-card {
        padding: 18px 20px;
        border-radius: 16px;
        transition: border-color 200ms ease, transform 200ms ease;
    }

    .tip-card:hover {
        border-color: rgba(255, 107, 53, 0.2);
        transform: translateY(-2px);
    }

    .tip-title {
        font-size: 15px;
    }

    .tip-desc {
        font-size: 13px;
    }

    /* Disclaimer */
    .help-disclaimer {
        padding: 18px 20px;
        border-radius: 16px;
    }

    .help-disclaimer p {
        font-size: 14px;
    }
}

@media (min-width: 1200px) {
    .help-page {
        max-width: 1100px;
        padding: 0 40px;
        padding-bottom: 120px;
    }

    .help-header {
        padding: 56px 60px 48px;
        margin-bottom: 40px;
    }

    .help-header-icon {
        width: 72px;
        height: 72px;
        border-radius: 20px;
    }

    .help-header-icon svg {
        width: 36px;
        height: 36px;
    }

    .help-title {
        font-size: 32px;
    }

    .help-subtitle {
        font-size: 17px;
        max-width: 520px;
    }

    .help-section {
        margin-bottom: 44px;
    }

    .section-title {
        font-size: 22px;
    }

    .section-desc {
        font-size: 16px;
    }

    /* Package Cards - 2 column layout */
    .package-cards {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .help-page .package-name {
        font-size: 17px;
    }

    /* Feature Accordion - 2 column */
    .feature-accordion {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .feature-name {
        font-size: 15px;
    }

    /* Comparison Table */
    .comparison-table th {
        padding: 16px 16px;
        font-size: 14px;
    }

    .comparison-table td {
        padding: 14px 16px;
        font-size: 15px;
    }

    .limit-badge {
        padding: 6px 12px;
        font-size: 12px;
    }

    /* FAQ */
    .faq-q-text {
        font-size: 16px;
    }

    .faq-answer p {
        font-size: 15px;
    }

    /* Tips - 4 columns */
    .tips-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
    }

    .tip-card {
        padding: 20px;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .tip-number {
        width: 40px;
        height: 40px;
        font-size: 16px;
        margin-bottom: 4px;
    }

    .tip-title {
        font-size: 15px;
    }

    .tip-desc {
        font-size: 13px;
    }

    .help-disclaimer {
        padding: 20px 24px;
    }
}
