/**
 * Planwise — головні стилі
 */

/* === RESET & BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #111827;
    background: #f3f4f6;
}

a {
    color: #2563eb;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* === FLASH MESSAGES === */
.flash {
    padding: 15px 20px;
    margin: 0;
    text-align: center;
    font-weight: 500;
}

.flash-success {
    background: #d1fae5;
    color: #065f46;
}

.flash-error {
    background: #fee2e2;
    color: #991b1b;
}

.flash-warning {
    background: #fef3c7;
    color: #92400e;
}

/* === AUTH PAGES === */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 40px;
    width: 100%;
    max-width: 420px;
}

.auth-logo {
    text-align: center;
    margin-bottom: 30px;
}

.auth-logo h1 {
    font-size: 28px;
    color: #2563eb;
}

.auth-logo p {
    color: #6b7280;
    margin-top: 5px;
}

.auth-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 25px;
    text-align: center;
}

/* === FORMS === */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 6px;
}

.form-input {
    width: 100%;
    padding: 12px 14px;
    font-size: 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-input::placeholder {
    color: #9ca3af;
}

/* === BUTTONS === */
.btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: #2563eb;
    color: white;
    width: 100%;
}

.btn-primary:hover {
    background: #1d4ed8;
    text-decoration: none;
}

.btn-secondary {
    background: #f3f4f6;
    color: #374151;
}

.btn-secondary:hover {
    background: #e5e7eb;
}

/* === ERRORS === */
.error-list {
    background: #fee2e2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    list-style: none;
}

.error-list li {
    color: #991b1b;
    font-size: 14px;
    padding: 3px 0;
}

/* === AUTH FOOTER === */
.auth-footer {
    text-align: center;
    margin-top: 25px;
    color: #6b7280;
    font-size: 14px;
}

/* === UTILITIES === */
.text-center {
    text-align: center;
}

.mt-10 {
    margin-top: 10px;
}

.mt-20 {
    margin-top: 20px;
}

/* === DASHBOARD === */
.dashboard {
    min-height: 100vh;
    background: #f3f4f6;
}

.header {
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 15px 20px;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo {
    font-size: 20px;
    font-weight: 700;
    color: #2563eb;
}

.header-user {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #6b7280;
}

.btn-logout {
    padding: 6px 14px;
    background: #f3f4f6;
    border-radius: 6px;
    font-size: 14px;
    color: #374151;
}

.btn-logout:hover {
    background: #e5e7eb;
    text-decoration: none;
}

.dashboard-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.dashboard-content h1 {
    font-size: 28px;
    margin-bottom: 30px;
    color: #111827;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    font-size: 36px;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: #111827;
}

.stat-label {
    font-size: 14px;
    color: #6b7280;
}

/* Actions */
.dashboard-actions {
    background: white;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.btn-large {
    padding: 16px 32px;
    font-size: 18px;
}

.hint {
    margin-top: 15px;
    color: #6b7280;
    font-size: 14px;
}


/* === PLAN WIZARD === */
.plan-wizard {
    min-height: 100vh;
    background: #f3f4f6;
    padding: 40px 20px;
}

.wizard-progress {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.progress-step {
    padding: 10px 20px;
    background: white;
    border-radius: 20px;
    font-size: 14px;
    color: #9ca3af;
    border: 2px solid #e5e7eb;
}

.progress-step.active {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
}

.progress-step.done {
    background: #d1fae5;
    color: #065f46;
    border-color: #10b981;
}

.wizard-card {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.wizard-card h1 {
    font-size: 24px;
    margin-bottom: 8px;
    color: #111827;
}

.wizard-subtitle {
    color: #6b7280;
    margin-bottom: 30px;
}

.wizard-buttons {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 30px;
}

.wizard-buttons .btn {
    flex: 1;
}

/* Radio Group */
.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.radio-option:hover {
    border-color: #d1d5db;
}

.radio-option input[type="radio"] {
    display: none;
}

.radio-option input[type="radio"]:checked + span {
    color: #2563eb;
}

.radio-option:has(input:checked) {
    border-color: #2563eb;
    background: #eff6ff;
}

/* Checkbox Group */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checkbox-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px;
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.checkbox-option:hover {
    border-color: #d1d5db;
}

.checkbox-option:has(input:checked) {
    border-color: #2563eb;
    background: #eff6ff;
}

.checkbox-option input[type="checkbox"] {
    margin-top: 2px;
}

.checkbox-content {
    flex: 1;
}

.checkbox-label {
    font-weight: 500;
    color: #111827;
    display: block;
    margin-bottom: 4px;
}

.checkbox-extra {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e5e7eb;
}

.checkbox-extra .form-input {
    padding: 8px 12px;
    font-size: 14px;
}

.inline-inputs {
    display: flex;
    gap: 10px;
    align-items: center;
}

.inline-inputs .form-input {
    width: auto;
}

.inline-inputs select.form-input {
    min-width: 150px;
}

/* === FORM SECTIONS === */
.form-section {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid #e5e7eb;
}

.form-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.form-section-title {
    font-size: 16px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 15px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

@media (max-width: 500px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Input with suffix */
.input-with-suffix {
    position: relative;
}

.input-with-suffix .form-input {
    padding-right: 45px;
}

.input-suffix {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 14px;
}

/* Textarea */
textarea.form-input {
    min-height: 100px;
    resize: vertical;
}

/* === RADIO CARDS === */
.radio-group-vertical {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.radio-option-card {
    display: block;
    padding: 16px;
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.radio-option-card:hover {
    border-color: #d1d5db;
    background: #f3f4f6;
}

.radio-option-card:has(input:checked) {
    border-color: #2563eb;
    background: #eff6ff;
}

.radio-option-card input[type="radio"] {
    display: none;
}

.radio-card-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.radio-card-icon {
    font-size: 28px;
}

.radio-card-title {
    display: block;
    font-weight: 600;
    color: #111827;
    margin-bottom: 2px;
}

.radio-card-desc {
    display: block;
    font-size: 13px;
    color: #6b7280;
}

/* Goal inputs */
.goal-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

@media (max-width: 500px) {
    .goal-inputs {
        grid-template-columns: 1fr;
    }
}

.form-hint {
    font-size: 13px;
    color: #6b7280;
    margin-top: 6px;
}

/* === PLAN VIEW === */
.plan-view {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px 20px;
}

.plan-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 25px;
    gap: 20px;
}

.plan-header h1 {
    font-size: 28px;
    color: #111827;
    margin-bottom: 5px;
}

.plan-meta {
    color: #6b7280;
    font-size: 14px;
}

.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.status-ready {
    background: #d1fae5;
    color: #065f46;
}

.status-draft {
    background: #fef3c7;
    color: #92400e;
}

.plan-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.plan-card-title {
    font-size: 16px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 20px;
}

/* Goal Card */
.goal-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
}

.goal-icon {
    font-size: 48px;
}

.goal-label {
    font-size: 14px;
    opacity: 0.9;
}

.goal-value {
    font-size: 32px;
    font-weight: 700;
}

.goal-timeframe {
    font-size: 14px;
    opacity: 0.9;
}

/* Metrics Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 600px) {
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.metric-item {
    text-align: center;
    padding: 15px;
    background: #f9fafb;
    border-radius: 8px;
}

.metric-value {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
}

.metric-label {
    font-size: 13px;
    color: #6b7280;
    margin-top: 4px;
}

/* Actions List */
.actions-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.action-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #f9fafb;
    border-radius: 8px;
}

.action-type {
    font-weight: 500;
    color: #374151;
}

.action-details {
    color: #6b7280;
}

/* Hypothesis */
.hypothesis-text {
    color: #4b5563;
    line-height: 1.7;
}

/* Plan Actions */
.plan-actions {
    text-align: center;
    margin-top: 30px;
}

.plan-actions .hint {
    margin-top: 10px;
}

.btn-large {
    padding: 16px 32px;
    font-size: 18px;
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* === PLANS LIST === */
.plans-section {
    margin-top: 30px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header h2 {
    font-size: 20px;
    color: #111827;
}

.plans-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.plan-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    transition: all 0.2s;
}

.plan-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    text-decoration: none;
}

.plan-item-name {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 4px;
}

.plan-item-meta {
    font-size: 13px;
    color: #6b7280;
}

.plan-item-status {
    flex-shrink: 0;
}

/* === SIMULATION PAGE === */
.simulation-page {
    max-width: 700px;
    margin: 0 auto;
    padding: 30px 20px;
}

.simulation-card {
    background: white;
    border-radius: 12px;
    padding: 35px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.simulation-header {
    text-align: center;
    margin-bottom: 30px;
}

.simulation-header h1 {
    font-size: 26px;
    color: #111827;
    margin-bottom: 8px;
}

.simulation-subtitle {
    color: #6b7280;
}

/* Plan Summary */
.plan-summary {
    background: #f9fafb;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 25px;
    text-align: center;
}

.plan-summary h3 {
    font-size: 18px;
    color: #111827;
    margin-bottom: 5px;
}

.plan-summary p {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 10px;
}

.plan-goal {
    display: inline-block;
    background: #eff6ff;
    color: #2563eb;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

/* Info Box */
.info-box {
    display: flex;
    gap: 15px;
    padding: 16px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.info-box-success {
    background: #d1fae5;
    border: 1px solid #a7f3d0;
}

.info-box-warning {
    background: #fef3c7;
    border: 1px solid #fde68a;
}

.info-box-info {
    background: #dbeafe;
    border: 1px solid #bfdbfe;
}

.info-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.info-box strong {
    display: block;
    margin-bottom: 4px;
    color: #111827;
}

.info-box p {
    font-size: 14px;
    color: #4b5563;
    margin: 0;
}

/* Cost Info */
.generation-box {
    margin-top: 25px;
}

.cost-info {
    background: #f9fafb;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.cost-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
}

.cost-row:not(:last-child) {
    border-bottom: 1px solid #e5e7eb;
}

.cost-value {
    font-weight: 600;
}

.text-success {
    color: #10b981;
}

.text-danger {
    color: #ef4444;
}

.text-muted {
    color: #9ca3af;
}

.text-center {
    text-align: center;
}

/* Buttons */
.btn-block {
    width: 100%;
}

.button-group {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.button-group .btn {
    flex: 1;
}

/* Divider */
.divider {
    border: none;
    border-top: 1px solid #e5e7eb;
    margin: 25px 0;
}

/* Already Generated */
.already-generated {
    margin-bottom: 10px;
}

/* === SCENARIOS PAGE === */
.scenarios-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 30px 20px;
}

.scenarios-header {
    text-align: center;
    margin-bottom: 30px;
}

.scenarios-header h1 {
    font-size: 28px;
    color: #111827;
    margin-bottom: 8px;
}

.scenarios-header p {
    color: #6b7280;
}

/* Category */
.scenario-category {
    margin-bottom: 30px;
}

.category-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e5e7eb;
}

.category-green { border-color: #10b981; }
.category-yellow { border-color: #f59e0b; }
.category-red { border-color: #ef4444; }
.category-orange { border-color: #f97316; }
.category-blue { border-color: #3b82f6; }

/* Scenario Card */
.scenarios-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.scenario-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.scenario-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
    gap: 15px;
}

.scenario-header h3 {
    font-size: 16px;
    color: #111827;
    margin: 0;
}

.scenario-probability {
    background: #f3f4f6;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    flex-shrink: 0;
}

.scenario-description {
    color: #4b5563;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 12px;
}

.scenario-params {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.param-tag {
    background: #eff6ff;
    color: #2563eb;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-family: monospace;
}

.scenario-reasoning {
    margin-top: 10px;
}

.scenario-reasoning summary {
    cursor: pointer;
    color: #6b7280;
    font-size: 13px;
}

.scenario-reasoning summary:hover {
    color: #2563eb;
}

.scenario-reasoning p {
    margin-top: 10px;
    padding: 12px;
    background: #f9fafb;
    border-radius: 8px;
    font-size: 13px;
    color: #4b5563;
    line-height: 1.6;
}

/* Simulation Launch */
.simulation-launch {
    margin-top: 40px;
}

.launch-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.launch-card h2 {
    font-size: 22px;
    color: #111827;
    margin-bottom: 8px;
}

.launch-card > p {
    color: #6b7280;
    margin-bottom: 25px;
}

/* Runs Options */
.runs-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

@media (max-width: 600px) {
    .runs-options {
        grid-template-columns: 1fr;
    }
}

.runs-option {
    cursor: pointer;
}

.runs-option input {
    display: none;
}

.runs-option-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 15px;
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    transition: all 0.2s;
}

.runs-option:hover .runs-option-content {
    border-color: #d1d5db;
}

.runs-option input:checked + .runs-option-content {
    border-color: #2563eb;
    background: #eff6ff;
}

.runs-count {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
}

.runs-label {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 8px;
}

.runs-cost {
    font-size: 14px;
    font-weight: 600;
    color: #2563eb;
}

.runs-badge {
    margin-top: 8px;
    background: #2563eb;
    color: white;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 500;
}

.launch-balance {
    margin-bottom: 20px;
    color: #6b7280;
}

.launch-balance strong {
    color: #111827;
}

/* Regenerate Link */
.regenerate-link {
    text-align: center;
    margin-top: 25px;
}

.regenerate-link a {
    color: #6b7280;
    font-size: 14px;
}

.regenerate-link a:hover {
    color: #2563eb;
}

/* === RESULTS PAGE === */
.results-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 30px 20px;
}

.results-header {
    text-align: center;
    margin-bottom: 30px;
}

.results-header h1 {
    font-size: 28px;
    color: #111827;
    margin-bottom: 8px;
}

.results-header p {
    color: #6b7280;
}

/* Main Result */
.result-main {
    display: flex;
    align-items: center;
    gap: 25px;
    padding: 30px;
    border-radius: 16px;
    margin-bottom: 25px;
}

.result-main-icon {
    font-size: 60px;
}

.result-main-label {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 5px;
}

.result-main-value {
    font-size: 52px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 8px;
}

.result-main-goal {
    font-size: 14px;
    opacity: 0.85;
}

.result-green {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.result-yellow {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.result-red {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

/* Results Grid */
.results-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

@media (max-width: 800px) {
    .results-grid {
        grid-template-columns: 1fr;
    }
}

.result-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.result-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.result-card-icon {
    font-size: 20px;
}

.result-card-title {
    font-weight: 600;
    color: #374151;
}

.result-card-body {
    padding: 20px;
}

/* Result Stats */
.result-stats {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.result-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stat-label {
    font-size: 13px;
    color: #6b7280;
}

.stat-value {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
}

.stat-highlight {
    font-size: 20px;
    color: #2563eb;
}

/* Range Bar */
.result-range {
    margin-bottom: 20px;
}

.range-bar {
    position: relative;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    margin-bottom: 10px;
}

.range-fill {
    position: absolute;
    top: 0;
    height: 100%;
    background: linear-gradient(90deg, #fbbf24, #10b981);
    border-radius: 4px;
}

.range-median {
    position: absolute;
    top: -4px;
    width: 4px;
    height: 16px;
    background: #2563eb;
    border-radius: 2px;
    transform: translateX(-50%);
}

.range-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
}

.range-median-label {
    color: #2563eb;
    font-weight: 600;
}

/* Distribution Chart */
.distribution-card {
    margin-bottom: 25px;
}

.distribution-card .result-card-body {
    padding: 20px 15px;
}

.distribution-chart {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 150px;
    gap: 8px;
}

.distribution-bar-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.distribution-bar {
    width: 100%;
    background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
    border-radius: 4px 4px 0 0;
    min-height: 4px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    margin-top: auto;
}

.distribution-percent {
    font-size: 10px;
    color: white;
    padding-top: 4px;
    font-weight: 500;
}

.distribution-label {
    font-size: 9px;
    color: #6b7280;
    margin-top: 6px;
    text-align: center;
    white-space: nowrap;
}

/* Simulation Info */
.simulation-info {
    text-align: center;
    padding: 15px;
    background: #f9fafb;
    border-radius: 10px;
    margin-bottom: 25px;
}

.simulation-info p {
    color: #6b7280;
    font-size: 13px;
    margin: 0;
}

/* Results Actions */
.results-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
}

@media (max-width: 500px) {
    .results-actions {
        flex-direction: column;
    }
    
    .results-actions .btn {
        width: 100%;
    }
}

/* === NEW FORM STYLES === */

/* Wider wizard card */
.wizard-card-wide {
    max-width: 700px;
}

/* Section hints */
.form-section-hint {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 15px;
}

/* Source grid (traffic sources) */
.source-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

@media (max-width: 600px) {
    .source-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.source-option {
    cursor: pointer;
}

.source-option input {
    display: none;
}

.source-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 15px 10px;
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    transition: all 0.2s;
}

.source-option:hover .source-content {
    border-color: #d1d5db;
}

.source-option input:checked + .source-content {
    border-color: #2563eb;
    background: #eff6ff;
}

.source-icon {
    font-size: 24px;
}

.source-name {
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    text-align: center;
}

/* Field hints */
.field-hint {
    font-size: 13px;
    color: #6b7280;
    margin-top: 8px;
    line-height: 1.5;
}

.field-hint strong {
    color: #374151;
}

/* Conditional fields */
.conditional-field {
    margin-top: 15px;
    padding: 15px;
    background: #f9fafb;
    border-radius: 8px;
    display: none;
}

.conditional-field.visible {
    display: block;
}

/* Input with prefix */
.input-with-suffix {
    position: relative;
    display: flex;
    align-items: center;
}

.input-prefix {
    position: absolute;
    left: 12px;
    color: #6b7280;
    font-size: 14px;
    z-index: 1;
}

.input-suffix {
    position: absolute;
    right: 12px;
    color: #6b7280;
    font-size: 14px;
}

.form-input.input-with-prefix {
    padding-left: 30px;
}

/* Conversion input section */
.conversion-input {
    background: #f9fafb;
    border-radius: 10px;
    padding: 20px;
}

.conversion-question {
    font-weight: 500;
    color: #374151;
    margin-bottom: 15px;
}

.conversion-options {
    display: flex;
    align-items: flex-end;
    gap: 20px;
    flex-wrap: wrap;
}

.conversion-option {
    flex: 1;
    min-width: 150px;
}

.conversion-divider {
    color: #9ca3af;
    font-size: 14px;
    padding-bottom: 10px;
}

.conversion-result {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e5e7eb;
    display: none;
}

.result-hint {
    color: #059669;
    font-size: 14px;
    margin: 0;
}

.result-hint strong {
    color: #047857;
}

/* CAC toggle */
.cac-toggle {
    margin-bottom: 15px;
}

.toggle-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: #374151;
}

.toggle-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Optional badge */
.optional-badge {
    font-size: 12px;
    font-weight: 400;
    color: #9ca3af;
    margin-left: 8px;
}

/* Form improvements */
.form-section {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid #e5e7eb;
}

.form-section:last-of-type {
    border-bottom: none;
    margin-bottom: 20px;
    padding-bottom: 0;
}

.form-section-title {
    font-size: 16px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

/* === GOAL FORM STYLES === */

/* Current stats row */
.current-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 20px;
    background: #f0f9ff;
    border-radius: 12px;
    margin-bottom: 30px;
}

@media (max-width: 500px) {
    .current-stats {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
}

.current-stat {
    text-align: center;
}

.current-stat-value {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #2563eb;
}

.current-stat-label {
    font-size: 13px;
    color: #6b7280;
}

/* Goal type selector */
.goal-type-selector {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

@media (max-width: 600px) {
    .goal-type-selector {
        grid-template-columns: 1fr;
    }
}

.goal-type-option {
    cursor: pointer;
}

.goal-type-option input {
    display: none;
}

.goal-type-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 15px;
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    transition: all 0.2s;
}

.goal-type-option:hover .goal-type-content {
    border-color: #d1d5db;
}

.goal-type-option input:checked + .goal-type-content {
    border-color: #2563eb;
    background: #eff6ff;
}

.goal-type-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.goal-type-name {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 4px;
}

.goal-type-desc {
    font-size: 12px;
    color: #6b7280;
}

/* Goal input block */
.goal-input-block {
    background: #f9fafb;
    border-radius: 12px;
    padding: 25px;
}

.goal-input-row {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

@media (max-width: 600px) {
    .goal-input-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .goal-arrow {
        display: none;
    }
}

.goal-current {
    flex: 1;
    min-width: 150px;
}

.goal-current-label {
    display: block;
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 4px;
}

.goal-current-value {
    font-size: 20px;
    font-weight: 600;
    color: #374151;
}

.goal-arrow {
    font-size: 24px;
    color: #9ca3af;
}

.goal-target {
    flex: 1;
    min-width: 200px;
}

.goal-target .form-label {
    margin-bottom: 8px;
}

.goal-target .form-input {
    font-size: 18px;
    padding: 12px 15px;
}

/* Goal calculation hints */
.goal-calculation {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.calc-result {
    font-size: 15px;
    color: #374151;
    margin-bottom: 8px;
}

.calc-result strong {
    color: #2563eb;
}

.calc-hint {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
}

.calc-success {
    color: #059669;
}

.calc-warning {
    color: #d97706;
}

.calc-danger {
    color: #dc2626;
}

/* Period selector */
.period-selector {
    display: flex;
    gap: 15px;
    justify-content: center;
}

@media (max-width: 400px) {
    .period-selector {
        flex-direction: column;
    }
}

.period-option {
    cursor: pointer;
    flex: 1;
    max-width: 120px;
}

.period-option input {
    display: none;
}

.period-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    transition: all 0.2s;
}

.period-option:hover .period-content {
    border-color: #d1d5db;
}

.period-option input:checked + .period-content {
    border-color: #2563eb;
    background: #eff6ff;
}

.period-value {
    font-size: 28px;
    font-weight: 700;
    color: #111827;
}

.period-label {
    font-size: 13px;
    color: #6b7280;
}

/* === RESEARCH PAGE === */
.research-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 30px 20px;
}

.research-header {
    text-align: center;
    margin-bottom: 30px;
}

.research-header h1 {
    font-size: 28px;
    color: #111827;
    margin-bottom: 8px;
}

.research-header p {
    color: #6b7280;
}

/* Research Card */
.research-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.research-card-small {
    padding: 20px;
}

.research-card-title {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 20px;
}

/* Benchmarks Grid */
.benchmarks-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

@media (max-width: 600px) {
    .benchmarks-grid {
        grid-template-columns: 1fr;
    }
}

.benchmark-item {
    padding: 15px;
    background: #f9fafb;
    border-radius: 10px;
}

.benchmark-label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 10px;
}

.benchmark-industry {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 8px;
}

.benchmark-user {
    font-size: 15px;
    color: #111827;
    margin-bottom: 8px;
}

.benchmark-status {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    margin-left: 8px;
}

.benchmark-good {
    background: #d1fae5;
    color: #065f46;
}

.benchmark-neutral {
    background: #fef3c7;
    color: #92400e;
}

.benchmark-bad {
    background: #fee2e2;
    color: #991b1b;
}

.benchmark-comment {
    font-size: 13px;
    color: #6b7280;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #e5e7eb;
}

/* Effects List */
.effects-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.effect-item {
    padding: 20px;
    background: #f9fafb;
    border-radius: 10px;
    border-left: 4px solid #2563eb;
}

.effect-header {
    margin-bottom: 12px;
}

.effect-action {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
}

.effect-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 12px;
}

.effect-metric {
    background: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
}

.metric-name {
    color: #6b7280;
    margin-right: 5px;
}

.metric-value {
    font-weight: 600;
    color: #111827;
}

.text-warning {
    color: #d97706;
}

.effect-risks {
    margin-bottom: 10px;
}

.risks-label {
    font-size: 13px;
    color: #6b7280;
    margin-right: 8px;
}

.risk-tag {
    display: inline-block;
    padding: 3px 10px;
    background: #fef3c7;
    color: #92400e;
    border-radius: 12px;
    font-size: 12px;
    margin-right: 6px;
    margin-bottom: 4px;
}

.effect-comment {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.5;
}

/* Risks List */
.risks-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.risk-item {
    padding: 15px;
    border-radius: 10px;
    border-left: 4px solid;
}

.risk-low {
    background: #f0fdf4;
    border-color: #22c55e;
}

.risk-medium {
    background: #fefce8;
    border-color: #eab308;
}

.risk-high {
    background: #fef2f2;
    border-color: #ef4444;
}

.risk-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 8px;
}

.risk-name {
    font-weight: 600;
    color: #111827;
}

.risk-probability {
    font-size: 12px;
    padding: 3px 10px;
    background: rgba(0,0,0,0.1);
    border-radius: 10px;
    color: #374151;
}

.risk-impact {
    font-size: 14px;
    color: #4b5563;
    margin-bottom: 8px;
}

.risk-mitigation {
    font-size: 13px;
    color: #059669;
    padding: 8px 12px;
    background: rgba(255,255,255,0.5);
    border-radius: 6px;
}

/* Sources */
.sources-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.source-tag {
    display: inline-block;
    padding: 5px 12px;
    background: #f3f4f6;
    color: #6b7280;
    border-radius: 15px;
    font-size: 13px;
}

/* Research Actions */
.research-actions {
    text-align: center;
    margin-top: 30px;
}

.research-refresh {
    text-align: center;
    margin-top: 20px;
}

.btn-link {
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    font-size: 14px;
    padding: 10px;
}

.btn-link:hover {
    color: #2563eb;
}

/* Research Empty State */
.research-empty {
    max-width: 500px;
    margin: 0 auto;
}

.research-empty .research-card {
    text-align: center;
    padding: 40px 30px;
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.empty-description {
    color: #6b7280;
    margin-bottom: 20px;
}

.research-benefits {
    list-style: none;
    padding: 0;
    text-align: left;
    margin: 0 auto 25px;
    max-width: 350px;
}

.research-benefits li {
    padding: 10px 0;
    border-bottom: 1px solid #f3f4f6;
    color: #374151;
}

.research-benefits li:last-child {
    border-bottom: none;
}

/* === PLAN VIEW ACTIONS === */
.action-steps {
    margin-bottom: 15px;
}

.step-done {
    color: #059669;
    font-size: 14px;
    margin-bottom: 5px;
}

.quick-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.quick-links a {
    color: #6b7280;
    font-size: 14px;
    text-decoration: none;
}

.quick-links a:hover {
    color: #2563eb;
}

/* === PREPARATION STATUS === */
.preparation-status {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.status-icon {
    font-size: 18px;
}

.status-text {
    font-size: 14px;
    color: #374151;
}

.status-done {
    border-left: 3px solid #10b981;
}

.status-warning {
    border-left: 3px solid #f59e0b;
    background: #fffbeb;
}

.status-link {
    font-size: 12px;
    color: #2563eb;
    margin-left: 5px;
}

/* Warning box prominent */
.warning-box {
    background: #fffbeb;
    border: 1px solid #fcd34d;
    border-radius: 10px;
    padding: 15px 20px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #92400e;
}

.warning-box a {
    color: #d97706;
    font-weight: 500;
}

.warning-prominent {
    padding: 25px;
    text-align: center;
}

.warning-prominent h3 {
    margin-bottom: 10px;
    color: #92400e;
}

.warning-prominent p {
    margin-bottom: 15px;
    line-height: 1.6;
}

/* Regenerate section */
.regenerate-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
    text-align: center;
}

.generation-actions {
    text-align: center;
    margin: 20px 0;
}

/* Generation steps */
.generation-steps {
    list-style: none;
    padding: 0;
    margin: 15px 0 25px;
    text-align: left;
}

.generation-steps li {
    padding: 10px 0;
    border-bottom: 1px solid #f3f4f6;
    color: #374151;
}

.generation-steps li:last-child {
    border-bottom: none;
}

/* === AI INSIGHTS STYLES === */

/* Verdict Card */
.verdict-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.verdict-позитивний,
.verdict-positive {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border: 1px solid #6ee7b7;
}

.verdict-нейтральний,
.verdict-neutral {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 1px solid #fcd34d;
}

.verdict-негативний,
.verdict-negative {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border: 1px solid #fca5a5;
}

.verdict-icon {
    font-size: 48px;
    flex-shrink: 0;
}

.verdict-content {
    flex: 1;
}

.verdict-title {
    font-size: 20px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 8px;
}

.verdict-text {
    font-size: 15px;
    color: #374151;
    line-height: 1.6;
    margin: 0;
}

/* Insight Card (simple) */
.insight-card {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 25px;
}

.insight-interpretation {
    font-size: 15px;
    color: #0369a1;
    line-height: 1.6;
    margin: 0;
}

/* Section Title */
.insights-section {
    margin-bottom: 30px;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 15px;
}

/* Findings Grid */
.findings-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.finding-card {
    display: flex;
    gap: 15px;
    padding: 15px;
    border-radius: 10px;
    background: white;
    border: 1px solid #e5e7eb;
}

.finding-positive {
    border-left: 4px solid #10b981;
    background: #f0fdf4;
}

.finding-negative {
    border-left: 4px solid #ef4444;
    background: #fef2f2;
}

.finding-neutral {
    border-left: 4px solid #3b82f6;
    background: #eff6ff;
}

.finding-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.finding-content {
    flex: 1;
}

.finding-title {
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 5px;
}

.finding-text {
    font-size: 14px;
    color: #4b5563;
    margin: 0;
    line-height: 1.5;
}

/* Risks Grid */
.risks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
}

.risk-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    border: 1px solid #e5e7eb;
}

.risk-висока,
.risk-high {
    border-left: 4px solid #ef4444;
}

.risk-середня,
.risk-medium {
    border-left: 4px solid #f59e0b;
}

.risk-низька,
.risk-low {
    border-left: 4px solid #10b981;
}

.risk-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.risk-name {
    font-weight: 600;
    color: #111827;
}

.risk-badge {
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 12px;
    background: #f3f4f6;
    color: #6b7280;
}

.risk-impact {
    font-size: 14px;
    color: #4b5563;
    margin-bottom: 12px;
    line-height: 1.5;
}

.risk-mitigation {
    font-size: 13px;
    color: #059669;
    background: #ecfdf5;
    padding: 10px 12px;
    border-radius: 6px;
    line-height: 1.5;
}

/* Recommendations */
.recommendations-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.recommendation-card {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
}

.recommendation-priority {
    width: 36px;
    height: 36px;
    background: #2563eb;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
}

.recommendation-content {
    flex: 1;
}

.recommendation-action {
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 5px;
}

.recommendation-impact {
    font-size: 14px;
    color: #4b5563;
    margin-bottom: 10px;
    line-height: 1.5;
}

.recommendation-effort {
    display: inline-block;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 12px;
    background: #f3f4f6;
}

.effort-легко {
    background: #d1fae5;
    color: #065f46;
}

.effort-середньо {
    background: #fef3c7;
    color: #92400e;
}

.effort-складно {
    background: #fee2e2;
    color: #991b1b;
}

/* Alternative Scenarios */
.scenarios-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

@media (max-width: 768px) {
    .scenarios-grid {
        grid-template-columns: 1fr;
    }
}

.scenario-card {
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

.scenario-optimistic {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
}

.scenario-likely {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
}

.scenario-pessimistic {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
}

.scenario-icon {
    font-size: 32px;
    margin-bottom: 10px;
}

.scenario-card h4 {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 10px;
}

.scenario-card p {
    font-size: 13px;
    color: #4b5563;
    line-height: 1.5;
    margin: 0;
}

/* Next Steps */
.next-steps-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.next-step-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
}

.step-number {
    width: 28px;
    height: 28px;
    background: #10b981;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    flex-shrink: 0;
}

.step-text {
    font-size: 14px;
    color: #374151;
}

/* Results improvements */
.result-main {
    text-align: center;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.success-high {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
}

.success-medium {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
}

.success-low {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
}

.result-main-icon {
    font-size: 48px;
    margin-bottom: 10px;
}

.result-main-label {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 5px;
}

.result-main-value {
    font-size: 48px;
    font-weight: 700;
    color: #111827;
}

.result-main-goal {
    font-size: 14px;
    color: #6b7280;
    margin-top: 5px;
}

/* Stats improvements */
.stat-negative .stat-value {
    color: #dc2626;
}

.stat-highlight {
    background: #f0f9ff;
    border-radius: 6px;
    padding: 8px 12px;
    margin: -8px -12px;
}

.result-stats-vertical {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f3f4f6;
}

.stat-row:last-child {
    border-bottom: none;
}

.stat-row.stat-highlight {
    background: #f0f9ff;
    border-radius: 6px;
    padding: 12px;
    margin: 0 -12px;
    border-bottom: none;
}

/* Results meta */
.results-meta {
    display: flex;
    justify-content: center;
    gap: 25px;
    padding: 15px;
    background: #f9fafb;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 13px;
    color: #6b7280;
    flex-wrap: wrap;
}

.results-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

/* === RESULTS CARD HIGHLIGHT === */
.result-card-highlight {
    border: 2px solid #2563eb;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
}

.result-card-highlight .result-card-title {
    color: #1d4ed8;
}

.result-comparison {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #bfdbfe;
    display: flex;
    justify-content: space-between;
    font-size: 13px;
}

.comparison-label {
    color: #6b7280;
}

.comparison-value {
    font-weight: 600;
    color: #374151;
}