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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background:
        linear-gradient(rgba(5, 5, 15, 0.7), rgba(10, 10, 30, 0.7)),
        url('background.png') repeat;
    min-height: 100vh;
    color: #e0e0ff;
}

.container {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    gap: 20px;
    min-height: 100vh;
}

.left-column {
    flex: 1;
    max-width: 50%;
}

.right-column {
    flex: 1;
    max-width: 50%;
    position: sticky;
    top: 20px;
    height: fit-content;
}

header {
    text-align: center;
    padding: 20px 0;
}

h1 {
    font-size: 2em;
    color: #8af;
    text-shadow: 0 0 20px rgba(136, 170, 255, 0.5);
}

.subtitle {
    color: #88a;
    margin-top: 5px;
}

/* Collapsible Panels */
.panel {
    background: rgba(30, 30, 60, 0.6);
    border-radius: 15px;
    border: 1px solid #334;
    margin-bottom: 15px;
    overflow: hidden;
}

.panel-header {
    padding: 15px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    transition: background 0.2s;
}

.panel-header:hover {
    background: rgba(50, 50, 80, 0.4);
}

.panel-header h2 {
    margin: 0;
    font-size: 1.1em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.panel-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #5a5;
    box-shadow: 0 0 8px #5a5;
    display: none;
}

.panel.has-available .panel-indicator {
    display: inline-block;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 8px #5a5; }
    50% { opacity: 0.6; box-shadow: 0 0 15px #5a5; }
}

.panel-toggle {
    font-size: 0.8em;
    color: #889;
    transition: transform 0.3s;
}

.panel.collapsed .panel-toggle {
    transform: rotate(-90deg);
}

.panel-content {
    padding: 0 20px 20px;
}

/* Panel Filter Toggle */
.panel-filter {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    padding: 8px 12px;
    background: rgba(20, 20, 40, 0.5);
    border-radius: 8px;
    font-size: 0.85em;
}

.panel-filter label {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    color: #99a;
    transition: color 0.2s;
}

.panel-filter label:hover {
    color: #ccf;
}

.panel-filter input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border: 2px solid #556;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    position: relative;
    transition: border-color 0.2s;
}

.panel-filter input[type="radio"]:checked {
    border-color: #7af;
}

.panel-filter input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #7af;
}

.panel-filter input[type="radio"]:checked + span {
    color: #ccf;
}

/* Buy Amount Bar */
.buy-amount-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    padding: 8px 12px;
    background: rgba(20, 20, 40, 0.5);
    border-radius: 8px;
}

.buy-amount-label {
    color: #99a;
    font-size: 0.85em;
    margin-right: 4px;
}

.buy-amount-btn {
    padding: 5px 12px;
    background: rgba(40, 40, 70, 0.8);
    border: 1px solid #445;
    border-radius: 6px;
    color: #99a;
    cursor: pointer;
    font-size: 0.85em;
    transition: all 0.2s;
}

.buy-amount-btn:hover {
    background: rgba(60, 60, 100, 0.8);
    color: #ccf;
    border-color: #667;
}

.buy-amount-btn.active {
    background: linear-gradient(135deg, #349, #237);
    border-color: #7af;
    color: #fff;
    box-shadow: 0 0 6px rgba(119, 170, 255, 0.3);
}

/* Energy Display */
.energy-display {
    text-align: center;
    padding: 30px;
    background: rgba(30, 30, 60, 0.6);
    border-radius: 15px;
    margin-bottom: 20px;
    border: 1px solid #334;
}

.energy-count {
    font-size: 3em;
    color: #ffd700;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

.energy-label {
    color: #aac;
    font-size: 1.2em;
}

.energy-rate {
    color: #7a7;
    margin-top: 10px;
}

/* Harvest Button */
.harvest-btn {
    display: block;
    width: 220px;
    height: 220px;
    margin: 30px auto;
    border-radius: 50%;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.15s ease;
    box-shadow: 0 0 40px rgba(100, 150, 255, 0.4);
}

.harvest-btn img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    pointer-events: none;
    user-select: none;
}

.harvest-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 0 60px rgba(100, 150, 255, 0.6);
}

.harvest-btn:active {
    transform: scale(0.95);
    box-shadow: 0 0 30px rgba(100, 150, 255, 0.8);
}

/* Harvest Container */
.harvest-container {
    position: relative;
    width: 220px;
    height: 220px;
    margin: 30px auto;
}

.harvest-container .harvest-btn {
    margin: 0;
}

/* Asteroid Event */
.asteroid {
    position: absolute;
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    z-index: 10;
    filter: drop-shadow(0 0 8px rgba(255, 180, 60, 0.8));
    animation: asteroid-bob 2s ease-in-out infinite;
    transition: opacity 0.5s ease;
}

.asteroid:hover {
    filter: drop-shadow(0 0 15px rgba(255, 200, 80, 1));
    transform: scale(1.15);
}

@keyframes asteroid-bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

/* Generators Section */
.generators .panel-header h2 {
    color: #8af;
}

.generator {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    margin-bottom: 10px;
    background: rgba(20, 20, 40, 0.8);
    border-radius: 10px;
    border: 1px solid #223;
    transition: border-color 0.2s;
}

.generator:hover {
    border-color: #446;
}

.generator-info h3 {
    color: #cdf;
}

.generator-info p {
    color: #889;
    font-size: 0.9em;
}

.generator-stats {
    text-align: right;
    margin-right: 15px;
}

.generator-owned {
    color: #7a7;
    font-size: 1.2em;
}

.generator-production {
    color: #779;
    font-size: 0.85em;
}

.generator-efficiency {
    color: #a77;
    font-size: 0.8em;
}

.generator-base {
    color: #7a9;
    font-size: 0.8em;
}

.buy-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, #3a5, #283);
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    font-size: 1em;
    transition: all 0.2s;
    min-width: 120px;
}

.buy-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #4b6, #394);
}

.buy-btn:disabled {
    background: #333;
    color: #666;
    cursor: not-allowed;
}

/* Upgrades Section */
.upgrades .panel-header h2 {
    color: #fa8;
}

.upgrade {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    margin-bottom: 10px;
    background: rgba(20, 20, 40, 0.8);
    border-radius: 10px;
    border: 1px solid #223;
}

.upgrade.maxed {
    opacity: 0.6;
}

.upgrade-info h3 {
    color: #fda;
}

.upgrade-info p {
    color: #889;
    font-size: 0.9em;
}

.upgrade-stats {
    text-align: right;
    margin-right: 15px;
}

.upgrade-level {
    color: #a87;
    font-size: 1.2em;
}

.upgrade-effect {
    color: #779;
    font-size: 0.85em;
}

.upgrade-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, #a63, #842);
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    font-size: 1em;
    min-width: 120px;
}

.upgrade-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #b74, #953);
}

.upgrade-btn:disabled {
    background: #333;
    color: #666;
    cursor: not-allowed;
}

/* Milestones Section */
.milestones .panel-header h2 {
    color: #a8f;
}

.milestone {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    margin-bottom: 10px;
    background: rgba(20, 20, 40, 0.8);
    border-radius: 10px;
    border: 1px solid #223;
}

.milestone.purchased {
    opacity: 0.5;
    border-color: #449;
}

.milestone.locked {
    opacity: 0.4;
}

.milestone-info h3 {
    color: #caf;
}

.milestone-info p {
    color: #889;
    font-size: 0.9em;
}

.milestone-stats {
    text-align: right;
    margin-right: 15px;
}

.milestone-requirement {
    color: #88a;
    font-size: 0.9em;
}

.milestone-effect {
    color: #7a7;
    font-size: 0.85em;
}

.milestone-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, #63a, #428);
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    font-size: 1em;
    min-width: 120px;
}

.milestone-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #74b, #539);
}

.milestone-btn:disabled {
    background: #333;
    color: #666;
    cursor: not-allowed;
}

/* Mass Milestones Section */
.mass-milestones .panel-header h2 {
    color: #6df;
}

.mass-milestone {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    margin-bottom: 10px;
    background: rgba(20, 35, 45, 0.8);
    border-radius: 10px;
    border: 1px solid #2a4a5a;
}

.mass-milestone.purchased {
    opacity: 0.5;
    border-color: #4bd;
}

.mass-milestone.locked {
    opacity: 0.4;
}

.mass-milestone-info h3 {
    color: #8df;
}

.mass-milestone-info p {
    color: #889;
    font-size: 0.9em;
}

.mass-milestone-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, #38a, #267);
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    font-size: 1em;
    min-width: 120px;
}

.mass-milestone-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #49b, #378);
}

.mass-milestone-btn:disabled {
    background: #333;
    color: #666;
    cursor: not-allowed;
}

.mass-generator-milestone-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, #38a, #267);
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    font-size: 1em;
    min-width: 120px;
}

.mass-generator-milestone-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #49b, #378);
}

.mass-generator-milestone-btn:disabled {
    background: #333;
    color: #666;
    cursor: not-allowed;
}

.mass-milestones .buy-all-btn {
    color: #6df;
    border-color: #4a6a7a;
}

.mass-milestones .buy-all-btn:hover {
    border-color: #6df;
    color: #fff;
}

/* Mass Production Cost Reductions Section */
.mass-cost-reductions .panel-header h2 {
    color: #6df;
}

.mass-cost-reduction-status {
    color: #6df;
    font-size: 0.9em;
    margin-bottom: 15px;
    padding: 10px;
    background: rgba(20, 35, 45, 0.5);
    border-radius: 8px;
    text-align: center;
}

.mass-cost-reduction {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    margin-bottom: 8px;
    background: rgba(20, 35, 45, 0.8);
    border-radius: 10px;
    border: 1px solid #2a4a5a;
}

.mass-cost-reduction.purchased {
    opacity: 0.5;
    border-color: #4bd;
}

.mass-cost-reduction-info h3 {
    color: #8ef;
    font-size: 1em;
}

.mass-cost-reduction-info p {
    color: #889;
    font-size: 0.85em;
}

.mass-cost-reduction-btn {
    padding: 8px 16px;
    background: linear-gradient(135deg, #3ab, #289);
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    font-size: 0.9em;
    min-width: 100px;
}

.mass-cost-reduction-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #4bc, #39a);
}

.mass-cost-reduction-btn:disabled {
    background: #333;
    color: #666;
    cursor: not-allowed;
}

.mass-cost-reductions .buy-all-btn {
    color: #6df;
    border-color: #4a6a7a;
}

.mass-cost-reductions .buy-all-btn:hover {
    border-color: #6df;
    color: #fff;
}

/* Mass Generators Cost Reductions Section */
.mass-generators-cost-reductions .panel-header h2 {
    color: #6df;
}

.mass-generators-cost-reduction-status {
    color: #6df;
    font-size: 0.9em;
    margin-bottom: 15px;
    padding: 10px;
    background: rgba(20, 35, 45, 0.5);
    border-radius: 8px;
    text-align: center;
}

.mass-generators-cost-reduction {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    margin-bottom: 8px;
    background: rgba(20, 35, 45, 0.8);
    border-radius: 10px;
    border: 1px solid #2a4a5a;
}

.mass-generators-cost-reduction.purchased {
    opacity: 0.5;
    border-color: #4bd;
}

.mass-generators-cost-reduction-info h3 {
    color: #8ef;
    font-size: 1em;
}

.mass-generators-cost-reduction-info p {
    color: #889;
    font-size: 0.85em;
}

.mass-generators-cost-reduction-btn {
    padding: 8px 16px;
    background: linear-gradient(135deg, #3ab, #289);
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    font-size: 0.9em;
    min-width: 100px;
}

.mass-generators-cost-reduction-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #4bc, #39a);
}

.mass-generators-cost-reduction-btn:disabled {
    background: #333;
    color: #666;
    cursor: not-allowed;
}

.mass-generators-cost-reductions .buy-all-btn {
    color: #6df;
    border-color: #4a6a7a;
}

.mass-generators-cost-reductions .buy-all-btn:hover {
    border-color: #6df;
    color: #fff;
}

/* Mastery Panel */
.mastery .panel-header h2 {
    color: #d8f;
    text-shadow: 0 0 10px rgba(170, 102, 255, 0.5);
}

.mastery-converter {
    background: rgba(40, 20, 60, 0.6);
    border: 2px solid #a6f;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 0 20px rgba(170, 102, 255, 0.3);
}

.mastery-converter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.mastery-converter-header h3 {
    color: #d8f;
    font-size: 1.1em;
    margin: 0;
}

.mastery-converter-status {
    font-weight: bold;
    font-size: 0.9em;
    padding: 4px 12px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.3);
}

.mastery-converter-description {
    color: #aab;
    font-size: 0.9em;
    line-height: 1.5;
    margin-bottom: 15px;
}

.mastery-converter-benefit {
    background: rgba(20, 35, 45, 0.6);
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #a6f;
    color: #d8f;
    font-size: 0.95em;
    margin-bottom: 15px;
    text-align: center;
}

.mastery-converter-toggle {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #a6f, #84d);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 15px rgba(170, 102, 255, 0.3);
}

.mastery-converter-toggle:hover {
    background: linear-gradient(135deg, #b7f, #95e);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(170, 102, 255, 0.5);
}

.mastery-converter-toggle.active {
    background: linear-gradient(135deg, #6df, #4bd);
    box-shadow: 0 4px 15px rgba(102, 221, 255, 0.3);
}

.mastery-converter-toggle.active:hover {
    background: linear-gradient(135deg, #7ef, #5ce);
    box-shadow: 0 6px 20px rgba(102, 221, 255, 0.5);
}

/* Mastery Upgrades Panel */
.mastery-upgrades .panel-header h2 {
    color: #d8f;
    text-shadow: 0 0 10px rgba(170, 102, 255, 0.5);
}

.mastery-upgrade-status {
    color: #d8f;
    font-size: 0.9em;
    margin-bottom: 15px;
    padding: 10px;
    background: rgba(40, 20, 60, 0.5);
    border-radius: 8px;
    text-align: center;
}

.mastery-upgrade {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    margin-bottom: 8px;
    background: rgba(40, 20, 60, 0.6);
    border-radius: 10px;
    border: 1px solid #a6f;
}

.mastery-upgrade.purchased {
    opacity: 0.5;
    border-color: #d8f;
}

.mastery-upgrade-info h3 {
    color: #d8f;
    font-size: 1em;
}

.mastery-upgrade-info p {
    color: #aab;
    font-size: 0.85em;
}

.mastery-upgrade-btn {
    padding: 8px 16px;
    background: linear-gradient(135deg, #a6f, #84d);
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    font-size: 0.9em;
    min-width: 100px;
}

.mastery-upgrade-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #b7f, #95e);
}

.mastery-upgrade-btn:disabled {
    background: #333;
    color: #666;
    cursor: not-allowed;
}

.mastery-upgrades .buy-all-btn {
    color: #d8f;
    border-color: #a6f;
}

.mastery-upgrades .buy-all-btn:hover {
    border-color: #d8f;
    color: #fff;
}

/* Mass Production Boosts Section */
.mass-production-boosts .panel-header h2 {
    color: #6df;
}

.mass-production-boost-status {
    color: #6df;
    font-size: 0.9em;
    margin-bottom: 15px;
    padding: 10px;
    background: rgba(20, 35, 45, 0.5);
    border-radius: 8px;
    text-align: center;
}

.mass-production-boost {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    margin-bottom: 8px;
    background: rgba(20, 35, 45, 0.8);
    border-radius: 10px;
    border: 1px solid #2a4a5a;
}

.mass-production-boost.purchased {
    opacity: 0.5;
    border-color: #4bd;
}

.mass-production-boost-info h3 {
    color: #8ef;
    font-size: 1em;
}

.mass-production-boost-info p {
    color: #889;
    font-size: 0.85em;
}

.mass-production-boost-btn {
    padding: 8px 16px;
    background: linear-gradient(135deg, #3ab, #289);
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    font-size: 0.9em;
    min-width: 100px;
}

.mass-production-boost-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #4bc, #39a);
}

.mass-production-boost-btn:disabled {
    background: #333;
    color: #666;
    cursor: not-allowed;
}

.mass-production-boosts .buy-all-btn {
    color: #6df;
    border-color: #4a6a7a;
}

.mass-production-boosts .buy-all-btn:hover {
    border-color: #6df;
    color: #fff;
}

.global-multiplier {
    color: #a8f;
    margin-top: 5px;
    font-size: 0.9em;
}

/* Click Upgrades Section */
.click-upgrades .panel-header h2 {
    color: #8df;
}

.click-upgrade {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    margin-bottom: 8px;
    background: rgba(20, 20, 40, 0.8);
    border-radius: 10px;
    border: 1px solid #223;
}

.click-upgrade.purchased {
    opacity: 0.5;
    border-color: #449;
}

.click-upgrade-info h3 {
    color: #adf;
    font-size: 1em;
}

.click-upgrade-info p {
    color: #889;
    font-size: 0.85em;
}

.click-upgrade-btn {
    padding: 8px 16px;
    background: linear-gradient(135deg, #38a, #267);
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    font-size: 0.9em;
    min-width: 100px;
}

.click-upgrade-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #49b, #378);
}

.click-upgrade-btn:disabled {
    background: #333;
    color: #666;
    cursor: not-allowed;
}

.click-power-display {
    color: #8df;
    font-size: 0.9em;
    margin-bottom: 15px;
    padding: 10px;
    background: rgba(20, 20, 40, 0.5);
    border-radius: 8px;
    text-align: center;
}

/* Cost Reductions Section */
.cost-reductions .panel-header h2 {
    color: #8fa;
}

/* Production Boosts Section */
.production-boosts .panel-header h2 {
    color: #f8a;
}

/* Global Upgrades (shared styles for cost reductions and production boosts) */
.global-upgrade {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    margin-bottom: 8px;
    background: rgba(20, 20, 40, 0.8);
    border-radius: 10px;
    border: 1px solid #223;
}

.global-upgrade.purchased {
    opacity: 0.5;
    border-color: #449;
}

.global-upgrade-info h3 {
    color: #afc;
    font-size: 1em;
}

.global-upgrade-info p {
    color: #889;
    font-size: 0.85em;
}

.global-upgrade-status {
    color: #8df;
    font-size: 0.9em;
    margin-bottom: 15px;
    padding: 10px;
    background: rgba(20, 20, 40, 0.5);
    border-radius: 8px;
    text-align: center;
}

.cost-reduction-btn,
.production-boost-btn {
    padding: 8px 16px;
    background: linear-gradient(135deg, #3a8, #287);
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    font-size: 0.9em;
    min-width: 100px;
}

.cost-reduction-btn:hover:not(:disabled),
.production-boost-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #4b9, #398);
}

.cost-reduction-btn:disabled,
.production-boost-btn:disabled {
    background: #333;
    color: #666;
    cursor: not-allowed;
}

/* Neutrino Display */
.neutrino-display {
    background: rgba(30, 50, 40, 0.8);
    border-radius: 15px;
    padding: 15px 20px;
    margin: 20px 0;
    border: 1px solid #4a7;
}

.neutrino-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.neutrino-label {
    color: #8fa;
    font-size: 1.1em;
    font-weight: bold;
}

.neutrino-rate {
    color: #6a8;
    font-size: 0.9em;
}

.neutrino-bar-container {
    position: relative;
    height: 24px;
    background: rgba(20, 30, 25, 0.8);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #3a5;
}

.neutrino-bar-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: linear-gradient(90deg, #4a7, #6c9);
    border-radius: 12px;
    transition: width 0.1s linear;
    box-shadow: 0 0 10px rgba(100, 200, 150, 0.5);
}

.neutrino-bar-text {
    position: absolute;
    width: 100%;
    text-align: center;
    line-height: 24px;
    color: #fff;
    font-size: 0.85em;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    z-index: 1;
}

.neutrino-abilities {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.neutrino-ability-btn {
    flex: 1;
    padding: 10px 15px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.neutrino-ability-btn.production {
    background: linear-gradient(135deg, #5a8, #397);
    color: white;
}

.neutrino-ability-btn.production:hover:not(:disabled) {
    background: linear-gradient(135deg, #6b9, #4a8);
    box-shadow: 0 0 15px rgba(100, 180, 130, 0.5);
}

.neutrino-ability-btn.click {
    background: linear-gradient(135deg, #58a, #379);
    color: white;
}

.neutrino-ability-btn.click:hover:not(:disabled) {
    background: linear-gradient(135deg, #69b, #48a);
    box-shadow: 0 0 15px rgba(100, 150, 200, 0.5);
}

.neutrino-ability-btn:disabled {
    background: #333;
    color: #666;
    cursor: not-allowed;
    box-shadow: none;
}

.ability-name {
    font-weight: bold;
}

.ability-timer {
    font-size: 0.85em;
    color: #ffd700;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
}

/* Neutrino Absorber Panel */
.neutrino-absorber .panel-header h2 {
    color: #8fa;
}

.neutrino-upgrade-status {
    color: #8fa;
    font-size: 0.85em;
    margin-bottom: 15px;
    padding: 10px;
    background: rgba(20, 30, 25, 0.5);
    border-radius: 8px;
    text-align: center;
}

.neutrino-upgrade {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    margin-bottom: 8px;
    background: rgba(20, 30, 25, 0.8);
    border-radius: 10px;
    border: 1px solid #2a4;
}

.neutrino-upgrade.purchased {
    opacity: 0.5;
    border-color: #4a7;
}

.neutrino-upgrade-info h3 {
    color: #afc;
    font-size: 1em;
}

.neutrino-upgrade-info p {
    color: #889;
    font-size: 0.85em;
}

.neutrino-upgrade-btn {
    padding: 8px 16px;
    background: linear-gradient(135deg, #4a7, #286);
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    font-size: 0.9em;
    min-width: 100px;
}

.neutrino-upgrade-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #5b8, #397);
}

.neutrino-upgrade-btn:disabled {
    background: #333;
    color: #666;
    cursor: not-allowed;
}

/* Asteroid Upgrades Panel */
.asteroid-upgrades .panel-header h2 {
    color: #fb4;
}

.asteroid-upgrade-status {
    color: #fb4;
    font-size: 0.85em;
    margin-bottom: 15px;
    padding: 10px;
    background: rgba(40, 30, 15, 0.5);
    border-radius: 8px;
    text-align: center;
}

.asteroid-upgrade {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    margin-bottom: 8px;
    background: rgba(40, 30, 15, 0.8);
    border-radius: 10px;
    border: 1px solid #543;
}

.asteroid-upgrade.purchased {
    opacity: 0.5;
    border-color: #a84;
}

.asteroid-upgrade-info h3 {
    color: #fc8;
    font-size: 1em;
}

.asteroid-upgrade-info p {
    color: #889;
    font-size: 0.85em;
}

.asteroid-upgrade-btn {
    padding: 8px 16px;
    background: linear-gradient(135deg, #a83, #862);
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    font-size: 0.9em;
    min-width: 100px;
}

.asteroid-upgrade-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #b94, #973);
}

.asteroid-upgrade-btn:disabled {
    background: #333;
    color: #666;
    cursor: not-allowed;
}

/* Prestige Panel */
.prestige-panel {
    background: rgba(40, 30, 50, 0.8);
    border-radius: 15px;
    margin-top: 20px;
    border: 2px solid #a6f;
    box-shadow: 0 0 20px rgba(170, 100, 255, 0.3);
}

.prestige-panel .panel-header h2 {
    color: #d8f;
    text-shadow: 0 0 10px rgba(220, 150, 255, 0.5);
}

.prestige-info {
    background: rgba(20, 15, 30, 0.6);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
}

.prestige-stat {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(150, 100, 200, 0.2);
}

.prestige-stat:last-child {
    border-bottom: none;
}

.prestige-stat.pending {
    background: rgba(170, 100, 255, 0.1);
    margin: 5px -10px;
    padding: 8px 10px;
    border-radius: 5px;
}

.prestige-label {
    color: #a9c;
}

.prestige-value {
    color: #eaf;
    font-weight: bold;
}

.prestige-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #a6f, transparent);
    margin: 10px 0;
}

/* Prestige Progress Bar */
.prestige-progress-container {
    position: relative;
    height: 20px;
    background: rgba(20, 15, 30, 0.8);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #639;
    margin-top: 10px;
}

.prestige-progress-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: linear-gradient(90deg, #74c, #a6f);
    border-radius: 10px;
    transition: width 0.1s linear;
    box-shadow: 0 0 10px rgba(170, 100, 255, 0.4);
}

.prestige-progress-text {
    position: absolute;
    width: 100%;
    text-align: center;
    line-height: 20px;
    color: #fff;
    font-size: 0.8em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.prestige-btn {
    width: 100%;
    padding: 15px 20px;
    background: linear-gradient(135deg, #a6f, #74c);
    border: none;
    border-radius: 10px;
    color: white;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    transition: all 0.2s;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.prestige-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #b7f, #85d);
    box-shadow: 0 0 20px rgba(170, 100, 255, 0.5);
}

.prestige-btn:disabled {
    background: #444;
    color: #777;
    cursor: not-allowed;
    box-shadow: none;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    color: #556;
    margin-top: 10px;
}

.save-info {
    font-size: 0.9em;
}

/* Floating numbers animation */
.float-text {
    position: fixed;
    pointer-events: none;
    font-size: 1.5em;
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
    animation: floatUp 1s ease-out forwards;
    z-index: 1000;
}

@keyframes floatUp {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-80px);
    }
}

/* Mass Display */
.mass-display {
    text-align: center;
    padding: 20px;
    background: rgba(20, 40, 50, 0.7);
    border-radius: 15px;
    margin-bottom: 20px;
    border: 1px solid #4bd;
}

.mass-count {
    font-size: 2.5em;
    color: #6df;
    text-shadow: 0 0 15px rgba(102, 221, 255, 0.5);
}

.mass-label {
    color: #9cd;
    font-size: 1.1em;
}

.mass-rate {
    color: #4bd;
    margin-top: 8px;
}

/* Mass Generators Panel */
.mass-generators .panel-header h2 {
    color: #6df;
}

.mass-generator {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    margin-bottom: 10px;
    background: rgba(20, 35, 45, 0.8);
    border-radius: 10px;
    border: 1px solid #2a4a5a;
    transition: border-color 0.2s;
}

.mass-generator:hover {
    border-color: #4bd;
}

.mass-generator-info h3 {
    color: #8ef;
}

.mass-generator-info p {
    color: #889;
    font-size: 0.9em;
}

.mass-generator-stats {
    text-align: right;
    margin-right: 15px;
}

.mass-generator-owned {
    color: #4bd;
    font-size: 1.2em;
}

.mass-generator-production {
    color: #6df;
    font-size: 0.85em;
}

.mass-generator-base {
    color: #7a9;
    font-size: 0.8em;
}

.mass-generator-efficiency {
    color: #a77;
    font-size: 0.8em;
}

.mass-buy-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, #3ab, #289);
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    font-size: 1em;
    transition: all 0.2s;
    min-width: 120px;
}

.mass-buy-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #4bc, #39a);
}

.mass-buy-btn:disabled {
    background: #333;
    color: #666;
    cursor: not-allowed;
}

.mass-buy-amount-btn {
    padding: 5px 12px;
    background: rgba(40, 40, 70, 0.8);
    border: 1px solid #445;
    border-radius: 6px;
    color: #99a;
    cursor: pointer;
    font-size: 0.85em;
    transition: all 0.2s;
}

.mass-buy-amount-btn:hover {
    background: rgba(40, 60, 80, 0.8);
    color: #6df;
    border-color: #4bd;
}

.mass-buy-amount-btn.active {
    background: linear-gradient(135deg, #2a6a7a, #1a4a5a);
    border-color: #6df;
    color: #fff;
    box-shadow: 0 0 6px rgba(102, 221, 255, 0.3);
}

/* Mass-Cost Generators Panel (generators bought with mass) */
.mass-cost-generators .panel-header h2 {
    color: #6df;
}

.generator.mass-cost {
    border-left: 3px solid #4bd;
}

.generator.mass-cost .generator-info h3 {
    color: #8ef;
}

.mass-cost-buy-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, #3ab, #289);
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    font-size: 1em;
    transition: all 0.2s;
    min-width: 120px;
}

.mass-cost-buy-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #4bc, #39a);
}

.mass-cost-buy-btn:disabled {
    background: #333;
    color: #666;
    cursor: not-allowed;
}

.mass-cost-buy-amount-btn {
    padding: 5px 12px;
    background: rgba(40, 40, 70, 0.8);
    border: 1px solid #445;
    border-radius: 6px;
    color: #99a;
    cursor: pointer;
    font-size: 0.85em;
    transition: all 0.2s;
}

.mass-cost-buy-amount-btn:hover {
    background: rgba(40, 60, 80, 0.8);
    color: #6df;
    border-color: #4bd;
}

.mass-cost-buy-amount-btn.active {
    background: linear-gradient(135deg, #2a6a7a, #1a4a5a);
    border-color: #6df;
    color: #fff;
    box-shadow: 0 0 6px rgba(102, 221, 255, 0.3);
}

/* Mass-Cost Upgrades Panel */
.mass-cost-upgrades .panel-header h2 {
    color: #6df;
}

.upgrade.mass-cost {
    border-left: 3px solid #4bd;
}

.upgrade.mass-cost .upgrade-info h3 {
    color: #8ef;
}

.mass-cost-upgrade-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, #3ab, #289);
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    font-size: 1em;
    transition: all 0.2s;
    min-width: 120px;
}

.mass-cost-upgrade-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #4bc, #39a);
}

.mass-cost-upgrade-btn:disabled {
    background: #333;
    color: #666;
    cursor: not-allowed;
}

/* Buy All Button */
.buy-all-btn {
    display: block;
    margin-left: auto;
    margin-bottom: 10px;
    padding: 5px 14px;
    background: linear-gradient(135deg, #456, #345);
    border: 1px solid #567;
    border-radius: 6px;
    color: #adf;
    cursor: pointer;
    font-size: 0.8em;
    transition: all 0.2s;
}

.buy-all-btn:hover {
    background: linear-gradient(135deg, #567, #456);
    border-color: #8af;
    color: #fff;
}

.mass-cost-generators .buy-all-btn,
.mass-cost-upgrades .buy-all-btn {
    color: #6df;
    border-color: #4a6a7a;
}

.mass-cost-generators .buy-all-btn:hover,
.mass-cost-upgrades .buy-all-btn:hover {
    border-color: #6df;
    color: #fff;
}

/* Auto Surge Toggle */
.neutrino-auto-btn {
    padding: 8px 16px;
    background: rgba(40, 40, 70, 0.8);
    border: 1px solid #556;
    border-radius: 8px;
    color: #99a;
    cursor: pointer;
    font-size: 0.85em;
    transition: all 0.2s;
}

.neutrino-auto-btn:hover {
    background: rgba(50, 60, 80, 0.8);
    border-color: #8fa;
    color: #8fa;
}

.neutrino-auto-btn.active {
    background: linear-gradient(135deg, #2a5a3a, #1a4a2a);
    border-color: #8fa;
    color: #8fa;
    box-shadow: 0 0 8px rgba(136, 255, 170, 0.3);
}

/* Stats Panel */
.stats-panel .panel-header h2 {
    color: #aab;
}

.stats-grid {
    background: rgba(20, 20, 40, 0.5);
    border-radius: 10px;
    padding: 12px 15px;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    padding: 7px 0;
    border-bottom: 1px solid rgba(100, 100, 140, 0.15);
}

.stat-row:last-child {
    border-bottom: none;
}

.stat-label {
    color: #889;
    font-size: 0.9em;
}

.stat-value {
    color: #cce;
    font-weight: bold;
    font-size: 0.9em;
}

.stat-value.energy-color {
    color: #ffd700;
}

.stat-value.mass-color {
    color: #6df;
}

/* Prestige Animation */
.prestige-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 10000;
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.6);
    pointer-events: all;
}

.prestige-black-hole {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, #000 0%, #000 45%, #0d0020 65%, transparent 72%);
    box-shadow:
        0 0 60px 15px rgba(130, 60, 230, 0.7),
        0 0 120px 40px rgba(90, 30, 180, 0.4),
        0 0 200px 80px rgba(60, 10, 140, 0.2),
        inset 0 0 40px 10px #000;
    position: absolute;
}

.prestige-accretion-ring {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    border: 3px solid rgba(170, 100, 255, 0.4);
    box-shadow:
        0 0 30px 5px rgba(170, 100, 255, 0.2),
        inset 0 0 30px 5px rgba(170, 100, 255, 0.1);
    position: absolute;
    animation: prestige-spin 2s linear infinite;
}

.prestige-glow {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle,
        transparent 20%,
        rgba(130, 60, 230, 0.08) 40%,
        rgba(100, 40, 200, 0.05) 60%,
        transparent 75%
    );
    position: absolute;
    animation: prestige-pulse 1.5s ease-in-out infinite alternate;
}

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

@keyframes prestige-pulse {
    from { transform: scale(1); opacity: 0.6; }
    to { transform: scale(1.2); opacity: 1; }
}
