@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;600&display=swap');

:root {
    --bg: #08080c;
    --bg2: #0f0f16;
    --bg3: #16161f;
    --bg4: #1e1e2a;
    --border: #252535;
    --border2: #333348;
    --text: #e4e4ef;
    --text2: #9090a8;
    --text3: #606078;
    --accent: #7c5cfc;
    --accent2: #a78bfa;
    --amber: #f59e0b;
    --amber-bg: rgba(245, 158, 11, 0.08);
    --red: #ef4444;
    --red-bg: rgba(239, 68, 68, 0.08);
    --green: #10b981;
    --green-bg: rgba(16, 185, 129, 0.08);
    --blue: #6366f1;
    --blue-bg: rgba(99, 102, 241, 0.08);
    --pink: #ec4899;
    --radius: 16px;
    --radius-sm: 10px;
    --mono: 'JetBrains Mono', monospace;
    --sans: 'Inter', -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--sans);
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.6;
}

/* Header */
.header {
    padding: 20px 32px;
    border-bottom: 1px solid var(--border);
    background: var(--bg2);
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-logo {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #7c5cfc, #a78bfa, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header-sub {
    font-size: 13px;
    color: var(--text3);
    font-weight: 400;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 24px;
}

/* Input Section */
.input-section { margin-bottom: 32px; }

.input-card {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
}

.input-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 6px;
}

.input-hint {
    font-size: 14px;
    color: var(--text3);
    margin-bottom: 18px;
    line-height: 1.5;
}

.input-field {
    width: 100%;
    min-height: 140px;
    padding: 16px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: var(--sans);
    font-size: 15px;
    line-height: 1.7;
    resize: vertical;
    outline: none;
    transition: border-color 0.3s;
}

.input-field:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(124, 92, 252, 0.1);
}

.input-field::placeholder { color: var(--text3); }

.input-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 14px;
}

.char-count {
    font-size: 12px;
    color: var(--text3);
    font-family: var(--mono);
}

.btn-analyze {
    padding: 12px 32px;
    background: linear-gradient(135deg, #7c5cfc, #6d4de8);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--sans);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-analyze:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(124, 92, 252, 0.3);
}

.btn-analyze:disabled {
    background: var(--bg4);
    color: var(--text3);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Pipeline Section */
.pipeline-section { display: none; }
.pipeline-section.active { display: block; }

/* Pipeline Steps - horizontal stepper */
.pipeline-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 36px;
    padding: 20px 0;
}

.step {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 40px;
    background: var(--bg2);
    border: 1px solid var(--border);
    transition: all 0.4s ease;
    position: relative;
}

.step.active {
    border-color: var(--accent);
    background: rgba(124, 92, 252, 0.06);
    box-shadow: 0 0 24px rgba(124, 92, 252, 0.1);
}

.step.done {
    border-color: var(--green);
    background: rgba(16, 185, 129, 0.06);
}

.step-icon {
    font-size: 20px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg);
}

.step-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}

.step-status {
    font-size: 11px;
    color: var(--text3);
    font-family: var(--mono);
}

.step.active .step-status { color: var(--accent2); }
.step.done .step-status { color: var(--green); }

.step-connector {
    width: 40px;
    height: 2px;
    background: var(--border);
    margin-left: 12px;
}

.step.done .step-connector { background: var(--green); }

/* Stage Panels */
.stage-panel {
    margin-bottom: 28px;
    animation: fadeSlideIn 0.5s ease;
}

@keyframes fadeSlideIn {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

.stage-panel:empty { display: none; }

.stage-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    font-size: 16px;
    font-weight: 700;
}

.stage-header-icon {
    font-size: 20px;
}

/* Pivot Cards (Generator) */
.pivot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 16px;
}

.pivot-card {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    transition: all 0.3s;
    animation: cardPop 0.4s ease backwards;
}

.pivot-card:nth-child(1) { animation-delay: 0.0s; }
.pivot-card:nth-child(2) { animation-delay: 0.1s; }
.pivot-card:nth-child(3) { animation-delay: 0.2s; }
.pivot-card:nth-child(4) { animation-delay: 0.3s; }
.pivot-card:nth-child(5) { animation-delay: 0.4s; }

@keyframes cardPop {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.pivot-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 10px;
}

.pivot-id {
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 700;
    color: var(--accent2);
    background: rgba(124, 92, 252, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
}

.pivot-type-badge {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 3px 8px;
    border-radius: 4px;
    background: var(--bg4);
    color: var(--text2);
}

.pivot-name {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text);
}

.pivot-oneliner {
    font-size: 13px;
    color: var(--text2);
    margin-bottom: 12px;
    line-height: 1.5;
}

.pivot-thesis {
    font-size: 13px;
    color: var(--text2);
    line-height: 1.6;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.pivot-difficulty {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    margin-top: 10px;
    padding: 3px 8px;
    border-radius: 4px;
}

.diff-low { background: var(--green-bg); color: var(--green); }
.diff-medium { background: var(--amber-bg); color: var(--amber); }
.diff-high { background: var(--red-bg); color: var(--red); }

/* Research Cards */
.research-card {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 14px;
    animation: cardPop 0.4s ease backwards;
}

.research-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.research-pivot-name {
    font-size: 15px;
    font-weight: 700;
}

.threat-badge {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 10px;
    border-radius: 4px;
}

.threat-low { background: var(--green-bg); color: var(--green); }
.threat-medium { background: var(--amber-bg); color: var(--amber); }
.threat-high { background: var(--red-bg); color: var(--red); }
.threat-extreme { background: rgba(239, 68, 68, 0.15); color: #ff6b6b; }

.competitor-list { margin-bottom: 14px; }

.competitor-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.competitor-item:last-child { border-bottom: none; }

.competitor-bullet {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    margin-top: 7px;
    flex-shrink: 0;
}

.competitor-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}

.competitor-name a {
    color: var(--accent2);
    text-decoration: none;
}

.competitor-name a:hover { text-decoration: underline; }

.competitor-desc {
    font-size: 12px;
    color: var(--text2);
    line-height: 1.5;
}

.competitor-funding {
    font-size: 11px;
    color: var(--text3);
    font-family: var(--mono);
}

.research-signal {
    font-size: 13px;
    color: var(--text2);
    line-height: 1.6;
    padding: 12px;
    background: var(--bg);
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
}

.research-insight {
    font-size: 13px;
    font-weight: 600;
    color: var(--amber);
    padding: 10px 12px;
    background: var(--amber-bg);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--amber);
}

.citations-section {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.citations-title {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text3);
    margin-bottom: 8px;
}

.citation-link {
    display: block;
    font-size: 12px;
    color: var(--accent2);
    text-decoration: none;
    padding: 3px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.citation-link:hover { text-decoration: underline; }

/* Kill Cards */
.kill-section { margin-bottom: 24px; }

.kill-section-title {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.killed-title { color: var(--red); }
.survived-title { color: var(--green); }

.kill-card {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    margin-bottom: 10px;
    position: relative;
    overflow: hidden;
    animation: cardPop 0.4s ease backwards;
}

.kill-card.killed {
    border-color: rgba(239, 68, 68, 0.2);
    opacity: 0.75;
}

.kill-card.killed::after {
    content: '';
    position: absolute;
    top: 50%;
    left: -5%;
    width: 110%;
    height: 2px;
    background: var(--red);
    transform: rotate(-2deg);
    opacity: 0.6;
}

.kill-card.survived {
    border-color: rgba(16, 185, 129, 0.3);
    background: rgba(16, 185, 129, 0.03);
}

.kill-card-name {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 6px;
}

.kill-card-reason {
    font-size: 13px;
    color: var(--text2);
    line-height: 1.6;
    margin-bottom: 8px;
}

.fatal-flaw, .biggest-risk {
    font-size: 12px;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 6px;
    display: inline-block;
}

.fatal-flaw {
    color: var(--red);
    background: var(--red-bg);
}

.biggest-risk {
    color: var(--amber);
    background: var(--amber-bg);
}

/* Scorer Cards */
.scorer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(480px, 1fr));
    gap: 20px;
}

.scorer-card {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    animation: cardPop 0.5s ease backwards;
    position: relative;
}

.scorer-card.winner {
    border: 2px solid var(--green);
    box-shadow: 0 0 40px rgba(16, 185, 129, 0.08);
}

.winner-badge {
    position: absolute;
    top: -1px;
    right: 20px;
    background: var(--green);
    color: white;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 14px;
    border-radius: 0 0 8px 8px;
}

.scorer-card-name {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 4px;
}

.scorer-total {
    font-size: 32px;
    font-weight: 800;
    font-family: var(--mono);
    margin-bottom: 16px;
}

.scorer-total span {
    font-size: 16px;
    font-weight: 400;
    color: var(--text3);
}

/* Score Bars */
.score-dimensions { margin-bottom: 18px; }

.score-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.score-label {
    font-size: 12px;
    color: var(--text2);
    min-width: 140px;
    white-space: nowrap;
}

.score-bar-track {
    flex: 1;
    height: 10px;
    background: var(--bg);
    border-radius: 5px;
    overflow: hidden;
}

.score-bar-fill {
    height: 100%;
    border-radius: 5px;
    transition: width 1s ease;
    background: linear-gradient(90deg, var(--accent), var(--accent2));
}

.score-bar-fill.low { background: linear-gradient(90deg, #ef4444, #f87171); }
.score-bar-fill.mid { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.score-bar-fill.high { background: linear-gradient(90deg, #10b981, #34d399); }

.score-num {
    font-family: var(--mono);
    font-size: 13px;
    font-weight: 700;
    min-width: 28px;
    text-align: right;
}

.scorer-justification {
    font-size: 13px;
    color: var(--text2);
    line-height: 1.7;
    padding: 14px;
    background: var(--bg);
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
}

.next-steps-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text3);
    margin-bottom: 8px;
}

.next-step-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 6px 0;
    font-size: 13px;
    color: var(--text);
    line-height: 1.5;
}

.next-step-num {
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 700;
    color: var(--accent2);
    background: rgba(124, 92, 252, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    flex-shrink: 0;
}

/* Winner Banner */
.winner-banner {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(16, 185, 129, 0.02));
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 24px;
    text-align: center;
    animation: cardPop 0.6s ease backwards;
}

.winner-banner-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--green);
    margin-bottom: 8px;
}

.winner-banner-name {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 8px;
}

.winner-headline {
    font-size: 15px;
    color: var(--text2);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto 12px;
}

.confidence-badge {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 12px;
    border-radius: 6px;
    display: inline-block;
}

.conf-high { background: var(--green-bg); color: var(--green); }
.conf-medium { background: var(--amber-bg); color: var(--amber); }
.conf-low { background: var(--red-bg); color: var(--red); }

/* Cost Panel */
.cost-panel:empty { display: none; }

.cost-panel {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-top: 24px;
}

.cost-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text2);
}

.cost-total-row {
    font-size: 28px;
    font-weight: 800;
    font-family: var(--mono);
    color: var(--green);
    margin-bottom: 16px;
}

.cost-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}

.cost-item {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px;
}

.cost-item-label {
    font-size: 11px;
    color: var(--text3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.cost-item-value {
    font-size: 16px;
    font-weight: 700;
    font-family: var(--mono);
}

.cost-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid var(--border);
    font-size: 12px;
}

.cost-detail-row:last-child { border-bottom: none; }
.cost-detail-label { color: var(--text2); }
.cost-detail-value { font-family: var(--mono); font-weight: 600; }

/* Loading spinner */
.loading-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 24px;
    color: var(--text3);
    font-size: 14px;
}

.spinner {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border2);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

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

/* Planner Card */
.planner-card {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.05), rgba(124, 92, 252, 0.05));
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: var(--radius);
    padding: 20px;
}

.planner-type {
    font-size: 20px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 12px;
    letter-spacing: -0.3px;
}

.planner-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 14px;
    font-size: 13px;
    color: var(--text3);
}

.planner-meta-item strong {
    color: var(--text2);
}

.planner-dims {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.planner-dim-tag {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(124, 92, 252, 0.1);
    color: var(--accent2);
    border: 1px solid rgba(124, 92, 252, 0.15);
    text-transform: capitalize;
}

/* Error messages */
.error-message {
    color: var(--red);
    background: var(--red-bg);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: var(--radius);
    padding: 16px;
    font-size: 14px;
    line-height: 1.5;
}

/* Multi-Model Generator */
.model-group {
    margin-bottom: 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    background: var(--bg2);
}

.model-group-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.model-name-badge {
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    background: linear-gradient(135deg, rgba(124, 92, 252, 0.15), rgba(167, 139, 250, 0.1));
    color: var(--accent2);
    border: 1px solid rgba(124, 92, 252, 0.2);
}

.model-pivot-count {
    font-size: 12px;
    color: var(--text3);
    font-family: var(--mono);
}

.pivot-count-badge {
    font-size: 12px;
    font-weight: 600;
    color: var(--accent2);
    background: rgba(124, 92, 252, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 8px;
}

/* Deduplicator */
.dedup-card.consensus-full {
    border-color: rgba(16, 185, 129, 0.3);
    background: rgba(16, 185, 129, 0.03);
}

.dedup-card.consensus-partial {
    border-color: rgba(245, 158, 11, 0.3);
    background: rgba(245, 158, 11, 0.03);
}

.consensus-badge {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 8px;
    border-radius: 4px;
}

.consensus-badge.consensus-full { background: var(--green-bg); color: var(--green); }
.consensus-badge.consensus-partial { background: var(--amber-bg); color: var(--amber); }
.consensus-badge.consensus-solo { background: var(--bg4); color: var(--text3); }

.source-models {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 10px;
}

.source-model-tag {
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 3px;
    background: var(--bg);
    color: var(--text2);
    border: 1px solid var(--border);
}

.merge-log {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 20px;
}

.merge-log-title {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text2);
}

.merge-log-item {
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
}

.merge-log-item:last-child { border-bottom: none; }

.merge-arrow {
    color: var(--text);
    font-weight: 600;
}

.merge-into {
    color: var(--accent2);
    font-weight: 600;
    font-family: var(--mono);
    font-size: 12px;
}

.merge-reason {
    font-size: 12px;
    color: var(--text3);
    margin-top: 4px;
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 768px) {
    .pipeline-steps { flex-direction: column; gap: 8px; }
    .step-connector { display: none; }
    .pivot-grid { grid-template-columns: 1fr; }
    .scorer-grid { grid-template-columns: 1fr; }
}

/* Feedback Section */
.feedback-section {
    margin-top: 32px;
}

.feedback-card {
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
}

.feedback-round {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent2);
    margin-bottom: 8px;
}

.feedback-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 8px 0;
}

.feedback-hint {
    font-size: 13px;
    color: var(--text3);
    margin: 0 0 16px 0;
    line-height: 1.5;
}

.feedback-field {
    width: 100%;
    min-height: 100px;
    padding: 14px 16px;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    resize: vertical;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.feedback-field:focus {
    outline: none;
    border-color: var(--accent);
}

.feedback-field::placeholder {
    color: var(--text3);
}

.feedback-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 14px;
}

.btn-iterate {
    padding: 10px 24px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.btn-iterate:hover {
    background: #6b4ce0;
    transform: translateY(-1px);
}

.btn-iterate:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-reset {
    padding: 10px 20px;
    background: transparent;
    color: var(--text3);
    border: 1px solid var(--border);
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-reset:hover {
    color: var(--text2);
    border-color: var(--border2);
    background: var(--bg4);
}

/* Round Badge */
.round-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent2);
    background: rgba(124, 92, 252, 0.1);
    border: 1px solid rgba(124, 92, 252, 0.2);
    padding: 4px 12px;
    border-radius: 6px;
    margin-bottom: 10px;
}

/* Error Messages */
.error-message {
    background: var(--red-bg);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    color: var(--red);
    padding: 12px 16px;
    font-size: 13px;
    margin: 8px 0;
    line-height: 1.5;
}
