/* ==========================================================================
   WORKSHOP (EXTRACTEURS & LOCATION) STYLES
   ========================================================================== */

/* --- Hero Banner & Construction Notice --- */
.workshop-hero {
    background: linear-gradient(135deg, rgba(224, 122, 56, 0.08) 0%, rgba(18, 20, 26, 0.95) 100%);
    border: 1px solid rgba(224, 122, 56, 0.25);
    border-radius: var(--radius-md, 8px);
    padding: 24px 28px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.workshop-hero::after {
    content: '';
    position: absolute;
    right: -30px;
    top: -30px;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(224, 122, 56, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.workshop-hero-title {
    font-family: var(--font-display, 'Oswald', sans-serif);
    font-size: 26px;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--text-bright, #fff);
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.workshop-hero-desc {
    color: var(--text-dim, #8b949e);
    font-size: 14px;
    line-height: 1.6;
    max-width: 780px;
    margin: 0 0 16px 0;
}

/* Coming Soon Banner */
.workshop-lock-notice {
    background: rgba(234, 179, 8, 0.08);
    border: 1px solid rgba(234, 179, 8, 0.3);
    border-radius: var(--radius-sm, 6px);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 14px;
}

.workshop-lock-notice .lock-icon-wrap {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(234, 179, 8, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pollen-yellow, #eab308);
    flex-shrink: 0;
}

.workshop-lock-notice-content h4 {
    margin: 0 0 2px 0;
    font-size: 14px;
    color: var(--text-bright, #fff);
}

.workshop-lock-notice-content p {
    margin: 0;
    font-size: 12px;
    color: var(--text-dim, #8b949e);
    line-height: 1.4;
}

/* Tester Active Banner (pigmentiatst) */
.workshop-tester-notice {
    background: rgba(60, 208, 112, 0.12);
    border: 1px solid rgba(60, 208, 112, 0.4);
    border-radius: var(--radius-sm, 6px);
    padding: 12px 16px;
    display: none; /* revealed via JS when pigmentiatst is connected */
    align-items: center;
    gap: 14px;
    margin-top: 14px;
}

.workshop-tester-notice .tester-icon-wrap {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(60, 208, 112, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--green, #3cd070);
    flex-shrink: 0;
}

.workshop-tester-notice-content h4 {
    margin: 0 0 2px 0;
    font-size: 14px;
    color: var(--green, #3cd070);
    font-weight: 600;
}

.workshop-tester-notice-content p {
    margin: 0;
    font-size: 12px;
    color: var(--text-bright, #fff);
    line-height: 1.4;
}

/* --- Navigation Tabs --- */
.workshop-tabs {
    display: flex;
    gap: 8px;
    border-bottom: 1px solid var(--border, #242936);
    margin-bottom: 24px;
}

.workshop-tab-btn {
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 12px 20px;
    color: var(--text-dim, #8b949e);
    font-family: var(--font-display, 'Oswald', sans-serif);
    font-size: 15px;
    letter-spacing: .04em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all .2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.workshop-tab-btn:hover {
    color: var(--text-bright, #fff);
}

.workshop-tab-btn.active {
    color: var(--primary, #e07a38);
    border-bottom-color: var(--primary, #e07a38);
}

.workshop-tab-count {
    background: var(--surface-2, #1a1d26);
    padding: 2px 7px;
    border-radius: 10px;
    font-size: 11px;
    font-family: var(--font-mono, monospace);
    color: var(--text-dim, #8b949e);
}

.workshop-tab-btn.active .workshop-tab-count {
    background: rgba(224, 122, 56, 0.2);
    color: var(--primary, #e07a38);
}

/* --- Tab Panels --- */
.workshop-panel {
    display: none;
}

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

/* --- Stats Sub-Bar --- */
.workshop-stats-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: var(--surface, #12141a);
    border: 1px solid var(--border, #242936);
    border-radius: var(--radius-sm, 6px);
    padding: 14px 20px;
    margin-bottom: 24px;
}

.workshop-stat-items {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 24px;
}

.workshop-stat-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.workshop-stat-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text-dim, #8b949e);
}

.workshop-stat-value {
    font-family: var(--font-mono, monospace);
    font-size: 16px;
    font-weight: 600;
    color: var(--text-bright, #fff);
}

/* --- Extractor Grid & Cards --- */
.extractors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.extractor-card {
    background: var(--surface, #12141a);
    border: 1px solid var(--border, #242936);
    border-radius: var(--radius-md, 8px);
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: relative;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.extractor-card:hover {
    border-color: rgba(224, 122, 56, 0.4);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

/* Tier Badges */
.tier-badge {
    padding: 3px 8px;
    border-radius: var(--radius-sm, 4px);
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    width: fit-content;
}

.tier-ordinaire {
    background: rgba(139, 148, 158, 0.15);
    border: 1px solid rgba(139, 148, 158, 0.3);
    color: #c9d1d9;
}

.tier-avance {
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.4);
    color: #38bdf8;
}

.tier-hitech {
    background: rgba(168, 85, 247, 0.15);
    border: 1px solid rgba(168, 85, 247, 0.4);
    color: #c084fc;
}

/* Card Header */
.extractor-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.extractor-title-wrap h3 {
    margin: 4px 0 2px 0;
    font-size: 16px;
    font-family: var(--font-display, 'Oswald', sans-serif);
    letter-spacing: .03em;
    color: var(--text-bright, #fff);
}

.extractor-id {
    font-size: 11px;
    font-family: var(--font-mono, monospace);
    color: var(--text-dim, #8b949e);
}

/* Status Pill */
.extractor-status-pill {
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-family: var(--font-mono, monospace);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.status-idle {
    background: rgba(60, 208, 112, 0.15);
    border: 1px solid rgba(60, 208, 112, 0.3);
    color: var(--green, #3cd070);
}

.status-extracting {
    background: rgba(224, 122, 56, 0.15);
    border: 1px solid rgba(224, 122, 56, 0.4);
    color: var(--primary, #e07a38);
}

.status-rented {
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.4);
    color: #38bdf8;
}

.status-listed {
    background: rgba(234, 179, 8, 0.15);
    border: 1px solid rgba(234, 179, 8, 0.3);
    color: var(--pollen-yellow, #eab308);
}

/* Wear / Usage Gauge */
.usage-gauge-wrap {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.usage-gauge-header {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-dim, #8b949e);
}

.usage-bar-bg {
    width: 100%;
    height: 6px;
    background: var(--surface-2, #1a1d26);
    border-radius: 3px;
    overflow: hidden;
}

.usage-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary, #e07a38), #f59e0b);
    border-radius: 3px;
    transition: width .3s ease;
}

/* Flower Slot Container */
.flower-slot {
    background: var(--surface-2, #1a1d26);
    border: 1px dashed var(--border, #242936);
    border-radius: var(--radius-sm, 6px);
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 70px;
}

.flower-slot.occupied {
    border-style: solid;
    border-color: rgba(60, 208, 112, 0.3);
    background: rgba(60, 208, 112, 0.04);
}

.flower-slot-empty {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.flower-thumb {
    width: 46px;
    height: 46px;
    border-radius: var(--radius-sm, 4px);
    background: #0d1117;
    object-fit: cover;
    border: 1px solid var(--border, #242936);
    flex-shrink: 0;
}

.flower-info-text h4 {
    margin: 0 0 2px 0;
    font-size: 13px;
    color: var(--text-bright, #fff);
}

.flower-pollen-chips {
    display: flex;
    gap: 6px;
    font-size: 10px;
    font-family: var(--font-mono, monospace);
}

.pollen-chip-r { color: var(--pollen-red, #f43f5e); }
.pollen-chip-b { color: var(--pollen-blue, #38bdf8); }
.pollen-chip-y { color: var(--pollen-yellow, #eab308); }

/* Progress Timer */
.extraction-progress-wrap {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 4px;
}

.extraction-time-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    font-family: var(--font-mono, monospace);
}

.extraction-bar-bg {
    width: 100%;
    height: 8px;
    background: var(--surface-2, #1a1d26);
    border-radius: 4px;
    overflow: hidden;
}

.extraction-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #3cd070, #22c55e);
    border-radius: 4px;
    transition: width .5s linear;
}

/* Card Actions */
.extractor-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
}

.extractor-actions button,
.extractor-actions a {
    flex: 1;
    text-align: center;
}

/* --- Location Workshop (Rental Market) --- */
.market-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: var(--surface, #12141a);
    border: 1px solid var(--border, #242936);
    border-radius: var(--radius-sm, 6px);
    padding: 12px 18px;
    margin-bottom: 20px;
}

.market-live-avg {
    display: flex;
    align-items: center;
    gap: 10px;
}

.market-avg-badge {
    background: rgba(224, 122, 56, 0.15);
    border: 1px solid rgba(224, 122, 56, 0.35);
    color: var(--primary, #e07a38);
    font-family: var(--font-mono, monospace);
    font-weight: 700;
    font-size: 14px;
    padding: 4px 10px;
    border-radius: var(--radius-sm, 4px);
}

.market-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.market-select {
    background: var(--surface-2, #1a1d26);
    border: 1px solid var(--border, #242936);
    color: var(--text-bright, #fff);
    padding: 6px 12px;
    border-radius: var(--radius-sm, 4px);
    font-size: 13px;
    cursor: pointer;
}

/* Market Dynamic Color Badges (Vert / Jaune / Rouge) */
.price-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: var(--radius-sm, 4px);
    font-family: var(--font-mono, monospace);
    font-size: 13px;
    font-weight: 700;
}

/* < 80% Live Average */
.price-tag-green {
    background: rgba(60, 208, 112, 0.15);
    border: 1px solid rgba(60, 208, 112, 0.5);
    color: var(--green, #3cd070);
    box-shadow: 0 0 8px rgba(60, 208, 112, 0.15);
}

/* 80% - 120% Live Average */
.price-tag-yellow {
    background: rgba(234, 179, 8, 0.15);
    border: 1px solid rgba(234, 179, 8, 0.5);
    color: var(--pollen-yellow, #eab308);
}

/* > 120% Live Average */
.price-tag-red {
    background: rgba(244, 63, 94, 0.15);
    border: 1px solid rgba(244, 63, 94, 0.5);
    color: var(--pollen-red, #f43f5e);
}

/* Rental Card Meta Grid */
.rental-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 12px;
    background: var(--surface-2, #1a1d26);
    border-radius: var(--radius-sm, 6px);
    padding: 10px 14px;
    font-size: 12px;
}

.rental-meta-label {
    color: var(--text-dim, #8b949e);
}

.rental-meta-val {
    font-family: var(--font-mono, monospace);
    color: var(--text-bright, #fff);
    text-align: right;
    font-weight: 600;
}

/* ==========================================================================
   WORKSHOP BUTTON SYSTEM (.btn, .primary, .secondary, .ghost, states)
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-body, 'Inter', -apple-system, BlinkMacSystemFont, sans-serif);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.25;
    padding: 8px 16px;
    border-radius: var(--radius-sm, 6px);
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    user-select: none;
    white-space: nowrap;
    transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
    outline: none;
}

.btn:focus-visible {
    outline: 2px solid var(--primary, #e07a38);
    outline-offset: 2px;
}

/* Primary Button: Bio-Luminescent Copper Glow */
.btn.primary,
.btn-primary {
    background: linear-gradient(135deg, #e07a38 0%, #c96525 100%);
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 2px 10px rgba(224, 122, 56, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.btn.primary:hover:not(:disabled):not(.btn-locked),
.btn-primary:hover:not(:disabled):not(.btn-locked) {
    background: linear-gradient(135deg, #ea8543 0%, #d8702b 100%);
    border-color: rgba(255, 255, 255, 0.45);
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(224, 122, 56, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn.primary:active:not(:disabled):not(.btn-locked),
.btn-primary:active:not(:disabled):not(.btn-locked) {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(224, 122, 56, 0.35);
}

/* Secondary Button: Subtle Copper Tint Surface with Glowing Accent */
.btn.secondary,
.btn-secondary {
    background: rgba(224, 122, 56, 0.12);
    color: var(--primary, #e07a38) !important;
    border: 1px solid rgba(224, 122, 56, 0.45);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 2px 6px rgba(0, 0, 0, 0.25);
}

.btn.secondary:hover:not(:disabled):not(.btn-locked),
.btn-secondary:hover:not(:disabled):not(.btn-locked) {
    background: rgba(224, 122, 56, 0.22);
    border-color: rgba(224, 122, 56, 0.8);
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 3px 12px rgba(224, 122, 56, 0.3);
}

.btn.secondary:active:not(:disabled):not(.btn-locked),
.btn-secondary:active:not(:disabled):not(.btn-locked) {
    transform: translateY(0);
}

/* Ghost Button: Semi-transparent Slate Glass with Clean Border */
.btn.ghost,
.btn-ghost {
    background: rgba(255, 255, 255, 0.05);
    color: #d1d5db !important;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.btn.ghost:hover:not(:disabled):not(.btn-locked),
.btn-ghost:hover:not(:disabled):not(.btn-locked) {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
    color: #ffffff !important;
    transform: translateY(-1px);
}

.btn.ghost:active:not(:disabled):not(.btn-locked),
.btn-ghost:active:not(:disabled):not(.btn-locked) {
    transform: translateY(0);
}

/* Cooldown Button (Active 6h timer) */
.btn-cooldown {
    background: rgba(234, 179, 8, 0.08) !important;
    color: var(--pollen-yellow, #eab308) !important;
    border: 1px solid rgba(234, 179, 8, 0.35) !important;
    cursor: not-allowed !important;
    font-family: var(--font-mono, monospace);
    opacity: 0.9 !important;
}

/* Disabled & Cooldown States */
.btn:disabled,
.btn[disabled] {
    opacity: 0.45 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
    box-shadow: none !important;
    transform: none !important;
    filter: grayscale(0.4);
}

/* Button Sizing */
.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.btn-md {
    padding: 8px 16px;
    font-size: 13px;
}

.btn-lg {
    padding: 11px 22px;
    font-size: 14px;
}

/* Specific Buttons */
#btn-header-stake-extractor {
    box-shadow: 0 2px 10px rgba(224, 122, 56, 0.4);
    font-size: 13px;
    font-weight: 600;
}

.btn-insert-flower {
    box-shadow: 0 2px 8px rgba(224, 122, 56, 0.35);
}

.workshop-modal-footer .btn {
    min-width: 90px;
    padding: 9px 18px;
    font-size: 13px;
}

/* --- Blocked / Locked Actions State --- */
.btn-locked {
    opacity: 0.88 !important;
    cursor: not-allowed !important;
    position: relative;
    background: rgba(26, 29, 38, 0.95) !important;
    color: #e2e8f0 !important;
    border: 1px dashed rgba(224, 122, 56, 0.55) !important;
    pointer-events: auto !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.btn-locked:hover {
    border-color: var(--primary, #e07a38) !important;
    color: #ffffff !important;
    background: rgba(35, 40, 52, 0.98) !important;
}

.btn-locked:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%);
    background: #0d1117;
    border: 1px solid var(--border, #242936);
    color: #fff;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 11px;
    white-space: nowrap;
    z-index: 100;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

/* --- Modals --- */
.workshop-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 16px;
}

.workshop-modal-backdrop.open {
    display: flex;
}

.workshop-modal-dialog {
    background: var(--surface, #12141a);
    border: 1px solid var(--border, #242936);
    border-radius: var(--radius-md, 8px);
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
}

.workshop-modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border, #242936);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.workshop-modal-header h3 {
    margin: 0;
    font-family: var(--font-display, 'Oswald', sans-serif);
    font-size: 18px;
    color: var(--text-bright, #fff);
    display: flex;
    align-items: center;
    gap: 8px;
}

.workshop-modal-close {
    background: transparent;
    border: none;
    color: var(--text-dim, #8b949e);
    font-size: 20px;
    cursor: pointer;
    line-height: 1;
}

.workshop-modal-body {
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.workshop-modal-footer {
    padding: 14px 20px;
    border-top: 1px solid var(--border, #242936);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    background: var(--surface-2, #1a1d26);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--text-dim, #8b949e);
}

.form-group input,
.form-group select {
    background: var(--surface-2, #1a1d26);
    border: 1px solid var(--border, #242936);
    border-radius: var(--radius-sm, 4px);
    padding: 8px 12px;
    color: #fff;
    font-family: var(--font-mono, monospace);
    font-size: 14px;
}

.form-help-text {
    font-size: 11px;
    color: var(--text-dim, #8b949e);
    line-height: 1.4;
}

/* Flower picker grid in modal */
.modal-flower-picker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 10px;
    max-height: 280px;
    overflow-y: auto;
    padding-right: 4px;
}

.picker-flower-card {
    background: var(--surface-2, #1a1d26);
    border: 1px solid var(--border, #242936);
    border-radius: var(--radius-sm, 4px);
    padding: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all .15s ease;
}

.picker-flower-card:hover {
    border-color: var(--primary, #e07a38);
}

.picker-flower-card.selected {
    border-color: var(--green, #3cd070);
    background: rgba(60, 208, 112, 0.08);
}

.picker-flower-img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
}

.picker-flower-name {
    font-size: 11px;
    text-align: center;
    color: var(--text-bright, #fff);
    font-weight: 600;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.picker-flower-time {
    font-size: 10px;
    color: var(--text-dim, #8b949e);
    font-family: var(--font-mono, monospace);
}

.workshop-picker-item {
    background: var(--surface-2, #1a1d26);
    border: 1px solid var(--border, #242936);
    border-radius: var(--radius-sm, 4px);
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all .15s ease;
}

.workshop-picker-item:hover {
    border-color: var(--primary, #e07a38);
    background: rgba(224, 122, 56, 0.05);
}

.workshop-picker-item.selected {
    border-color: var(--green, #3cd070);
    background: rgba(60, 208, 112, 0.1);
}

.workshop-picker-thumb {
    width: 42px;
    height: 42px;
    border-radius: 4px;
    object-fit: cover;
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

/* --- Extractor Progression & Level Bar --- */
.tier-rustic {
    background: rgba(217, 119, 6, 0.15);
    border: 1px solid rgba(217, 119, 6, 0.4);
    color: #f59e0b;
}

.tier-industrial {
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.4);
    color: #38bdf8;
}

.tier-precision {
    background: rgba(168, 85, 247, 0.15);
    border: 1px solid rgba(168, 85, 247, 0.4);
    color: #c084fc;
}

.tier-quantum {
    background: rgba(236, 72, 153, 0.15);
    border: 1px solid rgba(236, 72, 153, 0.4);
    color: #f472b6;
}

.level-gauge-wrap {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.level-gauge-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: var(--text-dim);
}

.level-bar-bg {
    background: rgba(255, 255, 255, 0.06);
    height: 6px;
    border-radius: 3px;
    overflow: hidden;
}

.level-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #e07a38 0%, #f59e0b 100%);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.extractor-stats-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 11px;
    margin-top: 2px;
}

.stat-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 4px;
    font-family: var(--font-mono, monospace);
    font-weight: 500;
}

.stat-chip-speed {
    background: rgba(224, 122, 56, 0.12);
    border: 1px solid rgba(224, 122, 56, 0.3);
    color: var(--primary, #e07a38);
}

.stat-chip-yield {
    background: rgba(60, 208, 112, 0.12);
    border: 1px solid rgba(60, 208, 112, 0.3);
    color: var(--green, #3cd070);
}

/* Durability Warning */
.durability-warning {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--pollen-red, #ef4444);
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 4px;
    padding: 4px 8px;
    animation: pulseWarning 2s infinite ease-in-out;
}

@keyframes pulseWarning {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Golden Evolve Button */
.btn-evolve-gold {
    background: linear-gradient(135deg, #d97706 0%, #f59e0b 50%, #fbbf24 100%) !important;
    color: #1a1500 !important;
    font-weight: 700 !important;
    border: 1px solid #fbbf24 !important;
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.4) !important;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.btn-evolve-gold:hover {
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.7) !important;
    transform: translateY(-1px);
}

/* Pollen Color Selector in Upgrade Modal */
.pollen-select-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 6px;
    cursor: pointer;
    border: 1px solid var(--border, #242936);
    border-radius: 6px;
    background: var(--surface-2, #1a1d26);
    transition: all 0.2s ease;
}

.pollen-select-btn:hover {
    border-color: var(--primary, #e07a38);
    background: rgba(224, 122, 56, 0.08);
}

.pollen-select-btn.active {
    border-color: var(--primary, #e07a38);
    background: rgba(224, 122, 56, 0.16);
    box-shadow: 0 0 8px rgba(224, 122, 56, 0.3);
}

.pollen-select-btn .pollen-bal-sub {
    font-family: var(--font-mono, monospace);
}

/* Repair Preset Buttons */
.repair-preset-btn {
    border: 1px solid var(--border, #242936);
    border-radius: 4px;
    background: var(--surface-2, #1a1d26);
    color: var(--text-bright, #fff);
    cursor: pointer;
    transition: all 0.15s ease;
}

.repair-preset-btn:hover {
    border-color: var(--primary, #e07a38);
}

.repair-preset-btn.active {
    border-color: var(--primary, #e07a38);
    background: rgba(224, 122, 56, 0.16);
    color: var(--primary, #e07a38);
    font-weight: 600;
}

/* ==========================================================================
   WORKSHOP TOOLBAR & GLOBAL ACTION BUTTONS
   ========================================================================== */
.workshop-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin: 18px 0 14px 0;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--radius-md, 8px);
}

.workshop-toolbar-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.workshop-toolbar-title {
    margin: 0;
    font-size: 1.05rem;
    font-family: var(--font-display, 'Oswald', sans-serif);
    color: var(--text-bright, #fff);
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.workshop-toolbar-badge {
    font-size: 0.78rem;
    font-weight: 600;
    font-family: var(--font-mono, monospace);
    color: var(--text-dim, #8b949e);
    background: rgba(255, 255, 255, 0.06);
    padding: 2.5px 8px;
    border-radius: 4px;
}

.workshop-toolbar-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.workshop-global-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 13px;
    border-radius: var(--radius-sm, 4px);
    font-family: var(--font-display, 'Oswald', sans-serif);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-dim, #8b949e);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
}

.workshop-global-btn:active:not(:disabled) {
    transform: translateY(0);
}

.workshop-global-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.07);
    color: rgba(255, 255, 255, 0.35);
    box-shadow: none;
    transform: none;
}

.workshop-global-btn.btn-dimmed {
    opacity: 0.55;
    background: rgba(255, 255, 255, 0.03) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    color: var(--text-dim, #8b949e) !important;
    box-shadow: none !important;
}
.workshop-global-btn.btn-dimmed:hover {
    opacity: 0.9;
    border-color: rgba(255, 255, 255, 0.25) !important;
}

/* Batch Insert Active */
.workshop-global-btn.fill-all-btn:not(:disabled) {
    background: linear-gradient(180deg, rgba(60, 208, 112, 0.18) 0%, rgba(34, 197, 94, 0.25) 100%);
    border-color: rgba(74, 222, 128, 0.5);
    color: #86efac;
    box-shadow: 0 4px 14px rgba(34, 197, 94, 0.15);
}
.workshop-global-btn.fill-all-btn:hover:not(:disabled) {
    background: linear-gradient(180deg, rgba(60, 208, 112, 0.28) 0%, rgba(34, 197, 94, 0.35) 100%);
    border-color: rgba(74, 222, 128, 0.8);
    transform: translateY(-1px);
}

/* Claim All Active */
.workshop-global-btn.claim-all-btn:not(:disabled) {
    background: linear-gradient(180deg, rgba(224, 122, 56, 0.22) 0%, rgba(202, 90, 20, 0.32) 100%);
    border-color: rgba(249, 115, 22, 0.6);
    color: #ffedd5;
    box-shadow: 0 4px 14px rgba(224, 122, 56, 0.25);
}
.workshop-global-btn.claim-all-btn:hover:not(:disabled) {
    background: linear-gradient(180deg, rgba(224, 122, 56, 0.32) 0%, rgba(202, 90, 20, 0.45) 100%);
    border-color: rgba(249, 115, 22, 0.9);
    transform: translateY(-1px);
}

/* Repair All Active */
.workshop-global-btn.repair-all-btn:not(:disabled) {
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.18) 0%, rgba(37, 99, 235, 0.25) 100%);
    border-color: rgba(96, 165, 250, 0.5);
    color: #bfdbfe;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.15);
}
.workshop-global-btn.repair-all-btn:hover:not(:disabled) {
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.28) 0%, rgba(37, 99, 235, 0.35) 100%);
    border-color: rgba(96, 165, 250, 0.8);
    transform: translateY(-1px);
}

/* Accelerate All Active */
.workshop-global-btn.accelerate-all-btn:not(:disabled) {
    background: linear-gradient(180deg, rgba(245, 158, 11, 0.2) 0%, rgba(217, 119, 6, 0.28) 100%);
    border-color: rgba(251, 191, 36, 0.6);
    color: #fef3c7;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.2);
}
.workshop-global-btn.accelerate-all-btn:hover:not(:disabled) {
    background: linear-gradient(180deg, rgba(245, 158, 11, 0.3) 0%, rgba(217, 119, 6, 0.4) 100%);
    border-color: rgba(251, 191, 36, 0.9);
    transform: translateY(-1px);
}

.workshop-toolbar-cost {
    font-size: 11px;
    font-weight: 500;
    opacity: 0.85;
    font-family: var(--font-mono, monospace);
    margin-left: 3px;
}

/* Batch Pairing Row Styles */
.batch-pairing-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: var(--surface-2, #1a1d26);
    border: 1px solid var(--border, #242936);
    border-radius: 6px;
    padding: 10px 14px;
    transition: border-color 0.2s ease;
}

.batch-pairing-row.assigned {
    border-color: rgba(60, 208, 112, 0.4);
    background: rgba(60, 208, 112, 0.04);
}

.batch-pairing-ext-info {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 180px;
}

.batch-pairing-flw-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    justify-content: flex-end;
}

.batch-pairing-flw-card {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 4px 8px;
    max-width: 260px;
}

@media (max-width: 768px) {
    .workshop-toolbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .workshop-toolbar-actions {
        width: 100%;
        justify-content: flex-start;
    }
    .batch-pairing-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .batch-pairing-flw-info {
        width: 100%;
        justify-content: flex-start;
    }
}



