/* HumanFix - Dashboard Styles */

/* Task page H1 */
.task-page-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    line-height: 1.3;
}

/* Request cards — vertical bounty ticket */
.requests-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.request-card {
    display: block;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 18px 20px;
    position: relative;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    text-decoration: none;
    color: inherit;
    border-left: 4px solid var(--accent);
}
.request-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
    color: inherit;
}
/* Status-based accent bar colors */
.request-card.rc-open { border-left-color: var(--accent); }
.request-card.rc-accepted { border-left-color: var(--accent); }
.request-card.rc-in_progress { border-left-color: #f59e0b; }
.request-card.rc-delivered { border-left-color: #06b6d4; }
.request-card.rc-revision_requested { border-left-color: #f59e0b; }
.request-card.rc-completed { border-left-color: #16a34a; }
.request-card.rc-cancelled { border-left-color: var(--text-muted); }
.request-card.rc-expired { border-left-color: #dc2626; }

.rc-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}
.rc-bounty {
    display: flex;
    align-items: center;
    gap: 8px;
}
.rc-bounty-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}
.rc-bounty-amount {
    font-size: 22px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
}
.rc-body {
    margin-bottom: 12px;
}
.rc-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.rc-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.rc-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
}
.rc-meta svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}
.card-pills {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    min-width: 0;
}
.card-pill {
    display: inline-block;
    padding: 2px 10px;
    background: var(--accent-light);
    color: var(--accent);
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
}
.card-countdown {
    font-size: 12px;
    font-weight: 600;
    font-family: 'SF Mono', 'Fira Code', monospace;
    color: var(--text-muted);
    white-space: nowrap;
}
.countdown-urgent {
    color: var(--danger);
}
.countdown-expired {
    color: var(--danger);
    font-weight: 700;
}
.rc-wrapper {
    display: contents;
}

@media (max-width: 640px) {
    .request-card {
        padding: 14px 16px;
    }
    .rc-bounty-amount {
        font-size: 18px;
    }
    .rc-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
}

/* Request detail */
.request-header {
    margin-bottom: 24px;
}
.request-meta-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
    flex-wrap: wrap;
}
.description-text {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    white-space: pre-wrap;
}

/* Quotes */
.quotes-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.quote-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    background: var(--bg-primary);
    box-shadow: var(--shadow-sm);
}
.quote-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.quote-expert strong {
    font-size: 15px;
}
.price-amount {
    font-size: 22px;
    font-weight: 700;
    color: var(--accent);
}
.quote-message {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 12px;
}
.quote-meta {
    display: flex;
    gap: 16px;
    align-items: center;
}
.quote-status {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 4px;
}
.quote-status.PENDING { color: #a16207; }
.quote-status.ACCEPTED { color: #16a34a; }
.quote-status.DECLINED { color: #dc2626; }
.quote-status.WITHDRAWN { color: #64748b; }
.quote-actions {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

/* Delivery */
.delivery-item {
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
}
.delivery-item:last-child {
    border-bottom: none;
}
.delivery-item h3 {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 12px 0 6px;
}
.delivery-item h3:first-child {
    margin-top: 0;
}
.delivery-meta {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 8px;
}
.revision-badge {
    display: inline-block;
    padding: 2px 8px;
    background: var(--warning-bg);
    color: var(--warning);
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}
.delivery-actions {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.revision-form {
    padding: 20px;
    background: var(--bg-primary);
    border-radius: var(--radius);
}
.auto-approve-notice {
    font-size: 13px;
    color: var(--text-muted);
    padding: 12px;
    background: var(--warning-bg);
    border-radius: var(--radius);
    border: 1px solid rgba(234, 179, 8, 0.2);
}

/* Checkout success */
.success-icon {
    font-size: 48px;
    margin-bottom: 16px;
}
.checkout-next-steps {
    text-align: left;
    margin: 32px 0;
    padding: 20px;
    background: var(--bg-primary);
    border-radius: var(--radius);
}
.checkout-next-steps h3 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
}
.next-steps-list {
    padding-left: 24px;
}
.next-steps-list li {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    line-height: 1.5;
}

/* Stats row */
.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}
.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}
.stat-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}
.stat-value {
    display: block;
    font-size: 32px;
    font-weight: 800;
    color: var(--accent);
}
.stat-label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* GitHub username */
.github-username {
    color: var(--accent);
    font-family: monospace;
}

/* Budget display */
.budget-display {
    text-align: center;
    padding: 16px 0;
}
.budget-amount {
    font-size: 28px;
    font-weight: 700;
    color: var(--accent);
}
.budget-label {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}
.budget-tag {
    display: inline-block;
    padding: 2px 8px;
    background: var(--accent-light);
    color: var(--accent);
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
}

/* Share card */
.share-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}
.share-card-inner {
    margin-bottom: 16px;
}
.share-card-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
}
.share-url-box {
    display: flex;
    gap: 8px;
    margin-bottom: 4px;
}
.share-card-steps {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
    padding-top: 14px;
    border-top: 1px solid var(--border-color);
}
.share-step-arrow {
    color: var(--text-muted);
    opacity: 0.5;
}
.share-social {
    display: flex;
    gap: 8px;
}

/* Key value (for sensitive data) */
.key-value {
    font-family: monospace;
    font-size: 12px;
    word-break: break-all;
    background: var(--bg-primary);
    padding: 4px 8px;
    border-radius: 4px;
}

/* ========== Wizard ========== */
.wizard-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 32px;
    padding: 0 16px;
}
.wizard-step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1;
}
.wizard-step-indicator .step-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    position: relative;
    z-index: 1;
    transition: all 0.2s;
}
.wizard-step-indicator.active .step-circle {
    border-color: var(--accent);
    background: var(--accent);
    color: #fff;
}
.wizard-step-indicator.done .step-circle {
    border-color: #16a34a;
    background: #16a34a;
    color: #fff;
}
.wizard-step-indicator .step-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 6px;
    font-weight: 500;
}
.wizard-step-indicator.active .step-label {
    color: var(--accent);
}
.wizard-step-indicator.done .step-label {
    color: #16a34a;
}
.wizard-step-indicator + .wizard-step-indicator::before {
    content: '';
    position: absolute;
    top: 18px;
    right: 50%;
    width: 100%;
    height: 2px;
    background: var(--border-color);
    z-index: 0;
}
.wizard-step-indicator.active + .wizard-step-indicator::before,
.wizard-step-indicator.done + .wizard-step-indicator::before {
    /* line stays default; colored by done */
}
.wizard-step-indicator.done + .wizard-step-indicator::before {
    background: #16a34a;
}

/* Wizard steps */
.wizard-step {
    display: none;
}
.wizard-step.active {
    display: block;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 32px;
    box-shadow: var(--shadow-lg);
}

/* Repo grid */
.repo-search {
    width: 100%;
    padding: 10px 14px 10px 36px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 14px;
    background: var(--bg-card);
    color: var(--text-primary);
    margin-bottom: 16px;
    transition: border-color 0.15s;
}
.repo-search:focus {
    outline: none;
    border-color: var(--accent);
}
.repo-search-wrap {
    position: relative;
}
.repo-search-wrap::before {
    content: '\1F50D';
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    pointer-events: none;
}
.repo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    max-height: 420px;
    overflow-y: auto;
    padding: 2px;
}
@media (max-width: 640px) {
    .repo-grid {
        grid-template-columns: 1fr;
    }
}
.repo-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 355px;
    overflow-y: auto;
    padding: 4px 12px 4px 4px;
    margin-bottom: 0;
}
.repo-list::-webkit-scrollbar {
    width: 6px;
}
.repo-list::-webkit-scrollbar-track {
    background: transparent;
}
.repo-list::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}
.repo-list::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}
.wizard-nav-sticky {
    position: sticky;
    bottom: 0;
    background: linear-gradient(to top, var(--bg-card) 60%, transparent);
    padding-bottom: 8px;
    margin-top: 20px;
    padding-top: 24px;
    border-top: none;
}
.repo-card {
    position: relative;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 16px 18px;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--bg-primary);
    user-select: none;
    box-shadow: var(--shadow-sm);
}
.repo-card:hover {
    border-color: rgba(234, 88, 12, 0.4);
    box-shadow: var(--shadow);
    transform: translateY(-1px);
}
.repo-card.selected {
    border-color: var(--accent);
    background: var(--accent-light);
    box-shadow: 0 0 0 1px var(--accent), var(--shadow);
}
.repo-card-check {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.2s;
}
.repo-card.selected .repo-card-check {
    opacity: 1;
    transform: scale(1);
}
.repo-card-check svg {
    width: 14px;
    height: 14px;
    color: #fff;
}
.repo-card-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 4px;
    padding-right: 28px;
}
.repo-card-meta {
    display: flex;
    gap: 6px;
    align-items: center;
    margin-bottom: 4px;
}
.repo-card-lang {
    display: inline-block;
    padding: 1px 8px;
    background: var(--accent-light);
    color: var(--accent);
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}
.repo-card-private {
    display: inline-block;
    padding: 1px 6px;
    background: var(--bg-primary);
    color: var(--text-muted);
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
}
.repo-card-desc {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.repo-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 32px;
    color: var(--text-muted);
    font-size: 14px;
}
.repo-loading-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--border-color);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: repo-spin 0.8s linear infinite;
    margin: 0 auto;
}
@keyframes repo-spin {
    to { transform: rotate(360deg); }
}

/* Upload zone */
.upload-zone {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.15s;
    color: var(--text-muted);
    font-size: 14px;
}
.upload-zone:hover,
.upload-zone.dragover {
    border-color: var(--accent);
    background: var(--accent-light);
    color: var(--accent);
}
.upload-zone-icon {
    font-size: 32px;
    margin-bottom: 8px;
}
.upload-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}
.upload-thumb {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
}
.upload-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.upload-thumb-remove {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.upload-thumb-remove:hover {
    background: #dc2626;
}

/* Wizard nav */
.wizard-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 28px;
    padding-top: 20px;
    border-top: none;
}

/* Budget input */
.budget-input-wrap {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color 0.15s;
}
.budget-input-wrap:focus-within {
    border-color: var(--accent);
}
.budget-prefix {
    padding: 10px 12px;
    background: var(--bg-primary);
    border-right: 1px solid var(--border-color);
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 15px;
}
.budget-input-wrap input {
    border: none;
    padding: 10px 14px;
    font-size: 15px;
    flex: 1;
    background: var(--bg-card);
    color: var(--text-primary);
    outline: none;
    width: 100%;
}
.budget-calc {
    margin-top: 12px;
    font-size: 14px;
}
.budget-calc .calc-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    color: var(--text-secondary);
}
.budget-calc .calc-row.total {
    border-top: 1px solid var(--border-color);
    margin-top: 4px;
    padding-top: 10px;
    font-weight: 600;
    color: var(--text-primary);
}
.budget-calc .calc-amount {
    font-weight: 600;
}

/* Review summary */
.review-summary {
    background: var(--bg-primary);
    border-radius: var(--radius);
    padding: 16px 20px;
}
.review-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
    border-bottom: 1px dotted var(--border-color);
}
.review-row:last-child {
    border-bottom: none;
}
.review-label {
    color: var(--text-muted);
}
.review-value {
    color: var(--text-primary);
    font-weight: 500;
    text-align: right;
    max-width: 60%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Screenshots gallery (detail pages) */
.screenshots-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.screenshot-thumb {
    width: 120px;
    height: 90px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: border-color 0.15s;
}
.screenshot-thumb:hover {
    border-color: var(--accent);
}
.screenshot-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ========== Wizard tip ========== */
.wizard-tip {
    background: var(--accent-light);
    border: 1px solid rgba(234, 88, 12, 0.15);
    border-radius: var(--radius-lg);
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--text-secondary);
}
.wizard-tip strong { color: var(--accent); }

/* ========== Bounty hero (from request.html) ========== */
.bounty-hero {
    text-align: center;
    padding: 48px 24px 40px;
    background: linear-gradient(135deg, #ea580c 0%, #c2410c 50%, #9a3412 100%);
    border-radius: var(--radius-xl);
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
}
.bounty-hero::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: rgba(255,255,255,0.06);
    border-radius: 50%;
}
.bounty-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 200px;
    height: 200px;
    background: rgba(255,255,255,0.04);
    border-radius: 50%;
}
.bounty-label {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 8px;
}
.bounty-amount {
    font-size: 64px;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}
.bounty-sub {
    font-size: 18px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 28px;
}
.bounty-cta {
    position: relative;
    z-index: 1;
    padding: 14px 36px;
    font-size: 16px;
    background: #fff !important;
    color: var(--accent) !important;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}
.bounty-cta:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}
.bounty-hero-muted {
    background: var(--bg-secondary);
    padding: 32px 24px;
}
.bounty-amount-muted {
    color: var(--text-muted);
    font-size: 40px;
    text-decoration: line-through;
}
.bounty-status-done {
    font-size: 14px;
    font-weight: 600;
    color: var(--success);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.bounty-status-taken {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ========== Founder success banner ========== */
.founder-success-banner {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(22, 163, 74, 0.06), rgba(22, 163, 74, 0.12));
    border: 1px solid rgba(22, 163, 74, 0.2);
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
}
.fsb-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--success);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.fsb-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}
.fsb-sub {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ========== Sections (request detail) ========== */
.pr-section {
    margin-bottom: 24px;
}
.pr-section-title {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 10px;
}
.pr-description {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-primary);
}

/* ========== Tech & repo pills ========== */
.pr-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}
.tech-pill {
    display: inline-block;
    padding: 5px 14px;
    background: var(--accent-light);
    color: var(--accent);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}
.tech-pill-repo {
    background: var(--bg-secondary);
    color: var(--text-secondary);
}

/* ========== Repo links ========== */
.pr-repos {
    margin-bottom: 24px;
}

/* ========== All you need ========== */
.only-need {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    margin-bottom: 16px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}
.only-need-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.only-need-items {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}
.only-need-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.only-need-icon {
    width: 36px;
    height: 36px;
    color: var(--text-primary);
}
.only-need-label {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
}
.only-need-sub {
    font-size: 12px;
    color: var(--text-muted);
}
.only-need-plus, .only-need-eq {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-muted);
}
.only-need-money {
    background: linear-gradient(135deg, rgba(22,163,74,0.08), rgba(22,163,74,0.15));
    border: 1px solid rgba(22,163,74,0.2);
    border-radius: var(--radius-lg);
    padding: 12px 20px;
}
.only-need-money-amount {
    font-size: 28px;
    font-weight: 800;
    color: var(--success);
    line-height: 1;
    margin-bottom: 4px;
}
.only-need-money .only-need-sub {
    color: var(--success);
    font-weight: 500;
}

/* ========== How it works - process cards ========== */
.process-detail {
    margin-bottom: 16px;
}
.process-title {
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-primary);
    margin-bottom: 16px;
}
.process-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.process-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    position: relative;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}
.process-card:hover {
    border-color: rgba(234, 88, 12, 0.3);
    box-shadow: var(--shadow);
}
.process-card-final {
    border-color: rgba(22, 163, 74, 0.25);
    background: linear-gradient(135deg, rgba(22, 163, 74, 0.03), rgba(22, 163, 74, 0.08));
}
.process-card-final:hover {
    border-color: rgba(22, 163, 74, 0.4);
}
.process-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}
.process-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.process-num-success {
    background: var(--success);
}
.process-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.process-icon svg {
    width: 22px;
    height: 22px;
}
.process-icon-indigo {
    background: var(--accent-light);
    color: var(--accent);
}
.process-icon-dark {
    background: #1b1f23;
    color: #fff;
    border-radius: 12px;
}
.process-icon-red {
    background: #fef2f2;
    color: #ef4444;
}
.process-icon-stripe {
    background: #635bff;
    color: #fff;
    border-radius: 12px;
}
.process-icon-stripe svg {
    width: 16px;
    height: 16px;
}
.process-heading {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}
.process-card-body p {
    font-size: 13px;
    line-height: 1.55;
    color: var(--text-secondary);
    margin: 0;
}
.process-card-arrow {
    position: absolute;
    right: -18px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background: var(--bg-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    color: var(--text-muted);
}
.process-card-arrow svg {
    width: 14px;
    height: 14px;
}

/* ========== FAQ section ========== */
.faq-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}
.faq-title {
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-primary);
    margin-bottom: 20px;
}
.faq-item {
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    margin-bottom: 8px;
    overflow: hidden;
}
.faq-item:last-child {
    margin-bottom: 0;
}
.faq-item[open] {
    border-color: rgba(234, 88, 12, 0.2);
}
.faq-q {
    padding: 14px 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    user-select: none;
}
.faq-q::-webkit-details-marker {
    display: none;
}
.faq-q::after {
    content: '';
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--text-muted);
    border-bottom: 2px solid var(--text-muted);
    transform: rotate(45deg);
    flex-shrink: 0;
    transition: transform 0.2s;
}
.faq-item[open] .faq-q::after {
    transform: rotate(-135deg);
}
.faq-q:hover {
    color: var(--accent);
}
.faq-a {
    padding: 0 16px 14px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* ========== Setup steps (expert delivery) ========== */
.setup-steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 8px;
}
.setup-step {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.setup-step-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

/* ========== Dashboard header + filters ========== */
.dash-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 28px;
    gap: 16px;
}
.dash-header-text h1 {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 2px;
}
.dash-header-sub {
    font-size: 14px;
    color: var(--text-muted);
}
.dash-filters {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}
.dash-filter {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-pill);
    background: var(--bg-card);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}
.dash-filter:hover {
    border-color: var(--accent);
    color: var(--accent);
}
.dash-filter.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

/* Stat card variants */
.stat-card-highlight {
    border-color: rgba(234, 88, 12, 0.2);
    background: linear-gradient(135deg, rgba(234, 88, 12, 0.04), rgba(234, 88, 12, 0.08));
}
.stat-card-earnings {
    border-color: rgba(22, 163, 74, 0.2);
    background: linear-gradient(135deg, rgba(22, 163, 74, 0.04), rgba(22, 163, 74, 0.08));
}
.stat-card-success .stat-value {
    color: var(--success);
}
.stat-value-success {
    color: var(--success) !important;
}
.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
}
.stat-icon svg {
    width: 20px;
    height: 20px;
}
.stat-icon-accent {
    background: var(--accent-light);
    color: var(--accent);
}
.stat-icon-success {
    background: rgba(22, 163, 74, 0.1);
    color: var(--success);
}
.stat-icon-muted {
    background: var(--bg-secondary);
    color: var(--text-muted);
}

/* ========== Founder dashboard empty state ========== */
.dash-empty {
    text-align: center;
    padding: 60px 20px 40px;
}
.dash-empty-icon {
    color: var(--accent);
    margin-bottom: 20px;
}
.dash-empty-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}
.dash-empty-text {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 420px;
    margin: 0 auto 28px;
}
.dash-empty .btn-lg {
    padding: 14px 36px;
    font-size: 16px;
}
.dash-empty-steps {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-top: 36px;
    padding-top: 28px;
    border-top: 1px solid var(--border-color);
}
.dash-empty-step {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
}
.dash-empty-num {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--accent-light);
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ========== Success hero (founder OPEN justCreated) ========== */
.success-hero {
    text-align: center;
    background: linear-gradient(135deg, rgba(22, 163, 74, 0.06), rgba(22, 163, 74, 0.14));
    border: 1px solid rgba(22, 163, 74, 0.18);
    border-radius: var(--radius-xl);
    padding: 40px 24px;
    margin-bottom: 24px;
}
.success-hero-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--success);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}
.success-hero-icon svg {
    width: 24px;
    height: 24px;
}
.success-hero-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
}
.success-hero-sub {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 440px;
    margin: 0 auto;
}

/* ========== Share buttons (founder OPEN) ========== */
.share-actions {
    display: flex;
    flex-direction: row;
    gap: 8px;
    margin-top: 14px;
    justify-content: center;
    flex-wrap: wrap;
}
.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-pill);
    background: var(--bg-card);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition-fast);
}
.share-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}
.share-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* ========== Next steps (founder OPEN) ========== */
.next-steps {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}
.next-steps h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
}
.next-step {
    display: flex;
    flex-direction: row;
    gap: 16px;
    margin-bottom: 20px;
}
.next-step:last-child {
    margin-bottom: 0;
}
.next-step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.next-step-content {
    display: flex;
    flex-direction: column;
}
.next-step-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
}
.next-step-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ========== Task detail card (founder OPEN) ========== */
.task-detail {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}
.task-detail-desc {
    font-size: 16px;
    color: var(--text-primary);
    line-height: 1.7;
    white-space: pre-wrap;
    margin-bottom: 16px;
}
.task-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-bottom: 16px;
}
.task-detail-budget {
    display: inline-flex;
    align-items: center;
    padding: 4px 14px;
    background: var(--accent-light);
    color: var(--accent);
    border-radius: var(--radius-pill);
    font-size: 14px;
    font-weight: 700;
}
.task-detail-expires {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 16px;
}
.task-detail-expires svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}
.task-detail-repo {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}
.task-detail-repo:hover {
    text-decoration: underline;
}
.task-detail-repo svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* ========== Expert status banners ========== */
.expert-status-banner {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px;
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
}
.expert-status-banner .esb-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
}
.expert-status-banner .esb-icon svg {
    width: 20px;
    height: 20px;
}
.expert-status-banner .esb-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
}
.expert-status-banner .esb-sub {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}
.expert-status-progress {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.06), rgba(245, 158, 11, 0.14));
    border: 1px solid rgba(245, 158, 11, 0.2);
}
.expert-status-progress .esb-icon { background: #f59e0b; }
.expert-status-delivered {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.06), rgba(6, 182, 212, 0.14));
    border: 1px solid rgba(6, 182, 212, 0.2);
}
.expert-status-delivered .esb-icon { background: #06b6d4; }
.expert-status-completed {
    background: linear-gradient(135deg, rgba(22, 163, 74, 0.06), rgba(22, 163, 74, 0.14));
    border: 1px solid rgba(22, 163, 74, 0.18);
}
.expert-status-completed .esb-icon { background: var(--success); }

/* ========== Copyable code blocks ========== */
.code-block {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 8px 10px;
    margin-top: 6px;
}
.code-block code {
    flex: 1;
    font-size: 13px;
    color: var(--text-primary);
    white-space: pre-wrap;
    word-break: break-all;
    line-height: 1.5;
}
.code-copy-btn {
    width: 32px;
    height: 32px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    background: var(--bg-card);
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all var(--transition-fast);
}
.code-copy-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}
.code-copy-btn svg {
    width: 14px;
    height: 14px;
}
.code-copy-btn.copied {
    border-color: var(--success);
    color: var(--success);
}

/* ========== Getting started steps ========== */
.getting-started-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.gs-step {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}
.gs-step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}
.gs-step-content {
    flex: 1;
    min-width: 0;
}
.gs-step-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}
.gs-step-hint {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ========== Proof card (founder DELIVERED) ========== */
.proof-card { border-left: 3px solid #06b6d4; }
.proof-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

/* Action divider ("or" between approve and revision) */
.action-divider {
    text-align: center;
    position: relative;
    margin: 20px 0;
    color: var(--text-muted);
    font-size: 13px;
}
.action-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    border-top: 1px solid var(--border-color);
}
.action-divider span {
    position: relative;
    background: var(--bg-card);
    padding: 0 12px;
}

/* ========== Responsive overrides (moved from inline) ========== */
@media (max-width: 768px) {
    .wizard-step.active {
        padding: 24px 20px;
    }
    .bounty-amount {
        font-size: 48px;
    }
    .bounty-sub {
        font-size: 16px;
    }
    .only-need-items {
        flex-wrap: wrap;
        gap: 12px;
    }
    .only-need-plus, .only-need-eq {
        font-size: 20px;
    }
    .process-cards {
        grid-template-columns: 1fr;
    }
    .process-card-arrow {
        right: 50%;
        top: auto;
        bottom: -18px;
        transform: translateX(50%) rotate(90deg);
    }
    .faq-section {
        padding: 20px 16px;
    }
    .share-card-steps {
        flex-wrap: wrap;
    }
}

@media (max-width: 640px) {
    .dash-empty-steps {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }
}

/* Chat messages */
.chat-messages {
    max-height: 400px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 4px 0;
}
.chat-msg {
    padding: 10px 14px;
    border-radius: 12px;
    max-width: 80%;
    font-size: 14px;
    line-height: 1.5;
}
.chat-msg-mine {
    align-self: flex-end;
    background: var(--accent-light);
    border-bottom-right-radius: 4px;
}
.chat-msg-theirs {
    align-self: flex-start;
    background: var(--bg-secondary);
    border-bottom-left-radius: 4px;
}
.chat-msg-sender {
    font-weight: 600;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 2px;
}
.chat-msg-content {
    color: var(--text-primary);
    white-space: pre-wrap;
    word-break: break-word;
}
.chat-msg-time {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ========== Task Tabs ========== */
.task-tabs {
    display: flex;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 0;
    gap: 0;
}
.task-tab {
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.15s;
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
    white-space: nowrap;
}
.task-tab:hover {
    color: var(--text-primary);
}
.task-tab.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}
.task-tab-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: var(--accent);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    margin-left: 6px;
}
.task-tab-content {
    display: none;
}
.task-tab-content.active {
    display: block;
}
.task-tabs-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
}
.task-tab-body {
    padding: 24px;
}

/* ========== AJAX Chat v2 ========== */
.chat-panel {
    display: flex;
    flex-direction: column;
    height: 500px;
}
.chat-messages-ajax {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.chat-messages-ajax::-webkit-scrollbar {
    width: 6px;
}
.chat-messages-ajax::-webkit-scrollbar-track {
    background: transparent;
}
.chat-messages-ajax::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}
.chat-msg-v2 {
    display: flex;
    gap: 10px;
    max-width: 85%;
}
.chat-msg-v2.mine {
    align-self: flex-end;
    flex-direction: row-reverse;
}
.chat-msg-v2.theirs {
    align-self: flex-start;
}
.chat-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 2px;
}
.chat-msg-v2.theirs .chat-avatar {
    background: var(--bg-secondary);
    color: var(--text-secondary);
}
.chat-bubble {
    border-radius: 16px;
    padding: 10px 14px;
    min-width: 60px;
}
.chat-msg-v2.mine .chat-bubble {
    background: var(--accent-light);
    border-bottom-right-radius: 4px;
}
.chat-msg-v2.theirs .chat-bubble {
    background: var(--bg-secondary);
    border-bottom-left-radius: 4px;
}
.chat-bubble-header {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 2px;
}
.chat-sender-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
}
.chat-time {
    font-size: 11px;
    color: var(--text-muted);
}
.chat-bubble-body {
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-primary);
    white-space: pre-wrap;
    word-break: break-word;
}
.chat-bubble-attachments {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}
.chat-attachment-img {
    max-width: 240px;
    max-height: 180px;
    border-radius: 8px;
    cursor: pointer;
    border: 1px solid var(--border-color);
}
.chat-attachment-img:hover {
    border-color: var(--accent);
}
.chat-attachment-file {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
}
.chat-attachment-file:hover {
    border-color: var(--accent);
}
.chat-attachment-file svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* Chat input area */
.chat-input-area {
    border-top: 1px solid var(--border-color);
    padding: 12px 16px;
}
.chat-attachment-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}
.chat-attachment-preview:empty {
    display: none;
}
.chat-preview-item {
    position: relative;
    width: 56px;
    height: 56px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}
.chat-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.chat-preview-item .file-icon {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    font-size: 11px;
    color: var(--text-muted);
    text-align: center;
    padding: 4px;
    word-break: break-all;
}
.chat-preview-remove {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.chat-preview-remove:hover {
    background: #dc2626;
}
.chat-input-row {
    display: flex;
    align-items: flex-end;
    gap: 8px;
}
.chat-text-input {
    flex: 1;
    resize: none;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 10px 16px;
    font-size: 14px;
    font-family: inherit;
    color: var(--text-primary);
    background: var(--bg-primary);
    outline: none;
    max-height: 120px;
    overflow-y: auto;
    line-height: 1.4;
    min-height: 40px;
}
.chat-text-input:focus {
    border-color: var(--accent);
}
.chat-text-input::placeholder {
    color: var(--text-muted);
}
.chat-attach-btn,
.chat-send-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.15s;
}
.chat-attach-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}
.chat-send-btn {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
.chat-send-btn:hover {
    background: var(--accent-hover);
}
.chat-send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.chat-send-btn svg,
.chat-attach-btn svg {
    width: 18px;
    height: 18px;
}
.chat-empty {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 14px;
}

/* Withdraw link */
.withdraw-link {
    display: inline-block;
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: none;
    cursor: pointer;
    margin-top: 8px;
    background: none;
    border: none;
    padding: 0;
}
.withdraw-link:hover {
    color: var(--danger, #dc2626);
    text-decoration: underline;
}
.withdraw-dialog {
    display: none;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-top: 12px;
    box-shadow: var(--shadow);
}
.withdraw-dialog.open {
    display: block;
}

@media (max-width: 640px) {
    .task-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .task-tab {
        padding: 10px 14px;
        font-size: 13px;
    }
    .chat-panel {
        height: 400px;
    }
    .chat-msg-v2 {
        max-width: 92%;
    }
    .chat-attachment-img {
        max-width: 180px;
        max-height: 140px;
    }
}
