/* ── Help & Setup section — clean monochrome design ── */
/* Matches Booking & SMS, Google Calendar, and Notifications panels */

/* Monochrome tokens */
.help-panel {
    --help-card-bg: #ffffff;
    --help-border: #e2e2e2;
    --help-border-light: #eeeeee;
    --help-text-primary: #111111;
    --help-text-secondary: #555555;
    --help-text-muted: #999999;
    --help-hover-bg: #f7f7f7;
}

/* ── Wrapper ── */
.help-wrap {
    max-width: 820px;
    margin: 0 auto;
    padding: 2.5rem 0 2rem;
    background: transparent;
    border: none;
    box-shadow: none;
}

/* ── Back link ── */
.help-back {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--help-text-muted);
    text-decoration: none;
    cursor: pointer;
    margin-bottom: 1.25rem;
    transition: color 0.15s ease;
}
.help-back:hover {
    color: var(--help-text-secondary);
}

/* ── Page heading ── */
.help-heading {
    font-size: 1.625rem;
    font-weight: 650;
    color: var(--help-text-primary);
    letter-spacing: -0.025em;
    line-height: 1.25;
    margin-bottom: 0.375rem;
}
.help-subtitle {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--help-text-muted);
    line-height: 1.5;
    margin-bottom: 2rem;
}

/* ── Section header rows (icon + title + subtitle) ── */
.help-plan-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 0 1rem;
    border-bottom: 1px solid var(--help-border);
    margin-bottom: 0.25rem;
}
.help-plan-id {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.help-plan-icon {
    color: var(--help-text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}
.help-plan-name {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--help-text-primary);
    letter-spacing: -0.01em;
}
.help-plan-cycle {
    font-size: 0.8125rem;
    color: var(--help-text-muted);
    margin-top: 0.125rem;
}

/* ── Content sections ── */
.help-section {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--help-border-light);
}
.help-section:last-child {
    border-bottom: none;
}

/* ── Card list (flat rows with bottom border) ── */
.help-card-list {
    display: flex;
    flex-direction: column;
}
.help-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.875rem 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--help-border-light);
}
.help-card:last-child {
    border-bottom: none;
}
.help-card-info {
    flex: 1;
    min-width: 0;
}
.help-card-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--help-text-primary);
    margin-bottom: 0.125rem;
}
.help-card-desc {
    font-size: 0.8125rem;
    color: var(--help-text-muted);
    line-height: 1.45;
}

/* ── Step items (numbered) ── */
.help-step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--help-border-light);
}
.help-step:last-child {
    border-bottom: none;
}
.help-step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--help-text-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8125rem;
    flex-shrink: 0;
}
.help-step-content {
    flex: 1;
    padding-top: 0.25rem;
}
.help-step-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--help-text-primary);
    margin-bottom: 0.25rem;
}
.help-step-desc {
    font-size: 0.8125rem;
    color: var(--help-text-muted);
    line-height: 1.5;
}

/* ── Feature list (check items) ── */
.help-feature-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.help-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--help-border-light);
    font-size: 0.8125rem;
    color: var(--help-text-secondary);
    line-height: 1.55;
}
.help-feature-item:last-child {
    border-bottom: none;
}
.help-feature-item svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--help-text-muted);
}
.help-feature-item strong {
    color: var(--help-text-primary);
    font-weight: 600;
}

/* ── Inline code display ── */
.help-code-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border: 1px solid var(--help-border);
    border-radius: 8px;
    background: transparent;
}
.help-code-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: var(--help-text-muted);
}
.help-code-value {
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--help-text-primary);
    letter-spacing: 0.02em;
}

/* ── Phone setup screenshots ── */
.help-screenshot-row {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.75rem;
    justify-content: center;
}
.help-screenshot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.375rem;
}
.help-screenshot img {
    width: 160px;
    border-radius: 10px;
    border: 1px solid var(--help-border);
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.help-screenshot-caption {
    font-size: 0.6875rem;
    color: var(--help-text-muted);
    font-weight: 500;
}
@media (max-width: 520px) {
    .help-screenshot img {
        width: 130px;
    }
}

/* ── Contact card ── */
.help-contact-card {
    border: 1px solid var(--help-border);
    border-radius: 10px;
    overflow: hidden;
    background: transparent;
}
.help-contact-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
}
.help-contact-row + .help-contact-row {
    border-top: 1px solid var(--help-border-light);
}
.help-contact-label {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--help-text-primary);
}
.help-contact-hint {
    font-size: 0.75rem;
    color: var(--help-text-muted);
}
.help-contact-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--help-text-primary);
    text-decoration: none;
    letter-spacing: 0.01em;
    margin-top: 0.25rem;
}
.help-contact-value-sm {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--help-text-primary);
    text-decoration: none;
    margin-top: 0.25rem;
}

/* ── Buttons ── */
.help-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.875rem;
    font-size: 0.8125rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    background: var(--help-text-primary);
    color: white;
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.15s ease;
    font-family: inherit;
}
.help-btn-primary:hover {
    opacity: 0.85;
}
.help-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
    font-weight: 500;
    border: 1px solid var(--help-border);
    border-radius: 8px;
    background: transparent;
    color: var(--help-text-secondary);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s ease;
    font-family: inherit;
}
.help-btn-secondary:hover {
    background: var(--help-hover-bg);
    color: var(--help-text-primary);
}

/* ── Setup checklist ── */
.help-checklist-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--help-border-light);
}
.help-checklist-item:last-child {
    border-bottom: none;
}
.help-checklist-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
    flex: 1;
}
.help-check {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.help-check-done {
    background: var(--help-text-primary);
}
.help-check-pending {
    border: 1.5px solid #ccc;
}
.help-checklist-actions {
    display: flex;
    gap: 0.375rem;
    flex-shrink: 0;
}

/* ── Phone selector grid ── */
.help-phone-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.75rem;
}
.help-phone-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.375rem;
    padding: 1.25rem 0.75rem;
    border: 1px solid var(--help-border);
    border-radius: 10px;
    background: transparent;
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: inherit;
    color: var(--help-text-primary);
}
.help-phone-option:hover {
    background: var(--help-hover-bg);
    border-color: var(--help-text-muted);
}
.help-phone-option.selected {
    border-color: var(--help-text-primary);
    background: var(--help-hover-bg);
}
.help-phone-option svg {
    color: var(--help-text-muted);
}
.help-phone-name {
    font-weight: 600;
    font-size: 0.875rem;
}
.help-phone-detail {
    font-size: 0.6875rem;
    color: var(--help-text-muted);
}

/* ── Info box (replaces gray-50 background boxes) ── */
.help-info-box {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    padding: 0.75rem 1rem;
    border: 1px solid var(--help-border-light);
    border-radius: 8px;
    font-size: 0.8125rem;
    color: var(--help-text-muted);
    line-height: 1.5;
    margin-top: 0.75rem;
}
.help-info-box strong {
    color: var(--help-text-secondary);
}
.help-info-box svg {
    flex-shrink: 0;
    margin-top: 1px;
    color: var(--help-text-muted);
}

/* ── Availability paragraph ── */
.help-availability {
    font-size: 0.8125rem;
    color: var(--help-text-muted);
    line-height: 1.7;
    padding: 1rem 0;
}

/* ── Topic list ── */
.help-topic-list {
    display: flex;
    flex-direction: column;
}
.help-topic-item {
    padding: 0.625rem 0;
    border-bottom: 1px solid var(--help-border-light);
    font-size: 0.8125rem;
    color: var(--help-text-secondary);
}
.help-topic-item:last-child {
    border-bottom: none;
}

/* ── FAQ ── */
.help-faq-wrap {
    display: flex;
    flex-direction: column;
}

/* ── Progress bar ── */
.help-progress-bar {
    display: flex;
    gap: 3px;
}
.help-progress-segment {
    width: 28px;
    height: 3px;
    border-radius: 2px;
}
.help-progress-done {
    background: var(--help-text-primary);
}
.help-progress-pending {
    background: var(--help-border);
}

/* ── Responsive ── */
@media (max-width: 640px) {
    .help-wrap {
        padding: 1.5rem 0 1rem;
    }
    .help-heading {
        font-size: 1.375rem;
    }
    .help-phone-grid {
        grid-template-columns: 1fr;
    }
    .help-contact-row {
        flex-direction: column;
        gap: 0.25rem;
    }
    .help-contact-hint {
        align-self: flex-start;
    }
    .help-checklist-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    .help-checklist-actions {
        padding-left: 2.5rem;
    }
}

/* ── Dark Mode ── */
[data-theme="dark-mode"] .help-panel {
    --help-card-bg: #1c1917;
    --help-border: #44403c;
    --help-border-light: #363230;
    --help-text-primary: #faf8f5;
    --help-text-secondary: #d6d3d1;
    --help-text-muted: #a8a29e;
    --help-hover-bg: rgba(255, 255, 255, 0.06);
}
[data-theme="dark-mode"] .help-step-num {
    background: #faf8f5;
    color: #1c1917;
}
[data-theme="dark-mode"] .help-check-done {
    background: #faf8f5;
}
[data-theme="dark-mode"] .help-check-pending {
    border-color: #57534e;
}
[data-theme="dark-mode"] .help-btn-primary {
    background: #faf8f5;
    color: #1c1917;
}
[data-theme="dark-mode"] .help-btn-secondary {
    border-color: #57534e;
    color: #d6d3d1;
}
[data-theme="dark-mode"] .help-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: #78716c;
    color: #faf8f5;
}
[data-theme="dark-mode"] .help-contact-card {
    border-color: #44403c;
    background: #292524;
}
[data-theme="dark-mode"] .help-screenshot img {
    border-color: #44403c;
}
[data-theme="dark-mode"] .help-progress-done {
    background: #faf8f5;
}
[data-theme="dark-mode"] .help-progress-pending {
    background: #44403c;
}
