/**
 * Transaction Progress - Premium themed styles for CodeIQ processing pipeline
 */

/* ===== MAIN CONTAINER ===== */
.transaction-progress-container {
    --tp-ink: #2f2038;
    --tp-ink-soft: #5d4d69;
    --tp-ink-muted: #7a6d85;
    --tp-cream: #fffaf3;
    --tp-cream-strong: #f3e8d9;
    --tp-cream-deep: #ead8c4;
    --tp-line: #e8d8c7;
    --tp-salmon: #c96f75;
    --tp-rose: #b84f74;
    --tp-magenta: #9f3f72;
    --tp-purple: #4c2b63;
    --tp-purple-soft: #67437f;
    --tp-success: #2e8d72;
    --tp-success-soft: #dff4eb;

    background: linear-gradient(160deg, #fffdf9 0%, var(--tp-cream) 55%, #f8f1e7 100%);
    border-radius: 14px;
    padding: 24px;
    margin: 16px 0;
    border: 1px solid var(--tp-line);
    box-shadow:
        0 20px 40px -28px rgba(76, 43, 99, 0.38),
        0 8px 16px -12px rgba(76, 43, 99, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.75);
    opacity: 1;
    transform: translateY(0);
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
    position: relative;
    overflow: hidden;
}

.transaction-progress-container::before,
.transaction-progress-container::after {
    content: '';
    position: absolute;
    pointer-events: none;
}

.transaction-progress-container::before {
    top: -140px;
    right: -110px;
    width: 340px;
    height: 340px;
    background: radial-gradient(circle, rgba(184, 79, 116, 0.18) 0%, rgba(184, 79, 116, 0) 72%);
    z-index: 0;
}

.transaction-progress-container::after {
    left: 0;
    right: 0;
    top: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--tp-salmon) 0%, var(--tp-magenta) 42%, var(--tp-purple) 100%);
    opacity: 0.9;
    z-index: 1;
}

.transaction-progress-container.active {
    border-color: rgba(159, 63, 114, 0.45);
    box-shadow:
        0 0 0 1px rgba(159, 63, 114, 0.14),
        0 22px 44px -30px rgba(159, 63, 114, 0.45),
        0 8px 16px -12px rgba(76, 43, 99, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.transaction-progress-container.completed {
    border-color: rgba(46, 141, 114, 0.4);
    background: linear-gradient(160deg, #fefcf9 0%, #f3faf6 60%, #ecf7f2 100%);
}

.transaction-progress-container.hiding {
    opacity: 0;
    transform: translateY(-16px) scale(0.99);
}

/* ===== PROGRESS HEADER ===== */
.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.progress-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    color: var(--tp-ink);
    font-size: 1.12rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.title-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--tp-purple);
    background: linear-gradient(145deg, #fff 0%, var(--tp-cream-strong) 100%);
    border: 1px solid rgba(159, 63, 114, 0.24);
    box-shadow: 0 6px 16px -10px rgba(76, 43, 99, 0.45);
    animation: pulse 2.2s ease-in-out infinite;
}

.title-icon svg {
    width: 20px;
    height: 20px;
    display: block;
}

.progress-summary {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.transaction-counter {
    color: var(--tp-ink-soft);
    font-size: 0.92rem;
    font-weight: 700;
    font-family: "JetBrains Mono", "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", monospace;
    padding: 7px 10px;
    border-radius: 8px;
    border: 1px solid var(--tp-line);
    background: rgba(255, 255, 255, 0.7);
    transition: color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.transaction-counter.updated {
    color: var(--tp-success);
    border-color: rgba(46, 141, 114, 0.4);
    transform: scale(1.03);
}

.progress-percentage {
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    background: linear-gradient(135deg, var(--tp-salmon) 0%, var(--tp-magenta) 55%, var(--tp-purple) 100%);
    border: 1px solid rgba(159, 63, 114, 0.35);
    padding: 7px 12px;
    border-radius: 999px;
    box-shadow: 0 8px 14px -11px rgba(159, 63, 114, 0.65);
}

/* ===== PHASE INDICATOR ===== */
.phase-indicator-container {
    margin-bottom: 24px;
    position: relative;
    z-index: 2;
}

.phase-indicator {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    position: relative;
}

.phase-indicator::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 24px;
    right: 24px;
    height: 2px;
    background: linear-gradient(90deg, rgba(201, 111, 117, 0.22), rgba(159, 63, 114, 0.25), rgba(76, 43, 99, 0.22));
    z-index: 0;
}

.phase-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 1;
    opacity: 0.74;
    transition: opacity 0.25s ease;
}

.phase-step.completed,
.phase-step.active {
    opacity: 1;
}

.phase-circle {
    width: 42px;
    height: 42px;
    border-radius: 13px;
    background: linear-gradient(145deg, #fff 0%, #f9f3ea 100%);
    border: 1px solid rgba(76, 43, 99, 0.18);
    color: var(--tp-purple-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    position: relative;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 16px -14px rgba(76, 43, 99, 0.5);
}

.phase-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.25s ease, transform 0.25s ease, opacity 0.25s ease;
    opacity: 0.9;
}

.phase-icon svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    transition: stroke 0.2s ease;
}

.phase-progress-ring {
    position: absolute;
    top: -4px;
    left: -4px;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    border: 2px solid transparent;
    transition: all 0.35s ease;
}

.phase-label {
    text-align: center;
    max-width: 118px;
}

.phase-name {
    color: var(--tp-ink-soft);
    font-size: 0.72rem;
    font-weight: 700;
    margin-bottom: 3px;
    letter-spacing: 0.015em;
    transition: color 0.25s ease;
}

.phase-description {
    color: var(--tp-ink-muted);
    font-size: 0.635rem;
    line-height: 1.25;
    transition: color 0.25s ease;
}

/* Phase States */
.phase-step.completed .phase-circle {
    background: linear-gradient(145deg, var(--tp-purple) 0%, #3e2252 100%);
    border-color: rgba(76, 43, 99, 0.65);
    color: #ffffff;
    box-shadow: 0 12px 20px -14px rgba(76, 43, 99, 0.8);
}

.phase-step.completed .phase-progress-ring {
    border-color: rgba(76, 43, 99, 0.2);
}

.phase-step.completed .phase-name {
    color: var(--tp-purple);
}

.phase-step.completed .phase-description {
    color: var(--tp-ink-soft);
}

.phase-step.active .phase-circle {
    background: linear-gradient(140deg, var(--tp-salmon) 0%, var(--tp-magenta) 60%, #8a2d63 100%);
    border-color: rgba(159, 63, 114, 0.75);
    color: #ffffff;
    box-shadow:
        0 0 0 4px rgba(201, 111, 117, 0.14),
        0 14px 24px -15px rgba(159, 63, 114, 0.75);
}

.phase-step.active .phase-progress-ring {
    border: 2px solid rgba(159, 63, 114, 0.3);
    border-top-color: var(--tp-purple);
    animation: spin 1s linear infinite;
}

.phase-step.active .phase-name {
    color: var(--tp-magenta);
}

.phase-step.active .phase-description {
    color: var(--tp-ink-soft);
}

/* ===== MAIN PROGRESS SECTION ===== */
.main-progress-section {
    margin-bottom: 24px;
    position: relative;
    z-index: 2;
}

.main-progress-container {
    margin-bottom: 14px;
}

.progress-bar-wrapper {
    position: relative;
    height: 14px;
    margin-bottom: 6px;
}

.progress-bar-track {
    width: 100%;
    height: 10px;
    background: linear-gradient(180deg, #f8f1e7 0%, #f2e5d5 100%);
    border-radius: 999px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(76, 43, 99, 0.14);
}

.progress-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--tp-salmon) 0%, var(--tp-magenta) 52%, var(--tp-purple) 100%);
    border-radius: inherit;
    transition: width 0.35s ease;
    position: relative;
    overflow: hidden;
}

.progress-bar-fill::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.36), transparent);
    animation: progressShimmer 1.9s linear infinite;
}

.progress-bar-glow {
    position: absolute;
    top: -5px;
    left: 0;
    width: 0%;
    height: 20px;
    border-radius: 999px;
    box-shadow: 0 0 22px rgba(159, 63, 114, 0.32);
    transition: width 0.35s ease;
    pointer-events: none;
}

.progress-bar-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: inherit;
    pointer-events: none;
}

.progress-particle {
    position: absolute;
    top: 2px;
    width: 3px;
    height: 6px;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 2px;
    animation: particle linear;
}

.progress-markers {
    display: flex;
    justify-content: space-between;
    position: relative;
    height: 4px;
}

.progress-marker {
    width: 1px;
    height: 4px;
    background: rgba(93, 77, 105, 0.28);
    position: absolute;
    top: 0;
}

/* ===== CURRENT PHASE DISPLAY ===== */
.current-phase-display {
    background: linear-gradient(145deg, #fff 0%, #fffaf2 100%);
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--tp-line);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.current-phase-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.current-phase-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(145deg, var(--tp-purple-soft) 0%, var(--tp-purple) 100%);
    border-radius: 12px;
    border: 1px solid rgba(76, 43, 99, 0.4);
    box-shadow: 0 10px 20px -14px rgba(76, 43, 99, 0.8);
}

.current-phase-icon svg {
    width: 21px;
    height: 21px;
}

.current-phase-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.current-phase-name {
    color: var(--tp-ink);
    font-size: 1rem;
    font-weight: 700;
}

.current-phase-description {
    color: var(--tp-ink-muted);
    font-size: 0.845rem;
}

.phase-spinner {
    width: 30px;
    height: 30px;
    position: relative;
}

.spinner-ring {
    width: 30px;
    height: 30px;
    border: 3px solid rgba(159, 63, 114, 0.2);
    border-top: 3px solid var(--tp-magenta);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* ===== STATS GRID ===== */
.progress-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
    gap: 11px;
    margin-bottom: 24px;
    position: relative;
    z-index: 2;
}

.stats-card {
    --stat-accent: #7a5c95;
    --stat-wash: rgba(122, 92, 149, 0.14);

    background: linear-gradient(145deg, #ffffff 0%, #fff9f1 100%);
    border-radius: 12px;
    padding: 13px 10px;
    text-align: center;
    border: 1px solid rgba(76, 43, 99, 0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    position: relative;
    overflow: hidden;
}

.stats-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--stat-accent), transparent);
    opacity: 0.8;
}

.stats-card:hover {
    transform: translateY(-2px);
    border-color: rgba(76, 43, 99, 0.28);
    box-shadow: 0 14px 20px -20px rgba(76, 43, 99, 0.65);
}

.stat-icon {
    width: 34px;
    height: 34px;
    margin: 0 auto 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--stat-accent);
    background: var(--stat-wash);
    border-radius: 10px;
    border: 1px solid rgba(76, 43, 99, 0.12);
}

.stat-icon svg {
    width: 18px;
    height: 18px;
    display: block;
}

.stat-value {
    color: var(--tp-ink);
    font-size: 1.4rem;
    font-weight: 750;
    font-family: "JetBrains Mono", "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", monospace;
    margin-bottom: 4px;
    line-height: 1;
    transition: color 0.2s ease, transform 0.2s ease;
}

.stat-value.updating {
    color: var(--tp-success);
    transform: scale(1.06);
}

.stat-label {
    color: var(--tp-ink-muted);
    font-size: 0.66rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.stats-card[data-stat="transfers"] {
    --stat-accent: #6c4f89;
    --stat-wash: rgba(108, 79, 137, 0.14);
}

.stats-card[data-stat="invoice"] {
    --stat-accent: #b44f73;
    --stat-wash: rgba(180, 79, 115, 0.14);
}

.stats-card[data-stat="fuzzy"] {
    --stat-accent: #8b588f;
    --stat-wash: rgba(139, 88, 143, 0.15);
}

.stats-card[data-stat="universal"] {
    --stat-accent: #7b4c79;
    --stat-wash: rgba(123, 76, 121, 0.14);
}

.stats-card[data-stat="mcc"] {
    --stat-accent: #c96f75;
    --stat-wash: rgba(201, 111, 117, 0.16);
}

.stats-card[data-stat="semantic"] {
    --stat-accent: #5b3778;
    --stat-wash: rgba(91, 55, 120, 0.14);
}

.stats-card[data-stat="contacts"] {
    --stat-accent: #4f698d;
    --stat-wash: rgba(79, 105, 141, 0.13);
}

.stats-card[data-stat="tracking"] {
    --stat-accent: #6a5f95;
    --stat-wash: rgba(106, 95, 149, 0.14);
}

.stats-card[data-stat="vendors"],
.stats-card[data-stat="customers"],
.stats-card[data-stat="classes"] {
    --stat-accent: #705589;
    --stat-wash: rgba(112, 85, 137, 0.14);
}

.stats-card[data-stat="unmatched"] {
    --stat-accent: var(--tp-purple);
    --stat-wash: rgba(76, 43, 99, 0.14);
}

/* Platform-specific cards keep visual parity */
.stats-card-platform {
    border-style: dashed;
    border-color: rgba(76, 43, 99, 0.28);
}

/* ===== PROGRESS FOOTER ===== */
.progress-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    position: relative;
    z-index: 2;
}

.estimated-time,
.processing-status {
    color: var(--tp-ink-muted);
    font-size: 0.82rem;
}

.processing-status {
    font-style: italic;
    text-align: right;
}

/* ===== ANIMATIONS ===== */
@keyframes progressShimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

@keyframes pulse {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-1px); }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes particle {
    0% { left: 0%; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { left: 100%; opacity: 0; }
}

/* ===== COMPLETION CONTENT ===== */
.completion-content {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 8px 0;
}

.completion-panel {
    width: min(560px, 100%);
    background: linear-gradient(155deg, #fffdf8 0%, #f8f3ea 50%, #f5eef8 100%);
    border: 1px solid rgba(76, 43, 99, 0.18);
    border-radius: 12px;
    padding: 14px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.75),
        0 14px 24px -24px rgba(76, 43, 99, 0.75);
    display: grid;
    gap: 10px;
}

.completion-message {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--tp-success);
}

.success-icon {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--tp-success);
    background: var(--tp-success-soft);
    border-radius: 999px;
}

.success-icon svg {
    width: 20px;
    height: 20px;
    display: block;
}

.completion-subtext {
    margin: 0;
    color: var(--tp-ink-soft);
    font-size: 0.84rem;
    line-height: 1.35;
}

.completion-highlights {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.completion-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--tp-purple);
    background: rgba(76, 43, 99, 0.08);
    border: 1px solid rgba(76, 43, 99, 0.15);
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.completion-pill strong {
    color: var(--tp-ink);
    font-weight: 700;
}

.btn-review-transactions {
    background: linear-gradient(135deg, var(--tp-salmon) 0%, var(--tp-magenta) 58%, var(--tp-purple) 100%);
    color: #fff;
    border: 1px solid rgba(76, 43, 99, 0.35);
    border-radius: 10px;
    padding: 11px 22px;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    box-shadow: 0 10px 20px -14px rgba(76, 43, 99, 0.75);
}

.btn-review-transactions:hover {
    transform: translateY(-1px);
    filter: saturate(1.08);
    box-shadow: 0 14px 24px -16px rgba(76, 43, 99, 0.82);
}

.btn-review-transactions:active {
    transform: translateY(0);
}

/* ===== RIQ ENHANCEMENT SECTION ===== */
.riq-enhancement-section {
    margin-top: 22px;
    padding: 16px;
    background: linear-gradient(145deg, #fff8ef 0%, #f9edf2 44%, #efeaf9 100%);
    border-radius: 13px;
    border: 1px solid rgba(159, 63, 114, 0.22);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.32s ease, transform 0.32s ease;
}

.riq-enhancement-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.riq-enhancement-container {
    display: flex;
    align-items: center;
    gap: 14px;
}

.riq-avatar-container {
    position: relative;
    flex-shrink: 0;
}

.riq-avatar {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    object-fit: contain;
    background: #fff;
    padding: 4px;
    box-shadow: 0 14px 24px -20px rgba(76, 43, 99, 0.8);
    border: 2px solid rgba(159, 63, 114, 0.26);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.riq-enhancement-section.active .riq-avatar {
    animation: riqPulse 2s ease-in-out infinite;
}

.riq-enhancement-section.completed .riq-avatar {
    border-color: rgba(46, 141, 114, 0.45);
    box-shadow: 0 14px 24px -20px rgba(46, 141, 114, 0.65);
}

@keyframes riqPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.04); }
}

.riq-thinking-indicator {
    position: absolute;
    bottom: -3px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 3px;
    background: #fff;
    padding: 4px 8px;
    border-radius: 999px;
    border: 1px solid rgba(159, 63, 114, 0.16);
    box-shadow: 0 6px 14px -12px rgba(76, 43, 99, 0.55);
}

.riq-enhancement-section.completed .riq-thinking-indicator {
    display: none;
}

.thinking-dot {
    width: 6px;
    height: 6px;
    background: var(--tp-magenta);
    border-radius: 50%;
    animation: thinkingBounce 1.4s ease-in-out infinite;
}

.thinking-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.thinking-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes thinkingBounce {
    0%, 80%, 100% {
        transform: scale(0.6);
        opacity: 0.45;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

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

.riq-enhancement-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.riq-label {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--tp-purple);
}

.riq-badge {
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 2px 8px;
    background: linear-gradient(135deg, var(--tp-salmon), var(--tp-magenta), var(--tp-purple));
    color: #fff;
    border-radius: 999px;
}

.riq-enhancement-status {
    font-size: 0.81rem;
    color: var(--tp-ink-soft);
    margin-bottom: 9px;
    min-height: 18px;
}

.riq-enhancement-section.completed .riq-enhancement-status {
    color: var(--tp-success);
    font-weight: 600;
}

.riq-enhancement-progress {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.riq-progress-bar {
    height: 6px;
    background: rgba(76, 43, 99, 0.12);
    border-radius: 999px;
    overflow: hidden;
}

.riq-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--tp-salmon), var(--tp-magenta), var(--tp-purple));
    border-radius: inherit;
    transition: width 0.45s ease;
    position: relative;
}

.riq-progress-fill::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.38), transparent);
    animation: progressShimmer 1.5s linear infinite;
}

.riq-enhancement-section.completed .riq-progress-fill {
    background: linear-gradient(90deg, #2e8d72, #4fb193);
}

.riq-enhancement-section.completed .riq-progress-fill::after {
    animation: none;
}

.riq-stats {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.74rem;
    color: var(--tp-ink-muted);
}

.riq-stat-divider {
    color: rgba(93, 77, 105, 0.45);
}

.riq-stat-highlight {
    color: var(--tp-magenta);
    font-weight: 700;
}

.riq-stat-highlight.has-enhancements {
    color: var(--tp-success);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .phase-indicator {
        gap: 8px;
    }

    .phase-label {
        max-width: 100px;
    }

    .phase-name {
        font-size: 0.68rem;
    }

    .phase-description {
        font-size: 0.6rem;
    }
}

@media (max-width: 768px) {
    .transaction-progress-container {
        padding: 18px;
    }

    .progress-header {
        flex-direction: column;
        gap: 10px;
    }

    .phase-indicator {
        gap: 5px;
    }

    .phase-circle {
        width: 36px;
        height: 36px;
        border-radius: 11px;
        margin-bottom: 7px;
    }

    .phase-progress-ring {
        width: 42px;
        height: 42px;
        top: -3px;
        left: -3px;
        border-radius: 13px;
    }

    .phase-icon svg {
        width: 16px;
        height: 16px;
    }

    .phase-name {
        font-size: 0.62rem;
    }

    .phase-description {
        display: none;
    }

    .progress-stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .stats-card {
        padding: 10px 8px;
    }

    .stat-icon {
        width: 30px;
        height: 30px;
        margin-bottom: 6px;
    }

    .stat-value {
        font-size: 1.2rem;
    }

    .current-phase-display {
        padding: 12px;
    }

    .current-phase-icon {
        width: 40px;
        height: 40px;
    }

    .current-phase-name {
        font-size: 0.92rem;
    }

    .current-phase-description {
        font-size: 0.78rem;
    }

    .progress-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .processing-status {
        text-align: left;
    }
}

@media (max-width: 560px) {
    .progress-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .phase-label {
        max-width: 76px;
    }

    .title-icon {
        width: 34px;
        height: 34px;
        border-radius: 10px;
    }

    .riq-enhancement-container {
        flex-direction: column;
        text-align: center;
    }

    .riq-enhancement-header {
        justify-content: center;
    }

    .riq-avatar {
        width: 56px;
        height: 56px;
    }

    .completion-panel {
        padding: 12px;
    }

    .completion-highlights {
        gap: 6px;
    }

    .completion-pill {
        font-size: 0.68rem;
        padding: 4px 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .title-icon,
    .phase-progress-ring,
    .spinner-ring,
    .riq-avatar,
    .thinking-dot,
    .progress-bar-fill::before,
    .riq-progress-fill::after {
        animation: none !important;
    }

    .stats-card,
    .transaction-counter,
    .transaction-progress-container {
        transition: none;
    }
}
