/* Pre-Order Wizard Styles */

/* ── Wizard Step Indicator ─────────────────────────────────────────── */
.wizard-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 2rem;
}

.wizard-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: #e5e7eb;
    z-index: 0;
}

.wizard-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    flex: 1;
}

.wizard-step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    background: #e5e7eb;
    color: #6b7280;
    transition: all 0.3s ease;
}

.wizard-step.active .wizard-step-circle {
    background: var(--green-600, #4F7A45);
    color: white;
}

.wizard-step.completed .wizard-step-circle {
    background: var(--green-600, #4F7A45);
    color: white;
}

.wizard-step-label {
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: #6b7280;
    text-align: center;
    max-width: 80px;
}

.wizard-step.active .wizard-step-label {
    color: var(--green-600, #4F7A45);
    font-weight: 600;
}

.wizard-step.completed .wizard-step-label {
    color: var(--green-600, #4F7A45);
}

.wizard-step.completed {
    cursor: pointer;
}

.wizard-step.completed:hover .wizard-step-circle {
    background: var(--green-700, #3B5534);
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.15);
}

.wizard-step.completed:hover .wizard-step-label {
    color: var(--green-700, #3B5534);
}

/* ── Wizard Content ────────────────────────────────────────────────── */
.wizard-panel {
    display: none;
    animation: fadeIn 0.3s ease;
}

.wizard-panel.active {
    display: block;
}

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

/* ── Portion Selector ──────────────────────────────────────────────── */
.portion-card {
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.portion-card:hover {
    border-color: var(--green-500, #5E8E53);
    background: var(--green-100, rgba(79, 122, 69, 0.08));
}

.portion-card.selected {
    border-color: var(--green-600, #4F7A45);
    background: var(--green-100, rgba(79, 122, 69, 0.08));
    box-shadow: var(--shadow-glow-green, 0 0 0 3px rgba(74, 103, 65, 0.12));
}

.portion-card .portion-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.portion-card .portion-name {
    font-weight: 600;
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.portion-card .portion-deposit {
    color: #6b7280;
    font-size: 0.875rem;
}

/* ── Cut Sheet ─────────────────────────────────────────────────────── */
.cut-section {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.cut-section-header {
    background: #f9fafb;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: background 0.2s;
}

.cut-section-header:hover {
    background: #f3f4f6;
}

.cut-section-header .section-name {
    font-weight: 600;
    font-size: 0.9375rem;
}

.cut-section-header .section-pct {
    font-size: 0.8125rem;
    color: #6b7280;
}

.cut-section-body {
    padding: 0;
}

.cut-item {
    display: flex;
    align-items: center;
    padding: 0.625rem 1rem;
    border-top: 1px solid #f3f4f6;
    transition: background 0.15s;
}

.cut-item:hover {
    background: #fafafa;
}

.cut-item-check {
    flex-shrink: 0;
    margin-right: 0.75rem;
}

.cut-item-info {
    flex: 1;
    min-width: 0;
}

.cut-item-name {
    font-size: 0.875rem;
    font-weight: 500;
}

.cut-item-weight {
    font-size: 0.75rem;
    color: #6b7280;
}

.cut-item-options {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
    margin-left: 0.75rem;
}

.cut-item-options select {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: white;
}

.specialty-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.6875rem;
    font-weight: 500;
    background: #fef3c7;
    color: #92400e;
    margin-left: 0.5rem;
}

/* ── Yield Allocation Bar ──────────────────────────────────────────── */
.yield-bar-container {
    background: #f3f4f6;
    border-radius: 8px;
    height: 12px;
    overflow: hidden;
    position: relative;
}

.yield-bar-fill {
    height: 100%;
    border-radius: 8px;
    transition: width 0.4s ease;
    background: linear-gradient(90deg, var(--green-600, #4F7A45), var(--green-500, #5E8E53));
}

.yield-bar-fill.warning {
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.yield-bar-fill.danger {
    background: linear-gradient(90deg, #ef4444, #f87171);
}

/* ── Profile Cards ─────────────────────────────────────────────────── */
.profile-card {
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.profile-card:hover {
    border-color: var(--green-500, #5E8E53);
    background: var(--green-100, rgba(79, 122, 69, 0.08));
}

.profile-card.selected {
    border-color: var(--green-600, #4F7A45);
    background: var(--green-100, rgba(79, 122, 69, 0.08));
}

/* ── Processing Fee Breakdown ──────────────────────────────────────── */
.fee-breakdown {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 8px;
    padding: 1rem;
}

.fee-breakdown-row {
    display: flex;
    justify-content: space-between;
    padding: 0.25rem 0;
    font-size: 0.875rem;
}

.fee-breakdown-total {
    border-top: 1px solid #fde68a;
    padding-top: 0.5rem;
    margin-top: 0.25rem;
    font-weight: 600;
}

/* ── Order Summary ─────────────────────────────────────────────────── */
.summary-card {
    background: var(--green-100, rgba(79, 122, 69, 0.08));
    border: 1px solid #bbf7d0;
    border-radius: 12px;
    padding: 1.5rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.375rem 0;
    font-size: 0.875rem;
}

.summary-row.total {
    border-top: 2px solid var(--green-600, #4F7A45);
    padding-top: 0.75rem;
    margin-top: 0.5rem;
    font-size: 1rem;
    font-weight: 700;
}

/* ── Lifecycle Timeline ────────────────────────────────────────────── */
.lifecycle-timeline {
    position: relative;
    padding-left: 2rem;
}

.lifecycle-timeline::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e5e7eb;
}

.lifecycle-stage {
    position: relative;
    padding: 0.5rem 0 1rem 1rem;
}

.lifecycle-stage::before {
    content: '';
    position: absolute;
    left: -24px;
    top: 10px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #e5e7eb;
    border: 2px solid white;
    z-index: 1;
}

.lifecycle-stage.completed::before {
    background: var(--green-600, #4F7A45);
}

.lifecycle-stage.active::before {
    background: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
}

.lifecycle-stage.failed::before {
    background: #ef4444;
}

.lifecycle-stage-label {
    font-weight: 500;
    font-size: 0.875rem;
}

.lifecycle-stage-time {
    font-size: 0.75rem;
    color: #6b7280;
}

/* ── Animal Diagram ───────────────────────────────────────────────── */
.animal-diagram-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.animal-diagram-large {
    padding: 1rem;
    background: #f9fafb;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.animal-diagram-compact {
    padding: 0.5rem;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.animal-diagram {
    max-width: 100%;
    height: auto;
}

.diagram-section {
    transition: fill 0.3s ease, stroke 0.2s ease, filter 0.2s ease;
    cursor: default;
}

.diagram-label {
    fill: #374151;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 600;
    pointer-events: none;
}

/* ── PNG + SVG Overlay Diagram (HOG) ─────────────────────────────── */
.diagram-png-container {
    position: relative;
    display: inline-block;
    width: 100%;
}

.diagram-png-base {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.diagram-svg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* ── HOG Sub-path Hover/Click Tooltip ───────────────────────────── */
.diagram-svg-overlay .diagram-section[data-cut] {
    pointer-events: all;
    cursor: pointer;
}

/* Hover highlight: outline glow + slight visual lift */
.diagram-svg-overlay .diagram-section[data-cut]:hover,
.diagram-svg-overlay .diagram-section[data-cut].diagram-section-hover {
    stroke: var(--green-600, #4F7A45);
    stroke-width: 2.5;
    filter: drop-shadow(0 0 6px rgba(22, 163, 74, 0.35));
}

/* Active (clicked/pinned) highlight: stronger green outline */
.diagram-svg-overlay .diagram-section[data-cut].diagram-section-active {
    stroke: var(--green-700, #3B5534);
    stroke-width: 3;
    filter: drop-shadow(0 0 10px rgba(22, 163, 74, 0.5));
}

/* Leader line callout elements */
.diagram-leader-line,
.diagram-leader-dot,
.diagram-pct-bg {
    transition: opacity 0.3s ease;
}

.diagram-cut-tooltip {
    position: absolute;
    background: #1e293b;
    color: #f1f5f9;
    border-radius: 12px;
    padding: 0;
    font-size: 13px;
    line-height: 1.5;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    transform: translateY(4px);
    z-index: 20;
    min-width: 200px;
    max-width: 300px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3), 0 0 0 1px rgba(255,255,255,0.06);
    white-space: normal;
    overflow: hidden;
}

.diagram-cut-tooltip.visible {
    opacity: 1;
    transform: translateY(0);
}

.diagram-cut-tooltip.pinned {
    pointer-events: auto;
}

.diagram-cut-tooltip .tooltip-header {
    background: linear-gradient(135deg, var(--green-600, #4F7A45), var(--green-700, #3B5534));
    color: white;
    padding: 8px 14px;
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-bottom: none;
    margin-bottom: 0;
}

.diagram-cut-tooltip .tooltip-body {
    padding: 8px 14px;
}

.diagram-cut-tooltip .tooltip-cut-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 4px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.diagram-cut-tooltip .tooltip-cut-row:last-child {
    border-bottom: none;
}

.diagram-cut-tooltip .tooltip-cut-name {
    color: #e2e8f0;
    font-size: 12.5px;
}

.diagram-cut-tooltip .tooltip-cut-weight {
    color: #86efac;
    font-weight: 600;
    font-size: 12.5px;
    white-space: nowrap;
}

.diagram-cut-tooltip .tooltip-total {
    display: flex;
    justify-content: space-between;
    padding: 6px 14px;
    background: rgba(255,255,255,0.05);
    border-top: 1px solid rgba(255,255,255,0.1);
    font-weight: 600;
    font-size: 12.5px;
    color: #e2e8f0;
}

.diagram-cut-tooltip .tooltip-total-weight {
    color: #22c55e;
}

/* ── Profile Grid (Step 4a) ──────────────────────────────────────── */
.profile-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.profile-card-v2 {
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
}

.profile-card-v2:hover {
    border-color: var(--green-500, #5E8E53);
    background: var(--green-100, rgba(79, 122, 69, 0.08));
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.profile-card-v2.selected {
    border-color: var(--green-600, #4F7A45);
    background: var(--green-100, rgba(79, 122, 69, 0.08));
    box-shadow: var(--shadow-glow-green, 0 0 0 3px rgba(74, 103, 65, 0.12));
}

.profile-card-v2-header {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.profile-card-v2-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--green-100, rgba(79, 122, 69, 0.08));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--green-600, #4F7A45);
    font-size: 1.125rem;
    flex-shrink: 0;
}

.profile-card-v2.selected .profile-card-v2-icon {
    background: var(--green-600, #4F7A45);
    color: white;
}

.profile-card-scratch .profile-card-v2-icon {
    background: #f3f4f6;
    color: #6b7280;
}

.profile-card-scratch:hover .profile-card-v2-icon {
    background: #e5e7eb;
}

.profile-card-v2-title {
    flex: 1;
    min-width: 0;
}

.profile-card-v2-name {
    font-weight: 600;
    font-size: 0.9375rem;
    color: #111827;
    margin: 0;
    line-height: 1.3;
}

.profile-card-v2-desc {
    font-size: 0.8125rem;
    color: #6b7280;
    margin: 0.125rem 0 0;
    line-height: 1.4;
}

.profile-card-v2-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.75rem;
    color: #6b7280;
    margin-bottom: 0.625rem;
    padding-bottom: 0.625rem;
    border-bottom: 1px solid #f3f4f6;
}

.profile-card-v2-stats span {
    display: inline-flex;
    align-items: center;
}

.profile-card-v2-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.profile-tag {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.6875rem;
    background: #f3f4f6;
    color: #4b5563;
    white-space: nowrap;
}

.profile-tag-more {
    background: #e5e7eb;
    color: #6b7280;
    font-style: italic;
}

/* ── Profile Summary Strip (Step 4a) ─────────────────────────────── */
.profile-summary-strip {
    background: var(--green-100, rgba(79, 122, 69, 0.08));
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.profile-summary-strip.hidden {
    display: none;
}

.profile-summary-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    font-size: 0.875rem;
    color: var(--green-800, #2D4528);
}

.profile-summary-inner span {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.profile-summary-inner strong {
    font-weight: 700;
    color: var(--green-700, #3B5534);
}

/* ── Customize Action Area (Step 4a) ────────────────────────────── */
.customize-action-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.25rem 0;
    margin-top: 1rem;
}

.customize-action-area.hidden {
    display: none;
}

.customize-cuts-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.5rem;
    border: 2px solid #16a34a;
    border-radius: 10px;
    background: white;
    color: var(--green-600, #4F7A45);
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.customize-cuts-btn:hover {
    background: var(--green-100, rgba(79, 122, 69, 0.08));
    border-color: #15803d;
    color: var(--green-700, #3B5534);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(22, 163, 74, 0.15);
}

.customize-cuts-btn:active {
    transform: translateY(0);
    box-shadow: none;
}

.customize-action-hint {
    font-size: 0.75rem;
    color: #9ca3af;
    text-align: center;
}

/* ── Profile Card Selection Animation ────────────────────────────── */
.profile-card-v2.selected {
    border-color: var(--green-600, #4F7A45);
    background: var(--green-100, rgba(79, 122, 69, 0.08));
    box-shadow: var(--shadow-glow-green, 0 0 0 3px rgba(74, 103, 65, 0.12));
    animation: profileSelect 0.3s ease;
}

@keyframes profileSelect {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

/* ── Profile Options Panel (Step 4a) ─────────────────────────────── */
.profile-options-panel {
    background: var(--surface-card, #fff);
    border: 1px solid var(--border-warm, #e5e7eb);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    transition: all 0.3s ease;
}

.profile-options-panel.hidden {
    display: none;
}

.profile-options-panel-title {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-secondary, #6b7280);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 0.125rem;
}

.profile-option-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.profile-option-row .option-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--green-100, rgba(79, 122, 69, 0.08));
    color: var(--green-600, #4F7A45);
    font-size: 0.75rem;
    flex-shrink: 0;
}

.profile-option-row .option-label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-primary, #374151);
    white-space: nowrap;
}

.profile-option-row select {
    font-size: 0.8125rem;
    padding: 0.375rem 0.625rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: white;
    color: #374151;
    cursor: pointer;
    flex: 1;
    min-width: 0;
    max-width: 280px;
}

.profile-option-row select:focus {
    outline: none;
    border-color: var(--green-600, #4F7A45);
    box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.1);
}

.profile-custom-fee-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.profile-custom-fee-row label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: var(--text-primary, #374151);
    cursor: pointer;
    flex: 1;
    min-width: 0;
}

.profile-custom-fee-row .fee-amount {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-secondary, #6b7280);
    flex-shrink: 0;
}

.profile-option-divider {
    height: 1px;
    background: var(--border-warm, #e5e7eb);
    margin: 0.125rem 0;
}

@media (max-width: 640px) {
    .profile-options-panel {
        padding: 0.875rem 1rem;
    }
    .profile-option-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.375rem;
    }
    .profile-option-row select {
        max-width: 100%;
        width: 100%;
    }
}

/* ── Step 4b Header ──────────────────────────────────────────────── */
.step4b-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.active-profile-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.375rem 0.75rem;
    background: var(--green-100, rgba(79, 122, 69, 0.08));
    border: 1px solid #bbf7d0;
    border-radius: 9999px;
    font-size: 0.8125rem;
}

.active-profile-pill-label {
    color: var(--green-600, #4F7A45);
    font-weight: 600;
}

.active-profile-pill-link {
    color: #6b7280;
    text-decoration: underline;
    font-size: 0.75rem;
    cursor: pointer;
}

.active-profile-pill-link:hover {
    color: #111827;
}

/* ── Yield Bar (Full-Width in 4b) ────────────────────────────────── */
.yield-bar-full {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1rem;
}

.yield-bar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.yield-bar-label {
    font-weight: 600;
    font-size: 0.875rem;
    color: #111827;
}

.yield-bar-value {
    font-size: 0.8125rem;
    color: #6b7280;
}

.yield-bar-note {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-top: 0.375rem;
}

.yield-bar-error {
    font-size: 0.75rem;
    color: #dc2626;
    font-weight: 600;
    margin-top: 0.375rem;
}

/* ── Section Cards (Step 4b) ─────────────────────────────────────── */
.cut-sections-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.section-card {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    background: white;
}

.section-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1rem;
    background: #f9fafb;
    cursor: pointer;
    transition: background 0.2s;
    user-select: none;
}

.section-card-header:hover {
    background: #f3f4f6;
}

.section-card-header-left {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.section-card-name {
    font-weight: 600;
    font-size: 0.9375rem;
    color: #111827;
}

.section-card-stats {
    font-size: 0.75rem;
    color: #6b7280;
}

.section-card-chevron {
    font-size: 0.75rem;
    color: #9ca3af;
    transition: transform 0.2s ease;
}

.section-card.collapsed .section-card-chevron {
    transform: rotate(-90deg);
}

.section-card-body {
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.section-card.collapsed .section-card-body {
    display: none;
}

/* Quarter-type unavailable sections — grayed out, interactions disabled */
.section-card.section-unavailable {
    opacity: 0.45;
    pointer-events: none;
    border-color: #d1d5db;
}
.section-card.section-unavailable .section-card-header {
    pointer-events: auto;
    cursor: default;
}

/* ── Toggle Cards (Individual Cuts) ──────────────────────────────── */
.toggle-card {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.toggle-card-on {
    background: white;
    border-color: var(--green-500, #5E8E53);
}

.toggle-card-off {
    background: #fafafa;
    border-color: #f3f4f6;
    opacity: 0.7;
}

.toggle-card-off:hover {
    opacity: 0.85;
}

.toggle-card-main {
    display: flex;
    align-items: center;
    padding: 0.625rem 0.75rem;
    gap: 0.75rem;
}

.toggle-card-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.toggle-card-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: #111827;
}

.toggle-card-off .toggle-card-name {
    color: #6b7280;
}

.toggle-card-desc {
    font-size: 0.6875rem;
    color: #9ca3af;
    line-height: 1.3;
}

.toggle-card-weight {
    font-size: 0.8125rem;
    color: #6b7280;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ── Toggle Pill ─────────────────────────────────────────────────── */
.toggle-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    border: none;
    cursor: pointer;
    transition: all 0.15s ease;
    background: #e5e7eb;
    color: #6b7280;
    flex-shrink: 0;
}

.toggle-pill:hover {
    background: #d1d5db;
}

.toggle-pill-on {
    background: var(--green-600, #4F7A45);
    color: white;
}

.toggle-pill-on:hover {
    background: var(--green-700, #3B5534);
}

/* ── Toggle Card Options Row ─────────────────────────────────────── */
.toggle-card-options {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 0.75rem 0.625rem;
    border-top: 1px solid #f3f4f6;
    background: #fafafa;
    flex-wrap: wrap;
    animation: slideDown 0.15s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 100px;
    }
}

.toggle-option {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.toggle-option-label {
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 500;
}

.toggle-option-select {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: white;
    color: #374151;
}

.bone-in-toggle {
    display: inline-flex;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #d1d5db;
}

.bone-in-btn {
    padding: 0.1875rem 0.5rem;
    font-size: 0.6875rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    background: white;
    color: #6b7280;
    transition: all 0.15s ease;
}

.bone-in-btn:first-child {
    border-right: 1px solid #d1d5db;
}

.bone-in-btn-active {
    background: var(--green-600, #4F7A45);
    color: white;
}

/* ── Per-Cut Fee Badge (Toggle Card) ─────────────────────────────── */
.toggle-card-metrics {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.125rem;
    flex-shrink: 0;
}

.toggle-card-fee {
    font-size: 0.6875rem;
    font-weight: 600;
    color: #d97706;
    white-space: nowrap;
}

.toggle-card-off .toggle-card-fee {
    display: none;
}

/* ── Step 5 Fee Breakdown (Collapsed) ─────────────────────────────── */
.step5-fee-section {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 12px;
    overflow: hidden;
}

.step5-fee-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1rem 0.25rem;
}

.step5-fee-header-left {
    display: flex;
    align-items: center;
    font-size: 0.9375rem;
    color: #111827;
}

.step5-fee-total {
    font-size: 1rem;
    font-weight: 700;
    color: #92400e;
}

.step5-fee-details {
    padding: 0 1rem 0.75rem;
}

.step5-fee-summary {
    font-size: 0.75rem;
    color: #92400e;
    cursor: pointer;
    font-weight: 500;
    padding: 0.375rem 0;
    user-select: none;
}

.step5-fee-summary:hover {
    color: #78350f;
    text-decoration: underline;
}

.step5-fee-body {
    padding-top: 0.5rem;
}

.step5-fee-body .fee-breakdown-row {
    font-size: 0.8125rem;
}

.fee-section-divider {
    height: 1px;
    background: #fde68a;
    margin: 0.5rem 0;
}

.fee-section-label span {
    font-size: 0.75rem;
    font-weight: 600;
    color: #92400e;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.fee-section-subtotal {
    color: #6b7280;
}

/* ── Sticky Bottom Bar ───────────────────────────────────────────── */
.sticky-bottom-bar {
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 20;
    background: white;
    border-top: 1px solid #e5e7eb;
    padding: 0.75rem 0;
    margin-top: 1rem;
}

.sticky-bar-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.sticky-bar-total {
    font-size: 0.875rem;
    font-weight: 600;
    color: #111827;
}

.sticky-bar-divider {
    width: 1px;
    height: 16px;
    background: #d1d5db;
    flex-shrink: 0;
}

.sticky-bar-fee {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #d97706;
    white-space: nowrap;
}

.sticky-bar-over .sticky-bar-total {
    color: #dc2626;
}

/* ── Bone-In Guidance ─────────────────────────────────────────────── */
.bone-in-guidance {
    display: block;
    font-size: 0.6875rem;
    color: #92400e;
    margin-top: 0.25rem;
    line-height: 1.3;
}

.bone-in-guidance i {
    font-size: 0.625rem;
    margin-right: 0.125rem;
    color: #b45309;
}

/* ── Unallocated Destination Selector ─────────────────────────────── */
.yield-bar-unallocated {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.375rem;
    flex-wrap: wrap;
}

.yield-bar-note-text {
    font-size: 0.75rem;
    color: #9ca3af;
    white-space: nowrap;
}

.unallocated-dest-select {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: white;
    color: #374151;
    cursor: pointer;
}

.unallocated-dest-select:focus {
    outline: none;
    border-color: var(--green-600, #4F7A45);
    box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.1);
}

/* ── Responsive ────────────────────────────────────────────────────── */
@media (max-width: 640px) {
    .wizard-step-label {
        font-size: 0.625rem;
        max-width: 60px;
    }

    .wizard-step-circle {
        width: 32px;
        height: 32px;
        font-size: 0.75rem;
    }

    .portion-card {
        padding: 1rem;
    }

    .cut-item-options {
        flex-direction: column;
        gap: 0.25rem;
    }

    .profile-grid {
        grid-template-columns: 1fr;
    }

    .step4b-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .profile-summary-inner {
        flex-direction: column;
        gap: 0.375rem;
    }

    .customize-cuts-btn {
        width: 100%;
    }

    .toggle-card-options {
        gap: 0.5rem;
    }

    .toggle-card-main {
        gap: 0.5rem;
        padding: 0.5rem;
    }

    .sticky-bottom-bar {
        padding: 0.5rem 0;
    }

    .sticky-bar-inner {
        gap: 0.5rem;
    }

    .sticky-bar-total {
        font-size: 0.8125rem;
    }

    .sticky-bar-fee {
        font-size: 0.75rem;
    }

    .step5-fee-header {
        flex-wrap: wrap;
        gap: 0.25rem;
    }
}
